@bwg-ui/core 1.2.7 → 1.2.8
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/README.md +28 -0
- package/dist/chunks/MenuReport-CiL4ggPy.js +1244 -0
- package/dist/chunks/MenuReport-DIkKwvta.cjs +1 -0
- package/dist/chunks/common-components-B4mah7DM.cjs +183 -0
- package/dist/chunks/{common-components-BiUtYMIt.js → common-components-G-FELsbw.js} +6664 -7980
- package/dist/chunks/{core-CF_HWm44.cjs → core-CXP75zcn.cjs} +1 -1
- package/dist/chunks/{core-Cb5dF0QU.js → core-pjW5SaWA.js} +1 -1
- package/dist/chunks/{enc-base64-CAxIzedh.cjs → enc-base64-Bg9x86kU.cjs} +1 -1
- package/dist/chunks/{enc-base64-Dy-3zKzn.js → enc-base64-DtP_G7ev.js} +2 -2
- package/dist/chunks/layout-components-De-k79AV.cjs +35 -0
- package/dist/chunks/layout-components-mRRx1BIz.js +1616 -0
- package/dist/chunks/{sha256-DKma8qua.js → sha256-BTxiV_cX.js} +2 -2
- package/dist/chunks/{sha256-DbQnwvPn.cjs → sha256-CFa0dyCj.cjs} +1 -1
- package/dist/components/common/ButtonAccessController.d.ts +5 -0
- package/dist/components/common/ButtonAccessController.d.ts.map +1 -0
- package/dist/components/common/BwgEditor.d.ts +3 -3
- package/dist/components/common/BwgEditor.d.ts.map +1 -1
- package/dist/components/common/BwgPopup.d.ts +15 -0
- package/dist/components/common/BwgPopup.d.ts.map +1 -1
- package/dist/components/common/BwgView.d.ts +2 -23
- package/dist/components/common/BwgView.d.ts.map +1 -1
- package/dist/components/common/SearchBox.d.ts +1 -57
- package/dist/components/common/SearchBox.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.d.ts +5 -3
- package/dist/components/common/index.d.ts.map +1 -1
- package/dist/components/common/index.js +24 -23
- package/dist/components/common/type.d.ts +132 -0
- package/dist/components/common/type.d.ts.map +1 -0
- package/dist/components/guide/index.cjs +1 -1
- package/dist/components/guide/index.js +1 -1
- package/dist/components/layout/BwgPortal01.d.ts.map +1 -1
- package/dist/components/layout/default/LocalPopupContainer.d.ts +3 -0
- package/dist/components/layout/default/LocalPopupContainer.d.ts.map +1 -0
- package/dist/components/layout/default/PopupContainer.d.ts.map +1 -1
- package/dist/components/layout/index.cjs +1 -35
- package/dist/components/layout/index.js +13 -1558
- package/dist/components/popup/MenuReport.d.ts +2 -5
- package/dist/components/popup/MenuReport.d.ts.map +1 -1
- package/dist/components/popup/SearchDepartmentP01.d.ts +4 -5
- package/dist/components/popup/SearchDepartmentP01.d.ts.map +1 -1
- package/dist/components/popup/SearchDepartmentP02.d.ts +3 -5
- package/dist/components/popup/SearchDepartmentP02.d.ts.map +1 -1
- package/dist/components/popup/SearchEmployeeP01.d.ts +3 -1
- package/dist/components/popup/SearchEmployeeP01.d.ts.map +1 -1
- package/dist/components/popup/SearchEmployeeP02.d.ts +3 -1
- package/dist/components/popup/SearchEmployeeP02.d.ts.map +1 -1
- package/dist/components/popup/SearchOrganizationP01.d.ts +2 -4
- package/dist/components/popup/SearchOrganizationP01.d.ts.map +1 -1
- package/dist/components/popup/SearchOrganizationP02.d.ts +3 -4
- package/dist/components/popup/SearchOrganizationP02.d.ts.map +1 -1
- package/dist/components/popup/config/localPopupRegistry.d.ts +8 -0
- package/dist/components/popup/config/localPopupRegistry.d.ts.map +1 -0
- package/dist/components/popup/index.cjs +1 -1
- package/dist/components/popup/index.d.ts +2 -4
- package/dist/components/popup/index.d.ts.map +1 -1
- package/dist/components/popup/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +135 -132
- package/dist/provider/hooks/usePopup.d.ts +1 -0
- package/dist/provider/hooks/usePopup.d.ts.map +1 -1
- package/dist/provider/index.cjs +1 -1
- package/dist/provider/index.js +205 -188
- package/dist/stores/index.cjs +2 -2
- package/dist/stores/index.js +253 -200
- package/dist/stores/popupStore.d.ts +9 -1
- package/dist/stores/popupStore.d.ts.map +1 -1
- package/dist/utils/gwUtils.d.ts +23 -0
- package/dist/utils/gwUtils.d.ts.map +1 -0
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.d.ts +9 -8
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +588 -486
- package/package.json +4 -4
- package/dist/chunks/common-components-DyOLtUJx.cjs +0 -183
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
"use strict";var Hd=Object.create;var Ba=Object.defineProperty;var Vd=Object.getOwnPropertyDescriptor;var Wd=Object.getOwnPropertyNames;var Kd=Object.getPrototypeOf,qd=Object.prototype.hasOwnProperty;var Ud=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Wd(t))!qd.call(e,o)&&o!==r&&Ba(e,o,{get:()=>t[o],enumerable:!(n=Vd(t,o))||n.enumerable});return e};var Gd=(e,t,r)=>(r=e!=null?Hd(Kd(e)):{},Ud(t||!e||!e.__esModule?Ba(r,"default",{value:e,enumerable:!0}):r,e));const _e=require("../utils/index.cjs"),ct=require("../stores/index.cjs"),s=require("react/jsx-runtime"),se=require("@ant-design/icons"),v=require("antd"),h=require("react"),Mr=require("../provider/index.cjs"),Yd=require("dompurify"),Ii=require("react-quill"),uo=require("react-dom"),Ue=require("realgrid"),za=require("realgrid-react"),kl=require("react-rnd"),Xd=require("dayjs"),Ol=require("../components/layout/index.cjs"),Pe=require("../components/core/index.cjs"),La=require("react-router-dom");function $l(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 on=$l(se),p=$l(h);var Qd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function So(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zd(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var o=!1;try{o=this instanceof n}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}const Jd=({grpId:e,menuId:t,btnEvent:r,layout:n="horizontal",size:o="middle",style:i,className:a,onButtonClick:l})=>{const c=Mr.useServiceCodeValue("AUTH_BTNS"),{user:d}=ct.useUserStore(),[f,u]=h.useState([]),[g,C]=h.useState(!0),[E,R]=h.useState(null),[m,O]=h.useState({}),x=async()=>{try{C(!0),R(null),console.log("@@ 커스텀버튼그룹 영역 조회시작",e,t);const j=await _e.callService(c,{userId:d?.userId,crprCd:d?.crprCd,grpId:e.toUpperCase(),menuId:t});if(console.log("@@ 커스텀버튼그룹 영역 조회결과",j),j?.data&&Array.isArray(j.data)){const S=j.data.sort((k,$)=>k.btnSq-$.btnSq);u(S)}else u([])}catch(j){console.error("버튼 권한 조회 실패:",j),R("버튼 권한을 조회하는 중 오류가 발생했습니다."),u([])}finally{C(!1)}};h.useEffect(()=>{x()},[e,t]);const _=async(j,S)=>{O(k=>({...k,[j]:{loading:!0}}));try{const k=r?.[j];k?await k():console.warn(`버튼 이벤트 핸들러를 찾을 수 없습니다: ${j}`),l&&l(j,S,e)}catch(k){console.error("버튼 이벤트 실행 실패:",k),v.message.error("작업 중 오류가 발생했습니다.")}finally{O(k=>({...k,[j]:{loading:!1}}))}},P=j=>{const S=m[j.btnId]||{loading:!1};return s.jsxs(v.Button,{size:o,loading:S.loading,onClick:()=>_(j.btnId,j.btnNm),className:"bwg-btn",style:{...j.iconVal&&{display:"flex",alignItems:"center",gap:"4px"}},children:[j.iconVal&&s.jsxs(s.Fragment,{children:[j.iconType==="ANTD"&&on[j.iconVal]&&h.createElement(on[j.iconVal],{style:{fontSize:"14px"}}),j.iconType!=="ANTD"&&s.jsx("span",{className:j.iconVal,style:{fontSize:"14px"}})]}),j.btnNm]},j.btnId)};return g?s.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${a||""}`,style:i,children:s.jsx(v.Space,{direction:n==="vertical"?"vertical":"horizontal",size:o,children:s.jsx(v.Button,{loading:!0,size:o,children:"권한 조회 중..."})})}):E?s.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${a||""}`,style:i,children:s.jsx(v.Alert,{message:"권한 오류",description:E,type:"error",showIcon:!0,style:{minHeight:"40px"}})}):f.length===0?s.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${a||""}`,style:i,children:s.jsx(v.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})}):s.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${a||""}`,style:i,children:s.jsx(v.Flex,{gap:3,children:f.map(P)})})},eu=({content:e,layout:t="flex",gap:r=16,minWidth:n=120,maxWidth:o=300,style:i,className:a})=>{if(!(Array.isArray(e)&&e.length>0&&Array.isArray(e[0])))return s.jsx("div",{style:i,className:a,children:e});const c=e.filter(C=>C&&C.length>0),d=h.useMemo(()=>{const C=c[0];if(!C||C.length===0)return{totalCols:0,baseWidth:0};let E=0;const R=[];C.forEach(O=>{const x=O,_=x?.props?.["data-colspan"]?parseInt(String(x.props["data-colspan"])):1;E+=_,R.push(_)});const m=E>0?100/E:0;return{totalCols:E,baseWidth:m,componentWidths:R}},[c]),f=(C,E,R)=>{const m=C,O=m?.props?.["data-colspan"]?parseInt(String(m.props["data-colspan"])):1;switch(t){case"equal":return 100/R;case"auto":return 100/R;case"grid":return 100/d.totalCols*O;case"flex":default:const x=d.baseWidth*O;return Math.max(n,Math.min(o,x))}},u=C=>{if(!C||typeof C!="object")return C;const E=C;if(!E.props)return C;const m={...E.props.style||{},width:"100%"};return h.cloneElement(E,{...E.props,style:m})},g=(C,E)=>{if(!C||C.length===0)return null;const R=C.length;return t==="grid"?s.jsx("div",{className:"erp-cmm-form",style:{display:"grid",gridTemplateColumns:`repeat(${d.totalCols}, 1fr)`,gap:`${r}px`,width:"100%"},children:C.map((m,O)=>{const x=m?.props?.["data-colspan"]?parseInt(String(m.props["data-colspan"])):1,_=u(m);return s.jsx("div",{style:{gridColumn:`span ${x}`,minWidth:`${n}px`},className:"form-component-wrapper",children:_},`row-${E}-col-${O}`)})},`row-${E}`):s.jsx(v.Flex,{gap:r,className:"erp-cmm-form",wrap:t==="auto"?"wrap":"nowrap",style:{width:"100%"},children:C.map((m,O)=>{const x=f(m,O,R),_=u(m),P=t==="flex"?{width:`${x}px`,minWidth:`${n}px`,maxWidth:`${o}px`,flexShrink:0}:{width:`${x}%`,minWidth:`${n}px`};return s.jsx("div",{style:P,className:"form-component-wrapper",children:_},`row-${E}-col-${O}`)})},`row-${E}`)};return s.jsx(v.Flex,{gap:"small",vertical:!0,style:i,className:a,children:c.map((C,E)=>g(C,E+1))})},tu=({children:e,...t})=>s.jsx(v.Col,{...t,className:"bwg-col",children:e});var Ur={},Yo={exports:{}},Fa;function wo(){return Fa||(Fa=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})(Yo)),Yo.exports}var Gr={},Ha;function ru(){if(Ha)return Gr;Ha=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.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 Gr.default=e,Gr}var Yr={},Xr={},Qr={},Xo={exports:{}},Qo={exports:{}},Zo={exports:{}},Jo={exports:{}},Va;function Tl(){return Va||(Va=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})(Jo)),Jo.exports}var ei={exports:{}},Wa;function nu(){return Wa||(Wa=1,(function(e){var t=Tl().default;function r(n,o){if(t(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var a=i.call(n,o||"default");if(t(a)!="object")return a;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})(ei)),ei.exports}var Ka;function ou(){return Ka||(Ka=1,(function(e){var t=Tl().default,r=nu();function n(o){var i=r(o,"string");return t(i)=="symbol"?i:i+""}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Zo)),Zo.exports}var qa;function iu(){return qa||(qa=1,(function(e){var t=ou();function r(n,o,i){return(o=t(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i,n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Qo)),Qo.exports}var Ua;function au(){return Ua||(Ua=1,(function(e){var t=iu();function r(o,i){var a=Object.keys(o);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(o);i&&(l=l.filter(function(c){return Object.getOwnPropertyDescriptor(o,c).enumerable})),a.push.apply(a,l)}return a}function n(o){for(var i=1;i<arguments.length;i++){var a=arguments[i]!=null?arguments[i]:{};i%2?r(Object(a),!0).forEach(function(l){t(o,l,a[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach(function(l){Object.defineProperty(o,l,Object.getOwnPropertyDescriptor(a,l))})}return o}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(Xo)),Xo.exports}var Zr={},Ga;function su(){return Ga||(Ga=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.commonLocale=void 0,Zr.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),Zr}var Ya;function lu(){if(Ya)return Qr;Ya=1;var e=wo().default;Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.default=void 0;var t=e(au()),r=su(),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 Qr.default=n,Qr}var Jr={},Xa;function Il(){if(Xa)return Jr;Xa=1,Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.default=void 0;const e={placeholder:"시간 선택",rangePlaceholder:["시작 시간","종료 시간"]};return Jr.default=e,Jr}var Qa;function Pl(){if(Qa)return Xr;Qa=1;var e=wo().default;Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.default=void 0;var t=e(lu()),r=e(Il());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 Xr.default=n,Xr}var Za;function cu(){if(Za)return Yr;Za=1;var e=wo().default;Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.default=void 0;var t=e(Pl());return Yr.default=t.default,Yr}var Ja;function du(){if(Ja)return Ur;Ja=1;var e=wo().default;Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.default=void 0;var t=e(ru()),r=e(cu()),n=e(Pl()),o=e(Il());const i="${label} 유효하지 않은 ${type}",a={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:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},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 Ur.default=a,Ur}var ti,es;function uu(){return es||(es=1,ti=du()),ti}var fu=uu();const _l=So(fu),pa=({children:e,customTheme:t,customComponentSize:r="middle",layout:n="comfortable",getPopupContainer:o})=>{const a=(()=>{const c={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:v.theme.defaultAlgorithm};switch(n){case"compact":return{...c,token:{...c.token,padding:8,margin:8,borderRadius:4,fontSize:12,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}};case"spacious":return{...c,token:{...c.token,padding:24,margin:24,borderRadius:8,fontSize:16,fontSizeHeading1:44,fontSizeHeading2:36,fontSizeHeading3:28,fontSizeHeading4:24,fontSizeHeading5:20}};default:return{...c,token:{...c.token,padding:16,margin:16,borderRadius:6,fontSize:14,fontSizeHeading1:30,fontSizeHeading2:20,fontSizeHeading3:18,fontSizeHeading4:16,fontSizeHeading5:14}}}})(),l={...a,...t,token:{...a.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 s.jsx(v.ConfigProvider,{locale:_l,theme:l,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})},hu=({children:e})=>{const{activeDetailItem:t}=ct.useMenuViewStore();return s.jsx("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:s.jsx("div",{className:"bwgview-content",children:s.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[s.jsx(v.Breadcrumb,{separator:">",items:[{title:t?.prntInfo?.menuNm},{title:t?.viewLabel}]}),e]})})})},Kt=({title:e,icons:t,tooltip:r,iconVisible:n=!0,paddingBottom:o=0,marginBottom:i=0,children:a})=>{const l=on.AppstoreTwoTone;return h.useMemo(()=>t?.type==="antd"&&t.icon&&on[t.icon]||l,[t?.type,t?.icon]),s.jsx(v.Flex,{vertical:!0,style:{width:"100%"},children:s.jsxs("div",{className:`bwg-title-box ${o?`pb${o}`:""} ${i?`mb${i}`:""}`,style:{display:"flex",justifyContent:"space-between"},children:[s.jsx("div",{className:"bwg-title-box-left",children:s.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[s.jsx(v.Typography.Title,{level:4,children:s.jsx("span",{children:e})}),r&&s.jsx(v.Tooltip,{title:r.title,placement:r.placement,children:s.jsx(on.QuestionCircleTwoTone,{style:{marginLeft:5}})})]})}),s.jsx("div",{className:"bwg-title-box-right",children:s.jsx(v.Flex,{gap:6,children:a})})]})})},{Panel:ts}=v.Collapse,Eo=h.forwardRef(({reqRows:e,subRows:t,border:r=!1,labelDisplay:n,header:o},i)=>{const[a]=v.Form.useForm(),[l,c]=h.useState("1"),d=()=>n?{flex:n.md||n.lg||n.sm||"100px"}:{flex:"100px"};h.useImperativeHandle(i,()=>({getFormData:()=>a.getFieldsValue(),setFormData:u=>{a.setFieldsValue(u)},resetForm:()=>{a.resetFields()},validateForm:async()=>{try{return{success:!0,data:await a.validateFields()}}catch(u){return{success:!1,error:u}}}}));const f=()=>{c(u=>u.includes("subRows")?u.filter(g=>g!=="subRows"):[...u,"subRows"])};return s.jsxs("div",{style:r?{border:"1px solid #ddd",padding:"10px 12px",borderRadius:"8px",marginBottom:"10px"}:{},children:[o&&s.jsx(Kt,{title:o.title,children:o.buttons}),s.jsx(v.Form,{form:a,layout:"inline",style:{width:"100%",paddingBottom:e||t?"10px":"0px"},labelCol:d(),labelAlign:"left",children:s.jsxs("div",{style:{position:"relative",width:"100%"},children:[t&&s.jsx("div",{style:{position:"absolute",top:"15px",left:"-9px",zIndex:10},children:l.includes("subRows")?s.jsx(v.Tooltip,{title:"접기",children:s.jsx("span",{className:"search-collapsed-arrow",onClick:f,children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:s.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"})})})}):s.jsx(v.Tooltip,{title:"펼치기",children:s.jsx("span",{className:"search-collapsed-arrow",onClick:f,children:s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:s.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"})})})})}),s.jsx(v.ConfigProvider,{theme:{components:{Collapse:{}}},children:s.jsxs(v.Collapse,{activeKey:["reqRows",...l.includes("subRows")?["subRows"]:[]],onChange:c,className:"searchbox-collapse",bordered:!1,ghost:!0,children:[e&&s.jsx(ts,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"disabled",children:e},"reqRows"),t&&s.jsx(ts,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"icon",children:t},"subRows")]})})]})})]})}),pu=({children:e,showSearchBox:t,showCloseButton:r=!0,showEyesButton:n=!1,shotSettingButton:o=!0,styles:i,...a})=>{const[l,c]=h.useState(!0),[d,f]=h.useState(()=>{const O=a.placement;return O==="left"||O==="right"||O==="top"||O==="bottom"?O:"bottom"}),[u,g]=h.useState(!1),E=(O=>{const x={wrapper:{...a.width&&{width:a.width},...a.height&&{height:a.height},margin:"0 auto"},content:{},header:{backgroundColor:"var(--drawer-header-bg)",color:"var(--text-primary)"}};switch(O){case"bottom":return{...x,wrapper:{...x.wrapper,borderRadius:"30px 30px 0 0"},content:{borderRadius:"30px 30px 0 0"},header:{...x.header,borderRadius:"30px 30px 0 0"}};case"top":return{...x,wrapper:{...x.wrapper,borderRadius:"0 0 30px 30px"},content:{borderRadius:"0 0 30px 30px"},header:{...x.header}};case"left":return{...x,wrapper:{...x.wrapper,borderRadius:"0 30px 0px 0"},content:{borderRadius:"0 30px 0px 0"},header:{...x.header,borderRadius:"0 30px 0 0"}};case"right":return{...x,wrapper:{...x.wrapper,borderRadius:"30px 0 0 0"},content:{borderRadius:"30px 0 0 0"},header:{...x.header,borderRadius:"30px 0 0 0"}};default:return x}})(d),R={wrapper:{...E?.wrapper,...i?.wrapper},content:{...E?.content,...i?.content},header:{...E?.header,...i?.header}},m=()=>{const O=[];if(o){const x=[{key:"top",label:"상단",icon:s.jsx(se.CaretUpOutlined,{})},{key:"right",label:"우측",icon:s.jsx(se.CaretRightOutlined,{})},{key:"bottom",label:"하단",icon:s.jsx(se.CaretDownOutlined,{})},{key:"left",label:"좌측",icon:s.jsx(se.CaretLeftOutlined,{})}],_=s.jsx(v.Space.Compact,{children:x.map(P=>s.jsx(v.Button,{type:d===P.key?"primary":"default",size:"small",onClick:()=>{f(P.key),g(!1)},icon:P.icon},P.key))});O.push(s.jsx(v.Popover,{content:_,trigger:"click",placement:"left",open:u,onOpenChange:g,children:s.jsx(v.Tooltip,{placement:"bottom",title:"위치변경",zIndex:2100,children:s.jsx(v.Button,{icon:s.jsx(se.SettingOutlined,{}),type:"text",size:"middle"})})},"shotSetting"))}return n&&O.push(s.jsx(v.Tooltip,{placement:"bottom",title:l?"배경 보기":"배경 숨기기",zIndex:2100,children:s.jsx(v.Button,{icon:s.jsx(se.EyeOutlined,{}),type:"text",size:"middle",onClick:()=>c(!l)})},"eyes")),a.extra&&O.push(s.jsx("div",{style:{margin:"0 8px"},children:a.extra},"extra")),r&&O.push(s.jsx(v.Tooltip,{placement:"bottom",title:"닫기",zIndex:2100,children:s.jsx(v.Button,{icon:s.jsx(se.CloseOutlined,{}),onClick:a.onClose,type:"text",size:"middle"})},"close")),O};return s.jsx(v.Drawer,{className:"main-drawer",footer:!0,...a,placement:d,styles:R,maskClosable:!1,closable:!1,mask:l,extra:s.jsx(v.Space,{size:"small",align:"center",children:m()}),afterOpenChange:O=>{O||(c(!0),f(a.placement)),a.afterOpenChange?.(O)},destroyOnHidden:!0,children:t?s.jsxs(Ot,{type:"vertical",children:[s.jsxs(v.Flex,{justify:"space-between",align:"center",style:{width:"100%"},children:[s.jsx("div",{children:t.title}),s.jsx(v.Flex,{gap:2,children:t.extra})]}),s.jsx(Eo,{...t.searchBox}),s.jsx(v.Divider,{}),e]}):e})},Rt=({width:e="100%",height:t="100%",boxAlign:r,display:n="show",overflow:o,style:i,className:a,border:l=!0,children:c,ref:d})=>s.jsx("div",{style:{width:e,height:t,display:n==="show"?"":n,overflowX:o?.x,overflowY:o?.y,...i},className:`bwgview-content-box ${r?`content-box-${r}`:""} ${a||""} ${l?"":"none-box-st"}`,ref:d,children:c});let Pi=null;try{import("quill-image-resize-module-react").then(e=>{Pi=e.default,Ii.Quill.register("modules/imageResize",Pi)}).catch(e=>{console.warn("quill-image-resize-module-react 로드 실패:",e)})}catch(e){console.warn("quill-image-resize-module-react 로드 실패:",e)}const fo=e=>Yd.sanitize(e??"",{ALLOWED_TAGS:["p","br","div","span","strong","b","em","i","u","s","blockquote","pre","code","ul","ol","li","h1","h2","h3","h4","h5","h6","a","img"],ALLOWED_ATTR:["style","class","href","target","rel","src","alt","width","height","data-*","align"],ALLOWED_URI_REGEXP:/^(?:(?:https?|data|mailto|tel):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i,KEEP_CONTENT:!0,RETURN_TRUSTED_TYPE:!1}),ho=h.forwardRef(({border:e=!0,editorProps:t,value:r,defaultValue:n,onChange:o,onBlur:i,disabled:a,placeholder:l},c)=>{const{isEditing:d=!0,title:f,containerHeight:u="100%"}=t||{},g=h.useRef(null),C=h.useMemo(()=>{const k={toolbar:d?[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline","strike"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{align:[]}],["link","image"],["clean"]]:!1};return Pi?{...k,imageResize:{parchment:Ii.Quill.import("parchment"),modules:["Resize","DisplaySize","Toolbar"],displayStyles:{backgroundColor:"black",border:"none",color:"white"}}}:k},[d]),E=h.useMemo(()=>["header","bold","italic","underline","strike","color","background","list","bullet","indent","align","link","image","width","height"],[]),R=r!==void 0,[m,O]=h.useState(n??""),x=R?r:m,_=h.useCallback((k,$,H,I)=>{const L=fo(k??"");R||O(L),o?.(L,$,H,I)},[R,o]),S=`calc(100% - ${d?"42px":"0px"} - ${f?"40px":"0px"})`;return h.useImperativeHandle(c,()=>({getHTML:()=>x??"",getText:()=>g.current?.getEditor()?.getText()??"",insertHTML:k=>{const $=g.current?.getEditor();if(!$)return;const H=$.getSelection(!0),I=fo(k??"");$.clipboard.dangerouslyPasteHTML(H?H.index:$.getLength(),I)},insertImage:(k,$)=>{const H=g.current?.getEditor();if(!H)return;const I=H.getSelection(!0),L=typeof k=="string"?k:"";H.insertEmbed(I?I.index:H.getLength(),"image",L,"user")},getQuill:()=>g.current?.getEditor?.()??null})),s.jsxs(Rt,{border:e,style:{opacity:a?.6:1,pointerEvents:a?"none":"auto",height:typeof u=="number"?`${u}px`:u},children:[f&&s.jsx(Kt,{...f,paddingBottom:10}),s.jsx(Ii,{ref:g,readOnly:!d,value:x,onChange:_,onBlur:i,modules:C,formats:E,style:{width:"100%",height:S},placeholder:l},d?"snow":"bubble")]})}),gu=(e,t,r,n)=>fo(e??""),mu=({itemProps:e,...t})=>{const{rules:r,shouldUpdate:n,dependencies:o,noStyle:i,...a}=e;return s.jsx(v.Form.Item,{valuePropName:"value",trigger:"onChange",getValueFromEvent:gu,normalize:l=>l??"",rules:r,shouldUpdate:n,dependencies:o,noStyle:i,...a,children:s.jsx(ho,{...t})})},vu=e=>{const{itemProps:t,onChange:r,editorProps:n,...o}=e,i=v.Form.useFormInstance();if(t?.name!=null){const a=t.name;return s.jsxs(s.Fragment,{children:[s.jsx(v.Form.Item,{hidden:!0,name:a,rules:t.rules,normalize:l=>l??"",children:s.jsx("input",{type:"hidden"})}),s.jsx(ho,{...o,editorProps:n,value:i.getFieldValue(a)??"",onChange:(l,c,d,f)=>{const u=fo(l??"");i.setFieldValue(a,u),r?.(u,c,d,f)},onBlur:()=>{i.validateFields([a]).catch(()=>{})}})]})}return s.jsx(ho,{...e})},_i=Object.assign(vu,{FormItem:mu,Core:ho});var br={},rs;function yu(){if(rs)return br;rs=1;var e=uo;if(process.env.NODE_ENV==="production")br.createRoot=e.createRoot,br.hydrateRoot=e.hydrateRoot;else{var t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;br.createRoot=function(r,n){t.usingClientEntryPoint=!0;try{return e.createRoot(r,n)}finally{t.usingClientEntryPoint=!1}},br.hydrateRoot=function(r,n,o){t.usingClientEntryPoint=!0;try{return e.hydrateRoot(r,n,o)}finally{t.usingClientEntryPoint=!1}}}return br}var bu=yu();const jo=h.forwardRef(({currentPage:e,totalPages:t,pageSize:r=10,totalData:n,onPageChange:o,pageSizeOptions:i=[10,20,50,100],gridRef:a,mode:l="client",onServerPageChange:c},d)=>{const[f,u]=h.useState(r),[g,C]=h.useState(1),[E,R]=h.useState(r),[m,O]=h.useState(0);h.useEffect(()=>{u(r)},[r]),h.useEffect(()=>{u(r)},[]),h.useImperativeHandle(d,()=>({currentPage:g,pageSize:E,totalData:m,totalPages:Math.ceil(m/E),setPage:M=>{C(M),c?.(M,E)},setPageSize:M=>{R(M),C(1),c?.(1,M)},setTotalData:M=>{O(M)},reset:()=>{C(1),R(r),O(0)}}),[g,E,m,c,r]);const x=l==="client",_=x?(e||0)+1:g,P=x?(t||0)>0:m>0,S=x?P?Math.ceil((n||0)/f):0:Math.ceil(m/E),k=x?P&&n||0:m,$=Math.min(_,S||1),H=`${f}-${S}-${$}`,I=M=>{x?o?.(M-1):(C(M),c?.(M,E))},L=M=>{if(x){u(M);try{a?.current?.gridView?(a.current.gridView.setPaging(!0,M),a.current.gridView.setPage(0)):o?.(0)}catch(B){console.warn("페이지 사이즈 변경 중 오류:",B),o?.(0)}}else R(M),C(1),c?.(1,M)};return s.jsxs("div",{style:{padding:"10px",display:"flex",justifyContent:"space-between",alignItems:"center",borderTop:"1px solid #f0f0f0",backgroundColor:"#fafafa"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[s.jsx("span",{style:{fontSize:"12px"},children:"페이지당"}),s.jsx("select",{value:x?f:E,onChange:M=>L(Number(M.target.value)),disabled:!P,style:{padding:"4px 8px",border:"1px solid #d9d9d9",borderRadius:"4px",fontSize:"12px",opacity:P?1:.5},children:i.map(M=>s.jsxs("option",{value:M,children:[M,"개"]},M))}),s.jsxs("span",{style:{fontSize:"12px",color:"#666",opacity:P?1:.5},children:["/ 총 ",k,"개"]})]}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[s.jsx(v.Button,{onClick:()=>I(1),disabled:!P||$===1,style:{width:"30px",height:"24px",background:!P||$===1?"#f5f5f5":"white",cursor:!P||$===1?"not-allowed":"pointer",opacity:P?1:.5},icon:s.jsx(se.DoubleLeftOutlined,{})}),s.jsx(v.Button,{onClick:()=>I($-1),disabled:!P||$===1,style:{width:"30px",height:"24px",background:!P||$===1?"#f5f5f5":"white",cursor:!P||$===1?"not-allowed":"pointer",opacity:P?1:.5},icon:s.jsx(se.LeftOutlined,{})}),s.jsx("div",{children:(()=>{if(!P||S===0)return s.jsx(v.Button,{disabled:!0,style:{width:"30px",height:"24px"},children:"1"});const M=5;let B=1,y=Math.min(M,S);$>3&&S>M&&(B=Math.max(1,$-2),y=Math.min(S,B+M-1),y===S&&(B=Math.max(1,y-M+1)));const b=[];for(let w=B;w<=y;w++)b.push(s.jsx(v.Button,{onClick:()=>I(w),style:{width:"30px",height:"24px",background:$===w?"#1890ff":"white",color:$===w?"white":"black",cursor:"pointer"},children:w},w));return b})()},H),s.jsx(v.Button,{onClick:()=>I($+1),disabled:!P||$>=S,style:{width:"30px",height:"24px",background:!P||$>=S?"#f5f5f5":"white",cursor:!P||$>=S?"not-allowed":"pointer",opacity:P?1:.5},icon:s.jsx(se.RightOutlined,{})}),s.jsx(v.Button,{onClick:()=>I(S),disabled:!P||$>=S,style:{width:"30px",height:"24px",background:!P||$>=S?"#f5f5f5":"white",cursor:!P||$>=S?"not-allowed":"pointer",opacity:P?1:.5},icon:s.jsx(se.DoubleRightOutlined,{})})]})]})});jo.displayName="BwgPagination";const xu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZZDLDcJADETHUe7QQVJC6AAqACoAKkCcESh8JI60kBKgg3TA0kE6gAISzHgj0BJ8sWw/j2cXCCI7aD446g2diDp1aWyWaz9sxmHhNlJSyUCDnlQeQpEKm5UCDwgqvHBnTji4MvcEKGw3FsVFDeCmCCbMYwIpQY4wMnX5mj5pKrXfTFSxc1sp/o03yLlZaoSpRFhme53/QF4FmNl9txbH8wuC5893tEo1PZivBs6/sgVXBlv9BpvVRX62Og6eAAAAAElFTkSuQmCC",Cu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZVDbDcIwDHSiqL90AzoCI5S/fvQBEwATIDYoE7BCRwjqAtmAsEE3gAlqzlFBKbXknJ2cL5cQRcF13SIf9Bd63mmHdcN5nsbbJm6UtY6bxlGaCunNZZmTUpniqhpQvIhZ8AlcI+9QXYHYIb3BgQ0ETAJ36BvUmQiDuBV19TNdFBkliUyK0lX1fbc0bkyL1WF6D7UzbBxnpKCi9YHG0UPeoz6BePt+h55UxMMA9NMrPa68BDLiAxmcQh0cAM62AAAAAElFTkSuQmCC",Su=[{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"}],wu=[{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"}],Eu=({children:e})=>{const[t,r]=h.useState(!1),[n,o]=h.useState(null);return t?s.jsx("div",{style:{padding:"20px",border:"1px solid #ff4d4f",borderRadius:"6px",backgroundColor:"#fff2f0",margin:"10px"},children:s.jsx(v.Alert,{message:"리얼그리드 로드 실패",description:s.jsxs("div",{children:[s.jsx("p",{children:"리얼그리드 라이센스 또는 초기화 중 오류가 발생했습니다."}),s.jsxs("p",{style:{fontSize:"12px",color:"#666",marginTop:"8px"},children:["오류: ",n?.message||"알 수 없는 오류"]}),s.jsx(v.Button,{type:"primary",size:"small",style:{marginTop:"8px"},onClick:()=>{r(!1),o(null),window.location.reload()},children:"다시 시도"})]}),type:"error",showIcon:!0})}):s.jsx(ju,{onError:i=>{console.error("BwgGrid 에러:",i),o(i),r(!0)},children:e})};class ju extends h.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 Ml=h.forwardRef(({type:e="nrml",gridDivStyle:t,gridDivClassName:r,gridColumns:n,gridOptions:o,gridEvents:i,bindRef:a,gridContext:l,renderers:c,gridInitCallback:d},f)=>{const u=h.useRef(null),g=h.useRef(new Map),C=(T,F,q,W)=>{let V=[],Q=[];const z="treeNode";for(let U in T){let X=T[U];V[X[q]]=T[U];let J=V[X[F]];if(J==null||J=="-"){Q.push(X);continue}J[z]==null&&(J[z]=[]),J[z].push(X)}return Q},E=h.useCallback(T=>{const F=W=>{const V=[];return W.forEach(Q=>{Q.children&&Q.children.length>0?V.push(...F(Q.children)):V.push(Q)}),V};return F(T).map(W=>({fieldName:W.fieldName,dataType:W.dataType||"text"}))},[]),R=h.useCallback(T=>{const F=W=>{const V=[];return W.forEach(Q=>{Q.children&&Q.children.length>0?V.push(...F(Q.children)):V.push(Q)}),V};return F(T).map(W=>({...W,header:{template:W.required?`<img src='${Cu}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:W.editable?`<img src='${xu}' 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"}))},[]);h.useImperativeHandle(f,()=>({addAllData(T,F){const q=u.current?.gridView.getCurrent().dataRow;if(u.current?.dataProvider instanceof Ue.LocalDataProvider){u.current.dataProvider.clearRows();try{u.current?.gridView.showLoading(),u.current.dataProvider.setRows(T)}catch(W){console.error("fillJsonData 오류:",W)}finally{u.current?.gridView.closeLoading()}}if(u.current?.dataProvider instanceof Ue.LocalTreeDataProvider){if(u.current.dataProvider.clearRows(),F?.treeOption?.dataField==null||F?.treeOption?.parentField==null)return;const W={rows:"treeNode"};try{u.current?.gridView.showLoading();let V=C(T,F.treeOption?.parentField,F.treeOption?.dataField);u.current.dataProvider.fillJsonData({treeNode:V},W),F.treeOption.isExpand&&u.current.gridView?.expandAll()}catch(V){console.error("fillJsonData 오류:",V)}finally{u.current?.gridView.closeLoading()}}F?.isCurrent?u.current?.gridView.setCurrent({dataRow:q}):u.current?.gridView.setCurrent({dataRow:0})},getGridInstance:()=>u.current,getCurrentRow:()=>u.current?.gridView.getCurrent().dataRow??-1,getCurrentIndex:()=>u.current?.gridView.getCurrent().itemIndex??-1,gridExcelDown(T){u.current?.gridView.exportGrid({type:"excel",target:"local",allItems:!1,lookupDisplay:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!T?.indenting,header:"default",footer:"default",sheetName:"",fileName:T?.fileName||"sample.xlsx",...T})},getGridSaveData:()=>{const T=u.current?.dataProvider?.getAllStateRows();if(T===void 0)return[{}];let F=[];if(T.created!==void 0&&T.created.length>0)for(const q in T.created){let W=u.current?.dataProvider?.getJsonRow(T.created[q]);W={...W,iudFlag:"I"},F.push(W)}if(T.updated!==void 0&&T.updated.length>0)for(const q in T.updated){let W=u.current?.dataProvider?.getJsonRow(T.updated[q]);W={...W,iudFlag:"U"},F.push(W)}if(T.deleted!==void 0&&T.deleted.length>0)for(const q in T.deleted){let W=u.current?.dataProvider?.getJsonRow(T.deleted[q]);W={...W,iudFlag:"D"},F.push(W)}return F},deleteGridData:()=>{u?.current?.gridView?.getCheckedItems()?.map(F=>{let q=u?.current?.gridView?.getDataRow(F)??-1;const W=u?.current?.dataProvider?.getRowState(q);W==Ue.RowState.DELETED?(u?.current?.dataProvider?.setRowState(q,g.current.get(F)??Ue.RowState.NONE),g.current.delete(F)):W==Ue.RowState.CREATED?u?.current?.dataProvider?.setRowState(q,Ue.RowState.CREATE_AND_DELETED):W==Ue.RowState.CREATE_AND_DELETED?u?.current?.dataProvider?.setRowState(q,Ue.RowState.CREATED):(g.current.set(F,W??Ue.RowState.NONE),u?.current?.dataProvider?.setRowState(q,Ue.RowState.DELETED)),u?.current?.gridView?.checkItem(F,!1)})},_oriRowState:[{}],dp:u.current?.dataProvider??null,vw:u.current?.gridView??null}));const m=h.useCallback((T,F,q)=>{if(a!==void 0&&q>=0){let W=T.getDataSource().getJsonRow(q);a?.current?.setFieldsValue(W)}else a!==void 0&&q<0&&a?.current?.resetFields();T.setCurrent({dataRow:0}),i?.onCurrentRowChanged&&i?.onCurrentRowChanged(T,F,q)},[a,i]),O=h.useCallback((T,F,q)=>{const W=F.fieldName??"";a?.current?.getFieldInstance(W)&&a?.current.setFieldValue(W,q),i?.onEditChange&&i?.onEditChange(T,F,q)},[a,i]),x=h.useCallback((T,F,q)=>{const W=T.getOrgFieldName(q),V=T.getValue(F,q);a?.current?.setFieldValue(W,V)},[a]),_=h.useCallback((T,F,q,W)=>{const V=T.getColumn(W).name??"",Q=T.getValue(F,W);a?.current?.getFieldInstance(V)&&a?.current.setFieldValue(V,Q),i?.onCellEdited&&i?.onCellEdited(T,F,q,W)},[a,i]),P=h.useCallback((T,F,q,W)=>{if(typeof F.dataRow=="number"&&F.dataRow!=-1){var V=T.getDataSource().getRowState(F.dataRow);if(V=="deleted"||V=="createAndDeleted")return!1}return i?.onShowEditor!=null&&i?.onShowEditor(T,F,q,W),!0},[a,i]),j=h.useCallback(T=>{if(!u.current)return;const F=u.current.gridView,q=F.getDataSource();if(o?.container?.page){const W=F.getPage(),V=F.getPageCount(),Q=q.getRowCount();Y({currentPage:W,totalPages:V,totalData:Q})}},[o?.container?.page]),S=h.useCallback(()=>{if(!u.current)return;const T=u.current.gridView,F=T.getDataSource(),q=["onKeyDown"],W=["onRowInserted"];Object.keys(i??{}).map(V=>{q.includes(V)?T[V+"Add"]=i?.[V]:T[V]=i?.[V],W.includes(V)?F[V+"Add"]=i?.[V]:F[V]=i?.[V]}),F instanceof Ue.LocalDataProvider&&(F.onRowInserted=(V,Q)=>{Q<0||(setTimeout(function(){T?.setCurrent({dataRow:Q})},1),V.onRowInsertedAdd!==void 0&&V.onRowInsertedAdd(V,Q))}),T.onKeyDown=function(V,Q){if(Q.code=="Space"){let z=V.getSelectedItems(!0);for(const U in z)V.isCheckable(z[U])&&(V.isCheckedItem(z[U])?V.checkItem(z[U],!1,!1):V.checkItem(z[U],!0,!1))}return V.onKeyDownAdd!==void 0&&V.onKeyDownAdd(V,Q),!0},u.current.gridView.onCurrentRowChanged=m,u.current.gridView.onEditChange=O,u.current.gridView.getDataSource().onValueChanged=x,u.current.gridView.onCellEdited=_,u.current.gridView.onShowEditor=P,u.current.gridView.onDataLoadComplated=j},[m,O,x,_,P,j]),k=h.useCallback(T=>{if(T){try{T.gridView.setSortingOptions({enabled:!0}),T.gridView.sortMode=Ue.SortMode.EXPLICIT,T.gridView.editorOptions.viewGridInside=!0,T.gridView instanceof Ue.TreeView&&T.gridView.setTreeOptions({expandWhenSetData:Ue.ExpandWhenSetData.REMAIN_AND_EXPAND,expanderIconStyle:Ue.TreeExpanderIconStyle.SQUARE,iconVisible:!1,lineVisible:!0}),T.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||Ue.SelectionStyle.ROWS,fitStyle:o?.display?.fitStyle||Ue.GridFitStyle.FILL,useAlternateRowStyle:o?.display?.useAlternateRowStyle||!1}),T.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}),T.gridView.setCopyOptions({singleMode:o?.copy?.singleMode||!1}),T.gridView.setPasteOptions({selectBlockPaste:!0,checkReadOnly:!0,throwValidationError:!1}),T.gridView.header.height=o?.header?.height||43,T.gridView.header.styleName=o?.header?.styleName||"bwgGridHeader",o?.container?.radio?T.gridView.setCheckBar({exclusive:o?.container?.radio||!1}):T.gridView.setCheckBar({visible:o?.container?.check||!1,showAll:o?.container?.checkAll||!1}),T.gridView.setStateBar({visible:o?.container?.state||!1}),T.gridView.rowIndicator.visible=o?.container?.indicator||!1,T.gridView instanceof Ue.GridView&&(T.gridView.groupPanel.visible=o?.container?.panel||!1),T.gridView.setFooters({visible:o?.container?.footer||!1}),T.gridView.setHeader({visible:o?.container?.header||!0}),T.gridView.formatOptions.numberFormat="#,##0"}catch(F){console.log("그리드 옵션 설정 중 오류:",F)}try{T.gridView instanceof Ue.TreeView?T.gridView.setContextMenu(wu):T.gridView.setContextMenu(Su),T.gridView.onContextMenuItemClicked=function(F,q,W){if(!(!W||!W.column)){if(q.tag=="excel")B(F,{isTitle:!1},l?.excel);else if(q.tag=="showIndentExcel")B(F,{isTitle:!1,treeBlank:!0},l?.excel);else if(q.tag=="withTitleExcel")B(F,{isTitle:!0,treeBlank:!1},l?.excel);else if(q.tag=="filter")y(F,q);else if(q.tag=="fixedCol"){const Q=F.getDataSource().getFieldIndex(W.column);F.setFixedOptions({colCount:Q})}else if(q.tag=="fixedRow")F.setFixedOptions({rowCount:(W.itemIndex||0)+1});else if(q.tag=="fixedCancel")F.setFixedOptions({colCount:0,rowCount:0});else if(q.tag=="hide")F.setColumnProperty(W.column,"visible",!1),F._hideCols[F._hideCols.length]=W.column;else if(q.tag=="hideClear")for(var V=0;V<F._hideCols.length;V++)F.setColumnProperty(F._hideCols[V],"visible",!0)}}}catch(F){console.log("컨텍스트 설정 중 오류:",F)}}},[o]),$=T=>{if(!(!c||c.length===0))try{c.forEach(F=>{const{name:q,renderer:W}=F;if(q&&W){const V=typeof W=="function"?new W:W;T.gridView.registerCustomRenderer(q,V)}})}catch(F){console.error("커스텀 렌더러 초기화 중 오류:",F)}},H=T=>{T.onPageChanged=(F,q)=>{Y(W=>({...W,currentPage:q}))},T.onPageCountChanged=(F,q)=>{Y(W=>({...W,totalPages:q}))}},I=T=>{u.current?.gridView&&u.current.gridView.setPage(T)},L=T=>{if(o?.layout?.colspan&&o.layout.colspan.length>0&&o?.layout?.colspan.forEach(F=>{const q=T.gridView.layoutByColumn(F.fieldName);if(q){const W=F.span;q.spanCallback=function(V,Q,z){return W}}}),n&&n.length>0&&n.some(q=>q.children&&q.children.length>0))try{(()=>{const W=JSON.parse(JSON.stringify(n)),V=[],Q=z=>{const U=[];return z.children.map(X=>{if(X.children&&X.children.length>0){const J=Q(X),ne=X.header?.text||X.fieldName,oe=T.gridView.getColumnProperty(X.fieldName,"header");delete X.children,delete X.header;let be={name:X.fieldName,header:{text:oe?.text||ne,template:oe?.template,values:oe?.values,visible:oe?.visible??!0},items:J,...X};U.push(be)}else U.push(X.fieldName)}),U};W.map(z=>{if(z.children&&z.children.length>0){const U=Q(z),X=z.header?.text||z.fieldName,J=z.header?.visible??!0,ne=T.gridView.getColumnProperty(z.fieldName,"header");delete z.children,delete z.header;const oe={name:z.fieldName,header:{text:ne?.text||X,template:ne?.template,values:ne?.values,visible:ne?.visible||J},items:U,...z};V.push(oe)}else V.push(z.fieldName)}),console.log("Final Layout!!",V),T.gridView.setColumnLayout(V)})()}catch(q){console.error("컬럼 레이아웃 설정 오류:",q)}},M=()=>{if(u.current){if(e==="nrml"){const T=u.current;if(k(T),$(T),n&&n.length>0){const F=E(n),q=R(n);T.gridView.getDataSource().setFields(F),T.gridView.setColumns(q)}if(L(T),o?.container?.page){const F=o?.pagingOption?.pageSize||10;T.gridView.setPaging(!0,F),H(T.gridView)}}else{const T=u.current;if(k(T),$(T),n&&n.length>0){const F=E(n),q=R(n);T.gridView.getDataSource().setFields(F),T.gridView.setColumns(q)}L(u.current)}setTimeout(()=>{if(d){const T=typeof f=="object"&&f!==null?f.current:null;d(T)}},0)}},B=(T,F,q)=>{const W=T.getDataSource();let V=q?.footer==null?"default":q.footer;W.getRowCount()<1&&(V="hidden");let Q={type:"excel",target:"local",allItems:!1,lookupDisplay:!0,compatibility:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!F?.treeBlank,footer:V,sheetName:"",documentTitle:{},documentSubtitle:{},documentTail:{},fileName:q?.fileName||"sample.xlsx"};W instanceof Ue.LocalTreeDataProvider&&(Q.indenting=!!F?.treeBlank),q?.isCellMerge==!0&&(Q.separateRows=!1),_e.isEmpty(q?.sheetName)==!1&&(Q.sheetName=q?.sheetName),F?.isTitle&&(Q.documentTitle={message:_e.isSafeEmpty(q?.mainTitle,"No Title"),visible:!0,styleName:"documentStyle",spaceTop:1,spaceBottom:0,height:43},_e.isEmpty(q?.subTitle)==!1&&(Q.documentSubtitle={message:q?.subTitle,visible:!0,styleName:"center",height:20}),_e.isEmpty(q?.tailTitle)==!1&&(Q.documentTail={message:q?.tailTitle,visible:!0,styleName:"documentStyle"})),T.exportGrid(Q)},y=(T,F)=>{const q=T.getDataSource(),W=q.getOrgFieldNames();if(F.checked)for(var V=0;V<W.length;V++){let z=[],U=q.getDistinctValues(W[V])??[];if(U.length==0)continue;let X=T.columnByName(W[V]);for(var Q=0;Q<U.length;Q++){if(U[Q]==null)continue;let J=X.values!=null&&X.values.indexOf(U[Q])!=-1?X?.labels?.[X.values.indexOf(U[Q])]:U[Q];_e.isEmpty(J)&&(_e.isEmpty(U[Q])?J=" ":J=U[Q]);let ne="";U[Q]==null?ne="value="+U[Q]:ne="value='"+U[Q]+"'",z.push({name:J,criteria:ne})}T.setColumnFilters(W[V],z)}else for(var V=0;V<W.length;V++)T.clearColumnFilters(W[V]),T.activateAllColumnFilters(W[V],!1),T.clearColumnFilters(W[V])};h.useEffect(()=>{if(u.current&&u.current.gridView)if(e==="nrml"){const T=u.current;k(T)}else{const T=u.current;k(T)}},[e,o,k]),h.useEffect(()=>{!u.current||!n||n.length===0||M()},[n]),h.useEffect(()=>{u.current&&S()},[i,S]);const[b,w]=h.useState(!1),[A,N]=h.useState(""),D=h.useRef(null),[K,Y]=h.useState({currentPage:0,totalPages:0,totalData:0});h.useEffect(()=>{Y({currentPage:0,totalPages:0,totalData:0})},[]),h.useEffect(()=>{b&&setTimeout(()=>{D.current?.focus?.()},0)},[b]),h.useEffect(()=>()=>{if(u.current)try{const T=u.current;T.gridView&&(T.gridView.onDataLoadComplated=void 0,T.gridView.onCurrentRowChanged=void 0,T.gridView.onCellClicked=void 0,T.gridView.onCellDblClicked=void 0,T.gridView.onEditRowChanged=void 0,T.gridView.onItemChecked=void 0,T.gridView.onItemAllChecked=void 0,T.gridView.onColumnCheckedChanged=void 0,T.gridView.onCellButtonClicked=void 0,T.gridView.onEditChange=void 0,T.gridView.onCellEdited=void 0,T.gridView.onKeyUp=void 0,T.gridView.onKeyDown=void 0,T.gridView.onWheel=void 0,T.gridView.onValidateColumn=void 0,T.gridView.onValidateRow=void 0,T.gridView.onValidationFail=void 0,T.gridView.onRowInserting=void 0,T.gridView.onCellItemClicked=void 0,T.gridView.onShowEditor=void 0,T.gridView.getDataSource()&&(T.gridView.getDataSource().clearRows(),T.gridView.getDataSource().setFields([])),T.gridView.getDataSource().clearRows())}catch(T){console.warn("⚠️ BwgGrid cleanup error:",T)}},[]);const G=h.useCallback(T=>{te(T)},[]),te=h.useCallback(T=>{const F=u.current?.gridView;if(F?.isFiltered()){console.log("EE:: [그리드 Filtering 으로 인한 오류] 그리드 내 Filter를 해제 후 진행해 주십시오.");return}if(F?.commit(),_e.isEmpty(T))return;const q=F?.getCurrent().itemIndex??-1;if(q<0)return;const W={value:T,startIndex:q+1,wrap:!0,caseSensitive:!1,partialMatch:!0},V=F?.searchCell(W);F?.setCurrent(V)},[]),le=h.useCallback(T=>{T.key==="Escape"&&(T.preventDefault(),w(!1))},[]),ge=h.useCallback(T=>{T.ctrlKey&&T.code==="KeyF"&&(T.preventDefault(),N(""),w(!b))},[b]),de={searchRow:G,searchEnter:te,handleCloseKeyword:le,handleSearch:ge},ve=h.useMemo(()=>({...t,position:"relative",width:t?.width||"100%",height:t?.height||"100%"}),[t]);return s.jsxs(Eu,{children:[s.jsxs("div",{style:ve,className:r,onKeyDown:T=>de.handleSearch(T),children:[b&&s.jsx("div",{className:"grid-search-box",children:s.jsxs(v.Flex,{gap:3,children:[s.jsx(v.ConfigProvider,{theme:{components:{Button:{controlHeight:32},Input:{controlHeight:32}}},children:s.jsxs(v.Space.Compact,{children:[s.jsx(v.Button,{icon:s.jsx(se.SearchOutlined,{})}),s.jsx(v.Input,{ref:D,value:A,name:"srchField",autoComplete:"off",onKeyUp:T=>de.handleCloseKeyword(T),onChange:T=>N(T.target.value),onPressEnter:T=>de.searchEnter(T)})]})}),s.jsx(v.Button,{variant:"solid",icon:s.jsx(se.CloseOutlined,{}),onClick:()=>w(!1)})]})}),e==="nrml"?s.jsx(za.RealGridReact,{ref:u,autoGenerateField:!0,onInitialized:M}):s.jsx(za.RealTreeReact,{ref:u,autoGenerateField:!1,onInitialized:M})]}),o?.container?.page&&s.jsx(jo,{currentPage:K.currentPage,totalPages:K.totalPages,pageSize:o?.pagingOption?.pageSize,totalData:K.totalData,onPageChange:I,pageSizeOptions:o?.pagingOption?.pageSizeOptions,gridRef:u})]})}),no=e=>({initContent(t){this._root=bu.createRoot(t)},render(t,r,n,o){const i=this._root;i&&e(t,r,n,o,i)},clearContent(t){const r=this._root;r&&setTimeout(()=>{r&&(r.unmount(),this._root=null)},0)},canClick(t){return!0},click(){return{}}}),Ru=h.memo(({title:e,border:t,children:r,titleChildren:n})=>{const o=h.useMemo(()=>({components:{Form:{labelColor:"#9A9A9A"},Select:{colorTextDisabled:"#000"}}}),[]);return s.jsxs(Ot,{type:"vertical",children:[s.jsx(Kt,{title:e,icons:{type:"antd",icon:"InfoCircleTwoTone"},children:n}),s.jsx(Rt,{border:!1,children:s.jsx(v.ConfigProvider,{theme:o,children:r})})]})}),Ot=({type:e="horizontal",layoutAlign:t="left",verticalAlign:r,className:n,style:o,children:i})=>s.jsx("div",{style:o,className:`bwgview-content-layout ${e=="horizontal"?"hz-layout":"vt-layout"} layout-${t} ${r&&`vertical-${r}`} ${n||""}`,children:i}),ns=(e,t)=>{const r=window.innerWidth,n=window.innerHeight,o=Math.min(Math.max(e.x,0),Math.max(0,r-t.width)),i=Math.min(Math.max(e.y,0),Math.max(0,n-t.height));return{x:o,y:i}},ku=({buttons:e,popupData:t,onButtonClick:r})=>!e||e.length===0?null:s.jsx("div",{style:{display:"flex",gap:6},children:e.map(n=>s.jsx(v.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))}),wn=({popup:e,popupEvent:t,onClose:r,children:n})=>{const o=h.useRef(null),i=e?.popupTitle||"팝업",a=e?.width||800,l=e?.height||600,c=e?.buttonList?.map((S,k)=>({key:S.btnId||`btn_${k}`,text:S.btnNm,type:S.btnId==="CLOSE"?"default":"primary",disabled:S.enblYn!=="Y",danger:!1}))||[],f=c.some(S=>S.key==="CLOSE"||S.key==="close")?c:[...c,{key:"CLOSE",text:"닫기",type:"default",disabled:!1,danger:!1}],[u,g]=h.useState(a),[C,E]=h.useState(l),R=h.useMemo(()=>{const S=Math.max(0,(window.innerWidth-a)/2),k=Math.max(0,(window.innerHeight-l)/2);return{x:S,y:k}},[a,l]),[m,O]=h.useState(R),x=(S,k)=>{if(S==="CLOSE"||S==="close"){e?.close?.()||r?.();return}t&&t[S]?t[S]():e?.close?.()||r?.()},_=(S,k)=>{const $=ns({x:k.x,y:k.y},{width:u,height:C});O($)},P=(S,k,$,H,I)=>{const L={width:parseInt($.style.width,10),height:parseInt($.style.height,10)},M=ns(I,L);g(L.width),E(L.height),O(M)},j=()=>o.current??document.body;return s.jsxs("div",{style:{position:"fixed",inset:0,zIndex:1e3},children:[s.jsx("div",{onClick:r,style:{position:"absolute",inset:0,backgroundColor:"rgba(0,0,0,0.3)",zIndex:0}}),s.jsxs(kl.Rnd,{className:"bwg-popup",size:{width:u,height:C},position:m,bounds:"window",minWidth:400,minHeight:300,onDragStop:_,onResizeStop:P,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:[s.jsx("div",{className:"bwg-popup-content",style:{overflow:"hidden",borderRadius:20,height:"100%"},children:s.jsx(pa,{getPopupContainer:j,children:s.jsx(Ot,{type:"vertical",children:s.jsx(v.Card,{className:"popup-drag-container",title:s.jsx("div",{className:"drag-handle",style:{display:"flex",alignItems:"center",gap:8},children:i}),style:{width:"100%",height:"100%"},styles:{body:{height:"calc(100% - 77px)",padding:20,overflow:"auto"}},extra:s.jsx(ku,{buttons:f,popupData:e,onButtonClick:x}),children:s.jsx("div",{className:"rnd-cancel",style:{height:"100%"},children:s.jsx(Mr.SearchBoxProvider,{children:n})})})})})}),s.jsx("div",{ref:o,className:"bwg-popup-portal-root",style:{position:"relative"}})]})]})},Ou=({children:e,...t})=>s.jsx(v.Row,{...t,className:"bwg-row",children:e}),$u=({children:e})=>s.jsx("div",{style:{height:"100%",padding:"20px 30px 26px"},children:s.jsx("div",{style:{width:"100%",height:"100%",border:"1px solid #ddd",borderRadius:"15px",background:"#fff"},children:e})}),Tu=({rowKey:e="id",columns:t,dataSource:r,loading:n=!1,rowSelection:o,size:i="middle",pagination:a=!1,...l})=>s.jsx(v.Table,{rowKey:e,columns:t,dataSource:r,loading:n,rowSelection:o,size:i,pagination:a,bordered:!0,scroll:{x:"max-content"},locale:{emptyText:"데이터가 없습니다."},...l}),Iu=e=>{const{type:t="card",animated:r=!0,...n}=e;return s.jsx(v.Tabs,{type:t,animated:r,...n})};function Mi(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 Pu(e){if(Array.isArray(e))return Mi(e)}function Nl(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ga(e,t){if(e){if(typeof e=="string")return Mi(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)?Mi(e,t):void 0}}function _u(){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 rt(e){return Pu(e)||Nl(e)||ga(e)||_u()}function Ze(){return Ze=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},Ze.apply(null,arguments)}var Mu={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 Al(e){if(Array.isArray(e))return e}function Nu(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,l=[],c=!0,d=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);c=!0);}catch(f){d=!0,o=f}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(d)throw o}}return l}}function Dl(){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 re(e,t){return Al(e)||Nu(e,t)||ga(e,t)||Dl()}function we(e){"@babel/helpers - typeof";return we=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},we(e)}function Au(e,t){if(we(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(we(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bl(e){var t=Au(e,"string");return we(t)=="symbol"?t:t+""}function ee(e,t,r){return(t=Bl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Du(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 $t(e,t){if(e==null)return{};var r,n,o=Du(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var ri={exports:{}};/*!
|
|
4
|
-
Copyright (c) 2018 Jed Watson.
|
|
5
|
-
Licensed under the MIT License (MIT), see
|
|
6
|
-
http://jedwatson.github.io/classnames
|
|
7
|
-
*/var os;function Bu(){return os||(os=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(i=o(i,n(l)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var l in i)t.call(i,l)&&i[l]&&(a=o(a,l));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(ri)),ri.exports}var zu=Bu();const pe=So(zu),et=Math.round;function ni(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 is=(e,t,r)=>r===0?e:e/100;function en(e,t){const r=t||255;return e>r?r:e<0?0:e}let Qe=class zl{constructor(t){ee(this,"isValid",!0),ee(this,"r",0),ee(this,"g",0),ee(this,"b",0),ee(this,"a",1),ee(this,"_h",void 0),ee(this,"_s",void 0),ee(this,"_l",void 0),ee(this,"_v",void 0),ee(this,"_max",void 0),ee(this,"_min",void 0),ee(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(i){return n.startsWith(i)};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 zl)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=en(t.r),this.g=en(t.g),this.b=en(t.b),this.a=typeof t.a=="number"?en(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(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.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=et(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,i=l=>(n[l]-this[l])*o+this[l],a={r:et(i("r")),g:et(i("g")),b:et(i("b")),a:et(i("a")*100)/100};return this._c(a)}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=i=>et((this[i]*this.a+r[i]*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 i=et(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=et(this.getSaturation()*100),n=et(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]=en(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,i){return parseInt(r[o]+r[i||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 g=et(n*255);this.r=g,this.g=g,this.b=g}let i=0,a=0,l=0;const c=t/60,d=(1-Math.abs(2*n-1))*r,f=d*(1-Math.abs(c%2-1));c>=0&&c<1?(i=d,a=f):c>=1&&c<2?(i=f,a=d):c>=2&&c<3?(a=d,l=f):c>=3&&c<4?(a=f,l=d):c>=4&&c<5?(i=f,l=d):c>=5&&c<6&&(i=d,l=f);const u=n-d/2;this.r=et((i+u)*255),this.g=et((a+u)*255),this.b=et((l+u)*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 i=et(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const a=t/60,l=Math.floor(a),c=a-l,d=et(n*(1-r)*255),f=et(n*(1-r*c)*255),u=et(n*(1-r*(1-c))*255);switch(l){case 0:this.g=u,this.b=d;break;case 1:this.r=f,this.b=d;break;case 2:this.r=d,this.b=u;break;case 3:this.r=d,this.g=f;break;case 4:this.r=u,this.g=d;break;case 5:default:this.g=d,this.b=f;break}}fromHsvString(t){const r=ni(t,is);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=ni(t,is);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=ni(t,(n,o)=>o.includes("%")?et(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}};var Wn=2,as=.16,Lu=.05,Fu=.05,Hu=.15,Ll=5,Fl=4,Vu=[{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 ss(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Wn*t:Math.round(e.h)+Wn*t:n=r?Math.round(e.h)+Wn*t:Math.round(e.h)-Wn*t,n<0?n+=360:n>=360&&(n-=360),n}function ls(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-as*t:t===Fl?n=e.s+as:n=e.s+Lu*t,n>1&&(n=1),r&&t===Ll&&n>.1&&(n=.1),n<.06&&(n=.06),Math.round(n*100)/100}function cs(e,t,r){var n;return r?n=e.v+Fu*t:n=e.v-Hu*t,n=Math.max(0,Math.min(1,n)),Math.round(n*100)/100}function un(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=new Qe(e),o=n.toHsv(),i=Ll;i>0;i-=1){var a=new Qe({h:ss(o,i,!0),s:ls(o,i,!0),v:cs(o,i,!0)});r.push(a)}r.push(n);for(var l=1;l<=Fl;l+=1){var c=new Qe({h:ss(o,l),s:ls(o,l),v:cs(o,l)});r.push(c)}return t.theme==="dark"?Vu.map(function(d){var f=d.index,u=d.amount;return new Qe(t.backgroundColor||"#141414").mix(r[f],u).toHexString()}):r.map(function(d){return d.toHexString()})}var oi={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"},Ni=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Ni.primary=Ni[5];var Ai=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Ai.primary=Ai[5];var Di=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Di.primary=Di[5];var po=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];po.primary=po[5];var Bi=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Bi.primary=Bi[5];var zi=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];zi.primary=zi[5];var Li=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Li.primary=Li[5];var Fi=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Fi.primary=Fi[5];var go=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];go.primary=go[5];var Hi=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Hi.primary=Hi[5];var Vi=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Vi.primary=Vi[5];var Wi=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Wi.primary=Wi[5];var Ki=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Ki.primary=Ki[5];var ii={red:Ni,volcano:Ai,orange:Di,gold:po,yellow:Bi,lime:zi,green:Li,cyan:Fi,blue:go,geekblue:Hi,purple:Vi,magenta:Wi,grey:Ki},ma=h.createContext({});function ds(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 Z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ds(Object(r),!0).forEach(function(n){ee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ds(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function st(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Wu(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 us="data-rc-order",fs="data-rc-priority",Ku="rc-util-key",qi=new Map;function Hl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Ku}function Ro(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function qu(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function va(e){return Array.from((qi.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Vl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!st())return null;var r=t.csp,n=t.prepend,o=t.priority,i=o===void 0?0:o,a=qu(n),l=a==="prependQueue",c=document.createElement("style");c.setAttribute(us,a),l&&i&&c.setAttribute(fs,"".concat(i)),r!=null&&r.nonce&&(c.nonce=r?.nonce),c.innerHTML=e;var d=Ro(t),f=d.firstChild;if(n){if(l){var u=(t.styles||va(d)).filter(function(g){if(!["prepend","prependQueue"].includes(g.getAttribute(us)))return!1;var C=Number(g.getAttribute(fs)||0);return i>=C});if(u.length)return d.insertBefore(c,u[u.length-1].nextSibling),c}d.insertBefore(c,f)}else d.appendChild(c);return c}function Wl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Ro(t);return(t.styles||va(r)).find(function(n){return n.getAttribute(Hl(t))===e})}function fn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Wl(e,t);if(r){var n=Ro(t);n.removeChild(r)}}function Uu(e,t){var r=qi.get(e);if(!r||!Wu(document,r)){var n=Vl("",t),o=n.parentNode;qi.set(e,o),e.removeChild(n)}}function Wt(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Ro(r),o=va(n),i=Z(Z({},r),{},{styles:o});Uu(n,i);var a=Wl(t,i);if(a){var l,c;if((l=i.csp)!==null&&l!==void 0&&l.nonce&&a.nonce!==((c=i.csp)===null||c===void 0?void 0:c.nonce)){var d;a.nonce=(d=i.csp)===null||d===void 0?void 0:d.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var f=Vl(e,i);return f.setAttribute(Hl(i),t),f}function Kl(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Gu(e){return Kl(e)instanceof ShadowRoot}function mo(e){return Gu(e)?Kl(e):null}var Ui={},ya=[],Yu=function(t){ya.push(t)};function Rr(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=ya.reduce(function(n,o){return o(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function Xu(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=ya.reduce(function(n,o){return o(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function ql(){Ui={}}function Ul(e,t,r){!t&&!Ui[r]&&(e(!1,r),Ui[r]=!0)}function Ut(e,t){Ul(Rr,e,t)}function Qu(e,t){Ul(Xu,e,t)}Ut.preMessage=Yu;Ut.resetWarned=ql;Ut.noteOnce=Qu;function Zu(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function Ju(e,t){Ut(e,"[@ant-design/icons] ".concat(t))}function hs(e){return we(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(we(e.icon)==="object"||typeof e.icon=="function")}function ps(){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[Zu(r)]=n}return t},{})}function Gi(e,t,r){return r?h.createElement(e.tag,Z(Z({key:t},ps(e.attrs)),r),(e.children||[]).map(function(n,o){return Gi(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):h.createElement(e.tag,Z({key:t},ps(e.attrs)),(e.children||[]).map(function(n,o){return Gi(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Gl(e){return un(e)[0]}function Yl(e){return e?Array.isArray(e)?e:[e]:[]}var ef=`
|
|
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
|
-
`,tf=function(t){var r=h.useContext(ma),n=r.csp,o=r.prefixCls,i=r.layer,a=ef;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` {
|
|
63
|
-
`).concat(a,`
|
|
64
|
-
}`)),h.useEffect(function(){var l=t.current,c=mo(l);Wt(a,"@ant-design-icons",{prepend:!i,csp:n,attachTo:c})},[])},rf=["icon","className","onClick","style","primaryColor","secondaryColor"],an={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function nf(e){var t=e.primaryColor,r=e.secondaryColor;an.primaryColor=t,an.secondaryColor=r||Gl(t),an.calculated=!!r}function of(){return Z({},an)}var Nr=function(t){var r=t.icon,n=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,c=$t(t,rf),d=p.useRef(),f=an;if(a&&(f={primaryColor:a,secondaryColor:l||Gl(a)}),tf(d),Ju(hs(r),"icon should be icon definiton, but got ".concat(r)),!hs(r))return null;var u=r;return u&&typeof u.icon=="function"&&(u=Z(Z({},u),{},{icon:u.icon(f.primaryColor,f.secondaryColor)})),Gi(u.icon,"svg-".concat(u.name),Z(Z({className:n,onClick:o,style:i,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:d}))};Nr.displayName="IconReact";Nr.getTwoToneColors=of;Nr.setTwoToneColors=nf;function Xl(e){var t=Yl(e),r=re(t,2),n=r[0],o=r[1];return Nr.setTwoToneColors({primaryColor:n,secondaryColor:o})}function af(){var e=Nr.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var sf=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Xl(go.primary);var Gt=p.forwardRef(function(e,t){var r=e.className,n=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,l=e.onClick,c=e.twoToneColor,d=$t(e,sf),f=p.useContext(ma),u=f.prefixCls,g=u===void 0?"anticon":u,C=f.rootClassName,E=pe(C,g,ee(ee({},"".concat(g,"-").concat(n.name),!!n.name),"".concat(g,"-spin"),!!o||n.name==="loading"),r),R=a;R===void 0&&l&&(R=-1);var m=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,O=Yl(c),x=re(O,2),_=x[0],P=x[1];return p.createElement("span",Ze({role:"img","aria-label":n.name},d,{ref:t,tabIndex:R,onClick:l,className:E}),p.createElement(Nr,{icon:n,primaryColor:_,secondaryColor:P,style:m}))});Gt.displayName="AntdIcon";Gt.getTwoToneColor=af;Gt.setTwoToneColor=Xl;var lf=function(t,r){return p.createElement(Gt,Ze({},t,{ref:r,icon:Mu}))},Ql=p.forwardRef(lf);process.env.NODE_ENV!=="production"&&(Ql.displayName="EditOutlined");var cf=Symbol.for("react.element"),df=Symbol.for("react.transitional.element"),uf=Symbol.for("react.fragment");function Zl(e){return e&&we(e)==="object"&&(e.$$typeof===cf||e.$$typeof===df)&&e.type===uf}function hn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return h.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(hn(n)):Zl(n)&&n.props?r=r.concat(hn(n.props.children,t)):r.push(n))}),r}function pn(e){return e instanceof HTMLElement||e instanceof SVGElement}function ff(e){return e&&we(e)==="object"&&pn(e.nativeElement)?e.nativeElement:pn(e)?e:null}function oo(e){var t=ff(e);if(t)return t;if(e instanceof h.Component){var r;return(r=uo.findDOMNode)===null||r===void 0?void 0:r.call(uo,e)}return null}var Kn={exports:{}},Re={};/**
|
|
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 hf(){if(gs)return Re;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"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),E;E=Symbol.for("react.module.reference");function R(m){if(typeof m=="object"&&m!==null){var O=m.$$typeof;switch(O){case e:switch(m=m.type,m){case r:case o:case n:case d:case f:return m;default:switch(m=m&&m.$$typeof,m){case l:case a:case c:case g:case u:case i:return m;default:return O}}case t:return O}}}return Re.ContextConsumer=a,Re.ContextProvider=i,Re.Element=e,Re.ForwardRef=c,Re.Fragment=r,Re.Lazy=g,Re.Memo=u,Re.Portal=t,Re.Profiler=o,Re.StrictMode=n,Re.Suspense=d,Re.SuspenseList=f,Re.isAsyncMode=function(){return!1},Re.isConcurrentMode=function(){return!1},Re.isContextConsumer=function(m){return R(m)===a},Re.isContextProvider=function(m){return R(m)===i},Re.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},Re.isForwardRef=function(m){return R(m)===c},Re.isFragment=function(m){return R(m)===r},Re.isLazy=function(m){return R(m)===g},Re.isMemo=function(m){return R(m)===u},Re.isPortal=function(m){return R(m)===t},Re.isProfiler=function(m){return R(m)===o},Re.isStrictMode=function(m){return R(m)===n},Re.isSuspense=function(m){return R(m)===d},Re.isSuspenseList=function(m){return R(m)===f},Re.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===o||m===n||m===d||m===f||m===C||typeof m=="object"&&m!==null&&(m.$$typeof===g||m.$$typeof===u||m.$$typeof===i||m.$$typeof===a||m.$$typeof===c||m.$$typeof===E||m.getModuleId!==void 0)},Re.typeOf=R,Re}var ke={};/**
|
|
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 ms;function pf(){return ms||(ms=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"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),E=!1,R=!1,m=!1,O=!1,x=!1,_;_=Symbol.for("react.module.reference");function P(z){return!!(typeof z=="string"||typeof z=="function"||z===r||z===o||x||z===n||z===d||z===f||O||z===C||E||R||m||typeof z=="object"&&z!==null&&(z.$$typeof===g||z.$$typeof===u||z.$$typeof===i||z.$$typeof===a||z.$$typeof===c||z.$$typeof===_||z.getModuleId!==void 0))}function j(z){if(typeof z=="object"&&z!==null){var U=z.$$typeof;switch(U){case e:var X=z.type;switch(X){case r:case o:case n:case d:case f:return X;default:var J=X&&X.$$typeof;switch(J){case l:case a:case c:case g:case u:case i:return J;default:return U}}case t:return U}}}var S=a,k=i,$=e,H=c,I=r,L=g,M=u,B=t,y=o,b=n,w=d,A=f,N=!1,D=!1;function K(z){return N||(N=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Y(z){return D||(D=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(z){return j(z)===a}function te(z){return j(z)===i}function le(z){return typeof z=="object"&&z!==null&&z.$$typeof===e}function ge(z){return j(z)===c}function de(z){return j(z)===r}function ve(z){return j(z)===g}function T(z){return j(z)===u}function F(z){return j(z)===t}function q(z){return j(z)===o}function W(z){return j(z)===n}function V(z){return j(z)===d}function Q(z){return j(z)===f}ke.ContextConsumer=S,ke.ContextProvider=k,ke.Element=$,ke.ForwardRef=H,ke.Fragment=I,ke.Lazy=L,ke.Memo=M,ke.Portal=B,ke.Profiler=y,ke.StrictMode=b,ke.Suspense=w,ke.SuspenseList=A,ke.isAsyncMode=K,ke.isConcurrentMode=Y,ke.isContextConsumer=G,ke.isContextProvider=te,ke.isElement=le,ke.isForwardRef=ge,ke.isFragment=de,ke.isLazy=ve,ke.isMemo=T,ke.isPortal=F,ke.isProfiler=q,ke.isStrictMode=W,ke.isSuspense=V,ke.isSuspenseList=Q,ke.isValidElementType=P,ke.typeOf=j})()),ke}var vs;function gf(){return vs||(vs=1,process.env.NODE_ENV==="production"?Kn.exports=hf():Kn.exports=pf()),Kn.exports}var ai=gf();function ba(e,t,r){var n=p.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var mf=Number(h.version.split(".")[0]),xa=function(t,r){typeof t=="function"?t(r):we(t)==="object"&&t&&"current"in t&&(t.current=r)},En=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(i){r.forEach(function(a){xa(a,i)})}},Ca=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ba(function(){return En.apply(void 0,r)},r,function(o,i){return o.length!==i.length||o.every(function(a,l){return a!==i[l]})})},ko=function(t){var r,n;if(!t)return!1;if(Jl(t)&&mf>=19)return!0;var o=ai.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((r=o.prototype)!==null&&r!==void 0&&r.render)&&o.$$typeof!==ai.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==ai.ForwardRef)};function Jl(e){return h.isValidElement(e)&&!Zl(e)}var Sa=function(t){if(t&&Jl(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},Yi=p.createContext(null);function vf(e){var t=e.children,r=e.onBatchResize,n=p.useRef(0),o=p.useRef([]),i=p.useContext(Yi),a=p.useCallback(function(l,c,d){n.current+=1;var f=n.current;o.current.push({size:l,element:c,data:d}),Promise.resolve().then(function(){f===n.current&&(r?.(o.current),o.current=[])}),i?.(l,c,d)},[r,i]);return p.createElement(Yi.Provider,{value:a},t)}var ec=(function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(o,i){return o[0]===r?(n=i,!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,i=this.__entries__;o<i.length;o++){var a=i[o];r.call(n,a[1],a[0])}},t})()})(),Xi=typeof window<"u"&&typeof document<"u"&&window.document===document,vo=(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")()})(),yf=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(vo):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),bf=2;function xf(e,t){var r=!1,n=!1,o=0;function i(){r&&(r=!1,e()),n&&l()}function a(){yf(i)}function l(){var c=Date.now();if(r){if(c-o<bf)return;n=!0}else r=!0,n=!1,setTimeout(a,t);o=c}return l}var Cf=20,Sf=["top","right","bottom","left","width","height","size","weight"],wf=typeof MutationObserver<"u",Ef=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=xf(this.refresh.bind(this),Cf)}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(){!Xi||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),wf?(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(){!Xi||!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=Sf.some(function(i){return!!~n.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),tc=(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}),kr=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||vo}),rc=Oo(0,0,0,0);function yo(e){return parseFloat(e)||0}function ys(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,o){var i=e["border-"+o+"-width"];return n+yo(i)},0)}function jf(e){for(var t=["top","right","bottom","left"],r={},n=0,o=t;n<o.length;n++){var i=o[n],a=e["padding-"+i];r[i]=yo(a)}return r}function Rf(e){var t=e.getBBox();return Oo(0,0,t.width,t.height)}function kf(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return rc;var n=kr(e).getComputedStyle(e),o=jf(n),i=o.left+o.right,a=o.top+o.bottom,l=yo(n.width),c=yo(n.height);if(n.boxSizing==="border-box"&&(Math.round(l+i)!==t&&(l-=ys(n,"left","right")+i),Math.round(c+a)!==r&&(c-=ys(n,"top","bottom")+a)),!$f(e)){var d=Math.round(l+i)-t,f=Math.round(c+a)-r;Math.abs(d)!==1&&(l-=d),Math.abs(f)!==1&&(c-=f)}return Oo(o.left,o.top,l,c)}var Of=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof kr(e).SVGGraphicsElement}:function(e){return e instanceof kr(e).SVGElement&&typeof e.getBBox=="function"}})();function $f(e){return e===kr(e).document.documentElement}function Tf(e){return Xi?Of(e)?Rf(e):kf(e):rc}function If(e){var t=e.x,r=e.y,n=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return tc(a,{x:t,y:r,width:n,height:o,top:r,right:t+n,bottom:o+r,left:t}),a}function Oo(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Pf=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Oo(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Tf(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})(),_f=(function(){function e(t,r){var n=If(r);tc(this,{target:t,contentRect:n})}return e})(),Mf=(function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new ec,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 kr(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Pf(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 kr(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 _f(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})(),nc=typeof WeakMap<"u"?new WeakMap:new ec,oc=(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=Ef.getInstance(),n=new Mf(t,r,this);nc.set(this,n)}return e})();["observe","unobserve","disconnect"].forEach(function(e){oc.prototype[e]=function(){var t;return(t=nc.get(this))[e].apply(t,arguments)}});var Nf=(function(){return typeof vo.ResizeObserver<"u"?vo.ResizeObserver:oc})(),Vt=new Map;function ic(e){e.forEach(function(t){var r,n=t.target;(r=Vt.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var ac=new Nf(ic);process.env.NODE_ENV;process.env.NODE_ENV;function Af(e,t){Vt.has(e)||(Vt.set(e,new Set),ac.observe(e)),Vt.get(e).add(t)}function Df(e,t){Vt.has(e)&&(Vt.get(e).delete(t),Vt.get(e).size||(ac.unobserve(e),Vt.delete(e)))}function yt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bf(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,Bl(n.key),n)}}function bt(e,t,r){return t&&Bf(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qi(e,t){return Qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Qi(e,t)}function jn(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&&Qi(e,t)}function bo(e){return bo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},bo(e)}function sc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sc=function(){return!!e})()}function sn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zf(e,t){if(t&&(we(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sn(e)}function Rn(e){var t=sc();return function(){var r,n=bo(e);if(t){var o=bo(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return zf(this,r)}}var Lf=(function(e){jn(r,e);var t=Rn(r);function r(){return yt(this,r),t.apply(this,arguments)}return bt(r,[{key:"render",value:function(){return this.props.children}}]),r})(p.Component);function Ff(e,t){var r=e.children,n=e.disabled,o=p.useRef(null),i=p.useRef(null),a=p.useContext(Yi),l=typeof r=="function",c=l?r(o):r,d=p.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!l&&p.isValidElement(c)&&ko(c),u=f?Sa(c):null,g=Ca(u,o),C=function(){var O;return oo(o.current)||(o.current&&we(o.current)==="object"?oo((O=o.current)===null||O===void 0?void 0:O.nativeElement):null)||oo(i.current)};p.useImperativeHandle(t,function(){return C()});var E=p.useRef(e);E.current=e;var R=p.useCallback(function(m){var O=E.current,x=O.onResize,_=O.data,P=m.getBoundingClientRect(),j=P.width,S=P.height,k=m.offsetWidth,$=m.offsetHeight,H=Math.floor(j),I=Math.floor(S);if(d.current.width!==H||d.current.height!==I||d.current.offsetWidth!==k||d.current.offsetHeight!==$){var L={width:H,height:I,offsetWidth:k,offsetHeight:$};d.current=L;var M=k===Math.round(j)?j:k,B=$===Math.round(S)?S:$,y=Z(Z({},L),{},{offsetWidth:M,offsetHeight:B});a?.(y,m,_),x&&Promise.resolve().then(function(){x(y,m)})}},[]);return p.useEffect(function(){var m=C();return m&&!n&&Af(m,R),function(){return Df(m,R)}},[o.current,n]),p.createElement(Lf,{ref:i},f?p.cloneElement(c,{ref:g}):c)}var lc=p.forwardRef(Ff);process.env.NODE_ENV!=="production"&&(lc.displayName="SingleObserver");var Hf="rc-observer-key";function Vf(e,t){var r=e.children,n=typeof r=="function"?[r]:hn(r);return process.env.NODE_ENV!=="production"&&(n.length>1?Rr(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&Rr(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(o,i){var a=o?.key||"".concat(Hf,"-").concat(i);return p.createElement(lc,Ze({},e,{key:a,ref:i===0?t:void 0}),o)})}var Ar=p.forwardRef(Vf);process.env.NODE_ENV!=="production"&&(Ar.displayName="ResizeObserver");Ar.Collection=vf;var bs=process.env.NODE_ENV!=="test"&&st()?p.useLayoutEffect:p.useEffect,Fe=function(t,r){var n=p.useRef(!0);bs(function(){return t(n.current)},r),bs(function(){return n.current=!1,function(){n.current=!0}},[])},xs=function(t,r){Fe(function(n){if(!n)return t()},r)};function ft(e){var t=p.useRef();t.current=e;var r=p.useCallback(function(){for(var n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(i))},[]);return r}function gn(e){var t=p.useRef(!1),r=p.useState(e),n=re(r,2),o=n[0],i=n[1];p.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(l,c){c&&t.current||i(l)}return[o,a]}function si(e){return e!==void 0}function Or(e,t){var r=t||{},n=r.defaultValue,o=r.value,i=r.onChange,a=r.postState,l=gn(function(){return si(o)?o:si(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),c=re(l,2),d=c[0],f=c[1],u=o!==void 0?o:d,g=a?a(u):u,C=ft(i),E=gn([u]),R=re(E,2),m=R[0],O=R[1];xs(function(){var _=m[0];d!==_&&C(d,_)},[m]),xs(function(){si(o)||f(o)},[o]);var x=ft(function(_,P){f(_,P),O([u],P)});return[g,x]}function cc(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}var Wf=function(t){if(st()&&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 Cs(e,t){return Wf(e)}function mn(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 Kf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function o(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=n.has(i);if(Ut(!c,"Warning: There may be circular references"),c)return!1;if(i===a)return!0;if(r&&l>1)return!1;n.add(i);var d=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var f=0;f<i.length;f++)if(!o(i[f],a[f],d))return!1;return!0}if(i&&a&&we(i)==="object"&&we(a)==="object"){var u=Object.keys(i);return u.length!==Object.keys(a).length?!1:u.every(function(g){return o(i[g],a[g],d)})}return!1}return o(e,t)}var qf="%";function Zi(e){return e.join(qf)}var Uf=(function(){function e(t){yt(this,e),ee(this,"instanceId",void 0),ee(this,"cache",new Map),ee(this,"extracted",new Set),this.instanceId=t}return bt(e,[{key:"get",value:function(r){return this.opGet(Zi(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(Zi(r),n)}},{key:"opUpdate",value:function(r,n){var o=this.cache.get(r),i=n(o);i===null?this.cache.delete(r):this.cache.set(r,i)}}]),e})(),vn="data-token-hash",Nt="data-css-hash",Gf="data-cache-path",nr="__cssinjs_instance__";function Yf(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Nt,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(o){o[nr]=o[nr]||e,o[nr]===e&&document.head.insertBefore(o,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Nt,"]"))).forEach(function(o){var i=o.getAttribute(Nt);if(n[i]){if(o[nr]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else n[i]=!0})}return new Uf(e)}var kn=p.createContext({hashPriority:"low",cache:Yf(),defaultCache:!0});function Xf(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 wa=(function(){function e(){yt(this,e),ee(this,"cache",void 0),ee(this,"keys",void 0),ee(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return bt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return r.forEach(function(l){if(!a)a=void 0;else{var c;a=(c=a)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(l)}}),(n=a)!==null&&n!==void 0&&n.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===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 i=this.keys.reduce(function(d,f){var u=re(d,2),g=u[1];return o.internalGet(f)[1]<g?[f,o.internalGet(f)[1]]:d},[this.keys[0],this.cacheCallTimes]),a=re(i,1),l=a[0];this.delete(l)}this.keys.push(r)}var c=this.cache;r.forEach(function(d,f){if(f===r.length-1)c.set(d,{value:[n,o.cacheCallTimes++]});else{var u=c.get(d);u?u.map||(u.map=new Map):c.set(d,{map:new Map}),c=c.get(d).map}})}},{key:"deleteByPath",value:function(r,n){var o=r.get(n[0]);if(n.length===1){var i;return o.map?r.set(n[0],{map:o.map}):r.delete(n[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&r.delete(n[0]),a}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!Xf(n,r)}),this.deleteByPath(this.cache,r)}}]),e})();ee(wa,"MAX_CACHE_SIZE",20);ee(wa,"MAX_CACHE_OFFSET",5);var Ss=0,dc=(function(){function e(t){yt(this,e),ee(this,"derivatives",void 0),ee(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Ss,t.length===0&&Rr(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Ss+=1}return bt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,o){return o(r,n)},void 0)}}]),e})(),li=new wa;function Ji(e){var t=Array.isArray(e)?e:[e];return li.has(t)||li.set(t,new dc(t)),li.get(t)}var Qf=new WeakMap,ci={};function Zf(e,t){for(var r=Qf,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(ci)||r.set(ci,e()),r.get(ci)}var ws=new WeakMap;function ln(e){var t=ws.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof dc?t+=n.id:n&&we(n)==="object"?t+=ln(n):t+=n}),t=mn(t),ws.set(e,t)),t}function Es(e,t){return mn("".concat(t,"_").concat(ln(e)))}var ea=st();function $e(e){return typeof e=="number"?"".concat(e,"px"):e}var io=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()},Jf=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 i=re(o,2),a=i[0],l=i[1];return"".concat(a,":").concat(l,";")}).join(""),"}"):""},uc=function(t,r,n){var o={},i={};return Object.entries(t).forEach(function(a){var l,c,d=re(a,2),f=d[0],u=d[1];if(n!=null&&(l=n.preserve)!==null&&l!==void 0&&l[f])i[f]=u;else if((typeof u=="string"||typeof u=="number")&&!(n!=null&&(c=n.ignore)!==null&&c!==void 0&&c[f])){var g,C=io(f,n?.prefix);o[C]=typeof u=="number"&&!(n!=null&&(g=n.unitless)!==null&&g!==void 0&&g[f])?"".concat(u,"px"):String(u),i[f]="var(".concat(C,")")}}),[i,Jf(o,r,{scope:n?.scope})]},eh=Z({},p),js=eh.useInsertionEffect,th=function(t,r,n){p.useMemo(t,n),Fe(function(){return r(!0)},n)},rh=js?function(e,t,r){return js(function(){return e(),t()},r)}:th,nh=Z({},p),oh=nh.useInsertionEffect,ih=function(t){var r=[],n=!1;function o(i){if(n){process.env.NODE_ENV!=="production"&&Rr(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(i)}return p.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),o},ah=function(){return function(t){t()}},sh=typeof oh<"u"?ih:ah;function lh(){return!1}var ta=!1;function ch(){return ta}const dh=process.env.NODE_ENV==="production"?lh:ch;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var qn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(qn&&typeof qn.webpackHotUpdate=="function"){var uh=qn.webpackHotUpdate;qn.webpackHotUpdate=function(){return ta=!0,setTimeout(function(){ta=!1},0),uh.apply(void 0,arguments)}}}function Ea(e,t,r,n,o){var i=p.useContext(kn),a=i.cache,l=[e].concat(rt(t)),c=Zi(l),d=sh([c]),f=dh(),u=function(R){a.opUpdate(c,function(m){var O=m||[void 0,void 0],x=re(O,2),_=x[0],P=_===void 0?0:_,j=x[1],S=j;process.env.NODE_ENV!=="production"&&j&&f&&(n?.(S,f),S=null);var k=S||r(),$=[P,k];return R?R($):$})};p.useMemo(function(){u()},[c]);var g=a.opGet(c);process.env.NODE_ENV!=="production"&&!g&&(u(),g=a.opGet(c));var C=g[1];return rh(function(){o?.(C)},function(E){return u(function(R){var m=re(R,2),O=m[0],x=m[1];return E&&O===0&&o?.(C),[O+1,x]}),function(){a.opUpdate(c,function(R){var m=R||[],O=re(m,2),x=O[0],_=x===void 0?0:x,P=O[1],j=_-1;return j===0?(d(function(){(E||!a.opGet(c))&&n?.(P,!1)}),null):[_-1,P]})}},[c]),C}var fh={},hh=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",ur=new Map;function ph(e){ur.set(e,(ur.get(e)||0)+1)}function gh(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(vn,'="').concat(e,'"]'));r.forEach(function(n){if(n[nr]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var mh=0;function vh(e,t){ur.set(e,(ur.get(e)||0)-1);var r=new Set;ur.forEach(function(n,o){n<=0&&r.add(o)}),ur.size-r.size>mh&&r.forEach(function(n){gh(n,t),ur.delete(n)})}var yh=function(t,r,n,o){var i=n.getDerivativeToken(t),a=Z(Z({},i),r);return o&&(a=o(a)),a},bh="token";function xh(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=h.useContext(kn),o=n.cache.instanceId,i=n.container,a=r.salt,l=a===void 0?"":a,c=r.override,d=c===void 0?fh:c,f=r.formatToken,u=r.getComputedToken,g=r.cssVar,C=Zf(function(){return Object.assign.apply(Object,[{}].concat(rt(t)))},t),E=ln(C),R=ln(d),m=g?ln(g):"",O=Ea(bh,[l,e.id,E,R,m],function(){var x,_=u?u(C,d,e):yh(C,d,e,f),P=Z({},_),j="";if(g){var S=uc(_,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve}),k=re(S,2);_=k[0],j=k[1]}var $=Es(_,l);_._tokenKey=$,P._tokenKey=Es(P,l);var H=(x=g?.key)!==null&&x!==void 0?x:$;_._themeKey=H,ph(H);var I="".concat(hh,"-").concat(mn($));return _._hashId=I,[_,I,P,j,g?.key||""]},function(x){vh(x[0]._themeKey,o)},function(x){var _=re(x,4),P=_[0],j=_[3];if(g&&j){var S=Wt(j,mn("css-variables-".concat(P._themeKey)),{mark:Nt,prepend:"queue",attachTo:i,priority:-999});S[nr]=o,S.setAttribute(vn,P._themeKey)}});return O}var Ch={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},fc="comm",hc="rule",pc="decl",Sh="@import",wh="@namespace",Eh="@keyframes",jh="@layer",gc=Math.abs,ja=String.fromCharCode;function mc(e){return e.trim()}function ao(e,t,r){return e.replace(t,r)}function Rh(e,t,r){return e.indexOf(t,r)}function jr(e,t){return e.charCodeAt(t)|0}function $r(e,t,r){return e.slice(t,r)}function Mt(e){return e.length}function kh(e){return e.length}function Un(e,t){return t.push(e),e}var $o=1,Tr=1,vc=0,vt=0,Ge=0,Dr="";function Ra(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:$o,column:Tr,length:a,return:"",siblings:l}}function Oh(){return Ge}function $h(){return Ge=vt>0?jr(Dr,--vt):0,Tr--,Ge===10&&(Tr=1,$o--),Ge}function kt(){return Ge=vt<vc?jr(Dr,vt++):0,Tr++,Ge===10&&(Tr=1,$o++),Ge}function or(){return jr(Dr,vt)}function so(){return vt}function To(e,t){return $r(Dr,e,t)}function yn(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 Th(e){return $o=Tr=1,vc=Mt(Dr=e),vt=0,[]}function Ih(e){return Dr="",e}function di(e){return mc(To(vt-1,ra(e===91?e+2:e===40?e+1:e)))}function Ph(e){for(;(Ge=or())&&Ge<33;)kt();return yn(e)>2||yn(Ge)>3?"":" "}function _h(e,t){for(;--t&&kt()&&!(Ge<48||Ge>102||Ge>57&&Ge<65||Ge>70&&Ge<97););return To(e,so()+(t<6&&or()==32&&kt()==32))}function ra(e){for(;kt();)switch(Ge){case e:return vt;case 34:case 39:e!==34&&e!==39&&ra(Ge);break;case 40:e===41&&ra(e);break;case 92:kt();break}return vt}function Mh(e,t){for(;kt()&&e+Ge!==57;)if(e+Ge===84&&or()===47)break;return"/*"+To(t,vt-1)+"*"+ja(e===47?e:kt())}function Nh(e){for(;!yn(or());)kt();return To(e,vt)}function Ah(e){return Ih(lo("",null,null,null,[""],e=Th(e),0,[0],e))}function lo(e,t,r,n,o,i,a,l,c){for(var d=0,f=0,u=a,g=0,C=0,E=0,R=1,m=1,O=1,x=0,_="",P=o,j=i,S=n,k=_;m;)switch(E=x,x=kt()){case 40:if(E!=108&&jr(k,u-1)==58){Rh(k+=ao(di(x),"&","&\f"),"&\f",gc(d?l[d-1]:0))!=-1&&(O=-1);break}case 34:case 39:case 91:k+=di(x);break;case 9:case 10:case 13:case 32:k+=Ph(E);break;case 92:k+=_h(so()-1,7);continue;case 47:switch(or()){case 42:case 47:Un(Dh(Mh(kt(),so()),t,r,c),c),(yn(E||1)==5||yn(or()||1)==5)&&Mt(k)&&$r(k,-1,void 0)!==" "&&(k+=" ");break;default:k+="/"}break;case 123*R:l[d++]=Mt(k)*O;case 125*R:case 59:case 0:switch(x){case 0:case 125:m=0;case 59+f:O==-1&&(k=ao(k,/\f/g,"")),C>0&&(Mt(k)-u||R===0&&E===47)&&Un(C>32?ks(k+";",n,r,u-1,c):ks(ao(k," ","")+";",n,r,u-2,c),c);break;case 59:k+=";";default:if(Un(S=Rs(k,t,r,d,f,o,l,_,P=[],j=[],u,i),i),x===123)if(f===0)lo(k,t,S,S,P,i,u,l,j);else{switch(g){case 99:if(jr(k,3)===110)break;case 108:if(jr(k,2)===97)break;default:f=0;case 100:case 109:case 115:}f?lo(e,S,S,n&&Un(Rs(e,S,S,0,0,o,l,_,o,P=[],u,j),j),o,j,u,l,n?P:j):lo(k,S,S,S,[""],j,0,l,j)}}d=f=C=0,R=O=1,_=k="",u=a;break;case 58:u=1+Mt(k),C=E;default:if(R<1){if(x==123)--R;else if(x==125&&R++==0&&$h()==125)continue}switch(k+=ja(x),x*R){case 38:O=f>0?1:(k+="\f",-1);break;case 44:l[d++]=(Mt(k)-1)*O,O=1;break;case 64:or()===45&&(k+=di(kt())),g=or(),f=u=Mt(_=k+=Nh(so())),x++;break;case 45:E===45&&Mt(k)==2&&(R=0)}}return i}function Rs(e,t,r,n,o,i,a,l,c,d,f,u){for(var g=o-1,C=o===0?i:[""],E=kh(C),R=0,m=0,O=0;R<n;++R)for(var x=0,_=$r(e,g+1,g=gc(m=a[R])),P=e;x<E;++x)(P=mc(m>0?C[x]+" "+_:ao(_,/&\f/g,C[x])))&&(c[O++]=P);return Ra(e,t,r,o===0?hc:l,c,d,f,u)}function Dh(e,t,r,n){return Ra(e,t,r,fc,ja(Oh()),$r(e,2,-2),0,n)}function ks(e,t,r,n,o){return Ra(e,t,r,pc,$r(e,0,n),$r(e,n+1,-1),n,o)}function na(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Bh(e,t,r,n){switch(e.type){case jh:if(e.children.length)break;case Sh:case wh:case pc:return e.return=e.return||e.value;case fc:return"";case Eh:return e.return=e.value+"{"+na(e.children,n)+"}";case hc:if(!Mt(e.value=e.props.join(",")))return""}return Mt(r=na(e.children,n))?e.return=e.value+"{"+r+"}":""}function yc(e,t){var r=t.path,n=t.parentSelectors;Ut(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var zh=function(t,r,n){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof r!="string"||i.indexOf(r)===-1&&!o.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&yc("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},Lh=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&yc("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Os="data-ant-cssinjs-cache-path",bc="_FILE_STYLE__",fr,xc=!0;function Fh(){if(!fr&&(fr={},st())){var e=document.createElement("div");e.className=Os,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 i=o.split(":"),a=re(i,2),l=a[0],c=a[1];fr[l]=c});var r=document.querySelector("style[".concat(Os,"]"));if(r){var n;xc=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function Hh(e){return Fh(),!!fr[e]}function Vh(e){var t=fr[e],r=null;if(t&&st())if(xc)r=bc;else{var n=document.querySelector("style[".concat(Nt,'="').concat(fr[e],'"]'));n?r=n.innerHTML:delete fr[e]}return[r,t]}var Cc="_skip_check_",Sc="_multi_value_";function ui(e){var t=na(Ah(e),Bh);return t.replace(/\{%%%\:[^;];}/g,";")}function Wh(e){return we(e)==="object"&&e&&(Cc in e||Sc in e)}function $s(e,t,r){if(!t)return e;var n=".".concat(t),o=r==="low"?":where(".concat(n,")"):n,i=e.split(",").map(function(a){var l,c=a.trim().split(/\s+/),d=c[0]||"",f=((l=d.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return d="".concat(f).concat(o).concat(d.slice(f.length)),[d].concat(rt(c.slice(1))).join(" ")});return i.join(",")}var Kh=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,i=n.injectHash,a=n.parentSelectors,l=r.hashId,c=r.layer,d=r.path,f=r.hashPriority,u=r.transformers,g=u===void 0?[]:u,C=r.linters,E=C===void 0?[]:C,R="",m={};function O(P){var j=P.getName(l);if(!m[j]){var S=e(P.style,r,{root:!1,parentSelectors:a}),k=re(S,1),$=k[0];m[j]="@keyframes ".concat(P.getName(l)).concat($)}}function x(P){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return P.forEach(function(S){Array.isArray(S)?x(S,j):S&&j.push(S)}),j}var _=x(Array.isArray(t)?t:[t]);return _.forEach(function(P){var j=typeof P=="string"&&!o?{}:P;if(typeof j=="string")R+="".concat(j,`
|
|
81
|
-
`);else if(j._keyframe)O(j);else{var S=g.reduce(function(k,$){var H;return($==null||(H=$.visit)===null||H===void 0?void 0:H.call($,k))||k},j);Object.keys(S).forEach(function(k){var $=S[k];if(we($)==="object"&&$&&(k!=="animationName"||!$._keyframe)&&!Wh($)){var H=!1,I=k.trim(),L=!1;(o||i)&&l?I.startsWith("@")?H=!0:I==="&"?I=$s("",l,f):I=$s(k,l,f):o&&!l&&(I==="&"||I==="")&&(I="",L=!0);var M=e($,r,{root:L,injectHash:H,parentSelectors:[].concat(rt(a),[I])}),B=re(M,2),y=B[0],b=B[1];m=Z(Z({},m),b),R+="".concat(I).concat(y)}else{let N=function(D,K){process.env.NODE_ENV!=="production"&&(we($)!=="object"||!($!=null&&$[Cc]))&&[zh,Lh].concat(rt(E)).forEach(function(te){return te(D,K,{path:d,hashId:l,parentSelectors:a})});var Y=D.replace(/[A-Z]/g,function(te){return"-".concat(te.toLowerCase())}),G=K;!Ch[D]&&typeof G=="number"&&G!==0&&(G="".concat(G,"px")),D==="animationName"&&K!==null&&K!==void 0&&K._keyframe&&(O(K),G=K.getName(l)),R+="".concat(Y,":").concat(G,";")};var w,A=(w=$?.value)!==null&&w!==void 0?w:$;we($)==="object"&&$!==null&&$!==void 0&&$[Sc]&&Array.isArray(A)?A.forEach(function(D){N(k,D)}):N(k,A)}})}}),o?c&&(R&&(R="@layer ".concat(c.name," {").concat(R,"}")),c.dependencies&&(m["@layer ".concat(c.name)]=c.dependencies.map(function(P){return"@layer ".concat(P,", ").concat(c.name,";")}).join(`
|
|
82
|
-
`))):R="{".concat(R,"}"),[R,m]};function wc(e,t){return mn("".concat(e.join("%")).concat(t))}function qh(){return null}var Uh="style";function oa(e,t){var r=e.token,n=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,c=e.order,d=c===void 0?0:c,f=p.useContext(kn),u=f.autoClear,g=f.mock,C=f.defaultCache,E=f.hashPriority,R=f.container,m=f.ssrInline,O=f.transformers,x=f.linters,_=f.cache,P=f.layer,j=r._tokenKey,S=[j];P&&S.push("layer"),S.push.apply(S,rt(n));var k=ea;process.env.NODE_ENV!=="production"&&g!==void 0&&(k=g==="client");var $=Ea(Uh,S,function(){var B=S.join("|");if(Hh(B)){var y=Vh(B),b=re(y,2),w=b[0],A=b[1];if(w)return[w,j,A,{},l,d]}var N=t(),D=Kh(N,{hashId:o,hashPriority:E,layer:P?i:void 0,path:n.join("-"),transformers:O,linters:x}),K=re(D,2),Y=K[0],G=K[1],te=ui(Y),le=wc(S,te);return[te,j,le,G,l,d]},function(B,y){var b=re(B,3),w=b[2];(y||u)&&ea&&fn(w,{mark:Nt,attachTo:R})},function(B){var y=re(B,4),b=y[0],w=y[2],A=y[3];if(k&&b!==bc){var N={mark:Nt,prepend:P?!1:"queue",attachTo:R,priority:d},D=typeof a=="function"?a():a;D&&(N.csp={nonce:D});var K=[],Y=[];Object.keys(A).forEach(function(te){te.startsWith("@layer")?K.push(te):Y.push(te)}),K.forEach(function(te){Wt(ui(A[te]),"_layer-".concat(te),Z(Z({},N),{},{prepend:!0}))});var G=Wt(b,w,N);G[nr]=_.instanceId,G.setAttribute(vn,j),process.env.NODE_ENV!=="production"&&G.setAttribute(Gf,S.join("|")),Y.forEach(function(te){Wt(ui(A[te]),"_effect-".concat(te),N)})}}),H=re($,3),I=H[0],L=H[1],M=H[2];return function(B){var y;return!m||k||!C?y=p.createElement(qh,null):y=p.createElement("style",Ze({},ee(ee({},vn,L),Nt,M),{dangerouslySetInnerHTML:{__html:I}})),p.createElement(p.Fragment,null,y,B)}}var Gh="cssVar",Yh=function(t,r){var n=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,c=t.scope,d=c===void 0?"":c,f=h.useContext(kn),u=f.cache.instanceId,g=f.container,C=l._tokenKey,E=[].concat(rt(t.path),[n,d,C]),R=Ea(Gh,E,function(){var m=r(),O=uc(m,n,{prefix:o,unitless:i,ignore:a,scope:d}),x=re(O,2),_=x[0],P=x[1],j=wc(E,P);return[_,P,j,n]},function(m){var O=re(m,3),x=O[2];ea&&fn(x,{mark:Nt,attachTo:g})},function(m){var O=re(m,3),x=O[1],_=O[2];if(x){var P=Wt(x,_,{mark:Nt,prepend:"queue",attachTo:g,priority:-999});P[nr]=u,P.setAttribute(vn,n)}});return R},xt=(function(){function e(t,r){yt(this,e),ee(this,"name",void 0),ee(this,"style",void 0),ee(this,"_keyframe",!0),this.name=t,this.style=r}return bt(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 Xh(e){return Al(e)||Nl(e)||ga(e)||Dl()}function ia(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function Ec(e,t,r,n){if(!t.length)return r;var o=Xh(t),i=o[0],a=o.slice(1),l;return!e&&typeof i=="number"?l=[]:Array.isArray(e)?l=rt(e):l=Z({},e),n&&r===void 0&&a.length===1?delete l[i][a[0]]:l[i]=Ec(l[i],a,r,n),l}function fi(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!ia(e,t.slice(0,-1))?e:Ec(e,t,r,n)}function Qh(e){return we(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Ts(e){return Array.isArray(e)?[]:{}}var Zh=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Jh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Ts(t[0]);return t.forEach(function(o){function i(a,l){var c=new Set(l),d=ia(o,a),f=Array.isArray(d);if(f||Qh(d)){if(!c.has(d)){c.add(d);var u=ia(n,a);f?n=fi(n,a,[]):(!u||we(u)!=="object")&&(n=fi(n,a,Ts(d))),Zh(d).forEach(function(g){i([].concat(rt(a),[g]),c)})}}else n=fi(n,a,d)}i([])}),n}function jc(){}let Ft=null;function ep(){Ft=null,ql()}let Rc=jc;process.env.NODE_ENV!=="production"&&(Rc=(e,t,r)=>{Ut(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&ep()});const On=Rc,kc=p.createContext({}),At=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=p.useContext(kc),r=(n,o,i)=>{if(!n)if(t===!1&&o==="deprecated"){const a=Ft;Ft||(Ft={}),Ft[e]=Ft[e]||[],Ft[e].includes(i||"")||Ft[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",Ft)}else process.env.NODE_ENV!=="production"&&On(n,e,i)};return r.deprecated=(n,o,i,a)=>{r(n,"deprecated",`\`${o}\` is deprecated. Please use \`${i}\` instead.${a?` ${a}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=jc,e},tp=h.createContext(void 0);var rp={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"},np={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},op=Z(Z({},np),{},{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 Oc={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Is={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"]},op),timePickerLocale:Object.assign({},Oc)},dt="${label} is not a valid ${type}",Ir={locale:"en",Pagination:rp,DatePicker:Is,TimePicker:Oc,Calendar:Is,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:dt,method:dt,array:dt,object:dt,number:dt,date:dt,boolean:dt,integer:dt,float:dt,regexp:dt,email:dt,url:dt,hex:dt},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({},Ir.Modal);let co=[];const Ps=()=>co.reduce((e,t)=>Object.assign(Object.assign({},e),t),Ir.Modal);function ip(e){if(e){const t=Object.assign({},e);return co.push(t),Ps(),()=>{co=co.filter(r=>r!==t),Ps()}}Object.assign({},Ir.Modal)}const ka=h.createContext(void 0),ap=(e,t)=>{const r=p.useContext(ka),n=p.useMemo(()=>{var i;const a=Ir[e],l=(i=r?.[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,r]),o=p.useMemo(()=>{const i=r?.locale;return r?.exist&&!i?Ir.locale:i},[r]);return[n,o]},$c="internalMark",Tc=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const i=At("LocaleProvider");process.env.NODE_ENV!=="production"&&i(n===$c,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}p.useEffect(()=>ip(t?.Modal),[t]);const o=p.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return p.createElement(ka.Provider,{value:o},r)};process.env.NODE_ENV!=="production"&&(Tc.displayName="LocaleProvider");const Ic={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"},bn=Object.assign(Object.assign({},Ic),{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 sp(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){const{colorSuccess:n,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:l,colorBgBase:c,colorTextBase:d}=e,f=t(l),u=t(n),g=t(o),C=t(i),E=t(a),R=r(c,d),m=e.colorLink||e.colorInfo,O=t(m),x=new Qe(C[1]).mix(new Qe(C[3]),50).toHexString();return Object.assign(Object.assign({},R),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:u[1],colorSuccessBgHover:u[2],colorSuccessBorder:u[3],colorSuccessBorderHover:u[4],colorSuccessHover:u[4],colorSuccess:u[6],colorSuccessActive:u[7],colorSuccessTextHover:u[8],colorSuccessText:u[9],colorSuccessTextActive:u[10],colorErrorBg:C[1],colorErrorBgHover:C[2],colorErrorBgFilledHover:x,colorErrorBgActive:C[3],colorErrorBorder:C[3],colorErrorBorderHover:C[4],colorErrorHover:C[5],colorError:C[6],colorErrorActive:C[7],colorErrorTextHover:C[8],colorErrorText:C[9],colorErrorTextActive:C[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:E[1],colorInfoBgHover:E[2],colorInfoBorder:E[3],colorInfoBorderHover:E[4],colorInfoHover:E[4],colorInfo:E[6],colorInfoActive:E[7],colorInfoTextHover:E[8],colorInfoText:E[9],colorInfoTextActive:E[10],colorLinkHover:O[4],colorLink:O[6],colorLinkActive:O[7],colorBgMask:new Qe("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const lp=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 cp(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},lp(n))}const dp=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function up(e){return(e+8)/e}function fp(e){const t=Array.from({length:10}).map((r,n)=>{const o=n-1,i=e*Math.pow(Math.E,o/5),a=n>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>({size:r,lineHeight:up(r)}))}const hp=e=>{const t=fp(e),r=t.map(f=>f.size),n=t.map(f=>f.lineHeight),o=r[1],i=r[0],a=r[2],l=n[1],c=n[0],d=n[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:l,lineHeightLG:d,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(d*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function pp(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 gt=(e,t)=>new Qe(e).setA(t).toRgbString(),tn=(e,t)=>new Qe(e).darken(t).toHexString(),gp=e=>{const t=un(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]}},mp=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:gt(n,.88),colorTextSecondary:gt(n,.65),colorTextTertiary:gt(n,.45),colorTextQuaternary:gt(n,.25),colorFill:gt(n,.15),colorFillSecondary:gt(n,.06),colorFillTertiary:gt(n,.04),colorFillQuaternary:gt(n,.02),colorBgSolid:gt(n,1),colorBgSolidHover:gt(n,.75),colorBgSolidActive:gt(n,.95),colorBgLayout:tn(r,4),colorBgContainer:tn(r,0),colorBgElevated:tn(r,0),colorBgSpotlight:gt(n,.85),colorBgBlur:"transparent",colorBorder:tn(r,15),colorBorderSecondary:tn(r,6)}};function vp(e){oi.pink=oi.magenta,ii.pink=ii.magenta;const t=Object.keys(Ic).map(r=>{const n=e[r]===oi[r]?ii[r]:un(e[r]);return Array.from({length:10},()=>1).reduce((o,i,a)=>(o[`${r}-${a+1}`]=n[a],o[`${r}${a+1}`]=n[a],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),sp(e,{generateColorPalettes:gp,generateNeutralColorPalettes:mp})),hp(e.fontSize)),pp(e)),dp(e)),cp(e))}const Pc=Ji(vp),aa={token:bn,override:{override:bn},hashed:!0},_c=h.createContext(aa),sa="ant",Oa="anticon",yp=["outlined","borderless","filled","underlined"],bp=(e,t)=>t||(e?`${sa}-${e}`:sa),qt=p.createContext({getPrefixCls:bp,iconPrefixCls:Oa}),_s={};function Io(e){const t=p.useContext(qt),{getPrefixCls:r,direction:n,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:_s,styles:_s},i),{getPrefixCls:r,direction:n,getPopupContainer:o})}const xp=`-ant-${Date.now()}-${Math.random()}`;function Cp(e,t){const r={},n=(a,l)=>{let c=a.clone();return c=l?.(c)||c,c.toRgbString()},o=(a,l)=>{const c=new Qe(a),d=un(c.toRgbString());r[`${l}-color`]=n(c),r[`${l}-color-disabled`]=d[1],r[`${l}-color-hover`]=d[4],r[`${l}-color-active`]=d[6],r[`${l}-color-outline`]=c.clone().setA(.2).toRgbString(),r[`${l}-color-deprecated-bg`]=d[0],r[`${l}-color-deprecated-border`]=d[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new Qe(t.primaryColor),l=un(a.toRgbString());l.forEach((d,f)=>{r[`primary-${f+1}`]=d}),r["primary-color-deprecated-l-35"]=n(a,d=>d.lighten(35)),r["primary-color-deprecated-l-20"]=n(a,d=>d.lighten(20)),r["primary-color-deprecated-t-20"]=n(a,d=>d.tint(20)),r["primary-color-deprecated-t-50"]=n(a,d=>d.tint(50)),r["primary-color-deprecated-f-12"]=n(a,d=>d.setA(d.a*.12));const c=new Qe(l[0]);r["primary-color-active-deprecated-f-30"]=n(c,d=>d.setA(d.a*.3)),r["primary-color-active-deprecated-d-02"]=n(c,d=>d.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(a=>`--${e}-${a}: ${r[a]};`).join(`
|
|
87
|
-
`)}
|
|
88
|
-
}
|
|
89
|
-
`.trim()}function Sp(e,t){const r=Cp(e,t);st()?Wt(r,`${xp}-dynamic-theme`):process.env.NODE_ENV!=="production"&&On(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const xn=p.createContext(!1),wp=({children:e,disabled:t})=>{const r=p.useContext(xn);return p.createElement(xn.Provider,{value:t??r},e)},Pr=p.createContext(void 0),Ep=({children:e,size:t})=>{const r=p.useContext(Pr);return p.createElement(Pr.Provider,{value:t||r},e)};function jp(){const e=h.useContext(xn),t=h.useContext(Pr);return{componentDisabled:e,componentSize:t}}var Mc=bt(function e(){yt(this,e)}),Nc="CALC_UNIT",Rp=new RegExp(Nc,"g");function hi(e){return typeof e=="number"?"".concat(e).concat(Nc):e}var kp=(function(e){jn(r,e);var t=Rn(r);function r(n,o){var i;yt(this,r),i=t.call(this),ee(sn(i),"result",""),ee(sn(i),"unitlessCssVar",void 0),ee(sn(i),"lowPriority",void 0);var a=we(n);return i.unitlessCssVar=o,n instanceof r?i.result="(".concat(n.result,")"):a==="number"?i.result=hi(n):a==="string"&&(i.result=n),i}return bt(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(hi(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(hi(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 i=this,a=o||{},l=a.unit,c=!0;return typeof l=="boolean"?c=l:Array.from(this.unitlessCssVar).some(function(d){return i.result.includes(d)})&&(c=!1),this.result=this.result.replace(Rp,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r})(Mc),Op=(function(e){jn(r,e);var t=Rn(r);function r(n){var o;return yt(this,r),o=t.call(this),ee(sn(o),"result",0),n instanceof r?o.result=n.result:typeof n=="number"&&(o.result=n),o}return bt(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})(Mc),$p=function(t,r){var n=t==="css"?kp:Op;return function(o){return new n(o,r)}},Ms=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 Ns(e,t,r,n){var o=Z({},t[e]);if(n!=null&&n.deprecatedTokens){var i=n.deprecatedTokens;i.forEach(function(l){var c=re(l,2),d=c[0],f=c[1];if(process.env.NODE_ENV!=="production"&&Ut(!(o!=null&&o[d]),"Component Token `".concat(String(d),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(f),"` instead.")),o!=null&&o[d]||o!=null&&o[f]){var u;(u=o[f])!==null&&u!==void 0||(o[f]=o?.[d])}})}var a=Z(Z({},r),o);return Object.keys(a).forEach(function(l){a[l]===t[l]&&delete a[l]}),a}var Ac=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",la=!0;function Yt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Ac)return Object.assign.apply(Object,[{}].concat(t));la=!1;var n={};return t.forEach(function(o){if(we(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(n,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),la=!0,n}var As={};function Tp(){}var Ip=function(t){var r,n=t,o=Tp;return Ac&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(a,l){if(la){var c;(c=r)===null||c===void 0||c.add(l)}return a[l]}}),o=function(a,l){var c;As[a]={global:Array.from(r),component:Z(Z({},(c=As[a])===null||c===void 0?void 0:c.component),l)}}),{token:n,keys:r,flush:o}};function Ds(e,t,r){if(typeof r=="function"){var n;return r(Yt(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function Pp(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(i){return $e(i)}).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(i){return $e(i)}).join(","),")")}}}var _p=1e3*60*10,Mp=(function(){function e(){yt(this,e),ee(this,"map",new Map),ee(this,"objectIDMap",new WeakMap),ee(this,"nextID",0),ee(this,"lastAccessBeat",new Map),ee(this,"accessBeat",0)}return bt(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(i){return i&&we(i)==="object"?"obj_".concat(n.getObjectID(i)):"".concat(we(i),"_").concat(i)});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,i){n-o>_p&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e})(),Bs=new Mp;function Np(e,t){return h.useMemo(function(){var r=Bs.get(t);if(r)return r;var n=e();return Bs.set(t,n),n},t)}var Ap=function(){return{}};function Dp(e){var t=e.useCSP,r=t===void 0?Ap:t,n=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,l=e.getCompUnitless;function c(g,C,E,R){var m=Array.isArray(g)?g[0]:g;function O($){return"".concat(String(m)).concat($.slice(0,1).toUpperCase()).concat($.slice(1))}var x=R?.unitless||{},_=typeof l=="function"?l(g):{},P=Z(Z({},_),{},ee({},O("zIndexPopup"),!0));Object.keys(x).forEach(function($){P[O($)]=x[$]});var j=Z(Z({},R),{},{unitless:P,prefixToken:O}),S=f(g,C,E,j),k=d(m,E,j);return function($){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,I=S($,H),L=re(I,2),M=L[1],B=k(H),y=re(B,2),b=y[0],w=y[1];return[b,M,w]}}function d(g,C,E){var R=E.unitless,m=E.injectStyle,O=m===void 0?!0:m,x=E.prefixToken,_=E.ignore,P=function(k){var $=k.rootCls,H=k.cssVar,I=H===void 0?{}:H,L=n(),M=L.realToken;return Yh({path:[g],prefix:I.prefix,key:I.key,unitless:R,ignore:_,token:M,scope:$},function(){var B=Ds(g,M,C),y=Ns(g,M,B,{deprecatedTokens:E?.deprecatedTokens});return Object.keys(B).forEach(function(b){y[x(b)]=y[b],delete y[b]}),y}),null},j=function(k){var $=n(),H=$.cssVar;return[function(I){return O&&H?h.createElement(h.Fragment,null,h.createElement(P,{rootCls:k,cssVar:H,component:g}),I):I},H?.key]};return j}function f(g,C,E){var R=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=Array.isArray(g)?g:[g,g],O=re(m,1),x=O[0],_=m.join("-"),P=e.layer||{name:"antd"};return function(j){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:j,k=n(),$=k.theme,H=k.realToken,I=k.hashId,L=k.token,M=k.cssVar,B=o(),y=B.rootPrefixCls,b=B.iconPrefixCls,w=r(),A=M?"css":"js",N=Np(function(){var le=new Set;return M&&Object.keys(R.unitless||{}).forEach(function(ge){le.add(io(ge,M.prefix)),le.add(io(ge,Ms(x,M.prefix)))}),$p(A,le)},[A,x,M?.prefix]),D=Pp(A),K=D.max,Y=D.min,G={theme:$,token:L,hashId:I,nonce:function(){return w.nonce},clientOnly:R.clientOnly,layer:P,order:R.order||-999};typeof i=="function"&&oa(Z(Z({},G),{},{clientOnly:!1,path:["Shared",y]}),function(){return i(L,{prefix:{rootPrefixCls:y,iconPrefixCls:b},csp:w})});var te=oa(Z(Z({},G),{},{path:[_,j,b]}),function(){if(R.injectStyle===!1)return[];var le=Ip(L),ge=le.token,de=le.flush,ve=Ds(x,H,E),T=".".concat(j),F=Ns(x,H,ve,{deprecatedTokens:R.deprecatedTokens});M&&ve&&we(ve)==="object"&&Object.keys(ve).forEach(function(Q){ve[Q]="var(".concat(io(Q,Ms(x,M.prefix)),")")});var q=Yt(ge,{componentCls:T,prefixCls:j,iconCls:".".concat(b),antCls:".".concat(y),calc:N,max:K,min:Y},M?ve:F),W=C(q,{hashId:I,prefixCls:j,rootPrefixCls:y,iconPrefixCls:b});de(x,F);var V=typeof a=="function"?a(q,j,S,R.resetFont):null;return[R.resetStyle===!1?null:V,W]});return[te,I]}}function u(g,C,E){var R=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},m=f(g,C,E,Z({resetStyle:!1,order:-998},R)),O=function(_){var P=_.prefixCls,j=_.rootCls,S=j===void 0?P:j;return m(P,S),null};return process.env.NODE_ENV!=="production"&&(O.displayName="SubStyle_".concat(String(Array.isArray(g)?g.join("."):g))),O}return{genStyleHooks:c,genSubStyleComponent:u,genComponentStyleHook:f}}const xo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Bp="5.27.1";function pi(e){return e>=0&&e<=255}function Gn(e,t){const{r,g:n,b:o,a:i}=new Qe(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new Qe(t).toRgb();for(let d=.01;d<=1;d+=.01){const f=Math.round((r-a*(1-d))/d),u=Math.round((n-l*(1-d))/d),g=Math.round((o-c*(1-d))/d);if(pi(f)&&pi(u)&&pi(g))return new Qe({r:f,g:u,b:g,a:Math.round(d*100)/100}).toRgbString()}return new Qe({r,g:n,b:o,a:1}).toRgbString()}var zp=exports&&exports.__rest||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 Dc(e){const{override:t}=e,r=zp(e,["override"]),n=Object.assign({},t);Object.keys(bn).forEach(g=>{delete n[g]});const o=Object.assign(Object.assign({},r),n),i=480,a=576,l=768,c=992,d=1200,f=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:Gn(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:Gn(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Gn(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:Gn(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:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:d-1,screenXL:d,screenXLMin:d,screenXLMax:f-1,screenXXL:f,screenXXLMin:f,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
102
|
-
0 1px 2px -2px ${new Qe("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
103
|
-
0 3px 6px 0 ${new Qe("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
104
|
-
0 5px 12px 4px ${new Qe("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 zs=exports&&exports.__rest||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 Bc={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},Lp={motionBase:!0,motionUnit:!0},Fp={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},zc=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:o}=t,i=zs(t,["override"]);let a=Object.assign(Object.assign({},n),{override:o});return a=Dc(a),i&&Object.entries(i).forEach(([l,c])=>{const{theme:d}=c,f=zs(c,["theme"]);let u=f;d&&(u=zc(Object.assign(Object.assign({},a),f),{override:f},d)),a[l]=u}),a};function Br(){const{token:e,hashed:t,theme:r,override:n,cssVar:o}=h.useContext(_c),i=`${Bp}-${t||""}`,a=r||Pc,[l,c,d]=xh(a,[bn,e],{salt:i,override:n,getComputedToken:zc,formatToken:Dc,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Bc,ignore:Lp,preserve:Fp}});return[a,d,t?c:"",l,o]}const $a=(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}),Hp=()=>({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"}}),Vp=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Wp=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"}}}),Kp=(e,t,r,n)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=r?`.${r}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return n!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},qp=(e,t)=>({outline:`${$e(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Up=(e,t)=>({"&:focus-visible":qp(e,t)}),Lc=e=>({[`.${e}`]:Object.assign(Object.assign({},Hp()),{[`.${e} .${e}-icon`]:{display:"block"}})}),Fc=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"},Up(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:$n}=Dp({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=h.useContext(qt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,o]=Br();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{const{csp:e}=h.useContext(qt);return e??{}},getResetStyles:(e,t)=>{var r;const n=Wp(e);return[n,{"&":n},Lc((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:Oa)]},getCommonStyle:Kp,getCompUnitless:()=>Bc});function Gp(e,t){return xo.reduce((r,n)=>{const o=e[`${n}1`],i=e[`${n}3`],a=e[`${n}6`],l=e[`${n}7`];return Object.assign(Object.assign({},r),t(n,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const Yp=(e,t)=>{const[r,n]=Br();return oa({token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>Lc(e))},Xp=Object.assign({},p),{useId:Ls}=Xp,Qp=()=>"",Zp=typeof Ls>"u"?Qp:Ls;function Jp(e,t,r){var n,o;const i=At("ConfigProvider"),a=e||{},l=a.inherit===!1||!t?Object.assign(Object.assign({},aa),{hashed:(n=t?.hashed)!==null&&n!==void 0?n:aa.hashed,cssVar:t?.cssVar}):t,c=Zp();if(process.env.NODE_ENV!=="production"){const d=a.cssVar||l.cssVar,f=!!(typeof a.cssVar=="object"&&(!((o=a.cssVar)===null||o===void 0)&&o.key)||c);process.env.NODE_ENV!=="production"&&i(!d||f,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return ba(()=>{var d,f;if(!e)return t;const u=Object.assign({},l.components);Object.keys(e.components||{}).forEach(E=>{u[E]=Object.assign(Object.assign({},u[E]),e.components[E])});const g=`css-var-${c.replace(/:/g,"")}`,C=((d=a.cssVar)!==null&&d!==void 0?d:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:r?.prefixCls},typeof l.cssVar=="object"?l.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((f=a.cssVar)===null||f===void 0?void 0:f.key)||g});return Object.assign(Object.assign(Object.assign({},l),a),{token:Object.assign(Object.assign({},l.token),a.token),components:u,cssVar:C})},[a,l],(d,f)=>d.some((u,g)=>{const C=f[g];return!Kf(u,C,!0)}))}var eg=["children"],Hc=p.createContext({});function tg(e){var t=e.children,r=$t(e,eg);return p.createElement(Hc.Provider,{value:r},t)}var rg=(function(e){jn(r,e);var t=Rn(r);function r(){return yt(this,r),t.apply(this,arguments)}return bt(r,[{key:"render",value:function(){return this.props.children}}]),r})(p.Component);function ng(e){var t=p.useReducer(function(l){return l+1},0),r=re(t,2),n=r[1],o=p.useRef(e),i=ft(function(){return o.current}),a=ft(function(l){o.current=typeof l=="function"?l(o.current):l,n()});return[i,a]}var rr="none",Yn="appear",Xn="enter",Qn="leave",Fs="none",jt="prepare",wr="start",Er="active",Ta="end",Vc="prepared";function Hs(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 og(e,t){var r={animationend:Hs("Animation","AnimationEnd"),transitionend:Hs("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var ig=og(st(),typeof window<"u"?window:{}),Wc={};if(st()){var ag=document.createElement("div");Wc=ag.style}var Zn={};function Kc(e){if(Zn[e])return Zn[e];var t=ig[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o<n;o+=1){var i=r[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Wc)return Zn[e]=t[i],Zn[e]}return""}var qc=Kc("animationend"),Uc=Kc("transitionend"),sg=!!(qc&&Uc),Vs=qc||"animationend",Ws=Uc||"transitionend";function Ks(e,t){if(!e)return null;if(we(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const lg=(function(e){var t=h.useRef();function r(o){o&&(o.removeEventListener(Ws,e),o.removeEventListener(Vs,e))}function n(o){t.current&&t.current!==o&&r(t.current),o&&o!==t.current&&(o.addEventListener(Ws,e),o.addEventListener(Vs,e),t.current=o)}return p.useEffect(function(){return function(){r(t.current)}},[]),[n,r]});var Gc=st()?h.useLayoutEffect:h.useEffect,Yc=function(t){return+setTimeout(t,16)},Xc=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Yc=function(t){return window.requestAnimationFrame(t)},Xc=function(t){return window.cancelAnimationFrame(t)});var qs=0,Po=new Map;function Qc(e){Po.delete(e)}var _r=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;qs+=1;var n=qs;function o(i){if(i===0)Qc(n),t();else{var a=Yc(function(){o(i-1)});Po.set(n,a)}}return o(r),n};_r.cancel=function(e){var t=Po.get(e);return Qc(e),Xc(t)};process.env.NODE_ENV!=="production"&&(_r.ids=function(){return Po});const cg=(function(){var e=p.useRef(null);function t(){_r.cancel(e.current)}function r(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=_r(function(){o<=1?n({isCanceled:function(){return i!==e.current}}):r(n,o-1)});e.current=i}return p.useEffect(function(){return function(){t()}},[]),[r,t]});var dg=[jt,wr,Er,Ta],ug=[jt,Vc],Zc=!1,fg=!0;function Jc(e){return e===Er||e===Ta}const hg=(function(e,t,r){var n=gn(Fs),o=re(n,2),i=o[0],a=o[1],l=cg(),c=re(l,2),d=c[0],f=c[1];function u(){a(jt,!0)}var g=t?ug:dg;return Gc(function(){if(i!==Fs&&i!==Ta){var C=g.indexOf(i),E=g[C+1],R=r(i);R===Zc?a(E,!0):E&&d(function(m){function O(){m.isCanceled()||a(E,!0)}R===!0?O():Promise.resolve(R).then(O)})}},[e,i]),p.useEffect(function(){return function(){f()}},[]),[u,i]});function pg(e,t,r,n){var o=n.motionEnter,i=o===void 0?!0:o,a=n.motionAppear,l=a===void 0?!0:a,c=n.motionLeave,d=c===void 0?!0:c,f=n.motionDeadline,u=n.motionLeaveImmediately,g=n.onAppearPrepare,C=n.onEnterPrepare,E=n.onLeavePrepare,R=n.onAppearStart,m=n.onEnterStart,O=n.onLeaveStart,x=n.onAppearActive,_=n.onEnterActive,P=n.onLeaveActive,j=n.onAppearEnd,S=n.onEnterEnd,k=n.onLeaveEnd,$=n.onVisibleChanged,H=gn(),I=re(H,2),L=I[0],M=I[1],B=ng(rr),y=re(B,2),b=y[0],w=y[1],A=gn(null),N=re(A,2),D=N[0],K=N[1],Y=b(),G=h.useRef(!1),te=h.useRef(null);function le(){return r()}var ge=h.useRef(!1);function de(){w(rr),K(null,!0)}var ve=ft(function(ye){var Se=b();if(Se!==rr){var ue=le();if(!(ye&&!ye.deadline&&ye.target!==ue)){var ie=ge.current,xe;Se===Yn&&ie?xe=j?.(ue,ye):Se===Xn&&ie?xe=S?.(ue,ye):Se===Qn&&ie&&(xe=k?.(ue,ye)),ie&&xe!==!1&&de()}}}),T=lg(ve),F=re(T,1),q=F[0],W=function(Se){switch(Se){case Yn:return ee(ee(ee({},jt,g),wr,R),Er,x);case Xn:return ee(ee(ee({},jt,C),wr,m),Er,_);case Qn:return ee(ee(ee({},jt,E),wr,O),Er,P);default:return{}}},V=p.useMemo(function(){return W(Y)},[Y]),Q=hg(Y,!e,function(ye){if(ye===jt){var Se=V[jt];return Se?Se(le()):Zc}if(X in V){var ue;K(((ue=V[X])===null||ue===void 0?void 0:ue.call(V,le(),null))||null)}return X===Er&&Y!==rr&&(q(le()),f>0&&(clearTimeout(te.current),te.current=setTimeout(function(){ve({deadline:!0})},f))),X===Vc&&de(),fg}),z=re(Q,2),U=z[0],X=z[1],J=Jc(X);ge.current=J;var ne=h.useRef(null);Gc(function(){if(!(G.current&&ne.current===t)){M(t);var ye=G.current;G.current=!0;var Se;!ye&&t&&l&&(Se=Yn),ye&&t&&i&&(Se=Xn),(ye&&!t&&d||!ye&&u&&!t&&d)&&(Se=Qn);var ue=W(Se);Se&&(e||ue[jt])?(w(Se),U()):w(rr),ne.current=t}},[t]),h.useEffect(function(){(Y===Yn&&!l||Y===Xn&&!i||Y===Qn&&!d)&&w(rr)},[l,i,d]),h.useEffect(function(){return function(){G.current=!1,clearTimeout(te.current)}},[]);var oe=p.useRef(!1);h.useEffect(function(){L&&(oe.current=!0),L!==void 0&&Y===rr&&((oe.current||L)&&$?.(L),oe.current=!0)},[L,Y]);var be=D;return V[jt]&&X===wr&&(be=Z({transition:"none"},be)),[Y,X,be,L??t]}function gg(e){var t=e;we(e)==="object"&&(t=e.transitionSupport);function r(o,i){return!!(o.motionName&&t&&i!==!1)}var n=p.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,c=o.removeOnLeave,d=c===void 0?!0:c,f=o.forceRender,u=o.children,g=o.motionName,C=o.leavedClassName,E=o.eventProps,R=p.useContext(Hc),m=R.motion,O=r(o,m),x=h.useRef(),_=h.useRef();function P(){try{return x.current instanceof HTMLElement?x.current:oo(_.current)}catch{return null}}var j=pg(O,l,P,o),S=re(j,4),k=S[0],$=S[1],H=S[2],I=S[3],L=p.useRef(I);I&&(L.current=!0);var M=p.useCallback(function(N){x.current=N,xa(i,N)},[i]),B,y=Z(Z({},E),{},{visible:l});if(!u)B=null;else if(k===rr)I?B=u(Z({},y),M):!d&&L.current&&C?B=u(Z(Z({},y),{},{className:C}),M):f||!d&&!C?B=u(Z(Z({},y),{},{style:{display:"none"}}),M):B=null;else{var b;$===jt?b="prepare":Jc($)?b="active":$===wr&&(b="start");var w=Ks(g,"".concat(k,"-").concat(b));B=u(Z(Z({},y),{},{className:pe(Ks(g,k),ee(ee({},w,w&&b),g,typeof g=="string")),style:H}),M)}if(p.isValidElement(B)&&ko(B)){var A=Sa(B);A||(B=p.cloneElement(B,{ref:M}))}return p.createElement(rg,{ref:_},B)});return n.displayName="CSSMotion",n}const ed=gg(sg),ca=p.createContext(!0);process.env.NODE_ENV!=="production"&&(ca.displayName="MotionCacheContext");function mg(e){const t=p.useContext(ca),{children:r}=e,[,n]=Br(),{motion:o}=n,i=p.useRef(!1);return i.current||(i.current=t!==o),i.current?p.createElement(ca.Provider,{value:o},p.createElement(tg,{motion:o},r)):r}const td=p.memo(({dropdownMatchSelectWidth:e})=>(At("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(td.displayName="PropWarning");const vg=process.env.NODE_ENV!=="production"?td:()=>null;var yg=exports&&exports.__rest||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 da=!1;process.env.NODE_ENV;const bg=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let rd;function xg(){return rd||sa}function Cg(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const Sg=e=>{const{prefixCls:t,theme:r}=e;t!==void 0&&(rd=t),r&&Cg(r)&&(process.env.NODE_ENV!=="production"&&On(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Sp(xg(),r))},wg=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:i,form:a,locale:l,componentSize:c,direction:d,space:f,splitter:u,virtual:g,dropdownMatchSelectWidth:C,popupMatchSelectWidth:E,popupOverflow:R,legacyLocale:m,parentContext:O,iconPrefixCls:x,theme:_,componentDisabled:P,segmented:j,statistic:S,spin:k,calendar:$,carousel:H,cascader:I,collapse:L,typography:M,checkbox:B,descriptions:y,divider:b,drawer:w,skeleton:A,steps:N,image:D,layout:K,list:Y,mentions:G,modal:te,progress:le,result:ge,slider:de,breadcrumb:ve,menu:T,pagination:F,input:q,textArea:W,empty:V,badge:Q,radio:z,rate:U,switch:X,transfer:J,avatar:ne,message:oe,tag:be,table:ye,card:Se,tabs:ue,timeline:ie,timePicker:xe,upload:Ee,notification:Ye,tree:Me,colorPicker:Ne,datePicker:Ce,rangePicker:Ae,flex:Le,wave:Te,dropdown:me,warning:De,tour:ce,tooltip:fe,popover:We,popconfirm:Dt,floatButton:ir,floatButtonGroup:hr,variant:Lr,inputNumber:pr,treeSelect:Ct}=e,nt=p.useCallback((Ie,qe)=>{const{prefixCls:at}=e;if(qe)return qe;const it=at||O.getPrefixCls("");return Ie?`${it}-${Ie}`:it},[O.getPrefixCls,e.prefixCls]),Ke=x||O.iconPrefixCls||Oa,Bt=r||O.csp;Yp(Ke,Bt);const ot=Jp(_,O.theme,{prefixCls:nt("")});process.env.NODE_ENV!=="production"&&(da=da||!!ot);const Oe={csp:Bt,autoInsertSpaceInButton:n,alert:o,anchor:i,locale:l||m,direction:d,space:f,splitter:u,virtual:g,popupMatchSelectWidth:E??C,popupOverflow:R,getPrefixCls:nt,iconPrefixCls:Ke,theme:ot,segmented:j,statistic:S,spin:k,calendar:$,carousel:H,cascader:I,collapse:L,typography:M,checkbox:B,descriptions:y,divider:b,drawer:w,skeleton:A,steps:N,image:D,input:q,textArea:W,layout:K,list:Y,mentions:G,modal:te,progress:le,result:ge,slider:de,breadcrumb:ve,menu:T,pagination:F,empty:V,badge:Q,radio:z,rate:U,switch:X,transfer:J,avatar:ne,message:oe,tag:be,table:ye,card:Se,tabs:ue,timeline:ie,timePicker:xe,upload:Ee,notification:Ye,tree:Me,colorPicker:Ne,datePicker:Ce,rangePicker:Ae,flex:Le,wave:Te,dropdown:me,warning:De,tour:ce,tooltip:fe,popover:We,popconfirm:Dt,floatButton:ir,floatButtonGroup:hr,variant:Lr,inputNumber:pr,treeSelect:Ct};process.env.NODE_ENV!=="production"&&At("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const je=Object.assign({},O);Object.keys(Oe).forEach(Ie=>{Oe[Ie]!==void 0&&(je[Ie]=Oe[Ie])}),bg.forEach(Ie=>{const qe=e[Ie];qe&&(je[Ie]=qe)}),typeof n<"u"&&(je.button=Object.assign({autoInsertSpace:n},je.button));const Je=ba(()=>je,je,(Ie,qe)=>{const at=Object.keys(Ie),it=Object.keys(qe);return at.length!==it.length||at.some(It=>Ie[It]!==qe[It])}),{layer:Tt}=p.useContext(kn),lt=p.useMemo(()=>({prefixCls:Ke,csp:Bt,layer:Tt?"antd":void 0}),[Ke,Bt,Tt]);let He=p.createElement(p.Fragment,null,p.createElement(vg,{dropdownMatchSelectWidth:C}),t);const Xt=p.useMemo(()=>{var Ie,qe,at,it;return Jh(((Ie=Ir.Form)===null||Ie===void 0?void 0:Ie.defaultValidateMessages)||{},((at=(qe=Je.locale)===null||qe===void 0?void 0:qe.Form)===null||at===void 0?void 0:at.defaultValidateMessages)||{},((it=Je.form)===null||it===void 0?void 0:it.validateMessages)||{},a?.validateMessages||{})},[Je,a?.validateMessages]);Object.keys(Xt).length>0&&(He=p.createElement(tp.Provider,{value:Xt},He)),l&&(He=p.createElement(Tc,{locale:l,_ANT_MARK__:$c},He)),He=p.createElement(ma.Provider,{value:lt},He),c&&(He=p.createElement(Ep,{size:c},He)),He=p.createElement(mg,null,He);const zt=p.useMemo(()=>{const Ie=ot||{},{algorithm:qe,token:at,components:it,cssVar:It}=Ie,gr=yg(Ie,["algorithm","token","components","cssVar"]),St=qe&&(!Array.isArray(qe)||qe.length>0)?Ji(qe):Pc,ht={};Object.entries(it||{}).forEach(([wt,mr])=>{const Be=Object.assign({},mr);"algorithm"in Be&&(Be.algorithm===!0?Be.theme=St:(Array.isArray(Be.algorithm)||typeof Be.algorithm=="function")&&(Be.theme=Ji(Be.algorithm)),delete Be.algorithm),ht[wt]=Be});const Pt=Object.assign(Object.assign({},bn),at);return Object.assign(Object.assign({},gr),{theme:St,token:Pt,components:ht,override:Object.assign({override:Pt},ht),cssVar:It})},[ot]);return _&&(He=p.createElement(_c.Provider,{value:zt},He)),Je.warning&&(He=p.createElement(kc.Provider,{value:Je.warning},He)),P!==void 0&&(He=p.createElement(wp,{disabled:P},He)),p.createElement(qt.Provider,{value:Je},He)},zr=e=>{const t=p.useContext(qt),r=p.useContext(ka);return p.createElement(wg,Object.assign({parentContext:t,legacyLocale:r},e))};zr.ConfigContext=qt;zr.SizeContext=Pr;zr.config=Sg;zr.useConfig=jp;Object.defineProperty(zr,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&On(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Pr)});process.env.NODE_ENV!=="production"&&(zr.displayName="ConfigProvider");function nd(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,l=e.style;return p.createElement("div",{className:pe("".concat(r,"-content"),a),style:l},p.createElement("div",{className:pe("".concat(r,"-inner"),i),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var od=p.createContext(null),Us=[];function Eg(e,t){var r=p.useState(function(){if(!st())return null;var E=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&E.setAttribute("data-debug",t),E}),n=re(r,1),o=n[0],i=p.useRef(!1),a=p.useContext(od),l=p.useState(Us),c=re(l,2),d=c[0],f=c[1],u=a||(i.current?void 0:function(E){f(function(R){var m=[E].concat(rt(R));return m})});function g(){o.parentElement||document.body.appendChild(o),i.current=!0}function C(){var E;(E=o.parentElement)===null||E===void 0||E.removeChild(o),i.current=!1}return Fe(function(){return e?a?a(g):g():C(),C},[e]),Fe(function(){d.length&&(d.forEach(function(E){return E()}),f(Us))},[d]),[o,u]}function jg(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,i;if(e){var a=getComputedStyle(e);n.scrollbarColor=a.scrollbarColor,n.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),d=parseInt(l.height,10);try{var f=c?"width: ".concat(l.width,";"):"",u=d?"height: ".concat(l.height,";"):"";Wt(`
|
|
122
|
-
#`.concat(t,`::-webkit-scrollbar {
|
|
123
|
-
`).concat(f,`
|
|
124
|
-
`).concat(u,`
|
|
125
|
-
}`),t)}catch(E){console.error(E),o=c,i=d}}document.body.appendChild(r);var g=e&&o&&!isNaN(o)?o:r.offsetWidth-r.clientWidth,C=e&&i&&!isNaN(i)?i:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),fn(t),{width:g,height:C}}function Rg(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:jg(e)}function kg(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Og="rc-util-locker-".concat(Date.now()),Gs=0;function $g(e){var t=!!e,r=p.useState(function(){return Gs+=1,"".concat(Og,"_").concat(Gs)}),n=re(r,1),o=n[0];Fe(function(){if(t){var i=Rg(document.body).width,a=kg();Wt(`
|
|
126
|
-
html body {
|
|
127
|
-
overflow-y: hidden;
|
|
128
|
-
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
|
|
129
|
-
}`),o)}else fn(o);return function(){fn(o)}},[t,o])}var Tg=!1;function Ig(e){return Tg}var Ys=function(t){return t===!1?!1:!st()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Ia=p.forwardRef(function(e,t){var r=e.open,n=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,l=a===void 0?!0:a,c=e.children,d=p.useState(r),f=re(d,2),u=f[0],g=f[1],C=u||r;process.env.NODE_ENV!=="production"&&Ut(st()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),p.useEffect(function(){(l||r)&&g(r)},[r,l]);var E=p.useState(function(){return Ys(o)}),R=re(E,2),m=R[0],O=R[1];p.useEffect(function(){var M=Ys(o);O(M??null)});var x=Eg(C&&!m,i),_=re(x,2),P=_[0],j=_[1],S=m??P;$g(n&&r&&st()&&(S===P||S===document.body));var k=null;if(c&&ko(c)&&t){var $=c;k=$.ref}var H=Ca(k,t);if(!C||!st()||m===void 0)return null;var I=S===!1||Ig(),L=c;return t&&(L=p.cloneElement(c,{ref:H})),p.createElement(od.Provider,{value:j},I?L:uo.createPortal(L,S))});process.env.NODE_ENV!=="production"&&(Ia.displayName="Portal");function Pg(){var e=Z({},p);return e.useId}var Xs=0,Qs=Pg();const id=Qs?function(t){var r=Qs();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=p.useState("ssr-id"),n=re(r,2),o=n[0],i=n[1];return p.useEffect(function(){var a=Xs;Xs+=1,i("rc_unique_".concat(a))},[]),t||(process.env.NODE_ENV==="test"?"test-id":o)},_g=(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 Mg(e){var t=e.prefixCls,r=e.align,n=e.arrow,o=e.arrowPos,i=n||{},a=i.className,l=i.content,c=o.x,d=c===void 0?0:c,f=o.y,u=f===void 0?0:f,g=p.useRef();if(!r||!r.points)return null;var C={position:"absolute"};if(r.autoArrow!==!1){var E=r.points[0],R=r.points[1],m=E[0],O=E[1],x=R[0],_=R[1];m===x||!["t","b"].includes(m)?C.top=u:m==="t"?C.top=0:C.bottom=0,O===_||!["l","r"].includes(O)?C.left=d:O==="l"?C.left=0:C.right=0}return p.createElement("div",{ref:g,className:pe("".concat(t,"-arrow"),a),style:C},l)}function Ng(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,i=e.motion;return o?p.createElement(ed,Ze({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var l=a.className;return p.createElement("div",{style:{zIndex:n},className:pe("".concat(t,"-mask"),l)})}):null}var ad=p.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(ad.displayName="PopupContent");var sd=p.forwardRef(function(e,t){var r=e.popup,n=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,c=e.open,d=e.keepDom,f=e.fresh,u=e.onClick,g=e.mask,C=e.arrow,E=e.arrowPos,R=e.align,m=e.motion,O=e.maskMotion,x=e.forceRender,_=e.getPopupContainer,P=e.autoDestroy,j=e.portal,S=e.zIndex,k=e.onMouseEnter,$=e.onMouseLeave,H=e.onPointerEnter,I=e.onPointerDownCapture,L=e.ready,M=e.offsetX,B=e.offsetY,y=e.offsetR,b=e.offsetB,w=e.onAlign,A=e.onPrepare,N=e.stretch,D=e.targetWidth,K=e.targetHeight,Y=typeof r=="function"?r():r,G=c||d,te=_?.length>0,le=p.useState(!_||!te),ge=re(le,2),de=ge[0],ve=ge[1];if(Fe(function(){!de&&te&&a&&ve(!0)},[de,te,a]),!de)return null;var T="auto",F={left:"-1000vw",top:"-1000vh",right:T,bottom:T};if(L||!c){var q,W=R.points,V=R.dynamicInset||((q=R._experimental)===null||q===void 0?void 0:q.dynamicInset),Q=V&&W[0][1]==="r",z=V&&W[0][0]==="b";Q?(F.right=y,F.left=T):(F.left=M,F.right=T),z?(F.bottom=b,F.top=T):(F.top=B,F.bottom=T)}var U={};return N&&(N.includes("height")&&K?U.height=K:N.includes("minHeight")&&K&&(U.minHeight=K),N.includes("width")&&D?U.width=D:N.includes("minWidth")&&D&&(U.minWidth=D)),c||(U.pointerEvents="none"),p.createElement(j,{open:x||G,getContainer:_&&function(){return _(a)},autoDestroy:P},p.createElement(Ng,{prefixCls:o,open:c,zIndex:S,mask:g,motion:O}),p.createElement(Ar,{onResize:w,disabled:!c},function(X){return p.createElement(ed,Ze({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(o,"-hidden")},m,{onAppearPrepare:A,onEnterPrepare:A,visible:c,onVisibleChanged:function(ne){var oe;m==null||(oe=m.onVisibleChanged)===null||oe===void 0||oe.call(m,ne),l(ne)}}),function(J,ne){var oe=J.className,be=J.style,ye=pe(o,oe,n);return p.createElement("div",{ref:En(X,t,ne),className:ye,style:Z(Z(Z(Z({"--arrow-x":"".concat(E.x||0,"px"),"--arrow-y":"".concat(E.y||0,"px")},F),U),be),{},{boxSizing:"border-box",zIndex:S},i),onMouseEnter:k,onMouseLeave:$,onPointerEnter:H,onClick:u,onPointerDownCapture:I},C&&p.createElement(Mg,{prefixCls:o,arrow:C,arrowPos:E,align:R}),p.createElement(ad,{cache:!c&&!f},Y))})}))});process.env.NODE_ENV!=="production"&&(sd.displayName="Popup");var ld=p.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=ko(r),i=p.useCallback(function(l){xa(t,n?n(l):l)},[n]),a=Ca(i,Sa(r));return o?p.cloneElement(r,{ref:a}):r});process.env.NODE_ENV!=="production"&&(ld.displayName="TriggerWrapper");var Zs=p.createContext(null);function Js(e){return e?Array.isArray(e)?e:[e]:[]}function Ag(e,t,r,n){return p.useMemo(function(){var o=Js(r??t),i=Js(n??t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,r,n])}const Dg=(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(),i=o.width,a=o.height;if(i||a)return!0}}return!1});function Bg(){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 zg(e,t,r,n){for(var o=r.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,c=i[a];if(Bg((l=e[c])===null||l===void 0?void 0:l.points,o,n))return"".concat(t,"-placement-").concat(c)}return""}function el(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function Tn(e){return e.ownerDocument.defaultView}function ua(e){for(var t=[],r=e?.parentElement,n=["hidden","scroll","clip","auto"];r;){var o=Tn(r).getComputedStyle(r),i=o.overflowX,a=o.overflowY,l=o.overflow;[i,a,l].some(function(c){return n.includes(c)})&&t.push(r),r=r.parentElement}return t}function Cn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function rn(e){return Cn(parseFloat(e),0)}function tl(e,t){var r=Z({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var o=Tn(n).getComputedStyle(n),i=o.overflow,a=o.overflowClipMargin,l=o.borderTopWidth,c=o.borderBottomWidth,d=o.borderLeftWidth,f=o.borderRightWidth,u=n.getBoundingClientRect(),g=n.offsetHeight,C=n.clientHeight,E=n.offsetWidth,R=n.clientWidth,m=rn(l),O=rn(c),x=rn(d),_=rn(f),P=Cn(Math.round(u.width/E*1e3)/1e3),j=Cn(Math.round(u.height/g*1e3)/1e3),S=(E-R-x-_)*P,k=(g-C-m-O)*j,$=m*j,H=O*j,I=x*P,L=_*P,M=0,B=0;if(i==="clip"){var y=rn(a);M=y*P,B=y*j}var b=u.x+I-M,w=u.y+$-B,A=b+u.width+2*M-I-L-S,N=w+u.height+2*B-$-H-k;r.left=Math.max(r.left,b),r.top=Math.max(r.top,w),r.right=Math.min(r.right,A),r.bottom=Math.min(r.bottom,N)}}),r}function rl(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 nl(e,t){var r=t||[],n=re(r,2),o=n[0],i=n[1];return[rl(e.width,o),rl(e.height,i)]}function ol(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function xr(e,t){var r=t[0],n=t[1],o,i;return r==="t"?i=e.y:r==="b"?i=e.y+e.height:i=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:i}}function tr(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 Lg(e,t,r,n,o,i,a){var l=p.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[n]||{}}),c=re(l,2),d=c[0],f=c[1],u=p.useRef(0),g=p.useMemo(function(){return t?ua(t):[]},[t]),C=p.useRef({}),E=function(){C.current={}};e||E();var R=ft(function(){if(t&&r&&e){let pt=function(Kr,Lt){var er=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xe,qr=G.x+Kr,Fn=G.y+Lt,Ko=qr+z,qo=Fn+Q,Uo=Math.max(qr,er.left),ae=Math.max(Fn,er.top),he=Math.min(Ko,er.right),ze=Math.min(qo,er.bottom);return Math.max(0,(he-Uo)*(ze-ae))},yr=function(){St=G.y+je,ht=St+Q,Pt=G.x+Oe,wt=Pt+z};var x,_,P,j,S=t,k=S.ownerDocument,$=Tn(S),H=$.getComputedStyle(S),I=H.position,L=S.style.left,M=S.style.top,B=S.style.right,y=S.style.bottom,b=S.style.overflow,w=Z(Z({},o[n]),i),A=k.createElement("div");(x=S.parentElement)===null||x===void 0||x.appendChild(A),A.style.left="".concat(S.offsetLeft,"px"),A.style.top="".concat(S.offsetTop,"px"),A.style.position=I,A.style.height="".concat(S.offsetHeight,"px"),A.style.width="".concat(S.offsetWidth,"px"),S.style.left="0",S.style.top="0",S.style.right="auto",S.style.bottom="auto",S.style.overflow="hidden";var N;if(Array.isArray(r))N={x:r[0],y:r[1],width:0,height:0};else{var D,K,Y=r.getBoundingClientRect();Y.x=(D=Y.x)!==null&&D!==void 0?D:Y.left,Y.y=(K=Y.y)!==null&&K!==void 0?K:Y.top,N={x:Y.x,y:Y.y,width:Y.width,height:Y.height}}var G=S.getBoundingClientRect(),te=$.getComputedStyle(S),le=te.height,ge=te.width;G.x=(_=G.x)!==null&&_!==void 0?_:G.left,G.y=(P=G.y)!==null&&P!==void 0?P:G.top;var de=k.documentElement,ve=de.clientWidth,T=de.clientHeight,F=de.scrollWidth,q=de.scrollHeight,W=de.scrollTop,V=de.scrollLeft,Q=G.height,z=G.width,U=N.height,X=N.width,J={left:0,top:0,right:ve,bottom:T},ne={left:-V,top:-W,right:F-V,bottom:q-W},oe=w.htmlRegion,be="visible",ye="visibleFirst";oe!=="scroll"&&oe!==ye&&(oe=be);var Se=oe===ye,ue=tl(ne,g),ie=tl(J,g),xe=oe===be?ie:ue,Ee=Se?ie:xe;S.style.left="auto",S.style.top="auto",S.style.right="0",S.style.bottom="0";var Ye=S.getBoundingClientRect();S.style.left=L,S.style.top=M,S.style.right=B,S.style.bottom=y,S.style.overflow=b,(j=S.parentElement)===null||j===void 0||j.removeChild(A);var Me=Cn(Math.round(z/parseFloat(ge)*1e3)/1e3),Ne=Cn(Math.round(Q/parseFloat(le)*1e3)/1e3);if(Me===0||Ne===0||pn(r)&&!Dg(r))return;var Ce=w.offset,Ae=w.targetOffset,Le=nl(G,Ce),Te=re(Le,2),me=Te[0],De=Te[1],ce=nl(N,Ae),fe=re(ce,2),We=fe[0],Dt=fe[1];N.x-=We,N.y-=Dt;var ir=w.points||[],hr=re(ir,2),Lr=hr[0],pr=hr[1],Ct=ol(pr),nt=ol(Lr),Ke=xr(N,Ct),Bt=xr(G,nt),ot=Z({},w),Oe=Ke.x-Bt.x+me,je=Ke.y-Bt.y+De,Je=pt(Oe,je),Tt=pt(Oe,je,ie),lt=xr(N,["t","l"]),He=xr(G,["t","l"]),Xt=xr(N,["b","r"]),zt=xr(G,["b","r"]),Ie=w.overflow||{},qe=Ie.adjustX,at=Ie.adjustY,it=Ie.shiftX,It=Ie.shiftY,gr=function(Lt){return typeof Lt=="boolean"?Lt:Lt>=0},St,ht,Pt,wt;yr();var mr=gr(at),Be=nt[0]===Ct[0];if(mr&&nt[0]==="t"&&(ht>Ee.bottom||C.current.bt)){var ar=je;Be?ar-=Q-U:ar=lt.y-zt.y-De;var Pn=pt(Oe,ar),Mo=pt(Oe,ar,ie);Pn>Je||Pn===Je&&(!Se||Mo>=Tt)?(C.current.bt=!0,je=ar,De=-De,ot.points=[tr(nt,0),tr(Ct,0)]):C.current.bt=!1}if(mr&&nt[0]==="b"&&(St<Ee.top||C.current.tb)){var sr=je;Be?sr+=Q-U:sr=Xt.y-He.y-De;var _n=pt(Oe,sr),No=pt(Oe,sr,ie);_n>Je||_n===Je&&(!Se||No>=Tt)?(C.current.tb=!0,je=sr,De=-De,ot.points=[tr(nt,0),tr(Ct,0)]):C.current.tb=!1}var Mn=gr(qe),Nn=nt[1]===Ct[1];if(Mn&&nt[1]==="l"&&(wt>Ee.right||C.current.rl)){var lr=Oe;Nn?lr-=z-X:lr=lt.x-zt.x-me;var cr=pt(lr,je),Fr=pt(lr,je,ie);cr>Je||cr===Je&&(!Se||Fr>=Tt)?(C.current.rl=!0,Oe=lr,me=-me,ot.points=[tr(nt,1),tr(Ct,1)]):C.current.rl=!1}if(Mn&&nt[1]==="r"&&(Pt<Ee.left||C.current.lr)){var dr=Oe;Nn?dr+=z-X:dr=Xt.x-He.x-me;var Hr=pt(dr,je),vr=pt(dr,je,ie);Hr>Je||Hr===Je&&(!Se||vr>=Tt)?(C.current.lr=!0,Oe=dr,me=-me,ot.points=[tr(nt,1),tr(Ct,1)]):C.current.lr=!1}yr();var Et=it===!0?0:it;typeof Et=="number"&&(Pt<ie.left&&(Oe-=Pt-ie.left-me,N.x+X<ie.left+Et&&(Oe+=N.x-ie.left+X-Et)),wt>ie.right&&(Oe-=wt-ie.right-me,N.x>ie.right-Et&&(Oe+=N.x-ie.right+Et)));var Qt=It===!0?0:It;typeof Qt=="number"&&(St<ie.top&&(je-=St-ie.top-De,N.y+U<ie.top+Qt&&(je+=N.y-ie.top+U-Qt)),ht>ie.bottom&&(je-=ht-ie.bottom-De,N.y>ie.bottom-Qt&&(je+=N.y-ie.bottom+Qt)));var Zt=G.x+Oe,Jt=Zt+z,Vr=G.y+je,Ao=Vr+Q,An=N.x,Dn=An+X,Bn=N.y,Do=Bn+U,Bo=Math.max(Zt,An),zn=Math.min(Jt,Dn),zo=(Bo+zn)/2,Lo=zo-Zt,Ln=Math.max(Vr,Bn),Fo=Math.min(Ao,Do),Ho=(Ln+Fo)/2,Vo=Ho-Vr;a?.(t,ot);var _t=Ye.right-G.x-(Oe+G.width),Wr=Ye.bottom-G.y-(je+G.height);Me===1&&(Oe=Math.round(Oe),_t=Math.round(_t)),Ne===1&&(je=Math.round(je),Wr=Math.round(Wr));var Wo={ready:!0,offsetX:Oe/Me,offsetY:je/Ne,offsetR:_t/Me,offsetB:Wr/Ne,arrowX:Lo/Me,arrowY:Vo/Ne,scaleX:Me,scaleY:Ne,align:ot};f(Wo)}}),m=function(){u.current+=1;var _=u.current;Promise.resolve().then(function(){u.current===_&&R()})},O=function(){f(function(_){return Z(Z({},_),{},{ready:!1})})};return Fe(O,[n]),Fe(function(){e||O()},[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,m]}function Fg(e,t,r,n,o){Fe(function(){if(e&&t&&r){let u=function(){n(),o()};var i=t,a=r,l=ua(i),c=ua(a),d=Tn(a),f=new Set([d].concat(rt(l),rt(c)));return f.forEach(function(g){g.addEventListener("scroll",u,{passive:!0})}),d.addEventListener("resize",u,{passive:!0}),n(),function(){f.forEach(function(g){g.removeEventListener("scroll",u),d.removeEventListener("resize",u)})}}},[e,t,r])}function Hg(e,t,r,n,o,i,a,l){var c=p.useRef(e);c.current=e;var d=p.useRef(!1);p.useEffect(function(){if(t&&n&&(!o||i)){var u=function(){d.current=!1},g=function(P){var j;c.current&&!a(((j=P.composedPath)===null||j===void 0||(j=j.call(P))===null||j===void 0?void 0:j[0])||P.target)&&!d.current&&l(!1)},C=Tn(n);C.addEventListener("pointerdown",u,!0),C.addEventListener("mousedown",g,!0),C.addEventListener("contextmenu",g,!0);var E=mo(r);if(E&&(E.addEventListener("mousedown",g,!0),E.addEventListener("contextmenu",g,!0)),process.env.NODE_ENV!=="production"){var R,m,O=r==null||(R=r.getRootNode)===null||R===void 0?void 0:R.call(r),x=(m=n.getRootNode)===null||m===void 0?void 0:m.call(n);Rr(O===x,"trigger element and popup element should in same shadow root.")}return function(){C.removeEventListener("pointerdown",u,!0),C.removeEventListener("mousedown",g,!0),C.removeEventListener("contextmenu",g,!0),E&&(E.removeEventListener("mousedown",g,!0),E.removeEventListener("contextmenu",g,!0))}}},[t,r,n,o,i]);function f(){d.current=!0}return f}var Vg=["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 Wg(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ia,t=p.forwardRef(function(r,n){var o=r.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=r.children,l=r.action,c=l===void 0?"hover":l,d=r.showAction,f=r.hideAction,u=r.popupVisible,g=r.defaultPopupVisible,C=r.onPopupVisibleChange,E=r.afterPopupVisibleChange,R=r.mouseEnterDelay,m=r.mouseLeaveDelay,O=m===void 0?.1:m,x=r.focusDelay,_=r.blurDelay,P=r.mask,j=r.maskClosable,S=j===void 0?!0:j,k=r.getPopupContainer,$=r.forceRender,H=r.autoDestroy,I=r.destroyPopupOnHide,L=r.popup,M=r.popupClassName,B=r.popupStyle,y=r.popupPlacement,b=r.builtinPlacements,w=b===void 0?{}:b,A=r.popupAlign,N=r.zIndex,D=r.stretch,K=r.getPopupClassNameFromAlign,Y=r.fresh,G=r.alignPoint,te=r.onPopupClick,le=r.onPopupAlign,ge=r.arrow,de=r.popupMotion,ve=r.maskMotion,T=r.popupTransitionName,F=r.popupAnimation,q=r.maskTransitionName,W=r.maskAnimation,V=r.className,Q=r.getTriggerDOMNode,z=$t(r,Vg),U=H||I||!1,X=p.useState(!1),J=re(X,2),ne=J[0],oe=J[1];Fe(function(){oe(_g())},[]);var be=p.useRef({}),ye=p.useContext(Zs),Se=p.useMemo(function(){return{registerSubPopup:function(he,ze){be.current[he]=ze,ye?.registerSubPopup(he,ze)}}},[ye]),ue=id(),ie=p.useState(null),xe=re(ie,2),Ee=xe[0],Ye=xe[1],Me=p.useRef(null),Ne=ft(function(ae){Me.current=ae,pn(ae)&&Ee!==ae&&Ye(ae),ye?.registerSubPopup(ue,ae)}),Ce=p.useState(null),Ae=re(Ce,2),Le=Ae[0],Te=Ae[1],me=p.useRef(null),De=ft(function(ae){pn(ae)&&Le!==ae&&(Te(ae),me.current=ae)}),ce=p.Children.only(a),fe=ce?.props||{},We={},Dt=ft(function(ae){var he,ze,Xe=Le;return Xe?.contains(ae)||((he=mo(Xe))===null||he===void 0?void 0:he.host)===ae||ae===Xe||Ee?.contains(ae)||((ze=mo(Ee))===null||ze===void 0?void 0:ze.host)===ae||ae===Ee||Object.values(be.current).some(function(Ve){return Ve?.contains(ae)||ae===Ve})}),ir=el(i,de,F,T),hr=el(i,ve,W,q),Lr=p.useState(g||!1),pr=re(Lr,2),Ct=pr[0],nt=pr[1],Ke=u??Ct,Bt=ft(function(ae){u===void 0&&nt(ae)});Fe(function(){nt(u||!1)},[u]);var ot=p.useRef(Ke);ot.current=Ke;var Oe=p.useRef([]);Oe.current=[];var je=ft(function(ae){var he;Bt(ae),((he=Oe.current[Oe.current.length-1])!==null&&he!==void 0?he:Ke)!==ae&&(Oe.current.push(ae),C?.(ae))}),Je=p.useRef(),Tt=function(){clearTimeout(Je.current)},lt=function(he){var ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Tt(),ze===0?je(he):Je.current=setTimeout(function(){je(he)},ze*1e3)};p.useEffect(function(){return Tt},[]);var He=p.useState(!1),Xt=re(He,2),zt=Xt[0],Ie=Xt[1];Fe(function(ae){(!ae||Ke)&&Ie(!0)},[Ke]);var qe=p.useState(null),at=re(qe,2),it=at[0],It=at[1],gr=p.useState(null),St=re(gr,2),ht=St[0],Pt=St[1],wt=function(he){Pt([he.clientX,he.clientY])},mr=Lg(Ke,Ee,G&&ht!==null?ht:Le,y,w,A,le),Be=re(mr,11),ar=Be[0],Pn=Be[1],Mo=Be[2],sr=Be[3],_n=Be[4],No=Be[5],Mn=Be[6],Nn=Be[7],lr=Be[8],cr=Be[9],Fr=Be[10],dr=Ag(ne,c,d,f),Hr=re(dr,2),vr=Hr[0],Et=Hr[1],Qt=vr.has("click"),Zt=Et.has("click")||Et.has("contextMenu"),Jt=ft(function(){zt||Fr()}),Vr=function(){ot.current&&G&&Zt&<(!1)};Fg(Ke,Le,Ee,Jt,Vr),Fe(function(){Jt()},[ht,y]),Fe(function(){Ke&&!(w!=null&&w[y])&&Jt()},[JSON.stringify(A)]);var Ao=p.useMemo(function(){var ae=zg(w,i,cr,G);return pe(ae,K?.(cr))},[cr,K,w,i,G]);p.useImperativeHandle(n,function(){return{nativeElement:me.current,popupElement:Me.current,forceAlign:Jt}});var An=p.useState(0),Dn=re(An,2),Bn=Dn[0],Do=Dn[1],Bo=p.useState(0),zn=re(Bo,2),zo=zn[0],Lo=zn[1],Ln=function(){if(D&&Le){var he=Le.getBoundingClientRect();Do(he.width),Lo(he.height)}},Fo=function(){Ln(),Jt()},Ho=function(he){Ie(!1),Fr(),E?.(he)},Vo=function(){return new Promise(function(he){Ln(),It(function(){return he})})};Fe(function(){it&&(Fr(),it(),It(null))},[it]);function _t(ae,he,ze,Xe){We[ae]=function(Ve){var Hn;Xe?.(Ve),lt(he,ze);for(var Go=arguments.length,Da=new Array(Go>1?Go-1:0),Vn=1;Vn<Go;Vn++)Da[Vn-1]=arguments[Vn];(Hn=fe[ae])===null||Hn===void 0||Hn.call.apply(Hn,[fe,Ve].concat(Da))}}(Qt||Zt)&&(We.onClick=function(ae){var he;ot.current&&Zt?lt(!1):!ot.current&&Qt&&(wt(ae),lt(!0));for(var ze=arguments.length,Xe=new Array(ze>1?ze-1:0),Ve=1;Ve<ze;Ve++)Xe[Ve-1]=arguments[Ve];(he=fe.onClick)===null||he===void 0||he.call.apply(he,[fe,ae].concat(Xe))});var Wr=Hg(Ke,Zt,Le,Ee,P,S,Dt,lt),Wo=vr.has("hover"),pt=Et.has("hover"),yr,Kr;Wo&&(_t("onMouseEnter",!0,R,function(ae){wt(ae)}),_t("onPointerEnter",!0,R,function(ae){wt(ae)}),yr=function(he){(Ke||zt)&&Ee!==null&&Ee!==void 0&&Ee.contains(he.target)&<(!0,R)},G&&(We.onMouseMove=function(ae){var he;(he=fe.onMouseMove)===null||he===void 0||he.call(fe,ae)})),pt&&(_t("onMouseLeave",!1,O),_t("onPointerLeave",!1,O),Kr=function(){lt(!1,O)}),vr.has("focus")&&_t("onFocus",!0,x),Et.has("focus")&&_t("onBlur",!1,_),vr.has("contextMenu")&&(We.onContextMenu=function(ae){var he;ot.current&&Et.has("contextMenu")?lt(!1):(wt(ae),lt(!0)),ae.preventDefault();for(var ze=arguments.length,Xe=new Array(ze>1?ze-1:0),Ve=1;Ve<ze;Ve++)Xe[Ve-1]=arguments[Ve];(he=fe.onContextMenu)===null||he===void 0||he.call.apply(he,[fe,ae].concat(Xe))}),V&&(We.className=pe(fe.className,V));var Lt=p.useRef(!1);Lt.current||(Lt.current=$||Ke||zt);var er=Z(Z({},fe),We),qr={},Fn=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Fn.forEach(function(ae){z[ae]&&(qr[ae]=function(){for(var he,ze=arguments.length,Xe=new Array(ze),Ve=0;Ve<ze;Ve++)Xe[Ve]=arguments[Ve];(he=er[ae])===null||he===void 0||he.call.apply(he,[er].concat(Xe)),z[ae].apply(z,Xe)})});var Ko=p.cloneElement(ce,Z(Z({},er),qr)),qo={x:No,y:Mn},Uo=ge?Z({},ge!==!0?ge:{}):null;return p.createElement(p.Fragment,null,p.createElement(Ar,{disabled:!Ke,ref:De,onResize:Fo},p.createElement(ld,{getTriggerDOMNode:Q},Ko)),Lt.current&&p.createElement(Zs.Provider,{value:Se},p.createElement(sd,{portal:e,ref:Ne,prefixCls:i,popup:L,className:pe(M,Ao),style:B,target:Le,onMouseEnter:yr,onMouseLeave:Kr,onPointerEnter:yr,zIndex:N,open:Ke,keepDom:zt,fresh:Y,onClick:te,onPointerDownCapture:Wr,mask:P,motion:ir,maskMotion:hr,onVisibleChanged:Ho,onPrepare:Vo,forceRender:$,autoDestroy:U,getPopupContainer:k,align:cr,arrow:Uo,arrowPos:qo,ready:ar,offsetX:Pn,offsetY:Mo,offsetR:sr,offsetB:_n,onAlign:Jt,stretch:D,targetWidth:Bn/Nn,targetHeight:zo/lr})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const Kg=Wg(Ia);var Cr={shiftX:64,adjustY:1},Sr={adjustX:1,shiftY:!0},mt=[0,0],qg={left:{points:["cr","cl"],overflow:Sr,offset:[-4,0],targetOffset:mt},right:{points:["cl","cr"],overflow:Sr,offset:[4,0],targetOffset:mt},top:{points:["bc","tc"],overflow:Cr,offset:[0,-4],targetOffset:mt},bottom:{points:["tc","bc"],overflow:Cr,offset:[0,4],targetOffset:mt},topLeft:{points:["bl","tl"],overflow:Cr,offset:[0,-4],targetOffset:mt},leftTop:{points:["tr","tl"],overflow:Sr,offset:[-4,0],targetOffset:mt},topRight:{points:["br","tr"],overflow:Cr,offset:[0,-4],targetOffset:mt},rightTop:{points:["tl","tr"],overflow:Sr,offset:[4,0],targetOffset:mt},bottomRight:{points:["tr","br"],overflow:Cr,offset:[0,4],targetOffset:mt},rightBottom:{points:["bl","br"],overflow:Sr,offset:[4,0],targetOffset:mt},bottomLeft:{points:["tl","bl"],overflow:Cr,offset:[0,4],targetOffset:mt},leftBottom:{points:["br","bl"],overflow:Sr,offset:[-4,0],targetOffset:mt}},Ug=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],Gg=function(t,r){var n=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,l=a===void 0?0:a,c=t.mouseLeaveDelay,d=c===void 0?.1:c,f=t.overlayStyle,u=t.prefixCls,g=u===void 0?"rc-tooltip":u,C=t.children,E=t.onVisibleChange,R=t.afterVisibleChange,m=t.transitionName,O=t.animation,x=t.motion,_=t.placement,P=_===void 0?"right":_,j=t.align,S=j===void 0?{}:j,k=t.destroyTooltipOnHide,$=k===void 0?!1:k,H=t.defaultVisible,I=t.getTooltipContainer,L=t.overlayInnerStyle,M=t.overlay,B=t.id,y=t.showArrow,b=y===void 0?!0:y,w=t.classNames,A=t.styles,N=$t(t,Ug),D=id(B),K=h.useRef(null);h.useImperativeHandle(r,function(){return K.current});var Y=Z({},N);"visible"in t&&(Y.popupVisible=t.visible);var G=function(){return p.createElement(nd,{key:"content",prefixCls:g,id:D,bodyClassName:w?.body,overlayInnerStyle:Z(Z({},L),A?.body)},M)},te=function(){var ge=p.Children.only(C),de=ge?.props||{},ve=Z(Z({},de),{},{"aria-describedby":M?D:null});return p.cloneElement(C,ve)};return p.createElement(Kg,Ze({popupClassName:pe(n,w?.root),prefixCls:g,popup:G,action:i,builtinPlacements:qg,popupPlacement:P,ref:K,popupAlign:S,getPopupContainer:I,onPopupVisibleChange:E,afterPopupVisibleChange:R,popupTransitionName:m,popupAnimation:O,popupMotion:x,defaultPopupVisible:H,autoDestroy:$,mouseLeaveDelay:d,popupStyle:Z(Z({},f),A?.root),mouseEnterDelay:l,arrow:b},Y),te())};const Yg=h.forwardRef(Gg),Sn=p.createContext({});process.env.NODE_ENV!=="production"&&(Sn.displayName="FormItemInputContext");const Xg=({children:e,status:t,override:r})=>{const n=p.useContext(Sn),o=p.useMemo(()=>{const i=Object.assign({},n);return r&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,r,n]);return p.createElement(Sn.Provider,{value:o},e)},Qg=p.createContext(void 0),cd=e=>{const t=h.useContext(Pr);return h.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},dd=p.createContext(null),ud=(e,t)=>{const r=p.useContext(dd),n=p.useMemo(()=>{if(!r)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=r,l=o==="vertical"?"-vertical-":"-";return pe(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r?.compactSize,compactDirection:r?.compactDirection,compactItemClassnames:n}},Zg=e=>{const{children:t}=e;return p.createElement(dd.Provider,{value:null},t)},fa=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let o=n;return r&&(o=h.createElement(Xg,{override:!0,status:!0},o)),t&&(o=h.createElement(Zg,null,o)),o},Pa=h.createContext(void 0);process.env.NODE_ENV!=="production"&&(Pa.displayName="zIndexContext");const Ht=100,Jg=10,em=Ht*Jg,tm=em+Ht,fd={Modal:Ht,Drawer:Ht,Popover:Ht,Popconfirm:Ht,Tooltip:Ht,Tour:Ht,FloatButton:Ht},rm={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function nm(e){return e in fd}const om=(e,t)=>{const[,r]=Br(),n=h.useContext(Pa),o=nm(e);let i;if(t!==void 0)i=[t,t];else{let a=n??0;o?a+=(n?0:r.zIndexPopupBase)+fd[e]:a+=rm[e],i=[n===void 0?t:a,a]}if(process.env.NODE_ENV!=="production"){const a=At(e),l=r.zIndexPopupBase+tm,c=i[0]||0;process.env.NODE_ENV!=="production"&&a(t!==void 0||c<=l,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return i},im=(e,t,r)=>r!==void 0?r:`${e}-${t}`;function am(e){const{sizePopupArrow:t,borderRadiusXS:r,borderRadiusOuter:n}=e,o=t/2,i=0,a=o,l=n*1/Math.sqrt(2),c=o-n*(1-1/Math.sqrt(2)),d=o-r*(1/Math.sqrt(2)),f=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),u=2*o-d,g=f,C=2*o-l,E=c,R=2*o-i,m=a,O=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),x=n*(Math.sqrt(2)-1),_=`polygon(${x}px 100%, 50% ${x}px, ${2*o-x}px 100%, ${x}px 100%)`,P=`path('M ${i} ${a} A ${n} ${n} 0 0 0 ${l} ${c} L ${d} ${f} A ${r} ${r} 0 0 1 ${u} ${g} L ${C} ${E} A ${n} ${n} 0 0 0 ${R} ${m} Z')`;return{arrowShadowWidth:O,arrowPath:P,arrowPolygon:_}}const sm=(e,t,r)=>{const{sizePopupArrow:n,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:n,height:n,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:n,height:c(n).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${$e(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},hd=8;function pd(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?hd:n}}function Jn(e,t){return e?t:{}}function lm(e,t,r){const{componentCls:n,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={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"},sm(e,t,o)),{"&:before":{background:t}})]},Jn(!!c.top,{[[`&-placement-top > ${n}-arrow`,`&-placement-topLeft > ${n}-arrow`,`&-placement-topRight > ${n}-arrow`].join(",")]:{bottom:l,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":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${$e(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Jn(!!c.bottom,{[[`&-placement-bottom > ${n}-arrow`,`&-placement-bottomLeft > ${n}-arrow`,`&-placement-bottomRight > ${n}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${n}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${$e(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Jn(!!c.left,{[[`&-placement-left > ${n}-arrow`,`&-placement-leftTop > ${n}-arrow`,`&-placement-leftBottom > ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},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:i},[`&-placement-leftBottom > ${n}-arrow`]:{bottom:i}})),Jn(!!c.right,{[[`&-placement-right > ${n}-arrow`,`&-placement-rightTop > ${n}-arrow`,`&-placement-rightBottom > ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},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:i},[`&-placement-rightBottom > ${n}-arrow`]:{bottom:i}}))}}function cm(e,t,r,n){if(n===!1)return{adjustX:!1,adjustY:!1};const o=n&&typeof n=="object"?n:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+r,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+r,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const il={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"]}},dm={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"]}},um=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function fm(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:i}=e,a=t/2,l={},c=pd({contentRadius:i,limitVerticalRadius:!0});return Object.keys(il).forEach(d=>{const f=n&&dm[d]||il[d],u=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(l[d]=u,um.has(d)&&(u.autoArrow=!1),d){case"top":case"topLeft":case"topRight":u.offset[1]=-a-o;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=a+o;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-a-o;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=a+o;break}if(n)switch(d){case"topLeft":case"bottomLeft":u.offset[0]=-c.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":u.offset[0]=c.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":u.offset[1]=-c.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":u.offset[1]=c.arrowOffsetHorizontal*2-a;break}u.overflow=cm(d,c,t,r),u.htmlRegion="visibleFirst"}),l}function hm(e){return e&&h.isValidElement(e)&&e.type===h.Fragment}const pm=(e,t,r)=>h.isValidElement(e)?h.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function gd(e,t){return pm(e,e,t)}const gm=e=>({animationDuration:e,animationFillMode:"both"}),mm=e=>({animationDuration:e,animationFillMode:"both"}),vm=(e,t,r,n,o=!1)=>{const i=o?"&":"";return{[`
|
|
130
|
-
${i}${e}-enter,
|
|
131
|
-
${i}${e}-appear
|
|
132
|
-
`]:Object.assign(Object.assign({},gm(n)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},mm(n)),{animationPlayState:"paused"}),[`
|
|
133
|
-
${i}${e}-enter${e}-enter-active,
|
|
134
|
-
${i}${e}-appear${e}-appear-active
|
|
135
|
-
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},ym=new xt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),bm=new xt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),al=new xt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),sl=new xt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),xm=new xt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Cm=new xt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Sm=new xt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),wm=new xt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Em=new xt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),jm=new xt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Rm=new xt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),km=new xt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Om={zoom:{inKeyframes:ym,outKeyframes:bm},"zoom-big":{inKeyframes:al,outKeyframes:sl},"zoom-big-fast":{inKeyframes:al,outKeyframes:sl},"zoom-left":{inKeyframes:Sm,outKeyframes:wm},"zoom-right":{inKeyframes:Em,outKeyframes:jm},"zoom-up":{inKeyframes:xm,outKeyframes:Cm},"zoom-down":{inKeyframes:Rm,outKeyframes:km}},$m=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=Om[t];return[vm(n,o,i,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}}]},Tm=e=>{const{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:c,boxShadowSecondary:d,paddingSM:f,paddingXS:u,arrowOffsetHorizontal:g,sizePopupArrow:C}=e,E=t(a).add(C).add(g).equal(),R=t(a).mul(2).add(C).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},$a(e)),{position:"absolute",zIndex:l,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":i,[`${r}-inner`]:{minWidth:R,minHeight:c,padding:`${$e(e.calc(f).div(2).equal())} ${$e(u)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:d,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:E},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(a,hd)}},[`${r}-content`]:{position:"relative"}}),Gp(e,(m,{darkColor:O})=>({[`&${r}-${m}`]:{[`${r}-inner`]:{backgroundColor:O},[`${r}-arrow`]:{"--antd-arrow-background-color":O}}}))),{"&-rtl":{direction:"rtl"}})},lm(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},Im=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},pd({contentRadius:e.borderRadius,limitVerticalRadius:!0})),am(Yt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),md=(e,t=!0)=>$n("Tooltip",n=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=n,l=Yt(n,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[Tm(l),$m(n,"zoom-big-fast")]},Im,{resetStyle:!1,injectStyle:t})(e),Pm=xo.map(e=>`${e}-inverse`);function _m(e,t=!0){return t?[].concat(rt(Pm),rt(xo)).includes(e):xo.includes(e)}const tt=Math.round;function gi(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 ll=(e,t,r)=>r===0?e:e/100;function nn(e,t){const r=t||255;return e>r?r:e<0?0:e}class _o{constructor(t){ee(this,"isValid",!0),ee(this,"r",0),ee(this,"g",0),ee(this,"b",0),ee(this,"a",1),ee(this,"_h",void 0),ee(this,"_s",void 0),ee(this,"_l",void 0),ee(this,"_v",void 0),ee(this,"_max",void 0),ee(this,"_min",void 0),ee(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(i){return n.startsWith(i)};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 _o)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=nn(t.r),this.g=nn(t.g),this.b=nn(t.b),this.a=typeof t.a=="number"?nn(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(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.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=tt(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,i=l=>(n[l]-this[l])*o+this[l],a={r:tt(i("r")),g:tt(i("g")),b:tt(i("b")),a:tt(i("a")*100)/100};return this._c(a)}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=i=>tt((this[i]*this.a+r[i]*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 i=tt(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),r=tt(this.getSaturation()*100),n=tt(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]=nn(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,i){return parseInt(r[o]+r[i||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 g=tt(n*255);this.r=g,this.g=g,this.b=g}let i=0,a=0,l=0;const c=t/60,d=(1-Math.abs(2*n-1))*r,f=d*(1-Math.abs(c%2-1));c>=0&&c<1?(i=d,a=f):c>=1&&c<2?(i=f,a=d):c>=2&&c<3?(a=d,l=f):c>=3&&c<4?(a=f,l=d):c>=4&&c<5?(i=f,l=d):c>=5&&c<6&&(i=d,l=f);const u=n-d/2;this.r=tt((i+u)*255),this.g=tt((a+u)*255),this.b=tt((l+u)*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 i=tt(n*255);if(this.r=i,this.g=i,this.b=i,r<=0)return;const a=t/60,l=Math.floor(a),c=a-l,d=tt(n*(1-r)*255),f=tt(n*(1-r*c)*255),u=tt(n*(1-r*(1-c))*255);switch(l){case 0:this.g=u,this.b=d;break;case 1:this.r=f,this.b=d;break;case 2:this.r=d,this.b=u;break;case 3:this.r=d,this.g=f;break;case 4:this.r=u,this.g=d;break;case 5:default:this.g=d,this.b=f;break}}fromHsvString(t){const r=gi(t,ll);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=gi(t,ll);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=gi(t,(n,o)=>o.includes("%")?tt(n/100*255):n);this.r=r[0],this.g=r[1],this.b=r[2],this.a=r[3]}}var Mm=["b"],Nm=["v"],mi=function(t){return Math.round(Number(t||0))},Am=function(t){if(t instanceof _o)return t;if(t&&we(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,o=$t(r,Mm);return Z(Z({},o),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},cl=(function(e){jn(r,e);var t=Rn(r);function r(n){return yt(this,r),t.call(this,Am(n))}return bt(r,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=mi(o.s*100),a=mi(o.b*100),l=mi(o.h),c=o.a,d="hsb(".concat(l,", ").concat(i,"%, ").concat(a,"%)"),f="hsba(".concat(l,", ").concat(i,"%, ").concat(a,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?d:f}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=$t(o,Nm);return Z(Z({},a),{},{b:i,a:this.a})}}]),r})(_o);const Dm=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",Bm=(e,t)=>e?Dm(e,t):"";let dl=(function(){function e(t){yt(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:i})=>({color:new e(o),percent:i})),this.metaColor=new cl(this.colors[0].color.metaColor)):this.metaColor=new cl(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return bt(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Bm(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 i=r.colors[o];return n.percent===i.percent&&n.color.equals(i.color)}):this.toHexString()===r.toHexString()}}])})();const zm=e=>e instanceof dl?e:new dl(e);function vd(e,t){const r=_m(t),n=pe({[`${e}-${t}`]:t&&r}),o={},i={},a=zm(t).toRgb(),c=(.299*a.r+.587*a.g+.114*a.b)/255<.5?"#FFF":"#000";return t&&!r&&(o.background=t,o["--ant-tooltip-color"]=c,i["--antd-arrow-background-color"]=t),{className:n,overlayStyle:o,arrowStyle:i}}const Lm=e=>{const{prefixCls:t,className:r,placement:n="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=p.useContext(qt),c=l("tooltip",t),[d,f,u]=md(c),g=vd(c,i),C=g.arrowStyle,E=Object.assign(Object.assign({},a),g.overlayStyle),R=pe(f,u,c,`${c}-pure`,`${c}-placement-${n}`,r,g.className);return d(p.createElement("div",{className:R,style:C},p.createElement("div",{className:`${c}-arrow`}),p.createElement(nd,Object.assign({},e,{className:f,prefixCls:c,overlayInnerStyle:E}),o)))};var Fm=exports&&exports.__rest||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 Hm=p.forwardRef((e,t)=>{var r,n;const{prefixCls:o,openClassName:i,getTooltipContainer:a,color:l,overlayInnerStyle:c,children:d,afterOpenChange:f,afterVisibleChange:u,destroyTooltipOnHide:g,destroyOnHidden:C,arrow:E=!0,title:R,overlay:m,builtinPlacements:O,arrowPointAtCenter:x=!1,autoAdjustOverflow:_=!0,getPopupContainer:P,placement:j="top",mouseEnterDelay:S=.1,mouseLeaveDelay:k=.1,overlayStyle:$,rootClassName:H,overlayClassName:I,styles:L,classNames:M}=e,B=Fm(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"]),y=!!E,[,b]=Br(),{getPopupContainer:w,getPrefixCls:A,direction:N,className:D,style:K,classNames:Y,styles:G}=Io("tooltip"),te=At("Tooltip"),le=p.useRef(null),ge=()=>{var Ce;(Ce=le.current)===null||Ce===void 0||Ce.forceAlign()};p.useImperativeHandle(t,()=>{var Ce,Ae;return{forceAlign:ge,forcePopupAlign:()=>{te.deprecated(!1,"forcePopupAlign","forceAlign"),ge()},nativeElement:(Ce=le.current)===null||Ce===void 0?void 0:Ce.nativeElement,popupElement:(Ae=le.current)===null||Ae===void 0?void 0:Ae.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(([Ce,Ae])=>{te.deprecated(!(Ce in e),Ce,Ae)}),process.env.NODE_ENV!=="production"&&te(!g||typeof g=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&te(!E||typeof E=="boolean"||!("arrowPointAtCenter"in E),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[de,ve]=Or(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),T=!R&&!m&&R!==0,F=Ce=>{var Ae,Le;ve(T?!1:Ce),T||((Ae=e.onOpenChange)===null||Ae===void 0||Ae.call(e,Ce),(Le=e.onVisibleChange)===null||Le===void 0||Le.call(e,Ce))},q=p.useMemo(()=>{var Ce,Ae;let Le=x;return typeof E=="object"&&(Le=(Ae=(Ce=E.pointAtCenter)!==null&&Ce!==void 0?Ce:E.arrowPointAtCenter)!==null&&Ae!==void 0?Ae:x),O||fm({arrowPointAtCenter:Le,autoAdjustOverflow:_,arrowWidth:y?b.sizePopupArrow:0,borderRadius:b.borderRadius,offset:b.marginXXS})},[x,E,O,b]),W=p.useMemo(()=>R===0?R:m||R||"",[m,R]),V=p.createElement(fa,{space:!0},typeof W=="function"?W():W),Q=A("tooltip",o),z=A(),U=e["data-popover-inject"];let X=de;!("open"in e)&&!("visible"in e)&&T&&(X=!1);const J=p.isValidElement(d)&&!hm(d)?d:p.createElement("span",null,d),ne=J.props,oe=!ne.className||typeof ne.className=="string"?pe(ne.className,i||`${Q}-open`):ne.className,[be,ye,Se]=md(Q,!U),ue=vd(Q,l),ie=ue.arrowStyle,xe=pe(I,{[`${Q}-rtl`]:N==="rtl"},ue.className,H,ye,Se,D,Y.root,M?.root),Ee=pe(Y.body,M?.body),[Ye,Me]=om("Tooltip",B.zIndex),Ne=p.createElement(Yg,Object.assign({},B,{zIndex:Ye,showArrow:y,placement:j,mouseEnterDelay:S,mouseLeaveDelay:k,prefixCls:Q,classNames:{root:xe,body:Ee},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ie),G.root),K),$),L?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},G.body),c),L?.body),ue.overlayStyle)},getTooltipContainer:P||a||w,ref:le,builtinPlacements:q,overlay:V,visible:X,onVisibleChange:F,afterVisibleChange:f??u,arrowContent:p.createElement("span",{className:`${Q}-arrow-content`}),motion:{motionName:im(z,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:C??!!g}),X?gd(J,{className:oe}):J);return be(p.createElement(Pa.Provider,{value:Me},Ne))}),In=Hm;process.env.NODE_ENV!=="production"&&(In.displayName="Tooltip");In._InternalPanelDoNotUseOrYouWillBeFired=Lm;var Vm={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"},Wm=function(t,r){return p.createElement(Gt,Ze({},t,{ref:r,icon:Vm}))},yd=p.forwardRef(Wm);process.env.NODE_ENV!=="production"&&(yd.displayName="EnterOutlined");var ul={ENTER:13,ESC:27};function Km(e){return!!(e.addonBefore||e.addonAfter)}function qm(e){return!!(e.prefix||e.suffix||e.allowClear)}function fl(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 Co(e,t,r,n){if(r){var o=t;if(t.type==="click"){o=fl(t,e,""),r(o);return}if(e.type!=="file"&&n!==void 0){o=fl(t,e,n),r(o);return}r(o)}}function bd(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 xd=h.forwardRef(function(e,t){var r,n,o,i=e.inputElement,a=e.children,l=e.prefixCls,c=e.prefix,d=e.suffix,f=e.addonBefore,u=e.addonAfter,g=e.className,C=e.style,E=e.disabled,R=e.readOnly,m=e.focused,O=e.triggerFocus,x=e.allowClear,_=e.value,P=e.handleReset,j=e.hidden,S=e.classes,k=e.classNames,$=e.dataAttrs,H=e.styles,I=e.components,L=e.onClear,M=a??i,B=I?.affixWrapper||"span",y=I?.groupWrapper||"span",b=I?.wrapper||"span",w=I?.groupAddon||"span",A=h.useRef(null),N=function(U){var X;(X=A.current)!==null&&X!==void 0&&X.contains(U.target)&&O?.()},D=qm(e),K=h.cloneElement(M,{value:_,className:pe((r=M.props)===null||r===void 0?void 0:r.className,!D&&k?.variant)||null}),Y=h.useRef(null);if(h.useImperativeHandle(t,function(){return{nativeElement:Y.current||A.current}}),D){var G=null;if(x){var te=!E&&!R&&_,le="".concat(l,"-clear-icon"),ge=we(x)==="object"&&x!==null&&x!==void 0&&x.clearIcon?x.clearIcon:"✖";G=h.createElement("button",{type:"button",tabIndex:-1,onClick:function(U){P?.(U),L?.()},onMouseDown:function(U){return U.preventDefault()},className:pe(le,ee(ee({},"".concat(le,"-hidden"),!te),"".concat(le,"-has-suffix"),!!d))},ge)}var de="".concat(l,"-affix-wrapper"),ve=pe(de,ee(ee(ee(ee(ee({},"".concat(l,"-disabled"),E),"".concat(de,"-disabled"),E),"".concat(de,"-focused"),m),"".concat(de,"-readonly"),R),"".concat(de,"-input-with-clear-btn"),d&&x&&_),S?.affixWrapper,k?.affixWrapper,k?.variant),T=(d||x)&&h.createElement("span",{className:pe("".concat(l,"-suffix"),k?.suffix),style:H?.suffix},G,d);K=h.createElement(B,Ze({className:ve,style:H?.affixWrapper,onClick:N},$?.affixWrapper,{ref:A}),c&&h.createElement("span",{className:pe("".concat(l,"-prefix"),k?.prefix),style:H?.prefix},c),K,T)}if(Km(e)){var F="".concat(l,"-group"),q="".concat(F,"-addon"),W="".concat(F,"-wrapper"),V=pe("".concat(l,"-wrapper"),F,S?.wrapper,k?.wrapper),Q=pe(W,ee({},"".concat(W,"-disabled"),E),S?.group,k?.groupWrapper);K=h.createElement(y,{className:Q,ref:Y},h.createElement(b,{className:V},f&&h.createElement(w,{className:q},f),K,u&&h.createElement(w,{className:q},u)))}return h.cloneElement(K,{className:pe((n=K.props)===null||n===void 0?void 0:n.className,g)||null,style:Z(Z({},(o=K.props)===null||o===void 0?void 0:o.style),C),hidden:j})}),Um=["show"];function Cd(e,t){return p.useMemo(function(){var r={};t&&(r.show=we(t)==="object"&&t.formatter?t.formatter:!!t),r=Z(Z({},r),e);var n=r,o=n.show,i=$t(n,Um);return Z(Z({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var Gm=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Ym=h.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,c=e.onKeyUp,d=e.prefixCls,f=d===void 0?"rc-input":d,u=e.disabled,g=e.htmlSize,C=e.className,E=e.maxLength,R=e.suffix,m=e.showCount,O=e.count,x=e.type,_=x===void 0?"text":x,P=e.classes,j=e.classNames,S=e.styles,k=e.onCompositionStart,$=e.onCompositionEnd,H=$t(e,Gm),I=h.useState(!1),L=re(I,2),M=L[0],B=L[1],y=h.useRef(!1),b=h.useRef(!1),w=h.useRef(null),A=h.useRef(null),N=function(ie){w.current&&bd(w.current,ie)},D=Or(e.defaultValue,{value:e.value}),K=re(D,2),Y=K[0],G=K[1],te=Y==null?"":String(Y),le=h.useState(null),ge=re(le,2),de=ge[0],ve=ge[1],T=Cd(O,m),F=T.max||E,q=T.strategy(te),W=!!F&&q>F;h.useImperativeHandle(t,function(){var ue;return{focus:N,blur:function(){var xe;(xe=w.current)===null||xe===void 0||xe.blur()},setSelectionRange:function(xe,Ee,Ye){var Me;(Me=w.current)===null||Me===void 0||Me.setSelectionRange(xe,Ee,Ye)},select:function(){var xe;(xe=w.current)===null||xe===void 0||xe.select()},input:w.current,nativeElement:((ue=A.current)===null||ue===void 0?void 0:ue.nativeElement)||w.current}}),h.useEffect(function(){b.current&&(b.current=!1),B(function(ue){return ue&&u?!1:ue})},[u]);var V=function(ie,xe,Ee){var Ye=xe;if(!y.current&&T.exceedFormatter&&T.max&&T.strategy(xe)>T.max){if(Ye=T.exceedFormatter(xe,{max:T.max}),xe!==Ye){var Me,Ne;ve([((Me=w.current)===null||Me===void 0?void 0:Me.selectionStart)||0,((Ne=w.current)===null||Ne===void 0?void 0:Ne.selectionEnd)||0])}}else if(Ee.source==="compositionEnd")return;G(Ye),w.current&&Co(w.current,ie,n,Ye)};h.useEffect(function(){if(de){var ue;(ue=w.current)===null||ue===void 0||ue.setSelectionRange.apply(ue,rt(de))}},[de]);var Q=function(ie){V(ie,ie.target.value,{source:"change"})},z=function(ie){y.current=!1,V(ie,ie.currentTarget.value,{source:"compositionEnd"}),$?.(ie)},U=function(ie){a&&ie.key==="Enter"&&!b.current&&(b.current=!0,a(ie)),l?.(ie)},X=function(ie){ie.key==="Enter"&&(b.current=!1),c?.(ie)},J=function(ie){B(!0),o?.(ie)},ne=function(ie){b.current&&(b.current=!1),B(!1),i?.(ie)},oe=function(ie){G(""),N(),w.current&&Co(w.current,ie,n)},be=W&&"".concat(f,"-out-of-range"),ye=function(){var ie=cc(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return h.createElement("input",Ze({autoComplete:r},ie,{onChange:Q,onFocus:J,onBlur:ne,onKeyDown:U,onKeyUp:X,className:pe(f,ee({},"".concat(f,"-disabled"),u),j?.input),style:S?.input,ref:w,size:g,type:_,onCompositionStart:function(Ee){y.current=!0,k?.(Ee)},onCompositionEnd:z}))},Se=function(){var ie=Number(F)>0;if(R||T.show){var xe=T.showFormatter?T.showFormatter({value:te,count:q,maxLength:F}):"".concat(q).concat(ie?" / ".concat(F):"");return h.createElement(h.Fragment,null,T.show&&h.createElement("span",{className:pe("".concat(f,"-show-count-suffix"),ee({},"".concat(f,"-show-count-has-suffix"),!!R),j?.count),style:Z({},S?.count)},xe),R)}return null};return h.createElement(xd,Ze({},H,{prefixCls:f,className:pe(C,be),handleReset:oe,value:te,focused:M,triggerFocus:N,suffix:Se(),disabled:u,classes:P,classNames:j,styles:S,ref:A}),ye())}),Xm=`
|
|
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
|
-
`,Qm=["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"],vi={},ut;function Zm(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&&vi[r])return vi[r];var n=window.getComputedStyle(e),o=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),l=Qm.map(function(d){return"".concat(d,":").concat(n.getPropertyValue(d))}).join(";"),c={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&r&&(vi[r]=c),c}function Jm(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;ut||(ut=document.createElement("textarea"),ut.setAttribute("tab-index","-1"),ut.setAttribute("aria-hidden","true"),ut.setAttribute("name","hiddenTextarea"),document.body.appendChild(ut)),e.getAttribute("wrap")?ut.setAttribute("wrap",e.getAttribute("wrap")):ut.removeAttribute("wrap");var o=Zm(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;ut.setAttribute("style","".concat(c,";").concat(Xm)),ut.value=e.value||e.placeholder||"";var d=void 0,f=void 0,u,g=ut.scrollHeight;if(l==="border-box"?g+=a:l==="content-box"&&(g-=i),r!==null||n!==null){ut.value=" ";var C=ut.scrollHeight-i;r!==null&&(d=C*r,l==="border-box"&&(d=d+i+a),g=Math.max(d,g)),n!==null&&(f=C*n,l==="border-box"&&(f=f+i+a),u=g>f?"":"hidden",g=Math.min(f,g))}var E={height:g,overflowY:u,resize:"none"};return d&&(E.minHeight=d),f&&(E.maxHeight=f),E}var e0=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],yi=0,bi=1,xi=2,t0=p.forwardRef(function(e,t){var r=e,n=r.prefixCls,o=r.defaultValue,i=r.value,a=r.autoSize,l=r.onResize,c=r.className,d=r.style,f=r.disabled,u=r.onChange,g=r.onInternalAutoSize,C=$t(r,e0),E=Or(o,{value:i,postState:function(le){return le??""}}),R=re(E,2),m=R[0],O=R[1],x=function(le){O(le.target.value),u?.(le)},_=p.useRef();p.useImperativeHandle(t,function(){return{textArea:_.current}});var P=p.useMemo(function(){return a&&we(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),j=re(P,2),S=j[0],k=j[1],$=!!a,H=p.useState(xi),I=re(H,2),L=I[0],M=I[1],B=p.useState(),y=re(B,2),b=y[0],w=y[1],A=function(){M(yi),process.env.NODE_ENV==="test"&&g?.()};Fe(function(){$&&A()},[i,S,k,$]),Fe(function(){if(L===yi)M(bi);else if(L===bi){var te=Jm(_.current,!1,S,k);M(xi),w(te)}},[L]);var N=p.useRef(),D=function(){_r.cancel(N.current)},K=function(le){L===xi&&(l?.(le),a&&(D(),N.current=_r(function(){A()})))};p.useEffect(function(){return D},[]);var Y=$?b:null,G=Z(Z({},d),Y);return(L===yi||L===bi)&&(G.overflowY="hidden",G.overflowX="hidden"),p.createElement(Ar,{onResize:K,disabled:!(a||l)},p.createElement("textarea",Ze({},C,{ref:_,style:G,className:pe(n,c,ee({},"".concat(n,"-disabled"),f)),disabled:f,value:m,onChange:x})))}),r0=["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"],n0=h.forwardRef(function(e,t){var r,n=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,l=e.onChange,c=e.allowClear,d=e.maxLength,f=e.onCompositionStart,u=e.onCompositionEnd,g=e.suffix,C=e.prefixCls,E=C===void 0?"rc-textarea":C,R=e.showCount,m=e.count,O=e.className,x=e.style,_=e.disabled,P=e.hidden,j=e.classNames,S=e.styles,k=e.onResize,$=e.onClear,H=e.onPressEnter,I=e.readOnly,L=e.autoSize,M=e.onKeyDown,B=$t(e,r0),y=Or(n,{value:o,defaultValue:n}),b=re(y,2),w=b[0],A=b[1],N=w==null?"":String(w),D=h.useState(!1),K=re(D,2),Y=K[0],G=K[1],te=h.useRef(!1),le=h.useState(null),ge=re(le,2),de=ge[0],ve=ge[1],T=h.useRef(null),F=h.useRef(null),q=function(){var me;return(me=F.current)===null||me===void 0?void 0:me.textArea},W=function(){q().focus()};h.useImperativeHandle(t,function(){var Te;return{resizableTextArea:F.current,focus:W,blur:function(){q().blur()},nativeElement:((Te=T.current)===null||Te===void 0?void 0:Te.nativeElement)||q()}}),h.useEffect(function(){G(function(Te){return!_&&Te})},[_]);var V=h.useState(null),Q=re(V,2),z=Q[0],U=Q[1];h.useEffect(function(){if(z){var Te;(Te=q()).setSelectionRange.apply(Te,rt(z))}},[z]);var X=Cd(m,R),J=(r=X.max)!==null&&r!==void 0?r:d,ne=Number(J)>0,oe=X.strategy(N),be=!!J&&oe>J,ye=function(me,De){var ce=De;!te.current&&X.exceedFormatter&&X.max&&X.strategy(De)>X.max&&(ce=X.exceedFormatter(De,{max:X.max}),De!==ce&&U([q().selectionStart||0,q().selectionEnd||0])),A(ce),Co(me.currentTarget,me,l,ce)},Se=function(me){te.current=!0,f?.(me)},ue=function(me){te.current=!1,ye(me,me.currentTarget.value),u?.(me)},ie=function(me){ye(me,me.target.value)},xe=function(me){me.key==="Enter"&&H&&H(me),M?.(me)},Ee=function(me){G(!0),i?.(me)},Ye=function(me){G(!1),a?.(me)},Me=function(me){A(""),W(),Co(q(),me,l)},Ne=g,Ce;X.show&&(X.showFormatter?Ce=X.showFormatter({value:N,count:oe,maxLength:J}):Ce="".concat(oe).concat(ne?" / ".concat(J):""),Ne=h.createElement(h.Fragment,null,Ne,h.createElement("span",{className:pe("".concat(E,"-data-count"),j?.count),style:S?.count},Ce)));var Ae=function(me){var De;k?.(me),(De=q())!==null&&De!==void 0&&De.style.height&&ve(!0)},Le=!L&&!R&&!c;return h.createElement(xd,{ref:T,value:N,allowClear:c,handleReset:Me,suffix:Ne,prefixCls:E,classNames:Z(Z({},j),{},{affixWrapper:pe(j?.affixWrapper,ee(ee({},"".concat(E,"-show-count"),R),"".concat(E,"-textarea-allow-clear"),c))}),disabled:_,focused:Y,className:pe(O,be&&"".concat(E,"-out-of-range")),style:Z(Z({},x),de&&!Le?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ce=="string"?Ce:void 0}},hidden:P,readOnly:I,onClear:$},h.createElement(t0,Ze({},B,{autoSize:L,maxLength:d,onKeyDown:xe,onChange:ie,onFocus:Ee,onBlur:Ye,onCompositionStart:Se,onCompositionEnd:ue,className:pe(j?.textarea),style:Z(Z({},S?.textarea),{},{resize:x?.resize}),disabled:_,prefixCls:E,onResize:Ae,ref:F,readOnly:I})))}),o0={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"},i0=function(t,r){return p.createElement(Gt,Ze({},t,{ref:r,icon:o0}))},Sd=p.forwardRef(i0);process.env.NODE_ENV!=="production"&&(Sd.displayName="CloseCircleFilled");const wd=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:h.createElement(Sd,null)}),t};function ha(e,t,r){return pe({[`${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 Ed=(e,t)=>t||e,jd=e=>{const[,,,,t]=Br();return t?`${e}-css-var`:""},Rd=(e,t,r=void 0)=>{var n,o;const{variant:i,[e]:a}=p.useContext(qt),l=p.useContext(Qg),c=a?.variant;let d;typeof t<"u"?d=t:r===!1?d="borderless":d=(o=(n=l??c)!==null&&n!==void 0?n:i)!==null&&o!==void 0?o:"outlined";const f=yp.includes(d);return[d,f]};function a0(e,t){const r=h.useRef([]),n=()=>{r.current.push(setTimeout(()=>{var o,i,a,l;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return h.useEffect(()=>(n(),()=>r.current.forEach(o=>{o&&clearTimeout(o)})),[]),n}function s0(e,t,r,n){const{focusElCls:o,focus:i,borderElCls:a}=r,l=a?"> *":"",c=["hover",i?"focus":null,"active"].filter(Boolean).map(d=>`&:${d} ${l}`).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({[c]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${l}`]:{zIndex:0}})}}function l0(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 c0(e,t={focus:!0}){const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},s0(e,n,t,r)),l0(r,n,t))}}function _a(e){return Yt(e,{inputAffixPadding:e.paddingXXS})}const Ma=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:d,controlPaddingHorizontalSM:f,controlPaddingHorizontal:u,colorFillAlter:g,colorPrimaryHover:C,colorPrimary:E,controlOutlineWidth:R,controlOutline:m,colorErrorOutline:O,colorWarningOutline:x,colorBgContainer:_,inputFontSize:P,inputFontSizeLG:j,inputFontSizeSM:S}=e,k=P||r,$=S||k,H=j||l,I=Math.round((t-k*n)/2*10)/10-o,L=Math.round((i-$*n)/2*10)/10-o,M=Math.ceil((a-H*c)/2*10)/10-o;return{paddingBlock:Math.max(I,0),paddingBlockSM:Math.max(L,0),paddingBlockLG:Math.max(M,0),paddingInline:d-o,paddingInlineSM:f-o,paddingInlineLG:u-o,addonBg:g,activeBorderColor:E,hoverBorderColor:C,activeShadow:`0 0 0 ${R}px ${m}`,errorActiveShadow:`0 0 0 ${R}px ${O}`,warningActiveShadow:`0 0 0 ${R}px ${x}`,hoverBg:_,activeBg:_,inputFontSize:k,inputFontSizeLG:H,inputFontSizeSM:$}},d0=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Na=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({},d0(Yt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),kd=(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}}),hl=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},kd(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),u0=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kd(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Na(e))}),hl(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),hl(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),pl=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),f0=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},pl(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),pl(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Na(e))}})}),h0=(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)}},Od=(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}}},gl=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Od(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),p0=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Od(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Na(e))}),gl(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),gl(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),ml=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),g0=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},ml(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),ml(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:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${$e(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),$d=(e,t)=>({background:e.colorBgContainer,borderWidth:`${$e(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}}),vl=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},$d(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`}}),m0=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},$d(e,{borderColor:e.colorBorder,activeBorderColor:e.activeBorderColor})),{[`&${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"}}),vl(e,{status:"error",borderColor:e.colorError,activeBorderColor:e.colorError,affixColor:e.colorError})),vl(e,{status:"warning",borderColor:e.colorWarning,activeBorderColor:e.colorWarning,affixColor:e.colorWarning})),t)}),v0=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Td=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:o}=e;return{padding:`${$e(t)} ${$e(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},Id=e=>({padding:`${$e(e.paddingBlockSM)} ${$e(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Pd=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${$e(e.paddingBlock)} ${$e(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},v0(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Td(e)),"&-sm":Object.assign({},Id(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),y0=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({},Td(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Id(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 ${$e(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${$e(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${$e(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:`${$e(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${$e(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"},Vp()),{[`${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}}}})}},b0=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n,calc:o}=e,a=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({},$a(e)),Pd(e)),u0(e)),p0(e)),h0(e)),m0(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},x0=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 ${$e(e.inputAffixPadding)}`}}}},C0=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`,d=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},Pd(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}}}),x0(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[d]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},S0=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},$a(e)),y0(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}}},f0(e)),g0(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}}})})}},w0=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}}}}},E0=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},_d=$n(["Input","Shared"],e=>{const t=Yt(e,_a(e));return[b0(t),C0(t)]},Ma,{resetFont:!1}),j0=$n(["Input","Component"],e=>{const t=Yt(e,_a(e));return[S0(t),w0(t),E0(t),c0(t)]},Ma,{resetFont:!1});function R0(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var k0=exports&&exports.__rest||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 O0=h.forwardRef((e,t)=>{const{prefixCls:r,bordered:n=!0,status:o,size:i,disabled:a,onBlur:l,onFocus:c,suffix:d,allowClear:f,addonAfter:u,addonBefore:g,className:C,style:E,styles:R,rootClassName:m,onChange:O,classNames:x,variant:_}=e,P=k0(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:oe}=At("Input");oe(!("bordered"in e),"bordered","variant")}const{getPrefixCls:j,direction:S,allowClear:k,autoComplete:$,className:H,style:I,classNames:L,styles:M}=Io("input"),B=j("input",r),y=h.useRef(null),b=jd(B),[w,A,N]=_d(B,m),[D]=j0(B,b),{compactSize:K,compactItemClassnames:Y}=ud(B,S),G=cd(oe=>{var be;return(be=i??K)!==null&&be!==void 0?be:oe}),te=h.useContext(xn),le=a??te,{status:ge,hasFeedback:de,feedbackIcon:ve}=h.useContext(Sn),T=Ed(ge,o),F=R0(e)||!!de,q=h.useRef(F);if(process.env.NODE_ENV!=="production"){const oe=At("Input");h.useEffect(()=>{var be;F&&!q.current&&process.env.NODE_ENV!=="production"&&oe(document.activeElement===((be=y.current)===null||be===void 0?void 0:be.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"),q.current=F},[F])}const W=a0(y),V=oe=>{W(),l?.(oe)},Q=oe=>{W(),c?.(oe)},z=oe=>{W(),O?.(oe)},U=(de||d)&&h.createElement(h.Fragment,null,d,de&&ve),X=wd(f??k),[J,ne]=Rd("input",_,n);return w(D(h.createElement(Ym,Object.assign({ref:En(t,y),prefixCls:B,autoComplete:$},P,{disabled:le,onBlur:V,onFocus:Q,style:Object.assign(Object.assign({},I),E),styles:Object.assign(Object.assign({},M),R),suffix:U,allowClear:X,className:pe(C,m,N,b,Y,H),onChange:z,addonBefore:g&&h.createElement(fa,{form:!0,space:!0},g),addonAfter:u&&h.createElement(fa,{form:!0,space:!0},u),classNames:Object.assign(Object.assign(Object.assign({},x),L),{input:pe({[`${B}-sm`]:G==="small",[`${B}-lg`]:G==="large",[`${B}-rtl`]:S==="rtl"},x?.input,L.input,A),variant:pe({[`${B}-${J}`]:ne},ha(B,T)),affixWrapper:pe({[`${B}-affix-wrapper-sm`]:G==="small",[`${B}-affix-wrapper-lg`]:G==="large",[`${B}-affix-wrapper-rtl`]:S==="rtl"},A),wrapper:pe({[`${B}-group-rtl`]:S==="rtl"},A),groupWrapper:pe({[`${B}-group-wrapper-sm`]:G==="small",[`${B}-group-wrapper-lg`]:G==="large",[`${B}-group-wrapper-rtl`]:S==="rtl",[`${B}-group-wrapper-${J}`]:ne},ha(`${B}-group-wrapper`,T,de),A)})}))))});process.env.NODE_ENV!=="production"&&(O0.displayName="Input");const $0=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}}}}}},T0=$n(["Input","TextArea"],e=>{const t=Yt(e,_a(e));return $0(t)},Ma,{resetFont:!1});var I0=exports&&exports.__rest||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 P0=h.forwardRef((e,t)=>{var r;const{prefixCls:n,bordered:o=!0,size:i,disabled:a,status:l,allowClear:c,classNames:d,rootClassName:f,className:u,style:g,styles:C,variant:E,showCount:R,onMouseDown:m,onResize:O}=e,x=I0(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);if(process.env.NODE_ENV!=="production"){const{deprecated:X}=At("TextArea");X(!("bordered"in e),"bordered","variant")}const{getPrefixCls:_,direction:P,allowClear:j,autoComplete:S,className:k,style:$,classNames:H,styles:I}=Io("textArea"),L=p.useContext(xn),M=a??L,{status:B,hasFeedback:y,feedbackIcon:b}=p.useContext(Sn),w=Ed(B,l),A=p.useRef(null);p.useImperativeHandle(t,()=>{var X;return{resizableTextArea:(X=A.current)===null||X===void 0?void 0:X.resizableTextArea,focus:J=>{var ne,oe;bd((oe=(ne=A.current)===null||ne===void 0?void 0:ne.resizableTextArea)===null||oe===void 0?void 0:oe.textArea,J)},blur:()=>{var J;return(J=A.current)===null||J===void 0?void 0:J.blur()}}});const N=_("input",n),D=jd(N),[K,Y,G]=_d(N,f),[te]=T0(N,D),{compactSize:le,compactItemClassnames:ge}=ud(N,P),de=cd(X=>{var J;return(J=i??le)!==null&&J!==void 0?J:X}),[ve,T]=Rd("textArea",E,o),F=wd(c??j),[q,W]=p.useState(!1),[V,Q]=p.useState(!1),z=X=>{W(!0),m?.(X);const J=()=>{W(!1),document.removeEventListener("mouseup",J)};document.addEventListener("mouseup",J)},U=X=>{var J,ne;if(O?.(X),q&&typeof getComputedStyle=="function"){const oe=(ne=(J=A.current)===null||J===void 0?void 0:J.nativeElement)===null||ne===void 0?void 0:ne.querySelector("textarea");oe&&getComputedStyle(oe).resize==="both"&&Q(!0)}};return K(te(p.createElement(n0,Object.assign({autoComplete:S},x,{style:Object.assign(Object.assign({},$),g),styles:Object.assign(Object.assign({},I),C),disabled:M,allowClear:F,className:pe(G,D,u,f,ge,k,V&&`${N}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},d),H),{textarea:pe({[`${N}-sm`]:de==="small",[`${N}-lg`]:de==="large"},Y,d?.textarea,H.textarea,q&&`${N}-mouse-active`),variant:pe({[`${N}-${ve}`]:T},ha(N,w)),affixWrapper:pe(`${N}-textarea-affix-wrapper`,{[`${N}-affix-wrapper-rtl`]:P==="rtl",[`${N}-affix-wrapper-sm`]:de==="small",[`${N}-affix-wrapper-lg`]:de==="large",[`${N}-textarea-show-count`]:R||((r=e.count)===null||r===void 0?void 0:r.show)},Y)}),prefixCls:N,suffix:y&&p.createElement("span",{className:`${N}-textarea-suffix`},b),showCount:R,ref:A,onResize:U,onMouseDown:z}))))}),_0=(e,t,r,n)=>{const{titleMarginBottom:o,fontWeightStrong:i}=n;return{marginBottom:o,color:r,fontWeight:i,fontSize:e,lineHeight:t}},M0=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
|
-
`]=_0(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},N0=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Fc(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},A0=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}}),D0=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 - ${$e(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"}}}},B0=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),z0=()=>({"\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"}}),L0=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"}},M0(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}}}),A0(e)),N0(e)),{[`
|
|
179
|
-
${t}-expand,
|
|
180
|
-
${t}-collapse,
|
|
181
|
-
${t}-edit,
|
|
182
|
-
${t}-copy
|
|
183
|
-
`]:Object.assign(Object.assign({},Fc(e)),{marginInlineStart:e.marginXXS})}),D0(e)),B0(e)),z0()),{"&-rtl":{direction:"rtl"}})}},F0=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Md=$n("Typography",L0,F0),H0=e=>{const{prefixCls:t,"aria-label":r,className:n,style:o,direction:i,maxLength:a,autoSize:l=!0,value:c,onSave:d,onCancel:f,onEnd:u,component:g,enterIcon:C=p.createElement(yd,null)}=e,E=p.useRef(null),R=p.useRef(!1),m=p.useRef(null),[O,x]=p.useState(c);p.useEffect(()=>{x(c)},[c]),p.useEffect(()=>{var y;if(!((y=E.current)===null||y===void 0)&&y.resizableTextArea){const{textArea:b}=E.current.resizableTextArea;b.focus();const{length:w}=b.value;b.setSelectionRange(w,w)}},[]);const _=({target:y})=>{x(y.value.replace(/[\n\r]/g,""))},P=()=>{R.current=!0},j=()=>{R.current=!1},S=({keyCode:y})=>{R.current||(m.current=y)},k=()=>{d(O.trim())},$=({keyCode:y,ctrlKey:b,altKey:w,metaKey:A,shiftKey:N})=>{m.current!==y||R.current||b||w||A||N||(y===ul.ENTER?(k(),u?.()):y===ul.ESC&&f())},H=()=>{k()},[I,L,M]=Md(t),B=pe(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${g}`]:!!g},n,L,M);return I(p.createElement("div",{className:B,style:o},p.createElement(P0,{ref:E,maxLength:a,value:O,onChange:_,onKeyDown:S,onKeyUp:$,onCompositionStart:P,onCompositionEnd:j,onBlur:H,"aria-label":r,rows:1,autoSize:l}),C!==null?gd(C,{className:`${t}-edit-content-confirm`}):null))};var Ci,yl;function V0(){return yl||(yl=1,Ci=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()}}),Ci}var Si,bl;function W0(){if(bl)return Si;bl=1;var e=V0(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(i){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,a)}function o(i,a){var l,c,d,f,u,g,C=!1;a||(a={}),l=a.debug||!1;try{d=e(),f=document.createRange(),u=document.getSelection(),g=document.createElement("span"),g.textContent=i,g.ariaHidden="true",g.style.all="unset",g.style.position="fixed",g.style.top=0,g.style.clip="rect(0, 0, 0, 0)",g.style.whiteSpace="pre",g.style.webkitUserSelect="text",g.style.MozUserSelect="text",g.style.msUserSelect="text",g.style.userSelect="text",g.addEventListener("copy",function(R){if(R.stopPropagation(),a.format)if(R.preventDefault(),typeof R.clipboardData>"u"){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var m=t[a.format]||t.default;window.clipboardData.setData(m,i)}else R.clipboardData.clearData(),R.clipboardData.setData(a.format,i);a.onCopy&&(R.preventDefault(),a.onCopy(R.clipboardData))}),document.body.appendChild(g),f.selectNodeContents(g),u.addRange(f);var E=document.execCommand("copy");if(!E)throw new Error("copy command was unsuccessful");C=!0}catch(R){l&&console.error("unable to copy using execCommand: ",R),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",i),a.onCopy&&a.onCopy(window.clipboardData),C=!0}catch(m){l&&console.error("unable to copy using clipboardData: ",m),l&&console.error("falling back to prompt"),c=n("message"in a?a.message:r),window.prompt(c,i)}}finally{u&&(typeof u.removeRange=="function"?u.removeRange(f):u.removeAllRanges()),g&&document.body.removeChild(g),d()}return C}return Si=o,Si}var K0=W0();const q0=So(K0),U0=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];var G0=exports&&exports.__awaiter||function(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function l(f){try{d(n.next(f))}catch(u){a(u)}}function c(f){try{d(n.throw(f))}catch(u){a(u)}}function d(f){f.done?i(f.value):o(f.value).then(l,c)}d((n=n.apply(e,t||[])).next())})};const Y0=({copyConfig:e,children:t})=>{const[r,n]=p.useState(!1),[o,i]=p.useState(!1),a=p.useRef(null),l=()=>{a.current&&clearTimeout(a.current)},c={};e.format&&(c.format=e.format),p.useEffect(()=>l,[]);const d=ft(f=>G0(void 0,void 0,void 0,function*(){var u;f?.preventDefault(),f?.stopPropagation(),i(!0);try{const g=typeof e.text=="function"?yield e.text():e.text;q0(g||U0(t,!0).join("")||"",c),i(!1),n(!0),l(),a.current=setTimeout(()=>{n(!1)},3e3),(u=e.onCopy)===null||u===void 0||u.call(e,f)}catch(g){throw i(!1),g}}));return{copied:r,copyLoading:o,onClick:d}};function wi(e,t){return p.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const X0=e=>{const t=h.useRef(void 0);return h.useEffect(()=>{t.current=e}),t.current},Q0=(e,t,r)=>h.useMemo(()=>e===!0?{title:t??r}:h.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??r},e):{title:e},[e,t,r]);var Z0=exports&&exports.__rest||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 Nd=p.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:o,rootClassName:i,setContentRef:a,children:l,direction:c,style:d}=e,f=Z0(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:u,direction:g,className:C,style:E}=Io("typography"),R=c??g,m=a?En(t,a):t,O=u("typography",r);process.env.NODE_ENV!=="production"&&At("Typography").deprecated(!a,"setContentRef","ref");const[x,_,P]=Md(O),j=pe(O,C,{[`${O}-rtl`]:R==="rtl"},o,i,_,P),S=Object.assign(Object.assign({},E),d);return x(p.createElement(n,Object.assign({className:j,style:S,ref:m},f),l))});process.env.NODE_ENV!=="production"&&(Nd.displayName="Typography");var J0={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"},ev=function(t,r){return p.createElement(Gt,Ze({},t,{ref:r,icon:J0}))},Ad=p.forwardRef(ev);process.env.NODE_ENV!=="production"&&(Ad.displayName="CheckOutlined");var tv={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"},rv=function(t,r){return p.createElement(Gt,Ze({},t,{ref:r,icon:tv}))},Dd=p.forwardRef(rv);process.env.NODE_ENV!=="production"&&(Dd.displayName="CopyOutlined");var nv={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"},ov=function(t,r){return p.createElement(Gt,Ze({},t,{ref:r,icon:nv}))},Bd=p.forwardRef(ov);process.env.NODE_ENV!=="production"&&(Bd.displayName="LoadingOutlined");function xl(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Ei(e,t,r){return e===!0||e===void 0?t:e||r&&t}function iv(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 Aa=e=>["string","number"].includes(typeof e),av=({prefixCls:e,copied:t,locale:r,iconOnly:n,tooltips:o,icon:i,tabIndex:a,onCopy:l,loading:c})=>{const d=xl(o),f=xl(i),{copied:u,copy:g}=r??{},C=t?u:g,E=Ei(d[t?1:0],C),R=typeof E=="string"?E:C;return p.createElement(In,{title:E,getPopupContainer:m=>m.parentNode},p.createElement("button",{type:"button",className:pe(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:n}),onClick:l,"aria-label":R,tabIndex:a},t?Ei(f[1],p.createElement(Ad,null),!0):Ei(f[0],c?p.createElement(Bd,null):p.createElement(Dd,null),!0)))},eo=p.forwardRef(({style:e,children:t},r)=>{const n=p.useRef(null);return p.useImperativeHandle(r,()=>({isExceed:()=>{const o=n.current;return o.scrollHeight>o.clientHeight},getHeight:()=>n.current.clientHeight})),p.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)}),sv=e=>e.reduce((t,r)=>t+(Aa(r)?String(r).length:1),0);function Cl(e,t){let r=0;const n=[];for(let o=0;o<e.length;o+=1){if(r===t)return n;const i=e[o],l=Aa(i)?String(i).length:1,c=r+l;if(c>t){const d=t-r;return n.push(String(i).slice(0,d)),n}n.push(i),r=c}return e}const ji=0,Ri=1,ki=2,Oi=3,Sl=4,to={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function lv(e){const{enableMeasure:t,width:r,text:n,children:o,rows:i,expanded:a,miscDeps:l,onEllipsis:c}=e,d=p.useMemo(()=>hn(n),[n]),f=p.useMemo(()=>sv(d),[n]),u=p.useMemo(()=>o(d,!1),[n]),[g,C]=p.useState(null),E=p.useRef(null),R=p.useRef(null),m=p.useRef(null),O=p.useRef(null),x=p.useRef(null),[_,P]=p.useState(!1),[j,S]=p.useState(ji),[k,$]=p.useState(0),[H,I]=p.useState(null);Fe(()=>{S(t&&r&&f?Ri:ji)},[r,n,i,t,d]),Fe(()=>{var y,b,w,A;if(j===Ri){S(ki);const N=R.current&&getComputedStyle(R.current).whiteSpace;I(N)}else if(j===ki){const N=!!(!((y=m.current)===null||y===void 0)&&y.isExceed());S(N?Oi:Sl),C(N?[0,f]:null),P(N);const D=((b=m.current)===null||b===void 0?void 0:b.getHeight())||0,K=i===1?0:((w=O.current)===null||w===void 0?void 0:w.getHeight())||0,Y=((A=x.current)===null||A===void 0?void 0:A.getHeight())||0,G=Math.max(D,K+Y);$(G+1),c(N)}},[j]);const L=g?Math.ceil((g[0]+g[1])/2):0;Fe(()=>{var y;const[b,w]=g||[0,0];if(b!==w){const N=(((y=E.current)===null||y===void 0?void 0:y.getHeight())||0)>k;let D=L;w-b===1&&(D=N?b:w),C(N?[b,D]:[D,w])}},[g,L]);const M=p.useMemo(()=>{if(!t)return o(d,!1);if(j!==Oi||!g||g[0]!==g[1]){const y=o(d,!1);return[Sl,ji].includes(j)?y:p.createElement("span",{style:Object.assign(Object.assign({},to),{WebkitLineClamp:i})},y)}return o(a?d:Cl(d,g[0]),_)},[a,j,g,d].concat(rt(l))),B={width:r,margin:0,padding:0,whiteSpace:H==="nowrap"?"normal":"inherit"};return p.createElement(p.Fragment,null,M,j===ki&&p.createElement(p.Fragment,null,p.createElement(eo,{style:Object.assign(Object.assign(Object.assign({},B),to),{WebkitLineClamp:i}),ref:m},u),p.createElement(eo,{style:Object.assign(Object.assign(Object.assign({},B),to),{WebkitLineClamp:i-1}),ref:O},u),p.createElement(eo,{style:Object.assign(Object.assign(Object.assign({},B),to),{WebkitLineClamp:1}),ref:x},o([],!0))),j===Oi&&g&&g[0]!==g[1]&&p.createElement(eo,{style:Object.assign(Object.assign({},B),{top:400}),ref:E},o(Cl(d,L),!0)),j===Ri&&p.createElement("span",{style:{whiteSpace:"inherit"},ref:R}))}const zd=({enableEllipsis:e,isEllipsis:t,children:r,tooltipProps:n})=>!n?.title||!e?r:p.createElement(In,Object.assign({open:t?void 0:!1},n),r);process.env.NODE_ENV!=="production"&&(zd.displayName="EllipsisTooltip");var cv=exports&&exports.__rest||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 dv({mark:e,code:t,underline:r,delete:n,strong:o,keyboard:i,italic:a},l){let c=l;function d(f,u){u&&(c=p.createElement(f,{},c))}return d("strong",o),d("u",r),d("del",n),d("code",t),d("mark",e),d("kbd",i),d("i",a),c}const uv="...",wl=["delete","mark","code","underline","strong","keyboard","italic"],fv=p.forwardRef((e,t)=>{var r;const{prefixCls:n,className:o,style:i,type:a,disabled:l,children:c,ellipsis:d,editable:f,copyable:u,component:g,title:C}=e,E=cv(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:R,direction:m}=p.useContext(qt),[O]=ap("Text"),x=p.useRef(null),_=p.useRef(null),P=R("typography",n),j=cc(E,wl),[S,k]=wi(f),[$,H]=Or(!1,{value:k.editing}),{triggerType:I=["icon"]}=k,L=ce=>{var fe;ce&&((fe=k.onStart)===null||fe===void 0||fe.call(k)),H(ce)},M=X0($);Fe(()=>{var ce;!$&&M&&((ce=_.current)===null||ce===void 0||ce.focus())},[$]);const B=ce=>{ce?.preventDefault(),L(!0)},y=ce=>{var fe;(fe=k.onChange)===null||fe===void 0||fe.call(k,ce),L(!1)},b=()=>{var ce;(ce=k.onCancel)===null||ce===void 0||ce.call(k),L(!1)},[w,A]=wi(u),{copied:N,copyLoading:D,onClick:K}=Y0({copyConfig:A,children:c}),[Y,G]=p.useState(!1),[te,le]=p.useState(!1),[ge,de]=p.useState(!1),[ve,T]=p.useState(!1),[F,q]=p.useState(!0),[W,V]=wi(d,{expandable:!1,symbol:ce=>ce?O?.collapse:O?.expand}),[Q,z]=Or(V.defaultExpanded||!1,{value:V.expanded}),U=W&&(!Q||V.expandable==="collapsible"),{rows:X=1}=V,J=p.useMemo(()=>U&&(V.suffix!==void 0||V.onEllipsis||V.expandable||S||w),[U,V,S,w]);Fe(()=>{W&&!J&&(G(Cs("webkitLineClamp")),le(Cs("textOverflow")))},[J,W]);const[ne,oe]=p.useState(U),be=p.useMemo(()=>J?!1:X===1?te:Y,[J,te,Y]);Fe(()=>{oe(be&&U)},[be,U]);const ye=U&&(ne?ve:ge),Se=U&&X===1&&ne,ue=U&&X>1&&ne,ie=(ce,fe)=>{var We;z(fe.expanded),(We=V.onExpand)===null||We===void 0||We.call(V,ce,fe)},[xe,Ee]=p.useState(0),Ye=({offsetWidth:ce})=>{Ee(ce)},Me=ce=>{var fe;de(ce),ge!==ce&&((fe=V.onEllipsis)===null||fe===void 0||fe.call(V,ce))};p.useEffect(()=>{const ce=x.current;if(W&&ne&&ce){const fe=iv(ce);ve!==fe&&T(fe)}},[W,ne,c,ue,F,xe]),p.useEffect(()=>{const ce=x.current;if(typeof IntersectionObserver>"u"||!ce||!ne||!U)return;const fe=new IntersectionObserver(()=>{q(!!ce.offsetParent)});return fe.observe(ce),()=>{fe.disconnect()}},[ne,U]);const Ne=Q0(V.tooltip,k.text,c),Ce=p.useMemo(()=>{if(!(!W||ne))return[k.text,c,C,Ne.title].find(Aa)},[W,ne,C,Ne.title,ye]);if($)return p.createElement(H0,{value:(r=k.text)!==null&&r!==void 0?r:typeof c=="string"?c:"",onSave:y,onCancel:b,onEnd:k.onEnd,prefixCls:P,className:o,style:i,direction:m,component:g,maxLength:k.maxLength,autoSize:k.autoSize,enterIcon:k.enterIcon});const Ae=()=>{const{expandable:ce,symbol:fe}=V;return ce?p.createElement("button",{type:"button",key:"expand",className:`${P}-${Q?"collapse":"expand"}`,onClick:We=>ie(We,{expanded:!Q}),"aria-label":Q?O.collapse:O?.expand},typeof fe=="function"?fe(Q):fe):null},Le=()=>{if(!S)return;const{icon:ce,tooltip:fe,tabIndex:We}=k,Dt=hn(fe)[0]||O?.edit,ir=typeof Dt=="string"?Dt:"";return I.includes("icon")?p.createElement(In,{key:"edit",title:fe===!1?"":Dt},p.createElement("button",{type:"button",ref:_,className:`${P}-edit`,onClick:B,"aria-label":ir,tabIndex:We},ce||p.createElement(Ql,{role:"button"}))):null},Te=()=>w?p.createElement(av,Object.assign({key:"copy"},A,{prefixCls:P,copied:N,locale:O,onCopy:K,loading:D,iconOnly:c==null})):null,me=ce=>[ce&&Ae(),Le(),Te()],De=ce=>[ce&&!Q&&p.createElement("span",{"aria-hidden":!0,key:"ellipsis"},uv),V.suffix,me(ce)];return p.createElement(Ar,{onResize:Ye,disabled:!U},ce=>p.createElement(zd,{tooltipProps:Ne,enableEllipsis:U,isEllipsis:ye},p.createElement(Nd,Object.assign({className:pe({[`${P}-${a}`]:a,[`${P}-disabled`]:l,[`${P}-ellipsis`]:W,[`${P}-ellipsis-single-line`]:Se,[`${P}-ellipsis-multiple-line`]:ue},o),prefixCls:n,style:Object.assign(Object.assign({},i),{WebkitLineClamp:ue?X:void 0}),component:g,ref:En(ce,x,t),direction:m,onClick:I.includes("text")?B:void 0,"aria-label":Ce?.toString(),title:C},j),p.createElement(lv,{enableMeasure:U&&!ne,text:c,rows:X,width:xe,onEllipsis:Me,expanded:Q,miscDeps:[N,Q,D,S,w,O].concat(rt(wl.map(fe=>e[fe])))},(fe,We)=>dv(e,p.createElement(p.Fragment,null,fe.length>0&&We&&!Q&&Ce?p.createElement("span",{key:"show-content","aria-hidden":!0},fe):fe,De(We)))))))}),hv=p.forwardRef((e,t)=>p.createElement(fv,Object.assign({ref:t},e,{component:"div"}))),El=(e,t)=>{const r=window.innerWidth,n=window.innerHeight,o=Math.min(Math.max(e.x,0),Math.max(0,r-t.width)),i=Math.min(Math.max(e.y,0),Math.max(0,n-t.height));return{x:o,y:i}},pv=({title:e="팝업",width:t=800,height:r=600,minWidth:n=400,minHeight:o=300,onClose:i,children:a,footer:l,showMask:c=!0,maskStyle:d={backgroundColor:"rgba(0,0,0,0.3)"},buttons:f=[]})=>{const[u,g]=h.useState(t),[C,E]=h.useState(r),R=h.useRef(null),{loading:m}=ct.usePopupLoadingStore(),O=h.useMemo(()=>{const $=Math.max(0,(window.innerWidth-t)/2),H=Math.max(0,(window.innerHeight-r)/2);return{x:$,y:H}},[t,r]),[x,_]=h.useState(O),P=($,H)=>{const I=El({x:H.x,y:H.y},{width:u,height:C});_(I)},j=($,H,I,L,M)=>{const B={width:parseInt(I.style.width,10),height:parseInt(I.style.height,10)},y=El(M,B);g(B.width),E(B.height),_(y)},S=()=>R.current??document.body,k=[...f,{key:"CLOSE",text:"닫기",type:"default",danger:!1,disabled:!1,onClick:i}];return s.jsxs("div",{style:{position:"fixed",inset:0,zIndex:1e3},children:[c&&s.jsx("div",{onClick:i,style:{position:"absolute",inset:0,...d,zIndex:0}}),s.jsxs(kl.Rnd,{className:"bwg-draggable",size:{width:u,height:C},position:x,bounds:"window",minWidth:n,minHeight:o,onDragStop:P,onResizeStop:j,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:[s.jsx("div",{className:"bwg-popup-content",style:{overflow:"hidden",borderRadius:20,height:"100%"},children:s.jsx(pa,{getPopupContainer:S,children:s.jsx(Ot,{type:"vertical",children:s.jsxs(v.Card,{className:"popup-drag-container",title:s.jsx("div",{className:"drag-handle",style:{display:"flex",alignItems:"center",gap:8},children:e}),style:{width:"100%",height:"100%"},styles:{body:{height:l?"calc(100% - 120px)":"calc(100% - 77px)",padding:20,overflow:"auto"}},extra:s.jsx("div",{style:{display:"flex",gap:8},children:k.map($=>s.jsx(v.Button,{type:$.type,danger:$.danger,disabled:$.disabled,className:"bwg-btn",onClick:$.onClick,children:$.text},$.key))}),children:[s.jsxs("div",{className:"rnd-cancel",style:{height:"100%"},children:[a,m&&s.jsx(Ol.LoadingContainer,{})]}),l&&s.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,padding:"16px 20px",borderTop:"1px solid #f0f0f0",backgroundColor:"#fafafa",borderRadius:"0 0 8px 8px"},children:l})]})})})}),s.jsx("div",{ref:R,className:"bwg-popup-portal-root",style:{position:"relative"}})]})]})},{TextArea:gv}=v.Input,ro=[{label:"요청",value:"RQST"},{label:"문의",value:"INQR"}],mv={INQR:"blue",RQST:"green",RPRT:"red",SGSN:"purple"},jl=[{label:"대기",value:"READY"},{label:"담당자 지정",value:"ASSIGNED"},{label:"처리중",value:"PROCESSING"},{label:"처리완료",value:"COMPLETED"},{label:"반려",value:"REJECTED"}],vv={READY:"gray",ASSIGNED:"blue",PROCESSING:"yellow",COMPLETED:"green",REJECTED:"red"},Rl={READY:0,ASSIGNED:25,PROCESSING:50,COMPLETED:100,REJECTED:100},yv=({open:e,onClose:t})=>{const{searchBoxRef:r}=Mr.useSearchBox(),n=h.useRef(null),o=h.useRef(null),{user:i}=ct.useUserStore(),{activeMenuItem:a}=ct.useMenuViewStore(),[l]=v.Form.useForm(),[c,d]=h.useState(!1),[f,u]=h.useState(!1),[g,C]=h.useState(!1),[E,R]=h.useState(!1),[m,O]=h.useState(!1),[x,_]=h.useState("list");h.useState(null);const P=h.useRef(null),[j,S]=h.useState([]),[k,$]=h.useState(""),[H,I]=h.useState(!1),[L,M]=h.useState(15),B=h.useRef(null),y=h.useMemo(()=>no((z,U,X,J,ne)=>{const oe=z.getValue(U.index?.itemIndex,"type");ne.render(s.jsx(v.Tag,{color:mv[oe],children:ro.find(be=>be.value===oe)?.label}))}),[]),b=h.useMemo(()=>no((z,U,X,J,ne)=>{const oe=z.getValue(U.index?.itemIndex,"status");ne.render(s.jsx(v.Tag,{color:vv[oe],children:jl.find(be=>be.value===oe)?.label}))}),[]),w=h.useMemo(()=>no((z,U,X,J,ne)=>{z.getValue(U.index?.itemIndex,"urgentYn")==="Y"?ne.render(s.jsx(se.AlertTwoTone,{twoToneColor:"red"})):ne.render(s.jsx(s.Fragment,{}))}),[]),A=[{fieldName:"boardMstrId",header:{text:"글 번호"},width:80},{name:"type",fieldName:"type",header:{text:"등록구분"},width:80,renderer:"tagType"},{fieldName:"title",header:{text:"제목"},width:200},{fieldName:"content",header:{text:"내용"},width:200,visible:!1},{name:"status",fieldName:"status",header:{text:"상태"},width:80,renderer:"statusTag"},{fieldName:"rgstUserId",visible:!1},{fieldName:"rgstUserNm",header:{text:"등록자"},width:100},{fieldName:"rgstDt",header:{text:"등록일자"},width:120,renderer:_e.realFormat.maskYmd},{fieldName:"dueDt",header:{text:"마감요청일자"},width:120,renderer:_e.realFormat.maskYmd},{fieldName:"urgentYn",header:{text:"긴급여부"},width:80,renderer:"alert"},{fieldName:"prcsUserId",visible:!1},{fieldName:"prcsUserNm",header:{text:"처리담당자"},width:100},{fieldName:"prcsDt",header:{text:"처리일자"},width:120,renderer:_e.realFormat.maskYmd},{fieldName:"scrnId",header:{text:"화면ID"},width:100,visible:!1},{fieldName:"menuId",header:{text:"메뉴ID"},width:100,visible:!1}],N={onCellDblClicked:(z,U)=>{const X=U.itemIndex??-1;if(X<0)return;const J=z.getValues(X);console.log("🔍 그리드 셀 더블클릭 이벤트:",J);const ne={...J,menuId:a?.menuId,menuNm:a?.menuNm,scrnId:a?.scrnId};l.setFieldsValue(ne),C(ne.rgstUserId===i?.userId),R(ne.status==="COMPLETED"||ne.status==="REJECTED"),_("detail")}},D=()=>{l.resetFields(),_("list"),V.SCMBoardMstr0001(1,20)},K=async z=>{d(!0);try{l.validateFields().then(U=>{console.log("문의/신고 제출:",U),x==="new"?V.SCMBoardMstr0003(U):x==="detail"&&V.SCMBoardMstr0004(U)})}catch(U){console.error("문의/신고 제출 실패:",U)}finally{d(!1)}},Y=()=>{V.SCMBoardMstr0005()},G=()=>{r?.current?.resetForm(),l.resetFields(),x==="new"?_("list"):(_("list"),t())},te=()=>{r?.current?.resetForm(),l.resetFields(),_("list"),t()},le=()=>{(x==="detail"||x==="new")&&_("list")},ge=()=>{l.resetFields(),_("new")},de=()=>{console.log("댓글 수동 새로고침"),M(15)},ve=()=>{if(!k.trim()){v.message.warning("댓글 상세내용 작성");return}V.SCMBoardDtls0002(l.getFieldValue("boardMstrId"),k.trim()),$(""),setTimeout(()=>{P.current&&(P.current.scrollTop=P.current.scrollHeight)},100)},T=z=>{const U=j.find(X=>X.id===z);if(U&&U.regUserId!==i?.userId){v.message.error("본인이 작성한 댓글만 삭제할 수 있습니다.");return}V.SCMBoardDtls0003(l.getFieldValue("boardMstrId"),z)};h.useEffect(()=>{e&&setTimeout(()=>{V.SCMBoardMstr0001(1,20)},100)},[e]);const F=()=>s.jsxs(Rt,{border:!1,children:[s.jsx(Eo,{border:!0,ref:r,reqRows:s.jsxs(s.Fragment,{children:[s.jsx(v.Row,{gutter:[16,8],style:{marginBottom:"8px"},children:s.jsx(v.Col,{span:24,children:s.jsx(Pe.BwgFormItem,{label:"화면 정보",name:void 0,children:s.jsxs(v.Space.Compact,{style:{width:"100%"},children:[s.jsx(v.Form.Item,{name:"menuId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:s.jsx(v.Input,{disabled:!0})}),s.jsx(v.Form.Item,{name:"menuNm",style:{width:"60%",marginBottom:0},children:s.jsx(v.Input,{disabled:!0})})]})})})}),s.jsxs(v.Row,{gutter:[16,8],style:{marginBottom:"8px"},children:[s.jsx(v.Col,{span:6,children:s.jsx(Pe.BwgSelect,{itemProps:{label:"등록구분",name:"type"},selectProps:{options:ro}})}),s.jsx(v.Col,{span:12,children:s.jsx(Pe.BwgRangePicker,{itemProps:{label:"등록일자",name:"rgstDt"},inputProps:{allowEmpty:!0}})}),s.jsx(v.Col,{span:6,children:s.jsx(Pe.BwgSwitch,{itemProps:{name:"myArticle",label:"내 글만"},inputProps:{format:"YN",onChange:()=>console.log("hello!!")}})})]}),s.jsx(v.Row,{children:s.jsx(v.Col,{span:24,children:s.jsx(Pe.BwgInput,{itemProps:{label:"제목 및 내용",name:"keyword"}})})})]})}),s.jsx(Ml,{ref:B,gridColumns:A,gridEvents:N,gridOptions:{},renderers:[{name:"tagType",renderer:y},{name:"statusTag",renderer:b},{name:"alert",renderer:w}]}),s.jsx(jo,{ref:n,mode:"server",onServerPageChange:(z,U)=>{console.log("🔄 서버 모드 페이징 변경:",{page:z,size:U}),V.SCMBoardMstr0001(z,U)},pageSizeOptions:[10,20,50,100]})]}),q=()=>s.jsxs(v.Splitter,{children:[s.jsx(v.Splitter.Panel,{defaultSize:"70%",min:"60%",max:"80%",style:{paddingRight:"15px",overflowX:"hidden",overflowY:"hidden"},children:s.jsx(Rt,{children:s.jsxs(v.Form,{form:l,onFinish:K,labelCol:{flex:"100px"},disabled:!g||E,children:[s.jsxs(v.Row,{gutter:[16,8],children:[s.jsxs(v.Col,{span:8,children:[s.jsx(v.Form.Item,{name:"boardMstrId",hidden:!0,children:s.jsx(v.Input,{})}),s.jsx(Pe.BwgSelect,{itemProps:{name:"type",label:"구분"},selectProps:{options:ro}})]}),s.jsxs(v.Col,{span:16,children:[s.jsx(Pe.BwgFormItem,{label:"화면 정보",name:void 0,children:s.jsxs(v.Space.Compact,{children:[s.jsx(v.Form.Item,{name:"menuId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:s.jsx(v.Input,{readOnly:!0})}),s.jsx(v.Form.Item,{name:"menuNm",style:{width:"60%",marginBottom:0},children:s.jsx(v.Input,{readOnly:!0})})]})}),s.jsx(v.Form.Item,{name:"scrnId",style:{width:"100%"},hidden:!0,children:s.jsx(v.Input,{readOnly:!0})})]})]}),s.jsxs(v.Row,{gutter:[16,8],children:[s.jsx(v.Col,{span:8,children:s.jsx(Pe.BwgFormItem,{label:"작성자",name:void 0,children:s.jsxs(v.Space.Compact,{style:{width:"100%"},children:[s.jsx(v.Form.Item,{name:"rgstUserId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:s.jsx(v.Input,{readOnly:!0})}),s.jsx(v.Form.Item,{name:"rgstUserNm",style:{width:"60%",marginBottom:0},children:s.jsx(v.Input,{readOnly:!0})})]})})}),s.jsx(v.Col,{span:8,children:s.jsx(Pe.BwgDatePicker,{itemProps:{label:"작성일자",name:"rgstDt"},inputProps:{disabled:!0}})}),s.jsx(v.Col,{span:8,children:s.jsx(Pe.BwgSelect,{itemProps:{name:"status",label:"상태"},selectProps:{options:jl,disabled:!0}})})]}),s.jsxs(v.Row,{gutter:[16,8],children:[s.jsx(v.Col,{span:8,children:s.jsx(Pe.BwgDatePicker,{itemProps:{label:"마감요청일",name:"dueDate"}})}),s.jsx(v.Col,{span:8,children:s.jsxs(v.Flex,{vertical:!0,gap:2,children:[s.jsx("span",{style:{fontSize:"12px",color:"#000000E0"},children:"진척률"}),s.jsx(v.Progress,{percent:Rl[l.getFieldValue("status")],status:Rl[l.getFieldValue("status")]>0?"active":"normal",size:"small",format:z=>`${z}%`})]})}),s.jsx(v.Col,{span:8,children:s.jsx(Pe.BwgCheck,{itemProps:{name:"urgentYn",label:"긴급여부"}})})]}),s.jsxs(v.Row,{gutter:[16,8],children:[s.jsx(v.Col,{span:8,children:s.jsx(Pe.BwgFormItem,{label:"처리담당자",name:void 0,help:"",children:s.jsxs(v.Space.Compact,{children:[s.jsx(v.Form.Item,{name:"processor",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:s.jsx(v.Input,{readOnly:!0})}),s.jsx(v.Form.Item,{name:"processorNm",style:{width:"60%",marginBottom:0},children:s.jsx(v.Input,{readOnly:!0})})]})})}),s.jsx(v.Col,{span:8,children:s.jsx(Pe.BwgDatePicker,{itemProps:{label:"처리일자",name:"processDt"}})})]}),s.jsx(v.Row,{gutter:[16,8],children:s.jsx(v.Col,{span:24,children:s.jsx(Pe.BwgFormItem,{label:"제목",name:"title",style:{width:"100%"},children:s.jsx(v.Input,{})})})}),s.jsx(_i,{border:!1,itemProps:{name:"content",label:"내용",rules:[{required:!0,message:"내용을 입력하세요."}]},editorProps:{isEditing:g&&!E,title:{title:"에디터"}}})]})})}),s.jsx(v.Splitter.Panel,{collapsible:!0,style:{paddingLeft:"15px"},children:s.jsxs(Rt,{style:{flex:"0 0 400px",display:"flex",flexDirection:"column"},children:[s.jsxs("div",{style:{borderBottom:"1px solid #e8e8e8",paddingBottom:"12px",marginBottom:"16px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[s.jsx("span",{style:{fontSize:"14px",fontWeight:"600",color:"#262626"},children:"댓글"}),s.jsxs("div",{style:{position:"relative",display:"inline-block"},children:[s.jsx(v.Button,{type:"text",icon:s.jsx(se.ReloadOutlined,{spin:H||m}),onClick:de,disabled:H||m,size:"small",style:{fontSize:"12px",color:E?"#d9d9d9":m?"#8c8c8c":"#595959",height:"24px",padding:"0 8px"}}),!E&&s.jsx("span",{style:{position:"absolute",top:"-4px",right:"-4px",fontSize:"10px",fontWeight:"700",color:H?"#8c8c8c":"#1890ff",minWidth:"14px",height:"14px",lineHeight:"14px",textAlign:"center",borderRadius:"50%",pointerEvents:"none"},children:L})]})]}),s.jsx("div",{ref:P,style:{flex:1,overflowY:"auto",marginBottom:"16px",minHeight:0,position:"relative"},children:m?s.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"200px",color:"#8c8c8c"},children:[s.jsx("div",{style:{marginBottom:"12px"},children:s.jsx(se.ReloadOutlined,{spin:!0,style:{fontSize:"24px"}})}),s.jsx("div",{style:{fontSize:"13px"},children:"댓글을 불러오는 중..."})]}):j.length===0?s.jsx("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"200px",color:"#8c8c8c"},children:s.jsx("div",{style:{fontSize:"13px"},children:"등록된 댓글이 없습니다."})}):s.jsx(v.List,{dataSource:j,renderItem:z=>s.jsxs(v.List.Item,{style:{position:"relative",paddingRight:"20px",padding:"12px 20px 12px 12px",borderBottom:"1px solid #f0f0f0"},children:[s.jsx(v.List.Item.Meta,{avatar:s.jsx(v.Avatar,{size:32,style:{backgroundColor:"#1890ff",fontSize:"13px"},children:z.author[0]}),title:s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"4px"},children:[s.jsx("span",{style:{fontWeight:"500",fontSize:"13px",color:"#262626"},children:z.author}),s.jsx("span",{style:{fontSize:"11px",color:"#8c8c8c"},children:z.regDt})]}),description:s.jsx("span",{style:{fontSize:"13px",color:"#595959",lineHeight:"1.5"},children:z.content})}),z.regUserId===i?.userId&&s.jsx(v.Button,{type:"text",danger:!0,icon:s.jsx(se.DeleteOutlined,{style:{fontSize:"12px"}}),size:"small",onClick:()=>T(z.id),disabled:m,style:{position:"absolute",right:"8px",top:"62%",transform:"translateY(-50%)",opacity:m?.3:.5,height:"24px",width:"24px",padding:0},onMouseEnter:U=>{m||(U.currentTarget.style.opacity="1")},onMouseLeave:U=>{U.currentTarget.style.opacity=m?"0.3":"0.5"}})]},z.id)})}),s.jsx("div",{style:{padding:"12px",borderTop:"1px solid #e8e8e8",backgroundColor:E?"#f5f5f5":"#fafafa",flexShrink:0,marginTop:"auto"},children:E?s.jsxs("div",{style:{textAlign:"center",padding:"20px",color:"#8c8c8c",fontSize:"13px",backgroundColor:"#ffffff",borderRadius:"6px",border:"1px solid #e8e8e8"},children:[s.jsx("div",{style:{marginBottom:"8px"},children:s.jsx(se.AlertTwoTone,{twoToneColor:"#faad14"})}),s.jsx("div",{children:"이미 완료처리된 게시글입니다."}),s.jsx("div",{style:{fontSize:"11px",marginTop:"4px"},children:"댓글을 작성할 수 없습니다."})]}):s.jsxs(s.Fragment,{children:[s.jsx("div",{style:{marginBottom:"8px"},children:s.jsx(gv,{rows:2,placeholder:m?"댓글 처리 중...":"댓글을 입력하세요...",value:k,onChange:z=>$(z.target.value),maxLength:300,disabled:m,style:{borderRadius:"6px",border:"1px solid #d9d9d9",resize:"none",fontSize:"13px",backgroundColor:m?"#f5f5f5":"#ffffff",color:m?"#8c8c8c":"#000000"},onFocus:z=>{m||(z.target.style.borderColor="#1890ff",z.target.style.boxShadow="0 0 0 2px rgba(24, 144, 255, 0.05)")},onBlur:z=>{z.target.style.borderColor="#d9d9d9",z.target.style.boxShadow="none"}})}),s.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[s.jsx("span",{style:{fontSize:"11px",color:"#8c8c8c"},children:m?"처리 중...":`${k.length} / 300자`}),s.jsx(v.Button,{type:"primary",onClick:ve,size:"small",loading:m,style:{borderRadius:"4px",fontSize:"12px",height:"28px",padding:"0 16px",fontWeight:"500"},disabled:!k.trim()||m,children:m?"등록 중...":"등록"})]})]})})]})})]}),W=()=>s.jsx(Rt,{children:s.jsxs(Pe.BwgForm,{form:l,onFinish:K,initialValues:{type:"INQR"},labelCol:{flex:"100px"},children:[s.jsxs(v.Row,{gutter:[16,8],children:[s.jsx(v.Col,{span:8,children:s.jsx(Pe.BwgSelect,{itemProps:{name:"type",label:"구분",rules:[{required:!0,message:"구분을 선택해주세요."}]},selectProps:{options:ro}})}),s.jsxs(v.Col,{span:16,children:[s.jsx(Pe.BwgFormItem,{label:"화면 정보",name:void 0,children:s.jsxs(v.Space.Compact,{style:{width:"100%"},children:[s.jsx(v.Form.Item,{name:"menuId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:s.jsx(v.Input,{readOnly:!0})}),s.jsx(v.Form.Item,{name:"menuNm",style:{width:"60%",marginBottom:0},children:s.jsx(v.Input,{readOnly:!0})})]})}),s.jsx(v.Form.Item,{name:"scrnId",style:{width:"100%"},hidden:!0,children:s.jsx(v.Input,{readOnly:!0})})]})]}),s.jsxs(v.Row,{gutter:[16,8],children:[s.jsx(v.Col,{span:8,children:s.jsx(Pe.BwgFormItem,{label:"작성자",name:void 0,children:s.jsxs(v.Space.Compact,{style:{width:"100%"},children:[s.jsx(v.Form.Item,{name:"rgstUserId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:s.jsx(v.Input,{readOnly:!0})}),s.jsx(v.Form.Item,{name:"rgstUserNm",style:{width:"60%",marginBottom:0},children:s.jsx(v.Input,{readOnly:!0})})]})})}),s.jsx(v.Col,{span:6,children:s.jsx(Pe.BwgFormItem,{label:"작성일자",name:"rgstDt",style:{width:"100%"},children:s.jsx(v.DatePicker,{disabled:!0})})}),s.jsx(v.Col,{span:6,children:s.jsx(Pe.BwgFormItem,{label:"마감요청일",name:"dueDate",style:{width:"100%"},children:s.jsx(v.DatePicker,{})})}),s.jsx(v.Col,{span:4,children:s.jsx(Pe.BwgCheck,{itemProps:{name:"urgentYn",label:"긴급여부"}})})]}),s.jsx(v.Row,{gutter:[16,8],children:s.jsx(v.Col,{span:24,children:s.jsx(Pe.BwgFormItem,{label:"제목",name:"title",style:{width:"100%"},rules:[{required:!0,message:"제목을 입력해주세요."}],children:s.jsx(v.Input,{})})})}),s.jsx(_i,{border:!1,itemProps:{name:"content"},editorProps:{isEditing:f,title:{title:s.jsxs(s.Fragment,{children:[s.jsx(se.EditOutlined,{style:{marginRight:"5px"}})," 상세내용 작성"]}),children:s.jsx(v.Button,{icon:s.jsx(se.EyeFilled,{}),onClick:()=>u(!f),children:"미리보기"})}}})]})});h.useEffect(()=>{x==="new"&&(u(!0),l.setFieldsValue({type:"INQR",menuId:a?.menuId,menuNm:a?.menuNm,scrnId:a?.scrnId,rgstUserId:i?.userId,rgstUserNm:i?.userNm,rgstDt:Xd(),content:""}))},[x,l,a,i]),h.useEffect(()=>{if(x==="detail"&&!E){const z=setInterval(()=>{M(U=>U<=1?(console.log("🔄 댓글 자동 갱신 실행 (카운트다운 완료)"),V.SCMBoardDtls0001(l.getFieldValue("boardMstrId")),15):U-1)},1e3);return V.SCMBoardDtls0001(l.getFieldValue("boardMstrId")),()=>{console.log("🧹 댓글 인터벌 정리"),clearInterval(z)}}else x==="detail"&&E&&(console.log("📋 완료된 게시글 - 댓글 조회만"),V.SCMBoardDtls0001(l.getFieldValue("boardMstrId")))},[x,E,l]),h.useEffect(()=>()=>{console.log("🧹 컴포넌트 언마운트 - 모든 인터벌 정리"),o.current&&(clearInterval(o.current),o.current=null)},[]),h.useEffect(()=>{x==="list"&&a&&(r?.current?.setFormData({menuId:a?.menuId,menuNm:a?.menuNm}),V.SCMBoardMstr0001(1,20))},[x,a]),h.useEffect(()=>{e&&a&&r?.current?.setFormData({menuId:a?.menuId,menuNm:a?.menuNm})},[e,a]);const V={SCMBoardMstr0001:async(z,U)=>{const X=z||n.current?.currentPage||1,J=U||n.current?.pageSize||20,ne={...r?.current?.getFormData(),pageNum:X,pageCount:J};console.log("🔍 서버 모드 페이징 요청:",ne);try{const oe=await _e.callService("SCMBoardMstr0001",ne,{isPopup:!0});if(oe&&oe.pageList){const be=oe.pageCnt||0;n.current?.setTotalData(be),B.current?.addAllData(oe.pageList)}else n.current?.setTotalData(0),B.current?.addAllData([]),console.log("📭 서버 모드 페이징 데이터 없음")}catch(oe){console.error("❌ SCMBoardMstr0001 호출 실패:",oe),v.message.error("데이터 조회 중 오류가 발생했습니다.")}},SCMBoardMstr0003:z=>{_e.callService("SCMBoardMstr0003",{...z,status:"READY"},{isPopup:!0}).then(U=>{console.log("문의/신고 제출 응답:",U),v.message.success("정상 접수되었습니다."),D()}).catch(U=>{console.error("문의/신고 제출 실패:",U),v.message.error("접수 중 오류가 발생했습니다.")})},SCMBoardMstr0004:z=>{_e.callService("SCMBoardMstr0004",{boardMstrId:l.getFieldValue("boardMstrId"),...z},{isPopup:!0}).then(U=>{console.log("문의/신고 제출 응답:",U),v.message.success("수정이 완료되었습니다."),D()}).catch(U=>{console.error("문의/신고 변경 실패:",U)})},SCMBoardMstr0005:()=>{_e.callService("SCMBoardMstr0005",{boardMstrId:l.getFieldValue("boardMstrId")},{isPopup:!0}).then(z=>{console.log("문의/신고 삭제 응답:",z),v.message.success("삭제가 완료되었습니다."),D()})},SCMBoardDtls0001:z=>{O(!0),_e.callService("SCMBoardDtls0001",{boardMstrId:z},{isPopup:!0,showLoading:!1}).then(U=>{if(U&&U.subList){const X=U.subList.map(J=>({id:J.seq,author:J.userNm||J.regUserId,regUserId:J.regUserId,content:J.content,regDt:J.regDt}));S(X)}else S([])}).catch(U=>{console.error("게시글 댓글 목록 조회 실패:",U),v.message.error("댓글 목록 조회 중 오류가 발생했습니다.")}).finally(()=>{O(!1),M(15)})},SCMBoardDtls0002:(z,U)=>{O(!0),_e.callService("SCMBoardDtls0002",{boardMstrId:z,content:U},{isPopup:!0,showLoading:!1}).then(X=>{X&&X.result===1?(v.message.success("댓글이 등록되었습니다."),V.SCMBoardDtls0001(z)):v.message.error("댓글 등록에 실패했습니다.")}).catch(X=>{v.message.error("댓글 등록 중 오류가 발생했습니다.")}).finally(()=>{O(!1)})},SCMBoardDtls0003:(z,U)=>{O(!0),_e.callService("SCMBoardDtls0003",{boardMstrId:z,seq:U},{isPopup:!0,showLoading:!1}).then(X=>{X&&X.result===1?(v.message.success("댓글이 삭제되었습니다."),V.SCMBoardDtls0001(z)):v.message.error("댓글 삭제에 실패했습니다.")}).catch(X=>{v.message.error("댓글 삭제 중 오류가 발생했습니다.")}).finally(()=>{O(!1)})}},Q=()=>{switch(x){case"list":return[{key:"REFRESH",text:"조회",type:"default",onClick:()=>V.SCMBoardMstr0001(),disabled:c},{key:"NEW",text:"신규 등록",type:"primary",onClick:ge}];case"detail":return[{key:"BACK",text:"뒤로",type:"default",onClick:le},{key:"EDIT",text:"수정",type:"primary",disabled:!g||E,onClick:()=>l.submit()},{key:"DELETE",text:"삭제",danger:!0,disabled:!g||E,onClick:Y}];case"new":return[{key:"SUBMIT",text:"제출",type:"primary",onClick:()=>l.submit(),disabled:c},{key:"CANCEL",text:"취소",type:"default",onClick:G}];default:return[]}};return e?s.jsxs(pv,{title:"게시판",width:1400,height:800,minWidth:600,minHeight:400,onClose:te,buttons:Q(),children:[x==="list"&&F(),x==="detail"&&q(),x==="new"&&W()]}):null},Ld=(e,t,r=null)=>{for(let n=0;n<e.length;n++){const o=e[n];if(o.key===t)return{node:o,ctx:{parent:r,index:n,siblings:e}};if(o.children?.length){const i=Ld(o.children,t,o);if(i.node)return i}}return{node:null,ctx:null}},Fd=(e,t)=>{if(!e.children)return!1;for(const r of e.children)if(r.key===t||Fd(r,t))return!0;return!1};function bv({open:e,onClose:t}){const{nodes:r,rootIds:n,addFolder:o,editFolder:i,removeFolder:a,removeMenu:l,moveNode:c}=ct.useFavoriteStore(),d=h.useRef(null),[f,u]=h.useState([]),[g,C]=h.useState([]),[E,R]=h.useState(""),[m,O]=h.useState("ADD"),[x,_]=h.useState(!1),[P,j]=h.useState("");h.useEffect(()=>{e&&C(n)},[e]),h.useEffect(()=>{const $=S(r,n);u($)},[r]),h.useEffect(()=>{x&&P&&(d.current.setFieldValue("prntBkmkId",P),d.current.setFieldValue("prntBkmkNm",r[P]?.bkmkNm??"-")),x&&m==="EDIT"&&(d.current.setFieldValue("bkmkId",P),d.current.setFieldValue("bkmkNm",r[P]?.bkmkNm)),!x&&m=="ADD"&&C($=>[...$,P]),!x&&d.current&&(j("-"),d.current.resetFields())},[x,m,P,r]);const S=($,H)=>{const I=(L,M="-")=>{const B=$[L];if(!B)return null;const y={key:B.bkmkId,type:B.type,title:B.type==="F"?B.bkmkNm:B.menuNm?`${B.menuNm} (${B.menuId})`:B.menuId,parentId:M,sortOrdr:B.sortOrdr??0};if(B.type==="F"){const w=(B.children??[]).map(A=>I(A,B.bkmkId)).filter(Boolean);return{...y,children:w}}return y};return H.map(L=>I(L,"-")).filter(Boolean)},k=()=>{if(O("ADD"),!E){j("-"),_(!0);return}const $=r[E];if(!$){j("-"),_(!0);return}$.type==="F"?j($.bkmkId):j($.prntBkmkId),_(!0)};return s.jsxs(v.ConfigProvider,{theme:{components:{Modal:{wireframe:!0}}},children:[s.jsxs(v.Modal,{open:e,okButtonProps:{style:{display:"none"}},cancelText:"닫기",width:560,style:{zIndex:1001},styles:{body:{paddingTop:"12px"}},title:s.jsx("div",{style:{display:"flex",alignItems:"center",gap:12},children:s.jsxs(v.Typography.Text,{strong:!0,style:{fontSize:18},children:[s.jsx(se.FolderOpenFilled,{style:{marginRight:10,fontSize:18,color:"#faad14"}}),"북마크 관리"]})}),onCancel:t,children:[s.jsxs("div",{style:{width:"100%",display:"flex",justifyContent:"space-between",marginBottom:10},children:[s.jsx(v.Button,{color:"blue",variant:"outlined",icon:s.jsx(se.FolderAddOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:k,children:"새 폴더"}),s.jsxs("div",{children:[s.jsx(v.Tooltip,{title:"펼치기",children:s.jsx(v.Button,{icon:s.jsx(se.PlusSquareOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:()=>{const $=Object.values(r).filter(H=>H.type==="F").map(H=>H.bkmkId);C($)}})}),s.jsx(v.Tooltip,{title:"접기",children:s.jsx(v.Button,{icon:s.jsx(se.MinusSquareOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:()=>C([])})})]})]}),s.jsxs("div",{style:{maxHeight:420,height:350,overflow:"auto",border:"1px solid #f0f0f0",borderRadius:8,padding:8},children:[f.length==0&&s.jsx(v.Empty,{description:s.jsxs(v.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",s.jsx("br",{}),"새로운 폴더를 생성해보세요."]})}),s.jsx(v.Tree,{blockNode:!0,draggable:!0,allowDrop:({dropNode:$,dropPosition:H})=>{const I=$.type==="F";return H===0?I:!0},onDrop:$=>{const{dragNode:H,node:I,dropPosition:L,dropToGap:M}=$;if(H.key===I.key||Fd(H,I.key))return;let B,y;if(M){const w=Ld(f,I.key).ctx,A=w.index;B=w.parent?w.parent.key:"-",y=L>0?A+1:A}else{if(I.type!=="F")return;const w=I.children||[];B=I.key,y=w.length}const b=_e.getUserId();if(H.type==="F")c({bkmkId:H.key,newPrntBkmkId:B,sortOrdr:y,userId:b}).catch(()=>{v.Modal.error({title:"이동 실패",content:"폴더 이동 중 오류가 발생했어요."})});else{if(B==="-"){v.Modal.warning({title:"이동 불가",content:"메뉴는 최상위로 이동할 수 없어요."});return}c({bkmkId:H.key,newPrntBkmkId:B,sortOrdr:y,userId:b}).catch(()=>{v.Modal.error({title:"이동 실패",content:"메뉴 이동 중 오류가 발생했어요."})})}M===!1&&C(w=>Array.from(new Set([...w,I.key])))},showLine:!0,treeData:f,selectedKeys:[E],expandedKeys:g,onExpand:C,onSelect:$=>R($[0]),titleRender:$=>s.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[s.jsxs("span",{children:[$.type==="F"?"📁":"📄"," ",$.title,$.isNew?s.jsx(v.Tag,{color:"gold",style:{marginLeft:4,fontSize:"10px",height:"16px",lineHeight:"16px",padding:"0 5px"},children:"N"}):null]}),s.jsxs("span",{style:{display:"inline-flex",gap:8},children:[$.type==="F"&&s.jsxs(s.Fragment,{children:[s.jsx(se.PlusOutlined,{style:{opacity:.8},onClick:()=>{O("ADD"),j($.key),_(!0)}}),s.jsx(se.EditOutlined,{style:{opacity:.8},onClick:()=>{O("EDIT"),j($.key),_(!0)}})]}),s.jsx(se.DeleteOutlined,{style:{cursor:"pointer",opacity:.5},onClick:()=>{$.type==="F"?v.Modal.confirm({title:"삭제 안내",content:"폴더를 삭제하면 하위 폴더와 메뉴도 모두 삭제됩니다. 삭제하시겠습니까?",centered:!0,onOk:()=>a($.key)}):v.Modal.confirm({title:"삭제 안내",centered:!0,content:"메뉴를 삭제하시겠습니까?",onOk:()=>l($.key)})}})]})]})})]})]}),s.jsx(v.ConfigProvider,{theme:{components:{Modal:{titleColor:m==="ADD"?"#0958d9":"#d46b08",headerBg:m==="ADD"?"#e6f4ff":"#fff7e6"}}},children:s.jsx(v.Modal,{title:s.jsxs(s.Fragment,{children:[m==="ADD"?s.jsx(se.FolderAddOutlined,{style:{marginRight:10,fontSize:18,color:"#1677ff"}}):s.jsx(se.EditOutlined,{style:{marginRight:10,fontSize:18,color:"#d46b08"}}),s.jsxs(v.Typography.Text,{strong:!0,style:{fontSize:17},children:["폴더",m==="ADD"?" 추가":"명 수정"]})]}),open:x,okText:"저장",onOk:()=>{const $=d.current.getFieldValue("bkmkNm"),H=_e.getUserId();if(m==="ADD"){const I=__SYS_CD__??"KH",L=d.current.getFieldValue("prntBkmkId");o($,L,I,H).then(()=>{_(!1)})}else{const I=d.current.getFieldValue("bkmkId");i(I,H,$).then(()=>{_(!1)})}},centered:!0,width:400,onCancel:()=>_(!1),children:s.jsxs(Pe.BwgForm,{ref:d,children:[s.jsx(Pe.BwgInput,{itemProps:{name:m==="EDIT"?"bkmkId":"prntBkmkId",hidden:!0}}),s.jsx(Pe.BwgInput,{itemProps:{label:"상위 폴더명",name:"prntBkmkNm",hidden:P==="-"||m==="EDIT"},inputProps:{disabled:!0}}),s.jsx(Pe.BwgInput,{itemProps:{label:"폴더명",name:"bkmkNm"}})]})})})]})}function xv({triggerIcon:e}){const[t,r]=h.useState(!1),[n,o]=h.useState(""),[i,a]=h.useState(null),[l,c]=h.useState([]),[d,f]=h.useState([]),[u,g]=h.useState(!1),[C,E]=h.useState(!1),[R,m]=h.useState(!1),[O,x]=h.useState(null);ct.useFavoriteStore(D=>D.treeNodes);const{nodes:_,getPrntBkmkIdByMenuId:P,getNodeByMenuId:j,isMenuBookmarked:S,removeMenuByMenuId:k,addMenuToFolder:$,convertToAntTreeData:H}=ct.useFavoriteStore(),I=ct.useFavoriteStore(D=>D.rootIds),L=h.useMemo(()=>H(_,I,n,!0),[_,I,n]),M=ct.useMenuViewStore(D=>D.activeMenuItem??{menuId:"",menuNm:""}),B=h.useMemo(()=>{if(!M?.menuId)return"";const D=j(M.menuId);if(!D)return"";if(D.fullPath)return D.fullPath;const K=Y=>{const G=_[Y];if(!G)return"";if(G.prntBkmkId==="-")return`${G.bkmkNm||M?.menuNm}`;const te=K(G.prntBkmkId);return te?`${te} > ${G.bkmkNm||M?.menuNm}`:G.bkmkNm||M?.menuNm};return console.log("bookmarkNode ::::: ",D),console.log(K(D.bkmkId)),K(D.bkmkId)},[M?.menuId,j,_]);h.useEffect(()=>{t&&M?.menuId&&S(M.menuId)?f([P(M.menuId)]):t&&M?.menuId&&!S(M.menuId)?f(I):(f([]),c([]),x(null),m(!1))},[t,M?.menuId,S,P]),h.useEffect(()=>{if(!R||!M?.menuId)return;const D=P(M.menuId);!D||!_[D]||(o(""),c([D]),x(D))},[R,M?.menuId,_,P]);const y=(D,K)=>{$(D,K).then(Y=>{console.log("AddMenuToFolder ::::: ",Y),Y||f(G=>G.includes(D)?G:[...G,D])})},b=D=>{k(D)},w=async D=>{M?.menuId&&(await k(M.menuId),await $(D,M),m(!1),x(null),f(K=>K.includes(D)?K:[...K,D]))},A=()=>s.jsxs("div",{style:{width:360},children:[s.jsx("div",{style:{padding:12,borderBottom:"1px solid #f0f0f0"},children:s.jsxs(v.Space,{direction:"vertical",style:{width:"100%"},children:[s.jsxs(v.Typography.Text,{strong:!0,style:{fontSize:18},children:[s.jsx(v.Button,{type:"text",icon:s.jsx(se.ArrowLeftOutlined,{}),onClick:()=>m(!1),style:{marginRight:4}}),"폴더 변경"]}),M&&s.jsxs(v.Typography.Text,{type:"secondary",children:["현재 화면: ",s.jsx("b",{children:M.menuNm})," ",s.jsxs("span",{style:{opacity:.7},children:["(",M.menuId,")"]})]})]})}),N(),s.jsxs("div",{style:{padding:12,borderTop:"1px solid #f0f0f0",display:"flex",justifyContent:"flex-end",gap:8},children:[s.jsx(v.Button,{onClick:()=>{m(!1),x(null)},children:"취소"}),s.jsx(v.Button,{type:"primary",disabled:!O,onClick:()=>O&&w(String(O)),children:"이동"})]})]}),N=()=>s.jsxs("div",{style:{maxHeight:360,overflow:"auto",padding:8},children:[s.jsxs(v.Space,{style:{width:"100%",marginBottom:8,display:"flex",justifyContent:"space-between"},children:[s.jsx(v.Input,{placeholder:"검색(폴더명)",prefix:s.jsx(se.SearchOutlined,{}),allowClear:!0,value:n,onChange:D=>o(D.target.value),style:{width:"260px",height:28}}),s.jsxs(v.ConfigProvider,{theme:{components:{Button:{defaultHoverColor:"#6f6f6f",defaultHoverBorderColor:"#6f6f6f"}}},children:[s.jsx(v.Button,{icon:s.jsx(se.PlusOutlined,{}),size:"small",style:{margin:"0 4px",fontSize:12},onClick:()=>{const D=Object.values(_).filter(K=>K.type==="F").map(K=>K.bkmkId);f(D)},title:"모두 확장"}),s.jsx(v.Button,{icon:s.jsx(se.MinusOutlined,{}),size:"small",style:{margin:"0 4px",fontSize:12},onClick:()=>f([]),title:"모두 축소"})]})]}),L.length===0?s.jsx(v.Empty,{description:s.jsxs(v.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",s.jsx("br",{}),"새로운 폴더를 만들어 시작해보세요."]}),image:v.Empty.PRESENTED_IMAGE_SIMPLE}):s.jsx(v.Tree,{blockNode:!0,showLine:!0,treeData:L,selectedKeys:l,expandedKeys:d,onExpand:f,onSelect:D=>{c(D),x(D[0])},autoExpandParent:!0,titleRender:D=>{const K=String(D.key),Y=i===K;return s.jsxs("div",{onMouseEnter:()=>a(K),onMouseLeave:()=>a(null),style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[s.jsx("div",{children:D.title}),!S(M?.menuId)&&M&&Y&&s.jsx(v.Button,{size:"small",type:"link",onClick:G=>{G.stopPropagation(),y(K,M)},children:"+ 현재화면 추가"})]})}})]});return s.jsxs(s.Fragment,{children:[s.jsx(v.Popover,{open:t&&!u,onOpenChange:r,trigger:"click",placement:"bottomLeft",styles:{body:{padding:0,borderRadius:12,border:"1px solid #e8edf5",boxShadow:"0 12px 32px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08)",background:"#fcfcff",zIndex:1e3}},content:R?A():s.jsxs("div",{style:{width:360},children:[s.jsx("div",{style:{padding:12,borderBottom:"1px solid #f0f0f0"},children:s.jsxs(v.Space,{direction:"vertical",style:{width:"100%"},children:[s.jsxs(v.Typography.Text,{strong:!0,style:{fontSize:18},children:["📌 북마크"," ",S(M?.menuId)?"저장됨":"추가"]}),M&&s.jsxs(v.Typography.Text,{type:"secondary",children:["현재 화면: ",s.jsx("b",{children:M.menuNm})," ",s.jsxs("span",{style:{opacity:.7},children:["(",M.menuId,")"]})]})]})}),S(M?.menuId)?s.jsxs("div",{style:{padding:12,margin:8,borderRadius:8,backgroundColor:"#f5f5f5"},children:[s.jsx(v.Typography.Text,{type:"secondary",style:{fontSize:12},children:"저장 위치"}),s.jsx("div",{style:{marginTop:4},children:`📁 > ${B}`||"알 수 없음"})]}):N(),s.jsxs(Ot,{style:{padding:8,borderTop:"1px solid #f0f0f0"},layoutAlign:"right",children:[M&&!S(M.menuId)?s.jsx(v.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},type:"primary",icon:s.jsx(se.PlusOutlined,{}),onClick:()=>{const D=String(l[0]);let K="-";D&&_[D]&&(K=_[D].type=="M"?_[D].prntBkmkId:D),y(K,M)},children:"추가"}):s.jsxs(Ot,{layoutAlign:"between",children:[s.jsx(v.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},icon:s.jsx(se.FolderOpenOutlined,{}),onClick:()=>m(!0),children:"폴더 변경"}),s.jsx(v.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},color:"danger",variant:"solid",icon:s.jsx(se.MinusOutlined,{}),onClick:()=>b(M.menuId),children:"삭제"})]}),s.jsx(v.Button,{type:"text",style:{height:"28px",padding:"0 10px",margin:"0 4px"},icon:s.jsx(se.SettingOutlined,{}),onClick:()=>{E(t),g(!0)},children:"관리"})]})]}),children:s.jsx("span",{style:{cursor:"pointer",display:"inline-flex",alignItems:"center"},children:e})}),s.jsx(bv,{open:u,onClose:()=>{g(!1),C&&r(!0)}})]})}const Cv=({reqRows:e,subRows:t})=>{const{searchBoxRef:r}=Mr.useSearchBox();return s.jsx(Eo,{ref:r,reqRows:e,subRows:t})},Sv=({children:e,searchBox:t,title:r,preRenderEvents:n=[],postRenderEvents:o=[],loading:i=!1,error:a=null,grantEvent:l={},customEvent:c={}})=>{const d=Mr.useServiceCodeValue("AUTH_BTNS"),{user:f}=ct.useUserStore(),{activeMenuItem:u}=ct.useMenuViewStore(),{loadFavoritesIfNeeded:g,isMenuBookmarked:C}=ct.useFavoriteStore(),{loading:E}=ct.useLoadingStore(),[R,m]=h.useState({isInitialized:!1,isReady:!1,error:null,loading:!0,preRenderComplete:!1,postRenderComplete:!1});h.useState(null);const[O,x]=h.useState([]),[_,P]=h.useState([]),[j,S]=h.useState(!1),k=async()=>{if(n.length===0){m(b=>({...b,preRenderComplete:!0}));return}try{for(const b of n)await b();m(b=>({...b,preRenderComplete:!0}))}catch(b){m(w=>({...w,error:b instanceof Error?b.message:"사전 렌더링 실패",preRenderComplete:!0}))}},$=async()=>{if(o.length===0){m(b=>({...b,postRenderComplete:!0}));return}try{for(const b of o)await b();m(b=>({...b,postRenderComplete:!0}))}catch(b){m(w=>({...w,error:b instanceof Error?b.message:"사후 렌더링 실패",postRenderComplete:!0}))}};h.useEffect(()=>{if(R.isInitialized)return;(async()=>{try{try{console.log("SCMSIGN00202 권한 서비스 호출 시작");const w=await _e.callService(d,{crprCd:f?.crprCd,userId:f?.userId,menuId:u?.menuId});if(console.log("SCMSIGN00202 권한 서비스 응답:",w),w?.data&&w.data.length>0){const A=w.data?.filter(D=>D.grpId?.toUpperCase()==="DEFAULT").map(D=>({id:D.btnId,label:D.btnNm,type:"default",disabled:!1,onClick:l[D.btnId]||void 0}))||[];x(A);const N=w.data?.filter(D=>D.grpId?.toUpperCase()==="CUSTOM").map(D=>({id:D.btnId,label:D.btnNm,type:"default",disabled:!1,onClick:c[D.btnId]||void 0}))||[];P(N)}else x([]),P([])}catch(w){console.error("SCMSIGN00202 권한 서비스 호출 실패:",w),x([]),P([])}await k(),m(w=>({...w,isInitialized:!0,loading:!1}))}catch(w){console.error("BwgView 초기화 실패:",w),m(A=>({...A,isInitialized:!0,loading:!1}))}})()},[]),h.useEffect(()=>{f?.userId&&g(f.userId)},[g,f?.userId]),h.useEffect(()=>{R.isInitialized&&R.preRenderComplete&&!R.isReady&&setTimeout(async()=>{await $(),m(w=>({...w,isReady:!0}))},100)},[R.isInitialized,R.preRenderComplete,R.isReady]),h.useEffect(()=>{a&&m(b=>({...b,error:a}))},[a]);const H=()=>s.jsxs("div",{className:"bwgview-header-container",children:[s.jsxs("div",{className:"bwgview-header",children:[s.jsx("div",{className:"bwgview-header-left",children:y.LEFT}),s.jsx("div",{className:"bwgview-header-right",children:y.RIGHT})]}),t&&s.jsx(Cv,{reqRows:t.reqRows,subRows:t.subRows})]});if(h.useEffect(()=>{},[f,u]),R.error||a)return s.jsx("div",{style:{padding:"24px"},children:s.jsx(v.Alert,{message:"오류 발생",description:R.error||a,type:"error",showIcon:!0})});const I=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:s.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=()=>s.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:s.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"})}),M=b=>s.jsx(se,{component:I,...b}),B=b=>s.jsx(se,{component:L,...b}),y={LEFT:s.jsx("div",{className:"bwgview-header-left",children:s.jsxs(v.ConfigProvider,{theme:{components:{Tag:{controlHeight:28,controlHeightLG:28,controlHeightSM:28,controlHeightXS:28}}},children:[s.jsxs(v.Space,{children:[u&&s.jsx(xv,{triggerIcon:C(u.menuId)?s.jsx(M,{className:"bookmark-icon",style:{color:"#faad14"}}):s.jsx(B,{className:"bookmark-icon"})}),s.jsxs(v.Space.Compact,{style:{alignItems:"center"},children:[s.jsx("span",{className:"pageMenuNm",children:(()=>{let b="";return r?.useMenuTitle&&u?b=u.menuNm:r?.text?b=r.text:u&&(b=u.menuPrntId==="CM00"?u.menuNm.substring(u.menuNm.indexOf(" ")+1):u.menuNm),r?.prefix&&(b=`${r.prefix} ${b}`),r?.suffix&&(b=`${b} ${r.suffix}`),b})()}),u?.menuNo&&s.jsx(v.Tag,{className:"page-num-tag",children:u?.menuNo}),s.jsx(v.Tooltip,{title:"도움말",color:"geekblue",children:s.jsx(v.Button,{variant:"text",type:"text",className:"menu-help-btn",icon:s.jsx(se.QuestionCircleTwoTone,{twoToneColor:"orange"})})}),s.jsx(v.Tooltip,{title:"게시판",color:"geekblue",children:s.jsx(v.Button,{variant:"text",type:"text",onClick:()=>S(!0),icon:s.jsx(se.BugFilled,{style:{color:"#1890ff"}})})})]})]}),u?.scrnId&&_e.isLocal&&s.jsx(v.Tag,{style:{marginLeft:8,fontSize:13,fontWeight:500,display:"flex"},children:s.jsx(hv,{copyable:!0,style:{display:"inherit",justifyContent:"center",alignItems:"center",marginBottom:0},children:u?.scrnId})})]})}),RIGHT:s.jsx("div",{className:"bwgview-header-right",children:s.jsx(v.ConfigProvider,{theme:{components:{Space:{padding:8}}},children:s.jsxs(v.Space,{children:[s.jsx(v.Flex,{gap:8,children:_.map(b=>s.jsx(v.Button,{type:b.type,disabled:b.disabled,className:"bwg-btn",onClick:()=>{typeof b.onClick=="function"&&b.onClick()},children:b.label},b.id))}),s.jsx(v.ConfigProvider,{theme:{components:{Divider:{verticalMarginInline:0}}},children:s.jsx(v.Divider,{type:"vertical"})}),s.jsx(v.Flex,{gap:8,className:"permission-buttons",children:O.length>0?O.map(b=>s.jsx(v.Button,{type:b.type,disabled:b.disabled,className:"bwg-btn",onClick:()=>{typeof b.onClick=="function"&&b.onClick()},children:b.label},b.id)):s.jsx(v.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})})]})})})};return s.jsxs("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:[H(),s.jsxs("div",{className:"bwgview-content",children:[s.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:e}),(R.loading||i||E)&&s.jsx(Ol.LoadingContainer,{text:E?"처리 중...":"화면 로드 중..."})]}),s.jsx(yv,{open:j,onClose:()=>S(!1)})]})},wv=({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:v.theme.defaultAlgorithm},o={...n,...t,token:{...n.token,...t?.token}};return s.jsx(v.ConfigProvider,{locale:_l,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})},Ev="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",jv="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",Rv="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",kv=({children:e})=>{const[t,r]=h.useState({x:0,y:0}),[n,o]=h.useState(!1),[i,a]=h.useState({x:0,y:0}),[l,c]=h.useState(!1),[d,f]=h.useState(!0),u=h.useRef(null),g=[{id:"overtime",title:"시간 외 근무신청",icon:s.jsx("img",{src:Rv,alt:"시간외근무신청",className:"quick-overtime"}),color:"#722ed1",onClick:()=>{console.log("시간 외 근무 신청 클릭")}},{id:"business-trip",title:"출장신청",icon:s.jsx("img",{src:Ev,alt:"출장신청",className:"quick-business-trip"}),color:"#1890ff",onClick:()=>{console.log("출장 신청 클릭")}},{id:"vacation",title:"휴가신청",icon:s.jsx("img",{src:jv,alt:"휴가신청",className:"quick-holiday"}),color:"#eb2f96",onClick:()=>{console.log("휴가 신청 클릭")}},{id:"document",title:"문서신청",icon:s.jsx(se.FileTextOutlined,{}),color:"#52c41a",onClick:()=>{console.log("문서 신청 클릭")}},{id:"profile",title:"인사정보",icon:s.jsx(se.UserOutlined,{}),color:"#fa8c16",onClick:()=>{console.log("인사 정보 클릭")}},{id:"settings",title:"설정",icon:s.jsx(se.SettingOutlined,{}),color:"#13c2c2",onClick:()=>{console.log("설정 클릭")}}];h.useEffect(()=>{const x=()=>{const _=window.innerHeight,j=Math.max(64,(_-300)/3);r({x:0,y:j});const S=_/2;f(j<S)};return x(),window.addEventListener("resize",x),()=>window.removeEventListener("resize",x)},[]);const C=x=>{if(x.preventDefault(),x.stopPropagation(),u.current){const _=u.current.getBoundingClientRect();a({x:x.clientX-_.left,y:x.clientY-_.top}),o(!0)}},E=x=>{if(n){const _=x.clientY-i.y,P=window.innerHeight-24,S=Math.max(64,Math.min(P,_));r({x:t.x,y:S});const k=window.innerHeight/2;f(S<k)}},R=()=>{o(!1)},m=()=>{c(!l)},O=x=>{x.onClick&&x.onClick()};return h.useEffect(()=>{if(n)return document.addEventListener("mousemove",E),document.addEventListener("mouseup",R),()=>{document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",R)}},[n,i]),s.jsxs("div",{className:"quick-tab-container",ref:u,style:{position:"fixed",right:0,top:t.y,zIndex:1e3,userSelect:"none",touchAction:"none"},children:[s.jsxs("div",{className:"quick-tab",style:{position:"absolute",right:"40px",top:d?0:"auto",bottom:d?"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:d?`calc(100vh - ${t.y+12}px)`:`${t.y-12}px`,transform:l?"translateX(0)":"translateX(calc(100% + 100px))",transition:"transform 0.3s ease",marginTop:d&&t.y<100?"32px":"0",marginBottom:!d&&t.y>window.innerHeight-100?"8px":"0"},children:[s.jsx("div",{className:"quick-tab-items-wrap",style:{background:"#ffffff",borderRadius:"10px",flex:1,overflowY:"auto",maxHeight:d?`calc(100vh - ${t.y+120}px)`:`${t.y-60}px`,padding:"14px 0"},children:g.map(x=>s.jsx(v.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:()=>O(x),onMouseEnter:_=>{},onMouseLeave:_=>{},children:s.jsxs("div",{className:"quick-tab-item-inner",children:[s.jsx("div",{className:"quick-tab-items-icon",style:{width:"44px",height:"44px",borderRadius:"8PX",fontSize:"24px",color:x.color,marginBottom:"5px"},children:x.icon}),s.jsx("div",{className:"quick-tab-items-title",children:x.title})]})},x.id))}),s.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:x=>{},onMouseLeave:x=>{},children:s.jsx(se.PlusOutlined,{style:{color:"#CDC4FF",fontSize:"15px"}})})]}),s.jsx("div",{className:"quick-tab-drag-btn",style:{cursor:n?"grabbing":"grab",zIndex:1001},onMouseDown:x=>C(x)}),s.jsx(v.Button,{className:`quick-tab-toggle-btn ${l?"expanded":""}`,type:"default",style:{border:"0",backgroundColor:"transparent"},onClick:m})]})},Ov=()=>{const{verifyWithToken:e}=Mr.useAuth(),t=La.useNavigate(),r=La.useLocation();return h.useEffect(()=>{const o=new URLSearchParams(r.search).get("token");if(!o){t("/login",{replace:!0});return}(async()=>{const i=await e(o);t(i?"/main":"/login",{replace:!0})})()},[r.search]),s.jsx("div",{style:{display:"grid",placeItems:"center",height:"100dvh"},children:s.jsx(v.Spin,{tip:"인증중..."})})},$v=e=>{if(e==null)return"";const t=String(e).trim();return!t||t.toUpperCase()==="NULL"?"":t.toUpperCase()},$i=(e,t=0)=>{const r=Number(e);return Number.isFinite(r)?r:t};function cn(e){return{crprCd:e.crprCd||void 0,wkplCd:e.wkplCd||void 0,deptCd:$v(e.deptCd),deptNm:(e.deptNm??"").toString().trim(),hrnkDeptCd:e.hrnkDeptCd||null,hrnkDeptNm:e.hrnkDeptNm||null,deptGbCd:e.deptGbCd||null,deptLvl:$i(e.deptLvl,e.hrnkDeptCd?2:1),orgSortOrd:$i(e.orgSortOrd,0),orgOtptOrd:$i(e.orgOtptOrd,0),deptAbrv:e.deptAbrv||null,deptFullNm:e.deptFullNm||null,deptEnglNm:e.deptEnglNm||null,isLeaf:e.isLeaf||null}}function Tv(e){const t=new Set,r=e.map(cn).filter(l=>l.deptCd).filter(l=>(l.deptCd===l.hrnkDeptCd&&(l.hrnkDeptCd=""),!0)).filter(l=>t.has(l.deptCd)?!1:(t.add(l.deptCd),!0));r.sort((l,c)=>(l.deptLvl||0)-(c.deptLvl||0)||(l.orgSortOrd||0)-(c.orgSortOrd||0)||l.deptCd.localeCompare(c.deptCd));const n=new Map;for(const l of r)n.set(l.deptCd,{...l,children:[]});const o=[];for(const l of r){const c=n.get(l.deptCd),d=l.hrnkDeptCd;d&&n.has(d)?n.get(d).children.push(c):o.push(c)}const i=l=>{!l||l.length===0||(l.sort((c,d)=>c.deptCd.localeCompare(d.deptCd)),l.forEach(c=>i(c.children)))};i(o);const a=l=>{if(!l.children||l.children.length===0){delete l.children;return}l.children.forEach(a)};if(o.forEach(a),o.length>1){const l=o.find(c=>c.deptCd==="D00");if(l)return[l]}return o}function Iv(e){const t=e.map(cn),r=t.filter(n=>n.isLeaf!=="Y").map(n=>n.deptCd);return r.length>200?t.filter(n=>(n.deptLvl||0)<=2).map(n=>n.deptCd):r}const Pv=({popup:e})=>{const[t,r]=h.useState(""),[n,o]=h.useState([]),[i,a]=h.useState([]),[l,c]=h.useState([]),[d,f]=h.useState(!1),u=h.useCallback(async j=>{try{f(!0);const S=await _e.callService("SCMUTIL00103",{...e?.popupParams,...j}),k=Array.isArray(S?.data)?S.data:Array.isArray(S?.deptList)?S.deptList:Array.isArray(S)?S:[],$=Tv(k);c($);const H=Iv(k);o(H);const I=$[0]?.deptCd||cn(k.find(L=>cn(L).deptLvl===1)||{}).deptCd||cn(k[0]||{}).deptCd||"";a(I?[I]:[])}catch{v.message.error("조직 데이터를 불러오는 중 오류가 발생했습니다.")}finally{f(!1)}},[e?.popupParams]);h.useEffect(()=>{u()},[u]);const g=h.useCallback((j,S)=>{for(const k of j){if(k.deptCd===S)return k;if(k.children){const $=g(k.children,S);if($)return $}}return null},[]),C=h.useMemo(()=>{const j=i[0];return j?g(l,j):null},[i,l,g]),E=h.useMemo(()=>{const j=k=>k.map($=>({title:$.deptNm,key:$.deptCd,meta:$,children:$.children?j($.children):void 0}));return j(l)},[l]),R=h.useMemo(()=>{const j=t.trim().toLowerCase();if(!j)return E;const S=k=>k.map($=>{const H=$.meta,I=(H?.deptNm||"").toLowerCase().includes(j)||(H?.deptCd||"").toLowerCase().includes(j),L=$.children?S($.children):void 0;return I||L&&L.length?{...$,children:L}:null}).filter(Boolean);return S(E)},[E,t]),m=h.useCallback(j=>{a(j.slice(0,1).map(String))},[]),O=h.useCallback(j=>o(j.map(String)),[]),x=h.useCallback((j,S)=>{if(j.stopPropagation(),!S.children||S.children.length===0)return;const k=n.includes(S.key);o($=>k?$.filter(H=>H!==S.key):[...$,S.key])},[n]),_=h.useCallback(()=>a([]),[]),P={confirm:()=>{if(!C){v.message.error("부서를 선택해주세요.");return}const j={deptCd:C.deptCd,deptNm:C.deptNm,hrnkDeptCd:C.hrnkDeptCd,hrnkDeptNm:C.hrnkDeptNm,deptLvl:C.deptLvl,orgSortOrd:C.orgSortOrd};e?.config?.callback?.(JSON.stringify(j)),e?.close?.()}};return s.jsx(wn,{popup:e,popupEvent:P,children:s.jsx(Ot,{children:s.jsx(Rt,{border:!1,style:{paddingBottom:20},children:s.jsxs(v.Splitter,{layout:"vertical",style:{height:"100%"},children:[s.jsxs(v.Splitter.Panel,{defaultSize:"70%",min:"70%",max:"75%",children:[s.jsx("div",{style:{position:"sticky",top:0,zIndex:10,backgroundColor:"white",borderBottom:"1px solid #e0e0e0",padding:8},children:s.jsxs(v.Flex,{gap:8,vertical:!0,style:{marginBottom:6},children:[s.jsx(Kt,{title:"조직도"}),s.jsx(v.Row,{gutter:[16,16],children:s.jsx(v.Col,{span:24,children:s.jsx(v.Input,{placeholder:"부서명, 부서코드 검색",prefix:s.jsx(se.SearchOutlined,{}),value:t,allowClear:!0,onChange:j=>r(j.target.value)})})})]})}),s.jsx("div",{style:{padding:16,overflowY:"hidden"},children:s.jsx(v.Spin,{spinning:d,children:s.jsx(v.Tree,{treeData:R,expandedKeys:n,selectedKeys:i,onSelect:m,onExpand:O,onDoubleClick:x,showLine:!0,showIcon:!1,selectable:!0,style:{overflow:"hidden"},titleRender:j=>{const S=j.meta;return s.jsxs("span",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"2px 4px",width:"100%",fontWeight:i.includes(j.key)?"bold":"normal"},children:[s.jsx("span",{children:S.deptNm}),s.jsx("span",{style:{fontSize:11,color:"#999",marginLeft:8},children:S.deptCd})]})}})})})]}),s.jsx(v.Splitter.Panel,{collapsible:!0,children:s.jsxs("div",{style:{padding:16,overflowY:"hidden",height:"100%"},children:[s.jsx("h3",{style:{margin:"0 0 12px 0",fontSize:16,fontWeight:700},children:"선택된 부서"}),C?s.jsxs("div",{style:{display:"flex",alignItems:"center",padding:14,border:"1px solid #e0e0e0",borderRadius:12,background:"#fafafa"},children:[s.jsx("div",{style:{width:42,height:42,borderRadius:"50%",border:"1px solid #e6e6e6",display:"flex",alignItems:"center",justifyContent:"center",marginRight:12,fontSize:18,color:"#8c8c8c",background:"#fff",flex:"0 0 auto"},children:s.jsx(se.TeamOutlined,{})}),s.jsxs("div",{style:{flex:1,minWidth:0},children:[s.jsxs("div",{style:{fontSize:15,fontWeight:700,marginBottom:4},children:[C.deptNm," ",s.jsxs("span",{style:{color:"#8c8c8c",fontSize:12},children:["(",C.deptCd,")"]})]}),s.jsxs("div",{style:{fontSize:12,color:"#666",marginBottom:2},children:["상위부서: ",C.hrnkDeptNm||"-"]})]}),s.jsx(v.Button,{type:"text",onClick:_,icon:s.jsx(se.RestOutlined,{style:{fontSize:24,color:"#FF6363"}})})]}):s.jsx("div",{style:{color:"#999",fontSize:14},children:"부서를 선택해주세요."})]})})]})})})})},_v=e=>{if(e==null)return"";const t=String(e).trim();return!t||t.toUpperCase()==="NULL"?"":t.toUpperCase()},Ti=(e,t=0)=>{const r=Number(e);return Number.isFinite(r)?r:t};function dn(e){return{crprCd:e.crprCd||void 0,wkplCd:e.wkplCd||void 0,deptCd:_v(e.deptCd),deptNm:(e.deptNm??"").toString().trim(),hrnkDeptCd:e.hrnkDeptCd||null,hrnkDeptNm:e.hrnkDeptNm||null,deptGbCd:e.deptGbCd||null,deptLvl:Ti(e.deptLvl,e.hrnkDeptCd?2:1),orgSortOrd:Ti(e.orgSortOrd,0),orgOtptOrd:Ti(e.orgOtptOrd,0),deptAbrv:e.deptAbrv||null,deptFullNm:e.deptFullNm||null,deptEnglNm:e.deptEnglNm||null,isLeaf:e.isLeaf||null}}function Mv(e){const t=new Set,r=e.map(dn).filter(l=>l.deptCd).filter(l=>(l.deptCd===l.hrnkDeptCd&&(l.hrnkDeptCd=""),!0)).filter(l=>t.has(l.deptCd)?!1:(t.add(l.deptCd),!0));r.sort((l,c)=>(l.deptLvl||0)-(c.deptLvl||0)||(l.orgSortOrd||0)-(c.orgSortOrd||0)||l.deptCd.localeCompare(c.deptCd));const n=new Map;for(const l of r)n.set(l.deptCd,{...l,children:[]});const o=[];for(const l of r){const c=n.get(l.deptCd),d=l.hrnkDeptCd;d&&n.has(d)?n.get(d).children.push(c):o.push(c)}const i=l=>{!l||l.length===0||(l.sort((c,d)=>c.deptCd.localeCompare(d.deptCd)),l.forEach(c=>i(c.children)))};i(o);const a=l=>{if(!l.children||l.children.length===0){delete l.children;return}l.children.forEach(a)};if(o.forEach(a),o.length>1){const l=o.find(c=>c.deptCd==="D00");if(l)return[l]}return o}function Nv(e){const t=e.map(dn),r=t.filter(n=>n.isLeaf!=="Y").map(n=>n.deptCd);return r.length>200?t.filter(n=>(n.deptLvl||0)<=2).map(n=>n.deptCd):r}const Av=({popup:e})=>{const[t,r]=h.useState(""),[n,o]=h.useState(""),[i,a]=h.useState([]),[l,c]=h.useState([]),[d,f]=h.useState([]),[u,g]=h.useState(!1),[C,E]=h.useState([]),[R,m]=h.useState(!1),O=h.useCallback(async y=>{try{m(!0);const b=await _e.callService("SCMUTIL00103",{...e?.popupParams,...y}),w=Array.isArray(b?.data)?b.data:Array.isArray(b?.deptList)?b.deptList:Array.isArray(b)?b:[],A=Mv(w);E(A);const N=Nv(w);a(N);const D=A[0]?.deptCd||dn(w.find(K=>dn(K).deptLvl===1)||{}).deptCd||dn(w[0]||{}).deptCd||"";c(D?[D]:[])}catch{v.message.error("조직 데이터를 불러오는 중 오류가 발생했습니다.")}finally{m(!1)}},[e?.popupParams]);h.useEffect(()=>{O()},[O]);const x=h.useCallback((y,b)=>{for(const w of y){if(w.deptCd===b)return w;if(w.children){const A=x(w.children,b);if(A)return A}}return null},[C]),_=h.useMemo(()=>d.map(y=>{const b=x(C,y);if(!b)return null;const{children:w,...A}=b;return A}).filter(Boolean),[d,C,x]),P=h.useMemo(()=>{const y=b=>b.map(w=>({title:w.deptNm,key:w.deptCd,meta:w,children:w.children?y(w.children):void 0,isLeaf:!w.children||w.children.length===0}));return y(C)},[C]),j=h.useMemo(()=>{const y=t.trim().toLowerCase();if(!y)return P;const b=w=>w.map(A=>{const N=A.meta,D=(N?.deptNm||"").toLowerCase().includes(y)||(N?.deptCd||"").toLowerCase().includes(y),K=A.children?b(A.children):void 0;return D||K&&K.length>0?{...A,children:K}:null}).filter(Boolean);return b(P)},[P,t]),S=h.useCallback(y=>{const b=[],w=A=>{for(const N of A)if(N.deptCd===y&&N.children){const D=K=>{for(const Y of K)b.push(Y.deptCd),Y.children&&D(Y.children)};D(N.children)}else N.children&&w(N.children)};return w(C),b},[C]),k=h.useCallback((y,b)=>{let w=Array.isArray(y)?y:y?.checked??[];if(u&&b?.node?.key){const A=b.node.key,N=S(A);if(b.checked){const D=new Set(w);for(const K of N)D.add(K);w=Array.from(D)}else{const D=new Set([A,...N]);w=w.filter(K=>!D.has(K))}}f(w)},[u,S]),$=h.useCallback(y=>{const b=y.map(String);if(c(b),b.length>0){const w=b[0],A=(D,K)=>{for(const Y of D){if(Y.deptCd===K)return Y.deptNm;if(Y.children){const G=A(Y.children,K);if(G)return G}}return null},N=A(C,w);N&&o(N)}},[C]),H=h.useCallback(y=>a(y.map(String)),[]),I=h.useCallback((y,b)=>{if(y.stopPropagation(),b.children&&b.children.length>0){const w=i.includes(b.key);a(A=>w?A.filter(N=>N!==b.key):[...A,b.key])}},[i]),L=h.useCallback(y=>{f(b=>b.filter(w=>w!==y))},[]),M=h.useCallback(()=>{f([])},[]),B={confirm:()=>{if(d.length===0){v.message.error("부서를 선택해주세요.");return}const b=Array.from(new Set(d)).map(w=>{const A=x(C,w);return A?{deptCd:A.deptCd,deptNm:A.deptNm,hrnkDeptCd:A.hrnkDeptCd,hrnkDeptNm:A.hrnkDeptNm}:null}).filter(Boolean);e?.config?.callback?.(JSON.stringify(b)),e?.close?.()}};return s.jsx(wn,{popup:e,popupEvent:B,children:s.jsx(Ot,{children:s.jsx(Rt,{border:!1,style:{paddingBottom:20},children:s.jsxs(v.Splitter,{layout:"vertical",style:{height:"100%"},children:[s.jsxs(v.Splitter.Panel,{defaultSize:"60%",min:"20%",max:"80%",children:[s.jsx("div",{style:{position:"sticky",top:0,zIndex:10,backgroundColor:"white",borderBottom:"1px solid #e0e0e0",padding:"8px"},children:s.jsxs(v.Flex,{gap:8,vertical:!0,style:{marginBottom:6},children:[s.jsx(Kt,{title:"조직도"}),s.jsx("div",{style:{fontSize:14,color:"#666",padding:8,backgroundColor:"#f8f8f8",borderRadius:4},children:n}),s.jsxs(v.Row,{gutter:[16,16],children:[s.jsx(v.Col,{span:18,children:s.jsx(v.Input,{placeholder:"부서명, 부서장명, 부서코드 검색",prefix:s.jsx(se.SearchOutlined,{}),value:t,allowClear:!0,onChange:y=>r(y.target.value)})}),s.jsx(v.Col,{span:6,style:{justifyContent:"center",display:"flex",alignItems:"center"},children:s.jsx(v.Checkbox,{checked:u,onChange:y=>g(y.target.checked),children:"하위까지 선택"})})]})]})}),s.jsx("div",{style:{padding:16,overflowY:"hidden"},children:s.jsx(v.Spin,{spinning:R,children:s.jsx(v.Tree,{className:"bwg-ogrn-tree",treeData:j,expandedKeys:i,selectedKeys:l,checkedKeys:d,checkable:!0,checkStrictly:!0,showLine:!0,showIcon:!1,selectable:!0,onSelect:$,onExpand:H,onCheck:k,onDoubleClick:I,style:{overflow:"hidden"},titleRender:y=>{const b=y.meta;return s.jsxs("span",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"2px 4px",width:"100%"},children:[s.jsx("span",{style:{fontWeight:l.includes(y.key)?"bold":"normal"},children:b.deptNm}),s.jsx("span",{style:{fontSize:11,color:"#999",marginLeft:8},children:b.deptCd})]})}})})})]}),s.jsx(v.Splitter.Panel,{collapsible:!0,children:s.jsxs("div",{style:{padding:16,overflowY:"hidden"},children:[s.jsxs("div",{style:{marginBottom:12,display:"flex",alignItems:"center",gap:8},children:[s.jsxs("h3",{style:{margin:0,fontSize:16,fontWeight:700},children:["선택된 부서 (",_.length,"개)"]}),_.length>0&&s.jsx("button",{onClick:M,style:{border:"none",background:"transparent",color:"#8c8c8c",cursor:"pointer",fontSize:12,padding:4},title:"전체 해제",children:"전체 해제"})]}),s.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:8,alignItems:"flex-start",minHeight:48},children:_.length===0?s.jsx("div",{style:{color:"#999",fontSize:14},children:"선택된 부서가 없습니다."}):_.map(y=>s.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:8,padding:"4px 8px",borderRadius:999,border:"1px solid #e6e6e6",background:"#fafafa",lineHeight:1.1,cursor:"default",maxWidth:260},title:`${y.deptNm}`,children:[s.jsx("span",{style:{width:18,height:18,borderRadius:"50%",border:"1px solid #e6e6e6",display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:12,color:"#8c8c8c",background:"#fff",flex:"0 0 auto"},children:s.jsx(se.TeamOutlined,{})}),s.jsxs("span",{style:{display:"inline-flex",flexDirection:"column",gap:2,overflow:"hidden"},children:[s.jsx("span",{style:{fontSize:13,fontWeight:600,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:180},children:y.deptNm}),s.jsx("span",{style:{fontSize:11,color:"#8c8c8c",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:180},children:y.deptCd})]}),s.jsx("button",{onClick:()=>L(y.deptCd),style:{border:"none",background:"transparent",color:"#8c8c8c",cursor:"pointer",padding:2,lineHeight:0},"aria-label":`${y.deptNm} 선택 해제`,title:"선택 해제",children:"×"})]},y.deptCd))})]})})]})})})})},Dv=({popup:e})=>{const[t,r]=h.useState(""),[n,o]=h.useState(""),[i,a]=h.useState([]),[l,c]=h.useState([]),[d,f]=h.useState(null),[u,g]=h.useState([]),[C,E]=h.useState(!1),R=h.useCallback(async()=>{try{E(!0);const I=await _e.callService("SCMUTIL00105",{...e?.popupParams});console.log("📊 조직도 API 응답:",I);const L=Array.isArray(I?.data)?I.data:Array.isArray(I?.orgnList)?I.orgnList:Array.isArray(I)?I:[];if(L.length===0){console.warn("⚠️ 조직도 데이터가 없습니다.");return}const M=m(L);console.log("🌳 구성된 조직도 트리:",M),g(M);const B=L.filter(y=>y.deptLvl<=2).map(y=>y.deptCd);if(a(B),M.length>0){const y=M[0];c([y.deptCd]),o(y.deptNm)}console.log("✅ 조직도 데이터 로딩 완료")}catch(I){console.error("❌ 조직도 데이터 로딩 실패:",I),v.message.error("조직도 데이터를 불러오는 중 오류가 발생했습니다.")}finally{E(!1)}},[e?.popupParams]),m=h.useCallback(I=>{const L=[...I].sort((b,w)=>b.deptLvl-w.deptLvl||b.orgSortOrd-w.orgSortOrd||b.deptCd.localeCompare(w.deptCd)),M=new Map;for(const b of L)M.set(b.deptCd,{...b,children:[]});const B=[];for(const b of L){const w=M.get(b.deptCd),A=b.hrnkDeptCd;A&&M.has(A)?M.get(A).children.push(w):B.push(w)}const y=b=>{if(!b.children||b.children.length===0){delete b.children;return}b.children.forEach(y)};return B.forEach(y),B},[]);h.useEffect(()=>{R()},[R]);const O=h.useMemo(()=>{const I=B=>{let y=[];return B.forEach(b=>{b.employees&&(y=y.concat(b.employees)),b.children&&(y=y.concat(I(b.children)))}),y},L=I(u),M=L.filter((B,y,b)=>y===b.findIndex(w=>w.empNo===B.empNo));return console.log(`👥 전체 사원 수: ${L.length}, 중복 제거 후: ${M.length}`),M},[u]),x=h.useMemo(()=>{const I=L=>L.map(M=>({title:M.deptNm,key:M.deptCd,children:M.children?I(M.children):void 0,isLeaf:!M.children||M.children.length===0}));return I(u)},[u]),_=h.useMemo(()=>{if(!t.trim())return x;const I=L=>L.map(M=>{const B=M.title.toLowerCase().includes(t.toLowerCase()),y=M.children?I(M.children):void 0;return B||y&&y.length>0?{...M,children:y}:null}).filter(Boolean);return I(x)},[x,t]),P=h.useMemo(()=>{if(!t.trim()){const I=b=>{let w=[];return b.forEach(A=>{A.employees&&(w=w.concat(A.employees)),A.children&&(w=w.concat(I(A.children)))}),w},L=(b,w)=>{for(const A of b){if(A.deptCd===w){let N=[...A.employees||[]];return A.children&&(N=N.concat(I(A.children))),N}if(A.children){const N=L(A.children,w);if(N.length>0)return N}}return[]},M=l[0];if(!M)return[];const B=L(u,M),y=B.filter((b,w,A)=>w===A.findIndex(N=>N.empNo===b.empNo));return console.log(`🔍 선택된 부서: ${M}, 반환된 사원 수: ${B.length}, 중복 제거 후: ${y.length}`),y}return O.filter(I=>I.empNm.toLowerCase().includes(t.toLowerCase())||I.empNo.toLowerCase().includes(t.toLowerCase())||I.deptNm.toLowerCase().includes(t.toLowerCase())||I.jbpsCd.includes(t)||I.jbgdCd.includes(t)||I.emplyStCd.includes(t))},[t,l,O,u]),j=h.useCallback(I=>{f(I)},[]),S=h.useCallback(I=>{const L=I.map(String);if(console.log(`🌳 트리 선택: ${L.join(", ")}`),c(L),L.length>0){const M=L[0],B=(b,w)=>{for(const A of b){if(A.deptCd===w)return A.deptNm;if(A.children){const N=B(A.children,w);if(N)return N}}return null},y=B(u,M);y&&o(y)}},[u]),k=h.useCallback(I=>{a(I.map(String))},[]),$=h.useCallback((I,L)=>{if(I.stopPropagation(),L.children&&L.children.length>0){const M=i.includes(L.key);a(M?B=>B.filter(y=>y!==L.key):B=>[...B,L.key])}},[i]),H={confirm:()=>{d?(e?.popupParams?.onSelect?e.popupParams.onSelect(d):e?.config?.callback&&e.config.callback(JSON.stringify(d,null,2)),e?.close?.()):v.message.error("사원을 선택해주세요.")}};return s.jsx(wn,{popup:e,popupEvent:H,children:s.jsx(Ot,{children:s.jsx(Rt,{border:!1,style:{paddingBottom:20},children:s.jsxs(v.Splitter,{layout:"vertical",style:{height:"100%"},children:[s.jsxs(v.Splitter.Panel,{defaultSize:"60%",min:"20%",max:"80%",children:[s.jsx("div",{style:{position:"sticky",top:0,zIndex:10,backgroundColor:"white",borderBottom:"1px solid #e0e0e0",padding:"8px"},children:s.jsxs(v.Flex,{gap:8,vertical:!0,style:{marginBottom:"6px"},children:[s.jsx(Kt,{title:"조직도"}),s.jsx(v.Input,{placeholder:"이름, 소속, 전화번호 검색",prefix:s.jsx(se.SearchOutlined,{}),value:t,allowClear:!0,onChange:I=>r(I.target.value)})]})}),s.jsx("div",{style:{padding:"16px",overflowY:"hidden"},children:s.jsx(v.Spin,{spinning:C,children:s.jsx(v.Tree,{className:"bwg-ogrn-tree",treeData:_,expandedKeys:i,selectedKeys:l,onSelect:S,onExpand:k,onDoubleClick:$,showLine:!0,showIcon:!1,style:{overflow:"hidden"},titleRender:I=>s.jsx("span",{style:{padding:"4px 8px",borderRadius:"4px",fontWeight:l.includes(I.key)?"bold":"normal",display:"inline-block",width:"100%"},children:I.title})})})})]}),s.jsx(v.Splitter.Panel,{collapsible:!0,children:s.jsxs("div",{style:{padding:"16px",overflowY:"hidden"},children:[s.jsx("div",{style:{marginBottom:"16px"},children:s.jsx("h3",{style:{margin:"0 0 8px 0",fontSize:"16px",fontWeight:"bold"},children:t?"검색 결과":n})}),s.jsxs("div",{style:{overflow:"hidden",height:"100%"},children:[P.map(I=>s.jsxs("div",{style:{display:"flex",alignItems:"center",padding:"12px",border:"1px solid #e0e0e0",borderRadius:"8px",marginBottom:"8px",cursor:"pointer",backgroundColor:d&&d.crprCd===I.crprCd&&d.wkplCd===I.wkplCd&&d.empNo===I.empNo&&d.jbpsCd===I.jbpsCd&&d.jbgdCd===I.jbgdCd&&d.empMarkOrd===I.empMarkOrd?"#efebff":"white"},onClick:()=>j(I),children:[s.jsx("div",{style:{marginRight:"12px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",width:"20px",height:"20px"},onClick:L=>{L.stopPropagation(),f(I)},children:d&&d.crprCd===I.crprCd&&d.wkplCd===I.wkplCd&&d.empNo===I.empNo&&d.jbpsCd===I.jbpsCd&&d.jbgdCd===I.jbgdCd&&d.empMarkOrd===I.empMarkOrd?s.jsx(se.CheckCircleFilled,{style:{fontSize:"20px",color:"#6449fc"}}):s.jsx(se.CheckCircleOutlined,{style:{fontSize:"20px",color:"#d9d9d9"}})}),s.jsx("div",{style:{width:"40px",height:"40px",borderRadius:"50%",backgroundColor:"#e0e0e0",display:"flex",alignItems:"center",justifyContent:"center",marginRight:"12px",fontSize:"18px",color:"#666"},children:s.jsx(se.UserOutlined,{})}),s.jsxs("div",{style:{flex:1},children:[s.jsxs("div",{style:{fontSize:"14px",fontWeight:"bold",marginBottom:"4px"},children:[I.empNm,s.jsxs("span",{style:{fontSize:"12px",fontWeight:"normal",color:"#666",marginLeft:"8px"},children:["(",I.empNo,")"]})]}),s.jsxs("div",{style:{fontSize:"12px",color:"#666",marginBottom:"2px"},children:[I.deptNm," (",I.deptCd,") | 직급:"," ",I.jbpsCd," | 등급: ",I.jbgdCd]})]})]},`emp-${I.crprCd}-${I.wkplCd}-${I.empNo}-${I.jbpsCd}-${I.jbgdCd}-${I.empMarkOrd}`)),P.length===0&&s.jsx("div",{style:{textAlign:"center",padding:"40px",color:"#999",fontSize:"14px"},children:t?"검색 결과가 없습니다.":"해당 부서에 직원이 없습니다."})]})]})})]})})})})},Bv=({popup:e})=>{const[t,r]=h.useState(""),[n,o]=h.useState(""),[i,a]=h.useState([]),[l,c]=h.useState([]),[d,f]=h.useState([]),[u,g]=h.useState(!1),[C,E]=h.useState({}),R=h.useCallback(async()=>{try{g(!0);const y=await _e.callService("SCMUTIL00105",{...e?.popupParams});console.log("📊 조직도 API 응답:",y);const b=Array.isArray(y?.data)?y.data:Array.isArray(y?.orgnList)?y.orgnList:Array.isArray(y)?y:[];if(b.length===0){console.warn("⚠️ 조직도 데이터가 없습니다.");return}const w=m(b);console.log("🌳 구성된 조직도 트리:",w),f(w);const A=b.filter(N=>N.deptLvl<=2).map(N=>N.deptCd);if(a(A),w.length>0){const N=w[0];c([N.deptCd]),o(N.deptNm)}console.log("✅ 조직도 데이터 로딩 완료")}catch(y){console.error("❌ 조직도 데이터 로딩 실패:",y),v.message.error("조직도 데이터를 불러오는 중 오류가 발생했습니다.")}finally{g(!1)}},[e?.popupParams]),m=h.useCallback(y=>{const b=[...y].sort((D,K)=>D.deptLvl-K.deptLvl||D.orgSortOrd-K.orgSortOrd||D.deptCd.localeCompare(K.deptCd)),w=new Map;for(const D of b)w.set(D.deptCd,{...D,children:[]});const A=[];for(const D of b){const K=w.get(D.deptCd),Y=D.hrnkDeptCd;Y&&w.has(Y)?w.get(Y).children.push(K):A.push(K)}const N=D=>{if(!D.children||D.children.length===0){delete D.children;return}D.children.forEach(N)};return A.forEach(N),A},[]);h.useEffect(()=>{R()},[R]);const O=h.useMemo(()=>{const y=A=>{let N=[];return A.forEach(D=>{D.employees&&(N=N.concat(D.employees)),D.children&&(N=N.concat(y(D.children)))}),N},b=y(d),w=b.filter((A,N,D)=>N===D.findIndex(K=>K.empNo===A.empNo));return console.log(`👥 전체 사원 수: ${b.length}, 중복 제거 후: ${w.length}`),w},[d]),x=h.useMemo(()=>{const y=b=>b.map(w=>({title:w.deptNm,key:w.deptCd,children:w.children?y(w.children):void 0,isLeaf:!w.children||w.children.length===0}));return y(d)},[d]),_=h.useMemo(()=>{if(!t.trim())return x;const y=b=>b.map(w=>{const A=w.title.toLowerCase().includes(t.toLowerCase()),N=w.children?y(w.children):void 0;return A||N&&N.length>0?{...w,children:N}:null}).filter(Boolean);return y(x)},[x,t]),P=h.useMemo(()=>{if(!t.trim()){const y=D=>{let K=[];return D.forEach(Y=>{Y.employees&&(K=K.concat(Y.employees)),Y.children&&(K=K.concat(y(Y.children)))}),K},b=(D,K)=>{for(const Y of D){if(Y.deptCd===K){let G=[...Y.employees||[]];return Y.children&&(G=G.concat(y(Y.children))),G}if(Y.children){const G=b(Y.children,K);if(G.length>0)return G}}return[]},w=l[0];if(!w)return[];const A=b(d,w),N=A.filter((D,K,Y)=>K===Y.findIndex(G=>G.empNo===D.empNo));return console.log(`🔍 선택된 부서: ${w}, 반환된 사원 수: ${A.length}, 중복 제거 후: ${N.length}`),N}return O.filter(y=>y.empNm.toLowerCase().includes(t.toLowerCase())||y.empNo.toLowerCase().includes(t.toLowerCase())||y.deptNm.toLowerCase().includes(t.toLowerCase())||y.jbpsCd.includes(t)||y.jbgdCd.includes(t)||y.emplyStCd.includes(t))},[t,l,O,d]),j=h.useCallback(y=>{E(b=>{const w={...b};return w[y.empNo]?delete w[y.empNo]:w[y.empNo]=y,w})},[]),S=h.useCallback(y=>{E(b=>{const w={...b};return delete w[y],w})},[]),k=h.useCallback(()=>E({}),[]),$=h.useCallback(()=>{E(y=>{const b={...y};for(const w of P)b[w.empNo]=w;return b})},[P]),H=h.useCallback(()=>{E(y=>{const b={...y};for(const w of P)delete b[w.empNo];return b})},[P]),I=h.useCallback(y=>{const b=y.map(String);if(console.log(`🌳 트리 선택: ${b.join(", ")}`),c(b),b.length>0){const w=b[0],A=(D,K)=>{for(const Y of D){if(Y.deptCd===K)return Y.deptNm;if(Y.children){const G=A(Y.children,K);if(G)return G}}return null},N=A(d,w);N&&o(N)}},[d]),L=h.useCallback(y=>{a(y.map(String))},[]),M=h.useCallback((y,b)=>{if(y.stopPropagation(),!b.children||!b.children.length)return;const w=i.includes(b.key);a(A=>w?A.filter(N=>N!==b.key):[...A,b.key])},[i]),B={confirm:()=>{const y=Object.values(C).map(b=>({crprCd:b.crprCd,wkplCd:b.wkplCd,empNo:b.empNo,deptCd:b.deptCd,deptNm:b.deptNm,empNm:b.empNm,jbpsCd:b.jbpsCd,jbgdCd:b.jbgdCd,empMarkOrd:b.empMarkOrd,emplyStCd:b.emplyStCd}));if(y.length===0){v.message.error("직원을 선택해주세요.");return}e?.config?.callback?.(JSON.stringify(y)),e?.close?.()}};return s.jsx(wn,{popup:e,popupEvent:B,children:s.jsx(Ot,{children:s.jsx(Rt,{border:!1,style:{paddingBottom:20},children:s.jsxs(v.Splitter,{style:{height:"100%"},children:[s.jsx(v.Splitter.Panel,{defaultSize:"50%",min:"50%",max:"70%",children:s.jsxs(v.Splitter,{layout:"vertical",style:{height:"100%"},children:[s.jsxs(v.Splitter.Panel,{defaultSize:"60%",min:"35%",max:"75%",children:[s.jsx("div",{style:{position:"sticky",top:0,zIndex:10,backgroundColor:"white",borderBottom:"1px solid #e0e0e0",padding:8},children:s.jsxs(v.Flex,{gap:8,vertical:!0,style:{marginBottom:6},children:[s.jsx(Kt,{title:"조직도"}),s.jsx(v.Input,{placeholder:"이름, 소속, 직급/직위, 사번 검색",prefix:s.jsx(se.SearchOutlined,{}),value:t,allowClear:!0,onChange:y=>r(y.target.value)})]})}),s.jsx("div",{style:{padding:16,overflowY:"hidden"},children:s.jsx(v.Spin,{spinning:u,children:s.jsx(v.Tree,{className:"bwg-ogrn-tree",treeData:_,expandedKeys:i,selectedKeys:l,onSelect:I,onExpand:L,onDoubleClick:M,showLine:!0,showIcon:!1,style:{overflow:"hidden"},titleRender:y=>s.jsx("span",{style:{padding:"4px 8px",borderRadius:4,fontWeight:l.includes(y.key)?"bold":"normal",display:"inline-block",width:"100%"},children:y.title})})})})]}),s.jsx(v.Splitter.Panel,{children:s.jsxs("div",{style:{padding:16,height:"100%",display:"flex",flexDirection:"column"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[s.jsx("h3",{style:{margin:0,fontSize:16,fontWeight:700},children:t?"검색 결과":`${n} 사용자`}),s.jsxs("div",{style:{display:"flex",gap:8},children:[s.jsx(v.Button,{size:"small",onClick:$,children:"현재 목록 전체 선택"}),s.jsx(v.Button,{size:"small",onClick:H,children:"현재 목록 전체 해제"})]})]}),s.jsx(v.Divider,{style:{margin:"8px 0"}}),s.jsxs("div",{style:{overflowY:"auto"},children:[P.map(y=>{const b=!!C[y.empNo];return s.jsxs("div",{style:{display:"flex",alignItems:"center",padding:10,border:"1px solid #e0e0e0",borderRadius:8,marginBottom:8,cursor:"pointer",background:b?"#efebff":"#fff"},onClick:()=>j(y),children:[s.jsx("div",{style:{marginRight:12,width:22,height:22,display:"flex",alignItems:"center",justifyContent:"center"},onClick:w=>{w.stopPropagation(),j(y)},children:b?s.jsx(se.CheckCircleFilled,{style:{fontSize:20,color:"#6449fc"}}):s.jsx(se.CheckCircleOutlined,{style:{fontSize:20,color:"#d9d9d9"}})}),s.jsx("div",{style:{width:36,height:36,borderRadius:"50%",backgroundColor:"#e0e0e0",display:"flex",alignItems:"center",justifyContent:"center",marginRight:12,fontSize:16,color:"#666",flex:"0 0 auto"},children:s.jsx(se.UserOutlined,{})}),s.jsxs("div",{style:{flex:1,minWidth:0},children:[s.jsxs("div",{style:{fontSize:14,fontWeight:600,marginBottom:2},children:[y.empNm,s.jsxs("span",{style:{fontSize:12,fontWeight:"normal",color:"#666",marginLeft:"8px"},children:["(",y.empNo,")"]})]}),s.jsxs("div",{style:{fontSize:12,color:"#666"},children:[y.deptNm," (",y.deptCd,") | 직급: ",y.jbpsCd," ","| 등급: ",y.jbgdCd]})]})]},`emp-${y.crprCd}-${y.wkplCd}-${y.empNo}-${y.jbpsCd}-${y.jbgdCd}-${y.empMarkOrd}`)}),P.length===0&&s.jsx("div",{style:{textAlign:"center",padding:32,color:"#999",fontSize:14},children:t?"검색 결과가 없습니다.":"해당 부서에 사용자 없음"})]})]})})]})}),s.jsx(v.Splitter.Panel,{collapsible:!0,children:s.jsxs("div",{style:{padding:16,height:"100%",display:"flex",flexDirection:"column"},children:[s.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[s.jsx(Kt,{title:`선택된 사용자 (${Object.keys(C).length})`}),s.jsx(v.Button,{type:"link",size:"small",onClick:k,children:"전체 해제"})]}),s.jsx(v.Divider,{style:{margin:"8px 0"}}),s.jsxs("div",{style:{overflowY:"auto",flex:1},children:[Object.values(C).map(y=>s.jsxs("div",{style:{display:"flex",alignItems:"center",padding:10,border:"1px solid #e0e0e0",borderRadius:8,marginBottom:8,background:"#fafafa"},children:[s.jsx("div",{style:{width:32,height:32,borderRadius:"50%",backgroundColor:"#e0e0e0",display:"flex",alignItems:"center",justifyContent:"center",marginRight:10,color:"#666"},children:s.jsx(se.UserOutlined,{})}),s.jsxs("div",{style:{flex:1,minWidth:0},children:[s.jsxs("div",{style:{fontSize:13,fontWeight:600,marginBottom:2},children:[y.empNm,s.jsxs("span",{style:{fontSize:11,fontWeight:"normal",color:"#666",marginLeft:"6px"},children:["(",y.empNo,")"]})]}),s.jsxs("div",{style:{fontSize:12,color:"#666"},children:[y.deptNm," (",y.deptCd,") | 직급: ",y.jbpsCd," | 등급: ",y.jbgdCd]})]}),s.jsx(v.Button,{type:"text",shape:"circle",icon:s.jsx(se.CloseOutlined,{}),onClick:()=>S(y.empNo)})]},`selected-${y.crprCd}-${y.wkplCd}-${y.empNo}-${y.jbpsCd}-${y.jbgdCd}-${y.empMarkOrd}`)),Object.keys(C).length===0&&s.jsx("div",{style:{color:"#999",fontSize:14,textAlign:"center",padding:24},children:"선택된 사용자가 없습니다."})]})]})})]})})})})};exports.BwgButtonGroup=Jd;exports.BwgCmptArea=eu;exports.BwgCol=tu;exports.BwgConfigProvider=pa;exports.BwgDetail=hu;exports.BwgDrawer=pu;exports.BwgEditor=_i;exports.BwgGrid=Ml;exports.BwgInfoArea=Ru;exports.BwgPagination=jo;exports.BwgPopup=wn;exports.BwgRow=Ou;exports.BwgSpace=$u;exports.BwgTable=Tu;exports.BwgTabs=Iu;exports.BwgTitleBox=Kt;exports.BwgView=Sv;exports.ContentBox=Rt;exports.ContentLayOut=Ot;exports.GlobalConfigProvider=wv;exports.QuickServiceToggle=kv;exports.SSOHandler=Ov;exports.SearchBox=Eo;exports.SearchDepartmentP01=Pv;exports.SearchDepartmentP02=Av;exports.SearchOrganizationP01=Dv;exports.SearchOrganizationP02=Bv;exports.commonjsGlobal=Qd;exports.createBwgGridRenderer=no;exports.getAugmentedNamespace=Zd;exports.getDefaultExportFromCjs=So;
|