denwa-react-shared 1.0.29 → 1.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6764,7 +6764,7 @@ const cM = ({
6764
6764
  isPriorityEqual: n === a,
6765
6765
  isPriorityLower: n < a
6766
6766
  };
6767
- }, bM = ci({
6767
+ }, yde = (e, t) => ((t == null ? void 0 : t.label) ?? "").toLowerCase().indexOf(e.toLowerCase()) >= 0, bM = ci({
6768
6768
  statusCode: Kl().optional(),
6769
6769
  message: Gr().optional().nullable(),
6770
6770
  messages: Gr().array().optional().nullable(),
@@ -6872,7 +6872,7 @@ const cM = ({
6872
6872
  secure: !0,
6873
6873
  "max-age": b
6874
6874
  }), ((C = (y = d.tokens) == null ? void 0 : y.accessToken) == null ? void 0 : C.token) ?? "";
6875
- }, yde = WA((e, t) => ({
6875
+ }, Cde = WA((e, t) => ({
6876
6876
  isLoading: !1,
6877
6877
  isFirstLoadCompleted: !1,
6878
6878
  currentSession: void 0,
@@ -7226,7 +7226,7 @@ function EM() {
7226
7226
  var Fe = EM();
7227
7227
  const wM = "_container_j6rsl_1", xM = {
7228
7228
  container: wM
7229
- }, Cde = ({ children: e }) => /* @__PURE__ */ Fe.jsx("div", { className: xM.container, children: e });
7229
+ }, $de = ({ children: e }) => /* @__PURE__ */ Fe.jsx("div", { className: xM.container, children: e });
7230
7230
  var Bg = { exports: {} };
7231
7231
  /*!
7232
7232
  Copyright (c) 2018 Jed Watson.
@@ -7613,7 +7613,7 @@ var FM = Number(jA.split(".")[0]), Q1 = function(t, r) {
7613
7613
  function J1(e) {
7614
7614
  return /* @__PURE__ */ j1(e) && !CO(e);
7615
7615
  }
7616
- var $de = function(t) {
7616
+ var Sde = function(t) {
7617
7617
  return J1(t) && So(t);
7618
7618
  }, Bi = function(t) {
7619
7619
  if (t && J1(t)) {
@@ -10433,7 +10433,7 @@ const cb = Tv(Dm), xu = {
10433
10433
  getPrefixCls: FB,
10434
10434
  iconPrefixCls: Im
10435
10435
  }), {
10436
- Consumer: Sde
10436
+ Consumer: Ede
10437
10437
  } = Tt, F2 = {};
10438
10438
  function xn(e) {
10439
10439
  const t = f.useContext(Tt), {
@@ -13386,7 +13386,7 @@ const _m = /* @__PURE__ */ f.createContext(null), Xo = (e, t) => {
13386
13386
  return /* @__PURE__ */ f.createElement(_m.Provider, {
13387
13387
  value: f.useMemo(() => r, [r])
13388
13388
  }, t);
13389
- }, Ede = (e) => {
13389
+ }, wde = (e) => {
13390
13390
  const {
13391
13391
  getPrefixCls: t,
13392
13392
  direction: r
@@ -15878,7 +15878,7 @@ function E9(e) {
15878
15878
  height: p
15879
15879
  };
15880
15880
  }
15881
- function wde(e) {
15881
+ function xde(e) {
15882
15882
  return typeof document > "u" ? 0 : (n0 === void 0 && (n0 = E9()), n0.width);
15883
15883
  }
15884
15884
  function Dk(e) {
@@ -37275,7 +37275,7 @@ process.env.NODE_ENV !== "production" && (Cy.displayName = "Drawer");
37275
37275
  function XS(e) {
37276
37276
  return ["small", "middle", "large"].includes(e);
37277
37277
  }
37278
- function xde(e) {
37278
+ function Ode(e) {
37279
37279
  return e ? typeof e == "number" && !Number.isNaN(e) : !1;
37280
37280
  }
37281
37281
  const EI = ["wrap", "nowrap", "wrap-reverse"], wI = ["flex-start", "flex-end", "start", "end", "center", "space-between", "space-around", "space-evenly", "stretch", "normal", "left", "right"], xI = ["center", "start", "end", "flex-start", "flex-end", "self-start", "self-end", "baseline", "normal", "stretch"], NZ = (e, t) => {
@@ -46530,7 +46530,7 @@ Oy.Dragger = O5;
46530
46530
  Oy.LIST_IGNORE = ql;
46531
46531
  const Pee = "_readOnly_636d1_1", _ee = {
46532
46532
  readOnly: Pee
46533
- }, Ode = ({
46533
+ }, Dde = ({
46534
46534
  configLocale: e,
46535
46535
  noDateText: t,
46536
46536
  currentValue: r,
@@ -46566,7 +46566,7 @@ const Pee = "_readOnly_636d1_1", _ee = {
46566
46566
  }, Nee = "_form_6uo9h_1", Mee = "_buttons_6uo9h_5", EE = {
46567
46567
  form: Nee,
46568
46568
  buttons: Mee
46569
- }, Dde = ({
46569
+ }, Ide = ({
46570
46570
  children: e,
46571
46571
  language: t,
46572
46572
  saveText: r,
@@ -46622,7 +46622,7 @@ const Pee = "_readOnly_636d1_1", _ee = {
46622
46622
  )
46623
46623
  ] })
46624
46624
  ] });
46625
- }, Ide = ({
46625
+ }, Rde = ({
46626
46626
  fallback: e = "data:image/png;base64,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",
46627
46627
  ...t
46628
46628
  }) => /* @__PURE__ */ Fe.jsx(ig, { ...t, fallback: e });
@@ -50599,7 +50599,7 @@ const nne = ({ downloadText: e }) => /* @__PURE__ */ Fe.jsxs("button", { style:
50599
50599
  [Js.readOnly]: r
50600
50600
  })
50601
50601
  }
50602
- ), Rde = ({
50602
+ ), Ade = ({
50603
50603
  emptyText: e,
50604
50604
  className: t,
50605
50605
  readOnly: r,
@@ -50615,7 +50615,7 @@ const nne = ({ downloadText: e }) => /* @__PURE__ */ Fe.jsxs("button", { style:
50615
50615
  [Js.readOnly]: r
50616
50616
  })
50617
50617
  }
50618
- ), Ade = ({
50618
+ ), Pde = ({
50619
50619
  emptyText: e,
50620
50620
  className: t,
50621
50621
  readOnly: r,
@@ -50751,7 +50751,7 @@ const nne = ({ downloadText: e }) => /* @__PURE__ */ Fe.jsxs("button", { style:
50751
50751
  ))
50752
50752
  }
50753
50753
  );
50754
- }, Pde = ({
50754
+ }, _de = ({
50755
50755
  labelText: e,
50756
50756
  loadingErrorText: t,
50757
50757
  emptyText: r,
@@ -50854,7 +50854,7 @@ const nne = ({ downloadText: e }) => /* @__PURE__ */ Fe.jsxs("button", { style:
50854
50854
  }, mne = "_inputNumber_1uclo_1", gne = "_readOnly_1uclo_5", WE = {
50855
50855
  inputNumber: mne,
50856
50856
  readOnly: gne
50857
- }, _de = ({
50857
+ }, Nde = ({
50858
50858
  emptyText: e,
50859
50859
  className: t,
50860
50860
  readOnly: r,
@@ -51294,7 +51294,7 @@ class su extends ne.Component {
51294
51294
  }
51295
51295
  }
51296
51296
  var Dne = Cl(pg(bl((e) => /* @__PURE__ */ ne.createElement(su, ro({}, e, { name: "Placemark" })), !0, ["Placemark"])));
51297
- const Nde = ({
51297
+ const Mde = ({
51298
51298
  apikey: e,
51299
51299
  suggestApikey: t,
51300
51300
  defaultCoords: r = null,
@@ -51360,7 +51360,7 @@ const Nde = ({
51360
51360
  );
51361
51361
  }, Ine = "_readOnly_1xsj4_1", Rne = {
51362
51362
  readOnly: Ine
51363
- }, Mde = ({ value: e, emptyText: t }) => /* @__PURE__ */ Fe.jsx(Sa.Text, { className: Rne.readOnly, children: e || t }), Tde = ({
51363
+ }, Tde = ({ value: e, emptyText: t }) => /* @__PURE__ */ Fe.jsx(Sa.Text, { className: Rne.readOnly, children: e || t }), Bde = ({
51364
51364
  notFoundText: e,
51365
51365
  dataName: t,
51366
51366
  value: r,
@@ -51423,7 +51423,7 @@ const Nde = ({
51423
51423
  }
51424
51424
  )
51425
51425
  ] });
51426
- }, Bde = ({ children: e, spinFontSize: t = 36, ...r }) => /* @__PURE__ */ Fe.jsx(sg, { ...r, indicator: /* @__PURE__ */ Fe.jsx(dR, { style: { fontSize: t } }), children: e });
51426
+ }, Fde = ({ children: e, spinFontSize: t = 36, ...r }) => /* @__PURE__ */ Fe.jsx(sg, { ...r, indicator: /* @__PURE__ */ Fe.jsx(dR, { style: { fontSize: t } }), children: e });
51427
51427
  var SR = Symbol.for("immer-nothing"), GE = Symbol.for("immer-draftable"), sa = Symbol.for("immer-state"), Ane = process.env.NODE_ENV !== "production" ? [
51428
51428
  // All error codes, starting by 0:
51429
51429
  function(e) {
@@ -64626,7 +64626,7 @@ const vp = /* @__PURE__ */ Gn(gce), pce = ({ tooltipText: e, linkErrorText: t, o
64626
64626
  type: "paragraph",
64627
64627
  children: [{ text: "" }]
64628
64628
  }
64629
- ], { useToken: Sce } = ug, Fde = ({
64629
+ ], { useToken: Sce } = ug, jde = ({
64630
64630
  boldText: e,
64631
64631
  italicText: t,
64632
64632
  underlineText: r,
@@ -64747,10 +64747,10 @@ const vp = /* @__PURE__ */ Gn(gce), pce = ({ tooltipText: e, linkErrorText: t, o
64747
64747
  ]
64748
64748
  }
64749
64749
  ), Tce = _4(
64750
- () => import("./table-head-DvgaMcJZ.js").then(({ TableHead: e }) => ({ default: e }))
64750
+ () => import("./table-head-B_BF5Nu6.js").then(({ TableHead: e }) => ({ default: e }))
64751
64751
  ), Bce = _4(
64752
- () => import("./index-DMQH1j5_.js").then(({ BaseTable: e }) => ({ default: e }))
64753
- ), jde = ({
64752
+ () => import("./index-b3N2ywqR.js").then(({ BaseTable: e }) => ({ default: e }))
64753
+ ), Lde = ({
64754
64754
  drawerContent: e,
64755
64755
  sortTooltipText: t,
64756
64756
  updateDataText: r,
@@ -64924,7 +64924,7 @@ const vp = /* @__PURE__ */ Gn(gce), pce = ({ tooltipText: e, linkErrorText: t, o
64924
64924
  export {
64925
64925
  yo as $,
64926
64926
  __ as A,
64927
- _de as B,
64927
+ Nde as B,
64928
64928
  Nn as C,
64929
64929
  Eo as D,
64930
64930
  qn as E,
@@ -64946,7 +64946,7 @@ export {
64946
64946
  aa as U,
64947
64947
  qm as V,
64948
64948
  Ta as W,
64949
- $de as X,
64949
+ Sde as X,
64950
64950
  $o as Y,
64951
64951
  Bi as Z,
64952
64952
  ue as _,
@@ -64964,8 +64964,8 @@ export {
64964
64964
  ir as a9,
64965
64965
  Kj as aA,
64966
64966
  XS as aB,
64967
- Ede as aC,
64968
- xde as aD,
64967
+ wde as aC,
64968
+ Ode as aD,
64969
64969
  Xo as aE,
64970
64970
  Ws as aF,
64971
64971
  So as aG,
@@ -64977,7 +64977,7 @@ export {
64977
64977
  tn as aM,
64978
64978
  wO as aN,
64979
64979
  Es as aO,
64980
- wde as aP,
64980
+ xde as aP,
64981
64981
  Dk as aQ,
64982
64982
  N$ as aR,
64983
64983
  y8 as aS,
@@ -65027,33 +65027,34 @@ export {
65027
65027
  O8 as b8,
65028
65028
  sg as b9,
65029
65029
  hM as bA,
65030
- cM as bB,
65031
- dM as bC,
65032
- fM as bD,
65033
- dde as bE,
65034
- vM as bF,
65035
- s2 as bG,
65036
- Rs as bH,
65037
- uo as bI,
65038
- CM as bJ,
65039
- Cde as bK,
65040
- Ode as bL,
65030
+ yde as bB,
65031
+ cM as bC,
65032
+ dM as bD,
65033
+ fM as bE,
65034
+ dde as bF,
65035
+ vM as bG,
65036
+ s2 as bH,
65037
+ Rs as bI,
65038
+ uo as bJ,
65039
+ CM as bK,
65040
+ $de as bL,
65041
65041
  Dde as bM,
65042
65042
  Ide as bN,
65043
- Pde as bO,
65044
- dne as bP,
65045
- Rde as bQ,
65043
+ Rde as bO,
65044
+ _de as bP,
65045
+ dne as bQ,
65046
65046
  Ade as bR,
65047
- pne as bS,
65048
- Nde as bT,
65047
+ Pde as bS,
65048
+ pne as bT,
65049
65049
  Mde as bU,
65050
65050
  Tde as bV,
65051
65051
  Bde as bW,
65052
65052
  Fde as bX,
65053
65053
  jde as bY,
65054
+ Lde as bZ,
65054
65055
  t5 as ba,
65055
65056
  dR as bb,
65056
- yde as bc,
65057
+ Cde as bc,
65057
65058
  mn as bd,
65058
65059
  P_ as be,
65059
65060
  nde as bf,
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-CLaUB_aY.cjs"),H=require("react"),oa=require("react-dom");function ra(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const s=ra(H);function sn(e){return e!=null&&e===e.window}const aa=e=>{var t,o;if(typeof window>"u")return 0;let n=0;return sn(e)?n=e.pageYOffset:e instanceof Document?n=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(n=e.scrollTop),e&&!sn(e)&&typeof n!="number"&&(n=(o=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||o===void 0?void 0:o.scrollTop),n};function ia(e,t,o,n){const a=o-t;return e/=n/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function la(e,t={}){const{getContainer:o=()=>window,callback:n,duration:a=450}=t,i=o(),d=aa(i),l=Date.now(),c=()=>{const p=Date.now()-l,g=ia(p>a?a:p,d,e,a);sn(i)?i.scrollTo(window.pageXOffset,g):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=g:i.scrollTop=g,p<a?r.wrapperRaf(c):typeof n=="function"&&n()};r.wrapperRaf(c)}const sa=e=>typeof e!="object"&&typeof e!="function"||e===null;var da={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},ca=function(t,o){return s.createElement(r.Icon$1,r._extends({},t,{ref:o,icon:da}))},To=s.forwardRef(ca);process.env.NODE_ENV!=="production"&&(To.displayName="BarsOutlined");const ua=s.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),fa=e=>{const{antCls:t,componentCls:o,colorText:n,footerBg:a,headerHeight:i,headerPadding:d,headerColor:l,footerPadding:c,fontSize:u,bodyBg:p,headerBg:g}=e;return{[o]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:p,"&, *":{boxSizing:"border-box"},[`&${o}-has-sider`]:{flexDirection:"row",[`> ${o}, > ${o}-content`]:{width:0}},[`${o}-header, &${o}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${o}-header`]:{height:i,padding:d,color:l,lineHeight:r.unit(i),background:g,[`${t}-menu`]:{lineHeight:"inherit"}},[`${o}-footer`]:{padding:c,color:n,fontSize:u,background:a},[`${o}-content`]:{flex:"auto",color:n,minHeight:0}}},Do=e=>{const{colorBgLayout:t,controlHeight:o,controlHeightLG:n,colorText:a,controlHeightSM:i,marginXXS:d,colorTextLightSolid:l,colorBgContainer:c}=e,u=n*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:o*2,headerPadding:`0 ${u}px`,headerColor:a,footerPadding:`${i}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:n+d*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:n,zeroTriggerHeight:n,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:a}},Bo=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];r.genStyleHooks("Layout",e=>[fa(e)],Do,{deprecatedTokens:Bo});const pa=e=>{const{componentCls:t,siderBg:o,motionDurationMid:n,motionDurationSlow:a,antCls:i,triggerHeight:d,triggerColor:l,triggerBg:c,headerHeight:u,zeroTriggerWidth:p,zeroTriggerHeight:g,borderRadiusLG:m,lightSiderBg:f,lightTriggerColor:v,lightTriggerBg:C,bodyBg:h}=e;return{[t]:{position:"relative",minWidth:0,background:o,transition:`all ${n}, background 0s`,"&-has-trigger":{paddingBottom:d},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:d,color:l,lineHeight:r.unit(d),textAlign:"center",background:c,cursor:"pointer",transition:`all ${n}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:u,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:g,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:o,borderRadius:`0 ${r.unit(m)} ${r.unit(m)} 0`,cursor:"pointer",transition:`background ${a} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${a}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(p).mul(-1).equal(),borderRadius:`${r.unit(m)} 0 0 ${r.unit(m)}`}},"&-light":{background:f,[`${t}-trigger`]:{color:v,background:C},[`${t}-zero-width-trigger`]:{color:v,background:C,border:`1px solid ${h}`,borderInlineStart:0}}}}},ma=r.genStyleHooks(["Layout","Sider"],e=>[pa(e)],Do,{deprecatedTokens:Bo});var ga=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};const Qn={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},va=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),xn=s.createContext({}),ha=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),ba=s.forwardRef((e,t)=>{const{prefixCls:o,className:n,trigger:a,children:i,defaultCollapsed:d=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:p=!1,width:g=200,collapsedWidth:m=80,zeroWidthTriggerStyle:f,breakpoint:v,onCollapse:C,onBreakpoint:h}=e,b=ga(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:S}=H.useContext(ua),[x,w]=H.useState("collapsed"in e?e.collapsed:d),[$,N]=H.useState(!1);H.useEffect(()=>{"collapsed"in e&&w(e.collapsed)},[e.collapsed]);const k=(X,de)=>{"collapsed"in e||w(X),C==null||C(X,de)},{getPrefixCls:_,direction:y}=H.useContext(r.ConfigContext),T=_("layout-sider",o),[R,O,P]=ma(T),I=H.useRef(null);I.current=X=>{N(X.matches),h==null||h(X.matches),x!==X.matches&&k(X.matches,"responsive")},H.useEffect(()=>{function X(he){var j;return(j=I.current)===null||j===void 0?void 0:j.call(I,he)}let de;return typeof(window==null?void 0:window.matchMedia)<"u"&&v&&v in Qn&&(de=window.matchMedia(`screen and (max-width: ${Qn[v]})`),r.addMediaQueryListener(de,X),X(de)),()=>{r.removeMediaQueryListener(de,X)}},[v]),H.useEffect(()=>{const X=ha("ant-sider-");return S.addSider(X),()=>S.removeSider(X)},[]);const E=()=>{k(!x,"clickTrigger")},D=r.omit(b,["collapsed"]),B=x?m:g,K=va(B)?`${B}px`:String(B),M=parseFloat(String(m||0))===0?s.createElement("span",{onClick:E,className:r.cn(`${T}-zero-width-trigger`,`${T}-zero-width-trigger-${p?"right":"left"}`),style:f},a||s.createElement(To,null)):null,A=y==="rtl"==!p,Y={expanded:A?s.createElement(r.RefIcon$2,null):s.createElement(r.RefIcon$1,null),collapsed:A?s.createElement(r.RefIcon$1,null):s.createElement(r.RefIcon$2,null)}[x?"collapsed":"expanded"],J=a!==null?M||s.createElement("div",{className:`${T}-trigger`,onClick:E,style:{width:K}},a||Y):null,oe=Object.assign(Object.assign({},c),{flex:`0 0 ${K}`,maxWidth:K,minWidth:K,width:K}),re=r.cn(T,`${T}-${l}`,{[`${T}-collapsed`]:!!x,[`${T}-has-trigger`]:u&&a!==null&&!M,[`${T}-below`]:!!$,[`${T}-zero-width`]:parseFloat(K)===0},n,O,P),Z=s.useMemo(()=>({siderCollapsed:x}),[x]);return R(s.createElement(xn.Provider,{value:Z},s.createElement("aside",Object.assign({className:re},D,{style:oe,ref:t}),s.createElement("div",{className:`${T}-children`},i),u||$&&M?J:null)))});process.env.NODE_ENV!=="production"&&(ba.displayName="Sider");const zt=H.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var ya=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};const Ko=e=>{const{prefixCls:t,className:o,dashed:n}=e,a=ya(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=s.useContext(r.ConfigContext),d=i("menu",t),l=r.cn({[`${d}-item-divider-dashed`]:!!n},o);return s.createElement(r.Divider,Object.assign({className:l},a))},Mo=e=>{var t;const{className:o,children:n,icon:a,title:i,danger:d,extra:l}=e,{prefixCls:c,firstLevel:u,direction:p,disableMenuItemTitleTooltip:g,inlineCollapsed:m}=s.useContext(zt),f=x=>{const w=n==null?void 0:n[0],$=s.createElement("span",{className:r.cn(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!l||l===0})},n);return(!a||s.isValidElement(n)&&n.type==="span")&&n&&x&&u&&typeof w=="string"?s.createElement("div",{className:`${c}-inline-collapsed-noicon`},w.charAt(0)):$},{siderCollapsed:v}=s.useContext(xn);let C=i;typeof i>"u"?C=u?n:"":i===!1&&(C="");const h={title:C};!v&&!m&&(h.title=null,h.open=!1);const b=r.toArray(n).length;let S=s.createElement(r.MenuItem,Object.assign({},r.omit(e,["title","icon","danger"]),{className:r.cn({[`${c}-item-danger`]:d,[`${c}-item-only-child`]:(a?b+1:b)===1},o),title:typeof i=="string"?i:void 0}),r.cloneElement(a,{className:r.cn(s.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:"",`${c}-item-icon`)}),f(m));return g||(S=s.createElement(r.Tooltip,Object.assign({},h,{placement:p==="rtl"?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),S)),S};var Ca=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};const jt=s.createContext(null),zo=s.forwardRef((e,t)=>{const{children:o}=e,n=Ca(e,["children"]),a=s.useContext(jt),i=s.useMemo(()=>Object.assign(Object.assign({},a),n),[a,n.prefixCls,n.mode,n.selectable,n.rootClassName]),d=r.supportNodeRef(o),l=r.useComposeRef(t,d?r.getNodeRef(o):null);return s.createElement(jt.Provider,{value:i},s.createElement(r.ContextIsolator,{space:!0},d?s.cloneElement(o,{ref:l}):o))}),xa=e=>{const{componentCls:t,motionDurationSlow:o,horizontalLineHeight:n,colorSplit:a,lineWidth:i,lineType:d,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${r.unit(i)} ${d} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-DPqEnkhT.cjs"),H=require("react"),oa=require("react-dom");function ra(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const o in e)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>e[o]})}}return t.default=e,Object.freeze(t)}const s=ra(H);function sn(e){return e!=null&&e===e.window}const aa=e=>{var t,o;if(typeof window>"u")return 0;let n=0;return sn(e)?n=e.pageYOffset:e instanceof Document?n=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(n=e.scrollTop),e&&!sn(e)&&typeof n!="number"&&(n=(o=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||o===void 0?void 0:o.scrollTop),n};function ia(e,t,o,n){const a=o-t;return e/=n/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function la(e,t={}){const{getContainer:o=()=>window,callback:n,duration:a=450}=t,i=o(),d=aa(i),l=Date.now(),c=()=>{const p=Date.now()-l,g=ia(p>a?a:p,d,e,a);sn(i)?i.scrollTo(window.pageXOffset,g):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=g:i.scrollTop=g,p<a?r.wrapperRaf(c):typeof n=="function"&&n()};r.wrapperRaf(c)}const sa=e=>typeof e!="object"&&typeof e!="function"||e===null;var da={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},ca=function(t,o){return s.createElement(r.Icon$1,r._extends({},t,{ref:o,icon:da}))},To=s.forwardRef(ca);process.env.NODE_ENV!=="production"&&(To.displayName="BarsOutlined");const ua=s.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),fa=e=>{const{antCls:t,componentCls:o,colorText:n,footerBg:a,headerHeight:i,headerPadding:d,headerColor:l,footerPadding:c,fontSize:u,bodyBg:p,headerBg:g}=e;return{[o]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:p,"&, *":{boxSizing:"border-box"},[`&${o}-has-sider`]:{flexDirection:"row",[`> ${o}, > ${o}-content`]:{width:0}},[`${o}-header, &${o}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${o}-header`]:{height:i,padding:d,color:l,lineHeight:r.unit(i),background:g,[`${t}-menu`]:{lineHeight:"inherit"}},[`${o}-footer`]:{padding:c,color:n,fontSize:u,background:a},[`${o}-content`]:{flex:"auto",color:n,minHeight:0}}},Do=e=>{const{colorBgLayout:t,controlHeight:o,controlHeightLG:n,colorText:a,controlHeightSM:i,marginXXS:d,colorTextLightSolid:l,colorBgContainer:c}=e,u=n*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:o*2,headerPadding:`0 ${u}px`,headerColor:a,footerPadding:`${i}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:n+d*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:n,zeroTriggerHeight:n,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:a}},Bo=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];r.genStyleHooks("Layout",e=>[fa(e)],Do,{deprecatedTokens:Bo});const pa=e=>{const{componentCls:t,siderBg:o,motionDurationMid:n,motionDurationSlow:a,antCls:i,triggerHeight:d,triggerColor:l,triggerBg:c,headerHeight:u,zeroTriggerWidth:p,zeroTriggerHeight:g,borderRadiusLG:m,lightSiderBg:f,lightTriggerColor:v,lightTriggerBg:C,bodyBg:h}=e;return{[t]:{position:"relative",minWidth:0,background:o,transition:`all ${n}, background 0s`,"&-has-trigger":{paddingBottom:d},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:d,color:l,lineHeight:r.unit(d),textAlign:"center",background:c,cursor:"pointer",transition:`all ${n}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:u,insetInlineEnd:e.calc(p).mul(-1).equal(),zIndex:1,width:p,height:g,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:o,borderRadius:`0 ${r.unit(m)} ${r.unit(m)} 0`,cursor:"pointer",transition:`background ${a} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${a}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(p).mul(-1).equal(),borderRadius:`${r.unit(m)} 0 0 ${r.unit(m)}`}},"&-light":{background:f,[`${t}-trigger`]:{color:v,background:C},[`${t}-zero-width-trigger`]:{color:v,background:C,border:`1px solid ${h}`,borderInlineStart:0}}}}},ma=r.genStyleHooks(["Layout","Sider"],e=>[pa(e)],Do,{deprecatedTokens:Bo});var ga=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};const Qn={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},va=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),xn=s.createContext({}),ha=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),ba=s.forwardRef((e,t)=>{const{prefixCls:o,className:n,trigger:a,children:i,defaultCollapsed:d=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:p=!1,width:g=200,collapsedWidth:m=80,zeroWidthTriggerStyle:f,breakpoint:v,onCollapse:C,onBreakpoint:h}=e,b=ga(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:S}=H.useContext(ua),[x,w]=H.useState("collapsed"in e?e.collapsed:d),[$,N]=H.useState(!1);H.useEffect(()=>{"collapsed"in e&&w(e.collapsed)},[e.collapsed]);const k=(X,de)=>{"collapsed"in e||w(X),C==null||C(X,de)},{getPrefixCls:_,direction:y}=H.useContext(r.ConfigContext),T=_("layout-sider",o),[R,O,P]=ma(T),I=H.useRef(null);I.current=X=>{N(X.matches),h==null||h(X.matches),x!==X.matches&&k(X.matches,"responsive")},H.useEffect(()=>{function X(he){var j;return(j=I.current)===null||j===void 0?void 0:j.call(I,he)}let de;return typeof(window==null?void 0:window.matchMedia)<"u"&&v&&v in Qn&&(de=window.matchMedia(`screen and (max-width: ${Qn[v]})`),r.addMediaQueryListener(de,X),X(de)),()=>{r.removeMediaQueryListener(de,X)}},[v]),H.useEffect(()=>{const X=ha("ant-sider-");return S.addSider(X),()=>S.removeSider(X)},[]);const E=()=>{k(!x,"clickTrigger")},D=r.omit(b,["collapsed"]),B=x?m:g,K=va(B)?`${B}px`:String(B),M=parseFloat(String(m||0))===0?s.createElement("span",{onClick:E,className:r.cn(`${T}-zero-width-trigger`,`${T}-zero-width-trigger-${p?"right":"left"}`),style:f},a||s.createElement(To,null)):null,A=y==="rtl"==!p,Y={expanded:A?s.createElement(r.RefIcon$2,null):s.createElement(r.RefIcon$1,null),collapsed:A?s.createElement(r.RefIcon$1,null):s.createElement(r.RefIcon$2,null)}[x?"collapsed":"expanded"],J=a!==null?M||s.createElement("div",{className:`${T}-trigger`,onClick:E,style:{width:K}},a||Y):null,oe=Object.assign(Object.assign({},c),{flex:`0 0 ${K}`,maxWidth:K,minWidth:K,width:K}),re=r.cn(T,`${T}-${l}`,{[`${T}-collapsed`]:!!x,[`${T}-has-trigger`]:u&&a!==null&&!M,[`${T}-below`]:!!$,[`${T}-zero-width`]:parseFloat(K)===0},n,O,P),Z=s.useMemo(()=>({siderCollapsed:x}),[x]);return R(s.createElement(xn.Provider,{value:Z},s.createElement("aside",Object.assign({className:re},D,{style:oe,ref:t}),s.createElement("div",{className:`${T}-children`},i),u||$&&M?J:null)))});process.env.NODE_ENV!=="production"&&(ba.displayName="Sider");const zt=H.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var ya=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};const Ko=e=>{const{prefixCls:t,className:o,dashed:n}=e,a=ya(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=s.useContext(r.ConfigContext),d=i("menu",t),l=r.cn({[`${d}-item-divider-dashed`]:!!n},o);return s.createElement(r.Divider,Object.assign({className:l},a))},Mo=e=>{var t;const{className:o,children:n,icon:a,title:i,danger:d,extra:l}=e,{prefixCls:c,firstLevel:u,direction:p,disableMenuItemTitleTooltip:g,inlineCollapsed:m}=s.useContext(zt),f=x=>{const w=n==null?void 0:n[0],$=s.createElement("span",{className:r.cn(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!l||l===0})},n);return(!a||s.isValidElement(n)&&n.type==="span")&&n&&x&&u&&typeof w=="string"?s.createElement("div",{className:`${c}-inline-collapsed-noicon`},w.charAt(0)):$},{siderCollapsed:v}=s.useContext(xn);let C=i;typeof i>"u"?C=u?n:"":i===!1&&(C="");const h={title:C};!v&&!m&&(h.title=null,h.open=!1);const b=r.toArray(n).length;let S=s.createElement(r.MenuItem,Object.assign({},r.omit(e,["title","icon","danger"]),{className:r.cn({[`${c}-item-danger`]:d,[`${c}-item-only-child`]:(a?b+1:b)===1},o),title:typeof i=="string"?i:void 0}),r.cloneElement(a,{className:r.cn(s.isValidElement(a)?(t=a.props)===null||t===void 0?void 0:t.className:"",`${c}-item-icon`)}),f(m));return g||(S=s.createElement(r.Tooltip,Object.assign({},h,{placement:p==="rtl"?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),S)),S};var Ca=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]]);return o};const jt=s.createContext(null),zo=s.forwardRef((e,t)=>{const{children:o}=e,n=Ca(e,["children"]),a=s.useContext(jt),i=s.useMemo(()=>Object.assign(Object.assign({},a),n),[a,n.prefixCls,n.mode,n.selectable,n.rootClassName]),d=r.supportNodeRef(o),l=r.useComposeRef(t,d?r.getNodeRef(o):null);return s.createElement(jt.Provider,{value:i},s.createElement(r.ContextIsolator,{space:!0},d?s.cloneElement(o,{ref:l}):o))}),xa=e=>{const{componentCls:t,motionDurationSlow:o,horizontalLineHeight:n,colorSplit:a,lineWidth:i,lineType:d,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:n,border:0,borderBottom:`${r.unit(i)} ${d} ${a}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
2
2
  > ${t}-item-active,
3
3
  > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${o}`,`background ${o}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},Sa=({componentCls:e,menuArrowOffset:t,calc:o})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
4
4
  ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${r.unit(o(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${r.unit(t)})`}}}}),Jn=e=>Object.assign({},r.genFocusOutline(e)),eo=(e,t)=>{const{componentCls:o,itemColor:n,itemSelectedColor:a,subMenuItemSelectedColor:i,groupTitleColor:d,itemBg:l,subMenuItemBg:c,itemSelectedBg:u,activeBarHeight:p,activeBarWidth:g,activeBarBorderWidth:m,motionDurationSlow:f,motionEaseInOut:v,motionEaseOut:C,itemPaddingInline:h,motionDurationMid:b,itemHoverColor:S,lineType:x,colorSplit:w,itemDisabledColor:$,dangerItemColor:N,dangerItemHoverColor:k,dangerItemSelectedColor:_,dangerItemActiveBg:y,dangerItemSelectedBg:T,popupBg:R,itemHoverBg:O,itemActiveBg:P,menuSubMenuBg:I,horizontalItemSelectedColor:E,horizontalItemSelectedBg:D,horizontalItemBorderRadius:B,horizontalItemHoverBg:K}=e;return{[`${o}-${t}, ${o}-${t} > ${o}`]:{color:n,background:l,[`&${o}-root:focus-visible`]:Object.assign({},Jn(e)),[`${o}-item`]:{"&-group-title, &-extra":{color:d}},[`${o}-submenu-selected > ${o}-submenu-title`]:{color:i},[`${o}-item, ${o}-submenu-title`]:{color:n,[`&:not(${o}-item-disabled):focus-visible`]:Object.assign({},Jn(e))},[`${o}-item-disabled, ${o}-submenu-disabled`]:{color:`${$} !important`},[`${o}-item:not(${o}-item-selected):not(${o}-submenu-selected)`]:{[`&:hover, > ${o}-submenu-title:hover`]:{color:S}},[`&:not(${o}-horizontal)`]:{[`${o}-item:not(${o}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:P}},[`${o}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:P}}},[`${o}-item-danger`]:{color:N,[`&${o}-item:hover`]:{[`&:not(${o}-item-selected):not(${o}-submenu-selected)`]:{color:k}},[`&${o}-item:active`]:{background:y}},[`${o}-item a`]:{"&, &:hover":{color:"inherit"}},[`${o}-item-selected`]:{color:a,[`&${o}-item-danger`]:{color:_},"a, a:hover":{color:"inherit"}},[`& ${o}-item-selected`]:{backgroundColor:u,[`&${o}-item-danger`]:{backgroundColor:T}},[`&${o}-submenu > ${o}`]:{backgroundColor:I},[`&${o}-popup > ${o}`]:{backgroundColor:R},[`&${o}-submenu-popup > ${o}`]:{backgroundColor:R},[`&${o}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${o}-item, > ${o}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:B,"&::after":{position:"absolute",insetInline:h,bottom:0,borderBottom:`${r.unit(p)} solid transparent`,transition:`border-color ${f} ${v}`,content:'""'},"&:hover, &-active, &-open":{background:K,"&::after":{borderBottomWidth:p,borderBottomColor:E}},"&-selected":{color:E,backgroundColor:D,"&:hover":{backgroundColor:D},"&::after":{borderBottomWidth:p,borderBottomColor:E}}}}),[`&${o}-root`]:{[`&${o}-inline, &${o}-vertical`]:{borderInlineEnd:`${r.unit(m)} ${x} ${w}`}},[`&${o}-inline`]:{[`${o}-sub${o}-inline`]:{background:c},[`${o}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${r.unit(g)} solid ${a}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${b} ${C}`,`opacity ${b} ${C}`].join(","),content:'""'},[`&${o}-item-danger`]:{"&::after":{borderInlineEndColor:_}}},[`${o}-selected, ${o}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${b} ${v}`,`opacity ${b} ${v}`].join(",")}}}}}},to=e=>{const{componentCls:t,itemHeight:o,itemMarginInline:n,padding:a,menuArrowSize:i,marginXS:d,itemMarginBlock:l,itemWidth:c,itemPaddingInline:u}=e,p=e.calc(i).add(a).add(d).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:o,lineHeight:r.unit(o),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:l,width:c},[`> ${t}-item,