@bwg-ui/core 1.1.11 → 1.1.13
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.
- package/dist/chunks/BwgLargeUploader-CgrJUwFW.cjs +3 -0
- package/dist/chunks/BwgLargeUploader-CgrJUwFW.cjs.map +1 -0
- package/dist/chunks/{BwgLargeUploader-B5EtYKUz.js → BwgLargeUploader-Nx2-wiD8.js} +802 -776
- package/dist/chunks/BwgLargeUploader-Nx2-wiD8.js.map +1 -0
- package/dist/chunks/{FileUtils-CaU9Bzu2.js → FileUtils-Bbz3AvQn.js} +2 -2
- package/dist/chunks/{FileUtils-CaU9Bzu2.js.map → FileUtils-Bbz3AvQn.js.map} +1 -1
- package/dist/chunks/FileUtils-D73GVmB8.cjs +2 -0
- package/dist/chunks/{FileUtils-BweAWoJt.cjs.map → FileUtils-D73GVmB8.cjs.map} +1 -1
- package/dist/chunks/SSOHandler-CZHPiuEh.js +25397 -0
- package/dist/chunks/SSOHandler-CZHPiuEh.js.map +1 -0
- package/dist/chunks/SSOHandler-rq0OGrpX.cjs +236 -0
- package/dist/chunks/SSOHandler-rq0OGrpX.cjs.map +1 -0
- package/dist/chunks/{SearchBoxContext-CY4tAQcg.js → SearchBoxContext-BxtHF9BO.js} +2 -2
- package/dist/chunks/{SearchBoxContext-CY4tAQcg.js.map → SearchBoxContext-BxtHF9BO.js.map} +1 -1
- package/dist/chunks/SearchBoxContext-Cpr9xa1S.cjs +2 -0
- package/dist/chunks/{SearchBoxContext-DDBY44Wr.cjs.map → SearchBoxContext-Cpr9xa1S.cjs.map} +1 -1
- package/dist/chunks/TabContainer-B7-6AQXV.js +254 -0
- package/dist/chunks/TabContainer-B7-6AQXV.js.map +1 -0
- package/dist/chunks/TabContainer-Dx2PVShz.cjs +36 -0
- package/dist/chunks/TabContainer-Dx2PVShz.cjs.map +1 -0
- package/dist/chunks/_commonjsHelpers-DKOUU3wS.cjs +2 -0
- package/dist/chunks/_commonjsHelpers-DKOUU3wS.cjs.map +1 -0
- package/dist/chunks/_commonjsHelpers-DaMA6jEr.js +9 -0
- package/dist/chunks/_commonjsHelpers-DaMA6jEr.js.map +1 -0
- package/dist/chunks/apiUtils-C45AWfu-.js +957 -0
- package/dist/chunks/apiUtils-C45AWfu-.js.map +1 -0
- package/dist/chunks/apiUtils-Cbg6NQLv.cjs +4 -0
- package/dist/chunks/apiUtils-Cbg6NQLv.cjs.map +1 -0
- package/dist/chunks/codeStore-BGLhSpAM.cjs +2 -0
- package/dist/chunks/{codeStore-KPL92rcv.cjs.map → codeStore-BGLhSpAM.cjs.map} +1 -1
- package/dist/chunks/{codeStore-IIp25egq.js → codeStore-BzT5wSd9.js} +2 -2
- package/dist/chunks/{codeStore-IIp25egq.js.map → codeStore-BzT5wSd9.js.map} +1 -1
- package/dist/chunks/commonUtils-BH6QwGUb.cjs +2 -0
- package/dist/chunks/commonUtils-BH6QwGUb.cjs.map +1 -0
- package/dist/chunks/{commonUtils-Cvx6_eK2.js → commonUtils-Bb16Yqjk.js} +24 -25
- package/dist/chunks/commonUtils-Bb16Yqjk.js.map +1 -0
- package/dist/chunks/envUtils-C9Gf5aek.js.map +1 -1
- package/dist/chunks/envUtils-CduTHoHu.cjs.map +1 -1
- package/dist/chunks/favoriteStore-3YceyayF.cjs +2 -0
- package/dist/chunks/favoriteStore-3YceyayF.cjs.map +1 -0
- package/dist/chunks/favoriteStore-C9utQ6sm.js +112 -0
- package/dist/chunks/favoriteStore-C9utQ6sm.js.map +1 -0
- package/dist/chunks/{popupStore-D8RI04bU.js → popupStore-DmFbkkjd.js} +19 -18
- package/dist/chunks/popupStore-DmFbkkjd.js.map +1 -0
- package/dist/chunks/popupStore-DnWLaQ70.cjs +2 -0
- package/dist/chunks/popupStore-DnWLaQ70.cjs.map +1 -0
- package/dist/chunks/usePopup-C8FrbrDD.cjs +2 -0
- package/dist/chunks/{UtilsContext-JSHHfnWl.js.map → usePopup-C8FrbrDD.cjs.map} +1 -1
- package/dist/chunks/{UtilsContext-JSHHfnWl.js → usePopup-pfh-ajfP.js} +82 -82
- package/dist/chunks/usePopup-pfh-ajfP.js.map +1 -0
- package/dist/components/common/BwgDetail.d.ts +5 -0
- package/dist/components/common/BwgDetail.d.ts.map +1 -0
- package/dist/components/common/BwgDrawer.d.ts.map +1 -1
- package/dist/components/common/BwgEditor.d.ts +7 -0
- package/dist/components/common/BwgEditor.d.ts.map +1 -0
- package/dist/components/common/BwgView.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.d.ts +2 -0
- package/dist/components/common/index.d.ts.map +1 -1
- package/dist/components/common/index.js +23 -21
- package/dist/components/core/BwgDatePicker.d.ts +1 -1
- package/dist/components/core/BwgDatePicker.d.ts.map +1 -1
- package/dist/components/core/BwgRangePicker.d.ts +1 -1
- package/dist/components/core/BwgRangePicker.d.ts.map +1 -1
- package/dist/components/core/BwgUploader.d.ts.map +1 -1
- package/dist/components/core/index.cjs +1 -1
- package/dist/components/core/index.js +1 -1
- package/dist/components/layout/ErrorBound.d.ts +29 -0
- package/dist/components/layout/ErrorBound.d.ts.map +1 -0
- package/dist/components/layout/TabContainer.d.ts +9 -0
- package/dist/components/layout/TabContainer.d.ts.map +1 -0
- package/dist/components/layout/index.cjs +1 -1
- package/dist/components/layout/index.d.ts +3 -1
- package/dist/components/layout/index.d.ts.map +1 -1
- package/dist/components/layout/index.js +6 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +301 -296
- package/dist/provider/index.cjs +1 -1
- package/dist/provider/index.js +2 -2
- package/dist/stores/favoriteStore.d.ts.map +1 -1
- package/dist/stores/index.cjs +1 -1
- package/dist/stores/index.cjs.map +1 -1
- package/dist/stores/index.d.ts +3 -1
- package/dist/stores/index.d.ts.map +1 -1
- package/dist/stores/index.js +18 -16
- package/dist/stores/index.js.map +1 -1
- package/dist/stores/loadingStore.d.ts +9 -0
- package/dist/stores/loadingStore.d.ts.map +1 -0
- package/dist/stores/menuViewStore.d.ts +28 -3
- package/dist/stores/menuViewStore.d.ts.map +1 -1
- package/dist/stores/popupStore.d.ts.map +1 -1
- package/dist/styles/assets/images/header/icon/ico-bell.svg +3 -3
- package/dist/styles/assets/images/header/icon/ico-logout.svg +10 -10
- package/dist/styles/assets/images/header/icon/ico-setting.svg +4 -4
- package/dist/styles/assets/images/header/icon/ico-sidebar-arrow.svg +3 -3
- package/dist/utils/apiUtils.d.ts +3 -2
- package/dist/utils/apiUtils.d.ts.map +1 -1
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.js +3 -3
- package/dist/utils/notificationUtils.d.ts +0 -1
- package/dist/utils/notificationUtils.d.ts.map +1 -1
- package/package.json +6 -7
- package/dist/chunks/BwgLargeUploader-B5EtYKUz.js.map +0 -1
- package/dist/chunks/BwgLargeUploader-BPJcShgF.cjs +0 -3
- package/dist/chunks/BwgLargeUploader-BPJcShgF.cjs.map +0 -1
- package/dist/chunks/FileUtils-BweAWoJt.cjs +0 -2
- package/dist/chunks/PublicLayout-3v46YZdi.cjs +0 -36
- package/dist/chunks/PublicLayout-3v46YZdi.cjs.map +0 -1
- package/dist/chunks/PublicLayout-B4wGo0ut.js +0 -139
- package/dist/chunks/PublicLayout-B4wGo0ut.js.map +0 -1
- package/dist/chunks/SSOHandler-C72Do3RD.js +0 -15717
- package/dist/chunks/SSOHandler-C72Do3RD.js.map +0 -1
- package/dist/chunks/SSOHandler-ColywAGZ.cjs +0 -184
- package/dist/chunks/SSOHandler-ColywAGZ.cjs.map +0 -1
- package/dist/chunks/SearchBoxContext-DDBY44Wr.cjs +0 -2
- package/dist/chunks/UtilsContext-C4tlOndT.cjs +0 -2
- package/dist/chunks/UtilsContext-C4tlOndT.cjs.map +0 -1
- package/dist/chunks/_commonjsHelpers-C6fGbg64.js +0 -7
- package/dist/chunks/_commonjsHelpers-C6fGbg64.js.map +0 -1
- package/dist/chunks/_commonjsHelpers-DwGv2jUC.cjs +0 -2
- package/dist/chunks/_commonjsHelpers-DwGv2jUC.cjs.map +0 -1
- package/dist/chunks/codeStore-KPL92rcv.cjs +0 -2
- package/dist/chunks/commonUtils-Cvx6_eK2.js.map +0 -1
- package/dist/chunks/commonUtils-DaFg0y7C.cjs +0 -2
- package/dist/chunks/commonUtils-DaFg0y7C.cjs.map +0 -1
- package/dist/chunks/menuViewStore-DuS0VmkB.cjs +0 -3
- package/dist/chunks/menuViewStore-DuS0VmkB.cjs.map +0 -1
- package/dist/chunks/menuViewStore-OKcSQq-s.js +0 -343
- package/dist/chunks/menuViewStore-OKcSQq-s.js.map +0 -1
- package/dist/chunks/popupStore-BEoWGajT.cjs +0 -2
- package/dist/chunks/popupStore-BEoWGajT.cjs.map +0 -1
- package/dist/chunks/popupStore-D8RI04bU.js.map +0 -1
- package/dist/chunks/serviceConfig-9dHegQIK.cjs +0 -3
- package/dist/chunks/serviceConfig-9dHegQIK.cjs.map +0 -1
- package/dist/chunks/serviceConfig-Dhe7neaj.js +0 -709
- package/dist/chunks/serviceConfig-Dhe7neaj.js.map +0 -1
- package/scripts/gen-component-registry.js +0 -138
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
"use strict";const P=require("./jsx-runtime-CeSfJrVB.cjs"),R=require("react"),Z=require("antd"),dt=require("@ant-design/icons"),Ft=require("./serviceConfig-9dHegQIK.cjs"),Li=require("./SearchBoxContext-DDBY44Wr.cjs"),St=require("realgrid"),ps=require("realgrid-react"),_o=require("react-dom"),Wd=require("react-rnd"),Hi=require("./_commonjsHelpers-DwGv2jUC.cjs"),ys=require("./menuViewStore-DuS0VmkB.cjs"),qd=require("./LoadingOverlay-NX9Mo_6n.cjs"),Ud=require("./envUtils-CduTHoHu.cjs"),Kd=require("./AuthContext-CXng9fj0.cjs"),bs=require("react-router-dom");function gc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const v=gc(R),Rn=gc(dt),Gd=({grpId:e,menuId:t,btnEvent:r,layout:n="horizontal",size:o="middle",style:a,className:i,onButtonClick:s})=>{const l=Li.useServiceCodeValue("AUTH_BTNS"),{user:c}=Ft.useUserStore(),[u,d]=R.useState([]),[f,m]=R.useState(!0),[g,p]=R.useState(null),[h,b]=R.useState({}),y=async()=>{try{m(!0),p(null),console.log("@@ 커스텀버튼그룹 영역 조회시작",e,t);const x=await Ft.callService(l,{userId:c?.userId,crprCd:c?.crprCd,grpId:e.toUpperCase(),menuId:t});if(console.log("@@ 커스텀버튼그룹 영역 조회결과",x),x?.data&&Array.isArray(x.data)){const w=x.data.sort((C,j)=>C.btnSq-j.btnSq);d(w)}else d([])}catch(x){console.error("버튼 권한 조회 실패:",x),p("버튼 권한을 조회하는 중 오류가 발생했습니다."),d([])}finally{m(!1)}};R.useEffect(()=>{y()},[e,t]);const S=async(x,w)=>{b(C=>({...C,[x]:{loading:!0}}));try{const C=r?.[x];C?await C():console.warn(`버튼 이벤트 핸들러를 찾을 수 없습니다: ${x}`),s&&s(x,w,e)}catch(C){console.error("버튼 이벤트 실행 실패:",C),Z.message.error("작업 중 오류가 발생했습니다.")}finally{b(C=>({...C,[x]:{loading:!1}}))}},$=x=>{const w=h[x.btnId]||{loading:!1};return P.jsxRuntimeExports.jsxs(Z.Button,{size:o,loading:w.loading,onClick:()=>S(x.btnId,x.btnNm),className:"bwg-btn",style:{...x.iconVal&&{display:"flex",alignItems:"center",gap:"4px"}},children:[x.iconVal&&P.jsxRuntimeExports.jsxs(P.jsxRuntimeExports.Fragment,{children:[x.iconType==="ANTD"&&Rn[x.iconVal]&&R.createElement(Rn[x.iconVal],{style:{fontSize:"14px"}}),x.iconType!=="ANTD"&&P.jsxRuntimeExports.jsx("span",{className:x.iconVal,style:{fontSize:"14px"}})]}),x.btnNm]},x.btnId)};return f?P.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${i||""}`,style:a,children:P.jsxRuntimeExports.jsx(Z.Space,{direction:n==="vertical"?"vertical":"horizontal",size:o,children:P.jsxRuntimeExports.jsx(Z.Button,{loading:!0,size:o,children:"권한 조회 중..."})})}):g?P.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${i||""}`,style:a,children:P.jsxRuntimeExports.jsx(Z.Alert,{message:"권한 오류",description:g,type:"error",showIcon:!0,style:{minHeight:"40px"}})}):u.length===0?P.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${i||""}`,style:a,children:P.jsxRuntimeExports.jsx(Z.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})}):P.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${i||""}`,style:a,children:P.jsxRuntimeExports.jsx(Z.Flex,{gap:3,children:u.map($)})})},Yd=({content:e,layout:t="flex",gap:r=16,minWidth:n=120,maxWidth:o=300,style:a,className:i})=>{if(!(Array.isArray(e)&&e.length>0&&Array.isArray(e[0])))return P.jsxRuntimeExports.jsx("div",{style:a,className:i,children:e});const l=e.filter(m=>m&&m.length>0),c=R.useMemo(()=>{const m=l[0];if(!m||m.length===0)return{totalCols:0,baseWidth:0};let g=0;const p=[];m.forEach(b=>{const y=b,S=y?.props?.["data-colspan"]?parseInt(String(y.props["data-colspan"])):1;g+=S,p.push(S)});const h=g>0?100/g:0;return{totalCols:g,baseWidth:h,componentWidths:p}},[l]),u=(m,g,p)=>{const h=m,b=h?.props?.["data-colspan"]?parseInt(String(h.props["data-colspan"])):1;switch(t){case"equal":return 100/p;case"auto":return 100/p;case"grid":return 100/c.totalCols*b;case"flex":default:const y=c.baseWidth*b;return Math.max(n,Math.min(o,y))}},d=m=>{if(!m||typeof m!="object")return m;const g=m;if(!g.props)return m;const h={...g.props.style||{},width:"100%"};return R.cloneElement(g,{...g.props,style:h})},f=(m,g)=>{if(!m||m.length===0)return null;const p=m.length;return t==="grid"?P.jsxRuntimeExports.jsx("div",{className:"erp-cmm-form",style:{display:"grid",gridTemplateColumns:`repeat(${c.totalCols}, 1fr)`,gap:`${r}px`,width:"100%"},children:m.map((h,b)=>{const y=h?.props?.["data-colspan"]?parseInt(String(h.props["data-colspan"])):1,S=d(h);return P.jsxRuntimeExports.jsx("div",{style:{gridColumn:`span ${y}`,minWidth:`${n}px`},className:"form-component-wrapper",children:S},`row-${g}-col-${b}`)})},`row-${g}`):P.jsxRuntimeExports.jsx(Z.Flex,{gap:r,className:"erp-cmm-form",wrap:t==="auto"?"wrap":"nowrap",style:{width:"100%"},children:m.map((h,b)=>{const y=u(h,b,p),S=d(h),$=t==="flex"?{width:`${y}px`,minWidth:`${n}px`,maxWidth:`${o}px`,flexShrink:0}:{width:`${y}%`,minWidth:`${n}px`};return P.jsxRuntimeExports.jsx("div",{style:$,className:"form-component-wrapper",children:S},`row-${g}-col-${b}`)})},`row-${g}`)};return P.jsxRuntimeExports.jsx(Z.Flex,{gap:"small",vertical:!0,style:a,className:i,children:l.map((m,g)=>f(m,g+1))})},Xd=({children:e,...t})=>P.jsxRuntimeExports.jsx(Z.Col,{...t,className:"bwg-col",children:e});var hn={},da={exports:{}},xs;function Lo(){return xs||(xs=1,(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(da)),da.exports}var vn={},Cs;function Qd(){if(Cs)return vn;Cs=1,Object.defineProperty(vn,"__esModule",{value:!0}),vn.default=void 0;var e={items_per_page:"/ 페이지",jump_to:"이동하기",jump_to_confirm:"확인하다",page:"페이지",prev_page:"이전 페이지",next_page:"다음 페이지",prev_5:"이전 5 페이지",next_5:"다음 5 페이지",prev_3:"이전 3 페이지",next_3:"다음 3 페이지",page_size:"페이지 크기"};return vn.default=e,vn}var gn={},mn={},pn={},fa={exports:{}},ha={exports:{}},va={exports:{}},ga={exports:{}},ws;function mc(){return ws||(ws=1,(function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ga)),ga.exports}var ma={exports:{}},Ss;function Zd(){return Ss||(Ss=1,(function(e){var t=mc().default;function r(n,o){if(t(n)!="object"||!n)return n;var a=n[Symbol.toPrimitive];if(a!==void 0){var i=a.call(n,o||"default");if(t(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(o==="string"?String:Number)(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(ma)),ma.exports}var Es;function Jd(){return Es||(Es=1,(function(e){var t=mc().default,r=Zd();function n(o){var a=r(o,"string");return t(a)=="symbol"?a:a+""}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(va)),va.exports}var Rs;function ef(){return Rs||(Rs=1,(function(e){var t=Jd();function r(n,o,a){return(o=t(o))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a,n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(ha)),ha.exports}var $s;function tf(){return $s||($s=1,(function(e){var t=ef();function r(o,a){var i=Object.keys(o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);a&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable})),i.push.apply(i,s)}return i}function n(o){for(var a=1;a<arguments.length;a++){var i=arguments[a]!=null?arguments[a]:{};a%2?r(Object(i),!0).forEach(function(s){t(o,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach(function(s){Object.defineProperty(o,s,Object.getOwnPropertyDescriptor(i,s))})}return o}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(fa)),fa.exports}var yn={},Os;function rf(){return Os||(Os=1,Object.defineProperty(yn,"__esModule",{value:!0}),yn.commonLocale=void 0,yn.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),yn}var js;function nf(){if(js)return pn;js=1;var e=Lo().default;Object.defineProperty(pn,"__esModule",{value:!0}),pn.default=void 0;var t=e(tf()),r=rf(),n=(0,t.default)((0,t.default)({},r.commonLocale),{},{locale:"ko_KR",today:"오늘",now:"현재 시각",backToToday:"오늘로 돌아가기",ok:"확인",clear:"지우기",week:"주",month:"월",year:"년",timeSelect:"시간 선택",dateSelect:"날짜 선택",monthSelect:"달 선택",yearSelect:"연 선택",decadeSelect:"연대 선택",yearFormat:"YYYY년",dateFormat:"YYYY-MM-DD",dateTimeFormat:"YYYY-MM-DD HH:mm:ss",monthBeforeYear:!1,previousMonth:"이전 달 (PageUp)",nextMonth:"다음 달 (PageDown)",previousYear:"이전 해 (Control + left)",nextYear:"다음 해 (Control + right)",previousDecade:"이전 연대",nextDecade:"다음 연대",previousCentury:"이전 세기",nextCentury:"다음 세기"});return pn.default=n,pn}var bn={},_s;function pc(){if(_s)return bn;_s=1,Object.defineProperty(bn,"__esModule",{value:!0}),bn.default=void 0;const e={placeholder:"시간 선택",rangePlaceholder:["시작 시간","종료 시간"]};return bn.default=e,bn}var Ps;function yc(){if(Ps)return mn;Ps=1;var e=Lo().default;Object.defineProperty(mn,"__esModule",{value:!0}),mn.default=void 0;var t=e(nf()),r=e(pc());const n={lang:Object.assign({placeholder:"날짜 선택",yearPlaceholder:"연도 선택",quarterPlaceholder:"분기 선택",monthPlaceholder:"월 선택",weekPlaceholder:"주 선택",rangePlaceholder:["시작일","종료일"],rangeYearPlaceholder:["시작 연도","종료 연도"],rangeMonthPlaceholder:["시작 월","종료 월"],rangeQuarterPlaceholder:["시작 분기","종료 분기"],rangeWeekPlaceholder:["시작 주","종료 주"],shortWeekDays:["일","월","화","수","목","금","토"],shortMonths:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},t.default),timePickerLocale:Object.assign({},r.default)};return mn.default=n,mn}var Ts;function of(){if(Ts)return gn;Ts=1;var e=Lo().default;Object.defineProperty(gn,"__esModule",{value:!0}),gn.default=void 0;var t=e(yc());return gn.default=t.default,gn}var As;function af(){if(As)return hn;As=1;var e=Lo().default;Object.defineProperty(hn,"__esModule",{value:!0}),hn.default=void 0;var t=e(Qd()),r=e(of()),n=e(yc()),o=e(pc());const a="${label} 유효하지 않은 ${type}",i={locale:"ko",Pagination:t.default,DatePicker:n.default,TimePicker:o.default,Calendar:r.default,global:{placeholder:"선택하세요",close:"닫기"},Table:{filterTitle:"필터 메뉴",filterConfirm:"확인",filterReset:"초기화",filterEmptyText:"필터 없음",filterCheckAll:"전체 선택",filterSearchPlaceholder:"필터 검색",emptyText:"데이터 없음",selectAll:"전체 선택",selectInvert:"선택 반전",selectNone:"없음",selectionAll:"전체 선택",sortTitle:"정렬",expand:"펼치기",collapse:"접기",triggerDesc:"내림차순으로 정렬하기",triggerAsc:"오름차순으로 정렬하기",cancelSort:"정렬 취소하기"},Tour:{Next:"다음",Previous:"이전",Finish:"종료"},Modal:{okText:"확인",cancelText:"취소",justOkText:"확인"},Popconfirm:{okText:"확인",cancelText:"취소"},Transfer:{titles:["",""],searchPlaceholder:"여기에 검색하세요",itemUnit:"개",itemsUnit:"개",remove:"삭제",selectCurrent:"현재 페이지 선택",removeCurrent:"현재 페이지 삭제",selectAll:"전체 선택",removeAll:"전체 삭제",selectInvert:"선택 반전"},Upload:{uploading:"업로드 중...",removeFile:"파일 삭제",uploadError:"업로드 실패",previewFile:"파일 미리보기",downloadFile:"파일 다운로드"},Empty:{description:"데이터 없음"},Icon:{icon:"아이콘"},Text:{edit:"수정",copy:"복사",copied:"복사 됨",expand:"확장"},Form:{optional:"(선택사항)",defaultValidateMessages:{default:"필드 유효성 검사 오류 ${label}",required:"${label} 값을 입력해 주세요",enum:"${label} [${enum}] 중에 하나여야 합니다",whitespace:"${label} 비워둘 수 없습니다",date:{format:"${label} 유효하지 않은 날짜 형식입니다",parse:"${label} 날짜 형식으로 변환될 수 없습니다",invalid:"${label} 유효하지 않은 날짜입니다"},types:{string:a,method:a,array:a,object:a,number:a,date:a,boolean:a,integer:a,float:a,regexp:a,email:a,url:a,hex:a},string:{len:"${label} ${len}글자여야 합니다",min:"${label} 적어도 ${min}글자 이상이어야 합니다",max:"${label} ${max}글자 이하여야 합니다",range:"${label} ${min}-${max}글자 사이어야 합니다"},number:{len:"${label} 값은 ${len}이어야 합니다",min:"${label} 최솟값은 ${min}입니다",max:"${label} 최댓값은 ${max}입니다",range:"${label} 값은 ${min}-${max} 사이어야 합니다"},array:{len:"${len}이어야 합니다 ${label}",min:"최소 ${min}이어야 합니다 ${label}",max:"최대 ${max}이어야 합니다 ${label}",range:"${label} ${min}-${max} 사이어야 합니다"},pattern:{mismatch:"${label} ${pattern} 패턴과 일치하지 않습니다"}}},Image:{preview:"미리보기"},QRCode:{expired:"만료된 QR 코드",refresh:"새로고침"},ColorPicker:{presetEmpty:"미정",transparent:"투명",singleColor:"단색",gradientColor:"그라데이션"}};return hn.default=i,hn}var pa,Ms;function sf(){return Ms||(Ms=1,pa=af()),pa}var lf=sf();const bc=Hi.getDefaultExportFromCjs(lf),xc=({children:e,customTheme:t,customComponentSize:r="middle",layout:n="comfortable",getPopupContainer:o})=>{const i=(()=>{const l={token:{colorPrimary:"#1890ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1890ff",fontFamily:'"Noto Sans KR", sans-serif',fontSize:14,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)",boxShadowSecondary:"0 2px 4px rgba(0, 0, 0, 0.12)"},algorithm:Z.theme.defaultAlgorithm};switch(n){case"compact":return{...l,token:{...l.token,padding:8,margin:8,borderRadius:4,fontSize:12,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}};case"spacious":return{...l,token:{...l.token,padding:24,margin:24,borderRadius:8,fontSize:16,fontSizeHeading1:44,fontSizeHeading2:36,fontSizeHeading3:28,fontSizeHeading4:24,fontSizeHeading5:20}};default:return{...l,token:{...l.token,padding:16,margin:16,borderRadius:6,fontSize:14,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}}}})(),s={...i,...t,token:{...i.token,...t?.token},components:{Checkbox:{colorPrimary:"var(--check-primary)",colorPrimaryBorder:"var(--check-primary)",colorPrimaryHover:"var(--check-primary-active)",colorText:"var(--text-primary)"},Radio:{colorPrimary:"var(--check-primary)",colorPrimaryActive:"var(--check-primary-active)",colorPrimaryHover:"var(--check-primary-active)"},Tree:{nodeHoverBg:"var(--tree-selected-bg)",nodeHoverColor:"var(--primary-color)",nodeSelectedBg:"var(--tree-selected-bg)",nodeSelectedColor:"var(--primary-color)",colorText:"var(--text-primary)"},...t?.components??{}}};return P.jsxRuntimeExports.jsx(Z.ConfigProvider,{locale:bc,theme:s,componentSize:r,space:{size:r},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},getPopupContainer:o,children:e})},zi=({title:e,icons:t,tooltip:r,iconVisible:n=!0,paddingBottom:o=0,marginBottom:a=0,children:i})=>{const s=Rn.AppstoreTwoTone;return R.useMemo(()=>t?.type==="antd"&&t.icon&&Rn[t.icon]||s,[t?.type,t?.icon]),P.jsxRuntimeExports.jsx(Z.Flex,{vertical:!0,style:{width:"100%"},children:P.jsxRuntimeExports.jsxs("div",{className:`bwg-title-box ${o?`pb${o}`:""} ${a?`mb${a}`:""}`,style:{display:"flex",justifyContent:"space-between"},children:[P.jsxRuntimeExports.jsx("div",{className:"bwg-title-box-left",children:P.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[P.jsxRuntimeExports.jsx(Z.Typography.Title,{level:4,children:P.jsxRuntimeExports.jsx("span",{children:e})}),r&&P.jsxRuntimeExports.jsx(Z.Tooltip,{title:r.title,placement:r.placement,children:P.jsxRuntimeExports.jsx(Rn.QuestionCircleTwoTone,{style:{marginLeft:5}})})]})}),P.jsxRuntimeExports.jsx("div",{className:"bwg-title-box-right",children:P.jsxRuntimeExports.jsx(Z.Flex,{gap:6,children:i})})]})})},{Panel:Fs}=Z.Collapse,Bi=R.forwardRef(({reqRows:e,subRows:t,border:r=!1,labelDisplay:n,header:o},a)=>{const[i]=Z.Form.useForm(),[s,l]=R.useState("1"),c=()=>n?{flex:n.md||n.lg||n.sm||"100px"}:{flex:"100px"};R.useImperativeHandle(a,()=>({getFormData:()=>i.getFieldsValue(),setFormData:d=>{i.setFieldsValue(d)},resetForm:()=>{i.resetFields()},validateForm:async()=>{try{return{success:!0,data:await i.validateFields()}}catch(d){return{success:!1,error:d}}}}));const u=()=>{l(d=>d.includes("subRows")?d.filter(f=>f!=="subRows"):[...d,"subRows"])};return console.log({reqRows:e,subRows:t}),P.jsxRuntimeExports.jsxs("div",{style:r?{border:"1px solid #ddd",padding:"10px 12px",borderRadius:"8px",marginBottom:"10px"}:{},children:[o&&P.jsxRuntimeExports.jsx(zi,{title:o.title,children:o.buttons}),P.jsxRuntimeExports.jsx(Z.Form,{form:i,layout:"inline",className:"bwgview-header-form",labelCol:c(),labelAlign:"left",children:P.jsxRuntimeExports.jsxs("div",{style:{position:"relative",width:"100%"},children:[t&&P.jsxRuntimeExports.jsx("div",{style:{position:"absolute",top:"15px",left:"-9px",zIndex:10},children:s.includes("subRows")?P.jsxRuntimeExports.jsx(Z.Tooltip,{title:"접기",children:P.jsxRuntimeExports.jsx("span",{className:"search-collapsed-arrow",onClick:u,children:P.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:P.jsxRuntimeExports.jsx("path",{d:"M5.28321 0.986589C4.88285 0.482264 4.11715 0.482265 3.71679 0.986589L1.0243 4.37824C0.50404 5.0336 0.970753 6 1.80751 6L7.19249 6C8.02925 6 8.49596 5.0336 7.9757 4.37824L5.28321 0.986589Z",fill:"#AEB9C4"})})})}):P.jsxRuntimeExports.jsx(Z.Tooltip,{title:"펼치기",children:P.jsxRuntimeExports.jsx("span",{className:"search-collapsed-arrow",onClick:u,children:P.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:P.jsxRuntimeExports.jsx("path",{d:"M5.28321 5.01341C4.88285 5.51774 4.11715 5.51773 3.71679 5.01341L1.0243 1.62176C0.50404 0.966397 0.970753 1.64312e-07 1.80751 2.37464e-07L7.19249 7.08234e-07C8.02925 7.81386e-07 8.49596 0.966399 7.9757 1.62176L5.28321 5.01341Z",fill:"#AEB9C4"})})})})}),P.jsxRuntimeExports.jsx(Z.ConfigProvider,{theme:{components:{Collapse:{}}},children:P.jsxRuntimeExports.jsxs(Z.Collapse,{activeKey:["reqRows",...s.includes("subRows")?["subRows"]:[]],onChange:l,className:"searchbox-collapse",bordered:!1,ghost:!0,children:[e&&P.jsxRuntimeExports.jsx(Fs,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"disabled",children:e},"reqRows"),t&&P.jsxRuntimeExports.jsx(Fs,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"icon",children:t},"subRows")]})})]})})]})}),cf=({children:e,showSearchBox:t,showCloseButton:r=!0,showEyesButton:n=!0,shotSettingButton:o=!0,styles:a,...i})=>{const[s,l]=R.useState(!0),[c,u]=R.useState(()=>{const b=i.placement;return b==="left"||b==="right"||b==="top"||b==="bottom"?b:"bottom"}),[d,f]=R.useState(!1),g=(b=>{const y={wrapper:{...i.width&&{width:i.width},...i.height&&{height:i.height},margin:"0 auto"},content:{},header:{backgroundColor:"var(--drawer-header-bg)",color:"var(--text-primary)"}};switch(b){case"bottom":return{...y,wrapper:{...y.wrapper,borderRadius:"30px 30px 0 0"},content:{borderRadius:"30px 30px 0 0"},header:{...y.header,borderRadius:"30px 30px 0 0"}};case"top":return{...y,wrapper:{...y.wrapper,borderRadius:"0 0 30px 30px"},content:{borderRadius:"0 0 30px 30px"},header:{...y.header}};case"left":return{...y,wrapper:{...y.wrapper,borderRadius:"0 30px 0px 0"},content:{borderRadius:"0 30px 0px 0"},header:{...y.header,borderRadius:"0 30px 0 0"}};case"right":return{...y,wrapper:{...y.wrapper,borderRadius:"30px 0 0 0"},content:{borderRadius:"30px 0 0 0"},header:{...y.header,borderRadius:"30px 0 0 0"}};default:return y}})(c),p={wrapper:{...g?.wrapper,...a?.wrapper},content:{...g?.content,...a?.content},header:{...g?.header,...a?.header}},h=()=>{const b=[];if(o){const y=[{key:"top",label:"상단",icon:P.jsxRuntimeExports.jsx(dt.CaretUpOutlined,{})},{key:"right",label:"우측",icon:P.jsxRuntimeExports.jsx(dt.CaretRightOutlined,{})},{key:"bottom",label:"하단",icon:P.jsxRuntimeExports.jsx(dt.CaretDownOutlined,{})},{key:"left",label:"좌측",icon:P.jsxRuntimeExports.jsx(dt.CaretLeftOutlined,{})}],S=P.jsxRuntimeExports.jsx(Z.Space.Compact,{children:y.map($=>P.jsxRuntimeExports.jsx(Z.Button,{type:c===$.key?"primary":"default",size:"small",onClick:()=>{u($.key),f(!1)},icon:$.icon},$.key))});b.push(P.jsxRuntimeExports.jsx(Z.Popover,{content:S,trigger:"click",placement:"left",open:d,onOpenChange:f,children:P.jsxRuntimeExports.jsx(Z.Tooltip,{placement:"bottom",title:"위치변경",zIndex:2100,children:P.jsxRuntimeExports.jsx(Z.Button,{icon:P.jsxRuntimeExports.jsx(dt.SettingOutlined,{}),type:"text",size:"middle"})})},"shotSetting"))}return n&&b.push(P.jsxRuntimeExports.jsx(Z.Tooltip,{placement:"bottom",title:s?"배경 보기":"배경 숨기기",zIndex:2100,children:P.jsxRuntimeExports.jsx(Z.Button,{icon:P.jsxRuntimeExports.jsx(dt.EyeOutlined,{}),type:"text",size:"middle",onClick:()=>l(!s)})},"eyes")),i.extra&&b.push(P.jsxRuntimeExports.jsx("div",{style:{margin:"0 8px"},children:i.extra},"extra")),r&&b.push(P.jsxRuntimeExports.jsx(Z.Tooltip,{placement:"bottom",title:"닫기",zIndex:2100,children:P.jsxRuntimeExports.jsx(Z.Button,{icon:P.jsxRuntimeExports.jsx(dt.CloseOutlined,{}),onClick:i.onClose,type:"text",size:"middle"})},"close")),b};return P.jsxRuntimeExports.jsx(Z.Drawer,{className:"main-drawer",footer:!0,...i,placement:c,styles:p,maskClosable:!1,closable:!1,mask:s,extra:P.jsxRuntimeExports.jsx(Z.Space,{size:"small",align:"center",children:h()}),afterOpenChange:b=>{b||(l(!0),u(i.placement)),i.afterOpenChange?.(b)},destroyOnHidden:!0,children:t?P.jsxRuntimeExports.jsxs(Ho,{type:"vertical",children:[P.jsxRuntimeExports.jsxs(Z.Flex,{justify:"space-between",align:"center",style:{width:"100%"},children:[P.jsxRuntimeExports.jsx("div",{children:t.title}),P.jsxRuntimeExports.jsx(Z.Flex,{gap:2,children:t.extra})]}),P.jsxRuntimeExports.jsx(Bi,{...t.searchBox}),P.jsxRuntimeExports.jsx(Z.Divider,{}),e]}):e})};var Tr={},Ns;function uf(){if(Ns)return Tr;Ns=1;var e=_o;if(process.env.NODE_ENV==="production")Tr.createRoot=e.createRoot,Tr.hydrateRoot=e.hydrateRoot;else{var t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Tr.createRoot=function(r,n){t.usingClientEntryPoint=!0;try{return e.createRoot(r,n)}finally{t.usingClientEntryPoint=!1}},Tr.hydrateRoot=function(r,n,o){t.usingClientEntryPoint=!0;try{return e.hydrateRoot(r,n,o)}finally{t.usingClientEntryPoint=!1}}}return Tr}var df=uf();const ff="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZVDbDcIwDHSiqL90AzoCI5S/fvQBEwATIDYoE7BCRwjqAtmAsEE3gAlqzlFBKbXknJ2cL5cQRcF13SIf9Bd63mmHdcN5nsbbJm6UtY6bxlGaCunNZZmTUpniqhpQvIhZ8AlcI+9QXYHYIb3BgQ0ETAJ36BvUmQiDuBV19TNdFBkliUyK0lX1fbc0bkyL1WF6D7UzbBxnpKCi9YHG0UPeoz6BePt+h55UxMMA9NMrPa68BDLiAxmcQh0cAM62AAAAAElFTkSuQmCC",hf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZZDLDcJADETHUe7QQVJC6AAqACoAKkCcESh8JI60kBKgg3TA0kE6gAISzHgj0BJ8sWw/j2cXCCI7aD446g2diDp1aWyWaz9sxmHhNlJSyUCDnlQeQpEKm5UCDwgqvHBnTji4MvcEKGw3FsVFDeCmCCbMYwIpQY4wMnX5mj5pKrXfTFSxc1sp/o03yLlZaoSpRFhme53/QF4FmNl9txbH8wuC5893tEo1PZivBs6/sgVXBlv9BpvVRX62Og6eAAAAAElFTkSuQmCC",vf=[{label:"엑셀다운로드",tag:"excel"},{label:"엑셀(제목포함)",tag:"withTitleExcel"},{label:"-"},{label:"필터",type:"check",checked:!1,tag:"filter"},{label:"열고정",tag:"fixedCol"},{label:"행고정",tag:"fixedRow"},{label:"고정해제",tag:"fixedCancel"},{label:"-"},{label:"숨기기",tag:"hide"},{label:"숨기기해제",tag:"hideClear"}],gf=[{label:"엑셀다운로드",tag:"excel"},{label:"엑셀(들여쓰기 표시)",tag:"showIndentExcel"},{label:"엑셀(제목포함)",tag:"withTitleExcel"},{label:"-"},{label:"필터",type:"check",checked:!1,tag:"filter"},{label:"열고정",tag:"fixedCol"},{label:"행고정",tag:"fixedRow"},{label:"고정해제",tag:"fixedCancel"},{label:"-"},{label:"숨기기",tag:"hide"},{label:"숨기기해제",tag:"hideClear"}],mf=({children:e})=>{const[t,r]=R.useState(!1),[n,o]=R.useState(null);return t?P.jsxRuntimeExports.jsx("div",{style:{padding:"20px",border:"1px solid #ff4d4f",borderRadius:"6px",backgroundColor:"#fff2f0",margin:"10px"},children:P.jsxRuntimeExports.jsx(Z.Alert,{message:"리얼그리드 로드 실패",description:P.jsxRuntimeExports.jsxs("div",{children:[P.jsxRuntimeExports.jsx("p",{children:"리얼그리드 라이센스 또는 초기화 중 오류가 발생했습니다."}),P.jsxRuntimeExports.jsxs("p",{style:{fontSize:"12px",color:"#666",marginTop:"8px"},children:["오류: ",n?.message||"알 수 없는 오류"]}),P.jsxRuntimeExports.jsx(Z.Button,{type:"primary",size:"small",style:{marginTop:"8px"},onClick:()=>{r(!1),o(null),window.location.reload()},children:"다시 시도"})]}),type:"error",showIcon:!0})}):P.jsxRuntimeExports.jsx(pf,{onError:a=>{console.error("BwgGrid 에러:",a),o(a),r(!0)},children:e})};class pf extends R.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,r){this.props.onError(t)}render(){return this.state.hasError?null:this.props.children}}const yf=R.forwardRef(({type:e="nrml",gridDivStyle:t,gridDivClassName:r,gridColumns:n,gridOptions:o,gridEvents:a,bindRef:i,gridContext:s,renderers:l,gridInitCallback:c},u)=>{const d=R.useRef(null),f=(E,I,D,W)=>{let z=[],K=[];const Q="treeNode";for(let X in E){let te=E[X];z[te[D]]=E[X];let oe=z[te[I]];if(oe==null||oe=="-"){K.push(te);continue}oe[Q]==null&&(oe[Q]=[]),oe[Q].push(te)}return K},m=R.useCallback(E=>{const I=W=>{const z=[];return W.forEach(K=>{K.children&&K.children.length>0?z.push(...I(K.children)):z.push(K)}),z};return I(E).map(W=>({fieldName:W.fieldName,dataType:W.dataType||"text"}))},[]),g=R.useCallback(E=>{const I=W=>{const z=[];return W.forEach(K=>{K.children&&K.children.length>0?z.push(...I(K.children)):z.push(K)}),z};return I(E).map(W=>({...W,header:{template:W.required?`<img src='${ff}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:W.editable?`<img src='${hf}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:"${headerText}",values:{headerText:W.header?.text??""},text:W.header?.text||""},styleName:W.dataType==="number"?"right":W.styleName||"center"}))},[]);R.useImperativeHandle(u,()=>({addAllData(E,I){const D=d.current?.gridView.getCurrent().dataRow;if(d.current?.dataProvider instanceof St.LocalDataProvider){d.current.dataProvider.clearRows();try{d.current.dataProvider.fillJsonData(E)}catch(W){console.error("fillJsonData 오류:",W)}}if(d.current?.dataProvider instanceof St.LocalTreeDataProvider){if(d.current.dataProvider.clearRows(),I?.treeOption?.dataField==null||I?.treeOption?.parentField==null)return;const W={rows:"treeNode"};let z=f(E,I.treeOption?.parentField,I.treeOption?.dataField);d.current.dataProvider.fillJsonData({treeNode:z},W),I.treeOption.isExpand&&d.current.gridView?.expandAll()}I?.isCurrent?d.current?.gridView.setCurrent({dataRow:D}):d.current?.gridView.setCurrent({dataRow:0})},getGridInstance:()=>d.current,getCurrentRow:()=>d.current?.gridView.getCurrent().dataRow??-1,getCurrentIndex:()=>d.current?.gridView.getCurrent().itemIndex??-1,gridExcelDown(E){d.current?.gridView.exportGrid({type:"excel",target:"local",allItems:!1,lookupDisplay:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!E?.indenting,header:"default",footer:"default",sheetName:"",fileName:E?.fileName||"sample.xlsx",...E})},dp:d.current?.dataProvider??null,vw:d.current?.gridView??null}));const p=R.useCallback((E,I,D)=>{if(i!==void 0&&D>=0){let W=E.getDataSource().getJsonRow(D);i?.current?.setFieldsValue(W)}else i!==void 0&&D<0&&i?.current?.resetFields();E.setCurrent({dataRow:0}),a?.onCurrentRowChanged&&a?.onCurrentRowChanged(E,I,D)},[i,a]),h=R.useCallback((E,I,D)=>{const W=I.fieldName??"";i?.current?.getFieldInstance(W)&&i?.current.setFieldValue(W,D),a?.onEditChange&&a?.onEditChange(E,I,D)},[i,a]),b=R.useCallback((E,I,D)=>{const W=E.getOrgFieldName(D),z=E.getValue(I,D);i?.current?.setFieldValue(W,z)},[i]),y=R.useCallback((E,I,D,W)=>{const z=E.getColumn(W).name??"",K=E.getValue(I,W);i?.current?.getFieldInstance(z)&&i?.current.setFieldValue(z,K),a?.onCellEdited&&a?.onCellEdited(E,I,D,W)},[i,a]),S=R.useCallback(E=>{},[]),$=R.useCallback(()=>{if(!d.current)return;const E=d.current.gridView,I=E.getDataSource(),D=["onKeyDown"],W=["onRowInserted"];Object.keys(a??{}).map(z=>{D.includes(z)?E[z+"Add"]=a?.[z]:E[z]=a?.[z],W.includes(z)?I[z+"Add"]=a?.[z]:I[z]=a?.[z]}),I instanceof St.LocalDataProvider&&(I.onRowInserted=(z,K)=>{K<0||(setTimeout(function(){E?.setCurrent({dataRow:K})},1),z.onRowInsertedAdd!==void 0&&z.onRowInsertedAdd(z,K))}),E.onKeyDown=function(z,K){if(K.code=="Space"){let Q=z.getSelectedItems(!0);for(const X in Q)z.isCheckable(Q[X])&&(z.isCheckedItem(Q[X])?z.checkItem(Q[X],!1,!1):z.checkItem(Q[X],!0,!1))}return z.onKeyDownAdd!==void 0&&z.onKeyDownAdd(z,K),!0},d.current.gridView.onCurrentRowChanged=p,d.current.gridView.onEditChange=h,d.current.gridView.getDataSource().onValueChanged=b,d.current.gridView.onCellEdited=y,d.current.gridView.onDataLoadComplated=S},[p,h,b,y,S]),x=R.useCallback(E=>{if(E){try{E.gridView.setSortingOptions({enabled:!0}),E.gridView.sortMode=St.SortMode.EXPLICIT,E.gridView.editorOptions.viewGridInside=!0,E.gridView instanceof St.TreeView&&E.gridView.setTreeOptions({expandWhenSetData:St.ExpandWhenSetData.REMAIN_AND_EXPAND,expanderIconStyle:St.TreeExpanderIconStyle.SQUARE,iconVisible:!1,lineVisible:!0}),E.gridView.setDisplayOptions({showEmptyMessage:!0,emptyMessage:"조회된 데이터가 존재하지 않습니다.",useFocusClass:!0,minRowHeight:o?.display?.minRowHeight||43,maxRowHeight:o?.display?.maxRowHeight||100,rowHeight:o?.display?.rowHeight||43,rowChangeDelay:o?.display?.rowChangeDelay||0,selectionStyle:o?.display?.selectionStyle||St.SelectionStyle.ROWS,fitStyle:o?.display?.fitStyle||St.GridFitStyle.FILL,useAlternateRowStyle:o?.display?.useAlternateRowStyle||!1}),E.gridView.setEditOptions({commitWhenExitLast:!0,columnEditableFirst:!1,commitByCell:!0,commitWhenLeave:!0,crossWhenExitLast:!0,confirmWhenDelete:!1,deletable:!1,revertable:!1,showOnlyValidationMessage:!0,editable:o?.edit?.editable||!1,validateOnEdited:o?.edit?.validateOnEdited||!1}),E.gridView.setCopyOptions({singleMode:o?.copy?.singleMode||!1}),E.gridView.setPasteOptions({selectBlockPaste:!0,checkReadOnly:!0,throwValidationError:!1}),E.gridView.header.height=o?.header?.height||43,E.gridView.header.styleName=o?.header?.styleName||"bwgGridHeader",o?.container?.radio?E.gridView.setCheckBar({exclusive:o?.container?.radio||!1}):E.gridView.setCheckBar({visible:o?.container?.check||!1,showAll:o?.container?.checkAll||!1}),E.gridView.setStateBar({visible:o?.container?.state||!1}),E.gridView.rowIndicator.visible=o?.container?.indicator||!1,E.gridView instanceof St.GridView&&(E.gridView.groupPanel.visible=o?.container?.panel||!1),E.gridView.setFooters({visible:o?.container?.footer||!1}),E.gridView.setHeader({visible:o?.container?.header||!0}),E.gridView.formatOptions.numberFormat="#,##0"}catch(I){console.log("그리드 옵션 설정 중 오류:",I)}try{E.gridView instanceof St.TreeView?E.gridView.setContextMenu(gf):E.gridView.setContextMenu(vf),E.gridView.onContextMenuItemClicked=function(I,D,W){if(!(!W||!W.column)){if(D.tag=="excel")T(I,{isTitle:!1},s?.excel);else if(D.tag=="showIndentExcel")T(I,{isTitle:!1,treeBlank:!0},s?.excel);else if(D.tag=="withTitleExcel")T(I,{isTitle:!0,treeBlank:!1},s?.excel);else if(D.tag=="filter")F(I,D);else if(D.tag=="fixedCol"){const K=I.getDataSource().getFieldIndex(W.column);I.setFixedOptions({colCount:K})}else if(D.tag=="fixedRow")I.setFixedOptions({rowCount:(W.itemIndex||0)+1});else if(D.tag=="fixedCancel")I.setFixedOptions({colCount:0,rowCount:0});else if(D.tag=="hide")I.setColumnProperty(W.column,"visible",!1),I._hideCols[I._hideCols.length]=W.column;else if(D.tag=="hideClear")for(var z=0;z<I._hideCols.length;z++)I.setColumnProperty(I._hideCols[z],"visible",!0)}}}catch(I){console.log("컨텍스트 설정 중 오류:",I)}}},[o]),w=E=>{if(!(!l||l.length===0))try{l.forEach(I=>{const{name:D,renderer:W}=I;if(D&&W){const z=typeof W=="function"?new W:W;E.gridView.registerCustomRenderer(D,z)}})}catch(I){console.error("커스텀 렌더러 초기화 중 오류:",I)}},C=E=>{if(o?.layout?.colspan&&o.layout.colspan.length>0&&o?.layout?.colspan.forEach(I=>{const D=E.gridView.layoutByColumn(I.fieldName);if(D){const W=I.span;D.spanCallback=function(z,K,Q){return W}}}),n&&n.length>0&&n.some(D=>D.children&&D.children.length>0))try{(()=>{const W=JSON.parse(JSON.stringify(n)),z=[],K=Q=>{const X=[];return Q.children.map(te=>{if(te.children&&te.children.length>0){const oe=K(te),ae=te.header?.text||te.fieldName,me=E.gridView.getColumnProperty(te.fieldName,"header");delete te.children,delete te.header;let U={name:te.fieldName,header:{text:me?.text||ae,template:me?.template,values:me?.values},items:oe,...te};X.push(U)}else X.push(te.fieldName)}),X};W.map(Q=>{if(Q.children&&Q.children.length>0){const X=K(Q),te=Q.header?.text||Q.fieldName,oe=E.gridView.getColumnProperty(Q.fieldName,"header");delete Q.children,delete Q.header;const ae={name:Q.fieldName,header:{text:oe?.text||te,template:oe?.template,values:oe?.values},items:X,...Q};z.push(ae)}else z.push(Q.fieldName)}),console.log("Final Layout!!",z),E.gridView.setColumnLayout(z)})()}catch(D){console.error("컬럼 레이아웃 설정 오류:",D)}},j=()=>{if(d.current){if(e==="nrml"){const E=d.current;if(x(E),w(E),n&&n.length>0){const I=m(n),D=g(n);E.gridView.getDataSource().setFields(I),E.gridView.setColumns(D)}C(E)}else{const E=d.current;if(x(E),w(E),n&&n.length>0){const I=m(n),D=g(n);E.gridView.getDataSource().setFields(I),E.gridView.setColumns(D)}C(d.current)}setTimeout(()=>{if(c){const E=typeof u=="object"&&u!==null?u.current:null;c(E)}},0)}},T=(E,I,D)=>{const W=E.getDataSource();let z=D?.footer==null?"default":D.footer;W.getRowCount()<1&&(z="hidden");let K={type:"excel",target:"local",allItems:!1,lookupDisplay:!0,compatibility:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!I?.treeBlank,footer:z,sheetName:"",documentTitle:{},documentSubtitle:{},documentTail:{},fileName:D?.fileName||"sample.xlsx"};W instanceof St.LocalTreeDataProvider&&(K.indenting=!!I?.treeBlank),D?.isCellMerge==!0&&(K.separateRows=!1),Ft.isEmpty(D?.sheetName)==!1&&(K.sheetName=D?.sheetName),I?.isTitle&&(K.documentTitle={message:Ft.isSafeEmpty(D?.mainTitle,"No Title"),visible:!0,styleName:"documentStyle",spaceTop:1,spaceBottom:0,height:43},Ft.isEmpty(D?.subTitle)==!1&&(K.documentSubtitle={message:D?.subTitle,visible:!0,styleName:"center",height:20}),Ft.isEmpty(D?.tailTitle)==!1&&(K.documentTail={message:D?.tailTitle,visible:!0,styleName:"documentStyle"})),E.exportGrid(K)},F=(E,I)=>{const D=E.getDataSource(),W=D.getOrgFieldNames();if(I.checked)for(var z=0;z<W.length;z++){let Q=[],X=D.getDistinctValues(W[z])??[];if(X.length==0)continue;let te=E.columnByName(W[z]);for(var K=0;K<X.length;K++){if(X[K]==null)continue;let oe=te.values!=null&&te.values.indexOf(X[K])!=-1?te?.labels?.[te.values.indexOf(X[K])]:X[K];Ft.isEmpty(oe)&&(Ft.isEmpty(X[K])?oe=" ":oe=X[K]);let ae="";X[K]==null?ae="value="+X[K]:ae="value='"+X[K]+"'",Q.push({name:oe,criteria:ae})}E.setColumnFilters(W[z],Q)}else for(var z=0;z<W.length;z++)E.clearColumnFilters(W[z]),E.activateAllColumnFilters(W[z],!1),E.clearColumnFilters(W[z])};R.useEffect(()=>{if(d.current&&d.current.gridView)if(e==="nrml"){const E=d.current;x(E)}else{const E=d.current;x(E)}},[e,o,x]),R.useEffect(()=>{!d.current||!n||n.length===0||j()},[n]),R.useEffect(()=>{d.current&&$()},[a,$]);const[k,L]=R.useState(!1),[N,A]=R.useState(""),B=R.useRef(null);R.useEffect(()=>{k&&setTimeout(()=>{B.current?.focus?.()},0)},[k]),R.useEffect(()=>()=>{if(d.current)try{const E=d.current;E.gridView&&(E.gridView.onDataLoadComplated=void 0,E.gridView.onCurrentRowChanged=void 0,E.gridView.onCellClicked=void 0,E.gridView.onCellDblClicked=void 0,E.gridView.onEditRowChanged=void 0,E.gridView.onItemChecked=void 0,E.gridView.onItemAllChecked=void 0,E.gridView.onColumnCheckedChanged=void 0,E.gridView.onCellButtonClicked=void 0,E.gridView.onEditChange=void 0,E.gridView.onCellEdited=void 0,E.gridView.onKeyUp=void 0,E.gridView.onKeyDown=void 0,E.gridView.onWheel=void 0,E.gridView.onValidateColumn=void 0,E.gridView.onValidateRow=void 0,E.gridView.onValidationFail=void 0,E.gridView.onRowInserting=void 0,E.gridView.onCellItemClicked=void 0,E.gridView.onShowEditor=void 0,E.gridView.getDataSource()&&(E.gridView.getDataSource().clearRows(),E.gridView.getDataSource().setFields([])),E.gridView.getDataSource().clearRows())}catch(E){console.warn("⚠️ BwgGrid cleanup error:",E)}},[]);const O=R.useCallback(E=>{V(E)},[]),V=R.useCallback(E=>{const I=d.current?.gridView;if(I?.isFiltered()){console.log("EE:: [그리드 Filtering 으로 인한 오류] 그리드 내 Filter를 해제 후 진행해 주십시오.");return}if(I?.commit(),Ft.isEmpty(E))return;const D=I?.getCurrent().itemIndex??-1;if(D<0)return;const W={value:E,startIndex:D+1,wrap:!0,caseSensitive:!1,partialMatch:!0},z=I?.searchCell(W);I?.setCurrent(z)},[]),H=R.useCallback(E=>{E.key==="Escape"&&(E.preventDefault(),L(!1))},[]),q=R.useCallback(E=>{E.ctrlKey&&E.code==="KeyF"&&(E.preventDefault(),A(""),L(!k))},[k]),G={searchRow:O,searchEnter:V,handleCloseKeyword:H,handleSearch:q},ee=R.useMemo(()=>({...t,position:"relative",width:t?.width||"100%",height:t?.height||"100%"}),[t]);return P.jsxRuntimeExports.jsx(mf,{children:P.jsxRuntimeExports.jsxs("div",{style:ee,className:r,onKeyDown:E=>G.handleSearch(E),children:[k&&P.jsxRuntimeExports.jsx("div",{className:"grid-search-box",children:P.jsxRuntimeExports.jsxs(Z.Flex,{gap:3,children:[P.jsxRuntimeExports.jsx(Z.ConfigProvider,{theme:{components:{Button:{controlHeight:32},Input:{controlHeight:32}}},children:P.jsxRuntimeExports.jsxs(Z.Space.Compact,{children:[P.jsxRuntimeExports.jsx(Z.Button,{icon:P.jsxRuntimeExports.jsx(dt.SearchOutlined,{})}),P.jsxRuntimeExports.jsx(Z.Input,{ref:B,value:N,name:"srchField",autoComplete:"off",onKeyUp:E=>G.handleCloseKeyword(E),onChange:E=>A(E.target.value),onPressEnter:E=>G.searchEnter(E)})]})}),P.jsxRuntimeExports.jsx(Z.Button,{variant:"solid",icon:P.jsxRuntimeExports.jsx(dt.CloseOutlined,{}),onClick:()=>L(!1)})]})}),e==="nrml"?P.jsxRuntimeExports.jsx(ps.RealGridReact,{ref:d,autoGenerateField:!0,onInitialized:j}):P.jsxRuntimeExports.jsx(ps.RealTreeReact,{ref:d,autoGenerateField:!1,onInitialized:j})]})})}),bf=e=>({initContent(t){this._root=df.createRoot(t)},render(t,r,n,o){const a=this._root;a&&e(t,r,n,o,a)},clearContent(t){const r=this._root;r&&setTimeout(()=>{r&&(r.unmount(),this._root=null)},0)},canClick(t){return!0},click(){return{}}}),xf=R.memo(({title:e,border:t,children:r,titleChildren:n})=>{const o=R.useMemo(()=>({components:{Form:{labelColor:"#9A9A9A"},Select:{colorTextDisabled:"#000"}}}),[]);return P.jsxRuntimeExports.jsxs(Ho,{type:"vertical",children:[P.jsxRuntimeExports.jsx(zi,{title:e,icons:{type:"antd",icon:"InfoCircleTwoTone"},children:n}),P.jsxRuntimeExports.jsx(Bd,{border:!1,children:P.jsxRuntimeExports.jsx(Z.ConfigProvider,{theme:o,children:r})})]})}),Ho=({type:e="horizontal",layoutAlign:t="left",verticalAlign:r,className:n,style:o,children:a})=>P.jsxRuntimeExports.jsx("div",{style:o,className:`bwgview-content-layout ${e=="horizontal"?"hz-layout":"vt-layout"} layout-${t} ${r&&`vertical-${r}`} ${n||""}`,children:a}),ks=(e,t)=>{const r=window.innerWidth,n=window.innerHeight,o=Math.min(Math.max(e.x,0),Math.max(0,r-t.width)),a=Math.min(Math.max(e.y,0),Math.max(0,n-t.height));return{x:o,y:a}},Cf=({buttons:e,popupData:t,onButtonClick:r})=>!e||e.length===0?null:P.jsxRuntimeExports.jsx("div",{style:{display:"flex",gap:6},children:e.map(n=>P.jsxRuntimeExports.jsx(Z.Button,{type:n.type||"default",danger:n.danger,disabled:n.disabled,onClick:()=>r?.(n.key,t),className:"bwg-btn popup-btn",children:n.text},n.key))}),wf=({popup:e,popupEvent:t,onClose:r,children:n})=>{const o=R.useRef(null);e?.popupId;const a=e?.popupTitle||"팝업",i=e?.width||800,s=e?.height||600,l=e?.buttonList?.map((w,C)=>({key:w.btnId||`btn_${C}`,text:w.btnNm,type:w.btnId==="CLOSE"?"default":"primary",disabled:w.enblYn!=="Y",danger:!1}))||[],u=l.some(w=>w.key==="CLOSE"||w.key==="close")?l:[...l,{key:"CLOSE",text:"닫기",type:"default",disabled:!1,danger:!1}],[d,f]=R.useState(i),[m,g]=R.useState(s),p=R.useMemo(()=>{const w=Math.max(0,(window.innerWidth-i)/2),C=Math.max(0,(window.innerHeight-s)/2);return{x:w,y:C}},[i,s]),[h,b]=R.useState(p),y=(w,C)=>{if(w==="CLOSE"||w==="close"){e?.close?.()||r?.();return}t&&t[w]?t[w]():e?.close?.()||r?.()},S=(w,C)=>{const j=ks({x:C.x,y:C.y},{width:d,height:m});b(j)},$=(w,C,j,T,F)=>{const k={width:parseInt(j.style.width,10),height:parseInt(j.style.height,10)},L=ks(F,k);f(k.width),g(k.height),b(L)},x=()=>o.current??document.body;return P.jsxRuntimeExports.jsxs("div",{style:{position:"fixed",inset:0,zIndex:1e3},children:[P.jsxRuntimeExports.jsx("div",{onClick:r,style:{position:"absolute",inset:0,backgroundColor:"rgba(0,0,0,0.3)",zIndex:0}}),P.jsxRuntimeExports.jsxs(Wd.Rnd,{className:"bwg-popup",size:{width:d,height:m},position:h,bounds:"window",minWidth:400,minHeight:300,onDragStop:S,onResizeStop:$,dragHandleClassName:"drag-handle",cancel:".rnd-cancel",enableUserSelectHack:!1,style:{backgroundColor:"white",borderRadius:20,boxShadow:"0 4px 15px rgba(0,0,0,0.25)",overflow:"visible",position:"absolute",zIndex:1},children:[P.jsxRuntimeExports.jsx("div",{className:"bwg-popup-content",style:{overflow:"hidden",borderRadius:20,height:"100%"},children:P.jsxRuntimeExports.jsx(xc,{getPopupContainer:x,children:P.jsxRuntimeExports.jsx(Ho,{type:"vertical",children:P.jsxRuntimeExports.jsx(Z.Card,{className:"popup-drag-container",title:P.jsxRuntimeExports.jsx("div",{className:"drag-handle",style:{display:"flex",alignItems:"center",gap:8},children:a}),style:{width:"100%",height:"100%"},styles:{body:{height:"calc(100% - 77px)",padding:20,overflow:"auto"}},extra:P.jsxRuntimeExports.jsx(Cf,{buttons:u,popupData:e,onButtonClick:y}),children:P.jsxRuntimeExports.jsx("div",{className:"rnd-cancel",style:{height:"100%"},children:n})})})})}),P.jsxRuntimeExports.jsx("div",{ref:o,className:"bwg-popup-portal-root",style:{position:"relative"}})]})]})},Sf=({children:e,...t})=>P.jsxRuntimeExports.jsx(Z.Row,{...t,className:"bwg-row",children:e}),Ef=({rowKey:e="id",columns:t,dataSource:r,loading:n=!1,rowSelection:o,size:a="middle",pagination:i=!1,...s})=>P.jsxRuntimeExports.jsx(Z.Table,{rowKey:e,columns:t,dataSource:r,loading:n,rowSelection:o,size:a,pagination:i,bordered:!0,scroll:{x:"max-content"},locale:{emptyText:"데이터가 없습니다."},...s}),Rf=e=>{const{type:t="card",animated:r=!0,...n}=e;return P.jsxRuntimeExports.jsx(Z.Tabs,{type:t,animated:r,...n})};function Ka(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function $f(e){if(Array.isArray(e))return Ka(e)}function Cc(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Wi(e,t){if(e){if(typeof e=="string")return Ka(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ka(e,t):void 0}}function Of(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function se(e){return $f(e)||Cc(e)||Wi(e)||Of()}function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ie.apply(null,arguments)}var jf={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};function wc(e){if(Array.isArray(e))return e}function _f(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,a,i,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&r.return!=null&&(i=r.return(),Object(i)!==i))return}finally{if(c)throw o}}return s}}function Sc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y(e,t){return wc(e)||_f(e,t)||Wi(e,t)||Sc()}function ve(e){"@babel/helpers - typeof";return ve=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},ve(e)}function Pf(e,t){if(ve(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ve(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ec(e){var t=Pf(e,"string");return ve(t)=="symbol"?t:t+""}function _(e,t,r){return(t=Ec(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tf(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function ft(e,t){if(e==null)return{};var r,n,o=Tf(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var ya={exports:{}};/*!
|
|
4
|
-
Copyright (c) 2018 Jed Watson.
|
|
5
|
-
Licensed under the MIT License (MIT), see
|
|
6
|
-
http://jedwatson.github.io/classnames
|
|
7
|
-
*/var Is;function Af(){return Is||(Is=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",i=0;i<arguments.length;i++){var s=arguments[i];s&&(a=o(a,n(s)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var i="";for(var s in a)t.call(a,s)&&a[s]&&(i=o(i,s));return i}function o(a,i){return i?a?a+" "+i:a+i:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(ya)),ya.exports}var Mf=Af();const le=Hi.getDefaultExportFromCjs(Mf),nt=Math.round;function ba(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const Vs=(e,t,r)=>r===0?e:e/100;function xn(e,t){const r=t||255;return e>r?r:e<0?0:e}let Je=class Rc{constructor(t){_(this,"isValid",!0),_(this,"r",0),_(this,"g",0),_(this,"b",0),_(this,"a",1),_(this,"_h",void 0),_(this,"_s",void 0),_(this,"_l",void 0),_(this,"_v",void 0),_(this,"_max",void 0),_(this,"_min",void 0),_(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let o=function(a){return n.startsWith(a)};const n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):o("rgb")?this.fromRgbString(n):o("hsl")?this.fromHslString(n):(o("hsv")||o("hsb"))&&this.fromHsvString(n)}else if(t instanceof Rc)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=xn(t.r),this.g=xn(t.g),this.b=xn(t.b),this.a=typeof t.a=="number"?xn(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(a){const i=a/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=nt(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){const n=this._c(t),o=r/100,a=s=>(n[s]-this[s])*o+this[s],i={r:nt(a("r")),g:nt(a("g")),b:nt(a("b")),a:nt(a("a")*100)/100};return this._c(i)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),o=a=>nt((this[a]*this.a+r[a]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=nt(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=nt(this.getSaturation()*100),n=nt(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const o=this.clone();return o[t]=xn(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(o,a){return parseInt(r[o]+r[a||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){const f=nt(n*255);this.r=f,this.g=f,this.b=f}let a=0,i=0,s=0;const l=t/60,c=(1-Math.abs(2*n-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(a=c,i=u):l>=1&&l<2?(a=u,i=c):l>=2&&l<3?(i=c,s=u):l>=3&&l<4?(i=u,s=c):l>=4&&l<5?(a=u,s=c):l>=5&&l<6&&(a=c,s=u);const d=n-c/2;this.r=nt((a+d)*255),this.g=nt((i+d)*255),this.b=nt((s+d)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;const a=nt(n*255);if(this.r=a,this.g=a,this.b=a,r<=0)return;const i=t/60,s=Math.floor(i),l=i-s,c=nt(n*(1-r)*255),u=nt(n*(1-r*l)*255),d=nt(n*(1-r*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const r=ba(t,Vs);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=ba(t,Vs);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=ba(t,(n,o)=>o.includes("%")?nt(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var lo=2,Ds=.16,Ff=.05,Nf=.05,kf=.15,$c=5,Oc=4,If=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Ls(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-lo*t:Math.round(e.h)+lo*t:n=r?Math.round(e.h)+lo*t:Math.round(e.h)-lo*t,n<0?n+=360:n>=360&&(n-=360),n}function Hs(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Ds*t:t===Oc?n=e.s+Ds:n=e.s+Ff*t,n>1&&(n=1),r&&t===$c&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function zs(e,t,r){var n;return r?n=e.v+Nf*t:n=e.v-kf*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function _n(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new Je(e),o=n.toHsv(),a=$c;a>0;a-=1){var i=new Je({h:Ls(o,a,!0),s:Hs(o,a,!0),v:zs(o,a,!0)});r.push(i)}r.push(n);for(var s=1;s<=Oc;s+=1){var l=new Je({h:Ls(o,s),s:Hs(o,s),v:zs(o,s)});r.push(l)}return t.theme==="dark"?If.map(function(c){var u=c.index,d=c.amount;return new Je(t.backgroundColor||"#141414").mix(r[u],d).toHexString()}):r.map(function(c){return c.toHexString()})}var xa={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Ga=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Ga.primary=Ga[5];var Ya=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Ya.primary=Ya[5];var Xa=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Xa.primary=Xa[5];var Po=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Po.primary=Po[5];var Qa=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Qa.primary=Qa[5];var Za=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Za.primary=Za[5];var Ja=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Ja.primary=Ja[5];var ei=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];ei.primary=ei[5];var To=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];To.primary=To[5];var ti=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];ti.primary=ti[5];var ri=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];ri.primary=ri[5];var ni=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];ni.primary=ni[5];var oi=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];oi.primary=oi[5];var Ca={red:Ga,volcano:Ya,orange:Xa,gold:Po,yellow:Qa,lime:Za,green:Ja,cyan:ei,blue:To,geekblue:ti,purple:ri,magenta:ni,grey:oi},qi=R.createContext({});function Bs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function M(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bs(Object(r),!0).forEach(function(n){_(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bs(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Vf(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var Ws="data-rc-order",qs="data-rc-priority",Df="rc-util-key",ai=new Map;function jc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Df}function zo(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Lf(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Ui(e){return Array.from((ai.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function _c(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!gt())return null;var r=t.csp,n=t.prepend,o=t.priority,a=o===void 0?0:o,i=Lf(n),s=i==="prependQueue",l=document.createElement("style");l.setAttribute(Ws,i),s&&a&&l.setAttribute(qs,"".concat(a)),r!=null&&r.nonce&&(l.nonce=r?.nonce),l.innerHTML=e;var c=zo(t),u=c.firstChild;if(n){if(s){var d=(t.styles||Ui(c)).filter(function(f){if(!["prepend","prependQueue"].includes(f.getAttribute(Ws)))return!1;var m=Number(f.getAttribute(qs)||0);return a>=m});if(d.length)return c.insertBefore(l,d[d.length-1].nextSibling),l}c.insertBefore(l,u)}else c.appendChild(l);return l}function Pc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=zo(t);return(t.styles||Ui(r)).find(function(n){return n.getAttribute(jc(t))===e})}function Pn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Pc(e,t);if(r){var n=zo(t);n.removeChild(r)}}function Hf(e,t){var r=ai.get(e);if(!r||!Vf(document,r)){var n=_c("",t),o=n.parentNode;ai.set(e,o),e.removeChild(n)}}function er(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=zo(r),o=Ui(n),a=M(M({},r),{},{styles:o});Hf(n,a);var i=Pc(t,a);if(i){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&i.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var c;i.nonce=(c=a.csp)===null||c===void 0?void 0:c.nonce}return i.innerHTML!==e&&(i.innerHTML=e),i}var u=_c(e,a);return u.setAttribute(jc(a),t),u}function Tc(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function zf(e){return Tc(e)instanceof ShadowRoot}function Ao(e){return zf(e)?Tc(e):null}var ii={},Ki=[],Bf=function(t){Ki.push(t)};function Wr(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Ki.reduce(function(n,o){return o(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function Wf(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=Ki.reduce(function(n,o){return o(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function Ac(){ii={}}function Mc(e,t,r){!t&&!ii[r]&&(e(!1,r),ii[r]=!0)}function ze(e,t){Mc(Wr,e,t)}function qf(e,t){Mc(Wf,e,t)}ze.preMessage=Bf;ze.resetWarned=Ac;ze.noteOnce=qf;function Uf(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Kf(e,t){ze(e,"[@ant-design/icons] ".concat(t))}function Us(e){return ve(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(ve(e.icon)==="object"||typeof e.icon=="function")}function Ks(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[Uf(r)]=n}return t},{})}function si(e,t,r){return r?R.createElement(e.tag,M(M({key:t},Ks(e.attrs)),r),(e.children||[]).map(function(n,o){return si(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):R.createElement(e.tag,M({key:t},Ks(e.attrs)),(e.children||[]).map(function(n,o){return si(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Fc(e){return _n(e)[0]}function Nc(e){return e?Array.isArray(e)?e:[e]:[]}var Gf=`
|
|
8
|
-
.anticon {
|
|
9
|
-
display: inline-flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
color: inherit;
|
|
12
|
-
font-style: normal;
|
|
13
|
-
line-height: 0;
|
|
14
|
-
text-align: center;
|
|
15
|
-
text-transform: none;
|
|
16
|
-
vertical-align: -0.125em;
|
|
17
|
-
text-rendering: optimizeLegibility;
|
|
18
|
-
-webkit-font-smoothing: antialiased;
|
|
19
|
-
-moz-osx-font-smoothing: grayscale;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.anticon > * {
|
|
23
|
-
line-height: 1;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.anticon svg {
|
|
27
|
-
display: inline-block;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.anticon::before {
|
|
31
|
-
display: none;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.anticon .anticon-icon {
|
|
35
|
-
display: block;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.anticon[tabindex] {
|
|
39
|
-
cursor: pointer;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.anticon-spin::before,
|
|
43
|
-
.anticon-spin {
|
|
44
|
-
display: inline-block;
|
|
45
|
-
-webkit-animation: loadingCircle 1s infinite linear;
|
|
46
|
-
animation: loadingCircle 1s infinite linear;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@-webkit-keyframes loadingCircle {
|
|
50
|
-
100% {
|
|
51
|
-
-webkit-transform: rotate(360deg);
|
|
52
|
-
transform: rotate(360deg);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@keyframes loadingCircle {
|
|
57
|
-
100% {
|
|
58
|
-
-webkit-transform: rotate(360deg);
|
|
59
|
-
transform: rotate(360deg);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
`,Yf=function(t){var r=R.useContext(qi),n=r.csp,o=r.prefixCls,a=r.layer,i=Gf;o&&(i=i.replace(/anticon/g,o)),a&&(i="@layer ".concat(a,` {
|
|
63
|
-
`).concat(i,`
|
|
64
|
-
}`)),R.useEffect(function(){var s=t.current,l=Ao(s);er(i,"@ant-design-icons",{prepend:!a,csp:n,attachTo:l})},[])},Xf=["icon","className","onClick","style","primaryColor","secondaryColor"],$n={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Qf(e){var t=e.primaryColor,r=e.secondaryColor;$n.primaryColor=t,$n.secondaryColor=r||Fc(t),$n.calculated=!!r}function Zf(){return M({},$n)}var en=function(t){var r=t.icon,n=t.className,o=t.onClick,a=t.style,i=t.primaryColor,s=t.secondaryColor,l=ft(t,Xf),c=v.useRef(),u=$n;if(i&&(u={primaryColor:i,secondaryColor:s||Fc(i)}),Yf(c),Kf(Us(r),"icon should be icon definiton, but got ".concat(r)),!Us(r))return null;var d=r;return d&&typeof d.icon=="function"&&(d=M(M({},d),{},{icon:d.icon(u.primaryColor,u.secondaryColor)})),si(d.icon,"svg-".concat(d.name),M(M({className:n,onClick:o,style:a,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:c}))};en.displayName="IconReact";en.getTwoToneColors=Zf;en.setTwoToneColors=Qf;function kc(e){var t=Nc(e),r=Y(t,2),n=r[0],o=r[1];return en.setTwoToneColors({primaryColor:n,secondaryColor:o})}function Jf(){var e=en.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var eh=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];kc(To.primary);var tr=v.forwardRef(function(e,t){var r=e.className,n=e.icon,o=e.spin,a=e.rotate,i=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=ft(e,eh),u=v.useContext(qi),d=u.prefixCls,f=d===void 0?"anticon":d,m=u.rootClassName,g=le(m,f,_(_({},"".concat(f,"-").concat(n.name),!!n.name),"".concat(f,"-spin"),!!o||n.name==="loading"),r),p=i;p===void 0&&s&&(p=-1);var h=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=Nc(l),y=Y(b,2),S=y[0],$=y[1];return v.createElement("span",Ie({role:"img","aria-label":n.name},c,{ref:t,tabIndex:p,onClick:s,className:g}),v.createElement(en,{icon:n,primaryColor:S,secondaryColor:$,style:h}))});tr.displayName="AntdIcon";tr.getTwoToneColor=Jf;tr.setTwoToneColor=kc;var th=function(t,r){return v.createElement(tr,Ie({},t,{ref:r,icon:jf}))},Ic=v.forwardRef(th);process.env.NODE_ENV!=="production"&&(Ic.displayName="EditOutlined");var rh=Symbol.for("react.element"),nh=Symbol.for("react.transitional.element"),oh=Symbol.for("react.fragment");function Vc(e){return e&&ve(e)==="object"&&(e.$$typeof===rh||e.$$typeof===nh)&&e.type===oh}function qr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return R.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(qr(n)):Vc(n)&&n.props?r=r.concat(qr(n.props.children,t)):r.push(n))}),r}function Tn(e){return e instanceof HTMLElement||e instanceof SVGElement}function ah(e){return e&&ve(e)==="object"&&Tn(e.nativeElement)?e.nativeElement:Tn(e)?e:null}function wo(e){var t=ah(e);if(t)return t;if(e instanceof R.Component){var r;return(r=_o.findDOMNode)===null||r===void 0?void 0:r.call(_o,e)}return null}var co={exports:{}},_e={};/**
|
|
65
|
-
* @license React
|
|
66
|
-
* react-is.production.min.js
|
|
67
|
-
*
|
|
68
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
69
|
-
*
|
|
70
|
-
* This source code is licensed under the MIT license found in the
|
|
71
|
-
* LICENSE file in the root directory of this source tree.
|
|
72
|
-
*/var Gs;function ih(){if(Gs)return _e;Gs=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function p(h){if(typeof h=="object"&&h!==null){var b=h.$$typeof;switch(b){case e:switch(h=h.type,h){case r:case o:case n:case c:case u:return h;default:switch(h=h&&h.$$typeof,h){case s:case i:case l:case f:case d:case a:return h;default:return b}}case t:return b}}}return _e.ContextConsumer=i,_e.ContextProvider=a,_e.Element=e,_e.ForwardRef=l,_e.Fragment=r,_e.Lazy=f,_e.Memo=d,_e.Portal=t,_e.Profiler=o,_e.StrictMode=n,_e.Suspense=c,_e.SuspenseList=u,_e.isAsyncMode=function(){return!1},_e.isConcurrentMode=function(){return!1},_e.isContextConsumer=function(h){return p(h)===i},_e.isContextProvider=function(h){return p(h)===a},_e.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},_e.isForwardRef=function(h){return p(h)===l},_e.isFragment=function(h){return p(h)===r},_e.isLazy=function(h){return p(h)===f},_e.isMemo=function(h){return p(h)===d},_e.isPortal=function(h){return p(h)===t},_e.isProfiler=function(h){return p(h)===o},_e.isStrictMode=function(h){return p(h)===n},_e.isSuspense=function(h){return p(h)===c},_e.isSuspenseList=function(h){return p(h)===u},_e.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===o||h===n||h===c||h===u||h===m||typeof h=="object"&&h!==null&&(h.$$typeof===f||h.$$typeof===d||h.$$typeof===a||h.$$typeof===i||h.$$typeof===l||h.$$typeof===g||h.getModuleId!==void 0)},_e.typeOf=p,_e}var Pe={};/**
|
|
73
|
-
* @license React
|
|
74
|
-
* react-is.development.js
|
|
75
|
-
*
|
|
76
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
77
|
-
*
|
|
78
|
-
* This source code is licensed under the MIT license found in the
|
|
79
|
-
* LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/var Ys;function sh(){return Ys||(Ys=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),g=!1,p=!1,h=!1,b=!1,y=!1,S;S=Symbol.for("react.module.reference");function $(U){return!!(typeof U=="string"||typeof U=="function"||U===r||U===o||y||U===n||U===c||U===u||b||U===m||g||p||h||typeof U=="object"&&U!==null&&(U.$$typeof===f||U.$$typeof===d||U.$$typeof===a||U.$$typeof===i||U.$$typeof===l||U.$$typeof===S||U.getModuleId!==void 0))}function x(U){if(typeof U=="object"&&U!==null){var ce=U.$$typeof;switch(ce){case e:var re=U.type;switch(re){case r:case o:case n:case c:case u:return re;default:var ue=re&&re.$$typeof;switch(ue){case s:case i:case l:case f:case d:case a:return ue;default:return ce}}case t:return ce}}}var w=i,C=a,j=e,T=l,F=r,k=f,L=d,N=t,A=o,B=n,O=c,V=u,H=!1,q=!1;function G(U){return H||(H=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ee(U){return q||(q=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function E(U){return x(U)===i}function I(U){return x(U)===a}function D(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function W(U){return x(U)===l}function z(U){return x(U)===r}function K(U){return x(U)===f}function Q(U){return x(U)===d}function X(U){return x(U)===t}function te(U){return x(U)===o}function oe(U){return x(U)===n}function ae(U){return x(U)===c}function me(U){return x(U)===u}Pe.ContextConsumer=w,Pe.ContextProvider=C,Pe.Element=j,Pe.ForwardRef=T,Pe.Fragment=F,Pe.Lazy=k,Pe.Memo=L,Pe.Portal=N,Pe.Profiler=A,Pe.StrictMode=B,Pe.Suspense=O,Pe.SuspenseList=V,Pe.isAsyncMode=G,Pe.isConcurrentMode=ee,Pe.isContextConsumer=E,Pe.isContextProvider=I,Pe.isElement=D,Pe.isForwardRef=W,Pe.isFragment=z,Pe.isLazy=K,Pe.isMemo=Q,Pe.isPortal=X,Pe.isProfiler=te,Pe.isStrictMode=oe,Pe.isSuspense=ae,Pe.isSuspenseList=me,Pe.isValidElementType=$,Pe.typeOf=x})()),Pe}var Xs;function lh(){return Xs||(Xs=1,process.env.NODE_ENV==="production"?co.exports=ih():co.exports=sh()),co.exports}var wa=lh();function Gi(e,t,r){var n=v.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var ch=Number(R.version.split(".")[0]),Yi=function(t,r){typeof t=="function"?t(r):ve(t)==="object"&&t&&"current"in t&&(t.current=r)},Hn=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var o=r.filter(Boolean);return o.length<=1?o[0]:function(a){r.forEach(function(i){Yi(i,a)})}},Xi=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Gi(function(){return Hn.apply(void 0,r)},r,function(o,a){return o.length!==a.length||o.every(function(i,s){return i!==a[s]})})},Bo=function(t){var r,n;if(!t)return!1;if(Dc(t)&&ch>=19)return!0;var o=wa.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((r=o.prototype)!==null&&r!==void 0&&r.render)&&o.$$typeof!==wa.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==wa.ForwardRef)};function Dc(e){return R.isValidElement(e)&&!Vc(e)}var Qi=function(t){if(t&&Dc(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},li=v.createContext(null);function uh(e){var t=e.children,r=e.onBatchResize,n=v.useRef(0),o=v.useRef([]),a=v.useContext(li),i=v.useCallback(function(s,l,c){n.current+=1;var u=n.current;o.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){u===n.current&&(r?.(o.current),o.current=[])}),a?.(s,l,c)},[r,a]);return v.createElement(li.Provider,{value:i},t)}var Lc=(function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(o,a){return o[0]===r?(n=a,!0):!1}),n}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,a=this.__entries__;o<a.length;o++){var i=a[o];r.call(n,i[1],i[0])}},t})()})(),ci=typeof window<"u"&&typeof document<"u"&&window.document===document,Mo=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),dh=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Mo):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),fh=2;function hh(e,t){var r=!1,n=!1,o=0;function a(){r&&(r=!1,e()),n&&s()}function i(){dh(a)}function s(){var l=Date.now();if(r){if(l-o<fh)return;n=!0}else r=!0,n=!1,setTimeout(i,t);o=l}return s}var vh=20,gh=["top","right","bottom","left","width","height","size","weight"],mh=typeof MutationObserver<"u",ph=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=hh(this.refresh.bind(this),vh)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!ci||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mh?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!ci||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,o=gh.some(function(a){return!!~n.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),Hc=(function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e}),Ur=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Mo}),zc=Wo(0,0,0,0);function Fo(e){return parseFloat(e)||0}function Qs(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,o){var a=e["border-"+o+"-width"];return n+Fo(a)},0)}function yh(e){for(var t=["top","right","bottom","left"],r={},n=0,o=t;n<o.length;n++){var a=o[n],i=e["padding-"+a];r[a]=Fo(i)}return r}function bh(e){var t=e.getBBox();return Wo(0,0,t.width,t.height)}function xh(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return zc;var n=Ur(e).getComputedStyle(e),o=yh(n),a=o.left+o.right,i=o.top+o.bottom,s=Fo(n.width),l=Fo(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+a)!==t&&(s-=Qs(n,"left","right")+a),Math.round(l+i)!==r&&(l-=Qs(n,"top","bottom")+i)),!wh(e)){var c=Math.round(s+a)-t,u=Math.round(l+i)-r;Math.abs(c)!==1&&(s-=c),Math.abs(u)!==1&&(l-=u)}return Wo(o.left,o.top,s,l)}var Ch=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ur(e).SVGGraphicsElement}:function(e){return e instanceof Ur(e).SVGElement&&typeof e.getBBox=="function"}})();function wh(e){return e===Ur(e).document.documentElement}function Sh(e){return ci?Ch(e)?bh(e):xh(e):zc}function Eh(e){var t=e.x,r=e.y,n=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,i=Object.create(a.prototype);return Hc(i,{x:t,y:r,width:n,height:o,top:r,right:t+n,bottom:o+r,left:t}),i}function Wo(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Rh=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Wo(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Sh(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),$h=(function(){function e(t,r){var n=Eh(r);Hc(this,{target:t,contentRect:n})}return e})(),Oh=(function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Lc,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ur(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Rh(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ur(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new $h(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),Bc=typeof WeakMap<"u"?new WeakMap:new Lc,Wc=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=ph.getInstance(),n=new Oh(t,r,this);Bc.set(this,n)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Wc.prototype[e]=function(){var t;return(t=Bc.get(this))[e].apply(t,arguments)}});var jh=(function(){return typeof Mo.ResizeObserver<"u"?Mo.ResizeObserver:Wc})(),Jt=new Map;function qc(e){e.forEach(function(t){var r,n=t.target;(r=Jt.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var Uc=new jh(qc);process.env.NODE_ENV;process.env.NODE_ENV;function _h(e,t){Jt.has(e)||(Jt.set(e,new Set),Uc.observe(e)),Jt.get(e).add(t)}function Ph(e,t){Jt.has(e)&&(Jt.get(e).delete(t),Jt.get(e).size||(Uc.unobserve(e),Jt.delete(e)))}function at(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zs(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ec(n.key),n)}}function it(e,t,r){return t&&Zs(e.prototype,t),r&&Zs(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function An(e,t){return An=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},An(e,t)}function hr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&An(e,t)}function Mn(e){return Mn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mn(e)}function Zi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zi=function(){return!!e})()}function xe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Th(e,t){if(t&&(ve(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xe(e)}function vr(e){var t=Zi();return function(){var r,n=Mn(e);if(t){var o=Mn(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Th(this,r)}}var Ah=(function(e){hr(r,e);var t=vr(r);function r(){return at(this,r),t.apply(this,arguments)}return it(r,[{key:"render",value:function(){return this.props.children}}]),r})(v.Component);function Mh(e,t){var r=e.children,n=e.disabled,o=v.useRef(null),a=v.useRef(null),i=v.useContext(li),s=typeof r=="function",l=s?r(o):r,c=v.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&v.isValidElement(l)&&Bo(l),d=u?Qi(l):null,f=Xi(d,o),m=function(){var b;return wo(o.current)||(o.current&&ve(o.current)==="object"?wo((b=o.current)===null||b===void 0?void 0:b.nativeElement):null)||wo(a.current)};v.useImperativeHandle(t,function(){return m()});var g=v.useRef(e);g.current=e;var p=v.useCallback(function(h){var b=g.current,y=b.onResize,S=b.data,$=h.getBoundingClientRect(),x=$.width,w=$.height,C=h.offsetWidth,j=h.offsetHeight,T=Math.floor(x),F=Math.floor(w);if(c.current.width!==T||c.current.height!==F||c.current.offsetWidth!==C||c.current.offsetHeight!==j){var k={width:T,height:F,offsetWidth:C,offsetHeight:j};c.current=k;var L=C===Math.round(x)?x:C,N=j===Math.round(w)?w:j,A=M(M({},k),{},{offsetWidth:L,offsetHeight:N});i?.(A,h,S),y&&Promise.resolve().then(function(){y(A,h)})}},[]);return v.useEffect(function(){var h=m();return h&&!n&&_h(h,p),function(){return Ph(h,p)}},[o.current,n]),v.createElement(Ah,{ref:a},u?v.cloneElement(l,{ref:f}):l)}var Kc=v.forwardRef(Mh);process.env.NODE_ENV!=="production"&&(Kc.displayName="SingleObserver");var Fh="rc-observer-key";function Nh(e,t){var r=e.children,n=typeof r=="function"?[r]:qr(r);return process.env.NODE_ENV!=="production"&&(n.length>1?Wr(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&Wr(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(o,a){var i=o?.key||"".concat(Fh,"-").concat(a);return v.createElement(Kc,Ie({},e,{key:i,ref:a===0?t:void 0}),o)})}var tn=v.forwardRef(Nh);process.env.NODE_ENV!=="production"&&(tn.displayName="ResizeObserver");tn.Collection=uh;var Js=process.env.NODE_ENV!=="test"&>()?v.useLayoutEffect:v.useEffect,Be=function(t,r){var n=v.useRef(!0);Js(function(){return t(n.current)},r),Js(function(){return n.current=!1,function(){n.current=!0}},[])},el=function(t,r){Be(function(n){if(!n)return t()},r)};function vt(e){var t=v.useRef();t.current=e;var r=v.useCallback(function(){for(var n,o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(a))},[]);return r}function Fn(e){var t=v.useRef(!1),r=v.useState(e),n=Y(r,2),o=n[0],a=n[1];v.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function i(s,l){l&&t.current||a(s)}return[o,i]}function Sa(e){return e!==void 0}function Er(e,t){var r=t||{},n=r.defaultValue,o=r.value,a=r.onChange,i=r.postState,s=Fn(function(){return Sa(o)?o:Sa(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=Y(s,2),c=l[0],u=l[1],d=o!==void 0?o:c,f=i?i(d):d,m=vt(a),g=Fn([d]),p=Y(g,2),h=p[0],b=p[1];el(function(){var S=h[0];c!==S&&m(c,S)},[h]),el(function(){Sa(o)||u(o)},[o]);var y=vt(function(S,$){u(S,$),b([d],$)});return[f,y]}function Gc(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}var kh=function(t){if(gt()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(o){return o in n.style})}return!1};function tl(e,t){return kh(e)}function Nn(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function ui(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function o(a,i){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(a);if(ze(!l,"Warning: There may be circular references"),l)return!1;if(a===i)return!0;if(r&&s>1)return!1;n.add(a);var c=s+1;if(Array.isArray(a)){if(!Array.isArray(i)||a.length!==i.length)return!1;for(var u=0;u<a.length;u++)if(!o(a[u],i[u],c))return!1;return!0}if(a&&i&&ve(a)==="object"&&ve(i)==="object"){var d=Object.keys(a);return d.length!==Object.keys(i).length?!1:d.every(function(f){return o(a[f],i[f],c)})}return!1}return o(e,t)}var Ih="%";function di(e){return e.join(Ih)}var Vh=(function(){function e(t){at(this,e),_(this,"instanceId",void 0),_(this,"cache",new Map),_(this,"extracted",new Set),this.instanceId=t}return it(e,[{key:"get",value:function(r){return this.opGet(di(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(di(r),n)}},{key:"opUpdate",value:function(r,n){var o=this.cache.get(r),a=n(o);a===null?this.cache.delete(r):this.cache.set(r,a)}}]),e})(),Kr="data-token-hash",It="data-css-hash",Dh="data-cache-path",ur="__cssinjs_instance__";function Lh(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(It,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(o){o[ur]=o[ur]||e,o[ur]===e&&document.head.insertBefore(o,r)});var n={};Array.from(document.querySelectorAll("style[".concat(It,"]"))).forEach(function(o){var a=o.getAttribute(It);if(n[a]){if(o[ur]===e){var i;(i=o.parentNode)===null||i===void 0||i.removeChild(o)}}else n[a]=!0})}return new Vh(e)}var zn=v.createContext({hashPriority:"low",cache:Lh(),defaultCache:!0});function Hh(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var Ji=(function(){function e(){at(this,e),_(this,"cache",void 0),_(this,"keys",void 0),_(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return it(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i={map:this.cache};return r.forEach(function(s){if(!i)i=void 0;else{var l;i=(l=i)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(n=i)!==null&&n!==void 0&&n.value&&a&&(i.value[1]=this.cacheCallTimes++),(o=i)===null||o===void 0?void 0:o.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var o=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(c,u){var d=Y(c,2),f=d[1];return o.internalGet(u)[1]<f?[u,o.internalGet(u)[1]]:c},[this.keys[0],this.cacheCallTimes]),i=Y(a,1),s=i[0];this.delete(s)}this.keys.push(r)}var l=this.cache;r.forEach(function(c,u){if(u===r.length-1)l.set(c,{value:[n,o.cacheCallTimes++]});else{var d=l.get(c);d?d.map||(d.map=new Map):l.set(c,{map:new Map}),l=l.get(c).map}})}},{key:"deleteByPath",value:function(r,n){var o=r.get(n[0]);if(n.length===1){var a;return o.map?r.set(n[0],{map:o.map}):r.delete(n[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var i=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&r.delete(n[0]),i}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!Hh(n,r)}),this.deleteByPath(this.cache,r)}}]),e})();_(Ji,"MAX_CACHE_SIZE",20);_(Ji,"MAX_CACHE_OFFSET",5);var rl=0,Yc=(function(){function e(t){at(this,e),_(this,"derivatives",void 0),_(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=rl,t.length===0&&Wr(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),rl+=1}return it(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,o){return o(r,n)},void 0)}}]),e})(),Ea=new Ji;function fi(e){var t=Array.isArray(e)?e:[e];return Ea.has(t)||Ea.set(t,new Yc(t)),Ea.get(t)}var zh=new WeakMap,Ra={};function Bh(e,t){for(var r=zh,n=0;n<t.length;n+=1){var o=t[n];r.has(o)||r.set(o,new WeakMap),r=r.get(o)}return r.has(Ra)||r.set(Ra,e()),r.get(Ra)}var nl=new WeakMap;function On(e){var t=nl.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof Yc?t+=n.id:n&&ve(n)==="object"?t+=On(n):t+=n}),t=Nn(t),nl.set(e,t)),t}function ol(e,t){return Nn("".concat(t,"_").concat(On(e)))}var hi=gt();function Me(e){return typeof e=="number"?"".concat(e,"px"):e}function No(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var a=M(M({},n),{},_(_({},Kr,t),It,r)),i=Object.keys(a).map(function(s){var l=a[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var So=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(r?"".concat(r,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},Wh=function(t,r,n){return Object.keys(t).length?".".concat(r).concat(n!=null&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(t).map(function(o){var a=Y(o,2),i=a[0],s=a[1];return"".concat(i,":").concat(s,";")}).join(""),"}"):""},Xc=function(t,r,n){var o={},a={};return Object.entries(t).forEach(function(i){var s,l,c=Y(i,2),u=c[0],d=c[1];if(n!=null&&(s=n.preserve)!==null&&s!==void 0&&s[u])a[u]=d;else if((typeof d=="string"||typeof d=="number")&&!(n!=null&&(l=n.ignore)!==null&&l!==void 0&&l[u])){var f,m=So(u,n?.prefix);o[m]=typeof d=="number"&&!(n!=null&&(f=n.unitless)!==null&&f!==void 0&&f[u])?"".concat(d,"px"):String(d),a[u]="var(".concat(m,")")}}),[a,Wh(o,r,{scope:n?.scope})]},qh=M({},v),al=qh.useInsertionEffect,Uh=function(t,r,n){v.useMemo(t,n),Be(function(){return r(!0)},n)},Kh=al?function(e,t,r){return al(function(){return e(),t()},r)}:Uh,Gh=M({},v),Yh=Gh.useInsertionEffect,Xh=function(t){var r=[],n=!1;function o(a){if(n){process.env.NODE_ENV!=="production"&&Wr(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(a)}return v.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(a){return a()})}},t),o},Qh=function(){return function(t){t()}},Zh=typeof Yh<"u"?Xh:Qh;function Jh(){return!1}var vi=!1;function ev(){return vi}const tv=process.env.NODE_ENV==="production"?Jh:ev;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var uo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(uo&&typeof uo.webpackHotUpdate=="function"){var rv=uo.webpackHotUpdate;uo.webpackHotUpdate=function(){return vi=!0,setTimeout(function(){vi=!1},0),rv.apply(void 0,arguments)}}}function es(e,t,r,n,o){var a=v.useContext(zn),i=a.cache,s=[e].concat(se(t)),l=di(s),c=Zh([l]),u=tv(),d=function(p){i.opUpdate(l,function(h){var b=h||[void 0,void 0],y=Y(b,2),S=y[0],$=S===void 0?0:S,x=y[1],w=x;process.env.NODE_ENV!=="production"&&x&&u&&(n?.(w,u),w=null);var C=w||r(),j=[$,C];return p?p(j):j})};v.useMemo(function(){d()},[l]);var f=i.opGet(l);process.env.NODE_ENV!=="production"&&!f&&(d(),f=i.opGet(l));var m=f[1];return Kh(function(){o?.(m)},function(g){return d(function(p){var h=Y(p,2),b=h[0],y=h[1];return g&&b===0&&o?.(m),[b+1,y]}),function(){i.opUpdate(l,function(p){var h=p||[],b=Y(h,2),y=b[0],S=y===void 0?0:y,$=b[1],x=S-1;return x===0?(c(function(){(g||!i.opGet(l))&&n?.($,!1)}),null):[S-1,$]})}},[l]),m}var nv={},ov=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",Cr=new Map;function av(e){Cr.set(e,(Cr.get(e)||0)+1)}function iv(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Kr,'="').concat(e,'"]'));r.forEach(function(n){if(n[ur]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var sv=0;function lv(e,t){Cr.set(e,(Cr.get(e)||0)-1);var r=new Set;Cr.forEach(function(n,o){n<=0&&r.add(o)}),Cr.size-r.size>sv&&r.forEach(function(n){iv(n,t),Cr.delete(n)})}var cv=function(t,r,n,o){var a=n.getDerivativeToken(t),i=M(M({},a),r);return o&&(i=o(i)),i},Qc="token";function uv(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=R.useContext(zn),o=n.cache.instanceId,a=n.container,i=r.salt,s=i===void 0?"":i,l=r.override,c=l===void 0?nv:l,u=r.formatToken,d=r.getComputedToken,f=r.cssVar,m=Bh(function(){return Object.assign.apply(Object,[{}].concat(se(t)))},t),g=On(m),p=On(c),h=f?On(f):"",b=es(Qc,[s,e.id,g,p,h],function(){var y,S=d?d(m,c,e):cv(m,c,e,u),$=M({},S),x="";if(f){var w=Xc(S,f.key,{prefix:f.prefix,ignore:f.ignore,unitless:f.unitless,preserve:f.preserve}),C=Y(w,2);S=C[0],x=C[1]}var j=ol(S,s);S._tokenKey=j,$._tokenKey=ol($,s);var T=(y=f?.key)!==null&&y!==void 0?y:j;S._themeKey=T,av(T);var F="".concat(ov,"-").concat(Nn(j));return S._hashId=F,[S,F,$,x,f?.key||""]},function(y){lv(y[0]._themeKey,o)},function(y){var S=Y(y,4),$=S[0],x=S[3];if(f&&x){var w=er(x,Nn("css-variables-".concat($._themeKey)),{mark:It,prepend:"queue",attachTo:a,priority:-999});w[ur]=o,w.setAttribute(Kr,$._themeKey)}});return b}var dv=function(t,r,n){var o=Y(t,5),a=o[2],i=o[3],s=o[4],l=n||{},c=l.plain;if(!i)return null;var u=a._tokenKey,d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=No(i,s,u,f,c);return[d,u,m]},fv={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Zc="comm",Jc="rule",eu="decl",hv="@import",vv="@namespace",gv="@keyframes",mv="@layer",tu=Math.abs,ts=String.fromCharCode;function ru(e){return e.trim()}function Eo(e,t,r){return e.replace(t,r)}function pv(e,t,r){return e.indexOf(t,r)}function Hr(e,t){return e.charCodeAt(t)|0}function Gr(e,t,r){return e.slice(t,r)}function Bt(e){return e.length}function yv(e){return e.length}function fo(e,t){return t.push(e),e}var qo=1,Yr=1,nu=0,Ot=0,Xe=0,rn="";function rs(e,t,r,n,o,a,i,s){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:qo,column:Yr,length:i,return:"",siblings:s}}function bv(){return Xe}function xv(){return Xe=Ot>0?Hr(rn,--Ot):0,Yr--,Xe===10&&(Yr=1,qo--),Xe}function Vt(){return Xe=Ot<nu?Hr(rn,Ot++):0,Yr++,Xe===10&&(Yr=1,qo++),Xe}function dr(){return Hr(rn,Ot)}function Ro(){return Ot}function Uo(e,t){return Gr(rn,e,t)}function kn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Cv(e){return qo=Yr=1,nu=Bt(rn=e),Ot=0,[]}function wv(e){return rn="",e}function $a(e){return ru(Uo(Ot-1,gi(e===91?e+2:e===40?e+1:e)))}function Sv(e){for(;(Xe=dr())&&Xe<33;)Vt();return kn(e)>2||kn(Xe)>3?"":" "}function Ev(e,t){for(;--t&&Vt()&&!(Xe<48||Xe>102||Xe>57&&Xe<65||Xe>70&&Xe<97););return Uo(e,Ro()+(t<6&&dr()==32&&Vt()==32))}function gi(e){for(;Vt();)switch(Xe){case e:return Ot;case 34:case 39:e!==34&&e!==39&&gi(Xe);break;case 40:e===41&&gi(e);break;case 92:Vt();break}return Ot}function Rv(e,t){for(;Vt()&&e+Xe!==57;)if(e+Xe===84&&dr()===47)break;return"/*"+Uo(t,Ot-1)+"*"+ts(e===47?e:Vt())}function $v(e){for(;!kn(dr());)Vt();return Uo(e,Ot)}function Ov(e){return wv($o("",null,null,null,[""],e=Cv(e),0,[0],e))}function $o(e,t,r,n,o,a,i,s,l){for(var c=0,u=0,d=i,f=0,m=0,g=0,p=1,h=1,b=1,y=0,S="",$=o,x=a,w=n,C=S;h;)switch(g=y,y=Vt()){case 40:if(g!=108&&Hr(C,d-1)==58){pv(C+=Eo($a(y),"&","&\f"),"&\f",tu(c?s[c-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:C+=$a(y);break;case 9:case 10:case 13:case 32:C+=Sv(g);break;case 92:C+=Ev(Ro()-1,7);continue;case 47:switch(dr()){case 42:case 47:fo(jv(Rv(Vt(),Ro()),t,r,l),l),(kn(g||1)==5||kn(dr()||1)==5)&&Bt(C)&&Gr(C,-1,void 0)!==" "&&(C+=" ");break;default:C+="/"}break;case 123*p:s[c++]=Bt(C)*b;case 125*p:case 59:case 0:switch(y){case 0:case 125:h=0;case 59+u:b==-1&&(C=Eo(C,/\f/g,"")),m>0&&(Bt(C)-d||p===0&&g===47)&&fo(m>32?sl(C+";",n,r,d-1,l):sl(Eo(C," ","")+";",n,r,d-2,l),l);break;case 59:C+=";";default:if(fo(w=il(C,t,r,c,u,o,s,S,$=[],x=[],d,a),a),y===123)if(u===0)$o(C,t,w,w,$,a,d,s,x);else{switch(f){case 99:if(Hr(C,3)===110)break;case 108:if(Hr(C,2)===97)break;default:u=0;case 100:case 109:case 115:}u?$o(e,w,w,n&&fo(il(e,w,w,0,0,o,s,S,o,$=[],d,x),x),o,x,d,s,n?$:x):$o(C,w,w,w,[""],x,0,s,x)}}c=u=m=0,p=b=1,S=C="",d=i;break;case 58:d=1+Bt(C),m=g;default:if(p<1){if(y==123)--p;else if(y==125&&p++==0&&xv()==125)continue}switch(C+=ts(y),y*p){case 38:b=u>0?1:(C+="\f",-1);break;case 44:s[c++]=(Bt(C)-1)*b,b=1;break;case 64:dr()===45&&(C+=$a(Vt())),f=dr(),u=d=Bt(S=C+=$v(Ro())),y++;break;case 45:g===45&&Bt(C)==2&&(p=0)}}return a}function il(e,t,r,n,o,a,i,s,l,c,u,d){for(var f=o-1,m=o===0?a:[""],g=yv(m),p=0,h=0,b=0;p<n;++p)for(var y=0,S=Gr(e,f+1,f=tu(h=i[p])),$=e;y<g;++y)($=ru(h>0?m[y]+" "+S:Eo(S,/&\f/g,m[y])))&&(l[b++]=$);return rs(e,t,r,o===0?Jc:s,l,c,u,d)}function jv(e,t,r,n){return rs(e,t,r,Zc,ts(bv()),Gr(e,2,-2),0,n)}function sl(e,t,r,n,o){return rs(e,t,r,eu,Gr(e,0,n),Gr(e,n+1,-1),n,o)}function mi(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function _v(e,t,r,n){switch(e.type){case mv:if(e.children.length)break;case hv:case vv:case eu:return e.return=e.return||e.value;case Zc:return"";case gv:return e.return=e.value+"{"+mi(e.children,n)+"}";case Jc:if(!Bt(e.value=e.props.join(",")))return""}return Bt(r=mi(e.children,n))?e.return=e.value+"{"+r+"}":""}function ou(e,t){var r=t.path,n=t.parentSelectors;ze(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var Pv=function(t,r,n){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,a=["normal","none","initial","inherit","unset"];(typeof r!="string"||a.indexOf(r)===-1&&!o.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&ou("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},Tv=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&ou("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},ll="data-ant-cssinjs-cache-path",au="_FILE_STYLE__",Sr,iu=!0;function Av(){if(!Sr&&(Sr={},gt())){var e=document.createElement("div");e.className=ll,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),i=Y(a,2),s=i[0],l=i[1];Sr[s]=l});var r=document.querySelector("style[".concat(ll,"]"));if(r){var n;iu=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function Mv(e){return Av(),!!Sr[e]}function Fv(e){var t=Sr[e],r=null;if(t&>())if(iu)r=au;else{var n=document.querySelector("style[".concat(It,'="').concat(Sr[e],'"]'));n?r=n.innerHTML:delete Sr[e]}return[r,t]}var su="_skip_check_",lu="_multi_value_";function Oo(e){var t=mi(Ov(e),_v);return t.replace(/\{%%%\:[^;];}/g,";")}function Nv(e){return ve(e)==="object"&&e&&(su in e||lu in e)}function cl(e,t,r){if(!t)return e;var n=".".concat(t),o=r==="low"?":where(".concat(n,")"):n,a=e.split(",").map(function(i){var s,l=i.trim().split(/\s+/),c=l[0]||"",u=((s=c.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return c="".concat(u).concat(o).concat(c.slice(u.length)),[c].concat(se(l.slice(1))).join(" ")});return a.join(",")}var kv=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=n.root,a=n.injectHash,i=n.parentSelectors,s=r.hashId,l=r.layer,c=r.path,u=r.hashPriority,d=r.transformers,f=d===void 0?[]:d,m=r.linters,g=m===void 0?[]:m,p="",h={};function b($){var x=$.getName(s);if(!h[x]){var w=e($.style,r,{root:!1,parentSelectors:i}),C=Y(w,1),j=C[0];h[x]="@keyframes ".concat($.getName(s)).concat(j)}}function y($){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return $.forEach(function(w){Array.isArray(w)?y(w,x):w&&x.push(w)}),x}var S=y(Array.isArray(t)?t:[t]);return S.forEach(function($){var x=typeof $=="string"&&!o?{}:$;if(typeof x=="string")p+="".concat(x,`
|
|
81
|
-
`);else if(x._keyframe)b(x);else{var w=f.reduce(function(C,j){var T;return(j==null||(T=j.visit)===null||T===void 0?void 0:T.call(j,C))||C},x);Object.keys(w).forEach(function(C){var j=w[C];if(ve(j)==="object"&&j&&(C!=="animationName"||!j._keyframe)&&!Nv(j)){var T=!1,F=C.trim(),k=!1;(o||a)&&s?F.startsWith("@")?T=!0:F==="&"?F=cl("",s,u):F=cl(C,s,u):o&&!s&&(F==="&"||F==="")&&(F="",k=!0);var L=e(j,r,{root:k,injectHash:T,parentSelectors:[].concat(se(i),[F])}),N=Y(L,2),A=N[0],B=N[1];h=M(M({},h),B),p+="".concat(F).concat(A)}else{let H=function(q,G){process.env.NODE_ENV!=="production"&&(ve(j)!=="object"||!(j!=null&&j[su]))&&[Pv,Tv].concat(se(g)).forEach(function(I){return I(q,G,{path:c,hashId:s,parentSelectors:i})});var ee=q.replace(/[A-Z]/g,function(I){return"-".concat(I.toLowerCase())}),E=G;!fv[q]&&typeof E=="number"&&E!==0&&(E="".concat(E,"px")),q==="animationName"&&G!==null&&G!==void 0&&G._keyframe&&(b(G),E=G.getName(s)),p+="".concat(ee,":").concat(E,";")};var O,V=(O=j?.value)!==null&&O!==void 0?O:j;ve(j)==="object"&&j!==null&&j!==void 0&&j[lu]&&Array.isArray(V)?V.forEach(function(q){H(C,q)}):H(C,V)}})}}),o?l&&(p&&(p="@layer ".concat(l.name," {").concat(p,"}")),l.dependencies&&(h["@layer ".concat(l.name)]=l.dependencies.map(function($){return"@layer ".concat($,", ").concat(l.name,";")}).join(`
|
|
82
|
-
`))):p="{".concat(p,"}"),[p,h]};function cu(e,t){return Nn("".concat(e.join("%")).concat(t))}function Iv(){return null}var uu="style";function pi(e,t){var r=e.token,n=e.path,o=e.hashId,a=e.layer,i=e.nonce,s=e.clientOnly,l=e.order,c=l===void 0?0:l,u=v.useContext(zn),d=u.autoClear,f=u.mock,m=u.defaultCache,g=u.hashPriority,p=u.container,h=u.ssrInline,b=u.transformers,y=u.linters,S=u.cache,$=u.layer,x=r._tokenKey,w=[x];$&&w.push("layer"),w.push.apply(w,se(n));var C=hi;process.env.NODE_ENV!=="production"&&f!==void 0&&(C=f==="client");var j=es(uu,w,function(){var N=w.join("|");if(Mv(N)){var A=Fv(N),B=Y(A,2),O=B[0],V=B[1];if(O)return[O,x,V,{},s,c]}var H=t(),q=kv(H,{hashId:o,hashPriority:g,layer:$?a:void 0,path:n.join("-"),transformers:b,linters:y}),G=Y(q,2),ee=G[0],E=G[1],I=Oo(ee),D=cu(w,I);return[I,x,D,E,s,c]},function(N,A){var B=Y(N,3),O=B[2];(A||d)&&hi&&Pn(O,{mark:It,attachTo:p})},function(N){var A=Y(N,4),B=A[0];A[1];var O=A[2],V=A[3];if(C&&B!==au){var H={mark:It,prepend:$?!1:"queue",attachTo:p,priority:c},q=typeof i=="function"?i():i;q&&(H.csp={nonce:q});var G=[],ee=[];Object.keys(V).forEach(function(I){I.startsWith("@layer")?G.push(I):ee.push(I)}),G.forEach(function(I){er(Oo(V[I]),"_layer-".concat(I),M(M({},H),{},{prepend:!0}))});var E=er(B,O,H);E[ur]=S.instanceId,E.setAttribute(Kr,x),process.env.NODE_ENV!=="production"&&E.setAttribute(Dh,w.join("|")),ee.forEach(function(I){er(Oo(V[I]),"_effect-".concat(I),H)})}}),T=Y(j,3),F=T[0],k=T[1],L=T[2];return function(N){var A;return!h||C||!m?A=v.createElement(Iv,null):A=v.createElement("style",Ie({},_(_({},Kr,k),It,L),{dangerouslySetInnerHTML:{__html:F}})),v.createElement(v.Fragment,null,A,N)}}var Vv=function(t,r,n){var o=Y(t,6),a=o[0],i=o[1],s=o[2],l=o[3],c=o[4],u=o[5],d=n||{},f=d.plain;if(c)return null;var m=a,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return m=No(a,i,s,g,f),l&&Object.keys(l).forEach(function(p){if(!r[p]){r[p]=!0;var h=Oo(l[p]),b=No(h,i,"_effect-".concat(p),g,f);p.startsWith("@layer")?m=b+m:m+=b}}),[u,s,m]},du="cssVar",Dv=function(t,r){var n=t.key,o=t.prefix,a=t.unitless,i=t.ignore,s=t.token,l=t.scope,c=l===void 0?"":l,u=R.useContext(zn),d=u.cache.instanceId,f=u.container,m=s._tokenKey,g=[].concat(se(t.path),[n,c,m]),p=es(du,g,function(){var h=r(),b=Xc(h,n,{prefix:o,unitless:a,ignore:i,scope:c}),y=Y(b,2),S=y[0],$=y[1],x=cu(g,$);return[S,$,x,n]},function(h){var b=Y(h,3),y=b[2];hi&&Pn(y,{mark:It,attachTo:f})},function(h){var b=Y(h,3),y=b[1],S=b[2];if(y){var $=er(y,S,{mark:It,prepend:"queue",attachTo:f,priority:-999});$[ur]=d,$.setAttribute(Kr,n)}});return p},Lv=function(t,r,n){var o=Y(t,4),a=o[1],i=o[2],s=o[3],l=n||{},c=l.plain;if(!a)return null;var u=-999,d={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)},f=No(a,s,i,d,c);return[u,i,f]};_(_(_({},uu,Vv),Qc,dv),du,Lv);var _t=(function(){function e(t,r){at(this,e),_(this,"name",void 0),_(this,"style",void 0),_(this,"_keyframe",!0),this.name=t,this.style=r}return it(e,[{key:"getName",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return r?"".concat(r,"-").concat(this.name):this.name}}]),e})();function Ar(e){return e.notSplit=!0,e}Ar(["borderTop","borderBottom"]),Ar(["borderTop"]),Ar(["borderBottom"]),Ar(["borderLeft","borderRight"]),Ar(["borderLeft"]),Ar(["borderRight"]);function Hv(e){return wc(e)||Cc(e)||Wi(e)||Sc()}function Wt(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function fu(e,t,r,n){if(!t.length)return r;var o=Hv(t),a=o[0],i=o.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=se(e):s=M({},e),n&&r===void 0&&i.length===1?delete s[a][i[0]]:s[a]=fu(s[a],i,r,n),s}function Nt(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!Wt(e,t.slice(0,-1))?e:fu(e,t,r,n)}function zv(e){return ve(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function ul(e){return Array.isArray(e)?[]:{}}var Bv=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Vr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=ul(t[0]);return t.forEach(function(o){function a(i,s){var l=new Set(s),c=Wt(o,i),u=Array.isArray(c);if(u||zv(c)){if(!l.has(c)){l.add(c);var d=Wt(n,i);u?n=Nt(n,i,[]):(!d||ve(d)!=="object")&&(n=Nt(n,i,ul(c))),Bv(c).forEach(function(f){a([].concat(se(i),[f]),l)})}}else n=Nt(n,i,c)}a([])}),n}function hu(){}let Qt=null;function Wv(){Qt=null,Ac()}let vu=hu;process.env.NODE_ENV!=="production"&&(vu=(e,t,r)=>{ze(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&Wv()});const Bn=vu,gu=v.createContext({}),qt=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=v.useContext(gu),r=(n,o,a)=>{if(!n)if(t===!1&&o==="deprecated"){const i=Qt;Qt||(Qt={}),Qt[e]=Qt[e]||[],Qt[e].includes(a||"")||Qt[e].push(a||""),i||console.warn("[antd] There exists deprecated usage in your code:",Qt)}else process.env.NODE_ENV!=="production"&&Bn(n,e,a)};return r.deprecated=(n,o,a,i)=>{r(n,"deprecated",`\`${o}\` is deprecated. Please use \`${a}\` instead.${i?` ${i}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=hu,e},qv=R.createContext(void 0);var Uv={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},Kv={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},Gv=M(M({},Kv),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const mu={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},dl={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},Gv),timePickerLocale:Object.assign({},mu)},pt="${label} is not a valid ${type}",Xr={locale:"en",Pagination:Uv,DatePicker:dl,TimePicker:mu,Calendar:dl,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:pt,method:pt,array:pt,object:pt,number:pt,date:pt,boolean:pt,integer:pt,float:pt,regexp:pt,email:pt,url:pt,hex:pt},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};Object.assign({},Xr.Modal);let jo=[];const fl=()=>jo.reduce((e,t)=>Object.assign(Object.assign({},e),t),Xr.Modal);function Yv(e){if(e){const t=Object.assign({},e);return jo.push(t),fl(),()=>{jo=jo.filter(r=>r!==t),fl()}}Object.assign({},Xr.Modal)}const ns=R.createContext(void 0),Xv=(e,t)=>{const r=v.useContext(ns),n=v.useMemo(()=>{var a;const i=Xr[e],s=(a=r?.[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof i=="function"?i():i),s||{})},[e,t,r]),o=v.useMemo(()=>{const a=r?.locale;return r?.exist&&!a?Xr.locale:a},[r]);return[n,o]},pu="internalMark",yu=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const a=qt("LocaleProvider");process.env.NODE_ENV!=="production"&&a(n===pu,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}v.useEffect(()=>Yv(t?.Modal),[t]);const o=v.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return v.createElement(ns.Provider,{value:o},r)};process.env.NODE_ENV!=="production"&&(yu.displayName="LocaleProvider");const bu={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},In=Object.assign(Object.assign({},bu),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
83
|
-
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
84
|
-
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function Qv(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){const{colorSuccess:n,colorWarning:o,colorError:a,colorInfo:i,colorPrimary:s,colorBgBase:l,colorTextBase:c}=e,u=t(s),d=t(n),f=t(o),m=t(a),g=t(i),p=r(l,c),h=e.colorLink||e.colorInfo,b=t(h),y=new Je(m[1]).mix(new Je(m[3]),50).toHexString();return Object.assign(Object.assign({},p),{colorPrimaryBg:u[1],colorPrimaryBgHover:u[2],colorPrimaryBorder:u[3],colorPrimaryBorderHover:u[4],colorPrimaryHover:u[5],colorPrimary:u[6],colorPrimaryActive:u[7],colorPrimaryTextHover:u[8],colorPrimaryText:u[9],colorPrimaryTextActive:u[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:y,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[10],colorWarningBg:f[1],colorWarningBgHover:f[2],colorWarningBorder:f[3],colorWarningBorderHover:f[4],colorWarningHover:f[4],colorWarning:f[6],colorWarningActive:f[7],colorWarningTextHover:f[8],colorWarningText:f[9],colorWarningTextActive:f[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new Je("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const Zv=e=>{let t=e,r=e,n=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}};function Jv(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1},Zv(n))}const eg=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function tg(e){return(e+8)/e}function rg(e){const t=Array.from({length:10}).map((r,n)=>{const o=n-1,a=e*Math.pow(Math.E,o/5),i=n>1?Math.floor(a):Math.ceil(a);return Math.floor(i/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:tg(r)}))}const ng=e=>{const t=rg(e),r=t.map(u=>u.size),n=t.map(u=>u.lineHeight),o=r[1],a=r[0],i=r[2],s=n[1],l=n[0],c=n[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:i,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:s,lineHeightLG:c,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(c*i),fontHeightSM:Math.round(l*a),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function og(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const Et=(e,t)=>new Je(e).setA(t).toRgbString(),Cn=(e,t)=>new Je(e).darken(t).toHexString(),ag=e=>{const t=_n(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},ig=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Et(n,.88),colorTextSecondary:Et(n,.65),colorTextTertiary:Et(n,.45),colorTextQuaternary:Et(n,.25),colorFill:Et(n,.15),colorFillSecondary:Et(n,.06),colorFillTertiary:Et(n,.04),colorFillQuaternary:Et(n,.02),colorBgSolid:Et(n,1),colorBgSolidHover:Et(n,.75),colorBgSolidActive:Et(n,.95),colorBgLayout:Cn(r,4),colorBgContainer:Cn(r,0),colorBgElevated:Cn(r,0),colorBgSpotlight:Et(n,.85),colorBgBlur:"transparent",colorBorder:Cn(r,15),colorBorderSecondary:Cn(r,6)}};function sg(e){xa.pink=xa.magenta,Ca.pink=Ca.magenta;const t=Object.keys(bu).map(r=>{const n=e[r]===xa[r]?Ca[r]:_n(e[r]);return Array.from({length:10},()=>1).reduce((o,a,i)=>(o[`${r}-${i+1}`]=n[i],o[`${r}${i+1}`]=n[i],o),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),Qv(e,{generateColorPalettes:ag,generateNeutralColorPalettes:ig})),ng(e.fontSize)),og(e)),eg(e)),Jv(e))}const xu=fi(sg),yi={token:In,override:{override:In},hashed:!0},Cu=R.createContext(yi),bi="ant",os="anticon",lg=["outlined","borderless","filled","underlined"],cg=(e,t)=>t||(e?`${bi}-${e}`:bi),Ut=v.createContext({getPrefixCls:cg,iconPrefixCls:os}),{Consumer:Eb}=Ut,hl={};function Ko(e){const t=v.useContext(Ut),{getPrefixCls:r,direction:n,getPopupContainer:o}=t,a=t[e];return Object.assign(Object.assign({classNames:hl,styles:hl},a),{getPrefixCls:r,direction:n,getPopupContainer:o})}const ug=`-ant-${Date.now()}-${Math.random()}`;function dg(e,t){const r={},n=(i,s)=>{let l=i.clone();return l=s?.(l)||l,l.toRgbString()},o=(i,s)=>{const l=new Je(i),c=_n(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=c[1],r[`${s}-color-hover`]=c[4],r[`${s}-color-active`]=c[6],r[`${s}-color-outline`]=l.clone().setA(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=c[0],r[`${s}-color-deprecated-border`]=c[2]};if(t.primaryColor){o(t.primaryColor,"primary");const i=new Je(t.primaryColor),s=_n(i.toRgbString());s.forEach((c,u)=>{r[`primary-${u+1}`]=c}),r["primary-color-deprecated-l-35"]=n(i,c=>c.lighten(35)),r["primary-color-deprecated-l-20"]=n(i,c=>c.lighten(20)),r["primary-color-deprecated-t-20"]=n(i,c=>c.tint(20)),r["primary-color-deprecated-t-50"]=n(i,c=>c.tint(50)),r["primary-color-deprecated-f-12"]=n(i,c=>c.setA(c.a*.12));const l=new Je(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,c=>c.setA(c.a*.3)),r["primary-color-active-deprecated-d-02"]=n(l,c=>c.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
|
|
85
|
-
:root {
|
|
86
|
-
${Object.keys(r).map(i=>`--${e}-${i}: ${r[i]};`).join(`
|
|
87
|
-
`)}
|
|
88
|
-
}
|
|
89
|
-
`.trim()}function fg(e,t){const r=dg(e,t);gt()?er(r,`${ug}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Bn(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Vn=v.createContext(!1),hg=({children:e,disabled:t})=>{const r=v.useContext(Vn);return v.createElement(Vn.Provider,{value:t??r},e)},Qr=v.createContext(void 0),vg=({children:e,size:t})=>{const r=v.useContext(Qr);return v.createElement(Qr.Provider,{value:t||r},e)};function gg(){const e=R.useContext(Vn),t=R.useContext(Qr);return{componentDisabled:e,componentSize:t}}var wu=it(function e(){at(this,e)}),Su="CALC_UNIT",mg=new RegExp(Su,"g");function Oa(e){return typeof e=="number"?"".concat(e).concat(Su):e}var pg=(function(e){hr(r,e);var t=vr(r);function r(n,o){var a;at(this,r),a=t.call(this),_(xe(a),"result",""),_(xe(a),"unitlessCssVar",void 0),_(xe(a),"lowPriority",void 0);var i=ve(n);return a.unitlessCssVar=o,n instanceof r?a.result="(".concat(n.result,")"):i==="number"?a.result=Oa(n):i==="string"&&(a.result=n),a}return it(r,[{key:"add",value:function(o){return o instanceof r?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(Oa(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof r?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(Oa(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof r?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var a=this,i=o||{},s=i.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(c){return a.result.includes(c)})&&(l=!1),this.result=this.result.replace(mg,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r})(wu),yg=(function(e){hr(r,e);var t=vr(r);function r(n){var o;return at(this,r),o=t.call(this),_(xe(o),"result",0),n instanceof r?o.result=n.result:typeof n=="number"&&(o.result=n),o}return it(r,[{key:"add",value:function(o){return o instanceof r?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof r?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof r?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof r?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),r})(wu),bg=function(t,r){var n=t==="css"?pg:yg;return function(o){return new n(o,r)}},vl=function(t,r){return"".concat([r,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function gl(e,t,r,n){var o=M({},t[e]);if(n!=null&&n.deprecatedTokens){var a=n.deprecatedTokens;a.forEach(function(s){var l=Y(s,2),c=l[0],u=l[1];if(process.env.NODE_ENV!=="production"&&ze(!(o!=null&&o[c]),"Component Token `".concat(String(c),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(u),"` instead.")),o!=null&&o[c]||o!=null&&o[u]){var d;(d=o[u])!==null&&d!==void 0||(o[u]=o?.[c])}})}var i=M(M({},r),o);return Object.keys(i).forEach(function(s){i[s]===t[s]&&delete i[s]}),i}var Eu=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",xi=!0;function rr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Eu)return Object.assign.apply(Object,[{}].concat(t));xi=!1;var n={};return t.forEach(function(o){if(ve(o)==="object"){var a=Object.keys(o);a.forEach(function(i){Object.defineProperty(n,i,{configurable:!0,enumerable:!0,get:function(){return o[i]}})})}}),xi=!0,n}var ml={};function xg(){}var Cg=function(t){var r,n=t,o=xg;return Eu&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(i,s){if(xi){var l;(l=r)===null||l===void 0||l.add(s)}return i[s]}}),o=function(i,s){var l;ml[i]={global:Array.from(r),component:M(M({},(l=ml[i])===null||l===void 0?void 0:l.component),s)}}),{token:n,keys:r,flush:o}};function pl(e,t,r){if(typeof r=="function"){var n;return r(rr(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function wg(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return"max(".concat(n.map(function(a){return Me(a)}).join(","),")")},min:function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return"min(".concat(n.map(function(a){return Me(a)}).join(","),")")}}}var Sg=1e3*60*10,Eg=(function(){function e(){at(this,e),_(this,"map",new Map),_(this,"objectIDMap",new WeakMap),_(this,"nextID",0),_(this,"lastAccessBeat",new Map),_(this,"accessBeat",0)}return it(e,[{key:"set",value:function(r,n){this.clear();var o=this.getCompositeKey(r);this.map.set(o,n),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(r){var n=this.getCompositeKey(r),o=this.map.get(n);return this.lastAccessBeat.set(n,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(r){var n=this,o=r.map(function(a){return a&&ve(a)==="object"?"obj_".concat(n.getObjectID(a)):"".concat(ve(a),"_").concat(a)});return o.join("|")}},{key:"getObjectID",value:function(r){if(this.objectIDMap.has(r))return this.objectIDMap.get(r);var n=this.nextID;return this.objectIDMap.set(r,n),this.nextID+=1,n}},{key:"clear",value:function(){var r=this;if(this.accessBeat>1e4){var n=Date.now();this.lastAccessBeat.forEach(function(o,a){n-o>Sg&&(r.map.delete(a),r.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e})(),yl=new Eg;function Rg(e,t){return R.useMemo(function(){var r=yl.get(t);if(r)return r;var n=e();return yl.set(t,n),n},t)}var $g=function(){return{}};function Og(e){var t=e.useCSP,r=t===void 0?$g:t,n=e.useToken,o=e.usePrefix,a=e.getResetStyles,i=e.getCommonStyle,s=e.getCompUnitless;function l(f,m,g,p){var h=Array.isArray(f)?f[0]:f;function b(j){return"".concat(String(h)).concat(j.slice(0,1).toUpperCase()).concat(j.slice(1))}var y=p?.unitless||{},S=typeof s=="function"?s(f):{},$=M(M({},S),{},_({},b("zIndexPopup"),!0));Object.keys(y).forEach(function(j){$[b(j)]=y[j]});var x=M(M({},p),{},{unitless:$,prefixToken:b}),w=u(f,m,g,x),C=c(h,g,x);return function(j){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:j,F=w(j,T),k=Y(F,2),L=k[1],N=C(T),A=Y(N,2),B=A[0],O=A[1];return[B,L,O]}}function c(f,m,g){var p=g.unitless,h=g.injectStyle,b=h===void 0?!0:h,y=g.prefixToken,S=g.ignore,$=function(C){var j=C.rootCls,T=C.cssVar,F=T===void 0?{}:T,k=n(),L=k.realToken;return Dv({path:[f],prefix:F.prefix,key:F.key,unitless:p,ignore:S,token:L,scope:j},function(){var N=pl(f,L,m),A=gl(f,L,N,{deprecatedTokens:g?.deprecatedTokens});return Object.keys(N).forEach(function(B){A[y(B)]=A[B],delete A[B]}),A}),null},x=function(C){var j=n(),T=j.cssVar;return[function(F){return b&&T?R.createElement(R.Fragment,null,R.createElement($,{rootCls:C,cssVar:T,component:f}),F):F},T?.key]};return x}function u(f,m,g){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=Array.isArray(f)?f:[f,f],b=Y(h,1),y=b[0],S=h.join("-"),$=e.layer||{name:"antd"};return function(x){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x,C=n(),j=C.theme,T=C.realToken,F=C.hashId,k=C.token,L=C.cssVar,N=o(),A=N.rootPrefixCls,B=N.iconPrefixCls,O=r(),V=L?"css":"js",H=Rg(function(){var D=new Set;return L&&Object.keys(p.unitless||{}).forEach(function(W){D.add(So(W,L.prefix)),D.add(So(W,vl(y,L.prefix)))}),bg(V,D)},[V,y,L?.prefix]),q=wg(V),G=q.max,ee=q.min,E={theme:j,token:k,hashId:F,nonce:function(){return O.nonce},clientOnly:p.clientOnly,layer:$,order:p.order||-999};typeof a=="function"&&pi(M(M({},E),{},{clientOnly:!1,path:["Shared",A]}),function(){return a(k,{prefix:{rootPrefixCls:A,iconPrefixCls:B},csp:O})});var I=pi(M(M({},E),{},{path:[S,x,B]}),function(){if(p.injectStyle===!1)return[];var D=Cg(k),W=D.token,z=D.flush,K=pl(y,T,g),Q=".".concat(x),X=gl(y,T,K,{deprecatedTokens:p.deprecatedTokens});L&&K&&ve(K)==="object"&&Object.keys(K).forEach(function(me){K[me]="var(".concat(So(me,vl(y,L.prefix)),")")});var te=rr(W,{componentCls:Q,prefixCls:x,iconCls:".".concat(B),antCls:".".concat(A),calc:H,max:G,min:ee},L?K:X),oe=m(te,{hashId:F,prefixCls:x,rootPrefixCls:A,iconPrefixCls:B});z(y,X);var ae=typeof i=="function"?i(te,x,w,p.resetFont):null;return[p.resetStyle===!1?null:ae,oe]});return[I,F]}}function d(f,m,g){var p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},h=u(f,m,g,M({resetStyle:!1,order:-998},p)),b=function(S){var $=S.prefixCls,x=S.rootCls,w=x===void 0?$:x;return h($,w),null};return process.env.NODE_ENV!=="production"&&(b.displayName="SubStyle_".concat(String(Array.isArray(f)?f.join("."):f))),b}return{genStyleHooks:l,genSubStyleComponent:d,genComponentStyleHook:u}}const ko=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],jg="5.27.1";function ja(e){return e>=0&&e<=255}function ho(e,t){const{r,g:n,b:o,a}=new Je(e).toRgb();if(a<1)return e;const{r:i,g:s,b:l}=new Je(t).toRgb();for(let c=.01;c<=1;c+=.01){const u=Math.round((r-i*(1-c))/c),d=Math.round((n-s*(1-c))/c),f=Math.round((o-l*(1-c))/c);if(ja(u)&&ja(d)&&ja(f))return new Je({r:u,g:d,b:f,a:Math.round(c*100)/100}).toRgbString()}return new Je({r,g:n,b:o,a:1}).toRgbString()}var _g=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Ru(e){const{override:t}=e,r=_g(e,["override"]),n=Object.assign({},t);Object.keys(In).forEach(f=>{delete n[f]});const o=Object.assign(Object.assign({},r),n),a=480,i=576,s=768,l=992,c=1200,u=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:ho(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:ho(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:ho(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:ho(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
90
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
91
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
92
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
93
|
-
`,boxShadowSecondary:`
|
|
94
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
95
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
96
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
97
|
-
`,boxShadowTertiary:`
|
|
98
|
-
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
99
|
-
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
100
|
-
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
101
|
-
`,screenXS:a,screenXSMin:a,screenXSMax:i-1,screenSM:i,screenSMMin:i,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:c-1,screenXL:c,screenXLMin:c,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
102
|
-
0 1px 2px -2px ${new Je("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
103
|
-
0 3px 6px 0 ${new Je("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
104
|
-
0 5px 12px 4px ${new Je("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
105
|
-
`,boxShadowDrawerRight:`
|
|
106
|
-
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
107
|
-
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
108
|
-
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
109
|
-
`,boxShadowDrawerLeft:`
|
|
110
|
-
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
111
|
-
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
112
|
-
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
113
|
-
`,boxShadowDrawerUp:`
|
|
114
|
-
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
115
|
-
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
116
|
-
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
117
|
-
`,boxShadowDrawerDown:`
|
|
118
|
-
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
119
|
-
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
120
|
-
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
121
|
-
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),n)}var bl=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const $u={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},Pg={motionBase:!0,motionUnit:!0},Tg={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Ou=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:o}=t,a=bl(t,["override"]);let i=Object.assign(Object.assign({},n),{override:o});return i=Ru(i),a&&Object.entries(a).forEach(([s,l])=>{const{theme:c}=l,u=bl(l,["theme"]);let d=u;c&&(d=Ou(Object.assign(Object.assign({},i),u),{override:u},c)),i[s]=d}),i};function nn(){const{token:e,hashed:t,theme:r,override:n,cssVar:o}=R.useContext(Cu),a=`${jg}-${t||""}`,i=r||xu,[s,l,c]=uv(i,[In,e],{salt:a,override:n,getComputedToken:Ou,formatToken:Ru,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:$u,ignore:Pg,preserve:Tg}});return[i,c,t?l:"",s,o]}const as=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),Ag=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Mg=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Fg=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Ng=(e,t,r,n)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=r?`.${r}`:o,i={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return n!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),i),{[o]:i})}},kg=(e,t)=>({outline:`${Me(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Ig=(e,t)=>({"&:focus-visible":kg(e,t)}),ju=e=>({[`.${e}`]:Object.assign(Object.assign({},Ag()),{[`.${e} .${e}-icon`]:{display:"block"}})}),_u=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Ig(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Wn}=Og({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=R.useContext(Ut);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,o]=nn();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{const{csp:e}=R.useContext(Ut);return e??{}},getResetStyles:(e,t)=>{var r;const n=Fg(e);return[n,{"&":n},ju((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:os)]},getCommonStyle:Ng,getCompUnitless:()=>$u});function Vg(e,t){return ko.reduce((r,n)=>{const o=e[`${n}1`],a=e[`${n}3`],i=e[`${n}6`],s=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:o,lightBorderColor:a,darkColor:i,textColor:s}))},{})}const Dg=(e,t)=>{const[r,n]=nn();return pi({token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>ju(e))},Lg=Object.assign({},v),{useId:xl}=Lg,Hg=()=>"",zg=typeof xl>"u"?Hg:xl;function Bg(e,t,r){var n,o;const a=qt("ConfigProvider"),i=e||{},s=i.inherit===!1||!t?Object.assign(Object.assign({},yi),{hashed:(n=t?.hashed)!==null&&n!==void 0?n:yi.hashed,cssVar:t?.cssVar}):t,l=zg();if(process.env.NODE_ENV!=="production"){const c=i.cssVar||s.cssVar,u=!!(typeof i.cssVar=="object"&&(!((o=i.cssVar)===null||o===void 0)&&o.key)||l);process.env.NODE_ENV!=="production"&&a(!c||u,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Gi(()=>{var c,u;if(!e)return t;const d=Object.assign({},s.components);Object.keys(e.components||{}).forEach(g=>{d[g]=Object.assign(Object.assign({},d[g]),e.components[g])});const f=`css-var-${l.replace(/:/g,"")}`,m=((c=i.cssVar)!==null&&c!==void 0?c:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r?.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof i.cssVar=="object"?i.cssVar:{}),{key:typeof i.cssVar=="object"&&((u=i.cssVar)===null||u===void 0?void 0:u.key)||f});return Object.assign(Object.assign(Object.assign({},s),i),{token:Object.assign(Object.assign({},s.token),i.token),components:d,cssVar:m})},[i,s],(c,u)=>c.some((d,f)=>{const m=u[f];return!ui(d,m,!0)}))}var Wg=["children"],Pu=v.createContext({});function qg(e){var t=e.children,r=ft(e,Wg);return v.createElement(Pu.Provider,{value:r},t)}var Ug=(function(e){hr(r,e);var t=vr(r);function r(){return at(this,r),t.apply(this,arguments)}return it(r,[{key:"render",value:function(){return this.props.children}}]),r})(v.Component);function Kg(e){var t=v.useReducer(function(s){return s+1},0),r=Y(t,2),n=r[1],o=v.useRef(e),a=vt(function(){return o.current}),i=vt(function(s){o.current=typeof s=="function"?s(o.current):s,n()});return[a,i]}var cr="none",vo="appear",go="enter",mo="leave",Cl="none",kt="prepare",Dr="start",Lr="active",is="end",Tu="prepared";function wl(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function Gg(e,t){var r={animationend:wl("Animation","AnimationEnd"),transitionend:wl("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var Yg=Gg(gt(),typeof window<"u"?window:{}),Au={};if(gt()){var Xg=document.createElement("div");Au=Xg.style}var po={};function Mu(e){if(po[e])return po[e];var t=Yg[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o<n;o+=1){var a=r[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in Au)return po[e]=t[a],po[e]}return""}var Fu=Mu("animationend"),Nu=Mu("transitionend"),ku=!!(Fu&&Nu),Sl=Fu||"animationend",El=Nu||"transitionend";function Rl(e,t){if(!e)return null;if(ve(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const Qg=(function(e){var t=R.useRef();function r(o){o&&(o.removeEventListener(El,e),o.removeEventListener(Sl,e))}function n(o){t.current&&t.current!==o&&r(t.current),o&&o!==t.current&&(o.addEventListener(El,e),o.addEventListener(Sl,e),t.current=o)}return v.useEffect(function(){return function(){r(t.current)}},[]),[n,r]});var Iu=gt()?R.useLayoutEffect:R.useEffect,Vu=function(t){return+setTimeout(t,16)},Du=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Vu=function(t){return window.requestAnimationFrame(t)},Du=function(t){return window.cancelAnimationFrame(t)});var $l=0,Go=new Map;function Lu(e){Go.delete(e)}var Zr=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;$l+=1;var n=$l;function o(a){if(a===0)Lu(n),t();else{var i=Vu(function(){o(a-1)});Go.set(n,i)}}return o(r),n};Zr.cancel=function(e){var t=Go.get(e);return Lu(e),Du(t)};process.env.NODE_ENV!=="production"&&(Zr.ids=function(){return Go});const Zg=(function(){var e=v.useRef(null);function t(){Zr.cancel(e.current)}function r(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Zr(function(){o<=1?n({isCanceled:function(){return a!==e.current}}):r(n,o-1)});e.current=a}return v.useEffect(function(){return function(){t()}},[]),[r,t]});var Jg=[kt,Dr,Lr,is],em=[kt,Tu],Hu=!1,tm=!0;function zu(e){return e===Lr||e===is}const rm=(function(e,t,r){var n=Fn(Cl),o=Y(n,2),a=o[0],i=o[1],s=Zg(),l=Y(s,2),c=l[0],u=l[1];function d(){i(kt,!0)}var f=t?em:Jg;return Iu(function(){if(a!==Cl&&a!==is){var m=f.indexOf(a),g=f[m+1],p=r(a);p===Hu?i(g,!0):g&&c(function(h){function b(){h.isCanceled()||i(g,!0)}p===!0?b():Promise.resolve(p).then(b)})}},[e,a]),v.useEffect(function(){return function(){u()}},[]),[d,a]});function nm(e,t,r,n){var o=n.motionEnter,a=o===void 0?!0:o,i=n.motionAppear,s=i===void 0?!0:i,l=n.motionLeave,c=l===void 0?!0:l,u=n.motionDeadline,d=n.motionLeaveImmediately,f=n.onAppearPrepare,m=n.onEnterPrepare,g=n.onLeavePrepare,p=n.onAppearStart,h=n.onEnterStart,b=n.onLeaveStart,y=n.onAppearActive,S=n.onEnterActive,$=n.onLeaveActive,x=n.onAppearEnd,w=n.onEnterEnd,C=n.onLeaveEnd,j=n.onVisibleChanged,T=Fn(),F=Y(T,2),k=F[0],L=F[1],N=Kg(cr),A=Y(N,2),B=A[0],O=A[1],V=Fn(null),H=Y(V,2),q=H[0],G=H[1],ee=B(),E=R.useRef(!1),I=R.useRef(null);function D(){return r()}var W=R.useRef(!1);function z(){O(cr),G(null,!0)}var K=vt(function(be){var Ee=B();if(Ee!==cr){var ge=D();if(!(be&&!be.deadline&&be.target!==ge)){var J=W.current,Ce;Ee===vo&&J?Ce=x?.(ge,be):Ee===go&&J?Ce=w?.(ge,be):Ee===mo&&J&&(Ce=C?.(ge,be)),J&&Ce!==!1&&z()}}}),Q=Qg(K),X=Y(Q,1),te=X[0],oe=function(Ee){switch(Ee){case vo:return _(_(_({},kt,f),Dr,p),Lr,y);case go:return _(_(_({},kt,m),Dr,h),Lr,S);case mo:return _(_(_({},kt,g),Dr,b),Lr,$);default:return{}}},ae=v.useMemo(function(){return oe(ee)},[ee]),me=rm(ee,!e,function(be){if(be===kt){var Ee=ae[kt];return Ee?Ee(D()):Hu}if(re in ae){var ge;G(((ge=ae[re])===null||ge===void 0?void 0:ge.call(ae,D(),null))||null)}return re===Lr&&ee!==cr&&(te(D()),u>0&&(clearTimeout(I.current),I.current=setTimeout(function(){K({deadline:!0})},u))),re===Tu&&z(),tm}),U=Y(me,2),ce=U[0],re=U[1],ue=zu(re);W.current=ue;var ye=R.useRef(null);Iu(function(){if(!(E.current&&ye.current===t)){L(t);var be=E.current;E.current=!0;var Ee;!be&&t&&s&&(Ee=vo),be&&t&&a&&(Ee=go),(be&&!t&&c||!be&&d&&!t&&c)&&(Ee=mo);var ge=oe(Ee);Ee&&(e||ge[kt])?(O(Ee),ce()):O(cr),ye.current=t}},[t]),R.useEffect(function(){(ee===vo&&!s||ee===go&&!a||ee===mo&&!c)&&O(cr)},[s,a,c]),R.useEffect(function(){return function(){E.current=!1,clearTimeout(I.current)}},[]);var de=v.useRef(!1);R.useEffect(function(){k&&(de.current=!0),k!==void 0&&ee===cr&&((de.current||k)&&j?.(k),de.current=!0)},[k,ee]);var $e=q;return ae[kt]&&re===Dr&&($e=M({transition:"none"},$e)),[ee,re,$e,k??t]}function om(e){var t=e;ve(e)==="object"&&(t=e.transitionSupport);function r(o,a){return!!(o.motionName&&t&&a!==!1)}var n=v.forwardRef(function(o,a){var i=o.visible,s=i===void 0?!0:i,l=o.removeOnLeave,c=l===void 0?!0:l,u=o.forceRender,d=o.children,f=o.motionName,m=o.leavedClassName,g=o.eventProps,p=v.useContext(Pu),h=p.motion,b=r(o,h),y=R.useRef(),S=R.useRef();function $(){try{return y.current instanceof HTMLElement?y.current:wo(S.current)}catch{return null}}var x=nm(b,s,$,o),w=Y(x,4),C=w[0],j=w[1],T=w[2],F=w[3],k=v.useRef(F);F&&(k.current=!0);var L=v.useCallback(function(H){y.current=H,Yi(a,H)},[a]),N,A=M(M({},g),{},{visible:s});if(!d)N=null;else if(C===cr)F?N=d(M({},A),L):!c&&k.current&&m?N=d(M(M({},A),{},{className:m}),L):u||!c&&!m?N=d(M(M({},A),{},{style:{display:"none"}}),L):N=null;else{var B;j===kt?B="prepare":zu(j)?B="active":j===Dr&&(B="start");var O=Rl(f,"".concat(C,"-").concat(B));N=d(M(M({},A),{},{className:le(Rl(f,C),_(_({},O,O&&B),f,typeof f=="string")),style:T}),L)}if(v.isValidElement(N)&&Bo(N)){var V=Qi(N);V||(N=v.cloneElement(N,{ref:L}))}return v.createElement(Ug,{ref:S},N)});return n.displayName="CSSMotion",n}const ss=om(ku);var Ci="add",wi="keep",Si="remove",_a="removed";function am(e){var t;return e&&ve(e)==="object"&&"key"in e?t=e:t={key:e},M(M({},t),{},{key:String(t.key)})}function Ei(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(am)}function im(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,o=t.length,a=Ei(e),i=Ei(t);a.forEach(function(c){for(var u=!1,d=n;d<o;d+=1){var f=i[d];if(f.key===c.key){n<d&&(r=r.concat(i.slice(n,d).map(function(m){return M(M({},m),{},{status:Ci})})),n=d),r.push(M(M({},f),{},{status:wi})),n+=1,u=!0;break}}u||r.push(M(M({},c),{},{status:Si}))}),n<o&&(r=r.concat(i.slice(n).map(function(c){return M(M({},c),{},{status:Ci})})));var s={};r.forEach(function(c){var u=c.key;s[u]=(s[u]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){r=r.filter(function(u){var d=u.key,f=u.status;return d!==c||f!==Si}),r.forEach(function(u){u.key===c&&(u.status=wi)})}),r}var sm=["component","children","onVisibleChanged","onAllRemoved"],lm=["status"],cm=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function um(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ss,r=(function(n){hr(a,n);var o=vr(a);function a(){var i;at(this,a);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return i=o.call.apply(o,[this].concat(l)),_(xe(i),"state",{keyEntities:[]}),_(xe(i),"removeKey",function(u){i.setState(function(d){var f=d.keyEntities.map(function(m){return m.key!==u?m:M(M({},m),{},{status:_a})});return{keyEntities:f}},function(){var d=i.state.keyEntities,f=d.filter(function(m){var g=m.status;return g!==_a}).length;f===0&&i.props.onAllRemoved&&i.props.onAllRemoved()})}),i}return it(a,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,u=c.component,d=c.children,f=c.onVisibleChanged;c.onAllRemoved;var m=ft(c,sm),g=u||v.Fragment,p={};return cm.forEach(function(h){p[h]=m[h],delete m[h]}),delete m.keys,v.createElement(g,m,l.map(function(h,b){var y=h.status,S=ft(h,lm),$=y===Ci||y===wi;return v.createElement(t,Ie({},p,{key:S.key,visible:$,eventProps:S,onVisibleChanged:function(w){f?.(w,{key:S.key}),w||s.removeKey(S.key)}}),function(x,w){return d(M(M({},x),{},{index:b}),w)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,u=l.keyEntities,d=Ei(c),f=im(u,d);return{keyEntities:f.filter(function(m){var g=u.find(function(p){var h=p.key;return m.key===h});return!(g&&g.status===_a&&m.status===Si)})}}}]),a})(v.Component);return _(r,"defaultProps",{component:"div"}),r}um(ku);const Ri=v.createContext(!0);process.env.NODE_ENV!=="production"&&(Ri.displayName="MotionCacheContext");function dm(e){const t=v.useContext(Ri),{children:r}=e,[,n]=nn(),{motion:o}=n,a=v.useRef(!1);return a.current||(a.current=t!==o),a.current?v.createElement(Ri.Provider,{value:o},v.createElement(qg,{motion:o},r)):r}const Bu=v.memo(({dropdownMatchSelectWidth:e})=>(qt("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Bu.displayName="PropWarning");const fm=process.env.NODE_ENV!=="production"?Bu:()=>null;var hm=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let $i=!1;process.env.NODE_ENV;const vm=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Wu;function gm(){return Wu||bi}function mm(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const pm=e=>{const{prefixCls:t,iconPrefixCls:r,theme:n,holderRender:o}=e;t!==void 0&&(Wu=t),n&&mm(n)&&(process.env.NODE_ENV!=="production"&&Bn(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),fg(gm(),n))},ym=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:a,form:i,locale:s,componentSize:l,direction:c,space:u,splitter:d,virtual:f,dropdownMatchSelectWidth:m,popupMatchSelectWidth:g,popupOverflow:p,legacyLocale:h,parentContext:b,iconPrefixCls:y,theme:S,componentDisabled:$,segmented:x,statistic:w,spin:C,calendar:j,carousel:T,cascader:F,collapse:k,typography:L,checkbox:N,descriptions:A,divider:B,drawer:O,skeleton:V,steps:H,image:q,layout:G,list:ee,mentions:E,modal:I,progress:D,result:W,slider:z,breadcrumb:K,menu:Q,pagination:X,input:te,textArea:oe,empty:ae,badge:me,radio:U,rate:ce,switch:re,transfer:ue,avatar:ye,message:de,tag:$e,table:be,card:Ee,tabs:ge,timeline:J,timePicker:Ce,upload:Re,notification:Qe,tree:ke,colorPicker:Ve,datePicker:tt,rangePicker:Te,flex:Oe,wave:Se,dropdown:pe,warning:De,tour:ie,tooltip:fe,popover:Ue,popconfirm:Kt,floatButton:gr,floatButtonGroup:Rr,variant:an,inputNumber:$r,treeSelect:Pt}=e,st=v.useCallback((Fe,Ge)=>{const{prefixCls:ht}=e;if(Ge)return Ge;const ct=ht||b.getPrefixCls("");return Fe?`${ct}-${Fe}`:ct},[b.getPrefixCls,e.prefixCls]),Ke=y||b.iconPrefixCls||os,Gt=r||b.csp;Dg(Ke,Gt);const lt=Bg(S,b.theme,{prefixCls:st("")});process.env.NODE_ENV!=="production"&&($i=$i||!!lt);const Ae={csp:Gt,autoInsertSpaceInButton:n,alert:o,anchor:a,locale:s||h,direction:c,space:u,splitter:d,virtual:f,popupMatchSelectWidth:g??m,popupOverflow:p,getPrefixCls:st,iconPrefixCls:Ke,theme:lt,segmented:x,statistic:w,spin:C,calendar:j,carousel:T,cascader:F,collapse:k,typography:L,checkbox:N,descriptions:A,divider:B,drawer:O,skeleton:V,steps:H,image:q,input:te,textArea:oe,layout:G,list:ee,mentions:E,modal:I,progress:D,result:W,slider:z,breadcrumb:K,menu:Q,pagination:X,empty:ae,badge:me,radio:U,rate:ce,switch:re,transfer:ue,avatar:ye,message:de,tag:$e,table:be,card:Ee,tabs:ge,timeline:J,timePicker:Ce,upload:Re,notification:Qe,tree:ke,colorPicker:Ve,datePicker:tt,rangePicker:Te,flex:Oe,wave:Se,dropdown:pe,warning:De,tour:ie,tooltip:fe,popover:Ue,popconfirm:Kt,floatButton:gr,floatButtonGroup:Rr,variant:an,inputNumber:$r,treeSelect:Pt};process.env.NODE_ENV!=="production"&&qt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const je=Object.assign({},b);Object.keys(Ae).forEach(Fe=>{Ae[Fe]!==void 0&&(je[Fe]=Ae[Fe])}),vm.forEach(Fe=>{const Ge=e[Fe];Ge&&(je[Fe]=Ge)}),typeof n<"u"&&(je.button=Object.assign({autoInsertSpace:n},je.button));const rt=Gi(()=>je,je,(Fe,Ge)=>{const ht=Object.keys(Fe),ct=Object.keys(Ge);return ht.length!==ct.length||ht.some(Lt=>Fe[Lt]!==Ge[Lt])}),{layer:Dt}=v.useContext(zn),mt=v.useMemo(()=>({prefixCls:Ke,csp:Gt,layer:Dt?"antd":void 0}),[Ke,Gt,Dt]);let We=v.createElement(v.Fragment,null,v.createElement(fm,{dropdownMatchSelectWidth:m}),t);const nr=v.useMemo(()=>{var Fe,Ge,ht,ct;return Vr(((Fe=Xr.Form)===null||Fe===void 0?void 0:Fe.defaultValidateMessages)||{},((ht=(Ge=rt.locale)===null||Ge===void 0?void 0:Ge.Form)===null||ht===void 0?void 0:ht.defaultValidateMessages)||{},((ct=rt.form)===null||ct===void 0?void 0:ct.validateMessages)||{},i?.validateMessages||{})},[rt,i?.validateMessages]);Object.keys(nr).length>0&&(We=v.createElement(qv.Provider,{value:nr},We)),s&&(We=v.createElement(yu,{locale:s,_ANT_MARK__:pu},We)),We=v.createElement(qi.Provider,{value:mt},We),l&&(We=v.createElement(vg,{size:l},We)),We=v.createElement(dm,null,We);const Yt=v.useMemo(()=>{const Fe=lt||{},{algorithm:Ge,token:ht,components:ct,cssVar:Lt}=Fe,Or=hm(Fe,["algorithm","token","components","cssVar"]),Tt=Ge&&(!Array.isArray(Ge)||Ge.length>0)?fi(Ge):xu,Ct={};Object.entries(ct||{}).forEach(([At,jr])=>{const Le=Object.assign({},jr);"algorithm"in Le&&(Le.algorithm===!0?Le.theme=Tt:(Array.isArray(Le.algorithm)||typeof Le.algorithm=="function")&&(Le.theme=fi(Le.algorithm)),delete Le.algorithm),Ct[At]=Le});const Ht=Object.assign(Object.assign({},In),ht);return Object.assign(Object.assign({},Or),{theme:Tt,token:Ht,components:Ct,override:Object.assign({override:Ht},Ct),cssVar:Lt})},[lt]);return S&&(We=v.createElement(Cu.Provider,{value:Yt},We)),rt.warning&&(We=v.createElement(gu.Provider,{value:rt.warning},We)),$!==void 0&&(We=v.createElement(hg,{disabled:$},We)),v.createElement(Ut.Provider,{value:rt},We)},on=e=>{const t=v.useContext(Ut),r=v.useContext(ns);return v.createElement(ym,Object.assign({parentContext:t,legacyLocale:r},e))};on.ConfigContext=Ut;on.SizeContext=Qr;on.config=pm;on.useConfig=gg;Object.defineProperty(on,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Bn(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Qr)});process.env.NODE_ENV!=="production"&&(on.displayName="ConfigProvider");function qu(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,a=e.bodyClassName,i=e.className,s=e.style;return v.createElement("div",{className:le("".concat(r,"-content"),i),style:s},v.createElement("div",{className:le("".concat(r,"-inner"),a),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var Uu=v.createContext(null),Ol=[];function bm(e,t){var r=v.useState(function(){if(!gt())return null;var g=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&g.setAttribute("data-debug",t),g}),n=Y(r,1),o=n[0],a=v.useRef(!1),i=v.useContext(Uu),s=v.useState(Ol),l=Y(s,2),c=l[0],u=l[1],d=i||(a.current?void 0:function(g){u(function(p){var h=[g].concat(se(p));return h})});function f(){o.parentElement||document.body.appendChild(o),a.current=!0}function m(){var g;(g=o.parentElement)===null||g===void 0||g.removeChild(o),a.current=!1}return Be(function(){return e?i?i(f):f():m(),m},[e]),Be(function(){c.length&&(c.forEach(function(g){return g()}),u(Ol))},[c]),[o,d]}function xm(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var o,a;if(e){var i=getComputedStyle(e);n.scrollbarColor=i.scrollbarColor,n.scrollbarWidth=i.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var u=l?"width: ".concat(s.width,";"):"",d=c?"height: ".concat(s.height,";"):"";er(`
|
|
122
|
-
#`.concat(t,`::-webkit-scrollbar {
|
|
123
|
-
`).concat(u,`
|
|
124
|
-
`).concat(d,`
|
|
125
|
-
}`),t)}catch(g){console.error(g),o=l,a=c}}document.body.appendChild(r);var f=e&&o&&!isNaN(o)?o:r.offsetWidth-r.clientWidth,m=e&&a&&!isNaN(a)?a:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Pn(t),{width:f,height:m}}function Cm(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:xm(e)}function wm(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Sm="rc-util-locker-".concat(Date.now()),jl=0;function Em(e){var t=!!e,r=v.useState(function(){return jl+=1,"".concat(Sm,"_").concat(jl)}),n=Y(r,1),o=n[0];Be(function(){if(t){var a=Cm(document.body).width,i=wm();er(`
|
|
126
|
-
html body {
|
|
127
|
-
overflow-y: hidden;
|
|
128
|
-
`.concat(i?"width: calc(100% - ".concat(a,"px);"):"",`
|
|
129
|
-
}`),o)}else Pn(o);return function(){Pn(o)}},[t,o])}var Rm=!1;function $m(e){return Rm}var _l=function(t){return t===!1?!1:!gt()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},ls=v.forwardRef(function(e,t){var r=e.open,n=e.autoLock,o=e.getContainer,a=e.debug,i=e.autoDestroy,s=i===void 0?!0:i,l=e.children,c=v.useState(r),u=Y(c,2),d=u[0],f=u[1],m=d||r;process.env.NODE_ENV!=="production"&&ze(gt()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),v.useEffect(function(){(s||r)&&f(r)},[r,s]);var g=v.useState(function(){return _l(o)}),p=Y(g,2),h=p[0],b=p[1];v.useEffect(function(){var L=_l(o);b(L??null)});var y=bm(m&&!h,a),S=Y(y,2),$=S[0],x=S[1],w=h??$;Em(n&&r&>()&&(w===$||w===document.body));var C=null;if(l&&Bo(l)&&t){var j=l;C=j.ref}var T=Xi(C,t);if(!m||!gt()||h===void 0)return null;var F=w===!1||$m(),k=l;return t&&(k=v.cloneElement(l,{ref:T})),v.createElement(Uu.Provider,{value:x},F?k:_o.createPortal(k,w))});process.env.NODE_ENV!=="production"&&(ls.displayName="Portal");function Om(){var e=M({},v);return e.useId}var Pl=0,Tl=Om();const Ku=Tl?function(t){var r=Tl();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=v.useState("ssr-id"),n=Y(r,2),o=n[0],a=n[1];return v.useEffect(function(){var i=Pl;Pl+=1,a("rc_unique_".concat(i))},[]),t||(process.env.NODE_ENV==="test"?"test-id":o)},jm=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substr(0,4))});function _m(e){var t=e.prefixCls,r=e.align,n=e.arrow,o=e.arrowPos,a=n||{},i=a.className,s=a.content,l=o.x,c=l===void 0?0:l,u=o.y,d=u===void 0?0:u,f=v.useRef();if(!r||!r.points)return null;var m={position:"absolute"};if(r.autoArrow!==!1){var g=r.points[0],p=r.points[1],h=g[0],b=g[1],y=p[0],S=p[1];h===y||!["t","b"].includes(h)?m.top=d:h==="t"?m.top=0:m.bottom=0,b===S||!["l","r"].includes(b)?m.left=c:b==="l"?m.left=0:m.right=0}return v.createElement("div",{ref:f,className:le("".concat(t,"-arrow"),i),style:m},s)}function Pm(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,a=e.motion;return o?v.createElement(ss,Ie({},a,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(i){var s=i.className;return v.createElement("div",{style:{zIndex:n},className:le("".concat(t,"-mask"),s)})}):null}var Gu=v.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(Gu.displayName="PopupContent");var Yu=v.forwardRef(function(e,t){var r=e.popup,n=e.className,o=e.prefixCls,a=e.style,i=e.target,s=e.onVisibleChanged,l=e.open,c=e.keepDom,u=e.fresh,d=e.onClick,f=e.mask,m=e.arrow,g=e.arrowPos,p=e.align,h=e.motion,b=e.maskMotion,y=e.forceRender,S=e.getPopupContainer,$=e.autoDestroy,x=e.portal,w=e.zIndex,C=e.onMouseEnter,j=e.onMouseLeave,T=e.onPointerEnter,F=e.onPointerDownCapture,k=e.ready,L=e.offsetX,N=e.offsetY,A=e.offsetR,B=e.offsetB,O=e.onAlign,V=e.onPrepare,H=e.stretch,q=e.targetWidth,G=e.targetHeight,ee=typeof r=="function"?r():r,E=l||c,I=S?.length>0,D=v.useState(!S||!I),W=Y(D,2),z=W[0],K=W[1];if(Be(function(){!z&&I&&i&&K(!0)},[z,I,i]),!z)return null;var Q="auto",X={left:"-1000vw",top:"-1000vh",right:Q,bottom:Q};if(k||!l){var te,oe=p.points,ae=p.dynamicInset||((te=p._experimental)===null||te===void 0?void 0:te.dynamicInset),me=ae&&oe[0][1]==="r",U=ae&&oe[0][0]==="b";me?(X.right=A,X.left=Q):(X.left=L,X.right=Q),U?(X.bottom=B,X.top=Q):(X.top=N,X.bottom=Q)}var ce={};return H&&(H.includes("height")&&G?ce.height=G:H.includes("minHeight")&&G&&(ce.minHeight=G),H.includes("width")&&q?ce.width=q:H.includes("minWidth")&&q&&(ce.minWidth=q)),l||(ce.pointerEvents="none"),v.createElement(x,{open:y||E,getContainer:S&&function(){return S(i)},autoDestroy:$},v.createElement(Pm,{prefixCls:o,open:l,zIndex:w,mask:f,motion:b}),v.createElement(tn,{onResize:O,disabled:!l},function(re){return v.createElement(ss,Ie({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:y,leavedClassName:"".concat(o,"-hidden")},h,{onAppearPrepare:V,onEnterPrepare:V,visible:l,onVisibleChanged:function(ye){var de;h==null||(de=h.onVisibleChanged)===null||de===void 0||de.call(h,ye),s(ye)}}),function(ue,ye){var de=ue.className,$e=ue.style,be=le(o,de,n);return v.createElement("div",{ref:Hn(re,t,ye),className:be,style:M(M(M(M({"--arrow-x":"".concat(g.x||0,"px"),"--arrow-y":"".concat(g.y||0,"px")},X),ce),$e),{},{boxSizing:"border-box",zIndex:w},a),onMouseEnter:C,onMouseLeave:j,onPointerEnter:T,onClick:d,onPointerDownCapture:F},m&&v.createElement(_m,{prefixCls:o,arrow:m,arrowPos:g,align:p}),v.createElement(Gu,{cache:!l&&!u},ee))})}))});process.env.NODE_ENV!=="production"&&(Yu.displayName="Popup");var Xu=v.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=Bo(r),a=v.useCallback(function(s){Yi(t,n?n(s):s)},[n]),i=Xi(a,Qi(r));return o?v.cloneElement(r,{ref:i}):r});process.env.NODE_ENV!=="production"&&(Xu.displayName="TriggerWrapper");var Al=v.createContext(null);function Ml(e){return e?Array.isArray(e)?e:[e]:[]}function Tm(e,t,r,n){return v.useMemo(function(){var o=Ml(r??t),a=Ml(n??t),i=new Set(o),s=new Set(a);return e&&(i.has("hover")&&(i.delete("hover"),i.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[i,s]},[e,t,r,n])}const Am=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,i=o.height;if(a||i)return!0}}return!1});function Mm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0;return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Fm(e,t,r,n){for(var o=r.points,a=Object.keys(e),i=0;i<a.length;i+=1){var s,l=a[i];if(Mm((s=e[l])===null||s===void 0?void 0:s.points,o,n))return"".concat(t,"-placement-").concat(l)}return""}function Fl(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function qn(e){return e.ownerDocument.defaultView}function Oi(e){for(var t=[],r=e?.parentElement,n=["hidden","scroll","clip","auto"];r;){var o=qn(r).getComputedStyle(r),a=o.overflowX,i=o.overflowY,s=o.overflow;[a,i,s].some(function(l){return n.includes(l)})&&t.push(r),r=r.parentElement}return t}function Dn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function wn(e){return Dn(parseFloat(e),0)}function Nl(e,t){var r=M({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var o=qn(n).getComputedStyle(n),a=o.overflow,i=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,c=o.borderLeftWidth,u=o.borderRightWidth,d=n.getBoundingClientRect(),f=n.offsetHeight,m=n.clientHeight,g=n.offsetWidth,p=n.clientWidth,h=wn(s),b=wn(l),y=wn(c),S=wn(u),$=Dn(Math.round(d.width/g*1e3)/1e3),x=Dn(Math.round(d.height/f*1e3)/1e3),w=(g-p-y-S)*$,C=(f-m-h-b)*x,j=h*x,T=b*x,F=y*$,k=S*$,L=0,N=0;if(a==="clip"){var A=wn(i);L=A*$,N=A*x}var B=d.x+F-L,O=d.y+j-N,V=B+d.width+2*L-F-k-w,H=O+d.height+2*N-j-T-C;r.left=Math.max(r.left,B),r.top=Math.max(r.top,O),r.right=Math.min(r.right,V),r.bottom=Math.min(r.bottom,H)}}),r}function kl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r="".concat(t),n=r.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(r)}function Il(e,t){var r=t||[],n=Y(r,2),o=n[0],a=n[1];return[kl(e.width,o),kl(e.height,a)]}function Vl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Mr(e,t){var r=t[0],n=t[1],o,a;return r==="t"?a=e.y:r==="b"?a=e.y+e.height:a=e.y+e.height/2,n==="l"?o=e.x:n==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function lr(e,t){var r={t:"b",b:"t",l:"r",r:"l"};return e.map(function(n,o){return o===t?r[n]||"c":n}).join("")}function Nm(e,t,r,n,o,a,i){var s=v.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),l=Y(s,2),c=l[0],u=l[1],d=v.useRef(0),f=v.useMemo(function(){return t?Oi(t):[]},[t]),m=v.useRef({}),g=function(){m.current={}};e||g();var p=vt(function(){if(t&&r&&e){let wt=function(dn,Xt){var sr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ce,fn=E.x+dn,ao=E.y+Xt,sa=fn+U,la=ao+me,ca=Math.max(fn,sr.left),ne=Math.max(ao,sr.top),he=Math.min(sa,sr.right),He=Math.min(la,sr.bottom);return Math.max(0,(he-ca)*(He-ne))},Pr=function(){Tt=E.y+je,Ct=Tt+me,Ht=E.x+Ae,At=Ht+U};var y,S,$,x,w=t,C=w.ownerDocument,j=qn(w),T=j.getComputedStyle(w),F=T.position,k=w.style.left,L=w.style.top,N=w.style.right,A=w.style.bottom,B=w.style.overflow,O=M(M({},o[n]),a),V=C.createElement("div");(y=w.parentElement)===null||y===void 0||y.appendChild(V),V.style.left="".concat(w.offsetLeft,"px"),V.style.top="".concat(w.offsetTop,"px"),V.style.position=F,V.style.height="".concat(w.offsetHeight,"px"),V.style.width="".concat(w.offsetWidth,"px"),w.style.left="0",w.style.top="0",w.style.right="auto",w.style.bottom="auto",w.style.overflow="hidden";var H;if(Array.isArray(r))H={x:r[0],y:r[1],width:0,height:0};else{var q,G,ee=r.getBoundingClientRect();ee.x=(q=ee.x)!==null&&q!==void 0?q:ee.left,ee.y=(G=ee.y)!==null&&G!==void 0?G:ee.top,H={x:ee.x,y:ee.y,width:ee.width,height:ee.height}}var E=w.getBoundingClientRect(),I=j.getComputedStyle(w),D=I.height,W=I.width;E.x=(S=E.x)!==null&&S!==void 0?S:E.left,E.y=($=E.y)!==null&&$!==void 0?$:E.top;var z=C.documentElement,K=z.clientWidth,Q=z.clientHeight,X=z.scrollWidth,te=z.scrollHeight,oe=z.scrollTop,ae=z.scrollLeft,me=E.height,U=E.width,ce=H.height,re=H.width,ue={left:0,top:0,right:K,bottom:Q},ye={left:-ae,top:-oe,right:X-ae,bottom:te-oe},de=O.htmlRegion,$e="visible",be="visibleFirst";de!=="scroll"&&de!==be&&(de=$e);var Ee=de===be,ge=Nl(ye,f),J=Nl(ue,f),Ce=de===$e?J:ge,Re=Ee?J:Ce;w.style.left="auto",w.style.top="auto",w.style.right="0",w.style.bottom="0";var Qe=w.getBoundingClientRect();w.style.left=k,w.style.top=L,w.style.right=N,w.style.bottom=A,w.style.overflow=B,(x=w.parentElement)===null||x===void 0||x.removeChild(V);var ke=Dn(Math.round(U/parseFloat(W)*1e3)/1e3),Ve=Dn(Math.round(me/parseFloat(D)*1e3)/1e3);if(ke===0||Ve===0||Tn(r)&&!Am(r))return;var tt=O.offset,Te=O.targetOffset,Oe=Il(E,tt),Se=Y(Oe,2),pe=Se[0],De=Se[1],ie=Il(H,Te),fe=Y(ie,2),Ue=fe[0],Kt=fe[1];H.x-=Ue,H.y-=Kt;var gr=O.points||[],Rr=Y(gr,2),an=Rr[0],$r=Rr[1],Pt=Vl($r),st=Vl(an),Ke=Mr(H,Pt),Gt=Mr(E,st),lt=M({},O),Ae=Ke.x-Gt.x+pe,je=Ke.y-Gt.y+De,rt=wt(Ae,je),Dt=wt(Ae,je,J),mt=Mr(H,["t","l"]),We=Mr(E,["t","l"]),nr=Mr(H,["b","r"]),Yt=Mr(E,["b","r"]),Fe=O.overflow||{},Ge=Fe.adjustX,ht=Fe.adjustY,ct=Fe.shiftX,Lt=Fe.shiftY,Or=function(Xt){return typeof Xt=="boolean"?Xt:Xt>=0},Tt,Ct,Ht,At;Pr();var jr=Or(ht),Le=st[0]===Pt[0];if(jr&&st[0]==="t"&&(Ct>Re.bottom||m.current.bt)){var mr=je;Le?mr-=me-ce:mr=mt.y-Yt.y-De;var Xn=wt(Ae,mr),Xo=wt(Ae,mr,J);Xn>rt||Xn===rt&&(!Ee||Xo>=Dt)?(m.current.bt=!0,je=mr,De=-De,lt.points=[lr(st,0),lr(Pt,0)]):m.current.bt=!1}if(jr&&st[0]==="b"&&(Tt<Re.top||m.current.tb)){var pr=je;Le?pr+=me-ce:pr=nr.y-We.y-De;var Qn=wt(Ae,pr),Qo=wt(Ae,pr,J);Qn>rt||Qn===rt&&(!Ee||Qo>=Dt)?(m.current.tb=!0,je=pr,De=-De,lt.points=[lr(st,0),lr(Pt,0)]):m.current.tb=!1}var Zn=Or(Ge),Jn=st[1]===Pt[1];if(Zn&&st[1]==="l"&&(At>Re.right||m.current.rl)){var yr=Ae;Jn?yr-=U-re:yr=mt.x-Yt.x-pe;var br=wt(yr,je),sn=wt(yr,je,J);br>rt||br===rt&&(!Ee||sn>=Dt)?(m.current.rl=!0,Ae=yr,pe=-pe,lt.points=[lr(st,1),lr(Pt,1)]):m.current.rl=!1}if(Zn&&st[1]==="r"&&(Ht<Re.left||m.current.lr)){var xr=Ae;Jn?xr+=U-re:xr=nr.x-We.x-pe;var ln=wt(xr,je),_r=wt(xr,je,J);ln>rt||ln===rt&&(!Ee||_r>=Dt)?(m.current.lr=!0,Ae=xr,pe=-pe,lt.points=[lr(st,1),lr(Pt,1)]):m.current.lr=!1}Pr();var Mt=ct===!0?0:ct;typeof Mt=="number"&&(Ht<J.left&&(Ae-=Ht-J.left-pe,H.x+re<J.left+Mt&&(Ae+=H.x-J.left+re-Mt)),At>J.right&&(Ae-=At-J.right-pe,H.x>J.right-Mt&&(Ae+=H.x-J.right+Mt)));var or=Lt===!0?0:Lt;typeof or=="number"&&(Tt<J.top&&(je-=Tt-J.top-De,H.y+ce<J.top+or&&(je+=H.y-J.top+ce-or)),Ct>J.bottom&&(je-=Ct-J.bottom-De,H.y>J.bottom-or&&(je+=H.y-J.bottom+or)));var ar=E.x+Ae,ir=ar+U,cn=E.y+je,Zo=cn+me,eo=H.x,to=eo+re,ro=H.y,Jo=ro+ce,ea=Math.max(ar,eo),no=Math.min(ir,to),ta=(ea+no)/2,ra=ta-ar,oo=Math.max(cn,ro),na=Math.min(Zo,Jo),oa=(oo+na)/2,aa=oa-cn;i?.(t,lt);var zt=Qe.right-E.x-(Ae+E.width),un=Qe.bottom-E.y-(je+E.height);ke===1&&(Ae=Math.round(Ae),zt=Math.round(zt)),Ve===1&&(je=Math.round(je),un=Math.round(un));var ia={ready:!0,offsetX:Ae/ke,offsetY:je/Ve,offsetR:zt/ke,offsetB:un/Ve,arrowX:ra/ke,arrowY:aa/Ve,scaleX:ke,scaleY:Ve,align:lt};u(ia)}}),h=function(){d.current+=1;var S=d.current;Promise.resolve().then(function(){d.current===S&&p()})},b=function(){u(function(S){return M(M({},S),{},{ready:!1})})};return Be(b,[n]),Be(function(){e||b()},[e]),[c.ready,c.offsetX,c.offsetY,c.offsetR,c.offsetB,c.arrowX,c.arrowY,c.scaleX,c.scaleY,c.align,h]}function km(e,t,r,n,o){Be(function(){if(e&&t&&r){let d=function(){n(),o()};var a=t,i=r,s=Oi(a),l=Oi(i),c=qn(i),u=new Set([c].concat(se(s),se(l)));return u.forEach(function(f){f.addEventListener("scroll",d,{passive:!0})}),c.addEventListener("resize",d,{passive:!0}),n(),function(){u.forEach(function(f){f.removeEventListener("scroll",d),c.removeEventListener("resize",d)})}}},[e,t,r])}function Im(e,t,r,n,o,a,i,s){var l=v.useRef(e);l.current=e;var c=v.useRef(!1);v.useEffect(function(){if(t&&n&&(!o||a)){var d=function(){c.current=!1},f=function($){var x;l.current&&!i(((x=$.composedPath)===null||x===void 0||(x=x.call($))===null||x===void 0?void 0:x[0])||$.target)&&!c.current&&s(!1)},m=qn(n);m.addEventListener("pointerdown",d,!0),m.addEventListener("mousedown",f,!0),m.addEventListener("contextmenu",f,!0);var g=Ao(r);if(g&&(g.addEventListener("mousedown",f,!0),g.addEventListener("contextmenu",f,!0)),process.env.NODE_ENV!=="production"){var p,h,b=r==null||(p=r.getRootNode)===null||p===void 0?void 0:p.call(r),y=(h=n.getRootNode)===null||h===void 0?void 0:h.call(n);Wr(b===y,"trigger element and popup element should in same shadow root.")}return function(){m.removeEventListener("pointerdown",d,!0),m.removeEventListener("mousedown",f,!0),m.removeEventListener("contextmenu",f,!0),g&&(g.removeEventListener("mousedown",f,!0),g.removeEventListener("contextmenu",f,!0))}}},[t,r,n,o,a]);function u(){c.current=!0}return u}var Vm=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function Dm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ls,t=v.forwardRef(function(r,n){var o=r.prefixCls,a=o===void 0?"rc-trigger-popup":o,i=r.children,s=r.action,l=s===void 0?"hover":s,c=r.showAction,u=r.hideAction,d=r.popupVisible,f=r.defaultPopupVisible,m=r.onPopupVisibleChange,g=r.afterPopupVisibleChange,p=r.mouseEnterDelay,h=r.mouseLeaveDelay,b=h===void 0?.1:h,y=r.focusDelay,S=r.blurDelay,$=r.mask,x=r.maskClosable,w=x===void 0?!0:x,C=r.getPopupContainer,j=r.forceRender,T=r.autoDestroy,F=r.destroyPopupOnHide,k=r.popup,L=r.popupClassName,N=r.popupStyle,A=r.popupPlacement,B=r.builtinPlacements,O=B===void 0?{}:B,V=r.popupAlign,H=r.zIndex,q=r.stretch,G=r.getPopupClassNameFromAlign,ee=r.fresh,E=r.alignPoint,I=r.onPopupClick,D=r.onPopupAlign,W=r.arrow,z=r.popupMotion,K=r.maskMotion,Q=r.popupTransitionName,X=r.popupAnimation,te=r.maskTransitionName,oe=r.maskAnimation,ae=r.className,me=r.getTriggerDOMNode,U=ft(r,Vm),ce=T||F||!1,re=v.useState(!1),ue=Y(re,2),ye=ue[0],de=ue[1];Be(function(){de(jm())},[]);var $e=v.useRef({}),be=v.useContext(Al),Ee=v.useMemo(function(){return{registerSubPopup:function(he,He){$e.current[he]=He,be?.registerSubPopup(he,He)}}},[be]),ge=Ku(),J=v.useState(null),Ce=Y(J,2),Re=Ce[0],Qe=Ce[1],ke=v.useRef(null),Ve=vt(function(ne){ke.current=ne,Tn(ne)&&Re!==ne&&Qe(ne),be?.registerSubPopup(ge,ne)}),tt=v.useState(null),Te=Y(tt,2),Oe=Te[0],Se=Te[1],pe=v.useRef(null),De=vt(function(ne){Tn(ne)&&Oe!==ne&&(Se(ne),pe.current=ne)}),ie=v.Children.only(i),fe=ie?.props||{},Ue={},Kt=vt(function(ne){var he,He,Ze=Oe;return Ze?.contains(ne)||((he=Ao(Ze))===null||he===void 0?void 0:he.host)===ne||ne===Ze||Re?.contains(ne)||((He=Ao(Re))===null||He===void 0?void 0:He.host)===ne||ne===Re||Object.values($e.current).some(function(qe){return qe?.contains(ne)||ne===qe})}),gr=Fl(a,z,X,Q),Rr=Fl(a,K,oe,te),an=v.useState(f||!1),$r=Y(an,2),Pt=$r[0],st=$r[1],Ke=d??Pt,Gt=vt(function(ne){d===void 0&&st(ne)});Be(function(){st(d||!1)},[d]);var lt=v.useRef(Ke);lt.current=Ke;var Ae=v.useRef([]);Ae.current=[];var je=vt(function(ne){var he;Gt(ne),((he=Ae.current[Ae.current.length-1])!==null&&he!==void 0?he:Ke)!==ne&&(Ae.current.push(ne),m?.(ne))}),rt=v.useRef(),Dt=function(){clearTimeout(rt.current)},mt=function(he){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Dt(),He===0?je(he):rt.current=setTimeout(function(){je(he)},He*1e3)};v.useEffect(function(){return Dt},[]);var We=v.useState(!1),nr=Y(We,2),Yt=nr[0],Fe=nr[1];Be(function(ne){(!ne||Ke)&&Fe(!0)},[Ke]);var Ge=v.useState(null),ht=Y(Ge,2),ct=ht[0],Lt=ht[1],Or=v.useState(null),Tt=Y(Or,2),Ct=Tt[0],Ht=Tt[1],At=function(he){Ht([he.clientX,he.clientY])},jr=Nm(Ke,Re,E&&Ct!==null?Ct:Oe,A,O,V,D),Le=Y(jr,11),mr=Le[0],Xn=Le[1],Xo=Le[2],pr=Le[3],Qn=Le[4],Qo=Le[5],Zn=Le[6],Jn=Le[7],yr=Le[8],br=Le[9],sn=Le[10],xr=Tm(ye,l,c,u),ln=Y(xr,2),_r=ln[0],Mt=ln[1],or=_r.has("click"),ar=Mt.has("click")||Mt.has("contextMenu"),ir=vt(function(){Yt||sn()}),cn=function(){lt.current&&E&&ar&&mt(!1)};km(Ke,Oe,Re,ir,cn),Be(function(){ir()},[Ct,A]),Be(function(){Ke&&!(O!=null&&O[A])&&ir()},[JSON.stringify(V)]);var Zo=v.useMemo(function(){var ne=Fm(O,a,br,E);return le(ne,G?.(br))},[br,G,O,a,E]);v.useImperativeHandle(n,function(){return{nativeElement:pe.current,popupElement:ke.current,forceAlign:ir}});var eo=v.useState(0),to=Y(eo,2),ro=to[0],Jo=to[1],ea=v.useState(0),no=Y(ea,2),ta=no[0],ra=no[1],oo=function(){if(q&&Oe){var he=Oe.getBoundingClientRect();Jo(he.width),ra(he.height)}},na=function(){oo(),ir()},oa=function(he){Fe(!1),sn(),g?.(he)},aa=function(){return new Promise(function(he){oo(),Lt(function(){return he})})};Be(function(){ct&&(sn(),ct(),Lt(null))},[ct]);function zt(ne,he,He,Ze){Ue[ne]=function(qe){var io;Ze?.(qe),mt(he,He);for(var ua=arguments.length,ms=new Array(ua>1?ua-1:0),so=1;so<ua;so++)ms[so-1]=arguments[so];(io=fe[ne])===null||io===void 0||io.call.apply(io,[fe,qe].concat(ms))}}(or||ar)&&(Ue.onClick=function(ne){var he;lt.current&&ar?mt(!1):!lt.current&&or&&(At(ne),mt(!0));for(var He=arguments.length,Ze=new Array(He>1?He-1:0),qe=1;qe<He;qe++)Ze[qe-1]=arguments[qe];(he=fe.onClick)===null||he===void 0||he.call.apply(he,[fe,ne].concat(Ze))});var un=Im(Ke,ar,Oe,Re,$,w,Kt,mt),ia=_r.has("hover"),wt=Mt.has("hover"),Pr,dn;ia&&(zt("onMouseEnter",!0,p,function(ne){At(ne)}),zt("onPointerEnter",!0,p,function(ne){At(ne)}),Pr=function(he){(Ke||Yt)&&Re!==null&&Re!==void 0&&Re.contains(he.target)&&mt(!0,p)},E&&(Ue.onMouseMove=function(ne){var he;(he=fe.onMouseMove)===null||he===void 0||he.call(fe,ne)})),wt&&(zt("onMouseLeave",!1,b),zt("onPointerLeave",!1,b),dn=function(){mt(!1,b)}),_r.has("focus")&&zt("onFocus",!0,y),Mt.has("focus")&&zt("onBlur",!1,S),_r.has("contextMenu")&&(Ue.onContextMenu=function(ne){var he;lt.current&&Mt.has("contextMenu")?mt(!1):(At(ne),mt(!0)),ne.preventDefault();for(var He=arguments.length,Ze=new Array(He>1?He-1:0),qe=1;qe<He;qe++)Ze[qe-1]=arguments[qe];(he=fe.onContextMenu)===null||he===void 0||he.call.apply(he,[fe,ne].concat(Ze))}),ae&&(Ue.className=le(fe.className,ae));var Xt=v.useRef(!1);Xt.current||(Xt.current=j||Ke||Yt);var sr=M(M({},fe),Ue),fn={},ao=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];ao.forEach(function(ne){U[ne]&&(fn[ne]=function(){for(var he,He=arguments.length,Ze=new Array(He),qe=0;qe<He;qe++)Ze[qe]=arguments[qe];(he=sr[ne])===null||he===void 0||he.call.apply(he,[sr].concat(Ze)),U[ne].apply(U,Ze)})});var sa=v.cloneElement(ie,M(M({},sr),fn)),la={x:Qo,y:Zn},ca=W?M({},W!==!0?W:{}):null;return v.createElement(v.Fragment,null,v.createElement(tn,{disabled:!Ke,ref:De,onResize:na},v.createElement(Xu,{getTriggerDOMNode:me},sa)),Xt.current&&v.createElement(Al.Provider,{value:Ee},v.createElement(Yu,{portal:e,ref:Ve,prefixCls:a,popup:k,className:le(L,Zo),style:N,target:Oe,onMouseEnter:Pr,onMouseLeave:dn,onPointerEnter:Pr,zIndex:H,open:Ke,keepDom:Yt,fresh:ee,onClick:I,onPointerDownCapture:un,mask:$,motion:gr,maskMotion:Rr,onVisibleChanged:oa,onPrepare:aa,forceRender:j,autoDestroy:ce,getPopupContainer:C,align:br,arrow:ca,arrowPos:la,ready:mr,offsetX:Xn,offsetY:Xo,offsetR:pr,offsetB:Qn,onAlign:ir,stretch:q,targetWidth:ro/Jn,targetHeight:ta/yr})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const Lm=Dm(ls);var Fr={shiftX:64,adjustY:1},Nr={adjustX:1,shiftY:!0},Rt=[0,0],Hm={left:{points:["cr","cl"],overflow:Nr,offset:[-4,0],targetOffset:Rt},right:{points:["cl","cr"],overflow:Nr,offset:[4,0],targetOffset:Rt},top:{points:["bc","tc"],overflow:Fr,offset:[0,-4],targetOffset:Rt},bottom:{points:["tc","bc"],overflow:Fr,offset:[0,4],targetOffset:Rt},topLeft:{points:["bl","tl"],overflow:Fr,offset:[0,-4],targetOffset:Rt},leftTop:{points:["tr","tl"],overflow:Nr,offset:[-4,0],targetOffset:Rt},topRight:{points:["br","tr"],overflow:Fr,offset:[0,-4],targetOffset:Rt},rightTop:{points:["tl","tr"],overflow:Nr,offset:[4,0],targetOffset:Rt},bottomRight:{points:["tr","br"],overflow:Fr,offset:[0,4],targetOffset:Rt},rightBottom:{points:["bl","br"],overflow:Nr,offset:[4,0],targetOffset:Rt},bottomLeft:{points:["tl","bl"],overflow:Fr,offset:[0,4],targetOffset:Rt},leftBottom:{points:["br","bl"],overflow:Nr,offset:[-4,0],targetOffset:Rt}},zm=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Bm=function(t,r){var n=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,i=t.mouseEnterDelay,s=i===void 0?0:i,l=t.mouseLeaveDelay,c=l===void 0?.1:l,u=t.overlayStyle,d=t.prefixCls,f=d===void 0?"rc-tooltip":d,m=t.children,g=t.onVisibleChange,p=t.afterVisibleChange,h=t.transitionName,b=t.animation,y=t.motion,S=t.placement,$=S===void 0?"right":S,x=t.align,w=x===void 0?{}:x,C=t.destroyTooltipOnHide,j=C===void 0?!1:C,T=t.defaultVisible,F=t.getTooltipContainer,k=t.overlayInnerStyle;t.arrowContent;var L=t.overlay,N=t.id,A=t.showArrow,B=A===void 0?!0:A,O=t.classNames,V=t.styles,H=ft(t,zm),q=Ku(N),G=R.useRef(null);R.useImperativeHandle(r,function(){return G.current});var ee=M({},H);"visible"in t&&(ee.popupVisible=t.visible);var E=function(){return v.createElement(qu,{key:"content",prefixCls:f,id:q,bodyClassName:O?.body,overlayInnerStyle:M(M({},k),V?.body)},L)},I=function(){var W=v.Children.only(m),z=W?.props||{},K=M(M({},z),{},{"aria-describedby":L?q:null});return v.cloneElement(m,K)};return v.createElement(Lm,Ie({popupClassName:le(n,O?.root),prefixCls:f,popup:E,action:a,builtinPlacements:Hm,popupPlacement:$,ref:G,popupAlign:w,getPopupContainer:F,onPopupVisibleChange:g,afterPopupVisibleChange:p,popupTransitionName:h,popupAnimation:b,popupMotion:y,defaultPopupVisible:T,autoDestroy:j,mouseLeaveDelay:c,popupStyle:M(M({},u),V?.root),mouseEnterDelay:s,arrow:B},ee),I())};const Wm=R.forwardRef(Bm);function Qu(e,t){this.v=e,this.k=t}function ut(e,t,r,n){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}ut=function(i,s,l,c){function u(d,f){ut(i,d,function(m){return this._invoke(d,f,m)})}s?o?o(i,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):i[s]=l:(u("next",0),u("throw",1),u("return",2))},ut(e,t,r,n)}function cs(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function a(m,g,p,h){var b=g&&g.prototype instanceof s?g:s,y=Object.create(b.prototype);return ut(y,"_invoke",(function(S,$,x){var w,C,j,T=0,F=x||[],k=!1,L={p:0,n:0,v:e,a:N,f:N.bind(e,4),d:function(B,O){return w=B,C=0,j=e,L.n=O,i}};function N(A,B){for(C=A,j=B,t=0;!k&&T&&!O&&t<F.length;t++){var O,V=F[t],H=L.p,q=V[2];A>3?(O=q===B)&&(j=V[(C=V[4])?5:(C=3,3)],V[4]=V[5]=e):V[0]<=H&&((O=A<2&&H<V[1])?(C=0,L.v=B,L.n=V[1]):H<q&&(O=A<3||V[0]>B||B>q)&&(V[4]=A,V[5]=B,L.n=q,C=0))}if(O||A>1)return i;throw k=!0,B}return function(A,B,O){if(T>1)throw TypeError("Generator is already running");for(k&&B===1&&N(B,O),C=B,j=O;(t=C<2?e:j)||!k;){w||(C?C<3?(C>1&&(L.n=-1),N(C,j)):L.n=j:L.v=j);try{if(T=2,w){if(C||(A="next"),t=w[A]){if(!(t=t.call(w,j)))throw TypeError("iterator result is not an object");if(!t.done)return t;j=t.value,C<2&&(C=0)}else C===1&&(t=w.return)&&t.call(w),C<2&&(j=TypeError("The iterator does not provide a '"+A+"' method"),C=1);w=e}else if((t=(k=L.n<0)?j:S.call($,L))!==i)break}catch(V){w=e,C=1,j=V}finally{T=1}}return{value:t,done:k}}})(m,p,h),!0),y}var i={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var u=[][n]?t(t([][n]())):(ut(t={},n,function(){return this}),t),d=c.prototype=s.prototype=Object.create(u);function f(m){return Object.setPrototypeOf?Object.setPrototypeOf(m,c):(m.__proto__=c,ut(m,o,"GeneratorFunction")),m.prototype=Object.create(d),m}return l.prototype=c,ut(d,"constructor",c),ut(c,"constructor",l),l.displayName="GeneratorFunction",ut(c,o,"GeneratorFunction"),ut(d),ut(d,o,"Generator"),ut(d,n,function(){return this}),ut(d,"toString",function(){return"[object Generator]"}),(cs=function(){return{w:a,m:f}})()}function Io(e,t){function r(o,a,i,s){try{var l=e[o](a),c=l.value;return c instanceof Qu?t.resolve(c.v).then(function(u){r("next",u,i,s)},function(u){r("throw",u,i,s)}):t.resolve(c).then(function(u){l.value=u,i(l)},function(u){return r("throw",u,i,s)})}catch(u){s(u)}}var n;this.next||(ut(Io.prototype),ut(Io.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ut(this,"_invoke",function(o,a,i){function s(){return new t(function(l,c){r(o,i,l,c)})}return n=n?n.then(s,s):s()},!0)}function Zu(e,t,r,n,o){return new Io(cs().w(e,t,r,n),o||Promise)}function qm(e,t,r,n,o){var a=Zu(e,t,r,n,o);return a.next().then(function(i){return i.done?i.value:a.next()})}function Um(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function o(){for(;r.length;)if((n=r.pop())in t)return o.value=n,o.done=!1,o;return o.done=!0,o}}function Dl(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(ve(e)+" is not iterable")}function jt(){var e=cs(),t=e.m(jt),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(i){var s=typeof i=="function"&&i.constructor;return!!s&&(s===r||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function a(i){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(d,f){return l(c.a,o[d],f)},delegateYield:function(d,f,m){return s.resultName=f,l(c.d,Dl(d),m)},finish:function(d){return l(c.f,d)}},l=function(d,f,m){c.p=s.prev,c.n=s.next;try{return d(f,m)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return i.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(jt=function(){return{wrap:function(l,c,u,d){return e.w(a(l),c,u,d&&d.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(l,c){return new Qu(l,c)},AsyncIterator:Io,async:function(l,c,u,d,f){return(n(c)?Zu:qm)(a(l),c,u,d,f)},keys:Um,values:Dl}})()}function Ll(e,t,r,n,o,a,i){try{var s=e[a](i),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,o)}function Un(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var a=e.apply(t,r);function i(l){Ll(a,n,o,i,s,"next",l)}function s(l){Ll(a,n,o,i,s,"throw",l)}i(void 0)})}}var wr="RC_FORM_INTERNAL_HOOKS",Ne=function(){ze(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Jr=v.createContext({getFieldValue:Ne,getFieldsValue:Ne,getFieldError:Ne,getFieldWarning:Ne,getFieldsError:Ne,isFieldsTouched:Ne,isFieldTouched:Ne,isFieldValidating:Ne,isFieldsValidating:Ne,resetFields:Ne,setFields:Ne,setFieldValue:Ne,setFieldsValue:Ne,validateFields:Ne,submit:Ne,getInternalHooks:function(){return Ne(),{dispatch:Ne,initEntityValue:Ne,registerField:Ne,useSubscribe:Ne,setInitialValues:Ne,destroyForm:Ne,setCallbacks:Ne,registerWatch:Ne,getFields:Ne,setValidateMessages:Ne,setPreserve:Ne,getInitialValue:Ne}}}),Vo=v.createContext(null);function ji(e){return e==null?[]:Array.isArray(e)?e:[e]}function Km(e){return e&&!!e._init}function _i(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Pi=_i();function Gm(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Ym(e,t,r){if(Zi())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var o=new(e.bind.apply(e,n));return r&&An(o,r.prototype),o}function Ti(e){var t=typeof Map=="function"?new Map:void 0;return Ti=function(n){if(n===null||!Gm(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return Ym(n,arguments,Mn(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),An(o,n)},Ti(e)}var Xm=/%[sdj%]/g,Ju=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(Ju=function(t,r){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&r.every(function(n){return typeof n=="string"})&&console.warn(t,r)});function Ai(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function xt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=0,a=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var i=e.replace(Xm,function(s){if(s==="%%")return"%";if(o>=a)return s;switch(s){case"%s":return String(r[o++]);case"%d":return Number(r[o++]);case"%j":try{return JSON.stringify(r[o++])}catch{return"[Circular]"}break;default:return s}});return i}return e}function Qm(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function et(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Qm(t)&&typeof e=="string"&&!e)}function Zm(e,t,r){var n=[],o=0,a=e.length;function i(s){n.push.apply(n,se(s||[])),o++,o===a&&r(n)}e.forEach(function(s){t(s,i)})}function Hl(e,t,r){var n=0,o=e.length;function a(i){if(i&&i.length){r(i);return}var s=n;n=n+1,s<o?t(e[s],a):r([])}a([])}function Jm(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,se(e[r]||[]))}),t}var zl=(function(e){hr(r,e);var t=vr(r);function r(n,o){var a;return at(this,r),a=t.call(this,"Async Validation Error"),_(xe(a),"errors",void 0),_(xe(a),"fields",void 0),a.errors=n,a.fields=o,a}return it(r)})(Ti(Error));function ep(e,t,r,n,o){if(t.first){var a=new Promise(function(f,m){var g=function(b){return n(b),b.length?m(new zl(b,Ai(b))):f(o)},p=Jm(e);Hl(p,r,g)});return a.catch(function(f){return f}),a}var i=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,u=[],d=new Promise(function(f,m){var g=function(h){if(u.push.apply(u,h),c++,c===l)return n(u),u.length?m(new zl(u,Ai(u))):f(o)};s.length||(n(u),f(o)),s.forEach(function(p){var h=e[p];i.indexOf(p)!==-1?Hl(h,r,g):Zm(h,r,g)})});return d.catch(function(f){return f}),d}function tp(e){return!!(e&&e.message!==void 0)}function rp(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function Bl(e,t){return function(r){var n;return e.fullFields?n=rp(t,e.fullFields):n=t[r.field||e.fullField],tp(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function Wl(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];ve(n)==="object"&&ve(e[r])==="object"?e[r]=M(M({},e[r]),n):e[r]=n}}return e}var kr="enum",np=function(t,r,n,o,a){t[kr]=Array.isArray(t[kr])?t[kr]:[],t[kr].indexOf(r)===-1&&o.push(xt(a.messages[kr],t.fullField,t[kr].join(", ")))},op=function(t,r,n,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||o.push(xt(a.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var i=new RegExp(t.pattern);i.test(r)||o.push(xt(a.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},ap=function(t,r,n,o,a){var i=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u=r,d=null,f=typeof r=="number",m=typeof r=="string",g=Array.isArray(r);if(f?d="number":m?d="string":g&&(d="array"),!d)return!1;g&&(u=r.length),m&&(u=r.replace(c,"_").length),i?u!==t.len&&o.push(xt(a.messages[d].len,t.fullField,t.len)):s&&!l&&u<t.min?o.push(xt(a.messages[d].min,t.fullField,t.min)):l&&!s&&u>t.max?o.push(xt(a.messages[d].max,t.fullField,t.max)):s&&l&&(u<t.min||u>t.max)&&o.push(xt(a.messages[d].range,t.fullField,t.min,t.max))},ed=function(t,r,n,o,a,i){t.required&&(!n.hasOwnProperty(t.field)||et(r,i||t.type))&&o.push(xt(a.messages.required,t.fullField))},yo;const ip=(function(){if(yo)return yo;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},r="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",o=["(?:".concat(n,":){7}(?:").concat(n,"|:)"),"(?:".concat(n,":){6}(?:").concat(r,"|:").concat(n,"|:)"),"(?:".concat(n,":){5}(?::").concat(r,"|(?::").concat(n,"){1,2}|:)"),"(?:".concat(n,":){4}(?:(?::").concat(n,"){0,1}:").concat(r,"|(?::").concat(n,"){1,3}|:)"),"(?:".concat(n,":){3}(?:(?::").concat(n,"){0,2}:").concat(r,"|(?::").concat(n,"){1,4}|:)"),"(?:".concat(n,":){2}(?:(?::").concat(n,"){0,3}:").concat(r,"|(?::").concat(n,"){1,5}|:)"),"(?:".concat(n,":){1}(?:(?::").concat(n,"){0,4}:").concat(r,"|(?::").concat(n,"){1,6}|:)"),"(?::(?:(?::".concat(n,"){0,5}:").concat(r,"|(?::").concat(n,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",i="(?:".concat(o.join("|"),")").concat(a),s=new RegExp("(?:^".concat(r,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(r,"$")),c=new RegExp("^".concat(i,"$")),u=function(w){return w&&w.exact?s:new RegExp("(?:".concat(t(w)).concat(r).concat(t(w),")|(?:").concat(t(w)).concat(i).concat(t(w),")"),"g")};u.v4=function(x){return x&&x.exact?l:new RegExp("".concat(t(x)).concat(r).concat(t(x)),"g")},u.v6=function(x){return x&&x.exact?c:new RegExp("".concat(t(x)).concat(i).concat(t(x)),"g")};var d="(?:(?:[a-z]+:)?//)",f="(?:\\S+(?::\\S*)?@)?",m=u.v4().source,g=u.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",y="(?::\\d{2,5})?",S='(?:[/?#][^\\s"]*)?',$="(?:".concat(d,"|www\\.)").concat(f,"(?:localhost|").concat(m,"|").concat(g,"|").concat(p).concat(h).concat(b,")").concat(y).concat(S);return yo=new RegExp("(?:^".concat($,"$)"),"i"),yo});var ql={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},En={integer:function(t){return En.number(t)&&parseInt(t,10)===t},float:function(t){return En.number(t)&&!En.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return ve(t)==="object"&&!En.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(ql.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(ip())},hex:function(t){return typeof t=="string"&&!!t.match(ql.hex)}},sp=function(t,r,n,o,a){if(t.required&&r===void 0){ed(t,r,n,o,a);return}var i=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;i.indexOf(s)>-1?En[s](r)||o.push(xt(a.messages.types[s],t.fullField,t.type)):s&&ve(r)!==t.type&&o.push(xt(a.messages.types[s],t.fullField,t.type))},lp=function(t,r,n,o,a){(/^\s+$/.test(r)||r==="")&&o.push(xt(a.messages.whitespace,t.fullField))};const we={required:ed,whitespace:lp,type:sp,range:ap,enum:np,pattern:op};var cp=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(et(r)&&!t.required)return n();we.required(t,r,o,i,a)}n(i)},up=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();we.required(t,r,o,i,a,"array"),r!=null&&(we.type(t,r,o,i,a),we.range(t,r,o,i,a))}n(i)},dp=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(et(r)&&!t.required)return n();we.required(t,r,o,i,a),r!==void 0&&we.type(t,r,o,i,a)}n(i)},fp=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(et(r,"date")&&!t.required)return n();if(we.required(t,r,o,i,a),!et(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),we.type(t,l,o,i,a),l&&we.range(t,l.getTime(),o,i,a)}}n(i)},hp="enum",vp=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(et(r)&&!t.required)return n();we.required(t,r,o,i,a),r!==void 0&&we[hp](t,r,o,i,a)}n(i)},gp=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(et(r)&&!t.required)return n();we.required(t,r,o,i,a),r!==void 0&&(we.type(t,r,o,i,a),we.range(t,r,o,i,a))}n(i)},mp=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(et(r)&&!t.required)return n();we.required(t,r,o,i,a),r!==void 0&&(we.type(t,r,o,i,a),we.range(t,r,o,i,a))}n(i)},pp=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(et(r)&&!t.required)return n();we.required(t,r,o,i,a),r!==void 0&&we.type(t,r,o,i,a)}n(i)},yp=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),et(r)&&!t.required)return n();we.required(t,r,o,i,a),r!==void 0&&(we.type(t,r,o,i,a),we.range(t,r,o,i,a))}n(i)},bp=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(et(r)&&!t.required)return n();we.required(t,r,o,i,a),r!==void 0&&we.type(t,r,o,i,a)}n(i)},xp=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(et(r,"string")&&!t.required)return n();we.required(t,r,o,i,a),et(r,"string")||we.pattern(t,r,o,i,a)}n(i)},Cp=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(et(r)&&!t.required)return n();we.required(t,r,o,i,a),et(r)||we.type(t,r,o,i,a)}n(i)},wp=function(t,r,n,o,a){var i=[],s=Array.isArray(r)?"array":ve(r);we.required(t,r,o,i,a,s),n(i)},Sp=function(t,r,n,o,a){var i=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(et(r,"string")&&!t.required)return n();we.required(t,r,o,i,a,"string"),et(r,"string")||(we.type(t,r,o,i,a),we.range(t,r,o,i,a),we.pattern(t,r,o,i,a),t.whitespace===!0&&we.whitespace(t,r,o,i,a))}n(i)},Pa=function(t,r,n,o,a){var i=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(et(r,i)&&!t.required)return n();we.required(t,r,o,s,a,i),et(r,i)||we.type(t,r,o,s,a)}n(s)};const jn={string:Sp,method:pp,number:yp,boolean:dp,regexp:Cp,integer:mp,float:gp,array:up,object:bp,enum:vp,pattern:xp,date:fp,url:Pa,hex:Pa,email:Pa,required:wp,any:cp};var Kn=(function(){function e(t){at(this,e),_(this,"rules",null),_(this,"_messages",Pi),this.define(t)}return it(e,[{key:"define",value:function(r){var n=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(ve(r)!=="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];n.rules[o]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(r){return r&&(this._messages=Wl(_i(),r)),this._messages}},{key:"validate",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},i=r,s=o,l=a;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,i),Promise.resolve(i);function c(g){var p=[],h={};function b(S){if(Array.isArray(S)){var $;p=($=p).concat.apply($,se(S))}else p.push(S)}for(var y=0;y<g.length;y++)b(g[y]);p.length?(h=Ai(p),l(p,h)):l(null,i)}if(s.messages){var u=this.messages();u===Pi&&(u=_i()),Wl(u,s.messages),s.messages=u}else s.messages=this.messages();var d={},f=s.keys||Object.keys(this.rules);f.forEach(function(g){var p=n.rules[g],h=i[g];p.forEach(function(b){var y=b;typeof y.transform=="function"&&(i===r&&(i=M({},i)),h=i[g]=y.transform(h),h!=null&&(y.type=y.type||(Array.isArray(h)?"array":ve(h)))),typeof y=="function"?y={validator:y}:y=M({},y),y.validator=n.getValidationMethod(y),y.validator&&(y.field=g,y.fullField=y.fullField||g,y.type=n.getType(y),d[g]=d[g]||[],d[g].push({rule:y,value:h,source:i,field:g}))})});var m={};return ep(d,s,function(g,p){var h=g.rule,b=(h.type==="object"||h.type==="array")&&(ve(h.fields)==="object"||ve(h.defaultField)==="object");b=b&&(h.required||!h.required&&g.value),h.field=g.field;function y(C,j){return M(M({},j),{},{fullField:"".concat(h.fullField,".").concat(C),fullFields:h.fullFields?[].concat(se(h.fullFields),[C]):[C]})}function S(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],j=Array.isArray(C)?C:[C];!s.suppressWarning&&j.length&&e.warning("async-validator:",j),j.length&&h.message!==void 0&&(j=[].concat(h.message));var T=j.map(Bl(h,i));if(s.first&&T.length)return m[h.field]=1,p(T);if(!b)p(T);else{if(h.required&&!g.value)return h.message!==void 0?T=[].concat(h.message).map(Bl(h,i)):s.error&&(T=[s.error(h,xt(s.messages.required,h.field))]),p(T);var F={};h.defaultField&&Object.keys(g.value).map(function(N){F[N]=h.defaultField}),F=M(M({},F),g.rule.fields);var k={};Object.keys(F).forEach(function(N){var A=F[N],B=Array.isArray(A)?A:[A];k[N]=B.map(y.bind(null,N))});var L=new e(k);L.messages(s.messages),g.rule.options&&(g.rule.options.messages=s.messages,g.rule.options.error=s.error),L.validate(g.value,g.rule.options||s,function(N){var A=[];T&&T.length&&A.push.apply(A,se(T)),N&&N.length&&A.push.apply(A,se(N)),p(A.length?A:null)})}}var $;if(h.asyncValidator)$=h.asyncValidator(h,g.value,S,g.source,s);else if(h.validator){try{$=h.validator(h,g.value,S,g.source,s)}catch(C){var x,w;(x=(w=console).error)===null||x===void 0||x.call(w,C),s.suppressValidatorError||setTimeout(function(){throw C},0),S(C.message)}$===!0?S():$===!1?S(typeof h.message=="function"?h.message(h.fullField||h.field):h.message||"".concat(h.fullField||h.field," fails")):$ instanceof Array?S($):$ instanceof Error&&S($.message)}$&&$.then&&$.then(function(){return S()},function(C){return S(C)})},function(g){c(g)},i)}},{key:"getType",value:function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!jn.hasOwnProperty(r.type))throw new Error(xt("Unknown rule type %s",r.type));return r.type||"string"}},{key:"getValidationMethod",value:function(r){if(typeof r.validator=="function")return r.validator;var n=Object.keys(r),o=n.indexOf("message");return o!==-1&&n.splice(o,1),n.length===1&&n[0]==="required"?jn.required:jn[this.getType(r)]||void 0}}]),e})();_(Kn,"register",function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");jn[t]=r});_(Kn,"warning",Ju);_(Kn,"messages",Pi);_(Kn,"validators",jn);var yt="'${name}' is not a valid ${type}",td={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:yt,method:yt,array:yt,object:yt,number:yt,date:yt,boolean:yt,integer:yt,float:yt,regexp:yt,email:yt,url:yt,hex:yt},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Ul=Kn;function Ep(e,t){return e.replace(/\\?\$\{\w+\}/g,function(r){if(r.startsWith("\\"))return r.slice(1);var n=r.slice(2,-1);return t[n]})}var Kl="CODE_LOGIC_ERROR";function Mi(e,t,r,n,o){return Fi.apply(this,arguments)}function Fi(){return Fi=Un(jt().mark(function e(t,r,n,o,a){var i,s,l,c,u,d,f,m,g;return jt().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return i=M({},n),delete i.ruleIndex,Ul.warning=function(){},i.validator&&(s=i.validator,i.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(Kl)}}),l=null,i&&i.type==="array"&&i.defaultField&&(l=i.defaultField,delete i.defaultField),c=new Ul(_({},t,[i])),u=Vr(td,o.validateMessages),c.messages(u),d=[],h.prev=10,h.next=13,Promise.resolve(c.validate(_({},t,r),M({},o)));case 13:h.next=18;break;case 15:h.prev=15,h.t0=h.catch(10),h.t0.errors&&(d=h.t0.errors.map(function(b,y){var S=b.message,$=S===Kl?u.default:S;return v.isValidElement($)?v.cloneElement($,{key:"error_".concat(y)}):$}));case 18:if(!(!d.length&&l)){h.next=23;break}return h.next=21,Promise.all(r.map(function(b,y){return Mi("".concat(t,".").concat(y),b,l,o,a)}));case 21:return f=h.sent,h.abrupt("return",f.reduce(function(b,y){return[].concat(se(b),se(y))},[]));case 23:return m=M(M({},n),{},{name:t,enum:(n.enum||[]).join(", ")},a),g=d.map(function(b){return typeof b=="string"?Ep(b,m):b}),h.abrupt("return",g);case 26:case"end":return h.stop()}},e,null,[[10,15]])})),Fi.apply(this,arguments)}function Rp(e,t,r,n,o,a){var i=e.join("."),s=r.map(function(u,d){var f=u.validator,m=M(M({},u),{},{ruleIndex:d});return f&&(m.validator=function(g,p,h){var b=!1,y=function(){for(var x=arguments.length,w=new Array(x),C=0;C<x;C++)w[C]=arguments[C];Promise.resolve().then(function(){ze(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||h.apply(void 0,w)})},S=f(g,p,y);b=S&&typeof S.then=="function"&&typeof S.catch=="function",ze(b,"`callback` is deprecated. Please return a promise instead."),b&&S.then(function(){h()}).catch(function($){h($||" ")})}),m}).sort(function(u,d){var f=u.warningOnly,m=u.ruleIndex,g=d.warningOnly,p=d.ruleIndex;return!!f==!!g?m-p:f?1:-1}),l;if(o===!0)l=new Promise((function(){var u=Un(jt().mark(function d(f,m){var g,p,h;return jt().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:g=0;case 1:if(!(g<s.length)){y.next=12;break}return p=s[g],y.next=5,Mi(i,t,p,n,a);case 5:if(h=y.sent,!h.length){y.next=9;break}return m([{errors:h,rule:p}]),y.abrupt("return");case 9:g+=1,y.next=1;break;case 12:f([]);case 13:case"end":return y.stop()}},d)}));return function(d,f){return u.apply(this,arguments)}})());else{var c=s.map(function(u){return Mi(i,t,u,n,a).then(function(d){return{errors:d,rule:u}})});l=(o?Op(c):$p(c)).then(function(u){return Promise.reject(u)})}return l.catch(function(u){return u}),l}function $p(e){return Ni.apply(this,arguments)}function Ni(){return Ni=Un(jt().mark(function e(t){return jt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(o){var a,i=(a=[]).concat.apply(a,se(o));return i}));case 1:case"end":return n.stop()}},e)})),Ni.apply(this,arguments)}function Op(e){return ki.apply(this,arguments)}function ki(){return ki=Un(jt().mark(function e(t){var r;return jt().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return r=0,o.abrupt("return",new Promise(function(a){t.forEach(function(i){i.then(function(s){s.errors.length&&a([s]),r+=1,r===t.length&&a([])})})}));case 2:case"end":return o.stop()}},e)})),ki.apply(this,arguments)}function Ye(e){return ji(e)}function Gl(e,t){var r={};return t.forEach(function(n){var o=Wt(e,n);r=Nt(r,n,o)}),r}function zr(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return rd(t,n,r)})}function rd(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,o){return e[o]===n})}function jp(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||ve(e)!=="object"||ve(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),o=new Set([].concat(r,n));return se(o).every(function(a){var i=e[a],s=t[a];return typeof i=="function"&&typeof s=="function"?!0:i===s})}function _p(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&ve(t.target)==="object"&&e in t.target?t.target[e]:t}function Yl(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var o=e[t],a=t-r;return a>0?[].concat(se(e.slice(0,r)),[o],se(e.slice(r,t)),se(e.slice(t+1,n))):a<0?[].concat(se(e.slice(0,t)),se(e.slice(t+1,r+1)),[o],se(e.slice(r+1,n))):e}var Pp=["name"],$t=[];function Ta(e,t,r,n,o,a){return typeof e=="function"?e(t,r,"source"in a?{source:a.source}:{}):n!==o}var us=(function(e){hr(r,e);var t=vr(r);function r(n){var o;if(at(this,r),o=t.call(this,n),_(xe(o),"state",{resetCount:0}),_(xe(o),"cancelRegisterFunc",null),_(xe(o),"mounted",!1),_(xe(o),"touched",!1),_(xe(o),"dirty",!1),_(xe(o),"validatePromise",void 0),_(xe(o),"prevValidating",void 0),_(xe(o),"errors",$t),_(xe(o),"warnings",$t),_(xe(o),"cancelRegister",function(){var l=o.props,c=l.preserve,u=l.isListField,d=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(u,c,Ye(d)),o.cancelRegisterFunc=null}),_(xe(o),"getNamePath",function(){var l=o.props,c=l.name,u=l.fieldContext,d=u.prefixName,f=d===void 0?[]:d;return c!==void 0?[].concat(se(f),se(c)):[]}),_(xe(o),"getRules",function(){var l=o.props,c=l.rules,u=c===void 0?[]:c,d=l.fieldContext;return u.map(function(f){return typeof f=="function"?f(d):f})}),_(xe(o),"refresh",function(){o.mounted&&o.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),_(xe(o),"metaCache",null),_(xe(o),"triggerMetaEvent",function(l){var c=o.props.onMetaChange;if(c){var u=M(M({},o.getMeta()),{},{destroy:l});ui(o.metaCache,u)||c(u),o.metaCache=u}else o.metaCache=null}),_(xe(o),"onStoreChange",function(l,c,u){var d=o.props,f=d.shouldUpdate,m=d.dependencies,g=m===void 0?[]:m,p=d.onReset,h=u.store,b=o.getNamePath(),y=o.getValue(l),S=o.getValue(h),$=c&&zr(c,b);switch(u.type==="valueUpdate"&&u.source==="external"&&!ui(y,S)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=$t,o.warnings=$t,o.triggerMetaEvent()),u.type){case"reset":if(!c||$){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=$t,o.warnings=$t,o.triggerMetaEvent(),p?.(),o.refresh();return}break;case"remove":{if(f&&Ta(f,l,h,y,S,u)){o.reRender();return}break}case"setField":{var x=u.data;if($){"touched"in x&&(o.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(o.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(o.errors=x.errors||$t),"warnings"in x&&(o.warnings=x.warnings||$t),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in x&&zr(c,b,!0)){o.reRender();return}if(f&&!b.length&&Ta(f,l,h,y,S,u)){o.reRender();return}break}case"dependenciesUpdate":{var w=g.map(Ye);if(w.some(function(C){return zr(u.relatedFields,C)})){o.reRender();return}break}default:if($||(!g.length||b.length||f)&&Ta(f,l,h,y,S,u)){o.reRender();return}break}f===!0&&o.reRender()}),_(xe(o),"validateRules",function(l){var c=o.getNamePath(),u=o.getValue(),d=l||{},f=d.triggerName,m=d.validateOnly,g=m===void 0?!1:m,p=Promise.resolve().then(Un(jt().mark(function h(){var b,y,S,$,x,w,C;return jt().wrap(function(T){for(;;)switch(T.prev=T.next){case 0:if(o.mounted){T.next=2;break}return T.abrupt("return",[]);case 2:if(b=o.props,y=b.validateFirst,S=y===void 0?!1:y,$=b.messageVariables,x=b.validateDebounce,w=o.getRules(),f&&(w=w.filter(function(F){return F}).filter(function(F){var k=F.validateTrigger;if(!k)return!0;var L=ji(k);return L.includes(f)})),!(x&&f)){T.next=10;break}return T.next=8,new Promise(function(F){setTimeout(F,x)});case 8:if(o.validatePromise===p){T.next=10;break}return T.abrupt("return",[]);case 10:return C=Rp(c,u,w,l,S,$),C.catch(function(F){return F}).then(function(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$t;if(o.validatePromise===p){var k;o.validatePromise=null;var L=[],N=[];(k=F.forEach)===null||k===void 0||k.call(F,function(A){var B=A.rule.warningOnly,O=A.errors,V=O===void 0?$t:O;B?N.push.apply(N,se(V)):L.push.apply(L,se(V))}),o.errors=L,o.warnings=N,o.triggerMetaEvent(),o.reRender()}}),T.abrupt("return",C);case 13:case"end":return T.stop()}},h)})));return g||(o.validatePromise=p,o.dirty=!0,o.errors=$t,o.warnings=$t,o.triggerMetaEvent(),o.reRender()),p}),_(xe(o),"isFieldValidating",function(){return!!o.validatePromise}),_(xe(o),"isFieldTouched",function(){return o.touched}),_(xe(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,c=l.getInternalHooks(wr),u=c.getInitialValue;return u(o.getNamePath())!==void 0}),_(xe(o),"getErrors",function(){return o.errors}),_(xe(o),"getWarnings",function(){return o.warnings}),_(xe(o),"isListField",function(){return o.props.isListField}),_(xe(o),"isList",function(){return o.props.isList}),_(xe(o),"isPreserve",function(){return o.props.preserve}),_(xe(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),_(xe(o),"getOnlyChild",function(l){if(typeof l=="function"){var c=o.getMeta();return M(M({},o.getOnlyChild(l(o.getControlled(),c,o.props.fieldContext))),{},{isFunction:!0})}var u=qr(l);return u.length!==1||!v.isValidElement(u[0])?{child:u,isFunction:!1}:{child:u[0],isFunction:!1}}),_(xe(o),"getValue",function(l){var c=o.props.fieldContext.getFieldsValue,u=o.getNamePath();return Wt(l||c(!0),u)}),_(xe(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.props,u=c.name,d=c.trigger,f=c.validateTrigger,m=c.getValueFromEvent,g=c.normalize,p=c.valuePropName,h=c.getValueProps,b=c.fieldContext,y=f!==void 0?f:b.validateTrigger,S=o.getNamePath(),$=b.getInternalHooks,x=b.getFieldsValue,w=$(wr),C=w.dispatch,j=o.getValue(),T=h||function(A){return _({},p,A)},F=l[d],k=u!==void 0?T(j):{};process.env.NODE_ENV!=="production"&&k&&Object.keys(k).forEach(function(A){ze(typeof k[A]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(A,")"))});var L=M(M({},l),k);L[d]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var A,B=arguments.length,O=new Array(B),V=0;V<B;V++)O[V]=arguments[V];m?A=m.apply(void 0,O):A=_p.apply(void 0,[p].concat(O)),g&&(A=g(A,j,x(!0))),A!==j&&C({type:"updateValue",namePath:S,value:A}),F&&F.apply(void 0,O)};var N=ji(y||[]);return N.forEach(function(A){var B=L[A];L[A]=function(){B&&B.apply(void 0,arguments);var O=o.props.rules;O&&O.length&&C({type:"validateField",namePath:S,triggerName:A})}}),L}),n.fieldContext){var a=n.fieldContext.getInternalHooks,i=a(wr),s=i.initEntityValue;s(xe(o))}return o}return it(r,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,i=o.fieldContext;if(this.mounted=!0,i){var s=i.getInternalHooks,l=s(wr),c=l.registerField;this.cancelRegisterFunc=c(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,a=this.props.children,i=this.getOnlyChild(a),s=i.child,l=i.isFunction,c;return l?c=s:v.isValidElement(s)?c=v.cloneElement(s,this.getControlled(s.props)):(ze(!s,"`children` of Field is not validate ReactElement."),c=s),v.createElement(v.Fragment,{key:o},c)}}]),r})(v.Component);_(us,"contextType",Jr);_(us,"defaultProps",{trigger:"onChange",valuePropName:"value"});function nd(e){var t,r=e.name,n=ft(e,Pp),o=v.useContext(Jr),a=v.useContext(Vo),i=r!==void 0?Ye(r):void 0,s=(t=n.isListField)!==null&&t!==void 0?t:!!a,l="keep";return s||(l="_".concat((i||[]).join("_"))),process.env.NODE_ENV!=="production"&&n.preserve===!1&&s&&i.length<=1&&ze(!1,"`preserve` should not apply on Form.List fields."),v.createElement(us,Ie({key:l,name:i,isListField:s},n,{fieldContext:o}))}function Tp(e){var t=e.name,r=e.initialValue,n=e.children,o=e.rules,a=e.validateTrigger,i=e.isListField,s=v.useContext(Jr),l=v.useContext(Vo),c=v.useRef({keys:[],id:0}),u=c.current,d=v.useMemo(function(){var p=Ye(s.prefixName)||[];return[].concat(se(p),se(Ye(t)))},[s.prefixName,t]),f=v.useMemo(function(){return M(M({},s),{},{prefixName:d})},[s,d]),m=v.useMemo(function(){return{getKey:function(h){var b=d.length,y=h[b];return[u.keys[y],h.slice(b+1)]}}},[d]);if(typeof n!="function")return ze(!1,"Form.List only accepts function as children."),null;var g=function(h,b,y){var S=y.source;return S==="internal"?!1:h!==b};return v.createElement(Vo.Provider,{value:m},v.createElement(Jr.Provider,{value:f},v.createElement(nd,{name:[],shouldUpdate:g,rules:o,validateTrigger:a,initialValue:r,isList:!0,isListField:i??!!l},function(p,h){var b=p.value,y=b===void 0?[]:b,S=p.onChange,$=s.getFieldValue,x=function(){var T=$(d||[]);return T||[]},w={add:function(T,F){var k=x();F>=0&&F<=k.length?(u.keys=[].concat(se(u.keys.slice(0,F)),[u.id],se(u.keys.slice(F))),S([].concat(se(k.slice(0,F)),[T],se(k.slice(F))))):(process.env.NODE_ENV!=="production"&&(F<0||F>k.length)&&ze(!1,"The second parameter of the add function should be a valid positive number."),u.keys=[].concat(se(u.keys),[u.id]),S([].concat(se(k),[T]))),u.id+=1},remove:function(T){var F=x(),k=new Set(Array.isArray(T)?T:[T]);k.size<=0||(u.keys=u.keys.filter(function(L,N){return!k.has(N)}),S(F.filter(function(L,N){return!k.has(N)})))},move:function(T,F){if(T!==F){var k=x();T<0||T>=k.length||F<0||F>=k.length||(u.keys=Yl(u.keys,T,F),S(Yl(k,T,F)))}}},C=y||[];return Array.isArray(C)||(C=[],process.env.NODE_ENV!=="production"&&ze(!1,"Current value of '".concat(d.join(" > "),"' is not an array type."))),n(C.map(function(j,T){var F=u.keys[T];return F===void 0&&(u.keys[T]=u.id,F=u.keys[T],u.id+=1),{name:T,key:F,isListField:!0}}),w,h)})))}function Ap(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(o,a){e.forEach(function(i,s){i.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&a(n),o(n))})})}):Promise.resolve([])}var od="__@field_split__";function Aa(e){return e.map(function(t){return"".concat(ve(t),":").concat(t)}).join(od)}var Ir=(function(){function e(){at(this,e),_(this,"kvs",new Map)}return it(e,[{key:"set",value:function(r,n){this.kvs.set(Aa(r),n)}},{key:"get",value:function(r){return this.kvs.get(Aa(r))}},{key:"update",value:function(r,n){var o=this.get(r),a=n(o);a?this.set(r,a):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(Aa(r))}},{key:"map",value:function(r){return se(this.kvs.entries()).map(function(n){var o=Y(n,2),a=o[0],i=o[1],s=a.split(od);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),u=Y(c,3),d=u[1],f=u[2];return d==="number"?Number(f):f}),value:i})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var o=n.key,a=n.value;return r[o.join(".")]=a,null}),r}}]),e})(),Mp=["name"],Fp=it(function e(t){var r=this;at(this,e),_(this,"formHooked",!1),_(this,"forceRootUpdate",void 0),_(this,"subscribable",!0),_(this,"store",{}),_(this,"fieldEntities",[]),_(this,"initialValues",{}),_(this,"callbacks",{}),_(this,"validateMessages",null),_(this,"preserve",null),_(this,"lastValidatePromise",null),_(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),_(this,"getInternalHooks",function(n){return n===wr?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(ze(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),_(this,"useSubscribe",function(n){r.subscribable=n}),_(this,"prevWithoutPreserves",null),_(this,"setInitialValues",function(n,o){if(r.initialValues=n||{},o){var a,i=Vr(n,r.store);(a=r.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var l=s.key;i=Nt(i,l,Wt(n,l))}),r.prevWithoutPreserves=null,r.updateStore(i)}}),_(this,"destroyForm",function(n){if(n)r.updateStore({});else{var o=new Ir;r.getFieldEntities(!0).forEach(function(a){r.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),r.prevWithoutPreserves=o}}),_(this,"getInitialValue",function(n){var o=Wt(r.initialValues,n);return n.length?Vr(o):o}),_(this,"setCallbacks",function(n){r.callbacks=n}),_(this,"setValidateMessages",function(n){r.validateMessages=n}),_(this,"setPreserve",function(n){r.preserve=n}),_(this,"watchList",[]),_(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(o){return o!==n})}}),_(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var o=r.getFieldsValue(),a=r.getFieldsValue(!0);r.watchList.forEach(function(i){i(o,a,n)})}}),_(this,"timeoutId",null),_(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!r.timeoutId&&typeof window<"u"&&(r.timeoutId=setTimeout(function(){r.timeoutId=null,r.formHooked||ze(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),_(this,"updateStore",function(n){r.store=n}),_(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(o){return o.getNamePath().length}):r.fieldEntities}),_(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Ir;return r.getFieldEntities(n).forEach(function(a){var i=a.getNamePath();o.set(i,a)}),o}),_(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var o=r.getFieldsMap(!0);return n.map(function(a){var i=Ye(a);return o.get(i)||{INVALIDATE_NAME_PATH:Ye(a)}})}),_(this,"getFieldsValue",function(n,o){r.warningUnhooked();var a,i,s;if(n===!0||Array.isArray(n)?(a=n,i=o):n&&ve(n)==="object"&&(s=n.strict,i=n.filter),a===!0&&!i)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),c=[];return l.forEach(function(u){var d,f,m="INVALIDATE_NAME_PATH"in u?u.INVALIDATE_NAME_PATH:u.getNamePath();if(s){var g,p;if((g=(p=u).isList)!==null&&g!==void 0&&g.call(p))return}else if(!a&&(d=(f=u).isListField)!==null&&d!==void 0&&d.call(f))return;if(!i)c.push(m);else{var h="getMeta"in u?u.getMeta():null;i(h)&&c.push(m)}}),Gl(r.store,c.map(Ye))}),_(this,"getFieldValue",function(n){r.warningUnhooked();var o=Ye(n);return Wt(r.store,o)}),_(this,"getFieldsError",function(n){r.warningUnhooked();var o=r.getFieldEntitiesForNamePathList(n);return o.map(function(a,i){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:Ye(n[i]),errors:[],warnings:[]}})}),_(this,"getFieldError",function(n){r.warningUnhooked();var o=Ye(n),a=r.getFieldsError([o])[0];return a.errors}),_(this,"getFieldWarning",function(n){r.warningUnhooked();var o=Ye(n),a=r.getFieldsError([o])[0];return a.warnings}),_(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];var i=o[0],s=o[1],l,c=!1;o.length===0?l=null:o.length===1?Array.isArray(i)?(l=i.map(Ye),c=!1):(l=null,c=i):(l=i.map(Ye),c=s);var u=r.getFieldEntities(!0),d=function(h){return h.isFieldTouched()};if(!l)return c?u.every(function(p){return d(p)||p.isList()}):u.some(d);var f=new Ir;l.forEach(function(p){f.set(p,[])}),u.forEach(function(p){var h=p.getNamePath();l.forEach(function(b){b.every(function(y,S){return h[S]===y})&&f.update(b,function(y){return[].concat(se(y),[p])})})});var m=function(h){return h.some(d)},g=f.map(function(p){var h=p.value;return h});return c?g.every(m):g.some(m)}),_(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),_(this,"isFieldsValidating",function(n){r.warningUnhooked();var o=r.getFieldEntities();if(!n)return o.some(function(i){return i.isFieldValidating()});var a=n.map(Ye);return o.some(function(i){var s=i.getNamePath();return zr(a,s)&&i.isFieldValidating()})}),_(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),_(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Ir,a=r.getFieldEntities(!0);a.forEach(function(l){var c=l.props.initialValue,u=l.getNamePath();if(c!==void 0){var d=o.get(u)||new Set;d.add({entity:l,value:c}),o.set(u,d)}});var i=function(c){c.forEach(function(u){var d=u.props.initialValue;if(d!==void 0){var f=u.getNamePath(),m=r.getInitialValue(f);if(m!==void 0)ze(!1,"Form already set 'initialValues' with path '".concat(f.join("."),"'. Field can not overwrite it."));else{var g=o.get(f);if(g&&g.size>1)ze(!1,"Multiple Field with path '".concat(f.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(g){var p=r.getFieldValue(f),h=u.isListField();!h&&(!n.skipExist||p===void 0)&&r.updateStore(Nt(r.store,f,se(g)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=o.get(l);if(c){var u;(u=s).push.apply(u,se(se(c).map(function(d){return d.entity})))}})):s=a,i(s)}),_(this,"resetFields",function(n){r.warningUnhooked();var o=r.store;if(!n){r.updateStore(Vr(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(o,null,{type:"reset"}),r.notifyWatch();return}var a=n.map(Ye);a.forEach(function(i){var s=r.getInitialValue(i);r.updateStore(Nt(r.store,i,s))}),r.resetWithFieldInitialValue({namePathList:a}),r.notifyObservers(o,a,{type:"reset"}),r.notifyWatch(a)}),_(this,"setFields",function(n){r.warningUnhooked();var o=r.store,a=[];n.forEach(function(i){var s=i.name,l=ft(i,Mp),c=Ye(s);a.push(c),"value"in l&&r.updateStore(Nt(r.store,c,l.value)),r.notifyObservers(o,[c],{type:"setField",data:i})}),r.notifyWatch(a)}),_(this,"getFields",function(){var n=r.getFieldEntities(!0),o=n.map(function(a){var i=a.getNamePath(),s=a.getMeta(),l=M(M({},s),{},{name:i,value:r.getFieldValue(i)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),_(this,"initEntityValue",function(n){var o=n.props.initialValue;if(o!==void 0){var a=n.getNamePath(),i=Wt(r.store,a);i===void 0&&r.updateStore(Nt(r.store,a,o))}}),_(this,"isMergedPreserve",function(n){var o=n!==void 0?n:r.preserve;return o??!0}),_(this,"registerField",function(n){r.fieldEntities.push(n);var o=n.getNamePath();if(r.notifyWatch([o]),n.props.initialValue!==void 0){var a=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(a,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(i,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(d){return d!==n}),!r.isMergedPreserve(s)&&(!i||l.length>1)){var c=i?void 0:r.getInitialValue(o);if(o.length&&r.getFieldValue(o)!==c&&r.fieldEntities.every(function(d){return!rd(d.getNamePath(),o)})){var u=r.store;r.updateStore(Nt(u,o,c,!0)),r.notifyObservers(u,[o],{type:"remove"}),r.triggerDependenciesUpdate(u,o)}}r.notifyWatch([o])}}),_(this,"dispatch",function(n){switch(n.type){case"updateValue":{var o=n.namePath,a=n.value;r.updateValue(o,a);break}case"validateField":{var i=n.namePath,s=n.triggerName;r.validateFields([i],{triggerName:s});break}}}),_(this,"notifyObservers",function(n,o,a){if(r.subscribable){var i=M(M({},a),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,o,i)})}else r.forceRootUpdate()}),_(this,"triggerDependenciesUpdate",function(n,o){var a=r.getDependencyChildrenFields(o);return a.length&&r.validateFields(a),r.notifyObservers(n,a,{type:"dependenciesUpdate",relatedFields:[o].concat(se(a))}),a}),_(this,"updateValue",function(n,o){var a=Ye(n),i=r.store;r.updateStore(Nt(r.store,a,o)),r.notifyObservers(i,[a],{type:"valueUpdate",source:"internal"}),r.notifyWatch([a]);var s=r.triggerDependenciesUpdate(i,a),l=r.callbacks.onValuesChange;if(l){var c=Gl(r.store,[a]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([a].concat(se(s)))}),_(this,"setFieldsValue",function(n){r.warningUnhooked();var o=r.store;if(n){var a=Vr(r.store,n);r.updateStore(a)}r.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),_(this,"setFieldValue",function(n,o){r.setFields([{name:n,value:o,errors:[],warnings:[]}])}),_(this,"getDependencyChildrenFields",function(n){var o=new Set,a=[],i=new Ir;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(u){var d=Ye(u);i.update(d,function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return f.add(l),f})})});var s=function l(c){var u=i.get(c)||new Set;u.forEach(function(d){if(!o.has(d)){o.add(d);var f=d.getNamePath();d.isFieldDirty()&&f.length&&(a.push(f),l(f))}})};return s(n),a}),_(this,"triggerOnFieldsChange",function(n,o){var a=r.callbacks.onFieldsChange;if(a){var i=r.getFields();if(o){var s=new Ir;o.forEach(function(c){var u=c.name,d=c.errors;s.set(u,d)}),i.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=i.filter(function(c){var u=c.name;return zr(n,u)});l.length&&a(l,i)}}),_(this,"validateFields",function(n,o){r.warningUnhooked();var a,i;Array.isArray(n)||typeof n=="string"||typeof o=="string"?(a=n,i=o):i=n;var s=!!a,l=s?a.map(Ye):[],c=[],u=String(Date.now()),d=new Set,f=i||{},m=f.recursive,g=f.dirty;r.getFieldEntities(!0).forEach(function(y){if(s||l.push(y.getNamePath()),!(!y.props.rules||!y.props.rules.length)&&!(g&&!y.isFieldDirty())){var S=y.getNamePath();if(d.add(S.join(u)),!s||zr(l,S,m)){var $=y.validateRules(M({validateMessages:M(M({},td),r.validateMessages)},i));c.push($.then(function(){return{name:S,errors:[],warnings:[]}}).catch(function(x){var w,C=[],j=[];return(w=x.forEach)===null||w===void 0||w.call(x,function(T){var F=T.rule.warningOnly,k=T.errors;F?j.push.apply(j,se(k)):C.push.apply(C,se(k))}),C.length?Promise.reject({name:S,errors:C,warnings:j}):{name:S,errors:C,warnings:j}}))}}});var p=Ap(c);r.lastValidatePromise=p,p.catch(function(y){return y}).then(function(y){var S=y.map(function($){var x=$.name;return x});r.notifyObservers(r.store,S,{type:"validateFinish"}),r.triggerOnFieldsChange(S,y)});var h=p.then(function(){return r.lastValidatePromise===p?Promise.resolve(r.getFieldsValue(l)):Promise.reject([])}).catch(function(y){var S=y.filter(function($){return $&&$.errors.length});return Promise.reject({values:r.getFieldsValue(l),errorFields:S,outOfDate:r.lastValidatePromise!==p})});h.catch(function(y){return y});var b=l.filter(function(y){return d.has(y.join(u))});return r.triggerOnFieldsChange(b),h}),_(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var o=r.callbacks.onFinish;if(o)try{o(n)}catch(a){console.error(a)}}).catch(function(n){var o=r.callbacks.onFinishFailed;o&&o(n)})}),this.forceRootUpdate=t});function ad(e){var t=v.useRef(),r=v.useState({}),n=Y(r,2),o=n[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},i=new Fp(a);t.current=i.getForm()}return[t.current]}var Ii=v.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Np=function(t){var r=t.validateMessages,n=t.onFormChange,o=t.onFormFinish,a=t.children,i=v.useContext(Ii),s=v.useRef({});return v.createElement(Ii.Provider,{value:M(M({},i),{},{validateMessages:M(M({},i.validateMessages),r),triggerFormChange:function(c,u){n&&n(c,{changedFields:u,forms:s.current}),i.triggerFormChange(c,u)},triggerFormFinish:function(c,u){o&&o(c,{values:u,forms:s.current}),i.triggerFormFinish(c,u)},registerForm:function(c,u){c&&(s.current=M(M({},s.current),{},_({},c,u))),i.registerForm(c,u)},unregisterForm:function(c){var u=M({},s.current);delete u[c],s.current=u,i.unregisterForm(c)}})},a)},kp=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Ip=function(t,r){var n=t.name,o=t.initialValues,a=t.fields,i=t.form,s=t.preserve,l=t.children,c=t.component,u=c===void 0?"form":c,d=t.validateMessages,f=t.validateTrigger,m=f===void 0?"onChange":f,g=t.onValuesChange,p=t.onFieldsChange,h=t.onFinish,b=t.onFinishFailed,y=t.clearOnDestroy,S=ft(t,kp),$=v.useRef(null),x=v.useContext(Ii),w=ad(i),C=Y(w,1),j=C[0],T=j.getInternalHooks(wr),F=T.useSubscribe,k=T.setInitialValues,L=T.setCallbacks,N=T.setValidateMessages,A=T.setPreserve,B=T.destroyForm;v.useImperativeHandle(r,function(){return M(M({},j),{},{nativeElement:$.current})}),v.useEffect(function(){return x.registerForm(n,j),function(){x.unregisterForm(n)}},[x,j,n]),N(M(M({},x.validateMessages),d)),L({onValuesChange:g,onFieldsChange:function(D){if(x.triggerFormChange(n,D),p){for(var W=arguments.length,z=new Array(W>1?W-1:0),K=1;K<W;K++)z[K-1]=arguments[K];p.apply(void 0,[D].concat(z))}},onFinish:function(D){x.triggerFormFinish(n,D),h&&h(D)},onFinishFailed:b}),A(s);var O=v.useRef(null);k(o,!O.current),O.current||(O.current=!0),v.useEffect(function(){return function(){return B(y)}},[]);var V,H=typeof l=="function";if(H){var q=j.getFieldsValue(!0);V=l(q,j)}else V=l;F(!H);var G=v.useRef();v.useEffect(function(){jp(G.current||[],a||[])||j.setFields(a||[]),G.current=a},[a,j]);var ee=v.useMemo(function(){return M(M({},j),{},{validateTrigger:m})},[j,m]),E=v.createElement(Vo.Provider,{value:null},v.createElement(Jr.Provider,{value:ee},V));return u===!1?E:v.createElement(u,Ie({},S,{ref:$,onSubmit:function(D){D.preventDefault(),D.stopPropagation(),j.submit()},onReset:function(D){var W;D.preventDefault(),j.resetFields(),(W=S.onReset)===null||W===void 0||W.call(S,D)}}),E)};function Xl(e){try{return JSON.stringify(e)}catch{return Math.random()}}var Vp=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),r=R.useRef(t);ze(r.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function Dp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],a=o===void 0?{}:o,i=Km(a)?{form:a}:a,s=i.form,l=R.useState(),c=Y(l,2),u=c[0],d=c[1],f=R.useMemo(function(){return Xl(u)},[u]),m=R.useRef(f);m.current=f;var g=R.useContext(Jr),p=s||g,h=p&&p._init;process.env.NODE_ENV!=="production"&&ze(t.length===2?s?h:!0:h,"useWatch requires a form instance since it can not auto detect from context.");var b=Ye(n),y=R.useRef(b);return y.current=b,Vp(b),R.useEffect(function(){if(h){var S=p.getFieldsValue,$=p.getInternalHooks,x=$(wr),w=x.registerWatch,C=function(k,L){var N=i.preserve?L:k;return typeof n=="function"?n(N):Wt(N,y.current)},j=w(function(F,k){var L=C(F,k),N=Xl(L);m.current!==N&&(m.current=N,d(L))}),T=C(S(),S(!0));return u!==T&&d(T),j}},[h]),u}var Lp=v.forwardRef(Ip),Gn=Lp;Gn.FormProvider=Np;Gn.Field=nd;Gn.List=Tp;Gn.useForm=ad;Gn.useWatch=Dp;const Ln=v.createContext({});process.env.NODE_ENV!=="production"&&(Ln.displayName="FormItemInputContext");const Hp=({children:e,status:t,override:r})=>{const n=v.useContext(Ln),o=v.useMemo(()=>{const a=Object.assign({},n);return r&&delete a.isFormItemInput,t&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[t,r,n]);return v.createElement(Ln.Provider,{value:o},e)},zp=v.createContext(void 0),id=e=>{const t=R.useContext(Qr);return R.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},sd=v.createContext(null),ld=(e,t)=>{const r=v.useContext(sd),n=v.useMemo(()=>{if(!r)return"";const{compactDirection:o,isFirstItem:a,isLastItem:i}=r,s=o==="vertical"?"-vertical-":"-";return le(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:i,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r?.compactSize,compactDirection:r?.compactDirection,compactItemClassnames:n}},Bp=e=>{const{children:t}=e;return v.createElement(sd.Provider,{value:null},t)},Vi=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let o=n;return r&&(o=R.createElement(Hp,{override:!0,status:!0},o)),t&&(o=R.createElement(Bp,null,o)),o},ds=R.createContext(void 0);process.env.NODE_ENV!=="production"&&(ds.displayName="zIndexContext");const Zt=100,Wp=10,qp=Zt*Wp,Up=qp+Zt,cd={Modal:Zt,Drawer:Zt,Popover:Zt,Popconfirm:Zt,Tooltip:Zt,Tour:Zt,FloatButton:Zt},Kp={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Gp(e){return e in cd}const Yp=(e,t)=>{const[,r]=nn(),n=R.useContext(ds),o=Gp(e);let a;if(t!==void 0)a=[t,t];else{let i=n??0;o?i+=(n?0:r.zIndexPopupBase)+cd[e]:i+=Kp[e],a=[n===void 0?t:i,i]}if(process.env.NODE_ENV!=="production"){const i=qt(e),s=r.zIndexPopupBase+Up,l=a[0]||0;process.env.NODE_ENV!=="production"&&i(t!==void 0||l<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return a},Xp=(e,t,r)=>r!==void 0?r:`${e}-${t}`;function Qp(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,o=t/2,a=0,i=o,s=n*1/Math.sqrt(2),l=o-n*(1-1/Math.sqrt(2)),c=o-r*(1/Math.sqrt(2)),u=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),d=2*o-c,f=u,m=2*o-s,g=l,p=2*o-a,h=i,b=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),y=n*(Math.sqrt(2)-1),S=`polygon(${y}px 100%, 50% ${y}px, ${2*o-y}px 100%, ${y}px 100%)`,$=`path('M ${a} ${i} A ${n} ${n} 0 0 0 ${s} ${l} L ${c} ${u} A ${r} ${r} 0 0 1 ${d} ${f} L ${m} ${g} A ${n} ${n} 0 0 0 ${p} ${h} Z')`;return{arrowShadowWidth:b,arrowPath:$,arrowPolygon:S}}const Zp=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:o,arrowPath:a,arrowShadowWidth:i,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:l(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:i,height:i,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Me(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},ud=8;function dd(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?ud:n}}function bo(e,t){return e?t:{}}function Jp(e,t,r){const{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:i}=e,{arrowDistance:s=0,arrowPlacement:l={left:!0,right:!0,top:!0,bottom:!0}}={};return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({[`${n}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Zp(e,t,o)),{"&:before":{background:t}})]},bo(!!l.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Me(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),bo(!!l.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":i,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:i}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Me(i)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:i}}}})),bo(!!l.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${n}-arrow`]:{top:a},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:a}})),bo(!!l.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${n}-arrow`]:{top:a},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:a}}))}}function e0(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const o=n&&typeof n=="object"?n:{},a={};switch(e){case"top":case"bottom":a.shiftX=t.arrowOffsetHorizontal*2+r,a.shiftY=!0,a.adjustY=!0;break;case"left":case"right":a.shiftY=t.arrowOffsetVertical*2+r,a.shiftX=!0,a.adjustX=!0;break}const i=Object.assign(Object.assign({},a),o);return i.shiftX||(i.adjustX=!0),i.shiftY||(i.adjustY=!0),i}const Ql={left:{points:["cr","cl"]},right:{points:["cl","cr"]},top:{points:["bc","tc"]},bottom:{points:["tc","bc"]},topLeft:{points:["bl","tl"]},leftTop:{points:["tr","tl"]},topRight:{points:["br","tr"]},rightTop:{points:["tl","tr"]},bottomRight:{points:["tr","br"]},rightBottom:{points:["bl","br"]},bottomLeft:{points:["tl","bl"]},leftBottom:{points:["br","bl"]}},t0={topLeft:{points:["bl","tc"]},leftTop:{points:["tr","cl"]},topRight:{points:["br","tc"]},rightTop:{points:["tl","cr"]},bottomRight:{points:["tr","bc"]},rightBottom:{points:["bl","cr"]},bottomLeft:{points:["tl","bc"]},leftBottom:{points:["br","cl"]}},r0=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function n0(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:a}=e,i=t/2,s={},l=dd({contentRadius:a,limitVerticalRadius:!0});return Object.keys(Ql).forEach(c=>{const u=n&&t0[c]||Ql[c],d=Object.assign(Object.assign({},u),{offset:[0,0],dynamicInset:!0});switch(s[c]=d,r0.has(c)&&(d.autoArrow=!1),c){case"top":case"topLeft":case"topRight":d.offset[1]=-i-o;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=i+o;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-i-o;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=i+o;break}if(n)switch(c){case"topLeft":case"bottomLeft":d.offset[0]=-l.arrowOffsetHorizontal-i;break;case"topRight":case"bottomRight":d.offset[0]=l.arrowOffsetHorizontal+i;break;case"leftTop":case"rightTop":d.offset[1]=-l.arrowOffsetHorizontal*2+i;break;case"leftBottom":case"rightBottom":d.offset[1]=l.arrowOffsetHorizontal*2-i;break}d.overflow=e0(c,l,t,r),d.htmlRegion="visibleFirst"}),s}function o0(e){return e&&R.isValidElement(e)&&e.type===R.Fragment}const a0=(e,t,r)=>R.isValidElement(e)?R.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function fd(e,t){return a0(e,e,t)}const i0=e=>({animationDuration:e,animationFillMode:"both"}),s0=e=>({animationDuration:e,animationFillMode:"both"}),l0=(e,t,r,n,o=!1)=>{const a=o?"&":"";return{[`
|
|
130
|
-
${a}${e}-enter,
|
|
131
|
-
${a}${e}-appear
|
|
132
|
-
`]:Object.assign(Object.assign({},i0(n)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},s0(n)),{animationPlayState:"paused"}),[`
|
|
133
|
-
${a}${e}-enter${e}-enter-active,
|
|
134
|
-
${a}${e}-appear${e}-appear-active
|
|
135
|
-
`]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},c0=new _t("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),u0=new _t("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Zl=new _t("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Jl=new _t("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),d0=new _t("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),f0=new _t("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),h0=new _t("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),v0=new _t("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),g0=new _t("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),m0=new _t("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),p0=new _t("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),y0=new _t("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),b0={zoom:{inKeyframes:c0,outKeyframes:u0},"zoom-big":{inKeyframes:Zl,outKeyframes:Jl},"zoom-big-fast":{inKeyframes:Zl,outKeyframes:Jl},"zoom-left":{inKeyframes:h0,outKeyframes:v0},"zoom-right":{inKeyframes:g0,outKeyframes:m0},"zoom-up":{inKeyframes:d0,outKeyframes:f0},"zoom-down":{inKeyframes:p0,outKeyframes:y0}},x0=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:a}=b0[t];return[l0(n,o,a,e.motionDurationFast),{[`
|
|
136
|
-
${n}-enter,
|
|
137
|
-
${n}-appear
|
|
138
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},C0=e=>{const{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:i,zIndexPopup:s,controlHeight:l,boxShadowSecondary:c,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:m}=e,g=t(i).add(m).add(f).equal(),p=t(i).mul(2).add(m).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},as(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:n,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${r}-inner`]:{minWidth:p,minHeight:l,padding:`${Me(e.calc(u).div(2).equal())} ${Me(d)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:i,boxShadow:c,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:g},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(i,ud)}},[`${r}-content`]:{position:"relative"}}),Vg(e,(h,{darkColor:b})=>({[`&${r}-${h}`]:{[`${r}-inner`]:{backgroundColor:b},[`${r}-arrow`]:{"--antd-arrow-background-color":b}}}))),{"&-rtl":{direction:"rtl"}})},Jp(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},w0=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},dd({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Qp(rr(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),hd=(e,t=!0)=>Wn("Tooltip",n=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:i}=n,s=rr(n,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:i});return[C0(s),x0(n,"zoom-big-fast")]},w0,{resetStyle:!1,injectStyle:t})(e),S0=ko.map(e=>`${e}-inverse`);function E0(e,t=!0){return t?[].concat(se(S0),se(ko)).includes(e):ko.includes(e)}const ot=Math.round;function Ma(e,t){const r=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],n=r.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)n[o]=t(n[o]||0,r[o]||"",o);return r[3]?n[3]=r[3].includes("%")?n[3]/100:n[3]:n[3]=1,n}const ec=(e,t,r)=>r===0?e:e/100;function Sn(e,t){const r=t||255;return e>r?r:e<0?0:e}class Yo{constructor(t){_(this,"isValid",!0),_(this,"r",0),_(this,"g",0),_(this,"b",0),_(this,"a",1),_(this,"_h",void 0),_(this,"_s",void 0),_(this,"_l",void 0),_(this,"_v",void 0),_(this,"_max",void 0),_(this,"_min",void 0),_(this,"_brightness",void 0);function r(n){return n[0]in t&&n[1]in t&&n[2]in t}if(t)if(typeof t=="string"){let o=function(a){return n.startsWith(a)};const n=t.trim();/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):o("rgb")?this.fromRgbString(n):o("hsl")?this.fromHslString(n):(o("hsv")||o("hsb"))&&this.fromHsvString(n)}else if(t instanceof Yo)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(r("rgb"))this.r=Sn(t.r),this.g=Sn(t.g),this.b=Sn(t.b),this.a=typeof t.a=="number"?Sn(t.a,1):1;else if(r("hsl"))this.fromHsl(t);else if(r("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const r=this.toHsv();return r.h=t,this._c(r)}getLuminance(){function t(a){const i=a/255;return i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4)}const r=t(this.r),n=t(this.g),o=t(this.b);return .2126*r+.7152*n+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=ot(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:r,s:n,l:o,a:this.a})}lighten(t=10){const r=this.getHue(),n=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:r,s:n,l:o,a:this.a})}mix(t,r=50){const n=this._c(t),o=r/100,a=s=>(n[s]-this[s])*o+this[s],i={r:ot(a("r")),g:ot(a("g")),b:ot(a("b")),a:ot(a("a")*100)/100};return this._c(i)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const r=this._c(t),n=this.a+r.a*(1-this.a),o=a=>ot((this[a]*this.a+r[a]*r.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const r=(this.r||0).toString(16);t+=r.length===2?r:"0"+r;const n=(this.g||0).toString(16);t+=n.length===2?n:"0"+n;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=ot(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=ot(this.getSaturation()*100),n=ot(this.getLightness()*100);return this.a!==1?`hsla(${t},${r}%,${n}%,${this.a})`:`hsl(${t},${r}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,r,n){const o=this.clone();return o[t]=Sn(r,n),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const r=t.replace("#","");function n(o,a){return parseInt(r[o]+r[a||o],16)}r.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=r[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=r[6]?n(6,7)/255:1)}fromHsl({h:t,s:r,l:n,a:o}){if(this._h=t%360,this._s=r,this._l=n,this.a=typeof o=="number"?o:1,r<=0){const f=ot(n*255);this.r=f,this.g=f,this.b=f}let a=0,i=0,s=0;const l=t/60,c=(1-Math.abs(2*n-1))*r,u=c*(1-Math.abs(l%2-1));l>=0&&l<1?(a=c,i=u):l>=1&&l<2?(a=u,i=c):l>=2&&l<3?(i=c,s=u):l>=3&&l<4?(i=u,s=c):l>=4&&l<5?(a=u,s=c):l>=5&&l<6&&(a=c,s=u);const d=n-c/2;this.r=ot((a+d)*255),this.g=ot((i+d)*255),this.b=ot((s+d)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;const a=ot(n*255);if(this.r=a,this.g=a,this.b=a,r<=0)return;const i=t/60,s=Math.floor(i),l=i-s,c=ot(n*(1-r)*255),u=ot(n*(1-r*l)*255),d=ot(n*(1-r*(1-l))*255);switch(s){case 0:this.g=d,this.b=c;break;case 1:this.r=u,this.b=c;break;case 2:this.r=c,this.b=d;break;case 3:this.r=c,this.g=u;break;case 4:this.r=d,this.g=c;break;case 5:default:this.g=c,this.b=u;break}}fromHsvString(t){const r=Ma(t,ec);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=Ma(t,ec);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=Ma(t,(n,o)=>o.includes("%")?ot(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var R0=["b"],$0=["v"],Fa=function(t){return Math.round(Number(t||0))},O0=function(t){if(t instanceof Yo)return t;if(t&&ve(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,o=ft(r,R0);return M(M({},o),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},fr=(function(e){hr(r,e);var t=vr(r);function r(n){return at(this,r),t.call(this,O0(n))}return it(r,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=Fa(o.s*100),i=Fa(o.b*100),s=Fa(o.h),l=o.a,c="hsb(".concat(s,", ").concat(a,"%, ").concat(i,"%)"),u="hsba(".concat(s,", ").concat(a,"%, ").concat(i,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?c:u}},{key:"toHsb",value:function(){var o=this.toHsv(),a=o.v,i=ft(o,$0);return M(M({},i),{},{b:a,a:this.a})}}]),r})(Yo),j0="rc-color-picker",Br=function(t){return t instanceof fr?t:new fr(t)},_0=Br("#1677ff"),vd=function(t){var r=t.offset,n=t.targetRef,o=t.containerRef,a=t.color,i=t.type,s=o.current.getBoundingClientRect(),l=s.width,c=s.height,u=n.current.getBoundingClientRect(),d=u.width,f=u.height,m=d/2,g=f/2,p=(r.x+m)/l,h=1-(r.y+g)/c,b=a.toHsb(),y=p,S=(r.x+m)/l*360;if(i)switch(i){case"hue":return Br(M(M({},b),{},{h:S<=0?0:S}));case"alpha":return Br(M(M({},b),{},{a:y<=0?0:y}))}return Br({h:b.h,s:p<=0?0:p,b:h>=1?1:h,a:b.a})},gd=function(t,r){var n=t.toHsb();switch(r){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:n.s*100,y:(1-n.b)*100}}},P0=function(t){var r=t.color,n=t.prefixCls,o=t.className,a=t.style,i=t.onClick,s="".concat(n,"-color-block");return R.createElement("div",{className:le(s,o),style:a,onClick:i},R.createElement("div",{className:"".concat(s,"-inner"),style:{background:r}}))};function T0(e){var t="touches"in e?e.touches[0]:e,r=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,n=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-r,pageY:t.pageY-n}}function md(e){var t=e.targetRef,r=e.containerRef,n=e.direction,o=e.onDragChange,a=e.onDragChangeComplete,i=e.calculate,s=e.color,l=e.disabledDrag,c=R.useState({x:0,y:0}),u=Y(c,2),d=u[0],f=u[1],m=R.useRef(null),g=R.useRef(null);R.useEffect(function(){f(i())},[s]),R.useEffect(function(){return function(){document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",m.current),document.removeEventListener("touchend",g.current),m.current=null,g.current=null}},[]);var p=function($){var x=T0($),w=x.pageX,C=x.pageY,j=r.current.getBoundingClientRect(),T=j.x,F=j.y,k=j.width,L=j.height,N=t.current.getBoundingClientRect(),A=N.width,B=N.height,O=A/2,V=B/2,H=Math.max(0,Math.min(w-T,k))-O,q=Math.max(0,Math.min(C-F,L))-V,G={x:H,y:n==="x"?d.y:q};if(A===0&&B===0||A!==B)return!1;o?.(G)},h=function($){$.preventDefault(),p($)},b=function($){$.preventDefault(),document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",m.current),document.removeEventListener("touchend",g.current),m.current=null,g.current=null,a?.()},y=function($){document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",g.current),!l&&(p($),document.addEventListener("mousemove",h),document.addEventListener("mouseup",b),document.addEventListener("touchmove",h),document.addEventListener("touchend",b),m.current=h,g.current=b)};return[d,y]}var pd=function(t){var r=t.size,n=r===void 0?"default":r,o=t.color,a=t.prefixCls;return R.createElement("div",{className:le("".concat(a,"-handler"),_({},"".concat(a,"-handler-sm"),n==="small")),style:{backgroundColor:o}})},yd=function(t){var r=t.children,n=t.style,o=t.prefixCls;return R.createElement("div",{className:"".concat(o,"-palette"),style:M({position:"relative"},n)},r)},bd=R.forwardRef(function(e,t){var r=e.children,n=e.x,o=e.y;return R.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(n,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},r)}),A0=function(t){var r=t.color,n=t.onChange,o=t.prefixCls,a=t.onChangeComplete,i=t.disabled,s=R.useRef(),l=R.useRef(),c=R.useRef(r),u=vt(function(p){var h=vd({offset:p,targetRef:l,containerRef:s,color:r});c.current=h,n(h)}),d=md({color:r,containerRef:s,targetRef:l,calculate:function(){return gd(r)},onDragChange:u,onDragChangeComplete:function(){return a?.(c.current)},disabledDrag:i}),f=Y(d,2),m=f[0],g=f[1];return R.createElement("div",{ref:s,className:"".concat(o,"-select"),onMouseDown:g,onTouchStart:g},R.createElement(yd,{prefixCls:o},R.createElement(bd,{x:m.x,y:m.y,ref:l},R.createElement(pd,{color:r.toRgbString(),prefixCls:o})),R.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(r.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},M0=function(t,r){var n=Er(t,{value:r}),o=Y(n,2),a=o[0],i=o[1],s=R.useMemo(function(){return Br(a)},[a]);return[s,i]},F0=function(t){var r=t.colors,n=t.children,o=t.direction,a=o===void 0?"to right":o,i=t.type,s=t.prefixCls,l=R.useMemo(function(){return r.map(function(c,u){var d=Br(c);return i==="alpha"&&u===r.length-1&&(d=new fr(d.setA(1))),d.toRgbString()}).join(",")},[r,i]);return R.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(l,")")}},n)},N0=function(t){var r=t.prefixCls,n=t.colors,o=t.disabled,a=t.onChange,i=t.onChangeComplete,s=t.color,l=t.type,c=R.useRef(),u=R.useRef(),d=R.useRef(s),f=function(x){return l==="hue"?x.getHue():x.a*100},m=vt(function($){var x=vd({offset:$,targetRef:u,containerRef:c,color:s,type:l});d.current=x,a(f(x))}),g=md({color:s,targetRef:u,containerRef:c,calculate:function(){return gd(s,l)},onDragChange:m,onDragChangeComplete:function(){i(f(d.current))},direction:"x",disabledDrag:o}),p=Y(g,2),h=p[0],b=p[1],y=R.useMemo(function(){if(l==="hue"){var $=s.toHsb();$.s=1,$.b=1,$.a=1;var x=new fr($);return x}return s},[s,l]),S=R.useMemo(function(){return n.map(function($){return"".concat($.color," ").concat($.percent,"%")})},[n]);return R.createElement("div",{ref:c,className:le("".concat(r,"-slider"),"".concat(r,"-slider-").concat(l)),onMouseDown:b,onTouchStart:b},R.createElement(yd,{prefixCls:r},R.createElement(bd,{x:h.x,y:h.y,ref:u},R.createElement(pd,{size:"small",color:y.toHexString(),prefixCls:r})),R.createElement(F0,{colors:S,type:l,prefixCls:r})))};function k0(e){return v.useMemo(function(){var t=e||{},r=t.slider;return[r||N0]},[e])}var I0=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],V0=R.forwardRef(function(e,t){var r=e.value,n=e.defaultValue,o=e.prefixCls,a=o===void 0?j0:o,i=e.onChange,s=e.onChangeComplete,l=e.className,c=e.style,u=e.panelRender,d=e.disabledAlpha,f=d===void 0?!1:d,m=e.disabled,g=m===void 0?!1:m,p=e.components,h=k0(p),b=Y(h,1),y=b[0],S=M0(n||_0,r),$=Y(S,2),x=$[0],w=$[1],C=R.useMemo(function(){return x.setA(1).toRgbString()},[x]),j=function(q,G){r||w(q),i?.(q,G)},T=function(q){return new fr(x.setHue(q))},F=function(q){return new fr(x.setA(q/100))},k=function(q){j(T(q),{type:"hue",value:q})},L=function(q){j(F(q),{type:"alpha",value:q})},N=function(q){s&&s(T(q))},A=function(q){s&&s(F(q))},B=le("".concat(a,"-panel"),l,_({},"".concat(a,"-panel-disabled"),g)),O={prefixCls:a,disabled:g,color:x},V=R.createElement(R.Fragment,null,R.createElement(A0,Ie({onChange:j},O,{onChangeComplete:s})),R.createElement("div",{className:"".concat(a,"-slider-container")},R.createElement("div",{className:le("".concat(a,"-slider-group"),_({},"".concat(a,"-slider-group-disabled-alpha"),f))},R.createElement(y,Ie({},O,{type:"hue",colors:I0,min:0,max:359,value:x.getHue(),onChange:k,onChangeComplete:N})),!f&&R.createElement(y,Ie({},O,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:C}],min:0,max:100,value:x.a*100,onChange:L,onChangeComplete:A}))),R.createElement(P0,{color:x.toRgbString(),prefixCls:a})));return R.createElement("div",{className:B,style:c,ref:t},typeof u=="function"?u(V):V)});process.env.NODE_ENV!=="production"&&(V0.displayName="ColorPicker");const D0=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",L0=(e,t)=>e?D0(e,t):"";let tc=(function(){function e(t){at(this,e);var r;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(r=t.colors)===null||r===void 0?void 0:r.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:o,percent:a})=>({color:new e(o),percent:a})),this.metaColor=new fr(this.colors[0].color.metaColor)):this.metaColor=new fr(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return it(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return L0(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:r}=this;return r?`linear-gradient(90deg, ${r.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(r){return!r||this.isGradient()!==r.isGradient()?!1:this.isGradient()?this.colors.length===r.colors.length&&this.colors.every((n,o)=>{const a=r.colors[o];return n.percent===a.percent&&n.color.equals(a.color)}):this.toHexString()===r.toHexString()}}])})();const H0=e=>e instanceof tc?e:new tc(e);function xd(e,t){const r=E0(t),n=le({[`${e}-${t}`]:t&&r}),o={},a={},i=H0(t).toRgb(),l=(.299*i.r+.587*i.g+.114*i.b)/255<.5?"#FFF":"#000";return t&&!r&&(o.background=t,o["--ant-tooltip-color"]=l,a["--antd-arrow-background-color"]=t),{className:n,overlayStyle:o,arrowStyle:a}}const z0=e=>{const{prefixCls:t,className:r,placement:n="top",title:o,color:a,overlayInnerStyle:i}=e,{getPrefixCls:s}=v.useContext(Ut),l=s("tooltip",t),[c,u,d]=hd(l),f=xd(l,a),m=f.arrowStyle,g=Object.assign(Object.assign({},i),f.overlayStyle),p=le(u,d,l,`${l}-pure`,`${l}-placement-${n}`,r,f.className);return c(v.createElement("div",{className:p,style:m},v.createElement("div",{className:`${l}-arrow`}),v.createElement(qu,Object.assign({},e,{className:u,prefixCls:l,overlayInnerStyle:g}),o)))};var B0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const W0=v.forwardRef((e,t)=>{var r,n;const{prefixCls:o,openClassName:a,getTooltipContainer:i,color:s,overlayInnerStyle:l,children:c,afterOpenChange:u,afterVisibleChange:d,destroyTooltipOnHide:f,destroyOnHidden:m,arrow:g=!0,title:p,overlay:h,builtinPlacements:b,arrowPointAtCenter:y=!1,autoAdjustOverflow:S=!0,motion:$,getPopupContainer:x,placement:w="top",mouseEnterDelay:C=.1,mouseLeaveDelay:j=.1,overlayStyle:T,rootClassName:F,overlayClassName:k,styles:L,classNames:N}=e,A=B0(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),B=!!g,[,O]=nn(),{getPopupContainer:V,getPrefixCls:H,direction:q,className:G,style:ee,classNames:E,styles:I}=Ko("tooltip"),D=qt("Tooltip"),W=v.useRef(null),z=()=>{var Te;(Te=W.current)===null||Te===void 0||Te.forceAlign()};v.useImperativeHandle(t,()=>{var Te,Oe;return{forceAlign:z,forcePopupAlign:()=>{D.deprecated(!1,"forcePopupAlign","forceAlign"),z()},nativeElement:(Te=W.current)===null||Te===void 0?void 0:Te.nativeElement,popupElement:(Oe=W.current)===null||Oe===void 0?void 0:Oe.popupElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["destroyTooltipOnHide","destroyOnHidden"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"],["overlayStyle","styles={{ root: {} }}"],["overlayInnerStyle","styles={{ body: {} }}"],["overlayClassName",'classNames={{ root: "" }}']].forEach(([Te,Oe])=>{D.deprecated(!(Te in e),Te,Oe)}),process.env.NODE_ENV!=="production"&&D(!f||typeof f=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&D(!g||typeof g=="boolean"||!("arrowPointAtCenter"in g),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[K,Q]=Er(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),X=!p&&!h&&p!==0,te=Te=>{var Oe,Se;Q(X?!1:Te),X||((Oe=e.onOpenChange)===null||Oe===void 0||Oe.call(e,Te),(Se=e.onVisibleChange)===null||Se===void 0||Se.call(e,Te))},oe=v.useMemo(()=>{var Te,Oe;let Se=y;return typeof g=="object"&&(Se=(Oe=(Te=g.pointAtCenter)!==null&&Te!==void 0?Te:g.arrowPointAtCenter)!==null&&Oe!==void 0?Oe:y),b||n0({arrowPointAtCenter:Se,autoAdjustOverflow:S,arrowWidth:B?O.sizePopupArrow:0,borderRadius:O.borderRadius,offset:O.marginXXS})},[y,g,b,O]),ae=v.useMemo(()=>p===0?p:h||p||"",[h,p]),me=v.createElement(Vi,{space:!0},typeof ae=="function"?ae():ae),U=H("tooltip",o),ce=H(),re=e["data-popover-inject"];let ue=K;!("open"in e)&&!("visible"in e)&&X&&(ue=!1);const ye=v.isValidElement(c)&&!o0(c)?c:v.createElement("span",null,c),de=ye.props,$e=!de.className||typeof de.className=="string"?le(de.className,a||`${U}-open`):de.className,[be,Ee,ge]=hd(U,!re),J=xd(U,s),Ce=J.arrowStyle,Re=le(k,{[`${U}-rtl`]:q==="rtl"},J.className,F,Ee,ge,G,E.root,N?.root),Qe=le(E.body,N?.body),[ke,Ve]=Yp("Tooltip",A.zIndex),tt=v.createElement(Wm,Object.assign({},A,{zIndex:ke,showArrow:B,placement:w,mouseEnterDelay:C,mouseLeaveDelay:j,prefixCls:U,classNames:{root:Re,body:Qe},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ce),I.root),ee),T),L?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},I.body),l),L?.body),J.overlayStyle)},getTooltipContainer:x||i||V,ref:W,builtinPlacements:oe,overlay:me,visible:ue,onVisibleChange:te,afterVisibleChange:u??d,arrowContent:v.createElement("span",{className:`${U}-arrow-content`}),motion:{motionName:Xp(ce,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:m??!!f}),ue?fd(ye,{className:$e}):ye);return be(v.createElement(ds.Provider,{value:Ve},tt))}),Yn=W0;process.env.NODE_ENV!=="production"&&(Yn.displayName="Tooltip");Yn._InternalPanelDoNotUseOrYouWillBeFired=z0;var q0={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},U0=function(t,r){return v.createElement(tr,Ie({},t,{ref:r,icon:q0}))},Cd=v.forwardRef(U0);process.env.NODE_ENV!=="production"&&(Cd.displayName="EnterOutlined");var rc={ENTER:13,ESC:27};function K0(e){return!!(e.addonBefore||e.addonAfter)}function G0(e){return!!(e.prefix||e.suffix||e.allowClear)}function nc(e,t,r){var n=t.cloneNode(!0),o=Object.create(e,{target:{value:n},currentTarget:{value:n}});return n.value=r,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd),n.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Do(e,t,r,n){if(r){var o=t;if(t.type==="click"){o=nc(t,e,""),r(o);return}if(e.type!=="file"&&n!==void 0){o=nc(t,e,n),r(o);return}r(o)}}function wd(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var Sd=R.forwardRef(function(e,t){var r,n,o,a=e.inputElement,i=e.children,s=e.prefixCls,l=e.prefix,c=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,m=e.style,g=e.disabled,p=e.readOnly,h=e.focused,b=e.triggerFocus,y=e.allowClear,S=e.value,$=e.handleReset,x=e.hidden,w=e.classes,C=e.classNames,j=e.dataAttrs,T=e.styles,F=e.components,k=e.onClear,L=i??a,N=F?.affixWrapper||"span",A=F?.groupWrapper||"span",B=F?.wrapper||"span",O=F?.groupAddon||"span",V=R.useRef(null),H=function(ce){var re;(re=V.current)!==null&&re!==void 0&&re.contains(ce.target)&&b?.()},q=G0(e),G=R.cloneElement(L,{value:S,className:le((r=L.props)===null||r===void 0?void 0:r.className,!q&&C?.variant)||null}),ee=R.useRef(null);if(R.useImperativeHandle(t,function(){return{nativeElement:ee.current||V.current}}),q){var E=null;if(y){var I=!g&&!p&&S,D="".concat(s,"-clear-icon"),W=ve(y)==="object"&&y!==null&&y!==void 0&&y.clearIcon?y.clearIcon:"✖";E=R.createElement("button",{type:"button",tabIndex:-1,onClick:function(ce){$?.(ce),k?.()},onMouseDown:function(ce){return ce.preventDefault()},className:le(D,_(_({},"".concat(D,"-hidden"),!I),"".concat(D,"-has-suffix"),!!c))},W)}var z="".concat(s,"-affix-wrapper"),K=le(z,_(_(_(_(_({},"".concat(s,"-disabled"),g),"".concat(z,"-disabled"),g),"".concat(z,"-focused"),h),"".concat(z,"-readonly"),p),"".concat(z,"-input-with-clear-btn"),c&&y&&S),w?.affixWrapper,C?.affixWrapper,C?.variant),Q=(c||y)&&R.createElement("span",{className:le("".concat(s,"-suffix"),C?.suffix),style:T?.suffix},E,c);G=R.createElement(N,Ie({className:K,style:T?.affixWrapper,onClick:H},j?.affixWrapper,{ref:V}),l&&R.createElement("span",{className:le("".concat(s,"-prefix"),C?.prefix),style:T?.prefix},l),G,Q)}if(K0(e)){var X="".concat(s,"-group"),te="".concat(X,"-addon"),oe="".concat(X,"-wrapper"),ae=le("".concat(s,"-wrapper"),X,w?.wrapper,C?.wrapper),me=le(oe,_({},"".concat(oe,"-disabled"),g),w?.group,C?.groupWrapper);G=R.createElement(A,{className:me,ref:ee},R.createElement(B,{className:ae},u&&R.createElement(O,{className:te},u),G,d&&R.createElement(O,{className:te},d)))}return R.cloneElement(G,{className:le((n=G.props)===null||n===void 0?void 0:n.className,f)||null,style:M(M({},(o=G.props)===null||o===void 0?void 0:o.style),m),hidden:x})}),Y0=["show"];function Ed(e,t){return v.useMemo(function(){var r={};t&&(r.show=ve(t)==="object"&&t.formatter?t.formatter:!!t),r=M(M({},r),e);var n=r,o=n.show,a=ft(n,Y0);return M(M({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(i){return i.length}})},[e,t])}var X0=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Q0=R.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,o=e.onFocus,a=e.onBlur,i=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,c=e.prefixCls,u=c===void 0?"rc-input":c,d=e.disabled,f=e.htmlSize,m=e.className,g=e.maxLength,p=e.suffix,h=e.showCount,b=e.count,y=e.type,S=y===void 0?"text":y,$=e.classes,x=e.classNames,w=e.styles,C=e.onCompositionStart,j=e.onCompositionEnd,T=ft(e,X0),F=R.useState(!1),k=Y(F,2),L=k[0],N=k[1],A=R.useRef(!1),B=R.useRef(!1),O=R.useRef(null),V=R.useRef(null),H=function(J){O.current&&wd(O.current,J)},q=Er(e.defaultValue,{value:e.value}),G=Y(q,2),ee=G[0],E=G[1],I=ee==null?"":String(ee),D=R.useState(null),W=Y(D,2),z=W[0],K=W[1],Q=Ed(b,h),X=Q.max||g,te=Q.strategy(I),oe=!!X&&te>X;R.useImperativeHandle(t,function(){var ge;return{focus:H,blur:function(){var Ce;(Ce=O.current)===null||Ce===void 0||Ce.blur()},setSelectionRange:function(Ce,Re,Qe){var ke;(ke=O.current)===null||ke===void 0||ke.setSelectionRange(Ce,Re,Qe)},select:function(){var Ce;(Ce=O.current)===null||Ce===void 0||Ce.select()},input:O.current,nativeElement:((ge=V.current)===null||ge===void 0?void 0:ge.nativeElement)||O.current}}),R.useEffect(function(){B.current&&(B.current=!1),N(function(ge){return ge&&d?!1:ge})},[d]);var ae=function(J,Ce,Re){var Qe=Ce;if(!A.current&&Q.exceedFormatter&&Q.max&&Q.strategy(Ce)>Q.max){if(Qe=Q.exceedFormatter(Ce,{max:Q.max}),Ce!==Qe){var ke,Ve;K([((ke=O.current)===null||ke===void 0?void 0:ke.selectionStart)||0,((Ve=O.current)===null||Ve===void 0?void 0:Ve.selectionEnd)||0])}}else if(Re.source==="compositionEnd")return;E(Qe),O.current&&Do(O.current,J,n,Qe)};R.useEffect(function(){if(z){var ge;(ge=O.current)===null||ge===void 0||ge.setSelectionRange.apply(ge,se(z))}},[z]);var me=function(J){ae(J,J.target.value,{source:"change"})},U=function(J){A.current=!1,ae(J,J.currentTarget.value,{source:"compositionEnd"}),j?.(J)},ce=function(J){i&&J.key==="Enter"&&!B.current&&(B.current=!0,i(J)),s?.(J)},re=function(J){J.key==="Enter"&&(B.current=!1),l?.(J)},ue=function(J){N(!0),o?.(J)},ye=function(J){B.current&&(B.current=!1),N(!1),a?.(J)},de=function(J){E(""),H(),O.current&&Do(O.current,J,n)},$e=oe&&"".concat(u,"-out-of-range"),be=function(){var J=Gc(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return R.createElement("input",Ie({autoComplete:r},J,{onChange:me,onFocus:ue,onBlur:ye,onKeyDown:ce,onKeyUp:re,className:le(u,_({},"".concat(u,"-disabled"),d),x?.input),style:w?.input,ref:O,size:f,type:S,onCompositionStart:function(Re){A.current=!0,C?.(Re)},onCompositionEnd:U}))},Ee=function(){var J=Number(X)>0;if(p||Q.show){var Ce=Q.showFormatter?Q.showFormatter({value:I,count:te,maxLength:X}):"".concat(te).concat(J?" / ".concat(X):"");return R.createElement(R.Fragment,null,Q.show&&R.createElement("span",{className:le("".concat(u,"-show-count-suffix"),_({},"".concat(u,"-show-count-has-suffix"),!!p),x?.count),style:M({},w?.count)},Ce),p)}return null};return R.createElement(Sd,Ie({},T,{prefixCls:u,className:le(m,$e),handleReset:de,value:I,focused:L,triggerFocus:H,suffix:Ee(),disabled:d,classes:$,classNames:x,styles:w,ref:V}),be())}),Z0=`
|
|
139
|
-
min-height:0 !important;
|
|
140
|
-
max-height:none !important;
|
|
141
|
-
height:0 !important;
|
|
142
|
-
visibility:hidden !important;
|
|
143
|
-
overflow:hidden !important;
|
|
144
|
-
position:absolute !important;
|
|
145
|
-
z-index:-1000 !important;
|
|
146
|
-
top:0 !important;
|
|
147
|
-
right:0 !important;
|
|
148
|
-
pointer-events: none !important;
|
|
149
|
-
`,J0=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Na={},bt;function ey(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Na[r])return Na[r];var n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),a=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),i=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=J0.map(function(c){return"".concat(c,":").concat(n.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:a,borderSize:i,boxSizing:o};return t&&r&&(Na[r]=l),l}function ty(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;bt||(bt=document.createElement("textarea"),bt.setAttribute("tab-index","-1"),bt.setAttribute("aria-hidden","true"),bt.setAttribute("name","hiddenTextarea"),document.body.appendChild(bt)),e.getAttribute("wrap")?bt.setAttribute("wrap",e.getAttribute("wrap")):bt.removeAttribute("wrap");var o=ey(e,t),a=o.paddingSize,i=o.borderSize,s=o.boxSizing,l=o.sizingStyle;bt.setAttribute("style","".concat(l,";").concat(Z0)),bt.value=e.value||e.placeholder||"";var c=void 0,u=void 0,d,f=bt.scrollHeight;if(s==="border-box"?f+=i:s==="content-box"&&(f-=a),r!==null||n!==null){bt.value=" ";var m=bt.scrollHeight-a;r!==null&&(c=m*r,s==="border-box"&&(c=c+a+i),f=Math.max(c,f)),n!==null&&(u=m*n,s==="border-box"&&(u=u+a+i),d=f>u?"":"hidden",f=Math.min(u,f))}var g={height:f,overflowY:d,resize:"none"};return c&&(g.minHeight=c),u&&(g.maxHeight=u),g}var ry=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ka=0,Ia=1,Va=2,ny=v.forwardRef(function(e,t){var r=e,n=r.prefixCls,o=r.defaultValue,a=r.value,i=r.autoSize,s=r.onResize,l=r.className,c=r.style,u=r.disabled,d=r.onChange,f=r.onInternalAutoSize,m=ft(r,ry),g=Er(o,{value:a,postState:function(D){return D??""}}),p=Y(g,2),h=p[0],b=p[1],y=function(D){b(D.target.value),d?.(D)},S=v.useRef();v.useImperativeHandle(t,function(){return{textArea:S.current}});var $=v.useMemo(function(){return i&&ve(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),x=Y($,2),w=x[0],C=x[1],j=!!i,T=v.useState(Va),F=Y(T,2),k=F[0],L=F[1],N=v.useState(),A=Y(N,2),B=A[0],O=A[1],V=function(){L(ka),process.env.NODE_ENV==="test"&&f?.()};Be(function(){j&&V()},[a,w,C,j]),Be(function(){if(k===ka)L(Ia);else if(k===Ia){var I=ty(S.current,!1,w,C);L(Va),O(I)}},[k]);var H=v.useRef(),q=function(){Zr.cancel(H.current)},G=function(D){k===Va&&(s?.(D),i&&(q(),H.current=Zr(function(){V()})))};v.useEffect(function(){return q},[]);var ee=j?B:null,E=M(M({},c),ee);return(k===ka||k===Ia)&&(E.overflowY="hidden",E.overflowX="hidden"),v.createElement(tn,{onResize:G,disabled:!(i||s)},v.createElement("textarea",Ie({},m,{ref:S,style:E,className:le(n,l,_({},"".concat(n,"-disabled"),u)),disabled:u,value:h,onChange:y})))}),oy=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],ay=R.forwardRef(function(e,t){var r,n=e.defaultValue,o=e.value,a=e.onFocus,i=e.onBlur,s=e.onChange,l=e.allowClear,c=e.maxLength,u=e.onCompositionStart,d=e.onCompositionEnd,f=e.suffix,m=e.prefixCls,g=m===void 0?"rc-textarea":m,p=e.showCount,h=e.count,b=e.className,y=e.style,S=e.disabled,$=e.hidden,x=e.classNames,w=e.styles,C=e.onResize,j=e.onClear,T=e.onPressEnter,F=e.readOnly,k=e.autoSize,L=e.onKeyDown,N=ft(e,oy),A=Er(n,{value:o,defaultValue:n}),B=Y(A,2),O=B[0],V=B[1],H=O==null?"":String(O),q=R.useState(!1),G=Y(q,2),ee=G[0],E=G[1],I=R.useRef(!1),D=R.useState(null),W=Y(D,2),z=W[0],K=W[1],Q=R.useRef(null),X=R.useRef(null),te=function(){var pe;return(pe=X.current)===null||pe===void 0?void 0:pe.textArea},oe=function(){te().focus()};R.useImperativeHandle(t,function(){var Se;return{resizableTextArea:X.current,focus:oe,blur:function(){te().blur()},nativeElement:((Se=Q.current)===null||Se===void 0?void 0:Se.nativeElement)||te()}}),R.useEffect(function(){E(function(Se){return!S&&Se})},[S]);var ae=R.useState(null),me=Y(ae,2),U=me[0],ce=me[1];R.useEffect(function(){if(U){var Se;(Se=te()).setSelectionRange.apply(Se,se(U))}},[U]);var re=Ed(h,p),ue=(r=re.max)!==null&&r!==void 0?r:c,ye=Number(ue)>0,de=re.strategy(H),$e=!!ue&&de>ue,be=function(pe,De){var ie=De;!I.current&&re.exceedFormatter&&re.max&&re.strategy(De)>re.max&&(ie=re.exceedFormatter(De,{max:re.max}),De!==ie&&ce([te().selectionStart||0,te().selectionEnd||0])),V(ie),Do(pe.currentTarget,pe,s,ie)},Ee=function(pe){I.current=!0,u?.(pe)},ge=function(pe){I.current=!1,be(pe,pe.currentTarget.value),d?.(pe)},J=function(pe){be(pe,pe.target.value)},Ce=function(pe){pe.key==="Enter"&&T&&T(pe),L?.(pe)},Re=function(pe){E(!0),a?.(pe)},Qe=function(pe){E(!1),i?.(pe)},ke=function(pe){V(""),oe(),Do(te(),pe,s)},Ve=f,tt;re.show&&(re.showFormatter?tt=re.showFormatter({value:H,count:de,maxLength:ue}):tt="".concat(de).concat(ye?" / ".concat(ue):""),Ve=R.createElement(R.Fragment,null,Ve,R.createElement("span",{className:le("".concat(g,"-data-count"),x?.count),style:w?.count},tt)));var Te=function(pe){var De;C?.(pe),(De=te())!==null&&De!==void 0&&De.style.height&&K(!0)},Oe=!k&&!p&&!l;return R.createElement(Sd,{ref:Q,value:H,allowClear:l,handleReset:ke,suffix:Ve,prefixCls:g,classNames:M(M({},x),{},{affixWrapper:le(x?.affixWrapper,_(_({},"".concat(g,"-show-count"),p),"".concat(g,"-textarea-allow-clear"),l))}),disabled:S,focused:ee,className:le(b,$e&&"".concat(g,"-out-of-range")),style:M(M({},y),z&&!Oe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof tt=="string"?tt:void 0}},hidden:$,readOnly:F,onClear:j},R.createElement(ny,Ie({},N,{autoSize:k,maxLength:c,onKeyDown:Ce,onChange:J,onFocus:Re,onBlur:Qe,onCompositionStart:Ee,onCompositionEnd:ge,className:le(x?.textarea),style:M(M({},w?.textarea),{},{resize:y?.resize}),disabled:S,prefixCls:g,onResize:Te,ref:X,readOnly:F})))}),iy={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},sy=function(t,r){return v.createElement(tr,Ie({},t,{ref:r,icon:iy}))},Rd=v.forwardRef(sy);process.env.NODE_ENV!=="production"&&(Rd.displayName="CloseCircleFilled");const $d=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:R.createElement(Rd,null)}),t};function Di(e,t,r){return le({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const Od=(e,t)=>t||e,jd=e=>{const[,,,,t]=nn();return t?`${e}-css-var`:""},_d=(e,t,r=void 0)=>{var n,o;const{variant:a,[e]:i}=v.useContext(Ut),s=v.useContext(zp),l=i?.variant;let c;typeof t<"u"?c=t:r===!1?c="borderless":c=(o=(n=s??l)!==null&&n!==void 0?n:a)!==null&&o!==void 0?o:"outlined";const u=lg.includes(c);return[c,u]};function ly(e,t){const r=R.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var o,a,i,s;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return R.useEffect(()=>(n(),()=>r.current.forEach(o=>{o&&clearTimeout(o)})),[]),n}function cy(e,t,r,n){const{focusElCls:o,focus:a,borderElCls:i}=r,s=i?"> *":"",l=["hover",a?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function uy(e,t,r){const{borderElCls:n}=r,o=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function dy(e,t={focus:!0}){const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},cy(e,n,t,r)),uy(r,n,t))}}function fs(e){return rr(e,{inputAffixPadding:e.paddingXXS})}const hs=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightSM:a,controlHeightLG:i,fontSizeLG:s,lineHeightLG:l,paddingSM:c,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:m,colorPrimary:g,controlOutlineWidth:p,controlOutline:h,colorErrorOutline:b,colorWarningOutline:y,colorBgContainer:S,inputFontSize:$,inputFontSizeLG:x,inputFontSizeSM:w}=e,C=$||r,j=w||C,T=x||s,F=Math.round((t-C*n)/2*10)/10-o,k=Math.round((a-j*n)/2*10)/10-o,L=Math.ceil((i-T*l)/2*10)/10-o;return{paddingBlock:Math.max(F,0),paddingBlockSM:Math.max(k,0),paddingBlockLG:Math.max(L,0),paddingInline:c-o,paddingInlineSM:u-o,paddingInlineLG:d-o,addonBg:f,activeBorderColor:g,hoverBorderColor:m,activeShadow:`0 0 0 ${p}px ${h}`,errorActiveShadow:`0 0 0 ${p}px ${b}`,warningActiveShadow:`0 0 0 ${p}px ${y}`,hoverBg:S,activeBg:S,inputFontSize:C,inputFontSizeLG:T,inputFontSizeSM:j}},fy=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),vs=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},fy(rr(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Pd=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),oc=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Pd(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),hy=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Pd(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},vs(e))}),oc(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),oc(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),ac=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),vy=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},ac(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),ac(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},vs(e))}})}),gy=(e,t)=>{const{componentCls:r}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${r}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${r}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${r}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Td=(e,t)=>{var r;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(r=t?.inputColor)!==null&&r!==void 0?r:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},ic=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Td(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),my=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Td(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},vs(e))}),ic(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),ic(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),sc=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),py=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},sc(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),sc(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Me(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Ad=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Me(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),lc=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Ad(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),yy=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ad(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),lc(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),lc(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),by=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Md=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:o}=e;return{padding:`${Me(t)} ${Me(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},Fd=e=>({padding:`${Me(e.paddingBlockSM)} ${Me(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Nd=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Me(e.paddingBlock)} ${Me(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},by(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Md(e)),"&-sm":Object.assign({},Fd(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),xy=e=>{const{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Md(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Fd(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Me(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${Me(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Me(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${r}-select-single:not(${r}-select-customize-input):not(${r}-pagination-size-changer)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${Me(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${Me(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Mg()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
150
|
-
& > ${t}-affix-wrapper,
|
|
151
|
-
& > ${t}-number-affix-wrapper,
|
|
152
|
-
& > ${r}-picker-range
|
|
153
|
-
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${r}-select > ${r}-select-selector,
|
|
154
|
-
& > ${r}-select-auto-complete ${t},
|
|
155
|
-
& > ${r}-cascader-picker ${t},
|
|
156
|
-
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
157
|
-
& > ${r}-select:first-child > ${r}-select-selector,
|
|
158
|
-
& > ${r}-select-auto-complete:first-child ${t},
|
|
159
|
-
& > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
160
|
-
& > ${r}-select:last-child > ${r}-select-selector,
|
|
161
|
-
& > ${r}-cascader-picker:last-child ${t},
|
|
162
|
-
& > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},Cy=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:o}=e,i=o(r).sub(o(n).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},as(e)),Nd(e)),hy(e)),my(e)),gy(e)),yy(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},wy=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Me(e.inputAffixPadding)}`}}}},Sy=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:o,colorIcon:a,colorIconHover:i,iconCls:s}=e,l=`${t}-affix-wrapper`,c=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},Nd(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),wy(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),[`${t}-underlined`]:{borderRadius:0},[c]:{[`${s}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},Ey=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},as(e)),xy(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:r,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:n}}},vy(e)),py(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},Ry=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${n}-button:not(${r}-btn-color-primary):not(${r}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${n}-button:not(${r}-btn-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{inset:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${n}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
|
|
163
|
-
> ${t},
|
|
164
|
-
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},$y=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},kd=Wn(["Input","Shared"],e=>{const t=rr(e,fs(e));return[Cy(t),Sy(t)]},hs,{resetFont:!1}),Oy=Wn(["Input","Component"],e=>{const t=rr(e,fs(e));return[Ey(t),Ry(t),$y(t),dy(t)]},hs,{resetFont:!1});function jy(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var _y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Py=R.forwardRef((e,t)=>{const{prefixCls:r,bordered:n=!0,status:o,size:a,disabled:i,onBlur:s,onFocus:l,suffix:c,allowClear:u,addonAfter:d,addonBefore:f,className:m,style:g,styles:p,rootClassName:h,onChange:b,classNames:y,variant:S}=e,$=_y(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:de}=qt("Input");de(!("bordered"in e),"bordered","variant")}const{getPrefixCls:x,direction:w,allowClear:C,autoComplete:j,className:T,style:F,classNames:k,styles:L}=Ko("input"),N=x("input",r),A=R.useRef(null),B=jd(N),[O,V,H]=kd(N,h),[q]=Oy(N,B),{compactSize:G,compactItemClassnames:ee}=ld(N,w),E=id(de=>{var $e;return($e=a??G)!==null&&$e!==void 0?$e:de}),I=R.useContext(Vn),D=i??I,{status:W,hasFeedback:z,feedbackIcon:K}=R.useContext(Ln),Q=Od(W,o),X=jy(e)||!!z,te=R.useRef(X);if(process.env.NODE_ENV!=="production"){const de=qt("Input");R.useEffect(()=>{var $e;X&&!te.current&&process.env.NODE_ENV!=="production"&&de(document.activeElement===(($e=A.current)===null||$e===void 0?void 0:$e.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),te.current=X},[X])}const oe=ly(A),ae=de=>{oe(),s?.(de)},me=de=>{oe(),l?.(de)},U=de=>{oe(),b?.(de)},ce=(z||c)&&R.createElement(R.Fragment,null,c,z&&K),re=$d(u??C),[ue,ye]=_d("input",S,n);return O(q(R.createElement(Q0,Object.assign({ref:Hn(t,A),prefixCls:N,autoComplete:j},$,{disabled:D,onBlur:ae,onFocus:me,style:Object.assign(Object.assign({},F),g),styles:Object.assign(Object.assign({},L),p),suffix:ce,allowClear:re,className:le(m,h,H,B,ee,T),onChange:U,addonBefore:f&&R.createElement(Vi,{form:!0,space:!0},f),addonAfter:d&&R.createElement(Vi,{form:!0,space:!0},d),classNames:Object.assign(Object.assign(Object.assign({},y),k),{input:le({[`${N}-sm`]:E==="small",[`${N}-lg`]:E==="large",[`${N}-rtl`]:w==="rtl"},y?.input,k.input,V),variant:le({[`${N}-${ue}`]:ye},Di(N,Q)),affixWrapper:le({[`${N}-affix-wrapper-sm`]:E==="small",[`${N}-affix-wrapper-lg`]:E==="large",[`${N}-affix-wrapper-rtl`]:w==="rtl"},V),wrapper:le({[`${N}-group-rtl`]:w==="rtl"},V),groupWrapper:le({[`${N}-group-wrapper-sm`]:E==="small",[`${N}-group-wrapper-lg`]:E==="large",[`${N}-group-wrapper-rtl`]:w==="rtl",[`${N}-group-wrapper-${ue}`]:ye},Di(`${N}-group-wrapper`,Q,z),V)})}))))});process.env.NODE_ENV!=="production"&&(Py.displayName="Input");const Ty=e=>{const{componentCls:t,paddingLG:r}=e,n=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[n]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
165
|
-
&-allow-clear > ${t},
|
|
166
|
-
&-affix-wrapper${n}-has-feedback ${t}
|
|
167
|
-
`]:{paddingInlineEnd:r},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${n}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Ay=Wn(["Input","TextArea"],e=>{const t=rr(e,fs(e));return Ty(t)},hs,{resetFont:!1});var My=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Fy=R.forwardRef((e,t)=>{var r;const{prefixCls:n,bordered:o=!0,size:a,disabled:i,status:s,allowClear:l,classNames:c,rootClassName:u,className:d,style:f,styles:m,variant:g,showCount:p,onMouseDown:h,onResize:b}=e,y=My(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);if(process.env.NODE_ENV!=="production"){const{deprecated:re}=qt("TextArea");re(!("bordered"in e),"bordered","variant")}const{getPrefixCls:S,direction:$,allowClear:x,autoComplete:w,className:C,style:j,classNames:T,styles:F}=Ko("textArea"),k=v.useContext(Vn),L=i??k,{status:N,hasFeedback:A,feedbackIcon:B}=v.useContext(Ln),O=Od(N,s),V=v.useRef(null);v.useImperativeHandle(t,()=>{var re;return{resizableTextArea:(re=V.current)===null||re===void 0?void 0:re.resizableTextArea,focus:ue=>{var ye,de;wd((de=(ye=V.current)===null||ye===void 0?void 0:ye.resizableTextArea)===null||de===void 0?void 0:de.textArea,ue)},blur:()=>{var ue;return(ue=V.current)===null||ue===void 0?void 0:ue.blur()}}});const H=S("input",n),q=jd(H),[G,ee,E]=kd(H,u),[I]=Ay(H,q),{compactSize:D,compactItemClassnames:W}=ld(H,$),z=id(re=>{var ue;return(ue=a??D)!==null&&ue!==void 0?ue:re}),[K,Q]=_d("textArea",g,o),X=$d(l??x),[te,oe]=v.useState(!1),[ae,me]=v.useState(!1),U=re=>{oe(!0),h?.(re);const ue=()=>{oe(!1),document.removeEventListener("mouseup",ue)};document.addEventListener("mouseup",ue)},ce=re=>{var ue,ye;if(b?.(re),te&&typeof getComputedStyle=="function"){const de=(ye=(ue=V.current)===null||ue===void 0?void 0:ue.nativeElement)===null||ye===void 0?void 0:ye.querySelector("textarea");de&&getComputedStyle(de).resize==="both"&&me(!0)}};return G(I(v.createElement(ay,Object.assign({autoComplete:w},y,{style:Object.assign(Object.assign({},j),f),styles:Object.assign(Object.assign({},F),m),disabled:L,allowClear:X,className:le(E,q,d,u,W,C,ae&&`${H}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},c),T),{textarea:le({[`${H}-sm`]:z==="small",[`${H}-lg`]:z==="large"},ee,c?.textarea,T.textarea,te&&`${H}-mouse-active`),variant:le({[`${H}-${K}`]:Q},Di(H,O)),affixWrapper:le(`${H}-textarea-affix-wrapper`,{[`${H}-affix-wrapper-rtl`]:$==="rtl",[`${H}-affix-wrapper-sm`]:z==="small",[`${H}-affix-wrapper-lg`]:z==="large",[`${H}-textarea-show-count`]:p||((r=e.count)===null||r===void 0?void 0:r.show)},ee)}),prefixCls:H,suffix:A&&v.createElement("span",{className:`${H}-textarea-suffix`},B),showCount:p,ref:V,onResize:ce,onMouseDown:U}))))}),Ny=(e,t,r,n)=>{const{titleMarginBottom:o,fontWeightStrong:a}=n;return{marginBottom:o,color:r,fontWeight:a,fontSize:e,lineHeight:t}},ky=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[`
|
|
168
|
-
h${n}&,
|
|
169
|
-
div&-h${n},
|
|
170
|
-
div&-h${n} > textarea,
|
|
171
|
-
h${n}
|
|
172
|
-
`]=Ny(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},Iy=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},_u(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Vy=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:Po[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),Dy=e=>{const{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(n).mul(-1).equal(),marginBottom:`calc(1em - ${Me(n)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},Ly=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Hy=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),zy=e=>{const{componentCls:t,titleMarginTop:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},ky(e)),{[`
|
|
173
|
-
& + h1${t},
|
|
174
|
-
& + h2${t},
|
|
175
|
-
& + h3${t},
|
|
176
|
-
& + h4${t},
|
|
177
|
-
& + h5${t}
|
|
178
|
-
`]:{marginTop:r},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:r}}}),Vy(e)),Iy(e)),{[`
|
|
179
|
-
${t}-expand,
|
|
180
|
-
${t}-collapse,
|
|
181
|
-
${t}-edit,
|
|
182
|
-
${t}-copy
|
|
183
|
-
`]:Object.assign(Object.assign({},_u(e)),{marginInlineStart:e.marginXXS})}),Dy(e)),Ly(e)),Hy()),{"&-rtl":{direction:"rtl"}})}},By=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Id=Wn("Typography",zy,By),Wy=e=>{const{prefixCls:t,"aria-label":r,className:n,style:o,direction:a,maxLength:i,autoSize:s=!0,value:l,onSave:c,onCancel:u,onEnd:d,component:f,enterIcon:m=v.createElement(Cd,null)}=e,g=v.useRef(null),p=v.useRef(!1),h=v.useRef(null),[b,y]=v.useState(l);v.useEffect(()=>{y(l)},[l]),v.useEffect(()=>{var A;if(!((A=g.current)===null||A===void 0)&&A.resizableTextArea){const{textArea:B}=g.current.resizableTextArea;B.focus();const{length:O}=B.value;B.setSelectionRange(O,O)}},[]);const S=({target:A})=>{y(A.value.replace(/[\n\r]/g,""))},$=()=>{p.current=!0},x=()=>{p.current=!1},w=({keyCode:A})=>{p.current||(h.current=A)},C=()=>{c(b.trim())},j=({keyCode:A,ctrlKey:B,altKey:O,metaKey:V,shiftKey:H})=>{h.current!==A||p.current||B||O||V||H||(A===rc.ENTER?(C(),d?.()):A===rc.ESC&&u())},T=()=>{C()},[F,k,L]=Id(t),N=le(t,`${t}-edit-content`,{[`${t}-rtl`]:a==="rtl",[`${t}-${f}`]:!!f},n,k,L);return F(v.createElement("div",{className:N,style:o},v.createElement(Fy,{ref:g,maxLength:i,value:b,onChange:S,onKeyDown:w,onKeyUp:j,onCompositionStart:$,onCompositionEnd:x,onBlur:T,"aria-label":r,rows:1,autoSize:s}),m!==null?fd(m,{className:`${t}-edit-content-confirm`}):null))};var Da,cc;function qy(){return cc||(cc=1,Da=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(o){e.addRange(o)}),t&&t.focus()}}),Da}var La,uc;function Uy(){if(uc)return La;uc=1;var e=qy(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(a){var i=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return a.replace(/#{\s*key\s*}/g,i)}function o(a,i){var s,l,c,u,d,f,m=!1;i||(i={}),s=i.debug||!1;try{c=e(),u=document.createRange(),d=document.getSelection(),f=document.createElement("span"),f.textContent=a,f.ariaHidden="true",f.style.all="unset",f.style.position="fixed",f.style.top=0,f.style.clip="rect(0, 0, 0, 0)",f.style.whiteSpace="pre",f.style.webkitUserSelect="text",f.style.MozUserSelect="text",f.style.msUserSelect="text",f.style.userSelect="text",f.addEventListener("copy",function(p){if(p.stopPropagation(),i.format)if(p.preventDefault(),typeof p.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var h=t[i.format]||t.default;window.clipboardData.setData(h,a)}else p.clipboardData.clearData(),p.clipboardData.setData(i.format,a);i.onCopy&&(p.preventDefault(),i.onCopy(p.clipboardData))}),document.body.appendChild(f),u.selectNodeContents(f),d.addRange(u);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");m=!0}catch(p){s&&console.error("unable to copy using execCommand: ",p),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(i.format||"text",a),i.onCopy&&i.onCopy(window.clipboardData),m=!0}catch(h){s&&console.error("unable to copy using clipboardData: ",h),s&&console.error("falling back to prompt"),l=n("message"in i?i.message:r),window.prompt(l,a)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(u):d.removeAllRanges()),f&&document.body.removeChild(f),c()}return m}return La=o,La}var Ky=Uy();const Gy=Hi.getDefaultExportFromCjs(Ky),Yy=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];var Xy=function(e,t,r,n){function o(a){return a instanceof r?a:new r(function(i){i(a)})}return new(r||(r=Promise))(function(a,i){function s(u){try{c(n.next(u))}catch(d){i(d)}}function l(u){try{c(n.throw(u))}catch(d){i(d)}}function c(u){u.done?a(u.value):o(u.value).then(s,l)}c((n=n.apply(e,t||[])).next())})};const Qy=({copyConfig:e,children:t})=>{const[r,n]=v.useState(!1),[o,a]=v.useState(!1),i=v.useRef(null),s=()=>{i.current&&clearTimeout(i.current)},l={};e.format&&(l.format=e.format),v.useEffect(()=>s,[]);const c=vt(u=>Xy(void 0,void 0,void 0,function*(){var d;u?.preventDefault(),u?.stopPropagation(),a(!0);try{const f=typeof e.text=="function"?yield e.text():e.text;Gy(f||Yy(t,!0).join("")||"",l),a(!1),n(!0),s(),i.current=setTimeout(()=>{n(!1)},3e3),(d=e.onCopy)===null||d===void 0||d.call(e,u)}catch(f){throw a(!1),f}}));return{copied:r,copyLoading:o,onClick:c}};function Ha(e,t){return v.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const Zy=e=>{const t=R.useRef(void 0);return R.useEffect(()=>{t.current=e}),t.current},Jy=(e,t,r)=>R.useMemo(()=>e===!0?{title:t??r}:R.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??r},e):{title:e},[e,t,r]);var eb=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const Vd=v.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:o,rootClassName:a,setContentRef:i,children:s,direction:l,style:c}=e,u=eb(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:d,direction:f,className:m,style:g}=Ko("typography"),p=l??f,h=i?Hn(t,i):t,b=d("typography",r);process.env.NODE_ENV!=="production"&&qt("Typography").deprecated(!i,"setContentRef","ref");const[y,S,$]=Id(b),x=le(b,m,{[`${b}-rtl`]:p==="rtl"},o,a,S,$),w=Object.assign(Object.assign({},g),c);return y(v.createElement(n,Object.assign({className:x,style:w,ref:h},u),s))});process.env.NODE_ENV!=="production"&&(Vd.displayName="Typography");var tb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},rb=function(t,r){return v.createElement(tr,Ie({},t,{ref:r,icon:tb}))},Dd=v.forwardRef(rb);process.env.NODE_ENV!=="production"&&(Dd.displayName="CheckOutlined");var nb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},ob=function(t,r){return v.createElement(tr,Ie({},t,{ref:r,icon:nb}))},Ld=v.forwardRef(ob);process.env.NODE_ENV!=="production"&&(Ld.displayName="CopyOutlined");var ab={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},ib=function(t,r){return v.createElement(tr,Ie({},t,{ref:r,icon:ab}))},Hd=v.forwardRef(ib);process.env.NODE_ENV!=="production"&&(Hd.displayName="LoadingOutlined");function dc(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function za(e,t,r){return e===!0||e===void 0?t:e||r&&t}function sb(e){const t=document.createElement("em");e.appendChild(t),process.env.NODE_ENV!=="production"&&(t.className="ant-typography-css-ellipsis-content-measure");const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return e.removeChild(t),r.left>n.left||n.right>r.right||r.top>n.top||n.bottom>r.bottom}const gs=e=>["string","number"].includes(typeof e),lb=({prefixCls:e,copied:t,locale:r,iconOnly:n,tooltips:o,icon:a,tabIndex:i,onCopy:s,loading:l})=>{const c=dc(o),u=dc(a),{copied:d,copy:f}=r??{},m=t?d:f,g=za(c[t?1:0],m),p=typeof g=="string"?g:m;return v.createElement(Yn,{title:g,getPopupContainer:h=>h.parentNode},v.createElement("button",{type:"button",className:le(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:n}),onClick:s,"aria-label":p,tabIndex:i},t?za(u[1],v.createElement(Dd,null),!0):za(u[0],l?v.createElement(Hd,null):v.createElement(Ld,null),!0)))},xo=v.forwardRef(({style:e,children:t},r)=>{const n=v.useRef(null);return v.useImperativeHandle(r,()=>({isExceed:()=>{const o=n.current;return o.scrollHeight>o.clientHeight},getHeight:()=>n.current.clientHeight})),v.createElement("span",{"aria-hidden":!0,ref:n,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),cb=e=>e.reduce((t,r)=>t+(gs(r)?String(r).length:1),0);function fc(e,t){let r=0;const n=[];for(let o=0;o<e.length;o+=1){if(r===t)return n;const a=e[o],s=gs(a)?String(a).length:1,l=r+s;if(l>t){const c=t-r;return n.push(String(a).slice(0,c)),n}n.push(a),r=l}return e}const Ba=0,Wa=1,qa=2,Ua=3,hc=4,Co={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function ub(e){const{enableMeasure:t,width:r,text:n,children:o,rows:a,expanded:i,miscDeps:s,onEllipsis:l}=e,c=v.useMemo(()=>qr(n),[n]),u=v.useMemo(()=>cb(c),[n]),d=v.useMemo(()=>o(c,!1),[n]),[f,m]=v.useState(null),g=v.useRef(null),p=v.useRef(null),h=v.useRef(null),b=v.useRef(null),y=v.useRef(null),[S,$]=v.useState(!1),[x,w]=v.useState(Ba),[C,j]=v.useState(0),[T,F]=v.useState(null);Be(()=>{w(t&&r&&u?Wa:Ba)},[r,n,a,t,c]),Be(()=>{var A,B,O,V;if(x===Wa){w(qa);const H=p.current&&getComputedStyle(p.current).whiteSpace;F(H)}else if(x===qa){const H=!!(!((A=h.current)===null||A===void 0)&&A.isExceed());w(H?Ua:hc),m(H?[0,u]:null),$(H);const q=((B=h.current)===null||B===void 0?void 0:B.getHeight())||0,G=a===1?0:((O=b.current)===null||O===void 0?void 0:O.getHeight())||0,ee=((V=y.current)===null||V===void 0?void 0:V.getHeight())||0,E=Math.max(q,G+ee);j(E+1),l(H)}},[x]);const k=f?Math.ceil((f[0]+f[1])/2):0;Be(()=>{var A;const[B,O]=f||[0,0];if(B!==O){const H=(((A=g.current)===null||A===void 0?void 0:A.getHeight())||0)>C;let q=k;O-B===1&&(q=H?B:O),m(H?[B,q]:[q,O])}},[f,k]);const L=v.useMemo(()=>{if(!t)return o(c,!1);if(x!==Ua||!f||f[0]!==f[1]){const A=o(c,!1);return[hc,Ba].includes(x)?A:v.createElement("span",{style:Object.assign(Object.assign({},Co),{WebkitLineClamp:a})},A)}return o(i?c:fc(c,f[0]),S)},[i,x,f,c].concat(se(s))),N={width:r,margin:0,padding:0,whiteSpace:T==="nowrap"?"normal":"inherit"};return v.createElement(v.Fragment,null,L,x===qa&&v.createElement(v.Fragment,null,v.createElement(xo,{style:Object.assign(Object.assign(Object.assign({},N),Co),{WebkitLineClamp:a}),ref:h},d),v.createElement(xo,{style:Object.assign(Object.assign(Object.assign({},N),Co),{WebkitLineClamp:a-1}),ref:b},d),v.createElement(xo,{style:Object.assign(Object.assign(Object.assign({},N),Co),{WebkitLineClamp:1}),ref:y},o([],!0))),x===Ua&&f&&f[0]!==f[1]&&v.createElement(xo,{style:Object.assign(Object.assign({},N),{top:400}),ref:g},o(fc(c,k),!0)),x===Wa&&v.createElement("span",{style:{whiteSpace:"inherit"},ref:p}))}const zd=({enableEllipsis:e,isEllipsis:t,children:r,tooltipProps:n})=>!n?.title||!e?r:v.createElement(Yn,Object.assign({open:t?void 0:!1},n),r);process.env.NODE_ENV!=="production"&&(zd.displayName="EllipsisTooltip");var db=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function fb({mark:e,code:t,underline:r,delete:n,strong:o,keyboard:a,italic:i},s){let l=s;function c(u,d){d&&(l=v.createElement(u,{},l))}return c("strong",o),c("u",r),c("del",n),c("code",t),c("mark",e),c("kbd",a),c("i",i),l}const hb="...",vc=["delete","mark","code","underline","strong","keyboard","italic"],vb=v.forwardRef((e,t)=>{var r;const{prefixCls:n,className:o,style:a,type:i,disabled:s,children:l,ellipsis:c,editable:u,copyable:d,component:f,title:m}=e,g=db(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:p,direction:h}=v.useContext(Ut),[b]=Xv("Text"),y=v.useRef(null),S=v.useRef(null),$=p("typography",n),x=Gc(g,vc),[w,C]=Ha(u),[j,T]=Er(!1,{value:C.editing}),{triggerType:F=["icon"]}=C,k=ie=>{var fe;ie&&((fe=C.onStart)===null||fe===void 0||fe.call(C)),T(ie)},L=Zy(j);Be(()=>{var ie;!j&&L&&((ie=S.current)===null||ie===void 0||ie.focus())},[j]);const N=ie=>{ie?.preventDefault(),k(!0)},A=ie=>{var fe;(fe=C.onChange)===null||fe===void 0||fe.call(C,ie),k(!1)},B=()=>{var ie;(ie=C.onCancel)===null||ie===void 0||ie.call(C),k(!1)},[O,V]=Ha(d),{copied:H,copyLoading:q,onClick:G}=Qy({copyConfig:V,children:l}),[ee,E]=v.useState(!1),[I,D]=v.useState(!1),[W,z]=v.useState(!1),[K,Q]=v.useState(!1),[X,te]=v.useState(!0),[oe,ae]=Ha(c,{expandable:!1,symbol:ie=>ie?b?.collapse:b?.expand}),[me,U]=Er(ae.defaultExpanded||!1,{value:ae.expanded}),ce=oe&&(!me||ae.expandable==="collapsible"),{rows:re=1}=ae,ue=v.useMemo(()=>ce&&(ae.suffix!==void 0||ae.onEllipsis||ae.expandable||w||O),[ce,ae,w,O]);Be(()=>{oe&&!ue&&(E(tl("webkitLineClamp")),D(tl("textOverflow")))},[ue,oe]);const[ye,de]=v.useState(ce),$e=v.useMemo(()=>ue?!1:re===1?I:ee,[ue,I,ee]);Be(()=>{de($e&&ce)},[$e,ce]);const be=ce&&(ye?K:W),Ee=ce&&re===1&&ye,ge=ce&&re>1&&ye,J=(ie,fe)=>{var Ue;U(fe.expanded),(Ue=ae.onExpand)===null||Ue===void 0||Ue.call(ae,ie,fe)},[Ce,Re]=v.useState(0),Qe=({offsetWidth:ie})=>{Re(ie)},ke=ie=>{var fe;z(ie),W!==ie&&((fe=ae.onEllipsis)===null||fe===void 0||fe.call(ae,ie))};v.useEffect(()=>{const ie=y.current;if(oe&&ye&&ie){const fe=sb(ie);K!==fe&&Q(fe)}},[oe,ye,l,ge,X,Ce]),v.useEffect(()=>{const ie=y.current;if(typeof IntersectionObserver>"u"||!ie||!ye||!ce)return;const fe=new IntersectionObserver(()=>{te(!!ie.offsetParent)});return fe.observe(ie),()=>{fe.disconnect()}},[ye,ce]);const Ve=Jy(ae.tooltip,C.text,l),tt=v.useMemo(()=>{if(!(!oe||ye))return[C.text,l,m,Ve.title].find(gs)},[oe,ye,m,Ve.title,be]);if(j)return v.createElement(Wy,{value:(r=C.text)!==null&&r!==void 0?r:typeof l=="string"?l:"",onSave:A,onCancel:B,onEnd:C.onEnd,prefixCls:$,className:o,style:a,direction:h,component:f,maxLength:C.maxLength,autoSize:C.autoSize,enterIcon:C.enterIcon});const Te=()=>{const{expandable:ie,symbol:fe}=ae;return ie?v.createElement("button",{type:"button",key:"expand",className:`${$}-${me?"collapse":"expand"}`,onClick:Ue=>J(Ue,{expanded:!me}),"aria-label":me?b.collapse:b?.expand},typeof fe=="function"?fe(me):fe):null},Oe=()=>{if(!w)return;const{icon:ie,tooltip:fe,tabIndex:Ue}=C,Kt=qr(fe)[0]||b?.edit,gr=typeof Kt=="string"?Kt:"";return F.includes("icon")?v.createElement(Yn,{key:"edit",title:fe===!1?"":Kt},v.createElement("button",{type:"button",ref:S,className:`${$}-edit`,onClick:N,"aria-label":gr,tabIndex:Ue},ie||v.createElement(Ic,{role:"button"}))):null},Se=()=>O?v.createElement(lb,Object.assign({key:"copy"},V,{prefixCls:$,copied:H,locale:b,onCopy:G,loading:q,iconOnly:l==null})):null,pe=ie=>[ie&&Te(),Oe(),Se()],De=ie=>[ie&&!me&&v.createElement("span",{"aria-hidden":!0,key:"ellipsis"},hb),ae.suffix,pe(ie)];return v.createElement(tn,{onResize:Qe,disabled:!ce},ie=>v.createElement(zd,{tooltipProps:Ve,enableEllipsis:ce,isEllipsis:be},v.createElement(Vd,Object.assign({className:le({[`${$}-${i}`]:i,[`${$}-disabled`]:s,[`${$}-ellipsis`]:oe,[`${$}-ellipsis-single-line`]:Ee,[`${$}-ellipsis-multiple-line`]:ge},o),prefixCls:n,style:Object.assign(Object.assign({},a),{WebkitLineClamp:ge?re:void 0}),component:f,ref:Hn(ie,y,t),direction:h,onClick:F.includes("text")?N:void 0,"aria-label":tt?.toString(),title:m},x),v.createElement(ub,{enableMeasure:ce&&!ye,text:l,rows:re,width:Ce,onEllipsis:ke,expanded:me,miscDeps:[H,me,q,w,O,b].concat(se(vc.map(fe=>e[fe])))},(fe,Ue)=>fb(e,v.createElement(v.Fragment,null,fe.length>0&&Ue&&!me&&tt?v.createElement("span",{key:"show-content","aria-hidden":!0},fe):fe,De(Ue)))))))}),gb=v.forwardRef((e,t)=>v.createElement(vb,Object.assign({ref:t},e,{component:"div"}))),mb=({reqRows:e,subRows:t})=>{const{searchBoxRef:r}=Li.useSearchBox();return P.jsxRuntimeExports.jsx(Bi,{ref:r,reqRows:e,subRows:t})},pb=({children:e,searchBox:t,title:r,preRenderEvents:n=[],postRenderEvents:o=[],loading:a=!1,error:i=null,grantEvent:s={},customEvent:l={}})=>{const c=Li.useServiceCodeValue("AUTH_BTNS"),{user:u,isLoggedIn:d}=Ft.useUserStore(),{activeMenuItem:f}=ys.useMenuViewStore(),{isFavorite:m,addFavorite:g,removeFavorite:p}=ys.useFavoriteStore(),[h,b]=R.useState({isInitialized:!1,isReady:!1,error:null,loading:!0,preRenderComplete:!1,postRenderComplete:!1}),[y,S]=R.useState(null),[$,x]=R.useState([]),[w,C]=R.useState([]),j=async()=>{if(n.length===0){b(O=>({...O,preRenderComplete:!0}));return}try{for(const O of n)await O();b(O=>({...O,preRenderComplete:!0}))}catch(O){b(V=>({...V,error:O instanceof Error?O.message:"사전 렌더링 실패",preRenderComplete:!0}))}},T=async()=>{if(o.length===0){b(O=>({...O,postRenderComplete:!0}));return}try{for(const O of o)await O();b(O=>({...O,postRenderComplete:!0}))}catch(O){b(V=>({...V,error:O instanceof Error?O.message:"사후 렌더링 실패",postRenderComplete:!0}))}};R.useEffect(()=>{if(h.isInitialized)return;(async()=>{try{try{console.log("SCMSIGN00202 권한 서비스 호출 시작");const V=await Ft.callService(c,{crprCd:u?.crprCd,userId:u?.userId,menuId:f?.menuId});if(console.log("SCMSIGN00202 권한 서비스 응답:",V),V?.data&&V.data.length>0){const H=V.data?.filter(G=>G.grpId?.toUpperCase()==="DEFAULT").map(G=>({id:G.btnId,label:G.btnNm,type:"default",disabled:!1,onClick:s[G.btnId]||void 0}))||[];x(H);const q=V.data?.filter(G=>G.grpId?.toUpperCase()==="CUSTOM").map(G=>({id:G.btnId,label:G.btnNm,type:"default",disabled:!1,onClick:l[G.btnId]||void 0}))||[];C(q)}else x([]),C([])}catch(V){console.error("SCMSIGN00202 권한 서비스 호출 실패:",V),x([]),C([])}await j(),b(V=>({...V,isInitialized:!0,loading:!1}))}catch(V){console.error("BwgView 초기화 실패:",V),b(H=>({...H,isInitialized:!0,loading:!1}))}})()},[]),R.useEffect(()=>{h.isInitialized&&h.preRenderComplete&&!h.isReady&&setTimeout(async()=>{await T(),b(V=>({...V,isReady:!0}))},100)},[h.isInitialized,h.preRenderComplete,h.isReady]),R.useEffect(()=>{i&&b(O=>({...O,error:i}))},[i]);const F=()=>P.jsxRuntimeExports.jsxs("div",{className:"bwgview-header-container",children:[P.jsxRuntimeExports.jsxs("div",{className:"bwgview-header",children:[P.jsxRuntimeExports.jsx("div",{className:"bwgview-header-left",children:B.LEFT}),P.jsxRuntimeExports.jsx("div",{className:"bwgview-header-right",children:B.RIGHT})]}),t&&P.jsxRuntimeExports.jsx(mb,{reqRows:t.reqRows,subRows:t.subRows})]});if(R.useEffect(()=>{},[u,f]),h.error||i)return P.jsxRuntimeExports.jsx("div",{style:{padding:"24px"},children:P.jsxRuntimeExports.jsx(Z.Alert,{message:"오류 발생",description:h.error||i,type:"error",showIcon:!0})});const k=()=>P.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:P.jsxRuntimeExports.jsx("path",{d:"M9.9348 1.4645C10.2382 0.845167 10.7437 0.845167 11.0597 1.4645L13.0694 5.5344C13.3727 6.15374 14.1943 6.74779 14.8768 6.84891L19.3638 7.50616C20.0464 7.60727 20.2107 8.08757 19.7051 8.56787L16.4568 11.7277C15.9638 12.208 15.6478 13.1686 15.7616 13.8512L16.5326 18.3129C16.6464 18.9954 16.2419 19.2988 15.6226 18.9701L11.6159 16.8594C10.9965 16.5307 9.998 16.5307 9.37867 16.8594L5.37196 18.9701C4.75263 19.2988 4.34817 18.9954 4.46192 18.3129L5.23293 13.8512C5.34668 13.1686 5.04334 12.208 4.53776 11.7277L1.28942 8.56787C0.79648 8.08757 0.948154 7.60727 1.63068 7.50616L6.11769 6.84891C6.80022 6.74779 7.62179 6.15374 7.92513 5.5344L9.9348 1.4645Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10"})}),L=()=>P.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:P.jsxRuntimeExports.jsx("path",{d:"M9.9348 1.4645C10.2382 0.845167 10.7437 0.845167 11.0597 1.4645L13.0694 5.5344C13.3727 6.15374 14.1943 6.74779 14.8768 6.84891L19.3638 7.50616C20.0464 7.60727 20.2107 8.08757 19.7051 8.56787L16.4568 11.7277C15.9638 12.208 15.6478 13.1686 15.7616 13.8512L16.5326 18.3129C16.6464 18.9954 16.2419 19.2988 15.6226 18.9701L11.6159 16.8594C10.9965 16.5307 9.998 16.5307 9.37867 16.8594L5.37196 18.9701C4.75263 19.2988 4.34817 18.9954 4.46192 18.3129L5.23293 13.8512C5.34668 13.1686 5.04334 12.208 4.53776 11.7277L1.28942 8.56787C0.79648 8.08757 0.948154 7.60727 1.63068 7.50616L6.11769 6.84891C6.80022 6.74779 7.62178 6.15374 7.92513 5.5344L9.9348 1.4645Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",fill:"none"})}),N=O=>P.jsxRuntimeExports.jsx(dt,{component:k,...O}),A=O=>P.jsxRuntimeExports.jsx(dt,{component:L,...O}),B={LEFT:P.jsxRuntimeExports.jsx("div",{className:"bwgview-header-left",children:P.jsxRuntimeExports.jsxs(Z.ConfigProvider,{theme:{components:{Tag:{controlHeight:28,controlHeightLG:28,controlHeightSM:28,controlHeightXS:28}}},children:[P.jsxRuntimeExports.jsxs(Z.Space,{children:[f&&(m(f.menuId)?P.jsxRuntimeExports.jsx(N,{className:"bookmark-icon",style:{color:"#faad14"},onClick:async()=>{try{await p(f.menuId,u?.userId||"")}catch{}}}):P.jsxRuntimeExports.jsx(A,{className:"bookmark-icon",onClick:async()=>{try{await g(f,u?.userId||"")}catch{}}})),P.jsxRuntimeExports.jsxs(Z.Space.Compact,{style:{alignItems:"center"},children:[P.jsxRuntimeExports.jsx("span",{className:"pageMenuNm",children:(()=>{console.log("activeMenUItem::::: ",f);let O="";return r?.useMenuTitle&&f?O=f.menuNm:r?.text?O=r.text:f&&(O=f.menuPrntId==="CM00"?f.menuNm.substring(f.menuNm.indexOf(" ")+1):f.menuNm),r?.prefix&&(O=`${r.prefix} ${O}`),r?.suffix&&(O=`${O} ${r.suffix}`),O})()}),f?.menuNo&&P.jsxRuntimeExports.jsx(Z.Tag,{className:"page-num-tag",children:f?.menuNo}),P.jsxRuntimeExports.jsx(Z.Tooltip,{title:"도움말",color:"geekblue",children:P.jsxRuntimeExports.jsx(Z.Button,{variant:"text",type:"text",className:"menu-help-btn",icon:P.jsxRuntimeExports.jsx("span",{className:"bwgHelpIcon"})})})]})]}),f?.scrnId&&Ud.isLocal&&P.jsxRuntimeExports.jsx(Z.Tag,{style:{marginLeft:8,fontSize:13,fontWeight:500,display:"flex"},children:P.jsxRuntimeExports.jsx(gb,{copyable:!0,style:{display:"inherit",justifyContent:"center",alignItems:"center",marginBottom:0},children:f?.scrnId})})]})}),RIGHT:P.jsxRuntimeExports.jsx("div",{className:"bwgview-header-right",children:P.jsxRuntimeExports.jsx(Z.ConfigProvider,{theme:{components:{Space:{padding:8}}},children:P.jsxRuntimeExports.jsxs(Z.Space,{children:[P.jsxRuntimeExports.jsx(Z.Flex,{gap:8,children:w.map(O=>P.jsxRuntimeExports.jsx(Z.Button,{type:O.type,disabled:O.disabled,className:"bwg-btn",onClick:()=>{typeof O.onClick=="function"&&O.onClick()},children:O.label},O.id))}),P.jsxRuntimeExports.jsx(Z.ConfigProvider,{theme:{components:{Divider:{verticalMarginInline:0}}},children:P.jsxRuntimeExports.jsx(Z.Divider,{type:"vertical"})}),P.jsxRuntimeExports.jsx(Z.Flex,{gap:8,className:"permission-buttons",children:$.length>0?$.map(O=>P.jsxRuntimeExports.jsx(Z.Button,{type:O.type,disabled:O.disabled,className:"bwg-btn",onClick:()=>{typeof O.onClick=="function"&&O.onClick()},children:O.label},O.id)):P.jsxRuntimeExports.jsx(Z.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})})]})})})};return P.jsxRuntimeExports.jsxs("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:[F(),P.jsxRuntimeExports.jsxs("div",{className:"bwgview-content",children:[P.jsxRuntimeExports.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:e}),(h.loading||a)&&P.jsxRuntimeExports.jsx(qd.LoadingOverlay,{text:"화면 로드 중..."})]})]})},Bd=({width:e="100%",height:t="100%",boxAlign:r,display:n="show",overflow:o,style:a,className:i,border:s=!0,children:l,ref:c})=>P.jsxRuntimeExports.jsx("div",{style:{width:e,height:t,display:n==="show"?"":n,overflowX:o?.x,overflowY:o?.y,...a},className:`bwgview-content-box ${r?`content-box-${r}`:""} ${i||""} ${s?"":"none-box-st"}`,ref:c,children:l}),yb=({children:e,customTheme:t,customComponentSize:r="middle"})=>{const n={token:{colorPrimary:"#1890ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1890ff",fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif',fontSize:14,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,padding:16,margin:16,borderRadius:6,boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)",boxShadowSecondary:"0 2px 4px rgba(0, 0, 0, 0.12)"},algorithm:Z.theme.defaultAlgorithm},o={...n,...t,token:{...n.token,...t?.token}};return P.jsxRuntimeExports.jsx(Z.ConfigProvider,{locale:bc,theme:o,componentSize:r,space:{size:r},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},children:e})},bb="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_127_9273)'%3e%3cpath%20d='M25.9254%2020.8996C27.5151%2020.8996%2028.8039%2019.6108%2028.8039%2018.0211C28.8039%2016.4313%2027.5151%2015.1426%2025.9254%2015.1426C24.3356%2015.1426%2023.0469%2016.4313%2023.0469%2018.0211C23.0469%2019.6108%2024.3356%2020.8996%2025.9254%2020.8996Z'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M31.4825%2032.4711V25.9066C31.4825%2024.5671%2030.485%2023.4746%2029.2595%2023.4746H22.6C21.3745%2023.4746%2020.377%2024.5671%2020.377%2025.9066'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M25.2696%2026.7334H14.2686L16.5106%2032.6234H27.5021L25.2696%2026.7334Z'%20stroke='%23925CFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M7.5617%2018.8385C6.1462%2017.4135%205.2627%2015.447%205.2627%2013.2715C5.2627%208.91095%208.7967%205.37695%2013.1572%205.37695C17.5177%205.37695%2021.0517%208.91095%2021.0517%2013.2715C21.0517%2015.124%2020.4152%2016.815%2019.3512%2018.164C18.0497%2019.8075%2016.1117%2020.919%2013.9172%2021.128'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13.1572%2013.2715L16.0167%2015.5705'%20stroke='%23925CFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M13.1572%208.62598V13.2715'%20stroke='%23925CFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M8.35963%2016.1973L7.84663%2019.1328L4.91113%2018.6293'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.91113%2032.623H33.0881'%20stroke='%235244A2'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_127_9273'%3e%3crect%20width='38'%20height='38'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",xb="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_127_9289)'%3e%3cpath%20d='M27.3705%2010.9919C28.5405%2010.9919%2029.489%2010.0434%2029.489%208.87338C29.489%207.70337%2028.5405%206.75488%2027.3705%206.75488C26.2004%206.75488%2025.252%207.70337%2025.252%208.87338C25.252%2010.0434%2026.2004%2010.9919%2027.3705%2010.9919Z'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M30.3053%2017.2998V32.3098H24.4248V17.2998'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M27.3701%2032.31V23.3135'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M22.2305%2022.1925V17.642V15.6945C22.2305%2014.3075%2023.3515%2013.1865%2024.7385%2013.1865H29.9825C31.3695%2013.1865%2032.4905%2014.3075%2032.4905%2015.6945V17.642V22.1925'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.2519%2021.4229H18.6199C19.1044%2021.4229%2019.5034%2021.8219%2019.5034%2022.3064V24.4154H16.3779V22.3064C16.3779%2021.8219%2016.7769%2021.4229%2017.2614%2021.4229H17.2519Z'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M20.8339%2024.4062H15.0294C14.6254%2024.4062%2014.2979%2024.7338%2014.2979%2025.1377V31.6832C14.2979%2032.0872%2014.6254%2032.4147%2015.0294%2032.4147H20.8339C21.2378%2032.4147%2021.5654%2032.0872%2021.5654%2031.6832V25.1377C21.5654%2024.7338%2021.2378%2024.4062%2020.8339%2024.4062Z'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M16.8252%2027.1895V29.631'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M19.0391%2027.1895V29.631'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.71875%2014.1642H8.53075C9.03425%2014.1642%209.49025%2013.8602%209.68025%2013.4042L10.3263%2011.8652'%20stroke='%2342AAFF'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M17.4991%205.54803L12.2266%2011.8655H17.5371L19.8836%205.51953L17.4991%205.54803Z'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M22.2017%2016.4639H6.57421C5.97571%2016.4639%205.49121%2015.9794%205.49121%2015.3809C5.49121%2013.4334%207.06821%2011.8564%209.01571%2011.8564H20.3492'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M5.56738%2032.4805H32.2909'%20stroke='%23204AA4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_127_9289'%3e%3crect%20width='38'%20height='38'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Cb="data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_127_9314)'%3e%3cpath%20d='M15.1807%2019.3994L18.7717%2029.7164'%20stroke='%23FF8CC3'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.9033%209.25293L12.6063%2011.2574C12.6063%2011.2574%2010.7443%2014.7724%2013.2618%2022.0209'%20stroke='%23FF8CC4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.9033%209.25293L12.6063%2011.2574C12.6063%2011.2574%2016.2448%2012.8534%2018.7718%2020.1019'%20stroke='%23FF8CC4'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M23.8257%2016.71C22.2202%2012.112%2017.1947%209.67999%2012.5967%2011.276C7.99871%2012.8815%205.56671%2017.907%207.16271%2022.505L7.67571%2023.968L7.88471%2023.892C7.93221%2022.7235%208.67321%2021.6405%209.85121%2021.232C11.0292%2020.8235%2012.2737%2021.2035%2013.0432%2022.0965L13.4422%2021.954C13.4897%2020.7855%2014.2307%2019.7025%2015.4087%2019.294C16.5867%2018.8855%2017.8312%2019.2655%2018.6007%2020.1585L18.9997%2020.016C19.0472%2018.8475%2019.7882%2017.7645%2020.9662%2017.356C22.1442%2016.9475%2023.3887%2017.3275%2024.1582%2018.2205L24.3577%2018.154L23.8447%2016.691L23.8257%2016.71Z'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M23.37%2015.4193C23.636%2015.4858%2023.9115%2015.5238%2024.1965%2015.5238C26.068%2015.5238%2027.5785%2014.0038%2027.5785%2012.1418C27.5785%2010.2798%2026.0585%208.75977%2024.1965%208.75977C22.3345%208.75977%2020.8145%2010.2798%2020.8145%2012.1418'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M24.2061%206.12784V5.00684'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M19.8641%207.79018L19.1611%207.09668'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M28.5381%2016.4736L29.2411%2017.1766'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M30.21%2012.1318H31.331'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M28.5469%207.79018L29.2404%207.09668'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M29.3355%2029.8213H14.2305'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M14.2302%2029.8213L10.3447%2025.2803'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.8527%2028.4531L7.76074%2032.9941'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M23.8447%2029.8213L27.4072%2032.9943'%20stroke='%239F2878'%20stroke-width='1.5'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_127_9314'%3e%3crect%20width='38'%20height='38'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",wb=({children:e})=>{const[t,r]=R.useState({x:0,y:0}),[n,o]=R.useState(!1),[a,i]=R.useState({x:0,y:0}),[s,l]=R.useState(!1),[c,u]=R.useState(!0),d=R.useRef(null),f=[{id:"overtime",title:"시간 외 근무신청",icon:P.jsxRuntimeExports.jsx("img",{src:bb,alt:"시간외근무신청",className:"quick-overtime"}),color:"#722ed1",onClick:()=>{console.log("시간 외 근무 신청 클릭")}},{id:"business-trip",title:"출장신청",icon:P.jsxRuntimeExports.jsx("img",{src:xb,alt:"출장신청",className:"quick-business-trip"}),color:"#1890ff",onClick:()=>{console.log("출장 신청 클릭")}},{id:"vacation",title:"휴가신청",icon:P.jsxRuntimeExports.jsx("img",{src:Cb,alt:"휴가신청",className:"quick-holiday"}),color:"#eb2f96",onClick:()=>{console.log("휴가 신청 클릭")}},{id:"document",title:"문서신청",icon:P.jsxRuntimeExports.jsx(dt.FileTextOutlined,{}),color:"#52c41a",onClick:()=>{console.log("문서 신청 클릭")}},{id:"profile",title:"인사정보",icon:P.jsxRuntimeExports.jsx(dt.UserOutlined,{}),color:"#fa8c16",onClick:()=>{console.log("인사 정보 클릭")}},{id:"settings",title:"설정",icon:P.jsxRuntimeExports.jsx(dt.SettingOutlined,{}),color:"#13c2c2",onClick:()=>{console.log("설정 클릭")}}];R.useEffect(()=>{const y=()=>{const S=window.innerHeight,x=Math.max(64,(S-300)/3);r({x:0,y:x});const w=S/2;u(x<w)};return y(),window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)},[]);const m=y=>{if(y.preventDefault(),y.stopPropagation(),d.current){const S=d.current.getBoundingClientRect();i({x:y.clientX-S.left,y:y.clientY-S.top}),o(!0)}},g=y=>{if(n){const S=y.clientY-a.y,$=window.innerHeight-24,w=Math.max(64,Math.min($,S));r({x:t.x,y:w});const C=window.innerHeight/2;u(w<C)}},p=()=>{o(!1)},h=()=>{l(!s)},b=y=>{y.onClick&&y.onClick()};return R.useEffect(()=>{if(n)return document.addEventListener("mousemove",g),document.addEventListener("mouseup",p),()=>{document.removeEventListener("mousemove",g),document.removeEventListener("mouseup",p)}},[n,a]),P.jsxRuntimeExports.jsxs("div",{className:"quick-tab-container",ref:d,style:{position:"fixed",right:0,top:t.y,zIndex:1e3,userSelect:"none",touchAction:"none"},children:[P.jsxRuntimeExports.jsxs("div",{className:"quick-tab",style:{position:"absolute",right:"40px",top:c?0:"auto",bottom:c?"auto":0,display:"flex",flexDirection:"column",gap:"15px",border:"1px solid #E0DEEF",borderRadius:"15px",padding:"8px",boxShadow:"0 0 10px rgba(0, 0, 0, 0.3)",minWidth:"88px",maxWidth:"88px",maxHeight:c?`calc(100vh - ${t.y+12}px)`:`${t.y-12}px`,transform:s?"translateX(0)":"translateX(calc(100% + 100px))",transition:"transform 0.3s ease",marginTop:c&&t.y<100?"32px":"0",marginBottom:!c&&t.y>window.innerHeight-100?"8px":"0"},children:[P.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-wrap",style:{background:"#ffffff",borderRadius:"10px",flex:1,overflowY:"auto",maxHeight:c?`calc(100vh - ${t.y+120}px)`:`${t.y-60}px`,padding:"14px 0"},children:f.map(y=>P.jsxRuntimeExports.jsx(Z.Card,{className:"quick-tab-items",size:"small",style:{border:"none",boxShadow:"none",marginBottom:"15px",cursor:"pointer",transition:"all 0.2s ease"},styles:{body:{padding:"0"}},onClick:()=>b(y),onMouseEnter:S=>{},onMouseLeave:S=>{},children:P.jsxRuntimeExports.jsxs("div",{className:"quick-tab-item-inner",children:[P.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-icon",style:{width:"44px",height:"44px",borderRadius:"8PX",fontSize:"24px",color:y.color,marginBottom:"5px"},children:y.icon}),P.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-title",children:y.title})]})},y.id))}),P.jsxRuntimeExports.jsx("div",{className:"quick-tab-add-btn",style:{height:"30px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease",flexShrink:0,marginBottom:"7px"},onMouseEnter:y=>{},onMouseLeave:y=>{},children:P.jsxRuntimeExports.jsx(dt.PlusOutlined,{style:{color:"#CDC4FF",fontSize:"15px"}})})]}),P.jsxRuntimeExports.jsx("div",{className:"quick-tab-drag-btn",style:{cursor:n?"grabbing":"grab",zIndex:1001},onMouseDown:m}),P.jsxRuntimeExports.jsx(Z.Button,{className:`quick-tab-toggle-btn ${s?"expanded":""}`,type:"default",style:{border:"0",backgroundColor:"transparent"},onClick:h})]})},Sb=()=>{const{verifyWithToken:e}=Kd.useAuth(),t=bs.useNavigate(),r=bs.useLocation();return R.useEffect(()=>{const o=new URLSearchParams(r.search).get("token");if(!o){t("/login",{replace:!0});return}(async()=>{const a=await e(o);t(a?"/main":"/login",{replace:!0})})()},[r.search]),P.jsxRuntimeExports.jsx("div",{style:{display:"grid",placeItems:"center",height:"100dvh"},children:P.jsxRuntimeExports.jsx(Z.Spin,{tip:"인증중..."})})};exports.BwgButtonGroup=Gd;exports.BwgCmptArea=Yd;exports.BwgCol=Xd;exports.BwgConfigProvider=xc;exports.BwgDrawer=cf;exports.BwgGrid=yf;exports.BwgInfoArea=xf;exports.BwgPopup=wf;exports.BwgRow=Sf;exports.BwgTable=Ef;exports.BwgTabs=Rf;exports.BwgTitleBox=zi;exports.BwgView=pb;exports.ContentBox=Bd;exports.ContentLayOut=Ho;exports.GlobalConfigProvider=yb;exports.QuickServiceToggle=wb;exports.SSOHandler=Sb;exports.SearchBox=Bi;exports.createBwgGridRenderer=bf;
|
|
184
|
-
//# sourceMappingURL=SSOHandler-ColywAGZ.cjs.map
|