@bwg-ui/core 1.2.0 → 1.2.1

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.
Files changed (27) hide show
  1. package/dist/chunks/{common-components-CI7wc_j0.js → common-components-CKPZB7JH.js} +1360 -1355
  2. package/dist/chunks/{common-components-cQcq2ylW.cjs → common-components-Cw7pbhrp.cjs} +14 -14
  3. package/dist/chunks/{core-xi9w8O3O.js → core-C2wEZy2f.js} +1 -1
  4. package/dist/chunks/{core-Cg6a-3GL.cjs → core-DfOWJ6JQ.cjs} +1 -1
  5. package/dist/chunks/{enc-base64-CyKdjNg8.js → enc-base64-BNbm__mu.js} +2 -2
  6. package/dist/chunks/{enc-base64-BR77UbCA.cjs → enc-base64-DPfS87kE.cjs} +1 -1
  7. package/dist/chunks/{sha256-DA5XnjXl.cjs → sha256-BXXaP9RF.cjs} +1 -1
  8. package/dist/chunks/{sha256-DmQY-nMP.js → sha256-ZWZAX8tH.js} +2 -2
  9. package/dist/components/common/index.cjs +1 -1
  10. package/dist/components/common/index.js +1 -1
  11. package/dist/components/core/BwgUploader.d.ts +31 -6
  12. package/dist/components/core/BwgUploader.d.ts.map +1 -1
  13. package/dist/components/core/index.cjs +1 -1
  14. package/dist/components/core/index.js +520 -453
  15. package/dist/components/guide/index.cjs +1 -1
  16. package/dist/components/guide/index.js +1 -1
  17. package/dist/components/layout/index.cjs +1 -1
  18. package/dist/components/layout/index.js +1 -1
  19. package/dist/index.cjs +1 -1
  20. package/dist/index.js +1 -1
  21. package/dist/styles/assets/images/header/icon/ico-bell.svg +3 -3
  22. package/dist/styles/assets/images/header/icon/ico-logout.svg +10 -10
  23. package/dist/styles/assets/images/header/icon/ico-setting.svg +4 -4
  24. package/dist/styles/assets/images/header/icon/ico-sidebar-arrow.svg +3 -3
  25. package/dist/utils/index.cjs +1 -1
  26. package/dist/utils/index.js +3 -3
  27. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- "use strict";var Du=Object.create;var Ma=Object.defineProperty;var Bu=Object.getOwnPropertyDescriptor;var zu=Object.getOwnPropertyNames;var Lu=Object.getPrototypeOf,Fu=Object.prototype.hasOwnProperty;var Hu=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of zu(t))!Fu.call(e,o)&&o!==r&&Ma(e,o,{get:()=>t[o],enumerable:!(n=Bu(t,o))||n.enumerable});return e};var Vu=(e,t,r)=>(r=e!=null?Du(Lu(e)):{},Hu(t||!e||!e.__esModule?Ma(r,"default",{value:e,enumerable:!0}):r,e));const Ve=require("../utils/index.cjs"),ct=require("../stores/index.cjs"),s=require("react/jsx-runtime"),pe=require("@ant-design/icons"),y=require("antd"),v=require("react"),Mr=require("../provider/index.cjs"),Wu=require("dompurify"),ji=require("react-quill"),ao=require("react-dom"),Ke=require("realgrid"),ka=require("realgrid-react"),wl=require("react-rnd"),qu=require("dayjs"),Sl=require("../components/layout/index.cjs"),Pe=require("../components/core/index.cjs"),Aa=require("react-router-dom");function El(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 nn=El(pe),h=El(v);var Uu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ku(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 Gu=({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:u}=ct.useUserStore(),[f,d]=v.useState([]),[g,C]=v.useState(!0),[b,w]=v.useState(null),[p,S]=v.useState({}),m=async()=>{try{C(!0),w(null),console.log("@@ 커스텀버튼그룹 영역 조회시작",e,t);const j=await Ve.callService(c,{userId:u?.userId,crprCd:u?.crprCd,grpId:e.toUpperCase(),menuId:t});if(console.log("@@ 커스텀버튼그룹 영역 조회결과",j),j?.data&&Array.isArray(j.data)){const x=j.data.sort((R,$)=>R.btnSq-$.btnSq);d(x)}else d([])}catch(j){console.error("버튼 권한 조회 실패:",j),w("버튼 권한을 조회하는 중 오류가 발생했습니다."),d([])}finally{C(!1)}};v.useEffect(()=>{m()},[e,t]);const O=async(j,x)=>{S(R=>({...R,[j]:{loading:!0}}));try{const R=r?.[j];R?await R():console.warn(`버튼 이벤트 핸들러를 찾을 수 없습니다: ${j}`),l&&l(j,x,e)}catch(R){console.error("버튼 이벤트 실행 실패:",R),y.message.error("작업 중 오류가 발생했습니다.")}finally{S(R=>({...R,[j]:{loading:!1}}))}},T=j=>{const x=p[j.btnId]||{loading:!1};return s.jsxs(y.Button,{size:o,loading:x.loading,onClick:()=>O(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"&&nn[j.iconVal]&&v.createElement(nn[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(y.Space,{direction:n==="vertical"?"vertical":"horizontal",size:o,children:s.jsx(y.Button,{loading:!0,size:o,children:"권한 조회 중..."})})}):b?s.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${a||""}`,style:i,children:s.jsx(y.Alert,{message:"권한 오류",description:b,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(y.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(y.Flex,{gap:3,children:f.map(T)})})},Yu=({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),u=v.useMemo(()=>{const C=c[0];if(!C||C.length===0)return{totalCols:0,baseWidth:0};let b=0;const w=[];C.forEach(S=>{const m=S,O=m?.props?.["data-colspan"]?parseInt(String(m.props["data-colspan"])):1;b+=O,w.push(O)});const p=b>0?100/b:0;return{totalCols:b,baseWidth:p,componentWidths:w}},[c]),f=(C,b,w)=>{const p=C,S=p?.props?.["data-colspan"]?parseInt(String(p.props["data-colspan"])):1;switch(t){case"equal":return 100/w;case"auto":return 100/w;case"grid":return 100/u.totalCols*S;case"flex":default:const m=u.baseWidth*S;return Math.max(n,Math.min(o,m))}},d=C=>{if(!C||typeof C!="object")return C;const b=C;if(!b.props)return C;const p={...b.props.style||{},width:"100%"};return v.cloneElement(b,{...b.props,style:p})},g=(C,b)=>{if(!C||C.length===0)return null;const w=C.length;return t==="grid"?s.jsx("div",{className:"erp-cmm-form",style:{display:"grid",gridTemplateColumns:`repeat(${u.totalCols}, 1fr)`,gap:`${r}px`,width:"100%"},children:C.map((p,S)=>{const m=p?.props?.["data-colspan"]?parseInt(String(p.props["data-colspan"])):1,O=d(p);return s.jsx("div",{style:{gridColumn:`span ${m}`,minWidth:`${n}px`},className:"form-component-wrapper",children:O},`row-${b}-col-${S}`)})},`row-${b}`):s.jsx(y.Flex,{gap:r,className:"erp-cmm-form",wrap:t==="auto"?"wrap":"nowrap",style:{width:"100%"},children:C.map((p,S)=>{const m=f(p,S,w),O=d(p),T=t==="flex"?{width:`${m}px`,minWidth:`${n}px`,maxWidth:`${o}px`,flexShrink:0}:{width:`${m}%`,minWidth:`${n}px`};return s.jsx("div",{style:T,className:"form-component-wrapper",children:O},`row-${b}-col-${S}`)})},`row-${b}`)};return s.jsx(y.Flex,{gap:"small",vertical:!0,style:i,className:a,children:c.map((C,b)=>g(C,b+1))})},Xu=({children:e,...t})=>s.jsx(y.Col,{...t,className:"bwg-col",children:e});var Ur={},Uo={exports:{}},Na;function yo(){return Na||(Na=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})(Uo)),Uo.exports}var Kr={},Da;function Qu(){if(Da)return Kr;Da=1,Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.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 Kr.default=e,Kr}var Gr={},Yr={},Xr={},Ko={exports:{}},Go={exports:{}},Yo={exports:{}},Xo={exports:{}},Ba;function Rl(){return Ba||(Ba=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})(Xo)),Xo.exports}var Qo={exports:{}},za;function Zu(){return za||(za=1,(function(e){var t=Rl().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})(Qo)),Qo.exports}var La;function Ju(){return La||(La=1,(function(e){var t=Rl().default,r=Zu();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})(Yo)),Yo.exports}var Fa;function ed(){return Fa||(Fa=1,(function(e){var t=Ju();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})(Go)),Go.exports}var Ha;function td(){return Ha||(Ha=1,(function(e){var t=ed();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})(Ko)),Ko.exports}var Qr={},Va;function rd(){return Va||(Va=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.commonLocale=void 0,Qr.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),Qr}var Wa;function nd(){if(Wa)return Xr;Wa=1;var e=yo().default;Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.default=void 0;var t=e(td()),r=rd(),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 Xr.default=n,Xr}var Zr={},qa;function jl(){if(qa)return Zr;qa=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.default=void 0;const e={placeholder:"시간 선택",rangePlaceholder:["시작 시간","종료 시간"]};return Zr.default=e,Zr}var Ua;function $l(){if(Ua)return Yr;Ua=1;var e=yo().default;Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.default=void 0;var t=e(nd()),r=e(jl());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 Yr.default=n,Yr}var Ka;function od(){if(Ka)return Gr;Ka=1;var e=yo().default;Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.default=void 0;var t=e($l());return Gr.default=t.default,Gr}var Ga;function id(){if(Ga)return Ur;Ga=1;var e=yo().default;Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.default=void 0;var t=e(Qu()),r=e(od()),n=e($l()),o=e(jl());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 Zo,Ya;function ad(){return Ya||(Ya=1,Zo=id()),Zo}var sd=ad();const Tl=bo(sd),ca=({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:y.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(y.ConfigProvider,{locale:Tl,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})},ld=({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(y.Breadcrumb,{separator:">",items:[{title:t?.prntInfo?.menuNm},{title:t?.viewLabel}]}),e]})})})},xo=({title:e,icons:t,tooltip:r,iconVisible:n=!0,paddingBottom:o=0,marginBottom:i=0,children:a})=>{const l=nn.AppstoreTwoTone;return v.useMemo(()=>t?.type==="antd"&&t.icon&&nn[t.icon]||l,[t?.type,t?.icon]),s.jsx(y.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(y.Typography.Title,{level:4,children:s.jsx("span",{children:e})}),r&&s.jsx(y.Tooltip,{title:r.title,placement:r.placement,children:s.jsx(nn.QuestionCircleTwoTone,{style:{marginLeft:5}})})]})}),s.jsx("div",{className:"bwg-title-box-right",children:s.jsx(y.Flex,{gap:6,children:a})})]})})},{Panel:Xa}=y.Collapse,Co=v.forwardRef(({reqRows:e,subRows:t,border:r=!1,labelDisplay:n,header:o},i)=>{const[a]=y.Form.useForm(),[l,c]=v.useState("1"),u=()=>n?{flex:n.md||n.lg||n.sm||"100px"}:{flex:"100px"};v.useImperativeHandle(i,()=>({getFormData:()=>a.getFieldsValue(),setFormData:d=>{a.setFieldsValue(d)},resetForm:()=>{a.resetFields()},validateForm:async()=>{try{return{success:!0,data:await a.validateFields()}}catch(d){return{success:!1,error:d}}}}));const f=()=>{c(d=>d.includes("subRows")?d.filter(g=>g!=="subRows"):[...d,"subRows"])};return s.jsxs("div",{style:r?{border:"1px solid #ddd",padding:"10px 12px",borderRadius:"8px",marginBottom:"10px"}:{},children:[o&&s.jsx(xo,{title:o.title,children:o.buttons}),s.jsx(y.Form,{form:a,layout:"inline",style:{width:"100%",paddingBottom:e||t?"10px":"0px"},labelCol:u(),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(y.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(y.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(y.ConfigProvider,{theme:{components:{Collapse:{}}},children:s.jsxs(y.Collapse,{activeKey:["reqRows",...l.includes("subRows")?["subRows"]:[]],onChange:c,className:"searchbox-collapse",bordered:!1,ghost:!0,children:[e&&s.jsx(Xa,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"disabled",children:e},"reqRows"),t&&s.jsx(Xa,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"icon",children:t},"subRows")]})})]})})]})}),cd=({children:e,showSearchBox:t,showCloseButton:r=!0,showEyesButton:n=!1,shotSettingButton:o=!0,styles:i,...a})=>{const[l,c]=v.useState(!0),[u,f]=v.useState(()=>{const S=a.placement;return S==="left"||S==="right"||S==="top"||S==="bottom"?S:"bottom"}),[d,g]=v.useState(!1),b=(S=>{const m={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(S){case"bottom":return{...m,wrapper:{...m.wrapper,borderRadius:"30px 30px 0 0"},content:{borderRadius:"30px 30px 0 0"},header:{...m.header,borderRadius:"30px 30px 0 0"}};case"top":return{...m,wrapper:{...m.wrapper,borderRadius:"0 0 30px 30px"},content:{borderRadius:"0 0 30px 30px"},header:{...m.header}};case"left":return{...m,wrapper:{...m.wrapper,borderRadius:"0 30px 0px 0"},content:{borderRadius:"0 30px 0px 0"},header:{...m.header,borderRadius:"0 30px 0 0"}};case"right":return{...m,wrapper:{...m.wrapper,borderRadius:"30px 0 0 0"},content:{borderRadius:"30px 0 0 0"},header:{...m.header,borderRadius:"30px 0 0 0"}};default:return m}})(u),w={wrapper:{...b?.wrapper,...i?.wrapper},content:{...b?.content,...i?.content},header:{...b?.header,...i?.header}},p=()=>{const S=[];if(o){const m=[{key:"top",label:"상단",icon:s.jsx(pe.CaretUpOutlined,{})},{key:"right",label:"우측",icon:s.jsx(pe.CaretRightOutlined,{})},{key:"bottom",label:"하단",icon:s.jsx(pe.CaretDownOutlined,{})},{key:"left",label:"좌측",icon:s.jsx(pe.CaretLeftOutlined,{})}],O=s.jsx(y.Space.Compact,{children:m.map(T=>s.jsx(y.Button,{type:u===T.key?"primary":"default",size:"small",onClick:()=>{f(T.key),g(!1)},icon:T.icon},T.key))});S.push(s.jsx(y.Popover,{content:O,trigger:"click",placement:"left",open:d,onOpenChange:g,children:s.jsx(y.Tooltip,{placement:"bottom",title:"위치변경",zIndex:2100,children:s.jsx(y.Button,{icon:s.jsx(pe.SettingOutlined,{}),type:"text",size:"middle"})})},"shotSetting"))}return n&&S.push(s.jsx(y.Tooltip,{placement:"bottom",title:l?"배경 보기":"배경 숨기기",zIndex:2100,children:s.jsx(y.Button,{icon:s.jsx(pe.EyeOutlined,{}),type:"text",size:"middle",onClick:()=>c(!l)})},"eyes")),a.extra&&S.push(s.jsx("div",{style:{margin:"0 8px"},children:a.extra},"extra")),r&&S.push(s.jsx(y.Tooltip,{placement:"bottom",title:"닫기",zIndex:2100,children:s.jsx(y.Button,{icon:s.jsx(pe.CloseOutlined,{}),onClick:a.onClose,type:"text",size:"middle"})},"close")),S};return s.jsx(y.Drawer,{className:"main-drawer",footer:!0,...a,placement:u,styles:w,maskClosable:!1,closable:!1,mask:l,extra:s.jsx(y.Space,{size:"small",align:"center",children:p()}),afterOpenChange:S=>{S||(c(!0),f(a.placement)),a.afterOpenChange?.(S)},destroyOnHidden:!0,children:t?s.jsxs(dr,{type:"vertical",children:[s.jsxs(y.Flex,{justify:"space-between",align:"center",style:{width:"100%"},children:[s.jsx("div",{children:t.title}),s.jsx(y.Flex,{gap:2,children:t.extra})]}),s.jsx(Co,{...t.searchBox}),s.jsx(y.Divider,{}),e]}):e})},cr=({width:e="100%",height:t="100%",boxAlign:r,display:n="show",overflow:o,style:i,className:a,border:l=!0,children:c,ref:u})=>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:u,children:c});let $i=null;try{import("quill-image-resize-module-react").then(e=>{$i=e.default,ji.Quill.register("modules/imageResize",$i)}).catch(e=>{console.warn("quill-image-resize-module-react 로드 실패:",e)})}catch(e){console.warn("quill-image-resize-module-react 로드 실패:",e)}const so=e=>Wu.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}),lo=v.forwardRef(({border:e=!0,editorProps:t,value:r,defaultValue:n,onChange:o,onBlur:i,disabled:a},l)=>{const{isEditing:c=!0,title:u,containerHeight:f="100%"}=t||{},d=v.useRef(null),g=v.useMemo(()=>{const x={toolbar:c?[[{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 $i?{...x,imageResize:{parchment:ji.Quill.import("parchment"),modules:["Resize","DisplaySize","Toolbar"],displayStyles:{backgroundColor:"black",border:"none",color:"white"}}}:x},[c]),C=v.useMemo(()=>["header","bold","italic","underline","strike","color","background","list","bullet","indent","align","link","image","width","height"],[]),b=r!==void 0,[w,p]=v.useState(n??""),S=b?r:w,m=v.useCallback((x,R,$,L)=>{const B=so(x??"");b||p(B),o?.(B,R,$,L)},[b,o]),j=`calc(100% - ${c?"42px":"0px"} - ${u?"40px":"0px"})`;return v.useImperativeHandle(l,()=>({getHTML:()=>S??"",getText:()=>d.current?.getEditor()?.getText()??"",insertHTML:x=>{const R=d.current?.getEditor();if(!R)return;const $=R.getSelection(!0),L=so(x??"");R.clipboard.dangerouslyPasteHTML($?$.index:R.getLength(),L)},insertImage:(x,R)=>{const $=d.current?.getEditor();if(!$)return;const L=$.getSelection(!0),B=typeof x=="string"?x:"";$.insertEmbed(L?L.index:$.getLength(),"image",B,"user")},getQuill:()=>d.current?.getEditor?.()??null})),s.jsxs(cr,{border:e,style:{opacity:a?.6:1,pointerEvents:a?"none":"auto",height:typeof f=="number"?`${f}px`:f},children:[u&&s.jsx(xo,{...u,paddingBottom:10}),s.jsx(ji,{ref:d,readOnly:!c,value:S,onChange:m,onBlur:i,modules:g,formats:C,style:{width:"100%",height:j}},c?"snow":"bubble")]})}),ud=(e,t,r,n)=>so(e??""),dd=({itemProps:e,...t})=>{const{rules:r,shouldUpdate:n,dependencies:o,noStyle:i,...a}=e;return s.jsx(y.Form.Item,{valuePropName:"value",trigger:"onChange",getValueFromEvent:ud,normalize:l=>l??"",rules:r,shouldUpdate:n,dependencies:o,noStyle:i,...a,children:s.jsx(lo,{...t})})},fd=e=>{const{itemProps:t,onChange:r,editorProps:n,...o}=e,i=y.Form.useFormInstance();if(t?.name!=null){const a=t.name;return s.jsxs(s.Fragment,{children:[s.jsx(y.Form.Item,{hidden:!0,name:a,rules:t.rules,normalize:l=>l??"",children:s.jsx("input",{type:"hidden"})}),s.jsx(lo,{...o,editorProps:n,value:i.getFieldValue(a)??"",onChange:(l,c,u,f)=>{const d=so(l??"");i.setFieldValue(a,d),r?.(d,c,u,f)},onBlur:()=>{i.validateFields([a]).catch(()=>{})}})]})}return s.jsx(lo,{...e})},Ti=Object.assign(fd,{FormItem:dd,Core:lo});var br={},Qa;function hd(){if(Qa)return br;Qa=1;var e=ao;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 gd=hd();const wo=v.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},u)=>{const[f,d]=v.useState(r),[g,C]=v.useState(1),[b,w]=v.useState(r),[p,S]=v.useState(0);v.useEffect(()=>{d(r)},[r]),v.useEffect(()=>{d(r)},[]),v.useImperativeHandle(u,()=>({currentPage:g,pageSize:b,totalData:p,totalPages:Math.ceil(p/b),setPage:I=>{C(I),c?.(I,b)},setPageSize:I=>{w(I),C(1),c?.(1,I)},setTotalData:I=>{S(I)},reset:()=>{C(1),w(r),S(0)}}),[g,b,p,c,r]);const m=l==="client",O=m?(e||0)+1:g,T=m?(t||0)>0:p>0,x=m?T?Math.ceil((n||0)/f):0:Math.ceil(p/b),R=m?T&&n||0:p,$=Math.min(O,x||1),L=`${f}-${x}-${$}`,B=I=>{m?o?.(I-1):(C(I),c?.(I,b))},q=I=>{if(m){d(I);try{a?.current?.gridView?(a.current.gridView.setPaging(!0,I),a.current.gridView.setPage(0)):o?.(0)}catch(N){console.warn("페이지 사이즈 변경 중 오류:",N),o?.(0)}}else w(I),C(1),c?.(1,I)};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:m?f:b,onChange:I=>q(Number(I.target.value)),disabled:!T,style:{padding:"4px 8px",border:"1px solid #d9d9d9",borderRadius:"4px",fontSize:"12px",opacity:T?1:.5},children:i.map(I=>s.jsxs("option",{value:I,children:[I,"개"]},I))}),s.jsxs("span",{style:{fontSize:"12px",color:"#666",opacity:T?1:.5},children:["/ 총 ",R,"개"]})]}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[s.jsx(y.Button,{onClick:()=>B(1),disabled:!T||$===1,style:{width:"30px",height:"24px",background:!T||$===1?"#f5f5f5":"white",cursor:!T||$===1?"not-allowed":"pointer",opacity:T?1:.5},icon:s.jsx(pe.DoubleLeftOutlined,{})}),s.jsx(y.Button,{onClick:()=>B($-1),disabled:!T||$===1,style:{width:"30px",height:"24px",background:!T||$===1?"#f5f5f5":"white",cursor:!T||$===1?"not-allowed":"pointer",opacity:T?1:.5},icon:s.jsx(pe.LeftOutlined,{})}),s.jsx("div",{children:(()=>{if(!T||x===0)return s.jsx(y.Button,{disabled:!0,style:{width:"30px",height:"24px"},children:"1"});const I=5;let N=1,F=Math.min(I,x);$>3&&x>I&&(N=Math.max(1,$-2),F=Math.min(x,N+I-1),F===x&&(N=Math.max(1,F-I+1)));const P=[];for(let M=N;M<=F;M++)P.push(s.jsx(y.Button,{onClick:()=>B(M),style:{width:"30px",height:"24px",background:$===M?"#1890ff":"white",color:$===M?"white":"black",cursor:"pointer"},children:M},M));return P})()},L),s.jsx(y.Button,{onClick:()=>B($+1),disabled:!T||$>=x,style:{width:"30px",height:"24px",background:!T||$>=x?"#f5f5f5":"white",cursor:!T||$>=x?"not-allowed":"pointer",opacity:T?1:.5},icon:s.jsx(pe.RightOutlined,{})}),s.jsx(y.Button,{onClick:()=>B(x),disabled:!T||$>=x,style:{width:"30px",height:"24px",background:!T||$>=x?"#f5f5f5":"white",cursor:!T||$>=x?"not-allowed":"pointer",opacity:T?1:.5},icon:s.jsx(pe.DoubleRightOutlined,{})})]})]})});wo.displayName="BwgPagination";const pd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZZDLDcJADETHUe7QQVJC6AAqACoAKkCcESh8JI60kBKgg3TA0kE6gAISzHgj0BJ8sWw/j2cXCCI7aD446g2diDp1aWyWaz9sxmHhNlJSyUCDnlQeQpEKm5UCDwgqvHBnTji4MvcEKGw3FsVFDeCmCCbMYwIpQY4wMnX5mj5pKrXfTFSxc1sp/o03yLlZaoSpRFhme53/QF4FmNl9txbH8wuC5893tEo1PZivBs6/sgVXBlv9BpvVRX62Og6eAAAAAElFTkSuQmCC",md="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZVDbDcIwDHSiqL90AzoCI5S/fvQBEwATIDYoE7BCRwjqAtmAsEE3gAlqzlFBKbXknJ2cL5cQRcF13SIf9Bd63mmHdcN5nsbbJm6UtY6bxlGaCunNZZmTUpniqhpQvIhZ8AlcI+9QXYHYIb3BgQ0ETAJ36BvUmQiDuBV19TNdFBkliUyK0lX1fbc0bkyL1WF6D7UzbBxnpKCi9YHG0UPeoz6BePt+h55UxMMA9NMrPa68BDLiAxmcQh0cAM62AAAAAElFTkSuQmCC",vd=[{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"}],bd=[{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"}],yd=({children:e})=>{const[t,r]=v.useState(!1),[n,o]=v.useState(null);return t?s.jsx("div",{style:{padding:"20px",border:"1px solid #ff4d4f",borderRadius:"6px",backgroundColor:"#fff2f0",margin:"10px"},children:s.jsx(y.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(y.Button,{type:"primary",size:"small",style:{marginTop:"8px"},onClick:()=>{r(!1),o(null),window.location.reload()},children:"다시 시도"})]}),type:"error",showIcon:!0})}):s.jsx(xd,{onError:i=>{console.error("BwgGrid 에러:",i),o(i),r(!0)},children:e})};class xd extends v.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 Ol=v.forwardRef(({type:e="nrml",gridDivStyle:t,gridDivClassName:r,gridColumns:n,gridOptions:o,gridEvents:i,bindRef:a,gridContext:l,renderers:c,gridInitCallback:u},f)=>{const d=v.useRef(null),g=v.useRef(new Map),C=(E,k,z,D)=>{let A=[],G=[];const _="treeNode";for(let V in E){let U=E[V];A[U[z]]=E[V];let Z=A[U[k]];if(Z==null||Z=="-"){G.push(U);continue}Z[_]==null&&(Z[_]=[]),Z[_].push(U)}return G},b=v.useCallback(E=>{const k=D=>{const A=[];return D.forEach(G=>{G.children&&G.children.length>0?A.push(...k(G.children)):A.push(G)}),A};return k(E).map(D=>({fieldName:D.fieldName,dataType:D.dataType||"text"}))},[]),w=v.useCallback(E=>{const k=D=>{const A=[];return D.forEach(G=>{G.children&&G.children.length>0?A.push(...k(G.children)):A.push(G)}),A};return k(E).map(D=>({...D,header:{template:D.required?`<img src='${md}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:D.editable?`<img src='${pd}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:"${headerText}",values:{headerText:D.header?.text??""},text:D.header?.text||""},styleName:D.dataType==="number"?"right":D.styleName||"center"}))},[]);v.useImperativeHandle(f,()=>({addAllData(E,k){const z=d.current?.gridView.getCurrent().dataRow;if(d.current?.dataProvider instanceof Ke.LocalDataProvider){d.current.dataProvider.clearRows();try{d.current?.gridView.showLoading(),d.current.dataProvider.setRows(E)}catch(D){console.error("fillJsonData 오류:",D)}finally{d.current?.gridView.closeLoading()}}if(d.current?.dataProvider instanceof Ke.LocalTreeDataProvider){if(d.current.dataProvider.clearRows(),k?.treeOption?.dataField==null||k?.treeOption?.parentField==null)return;const D={rows:"treeNode"};try{d.current?.gridView.showLoading();let A=C(E,k.treeOption?.parentField,k.treeOption?.dataField);d.current.dataProvider.fillJsonData({treeNode:A},D),k.treeOption.isExpand&&d.current.gridView?.expandAll()}catch(A){console.error("fillJsonData 오류:",A)}finally{d.current?.gridView.closeLoading()}}k?.isCurrent?d.current?.gridView.setCurrent({dataRow:z}):d.current?.gridView.setCurrent({dataRow:0})},getGridInstance:()=>d.current,getCurrentRow:()=>d.current?.gridView.getCurrent().dataRow??-1,getCurrentIndex:()=>d.current?.gridView.getCurrent().itemIndex??-1,gridExcelDown(E){d.current?.gridView.exportGrid({type:"excel",target:"local",allItems:!1,lookupDisplay:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!E?.indenting,header:"default",footer:"default",sheetName:"",fileName:E?.fileName||"sample.xlsx",...E})},getGridSaveData:()=>{const E=d.current?.dataProvider?.getAllStateRows();if(E===void 0)return[{}];let k=[];if(E.created!==void 0&&E.created.length>0)for(const z in E.created){let D=d.current?.dataProvider?.getJsonRow(E.created[z]);D={...D,iudFlag:"I"},k.push(D)}if(E.updated!==void 0&&E.updated.length>0)for(const z in E.updated){let D=d.current?.dataProvider?.getJsonRow(E.updated[z]);D={...D,iudFlag:"U"},k.push(D)}if(E.deleted!==void 0&&E.deleted.length>0)for(const z in E.deleted){let D=d.current?.dataProvider?.getJsonRow(E.deleted[z]);D={...D,iudFlag:"D"},k.push(D)}return k},deleteGridData:()=>{d?.current?.gridView?.getCheckedItems()?.map(k=>{let z=d?.current?.gridView?.getDataRow(k)??-1;const D=d?.current?.dataProvider?.getRowState(z);D==Ke.RowState.DELETED?(d?.current?.dataProvider?.setRowState(z,g.current.get(k)??Ke.RowState.NONE),g.current.delete(k)):D==Ke.RowState.CREATED?d?.current?.dataProvider?.setRowState(z,Ke.RowState.CREATE_AND_DELETED):D==Ke.RowState.CREATE_AND_DELETED?d?.current?.dataProvider?.setRowState(z,Ke.RowState.CREATED):(g.current.set(k,D??Ke.RowState.NONE),d?.current?.dataProvider?.setRowState(z,Ke.RowState.DELETED)),d?.current?.gridView?.checkItem(k,!1)})},_oriRowState:[{}],dp:d.current?.dataProvider??null,vw:d.current?.gridView??null}));const p=v.useCallback((E,k,z)=>{if(a!==void 0&&z>=0){let D=E.getDataSource().getJsonRow(z);a?.current?.setFieldsValue(D)}else a!==void 0&&z<0&&a?.current?.resetFields();E.setCurrent({dataRow:0}),i?.onCurrentRowChanged&&i?.onCurrentRowChanged(E,k,z)},[a,i]),S=v.useCallback((E,k,z)=>{const D=k.fieldName??"";a?.current?.getFieldInstance(D)&&a?.current.setFieldValue(D,z),i?.onEditChange&&i?.onEditChange(E,k,z)},[a,i]),m=v.useCallback((E,k,z)=>{const D=E.getOrgFieldName(z),A=E.getValue(k,z);a?.current?.setFieldValue(D,A)},[a]),O=v.useCallback((E,k,z,D)=>{const A=E.getColumn(D).name??"",G=E.getValue(k,D);a?.current?.getFieldInstance(A)&&a?.current.setFieldValue(A,G),i?.onCellEdited&&i?.onCellEdited(E,k,z,D)},[a,i]),T=v.useCallback((E,k,z,D)=>{if(typeof k.dataRow=="number"&&k.dataRow!=-1){var A=E.getDataSource().getRowState(k.dataRow);if(A=="deleted"||A=="createAndDeleted")return!1}return i?.onShowEditor!=null&&i?.onShowEditor(E,k,z,D),!0},[a,i]),j=v.useCallback(E=>{if(!d.current)return;const k=d.current.gridView,z=k.getDataSource();if(o?.container?.page){const D=k.getPage(),A=k.getPageCount(),G=z.getRowCount();J({currentPage:D,totalPages:A,totalData:G})}},[o?.container?.page]),x=v.useCallback(()=>{if(!d.current)return;const E=d.current.gridView,k=E.getDataSource(),z=["onKeyDown"],D=["onRowInserted"];Object.keys(i??{}).map(A=>{z.includes(A)?E[A+"Add"]=i?.[A]:E[A]=i?.[A],D.includes(A)?k[A+"Add"]=i?.[A]:k[A]=i?.[A]}),k instanceof Ke.LocalDataProvider&&(k.onRowInserted=(A,G)=>{G<0||(setTimeout(function(){E?.setCurrent({dataRow:G})},1),A.onRowInsertedAdd!==void 0&&A.onRowInsertedAdd(A,G))}),E.onKeyDown=function(A,G){if(G.code=="Space"){let _=A.getSelectedItems(!0);for(const V in _)A.isCheckable(_[V])&&(A.isCheckedItem(_[V])?A.checkItem(_[V],!1,!1):A.checkItem(_[V],!0,!1))}return A.onKeyDownAdd!==void 0&&A.onKeyDownAdd(A,G),!0},d.current.gridView.onCurrentRowChanged=p,d.current.gridView.onEditChange=S,d.current.gridView.getDataSource().onValueChanged=m,d.current.gridView.onCellEdited=O,d.current.gridView.onShowEditor=T,d.current.gridView.onDataLoadComplated=j},[p,S,m,O,T,j]),R=v.useCallback(E=>{if(E){try{E.gridView.setSortingOptions({enabled:!0}),E.gridView.sortMode=Ke.SortMode.EXPLICIT,E.gridView.editorOptions.viewGridInside=!0,E.gridView instanceof Ke.TreeView&&E.gridView.setTreeOptions({expandWhenSetData:Ke.ExpandWhenSetData.REMAIN_AND_EXPAND,expanderIconStyle:Ke.TreeExpanderIconStyle.SQUARE,iconVisible:!1,lineVisible:!0}),E.gridView.setDisplayOptions({showEmptyMessage:!0,emptyMessage:"조회된 데이터가 존재하지 않습니다.",useFocusClass:!0,minRowHeight:o?.display?.minRowHeight||43,maxRowHeight:o?.display?.maxRowHeight||100,rowHeight:o?.display?.rowHeight||43,rowChangeDelay:o?.display?.rowChangeDelay||0,selectionStyle:o?.display?.selectionStyle||Ke.SelectionStyle.ROWS,fitStyle:o?.display?.fitStyle||Ke.GridFitStyle.FILL,useAlternateRowStyle:o?.display?.useAlternateRowStyle||!1}),E.gridView.setEditOptions({commitWhenExitLast:!0,columnEditableFirst:!1,commitByCell:!0,commitWhenLeave:!0,crossWhenExitLast:!0,confirmWhenDelete:!1,deletable:!1,revertable:!1,showOnlyValidationMessage:!0,editable:o?.edit?.editable||!1,validateOnEdited:o?.edit?.validateOnEdited||!1}),E.gridView.setCopyOptions({singleMode:o?.copy?.singleMode||!1}),E.gridView.setPasteOptions({selectBlockPaste:!0,checkReadOnly:!0,throwValidationError:!1}),E.gridView.header.height=o?.header?.height||43,E.gridView.header.styleName=o?.header?.styleName||"bwgGridHeader",o?.container?.radio?E.gridView.setCheckBar({exclusive:o?.container?.radio||!1}):E.gridView.setCheckBar({visible:o?.container?.check||!1,showAll:o?.container?.checkAll||!1}),E.gridView.setStateBar({visible:o?.container?.state||!1}),E.gridView.rowIndicator.visible=o?.container?.indicator||!1,E.gridView instanceof Ke.GridView&&(E.gridView.groupPanel.visible=o?.container?.panel||!1),E.gridView.setFooters({visible:o?.container?.footer||!1}),E.gridView.setHeader({visible:o?.container?.header||!0}),E.gridView.formatOptions.numberFormat="#,##0"}catch(k){console.log("그리드 옵션 설정 중 오류:",k)}try{E.gridView instanceof Ke.TreeView?E.gridView.setContextMenu(bd):E.gridView.setContextMenu(vd),E.gridView.onContextMenuItemClicked=function(k,z,D){if(!(!D||!D.column)){if(z.tag=="excel")N(k,{isTitle:!1},l?.excel);else if(z.tag=="showIndentExcel")N(k,{isTitle:!1,treeBlank:!0},l?.excel);else if(z.tag=="withTitleExcel")N(k,{isTitle:!0,treeBlank:!1},l?.excel);else if(z.tag=="filter")F(k,z);else if(z.tag=="fixedCol"){const G=k.getDataSource().getFieldIndex(D.column);k.setFixedOptions({colCount:G})}else if(z.tag=="fixedRow")k.setFixedOptions({rowCount:(D.itemIndex||0)+1});else if(z.tag=="fixedCancel")k.setFixedOptions({colCount:0,rowCount:0});else if(z.tag=="hide")k.setColumnProperty(D.column,"visible",!1),k._hideCols[k._hideCols.length]=D.column;else if(z.tag=="hideClear")for(var A=0;A<k._hideCols.length;A++)k.setColumnProperty(k._hideCols[A],"visible",!0)}}}catch(k){console.log("컨텍스트 설정 중 오류:",k)}}},[o]),$=E=>{if(!(!c||c.length===0))try{c.forEach(k=>{const{name:z,renderer:D}=k;if(z&&D){const A=typeof D=="function"?new D:D;E.gridView.registerCustomRenderer(z,A)}})}catch(k){console.error("커스텀 렌더러 초기화 중 오류:",k)}},L=E=>{E.onPageChanged=(k,z)=>{J(D=>({...D,currentPage:z}))},E.onPageCountChanged=(k,z)=>{J(D=>({...D,totalPages:z}))}},B=E=>{d.current?.gridView&&d.current.gridView.setPage(E)},q=E=>{if(o?.layout?.colspan&&o.layout.colspan.length>0&&o?.layout?.colspan.forEach(k=>{const z=E.gridView.layoutByColumn(k.fieldName);if(z){const D=k.span;z.spanCallback=function(A,G,_){return D}}}),n&&n.length>0&&n.some(z=>z.children&&z.children.length>0))try{(()=>{const D=JSON.parse(JSON.stringify(n)),A=[],G=_=>{const V=[];return _.children.map(U=>{if(U.children&&U.children.length>0){const Z=G(U),ne=U.header?.text||U.fieldName,oe=E.gridView.getColumnProperty(U.fieldName,"header");delete U.children,delete U.header;let ye={name:U.fieldName,header:{text:oe?.text||ne,template:oe?.template,values:oe?.values,visible:oe?.visible??!0},items:Z,...U};V.push(ye)}else V.push(U.fieldName)}),V};D.map(_=>{if(_.children&&_.children.length>0){const V=G(_),U=_.header?.text||_.fieldName,Z=_.header?.visible??!0,ne=E.gridView.getColumnProperty(_.fieldName,"header");delete _.children,delete _.header;const oe={name:_.fieldName,header:{text:ne?.text||U,template:ne?.template,values:ne?.values,visible:ne?.visible||Z},items:V,..._};A.push(oe)}else A.push(_.fieldName)}),console.log("Final Layout!!",A),E.gridView.setColumnLayout(A)})()}catch(z){console.error("컬럼 레이아웃 설정 오류:",z)}},I=()=>{if(d.current){if(e==="nrml"){const E=d.current;if(R(E),$(E),n&&n.length>0){const k=b(n),z=w(n);E.gridView.getDataSource().setFields(k),E.gridView.setColumns(z)}if(q(E),o?.container?.page){const k=o?.pagingOption?.pageSize||10;E.gridView.setPaging(!0,k),L(E.gridView)}}else{const E=d.current;if(R(E),$(E),n&&n.length>0){const k=b(n),z=w(n);E.gridView.getDataSource().setFields(k),E.gridView.setColumns(z)}q(d.current)}setTimeout(()=>{if(u){const E=typeof f=="object"&&f!==null?f.current:null;u(E)}},0)}},N=(E,k,z)=>{const D=E.getDataSource();let A=z?.footer==null?"default":z.footer;D.getRowCount()<1&&(A="hidden");let G={type:"excel",target:"local",allItems:!1,lookupDisplay:!0,compatibility:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!k?.treeBlank,footer:A,sheetName:"",documentTitle:{},documentSubtitle:{},documentTail:{},fileName:z?.fileName||"sample.xlsx"};D instanceof Ke.LocalTreeDataProvider&&(G.indenting=!!k?.treeBlank),z?.isCellMerge==!0&&(G.separateRows=!1),Ve.isEmpty(z?.sheetName)==!1&&(G.sheetName=z?.sheetName),k?.isTitle&&(G.documentTitle={message:Ve.isSafeEmpty(z?.mainTitle,"No Title"),visible:!0,styleName:"documentStyle",spaceTop:1,spaceBottom:0,height:43},Ve.isEmpty(z?.subTitle)==!1&&(G.documentSubtitle={message:z?.subTitle,visible:!0,styleName:"center",height:20}),Ve.isEmpty(z?.tailTitle)==!1&&(G.documentTail={message:z?.tailTitle,visible:!0,styleName:"documentStyle"})),E.exportGrid(G)},F=(E,k)=>{const z=E.getDataSource(),D=z.getOrgFieldNames();if(k.checked)for(var A=0;A<D.length;A++){let _=[],V=z.getDistinctValues(D[A])??[];if(V.length==0)continue;let U=E.columnByName(D[A]);for(var G=0;G<V.length;G++){if(V[G]==null)continue;let Z=U.values!=null&&U.values.indexOf(V[G])!=-1?U?.labels?.[U.values.indexOf(V[G])]:V[G];Ve.isEmpty(Z)&&(Ve.isEmpty(V[G])?Z=" ":Z=V[G]);let ne="";V[G]==null?ne="value="+V[G]:ne="value='"+V[G]+"'",_.push({name:Z,criteria:ne})}E.setColumnFilters(D[A],_)}else for(var A=0;A<D.length;A++)E.clearColumnFilters(D[A]),E.activateAllColumnFilters(D[A],!1),E.clearColumnFilters(D[A])};v.useEffect(()=>{if(d.current&&d.current.gridView)if(e==="nrml"){const E=d.current;R(E)}else{const E=d.current;R(E)}},[e,o,R]),v.useEffect(()=>{!d.current||!n||n.length===0||I()},[n]),v.useEffect(()=>{d.current&&x()},[i,x]);const[P,M]=v.useState(!1),[Y,W]=v.useState(""),H=v.useRef(null),[X,J]=v.useState({currentPage:0,totalPages:0,totalData:0});v.useEffect(()=>{J({currentPage:0,totalPages:0,totalData:0})},[]),v.useEffect(()=>{P&&setTimeout(()=>{H.current?.focus?.()},0)},[P]),v.useEffect(()=>()=>{if(d.current)try{const E=d.current;E.gridView&&(E.gridView.onDataLoadComplated=void 0,E.gridView.onCurrentRowChanged=void 0,E.gridView.onCellClicked=void 0,E.gridView.onCellDblClicked=void 0,E.gridView.onEditRowChanged=void 0,E.gridView.onItemChecked=void 0,E.gridView.onItemAllChecked=void 0,E.gridView.onColumnCheckedChanged=void 0,E.gridView.onCellButtonClicked=void 0,E.gridView.onEditChange=void 0,E.gridView.onCellEdited=void 0,E.gridView.onKeyUp=void 0,E.gridView.onKeyDown=void 0,E.gridView.onWheel=void 0,E.gridView.onValidateColumn=void 0,E.gridView.onValidateRow=void 0,E.gridView.onValidationFail=void 0,E.gridView.onRowInserting=void 0,E.gridView.onCellItemClicked=void 0,E.gridView.onShowEditor=void 0,E.gridView.getDataSource()&&(E.gridView.getDataSource().clearRows(),E.gridView.getDataSource().setFields([])),E.gridView.getDataSource().clearRows())}catch(E){console.warn("⚠️ BwgGrid cleanup error:",E)}},[]);const K=v.useCallback(E=>{te(E)},[]),te=v.useCallback(E=>{const k=d.current?.gridView;if(k?.isFiltered()){console.log("EE:: [그리드 Filtering 으로 인한 오류] 그리드 내 Filter를 해제 후 진행해 주십시오.");return}if(k?.commit(),Ve.isEmpty(E))return;const z=k?.getCurrent().itemIndex??-1;if(z<0)return;const D={value:E,startIndex:z+1,wrap:!0,caseSensitive:!1,partialMatch:!0},A=k?.searchCell(D);k?.setCurrent(A)},[]),se=v.useCallback(E=>{E.key==="Escape"&&(E.preventDefault(),M(!1))},[]),ge=v.useCallback(E=>{E.ctrlKey&&E.code==="KeyF"&&(E.preventDefault(),W(""),M(!P))},[P]),ce={searchRow:K,searchEnter:te,handleCloseKeyword:se,handleSearch:ge},ve=v.useMemo(()=>({...t,position:"relative",width:t?.width||"100%",height:t?.height||"100%"}),[t]);return s.jsxs(yd,{children:[s.jsxs("div",{style:ve,className:r,onKeyDown:E=>ce.handleSearch(E),children:[P&&s.jsx("div",{className:"grid-search-box",children:s.jsxs(y.Flex,{gap:3,children:[s.jsx(y.ConfigProvider,{theme:{components:{Button:{controlHeight:32},Input:{controlHeight:32}}},children:s.jsxs(y.Space.Compact,{children:[s.jsx(y.Button,{icon:s.jsx(pe.SearchOutlined,{})}),s.jsx(y.Input,{ref:H,value:Y,name:"srchField",autoComplete:"off",onKeyUp:E=>ce.handleCloseKeyword(E),onChange:E=>W(E.target.value),onPressEnter:E=>ce.searchEnter(E)})]})}),s.jsx(y.Button,{variant:"solid",icon:s.jsx(pe.CloseOutlined,{}),onClick:()=>M(!1)})]})}),e==="nrml"?s.jsx(ka.RealGridReact,{ref:d,autoGenerateField:!0,onInitialized:I}):s.jsx(ka.RealTreeReact,{ref:d,autoGenerateField:!1,onInitialized:I})]}),o?.container?.page&&s.jsx(wo,{currentPage:X.currentPage,totalPages:X.totalPages,pageSize:o?.pagingOption?.pageSize,totalData:X.totalData,onPageChange:B,pageSizeOptions:o?.pagingOption?.pageSizeOptions,gridRef:d})]})}),Jn=e=>({initContent(t){this._root=gd.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{}}}),Cd=v.memo(({title:e,border:t,children:r,titleChildren:n})=>{const o=v.useMemo(()=>({components:{Form:{labelColor:"#9A9A9A"},Select:{colorTextDisabled:"#000"}}}),[]);return s.jsxs(dr,{type:"vertical",children:[s.jsx(xo,{title:e,icons:{type:"antd",icon:"InfoCircleTwoTone"},children:n}),s.jsx(cr,{border:!1,children:s.jsx(y.ConfigProvider,{theme:o,children:r})})]})}),dr=({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}),Za=(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}},wd=({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(y.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))}),Sd=({popup:e,popupEvent:t,onClose:r,children:n})=>{const o=v.useRef(null),i=e?.popupTitle||"팝업",a=e?.width||800,l=e?.height||600,c=e?.buttonList?.map((x,R)=>({key:x.btnId||`btn_${R}`,text:x.btnNm,type:x.btnId==="CLOSE"?"default":"primary",disabled:x.enblYn!=="Y",danger:!1}))||[],f=c.some(x=>x.key==="CLOSE"||x.key==="close")?c:[...c,{key:"CLOSE",text:"닫기",type:"default",disabled:!1,danger:!1}],[d,g]=v.useState(a),[C,b]=v.useState(l),w=v.useMemo(()=>{const x=Math.max(0,(window.innerWidth-a)/2),R=Math.max(0,(window.innerHeight-l)/2);return{x,y:R}},[a,l]),[p,S]=v.useState(w),m=(x,R)=>{if(x==="CLOSE"||x==="close"){e?.close?.()||r?.();return}t&&t[x]?t[x]():e?.close?.()||r?.()},O=(x,R)=>{const $=Za({x:R.x,y:R.y},{width:d,height:C});S($)},T=(x,R,$,L,B)=>{const q={width:parseInt($.style.width,10),height:parseInt($.style.height,10)},I=Za(B,q);g(q.width),b(q.height),S(I)},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(wl.Rnd,{className:"bwg-popup",size:{width:d,height:C},position:p,bounds:"window",minWidth:400,minHeight:300,onDragStop:O,onResizeStop:T,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(ca,{getPopupContainer:j,children:s.jsx(dr,{type:"vertical",children:s.jsx(y.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(wd,{buttons:f,popupData:e,onButtonClick:m}),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"}})]})]})},Ed=({children:e,...t})=>s.jsx(y.Row,{...t,className:"bwg-row",children:e}),Rd=({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})}),jd=({rowKey:e="id",columns:t,dataSource:r,loading:n=!1,rowSelection:o,size:i="middle",pagination:a=!1,...l})=>s.jsx(y.Table,{rowKey:e,columns:t,dataSource:r,loading:n,rowSelection:o,size:i,pagination:a,bordered:!0,scroll:{x:"max-content"},locale:{emptyText:"데이터가 없습니다."},...l}),$d=e=>{const{type:t="card",animated:r=!0,...n}=e;return s.jsx(y.Tabs,{type:t,animated:r,...n})};function Oi(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 Td(e){if(Array.isArray(e))return Oi(e)}function _l(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ua(e,t){if(e){if(typeof e=="string")return Oi(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)?Oi(e,t):void 0}}function Od(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1
+ "use strict";var Du=Object.create;var Ma=Object.defineProperty;var Bu=Object.getOwnPropertyDescriptor;var zu=Object.getOwnPropertyNames;var Lu=Object.getPrototypeOf,Fu=Object.prototype.hasOwnProperty;var Hu=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of zu(t))!Fu.call(e,o)&&o!==r&&Ma(e,o,{get:()=>t[o],enumerable:!(n=Bu(t,o))||n.enumerable});return e};var Vu=(e,t,r)=>(r=e!=null?Du(Lu(e)):{},Hu(t||!e||!e.__esModule?Ma(r,"default",{value:e,enumerable:!0}):r,e));const Ve=require("../utils/index.cjs"),ct=require("../stores/index.cjs"),s=require("react/jsx-runtime"),pe=require("@ant-design/icons"),y=require("antd"),v=require("react"),Mr=require("../provider/index.cjs"),Wu=require("dompurify"),ji=require("react-quill"),ao=require("react-dom"),Ke=require("realgrid"),ka=require("realgrid-react"),wl=require("react-rnd"),qu=require("dayjs"),Sl=require("../components/layout/index.cjs"),Pe=require("../components/core/index.cjs"),Aa=require("react-router-dom");function El(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 nn=El(pe),h=El(v);var Uu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ku(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 Gu=({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:u}=ct.useUserStore(),[f,d]=v.useState([]),[g,C]=v.useState(!0),[b,w]=v.useState(null),[p,S]=v.useState({}),m=async()=>{try{C(!0),w(null),console.log("@@ 커스텀버튼그룹 영역 조회시작",e,t);const j=await Ve.callService(c,{userId:u?.userId,crprCd:u?.crprCd,grpId:e.toUpperCase(),menuId:t});if(console.log("@@ 커스텀버튼그룹 영역 조회결과",j),j?.data&&Array.isArray(j.data)){const x=j.data.sort((R,$)=>R.btnSq-$.btnSq);d(x)}else d([])}catch(j){console.error("버튼 권한 조회 실패:",j),w("버튼 권한을 조회하는 중 오류가 발생했습니다."),d([])}finally{C(!1)}};v.useEffect(()=>{m()},[e,t]);const O=async(j,x)=>{S(R=>({...R,[j]:{loading:!0}}));try{const R=r?.[j];R?await R():console.warn(`버튼 이벤트 핸들러를 찾을 수 없습니다: ${j}`),l&&l(j,x,e)}catch(R){console.error("버튼 이벤트 실행 실패:",R),y.message.error("작업 중 오류가 발생했습니다.")}finally{S(R=>({...R,[j]:{loading:!1}}))}},T=j=>{const x=p[j.btnId]||{loading:!1};return s.jsxs(y.Button,{size:o,loading:x.loading,onClick:()=>O(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"&&nn[j.iconVal]&&v.createElement(nn[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(y.Space,{direction:n==="vertical"?"vertical":"horizontal",size:o,children:s.jsx(y.Button,{loading:!0,size:o,children:"권한 조회 중..."})})}):b?s.jsx("div",{className:`bwg-button-group bwg-button-group-${n} ${a||""}`,style:i,children:s.jsx(y.Alert,{message:"권한 오류",description:b,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(y.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(y.Flex,{gap:3,children:f.map(T)})})},Yu=({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),u=v.useMemo(()=>{const C=c[0];if(!C||C.length===0)return{totalCols:0,baseWidth:0};let b=0;const w=[];C.forEach(S=>{const m=S,O=m?.props?.["data-colspan"]?parseInt(String(m.props["data-colspan"])):1;b+=O,w.push(O)});const p=b>0?100/b:0;return{totalCols:b,baseWidth:p,componentWidths:w}},[c]),f=(C,b,w)=>{const p=C,S=p?.props?.["data-colspan"]?parseInt(String(p.props["data-colspan"])):1;switch(t){case"equal":return 100/w;case"auto":return 100/w;case"grid":return 100/u.totalCols*S;case"flex":default:const m=u.baseWidth*S;return Math.max(n,Math.min(o,m))}},d=C=>{if(!C||typeof C!="object")return C;const b=C;if(!b.props)return C;const p={...b.props.style||{},width:"100%"};return v.cloneElement(b,{...b.props,style:p})},g=(C,b)=>{if(!C||C.length===0)return null;const w=C.length;return t==="grid"?s.jsx("div",{className:"erp-cmm-form",style:{display:"grid",gridTemplateColumns:`repeat(${u.totalCols}, 1fr)`,gap:`${r}px`,width:"100%"},children:C.map((p,S)=>{const m=p?.props?.["data-colspan"]?parseInt(String(p.props["data-colspan"])):1,O=d(p);return s.jsx("div",{style:{gridColumn:`span ${m}`,minWidth:`${n}px`},className:"form-component-wrapper",children:O},`row-${b}-col-${S}`)})},`row-${b}`):s.jsx(y.Flex,{gap:r,className:"erp-cmm-form",wrap:t==="auto"?"wrap":"nowrap",style:{width:"100%"},children:C.map((p,S)=>{const m=f(p,S,w),O=d(p),T=t==="flex"?{width:`${m}px`,minWidth:`${n}px`,maxWidth:`${o}px`,flexShrink:0}:{width:`${m}%`,minWidth:`${n}px`};return s.jsx("div",{style:T,className:"form-component-wrapper",children:O},`row-${b}-col-${S}`)})},`row-${b}`)};return s.jsx(y.Flex,{gap:"small",vertical:!0,style:i,className:a,children:c.map((C,b)=>g(C,b+1))})},Xu=({children:e,...t})=>s.jsx(y.Col,{...t,className:"bwg-col",children:e});var Ur={},Uo={exports:{}},Na;function yo(){return Na||(Na=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})(Uo)),Uo.exports}var Kr={},Da;function Qu(){if(Da)return Kr;Da=1,Object.defineProperty(Kr,"__esModule",{value:!0}),Kr.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 Kr.default=e,Kr}var Gr={},Yr={},Xr={},Ko={exports:{}},Go={exports:{}},Yo={exports:{}},Xo={exports:{}},Ba;function Rl(){return Ba||(Ba=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})(Xo)),Xo.exports}var Qo={exports:{}},za;function Zu(){return za||(za=1,(function(e){var t=Rl().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})(Qo)),Qo.exports}var La;function Ju(){return La||(La=1,(function(e){var t=Rl().default,r=Zu();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})(Yo)),Yo.exports}var Fa;function ed(){return Fa||(Fa=1,(function(e){var t=Ju();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})(Go)),Go.exports}var Ha;function td(){return Ha||(Ha=1,(function(e){var t=ed();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})(Ko)),Ko.exports}var Qr={},Va;function rd(){return Va||(Va=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.commonLocale=void 0,Qr.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),Qr}var Wa;function nd(){if(Wa)return Xr;Wa=1;var e=yo().default;Object.defineProperty(Xr,"__esModule",{value:!0}),Xr.default=void 0;var t=e(td()),r=rd(),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 Xr.default=n,Xr}var Zr={},qa;function jl(){if(qa)return Zr;qa=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.default=void 0;const e={placeholder:"시간 선택",rangePlaceholder:["시작 시간","종료 시간"]};return Zr.default=e,Zr}var Ua;function $l(){if(Ua)return Yr;Ua=1;var e=yo().default;Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.default=void 0;var t=e(nd()),r=e(jl());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 Yr.default=n,Yr}var Ka;function od(){if(Ka)return Gr;Ka=1;var e=yo().default;Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.default=void 0;var t=e($l());return Gr.default=t.default,Gr}var Ga;function id(){if(Ga)return Ur;Ga=1;var e=yo().default;Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.default=void 0;var t=e(Qu()),r=e(od()),n=e($l()),o=e(jl());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 Zo,Ya;function ad(){return Ya||(Ya=1,Zo=id()),Zo}var sd=ad();const Tl=bo(sd),ca=({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:y.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(y.ConfigProvider,{locale:Tl,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})},ld=({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(y.Breadcrumb,{separator:">",items:[{title:t?.prntInfo?.menuNm},{title:t?.viewLabel}]}),e]})})})},xo=({title:e,icons:t,tooltip:r,iconVisible:n=!0,paddingBottom:o=0,marginBottom:i=0,children:a})=>{const l=nn.AppstoreTwoTone;return v.useMemo(()=>t?.type==="antd"&&t.icon&&nn[t.icon]||l,[t?.type,t?.icon]),s.jsx(y.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(y.Typography.Title,{level:4,children:s.jsx("span",{children:e})}),r&&s.jsx(y.Tooltip,{title:r.title,placement:r.placement,children:s.jsx(nn.QuestionCircleTwoTone,{style:{marginLeft:5}})})]})}),s.jsx("div",{className:"bwg-title-box-right",children:s.jsx(y.Flex,{gap:6,children:a})})]})})},{Panel:Xa}=y.Collapse,Co=v.forwardRef(({reqRows:e,subRows:t,border:r=!1,labelDisplay:n,header:o},i)=>{const[a]=y.Form.useForm(),[l,c]=v.useState("1"),u=()=>n?{flex:n.md||n.lg||n.sm||"100px"}:{flex:"100px"};v.useImperativeHandle(i,()=>({getFormData:()=>a.getFieldsValue(),setFormData:d=>{a.setFieldsValue(d)},resetForm:()=>{a.resetFields()},validateForm:async()=>{try{return{success:!0,data:await a.validateFields()}}catch(d){return{success:!1,error:d}}}}));const f=()=>{c(d=>d.includes("subRows")?d.filter(g=>g!=="subRows"):[...d,"subRows"])};return s.jsxs("div",{style:r?{border:"1px solid #ddd",padding:"10px 12px",borderRadius:"8px",marginBottom:"10px"}:{},children:[o&&s.jsx(xo,{title:o.title,children:o.buttons}),s.jsx(y.Form,{form:a,layout:"inline",style:{width:"100%",paddingBottom:e||t?"10px":"0px"},labelCol:u(),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(y.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(y.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(y.ConfigProvider,{theme:{components:{Collapse:{}}},children:s.jsxs(y.Collapse,{activeKey:["reqRows",...l.includes("subRows")?["subRows"]:[]],onChange:c,className:"searchbox-collapse",bordered:!1,ghost:!0,children:[e&&s.jsx(Xa,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"disabled",children:e},"reqRows"),t&&s.jsx(Xa,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"icon",children:t},"subRows")]})})]})})]})}),cd=({children:e,showSearchBox:t,showCloseButton:r=!0,showEyesButton:n=!1,shotSettingButton:o=!0,styles:i,...a})=>{const[l,c]=v.useState(!0),[u,f]=v.useState(()=>{const S=a.placement;return S==="left"||S==="right"||S==="top"||S==="bottom"?S:"bottom"}),[d,g]=v.useState(!1),b=(S=>{const m={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(S){case"bottom":return{...m,wrapper:{...m.wrapper,borderRadius:"30px 30px 0 0"},content:{borderRadius:"30px 30px 0 0"},header:{...m.header,borderRadius:"30px 30px 0 0"}};case"top":return{...m,wrapper:{...m.wrapper,borderRadius:"0 0 30px 30px"},content:{borderRadius:"0 0 30px 30px"},header:{...m.header}};case"left":return{...m,wrapper:{...m.wrapper,borderRadius:"0 30px 0px 0"},content:{borderRadius:"0 30px 0px 0"},header:{...m.header,borderRadius:"0 30px 0 0"}};case"right":return{...m,wrapper:{...m.wrapper,borderRadius:"30px 0 0 0"},content:{borderRadius:"30px 0 0 0"},header:{...m.header,borderRadius:"30px 0 0 0"}};default:return m}})(u),w={wrapper:{...b?.wrapper,...i?.wrapper},content:{...b?.content,...i?.content},header:{...b?.header,...i?.header}},p=()=>{const S=[];if(o){const m=[{key:"top",label:"상단",icon:s.jsx(pe.CaretUpOutlined,{})},{key:"right",label:"우측",icon:s.jsx(pe.CaretRightOutlined,{})},{key:"bottom",label:"하단",icon:s.jsx(pe.CaretDownOutlined,{})},{key:"left",label:"좌측",icon:s.jsx(pe.CaretLeftOutlined,{})}],O=s.jsx(y.Space.Compact,{children:m.map(T=>s.jsx(y.Button,{type:u===T.key?"primary":"default",size:"small",onClick:()=>{f(T.key),g(!1)},icon:T.icon},T.key))});S.push(s.jsx(y.Popover,{content:O,trigger:"click",placement:"left",open:d,onOpenChange:g,children:s.jsx(y.Tooltip,{placement:"bottom",title:"위치변경",zIndex:2100,children:s.jsx(y.Button,{icon:s.jsx(pe.SettingOutlined,{}),type:"text",size:"middle"})})},"shotSetting"))}return n&&S.push(s.jsx(y.Tooltip,{placement:"bottom",title:l?"배경 보기":"배경 숨기기",zIndex:2100,children:s.jsx(y.Button,{icon:s.jsx(pe.EyeOutlined,{}),type:"text",size:"middle",onClick:()=>c(!l)})},"eyes")),a.extra&&S.push(s.jsx("div",{style:{margin:"0 8px"},children:a.extra},"extra")),r&&S.push(s.jsx(y.Tooltip,{placement:"bottom",title:"닫기",zIndex:2100,children:s.jsx(y.Button,{icon:s.jsx(pe.CloseOutlined,{}),onClick:a.onClose,type:"text",size:"middle"})},"close")),S};return s.jsx(y.Drawer,{className:"main-drawer",footer:!0,...a,placement:u,styles:w,maskClosable:!1,closable:!1,mask:l,extra:s.jsx(y.Space,{size:"small",align:"center",children:p()}),afterOpenChange:S=>{S||(c(!0),f(a.placement)),a.afterOpenChange?.(S)},destroyOnHidden:!0,children:t?s.jsxs(dr,{type:"vertical",children:[s.jsxs(y.Flex,{justify:"space-between",align:"center",style:{width:"100%"},children:[s.jsx("div",{children:t.title}),s.jsx(y.Flex,{gap:2,children:t.extra})]}),s.jsx(Co,{...t.searchBox}),s.jsx(y.Divider,{}),e]}):e})},cr=({width:e="100%",height:t="100%",boxAlign:r,display:n="show",overflow:o,style:i,className:a,border:l=!0,children:c,ref:u})=>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:u,children:c});let $i=null;try{import("quill-image-resize-module-react").then(e=>{$i=e.default,ji.Quill.register("modules/imageResize",$i)}).catch(e=>{console.warn("quill-image-resize-module-react 로드 실패:",e)})}catch(e){console.warn("quill-image-resize-module-react 로드 실패:",e)}const so=e=>Wu.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}),lo=v.forwardRef(({border:e=!0,editorProps:t,value:r,defaultValue:n,onChange:o,onBlur:i,disabled:a},l)=>{const{isEditing:c=!0,title:u,containerHeight:f="100%"}=t||{},d=v.useRef(null),g=v.useMemo(()=>{const x={toolbar:c?[[{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 $i?{...x,imageResize:{parchment:ji.Quill.import("parchment"),modules:["Resize","DisplaySize","Toolbar"],displayStyles:{backgroundColor:"black",border:"none",color:"white"}}}:x},[c]),C=v.useMemo(()=>["header","bold","italic","underline","strike","color","background","list","bullet","indent","align","link","image","width","height"],[]),b=r!==void 0,[w,p]=v.useState(n??""),S=b?r:w,m=v.useCallback((x,R,$,F)=>{const B=so(x??"");b||p(B),o?.(B,R,$,F)},[b,o]),j=`calc(100% - ${c?"42px":"0px"} - ${u?"40px":"0px"})`;return v.useImperativeHandle(l,()=>({getHTML:()=>S??"",getText:()=>d.current?.getEditor()?.getText()??"",insertHTML:x=>{const R=d.current?.getEditor();if(!R)return;const $=R.getSelection(!0),F=so(x??"");R.clipboard.dangerouslyPasteHTML($?$.index:R.getLength(),F)},insertImage:(x,R)=>{const $=d.current?.getEditor();if(!$)return;const F=$.getSelection(!0),B=typeof x=="string"?x:"";$.insertEmbed(F?F.index:$.getLength(),"image",B,"user")},getQuill:()=>d.current?.getEditor?.()??null})),s.jsxs(cr,{border:e,style:{opacity:a?.6:1,pointerEvents:a?"none":"auto",height:typeof f=="number"?`${f}px`:f},children:[u&&s.jsx(xo,{...u,paddingBottom:10}),s.jsx(ji,{ref:d,readOnly:!c,value:S,onChange:m,onBlur:i,modules:g,formats:C,style:{width:"100%",height:j}},c?"snow":"bubble")]})}),ud=(e,t,r,n)=>so(e??""),dd=({itemProps:e,...t})=>{const{rules:r,shouldUpdate:n,dependencies:o,noStyle:i,...a}=e;return s.jsx(y.Form.Item,{valuePropName:"value",trigger:"onChange",getValueFromEvent:ud,normalize:l=>l??"",rules:r,shouldUpdate:n,dependencies:o,noStyle:i,...a,children:s.jsx(lo,{...t})})},fd=e=>{const{itemProps:t,onChange:r,editorProps:n,...o}=e,i=y.Form.useFormInstance();if(t?.name!=null){const a=t.name;return s.jsxs(s.Fragment,{children:[s.jsx(y.Form.Item,{hidden:!0,name:a,rules:t.rules,normalize:l=>l??"",children:s.jsx("input",{type:"hidden"})}),s.jsx(lo,{...o,editorProps:n,value:i.getFieldValue(a)??"",onChange:(l,c,u,f)=>{const d=so(l??"");i.setFieldValue(a,d),r?.(d,c,u,f)},onBlur:()=>{i.validateFields([a]).catch(()=>{})}})]})}return s.jsx(lo,{...e})},Ti=Object.assign(fd,{FormItem:dd,Core:lo});var br={},Qa;function hd(){if(Qa)return br;Qa=1;var e=ao;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 gd=hd();const wo=v.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},u)=>{const[f,d]=v.useState(r),[g,C]=v.useState(1),[b,w]=v.useState(r),[p,S]=v.useState(0);v.useEffect(()=>{d(r)},[r]),v.useEffect(()=>{d(r)},[]),v.useImperativeHandle(u,()=>({currentPage:g,pageSize:b,totalData:p,totalPages:Math.ceil(p/b),setPage:_=>{C(_),c?.(_,b)},setPageSize:_=>{w(_),C(1),c?.(1,_)},setTotalData:_=>{S(_)},reset:()=>{C(1),w(r),S(0)}}),[g,b,p,c,r]);const m=l==="client",O=m?(e||0)+1:g,T=m?(t||0)>0:p>0,x=m?T?Math.ceil((n||0)/f):0:Math.ceil(p/b),R=m?T&&n||0:p,$=Math.min(O,x||1),F=`${f}-${x}-${$}`,B=_=>{m?o?.(_-1):(C(_),c?.(_,b))},q=_=>{if(m){d(_);try{a?.current?.gridView?(a.current.gridView.setPaging(!0,_),a.current.gridView.setPage(0)):o?.(0)}catch(D){console.warn("페이지 사이즈 변경 중 오류:",D),o?.(0)}}else w(_),C(1),c?.(1,_)};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:m?f:b,onChange:_=>q(Number(_.target.value)),disabled:!T,style:{padding:"4px 8px",border:"1px solid #d9d9d9",borderRadius:"4px",fontSize:"12px",opacity:T?1:.5},children:i.map(_=>s.jsxs("option",{value:_,children:[_,"개"]},_))}),s.jsxs("span",{style:{fontSize:"12px",color:"#666",opacity:T?1:.5},children:["/ 총 ",R,"개"]})]}),s.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[s.jsx(y.Button,{onClick:()=>B(1),disabled:!T||$===1,style:{width:"30px",height:"24px",background:!T||$===1?"#f5f5f5":"white",cursor:!T||$===1?"not-allowed":"pointer",opacity:T?1:.5},icon:s.jsx(pe.DoubleLeftOutlined,{})}),s.jsx(y.Button,{onClick:()=>B($-1),disabled:!T||$===1,style:{width:"30px",height:"24px",background:!T||$===1?"#f5f5f5":"white",cursor:!T||$===1?"not-allowed":"pointer",opacity:T?1:.5},icon:s.jsx(pe.LeftOutlined,{})}),s.jsx("div",{children:(()=>{if(!T||x===0)return s.jsx(y.Button,{disabled:!0,style:{width:"30px",height:"24px"},children:"1"});const _=5;let D=1,H=Math.min(_,x);$>3&&x>_&&(D=Math.max(1,$-2),H=Math.min(x,D+_-1),H===x&&(D=Math.max(1,H-_+1)));const P=[];for(let A=D;A<=H;A++)P.push(s.jsx(y.Button,{onClick:()=>B(A),style:{width:"30px",height:"24px",background:$===A?"#1890ff":"white",color:$===A?"white":"black",cursor:"pointer"},children:A},A));return P})()},F),s.jsx(y.Button,{onClick:()=>B($+1),disabled:!T||$>=x,style:{width:"30px",height:"24px",background:!T||$>=x?"#f5f5f5":"white",cursor:!T||$>=x?"not-allowed":"pointer",opacity:T?1:.5},icon:s.jsx(pe.RightOutlined,{})}),s.jsx(y.Button,{onClick:()=>B(x),disabled:!T||$>=x,style:{width:"30px",height:"24px",background:!T||$>=x?"#f5f5f5":"white",cursor:!T||$>=x?"not-allowed":"pointer",opacity:T?1:.5},icon:s.jsx(pe.DoubleRightOutlined,{})})]})]})});wo.displayName="BwgPagination";const pd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZZDLDcJADETHUe7QQVJC6AAqACoAKkCcESh8JI60kBKgg3TA0kE6gAISzHgj0BJ8sWw/j2cXCCI7aD446g2diDp1aWyWaz9sxmHhNlJSyUCDnlQeQpEKm5UCDwgqvHBnTji4MvcEKGw3FsVFDeCmCCbMYwIpQY4wMnX5mj5pKrXfTFSxc1sp/o03yLlZaoSpRFhme53/QF4FmNl9txbH8wuC5893tEo1PZivBs6/sgVXBlv9BpvVRX62Og6eAAAAAElFTkSuQmCC",md="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZVDbDcIwDHSiqL90AzoCI5S/fvQBEwATIDYoE7BCRwjqAtmAsEE3gAlqzlFBKbXknJ2cL5cQRcF13SIf9Bd63mmHdcN5nsbbJm6UtY6bxlGaCunNZZmTUpniqhpQvIhZ8AlcI+9QXYHYIb3BgQ0ETAJ36BvUmQiDuBV19TNdFBkliUyK0lX1fbc0bkyL1WF6D7UzbBxnpKCi9YHG0UPeoz6BePt+h55UxMMA9NMrPa68BDLiAxmcQh0cAM62AAAAAElFTkSuQmCC",vd=[{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"}],bd=[{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"}],yd=({children:e})=>{const[t,r]=v.useState(!1),[n,o]=v.useState(null);return t?s.jsx("div",{style:{padding:"20px",border:"1px solid #ff4d4f",borderRadius:"6px",backgroundColor:"#fff2f0",margin:"10px"},children:s.jsx(y.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(y.Button,{type:"primary",size:"small",style:{marginTop:"8px"},onClick:()=>{r(!1),o(null),window.location.reload()},children:"다시 시도"})]}),type:"error",showIcon:!0})}):s.jsx(xd,{onError:i=>{console.error("BwgGrid 에러:",i),o(i),r(!0)},children:e})};class xd extends v.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 Ol=v.forwardRef(({type:e="nrml",gridDivStyle:t,gridDivClassName:r,gridColumns:n,gridOptions:o,gridEvents:i,bindRef:a,gridContext:l,renderers:c,gridInitCallback:u},f)=>{const d=v.useRef(null),g=v.useRef(new Map),C=(E,N,z,M)=>{let L=[],k=[];const I="treeNode";for(let G in E){let U=E[G];L[U[z]]=E[G];let Z=L[U[N]];if(Z==null||Z=="-"){k.push(U);continue}Z[I]==null&&(Z[I]=[]),Z[I].push(U)}return k},b=v.useCallback(E=>{const N=M=>{const L=[];return M.forEach(k=>{k.children&&k.children.length>0?L.push(...N(k.children)):L.push(k)}),L};return N(E).map(M=>({fieldName:M.fieldName,dataType:M.dataType||"text"}))},[]),w=v.useCallback(E=>{const N=M=>{const L=[];return M.forEach(k=>{k.children&&k.children.length>0?L.push(...N(k.children)):L.push(k)}),L};return N(E).map(M=>({...M,header:{template:M.required?`<img src='${md}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:M.editable?`<img src='${pd}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:"${headerText}",values:{headerText:M.header?.text??""},text:M.header?.text||""},styleName:M.dataType==="number"?"right":M.styleName||"center"}))},[]);v.useImperativeHandle(f,()=>({addAllData(E,N){const z=d.current?.gridView.getCurrent().dataRow;if(d.current?.dataProvider instanceof Ke.LocalDataProvider){d.current.dataProvider.clearRows();try{d.current?.gridView.showLoading(),d.current.dataProvider.setRows(E)}catch(M){console.error("fillJsonData 오류:",M)}finally{d.current?.gridView.closeLoading()}}if(d.current?.dataProvider instanceof Ke.LocalTreeDataProvider){if(d.current.dataProvider.clearRows(),N?.treeOption?.dataField==null||N?.treeOption?.parentField==null)return;const M={rows:"treeNode"};try{d.current?.gridView.showLoading();let L=C(E,N.treeOption?.parentField,N.treeOption?.dataField);d.current.dataProvider.fillJsonData({treeNode:L},M),N.treeOption.isExpand&&d.current.gridView?.expandAll()}catch(L){console.error("fillJsonData 오류:",L)}finally{d.current?.gridView.closeLoading()}}N?.isCurrent?d.current?.gridView.setCurrent({dataRow:z}):d.current?.gridView.setCurrent({dataRow:0})},getGridInstance:()=>d.current,getCurrentRow:()=>d.current?.gridView.getCurrent().dataRow??-1,getCurrentIndex:()=>d.current?.gridView.getCurrent().itemIndex??-1,gridExcelDown(E){d.current?.gridView.exportGrid({type:"excel",target:"local",allItems:!1,lookupDisplay:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!E?.indenting,header:"default",footer:"default",sheetName:"",fileName:E?.fileName||"sample.xlsx",...E})},getGridSaveData:()=>{const E=d.current?.dataProvider?.getAllStateRows();if(E===void 0)return[{}];let N=[];if(E.created!==void 0&&E.created.length>0)for(const z in E.created){let M=d.current?.dataProvider?.getJsonRow(E.created[z]);M={...M,iudFlag:"I"},N.push(M)}if(E.updated!==void 0&&E.updated.length>0)for(const z in E.updated){let M=d.current?.dataProvider?.getJsonRow(E.updated[z]);M={...M,iudFlag:"U"},N.push(M)}if(E.deleted!==void 0&&E.deleted.length>0)for(const z in E.deleted){let M=d.current?.dataProvider?.getJsonRow(E.deleted[z]);M={...M,iudFlag:"D"},N.push(M)}return N},deleteGridData:()=>{d?.current?.gridView?.getCheckedItems()?.map(N=>{let z=d?.current?.gridView?.getDataRow(N)??-1;const M=d?.current?.dataProvider?.getRowState(z);M==Ke.RowState.DELETED?(d?.current?.dataProvider?.setRowState(z,g.current.get(N)??Ke.RowState.NONE),g.current.delete(N)):M==Ke.RowState.CREATED?d?.current?.dataProvider?.setRowState(z,Ke.RowState.CREATE_AND_DELETED):M==Ke.RowState.CREATE_AND_DELETED?d?.current?.dataProvider?.setRowState(z,Ke.RowState.CREATED):(g.current.set(N,M??Ke.RowState.NONE),d?.current?.dataProvider?.setRowState(z,Ke.RowState.DELETED)),d?.current?.gridView?.checkItem(N,!1)})},_oriRowState:[{}],dp:d.current?.dataProvider??null,vw:d.current?.gridView??null}));const p=v.useCallback((E,N,z)=>{if(a!==void 0&&z>=0){let M=E.getDataSource().getJsonRow(z);a?.current?.setFieldsValue(M)}else a!==void 0&&z<0&&a?.current?.resetFields();E.setCurrent({dataRow:0}),i?.onCurrentRowChanged&&i?.onCurrentRowChanged(E,N,z)},[a,i]),S=v.useCallback((E,N,z)=>{const M=N.fieldName??"";a?.current?.getFieldInstance(M)&&a?.current.setFieldValue(M,z),i?.onEditChange&&i?.onEditChange(E,N,z)},[a,i]),m=v.useCallback((E,N,z)=>{const M=E.getOrgFieldName(z),L=E.getValue(N,z);a?.current?.setFieldValue(M,L)},[a]),O=v.useCallback((E,N,z,M)=>{const L=E.getColumn(M).name??"",k=E.getValue(N,M);a?.current?.getFieldInstance(L)&&a?.current.setFieldValue(L,k),i?.onCellEdited&&i?.onCellEdited(E,N,z,M)},[a,i]),T=v.useCallback((E,N,z,M)=>{if(typeof N.dataRow=="number"&&N.dataRow!=-1){var L=E.getDataSource().getRowState(N.dataRow);if(L=="deleted"||L=="createAndDeleted")return!1}return i?.onShowEditor!=null&&i?.onShowEditor(E,N,z,M),!0},[a,i]),j=v.useCallback(E=>{if(!d.current)return;const N=d.current.gridView,z=N.getDataSource();if(o?.container?.page){const M=N.getPage(),L=N.getPageCount(),k=z.getRowCount();J({currentPage:M,totalPages:L,totalData:k})}},[o?.container?.page]),x=v.useCallback(()=>{if(!d.current)return;const E=d.current.gridView,N=E.getDataSource(),z=["onKeyDown"],M=["onRowInserted"];Object.keys(i??{}).map(L=>{z.includes(L)?E[L+"Add"]=i?.[L]:E[L]=i?.[L],M.includes(L)?N[L+"Add"]=i?.[L]:N[L]=i?.[L]}),N instanceof Ke.LocalDataProvider&&(N.onRowInserted=(L,k)=>{k<0||(setTimeout(function(){E?.setCurrent({dataRow:k})},1),L.onRowInsertedAdd!==void 0&&L.onRowInsertedAdd(L,k))}),E.onKeyDown=function(L,k){if(k.code=="Space"){let I=L.getSelectedItems(!0);for(const G in I)L.isCheckable(I[G])&&(L.isCheckedItem(I[G])?L.checkItem(I[G],!1,!1):L.checkItem(I[G],!0,!1))}return L.onKeyDownAdd!==void 0&&L.onKeyDownAdd(L,k),!0},d.current.gridView.onCurrentRowChanged=p,d.current.gridView.onEditChange=S,d.current.gridView.getDataSource().onValueChanged=m,d.current.gridView.onCellEdited=O,d.current.gridView.onShowEditor=T,d.current.gridView.onDataLoadComplated=j},[p,S,m,O,T,j]),R=v.useCallback(E=>{if(E){try{E.gridView.setSortingOptions({enabled:!0}),E.gridView.sortMode=Ke.SortMode.EXPLICIT,E.gridView.editorOptions.viewGridInside=!0,E.gridView instanceof Ke.TreeView&&E.gridView.setTreeOptions({expandWhenSetData:Ke.ExpandWhenSetData.REMAIN_AND_EXPAND,expanderIconStyle:Ke.TreeExpanderIconStyle.SQUARE,iconVisible:!1,lineVisible:!0}),E.gridView.setDisplayOptions({showEmptyMessage:!0,emptyMessage:"조회된 데이터가 존재하지 않습니다.",useFocusClass:!0,minRowHeight:o?.display?.minRowHeight||43,maxRowHeight:o?.display?.maxRowHeight||100,rowHeight:o?.display?.rowHeight||43,rowChangeDelay:o?.display?.rowChangeDelay||0,selectionStyle:o?.display?.selectionStyle||Ke.SelectionStyle.ROWS,fitStyle:o?.display?.fitStyle||Ke.GridFitStyle.FILL,useAlternateRowStyle:o?.display?.useAlternateRowStyle||!1}),E.gridView.setEditOptions({commitWhenExitLast:!0,columnEditableFirst:!1,commitByCell:!0,commitWhenLeave:!0,crossWhenExitLast:!0,confirmWhenDelete:!1,deletable:!1,revertable:!1,showOnlyValidationMessage:!0,editable:o?.edit?.editable||!1,validateOnEdited:o?.edit?.validateOnEdited||!1}),E.gridView.setCopyOptions({singleMode:o?.copy?.singleMode||!1}),E.gridView.setPasteOptions({selectBlockPaste:!0,checkReadOnly:!0,throwValidationError:!1}),E.gridView.header.height=o?.header?.height||43,E.gridView.header.styleName=o?.header?.styleName||"bwgGridHeader",o?.container?.radio?E.gridView.setCheckBar({exclusive:o?.container?.radio||!1}):E.gridView.setCheckBar({visible:o?.container?.check||!1,showAll:o?.container?.checkAll||!1}),E.gridView.setStateBar({visible:o?.container?.state||!1}),E.gridView.rowIndicator.visible=o?.container?.indicator||!1,E.gridView instanceof Ke.GridView&&(E.gridView.groupPanel.visible=o?.container?.panel||!1),E.gridView.setFooters({visible:o?.container?.footer||!1}),E.gridView.setHeader({visible:o?.container?.header||!0}),E.gridView.formatOptions.numberFormat="#,##0"}catch(N){console.log("그리드 옵션 설정 중 오류:",N)}try{E.gridView instanceof Ke.TreeView?E.gridView.setContextMenu(bd):E.gridView.setContextMenu(vd),E.gridView.onContextMenuItemClicked=function(N,z,M){if(!(!M||!M.column)){if(z.tag=="excel")D(N,{isTitle:!1},l?.excel);else if(z.tag=="showIndentExcel")D(N,{isTitle:!1,treeBlank:!0},l?.excel);else if(z.tag=="withTitleExcel")D(N,{isTitle:!0,treeBlank:!1},l?.excel);else if(z.tag=="filter")H(N,z);else if(z.tag=="fixedCol"){const k=N.getDataSource().getFieldIndex(M.column);N.setFixedOptions({colCount:k})}else if(z.tag=="fixedRow")N.setFixedOptions({rowCount:(M.itemIndex||0)+1});else if(z.tag=="fixedCancel")N.setFixedOptions({colCount:0,rowCount:0});else if(z.tag=="hide")N.setColumnProperty(M.column,"visible",!1),N._hideCols[N._hideCols.length]=M.column;else if(z.tag=="hideClear")for(var L=0;L<N._hideCols.length;L++)N.setColumnProperty(N._hideCols[L],"visible",!0)}}}catch(N){console.log("컨텍스트 설정 중 오류:",N)}}},[o]),$=E=>{if(!(!c||c.length===0))try{c.forEach(N=>{const{name:z,renderer:M}=N;if(z&&M){const L=typeof M=="function"?new M:M;E.gridView.registerCustomRenderer(z,L)}})}catch(N){console.error("커스텀 렌더러 초기화 중 오류:",N)}},F=E=>{E.onPageChanged=(N,z)=>{J(M=>({...M,currentPage:z}))},E.onPageCountChanged=(N,z)=>{J(M=>({...M,totalPages:z}))}},B=E=>{d.current?.gridView&&d.current.gridView.setPage(E)},q=E=>{if(o?.layout?.colspan&&o.layout.colspan.length>0&&o?.layout?.colspan.forEach(N=>{const z=E.gridView.layoutByColumn(N.fieldName);if(z){const M=N.span;z.spanCallback=function(L,k,I){return M}}}),n&&n.length>0&&n.some(z=>z.children&&z.children.length>0))try{(()=>{const M=JSON.parse(JSON.stringify(n)),L=[],k=I=>{const G=[];return I.children.map(U=>{if(U.children&&U.children.length>0){const Z=k(U),ne=U.header?.text||U.fieldName,ae=E.gridView.getColumnProperty(U.fieldName,"header");delete U.children,delete U.header;let we={name:U.fieldName,header:{text:ae?.text||ne,template:ae?.template,values:ae?.values,visible:ae?.visible??!0},items:Z,...U};G.push(we)}else G.push(U.fieldName)}),G};M.map(I=>{if(I.children&&I.children.length>0){const G=k(I),U=I.header?.text||I.fieldName,Z=I.header?.visible??!0,ne=E.gridView.getColumnProperty(I.fieldName,"header");delete I.children,delete I.header;const ae={name:I.fieldName,header:{text:ne?.text||U,template:ne?.template,values:ne?.values,visible:ne?.visible||Z},items:G,...I};L.push(ae)}else L.push(I.fieldName)}),console.log("Final Layout!!",L),E.gridView.setColumnLayout(L)})()}catch(z){console.error("컬럼 레이아웃 설정 오류:",z)}},_=()=>{if(d.current){if(e==="nrml"){const E=d.current;if(R(E),$(E),n&&n.length>0){const N=b(n),z=w(n);E.gridView.getDataSource().setFields(N),E.gridView.setColumns(z)}if(q(E),o?.container?.page){const N=o?.pagingOption?.pageSize||10;E.gridView.setPaging(!0,N),F(E.gridView)}}else{const E=d.current;if(R(E),$(E),n&&n.length>0){const N=b(n),z=w(n);E.gridView.getDataSource().setFields(N),E.gridView.setColumns(z)}q(d.current)}setTimeout(()=>{if(u){const E=typeof f=="object"&&f!==null?f.current:null;u(E)}},0)}},D=(E,N,z)=>{const M=E.getDataSource();let L=z?.footer==null?"default":z.footer;M.getRowCount()<1&&(L="hidden");let k={type:"excel",target:"local",allItems:!1,lookupDisplay:!0,compatibility:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!N?.treeBlank,footer:L,sheetName:"",documentTitle:{},documentSubtitle:{},documentTail:{},fileName:z?.fileName||"sample.xlsx"};M instanceof Ke.LocalTreeDataProvider&&(k.indenting=!!N?.treeBlank),z?.isCellMerge==!0&&(k.separateRows=!1),Ve.isEmpty(z?.sheetName)==!1&&(k.sheetName=z?.sheetName),N?.isTitle&&(k.documentTitle={message:Ve.isSafeEmpty(z?.mainTitle,"No Title"),visible:!0,styleName:"documentStyle",spaceTop:1,spaceBottom:0,height:43},Ve.isEmpty(z?.subTitle)==!1&&(k.documentSubtitle={message:z?.subTitle,visible:!0,styleName:"center",height:20}),Ve.isEmpty(z?.tailTitle)==!1&&(k.documentTail={message:z?.tailTitle,visible:!0,styleName:"documentStyle"})),E.exportGrid(k)},H=(E,N)=>{const z=E.getDataSource(),M=z.getOrgFieldNames();if(N.checked)for(var L=0;L<M.length;L++){let I=[],G=z.getDistinctValues(M[L])??[];if(G.length==0)continue;let U=E.columnByName(M[L]);for(var k=0;k<G.length;k++){if(G[k]==null)continue;let Z=U.values!=null&&U.values.indexOf(G[k])!=-1?U?.labels?.[U.values.indexOf(G[k])]:G[k];Ve.isEmpty(Z)&&(Ve.isEmpty(G[k])?Z=" ":Z=G[k]);let ne="";G[k]==null?ne="value="+G[k]:ne="value='"+G[k]+"'",I.push({name:Z,criteria:ne})}E.setColumnFilters(M[L],I)}else for(var L=0;L<M.length;L++)E.clearColumnFilters(M[L]),E.activateAllColumnFilters(M[L],!1),E.clearColumnFilters(M[L])};v.useEffect(()=>{if(d.current&&d.current.gridView)if(e==="nrml"){const E=d.current;R(E)}else{const E=d.current;R(E)}},[e,o,R]),v.useEffect(()=>{!d.current||!n||n.length===0||_()},[n]),v.useEffect(()=>{d.current&&x()},[i,x]);const[P,A]=v.useState(!1),[Y,W]=v.useState(""),V=v.useRef(null),[X,J]=v.useState({currentPage:0,totalPages:0,totalData:0});v.useEffect(()=>{J({currentPage:0,totalPages:0,totalData:0})},[]),v.useEffect(()=>{P&&setTimeout(()=>{V.current?.focus?.()},0)},[P]),v.useEffect(()=>()=>{if(d.current)try{const E=d.current;E.gridView&&(E.gridView.onDataLoadComplated=void 0,E.gridView.onCurrentRowChanged=void 0,E.gridView.onCellClicked=void 0,E.gridView.onCellDblClicked=void 0,E.gridView.onEditRowChanged=void 0,E.gridView.onItemChecked=void 0,E.gridView.onItemAllChecked=void 0,E.gridView.onColumnCheckedChanged=void 0,E.gridView.onCellButtonClicked=void 0,E.gridView.onEditChange=void 0,E.gridView.onCellEdited=void 0,E.gridView.onKeyUp=void 0,E.gridView.onKeyDown=void 0,E.gridView.onWheel=void 0,E.gridView.onValidateColumn=void 0,E.gridView.onValidateRow=void 0,E.gridView.onValidationFail=void 0,E.gridView.onRowInserting=void 0,E.gridView.onCellItemClicked=void 0,E.gridView.onShowEditor=void 0,E.gridView.getDataSource()&&(E.gridView.getDataSource().clearRows(),E.gridView.getDataSource().setFields([])),E.gridView.getDataSource().clearRows())}catch(E){console.warn("⚠️ BwgGrid cleanup error:",E)}},[]);const K=v.useCallback(E=>{te(E)},[]),te=v.useCallback(E=>{const N=d.current?.gridView;if(N?.isFiltered()){console.log("EE:: [그리드 Filtering 으로 인한 오류] 그리드 내 Filter를 해제 후 진행해 주십시오.");return}if(N?.commit(),Ve.isEmpty(E))return;const z=N?.getCurrent().itemIndex??-1;if(z<0)return;const M={value:E,startIndex:z+1,wrap:!0,caseSensitive:!1,partialMatch:!0},L=N?.searchCell(M);N?.setCurrent(L)},[]),se=v.useCallback(E=>{E.key==="Escape"&&(E.preventDefault(),A(!1))},[]),ge=v.useCallback(E=>{E.ctrlKey&&E.code==="KeyF"&&(E.preventDefault(),W(""),A(!P))},[P]),ce={searchRow:K,searchEnter:te,handleCloseKeyword:se,handleSearch:ge},ve=v.useMemo(()=>({...t,position:"relative",width:t?.width||"100%",height:t?.height||"100%"}),[t]);return s.jsxs(yd,{children:[s.jsxs("div",{style:ve,className:r,onKeyDown:E=>ce.handleSearch(E),children:[P&&s.jsx("div",{className:"grid-search-box",children:s.jsxs(y.Flex,{gap:3,children:[s.jsx(y.ConfigProvider,{theme:{components:{Button:{controlHeight:32},Input:{controlHeight:32}}},children:s.jsxs(y.Space.Compact,{children:[s.jsx(y.Button,{icon:s.jsx(pe.SearchOutlined,{})}),s.jsx(y.Input,{ref:V,value:Y,name:"srchField",autoComplete:"off",onKeyUp:E=>ce.handleCloseKeyword(E),onChange:E=>W(E.target.value),onPressEnter:E=>ce.searchEnter(E)})]})}),s.jsx(y.Button,{variant:"solid",icon:s.jsx(pe.CloseOutlined,{}),onClick:()=>A(!1)})]})}),e==="nrml"?s.jsx(ka.RealGridReact,{ref:d,autoGenerateField:!0,onInitialized:_}):s.jsx(ka.RealTreeReact,{ref:d,autoGenerateField:!1,onInitialized:_})]}),o?.container?.page&&s.jsx(wo,{currentPage:X.currentPage,totalPages:X.totalPages,pageSize:o?.pagingOption?.pageSize,totalData:X.totalData,onPageChange:B,pageSizeOptions:o?.pagingOption?.pageSizeOptions,gridRef:d})]})}),Jn=e=>({initContent(t){this._root=gd.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{}}}),Cd=v.memo(({title:e,border:t,children:r,titleChildren:n})=>{const o=v.useMemo(()=>({components:{Form:{labelColor:"#9A9A9A"},Select:{colorTextDisabled:"#000"}}}),[]);return s.jsxs(dr,{type:"vertical",children:[s.jsx(xo,{title:e,icons:{type:"antd",icon:"InfoCircleTwoTone"},children:n}),s.jsx(cr,{border:!1,children:s.jsx(y.ConfigProvider,{theme:o,children:r})})]})}),dr=({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}),Za=(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}},wd=({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(y.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))}),Sd=({popup:e,popupEvent:t,onClose:r,children:n})=>{const o=v.useRef(null),i=e?.popupTitle||"팝업",a=e?.width||800,l=e?.height||600,c=e?.buttonList?.map((x,R)=>({key:x.btnId||`btn_${R}`,text:x.btnNm,type:x.btnId==="CLOSE"?"default":"primary",disabled:x.enblYn!=="Y",danger:!1}))||[],f=c.some(x=>x.key==="CLOSE"||x.key==="close")?c:[...c,{key:"CLOSE",text:"닫기",type:"default",disabled:!1,danger:!1}],[d,g]=v.useState(a),[C,b]=v.useState(l),w=v.useMemo(()=>{const x=Math.max(0,(window.innerWidth-a)/2),R=Math.max(0,(window.innerHeight-l)/2);return{x,y:R}},[a,l]),[p,S]=v.useState(w),m=(x,R)=>{if(x==="CLOSE"||x==="close"){e?.close?.()||r?.();return}t&&t[x]?t[x]():e?.close?.()||r?.()},O=(x,R)=>{const $=Za({x:R.x,y:R.y},{width:d,height:C});S($)},T=(x,R,$,F,B)=>{const q={width:parseInt($.style.width,10),height:parseInt($.style.height,10)},_=Za(B,q);g(q.width),b(q.height),S(_)},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(wl.Rnd,{className:"bwg-popup",size:{width:d,height:C},position:p,bounds:"window",minWidth:400,minHeight:300,onDragStop:O,onResizeStop:T,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(ca,{getPopupContainer:j,children:s.jsx(dr,{type:"vertical",children:s.jsx(y.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(wd,{buttons:f,popupData:e,onButtonClick:m}),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"}})]})]})},Ed=({children:e,...t})=>s.jsx(y.Row,{...t,className:"bwg-row",children:e}),Rd=({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})}),jd=({rowKey:e="id",columns:t,dataSource:r,loading:n=!1,rowSelection:o,size:i="middle",pagination:a=!1,...l})=>s.jsx(y.Table,{rowKey:e,columns:t,dataSource:r,loading:n,rowSelection:o,size:i,pagination:a,bordered:!0,scroll:{x:"max-content"},locale:{emptyText:"데이터가 없습니다."},...l}),$d=e=>{const{type:t="card",animated:r=!0,...n}=e;return s.jsx(y.Tabs,{type:t,animated:r,...n})};function Oi(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 Td(e){if(Array.isArray(e))return Oi(e)}function _l(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ua(e,t){if(e){if(typeof e=="string")return Oi(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)?Oi(e,t):void 0}}function Od(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rt(e){return Td(e)||_l(e)||ua(e)||Od()}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 _d={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 Il(e){if(Array.isArray(e))return e}function Id(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,u=!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){u=!0,o=f}finally{try{if(!c&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}function Pl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function re(e,t){return Il(e)||Id(e,t)||ua(e,t)||Pl()}function Se(e){"@babel/helpers - typeof";return Se=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},Se(e)}function Pd(e,t){if(Se(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Se(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ml(e){var t=Pd(e,"string");return Se(t)=="symbol"?t:t+""}function ee(e,t,r){return(t=Ml(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Md(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=Md(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 Jo={exports:{}};/*!
4
4
  Copyright (c) 2018 Jed Watson.
@@ -77,16 +77,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
77
77
  *
78
78
  * This source code is licensed under the MIT license found in the
79
79
  * LICENSE file in the root directory of this source tree.
80
- */var ds;function uf(){return ds||(ds=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"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),b=!1,w=!1,p=!1,S=!1,m=!1,O;O=Symbol.for("react.module.reference");function T(_){return!!(typeof _=="string"||typeof _=="function"||_===r||_===o||m||_===n||_===u||_===f||S||_===C||b||w||p||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===d||_.$$typeof===i||_.$$typeof===a||_.$$typeof===c||_.$$typeof===O||_.getModuleId!==void 0))}function j(_){if(typeof _=="object"&&_!==null){var V=_.$$typeof;switch(V){case e:var U=_.type;switch(U){case r:case o:case n:case u:case f:return U;default:var Z=U&&U.$$typeof;switch(Z){case l:case a:case c:case g:case d:case i:return Z;default:return V}}case t:return V}}}var x=a,R=i,$=e,L=c,B=r,q=g,I=d,N=t,F=o,P=n,M=u,Y=f,W=!1,H=!1;function X(_){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function J(_){return H||(H=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function K(_){return j(_)===a}function te(_){return j(_)===i}function se(_){return typeof _=="object"&&_!==null&&_.$$typeof===e}function ge(_){return j(_)===c}function ce(_){return j(_)===r}function ve(_){return j(_)===g}function E(_){return j(_)===d}function k(_){return j(_)===t}function z(_){return j(_)===o}function D(_){return j(_)===n}function A(_){return j(_)===u}function G(_){return j(_)===f}$e.ContextConsumer=x,$e.ContextProvider=R,$e.Element=$,$e.ForwardRef=L,$e.Fragment=B,$e.Lazy=q,$e.Memo=I,$e.Portal=N,$e.Profiler=F,$e.StrictMode=P,$e.Suspense=M,$e.SuspenseList=Y,$e.isAsyncMode=X,$e.isConcurrentMode=J,$e.isContextConsumer=K,$e.isContextProvider=te,$e.isElement=se,$e.isForwardRef=ge,$e.isFragment=ce,$e.isLazy=ve,$e.isMemo=E,$e.isPortal=k,$e.isProfiler=z,$e.isStrictMode=D,$e.isSuspense=A,$e.isSuspenseList=G,$e.isValidElementType=T,$e.typeOf=j})()),$e}var fs;function df(){return fs||(fs=1,process.env.NODE_ENV==="production"?Fn.exports=cf():Fn.exports=uf()),Fn.exports}var ni=df();function ga(e,t,r){var n=h.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var ff=Number(v.version.split(".")[0]),pa=function(t,r){typeof t=="function"?t(r):Se(t)==="object"&&t&&"current"in t&&(t.current=r)},xn=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){pa(a,i)})}},ma=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ga(function(){return xn.apply(void 0,r)},r,function(o,i){return o.length!==i.length||o.every(function(a,l){return a!==i[l]})})},Eo=function(t){var r,n;if(!t)return!1;if(Gl(t)&&ff>=19)return!0;var o=ni.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((r=o.prototype)!==null&&r!==void 0&&r.render)&&o.$$typeof!==ni.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==ni.ForwardRef)};function Gl(e){return v.isValidElement(e)&&!Kl(e)}var va=function(t){if(t&&Gl(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},Wi=h.createContext(null);function hf(e){var t=e.children,r=e.onBatchResize,n=h.useRef(0),o=h.useRef([]),i=h.useContext(Wi),a=h.useCallback(function(l,c,u){n.current+=1;var f=n.current;o.current.push({size:l,element:c,data:u}),Promise.resolve().then(function(){f===n.current&&(r?.(o.current),o.current=[])}),i?.(l,c,u)},[r,i]);return h.createElement(Wi.Provider,{value:a},t)}var Yl=(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})()})(),qi=typeof window<"u"&&typeof document<"u"&&window.document===document,ho=(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")()})(),gf=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ho):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),pf=2;function mf(e,t){var r=!1,n=!1,o=0;function i(){r&&(r=!1,e()),n&&l()}function a(){gf(i)}function l(){var c=Date.now();if(r){if(c-o<pf)return;n=!0}else r=!0,n=!1,setTimeout(a,t);o=c}return l}var vf=20,bf=["top","right","bottom","left","width","height","size","weight"],yf=typeof MutationObserver<"u",xf=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=mf(this.refresh.bind(this),vf)}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(){!qi||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),yf?(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(){!qi||!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=bf.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})(),Xl=(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}),jr=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ho}),Ql=Ro(0,0,0,0);function go(e){return parseFloat(e)||0}function hs(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+go(i)},0)}function Cf(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]=go(a)}return r}function wf(e){var t=e.getBBox();return Ro(0,0,t.width,t.height)}function Sf(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Ql;var n=jr(e).getComputedStyle(e),o=Cf(n),i=o.left+o.right,a=o.top+o.bottom,l=go(n.width),c=go(n.height);if(n.boxSizing==="border-box"&&(Math.round(l+i)!==t&&(l-=hs(n,"left","right")+i),Math.round(c+a)!==r&&(c-=hs(n,"top","bottom")+a)),!Rf(e)){var u=Math.round(l+i)-t,f=Math.round(c+a)-r;Math.abs(u)!==1&&(l-=u),Math.abs(f)!==1&&(c-=f)}return Ro(o.left,o.top,l,c)}var Ef=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof jr(e).SVGGraphicsElement}:function(e){return e instanceof jr(e).SVGElement&&typeof e.getBBox=="function"}})();function Rf(e){return e===jr(e).document.documentElement}function jf(e){return qi?Ef(e)?wf(e):Sf(e):Ql}function $f(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 Xl(a,{x:t,y:r,width:n,height:o,top:r,right:t+n,bottom:o+r,left:t}),a}function Ro(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Tf=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ro(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=jf(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})(),Of=(function(){function e(t,r){var n=$f(r);Xl(this,{target:t,contentRect:n})}return e})(),_f=(function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Yl,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 jr(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Tf(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 jr(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 Of(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})(),Zl=typeof WeakMap<"u"?new WeakMap:new Yl,Jl=(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=xf.getInstance(),n=new _f(t,r,this);Zl.set(this,n)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Jl.prototype[e]=function(){var t;return(t=Zl.get(this))[e].apply(t,arguments)}});var If=(function(){return typeof ho.ResizeObserver<"u"?ho.ResizeObserver:Jl})(),Ft=new Map;function ec(e){e.forEach(function(t){var r,n=t.target;(r=Ft.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var tc=new If(ec);process.env.NODE_ENV;process.env.NODE_ENV;function Pf(e,t){Ft.has(e)||(Ft.set(e,new Set),tc.observe(e)),Ft.get(e).add(t)}function Mf(e,t){Ft.has(e)&&(Ft.get(e).delete(t),Ft.get(e).size||(tc.unobserve(e),Ft.delete(e)))}function bt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kf(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,Ml(n.key),n)}}function yt(e,t,r){return t&&kf(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ui(e,t){return Ui=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ui(e,t)}function Cn(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&&Ui(e,t)}function po(e){return po=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},po(e)}function rc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rc=function(){return!!e})()}function an(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Af(e,t){if(t&&(Se(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return an(e)}function wn(e){var t=rc();return function(){var r,n=po(e);if(t){var o=po(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Af(this,r)}}var Nf=(function(e){Cn(r,e);var t=wn(r);function r(){return bt(this,r),t.apply(this,arguments)}return yt(r,[{key:"render",value:function(){return this.props.children}}]),r})(h.Component);function Df(e,t){var r=e.children,n=e.disabled,o=h.useRef(null),i=h.useRef(null),a=h.useContext(Wi),l=typeof r=="function",c=l?r(o):r,u=h.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!l&&h.isValidElement(c)&&Eo(c),d=f?va(c):null,g=ma(d,o),C=function(){var S;return eo(o.current)||(o.current&&Se(o.current)==="object"?eo((S=o.current)===null||S===void 0?void 0:S.nativeElement):null)||eo(i.current)};h.useImperativeHandle(t,function(){return C()});var b=h.useRef(e);b.current=e;var w=h.useCallback(function(p){var S=b.current,m=S.onResize,O=S.data,T=p.getBoundingClientRect(),j=T.width,x=T.height,R=p.offsetWidth,$=p.offsetHeight,L=Math.floor(j),B=Math.floor(x);if(u.current.width!==L||u.current.height!==B||u.current.offsetWidth!==R||u.current.offsetHeight!==$){var q={width:L,height:B,offsetWidth:R,offsetHeight:$};u.current=q;var I=R===Math.round(j)?j:R,N=$===Math.round(x)?x:$,F=Q(Q({},q),{},{offsetWidth:I,offsetHeight:N});a?.(F,p,O),m&&Promise.resolve().then(function(){m(F,p)})}},[]);return h.useEffect(function(){var p=C();return p&&!n&&Pf(p,w),function(){return Mf(p,w)}},[o.current,n]),h.createElement(Nf,{ref:i},f?h.cloneElement(c,{ref:g}):c)}var nc=h.forwardRef(Df);process.env.NODE_ENV!=="production"&&(nc.displayName="SingleObserver");var Bf="rc-observer-key";function zf(e,t){var r=e.children,n=typeof r=="function"?[r]:un(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(Bf,"-").concat(i);return h.createElement(nc,Ze({},e,{key:a,ref:i===0?t:void 0}),o)})}var Ar=h.forwardRef(zf);process.env.NODE_ENV!=="production"&&(Ar.displayName="ResizeObserver");Ar.Collection=hf;var gs=process.env.NODE_ENV!=="test"&&st()?h.useLayoutEffect:h.useEffect,Le=function(t,r){var n=h.useRef(!0);gs(function(){return t(n.current)},r),gs(function(){return n.current=!1,function(){n.current=!0}},[])},ps=function(t,r){Le(function(n){if(!n)return t()},r)};function ft(e){var t=h.useRef();t.current=e;var r=h.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 fn(e){var t=h.useRef(!1),r=h.useState(e),n=re(r,2),o=n[0],i=n[1];h.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(l,c){c&&t.current||i(l)}return[o,a]}function oi(e){return e!==void 0}function $r(e,t){var r=t||{},n=r.defaultValue,o=r.value,i=r.onChange,a=r.postState,l=fn(function(){return oi(o)?o:oi(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),c=re(l,2),u=c[0],f=c[1],d=o!==void 0?o:u,g=a?a(d):d,C=ft(i),b=fn([d]),w=re(b,2),p=w[0],S=w[1];ps(function(){var O=p[0];u!==O&&C(u,O)},[p]),ps(function(){oi(o)||f(o)},[o]);var m=ft(function(O,T){f(O,T),S([d],T)});return[g,m]}function oc(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}var Lf=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 ms(e,t){return Lf(e)}function hn(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 Ff(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(Wt(!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 u=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],u))return!1;return!0}if(i&&a&&Se(i)==="object"&&Se(a)==="object"){var d=Object.keys(i);return d.length!==Object.keys(a).length?!1:d.every(function(g){return o(i[g],a[g],u)})}return!1}return o(e,t)}var Hf="%";function Ki(e){return e.join(Hf)}var Vf=(function(){function e(t){bt(this,e),ee(this,"instanceId",void 0),ee(this,"cache",new Map),ee(this,"extracted",new Set),this.instanceId=t}return yt(e,[{key:"get",value:function(r){return this.opGet(Ki(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(Ki(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})(),gn="data-token-hash",Mt="data-css-hash",Wf="data-cache-path",er="__cssinjs_instance__";function qf(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Mt,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(o){o[er]=o[er]||e,o[er]===e&&document.head.insertBefore(o,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Mt,"]"))).forEach(function(o){var i=o.getAttribute(Mt);if(n[i]){if(o[er]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else n[i]=!0})}return new Vf(e)}var Sn=h.createContext({hashPriority:"low",cache:qf(),defaultCache:!0});function Uf(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 ba=(function(){function e(){bt(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 yt(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(u,f){var d=re(u,2),g=d[1];return o.internalGet(f)[1]<g?[f,o.internalGet(f)[1]]:u},[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(u,f){if(f===r.length-1)c.set(u,{value:[n,o.cacheCallTimes++]});else{var d=c.get(u);d?d.map||(d.map=new Map):c.set(u,{map:new Map}),c=c.get(u).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!Uf(n,r)}),this.deleteByPath(this.cache,r)}}]),e})();ee(ba,"MAX_CACHE_SIZE",20);ee(ba,"MAX_CACHE_OFFSET",5);var vs=0,ic=(function(){function e(t){bt(this,e),ee(this,"derivatives",void 0),ee(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=vs,t.length===0&&Rr(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),vs+=1}return yt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,o){return o(r,n)},void 0)}}]),e})(),ii=new ba;function Gi(e){var t=Array.isArray(e)?e:[e];return ii.has(t)||ii.set(t,new ic(t)),ii.get(t)}var Kf=new WeakMap,ai={};function Gf(e,t){for(var r=Kf,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(ai)||r.set(ai,e()),r.get(ai)}var bs=new WeakMap;function sn(e){var t=bs.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof ic?t+=n.id:n&&Se(n)==="object"?t+=sn(n):t+=n}),t=hn(t),bs.set(e,t)),t}function ys(e,t){return hn("".concat(t,"_").concat(sn(e)))}var Yi=st();function Oe(e){return typeof e=="number"?"".concat(e,"px"):e}var to=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()},Yf=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(""),"}"):""},ac=function(t,r,n){var o={},i={};return Object.entries(t).forEach(function(a){var l,c,u=re(a,2),f=u[0],d=u[1];if(n!=null&&(l=n.preserve)!==null&&l!==void 0&&l[f])i[f]=d;else if((typeof d=="string"||typeof d=="number")&&!(n!=null&&(c=n.ignore)!==null&&c!==void 0&&c[f])){var g,C=to(f,n?.prefix);o[C]=typeof d=="number"&&!(n!=null&&(g=n.unitless)!==null&&g!==void 0&&g[f])?"".concat(d,"px"):String(d),i[f]="var(".concat(C,")")}}),[i,Yf(o,r,{scope:n?.scope})]},Xf=Q({},h),xs=Xf.useInsertionEffect,Qf=function(t,r,n){h.useMemo(t,n),Le(function(){return r(!0)},n)},Zf=xs?function(e,t,r){return xs(function(){return e(),t()},r)}:Qf,Jf=Q({},h),eh=Jf.useInsertionEffect,th=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 h.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),o},rh=function(){return function(t){t()}},nh=typeof eh<"u"?th:rh;function oh(){return!1}var Xi=!1;function ih(){return Xi}const ah=process.env.NODE_ENV==="production"?oh:ih;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var Hn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(Hn&&typeof Hn.webpackHotUpdate=="function"){var sh=Hn.webpackHotUpdate;Hn.webpackHotUpdate=function(){return Xi=!0,setTimeout(function(){Xi=!1},0),sh.apply(void 0,arguments)}}}function ya(e,t,r,n,o){var i=h.useContext(Sn),a=i.cache,l=[e].concat(rt(t)),c=Ki(l),u=nh([c]),f=ah(),d=function(w){a.opUpdate(c,function(p){var S=p||[void 0,void 0],m=re(S,2),O=m[0],T=O===void 0?0:O,j=m[1],x=j;process.env.NODE_ENV!=="production"&&j&&f&&(n?.(x,f),x=null);var R=x||r(),$=[T,R];return w?w($):$})};h.useMemo(function(){d()},[c]);var g=a.opGet(c);process.env.NODE_ENV!=="production"&&!g&&(d(),g=a.opGet(c));var C=g[1];return Zf(function(){o?.(C)},function(b){return d(function(w){var p=re(w,2),S=p[0],m=p[1];return b&&S===0&&o?.(C),[S+1,m]}),function(){a.opUpdate(c,function(w){var p=w||[],S=re(p,2),m=S[0],O=m===void 0?0:m,T=S[1],j=O-1;return j===0?(u(function(){(b||!a.opGet(c))&&n?.(T,!1)}),null):[O-1,T]})}},[c]),C}var lh={},ch=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",lr=new Map;function uh(e){lr.set(e,(lr.get(e)||0)+1)}function dh(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(gn,'="').concat(e,'"]'));r.forEach(function(n){if(n[er]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var fh=0;function hh(e,t){lr.set(e,(lr.get(e)||0)-1);var r=new Set;lr.forEach(function(n,o){n<=0&&r.add(o)}),lr.size-r.size>fh&&r.forEach(function(n){dh(n,t),lr.delete(n)})}var gh=function(t,r,n,o){var i=n.getDerivativeToken(t),a=Q(Q({},i),r);return o&&(a=o(a)),a},ph="token";function mh(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=v.useContext(Sn),o=n.cache.instanceId,i=n.container,a=r.salt,l=a===void 0?"":a,c=r.override,u=c===void 0?lh:c,f=r.formatToken,d=r.getComputedToken,g=r.cssVar,C=Gf(function(){return Object.assign.apply(Object,[{}].concat(rt(t)))},t),b=sn(C),w=sn(u),p=g?sn(g):"",S=ya(ph,[l,e.id,b,w,p],function(){var m,O=d?d(C,u,e):gh(C,u,e,f),T=Q({},O),j="";if(g){var x=ac(O,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve}),R=re(x,2);O=R[0],j=R[1]}var $=ys(O,l);O._tokenKey=$,T._tokenKey=ys(T,l);var L=(m=g?.key)!==null&&m!==void 0?m:$;O._themeKey=L,uh(L);var B="".concat(ch,"-").concat(hn($));return O._hashId=B,[O,B,T,j,g?.key||""]},function(m){hh(m[0]._themeKey,o)},function(m){var O=re(m,4),T=O[0],j=O[3];if(g&&j){var x=Ht(j,hn("css-variables-".concat(T._themeKey)),{mark:Mt,prepend:"queue",attachTo:i,priority:-999});x[er]=o,x.setAttribute(gn,T._themeKey)}});return S}var vh={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},sc="comm",lc="rule",cc="decl",bh="@import",yh="@namespace",xh="@keyframes",Ch="@layer",uc=Math.abs,xa=String.fromCharCode;function dc(e){return e.trim()}function ro(e,t,r){return e.replace(t,r)}function wh(e,t,r){return e.indexOf(t,r)}function Er(e,t){return e.charCodeAt(t)|0}function Tr(e,t,r){return e.slice(t,r)}function Pt(e){return e.length}function Sh(e){return e.length}function Vn(e,t){return t.push(e),e}var jo=1,Or=1,fc=0,vt=0,Ge=0,Nr="";function Ca(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:jo,column:Or,length:a,return:"",siblings:l}}function Eh(){return Ge}function Rh(){return Ge=vt>0?Er(Nr,--vt):0,Or--,Ge===10&&(Or=1,jo--),Ge}function jt(){return Ge=vt<fc?Er(Nr,vt++):0,Or++,Ge===10&&(Or=1,jo++),Ge}function tr(){return Er(Nr,vt)}function no(){return vt}function $o(e,t){return Tr(Nr,e,t)}function pn(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 jh(e){return jo=Or=1,fc=Pt(Nr=e),vt=0,[]}function $h(e){return Nr="",e}function si(e){return dc($o(vt-1,Qi(e===91?e+2:e===40?e+1:e)))}function Th(e){for(;(Ge=tr())&&Ge<33;)jt();return pn(e)>2||pn(Ge)>3?"":" "}function Oh(e,t){for(;--t&&jt()&&!(Ge<48||Ge>102||Ge>57&&Ge<65||Ge>70&&Ge<97););return $o(e,no()+(t<6&&tr()==32&&jt()==32))}function Qi(e){for(;jt();)switch(Ge){case e:return vt;case 34:case 39:e!==34&&e!==39&&Qi(Ge);break;case 40:e===41&&Qi(e);break;case 92:jt();break}return vt}function _h(e,t){for(;jt()&&e+Ge!==57;)if(e+Ge===84&&tr()===47)break;return"/*"+$o(t,vt-1)+"*"+xa(e===47?e:jt())}function Ih(e){for(;!pn(tr());)jt();return $o(e,vt)}function Ph(e){return $h(oo("",null,null,null,[""],e=jh(e),0,[0],e))}function oo(e,t,r,n,o,i,a,l,c){for(var u=0,f=0,d=a,g=0,C=0,b=0,w=1,p=1,S=1,m=0,O="",T=o,j=i,x=n,R=O;p;)switch(b=m,m=jt()){case 40:if(b!=108&&Er(R,d-1)==58){wh(R+=ro(si(m),"&","&\f"),"&\f",uc(u?l[u-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:R+=si(m);break;case 9:case 10:case 13:case 32:R+=Th(b);break;case 92:R+=Oh(no()-1,7);continue;case 47:switch(tr()){case 42:case 47:Vn(Mh(_h(jt(),no()),t,r,c),c),(pn(b||1)==5||pn(tr()||1)==5)&&Pt(R)&&Tr(R,-1,void 0)!==" "&&(R+=" ");break;default:R+="/"}break;case 123*w:l[u++]=Pt(R)*S;case 125*w:case 59:case 0:switch(m){case 0:case 125:p=0;case 59+f:S==-1&&(R=ro(R,/\f/g,"")),C>0&&(Pt(R)-d||w===0&&b===47)&&Vn(C>32?ws(R+";",n,r,d-1,c):ws(ro(R," ","")+";",n,r,d-2,c),c);break;case 59:R+=";";default:if(Vn(x=Cs(R,t,r,u,f,o,l,O,T=[],j=[],d,i),i),m===123)if(f===0)oo(R,t,x,x,T,i,d,l,j);else{switch(g){case 99:if(Er(R,3)===110)break;case 108:if(Er(R,2)===97)break;default:f=0;case 100:case 109:case 115:}f?oo(e,x,x,n&&Vn(Cs(e,x,x,0,0,o,l,O,o,T=[],d,j),j),o,j,d,l,n?T:j):oo(R,x,x,x,[""],j,0,l,j)}}u=f=C=0,w=S=1,O=R="",d=a;break;case 58:d=1+Pt(R),C=b;default:if(w<1){if(m==123)--w;else if(m==125&&w++==0&&Rh()==125)continue}switch(R+=xa(m),m*w){case 38:S=f>0?1:(R+="\f",-1);break;case 44:l[u++]=(Pt(R)-1)*S,S=1;break;case 64:tr()===45&&(R+=si(jt())),g=tr(),f=d=Pt(O=R+=Ih(no())),m++;break;case 45:b===45&&Pt(R)==2&&(w=0)}}return i}function Cs(e,t,r,n,o,i,a,l,c,u,f,d){for(var g=o-1,C=o===0?i:[""],b=Sh(C),w=0,p=0,S=0;w<n;++w)for(var m=0,O=Tr(e,g+1,g=uc(p=a[w])),T=e;m<b;++m)(T=dc(p>0?C[m]+" "+O:ro(O,/&\f/g,C[m])))&&(c[S++]=T);return Ca(e,t,r,o===0?lc:l,c,u,f,d)}function Mh(e,t,r,n){return Ca(e,t,r,sc,xa(Eh()),Tr(e,2,-2),0,n)}function ws(e,t,r,n,o){return Ca(e,t,r,cc,Tr(e,0,n),Tr(e,n+1,-1),n,o)}function Zi(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function kh(e,t,r,n){switch(e.type){case Ch:if(e.children.length)break;case bh:case yh:case cc:return e.return=e.return||e.value;case sc:return"";case xh:return e.return=e.value+"{"+Zi(e.children,n)+"}";case lc:if(!Pt(e.value=e.props.join(",")))return""}return Pt(r=Zi(e.children,n))?e.return=e.value+"{"+r+"}":""}function hc(e,t){var r=t.path,n=t.parentSelectors;Wt(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var Ah=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)!=="'"))&&hc("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},Nh=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&hc("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Ss="data-ant-cssinjs-cache-path",gc="_FILE_STYLE__",ur,pc=!0;function Dh(){if(!ur&&(ur={},st())){var e=document.createElement("div");e.className=Ss,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];ur[l]=c});var r=document.querySelector("style[".concat(Ss,"]"));if(r){var n;pc=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function Bh(e){return Dh(),!!ur[e]}function zh(e){var t=ur[e],r=null;if(t&&st())if(pc)r=gc;else{var n=document.querySelector("style[".concat(Mt,'="').concat(ur[e],'"]'));n?r=n.innerHTML:delete ur[e]}return[r,t]}var mc="_skip_check_",vc="_multi_value_";function li(e){var t=Zi(Ph(e),kh);return t.replace(/\{%%%\:[^;];}/g,";")}function Lh(e){return Se(e)==="object"&&e&&(mc in e||vc in e)}function Es(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+/),u=c[0]||"",f=((l=u.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return u="".concat(f).concat(o).concat(u.slice(f.length)),[u].concat(rt(c.slice(1))).join(" ")});return i.join(",")}var Fh=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,u=r.path,f=r.hashPriority,d=r.transformers,g=d===void 0?[]:d,C=r.linters,b=C===void 0?[]:C,w="",p={};function S(T){var j=T.getName(l);if(!p[j]){var x=e(T.style,r,{root:!1,parentSelectors:a}),R=re(x,1),$=R[0];p[j]="@keyframes ".concat(T.getName(l)).concat($)}}function m(T){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return T.forEach(function(x){Array.isArray(x)?m(x,j):x&&j.push(x)}),j}var O=m(Array.isArray(t)?t:[t]);return O.forEach(function(T){var j=typeof T=="string"&&!o?{}:T;if(typeof j=="string")w+="".concat(j,`
81
- `);else if(j._keyframe)S(j);else{var x=g.reduce(function(R,$){var L;return($==null||(L=$.visit)===null||L===void 0?void 0:L.call($,R))||R},j);Object.keys(x).forEach(function(R){var $=x[R];if(Se($)==="object"&&$&&(R!=="animationName"||!$._keyframe)&&!Lh($)){var L=!1,B=R.trim(),q=!1;(o||i)&&l?B.startsWith("@")?L=!0:B==="&"?B=Es("",l,f):B=Es(R,l,f):o&&!l&&(B==="&"||B==="")&&(B="",q=!0);var I=e($,r,{root:q,injectHash:L,parentSelectors:[].concat(rt(a),[B])}),N=re(I,2),F=N[0],P=N[1];p=Q(Q({},p),P),w+="".concat(B).concat(F)}else{let W=function(H,X){process.env.NODE_ENV!=="production"&&(Se($)!=="object"||!($!=null&&$[mc]))&&[Ah,Nh].concat(rt(b)).forEach(function(te){return te(H,X,{path:u,hashId:l,parentSelectors:a})});var J=H.replace(/[A-Z]/g,function(te){return"-".concat(te.toLowerCase())}),K=X;!vh[H]&&typeof K=="number"&&K!==0&&(K="".concat(K,"px")),H==="animationName"&&X!==null&&X!==void 0&&X._keyframe&&(S(X),K=X.getName(l)),w+="".concat(J,":").concat(K,";")};var M,Y=(M=$?.value)!==null&&M!==void 0?M:$;Se($)==="object"&&$!==null&&$!==void 0&&$[vc]&&Array.isArray(Y)?Y.forEach(function(H){W(R,H)}):W(R,Y)}})}}),o?c&&(w&&(w="@layer ".concat(c.name," {").concat(w,"}")),c.dependencies&&(p["@layer ".concat(c.name)]=c.dependencies.map(function(T){return"@layer ".concat(T,", ").concat(c.name,";")}).join(`
82
- `))):w="{".concat(w,"}"),[w,p]};function bc(e,t){return hn("".concat(e.join("%")).concat(t))}function Hh(){return null}var Vh="style";function Ji(e,t){var r=e.token,n=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,c=e.order,u=c===void 0?0:c,f=h.useContext(Sn),d=f.autoClear,g=f.mock,C=f.defaultCache,b=f.hashPriority,w=f.container,p=f.ssrInline,S=f.transformers,m=f.linters,O=f.cache,T=f.layer,j=r._tokenKey,x=[j];T&&x.push("layer"),x.push.apply(x,rt(n));var R=Yi;process.env.NODE_ENV!=="production"&&g!==void 0&&(R=g==="client");var $=ya(Vh,x,function(){var N=x.join("|");if(Bh(N)){var F=zh(N),P=re(F,2),M=P[0],Y=P[1];if(M)return[M,j,Y,{},l,u]}var W=t(),H=Fh(W,{hashId:o,hashPriority:b,layer:T?i:void 0,path:n.join("-"),transformers:S,linters:m}),X=re(H,2),J=X[0],K=X[1],te=li(J),se=bc(x,te);return[te,j,se,K,l,u]},function(N,F){var P=re(N,3),M=P[2];(F||d)&&Yi&&cn(M,{mark:Mt,attachTo:w})},function(N){var F=re(N,4),P=F[0],M=F[2],Y=F[3];if(R&&P!==gc){var W={mark:Mt,prepend:T?!1:"queue",attachTo:w,priority:u},H=typeof a=="function"?a():a;H&&(W.csp={nonce:H});var X=[],J=[];Object.keys(Y).forEach(function(te){te.startsWith("@layer")?X.push(te):J.push(te)}),X.forEach(function(te){Ht(li(Y[te]),"_layer-".concat(te),Q(Q({},W),{},{prepend:!0}))});var K=Ht(P,M,W);K[er]=O.instanceId,K.setAttribute(gn,j),process.env.NODE_ENV!=="production"&&K.setAttribute(Wf,x.join("|")),J.forEach(function(te){Ht(li(Y[te]),"_effect-".concat(te),W)})}}),L=re($,3),B=L[0],q=L[1],I=L[2];return function(N){var F;return!p||R||!C?F=h.createElement(Hh,null):F=h.createElement("style",Ze({},ee(ee({},gn,q),Mt,I),{dangerouslySetInnerHTML:{__html:B}})),h.createElement(h.Fragment,null,F,N)}}var Wh="cssVar",qh=function(t,r){var n=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,c=t.scope,u=c===void 0?"":c,f=v.useContext(Sn),d=f.cache.instanceId,g=f.container,C=l._tokenKey,b=[].concat(rt(t.path),[n,u,C]),w=ya(Wh,b,function(){var p=r(),S=ac(p,n,{prefix:o,unitless:i,ignore:a,scope:u}),m=re(S,2),O=m[0],T=m[1],j=bc(b,T);return[O,T,j,n]},function(p){var S=re(p,3),m=S[2];Yi&&cn(m,{mark:Mt,attachTo:g})},function(p){var S=re(p,3),m=S[1],O=S[2];if(m){var T=Ht(m,O,{mark:Mt,prepend:"queue",attachTo:g,priority:-999});T[er]=d,T.setAttribute(gn,n)}});return w},xt=(function(){function e(t,r){bt(this,e),ee(this,"name",void 0),ee(this,"style",void 0),ee(this,"_keyframe",!0),this.name=t,this.style=r}return yt(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 Uh(e){return Il(e)||_l(e)||ua(e)||Pl()}function ea(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function yc(e,t,r,n){if(!t.length)return r;var o=Uh(t),i=o[0],a=o.slice(1),l;return!e&&typeof i=="number"?l=[]:Array.isArray(e)?l=rt(e):l=Q({},e),n&&r===void 0&&a.length===1?delete l[i][a[0]]:l[i]=yc(l[i],a,r,n),l}function ci(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!ea(e,t.slice(0,-1))?e:yc(e,t,r,n)}function Kh(e){return Se(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Rs(e){return Array.isArray(e)?[]:{}}var Gh=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Yh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Rs(t[0]);return t.forEach(function(o){function i(a,l){var c=new Set(l),u=ea(o,a),f=Array.isArray(u);if(f||Kh(u)){if(!c.has(u)){c.add(u);var d=ea(n,a);f?n=ci(n,a,[]):(!d||Se(d)!=="object")&&(n=ci(n,a,Rs(u))),Gh(u).forEach(function(g){i([].concat(rt(a),[g]),c)})}}else n=ci(n,a,u)}i([])}),n}function xc(){}let zt=null;function Xh(){zt=null,Fl()}let Cc=xc;process.env.NODE_ENV!=="production"&&(Cc=(e,t,r)=>{Wt(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&Xh()});const En=Cc,wc=h.createContext({}),kt=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=h.useContext(wc),r=(n,o,i)=>{if(!n)if(t===!1&&o==="deprecated"){const a=zt;zt||(zt={}),zt[e]=zt[e]||[],zt[e].includes(i||"")||zt[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",zt)}else process.env.NODE_ENV!=="production"&&En(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=xc,e},Qh=v.createContext(void 0);var Zh={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"},Jh={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},eg=Q(Q({},Jh),{},{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 Sc={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},js={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"]},eg),timePickerLocale:Object.assign({},Sc)},ut="${label} is not a valid ${type}",_r={locale:"en",Pagination:Zh,DatePicker:js,TimePicker:Sc,Calendar:js,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:ut,method:ut,array:ut,object:ut,number:ut,date:ut,boolean:ut,integer:ut,float:ut,regexp:ut,email:ut,url:ut,hex:ut},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({},_r.Modal);let io=[];const $s=()=>io.reduce((e,t)=>Object.assign(Object.assign({},e),t),_r.Modal);function tg(e){if(e){const t=Object.assign({},e);return io.push(t),$s(),()=>{io=io.filter(r=>r!==t),$s()}}Object.assign({},_r.Modal)}const wa=v.createContext(void 0),rg=(e,t)=>{const r=h.useContext(wa),n=h.useMemo(()=>{var i;const a=_r[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=h.useMemo(()=>{const i=r?.locale;return r?.exist&&!i?_r.locale:i},[r]);return[n,o]},Ec="internalMark",Rc=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const i=kt("LocaleProvider");process.env.NODE_ENV!=="production"&&i(n===Ec,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}h.useEffect(()=>tg(t?.Modal),[t]);const o=h.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return h.createElement(wa.Provider,{value:o},r)};process.env.NODE_ENV!=="production"&&(Rc.displayName="LocaleProvider");const jc={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"},mn=Object.assign(Object.assign({},jc),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
80
+ */var ds;function uf(){return ds||(ds=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"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),b=!1,w=!1,p=!1,S=!1,m=!1,O;O=Symbol.for("react.module.reference");function T(I){return!!(typeof I=="string"||typeof I=="function"||I===r||I===o||m||I===n||I===u||I===f||S||I===C||b||w||p||typeof I=="object"&&I!==null&&(I.$$typeof===g||I.$$typeof===d||I.$$typeof===i||I.$$typeof===a||I.$$typeof===c||I.$$typeof===O||I.getModuleId!==void 0))}function j(I){if(typeof I=="object"&&I!==null){var G=I.$$typeof;switch(G){case e:var U=I.type;switch(U){case r:case o:case n:case u:case f:return U;default:var Z=U&&U.$$typeof;switch(Z){case l:case a:case c:case g:case d:case i:return Z;default:return G}}case t:return G}}}var x=a,R=i,$=e,F=c,B=r,q=g,_=d,D=t,H=o,P=n,A=u,Y=f,W=!1,V=!1;function X(I){return W||(W=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function J(I){return V||(V=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function K(I){return j(I)===a}function te(I){return j(I)===i}function se(I){return typeof I=="object"&&I!==null&&I.$$typeof===e}function ge(I){return j(I)===c}function ce(I){return j(I)===r}function ve(I){return j(I)===g}function E(I){return j(I)===d}function N(I){return j(I)===t}function z(I){return j(I)===o}function M(I){return j(I)===n}function L(I){return j(I)===u}function k(I){return j(I)===f}$e.ContextConsumer=x,$e.ContextProvider=R,$e.Element=$,$e.ForwardRef=F,$e.Fragment=B,$e.Lazy=q,$e.Memo=_,$e.Portal=D,$e.Profiler=H,$e.StrictMode=P,$e.Suspense=A,$e.SuspenseList=Y,$e.isAsyncMode=X,$e.isConcurrentMode=J,$e.isContextConsumer=K,$e.isContextProvider=te,$e.isElement=se,$e.isForwardRef=ge,$e.isFragment=ce,$e.isLazy=ve,$e.isMemo=E,$e.isPortal=N,$e.isProfiler=z,$e.isStrictMode=M,$e.isSuspense=L,$e.isSuspenseList=k,$e.isValidElementType=T,$e.typeOf=j})()),$e}var fs;function df(){return fs||(fs=1,process.env.NODE_ENV==="production"?Fn.exports=cf():Fn.exports=uf()),Fn.exports}var ni=df();function ga(e,t,r){var n=h.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var ff=Number(v.version.split(".")[0]),pa=function(t,r){typeof t=="function"?t(r):Se(t)==="object"&&t&&"current"in t&&(t.current=r)},xn=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){pa(a,i)})}},ma=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ga(function(){return xn.apply(void 0,r)},r,function(o,i){return o.length!==i.length||o.every(function(a,l){return a!==i[l]})})},Eo=function(t){var r,n;if(!t)return!1;if(Gl(t)&&ff>=19)return!0;var o=ni.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((r=o.prototype)!==null&&r!==void 0&&r.render)&&o.$$typeof!==ni.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==ni.ForwardRef)};function Gl(e){return v.isValidElement(e)&&!Kl(e)}var va=function(t){if(t&&Gl(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},Wi=h.createContext(null);function hf(e){var t=e.children,r=e.onBatchResize,n=h.useRef(0),o=h.useRef([]),i=h.useContext(Wi),a=h.useCallback(function(l,c,u){n.current+=1;var f=n.current;o.current.push({size:l,element:c,data:u}),Promise.resolve().then(function(){f===n.current&&(r?.(o.current),o.current=[])}),i?.(l,c,u)},[r,i]);return h.createElement(Wi.Provider,{value:a},t)}var Yl=(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})()})(),qi=typeof window<"u"&&typeof document<"u"&&window.document===document,ho=(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")()})(),gf=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(ho):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),pf=2;function mf(e,t){var r=!1,n=!1,o=0;function i(){r&&(r=!1,e()),n&&l()}function a(){gf(i)}function l(){var c=Date.now();if(r){if(c-o<pf)return;n=!0}else r=!0,n=!1,setTimeout(a,t);o=c}return l}var vf=20,bf=["top","right","bottom","left","width","height","size","weight"],yf=typeof MutationObserver<"u",xf=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=mf(this.refresh.bind(this),vf)}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(){!qi||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),yf?(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(){!qi||!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=bf.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})(),Xl=(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}),jr=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||ho}),Ql=Ro(0,0,0,0);function go(e){return parseFloat(e)||0}function hs(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+go(i)},0)}function Cf(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]=go(a)}return r}function wf(e){var t=e.getBBox();return Ro(0,0,t.width,t.height)}function Sf(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Ql;var n=jr(e).getComputedStyle(e),o=Cf(n),i=o.left+o.right,a=o.top+o.bottom,l=go(n.width),c=go(n.height);if(n.boxSizing==="border-box"&&(Math.round(l+i)!==t&&(l-=hs(n,"left","right")+i),Math.round(c+a)!==r&&(c-=hs(n,"top","bottom")+a)),!Rf(e)){var u=Math.round(l+i)-t,f=Math.round(c+a)-r;Math.abs(u)!==1&&(l-=u),Math.abs(f)!==1&&(c-=f)}return Ro(o.left,o.top,l,c)}var Ef=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof jr(e).SVGGraphicsElement}:function(e){return e instanceof jr(e).SVGElement&&typeof e.getBBox=="function"}})();function Rf(e){return e===jr(e).document.documentElement}function jf(e){return qi?Ef(e)?wf(e):Sf(e):Ql}function $f(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 Xl(a,{x:t,y:r,width:n,height:o,top:r,right:t+n,bottom:o+r,left:t}),a}function Ro(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Tf=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Ro(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=jf(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})(),Of=(function(){function e(t,r){var n=$f(r);Xl(this,{target:t,contentRect:n})}return e})(),_f=(function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Yl,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 jr(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Tf(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 jr(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 Of(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})(),Zl=typeof WeakMap<"u"?new WeakMap:new Yl,Jl=(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=xf.getInstance(),n=new _f(t,r,this);Zl.set(this,n)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Jl.prototype[e]=function(){var t;return(t=Zl.get(this))[e].apply(t,arguments)}});var If=(function(){return typeof ho.ResizeObserver<"u"?ho.ResizeObserver:Jl})(),Ft=new Map;function ec(e){e.forEach(function(t){var r,n=t.target;(r=Ft.get(n))===null||r===void 0||r.forEach(function(o){return o(n)})})}var tc=new If(ec);process.env.NODE_ENV;process.env.NODE_ENV;function Pf(e,t){Ft.has(e)||(Ft.set(e,new Set),tc.observe(e)),Ft.get(e).add(t)}function Mf(e,t){Ft.has(e)&&(Ft.get(e).delete(t),Ft.get(e).size||(tc.unobserve(e),Ft.delete(e)))}function bt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kf(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,Ml(n.key),n)}}function yt(e,t,r){return t&&kf(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ui(e,t){return Ui=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ui(e,t)}function Cn(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&&Ui(e,t)}function po(e){return po=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},po(e)}function rc(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rc=function(){return!!e})()}function an(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Af(e,t){if(t&&(Se(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return an(e)}function wn(e){var t=rc();return function(){var r,n=po(e);if(t){var o=po(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return Af(this,r)}}var Nf=(function(e){Cn(r,e);var t=wn(r);function r(){return bt(this,r),t.apply(this,arguments)}return yt(r,[{key:"render",value:function(){return this.props.children}}]),r})(h.Component);function Df(e,t){var r=e.children,n=e.disabled,o=h.useRef(null),i=h.useRef(null),a=h.useContext(Wi),l=typeof r=="function",c=l?r(o):r,u=h.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!l&&h.isValidElement(c)&&Eo(c),d=f?va(c):null,g=ma(d,o),C=function(){var S;return eo(o.current)||(o.current&&Se(o.current)==="object"?eo((S=o.current)===null||S===void 0?void 0:S.nativeElement):null)||eo(i.current)};h.useImperativeHandle(t,function(){return C()});var b=h.useRef(e);b.current=e;var w=h.useCallback(function(p){var S=b.current,m=S.onResize,O=S.data,T=p.getBoundingClientRect(),j=T.width,x=T.height,R=p.offsetWidth,$=p.offsetHeight,F=Math.floor(j),B=Math.floor(x);if(u.current.width!==F||u.current.height!==B||u.current.offsetWidth!==R||u.current.offsetHeight!==$){var q={width:F,height:B,offsetWidth:R,offsetHeight:$};u.current=q;var _=R===Math.round(j)?j:R,D=$===Math.round(x)?x:$,H=Q(Q({},q),{},{offsetWidth:_,offsetHeight:D});a?.(H,p,O),m&&Promise.resolve().then(function(){m(H,p)})}},[]);return h.useEffect(function(){var p=C();return p&&!n&&Pf(p,w),function(){return Mf(p,w)}},[o.current,n]),h.createElement(Nf,{ref:i},f?h.cloneElement(c,{ref:g}):c)}var nc=h.forwardRef(Df);process.env.NODE_ENV!=="production"&&(nc.displayName="SingleObserver");var Bf="rc-observer-key";function zf(e,t){var r=e.children,n=typeof r=="function"?[r]:un(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(Bf,"-").concat(i);return h.createElement(nc,Ze({},e,{key:a,ref:i===0?t:void 0}),o)})}var Ar=h.forwardRef(zf);process.env.NODE_ENV!=="production"&&(Ar.displayName="ResizeObserver");Ar.Collection=hf;var gs=process.env.NODE_ENV!=="test"&&st()?h.useLayoutEffect:h.useEffect,Le=function(t,r){var n=h.useRef(!0);gs(function(){return t(n.current)},r),gs(function(){return n.current=!1,function(){n.current=!0}},[])},ps=function(t,r){Le(function(n){if(!n)return t()},r)};function ft(e){var t=h.useRef();t.current=e;var r=h.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 fn(e){var t=h.useRef(!1),r=h.useState(e),n=re(r,2),o=n[0],i=n[1];h.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(l,c){c&&t.current||i(l)}return[o,a]}function oi(e){return e!==void 0}function $r(e,t){var r=t||{},n=r.defaultValue,o=r.value,i=r.onChange,a=r.postState,l=fn(function(){return oi(o)?o:oi(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),c=re(l,2),u=c[0],f=c[1],d=o!==void 0?o:u,g=a?a(d):d,C=ft(i),b=fn([d]),w=re(b,2),p=w[0],S=w[1];ps(function(){var O=p[0];u!==O&&C(u,O)},[p]),ps(function(){oi(o)||f(o)},[o]);var m=ft(function(O,T){f(O,T),S([d],T)});return[g,m]}function oc(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}var Lf=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 ms(e,t){return Lf(e)}function hn(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 Ff(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(Wt(!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 u=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],u))return!1;return!0}if(i&&a&&Se(i)==="object"&&Se(a)==="object"){var d=Object.keys(i);return d.length!==Object.keys(a).length?!1:d.every(function(g){return o(i[g],a[g],u)})}return!1}return o(e,t)}var Hf="%";function Ki(e){return e.join(Hf)}var Vf=(function(){function e(t){bt(this,e),ee(this,"instanceId",void 0),ee(this,"cache",new Map),ee(this,"extracted",new Set),this.instanceId=t}return yt(e,[{key:"get",value:function(r){return this.opGet(Ki(r))}},{key:"opGet",value:function(r){return this.cache.get(r)||null}},{key:"update",value:function(r,n){return this.opUpdate(Ki(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})(),gn="data-token-hash",Mt="data-css-hash",Wf="data-cache-path",er="__cssinjs_instance__";function qf(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Mt,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(o){o[er]=o[er]||e,o[er]===e&&document.head.insertBefore(o,r)});var n={};Array.from(document.querySelectorAll("style[".concat(Mt,"]"))).forEach(function(o){var i=o.getAttribute(Mt);if(n[i]){if(o[er]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else n[i]=!0})}return new Vf(e)}var Sn=h.createContext({hashPriority:"low",cache:qf(),defaultCache:!0});function Uf(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 ba=(function(){function e(){bt(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 yt(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(u,f){var d=re(u,2),g=d[1];return o.internalGet(f)[1]<g?[f,o.internalGet(f)[1]]:u},[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(u,f){if(f===r.length-1)c.set(u,{value:[n,o.cacheCallTimes++]});else{var d=c.get(u);d?d.map||(d.map=new Map):c.set(u,{map:new Map}),c=c.get(u).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!Uf(n,r)}),this.deleteByPath(this.cache,r)}}]),e})();ee(ba,"MAX_CACHE_SIZE",20);ee(ba,"MAX_CACHE_OFFSET",5);var vs=0,ic=(function(){function e(t){bt(this,e),ee(this,"derivatives",void 0),ee(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=vs,t.length===0&&Rr(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),vs+=1}return yt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,o){return o(r,n)},void 0)}}]),e})(),ii=new ba;function Gi(e){var t=Array.isArray(e)?e:[e];return ii.has(t)||ii.set(t,new ic(t)),ii.get(t)}var Kf=new WeakMap,ai={};function Gf(e,t){for(var r=Kf,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(ai)||r.set(ai,e()),r.get(ai)}var bs=new WeakMap;function sn(e){var t=bs.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof ic?t+=n.id:n&&Se(n)==="object"?t+=sn(n):t+=n}),t=hn(t),bs.set(e,t)),t}function ys(e,t){return hn("".concat(t,"_").concat(sn(e)))}var Yi=st();function Ie(e){return typeof e=="number"?"".concat(e,"px"):e}var to=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()},Yf=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(""),"}"):""},ac=function(t,r,n){var o={},i={};return Object.entries(t).forEach(function(a){var l,c,u=re(a,2),f=u[0],d=u[1];if(n!=null&&(l=n.preserve)!==null&&l!==void 0&&l[f])i[f]=d;else if((typeof d=="string"||typeof d=="number")&&!(n!=null&&(c=n.ignore)!==null&&c!==void 0&&c[f])){var g,C=to(f,n?.prefix);o[C]=typeof d=="number"&&!(n!=null&&(g=n.unitless)!==null&&g!==void 0&&g[f])?"".concat(d,"px"):String(d),i[f]="var(".concat(C,")")}}),[i,Yf(o,r,{scope:n?.scope})]},Xf=Q({},h),xs=Xf.useInsertionEffect,Qf=function(t,r,n){h.useMemo(t,n),Le(function(){return r(!0)},n)},Zf=xs?function(e,t,r){return xs(function(){return e(),t()},r)}:Qf,Jf=Q({},h),eh=Jf.useInsertionEffect,th=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 h.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),o},rh=function(){return function(t){t()}},nh=typeof eh<"u"?th:rh;function oh(){return!1}var Xi=!1;function ih(){return Xi}const ah=process.env.NODE_ENV==="production"?oh:ih;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var Hn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(Hn&&typeof Hn.webpackHotUpdate=="function"){var sh=Hn.webpackHotUpdate;Hn.webpackHotUpdate=function(){return Xi=!0,setTimeout(function(){Xi=!1},0),sh.apply(void 0,arguments)}}}function ya(e,t,r,n,o){var i=h.useContext(Sn),a=i.cache,l=[e].concat(rt(t)),c=Ki(l),u=nh([c]),f=ah(),d=function(w){a.opUpdate(c,function(p){var S=p||[void 0,void 0],m=re(S,2),O=m[0],T=O===void 0?0:O,j=m[1],x=j;process.env.NODE_ENV!=="production"&&j&&f&&(n?.(x,f),x=null);var R=x||r(),$=[T,R];return w?w($):$})};h.useMemo(function(){d()},[c]);var g=a.opGet(c);process.env.NODE_ENV!=="production"&&!g&&(d(),g=a.opGet(c));var C=g[1];return Zf(function(){o?.(C)},function(b){return d(function(w){var p=re(w,2),S=p[0],m=p[1];return b&&S===0&&o?.(C),[S+1,m]}),function(){a.opUpdate(c,function(w){var p=w||[],S=re(p,2),m=S[0],O=m===void 0?0:m,T=S[1],j=O-1;return j===0?(u(function(){(b||!a.opGet(c))&&n?.(T,!1)}),null):[O-1,T]})}},[c]),C}var lh={},ch=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",lr=new Map;function uh(e){lr.set(e,(lr.get(e)||0)+1)}function dh(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(gn,'="').concat(e,'"]'));r.forEach(function(n){if(n[er]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var fh=0;function hh(e,t){lr.set(e,(lr.get(e)||0)-1);var r=new Set;lr.forEach(function(n,o){n<=0&&r.add(o)}),lr.size-r.size>fh&&r.forEach(function(n){dh(n,t),lr.delete(n)})}var gh=function(t,r,n,o){var i=n.getDerivativeToken(t),a=Q(Q({},i),r);return o&&(a=o(a)),a},ph="token";function mh(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=v.useContext(Sn),o=n.cache.instanceId,i=n.container,a=r.salt,l=a===void 0?"":a,c=r.override,u=c===void 0?lh:c,f=r.formatToken,d=r.getComputedToken,g=r.cssVar,C=Gf(function(){return Object.assign.apply(Object,[{}].concat(rt(t)))},t),b=sn(C),w=sn(u),p=g?sn(g):"",S=ya(ph,[l,e.id,b,w,p],function(){var m,O=d?d(C,u,e):gh(C,u,e,f),T=Q({},O),j="";if(g){var x=ac(O,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve}),R=re(x,2);O=R[0],j=R[1]}var $=ys(O,l);O._tokenKey=$,T._tokenKey=ys(T,l);var F=(m=g?.key)!==null&&m!==void 0?m:$;O._themeKey=F,uh(F);var B="".concat(ch,"-").concat(hn($));return O._hashId=B,[O,B,T,j,g?.key||""]},function(m){hh(m[0]._themeKey,o)},function(m){var O=re(m,4),T=O[0],j=O[3];if(g&&j){var x=Ht(j,hn("css-variables-".concat(T._themeKey)),{mark:Mt,prepend:"queue",attachTo:i,priority:-999});x[er]=o,x.setAttribute(gn,T._themeKey)}});return S}var vh={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},sc="comm",lc="rule",cc="decl",bh="@import",yh="@namespace",xh="@keyframes",Ch="@layer",uc=Math.abs,xa=String.fromCharCode;function dc(e){return e.trim()}function ro(e,t,r){return e.replace(t,r)}function wh(e,t,r){return e.indexOf(t,r)}function Er(e,t){return e.charCodeAt(t)|0}function Tr(e,t,r){return e.slice(t,r)}function Pt(e){return e.length}function Sh(e){return e.length}function Vn(e,t){return t.push(e),e}var jo=1,Or=1,fc=0,vt=0,Ge=0,Nr="";function Ca(e,t,r,n,o,i,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:jo,column:Or,length:a,return:"",siblings:l}}function Eh(){return Ge}function Rh(){return Ge=vt>0?Er(Nr,--vt):0,Or--,Ge===10&&(Or=1,jo--),Ge}function jt(){return Ge=vt<fc?Er(Nr,vt++):0,Or++,Ge===10&&(Or=1,jo++),Ge}function tr(){return Er(Nr,vt)}function no(){return vt}function $o(e,t){return Tr(Nr,e,t)}function pn(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 jh(e){return jo=Or=1,fc=Pt(Nr=e),vt=0,[]}function $h(e){return Nr="",e}function si(e){return dc($o(vt-1,Qi(e===91?e+2:e===40?e+1:e)))}function Th(e){for(;(Ge=tr())&&Ge<33;)jt();return pn(e)>2||pn(Ge)>3?"":" "}function Oh(e,t){for(;--t&&jt()&&!(Ge<48||Ge>102||Ge>57&&Ge<65||Ge>70&&Ge<97););return $o(e,no()+(t<6&&tr()==32&&jt()==32))}function Qi(e){for(;jt();)switch(Ge){case e:return vt;case 34:case 39:e!==34&&e!==39&&Qi(Ge);break;case 40:e===41&&Qi(e);break;case 92:jt();break}return vt}function _h(e,t){for(;jt()&&e+Ge!==57;)if(e+Ge===84&&tr()===47)break;return"/*"+$o(t,vt-1)+"*"+xa(e===47?e:jt())}function Ih(e){for(;!pn(tr());)jt();return $o(e,vt)}function Ph(e){return $h(oo("",null,null,null,[""],e=jh(e),0,[0],e))}function oo(e,t,r,n,o,i,a,l,c){for(var u=0,f=0,d=a,g=0,C=0,b=0,w=1,p=1,S=1,m=0,O="",T=o,j=i,x=n,R=O;p;)switch(b=m,m=jt()){case 40:if(b!=108&&Er(R,d-1)==58){wh(R+=ro(si(m),"&","&\f"),"&\f",uc(u?l[u-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:R+=si(m);break;case 9:case 10:case 13:case 32:R+=Th(b);break;case 92:R+=Oh(no()-1,7);continue;case 47:switch(tr()){case 42:case 47:Vn(Mh(_h(jt(),no()),t,r,c),c),(pn(b||1)==5||pn(tr()||1)==5)&&Pt(R)&&Tr(R,-1,void 0)!==" "&&(R+=" ");break;default:R+="/"}break;case 123*w:l[u++]=Pt(R)*S;case 125*w:case 59:case 0:switch(m){case 0:case 125:p=0;case 59+f:S==-1&&(R=ro(R,/\f/g,"")),C>0&&(Pt(R)-d||w===0&&b===47)&&Vn(C>32?ws(R+";",n,r,d-1,c):ws(ro(R," ","")+";",n,r,d-2,c),c);break;case 59:R+=";";default:if(Vn(x=Cs(R,t,r,u,f,o,l,O,T=[],j=[],d,i),i),m===123)if(f===0)oo(R,t,x,x,T,i,d,l,j);else{switch(g){case 99:if(Er(R,3)===110)break;case 108:if(Er(R,2)===97)break;default:f=0;case 100:case 109:case 115:}f?oo(e,x,x,n&&Vn(Cs(e,x,x,0,0,o,l,O,o,T=[],d,j),j),o,j,d,l,n?T:j):oo(R,x,x,x,[""],j,0,l,j)}}u=f=C=0,w=S=1,O=R="",d=a;break;case 58:d=1+Pt(R),C=b;default:if(w<1){if(m==123)--w;else if(m==125&&w++==0&&Rh()==125)continue}switch(R+=xa(m),m*w){case 38:S=f>0?1:(R+="\f",-1);break;case 44:l[u++]=(Pt(R)-1)*S,S=1;break;case 64:tr()===45&&(R+=si(jt())),g=tr(),f=d=Pt(O=R+=Ih(no())),m++;break;case 45:b===45&&Pt(R)==2&&(w=0)}}return i}function Cs(e,t,r,n,o,i,a,l,c,u,f,d){for(var g=o-1,C=o===0?i:[""],b=Sh(C),w=0,p=0,S=0;w<n;++w)for(var m=0,O=Tr(e,g+1,g=uc(p=a[w])),T=e;m<b;++m)(T=dc(p>0?C[m]+" "+O:ro(O,/&\f/g,C[m])))&&(c[S++]=T);return Ca(e,t,r,o===0?lc:l,c,u,f,d)}function Mh(e,t,r,n){return Ca(e,t,r,sc,xa(Eh()),Tr(e,2,-2),0,n)}function ws(e,t,r,n,o){return Ca(e,t,r,cc,Tr(e,0,n),Tr(e,n+1,-1),n,o)}function Zi(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function kh(e,t,r,n){switch(e.type){case Ch:if(e.children.length)break;case bh:case yh:case cc:return e.return=e.return||e.value;case sc:return"";case xh:return e.return=e.value+"{"+Zi(e.children,n)+"}";case lc:if(!Pt(e.value=e.props.join(",")))return""}return Pt(r=Zi(e.children,n))?e.return=e.value+"{"+r+"}":""}function hc(e,t){var r=t.path,n=t.parentSelectors;Wt(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var Ah=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)!=="'"))&&hc("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},Nh=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&hc("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Ss="data-ant-cssinjs-cache-path",gc="_FILE_STYLE__",ur,pc=!0;function Dh(){if(!ur&&(ur={},st())){var e=document.createElement("div");e.className=Ss,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];ur[l]=c});var r=document.querySelector("style[".concat(Ss,"]"));if(r){var n;pc=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function Bh(e){return Dh(),!!ur[e]}function zh(e){var t=ur[e],r=null;if(t&&st())if(pc)r=gc;else{var n=document.querySelector("style[".concat(Mt,'="').concat(ur[e],'"]'));n?r=n.innerHTML:delete ur[e]}return[r,t]}var mc="_skip_check_",vc="_multi_value_";function li(e){var t=Zi(Ph(e),kh);return t.replace(/\{%%%\:[^;];}/g,";")}function Lh(e){return Se(e)==="object"&&e&&(mc in e||vc in e)}function Es(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+/),u=c[0]||"",f=((l=u.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return u="".concat(f).concat(o).concat(u.slice(f.length)),[u].concat(rt(c.slice(1))).join(" ")});return i.join(",")}var Fh=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,u=r.path,f=r.hashPriority,d=r.transformers,g=d===void 0?[]:d,C=r.linters,b=C===void 0?[]:C,w="",p={};function S(T){var j=T.getName(l);if(!p[j]){var x=e(T.style,r,{root:!1,parentSelectors:a}),R=re(x,1),$=R[0];p[j]="@keyframes ".concat(T.getName(l)).concat($)}}function m(T){var j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return T.forEach(function(x){Array.isArray(x)?m(x,j):x&&j.push(x)}),j}var O=m(Array.isArray(t)?t:[t]);return O.forEach(function(T){var j=typeof T=="string"&&!o?{}:T;if(typeof j=="string")w+="".concat(j,`
81
+ `);else if(j._keyframe)S(j);else{var x=g.reduce(function(R,$){var F;return($==null||(F=$.visit)===null||F===void 0?void 0:F.call($,R))||R},j);Object.keys(x).forEach(function(R){var $=x[R];if(Se($)==="object"&&$&&(R!=="animationName"||!$._keyframe)&&!Lh($)){var F=!1,B=R.trim(),q=!1;(o||i)&&l?B.startsWith("@")?F=!0:B==="&"?B=Es("",l,f):B=Es(R,l,f):o&&!l&&(B==="&"||B==="")&&(B="",q=!0);var _=e($,r,{root:q,injectHash:F,parentSelectors:[].concat(rt(a),[B])}),D=re(_,2),H=D[0],P=D[1];p=Q(Q({},p),P),w+="".concat(B).concat(H)}else{let W=function(V,X){process.env.NODE_ENV!=="production"&&(Se($)!=="object"||!($!=null&&$[mc]))&&[Ah,Nh].concat(rt(b)).forEach(function(te){return te(V,X,{path:u,hashId:l,parentSelectors:a})});var J=V.replace(/[A-Z]/g,function(te){return"-".concat(te.toLowerCase())}),K=X;!vh[V]&&typeof K=="number"&&K!==0&&(K="".concat(K,"px")),V==="animationName"&&X!==null&&X!==void 0&&X._keyframe&&(S(X),K=X.getName(l)),w+="".concat(J,":").concat(K,";")};var A,Y=(A=$?.value)!==null&&A!==void 0?A:$;Se($)==="object"&&$!==null&&$!==void 0&&$[vc]&&Array.isArray(Y)?Y.forEach(function(V){W(R,V)}):W(R,Y)}})}}),o?c&&(w&&(w="@layer ".concat(c.name," {").concat(w,"}")),c.dependencies&&(p["@layer ".concat(c.name)]=c.dependencies.map(function(T){return"@layer ".concat(T,", ").concat(c.name,";")}).join(`
82
+ `))):w="{".concat(w,"}"),[w,p]};function bc(e,t){return hn("".concat(e.join("%")).concat(t))}function Hh(){return null}var Vh="style";function Ji(e,t){var r=e.token,n=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,c=e.order,u=c===void 0?0:c,f=h.useContext(Sn),d=f.autoClear,g=f.mock,C=f.defaultCache,b=f.hashPriority,w=f.container,p=f.ssrInline,S=f.transformers,m=f.linters,O=f.cache,T=f.layer,j=r._tokenKey,x=[j];T&&x.push("layer"),x.push.apply(x,rt(n));var R=Yi;process.env.NODE_ENV!=="production"&&g!==void 0&&(R=g==="client");var $=ya(Vh,x,function(){var D=x.join("|");if(Bh(D)){var H=zh(D),P=re(H,2),A=P[0],Y=P[1];if(A)return[A,j,Y,{},l,u]}var W=t(),V=Fh(W,{hashId:o,hashPriority:b,layer:T?i:void 0,path:n.join("-"),transformers:S,linters:m}),X=re(V,2),J=X[0],K=X[1],te=li(J),se=bc(x,te);return[te,j,se,K,l,u]},function(D,H){var P=re(D,3),A=P[2];(H||d)&&Yi&&cn(A,{mark:Mt,attachTo:w})},function(D){var H=re(D,4),P=H[0],A=H[2],Y=H[3];if(R&&P!==gc){var W={mark:Mt,prepend:T?!1:"queue",attachTo:w,priority:u},V=typeof a=="function"?a():a;V&&(W.csp={nonce:V});var X=[],J=[];Object.keys(Y).forEach(function(te){te.startsWith("@layer")?X.push(te):J.push(te)}),X.forEach(function(te){Ht(li(Y[te]),"_layer-".concat(te),Q(Q({},W),{},{prepend:!0}))});var K=Ht(P,A,W);K[er]=O.instanceId,K.setAttribute(gn,j),process.env.NODE_ENV!=="production"&&K.setAttribute(Wf,x.join("|")),J.forEach(function(te){Ht(li(Y[te]),"_effect-".concat(te),W)})}}),F=re($,3),B=F[0],q=F[1],_=F[2];return function(D){var H;return!p||R||!C?H=h.createElement(Hh,null):H=h.createElement("style",Ze({},ee(ee({},gn,q),Mt,_),{dangerouslySetInnerHTML:{__html:B}})),h.createElement(h.Fragment,null,H,D)}}var Wh="cssVar",qh=function(t,r){var n=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,c=t.scope,u=c===void 0?"":c,f=v.useContext(Sn),d=f.cache.instanceId,g=f.container,C=l._tokenKey,b=[].concat(rt(t.path),[n,u,C]),w=ya(Wh,b,function(){var p=r(),S=ac(p,n,{prefix:o,unitless:i,ignore:a,scope:u}),m=re(S,2),O=m[0],T=m[1],j=bc(b,T);return[O,T,j,n]},function(p){var S=re(p,3),m=S[2];Yi&&cn(m,{mark:Mt,attachTo:g})},function(p){var S=re(p,3),m=S[1],O=S[2];if(m){var T=Ht(m,O,{mark:Mt,prepend:"queue",attachTo:g,priority:-999});T[er]=d,T.setAttribute(gn,n)}});return w},xt=(function(){function e(t,r){bt(this,e),ee(this,"name",void 0),ee(this,"style",void 0),ee(this,"_keyframe",!0),this.name=t,this.style=r}return yt(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 Uh(e){return Il(e)||_l(e)||ua(e)||Pl()}function ea(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function yc(e,t,r,n){if(!t.length)return r;var o=Uh(t),i=o[0],a=o.slice(1),l;return!e&&typeof i=="number"?l=[]:Array.isArray(e)?l=rt(e):l=Q({},e),n&&r===void 0&&a.length===1?delete l[i][a[0]]:l[i]=yc(l[i],a,r,n),l}function ci(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!ea(e,t.slice(0,-1))?e:yc(e,t,r,n)}function Kh(e){return Se(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Rs(e){return Array.isArray(e)?[]:{}}var Gh=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Yh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Rs(t[0]);return t.forEach(function(o){function i(a,l){var c=new Set(l),u=ea(o,a),f=Array.isArray(u);if(f||Kh(u)){if(!c.has(u)){c.add(u);var d=ea(n,a);f?n=ci(n,a,[]):(!d||Se(d)!=="object")&&(n=ci(n,a,Rs(u))),Gh(u).forEach(function(g){i([].concat(rt(a),[g]),c)})}}else n=ci(n,a,u)}i([])}),n}function xc(){}let zt=null;function Xh(){zt=null,Fl()}let Cc=xc;process.env.NODE_ENV!=="production"&&(Cc=(e,t,r)=>{Wt(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&Xh()});const En=Cc,wc=h.createContext({}),kt=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=h.useContext(wc),r=(n,o,i)=>{if(!n)if(t===!1&&o==="deprecated"){const a=zt;zt||(zt={}),zt[e]=zt[e]||[],zt[e].includes(i||"")||zt[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",zt)}else process.env.NODE_ENV!=="production"&&En(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=xc,e},Qh=v.createContext(void 0);var Zh={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"},Jh={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},eg=Q(Q({},Jh),{},{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 Sc={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},js={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"]},eg),timePickerLocale:Object.assign({},Sc)},ut="${label} is not a valid ${type}",_r={locale:"en",Pagination:Zh,DatePicker:js,TimePicker:Sc,Calendar:js,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:ut,method:ut,array:ut,object:ut,number:ut,date:ut,boolean:ut,integer:ut,float:ut,regexp:ut,email:ut,url:ut,hex:ut},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({},_r.Modal);let io=[];const $s=()=>io.reduce((e,t)=>Object.assign(Object.assign({},e),t),_r.Modal);function tg(e){if(e){const t=Object.assign({},e);return io.push(t),$s(),()=>{io=io.filter(r=>r!==t),$s()}}Object.assign({},_r.Modal)}const wa=v.createContext(void 0),rg=(e,t)=>{const r=h.useContext(wa),n=h.useMemo(()=>{var i;const a=_r[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=h.useMemo(()=>{const i=r?.locale;return r?.exist&&!i?_r.locale:i},[r]);return[n,o]},Ec="internalMark",Rc=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const i=kt("LocaleProvider");process.env.NODE_ENV!=="production"&&i(n===Ec,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}h.useEffect(()=>tg(t?.Modal),[t]);const o=h.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return h.createElement(wa.Provider,{value:o},r)};process.env.NODE_ENV!=="production"&&(Rc.displayName="LocaleProvider");const jc={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"},mn=Object.assign(Object.assign({},jc),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
83
83
  'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
84
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 ng(e,{generateColorPalettes:t,generateNeutralColorPalettes:r}){const{colorSuccess:n,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:l,colorBgBase:c,colorTextBase:u}=e,f=t(l),d=t(n),g=t(o),C=t(i),b=t(a),w=r(c,u),p=e.colorLink||e.colorInfo,S=t(p),m=new Qe(C[1]).mix(new Qe(C[3]),50).toHexString();return Object.assign(Object.assign({},w),{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:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:C[1],colorErrorBgHover:C[2],colorErrorBgFilledHover:m,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:b[1],colorInfoBgHover:b[2],colorInfoBorder:b[3],colorInfoBorderHover:b[4],colorInfoHover:b[4],colorInfo:b[6],colorInfoActive:b[7],colorInfoTextHover:b[8],colorInfoText:b[9],colorInfoTextActive:b[10],colorLinkHover:S[4],colorLink:S[6],colorLinkActive:S[7],colorBgMask:new Qe("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const og=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 ig(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},og(n))}const ag=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function sg(e){return(e+8)/e}function lg(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:sg(r)}))}const cg=e=>{const t=lg(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],u=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:u,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(u*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function ug(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 pt=(e,t)=>new Qe(e).setA(t).toRgbString(),en=(e,t)=>new Qe(e).darken(t).toHexString(),dg=e=>{const t=ln(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]}},fg=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:pt(n,.88),colorTextSecondary:pt(n,.65),colorTextTertiary:pt(n,.45),colorTextQuaternary:pt(n,.25),colorFill:pt(n,.15),colorFillSecondary:pt(n,.06),colorFillTertiary:pt(n,.04),colorFillQuaternary:pt(n,.02),colorBgSolid:pt(n,1),colorBgSolidHover:pt(n,.75),colorBgSolidActive:pt(n,.95),colorBgLayout:en(r,4),colorBgContainer:en(r,0),colorBgElevated:en(r,0),colorBgSpotlight:pt(n,.85),colorBgBlur:"transparent",colorBorder:en(r,15),colorBorderSecondary:en(r,6)}};function hg(e){ti.pink=ti.magenta,ri.pink=ri.magenta;const t=Object.keys(jc).map(r=>{const n=e[r]===ti[r]?ri[r]:ln(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),ng(e,{generateColorPalettes:dg,generateNeutralColorPalettes:fg})),cg(e.fontSize)),ug(e)),ag(e)),ig(e))}const $c=Gi(hg),ta={token:mn,override:{override:mn},hashed:!0},Tc=v.createContext(ta),ra="ant",Sa="anticon",gg=["outlined","borderless","filled","underlined"],pg=(e,t)=>t||(e?`${ra}-${e}`:ra),Vt=h.createContext({getPrefixCls:pg,iconPrefixCls:Sa}),Ts={};function To(e){const t=h.useContext(Vt),{getPrefixCls:r,direction:n,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:Ts,styles:Ts},i),{getPrefixCls:r,direction:n,getPopupContainer:o})}const mg=`-ant-${Date.now()}-${Math.random()}`;function vg(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),u=ln(c.toRgbString());r[`${l}-color`]=n(c),r[`${l}-color-disabled`]=u[1],r[`${l}-color-hover`]=u[4],r[`${l}-color-active`]=u[6],r[`${l}-color-outline`]=c.clone().setA(.2).toRgbString(),r[`${l}-color-deprecated-bg`]=u[0],r[`${l}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new Qe(t.primaryColor),l=ln(a.toRgbString());l.forEach((u,f)=>{r[`primary-${f+1}`]=u}),r["primary-color-deprecated-l-35"]=n(a,u=>u.lighten(35)),r["primary-color-deprecated-l-20"]=n(a,u=>u.lighten(20)),r["primary-color-deprecated-t-20"]=n(a,u=>u.tint(20)),r["primary-color-deprecated-t-50"]=n(a,u=>u.tint(50)),r["primary-color-deprecated-f-12"]=n(a,u=>u.setA(u.a*.12));const c=new Qe(l[0]);r["primary-color-active-deprecated-f-30"]=n(c,u=>u.setA(u.a*.3)),r["primary-color-active-deprecated-d-02"]=n(c,u=>u.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
85
  :root {
86
86
  ${Object.keys(r).map(a=>`--${e}-${a}: ${r[a]};`).join(`
87
87
  `)}
88
88
  }
89
- `.trim()}function bg(e,t){const r=vg(e,t);st()?Ht(r,`${mg}-dynamic-theme`):process.env.NODE_ENV!=="production"&&En(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const vn=h.createContext(!1),yg=({children:e,disabled:t})=>{const r=h.useContext(vn);return h.createElement(vn.Provider,{value:t??r},e)},Ir=h.createContext(void 0),xg=({children:e,size:t})=>{const r=h.useContext(Ir);return h.createElement(Ir.Provider,{value:t||r},e)};function Cg(){const e=v.useContext(vn),t=v.useContext(Ir);return{componentDisabled:e,componentSize:t}}var Oc=yt(function e(){bt(this,e)}),_c="CALC_UNIT",wg=new RegExp(_c,"g");function ui(e){return typeof e=="number"?"".concat(e).concat(_c):e}var Sg=(function(e){Cn(r,e);var t=wn(r);function r(n,o){var i;bt(this,r),i=t.call(this),ee(an(i),"result",""),ee(an(i),"unitlessCssVar",void 0),ee(an(i),"lowPriority",void 0);var a=Se(n);return i.unitlessCssVar=o,n instanceof r?i.result="(".concat(n.result,")"):a==="number"?i.result=ui(n):a==="string"&&(i.result=n),i}return yt(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(ui(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(ui(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(u){return i.result.includes(u)})&&(c=!1),this.result=this.result.replace(wg,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r})(Oc),Eg=(function(e){Cn(r,e);var t=wn(r);function r(n){var o;return bt(this,r),o=t.call(this),ee(an(o),"result",0),n instanceof r?o.result=n.result:typeof n=="number"&&(o.result=n),o}return yt(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})(Oc),Rg=function(t,r){var n=t==="css"?Sg:Eg;return function(o){return new n(o,r)}},Os=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 _s(e,t,r,n){var o=Q({},t[e]);if(n!=null&&n.deprecatedTokens){var i=n.deprecatedTokens;i.forEach(function(l){var c=re(l,2),u=c[0],f=c[1];if(process.env.NODE_ENV!=="production"&&Wt(!(o!=null&&o[u]),"Component Token `".concat(String(u),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(f),"` instead.")),o!=null&&o[u]||o!=null&&o[f]){var d;(d=o[f])!==null&&d!==void 0||(o[f]=o?.[u])}})}var a=Q(Q({},r),o);return Object.keys(a).forEach(function(l){a[l]===t[l]&&delete a[l]}),a}var Ic=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",na=!0;function Ut(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Ic)return Object.assign.apply(Object,[{}].concat(t));na=!1;var n={};return t.forEach(function(o){if(Se(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(n,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),na=!0,n}var Is={};function jg(){}var $g=function(t){var r,n=t,o=jg;return Ic&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(a,l){if(na){var c;(c=r)===null||c===void 0||c.add(l)}return a[l]}}),o=function(a,l){var c;Is[a]={global:Array.from(r),component:Q(Q({},(c=Is[a])===null||c===void 0?void 0:c.component),l)}}),{token:n,keys:r,flush:o}};function Ps(e,t,r){if(typeof r=="function"){var n;return r(Ut(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function Tg(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 Oe(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 Oe(i)}).join(","),")")}}}var Og=1e3*60*10,_g=(function(){function e(){bt(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 yt(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&&Se(i)==="object"?"obj_".concat(n.getObjectID(i)):"".concat(Se(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>Og&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e})(),Ms=new _g;function Ig(e,t){return v.useMemo(function(){var r=Ms.get(t);if(r)return r;var n=e();return Ms.set(t,n),n},t)}var Pg=function(){return{}};function Mg(e){var t=e.useCSP,r=t===void 0?Pg:t,n=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,l=e.getCompUnitless;function c(g,C,b,w){var p=Array.isArray(g)?g[0]:g;function S($){return"".concat(String(p)).concat($.slice(0,1).toUpperCase()).concat($.slice(1))}var m=w?.unitless||{},O=typeof l=="function"?l(g):{},T=Q(Q({},O),{},ee({},S("zIndexPopup"),!0));Object.keys(m).forEach(function($){T[S($)]=m[$]});var j=Q(Q({},w),{},{unitless:T,prefixToken:S}),x=f(g,C,b,j),R=u(p,b,j);return function($){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,B=x($,L),q=re(B,2),I=q[1],N=R(L),F=re(N,2),P=F[0],M=F[1];return[P,I,M]}}function u(g,C,b){var w=b.unitless,p=b.injectStyle,S=p===void 0?!0:p,m=b.prefixToken,O=b.ignore,T=function(R){var $=R.rootCls,L=R.cssVar,B=L===void 0?{}:L,q=n(),I=q.realToken;return qh({path:[g],prefix:B.prefix,key:B.key,unitless:w,ignore:O,token:I,scope:$},function(){var N=Ps(g,I,C),F=_s(g,I,N,{deprecatedTokens:b?.deprecatedTokens});return Object.keys(N).forEach(function(P){F[m(P)]=F[P],delete F[P]}),F}),null},j=function(R){var $=n(),L=$.cssVar;return[function(B){return S&&L?v.createElement(v.Fragment,null,v.createElement(T,{rootCls:R,cssVar:L,component:g}),B):B},L?.key]};return j}function f(g,C,b){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=Array.isArray(g)?g:[g,g],S=re(p,1),m=S[0],O=p.join("-"),T=e.layer||{name:"antd"};return function(j){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:j,R=n(),$=R.theme,L=R.realToken,B=R.hashId,q=R.token,I=R.cssVar,N=o(),F=N.rootPrefixCls,P=N.iconPrefixCls,M=r(),Y=I?"css":"js",W=Ig(function(){var se=new Set;return I&&Object.keys(w.unitless||{}).forEach(function(ge){se.add(to(ge,I.prefix)),se.add(to(ge,Os(m,I.prefix)))}),Rg(Y,se)},[Y,m,I?.prefix]),H=Tg(Y),X=H.max,J=H.min,K={theme:$,token:q,hashId:B,nonce:function(){return M.nonce},clientOnly:w.clientOnly,layer:T,order:w.order||-999};typeof i=="function"&&Ji(Q(Q({},K),{},{clientOnly:!1,path:["Shared",F]}),function(){return i(q,{prefix:{rootPrefixCls:F,iconPrefixCls:P},csp:M})});var te=Ji(Q(Q({},K),{},{path:[O,j,P]}),function(){if(w.injectStyle===!1)return[];var se=$g(q),ge=se.token,ce=se.flush,ve=Ps(m,L,b),E=".".concat(j),k=_s(m,L,ve,{deprecatedTokens:w.deprecatedTokens});I&&ve&&Se(ve)==="object"&&Object.keys(ve).forEach(function(G){ve[G]="var(".concat(to(G,Os(m,I.prefix)),")")});var z=Ut(ge,{componentCls:E,prefixCls:j,iconCls:".".concat(P),antCls:".".concat(F),calc:W,max:X,min:J},I?ve:k),D=C(z,{hashId:B,prefixCls:j,rootPrefixCls:F,iconPrefixCls:P});ce(m,k);var A=typeof a=="function"?a(z,j,x,w.resetFont):null;return[w.resetStyle===!1?null:A,D]});return[te,B]}}function d(g,C,b){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=f(g,C,b,Q({resetStyle:!1,order:-998},w)),S=function(O){var T=O.prefixCls,j=O.rootCls,x=j===void 0?T:j;return p(T,x),null};return process.env.NODE_ENV!=="production"&&(S.displayName="SubStyle_".concat(String(Array.isArray(g)?g.join("."):g))),S}return{genStyleHooks:c,genSubStyleComponent:d,genComponentStyleHook:f}}const mo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],kg="5.27.1";function di(e){return e>=0&&e<=255}function Wn(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 u=.01;u<=1;u+=.01){const f=Math.round((r-a*(1-u))/u),d=Math.round((n-l*(1-u))/u),g=Math.round((o-c*(1-u))/u);if(di(f)&&di(d)&&di(g))return new Qe({r:f,g:d,b:g,a:Math.round(u*100)/100}).toRgbString()}return new Qe({r,g:n,b:o,a:1}).toRgbString()}var Ag=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 Pc(e){const{override:t}=e,r=Ag(e,["override"]),n=Object.assign({},t);Object.keys(mn).forEach(g=>{delete n[g]});const o=Object.assign(Object.assign({},r),n),i=480,a=576,l=768,c=992,u=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:Wn(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:Wn(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Wn(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:Wn(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:`
89
+ `.trim()}function bg(e,t){const r=vg(e,t);st()?Ht(r,`${mg}-dynamic-theme`):process.env.NODE_ENV!=="production"&&En(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const vn=h.createContext(!1),yg=({children:e,disabled:t})=>{const r=h.useContext(vn);return h.createElement(vn.Provider,{value:t??r},e)},Ir=h.createContext(void 0),xg=({children:e,size:t})=>{const r=h.useContext(Ir);return h.createElement(Ir.Provider,{value:t||r},e)};function Cg(){const e=v.useContext(vn),t=v.useContext(Ir);return{componentDisabled:e,componentSize:t}}var Oc=yt(function e(){bt(this,e)}),_c="CALC_UNIT",wg=new RegExp(_c,"g");function ui(e){return typeof e=="number"?"".concat(e).concat(_c):e}var Sg=(function(e){Cn(r,e);var t=wn(r);function r(n,o){var i;bt(this,r),i=t.call(this),ee(an(i),"result",""),ee(an(i),"unitlessCssVar",void 0),ee(an(i),"lowPriority",void 0);var a=Se(n);return i.unitlessCssVar=o,n instanceof r?i.result="(".concat(n.result,")"):a==="number"?i.result=ui(n):a==="string"&&(i.result=n),i}return yt(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(ui(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(ui(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(u){return i.result.includes(u)})&&(c=!1),this.result=this.result.replace(wg,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),r})(Oc),Eg=(function(e){Cn(r,e);var t=wn(r);function r(n){var o;return bt(this,r),o=t.call(this),ee(an(o),"result",0),n instanceof r?o.result=n.result:typeof n=="number"&&(o.result=n),o}return yt(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})(Oc),Rg=function(t,r){var n=t==="css"?Sg:Eg;return function(o){return new n(o,r)}},Os=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 _s(e,t,r,n){var o=Q({},t[e]);if(n!=null&&n.deprecatedTokens){var i=n.deprecatedTokens;i.forEach(function(l){var c=re(l,2),u=c[0],f=c[1];if(process.env.NODE_ENV!=="production"&&Wt(!(o!=null&&o[u]),"Component Token `".concat(String(u),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(f),"` instead.")),o!=null&&o[u]||o!=null&&o[f]){var d;(d=o[f])!==null&&d!==void 0||(o[f]=o?.[u])}})}var a=Q(Q({},r),o);return Object.keys(a).forEach(function(l){a[l]===t[l]&&delete a[l]}),a}var Ic=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",na=!0;function Ut(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!Ic)return Object.assign.apply(Object,[{}].concat(t));na=!1;var n={};return t.forEach(function(o){if(Se(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(n,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),na=!0,n}var Is={};function jg(){}var $g=function(t){var r,n=t,o=jg;return Ic&&typeof Proxy<"u"&&(r=new Set,n=new Proxy(t,{get:function(a,l){if(na){var c;(c=r)===null||c===void 0||c.add(l)}return a[l]}}),o=function(a,l){var c;Is[a]={global:Array.from(r),component:Q(Q({},(c=Is[a])===null||c===void 0?void 0:c.component),l)}}),{token:n,keys:r,flush:o}};function Ps(e,t,r){if(typeof r=="function"){var n;return r(Ut(t,(n=t[e])!==null&&n!==void 0?n:{}))}return r??{}}function Tg(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 Ie(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 Ie(i)}).join(","),")")}}}var Og=1e3*60*10,_g=(function(){function e(){bt(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 yt(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&&Se(i)==="object"?"obj_".concat(n.getObjectID(i)):"".concat(Se(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>Og&&(r.map.delete(i),r.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e})(),Ms=new _g;function Ig(e,t){return v.useMemo(function(){var r=Ms.get(t);if(r)return r;var n=e();return Ms.set(t,n),n},t)}var Pg=function(){return{}};function Mg(e){var t=e.useCSP,r=t===void 0?Pg:t,n=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,l=e.getCompUnitless;function c(g,C,b,w){var p=Array.isArray(g)?g[0]:g;function S($){return"".concat(String(p)).concat($.slice(0,1).toUpperCase()).concat($.slice(1))}var m=w?.unitless||{},O=typeof l=="function"?l(g):{},T=Q(Q({},O),{},ee({},S("zIndexPopup"),!0));Object.keys(m).forEach(function($){T[S($)]=m[$]});var j=Q(Q({},w),{},{unitless:T,prefixToken:S}),x=f(g,C,b,j),R=u(p,b,j);return function($){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$,B=x($,F),q=re(B,2),_=q[1],D=R(F),H=re(D,2),P=H[0],A=H[1];return[P,_,A]}}function u(g,C,b){var w=b.unitless,p=b.injectStyle,S=p===void 0?!0:p,m=b.prefixToken,O=b.ignore,T=function(R){var $=R.rootCls,F=R.cssVar,B=F===void 0?{}:F,q=n(),_=q.realToken;return qh({path:[g],prefix:B.prefix,key:B.key,unitless:w,ignore:O,token:_,scope:$},function(){var D=Ps(g,_,C),H=_s(g,_,D,{deprecatedTokens:b?.deprecatedTokens});return Object.keys(D).forEach(function(P){H[m(P)]=H[P],delete H[P]}),H}),null},j=function(R){var $=n(),F=$.cssVar;return[function(B){return S&&F?v.createElement(v.Fragment,null,v.createElement(T,{rootCls:R,cssVar:F,component:g}),B):B},F?.key]};return j}function f(g,C,b){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=Array.isArray(g)?g:[g,g],S=re(p,1),m=S[0],O=p.join("-"),T=e.layer||{name:"antd"};return function(j){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:j,R=n(),$=R.theme,F=R.realToken,B=R.hashId,q=R.token,_=R.cssVar,D=o(),H=D.rootPrefixCls,P=D.iconPrefixCls,A=r(),Y=_?"css":"js",W=Ig(function(){var se=new Set;return _&&Object.keys(w.unitless||{}).forEach(function(ge){se.add(to(ge,_.prefix)),se.add(to(ge,Os(m,_.prefix)))}),Rg(Y,se)},[Y,m,_?.prefix]),V=Tg(Y),X=V.max,J=V.min,K={theme:$,token:q,hashId:B,nonce:function(){return A.nonce},clientOnly:w.clientOnly,layer:T,order:w.order||-999};typeof i=="function"&&Ji(Q(Q({},K),{},{clientOnly:!1,path:["Shared",H]}),function(){return i(q,{prefix:{rootPrefixCls:H,iconPrefixCls:P},csp:A})});var te=Ji(Q(Q({},K),{},{path:[O,j,P]}),function(){if(w.injectStyle===!1)return[];var se=$g(q),ge=se.token,ce=se.flush,ve=Ps(m,F,b),E=".".concat(j),N=_s(m,F,ve,{deprecatedTokens:w.deprecatedTokens});_&&ve&&Se(ve)==="object"&&Object.keys(ve).forEach(function(k){ve[k]="var(".concat(to(k,Os(m,_.prefix)),")")});var z=Ut(ge,{componentCls:E,prefixCls:j,iconCls:".".concat(P),antCls:".".concat(H),calc:W,max:X,min:J},_?ve:N),M=C(z,{hashId:B,prefixCls:j,rootPrefixCls:H,iconPrefixCls:P});ce(m,N);var L=typeof a=="function"?a(z,j,x,w.resetFont):null;return[w.resetStyle===!1?null:L,M]});return[te,B]}}function d(g,C,b){var w=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},p=f(g,C,b,Q({resetStyle:!1,order:-998},w)),S=function(O){var T=O.prefixCls,j=O.rootCls,x=j===void 0?T:j;return p(T,x),null};return process.env.NODE_ENV!=="production"&&(S.displayName="SubStyle_".concat(String(Array.isArray(g)?g.join("."):g))),S}return{genStyleHooks:c,genSubStyleComponent:d,genComponentStyleHook:f}}const mo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],kg="5.27.6";function di(e){return e>=0&&e<=255}function Wn(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 u=.01;u<=1;u+=.01){const f=Math.round((r-a*(1-u))/u),d=Math.round((n-l*(1-u))/u),g=Math.round((o-c*(1-u))/u);if(di(f)&&di(d)&&di(g))return new Qe({r:f,g:d,b:g,a:Math.round(u*100)/100}).toRgbString()}return new Qe({r,g:n,b:o,a:1}).toRgbString()}var Ag=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 Pc(e){const{override:t}=e,r=Ag(e,["override"]),n=Object.assign({},t);Object.keys(mn).forEach(g=>{delete n[g]});const o=Object.assign(Object.assign({},r),n),i=480,a=576,l=768,c=992,u=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:Wn(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:Wn(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Wn(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:Wn(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
90
  0 6px 16px 0 rgba(0, 0, 0, 0.08),
91
91
  0 3px 6px -4px rgba(0, 0, 0, 0.12),
92
92
  0 9px 28px 8px rgba(0, 0, 0, 0.05)
@@ -118,7 +118,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
118
118
  0 -6px 16px 0 rgba(0, 0, 0, 0.08),
119
119
  0 -3px 6px -4px rgba(0, 0, 0, 0.12),
120
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 ks=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 Mc={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},Ng={motionBase:!0,motionUnit:!0},Dg={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},kc=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:o}=t,i=ks(t,["override"]);let a=Object.assign(Object.assign({},n),{override:o});return a=Pc(a),i&&Object.entries(i).forEach(([l,c])=>{const{theme:u}=c,f=ks(c,["theme"]);let d=f;u&&(d=kc(Object.assign(Object.assign({},a),f),{override:f},u)),a[l]=d}),a};function Dr(){const{token:e,hashed:t,theme:r,override:n,cssVar:o}=v.useContext(Tc),i=`${kg}-${t||""}`,a=r||$c,[l,c,u]=mh(a,[mn,e],{salt:i,override:n,getComputedToken:kc,formatToken:Pc,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Mc,ignore:Ng,preserve:Dg}});return[a,u,t?c:"",l,o]}const Ea=(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}),Bg=()=>({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"}}),zg=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Lg=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"}}}),Fg=(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})}},Hg=(e,t)=>({outline:`${Oe(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Vg=(e,t)=>({"&:focus-visible":Hg(e,t)}),Ac=e=>({[`.${e}`]:Object.assign(Object.assign({},Bg()),{[`.${e} .${e}-icon`]:{display:"block"}})}),Nc=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"},Vg(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Rn}=Mg({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=v.useContext(Vt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,o]=Dr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{const{csp:e}=v.useContext(Vt);return e??{}},getResetStyles:(e,t)=>{var r;const n=Lg(e);return[n,{"&":n},Ac((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:Sa)]},getCommonStyle:Fg,getCompUnitless:()=>Mc});function Wg(e,t){return mo.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 qg=(e,t)=>{const[r,n]=Dr();return Ji({token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>Ac(e))},Ug=Object.assign({},h),{useId:As}=Ug,Kg=()=>"",Gg=typeof As>"u"?Kg:As;function Yg(e,t,r){var n,o;const i=kt("ConfigProvider"),a=e||{},l=a.inherit===!1||!t?Object.assign(Object.assign({},ta),{hashed:(n=t?.hashed)!==null&&n!==void 0?n:ta.hashed,cssVar:t?.cssVar}):t,c=Gg();if(process.env.NODE_ENV!=="production"){const u=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(!u||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 ga(()=>{var u,f;if(!e)return t;const d=Object.assign({},l.components);Object.keys(e.components||{}).forEach(b=>{d[b]=Object.assign(Object.assign({},d[b]),e.components[b])});const g=`css-var-${c.replace(/:/g,"")}`,C=((u=a.cssVar)!==null&&u!==void 0?u: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:d,cssVar:C})},[a,l],(u,f)=>u.some((d,g)=>{const C=f[g];return!Ff(d,C,!0)}))}var Xg=["children"],Dc=h.createContext({});function Qg(e){var t=e.children,r=$t(e,Xg);return h.createElement(Dc.Provider,{value:r},t)}var Zg=(function(e){Cn(r,e);var t=wn(r);function r(){return bt(this,r),t.apply(this,arguments)}return yt(r,[{key:"render",value:function(){return this.props.children}}]),r})(h.Component);function Jg(e){var t=h.useReducer(function(l){return l+1},0),r=re(t,2),n=r[1],o=h.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 Jt="none",qn="appear",Un="enter",Kn="leave",Ns="none",Rt="prepare",wr="start",Sr="active",Ra="end",Bc="prepared";function Ds(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 e0(e,t){var r={animationend:Ds("Animation","AnimationEnd"),transitionend:Ds("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var t0=e0(st(),typeof window<"u"?window:{}),zc={};if(st()){var r0=document.createElement("div");zc=r0.style}var Gn={};function Lc(e){if(Gn[e])return Gn[e];var t=t0[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 zc)return Gn[e]=t[i],Gn[e]}return""}var Fc=Lc("animationend"),Hc=Lc("transitionend"),n0=!!(Fc&&Hc),Bs=Fc||"animationend",zs=Hc||"transitionend";function Ls(e,t){if(!e)return null;if(Se(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const o0=(function(e){var t=v.useRef();function r(o){o&&(o.removeEventListener(zs,e),o.removeEventListener(Bs,e))}function n(o){t.current&&t.current!==o&&r(t.current),o&&o!==t.current&&(o.addEventListener(zs,e),o.addEventListener(Bs,e),t.current=o)}return h.useEffect(function(){return function(){r(t.current)}},[]),[n,r]});var Vc=st()?v.useLayoutEffect:v.useEffect,Wc=function(t){return+setTimeout(t,16)},qc=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Wc=function(t){return window.requestAnimationFrame(t)},qc=function(t){return window.cancelAnimationFrame(t)});var Fs=0,Oo=new Map;function Uc(e){Oo.delete(e)}var Pr=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Fs+=1;var n=Fs;function o(i){if(i===0)Uc(n),t();else{var a=Wc(function(){o(i-1)});Oo.set(n,a)}}return o(r),n};Pr.cancel=function(e){var t=Oo.get(e);return Uc(e),qc(t)};process.env.NODE_ENV!=="production"&&(Pr.ids=function(){return Oo});const i0=(function(){var e=h.useRef(null);function t(){Pr.cancel(e.current)}function r(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Pr(function(){o<=1?n({isCanceled:function(){return i!==e.current}}):r(n,o-1)});e.current=i}return h.useEffect(function(){return function(){t()}},[]),[r,t]});var a0=[Rt,wr,Sr,Ra],s0=[Rt,Bc],Kc=!1,l0=!0;function Gc(e){return e===Sr||e===Ra}const c0=(function(e,t,r){var n=fn(Ns),o=re(n,2),i=o[0],a=o[1],l=i0(),c=re(l,2),u=c[0],f=c[1];function d(){a(Rt,!0)}var g=t?s0:a0;return Vc(function(){if(i!==Ns&&i!==Ra){var C=g.indexOf(i),b=g[C+1],w=r(i);w===Kc?a(b,!0):b&&u(function(p){function S(){p.isCanceled()||a(b,!0)}w===!0?S():Promise.resolve(w).then(S)})}},[e,i]),h.useEffect(function(){return function(){f()}},[]),[d,i]});function u0(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,u=c===void 0?!0:c,f=n.motionDeadline,d=n.motionLeaveImmediately,g=n.onAppearPrepare,C=n.onEnterPrepare,b=n.onLeavePrepare,w=n.onAppearStart,p=n.onEnterStart,S=n.onLeaveStart,m=n.onAppearActive,O=n.onEnterActive,T=n.onLeaveActive,j=n.onAppearEnd,x=n.onEnterEnd,R=n.onLeaveEnd,$=n.onVisibleChanged,L=fn(),B=re(L,2),q=B[0],I=B[1],N=Jg(Jt),F=re(N,2),P=F[0],M=F[1],Y=fn(null),W=re(Y,2),H=W[0],X=W[1],J=P(),K=v.useRef(!1),te=v.useRef(null);function se(){return r()}var ge=v.useRef(!1);function ce(){M(Jt),X(null,!0)}var ve=ft(function(be){var we=P();if(we!==Jt){var ue=se();if(!(be&&!be.deadline&&be.target!==ue)){var ie=ge.current,xe;we===qn&&ie?xe=j?.(ue,be):we===Un&&ie?xe=x?.(ue,be):we===Kn&&ie&&(xe=R?.(ue,be)),ie&&xe!==!1&&ce()}}}),E=o0(ve),k=re(E,1),z=k[0],D=function(we){switch(we){case qn:return ee(ee(ee({},Rt,g),wr,w),Sr,m);case Un:return ee(ee(ee({},Rt,C),wr,p),Sr,O);case Kn:return ee(ee(ee({},Rt,b),wr,S),Sr,T);default:return{}}},A=h.useMemo(function(){return D(J)},[J]),G=c0(J,!e,function(be){if(be===Rt){var we=A[Rt];return we?we(se()):Kc}if(U in A){var ue;X(((ue=A[U])===null||ue===void 0?void 0:ue.call(A,se(),null))||null)}return U===Sr&&J!==Jt&&(z(se()),f>0&&(clearTimeout(te.current),te.current=setTimeout(function(){ve({deadline:!0})},f))),U===Bc&&ce(),l0}),_=re(G,2),V=_[0],U=_[1],Z=Gc(U);ge.current=Z;var ne=v.useRef(null);Vc(function(){if(!(K.current&&ne.current===t)){I(t);var be=K.current;K.current=!0;var we;!be&&t&&l&&(we=qn),be&&t&&i&&(we=Un),(be&&!t&&u||!be&&d&&!t&&u)&&(we=Kn);var ue=D(we);we&&(e||ue[Rt])?(M(we),V()):M(Jt),ne.current=t}},[t]),v.useEffect(function(){(J===qn&&!l||J===Un&&!i||J===Kn&&!u)&&M(Jt)},[l,i,u]),v.useEffect(function(){return function(){K.current=!1,clearTimeout(te.current)}},[]);var oe=h.useRef(!1);v.useEffect(function(){q&&(oe.current=!0),q!==void 0&&J===Jt&&((oe.current||q)&&$?.(q),oe.current=!0)},[q,J]);var ye=H;return A[Rt]&&U===wr&&(ye=Q({transition:"none"},ye)),[J,U,ye,q??t]}function d0(e){var t=e;Se(e)==="object"&&(t=e.transitionSupport);function r(o,i){return!!(o.motionName&&t&&i!==!1)}var n=h.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,c=o.removeOnLeave,u=c===void 0?!0:c,f=o.forceRender,d=o.children,g=o.motionName,C=o.leavedClassName,b=o.eventProps,w=h.useContext(Dc),p=w.motion,S=r(o,p),m=v.useRef(),O=v.useRef();function T(){try{return m.current instanceof HTMLElement?m.current:eo(O.current)}catch{return null}}var j=u0(S,l,T,o),x=re(j,4),R=x[0],$=x[1],L=x[2],B=x[3],q=h.useRef(B);B&&(q.current=!0);var I=h.useCallback(function(W){m.current=W,pa(i,W)},[i]),N,F=Q(Q({},b),{},{visible:l});if(!d)N=null;else if(R===Jt)B?N=d(Q({},F),I):!u&&q.current&&C?N=d(Q(Q({},F),{},{className:C}),I):f||!u&&!C?N=d(Q(Q({},F),{},{style:{display:"none"}}),I):N=null;else{var P;$===Rt?P="prepare":Gc($)?P="active":$===wr&&(P="start");var M=Ls(g,"".concat(R,"-").concat(P));N=d(Q(Q({},F),{},{className:he(Ls(g,R),ee(ee({},M,M&&P),g,typeof g=="string")),style:L}),I)}if(h.isValidElement(N)&&Eo(N)){var Y=va(N);Y||(N=h.cloneElement(N,{ref:I}))}return h.createElement(Zg,{ref:O},N)});return n.displayName="CSSMotion",n}const Yc=d0(n0),oa=h.createContext(!0);process.env.NODE_ENV!=="production"&&(oa.displayName="MotionCacheContext");function f0(e){const t=h.useContext(oa),{children:r}=e,[,n]=Dr(),{motion:o}=n,i=h.useRef(!1);return i.current||(i.current=t!==o),i.current?h.createElement(oa.Provider,{value:o},h.createElement(Qg,{motion:o},r)):r}const Xc=h.memo(({dropdownMatchSelectWidth:e})=>(kt("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Xc.displayName="PropWarning");const h0=process.env.NODE_ENV!=="production"?Xc:()=>null;var g0=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 ia=!1;process.env.NODE_ENV;const p0=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Qc;function m0(){return Qc||ra}function v0(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const b0=e=>{const{prefixCls:t,theme:r}=e;t!==void 0&&(Qc=t),r&&v0(r)&&(process.env.NODE_ENV!=="production"&&En(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),bg(m0(),r))},y0=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:i,form:a,locale:l,componentSize:c,direction:u,space:f,splitter:d,virtual:g,dropdownMatchSelectWidth:C,popupMatchSelectWidth:b,popupOverflow:w,legacyLocale:p,parentContext:S,iconPrefixCls:m,theme:O,componentDisabled:T,segmented:j,statistic:x,spin:R,calendar:$,carousel:L,cascader:B,collapse:q,typography:I,checkbox:N,descriptions:F,divider:P,drawer:M,skeleton:Y,steps:W,image:H,layout:X,list:J,mentions:K,modal:te,progress:se,result:ge,slider:ce,breadcrumb:ve,menu:E,pagination:k,input:z,textArea:D,empty:A,badge:G,radio:_,rate:V,switch:U,transfer:Z,avatar:ne,message:oe,tag:ye,table:be,card:we,tabs:ue,timeline:ie,timePicker:xe,upload:Ee,notification:Ye,tree:Me,colorPicker:ke,datePicker:Ce,rangePicker:Ae,flex:ze,wave:_e,dropdown:me,warning:Ne,tour:le,tooltip:de,popover:We,popconfirm:At,floatButton:rr,floatButtonGroup:fr,variant:zr,inputNumber:hr,treeSelect:Ct}=e,nt=h.useCallback((Ie,Ue)=>{const{prefixCls:at}=e;if(Ue)return Ue;const it=at||S.getPrefixCls("");return Ie?`${it}-${Ie}`:it},[S.getPrefixCls,e.prefixCls]),qe=m||S.iconPrefixCls||Sa,Nt=r||S.csp;qg(qe,Nt);const ot=Yg(O,S.theme,{prefixCls:nt("")});process.env.NODE_ENV!=="production"&&(ia=ia||!!ot);const Te={csp:Nt,autoInsertSpaceInButton:n,alert:o,anchor:i,locale:l||p,direction:u,space:f,splitter:d,virtual:g,popupMatchSelectWidth:b??C,popupOverflow:w,getPrefixCls:nt,iconPrefixCls:qe,theme:ot,segmented:j,statistic:x,spin:R,calendar:$,carousel:L,cascader:B,collapse:q,typography:I,checkbox:N,descriptions:F,divider:P,drawer:M,skeleton:Y,steps:W,image:H,input:z,textArea:D,layout:X,list:J,mentions:K,modal:te,progress:se,result:ge,slider:ce,breadcrumb:ve,menu:E,pagination:k,empty:A,badge:G,radio:_,rate:V,switch:U,transfer:Z,avatar:ne,message:oe,tag:ye,table:be,card:we,tabs:ue,timeline:ie,timePicker:xe,upload:Ee,notification:Ye,tree:Me,colorPicker:ke,datePicker:Ce,rangePicker:Ae,flex:ze,wave:_e,dropdown:me,warning:Ne,tour:le,tooltip:de,popover:We,popconfirm:At,floatButton:rr,floatButtonGroup:fr,variant:zr,inputNumber:hr,treeSelect:Ct};process.env.NODE_ENV!=="production"&&kt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Re=Object.assign({},S);Object.keys(Te).forEach(Ie=>{Te[Ie]!==void 0&&(Re[Ie]=Te[Ie])}),p0.forEach(Ie=>{const Ue=e[Ie];Ue&&(Re[Ie]=Ue)}),typeof n<"u"&&(Re.button=Object.assign({autoInsertSpace:n},Re.button));const Je=ga(()=>Re,Re,(Ie,Ue)=>{const at=Object.keys(Ie),it=Object.keys(Ue);return at.length!==it.length||at.some(Ot=>Ie[Ot]!==Ue[Ot])}),{layer:Tt}=h.useContext(Sn),lt=h.useMemo(()=>({prefixCls:qe,csp:Nt,layer:Tt?"antd":void 0}),[qe,Nt,Tt]);let Fe=h.createElement(h.Fragment,null,h.createElement(h0,{dropdownMatchSelectWidth:C}),t);const Kt=h.useMemo(()=>{var Ie,Ue,at,it;return Yh(((Ie=_r.Form)===null||Ie===void 0?void 0:Ie.defaultValidateMessages)||{},((at=(Ue=Je.locale)===null||Ue===void 0?void 0:Ue.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(Kt).length>0&&(Fe=h.createElement(Qh.Provider,{value:Kt},Fe)),l&&(Fe=h.createElement(Rc,{locale:l,_ANT_MARK__:Ec},Fe)),Fe=h.createElement(da.Provider,{value:lt},Fe),c&&(Fe=h.createElement(xg,{size:c},Fe)),Fe=h.createElement(f0,null,Fe);const Dt=h.useMemo(()=>{const Ie=ot||{},{algorithm:Ue,token:at,components:it,cssVar:Ot}=Ie,gr=g0(Ie,["algorithm","token","components","cssVar"]),wt=Ue&&(!Array.isArray(Ue)||Ue.length>0)?Gi(Ue):$c,ht={};Object.entries(it||{}).forEach(([St,pr])=>{const De=Object.assign({},pr);"algorithm"in De&&(De.algorithm===!0?De.theme=wt:(Array.isArray(De.algorithm)||typeof De.algorithm=="function")&&(De.theme=Gi(De.algorithm)),delete De.algorithm),ht[St]=De});const _t=Object.assign(Object.assign({},mn),at);return Object.assign(Object.assign({},gr),{theme:wt,token:_t,components:ht,override:Object.assign({override:_t},ht),cssVar:Ot})},[ot]);return O&&(Fe=h.createElement(Tc.Provider,{value:Dt},Fe)),Je.warning&&(Fe=h.createElement(wc.Provider,{value:Je.warning},Fe)),T!==void 0&&(Fe=h.createElement(yg,{disabled:T},Fe)),h.createElement(Vt.Provider,{value:Je},Fe)},Br=e=>{const t=h.useContext(Vt),r=h.useContext(wa);return h.createElement(y0,Object.assign({parentContext:t,legacyLocale:r},e))};Br.ConfigContext=Vt;Br.SizeContext=Ir;Br.config=b0;Br.useConfig=Cg;Object.defineProperty(Br,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&En(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Ir)});process.env.NODE_ENV!=="production"&&(Br.displayName="ConfigProvider");function Zc(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,l=e.style;return h.createElement("div",{className:he("".concat(r,"-content"),a),style:l},h.createElement("div",{className:he("".concat(r,"-inner"),i),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var Jc=h.createContext(null),Hs=[];function x0(e,t){var r=h.useState(function(){if(!st())return null;var b=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&b.setAttribute("data-debug",t),b}),n=re(r,1),o=n[0],i=h.useRef(!1),a=h.useContext(Jc),l=h.useState(Hs),c=re(l,2),u=c[0],f=c[1],d=a||(i.current?void 0:function(b){f(function(w){var p=[b].concat(rt(w));return p})});function g(){o.parentElement||document.body.appendChild(o),i.current=!0}function C(){var b;(b=o.parentElement)===null||b===void 0||b.removeChild(o),i.current=!1}return Le(function(){return e?a?a(g):g():C(),C},[e]),Le(function(){u.length&&(u.forEach(function(b){return b()}),f(Hs))},[u]),[o,d]}function C0(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),u=parseInt(l.height,10);try{var f=c?"width: ".concat(l.width,";"):"",d=u?"height: ".concat(l.height,";"):"";Ht(`
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 ks=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 Mc={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},Ng={motionBase:!0,motionUnit:!0},Dg={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},kc=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:o}=t,i=ks(t,["override"]);let a=Object.assign(Object.assign({},n),{override:o});return a=Pc(a),i&&Object.entries(i).forEach(([l,c])=>{const{theme:u}=c,f=ks(c,["theme"]);let d=f;u&&(d=kc(Object.assign(Object.assign({},a),f),{override:f},u)),a[l]=d}),a};function Dr(){const{token:e,hashed:t,theme:r,override:n,cssVar:o}=v.useContext(Tc),i=`${kg}-${t||""}`,a=r||$c,[l,c,u]=mh(a,[mn,e],{salt:i,override:n,getComputedToken:kc,formatToken:Pc,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Mc,ignore:Ng,preserve:Dg}});return[a,u,t?c:"",l,o]}const Ea=(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}),Bg=()=>({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"}}),zg=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Lg=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"}}}),Fg=(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})}},Hg=(e,t)=>({outline:`${Ie(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Vg=(e,t)=>({"&:focus-visible":Hg(e,t)}),Ac=e=>({[`.${e}`]:Object.assign(Object.assign({},Bg()),{[`.${e} .${e}-icon`]:{display:"block"}})}),Nc=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"},Vg(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:Rn}=Mg({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=v.useContext(Vt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,r,n,o]=Dr();return{theme:e,realToken:t,hashId:r,token:n,cssVar:o}},useCSP:()=>{const{csp:e}=v.useContext(Vt);return e??{}},getResetStyles:(e,t)=>{var r;const n=Lg(e);return[n,{"&":n},Ac((r=t?.prefix.iconPrefixCls)!==null&&r!==void 0?r:Sa)]},getCommonStyle:Fg,getCompUnitless:()=>Mc});function Wg(e,t){return mo.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 qg=(e,t)=>{const[r,n]=Dr();return Ji({token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>Ac(e))},Ug=Object.assign({},h),{useId:As}=Ug,Kg=()=>"",Gg=typeof As>"u"?Kg:As;function Yg(e,t,r){var n,o;const i=kt("ConfigProvider"),a=e||{},l=a.inherit===!1||!t?Object.assign(Object.assign({},ta),{hashed:(n=t?.hashed)!==null&&n!==void 0?n:ta.hashed,cssVar:t?.cssVar}):t,c=Gg();if(process.env.NODE_ENV!=="production"){const u=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(!u||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 ga(()=>{var u,f;if(!e)return t;const d=Object.assign({},l.components);Object.keys(e.components||{}).forEach(b=>{d[b]=Object.assign(Object.assign({},d[b]),e.components[b])});const g=`css-var-${c.replace(/:/g,"")}`,C=((u=a.cssVar)!==null&&u!==void 0?u: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:d,cssVar:C})},[a,l],(u,f)=>u.some((d,g)=>{const C=f[g];return!Ff(d,C,!0)}))}var Xg=["children"],Dc=h.createContext({});function Qg(e){var t=e.children,r=$t(e,Xg);return h.createElement(Dc.Provider,{value:r},t)}var Zg=(function(e){Cn(r,e);var t=wn(r);function r(){return bt(this,r),t.apply(this,arguments)}return yt(r,[{key:"render",value:function(){return this.props.children}}]),r})(h.Component);function Jg(e){var t=h.useReducer(function(l){return l+1},0),r=re(t,2),n=r[1],o=h.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 Jt="none",qn="appear",Un="enter",Kn="leave",Ns="none",Rt="prepare",wr="start",Sr="active",Ra="end",Bc="prepared";function Ds(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 e0(e,t){var r={animationend:Ds("Animation","AnimationEnd"),transitionend:Ds("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var t0=e0(st(),typeof window<"u"?window:{}),zc={};if(st()){var r0=document.createElement("div");zc=r0.style}var Gn={};function Lc(e){if(Gn[e])return Gn[e];var t=t0[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 zc)return Gn[e]=t[i],Gn[e]}return""}var Fc=Lc("animationend"),Hc=Lc("transitionend"),n0=!!(Fc&&Hc),Bs=Fc||"animationend",zs=Hc||"transitionend";function Ls(e,t){if(!e)return null;if(Se(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const o0=(function(e){var t=v.useRef();function r(o){o&&(o.removeEventListener(zs,e),o.removeEventListener(Bs,e))}function n(o){t.current&&t.current!==o&&r(t.current),o&&o!==t.current&&(o.addEventListener(zs,e),o.addEventListener(Bs,e),t.current=o)}return h.useEffect(function(){return function(){r(t.current)}},[]),[n,r]});var Vc=st()?v.useLayoutEffect:v.useEffect,Wc=function(t){return+setTimeout(t,16)},qc=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(Wc=function(t){return window.requestAnimationFrame(t)},qc=function(t){return window.cancelAnimationFrame(t)});var Fs=0,Oo=new Map;function Uc(e){Oo.delete(e)}var Pr=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Fs+=1;var n=Fs;function o(i){if(i===0)Uc(n),t();else{var a=Wc(function(){o(i-1)});Oo.set(n,a)}}return o(r),n};Pr.cancel=function(e){var t=Oo.get(e);return Uc(e),qc(t)};process.env.NODE_ENV!=="production"&&(Pr.ids=function(){return Oo});const i0=(function(){var e=h.useRef(null);function t(){Pr.cancel(e.current)}function r(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Pr(function(){o<=1?n({isCanceled:function(){return i!==e.current}}):r(n,o-1)});e.current=i}return h.useEffect(function(){return function(){t()}},[]),[r,t]});var a0=[Rt,wr,Sr,Ra],s0=[Rt,Bc],Kc=!1,l0=!0;function Gc(e){return e===Sr||e===Ra}const c0=(function(e,t,r){var n=fn(Ns),o=re(n,2),i=o[0],a=o[1],l=i0(),c=re(l,2),u=c[0],f=c[1];function d(){a(Rt,!0)}var g=t?s0:a0;return Vc(function(){if(i!==Ns&&i!==Ra){var C=g.indexOf(i),b=g[C+1],w=r(i);w===Kc?a(b,!0):b&&u(function(p){function S(){p.isCanceled()||a(b,!0)}w===!0?S():Promise.resolve(w).then(S)})}},[e,i]),h.useEffect(function(){return function(){f()}},[]),[d,i]});function u0(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,u=c===void 0?!0:c,f=n.motionDeadline,d=n.motionLeaveImmediately,g=n.onAppearPrepare,C=n.onEnterPrepare,b=n.onLeavePrepare,w=n.onAppearStart,p=n.onEnterStart,S=n.onLeaveStart,m=n.onAppearActive,O=n.onEnterActive,T=n.onLeaveActive,j=n.onAppearEnd,x=n.onEnterEnd,R=n.onLeaveEnd,$=n.onVisibleChanged,F=fn(),B=re(F,2),q=B[0],_=B[1],D=Jg(Jt),H=re(D,2),P=H[0],A=H[1],Y=fn(null),W=re(Y,2),V=W[0],X=W[1],J=P(),K=v.useRef(!1),te=v.useRef(null);function se(){return r()}var ge=v.useRef(!1);function ce(){A(Jt),X(null,!0)}var ve=ft(function(be){var Ce=P();if(Ce!==Jt){var ue=se();if(!(be&&!be.deadline&&be.target!==ue)){var oe=ge.current,ye;Ce===qn&&oe?ye=j?.(ue,be):Ce===Un&&oe?ye=x?.(ue,be):Ce===Kn&&oe&&(ye=R?.(ue,be)),oe&&ye!==!1&&ce()}}}),E=o0(ve),N=re(E,1),z=N[0],M=function(Ce){switch(Ce){case qn:return ee(ee(ee({},Rt,g),wr,w),Sr,m);case Un:return ee(ee(ee({},Rt,C),wr,p),Sr,O);case Kn:return ee(ee(ee({},Rt,b),wr,S),Sr,T);default:return{}}},L=h.useMemo(function(){return M(J)},[J]),k=c0(J,!e,function(be){if(be===Rt){var Ce=L[Rt];return Ce?Ce(se()):Kc}if(U in L){var ue;X(((ue=L[U])===null||ue===void 0?void 0:ue.call(L,se(),null))||null)}return U===Sr&&J!==Jt&&(z(se()),f>0&&(clearTimeout(te.current),te.current=setTimeout(function(){ve({deadline:!0})},f))),U===Bc&&ce(),l0}),I=re(k,2),G=I[0],U=I[1],Z=Gc(U);ge.current=Z;var ne=v.useRef(null);Vc(function(){if(!(K.current&&ne.current===t)){_(t);var be=K.current;K.current=!0;var Ce;!be&&t&&l&&(Ce=qn),be&&t&&i&&(Ce=Un),(be&&!t&&u||!be&&d&&!t&&u)&&(Ce=Kn);var ue=M(Ce);Ce&&(e||ue[Rt])?(A(Ce),G()):A(Jt),ne.current=t}},[t]),v.useEffect(function(){(J===qn&&!l||J===Un&&!i||J===Kn&&!u)&&A(Jt)},[l,i,u]),v.useEffect(function(){return function(){K.current=!1,clearTimeout(te.current)}},[]);var ae=h.useRef(!1);v.useEffect(function(){q&&(ae.current=!0),q!==void 0&&J===Jt&&((ae.current||q)&&$?.(q),ae.current=!0)},[q,J]);var we=V;return L[Rt]&&U===wr&&(we=Q({transition:"none"},we)),[J,U,we,q??t]}function d0(e){var t=e;Se(e)==="object"&&(t=e.transitionSupport);function r(o,i){return!!(o.motionName&&t&&i!==!1)}var n=h.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,c=o.removeOnLeave,u=c===void 0?!0:c,f=o.forceRender,d=o.children,g=o.motionName,C=o.leavedClassName,b=o.eventProps,w=h.useContext(Dc),p=w.motion,S=r(o,p),m=v.useRef(),O=v.useRef();function T(){try{return m.current instanceof HTMLElement?m.current:eo(O.current)}catch{return null}}var j=u0(S,l,T,o),x=re(j,4),R=x[0],$=x[1],F=x[2],B=x[3],q=h.useRef(B);B&&(q.current=!0);var _=h.useCallback(function(W){m.current=W,pa(i,W)},[i]),D,H=Q(Q({},b),{},{visible:l});if(!d)D=null;else if(R===Jt)B?D=d(Q({},H),_):!u&&q.current&&C?D=d(Q(Q({},H),{},{className:C}),_):f||!u&&!C?D=d(Q(Q({},H),{},{style:{display:"none"}}),_):D=null;else{var P;$===Rt?P="prepare":Gc($)?P="active":$===wr&&(P="start");var A=Ls(g,"".concat(R,"-").concat(P));D=d(Q(Q({},H),{},{className:he(Ls(g,R),ee(ee({},A,A&&P),g,typeof g=="string")),style:F}),_)}if(h.isValidElement(D)&&Eo(D)){var Y=va(D);Y||(D=h.cloneElement(D,{ref:_}))}return h.createElement(Zg,{ref:O},D)});return n.displayName="CSSMotion",n}const Yc=d0(n0),oa=h.createContext(!0);process.env.NODE_ENV!=="production"&&(oa.displayName="MotionCacheContext");function f0(e){const t=h.useContext(oa),{children:r}=e,[,n]=Dr(),{motion:o}=n,i=h.useRef(!1);return i.current||(i.current=t!==o),i.current?h.createElement(oa.Provider,{value:o},h.createElement(Qg,{motion:o},r)):r}const Xc=h.memo(({dropdownMatchSelectWidth:e})=>(kt("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Xc.displayName="PropWarning");const h0=process.env.NODE_ENV!=="production"?Xc:()=>null;var g0=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 ia=!1;process.env.NODE_ENV;const p0=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Qc;function m0(){return Qc||ra}function v0(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const b0=e=>{const{prefixCls:t,theme:r}=e;t!==void 0&&(Qc=t),r&&v0(r)&&(process.env.NODE_ENV!=="production"&&En(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),bg(m0(),r))},y0=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:i,form:a,locale:l,componentSize:c,direction:u,space:f,splitter:d,virtual:g,dropdownMatchSelectWidth:C,popupMatchSelectWidth:b,popupOverflow:w,legacyLocale:p,parentContext:S,iconPrefixCls:m,theme:O,componentDisabled:T,segmented:j,statistic:x,spin:R,calendar:$,carousel:F,cascader:B,collapse:q,typography:_,checkbox:D,descriptions:H,divider:P,drawer:A,skeleton:Y,steps:W,image:V,layout:X,list:J,mentions:K,modal:te,progress:se,result:ge,slider:ce,breadcrumb:ve,menu:E,pagination:N,input:z,textArea:M,empty:L,badge:k,radio:I,rate:G,switch:U,transfer:Z,avatar:ne,message:ae,tag:we,table:be,card:Ce,tabs:ue,timeline:oe,timePicker:ye,upload:Ee,notification:Ye,tree:Me,colorPicker:ke,datePicker:xe,rangePicker:Ae,flex:ze,wave:Oe,dropdown:me,warning:Ne,tour:le,tooltip:de,popover:We,popconfirm:At,floatButton:rr,floatButtonGroup:fr,variant:zr,inputNumber:hr,treeSelect:Ct}=e,nt=h.useCallback((_e,Ue)=>{const{prefixCls:at}=e;if(Ue)return Ue;const it=at||S.getPrefixCls("");return _e?`${it}-${_e}`:it},[S.getPrefixCls,e.prefixCls]),qe=m||S.iconPrefixCls||Sa,Nt=r||S.csp;qg(qe,Nt);const ot=Yg(O,S.theme,{prefixCls:nt("")});process.env.NODE_ENV!=="production"&&(ia=ia||!!ot);const Te={csp:Nt,autoInsertSpaceInButton:n,alert:o,anchor:i,locale:l||p,direction:u,space:f,splitter:d,virtual:g,popupMatchSelectWidth:b??C,popupOverflow:w,getPrefixCls:nt,iconPrefixCls:qe,theme:ot,segmented:j,statistic:x,spin:R,calendar:$,carousel:F,cascader:B,collapse:q,typography:_,checkbox:D,descriptions:H,divider:P,drawer:A,skeleton:Y,steps:W,image:V,input:z,textArea:M,layout:X,list:J,mentions:K,modal:te,progress:se,result:ge,slider:ce,breadcrumb:ve,menu:E,pagination:N,empty:L,badge:k,radio:I,rate:G,switch:U,transfer:Z,avatar:ne,message:ae,tag:we,table:be,card:Ce,tabs:ue,timeline:oe,timePicker:ye,upload:Ee,notification:Ye,tree:Me,colorPicker:ke,datePicker:xe,rangePicker:Ae,flex:ze,wave:Oe,dropdown:me,warning:Ne,tour:le,tooltip:de,popover:We,popconfirm:At,floatButton:rr,floatButtonGroup:fr,variant:zr,inputNumber:hr,treeSelect:Ct};process.env.NODE_ENV!=="production"&&kt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Re=Object.assign({},S);Object.keys(Te).forEach(_e=>{Te[_e]!==void 0&&(Re[_e]=Te[_e])}),p0.forEach(_e=>{const Ue=e[_e];Ue&&(Re[_e]=Ue)}),typeof n<"u"&&(Re.button=Object.assign({autoInsertSpace:n},Re.button));const Je=ga(()=>Re,Re,(_e,Ue)=>{const at=Object.keys(_e),it=Object.keys(Ue);return at.length!==it.length||at.some(Ot=>_e[Ot]!==Ue[Ot])}),{layer:Tt}=h.useContext(Sn),lt=h.useMemo(()=>({prefixCls:qe,csp:Nt,layer:Tt?"antd":void 0}),[qe,Nt,Tt]);let Fe=h.createElement(h.Fragment,null,h.createElement(h0,{dropdownMatchSelectWidth:C}),t);const Kt=h.useMemo(()=>{var _e,Ue,at,it;return Yh(((_e=_r.Form)===null||_e===void 0?void 0:_e.defaultValidateMessages)||{},((at=(Ue=Je.locale)===null||Ue===void 0?void 0:Ue.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(Kt).length>0&&(Fe=h.createElement(Qh.Provider,{value:Kt},Fe)),l&&(Fe=h.createElement(Rc,{locale:l,_ANT_MARK__:Ec},Fe)),Fe=h.createElement(da.Provider,{value:lt},Fe),c&&(Fe=h.createElement(xg,{size:c},Fe)),Fe=h.createElement(f0,null,Fe);const Dt=h.useMemo(()=>{const _e=ot||{},{algorithm:Ue,token:at,components:it,cssVar:Ot}=_e,gr=g0(_e,["algorithm","token","components","cssVar"]),wt=Ue&&(!Array.isArray(Ue)||Ue.length>0)?Gi(Ue):$c,ht={};Object.entries(it||{}).forEach(([St,pr])=>{const De=Object.assign({},pr);"algorithm"in De&&(De.algorithm===!0?De.theme=wt:(Array.isArray(De.algorithm)||typeof De.algorithm=="function")&&(De.theme=Gi(De.algorithm)),delete De.algorithm),ht[St]=De});const _t=Object.assign(Object.assign({},mn),at);return Object.assign(Object.assign({},gr),{theme:wt,token:_t,components:ht,override:Object.assign({override:_t},ht),cssVar:Ot})},[ot]);return O&&(Fe=h.createElement(Tc.Provider,{value:Dt},Fe)),Je.warning&&(Fe=h.createElement(wc.Provider,{value:Je.warning},Fe)),T!==void 0&&(Fe=h.createElement(yg,{disabled:T},Fe)),h.createElement(Vt.Provider,{value:Je},Fe)},Br=e=>{const t=h.useContext(Vt),r=h.useContext(wa);return h.createElement(y0,Object.assign({parentContext:t,legacyLocale:r},e))};Br.ConfigContext=Vt;Br.SizeContext=Ir;Br.config=b0;Br.useConfig=Cg;Object.defineProperty(Br,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&En(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Ir)});process.env.NODE_ENV!=="production"&&(Br.displayName="ConfigProvider");function Zc(e){var t=e.children,r=e.prefixCls,n=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,l=e.style;return h.createElement("div",{className:he("".concat(r,"-content"),a),style:l},h.createElement("div",{className:he("".concat(r,"-inner"),i),id:n,role:"tooltip",style:o},typeof t=="function"?t():t))}var Jc=h.createContext(null),Hs=[];function x0(e,t){var r=h.useState(function(){if(!st())return null;var b=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&b.setAttribute("data-debug",t),b}),n=re(r,1),o=n[0],i=h.useRef(!1),a=h.useContext(Jc),l=h.useState(Hs),c=re(l,2),u=c[0],f=c[1],d=a||(i.current?void 0:function(b){f(function(w){var p=[b].concat(rt(w));return p})});function g(){o.parentElement||document.body.appendChild(o),i.current=!0}function C(){var b;(b=o.parentElement)===null||b===void 0||b.removeChild(o),i.current=!1}return Le(function(){return e?a?a(g):g():C(),C},[e]),Le(function(){u.length&&(u.forEach(function(b){return b()}),f(Hs))},[u]),[o,d]}function C0(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),u=parseInt(l.height,10);try{var f=c?"width: ".concat(l.width,";"):"",d=u?"height: ".concat(l.height,";"):"";Ht(`
122
122
  #`.concat(t,`::-webkit-scrollbar {
123
123
  `).concat(f,`
124
124
  `).concat(d,`
@@ -126,7 +126,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
126
126
  html body {
127
127
  overflow-y: hidden;
128
128
  `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
129
- }`),o)}else cn(o);return function(){cn(o)}},[t,o])}var j0=!1;function $0(e){return j0}var Ws=function(t){return t===!1?!1:!st()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},ja=h.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,u=h.useState(r),f=re(u,2),d=f[0],g=f[1],C=d||r;process.env.NODE_ENV!=="production"&&Wt(st()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),h.useEffect(function(){(l||r)&&g(r)},[r,l]);var b=h.useState(function(){return Ws(o)}),w=re(b,2),p=w[0],S=w[1];h.useEffect(function(){var I=Ws(o);S(I??null)});var m=x0(C&&!p,i),O=re(m,2),T=O[0],j=O[1],x=p??T;R0(n&&r&&st()&&(x===T||x===document.body));var R=null;if(c&&Eo(c)&&t){var $=c;R=$.ref}var L=ma(R,t);if(!C||!st()||p===void 0)return null;var B=x===!1||$0(),q=c;return t&&(q=h.cloneElement(c,{ref:L})),h.createElement(Jc.Provider,{value:j},B?q:ao.createPortal(q,x))});process.env.NODE_ENV!=="production"&&(ja.displayName="Portal");function T0(){var e=Q({},h);return e.useId}var qs=0,Us=T0();const eu=Us?function(t){var r=Us();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=h.useState("ssr-id"),n=re(r,2),o=n[0],i=n[1];return h.useEffect(function(){var a=qs;qs+=1,i("rc_unique_".concat(a))},[]),t||(process.env.NODE_ENV==="test"?"test-id":o)},O0=(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 _0(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,u=c===void 0?0:c,f=o.y,d=f===void 0?0:f,g=h.useRef();if(!r||!r.points)return null;var C={position:"absolute"};if(r.autoArrow!==!1){var b=r.points[0],w=r.points[1],p=b[0],S=b[1],m=w[0],O=w[1];p===m||!["t","b"].includes(p)?C.top=d:p==="t"?C.top=0:C.bottom=0,S===O||!["l","r"].includes(S)?C.left=u:S==="l"?C.left=0:C.right=0}return h.createElement("div",{ref:g,className:he("".concat(t,"-arrow"),a),style:C},l)}function I0(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,i=e.motion;return o?h.createElement(Yc,Ze({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var l=a.className;return h.createElement("div",{style:{zIndex:n},className:he("".concat(t,"-mask"),l)})}):null}var tu=h.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(tu.displayName="PopupContent");var ru=h.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,u=e.keepDom,f=e.fresh,d=e.onClick,g=e.mask,C=e.arrow,b=e.arrowPos,w=e.align,p=e.motion,S=e.maskMotion,m=e.forceRender,O=e.getPopupContainer,T=e.autoDestroy,j=e.portal,x=e.zIndex,R=e.onMouseEnter,$=e.onMouseLeave,L=e.onPointerEnter,B=e.onPointerDownCapture,q=e.ready,I=e.offsetX,N=e.offsetY,F=e.offsetR,P=e.offsetB,M=e.onAlign,Y=e.onPrepare,W=e.stretch,H=e.targetWidth,X=e.targetHeight,J=typeof r=="function"?r():r,K=c||u,te=O?.length>0,se=h.useState(!O||!te),ge=re(se,2),ce=ge[0],ve=ge[1];if(Le(function(){!ce&&te&&a&&ve(!0)},[ce,te,a]),!ce)return null;var E="auto",k={left:"-1000vw",top:"-1000vh",right:E,bottom:E};if(q||!c){var z,D=w.points,A=w.dynamicInset||((z=w._experimental)===null||z===void 0?void 0:z.dynamicInset),G=A&&D[0][1]==="r",_=A&&D[0][0]==="b";G?(k.right=F,k.left=E):(k.left=I,k.right=E),_?(k.bottom=P,k.top=E):(k.top=N,k.bottom=E)}var V={};return W&&(W.includes("height")&&X?V.height=X:W.includes("minHeight")&&X&&(V.minHeight=X),W.includes("width")&&H?V.width=H:W.includes("minWidth")&&H&&(V.minWidth=H)),c||(V.pointerEvents="none"),h.createElement(j,{open:m||K,getContainer:O&&function(){return O(a)},autoDestroy:T},h.createElement(I0,{prefixCls:o,open:c,zIndex:x,mask:g,motion:S}),h.createElement(Ar,{onResize:M,disabled:!c},function(U){return h.createElement(Yc,Ze({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(o,"-hidden")},p,{onAppearPrepare:Y,onEnterPrepare:Y,visible:c,onVisibleChanged:function(ne){var oe;p==null||(oe=p.onVisibleChanged)===null||oe===void 0||oe.call(p,ne),l(ne)}}),function(Z,ne){var oe=Z.className,ye=Z.style,be=he(o,oe,n);return h.createElement("div",{ref:xn(U,t,ne),className:be,style:Q(Q(Q(Q({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},k),V),ye),{},{boxSizing:"border-box",zIndex:x},i),onMouseEnter:R,onMouseLeave:$,onPointerEnter:L,onClick:d,onPointerDownCapture:B},C&&h.createElement(_0,{prefixCls:o,arrow:C,arrowPos:b,align:w}),h.createElement(tu,{cache:!c&&!f},J))})}))});process.env.NODE_ENV!=="production"&&(ru.displayName="Popup");var nu=h.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=Eo(r),i=h.useCallback(function(l){pa(t,n?n(l):l)},[n]),a=ma(i,va(r));return o?h.cloneElement(r,{ref:a}):r});process.env.NODE_ENV!=="production"&&(nu.displayName="TriggerWrapper");var Ks=h.createContext(null);function Gs(e){return e?Array.isArray(e)?e:[e]:[]}function P0(e,t,r,n){return h.useMemo(function(){var o=Gs(r??t),i=Gs(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 M0=(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 k0(){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 A0(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(k0((l=e[c])===null||l===void 0?void 0:l.points,o,n))return"".concat(t,"-placement-").concat(c)}return""}function Ys(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function jn(e){return e.ownerDocument.defaultView}function aa(e){for(var t=[],r=e?.parentElement,n=["hidden","scroll","clip","auto"];r;){var o=jn(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 bn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function tn(e){return bn(parseFloat(e),0)}function Xs(e,t){var r=Q({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var o=jn(n).getComputedStyle(n),i=o.overflow,a=o.overflowClipMargin,l=o.borderTopWidth,c=o.borderBottomWidth,u=o.borderLeftWidth,f=o.borderRightWidth,d=n.getBoundingClientRect(),g=n.offsetHeight,C=n.clientHeight,b=n.offsetWidth,w=n.clientWidth,p=tn(l),S=tn(c),m=tn(u),O=tn(f),T=bn(Math.round(d.width/b*1e3)/1e3),j=bn(Math.round(d.height/g*1e3)/1e3),x=(b-w-m-O)*T,R=(g-C-p-S)*j,$=p*j,L=S*j,B=m*T,q=O*T,I=0,N=0;if(i==="clip"){var F=tn(a);I=F*T,N=F*j}var P=d.x+B-I,M=d.y+$-N,Y=P+d.width+2*I-B-q-x,W=M+d.height+2*N-$-L-R;r.left=Math.max(r.left,P),r.top=Math.max(r.top,M),r.right=Math.min(r.right,Y),r.bottom=Math.min(r.bottom,W)}}),r}function Qs(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 Zs(e,t){var r=t||[],n=re(r,2),o=n[0],i=n[1];return[Qs(e.width,o),Qs(e.height,i)]}function Js(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function yr(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 Zt(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 N0(e,t,r,n,o,i,a){var l=h.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),u=c[0],f=c[1],d=h.useRef(0),g=h.useMemo(function(){return t?aa(t):[]},[t]),C=h.useRef({}),b=function(){C.current={}};e||b();var w=ft(function(){if(t&&r&&e){let gt=function(Wr,Bt){var Qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xe,qr=K.x+Wr,Dn=K.y+Bt,Ho=qr+_,Vo=Dn+G,Wo=Math.max(qr,Qt.left),ae=Math.max(Dn,Qt.top),fe=Math.min(Ho,Qt.right),Be=Math.min(Vo,Qt.bottom);return Math.max(0,(fe-Wo)*(Be-ae))},vr=function(){wt=K.y+Re,ht=wt+G,_t=K.x+Te,St=_t+_};var m,O,T,j,x=t,R=x.ownerDocument,$=jn(x),L=$.getComputedStyle(x),B=L.position,q=x.style.left,I=x.style.top,N=x.style.right,F=x.style.bottom,P=x.style.overflow,M=Q(Q({},o[n]),i),Y=R.createElement("div");(m=x.parentElement)===null||m===void 0||m.appendChild(Y),Y.style.left="".concat(x.offsetLeft,"px"),Y.style.top="".concat(x.offsetTop,"px"),Y.style.position=B,Y.style.height="".concat(x.offsetHeight,"px"),Y.style.width="".concat(x.offsetWidth,"px"),x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";var W;if(Array.isArray(r))W={x:r[0],y:r[1],width:0,height:0};else{var H,X,J=r.getBoundingClientRect();J.x=(H=J.x)!==null&&H!==void 0?H:J.left,J.y=(X=J.y)!==null&&X!==void 0?X:J.top,W={x:J.x,y:J.y,width:J.width,height:J.height}}var K=x.getBoundingClientRect(),te=$.getComputedStyle(x),se=te.height,ge=te.width;K.x=(O=K.x)!==null&&O!==void 0?O:K.left,K.y=(T=K.y)!==null&&T!==void 0?T:K.top;var ce=R.documentElement,ve=ce.clientWidth,E=ce.clientHeight,k=ce.scrollWidth,z=ce.scrollHeight,D=ce.scrollTop,A=ce.scrollLeft,G=K.height,_=K.width,V=W.height,U=W.width,Z={left:0,top:0,right:ve,bottom:E},ne={left:-A,top:-D,right:k-A,bottom:z-D},oe=M.htmlRegion,ye="visible",be="visibleFirst";oe!=="scroll"&&oe!==be&&(oe=ye);var we=oe===be,ue=Xs(ne,g),ie=Xs(Z,g),xe=oe===ye?ie:ue,Ee=we?ie:xe;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";var Ye=x.getBoundingClientRect();x.style.left=q,x.style.top=I,x.style.right=N,x.style.bottom=F,x.style.overflow=P,(j=x.parentElement)===null||j===void 0||j.removeChild(Y);var Me=bn(Math.round(_/parseFloat(ge)*1e3)/1e3),ke=bn(Math.round(G/parseFloat(se)*1e3)/1e3);if(Me===0||ke===0||dn(r)&&!M0(r))return;var Ce=M.offset,Ae=M.targetOffset,ze=Zs(K,Ce),_e=re(ze,2),me=_e[0],Ne=_e[1],le=Zs(W,Ae),de=re(le,2),We=de[0],At=de[1];W.x-=We,W.y-=At;var rr=M.points||[],fr=re(rr,2),zr=fr[0],hr=fr[1],Ct=Js(hr),nt=Js(zr),qe=yr(W,Ct),Nt=yr(K,nt),ot=Q({},M),Te=qe.x-Nt.x+me,Re=qe.y-Nt.y+Ne,Je=gt(Te,Re),Tt=gt(Te,Re,ie),lt=yr(W,["t","l"]),Fe=yr(K,["t","l"]),Kt=yr(W,["b","r"]),Dt=yr(K,["b","r"]),Ie=M.overflow||{},Ue=Ie.adjustX,at=Ie.adjustY,it=Ie.shiftX,Ot=Ie.shiftY,gr=function(Bt){return typeof Bt=="boolean"?Bt:Bt>=0},wt,ht,_t,St;vr();var pr=gr(at),De=nt[0]===Ct[0];if(pr&&nt[0]==="t"&&(ht>Ee.bottom||C.current.bt)){var nr=Re;De?nr-=G-V:nr=lt.y-Dt.y-Ne;var Tn=gt(Te,nr),Io=gt(Te,nr,ie);Tn>Je||Tn===Je&&(!we||Io>=Tt)?(C.current.bt=!0,Re=nr,Ne=-Ne,ot.points=[Zt(nt,0),Zt(Ct,0)]):C.current.bt=!1}if(pr&&nt[0]==="b"&&(wt<Ee.top||C.current.tb)){var or=Re;De?or+=G-V:or=Kt.y-Fe.y-Ne;var On=gt(Te,or),Po=gt(Te,or,ie);On>Je||On===Je&&(!we||Po>=Tt)?(C.current.tb=!0,Re=or,Ne=-Ne,ot.points=[Zt(nt,0),Zt(Ct,0)]):C.current.tb=!1}var _n=gr(Ue),In=nt[1]===Ct[1];if(_n&&nt[1]==="l"&&(St>Ee.right||C.current.rl)){var ir=Te;In?ir-=_-U:ir=lt.x-Dt.x-me;var ar=gt(ir,Re),Lr=gt(ir,Re,ie);ar>Je||ar===Je&&(!we||Lr>=Tt)?(C.current.rl=!0,Te=ir,me=-me,ot.points=[Zt(nt,1),Zt(Ct,1)]):C.current.rl=!1}if(_n&&nt[1]==="r"&&(_t<Ee.left||C.current.lr)){var sr=Te;In?sr+=_-U:sr=Kt.x-Fe.x-me;var Fr=gt(sr,Re),mr=gt(sr,Re,ie);Fr>Je||Fr===Je&&(!we||mr>=Tt)?(C.current.lr=!0,Te=sr,me=-me,ot.points=[Zt(nt,1),Zt(Ct,1)]):C.current.lr=!1}vr();var Et=it===!0?0:it;typeof Et=="number"&&(_t<ie.left&&(Te-=_t-ie.left-me,W.x+U<ie.left+Et&&(Te+=W.x-ie.left+U-Et)),St>ie.right&&(Te-=St-ie.right-me,W.x>ie.right-Et&&(Te+=W.x-ie.right+Et)));var Gt=Ot===!0?0:Ot;typeof Gt=="number"&&(wt<ie.top&&(Re-=wt-ie.top-Ne,W.y+V<ie.top+Gt&&(Re+=W.y-ie.top+V-Gt)),ht>ie.bottom&&(Re-=ht-ie.bottom-Ne,W.y>ie.bottom-Gt&&(Re+=W.y-ie.bottom+Gt)));var Yt=K.x+Te,Xt=Yt+_,Hr=K.y+Re,Mo=Hr+G,Pn=W.x,Mn=Pn+U,kn=W.y,ko=kn+V,Ao=Math.max(Yt,Pn),An=Math.min(Xt,Mn),No=(Ao+An)/2,Do=No-Yt,Nn=Math.max(Hr,kn),Bo=Math.min(Mo,ko),zo=(Nn+Bo)/2,Lo=zo-Hr;a?.(t,ot);var It=Ye.right-K.x-(Te+K.width),Vr=Ye.bottom-K.y-(Re+K.height);Me===1&&(Te=Math.round(Te),It=Math.round(It)),ke===1&&(Re=Math.round(Re),Vr=Math.round(Vr));var Fo={ready:!0,offsetX:Te/Me,offsetY:Re/ke,offsetR:It/Me,offsetB:Vr/ke,arrowX:Do/Me,arrowY:Lo/ke,scaleX:Me,scaleY:ke,align:ot};f(Fo)}}),p=function(){d.current+=1;var O=d.current;Promise.resolve().then(function(){d.current===O&&w()})},S=function(){f(function(O){return Q(Q({},O),{},{ready:!1})})};return Le(S,[n]),Le(function(){e||S()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,p]}function D0(e,t,r,n,o){Le(function(){if(e&&t&&r){let d=function(){n(),o()};var i=t,a=r,l=aa(i),c=aa(a),u=jn(a),f=new Set([u].concat(rt(l),rt(c)));return f.forEach(function(g){g.addEventListener("scroll",d,{passive:!0})}),u.addEventListener("resize",d,{passive:!0}),n(),function(){f.forEach(function(g){g.removeEventListener("scroll",d),u.removeEventListener("resize",d)})}}},[e,t,r])}function B0(e,t,r,n,o,i,a,l){var c=h.useRef(e);c.current=e;var u=h.useRef(!1);h.useEffect(function(){if(t&&n&&(!o||i)){var d=function(){u.current=!1},g=function(T){var j;c.current&&!a(((j=T.composedPath)===null||j===void 0||(j=j.call(T))===null||j===void 0?void 0:j[0])||T.target)&&!u.current&&l(!1)},C=jn(n);C.addEventListener("pointerdown",d,!0),C.addEventListener("mousedown",g,!0),C.addEventListener("contextmenu",g,!0);var b=fo(r);if(b&&(b.addEventListener("mousedown",g,!0),b.addEventListener("contextmenu",g,!0)),process.env.NODE_ENV!=="production"){var w,p,S=r==null||(w=r.getRootNode)===null||w===void 0?void 0:w.call(r),m=(p=n.getRootNode)===null||p===void 0?void 0:p.call(n);Rr(S===m,"trigger element and popup element should in same shadow root.")}return function(){C.removeEventListener("pointerdown",d,!0),C.removeEventListener("mousedown",g,!0),C.removeEventListener("contextmenu",g,!0),b&&(b.removeEventListener("mousedown",g,!0),b.removeEventListener("contextmenu",g,!0))}}},[t,r,n,o,i]);function f(){u.current=!0}return f}var z0=["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 L0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ja,t=h.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,u=r.showAction,f=r.hideAction,d=r.popupVisible,g=r.defaultPopupVisible,C=r.onPopupVisibleChange,b=r.afterPopupVisibleChange,w=r.mouseEnterDelay,p=r.mouseLeaveDelay,S=p===void 0?.1:p,m=r.focusDelay,O=r.blurDelay,T=r.mask,j=r.maskClosable,x=j===void 0?!0:j,R=r.getPopupContainer,$=r.forceRender,L=r.autoDestroy,B=r.destroyPopupOnHide,q=r.popup,I=r.popupClassName,N=r.popupStyle,F=r.popupPlacement,P=r.builtinPlacements,M=P===void 0?{}:P,Y=r.popupAlign,W=r.zIndex,H=r.stretch,X=r.getPopupClassNameFromAlign,J=r.fresh,K=r.alignPoint,te=r.onPopupClick,se=r.onPopupAlign,ge=r.arrow,ce=r.popupMotion,ve=r.maskMotion,E=r.popupTransitionName,k=r.popupAnimation,z=r.maskTransitionName,D=r.maskAnimation,A=r.className,G=r.getTriggerDOMNode,_=$t(r,z0),V=L||B||!1,U=h.useState(!1),Z=re(U,2),ne=Z[0],oe=Z[1];Le(function(){oe(O0())},[]);var ye=h.useRef({}),be=h.useContext(Ks),we=h.useMemo(function(){return{registerSubPopup:function(fe,Be){ye.current[fe]=Be,be?.registerSubPopup(fe,Be)}}},[be]),ue=eu(),ie=h.useState(null),xe=re(ie,2),Ee=xe[0],Ye=xe[1],Me=h.useRef(null),ke=ft(function(ae){Me.current=ae,dn(ae)&&Ee!==ae&&Ye(ae),be?.registerSubPopup(ue,ae)}),Ce=h.useState(null),Ae=re(Ce,2),ze=Ae[0],_e=Ae[1],me=h.useRef(null),Ne=ft(function(ae){dn(ae)&&ze!==ae&&(_e(ae),me.current=ae)}),le=h.Children.only(a),de=le?.props||{},We={},At=ft(function(ae){var fe,Be,Xe=ze;return Xe?.contains(ae)||((fe=fo(Xe))===null||fe===void 0?void 0:fe.host)===ae||ae===Xe||Ee?.contains(ae)||((Be=fo(Ee))===null||Be===void 0?void 0:Be.host)===ae||ae===Ee||Object.values(ye.current).some(function(He){return He?.contains(ae)||ae===He})}),rr=Ys(i,ce,k,E),fr=Ys(i,ve,D,z),zr=h.useState(g||!1),hr=re(zr,2),Ct=hr[0],nt=hr[1],qe=d??Ct,Nt=ft(function(ae){d===void 0&&nt(ae)});Le(function(){nt(d||!1)},[d]);var ot=h.useRef(qe);ot.current=qe;var Te=h.useRef([]);Te.current=[];var Re=ft(function(ae){var fe;Nt(ae),((fe=Te.current[Te.current.length-1])!==null&&fe!==void 0?fe:qe)!==ae&&(Te.current.push(ae),C?.(ae))}),Je=h.useRef(),Tt=function(){clearTimeout(Je.current)},lt=function(fe){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Tt(),Be===0?Re(fe):Je.current=setTimeout(function(){Re(fe)},Be*1e3)};h.useEffect(function(){return Tt},[]);var Fe=h.useState(!1),Kt=re(Fe,2),Dt=Kt[0],Ie=Kt[1];Le(function(ae){(!ae||qe)&&Ie(!0)},[qe]);var Ue=h.useState(null),at=re(Ue,2),it=at[0],Ot=at[1],gr=h.useState(null),wt=re(gr,2),ht=wt[0],_t=wt[1],St=function(fe){_t([fe.clientX,fe.clientY])},pr=N0(qe,Ee,K&&ht!==null?ht:ze,F,M,Y,se),De=re(pr,11),nr=De[0],Tn=De[1],Io=De[2],or=De[3],On=De[4],Po=De[5],_n=De[6],In=De[7],ir=De[8],ar=De[9],Lr=De[10],sr=P0(ne,c,u,f),Fr=re(sr,2),mr=Fr[0],Et=Fr[1],Gt=mr.has("click"),Yt=Et.has("click")||Et.has("contextMenu"),Xt=ft(function(){Dt||Lr()}),Hr=function(){ot.current&&K&&Yt&&lt(!1)};D0(qe,ze,Ee,Xt,Hr),Le(function(){Xt()},[ht,F]),Le(function(){qe&&!(M!=null&&M[F])&&Xt()},[JSON.stringify(Y)]);var Mo=h.useMemo(function(){var ae=A0(M,i,ar,K);return he(ae,X?.(ar))},[ar,X,M,i,K]);h.useImperativeHandle(n,function(){return{nativeElement:me.current,popupElement:Me.current,forceAlign:Xt}});var Pn=h.useState(0),Mn=re(Pn,2),kn=Mn[0],ko=Mn[1],Ao=h.useState(0),An=re(Ao,2),No=An[0],Do=An[1],Nn=function(){if(H&&ze){var fe=ze.getBoundingClientRect();ko(fe.width),Do(fe.height)}},Bo=function(){Nn(),Xt()},zo=function(fe){Ie(!1),Lr(),b?.(fe)},Lo=function(){return new Promise(function(fe){Nn(),Ot(function(){return fe})})};Le(function(){it&&(Lr(),it(),Ot(null))},[it]);function It(ae,fe,Be,Xe){We[ae]=function(He){var Bn;Xe?.(He),lt(fe,Be);for(var qo=arguments.length,Pa=new Array(qo>1?qo-1:0),zn=1;zn<qo;zn++)Pa[zn-1]=arguments[zn];(Bn=de[ae])===null||Bn===void 0||Bn.call.apply(Bn,[de,He].concat(Pa))}}(Gt||Yt)&&(We.onClick=function(ae){var fe;ot.current&&Yt?lt(!1):!ot.current&&Gt&&(St(ae),lt(!0));for(var Be=arguments.length,Xe=new Array(Be>1?Be-1:0),He=1;He<Be;He++)Xe[He-1]=arguments[He];(fe=de.onClick)===null||fe===void 0||fe.call.apply(fe,[de,ae].concat(Xe))});var Vr=B0(qe,Yt,ze,Ee,T,x,At,lt),Fo=mr.has("hover"),gt=Et.has("hover"),vr,Wr;Fo&&(It("onMouseEnter",!0,w,function(ae){St(ae)}),It("onPointerEnter",!0,w,function(ae){St(ae)}),vr=function(fe){(qe||Dt)&&Ee!==null&&Ee!==void 0&&Ee.contains(fe.target)&&lt(!0,w)},K&&(We.onMouseMove=function(ae){var fe;(fe=de.onMouseMove)===null||fe===void 0||fe.call(de,ae)})),gt&&(It("onMouseLeave",!1,S),It("onPointerLeave",!1,S),Wr=function(){lt(!1,S)}),mr.has("focus")&&It("onFocus",!0,m),Et.has("focus")&&It("onBlur",!1,O),mr.has("contextMenu")&&(We.onContextMenu=function(ae){var fe;ot.current&&Et.has("contextMenu")?lt(!1):(St(ae),lt(!0)),ae.preventDefault();for(var Be=arguments.length,Xe=new Array(Be>1?Be-1:0),He=1;He<Be;He++)Xe[He-1]=arguments[He];(fe=de.onContextMenu)===null||fe===void 0||fe.call.apply(fe,[de,ae].concat(Xe))}),A&&(We.className=he(de.className,A));var Bt=h.useRef(!1);Bt.current||(Bt.current=$||qe||Dt);var Qt=Q(Q({},de),We),qr={},Dn=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Dn.forEach(function(ae){_[ae]&&(qr[ae]=function(){for(var fe,Be=arguments.length,Xe=new Array(Be),He=0;He<Be;He++)Xe[He]=arguments[He];(fe=Qt[ae])===null||fe===void 0||fe.call.apply(fe,[Qt].concat(Xe)),_[ae].apply(_,Xe)})});var Ho=h.cloneElement(le,Q(Q({},Qt),qr)),Vo={x:Po,y:_n},Wo=ge?Q({},ge!==!0?ge:{}):null;return h.createElement(h.Fragment,null,h.createElement(Ar,{disabled:!qe,ref:Ne,onResize:Bo},h.createElement(nu,{getTriggerDOMNode:G},Ho)),Bt.current&&h.createElement(Ks.Provider,{value:we},h.createElement(ru,{portal:e,ref:ke,prefixCls:i,popup:q,className:he(I,Mo),style:N,target:ze,onMouseEnter:vr,onMouseLeave:Wr,onPointerEnter:vr,zIndex:W,open:qe,keepDom:Dt,fresh:J,onClick:te,onPointerDownCapture:Vr,mask:T,motion:rr,maskMotion:fr,onVisibleChanged:zo,onPrepare:Lo,forceRender:$,autoDestroy:V,getPopupContainer:R,align:ar,arrow:Wo,arrowPos:Vo,ready:nr,offsetX:Tn,offsetY:Io,offsetR:or,offsetB:On,onAlign:Xt,stretch:H,targetWidth:kn/In,targetHeight:No/ir})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const F0=L0(ja);var xr={shiftX:64,adjustY:1},Cr={adjustX:1,shiftY:!0},mt=[0,0],H0={left:{points:["cr","cl"],overflow:Cr,offset:[-4,0],targetOffset:mt},right:{points:["cl","cr"],overflow:Cr,offset:[4,0],targetOffset:mt},top:{points:["bc","tc"],overflow:xr,offset:[0,-4],targetOffset:mt},bottom:{points:["tc","bc"],overflow:xr,offset:[0,4],targetOffset:mt},topLeft:{points:["bl","tl"],overflow:xr,offset:[0,-4],targetOffset:mt},leftTop:{points:["tr","tl"],overflow:Cr,offset:[-4,0],targetOffset:mt},topRight:{points:["br","tr"],overflow:xr,offset:[0,-4],targetOffset:mt},rightTop:{points:["tl","tr"],overflow:Cr,offset:[4,0],targetOffset:mt},bottomRight:{points:["tr","br"],overflow:xr,offset:[0,4],targetOffset:mt},rightBottom:{points:["bl","br"],overflow:Cr,offset:[4,0],targetOffset:mt},bottomLeft:{points:["tl","bl"],overflow:xr,offset:[0,4],targetOffset:mt},leftBottom:{points:["br","bl"],overflow:Cr,offset:[-4,0],targetOffset:mt}},V0=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],W0=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,u=c===void 0?.1:c,f=t.overlayStyle,d=t.prefixCls,g=d===void 0?"rc-tooltip":d,C=t.children,b=t.onVisibleChange,w=t.afterVisibleChange,p=t.transitionName,S=t.animation,m=t.motion,O=t.placement,T=O===void 0?"right":O,j=t.align,x=j===void 0?{}:j,R=t.destroyTooltipOnHide,$=R===void 0?!1:R,L=t.defaultVisible,B=t.getTooltipContainer,q=t.overlayInnerStyle,I=t.overlay,N=t.id,F=t.showArrow,P=F===void 0?!0:F,M=t.classNames,Y=t.styles,W=$t(t,V0),H=eu(N),X=v.useRef(null);v.useImperativeHandle(r,function(){return X.current});var J=Q({},W);"visible"in t&&(J.popupVisible=t.visible);var K=function(){return h.createElement(Zc,{key:"content",prefixCls:g,id:H,bodyClassName:M?.body,overlayInnerStyle:Q(Q({},q),Y?.body)},I)},te=function(){var ge=h.Children.only(C),ce=ge?.props||{},ve=Q(Q({},ce),{},{"aria-describedby":I?H:null});return h.cloneElement(C,ve)};return h.createElement(F0,Ze({popupClassName:he(n,M?.root),prefixCls:g,popup:K,action:i,builtinPlacements:H0,popupPlacement:T,ref:X,popupAlign:x,getPopupContainer:B,onPopupVisibleChange:b,afterPopupVisibleChange:w,popupTransitionName:p,popupAnimation:S,popupMotion:m,defaultPopupVisible:L,autoDestroy:$,mouseLeaveDelay:u,popupStyle:Q(Q({},f),Y?.root),mouseEnterDelay:l,arrow:P},J),te())};const q0=v.forwardRef(W0),yn=h.createContext({});process.env.NODE_ENV!=="production"&&(yn.displayName="FormItemInputContext");const U0=({children:e,status:t,override:r})=>{const n=h.useContext(yn),o=h.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 h.createElement(yn.Provider,{value:o},e)},K0=h.createContext(void 0),ou=e=>{const t=v.useContext(Ir);return v.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},iu=h.createContext(null),au=(e,t)=>{const r=h.useContext(iu),n=h.useMemo(()=>{if(!r)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=r,l=o==="vertical"?"-vertical-":"-";return he(`${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}},G0=e=>{const{children:t}=e;return h.createElement(iu.Provider,{value:null},t)},sa=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let o=n;return r&&(o=v.createElement(U0,{override:!0,status:!0},o)),t&&(o=v.createElement(G0,null,o)),o},$a=v.createContext(void 0);process.env.NODE_ENV!=="production"&&($a.displayName="zIndexContext");const Lt=100,Y0=10,X0=Lt*Y0,Q0=X0+Lt,su={Modal:Lt,Drawer:Lt,Popover:Lt,Popconfirm:Lt,Tooltip:Lt,Tour:Lt,FloatButton:Lt},Z0={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function J0(e){return e in su}const ep=(e,t)=>{const[,r]=Dr(),n=v.useContext($a),o=J0(e);let i;if(t!==void 0)i=[t,t];else{let a=n??0;o?a+=(n?0:r.zIndexPopupBase)+su[e]:a+=Z0[e],i=[n===void 0?t:a,a]}if(process.env.NODE_ENV!=="production"){const a=kt(e),l=r.zIndexPopupBase+Q0,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},tp=(e,t,r)=>r!==void 0?r:`${e}-${t}`;function rp(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)),u=o-r*(1/Math.sqrt(2)),f=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),d=2*o-u,g=f,C=2*o-l,b=c,w=2*o-i,p=a,S=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),m=n*(Math.sqrt(2)-1),O=`polygon(${m}px 100%, 50% ${m}px, ${2*o-m}px 100%, ${m}px 100%)`,T=`path('M ${i} ${a} A ${n} ${n} 0 0 0 ${l} ${c} L ${u} ${f} A ${r} ${r} 0 0 1 ${d} ${g} L ${C} ${b} A ${n} ${n} 0 0 0 ${w} ${p} Z')`;return{arrowShadowWidth:S,arrowPath:T,arrowPolygon:O}}const np=(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 ${Oe(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},lu=8;function cu(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?lu:n}}function Yn(e,t){return e?t:{}}function op(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"},np(e,t,o)),{"&:before":{background:t}})]},Yn(!!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% - ${Oe(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Yn(!!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% - ${Oe(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Yn(!!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}})),Yn(!!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 ip(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 el={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"]}},ap={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"]}},sp=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function lp(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:i}=e,a=t/2,l={},c=cu({contentRadius:i,limitVerticalRadius:!0});return Object.keys(el).forEach(u=>{const f=n&&ap[u]||el[u],d=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(l[u]=d,sp.has(u)&&(d.autoArrow=!1),u){case"top":case"topLeft":case"topRight":d.offset[1]=-a-o;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=a+o;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-a-o;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=a+o;break}if(n)switch(u){case"topLeft":case"bottomLeft":d.offset[0]=-c.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":d.offset[0]=c.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":d.offset[1]=-c.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":d.offset[1]=c.arrowOffsetHorizontal*2-a;break}d.overflow=ip(u,c,t,r),d.htmlRegion="visibleFirst"}),l}function cp(e){return e&&v.isValidElement(e)&&e.type===v.Fragment}const up=(e,t,r)=>v.isValidElement(e)?v.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function uu(e,t){return up(e,e,t)}const dp=e=>({animationDuration:e,animationFillMode:"both"}),fp=e=>({animationDuration:e,animationFillMode:"both"}),hp=(e,t,r,n,o=!1)=>{const i=o?"&":"";return{[`
129
+ }`),o)}else cn(o);return function(){cn(o)}},[t,o])}var j0=!1;function $0(e){return j0}var Ws=function(t){return t===!1?!1:!st()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},ja=h.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,u=h.useState(r),f=re(u,2),d=f[0],g=f[1],C=d||r;process.env.NODE_ENV!=="production"&&Wt(st()||!r,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),h.useEffect(function(){(l||r)&&g(r)},[r,l]);var b=h.useState(function(){return Ws(o)}),w=re(b,2),p=w[0],S=w[1];h.useEffect(function(){var _=Ws(o);S(_??null)});var m=x0(C&&!p,i),O=re(m,2),T=O[0],j=O[1],x=p??T;R0(n&&r&&st()&&(x===T||x===document.body));var R=null;if(c&&Eo(c)&&t){var $=c;R=$.ref}var F=ma(R,t);if(!C||!st()||p===void 0)return null;var B=x===!1||$0(),q=c;return t&&(q=h.cloneElement(c,{ref:F})),h.createElement(Jc.Provider,{value:j},B?q:ao.createPortal(q,x))});process.env.NODE_ENV!=="production"&&(ja.displayName="Portal");function T0(){var e=Q({},h);return e.useId}var qs=0,Us=T0();const eu=Us?function(t){var r=Us();return t||(process.env.NODE_ENV==="test"?"test-id":r)}:function(t){var r=h.useState("ssr-id"),n=re(r,2),o=n[0],i=n[1];return h.useEffect(function(){var a=qs;qs+=1,i("rc_unique_".concat(a))},[]),t||(process.env.NODE_ENV==="test"?"test-id":o)},O0=(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 _0(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,u=c===void 0?0:c,f=o.y,d=f===void 0?0:f,g=h.useRef();if(!r||!r.points)return null;var C={position:"absolute"};if(r.autoArrow!==!1){var b=r.points[0],w=r.points[1],p=b[0],S=b[1],m=w[0],O=w[1];p===m||!["t","b"].includes(p)?C.top=d:p==="t"?C.top=0:C.bottom=0,S===O||!["l","r"].includes(S)?C.left=u:S==="l"?C.left=0:C.right=0}return h.createElement("div",{ref:g,className:he("".concat(t,"-arrow"),a),style:C},l)}function I0(e){var t=e.prefixCls,r=e.open,n=e.zIndex,o=e.mask,i=e.motion;return o?h.createElement(Yc,Ze({},i,{motionAppear:!0,visible:r,removeOnLeave:!0}),function(a){var l=a.className;return h.createElement("div",{style:{zIndex:n},className:he("".concat(t,"-mask"),l)})}):null}var tu=h.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(tu.displayName="PopupContent");var ru=h.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,u=e.keepDom,f=e.fresh,d=e.onClick,g=e.mask,C=e.arrow,b=e.arrowPos,w=e.align,p=e.motion,S=e.maskMotion,m=e.forceRender,O=e.getPopupContainer,T=e.autoDestroy,j=e.portal,x=e.zIndex,R=e.onMouseEnter,$=e.onMouseLeave,F=e.onPointerEnter,B=e.onPointerDownCapture,q=e.ready,_=e.offsetX,D=e.offsetY,H=e.offsetR,P=e.offsetB,A=e.onAlign,Y=e.onPrepare,W=e.stretch,V=e.targetWidth,X=e.targetHeight,J=typeof r=="function"?r():r,K=c||u,te=O?.length>0,se=h.useState(!O||!te),ge=re(se,2),ce=ge[0],ve=ge[1];if(Le(function(){!ce&&te&&a&&ve(!0)},[ce,te,a]),!ce)return null;var E="auto",N={left:"-1000vw",top:"-1000vh",right:E,bottom:E};if(q||!c){var z,M=w.points,L=w.dynamicInset||((z=w._experimental)===null||z===void 0?void 0:z.dynamicInset),k=L&&M[0][1]==="r",I=L&&M[0][0]==="b";k?(N.right=H,N.left=E):(N.left=_,N.right=E),I?(N.bottom=P,N.top=E):(N.top=D,N.bottom=E)}var G={};return W&&(W.includes("height")&&X?G.height=X:W.includes("minHeight")&&X&&(G.minHeight=X),W.includes("width")&&V?G.width=V:W.includes("minWidth")&&V&&(G.minWidth=V)),c||(G.pointerEvents="none"),h.createElement(j,{open:m||K,getContainer:O&&function(){return O(a)},autoDestroy:T},h.createElement(I0,{prefixCls:o,open:c,zIndex:x,mask:g,motion:S}),h.createElement(Ar,{onResize:A,disabled:!c},function(U){return h.createElement(Yc,Ze({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:m,leavedClassName:"".concat(o,"-hidden")},p,{onAppearPrepare:Y,onEnterPrepare:Y,visible:c,onVisibleChanged:function(ne){var ae;p==null||(ae=p.onVisibleChanged)===null||ae===void 0||ae.call(p,ne),l(ne)}}),function(Z,ne){var ae=Z.className,we=Z.style,be=he(o,ae,n);return h.createElement("div",{ref:xn(U,t,ne),className:be,style:Q(Q(Q(Q({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},N),G),we),{},{boxSizing:"border-box",zIndex:x},i),onMouseEnter:R,onMouseLeave:$,onPointerEnter:F,onClick:d,onPointerDownCapture:B},C&&h.createElement(_0,{prefixCls:o,arrow:C,arrowPos:b,align:w}),h.createElement(tu,{cache:!c&&!f},J))})}))});process.env.NODE_ENV!=="production"&&(ru.displayName="Popup");var nu=h.forwardRef(function(e,t){var r=e.children,n=e.getTriggerDOMNode,o=Eo(r),i=h.useCallback(function(l){pa(t,n?n(l):l)},[n]),a=ma(i,va(r));return o?h.cloneElement(r,{ref:a}):r});process.env.NODE_ENV!=="production"&&(nu.displayName="TriggerWrapper");var Ks=h.createContext(null);function Gs(e){return e?Array.isArray(e)?e:[e]:[]}function P0(e,t,r,n){return h.useMemo(function(){var o=Gs(r??t),i=Gs(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 M0=(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 k0(){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 A0(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(k0((l=e[c])===null||l===void 0?void 0:l.points,o,n))return"".concat(t,"-placement-").concat(c)}return""}function Ys(e,t,r,n){return t||(r?{motionName:"".concat(e,"-").concat(r)}:n?{motionName:n}:null)}function jn(e){return e.ownerDocument.defaultView}function aa(e){for(var t=[],r=e?.parentElement,n=["hidden","scroll","clip","auto"];r;){var o=jn(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 bn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function tn(e){return bn(parseFloat(e),0)}function Xs(e,t){var r=Q({},e);return(t||[]).forEach(function(n){if(!(n instanceof HTMLBodyElement||n instanceof HTMLHtmlElement)){var o=jn(n).getComputedStyle(n),i=o.overflow,a=o.overflowClipMargin,l=o.borderTopWidth,c=o.borderBottomWidth,u=o.borderLeftWidth,f=o.borderRightWidth,d=n.getBoundingClientRect(),g=n.offsetHeight,C=n.clientHeight,b=n.offsetWidth,w=n.clientWidth,p=tn(l),S=tn(c),m=tn(u),O=tn(f),T=bn(Math.round(d.width/b*1e3)/1e3),j=bn(Math.round(d.height/g*1e3)/1e3),x=(b-w-m-O)*T,R=(g-C-p-S)*j,$=p*j,F=S*j,B=m*T,q=O*T,_=0,D=0;if(i==="clip"){var H=tn(a);_=H*T,D=H*j}var P=d.x+B-_,A=d.y+$-D,Y=P+d.width+2*_-B-q-x,W=A+d.height+2*D-$-F-R;r.left=Math.max(r.left,P),r.top=Math.max(r.top,A),r.right=Math.min(r.right,Y),r.bottom=Math.min(r.bottom,W)}}),r}function Qs(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 Zs(e,t){var r=t||[],n=re(r,2),o=n[0],i=n[1];return[Qs(e.width,o),Qs(e.height,i)]}function Js(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function yr(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 Zt(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 N0(e,t,r,n,o,i,a){var l=h.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),u=c[0],f=c[1],d=h.useRef(0),g=h.useMemo(function(){return t?aa(t):[]},[t]),C=h.useRef({}),b=function(){C.current={}};e||b();var w=ft(function(){if(t&&r&&e){let gt=function(Wr,Bt){var Qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ye,qr=K.x+Wr,Dn=K.y+Bt,Ho=qr+I,Vo=Dn+k,Wo=Math.max(qr,Qt.left),ie=Math.max(Dn,Qt.top),fe=Math.min(Ho,Qt.right),Be=Math.min(Vo,Qt.bottom);return Math.max(0,(fe-Wo)*(Be-ie))},vr=function(){wt=K.y+Re,ht=wt+k,_t=K.x+Te,St=_t+I};var m,O,T,j,x=t,R=x.ownerDocument,$=jn(x),F=$.getComputedStyle(x),B=F.position,q=x.style.left,_=x.style.top,D=x.style.right,H=x.style.bottom,P=x.style.overflow,A=Q(Q({},o[n]),i),Y=R.createElement("div");(m=x.parentElement)===null||m===void 0||m.appendChild(Y),Y.style.left="".concat(x.offsetLeft,"px"),Y.style.top="".concat(x.offsetTop,"px"),Y.style.position=B,Y.style.height="".concat(x.offsetHeight,"px"),Y.style.width="".concat(x.offsetWidth,"px"),x.style.left="0",x.style.top="0",x.style.right="auto",x.style.bottom="auto",x.style.overflow="hidden";var W;if(Array.isArray(r))W={x:r[0],y:r[1],width:0,height:0};else{var V,X,J=r.getBoundingClientRect();J.x=(V=J.x)!==null&&V!==void 0?V:J.left,J.y=(X=J.y)!==null&&X!==void 0?X:J.top,W={x:J.x,y:J.y,width:J.width,height:J.height}}var K=x.getBoundingClientRect(),te=$.getComputedStyle(x),se=te.height,ge=te.width;K.x=(O=K.x)!==null&&O!==void 0?O:K.left,K.y=(T=K.y)!==null&&T!==void 0?T:K.top;var ce=R.documentElement,ve=ce.clientWidth,E=ce.clientHeight,N=ce.scrollWidth,z=ce.scrollHeight,M=ce.scrollTop,L=ce.scrollLeft,k=K.height,I=K.width,G=W.height,U=W.width,Z={left:0,top:0,right:ve,bottom:E},ne={left:-L,top:-M,right:N-L,bottom:z-M},ae=A.htmlRegion,we="visible",be="visibleFirst";ae!=="scroll"&&ae!==be&&(ae=we);var Ce=ae===be,ue=Xs(ne,g),oe=Xs(Z,g),ye=ae===we?oe:ue,Ee=Ce?oe:ye;x.style.left="auto",x.style.top="auto",x.style.right="0",x.style.bottom="0";var Ye=x.getBoundingClientRect();x.style.left=q,x.style.top=_,x.style.right=D,x.style.bottom=H,x.style.overflow=P,(j=x.parentElement)===null||j===void 0||j.removeChild(Y);var Me=bn(Math.round(I/parseFloat(ge)*1e3)/1e3),ke=bn(Math.round(k/parseFloat(se)*1e3)/1e3);if(Me===0||ke===0||dn(r)&&!M0(r))return;var xe=A.offset,Ae=A.targetOffset,ze=Zs(K,xe),Oe=re(ze,2),me=Oe[0],Ne=Oe[1],le=Zs(W,Ae),de=re(le,2),We=de[0],At=de[1];W.x-=We,W.y-=At;var rr=A.points||[],fr=re(rr,2),zr=fr[0],hr=fr[1],Ct=Js(hr),nt=Js(zr),qe=yr(W,Ct),Nt=yr(K,nt),ot=Q({},A),Te=qe.x-Nt.x+me,Re=qe.y-Nt.y+Ne,Je=gt(Te,Re),Tt=gt(Te,Re,oe),lt=yr(W,["t","l"]),Fe=yr(K,["t","l"]),Kt=yr(W,["b","r"]),Dt=yr(K,["b","r"]),_e=A.overflow||{},Ue=_e.adjustX,at=_e.adjustY,it=_e.shiftX,Ot=_e.shiftY,gr=function(Bt){return typeof Bt=="boolean"?Bt:Bt>=0},wt,ht,_t,St;vr();var pr=gr(at),De=nt[0]===Ct[0];if(pr&&nt[0]==="t"&&(ht>Ee.bottom||C.current.bt)){var nr=Re;De?nr-=k-G:nr=lt.y-Dt.y-Ne;var Tn=gt(Te,nr),Io=gt(Te,nr,oe);Tn>Je||Tn===Je&&(!Ce||Io>=Tt)?(C.current.bt=!0,Re=nr,Ne=-Ne,ot.points=[Zt(nt,0),Zt(Ct,0)]):C.current.bt=!1}if(pr&&nt[0]==="b"&&(wt<Ee.top||C.current.tb)){var or=Re;De?or+=k-G:or=Kt.y-Fe.y-Ne;var On=gt(Te,or),Po=gt(Te,or,oe);On>Je||On===Je&&(!Ce||Po>=Tt)?(C.current.tb=!0,Re=or,Ne=-Ne,ot.points=[Zt(nt,0),Zt(Ct,0)]):C.current.tb=!1}var _n=gr(Ue),In=nt[1]===Ct[1];if(_n&&nt[1]==="l"&&(St>Ee.right||C.current.rl)){var ir=Te;In?ir-=I-U:ir=lt.x-Dt.x-me;var ar=gt(ir,Re),Lr=gt(ir,Re,oe);ar>Je||ar===Je&&(!Ce||Lr>=Tt)?(C.current.rl=!0,Te=ir,me=-me,ot.points=[Zt(nt,1),Zt(Ct,1)]):C.current.rl=!1}if(_n&&nt[1]==="r"&&(_t<Ee.left||C.current.lr)){var sr=Te;In?sr+=I-U:sr=Kt.x-Fe.x-me;var Fr=gt(sr,Re),mr=gt(sr,Re,oe);Fr>Je||Fr===Je&&(!Ce||mr>=Tt)?(C.current.lr=!0,Te=sr,me=-me,ot.points=[Zt(nt,1),Zt(Ct,1)]):C.current.lr=!1}vr();var Et=it===!0?0:it;typeof Et=="number"&&(_t<oe.left&&(Te-=_t-oe.left-me,W.x+U<oe.left+Et&&(Te+=W.x-oe.left+U-Et)),St>oe.right&&(Te-=St-oe.right-me,W.x>oe.right-Et&&(Te+=W.x-oe.right+Et)));var Gt=Ot===!0?0:Ot;typeof Gt=="number"&&(wt<oe.top&&(Re-=wt-oe.top-Ne,W.y+G<oe.top+Gt&&(Re+=W.y-oe.top+G-Gt)),ht>oe.bottom&&(Re-=ht-oe.bottom-Ne,W.y>oe.bottom-Gt&&(Re+=W.y-oe.bottom+Gt)));var Yt=K.x+Te,Xt=Yt+I,Hr=K.y+Re,Mo=Hr+k,Pn=W.x,Mn=Pn+U,kn=W.y,ko=kn+G,Ao=Math.max(Yt,Pn),An=Math.min(Xt,Mn),No=(Ao+An)/2,Do=No-Yt,Nn=Math.max(Hr,kn),Bo=Math.min(Mo,ko),zo=(Nn+Bo)/2,Lo=zo-Hr;a?.(t,ot);var It=Ye.right-K.x-(Te+K.width),Vr=Ye.bottom-K.y-(Re+K.height);Me===1&&(Te=Math.round(Te),It=Math.round(It)),ke===1&&(Re=Math.round(Re),Vr=Math.round(Vr));var Fo={ready:!0,offsetX:Te/Me,offsetY:Re/ke,offsetR:It/Me,offsetB:Vr/ke,arrowX:Do/Me,arrowY:Lo/ke,scaleX:Me,scaleY:ke,align:ot};f(Fo)}}),p=function(){d.current+=1;var O=d.current;Promise.resolve().then(function(){d.current===O&&w()})},S=function(){f(function(O){return Q(Q({},O),{},{ready:!1})})};return Le(S,[n]),Le(function(){e||S()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,p]}function D0(e,t,r,n,o){Le(function(){if(e&&t&&r){let d=function(){n(),o()};var i=t,a=r,l=aa(i),c=aa(a),u=jn(a),f=new Set([u].concat(rt(l),rt(c)));return f.forEach(function(g){g.addEventListener("scroll",d,{passive:!0})}),u.addEventListener("resize",d,{passive:!0}),n(),function(){f.forEach(function(g){g.removeEventListener("scroll",d),u.removeEventListener("resize",d)})}}},[e,t,r])}function B0(e,t,r,n,o,i,a,l){var c=h.useRef(e);c.current=e;var u=h.useRef(!1);h.useEffect(function(){if(t&&n&&(!o||i)){var d=function(){u.current=!1},g=function(T){var j;c.current&&!a(((j=T.composedPath)===null||j===void 0||(j=j.call(T))===null||j===void 0?void 0:j[0])||T.target)&&!u.current&&l(!1)},C=jn(n);C.addEventListener("pointerdown",d,!0),C.addEventListener("mousedown",g,!0),C.addEventListener("contextmenu",g,!0);var b=fo(r);if(b&&(b.addEventListener("mousedown",g,!0),b.addEventListener("contextmenu",g,!0)),process.env.NODE_ENV!=="production"){var w,p,S=r==null||(w=r.getRootNode)===null||w===void 0?void 0:w.call(r),m=(p=n.getRootNode)===null||p===void 0?void 0:p.call(n);Rr(S===m,"trigger element and popup element should in same shadow root.")}return function(){C.removeEventListener("pointerdown",d,!0),C.removeEventListener("mousedown",g,!0),C.removeEventListener("contextmenu",g,!0),b&&(b.removeEventListener("mousedown",g,!0),b.removeEventListener("contextmenu",g,!0))}}},[t,r,n,o,i]);function f(){u.current=!0}return f}var z0=["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 L0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ja,t=h.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,u=r.showAction,f=r.hideAction,d=r.popupVisible,g=r.defaultPopupVisible,C=r.onPopupVisibleChange,b=r.afterPopupVisibleChange,w=r.mouseEnterDelay,p=r.mouseLeaveDelay,S=p===void 0?.1:p,m=r.focusDelay,O=r.blurDelay,T=r.mask,j=r.maskClosable,x=j===void 0?!0:j,R=r.getPopupContainer,$=r.forceRender,F=r.autoDestroy,B=r.destroyPopupOnHide,q=r.popup,_=r.popupClassName,D=r.popupStyle,H=r.popupPlacement,P=r.builtinPlacements,A=P===void 0?{}:P,Y=r.popupAlign,W=r.zIndex,V=r.stretch,X=r.getPopupClassNameFromAlign,J=r.fresh,K=r.alignPoint,te=r.onPopupClick,se=r.onPopupAlign,ge=r.arrow,ce=r.popupMotion,ve=r.maskMotion,E=r.popupTransitionName,N=r.popupAnimation,z=r.maskTransitionName,M=r.maskAnimation,L=r.className,k=r.getTriggerDOMNode,I=$t(r,z0),G=F||B||!1,U=h.useState(!1),Z=re(U,2),ne=Z[0],ae=Z[1];Le(function(){ae(O0())},[]);var we=h.useRef({}),be=h.useContext(Ks),Ce=h.useMemo(function(){return{registerSubPopup:function(fe,Be){we.current[fe]=Be,be?.registerSubPopup(fe,Be)}}},[be]),ue=eu(),oe=h.useState(null),ye=re(oe,2),Ee=ye[0],Ye=ye[1],Me=h.useRef(null),ke=ft(function(ie){Me.current=ie,dn(ie)&&Ee!==ie&&Ye(ie),be?.registerSubPopup(ue,ie)}),xe=h.useState(null),Ae=re(xe,2),ze=Ae[0],Oe=Ae[1],me=h.useRef(null),Ne=ft(function(ie){dn(ie)&&ze!==ie&&(Oe(ie),me.current=ie)}),le=h.Children.only(a),de=le?.props||{},We={},At=ft(function(ie){var fe,Be,Xe=ze;return Xe?.contains(ie)||((fe=fo(Xe))===null||fe===void 0?void 0:fe.host)===ie||ie===Xe||Ee?.contains(ie)||((Be=fo(Ee))===null||Be===void 0?void 0:Be.host)===ie||ie===Ee||Object.values(we.current).some(function(He){return He?.contains(ie)||ie===He})}),rr=Ys(i,ce,N,E),fr=Ys(i,ve,M,z),zr=h.useState(g||!1),hr=re(zr,2),Ct=hr[0],nt=hr[1],qe=d??Ct,Nt=ft(function(ie){d===void 0&&nt(ie)});Le(function(){nt(d||!1)},[d]);var ot=h.useRef(qe);ot.current=qe;var Te=h.useRef([]);Te.current=[];var Re=ft(function(ie){var fe;Nt(ie),((fe=Te.current[Te.current.length-1])!==null&&fe!==void 0?fe:qe)!==ie&&(Te.current.push(ie),C?.(ie))}),Je=h.useRef(),Tt=function(){clearTimeout(Je.current)},lt=function(fe){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Tt(),Be===0?Re(fe):Je.current=setTimeout(function(){Re(fe)},Be*1e3)};h.useEffect(function(){return Tt},[]);var Fe=h.useState(!1),Kt=re(Fe,2),Dt=Kt[0],_e=Kt[1];Le(function(ie){(!ie||qe)&&_e(!0)},[qe]);var Ue=h.useState(null),at=re(Ue,2),it=at[0],Ot=at[1],gr=h.useState(null),wt=re(gr,2),ht=wt[0],_t=wt[1],St=function(fe){_t([fe.clientX,fe.clientY])},pr=N0(qe,Ee,K&&ht!==null?ht:ze,H,A,Y,se),De=re(pr,11),nr=De[0],Tn=De[1],Io=De[2],or=De[3],On=De[4],Po=De[5],_n=De[6],In=De[7],ir=De[8],ar=De[9],Lr=De[10],sr=P0(ne,c,u,f),Fr=re(sr,2),mr=Fr[0],Et=Fr[1],Gt=mr.has("click"),Yt=Et.has("click")||Et.has("contextMenu"),Xt=ft(function(){Dt||Lr()}),Hr=function(){ot.current&&K&&Yt&&lt(!1)};D0(qe,ze,Ee,Xt,Hr),Le(function(){Xt()},[ht,H]),Le(function(){qe&&!(A!=null&&A[H])&&Xt()},[JSON.stringify(Y)]);var Mo=h.useMemo(function(){var ie=A0(A,i,ar,K);return he(ie,X?.(ar))},[ar,X,A,i,K]);h.useImperativeHandle(n,function(){return{nativeElement:me.current,popupElement:Me.current,forceAlign:Xt}});var Pn=h.useState(0),Mn=re(Pn,2),kn=Mn[0],ko=Mn[1],Ao=h.useState(0),An=re(Ao,2),No=An[0],Do=An[1],Nn=function(){if(V&&ze){var fe=ze.getBoundingClientRect();ko(fe.width),Do(fe.height)}},Bo=function(){Nn(),Xt()},zo=function(fe){_e(!1),Lr(),b?.(fe)},Lo=function(){return new Promise(function(fe){Nn(),Ot(function(){return fe})})};Le(function(){it&&(Lr(),it(),Ot(null))},[it]);function It(ie,fe,Be,Xe){We[ie]=function(He){var Bn;Xe?.(He),lt(fe,Be);for(var qo=arguments.length,Pa=new Array(qo>1?qo-1:0),zn=1;zn<qo;zn++)Pa[zn-1]=arguments[zn];(Bn=de[ie])===null||Bn===void 0||Bn.call.apply(Bn,[de,He].concat(Pa))}}(Gt||Yt)&&(We.onClick=function(ie){var fe;ot.current&&Yt?lt(!1):!ot.current&&Gt&&(St(ie),lt(!0));for(var Be=arguments.length,Xe=new Array(Be>1?Be-1:0),He=1;He<Be;He++)Xe[He-1]=arguments[He];(fe=de.onClick)===null||fe===void 0||fe.call.apply(fe,[de,ie].concat(Xe))});var Vr=B0(qe,Yt,ze,Ee,T,x,At,lt),Fo=mr.has("hover"),gt=Et.has("hover"),vr,Wr;Fo&&(It("onMouseEnter",!0,w,function(ie){St(ie)}),It("onPointerEnter",!0,w,function(ie){St(ie)}),vr=function(fe){(qe||Dt)&&Ee!==null&&Ee!==void 0&&Ee.contains(fe.target)&&lt(!0,w)},K&&(We.onMouseMove=function(ie){var fe;(fe=de.onMouseMove)===null||fe===void 0||fe.call(de,ie)})),gt&&(It("onMouseLeave",!1,S),It("onPointerLeave",!1,S),Wr=function(){lt(!1,S)}),mr.has("focus")&&It("onFocus",!0,m),Et.has("focus")&&It("onBlur",!1,O),mr.has("contextMenu")&&(We.onContextMenu=function(ie){var fe;ot.current&&Et.has("contextMenu")?lt(!1):(St(ie),lt(!0)),ie.preventDefault();for(var Be=arguments.length,Xe=new Array(Be>1?Be-1:0),He=1;He<Be;He++)Xe[He-1]=arguments[He];(fe=de.onContextMenu)===null||fe===void 0||fe.call.apply(fe,[de,ie].concat(Xe))}),L&&(We.className=he(de.className,L));var Bt=h.useRef(!1);Bt.current||(Bt.current=$||qe||Dt);var Qt=Q(Q({},de),We),qr={},Dn=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Dn.forEach(function(ie){I[ie]&&(qr[ie]=function(){for(var fe,Be=arguments.length,Xe=new Array(Be),He=0;He<Be;He++)Xe[He]=arguments[He];(fe=Qt[ie])===null||fe===void 0||fe.call.apply(fe,[Qt].concat(Xe)),I[ie].apply(I,Xe)})});var Ho=h.cloneElement(le,Q(Q({},Qt),qr)),Vo={x:Po,y:_n},Wo=ge?Q({},ge!==!0?ge:{}):null;return h.createElement(h.Fragment,null,h.createElement(Ar,{disabled:!qe,ref:Ne,onResize:Bo},h.createElement(nu,{getTriggerDOMNode:k},Ho)),Bt.current&&h.createElement(Ks.Provider,{value:Ce},h.createElement(ru,{portal:e,ref:ke,prefixCls:i,popup:q,className:he(_,Mo),style:D,target:ze,onMouseEnter:vr,onMouseLeave:Wr,onPointerEnter:vr,zIndex:W,open:qe,keepDom:Dt,fresh:J,onClick:te,onPointerDownCapture:Vr,mask:T,motion:rr,maskMotion:fr,onVisibleChanged:zo,onPrepare:Lo,forceRender:$,autoDestroy:G,getPopupContainer:R,align:ar,arrow:Wo,arrowPos:Vo,ready:nr,offsetX:Tn,offsetY:Io,offsetR:or,offsetB:On,onAlign:Xt,stretch:V,targetWidth:kn/In,targetHeight:No/ir})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const F0=L0(ja);var xr={shiftX:64,adjustY:1},Cr={adjustX:1,shiftY:!0},mt=[0,0],H0={left:{points:["cr","cl"],overflow:Cr,offset:[-4,0],targetOffset:mt},right:{points:["cl","cr"],overflow:Cr,offset:[4,0],targetOffset:mt},top:{points:["bc","tc"],overflow:xr,offset:[0,-4],targetOffset:mt},bottom:{points:["tc","bc"],overflow:xr,offset:[0,4],targetOffset:mt},topLeft:{points:["bl","tl"],overflow:xr,offset:[0,-4],targetOffset:mt},leftTop:{points:["tr","tl"],overflow:Cr,offset:[-4,0],targetOffset:mt},topRight:{points:["br","tr"],overflow:xr,offset:[0,-4],targetOffset:mt},rightTop:{points:["tl","tr"],overflow:Cr,offset:[4,0],targetOffset:mt},bottomRight:{points:["tr","br"],overflow:xr,offset:[0,4],targetOffset:mt},rightBottom:{points:["bl","br"],overflow:Cr,offset:[4,0],targetOffset:mt},bottomLeft:{points:["tl","bl"],overflow:xr,offset:[0,4],targetOffset:mt},leftBottom:{points:["br","bl"],overflow:Cr,offset:[-4,0],targetOffset:mt}},V0=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],W0=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,u=c===void 0?.1:c,f=t.overlayStyle,d=t.prefixCls,g=d===void 0?"rc-tooltip":d,C=t.children,b=t.onVisibleChange,w=t.afterVisibleChange,p=t.transitionName,S=t.animation,m=t.motion,O=t.placement,T=O===void 0?"right":O,j=t.align,x=j===void 0?{}:j,R=t.destroyTooltipOnHide,$=R===void 0?!1:R,F=t.defaultVisible,B=t.getTooltipContainer,q=t.overlayInnerStyle,_=t.overlay,D=t.id,H=t.showArrow,P=H===void 0?!0:H,A=t.classNames,Y=t.styles,W=$t(t,V0),V=eu(D),X=v.useRef(null);v.useImperativeHandle(r,function(){return X.current});var J=Q({},W);"visible"in t&&(J.popupVisible=t.visible);var K=function(){return h.createElement(Zc,{key:"content",prefixCls:g,id:V,bodyClassName:A?.body,overlayInnerStyle:Q(Q({},q),Y?.body)},_)},te=function(){var ge=h.Children.only(C),ce=ge?.props||{},ve=Q(Q({},ce),{},{"aria-describedby":_?V:null});return h.cloneElement(C,ve)};return h.createElement(F0,Ze({popupClassName:he(n,A?.root),prefixCls:g,popup:K,action:i,builtinPlacements:H0,popupPlacement:T,ref:X,popupAlign:x,getPopupContainer:B,onPopupVisibleChange:b,afterPopupVisibleChange:w,popupTransitionName:p,popupAnimation:S,popupMotion:m,defaultPopupVisible:F,autoDestroy:$,mouseLeaveDelay:u,popupStyle:Q(Q({},f),Y?.root),mouseEnterDelay:l,arrow:P},J),te())};const q0=v.forwardRef(W0),yn=h.createContext({});process.env.NODE_ENV!=="production"&&(yn.displayName="FormItemInputContext");const U0=({children:e,status:t,override:r})=>{const n=h.useContext(yn),o=h.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 h.createElement(yn.Provider,{value:o},e)},K0=h.createContext(void 0),ou=e=>{const t=v.useContext(Ir);return v.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},iu=h.createContext(null),au=(e,t)=>{const r=h.useContext(iu),n=h.useMemo(()=>{if(!r)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=r,l=o==="vertical"?"-vertical-":"-";return he(`${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}},G0=e=>{const{children:t}=e;return h.createElement(iu.Provider,{value:null},t)},sa=e=>{const{space:t,form:r,children:n}=e;if(n==null)return null;let o=n;return r&&(o=v.createElement(U0,{override:!0,status:!0},o)),t&&(o=v.createElement(G0,null,o)),o},$a=v.createContext(void 0);process.env.NODE_ENV!=="production"&&($a.displayName="zIndexContext");const Lt=100,Y0=10,X0=Lt*Y0,Q0=X0+Lt,su={Modal:Lt,Drawer:Lt,Popover:Lt,Popconfirm:Lt,Tooltip:Lt,Tour:Lt,FloatButton:Lt},Z0={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function J0(e){return e in su}const ep=(e,t)=>{const[,r]=Dr(),n=v.useContext($a),o=J0(e);let i;if(t!==void 0)i=[t,t];else{let a=n??0;o?a+=(n?0:r.zIndexPopupBase)+su[e]:a+=Z0[e],i=[n===void 0?t:a,a]}if(process.env.NODE_ENV!=="production"){const a=kt(e),l=r.zIndexPopupBase+Q0,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},tp=(e,t,r)=>r!==void 0?r:`${e}-${t}`;function rp(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)),u=o-r*(1/Math.sqrt(2)),f=n*(Math.sqrt(2)-1)+r*(1/Math.sqrt(2)),d=2*o-u,g=f,C=2*o-l,b=c,w=2*o-i,p=a,S=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),m=n*(Math.sqrt(2)-1),O=`polygon(${m}px 100%, 50% ${m}px, ${2*o-m}px 100%, ${m}px 100%)`,T=`path('M ${i} ${a} A ${n} ${n} 0 0 0 ${l} ${c} L ${u} ${f} A ${r} ${r} 0 0 1 ${d} ${g} L ${C} ${b} A ${n} ${n} 0 0 0 ${w} ${p} Z')`;return{arrowShadowWidth:S,arrowPath:T,arrowPolygon:O}}const np=(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 ${Ie(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:r,zIndex:0,background:"transparent"}}},lu=8;function cu(e){const{contentRadius:t,limitVerticalRadius:r}=e,n=t>12?t+2:12;return{arrowOffsetHorizontal:n,arrowOffsetVertical:r?lu:n}}function Yn(e,t){return e?t:{}}function op(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"},np(e,t,o)),{"&:before":{background:t}})]},Yn(!!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% - ${Ie(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Yn(!!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% - ${Ie(a)})`,[`> ${n}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Yn(!!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}})),Yn(!!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 ip(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 el={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"]}},ap={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"]}},sp=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function lp(e){const{arrowWidth:t,autoAdjustOverflow:r,arrowPointAtCenter:n,offset:o,borderRadius:i}=e,a=t/2,l={},c=cu({contentRadius:i,limitVerticalRadius:!0});return Object.keys(el).forEach(u=>{const f=n&&ap[u]||el[u],d=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(l[u]=d,sp.has(u)&&(d.autoArrow=!1),u){case"top":case"topLeft":case"topRight":d.offset[1]=-a-o;break;case"bottom":case"bottomLeft":case"bottomRight":d.offset[1]=a+o;break;case"left":case"leftTop":case"leftBottom":d.offset[0]=-a-o;break;case"right":case"rightTop":case"rightBottom":d.offset[0]=a+o;break}if(n)switch(u){case"topLeft":case"bottomLeft":d.offset[0]=-c.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":d.offset[0]=c.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":d.offset[1]=-c.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":d.offset[1]=c.arrowOffsetHorizontal*2-a;break}d.overflow=ip(u,c,t,r),d.htmlRegion="visibleFirst"}),l}function cp(e){return e&&v.isValidElement(e)&&e.type===v.Fragment}const up=(e,t,r)=>v.isValidElement(e)?v.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t;function uu(e,t){return up(e,e,t)}const dp=e=>({animationDuration:e,animationFillMode:"both"}),fp=e=>({animationDuration:e,animationFillMode:"both"}),hp=(e,t,r,n,o=!1)=>{const i=o?"&":"";return{[`
130
130
  ${i}${e}-enter,
131
131
  ${i}${e}-appear
132
132
  `]:Object.assign(Object.assign({},dp(n)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},fp(n)),{animationPlayState:"paused"}),[`
@@ -135,7 +135,7 @@ html body {
135
135
  `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},gp=new xt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),pp=new xt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),tl=new xt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),rl=new xt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),mp=new xt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),vp=new xt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),bp=new xt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),yp=new xt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),xp=new xt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Cp=new xt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),wp=new xt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Sp=new xt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Ep={zoom:{inKeyframes:gp,outKeyframes:pp},"zoom-big":{inKeyframes:tl,outKeyframes:rl},"zoom-big-fast":{inKeyframes:tl,outKeyframes:rl},"zoom-left":{inKeyframes:bp,outKeyframes:yp},"zoom-right":{inKeyframes:xp,outKeyframes:Cp},"zoom-up":{inKeyframes:mp,outKeyframes:vp},"zoom-down":{inKeyframes:wp,outKeyframes:Sp}},Rp=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:o,outKeyframes:i}=Ep[t];return[hp(n,o,i,e.motionDurationFast),{[`
136
136
  ${n}-enter,
137
137
  ${n}-appear
138
- `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},jp=e=>{const{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:c,boxShadowSecondary:u,paddingSM:f,paddingXS:d,arrowOffsetHorizontal:g,sizePopupArrow:C}=e,b=t(a).add(C).add(g).equal(),w=t(a).mul(2).add(C).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},Ea(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:w,minHeight:c,padding:`${Oe(e.calc(f).div(2).equal())} ${Oe(d)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:u,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:b},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(a,lu)}},[`${r}-content`]:{position:"relative"}}),Wg(e,(p,{darkColor:S})=>({[`&${r}-${p}`]:{[`${r}-inner`]:{backgroundColor:S},[`${r}-arrow`]:{"--antd-arrow-background-color":S}}}))),{"&-rtl":{direction:"rtl"}})},op(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},$p=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},cu({contentRadius:e.borderRadius,limitVerticalRadius:!0})),rp(Ut(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),du=(e,t=!0)=>Rn("Tooltip",n=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=n,l=Ut(n,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[jp(l),Rp(n,"zoom-big-fast")]},$p,{resetStyle:!1,injectStyle:t})(e),Tp=mo.map(e=>`${e}-inverse`);function Op(e,t=!0){return t?[].concat(rt(Tp),rt(mo)).includes(e):mo.includes(e)}const tt=Math.round;function fi(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 nl=(e,t,r)=>r===0?e:e/100;function rn(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=rn(t.r),this.g=rn(t.g),this.b=rn(t.b),this.a=typeof t.a=="number"?rn(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]=rn(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,u=(1-Math.abs(2*n-1))*r,f=u*(1-Math.abs(c%2-1));c>=0&&c<1?(i=u,a=f):c>=1&&c<2?(i=f,a=u):c>=2&&c<3?(a=u,l=f):c>=3&&c<4?(a=f,l=u):c>=4&&c<5?(i=f,l=u):c>=5&&c<6&&(i=u,l=f);const d=n-u/2;this.r=tt((i+d)*255),this.g=tt((a+d)*255),this.b=tt((l+d)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;const 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,u=tt(n*(1-r)*255),f=tt(n*(1-r*c)*255),d=tt(n*(1-r*(1-c))*255);switch(l){case 0:this.g=d,this.b=u;break;case 1:this.r=f,this.b=u;break;case 2:this.r=u,this.b=d;break;case 3:this.r=u,this.g=f;break;case 4:this.r=d,this.g=u;break;case 5:default:this.g=u,this.b=f;break}}fromHsvString(t){const r=fi(t,nl);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=fi(t,nl);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=fi(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 _p=["b"],Ip=["v"],hi=function(t){return Math.round(Number(t||0))},Pp=function(t){if(t instanceof _o)return t;if(t&&Se(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,o=$t(r,_p);return Q(Q({},o),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},ol=(function(e){Cn(r,e);var t=wn(r);function r(n){return bt(this,r),t.call(this,Pp(n))}return yt(r,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=hi(o.s*100),a=hi(o.b*100),l=hi(o.h),c=o.a,u="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?u:f}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=$t(o,Ip);return Q(Q({},a),{},{b:i,a:this.a})}}]),r})(_o);const Mp=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",kp=(e,t)=>e?Mp(e,t):"";let il=(function(){function e(t){bt(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 ol(this.colors[0].color.metaColor)):this.metaColor=new ol(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return yt(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return kp(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 Ap=e=>e instanceof il?e:new il(e);function fu(e,t){const r=Op(t),n=he({[`${e}-${t}`]:t&&r}),o={},i={},a=Ap(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 Np=e=>{const{prefixCls:t,className:r,placement:n="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=h.useContext(Vt),c=l("tooltip",t),[u,f,d]=du(c),g=fu(c,i),C=g.arrowStyle,b=Object.assign(Object.assign({},a),g.overlayStyle),w=he(f,d,c,`${c}-pure`,`${c}-placement-${n}`,r,g.className);return u(h.createElement("div",{className:w,style:C},h.createElement("div",{className:`${c}-arrow`}),h.createElement(Zc,Object.assign({},e,{className:f,prefixCls:c,overlayInnerStyle:b}),o)))};var Dp=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 Bp=h.forwardRef((e,t)=>{var r,n;const{prefixCls:o,openClassName:i,getTooltipContainer:a,color:l,overlayInnerStyle:c,children:u,afterOpenChange:f,afterVisibleChange:d,destroyTooltipOnHide:g,destroyOnHidden:C,arrow:b=!0,title:w,overlay:p,builtinPlacements:S,arrowPointAtCenter:m=!1,autoAdjustOverflow:O=!0,getPopupContainer:T,placement:j="top",mouseEnterDelay:x=.1,mouseLeaveDelay:R=.1,overlayStyle:$,rootClassName:L,overlayClassName:B,styles:q,classNames:I}=e,N=Dp(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"]),F=!!b,[,P]=Dr(),{getPopupContainer:M,getPrefixCls:Y,direction:W,className:H,style:X,classNames:J,styles:K}=To("tooltip"),te=kt("Tooltip"),se=h.useRef(null),ge=()=>{var Ce;(Ce=se.current)===null||Ce===void 0||Ce.forceAlign()};h.useImperativeHandle(t,()=>{var Ce,Ae;return{forceAlign:ge,forcePopupAlign:()=>{te.deprecated(!1,"forcePopupAlign","forceAlign"),ge()},nativeElement:(Ce=se.current)===null||Ce===void 0?void 0:Ce.nativeElement,popupElement:(Ae=se.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(!b||typeof b=="boolean"||!("arrowPointAtCenter"in b),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[ce,ve]=$r(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),E=!w&&!p&&w!==0,k=Ce=>{var Ae,ze;ve(E?!1:Ce),E||((Ae=e.onOpenChange)===null||Ae===void 0||Ae.call(e,Ce),(ze=e.onVisibleChange)===null||ze===void 0||ze.call(e,Ce))},z=h.useMemo(()=>{var Ce,Ae;let ze=m;return typeof b=="object"&&(ze=(Ae=(Ce=b.pointAtCenter)!==null&&Ce!==void 0?Ce:b.arrowPointAtCenter)!==null&&Ae!==void 0?Ae:m),S||lp({arrowPointAtCenter:ze,autoAdjustOverflow:O,arrowWidth:F?P.sizePopupArrow:0,borderRadius:P.borderRadius,offset:P.marginXXS})},[m,b,S,P]),D=h.useMemo(()=>w===0?w:p||w||"",[p,w]),A=h.createElement(sa,{space:!0},typeof D=="function"?D():D),G=Y("tooltip",o),_=Y(),V=e["data-popover-inject"];let U=ce;!("open"in e)&&!("visible"in e)&&E&&(U=!1);const Z=h.isValidElement(u)&&!cp(u)?u:h.createElement("span",null,u),ne=Z.props,oe=!ne.className||typeof ne.className=="string"?he(ne.className,i||`${G}-open`):ne.className,[ye,be,we]=du(G,!V),ue=fu(G,l),ie=ue.arrowStyle,xe=he(B,{[`${G}-rtl`]:W==="rtl"},ue.className,L,be,we,H,J.root,I?.root),Ee=he(J.body,I?.body),[Ye,Me]=ep("Tooltip",N.zIndex),ke=h.createElement(q0,Object.assign({},N,{zIndex:Ye,showArrow:F,placement:j,mouseEnterDelay:x,mouseLeaveDelay:R,prefixCls:G,classNames:{root:xe,body:Ee},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ie),K.root),X),$),q?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},K.body),c),q?.body),ue.overlayStyle)},getTooltipContainer:T||a||M,ref:se,builtinPlacements:z,overlay:A,visible:U,onVisibleChange:k,afterVisibleChange:f??d,arrowContent:h.createElement("span",{className:`${G}-arrow-content`}),motion:{motionName:tp(_,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:C??!!g}),U?uu(Z,{className:oe}):Z);return ye(h.createElement($a.Provider,{value:Me},ke))}),$n=Bp;process.env.NODE_ENV!=="production"&&($n.displayName="Tooltip");$n._InternalPanelDoNotUseOrYouWillBeFired=Np;var zp={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"},Lp=function(t,r){return h.createElement(qt,Ze({},t,{ref:r,icon:zp}))},hu=h.forwardRef(Lp);process.env.NODE_ENV!=="production"&&(hu.displayName="EnterOutlined");var al={ENTER:13,ESC:27};function Fp(e){return!!(e.addonBefore||e.addonAfter)}function Hp(e){return!!(e.prefix||e.suffix||e.allowClear)}function sl(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 vo(e,t,r,n){if(r){var o=t;if(t.type==="click"){o=sl(t,e,""),r(o);return}if(e.type!=="file"&&n!==void 0){o=sl(t,e,n),r(o);return}r(o)}}function gu(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 pu=v.forwardRef(function(e,t){var r,n,o,i=e.inputElement,a=e.children,l=e.prefixCls,c=e.prefix,u=e.suffix,f=e.addonBefore,d=e.addonAfter,g=e.className,C=e.style,b=e.disabled,w=e.readOnly,p=e.focused,S=e.triggerFocus,m=e.allowClear,O=e.value,T=e.handleReset,j=e.hidden,x=e.classes,R=e.classNames,$=e.dataAttrs,L=e.styles,B=e.components,q=e.onClear,I=a??i,N=B?.affixWrapper||"span",F=B?.groupWrapper||"span",P=B?.wrapper||"span",M=B?.groupAddon||"span",Y=v.useRef(null),W=function(V){var U;(U=Y.current)!==null&&U!==void 0&&U.contains(V.target)&&S?.()},H=Hp(e),X=v.cloneElement(I,{value:O,className:he((r=I.props)===null||r===void 0?void 0:r.className,!H&&R?.variant)||null}),J=v.useRef(null);if(v.useImperativeHandle(t,function(){return{nativeElement:J.current||Y.current}}),H){var K=null;if(m){var te=!b&&!w&&O,se="".concat(l,"-clear-icon"),ge=Se(m)==="object"&&m!==null&&m!==void 0&&m.clearIcon?m.clearIcon:"✖";K=v.createElement("button",{type:"button",tabIndex:-1,onClick:function(V){T?.(V),q?.()},onMouseDown:function(V){return V.preventDefault()},className:he(se,ee(ee({},"".concat(se,"-hidden"),!te),"".concat(se,"-has-suffix"),!!u))},ge)}var ce="".concat(l,"-affix-wrapper"),ve=he(ce,ee(ee(ee(ee(ee({},"".concat(l,"-disabled"),b),"".concat(ce,"-disabled"),b),"".concat(ce,"-focused"),p),"".concat(ce,"-readonly"),w),"".concat(ce,"-input-with-clear-btn"),u&&m&&O),x?.affixWrapper,R?.affixWrapper,R?.variant),E=(u||m)&&v.createElement("span",{className:he("".concat(l,"-suffix"),R?.suffix),style:L?.suffix},K,u);X=v.createElement(N,Ze({className:ve,style:L?.affixWrapper,onClick:W},$?.affixWrapper,{ref:Y}),c&&v.createElement("span",{className:he("".concat(l,"-prefix"),R?.prefix),style:L?.prefix},c),X,E)}if(Fp(e)){var k="".concat(l,"-group"),z="".concat(k,"-addon"),D="".concat(k,"-wrapper"),A=he("".concat(l,"-wrapper"),k,x?.wrapper,R?.wrapper),G=he(D,ee({},"".concat(D,"-disabled"),b),x?.group,R?.groupWrapper);X=v.createElement(F,{className:G,ref:J},v.createElement(P,{className:A},f&&v.createElement(M,{className:z},f),X,d&&v.createElement(M,{className:z},d)))}return v.cloneElement(X,{className:he((n=X.props)===null||n===void 0?void 0:n.className,g)||null,style:Q(Q({},(o=X.props)===null||o===void 0?void 0:o.style),C),hidden:j})}),Vp=["show"];function mu(e,t){return h.useMemo(function(){var r={};t&&(r.show=Se(t)==="object"&&t.formatter?t.formatter:!!t),r=Q(Q({},r),e);var n=r,o=n.show,i=$t(n,Vp);return Q(Q({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var Wp=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],qp=v.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,u=e.prefixCls,f=u===void 0?"rc-input":u,d=e.disabled,g=e.htmlSize,C=e.className,b=e.maxLength,w=e.suffix,p=e.showCount,S=e.count,m=e.type,O=m===void 0?"text":m,T=e.classes,j=e.classNames,x=e.styles,R=e.onCompositionStart,$=e.onCompositionEnd,L=$t(e,Wp),B=v.useState(!1),q=re(B,2),I=q[0],N=q[1],F=v.useRef(!1),P=v.useRef(!1),M=v.useRef(null),Y=v.useRef(null),W=function(ie){M.current&&gu(M.current,ie)},H=$r(e.defaultValue,{value:e.value}),X=re(H,2),J=X[0],K=X[1],te=J==null?"":String(J),se=v.useState(null),ge=re(se,2),ce=ge[0],ve=ge[1],E=mu(S,p),k=E.max||b,z=E.strategy(te),D=!!k&&z>k;v.useImperativeHandle(t,function(){var ue;return{focus:W,blur:function(){var xe;(xe=M.current)===null||xe===void 0||xe.blur()},setSelectionRange:function(xe,Ee,Ye){var Me;(Me=M.current)===null||Me===void 0||Me.setSelectionRange(xe,Ee,Ye)},select:function(){var xe;(xe=M.current)===null||xe===void 0||xe.select()},input:M.current,nativeElement:((ue=Y.current)===null||ue===void 0?void 0:ue.nativeElement)||M.current}}),v.useEffect(function(){P.current&&(P.current=!1),N(function(ue){return ue&&d?!1:ue})},[d]);var A=function(ie,xe,Ee){var Ye=xe;if(!F.current&&E.exceedFormatter&&E.max&&E.strategy(xe)>E.max){if(Ye=E.exceedFormatter(xe,{max:E.max}),xe!==Ye){var Me,ke;ve([((Me=M.current)===null||Me===void 0?void 0:Me.selectionStart)||0,((ke=M.current)===null||ke===void 0?void 0:ke.selectionEnd)||0])}}else if(Ee.source==="compositionEnd")return;K(Ye),M.current&&vo(M.current,ie,n,Ye)};v.useEffect(function(){if(ce){var ue;(ue=M.current)===null||ue===void 0||ue.setSelectionRange.apply(ue,rt(ce))}},[ce]);var G=function(ie){A(ie,ie.target.value,{source:"change"})},_=function(ie){F.current=!1,A(ie,ie.currentTarget.value,{source:"compositionEnd"}),$?.(ie)},V=function(ie){a&&ie.key==="Enter"&&!P.current&&(P.current=!0,a(ie)),l?.(ie)},U=function(ie){ie.key==="Enter"&&(P.current=!1),c?.(ie)},Z=function(ie){N(!0),o?.(ie)},ne=function(ie){P.current&&(P.current=!1),N(!1),i?.(ie)},oe=function(ie){K(""),W(),M.current&&vo(M.current,ie,n)},ye=D&&"".concat(f,"-out-of-range"),be=function(){var ie=oc(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return v.createElement("input",Ze({autoComplete:r},ie,{onChange:G,onFocus:Z,onBlur:ne,onKeyDown:V,onKeyUp:U,className:he(f,ee({},"".concat(f,"-disabled"),d),j?.input),style:x?.input,ref:M,size:g,type:O,onCompositionStart:function(Ee){F.current=!0,R?.(Ee)},onCompositionEnd:_}))},we=function(){var ie=Number(k)>0;if(w||E.show){var xe=E.showFormatter?E.showFormatter({value:te,count:z,maxLength:k}):"".concat(z).concat(ie?" / ".concat(k):"");return v.createElement(v.Fragment,null,E.show&&v.createElement("span",{className:he("".concat(f,"-show-count-suffix"),ee({},"".concat(f,"-show-count-has-suffix"),!!w),j?.count),style:Q({},x?.count)},xe),w)}return null};return v.createElement(pu,Ze({},L,{prefixCls:f,className:he(C,ye),handleReset:oe,value:te,focused:I,triggerFocus:W,suffix:we(),disabled:d,classes:T,classNames:j,styles:x,ref:Y}),be())}),Up=`
138
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},jp=e=>{const{calc:t,componentCls:r,tooltipMaxWidth:n,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:c,boxShadowSecondary:u,paddingSM:f,paddingXS:d,arrowOffsetHorizontal:g,sizePopupArrow:C}=e,b=t(a).add(C).add(g).equal(),w=t(a).mul(2).add(C).equal();return[{[r]:Object.assign(Object.assign(Object.assign(Object.assign({},Ea(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:w,minHeight:c,padding:`${Ie(e.calc(f).div(2).equal())} ${Ie(d)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:u,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:b},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${r}-inner`]:{borderRadius:e.min(a,lu)}},[`${r}-content`]:{position:"relative"}}),Wg(e,(p,{darkColor:S})=>({[`&${r}-${p}`]:{[`${r}-inner`]:{backgroundColor:S},[`${r}-arrow`]:{"--antd-arrow-background-color":S}}}))),{"&-rtl":{direction:"rtl"}})},op(e,"var(--antd-arrow-background-color)"),{[`${r}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},$p=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},cu({contentRadius:e.borderRadius,limitVerticalRadius:!0})),rp(Ut(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),du=(e,t=!0)=>Rn("Tooltip",n=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=n,l=Ut(n,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[jp(l),Rp(n,"zoom-big-fast")]},$p,{resetStyle:!1,injectStyle:t})(e),Tp=mo.map(e=>`${e}-inverse`);function Op(e,t=!0){return t?[].concat(rt(Tp),rt(mo)).includes(e):mo.includes(e)}const tt=Math.round;function fi(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 nl=(e,t,r)=>r===0?e:e/100;function rn(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=rn(t.r),this.g=rn(t.g),this.b=rn(t.b),this.a=typeof t.a=="number"?rn(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]=rn(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,u=(1-Math.abs(2*n-1))*r,f=u*(1-Math.abs(c%2-1));c>=0&&c<1?(i=u,a=f):c>=1&&c<2?(i=f,a=u):c>=2&&c<3?(a=u,l=f):c>=3&&c<4?(a=f,l=u):c>=4&&c<5?(i=f,l=u):c>=5&&c<6&&(i=u,l=f);const d=n-u/2;this.r=tt((i+d)*255),this.g=tt((a+d)*255),this.b=tt((l+d)*255)}fromHsv({h:t,s:r,v:n,a:o}){this._h=t%360,this._s=r,this._v=n,this.a=typeof o=="number"?o:1;const 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,u=tt(n*(1-r)*255),f=tt(n*(1-r*c)*255),d=tt(n*(1-r*(1-c))*255);switch(l){case 0:this.g=d,this.b=u;break;case 1:this.r=f,this.b=u;break;case 2:this.r=u,this.b=d;break;case 3:this.r=u,this.g=f;break;case 4:this.r=d,this.g=u;break;case 5:default:this.g=u,this.b=f;break}}fromHsvString(t){const r=fi(t,nl);this.fromHsv({h:r[0],s:r[1],v:r[2],a:r[3]})}fromHslString(t){const r=fi(t,nl);this.fromHsl({h:r[0],s:r[1],l:r[2],a:r[3]})}fromRgbString(t){const r=fi(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 _p=["b"],Ip=["v"],hi=function(t){return Math.round(Number(t||0))},Pp=function(t){if(t instanceof _o)return t;if(t&&Se(t)==="object"&&"h"in t&&"b"in t){var r=t,n=r.b,o=$t(r,_p);return Q(Q({},o),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},ol=(function(e){Cn(r,e);var t=wn(r);function r(n){return bt(this,r),t.call(this,Pp(n))}return yt(r,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=hi(o.s*100),a=hi(o.b*100),l=hi(o.h),c=o.a,u="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?u:f}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=$t(o,Ip);return Q(Q({},a),{},{b:i,a:this.a})}}]),r})(_o);const Mp=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",kp=(e,t)=>e?Mp(e,t):"";let il=(function(){function e(t){bt(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 ol(this.colors[0].color.metaColor)):this.metaColor=new ol(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return yt(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return kp(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 Ap=e=>e instanceof il?e:new il(e);function fu(e,t){const r=Op(t),n=he({[`${e}-${t}`]:t&&r}),o={},i={},a=Ap(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 Np=e=>{const{prefixCls:t,className:r,placement:n="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=h.useContext(Vt),c=l("tooltip",t),[u,f,d]=du(c),g=fu(c,i),C=g.arrowStyle,b=Object.assign(Object.assign({},a),g.overlayStyle),w=he(f,d,c,`${c}-pure`,`${c}-placement-${n}`,r,g.className);return u(h.createElement("div",{className:w,style:C},h.createElement("div",{className:`${c}-arrow`}),h.createElement(Zc,Object.assign({},e,{className:f,prefixCls:c,overlayInnerStyle:b}),o)))};var Dp=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 Bp=h.forwardRef((e,t)=>{var r,n;const{prefixCls:o,openClassName:i,getTooltipContainer:a,color:l,overlayInnerStyle:c,children:u,afterOpenChange:f,afterVisibleChange:d,destroyTooltipOnHide:g,destroyOnHidden:C,arrow:b=!0,title:w,overlay:p,builtinPlacements:S,arrowPointAtCenter:m=!1,autoAdjustOverflow:O=!0,getPopupContainer:T,placement:j="top",mouseEnterDelay:x=.1,mouseLeaveDelay:R=.1,overlayStyle:$,rootClassName:F,overlayClassName:B,styles:q,classNames:_}=e,D=Dp(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"]),H=!!b,[,P]=Dr(),{getPopupContainer:A,getPrefixCls:Y,direction:W,className:V,style:X,classNames:J,styles:K}=To("tooltip"),te=kt("Tooltip"),se=h.useRef(null),ge=()=>{var xe;(xe=se.current)===null||xe===void 0||xe.forceAlign()};h.useImperativeHandle(t,()=>{var xe,Ae;return{forceAlign:ge,forcePopupAlign:()=>{te.deprecated(!1,"forcePopupAlign","forceAlign"),ge()},nativeElement:(xe=se.current)===null||xe===void 0?void 0:xe.nativeElement,popupElement:(Ae=se.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(([xe,Ae])=>{te.deprecated(!(xe in e),xe,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(!b||typeof b=="boolean"||!("arrowPointAtCenter"in b),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[ce,ve]=$r(!1,{value:(r=e.open)!==null&&r!==void 0?r:e.visible,defaultValue:(n=e.defaultOpen)!==null&&n!==void 0?n:e.defaultVisible}),E=!w&&!p&&w!==0,N=xe=>{var Ae,ze;ve(E?!1:xe),E||((Ae=e.onOpenChange)===null||Ae===void 0||Ae.call(e,xe),(ze=e.onVisibleChange)===null||ze===void 0||ze.call(e,xe))},z=h.useMemo(()=>{var xe,Ae;let ze=m;return typeof b=="object"&&(ze=(Ae=(xe=b.pointAtCenter)!==null&&xe!==void 0?xe:b.arrowPointAtCenter)!==null&&Ae!==void 0?Ae:m),S||lp({arrowPointAtCenter:ze,autoAdjustOverflow:O,arrowWidth:H?P.sizePopupArrow:0,borderRadius:P.borderRadius,offset:P.marginXXS})},[m,b,S,P]),M=h.useMemo(()=>w===0?w:p||w||"",[p,w]),L=h.createElement(sa,{space:!0},typeof M=="function"?M():M),k=Y("tooltip",o),I=Y(),G=e["data-popover-inject"];let U=ce;!("open"in e)&&!("visible"in e)&&E&&(U=!1);const Z=h.isValidElement(u)&&!cp(u)?u:h.createElement("span",null,u),ne=Z.props,ae=!ne.className||typeof ne.className=="string"?he(ne.className,i||`${k}-open`):ne.className,[we,be,Ce]=du(k,!G),ue=fu(k,l),oe=ue.arrowStyle,ye=he(B,{[`${k}-rtl`]:W==="rtl"},ue.className,F,be,Ce,V,J.root,_?.root),Ee=he(J.body,_?.body),[Ye,Me]=ep("Tooltip",D.zIndex),ke=h.createElement(q0,Object.assign({},D,{zIndex:Ye,showArrow:H,placement:j,mouseEnterDelay:x,mouseLeaveDelay:R,prefixCls:k,classNames:{root:ye,body:Ee},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},oe),K.root),X),$),q?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},K.body),c),q?.body),ue.overlayStyle)},getTooltipContainer:T||a||A,ref:se,builtinPlacements:z,overlay:L,visible:U,onVisibleChange:N,afterVisibleChange:f??d,arrowContent:h.createElement("span",{className:`${k}-arrow-content`}),motion:{motionName:tp(I,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:C??!!g}),U?uu(Z,{className:ae}):Z);return we(h.createElement($a.Provider,{value:Me},ke))}),$n=Bp;process.env.NODE_ENV!=="production"&&($n.displayName="Tooltip");$n._InternalPanelDoNotUseOrYouWillBeFired=Np;var zp={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"},Lp=function(t,r){return h.createElement(qt,Ze({},t,{ref:r,icon:zp}))},hu=h.forwardRef(Lp);process.env.NODE_ENV!=="production"&&(hu.displayName="EnterOutlined");var al={ENTER:13,ESC:27};function Fp(e){return!!(e.addonBefore||e.addonAfter)}function Hp(e){return!!(e.prefix||e.suffix||e.allowClear)}function sl(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 vo(e,t,r,n){if(r){var o=t;if(t.type==="click"){o=sl(t,e,""),r(o);return}if(e.type!=="file"&&n!==void 0){o=sl(t,e,n),r(o);return}r(o)}}function gu(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 pu=v.forwardRef(function(e,t){var r,n,o,i=e.inputElement,a=e.children,l=e.prefixCls,c=e.prefix,u=e.suffix,f=e.addonBefore,d=e.addonAfter,g=e.className,C=e.style,b=e.disabled,w=e.readOnly,p=e.focused,S=e.triggerFocus,m=e.allowClear,O=e.value,T=e.handleReset,j=e.hidden,x=e.classes,R=e.classNames,$=e.dataAttrs,F=e.styles,B=e.components,q=e.onClear,_=a??i,D=B?.affixWrapper||"span",H=B?.groupWrapper||"span",P=B?.wrapper||"span",A=B?.groupAddon||"span",Y=v.useRef(null),W=function(G){var U;(U=Y.current)!==null&&U!==void 0&&U.contains(G.target)&&S?.()},V=Hp(e),X=v.cloneElement(_,{value:O,className:he((r=_.props)===null||r===void 0?void 0:r.className,!V&&R?.variant)||null}),J=v.useRef(null);if(v.useImperativeHandle(t,function(){return{nativeElement:J.current||Y.current}}),V){var K=null;if(m){var te=!b&&!w&&O,se="".concat(l,"-clear-icon"),ge=Se(m)==="object"&&m!==null&&m!==void 0&&m.clearIcon?m.clearIcon:"✖";K=v.createElement("button",{type:"button",tabIndex:-1,onClick:function(G){T?.(G),q?.()},onMouseDown:function(G){return G.preventDefault()},className:he(se,ee(ee({},"".concat(se,"-hidden"),!te),"".concat(se,"-has-suffix"),!!u))},ge)}var ce="".concat(l,"-affix-wrapper"),ve=he(ce,ee(ee(ee(ee(ee({},"".concat(l,"-disabled"),b),"".concat(ce,"-disabled"),b),"".concat(ce,"-focused"),p),"".concat(ce,"-readonly"),w),"".concat(ce,"-input-with-clear-btn"),u&&m&&O),x?.affixWrapper,R?.affixWrapper,R?.variant),E=(u||m)&&v.createElement("span",{className:he("".concat(l,"-suffix"),R?.suffix),style:F?.suffix},K,u);X=v.createElement(D,Ze({className:ve,style:F?.affixWrapper,onClick:W},$?.affixWrapper,{ref:Y}),c&&v.createElement("span",{className:he("".concat(l,"-prefix"),R?.prefix),style:F?.prefix},c),X,E)}if(Fp(e)){var N="".concat(l,"-group"),z="".concat(N,"-addon"),M="".concat(N,"-wrapper"),L=he("".concat(l,"-wrapper"),N,x?.wrapper,R?.wrapper),k=he(M,ee({},"".concat(M,"-disabled"),b),x?.group,R?.groupWrapper);X=v.createElement(H,{className:k,ref:J},v.createElement(P,{className:L},f&&v.createElement(A,{className:z},f),X,d&&v.createElement(A,{className:z},d)))}return v.cloneElement(X,{className:he((n=X.props)===null||n===void 0?void 0:n.className,g)||null,style:Q(Q({},(o=X.props)===null||o===void 0?void 0:o.style),C),hidden:j})}),Vp=["show"];function mu(e,t){return h.useMemo(function(){var r={};t&&(r.show=Se(t)==="object"&&t.formatter?t.formatter:!!t),r=Q(Q({},r),e);var n=r,o=n.show,i=$t(n,Vp);return Q(Q({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var Wp=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],qp=v.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,u=e.prefixCls,f=u===void 0?"rc-input":u,d=e.disabled,g=e.htmlSize,C=e.className,b=e.maxLength,w=e.suffix,p=e.showCount,S=e.count,m=e.type,O=m===void 0?"text":m,T=e.classes,j=e.classNames,x=e.styles,R=e.onCompositionStart,$=e.onCompositionEnd,F=$t(e,Wp),B=v.useState(!1),q=re(B,2),_=q[0],D=q[1],H=v.useRef(!1),P=v.useRef(!1),A=v.useRef(null),Y=v.useRef(null),W=function(oe){A.current&&gu(A.current,oe)},V=$r(e.defaultValue,{value:e.value}),X=re(V,2),J=X[0],K=X[1],te=J==null?"":String(J),se=v.useState(null),ge=re(se,2),ce=ge[0],ve=ge[1],E=mu(S,p),N=E.max||b,z=E.strategy(te),M=!!N&&z>N;v.useImperativeHandle(t,function(){var ue;return{focus:W,blur:function(){var ye;(ye=A.current)===null||ye===void 0||ye.blur()},setSelectionRange:function(ye,Ee,Ye){var Me;(Me=A.current)===null||Me===void 0||Me.setSelectionRange(ye,Ee,Ye)},select:function(){var ye;(ye=A.current)===null||ye===void 0||ye.select()},input:A.current,nativeElement:((ue=Y.current)===null||ue===void 0?void 0:ue.nativeElement)||A.current}}),v.useEffect(function(){P.current&&(P.current=!1),D(function(ue){return ue&&d?!1:ue})},[d]);var L=function(oe,ye,Ee){var Ye=ye;if(!H.current&&E.exceedFormatter&&E.max&&E.strategy(ye)>E.max){if(Ye=E.exceedFormatter(ye,{max:E.max}),ye!==Ye){var Me,ke;ve([((Me=A.current)===null||Me===void 0?void 0:Me.selectionStart)||0,((ke=A.current)===null||ke===void 0?void 0:ke.selectionEnd)||0])}}else if(Ee.source==="compositionEnd")return;K(Ye),A.current&&vo(A.current,oe,n,Ye)};v.useEffect(function(){if(ce){var ue;(ue=A.current)===null||ue===void 0||ue.setSelectionRange.apply(ue,rt(ce))}},[ce]);var k=function(oe){L(oe,oe.target.value,{source:"change"})},I=function(oe){H.current=!1,L(oe,oe.currentTarget.value,{source:"compositionEnd"}),$?.(oe)},G=function(oe){a&&oe.key==="Enter"&&!P.current&&(P.current=!0,a(oe)),l?.(oe)},U=function(oe){oe.key==="Enter"&&(P.current=!1),c?.(oe)},Z=function(oe){D(!0),o?.(oe)},ne=function(oe){P.current&&(P.current=!1),D(!1),i?.(oe)},ae=function(oe){K(""),W(),A.current&&vo(A.current,oe,n)},we=M&&"".concat(f,"-out-of-range"),be=function(){var oe=oc(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return v.createElement("input",Ze({autoComplete:r},oe,{onChange:k,onFocus:Z,onBlur:ne,onKeyDown:G,onKeyUp:U,className:he(f,ee({},"".concat(f,"-disabled"),d),j?.input),style:x?.input,ref:A,size:g,type:O,onCompositionStart:function(Ee){H.current=!0,R?.(Ee)},onCompositionEnd:I}))},Ce=function(){var oe=Number(N)>0;if(w||E.show){var ye=E.showFormatter?E.showFormatter({value:te,count:z,maxLength:N}):"".concat(z).concat(oe?" / ".concat(N):"");return v.createElement(v.Fragment,null,E.show&&v.createElement("span",{className:he("".concat(f,"-show-count-suffix"),ee({},"".concat(f,"-show-count-has-suffix"),!!w),j?.count),style:Q({},x?.count)},ye),w)}return null};return v.createElement(pu,Ze({},F,{prefixCls:f,className:he(C,we),handleReset:ae,value:te,focused:_,triggerFocus:W,suffix:Ce(),disabled:d,classes:T,classNames:j,styles:x,ref:Y}),be())}),Up=`
139
139
  min-height:0 !important;
140
140
  max-height:none !important;
141
141
  height:0 !important;
@@ -146,7 +146,7 @@ html body {
146
146
  top:0 !important;
147
147
  right:0 !important;
148
148
  pointer-events: none !important;
149
- `,Kp=["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"],gi={},dt;function Gp(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&&gi[r])return gi[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=Kp.map(function(u){return"".concat(u,":").concat(n.getPropertyValue(u))}).join(";"),c={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&r&&(gi[r]=c),c}function Yp(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;dt||(dt=document.createElement("textarea"),dt.setAttribute("tab-index","-1"),dt.setAttribute("aria-hidden","true"),dt.setAttribute("name","hiddenTextarea"),document.body.appendChild(dt)),e.getAttribute("wrap")?dt.setAttribute("wrap",e.getAttribute("wrap")):dt.removeAttribute("wrap");var o=Gp(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;dt.setAttribute("style","".concat(c,";").concat(Up)),dt.value=e.value||e.placeholder||"";var u=void 0,f=void 0,d,g=dt.scrollHeight;if(l==="border-box"?g+=a:l==="content-box"&&(g-=i),r!==null||n!==null){dt.value=" ";var C=dt.scrollHeight-i;r!==null&&(u=C*r,l==="border-box"&&(u=u+i+a),g=Math.max(u,g)),n!==null&&(f=C*n,l==="border-box"&&(f=f+i+a),d=g>f?"":"hidden",g=Math.min(f,g))}var b={height:g,overflowY:d,resize:"none"};return u&&(b.minHeight=u),f&&(b.maxHeight=f),b}var Xp=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],pi=0,mi=1,vi=2,Qp=h.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,u=r.style,f=r.disabled,d=r.onChange,g=r.onInternalAutoSize,C=$t(r,Xp),b=$r(o,{value:i,postState:function(se){return se??""}}),w=re(b,2),p=w[0],S=w[1],m=function(se){S(se.target.value),d?.(se)},O=h.useRef();h.useImperativeHandle(t,function(){return{textArea:O.current}});var T=h.useMemo(function(){return a&&Se(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),j=re(T,2),x=j[0],R=j[1],$=!!a,L=h.useState(vi),B=re(L,2),q=B[0],I=B[1],N=h.useState(),F=re(N,2),P=F[0],M=F[1],Y=function(){I(pi),process.env.NODE_ENV==="test"&&g?.()};Le(function(){$&&Y()},[i,x,R,$]),Le(function(){if(q===pi)I(mi);else if(q===mi){var te=Yp(O.current,!1,x,R);I(vi),M(te)}},[q]);var W=h.useRef(),H=function(){Pr.cancel(W.current)},X=function(se){q===vi&&(l?.(se),a&&(H(),W.current=Pr(function(){Y()})))};h.useEffect(function(){return H},[]);var J=$?P:null,K=Q(Q({},u),J);return(q===pi||q===mi)&&(K.overflowY="hidden",K.overflowX="hidden"),h.createElement(Ar,{onResize:X,disabled:!(a||l)},h.createElement("textarea",Ze({},C,{ref:O,style:K,className:he(n,c,ee({},"".concat(n,"-disabled"),f)),disabled:f,value:p,onChange:m})))}),Zp=["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"],Jp=v.forwardRef(function(e,t){var r,n=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,l=e.onChange,c=e.allowClear,u=e.maxLength,f=e.onCompositionStart,d=e.onCompositionEnd,g=e.suffix,C=e.prefixCls,b=C===void 0?"rc-textarea":C,w=e.showCount,p=e.count,S=e.className,m=e.style,O=e.disabled,T=e.hidden,j=e.classNames,x=e.styles,R=e.onResize,$=e.onClear,L=e.onPressEnter,B=e.readOnly,q=e.autoSize,I=e.onKeyDown,N=$t(e,Zp),F=$r(n,{value:o,defaultValue:n}),P=re(F,2),M=P[0],Y=P[1],W=M==null?"":String(M),H=v.useState(!1),X=re(H,2),J=X[0],K=X[1],te=v.useRef(!1),se=v.useState(null),ge=re(se,2),ce=ge[0],ve=ge[1],E=v.useRef(null),k=v.useRef(null),z=function(){var me;return(me=k.current)===null||me===void 0?void 0:me.textArea},D=function(){z().focus()};v.useImperativeHandle(t,function(){var _e;return{resizableTextArea:k.current,focus:D,blur:function(){z().blur()},nativeElement:((_e=E.current)===null||_e===void 0?void 0:_e.nativeElement)||z()}}),v.useEffect(function(){K(function(_e){return!O&&_e})},[O]);var A=v.useState(null),G=re(A,2),_=G[0],V=G[1];v.useEffect(function(){if(_){var _e;(_e=z()).setSelectionRange.apply(_e,rt(_))}},[_]);var U=mu(p,w),Z=(r=U.max)!==null&&r!==void 0?r:u,ne=Number(Z)>0,oe=U.strategy(W),ye=!!Z&&oe>Z,be=function(me,Ne){var le=Ne;!te.current&&U.exceedFormatter&&U.max&&U.strategy(Ne)>U.max&&(le=U.exceedFormatter(Ne,{max:U.max}),Ne!==le&&V([z().selectionStart||0,z().selectionEnd||0])),Y(le),vo(me.currentTarget,me,l,le)},we=function(me){te.current=!0,f?.(me)},ue=function(me){te.current=!1,be(me,me.currentTarget.value),d?.(me)},ie=function(me){be(me,me.target.value)},xe=function(me){me.key==="Enter"&&L&&L(me),I?.(me)},Ee=function(me){K(!0),i?.(me)},Ye=function(me){K(!1),a?.(me)},Me=function(me){Y(""),D(),vo(z(),me,l)},ke=g,Ce;U.show&&(U.showFormatter?Ce=U.showFormatter({value:W,count:oe,maxLength:Z}):Ce="".concat(oe).concat(ne?" / ".concat(Z):""),ke=v.createElement(v.Fragment,null,ke,v.createElement("span",{className:he("".concat(b,"-data-count"),j?.count),style:x?.count},Ce)));var Ae=function(me){var Ne;R?.(me),(Ne=z())!==null&&Ne!==void 0&&Ne.style.height&&ve(!0)},ze=!q&&!w&&!c;return v.createElement(pu,{ref:E,value:W,allowClear:c,handleReset:Me,suffix:ke,prefixCls:b,classNames:Q(Q({},j),{},{affixWrapper:he(j?.affixWrapper,ee(ee({},"".concat(b,"-show-count"),w),"".concat(b,"-textarea-allow-clear"),c))}),disabled:O,focused:J,className:he(S,ye&&"".concat(b,"-out-of-range")),style:Q(Q({},m),ce&&!ze?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ce=="string"?Ce:void 0}},hidden:T,readOnly:B,onClear:$},v.createElement(Qp,Ze({},N,{autoSize:q,maxLength:u,onKeyDown:xe,onChange:ie,onFocus:Ee,onBlur:Ye,onCompositionStart:we,onCompositionEnd:ue,className:he(j?.textarea),style:Q(Q({},x?.textarea),{},{resize:m?.resize}),disabled:O,prefixCls:b,onResize:Ae,ref:k,readOnly:B})))}),em={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"},tm=function(t,r){return h.createElement(qt,Ze({},t,{ref:r,icon:em}))},vu=h.forwardRef(tm);process.env.NODE_ENV!=="production"&&(vu.displayName="CloseCircleFilled");const bu=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:v.createElement(vu,null)}),t};function la(e,t,r){return he({[`${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 yu=(e,t)=>t||e,xu=e=>{const[,,,,t]=Dr();return t?`${e}-css-var`:""},Cu=(e,t,r=void 0)=>{var n,o;const{variant:i,[e]:a}=h.useContext(Vt),l=h.useContext(K0),c=a?.variant;let u;typeof t<"u"?u=t:r===!1?u="borderless":u=(o=(n=l??c)!==null&&n!==void 0?n:i)!==null&&o!==void 0?o:"outlined";const f=gg.includes(u);return[u,f]};function rm(e,t){const r=v.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 v.useEffect(()=>(n(),()=>r.current.forEach(o=>{o&&clearTimeout(o)})),[]),n}function nm(e,t,r,n){const{focusElCls:o,focus:i,borderElCls:a}=r,l=a?"> *":"",c=["hover",i?"focus":null,"active"].filter(Boolean).map(u=>`&:${u} ${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 om(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 im(e,t={focus:!0}){const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},nm(e,n,t,r)),om(r,n,t))}}function Ta(e){return Ut(e,{inputAffixPadding:e.paddingXXS})}const Oa=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:f,controlPaddingHorizontal:d,colorFillAlter:g,colorPrimaryHover:C,colorPrimary:b,controlOutlineWidth:w,controlOutline:p,colorErrorOutline:S,colorWarningOutline:m,colorBgContainer:O,inputFontSize:T,inputFontSizeLG:j,inputFontSizeSM:x}=e,R=T||r,$=x||R,L=j||l,B=Math.round((t-R*n)/2*10)/10-o,q=Math.round((i-$*n)/2*10)/10-o,I=Math.ceil((a-L*c)/2*10)/10-o;return{paddingBlock:Math.max(B,0),paddingBlockSM:Math.max(q,0),paddingBlockLG:Math.max(I,0),paddingInline:u-o,paddingInlineSM:f-o,paddingInlineLG:d-o,addonBg:g,activeBorderColor:b,hoverBorderColor:C,activeShadow:`0 0 0 ${w}px ${p}`,errorActiveShadow:`0 0 0 ${w}px ${S}`,warningActiveShadow:`0 0 0 ${w}px ${m}`,hoverBg:O,activeBg:O,inputFontSize:R,inputFontSizeLG:L,inputFontSizeSM:$}},am=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),_a=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({},am(Ut(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),wu=(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}}),ll=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},wu(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),sm=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wu(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},_a(e))}),ll(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ll(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),cl=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),lm=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},cl(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),cl(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},_a(e))}})}),cm=(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)}},Su=(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}}},ul=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Su(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),um=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Su(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},_a(e))}),ul(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),ul(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),dl=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),dm=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},dl(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),dl(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:`${Oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Oe(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Eu=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Oe(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}}),fl=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Eu(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`}}),fm=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Eu(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"}}),fl(e,{status:"error",borderColor:e.colorError,activeBorderColor:e.colorError,affixColor:e.colorError})),fl(e,{status:"warning",borderColor:e.colorWarning,activeBorderColor:e.colorWarning,affixColor:e.colorWarning})),t)}),hm=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ru=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:o}=e;return{padding:`${Oe(t)} ${Oe(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},ju=e=>({padding:`${Oe(e.paddingBlockSM)} ${Oe(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),$u=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Oe(e.paddingBlock)} ${Oe(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},hm(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Ru(e)),"&-sm":Object.assign({},ju(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),gm=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({},Ru(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},ju(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 ${Oe(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${Oe(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Oe(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:`${Oe(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${Oe(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"},zg()),{[`${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},[`
149
+ `,Kp=["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"],gi={},dt;function Gp(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&&gi[r])return gi[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=Kp.map(function(u){return"".concat(u,":").concat(n.getPropertyValue(u))}).join(";"),c={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&r&&(gi[r]=c),c}function Yp(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;dt||(dt=document.createElement("textarea"),dt.setAttribute("tab-index","-1"),dt.setAttribute("aria-hidden","true"),dt.setAttribute("name","hiddenTextarea"),document.body.appendChild(dt)),e.getAttribute("wrap")?dt.setAttribute("wrap",e.getAttribute("wrap")):dt.removeAttribute("wrap");var o=Gp(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;dt.setAttribute("style","".concat(c,";").concat(Up)),dt.value=e.value||e.placeholder||"";var u=void 0,f=void 0,d,g=dt.scrollHeight;if(l==="border-box"?g+=a:l==="content-box"&&(g-=i),r!==null||n!==null){dt.value=" ";var C=dt.scrollHeight-i;r!==null&&(u=C*r,l==="border-box"&&(u=u+i+a),g=Math.max(u,g)),n!==null&&(f=C*n,l==="border-box"&&(f=f+i+a),d=g>f?"":"hidden",g=Math.min(f,g))}var b={height:g,overflowY:d,resize:"none"};return u&&(b.minHeight=u),f&&(b.maxHeight=f),b}var Xp=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],pi=0,mi=1,vi=2,Qp=h.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,u=r.style,f=r.disabled,d=r.onChange,g=r.onInternalAutoSize,C=$t(r,Xp),b=$r(o,{value:i,postState:function(se){return se??""}}),w=re(b,2),p=w[0],S=w[1],m=function(se){S(se.target.value),d?.(se)},O=h.useRef();h.useImperativeHandle(t,function(){return{textArea:O.current}});var T=h.useMemo(function(){return a&&Se(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),j=re(T,2),x=j[0],R=j[1],$=!!a,F=h.useState(vi),B=re(F,2),q=B[0],_=B[1],D=h.useState(),H=re(D,2),P=H[0],A=H[1],Y=function(){_(pi),process.env.NODE_ENV==="test"&&g?.()};Le(function(){$&&Y()},[i,x,R,$]),Le(function(){if(q===pi)_(mi);else if(q===mi){var te=Yp(O.current,!1,x,R);_(vi),A(te)}},[q]);var W=h.useRef(),V=function(){Pr.cancel(W.current)},X=function(se){q===vi&&(l?.(se),a&&(V(),W.current=Pr(function(){Y()})))};h.useEffect(function(){return V},[]);var J=$?P:null,K=Q(Q({},u),J);return(q===pi||q===mi)&&(K.overflowY="hidden",K.overflowX="hidden"),h.createElement(Ar,{onResize:X,disabled:!(a||l)},h.createElement("textarea",Ze({},C,{ref:O,style:K,className:he(n,c,ee({},"".concat(n,"-disabled"),f)),disabled:f,value:p,onChange:m})))}),Zp=["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"],Jp=v.forwardRef(function(e,t){var r,n=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,l=e.onChange,c=e.allowClear,u=e.maxLength,f=e.onCompositionStart,d=e.onCompositionEnd,g=e.suffix,C=e.prefixCls,b=C===void 0?"rc-textarea":C,w=e.showCount,p=e.count,S=e.className,m=e.style,O=e.disabled,T=e.hidden,j=e.classNames,x=e.styles,R=e.onResize,$=e.onClear,F=e.onPressEnter,B=e.readOnly,q=e.autoSize,_=e.onKeyDown,D=$t(e,Zp),H=$r(n,{value:o,defaultValue:n}),P=re(H,2),A=P[0],Y=P[1],W=A==null?"":String(A),V=v.useState(!1),X=re(V,2),J=X[0],K=X[1],te=v.useRef(!1),se=v.useState(null),ge=re(se,2),ce=ge[0],ve=ge[1],E=v.useRef(null),N=v.useRef(null),z=function(){var me;return(me=N.current)===null||me===void 0?void 0:me.textArea},M=function(){z().focus()};v.useImperativeHandle(t,function(){var Oe;return{resizableTextArea:N.current,focus:M,blur:function(){z().blur()},nativeElement:((Oe=E.current)===null||Oe===void 0?void 0:Oe.nativeElement)||z()}}),v.useEffect(function(){K(function(Oe){return!O&&Oe})},[O]);var L=v.useState(null),k=re(L,2),I=k[0],G=k[1];v.useEffect(function(){if(I){var Oe;(Oe=z()).setSelectionRange.apply(Oe,rt(I))}},[I]);var U=mu(p,w),Z=(r=U.max)!==null&&r!==void 0?r:u,ne=Number(Z)>0,ae=U.strategy(W),we=!!Z&&ae>Z,be=function(me,Ne){var le=Ne;!te.current&&U.exceedFormatter&&U.max&&U.strategy(Ne)>U.max&&(le=U.exceedFormatter(Ne,{max:U.max}),Ne!==le&&G([z().selectionStart||0,z().selectionEnd||0])),Y(le),vo(me.currentTarget,me,l,le)},Ce=function(me){te.current=!0,f?.(me)},ue=function(me){te.current=!1,be(me,me.currentTarget.value),d?.(me)},oe=function(me){be(me,me.target.value)},ye=function(me){me.key==="Enter"&&F&&F(me),_?.(me)},Ee=function(me){K(!0),i?.(me)},Ye=function(me){K(!1),a?.(me)},Me=function(me){Y(""),M(),vo(z(),me,l)},ke=g,xe;U.show&&(U.showFormatter?xe=U.showFormatter({value:W,count:ae,maxLength:Z}):xe="".concat(ae).concat(ne?" / ".concat(Z):""),ke=v.createElement(v.Fragment,null,ke,v.createElement("span",{className:he("".concat(b,"-data-count"),j?.count),style:x?.count},xe)));var Ae=function(me){var Ne;R?.(me),(Ne=z())!==null&&Ne!==void 0&&Ne.style.height&&ve(!0)},ze=!q&&!w&&!c;return v.createElement(pu,{ref:E,value:W,allowClear:c,handleReset:Me,suffix:ke,prefixCls:b,classNames:Q(Q({},j),{},{affixWrapper:he(j?.affixWrapper,ee(ee({},"".concat(b,"-show-count"),w),"".concat(b,"-textarea-allow-clear"),c))}),disabled:O,focused:J,className:he(S,we&&"".concat(b,"-out-of-range")),style:Q(Q({},m),ce&&!ze?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof xe=="string"?xe:void 0}},hidden:T,readOnly:B,onClear:$},v.createElement(Qp,Ze({},D,{autoSize:q,maxLength:u,onKeyDown:ye,onChange:oe,onFocus:Ee,onBlur:Ye,onCompositionStart:Ce,onCompositionEnd:ue,className:he(j?.textarea),style:Q(Q({},x?.textarea),{},{resize:m?.resize}),disabled:O,prefixCls:b,onResize:Ae,ref:N,readOnly:B})))}),em={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"},tm=function(t,r){return h.createElement(qt,Ze({},t,{ref:r,icon:em}))},vu=h.forwardRef(tm);process.env.NODE_ENV!=="production"&&(vu.displayName="CloseCircleFilled");const bu=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:v.createElement(vu,null)}),t};function la(e,t,r){return he({[`${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 yu=(e,t)=>t||e,xu=e=>{const[,,,,t]=Dr();return t?`${e}-css-var`:""},Cu=(e,t,r=void 0)=>{var n,o;const{variant:i,[e]:a}=h.useContext(Vt),l=h.useContext(K0),c=a?.variant;let u;typeof t<"u"?u=t:r===!1?u="borderless":u=(o=(n=l??c)!==null&&n!==void 0?n:i)!==null&&o!==void 0?o:"outlined";const f=gg.includes(u);return[u,f]};function rm(e,t){const r=v.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 v.useEffect(()=>(n(),()=>r.current.forEach(o=>{o&&clearTimeout(o)})),[]),n}function nm(e,t,r,n){const{focusElCls:o,focus:i,borderElCls:a}=r,l=a?"> *":"",c=["hover",i?"focus":null,"active"].filter(Boolean).map(u=>`&:${u} ${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 om(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 im(e,t={focus:!0}){const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},nm(e,n,t,r)),om(r,n,t))}}function Ta(e){return Ut(e,{inputAffixPadding:e.paddingXXS})}const Oa=e=>{const{controlHeight:t,fontSize:r,lineHeight:n,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:f,controlPaddingHorizontal:d,colorFillAlter:g,colorPrimaryHover:C,colorPrimary:b,controlOutlineWidth:w,controlOutline:p,colorErrorOutline:S,colorWarningOutline:m,colorBgContainer:O,inputFontSize:T,inputFontSizeLG:j,inputFontSizeSM:x}=e,R=T||r,$=x||R,F=j||l,B=Math.round((t-R*n)/2*10)/10-o,q=Math.round((i-$*n)/2*10)/10-o,_=Math.ceil((a-F*c)/2*10)/10-o;return{paddingBlock:Math.max(B,0),paddingBlockSM:Math.max(q,0),paddingBlockLG:Math.max(_,0),paddingInline:u-o,paddingInlineSM:f-o,paddingInlineLG:d-o,addonBg:g,activeBorderColor:b,hoverBorderColor:C,activeShadow:`0 0 0 ${w}px ${p}`,errorActiveShadow:`0 0 0 ${w}px ${S}`,warningActiveShadow:`0 0 0 ${w}px ${m}`,hoverBg:O,activeBg:O,inputFontSize:R,inputFontSizeLG:F,inputFontSizeSM:$}},am=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),_a=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({},am(Ut(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),wu=(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}}),ll=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},wu(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),sm=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wu(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},_a(e))}),ll(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ll(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),cl=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),lm=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},cl(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),cl(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},_a(e))}})}),cm=(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)}},Su=(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}}},ul=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Su(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),um=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Su(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},_a(e))}),ul(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),ul(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),dl=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),dm=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},dl(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),dl(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:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Eu=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Ie(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}}),fl=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Eu(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`}}),fm=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Eu(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"}}),fl(e,{status:"error",borderColor:e.colorError,activeBorderColor:e.colorError,affixColor:e.colorError})),fl(e,{status:"warning",borderColor:e.colorWarning,activeBorderColor:e.colorWarning,affixColor:e.colorWarning})),t)}),hm=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ru=e=>{const{paddingBlockLG:t,lineHeightLG:r,borderRadiusLG:n,paddingInlineLG:o}=e;return{padding:`${Ie(t)} ${Ie(o)}`,fontSize:e.inputFontSizeLG,lineHeight:r,borderRadius:n}},ju=e=>({padding:`${Ie(e.paddingBlockSM)} ${Ie(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),$u=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ie(e.paddingBlock)} ${Ie(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},hm(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Ru(e)),"&-sm":Object.assign({},ju(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),gm=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({},Ru(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},ju(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 ${Ie(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`${Ie(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Ie(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:`${Ie(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${r}-cascader-picker`]:{margin:`-9px ${Ie(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"},zg()),{[`${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
150
  & > ${t}-affix-wrapper,
151
151
  & > ${t}-number-affix-wrapper,
152
152
  & > ${r}-picker-range
@@ -159,17 +159,17 @@ html body {
159
159
  & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
160
160
  & > ${r}-select:last-child > ${r}-select-selector,
161
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}}}})}},pm=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({},Ea(e)),$u(e)),sm(e)),um(e)),cm(e)),fm(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"}})}},mm=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 ${Oe(e.inputAffixPadding)}`}}}},vm=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},$u(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}}}),mm(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[u]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},bm=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ea(e)),gm(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}}},lm(e)),dm(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}}})})}},ym=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,
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}}}})}},pm=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({},Ea(e)),$u(e)),sm(e)),um(e)),cm(e)),fm(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"}})}},mm=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 ${Ie(e.inputAffixPadding)}`}}}},vm=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},$u(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}}}),mm(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[u]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},bm=e=>{const{componentCls:t,borderRadiusLG:r,borderRadiusSM:n}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ea(e)),gm(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}}},lm(e)),dm(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}}})})}},ym=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):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,"&:not([disabled]):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
163
  > ${t},
164
- ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},xm=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Tu=Rn(["Input","Shared"],e=>{const t=Ut(e,Ta(e));return[pm(t),vm(t)]},Oa,{resetFont:!1}),Cm=Rn(["Input","Component"],e=>{const t=Ut(e,Ta(e));return[bm(t),ym(t),xm(t),im(t)]},Oa,{resetFont:!1});function wm(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Sm=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 Em=v.forwardRef((e,t)=>{const{prefixCls:r,bordered:n=!0,status:o,size:i,disabled:a,onBlur:l,onFocus:c,suffix:u,allowClear:f,addonAfter:d,addonBefore:g,className:C,style:b,styles:w,rootClassName:p,onChange:S,classNames:m,variant:O}=e,T=Sm(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}=kt("Input");oe(!("bordered"in e),"bordered","variant")}const{getPrefixCls:j,direction:x,allowClear:R,autoComplete:$,className:L,style:B,classNames:q,styles:I}=To("input"),N=j("input",r),F=v.useRef(null),P=xu(N),[M,Y,W]=Tu(N,p),[H]=Cm(N,P),{compactSize:X,compactItemClassnames:J}=au(N,x),K=ou(oe=>{var ye;return(ye=i??X)!==null&&ye!==void 0?ye:oe}),te=v.useContext(vn),se=a??te,{status:ge,hasFeedback:ce,feedbackIcon:ve}=v.useContext(yn),E=yu(ge,o),k=wm(e)||!!ce,z=v.useRef(k);if(process.env.NODE_ENV!=="production"){const oe=kt("Input");v.useEffect(()=>{var ye;k&&!z.current&&process.env.NODE_ENV!=="production"&&oe(document.activeElement===((ye=F.current)===null||ye===void 0?void 0:ye.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"),z.current=k},[k])}const D=rm(F),A=oe=>{D(),l?.(oe)},G=oe=>{D(),c?.(oe)},_=oe=>{D(),S?.(oe)},V=(ce||u)&&v.createElement(v.Fragment,null,u,ce&&ve),U=bu(f??R),[Z,ne]=Cu("input",O,n);return M(H(v.createElement(qp,Object.assign({ref:xn(t,F),prefixCls:N,autoComplete:$},T,{disabled:se,onBlur:A,onFocus:G,style:Object.assign(Object.assign({},B),b),styles:Object.assign(Object.assign({},I),w),suffix:V,allowClear:U,className:he(C,p,W,P,J,L),onChange:_,addonBefore:g&&v.createElement(sa,{form:!0,space:!0},g),addonAfter:d&&v.createElement(sa,{form:!0,space:!0},d),classNames:Object.assign(Object.assign(Object.assign({},m),q),{input:he({[`${N}-sm`]:K==="small",[`${N}-lg`]:K==="large",[`${N}-rtl`]:x==="rtl"},m?.input,q.input,Y),variant:he({[`${N}-${Z}`]:ne},la(N,E)),affixWrapper:he({[`${N}-affix-wrapper-sm`]:K==="small",[`${N}-affix-wrapper-lg`]:K==="large",[`${N}-affix-wrapper-rtl`]:x==="rtl"},Y),wrapper:he({[`${N}-group-rtl`]:x==="rtl"},Y),groupWrapper:he({[`${N}-group-wrapper-sm`]:K==="small",[`${N}-group-wrapper-lg`]:K==="large",[`${N}-group-wrapper-rtl`]:x==="rtl",[`${N}-group-wrapper-${Z}`]:ne},la(`${N}-group-wrapper`,E,ce),Y)})}))))});process.env.NODE_ENV!=="production"&&(Em.displayName="Input");const Rm=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"}},[`
164
+ ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},xm=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Tu=Rn(["Input","Shared"],e=>{const t=Ut(e,Ta(e));return[pm(t),vm(t)]},Oa,{resetFont:!1}),Cm=Rn(["Input","Component"],e=>{const t=Ut(e,Ta(e));return[bm(t),ym(t),xm(t),im(t)]},Oa,{resetFont:!1});function wm(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var Sm=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 Em=v.forwardRef((e,t)=>{const{prefixCls:r,bordered:n=!0,status:o,size:i,disabled:a,onBlur:l,onFocus:c,suffix:u,allowClear:f,addonAfter:d,addonBefore:g,className:C,style:b,styles:w,rootClassName:p,onChange:S,classNames:m,variant:O}=e,T=Sm(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:ae}=kt("Input");ae(!("bordered"in e),"bordered","variant")}const{getPrefixCls:j,direction:x,allowClear:R,autoComplete:$,className:F,style:B,classNames:q,styles:_}=To("input"),D=j("input",r),H=v.useRef(null),P=xu(D),[A,Y,W]=Tu(D,p),[V]=Cm(D,P),{compactSize:X,compactItemClassnames:J}=au(D,x),K=ou(ae=>{var we;return(we=i??X)!==null&&we!==void 0?we:ae}),te=v.useContext(vn),se=a??te,{status:ge,hasFeedback:ce,feedbackIcon:ve}=v.useContext(yn),E=yu(ge,o),N=wm(e)||!!ce,z=v.useRef(N);if(process.env.NODE_ENV!=="production"){const ae=kt("Input");v.useEffect(()=>{var we;N&&!z.current&&process.env.NODE_ENV!=="production"&&ae(document.activeElement===((we=H.current)===null||we===void 0?void 0:we.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"),z.current=N},[N])}const M=rm(H),L=ae=>{M(),l?.(ae)},k=ae=>{M(),c?.(ae)},I=ae=>{M(),S?.(ae)},G=(ce||u)&&v.createElement(v.Fragment,null,u,ce&&ve),U=bu(f??R),[Z,ne]=Cu("input",O,n);return A(V(v.createElement(qp,Object.assign({ref:xn(t,H),prefixCls:D,autoComplete:$},T,{disabled:se,onBlur:L,onFocus:k,style:Object.assign(Object.assign({},B),b),styles:Object.assign(Object.assign({},_),w),suffix:G,allowClear:U,className:he(C,p,W,P,J,F),onChange:I,addonBefore:g&&v.createElement(sa,{form:!0,space:!0},g),addonAfter:d&&v.createElement(sa,{form:!0,space:!0},d),classNames:Object.assign(Object.assign(Object.assign({},m),q),{input:he({[`${D}-sm`]:K==="small",[`${D}-lg`]:K==="large",[`${D}-rtl`]:x==="rtl"},m?.input,q.input,Y),variant:he({[`${D}-${Z}`]:ne},la(D,E)),affixWrapper:he({[`${D}-affix-wrapper-sm`]:K==="small",[`${D}-affix-wrapper-lg`]:K==="large",[`${D}-affix-wrapper-rtl`]:x==="rtl"},Y),wrapper:he({[`${D}-group-rtl`]:x==="rtl"},Y),groupWrapper:he({[`${D}-group-wrapper-sm`]:K==="small",[`${D}-group-wrapper-lg`]:K==="large",[`${D}-group-wrapper-rtl`]:x==="rtl",[`${D}-group-wrapper-${Z}`]:ne},la(`${D}-group-wrapper`,E,ce),Y)})}))))});process.env.NODE_ENV!=="production"&&(Em.displayName="Input");const Rm=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
165
  &-allow-clear > ${t},
166
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}}}}}},jm=Rn(["Input","TextArea"],e=>{const t=Ut(e,Ta(e));return Rm(t)},Oa,{resetFont:!1});var $m=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 Tm=v.forwardRef((e,t)=>{var r;const{prefixCls:n,bordered:o=!0,size:i,disabled:a,status:l,allowClear:c,classNames:u,rootClassName:f,className:d,style:g,styles:C,variant:b,showCount:w,onMouseDown:p,onResize:S}=e,m=$m(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);if(process.env.NODE_ENV!=="production"){const{deprecated:U}=kt("TextArea");U(!("bordered"in e),"bordered","variant")}const{getPrefixCls:O,direction:T,allowClear:j,autoComplete:x,className:R,style:$,classNames:L,styles:B}=To("textArea"),q=h.useContext(vn),I=a??q,{status:N,hasFeedback:F,feedbackIcon:P}=h.useContext(yn),M=yu(N,l),Y=h.useRef(null);h.useImperativeHandle(t,()=>{var U;return{resizableTextArea:(U=Y.current)===null||U===void 0?void 0:U.resizableTextArea,focus:Z=>{var ne,oe;gu((oe=(ne=Y.current)===null||ne===void 0?void 0:ne.resizableTextArea)===null||oe===void 0?void 0:oe.textArea,Z)},blur:()=>{var Z;return(Z=Y.current)===null||Z===void 0?void 0:Z.blur()}}});const W=O("input",n),H=xu(W),[X,J,K]=Tu(W,f),[te]=jm(W,H),{compactSize:se,compactItemClassnames:ge}=au(W,T),ce=ou(U=>{var Z;return(Z=i??se)!==null&&Z!==void 0?Z:U}),[ve,E]=Cu("textArea",b,o),k=bu(c??j),[z,D]=h.useState(!1),[A,G]=h.useState(!1),_=U=>{D(!0),p?.(U);const Z=()=>{D(!1),document.removeEventListener("mouseup",Z)};document.addEventListener("mouseup",Z)},V=U=>{var Z,ne;if(S?.(U),z&&typeof getComputedStyle=="function"){const oe=(ne=(Z=Y.current)===null||Z===void 0?void 0:Z.nativeElement)===null||ne===void 0?void 0:ne.querySelector("textarea");oe&&getComputedStyle(oe).resize==="both"&&G(!0)}};return X(te(h.createElement(Jp,Object.assign({autoComplete:x},m,{style:Object.assign(Object.assign({},$),g),styles:Object.assign(Object.assign({},B),C),disabled:I,allowClear:k,className:he(K,H,d,f,ge,R,A&&`${W}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},u),L),{textarea:he({[`${W}-sm`]:ce==="small",[`${W}-lg`]:ce==="large"},J,u?.textarea,L.textarea,z&&`${W}-mouse-active`),variant:he({[`${W}-${ve}`]:E},la(W,M)),affixWrapper:he(`${W}-textarea-affix-wrapper`,{[`${W}-affix-wrapper-rtl`]:T==="rtl",[`${W}-affix-wrapper-sm`]:ce==="small",[`${W}-affix-wrapper-lg`]:ce==="large",[`${W}-textarea-show-count`]:w||((r=e.count)===null||r===void 0?void 0:r.show)},J)}),prefixCls:W,suffix:F&&h.createElement("span",{className:`${W}-textarea-suffix`},P),showCount:w,ref:Y,onResize:V,onMouseDown:_}))))}),Om=(e,t,r,n)=>{const{titleMarginBottom:o,fontWeightStrong:i}=n;return{marginBottom:o,color:r,fontWeight:i,fontSize:e,lineHeight:t}},_m=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[`
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}}}}}},jm=Rn(["Input","TextArea"],e=>{const t=Ut(e,Ta(e));return Rm(t)},Oa,{resetFont:!1});var $m=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 Tm=v.forwardRef((e,t)=>{var r;const{prefixCls:n,bordered:o=!0,size:i,disabled:a,status:l,allowClear:c,classNames:u,rootClassName:f,className:d,style:g,styles:C,variant:b,showCount:w,onMouseDown:p,onResize:S}=e,m=$m(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);if(process.env.NODE_ENV!=="production"){const{deprecated:U}=kt("TextArea");U(!("bordered"in e),"bordered","variant")}const{getPrefixCls:O,direction:T,allowClear:j,autoComplete:x,className:R,style:$,classNames:F,styles:B}=To("textArea"),q=h.useContext(vn),_=a??q,{status:D,hasFeedback:H,feedbackIcon:P}=h.useContext(yn),A=yu(D,l),Y=h.useRef(null);h.useImperativeHandle(t,()=>{var U;return{resizableTextArea:(U=Y.current)===null||U===void 0?void 0:U.resizableTextArea,focus:Z=>{var ne,ae;gu((ae=(ne=Y.current)===null||ne===void 0?void 0:ne.resizableTextArea)===null||ae===void 0?void 0:ae.textArea,Z)},blur:()=>{var Z;return(Z=Y.current)===null||Z===void 0?void 0:Z.blur()}}});const W=O("input",n),V=xu(W),[X,J,K]=Tu(W,f),[te]=jm(W,V),{compactSize:se,compactItemClassnames:ge}=au(W,T),ce=ou(U=>{var Z;return(Z=i??se)!==null&&Z!==void 0?Z:U}),[ve,E]=Cu("textArea",b,o),N=bu(c??j),[z,M]=h.useState(!1),[L,k]=h.useState(!1),I=U=>{M(!0),p?.(U);const Z=()=>{M(!1),document.removeEventListener("mouseup",Z)};document.addEventListener("mouseup",Z)},G=U=>{var Z,ne;if(S?.(U),z&&typeof getComputedStyle=="function"){const ae=(ne=(Z=Y.current)===null||Z===void 0?void 0:Z.nativeElement)===null||ne===void 0?void 0:ne.querySelector("textarea");ae&&getComputedStyle(ae).resize==="both"&&k(!0)}};return X(te(h.createElement(Jp,Object.assign({autoComplete:x},m,{style:Object.assign(Object.assign({},$),g),styles:Object.assign(Object.assign({},B),C),disabled:_,allowClear:N,className:he(K,V,d,f,ge,R,L&&`${W}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},u),F),{textarea:he({[`${W}-sm`]:ce==="small",[`${W}-lg`]:ce==="large"},J,u?.textarea,F.textarea,z&&`${W}-mouse-active`),variant:he({[`${W}-${ve}`]:E},la(W,A)),affixWrapper:he(`${W}-textarea-affix-wrapper`,{[`${W}-affix-wrapper-rtl`]:T==="rtl",[`${W}-affix-wrapper-sm`]:ce==="small",[`${W}-affix-wrapper-lg`]:ce==="large",[`${W}-textarea-show-count`]:w||((r=e.count)===null||r===void 0?void 0:r.show)},J)}),prefixCls:W,suffix:H&&h.createElement("span",{className:`${W}-textarea-suffix`},P),showCount:w,ref:Y,onResize:G,onMouseDown:I}))))}),Om=(e,t,r,n)=>{const{titleMarginBottom:o,fontWeightStrong:i}=n;return{marginBottom:o,color:r,fontWeight:i,fontSize:e,lineHeight:t}},_m=e=>{const t=[1,2,3,4,5],r={};return t.forEach(n=>{r[`
168
168
  h${n}&,
169
169
  div&-h${n},
170
170
  div&-h${n} > textarea,
171
171
  h${n}
172
- `]=Om(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},Im=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Nc(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Pm=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:co[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}}),Mm=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 - ${Oe(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"}}}},km=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Am=()=>({"\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"}}),Nm=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"}},_m(e)),{[`
172
+ `]=Om(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),r},Im=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},Nc(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Pm=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:co[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}}),Mm=e=>{const{componentCls:t,paddingSM:r}=e,n=r;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(n).div(-2).add(1).equal(),marginBottom:e.calc(n).div(2).sub(2).equal()},[`${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"}}}},km=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),Am=()=>({"\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"}}),Nm=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"}},_m(e)),{[`
173
173
  & + h1${t},
174
174
  & + h2${t},
175
175
  & + h3${t},
@@ -180,4 +180,4 @@ html body {
180
180
  ${t}-collapse,
181
181
  ${t}-edit,
182
182
  ${t}-copy
183
- `]:Object.assign(Object.assign({},Nc(e)),{marginInlineStart:e.marginXXS})}),Mm(e)),km(e)),Am()),{"&-rtl":{direction:"rtl"}})}},Dm=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Ou=Rn("Typography",Nm,Dm),Bm=e=>{const{prefixCls:t,"aria-label":r,className:n,style:o,direction:i,maxLength:a,autoSize:l=!0,value:c,onSave:u,onCancel:f,onEnd:d,component:g,enterIcon:C=h.createElement(hu,null)}=e,b=h.useRef(null),w=h.useRef(!1),p=h.useRef(null),[S,m]=h.useState(c);h.useEffect(()=>{m(c)},[c]),h.useEffect(()=>{var F;if(!((F=b.current)===null||F===void 0)&&F.resizableTextArea){const{textArea:P}=b.current.resizableTextArea;P.focus();const{length:M}=P.value;P.setSelectionRange(M,M)}},[]);const O=({target:F})=>{m(F.value.replace(/[\n\r]/g,""))},T=()=>{w.current=!0},j=()=>{w.current=!1},x=({keyCode:F})=>{w.current||(p.current=F)},R=()=>{u(S.trim())},$=({keyCode:F,ctrlKey:P,altKey:M,metaKey:Y,shiftKey:W})=>{p.current!==F||w.current||P||M||Y||W||(F===al.ENTER?(R(),d?.()):F===al.ESC&&f())},L=()=>{R()},[B,q,I]=Ou(t),N=he(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${g}`]:!!g},n,q,I);return B(h.createElement("div",{className:N,style:o},h.createElement(Tm,{ref:b,maxLength:a,value:S,onChange:O,onKeyDown:x,onKeyUp:$,onCompositionStart:T,onCompositionEnd:j,onBlur:L,"aria-label":r,rows:1,autoSize:l}),C!==null?uu(C,{className:`${t}-edit-content-confirm`}):null))};var bi,hl;function zm(){return hl||(hl=1,bi=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()}}),bi}var yi,gl;function Lm(){if(gl)return yi;gl=1;var e=zm(),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,u,f,d,g,C=!1;a||(a={}),l=a.debug||!1;try{u=e(),f=document.createRange(),d=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(w){if(w.stopPropagation(),a.format)if(w.preventDefault(),typeof w.clipboardData>"u"){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=t[a.format]||t.default;window.clipboardData.setData(p,i)}else w.clipboardData.clearData(),w.clipboardData.setData(a.format,i);a.onCopy&&(w.preventDefault(),a.onCopy(w.clipboardData))}),document.body.appendChild(g),f.selectNodeContents(g),d.addRange(f);var b=document.execCommand("copy");if(!b)throw new Error("copy command was unsuccessful");C=!0}catch(w){l&&console.error("unable to copy using execCommand: ",w),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",i),a.onCopy&&a.onCopy(window.clipboardData),C=!0}catch(p){l&&console.error("unable to copy using clipboardData: ",p),l&&console.error("falling back to prompt"),c=n("message"in a?a.message:r),window.prompt(c,i)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(f):d.removeAllRanges()),g&&document.body.removeChild(g),u()}return C}return yi=o,yi}var Fm=Lm();const Hm=bo(Fm),Vm=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];var Wm=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{u(n.next(f))}catch(d){a(d)}}function c(f){try{u(n.throw(f))}catch(d){a(d)}}function u(f){f.done?i(f.value):o(f.value).then(l,c)}u((n=n.apply(e,t||[])).next())})};const qm=({copyConfig:e,children:t})=>{const[r,n]=h.useState(!1),[o,i]=h.useState(!1),a=h.useRef(null),l=()=>{a.current&&clearTimeout(a.current)},c={};e.format&&(c.format=e.format),h.useEffect(()=>l,[]);const u=ft(f=>Wm(void 0,void 0,void 0,function*(){var d;f?.preventDefault(),f?.stopPropagation(),i(!0);try{const g=typeof e.text=="function"?yield e.text():e.text;Hm(g||Vm(t,!0).join("")||"",c),i(!1),n(!0),l(),a.current=setTimeout(()=>{n(!1)},3e3),(d=e.onCopy)===null||d===void 0||d.call(e,f)}catch(g){throw i(!1),g}}));return{copied:r,copyLoading:o,onClick:u}};function xi(e,t){return h.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const Um=e=>{const t=v.useRef(void 0);return v.useEffect(()=>{t.current=e}),t.current},Km=(e,t,r)=>v.useMemo(()=>e===!0?{title:t??r}:v.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??r},e):{title:e},[e,t,r]);var Gm=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 _u=h.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:o,rootClassName:i,setContentRef:a,children:l,direction:c,style:u}=e,f=Gm(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:d,direction:g,className:C,style:b}=To("typography"),w=c??g,p=a?xn(t,a):t,S=d("typography",r);process.env.NODE_ENV!=="production"&&kt("Typography").deprecated(!a,"setContentRef","ref");const[m,O,T]=Ou(S),j=he(S,C,{[`${S}-rtl`]:w==="rtl"},o,i,O,T),x=Object.assign(Object.assign({},b),u);return m(h.createElement(n,Object.assign({className:j,style:x,ref:p},f),l))});process.env.NODE_ENV!=="production"&&(_u.displayName="Typography");var Ym={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"},Xm=function(t,r){return h.createElement(qt,Ze({},t,{ref:r,icon:Ym}))},Iu=h.forwardRef(Xm);process.env.NODE_ENV!=="production"&&(Iu.displayName="CheckOutlined");var Qm={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"},Zm=function(t,r){return h.createElement(qt,Ze({},t,{ref:r,icon:Qm}))},Pu=h.forwardRef(Zm);process.env.NODE_ENV!=="production"&&(Pu.displayName="CopyOutlined");var Jm={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"},ev=function(t,r){return h.createElement(qt,Ze({},t,{ref:r,icon:Jm}))},Mu=h.forwardRef(ev);process.env.NODE_ENV!=="production"&&(Mu.displayName="LoadingOutlined");function pl(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Ci(e,t,r){return e===!0||e===void 0?t:e||r&&t}function tv(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 Ia=e=>["string","number"].includes(typeof e),rv=({prefixCls:e,copied:t,locale:r,iconOnly:n,tooltips:o,icon:i,tabIndex:a,onCopy:l,loading:c})=>{const u=pl(o),f=pl(i),{copied:d,copy:g}=r??{},C=t?d:g,b=Ci(u[t?1:0],C),w=typeof b=="string"?b:C;return h.createElement($n,{title:b,getPopupContainer:p=>p.parentNode},h.createElement("button",{type:"button",className:he(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:n}),onClick:l,"aria-label":w,tabIndex:a},t?Ci(f[1],h.createElement(Iu,null),!0):Ci(f[0],c?h.createElement(Mu,null):h.createElement(Pu,null),!0)))},Xn=h.forwardRef(({style:e,children:t},r)=>{const n=h.useRef(null);return h.useImperativeHandle(r,()=>({isExceed:()=>{const o=n.current;return o.scrollHeight>o.clientHeight},getHeight:()=>n.current.clientHeight})),h.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)}),nv=e=>e.reduce((t,r)=>t+(Ia(r)?String(r).length:1),0);function ml(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=Ia(i)?String(i).length:1,c=r+l;if(c>t){const u=t-r;return n.push(String(i).slice(0,u)),n}n.push(i),r=c}return e}const wi=0,Si=1,Ei=2,Ri=3,vl=4,Qn={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function ov(e){const{enableMeasure:t,width:r,text:n,children:o,rows:i,expanded:a,miscDeps:l,onEllipsis:c}=e,u=h.useMemo(()=>un(n),[n]),f=h.useMemo(()=>nv(u),[n]),d=h.useMemo(()=>o(u,!1),[n]),[g,C]=h.useState(null),b=h.useRef(null),w=h.useRef(null),p=h.useRef(null),S=h.useRef(null),m=h.useRef(null),[O,T]=h.useState(!1),[j,x]=h.useState(wi),[R,$]=h.useState(0),[L,B]=h.useState(null);Le(()=>{x(t&&r&&f?Si:wi)},[r,n,i,t,u]),Le(()=>{var F,P,M,Y;if(j===Si){x(Ei);const W=w.current&&getComputedStyle(w.current).whiteSpace;B(W)}else if(j===Ei){const W=!!(!((F=p.current)===null||F===void 0)&&F.isExceed());x(W?Ri:vl),C(W?[0,f]:null),T(W);const H=((P=p.current)===null||P===void 0?void 0:P.getHeight())||0,X=i===1?0:((M=S.current)===null||M===void 0?void 0:M.getHeight())||0,J=((Y=m.current)===null||Y===void 0?void 0:Y.getHeight())||0,K=Math.max(H,X+J);$(K+1),c(W)}},[j]);const q=g?Math.ceil((g[0]+g[1])/2):0;Le(()=>{var F;const[P,M]=g||[0,0];if(P!==M){const W=(((F=b.current)===null||F===void 0?void 0:F.getHeight())||0)>R;let H=q;M-P===1&&(H=W?P:M),C(W?[P,H]:[H,M])}},[g,q]);const I=h.useMemo(()=>{if(!t)return o(u,!1);if(j!==Ri||!g||g[0]!==g[1]){const F=o(u,!1);return[vl,wi].includes(j)?F:h.createElement("span",{style:Object.assign(Object.assign({},Qn),{WebkitLineClamp:i})},F)}return o(a?u:ml(u,g[0]),O)},[a,j,g,u].concat(rt(l))),N={width:r,margin:0,padding:0,whiteSpace:L==="nowrap"?"normal":"inherit"};return h.createElement(h.Fragment,null,I,j===Ei&&h.createElement(h.Fragment,null,h.createElement(Xn,{style:Object.assign(Object.assign(Object.assign({},N),Qn),{WebkitLineClamp:i}),ref:p},d),h.createElement(Xn,{style:Object.assign(Object.assign(Object.assign({},N),Qn),{WebkitLineClamp:i-1}),ref:S},d),h.createElement(Xn,{style:Object.assign(Object.assign(Object.assign({},N),Qn),{WebkitLineClamp:1}),ref:m},o([],!0))),j===Ri&&g&&g[0]!==g[1]&&h.createElement(Xn,{style:Object.assign(Object.assign({},N),{top:400}),ref:b},o(ml(u,q),!0)),j===Si&&h.createElement("span",{style:{whiteSpace:"inherit"},ref:w}))}const ku=({enableEllipsis:e,isEllipsis:t,children:r,tooltipProps:n})=>!n?.title||!e?r:h.createElement($n,Object.assign({open:t?void 0:!1},n),r);process.env.NODE_ENV!=="production"&&(ku.displayName="EllipsisTooltip");var iv=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 av({mark:e,code:t,underline:r,delete:n,strong:o,keyboard:i,italic:a},l){let c=l;function u(f,d){d&&(c=h.createElement(f,{},c))}return u("strong",o),u("u",r),u("del",n),u("code",t),u("mark",e),u("kbd",i),u("i",a),c}const sv="...",bl=["delete","mark","code","underline","strong","keyboard","italic"],lv=h.forwardRef((e,t)=>{var r;const{prefixCls:n,className:o,style:i,type:a,disabled:l,children:c,ellipsis:u,editable:f,copyable:d,component:g,title:C}=e,b=iv(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:w,direction:p}=h.useContext(Vt),[S]=rg("Text"),m=h.useRef(null),O=h.useRef(null),T=w("typography",n),j=oc(b,bl),[x,R]=xi(f),[$,L]=$r(!1,{value:R.editing}),{triggerType:B=["icon"]}=R,q=le=>{var de;le&&((de=R.onStart)===null||de===void 0||de.call(R)),L(le)},I=Um($);Le(()=>{var le;!$&&I&&((le=O.current)===null||le===void 0||le.focus())},[$]);const N=le=>{le?.preventDefault(),q(!0)},F=le=>{var de;(de=R.onChange)===null||de===void 0||de.call(R,le),q(!1)},P=()=>{var le;(le=R.onCancel)===null||le===void 0||le.call(R),q(!1)},[M,Y]=xi(d),{copied:W,copyLoading:H,onClick:X}=qm({copyConfig:Y,children:c}),[J,K]=h.useState(!1),[te,se]=h.useState(!1),[ge,ce]=h.useState(!1),[ve,E]=h.useState(!1),[k,z]=h.useState(!0),[D,A]=xi(u,{expandable:!1,symbol:le=>le?S?.collapse:S?.expand}),[G,_]=$r(A.defaultExpanded||!1,{value:A.expanded}),V=D&&(!G||A.expandable==="collapsible"),{rows:U=1}=A,Z=h.useMemo(()=>V&&(A.suffix!==void 0||A.onEllipsis||A.expandable||x||M),[V,A,x,M]);Le(()=>{D&&!Z&&(K(ms("webkitLineClamp")),se(ms("textOverflow")))},[Z,D]);const[ne,oe]=h.useState(V),ye=h.useMemo(()=>Z?!1:U===1?te:J,[Z,te,J]);Le(()=>{oe(ye&&V)},[ye,V]);const be=V&&(ne?ve:ge),we=V&&U===1&&ne,ue=V&&U>1&&ne,ie=(le,de)=>{var We;_(de.expanded),(We=A.onExpand)===null||We===void 0||We.call(A,le,de)},[xe,Ee]=h.useState(0),Ye=({offsetWidth:le})=>{Ee(le)},Me=le=>{var de;ce(le),ge!==le&&((de=A.onEllipsis)===null||de===void 0||de.call(A,le))};h.useEffect(()=>{const le=m.current;if(D&&ne&&le){const de=tv(le);ve!==de&&E(de)}},[D,ne,c,ue,k,xe]),h.useEffect(()=>{const le=m.current;if(typeof IntersectionObserver>"u"||!le||!ne||!V)return;const de=new IntersectionObserver(()=>{z(!!le.offsetParent)});return de.observe(le),()=>{de.disconnect()}},[ne,V]);const ke=Km(A.tooltip,R.text,c),Ce=h.useMemo(()=>{if(!(!D||ne))return[R.text,c,C,ke.title].find(Ia)},[D,ne,C,ke.title,be]);if($)return h.createElement(Bm,{value:(r=R.text)!==null&&r!==void 0?r:typeof c=="string"?c:"",onSave:F,onCancel:P,onEnd:R.onEnd,prefixCls:T,className:o,style:i,direction:p,component:g,maxLength:R.maxLength,autoSize:R.autoSize,enterIcon:R.enterIcon});const Ae=()=>{const{expandable:le,symbol:de}=A;return le?h.createElement("button",{type:"button",key:"expand",className:`${T}-${G?"collapse":"expand"}`,onClick:We=>ie(We,{expanded:!G}),"aria-label":G?S.collapse:S?.expand},typeof de=="function"?de(G):de):null},ze=()=>{if(!x)return;const{icon:le,tooltip:de,tabIndex:We}=R,At=un(de)[0]||S?.edit,rr=typeof At=="string"?At:"";return B.includes("icon")?h.createElement($n,{key:"edit",title:de===!1?"":At},h.createElement("button",{type:"button",ref:O,className:`${T}-edit`,onClick:N,"aria-label":rr,tabIndex:We},le||h.createElement(Ul,{role:"button"}))):null},_e=()=>M?h.createElement(rv,Object.assign({key:"copy"},Y,{prefixCls:T,copied:W,locale:S,onCopy:X,loading:H,iconOnly:c==null})):null,me=le=>[le&&Ae(),ze(),_e()],Ne=le=>[le&&!G&&h.createElement("span",{"aria-hidden":!0,key:"ellipsis"},sv),A.suffix,me(le)];return h.createElement(Ar,{onResize:Ye,disabled:!V},le=>h.createElement(ku,{tooltipProps:ke,enableEllipsis:V,isEllipsis:be},h.createElement(_u,Object.assign({className:he({[`${T}-${a}`]:a,[`${T}-disabled`]:l,[`${T}-ellipsis`]:D,[`${T}-ellipsis-single-line`]:we,[`${T}-ellipsis-multiple-line`]:ue},o),prefixCls:n,style:Object.assign(Object.assign({},i),{WebkitLineClamp:ue?U:void 0}),component:g,ref:xn(le,m,t),direction:p,onClick:B.includes("text")?N:void 0,"aria-label":Ce?.toString(),title:C},j),h.createElement(ov,{enableMeasure:V&&!ne,text:c,rows:U,width:xe,onEllipsis:Me,expanded:G,miscDeps:[W,G,H,x,M,S].concat(rt(bl.map(de=>e[de])))},(de,We)=>av(e,h.createElement(h.Fragment,null,de.length>0&&We&&!G&&Ce?h.createElement("span",{key:"show-content","aria-hidden":!0},de):de,Ne(We)))))))}),cv=h.forwardRef((e,t)=>h.createElement(lv,Object.assign({ref:t},e,{component:"div"}))),yl=(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}},uv=({title:e="팝업",width:t=800,height:r=600,minWidth:n=400,minHeight:o=300,onClose:i,children:a,footer:l,showMask:c=!0,maskStyle:u={backgroundColor:"rgba(0,0,0,0.3)"},buttons:f=[]})=>{const[d,g]=v.useState(t),[C,b]=v.useState(r),w=v.useRef(null),{loading:p}=ct.usePopupLoadingStore(),S=v.useMemo(()=>{const $=Math.max(0,(window.innerWidth-t)/2),L=Math.max(0,(window.innerHeight-r)/2);return{x:$,y:L}},[t,r]),[m,O]=v.useState(S),T=($,L)=>{const B=yl({x:L.x,y:L.y},{width:d,height:C});O(B)},j=($,L,B,q,I)=>{const N={width:parseInt(B.style.width,10),height:parseInt(B.style.height,10)},F=yl(I,N);g(N.width),b(N.height),O(F)},x=()=>w.current??document.body,R=[...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,...u,zIndex:0}}),s.jsxs(wl.Rnd,{className:"bwg-draggable",size:{width:d,height:C},position:m,bounds:"window",minWidth:n,minHeight:o,onDragStop:T,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(ca,{getPopupContainer:x,children:s.jsx(dr,{type:"vertical",children:s.jsxs(y.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:R.map($=>s.jsx(y.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,p&&s.jsx(Sl.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:w,className:"bwg-popup-portal-root",style:{position:"relative"}})]})]})},{TextArea:dv}=y.Input,Zn=[{label:"요청",value:"RQST"},{label:"문의",value:"INQR"}],fv={INQR:"blue",RQST:"green",RPRT:"red",SGSN:"purple"},xl=[{label:"대기",value:"READY"},{label:"담당자 지정",value:"ASSIGNED"},{label:"처리중",value:"PROCESSING"},{label:"처리완료",value:"COMPLETED"},{label:"반려",value:"REJECTED"}],hv={READY:"gray",ASSIGNED:"blue",PROCESSING:"yellow",COMPLETED:"green",REJECTED:"red"},Cl={READY:0,ASSIGNED:25,PROCESSING:50,COMPLETED:100,REJECTED:100},gv=({open:e,onClose:t})=>{const{searchBoxRef:r}=Mr.useSearchBox(),n=v.useRef(null),o=v.useRef(null),{user:i}=ct.useUserStore(),{activeMenuItem:a}=ct.useMenuViewStore(),[l]=y.Form.useForm(),[c,u]=v.useState(!1),[f,d]=v.useState(!1),[g,C]=v.useState(!1),[b,w]=v.useState(!1),[p,S]=v.useState(!1),[m,O]=v.useState("list");v.useState(null);const T=v.useRef(null),[j,x]=v.useState([]),[R,$]=v.useState(""),[L,B]=v.useState(!1),[q,I]=v.useState(15),N=v.useRef(null),F=v.useMemo(()=>Jn((_,V,U,Z,ne)=>{const oe=_.getValue(V.index?.itemIndex,"type");ne.render(s.jsx(y.Tag,{color:fv[oe],children:Zn.find(ye=>ye.value===oe)?.label}))}),[]),P=v.useMemo(()=>Jn((_,V,U,Z,ne)=>{const oe=_.getValue(V.index?.itemIndex,"status");ne.render(s.jsx(y.Tag,{color:hv[oe],children:xl.find(ye=>ye.value===oe)?.label}))}),[]),M=v.useMemo(()=>Jn((_,V,U,Z,ne)=>{_.getValue(V.index?.itemIndex,"urgentYn")==="Y"?ne.render(s.jsx(pe.AlertTwoTone,{twoToneColor:"red"})):ne.render(s.jsx(s.Fragment,{}))}),[]),Y=[{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:Ve.realFormat.maskYmd},{fieldName:"dueDt",header:{text:"마감요청일자"},width:120,renderer:Ve.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:Ve.realFormat.maskYmd},{fieldName:"scrnId",header:{text:"화면ID"},width:100,visible:!1},{fieldName:"menuId",header:{text:"메뉴ID"},width:100,visible:!1}],W={onCellDblClicked:(_,V)=>{const U=V.itemIndex??-1;if(U<0)return;const Z=_.getValues(U);console.log("🔍 그리드 셀 더블클릭 이벤트:",Z);const ne={...Z,menuId:a?.menuId,menuNm:a?.menuNm,scrnId:a?.scrnId};l.setFieldsValue(ne),C(ne.rgstUserId===i?.userId),w(ne.status==="COMPLETED"||ne.status==="REJECTED"),O("detail")}},H=()=>{l.resetFields(),O("list"),A.SCMBoardMstr0001(1,20)},X=async _=>{u(!0);try{l.validateFields().then(V=>{console.log("문의/신고 제출:",V),m==="new"?A.SCMBoardMstr0003(V):m==="detail"&&A.SCMBoardMstr0004(V)})}catch(V){console.error("문의/신고 제출 실패:",V)}finally{u(!1)}},J=()=>{A.SCMBoardMstr0005()},K=()=>{r?.current?.resetForm(),l.resetFields(),m==="new"?O("list"):(O("list"),t())},te=()=>{r?.current?.resetForm(),l.resetFields(),O("list"),t()},se=()=>{(m==="detail"||m==="new")&&O("list")},ge=()=>{l.resetFields(),O("new")},ce=()=>{console.log("댓글 수동 새로고침"),I(15)},ve=()=>{if(!R.trim()){y.message.warning("댓글 상세내용 작성");return}A.SCMBoardDtls0002(l.getFieldValue("boardMstrId"),R.trim()),$(""),setTimeout(()=>{T.current&&(T.current.scrollTop=T.current.scrollHeight)},100)},E=_=>{const V=j.find(U=>U.id===_);if(V&&V.regUserId!==i?.userId){y.message.error("본인이 작성한 댓글만 삭제할 수 있습니다.");return}A.SCMBoardDtls0003(l.getFieldValue("boardMstrId"),_)};v.useEffect(()=>{e&&setTimeout(()=>{A.SCMBoardMstr0001(1,20)},100)},[e]);const k=()=>s.jsxs(cr,{border:!1,children:[s.jsx(Co,{border:!0,ref:r,reqRows:s.jsxs(s.Fragment,{children:[s.jsx(y.Row,{gutter:[16,8],style:{marginBottom:"8px"},children:s.jsx(y.Col,{span:24,children:s.jsx(Pe.BwgFormItem,{label:"화면 정보",name:void 0,children:s.jsxs(y.Space.Compact,{style:{width:"100%"},children:[s.jsx(y.Form.Item,{name:"menuId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:s.jsx(y.Input,{disabled:!0})}),s.jsx(y.Form.Item,{name:"menuNm",style:{width:"60%",marginBottom:0},children:s.jsx(y.Input,{disabled:!0})})]})})})}),s.jsxs(y.Row,{gutter:[16,8],style:{marginBottom:"8px"},children:[s.jsx(y.Col,{span:6,children:s.jsx(Pe.BwgSelect,{itemProps:{label:"등록구분",name:"type"},selectProps:{options:Zn}})}),s.jsx(y.Col,{span:12,children:s.jsx(Pe.BwgRangePicker,{itemProps:{label:"등록일자",name:"rgstDt"},inputProps:{allowEmpty:!0}})}),s.jsx(y.Col,{span:6,children:s.jsx(Pe.BwgSwitch,{itemProps:{name:"myArticle",label:"내 글만"},inputProps:{format:"YN",onChange:()=>console.log("hello!!")}})})]}),s.jsx(y.Row,{children:s.jsx(y.Col,{span:24,children:s.jsx(Pe.BwgInput,{itemProps:{label:"제목 및 내용",name:"keyword"}})})})]})}),s.jsx(Ol,{ref:N,gridColumns:Y,gridEvents:W,gridOptions:{},renderers:[{name:"tagType",renderer:F},{name:"statusTag",renderer:P},{name:"alert",renderer:M}]}),s.jsx(wo,{ref:n,mode:"server",onServerPageChange:(_,V)=>{console.log("🔄 서버 모드 페이징 변경:",{page:_,size:V}),A.SCMBoardMstr0001(_,V)},pageSizeOptions:[10,20,50,100]})]}),z=()=>s.jsxs(y.Splitter,{children:[s.jsx(y.Splitter.Panel,{defaultSize:"70%",min:"60%",max:"80%",style:{paddingRight:"15px",overflowX:"hidden",overflowY:"hidden"},children:s.jsx(cr,{children:s.jsxs(y.Form,{form:l,onFinish:X,labelCol:{flex:"100px"},disabled:!g||b,children:[s.jsxs(y.Row,{gutter:[16,8],children:[s.jsxs(y.Col,{span:8,children:[s.jsx(y.Form.Item,{name:"boardMstrId",hidden:!0,children:s.jsx(y.Input,{})}),s.jsx(Pe.BwgSelect,{itemProps:{name:"type",label:"구분"},selectProps:{options:Zn}})]}),s.jsxs(y.Col,{span:16,children:[s.jsx(Pe.BwgFormItem,{label:"화면 정보",name:void 0,children:s.jsxs(y.Space.Compact,{children:[s.jsx(y.Form.Item,{name:"menuId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:s.jsx(y.Input,{readOnly:!0})}),s.jsx(y.Form.Item,{name:"menuNm",style:{width:"60%",marginBottom:0},children:s.jsx(y.Input,{readOnly:!0})})]})}),s.jsx(y.Form.Item,{name:"scrnId",style:{width:"100%"},hidden:!0,children:s.jsx(y.Input,{readOnly:!0})})]})]}),s.jsxs(y.Row,{gutter:[16,8],children:[s.jsx(y.Col,{span:8,children:s.jsx(Pe.BwgFormItem,{label:"작성자",name:void 0,children:s.jsxs(y.Space.Compact,{style:{width:"100%"},children:[s.jsx(y.Form.Item,{name:"rgstUserId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:s.jsx(y.Input,{readOnly:!0})}),s.jsx(y.Form.Item,{name:"rgstUserNm",style:{width:"60%",marginBottom:0},children:s.jsx(y.Input,{readOnly:!0})})]})})}),s.jsx(y.Col,{span:8,children:s.jsx(Pe.BwgDatePicker,{itemProps:{label:"작성일자",name:"rgstDt"},inputProps:{disabled:!0}})}),s.jsx(y.Col,{span:8,children:s.jsx(Pe.BwgSelect,{itemProps:{name:"status",label:"상태"},selectProps:{options:xl,disabled:!0}})})]}),s.jsxs(y.Row,{gutter:[16,8],children:[s.jsx(y.Col,{span:8,children:s.jsx(Pe.BwgDatePicker,{itemProps:{label:"마감요청일",name:"dueDate"}})}),s.jsx(y.Col,{span:8,children:s.jsxs(y.Flex,{vertical:!0,gap:2,children:[s.jsx("span",{style:{fontSize:"12px",color:"#000000E0"},children:"진척률"}),s.jsx(y.Progress,{percent:Cl[l.getFieldValue("status")],status:Cl[l.getFieldValue("status")]>0?"active":"normal",size:"small",format:_=>`${_}%`})]})}),s.jsx(y.Col,{span:8,children:s.jsx(Pe.BwgCheck,{itemProps:{name:"urgentYn",label:"긴급여부"}})})]}),s.jsxs(y.Row,{gutter:[16,8],children:[s.jsx(y.Col,{span:8,children:s.jsx(Pe.BwgFormItem,{label:"처리담당자",name:void 0,help:"",children:s.jsxs(y.Space.Compact,{children:[s.jsx(y.Form.Item,{name:"processor",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:s.jsx(y.Input,{readOnly:!0})}),s.jsx(y.Form.Item,{name:"processorNm",style:{width:"60%",marginBottom:0},children:s.jsx(y.Input,{readOnly:!0})})]})})}),s.jsx(y.Col,{span:8,children:s.jsx(Pe.BwgDatePicker,{itemProps:{label:"처리일자",name:"processDt"}})})]}),s.jsx(y.Row,{gutter:[16,8],children:s.jsx(y.Col,{span:24,children:s.jsx(Pe.BwgFormItem,{label:"제목",name:"title",style:{width:"100%"},children:s.jsx(y.Input,{})})})}),s.jsx(Ti,{border:!1,itemProps:{name:"content",label:"내용",rules:[{required:!0,message:"내용을 입력하세요."}]},editorProps:{isEditing:g&&!b,title:{title:"에디터"}}})]})})}),s.jsx(y.Splitter.Panel,{collapsible:!0,style:{paddingLeft:"15px"},children:s.jsxs(cr,{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(y.Button,{type:"text",icon:s.jsx(pe.ReloadOutlined,{spin:L||p}),onClick:ce,disabled:L||p,size:"small",style:{fontSize:"12px",color:b?"#d9d9d9":p?"#8c8c8c":"#595959",height:"24px",padding:"0 8px"}}),!b&&s.jsx("span",{style:{position:"absolute",top:"-4px",right:"-4px",fontSize:"10px",fontWeight:"700",color:L?"#8c8c8c":"#1890ff",minWidth:"14px",height:"14px",lineHeight:"14px",textAlign:"center",borderRadius:"50%",pointerEvents:"none"},children:q})]})]}),s.jsx("div",{ref:T,style:{flex:1,overflowY:"auto",marginBottom:"16px",minHeight:0,position:"relative"},children:p?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(pe.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(y.List,{dataSource:j,renderItem:_=>s.jsxs(y.List.Item,{style:{position:"relative",paddingRight:"20px",padding:"12px 20px 12px 12px",borderBottom:"1px solid #f0f0f0"},children:[s.jsx(y.List.Item.Meta,{avatar:s.jsx(y.Avatar,{size:32,style:{backgroundColor:"#1890ff",fontSize:"13px"},children:_.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:_.author}),s.jsx("span",{style:{fontSize:"11px",color:"#8c8c8c"},children:_.regDt})]}),description:s.jsx("span",{style:{fontSize:"13px",color:"#595959",lineHeight:"1.5"},children:_.content})}),_.regUserId===i?.userId&&s.jsx(y.Button,{type:"text",danger:!0,icon:s.jsx(pe.DeleteOutlined,{style:{fontSize:"12px"}}),size:"small",onClick:()=>E(_.id),disabled:p,style:{position:"absolute",right:"8px",top:"62%",transform:"translateY(-50%)",opacity:p?.3:.5,height:"24px",width:"24px",padding:0},onMouseEnter:V=>{p||(V.currentTarget.style.opacity="1")},onMouseLeave:V=>{V.currentTarget.style.opacity=p?"0.3":"0.5"}})]},_.id)})}),s.jsx("div",{style:{padding:"12px",borderTop:"1px solid #e8e8e8",backgroundColor:b?"#f5f5f5":"#fafafa",flexShrink:0,marginTop:"auto"},children:b?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(pe.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(dv,{rows:2,placeholder:p?"댓글 처리 중...":"댓글을 입력하세요...",value:R,onChange:_=>$(_.target.value),maxLength:300,disabled:p,style:{borderRadius:"6px",border:"1px solid #d9d9d9",resize:"none",fontSize:"13px",backgroundColor:p?"#f5f5f5":"#ffffff",color:p?"#8c8c8c":"#000000"},onFocus:_=>{p||(_.target.style.borderColor="#1890ff",_.target.style.boxShadow="0 0 0 2px rgba(24, 144, 255, 0.05)")},onBlur:_=>{_.target.style.borderColor="#d9d9d9",_.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:p?"처리 중...":`${R.length} / 300자`}),s.jsx(y.Button,{type:"primary",onClick:ve,size:"small",loading:p,style:{borderRadius:"4px",fontSize:"12px",height:"28px",padding:"0 16px",fontWeight:"500"},disabled:!R.trim()||p,children:p?"등록 중...":"등록"})]})]})})]})})]}),D=()=>s.jsx(cr,{children:s.jsxs(Pe.BwgForm,{form:l,onFinish:X,initialValues:{type:"INQR"},labelCol:{flex:"100px"},children:[s.jsxs(y.Row,{gutter:[16,8],children:[s.jsx(y.Col,{span:8,children:s.jsx(Pe.BwgSelect,{itemProps:{name:"type",label:"구분",rules:[{required:!0,message:"구분을 선택해주세요."}]},selectProps:{options:Zn}})}),s.jsxs(y.Col,{span:16,children:[s.jsx(Pe.BwgFormItem,{label:"화면 정보",name:void 0,children:s.jsxs(y.Space.Compact,{style:{width:"100%"},children:[s.jsx(y.Form.Item,{name:"menuId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:s.jsx(y.Input,{readOnly:!0})}),s.jsx(y.Form.Item,{name:"menuNm",style:{width:"60%",marginBottom:0},children:s.jsx(y.Input,{readOnly:!0})})]})}),s.jsx(y.Form.Item,{name:"scrnId",style:{width:"100%"},hidden:!0,children:s.jsx(y.Input,{readOnly:!0})})]})]}),s.jsxs(y.Row,{gutter:[16,8],children:[s.jsx(y.Col,{span:8,children:s.jsx(Pe.BwgFormItem,{label:"작성자",name:void 0,children:s.jsxs(y.Space.Compact,{style:{width:"100%"},children:[s.jsx(y.Form.Item,{name:"rgstUserId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:s.jsx(y.Input,{readOnly:!0})}),s.jsx(y.Form.Item,{name:"rgstUserNm",style:{width:"60%",marginBottom:0},children:s.jsx(y.Input,{readOnly:!0})})]})})}),s.jsx(y.Col,{span:6,children:s.jsx(Pe.BwgFormItem,{label:"작성일자",name:"rgstDt",style:{width:"100%"},children:s.jsx(y.DatePicker,{disabled:!0})})}),s.jsx(y.Col,{span:6,children:s.jsx(Pe.BwgFormItem,{label:"마감요청일",name:"dueDate",style:{width:"100%"},children:s.jsx(y.DatePicker,{})})}),s.jsx(y.Col,{span:4,children:s.jsx(Pe.BwgCheck,{itemProps:{name:"urgentYn",label:"긴급여부"}})})]}),s.jsx(y.Row,{gutter:[16,8],children:s.jsx(y.Col,{span:24,children:s.jsx(Pe.BwgFormItem,{label:"제목",name:"title",style:{width:"100%"},rules:[{required:!0,message:"제목을 입력해주세요."}],children:s.jsx(y.Input,{})})})}),s.jsx(Ti,{border:!1,itemProps:{name:"content"},editorProps:{isEditing:f,title:{title:s.jsxs(s.Fragment,{children:[s.jsx(pe.EditOutlined,{style:{marginRight:"5px"}})," 상세내용 작성"]}),children:s.jsx(y.Button,{icon:s.jsx(pe.EyeFilled,{}),onClick:()=>d(!f),children:"미리보기"})}}})]})});v.useEffect(()=>{m==="new"&&(d(!0),l.setFieldsValue({type:"INQR",menuId:a?.menuId,menuNm:a?.menuNm,scrnId:a?.scrnId,rgstUserId:i?.userId,rgstUserNm:i?.userNm,rgstDt:qu(),content:""}))},[m,l,a,i]),v.useEffect(()=>{if(m==="detail"&&!b){const _=setInterval(()=>{I(V=>V<=1?(console.log("🔄 댓글 자동 갱신 실행 (카운트다운 완료)"),A.SCMBoardDtls0001(l.getFieldValue("boardMstrId")),15):V-1)},1e3);return A.SCMBoardDtls0001(l.getFieldValue("boardMstrId")),()=>{console.log("🧹 댓글 인터벌 정리"),clearInterval(_)}}else m==="detail"&&b&&(console.log("📋 완료된 게시글 - 댓글 조회만"),A.SCMBoardDtls0001(l.getFieldValue("boardMstrId")))},[m,b,l]),v.useEffect(()=>()=>{console.log("🧹 컴포넌트 언마운트 - 모든 인터벌 정리"),o.current&&(clearInterval(o.current),o.current=null)},[]),v.useEffect(()=>{m==="list"&&a&&(r?.current?.setFormData({menuId:a?.menuId,menuNm:a?.menuNm}),A.SCMBoardMstr0001(1,20))},[m,a]),v.useEffect(()=>{e&&a&&r?.current?.setFormData({menuId:a?.menuId,menuNm:a?.menuNm})},[e,a]);const A={SCMBoardMstr0001:async(_,V)=>{const U=_||n.current?.currentPage||1,Z=V||n.current?.pageSize||20,ne={...r?.current?.getFormData(),pageNum:U,pageCount:Z};console.log("🔍 서버 모드 페이징 요청:",ne);try{const oe=await Ve.callService("SCMBoardMstr0001",ne,{isPopup:!0});if(oe&&oe.pageList){const ye=oe.pageCnt||0;n.current?.setTotalData(ye),N.current?.addAllData(oe.pageList)}else n.current?.setTotalData(0),N.current?.addAllData([]),console.log("📭 서버 모드 페이징 데이터 없음")}catch(oe){console.error("❌ SCMBoardMstr0001 호출 실패:",oe),y.message.error("데이터 조회 중 오류가 발생했습니다.")}},SCMBoardMstr0003:_=>{Ve.callService("SCMBoardMstr0003",{..._,status:"READY"},{isPopup:!0}).then(V=>{console.log("문의/신고 제출 응답:",V),y.message.success("정상 접수되었습니다."),H()}).catch(V=>{console.error("문의/신고 제출 실패:",V),y.message.error("접수 중 오류가 발생했습니다.")})},SCMBoardMstr0004:_=>{Ve.callService("SCMBoardMstr0004",{boardMstrId:l.getFieldValue("boardMstrId"),..._},{isPopup:!0}).then(V=>{console.log("문의/신고 제출 응답:",V),y.message.success("수정이 완료되었습니다."),H()}).catch(V=>{console.error("문의/신고 변경 실패:",V)})},SCMBoardMstr0005:()=>{Ve.callService("SCMBoardMstr0005",{boardMstrId:l.getFieldValue("boardMstrId")},{isPopup:!0}).then(_=>{console.log("문의/신고 삭제 응답:",_),y.message.success("삭제가 완료되었습니다."),H()})},SCMBoardDtls0001:_=>{S(!0),Ve.callService("SCMBoardDtls0001",{boardMstrId:_},{isPopup:!0,showLoading:!1}).then(V=>{if(V&&V.subList){const U=V.subList.map(Z=>({id:Z.seq,author:Z.userNm||Z.regUserId,regUserId:Z.regUserId,content:Z.content,regDt:Z.regDt}));x(U)}else x([])}).catch(V=>{console.error("게시글 댓글 목록 조회 실패:",V),y.message.error("댓글 목록 조회 중 오류가 발생했습니다.")}).finally(()=>{S(!1),I(15)})},SCMBoardDtls0002:(_,V)=>{S(!0),Ve.callService("SCMBoardDtls0002",{boardMstrId:_,content:V},{isPopup:!0,showLoading:!1}).then(U=>{U&&U.result===1?(y.message.success("댓글이 등록되었습니다."),A.SCMBoardDtls0001(_)):y.message.error("댓글 등록에 실패했습니다.")}).catch(U=>{y.message.error("댓글 등록 중 오류가 발생했습니다.")}).finally(()=>{S(!1)})},SCMBoardDtls0003:(_,V)=>{S(!0),Ve.callService("SCMBoardDtls0003",{boardMstrId:_,seq:V},{isPopup:!0,showLoading:!1}).then(U=>{U&&U.result===1?(y.message.success("댓글이 삭제되었습니다."),A.SCMBoardDtls0001(_)):y.message.error("댓글 삭제에 실패했습니다.")}).catch(U=>{y.message.error("댓글 삭제 중 오류가 발생했습니다.")}).finally(()=>{S(!1)})}},G=()=>{switch(m){case"list":return[{key:"REFRESH",text:"조회",type:"default",onClick:()=>A.SCMBoardMstr0001(),disabled:c},{key:"NEW",text:"신규 등록",type:"primary",onClick:ge}];case"detail":return[{key:"BACK",text:"뒤로",type:"default",onClick:se},{key:"EDIT",text:"수정",type:"primary",disabled:!g||b,onClick:()=>l.submit()},{key:"DELETE",text:"삭제",danger:!0,disabled:!g||b,onClick:J}];case"new":return[{key:"SUBMIT",text:"제출",type:"primary",onClick:()=>l.submit(),disabled:c},{key:"CANCEL",text:"취소",type:"default",onClick:K}];default:return[]}};return e?s.jsxs(uv,{title:"게시판",width:1400,height:800,minWidth:600,minHeight:400,onClose:te,buttons:G(),children:[m==="list"&&k(),m==="detail"&&z(),m==="new"&&D()]}):null},Au=(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=Au(o.children,t,o);if(i.node)return i}}return{node:null,ctx:null}},Nu=(e,t)=>{if(!e.children)return!1;for(const r of e.children)if(r.key===t||Nu(r,t))return!0;return!1};function pv({open:e,onClose:t}){const{nodes:r,rootIds:n,addFolder:o,editFolder:i,removeFolder:a,removeMenu:l,moveNode:c}=ct.useFavoriteStore(),u=v.useRef(null),[f,d]=v.useState([]),[g,C]=v.useState([]),[b,w]=v.useState(""),[p,S]=v.useState("ADD"),[m,O]=v.useState(!1),[T,j]=v.useState("");v.useEffect(()=>{e&&C(n)},[e]),v.useEffect(()=>{const $=x(r,n);d($)},[r]),v.useEffect(()=>{m&&T&&(u.current.setFieldValue("prntBkmkId",T),u.current.setFieldValue("prntBkmkNm",r[T]?.bkmkNm??"-")),m&&p==="EDIT"&&(u.current.setFieldValue("bkmkId",T),u.current.setFieldValue("bkmkNm",r[T]?.bkmkNm)),!m&&p=="ADD"&&C($=>[...$,T]),!m&&u.current&&(j("-"),u.current.resetFields())},[m,p,T,r]);const x=($,L)=>{const B=(q,I="-")=>{const N=$[q];if(!N)return null;const F={key:N.bkmkId,type:N.type,title:N.type==="F"?N.bkmkNm:N.menuNm?`${N.menuNm} (${N.menuId})`:N.menuId,parentId:I,sortOrdr:N.sortOrdr??0};if(N.type==="F"){const M=(N.children??[]).map(Y=>B(Y,N.bkmkId)).filter(Boolean);return{...F,children:M}}return F};return L.map(q=>B(q,"-")).filter(Boolean)},R=()=>{if(S("ADD"),!b){j("-"),O(!0);return}const $=r[b];if(!$){j("-"),O(!0);return}$.type==="F"?j($.bkmkId):j($.prntBkmkId),O(!0)};return s.jsxs(y.ConfigProvider,{theme:{components:{Modal:{wireframe:!0}}},children:[s.jsxs(y.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(y.Typography.Text,{strong:!0,style:{fontSize:18},children:[s.jsx(pe.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(y.Button,{color:"blue",variant:"outlined",icon:s.jsx(pe.FolderAddOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:R,children:"새 폴더"}),s.jsxs("div",{children:[s.jsx(y.Tooltip,{title:"펼치기",children:s.jsx(y.Button,{icon:s.jsx(pe.PlusSquareOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:()=>{const $=Object.values(r).filter(L=>L.type==="F").map(L=>L.bkmkId);C($)}})}),s.jsx(y.Tooltip,{title:"접기",children:s.jsx(y.Button,{icon:s.jsx(pe.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(y.Empty,{description:s.jsxs(y.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",s.jsx("br",{}),"새로운 폴더를 생성해보세요."]})}),s.jsx(y.Tree,{blockNode:!0,draggable:!0,allowDrop:({dropNode:$,dropPosition:L})=>{const B=$.type==="F";return L===0?B:!0},onDrop:$=>{const{dragNode:L,node:B,dropPosition:q,dropToGap:I}=$;if(L.key===B.key||Nu(L,B.key))return;let N,F;if(I){const M=Au(f,B.key).ctx,Y=M.index;N=M.parent?M.parent.key:"-",F=q>0?Y+1:Y}else{if(B.type!=="F")return;const M=B.children||[];N=B.key,F=M.length}const P=Ve.getUserId();if(L.type==="F")c({bkmkId:L.key,newPrntBkmkId:N,sortOrdr:F,userId:P}).catch(()=>{y.Modal.error({title:"이동 실패",content:"폴더 이동 중 오류가 발생했어요."})});else{if(N==="-"){y.Modal.warning({title:"이동 불가",content:"메뉴는 최상위로 이동할 수 없어요."});return}c({bkmkId:L.key,newPrntBkmkId:N,sortOrdr:F,userId:P}).catch(()=>{y.Modal.error({title:"이동 실패",content:"메뉴 이동 중 오류가 발생했어요."})})}I===!1&&C(M=>Array.from(new Set([...M,B.key])))},showLine:!0,treeData:f,selectedKeys:[b],expandedKeys:g,onExpand:C,onSelect:$=>w($[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(y.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(pe.PlusOutlined,{style:{opacity:.8},onClick:()=>{S("ADD"),j($.key),O(!0)}}),s.jsx(pe.EditOutlined,{style:{opacity:.8},onClick:()=>{S("EDIT"),j($.key),O(!0)}})]}),s.jsx(pe.DeleteOutlined,{style:{cursor:"pointer",opacity:.5},onClick:()=>{$.type==="F"?y.Modal.confirm({title:"삭제 안내",content:"폴더를 삭제하면 하위 폴더와 메뉴도 모두 삭제됩니다. 삭제하시겠습니까?",centered:!0,onOk:()=>a($.key)}):y.Modal.confirm({title:"삭제 안내",centered:!0,content:"메뉴를 삭제하시겠습니까?",onOk:()=>l($.key)})}})]})]})})]})]}),s.jsx(y.ConfigProvider,{theme:{components:{Modal:{titleColor:p==="ADD"?"#0958d9":"#d46b08",headerBg:p==="ADD"?"#e6f4ff":"#fff7e6"}}},children:s.jsx(y.Modal,{title:s.jsxs(s.Fragment,{children:[p==="ADD"?s.jsx(pe.FolderAddOutlined,{style:{marginRight:10,fontSize:18,color:"#1677ff"}}):s.jsx(pe.EditOutlined,{style:{marginRight:10,fontSize:18,color:"#d46b08"}}),s.jsxs(y.Typography.Text,{strong:!0,style:{fontSize:17},children:["폴더",p==="ADD"?" 추가":"명 수정"]})]}),open:m,okText:"저장",onOk:()=>{const $=u.current.getFieldValue("bkmkNm"),L=Ve.getUserId();if(p==="ADD"){const B=__SYS_CD__??"KH",q=u.current.getFieldValue("prntBkmkId");o($,q,B,L).then(()=>{O(!1)})}else{const B=u.current.getFieldValue("bkmkId");i(B,L,$).then(()=>{O(!1)})}},centered:!0,width:400,onCancel:()=>O(!1),children:s.jsxs(Pe.BwgForm,{ref:u,children:[s.jsx(Pe.BwgInput,{itemProps:{name:p==="EDIT"?"bkmkId":"prntBkmkId",hidden:!0}}),s.jsx(Pe.BwgInput,{itemProps:{label:"상위 폴더명",name:"prntBkmkNm",hidden:T==="-"||p==="EDIT"},inputProps:{disabled:!0}}),s.jsx(Pe.BwgInput,{itemProps:{label:"폴더명",name:"bkmkNm"}})]})})})]})}function mv({triggerIcon:e}){const[t,r]=v.useState(!1),[n,o]=v.useState(""),[i,a]=v.useState(null),[l,c]=v.useState([]),[u,f]=v.useState([]),[d,g]=v.useState(!1),[C,b]=v.useState(!1),[w,p]=v.useState(!1),[S,m]=v.useState(null);ct.useFavoriteStore(H=>H.treeNodes);const{nodes:O,getPrntBkmkIdByMenuId:T,getNodeByMenuId:j,isMenuBookmarked:x,removeMenuByMenuId:R,addMenuToFolder:$,convertToAntTreeData:L}=ct.useFavoriteStore(),B=ct.useFavoriteStore(H=>H.rootIds),q=v.useMemo(()=>L(O,B,n,!0),[O,B,n]),I=ct.useMenuViewStore(H=>H.activeMenuItem??{menuId:"",menuNm:""}),N=v.useMemo(()=>{if(!I?.menuId)return"";const H=j(I.menuId);if(!H)return"";if(H.fullPath)return H.fullPath;const X=J=>{const K=O[J];if(!K)return"";if(K.prntBkmkId==="-")return`${K.bkmkNm||I?.menuNm}`;const te=X(K.prntBkmkId);return te?`${te} > ${K.bkmkNm||I?.menuNm}`:K.bkmkNm||I?.menuNm};return console.log("bookmarkNode ::::: ",H),console.log(X(H.bkmkId)),X(H.bkmkId)},[I?.menuId,j,O]);v.useEffect(()=>{t&&I?.menuId&&x(I.menuId)?f([T(I.menuId)]):t&&I?.menuId&&!x(I.menuId)?f(B):(f([]),c([]),m(null),p(!1))},[t,I?.menuId,x,T]),v.useEffect(()=>{if(!w||!I?.menuId)return;const H=T(I.menuId);!H||!O[H]||(o(""),c([H]),m(H))},[w,I?.menuId,O,T]);const F=(H,X)=>{$(H,X).then(J=>{console.log("AddMenuToFolder ::::: ",J),J||f(K=>K.includes(H)?K:[...K,H])})},P=H=>{R(H)},M=async H=>{I?.menuId&&(await R(I.menuId),await $(H,I),p(!1),m(null),f(X=>X.includes(H)?X:[...X,H]))},Y=()=>s.jsxs("div",{style:{width:360},children:[s.jsx("div",{style:{padding:12,borderBottom:"1px solid #f0f0f0"},children:s.jsxs(y.Space,{direction:"vertical",style:{width:"100%"},children:[s.jsxs(y.Typography.Text,{strong:!0,style:{fontSize:18},children:[s.jsx(y.Button,{type:"text",icon:s.jsx(pe.ArrowLeftOutlined,{}),onClick:()=>p(!1),style:{marginRight:4}}),"폴더 변경"]}),I&&s.jsxs(y.Typography.Text,{type:"secondary",children:["현재 화면: ",s.jsx("b",{children:I.menuNm})," ",s.jsxs("span",{style:{opacity:.7},children:["(",I.menuId,")"]})]})]})}),W(),s.jsxs("div",{style:{padding:12,borderTop:"1px solid #f0f0f0",display:"flex",justifyContent:"flex-end",gap:8},children:[s.jsx(y.Button,{onClick:()=>{p(!1),m(null)},children:"취소"}),s.jsx(y.Button,{type:"primary",disabled:!S,onClick:()=>S&&M(String(S)),children:"이동"})]})]}),W=()=>s.jsxs("div",{style:{maxHeight:360,overflow:"auto",padding:8},children:[s.jsxs(y.Space,{style:{width:"100%",marginBottom:8,display:"flex",justifyContent:"space-between"},children:[s.jsx(y.Input,{placeholder:"검색(폴더명)",prefix:s.jsx(pe.SearchOutlined,{}),allowClear:!0,value:n,onChange:H=>o(H.target.value),style:{width:"260px",height:28}}),s.jsxs(y.ConfigProvider,{theme:{components:{Button:{defaultHoverColor:"#6f6f6f",defaultHoverBorderColor:"#6f6f6f"}}},children:[s.jsx(y.Button,{icon:s.jsx(pe.PlusOutlined,{}),size:"small",style:{margin:"0 4px",fontSize:12},onClick:()=>{const H=Object.values(O).filter(X=>X.type==="F").map(X=>X.bkmkId);f(H)},title:"모두 확장"}),s.jsx(y.Button,{icon:s.jsx(pe.MinusOutlined,{}),size:"small",style:{margin:"0 4px",fontSize:12},onClick:()=>f([]),title:"모두 축소"})]})]}),q.length===0?s.jsx(y.Empty,{description:s.jsxs(y.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",s.jsx("br",{}),"새로운 폴더를 만들어 시작해보세요."]}),image:y.Empty.PRESENTED_IMAGE_SIMPLE}):s.jsx(y.Tree,{blockNode:!0,showLine:!0,treeData:q,selectedKeys:l,expandedKeys:u,onExpand:f,onSelect:H=>{c(H),m(H[0])},autoExpandParent:!0,titleRender:H=>{const X=String(H.key),J=i===X;return s.jsxs("div",{onMouseEnter:()=>a(X),onMouseLeave:()=>a(null),style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[s.jsx("div",{children:H.title}),!x(I?.menuId)&&I&&J&&s.jsx(y.Button,{size:"small",type:"link",onClick:K=>{K.stopPropagation(),F(X,I)},children:"+ 현재화면 추가"})]})}})]});return s.jsxs(s.Fragment,{children:[s.jsx(y.Popover,{open:t&&!d,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:w?Y():s.jsxs("div",{style:{width:360},children:[s.jsx("div",{style:{padding:12,borderBottom:"1px solid #f0f0f0"},children:s.jsxs(y.Space,{direction:"vertical",style:{width:"100%"},children:[s.jsxs(y.Typography.Text,{strong:!0,style:{fontSize:18},children:["📌 북마크"," ",x(I?.menuId)?"저장됨":"추가"]}),I&&s.jsxs(y.Typography.Text,{type:"secondary",children:["현재 화면: ",s.jsx("b",{children:I.menuNm})," ",s.jsxs("span",{style:{opacity:.7},children:["(",I.menuId,")"]})]})]})}),x(I?.menuId)?s.jsxs("div",{style:{padding:12,margin:8,borderRadius:8,backgroundColor:"#f5f5f5"},children:[s.jsx(y.Typography.Text,{type:"secondary",style:{fontSize:12},children:"저장 위치"}),s.jsx("div",{style:{marginTop:4},children:`📁 > ${N}`||"알 수 없음"})]}):W(),s.jsxs(dr,{style:{padding:8,borderTop:"1px solid #f0f0f0"},layoutAlign:"right",children:[I&&!x(I.menuId)?s.jsx(y.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},type:"primary",icon:s.jsx(pe.PlusOutlined,{}),onClick:()=>{const H=String(l[0]);let X="-";H&&O[H]&&(X=O[H].type=="M"?O[H].prntBkmkId:H),F(X,I)},children:"추가"}):s.jsxs(dr,{layoutAlign:"between",children:[s.jsx(y.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},icon:s.jsx(pe.FolderOpenOutlined,{}),onClick:()=>p(!0),children:"폴더 변경"}),s.jsx(y.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},color:"danger",variant:"solid",icon:s.jsx(pe.MinusOutlined,{}),onClick:()=>P(I.menuId),children:"삭제"})]}),s.jsx(y.Button,{type:"text",style:{height:"28px",padding:"0 10px",margin:"0 4px"},icon:s.jsx(pe.SettingOutlined,{}),onClick:()=>{b(t),g(!0)},children:"관리"})]})]}),children:s.jsx("span",{style:{cursor:"pointer",display:"inline-flex",alignItems:"center"},children:e})}),s.jsx(pv,{open:d,onClose:()=>{g(!1),C&&r(!0)}})]})}const vv=({reqRows:e,subRows:t})=>{const{searchBoxRef:r}=Mr.useSearchBox();return s.jsx(Co,{ref:r,reqRows:e,subRows:t})},bv=({children:e,searchBox:t,title:r,preRenderEvents:n=[],postRenderEvents:o=[],loading:i=!1,error:a=null,grantEvent:l={},customEvent:c={}})=>{const u=Mr.useServiceCodeValue("AUTH_BTNS"),{user:f}=ct.useUserStore(),{activeMenuItem:d}=ct.useMenuViewStore(),{loadFavoritesIfNeeded:g,isMenuBookmarked:C}=ct.useFavoriteStore(),{loading:b}=ct.useLoadingStore(),[w,p]=v.useState({isInitialized:!1,isReady:!1,error:null,loading:!0,preRenderComplete:!1,postRenderComplete:!1});v.useState(null);const[S,m]=v.useState([]),[O,T]=v.useState([]),[j,x]=v.useState(!1),R=async()=>{if(n.length===0){p(P=>({...P,preRenderComplete:!0}));return}try{for(const P of n)await P();p(P=>({...P,preRenderComplete:!0}))}catch(P){p(M=>({...M,error:P instanceof Error?P.message:"사전 렌더링 실패",preRenderComplete:!0}))}},$=async()=>{if(o.length===0){p(P=>({...P,postRenderComplete:!0}));return}try{for(const P of o)await P();p(P=>({...P,postRenderComplete:!0}))}catch(P){p(M=>({...M,error:P instanceof Error?P.message:"사후 렌더링 실패",postRenderComplete:!0}))}};v.useEffect(()=>{if(w.isInitialized)return;(async()=>{try{try{console.log("SCMSIGN00202 권한 서비스 호출 시작");const M=await Ve.callService(u,{crprCd:f?.crprCd,userId:f?.userId,menuId:d?.menuId});if(console.log("SCMSIGN00202 권한 서비스 응답:",M),M?.data&&M.data.length>0){const Y=M.data?.filter(H=>H.grpId?.toUpperCase()==="DEFAULT").map(H=>({id:H.btnId,label:H.btnNm,type:"default",disabled:!1,onClick:l[H.btnId]||void 0}))||[];m(Y);const W=M.data?.filter(H=>H.grpId?.toUpperCase()==="CUSTOM").map(H=>({id:H.btnId,label:H.btnNm,type:"default",disabled:!1,onClick:c[H.btnId]||void 0}))||[];T(W)}else m([]),T([])}catch(M){console.error("SCMSIGN00202 권한 서비스 호출 실패:",M),m([]),T([])}await R(),p(M=>({...M,isInitialized:!0,loading:!1}))}catch(M){console.error("BwgView 초기화 실패:",M),p(Y=>({...Y,isInitialized:!0,loading:!1}))}})()},[]),v.useEffect(()=>{f?.userId&&g(f.userId)},[g,f?.userId]),v.useEffect(()=>{w.isInitialized&&w.preRenderComplete&&!w.isReady&&setTimeout(async()=>{await $(),p(M=>({...M,isReady:!0}))},100)},[w.isInitialized,w.preRenderComplete,w.isReady]),v.useEffect(()=>{a&&p(P=>({...P,error:a}))},[a]);const L=()=>s.jsxs("div",{className:"bwgview-header-container",children:[s.jsxs("div",{className:"bwgview-header",children:[s.jsx("div",{className:"bwgview-header-left",children:F.LEFT}),s.jsx("div",{className:"bwgview-header-right",children:F.RIGHT})]}),t&&s.jsx(vv,{reqRows:t.reqRows,subRows:t.subRows})]});if(v.useEffect(()=>{},[f,d]),w.error||a)return s.jsx("div",{style:{padding:"24px"},children:s.jsx(y.Alert,{message:"오류 발생",description:w.error||a,type:"error",showIcon:!0})});const B=()=>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"})}),q=()=>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"})}),I=P=>s.jsx(pe,{component:B,...P}),N=P=>s.jsx(pe,{component:q,...P}),F={LEFT:s.jsx("div",{className:"bwgview-header-left",children:s.jsxs(y.ConfigProvider,{theme:{components:{Tag:{controlHeight:28,controlHeightLG:28,controlHeightSM:28,controlHeightXS:28}}},children:[s.jsxs(y.Space,{children:[d&&s.jsx(mv,{triggerIcon:C(d.menuId)?s.jsx(I,{className:"bookmark-icon",style:{color:"#faad14"}}):s.jsx(N,{className:"bookmark-icon"})}),s.jsxs(y.Space.Compact,{style:{alignItems:"center"},children:[s.jsx("span",{className:"pageMenuNm",children:(()=>{let P="";return r?.useMenuTitle&&d?P=d.menuNm:r?.text?P=r.text:d&&(P=d.menuPrntId==="CM00"?d.menuNm.substring(d.menuNm.indexOf(" ")+1):d.menuNm),r?.prefix&&(P=`${r.prefix} ${P}`),r?.suffix&&(P=`${P} ${r.suffix}`),P})()}),d?.menuNo&&s.jsx(y.Tag,{className:"page-num-tag",children:d?.menuNo}),s.jsx(y.Tooltip,{title:"도움말",color:"geekblue",children:s.jsx(y.Button,{variant:"text",type:"text",className:"menu-help-btn",icon:s.jsx(pe.QuestionCircleTwoTone,{twoToneColor:"orange"})})}),s.jsx(y.Tooltip,{title:"게시판",color:"geekblue",children:s.jsx(y.Button,{variant:"text",type:"text",onClick:()=>x(!0),icon:s.jsx(pe.BugFilled,{style:{color:"#1890ff"}})})})]})]}),d?.scrnId&&Ve.isLocal&&s.jsx(y.Tag,{style:{marginLeft:8,fontSize:13,fontWeight:500,display:"flex"},children:s.jsx(cv,{copyable:!0,style:{display:"inherit",justifyContent:"center",alignItems:"center",marginBottom:0},children:d?.scrnId})})]})}),RIGHT:s.jsx("div",{className:"bwgview-header-right",children:s.jsx(y.ConfigProvider,{theme:{components:{Space:{padding:8}}},children:s.jsxs(y.Space,{children:[s.jsx(y.Flex,{gap:8,children:O.map(P=>s.jsx(y.Button,{type:P.type,disabled:P.disabled,className:"bwg-btn",onClick:()=>{typeof P.onClick=="function"&&P.onClick()},children:P.label},P.id))}),s.jsx(y.ConfigProvider,{theme:{components:{Divider:{verticalMarginInline:0}}},children:s.jsx(y.Divider,{type:"vertical"})}),s.jsx(y.Flex,{gap:8,className:"permission-buttons",children:S.length>0?S.map(P=>s.jsx(y.Button,{type:P.type,disabled:P.disabled,className:"bwg-btn",onClick:()=>{typeof P.onClick=="function"&&P.onClick()},children:P.label},P.id)):s.jsx(y.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:[L(),s.jsxs("div",{className:"bwgview-content",children:[s.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:e}),(w.loading||i||b)&&s.jsx(Sl.LoadingContainer,{text:b?"처리 중...":"화면 로드 중..."})]}),s.jsx(gv,{open:j,onClose:()=>x(!1)})]})},yv=({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:y.theme.defaultAlgorithm},o={...n,...t,token:{...n.token,...t?.token}};return s.jsx(y.ConfigProvider,{locale:Tl,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})},xv="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",Cv="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",wv="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",Sv=({children:e})=>{const[t,r]=v.useState({x:0,y:0}),[n,o]=v.useState(!1),[i,a]=v.useState({x:0,y:0}),[l,c]=v.useState(!1),[u,f]=v.useState(!0),d=v.useRef(null),g=[{id:"overtime",title:"시간 외 근무신청",icon:s.jsx("img",{src:wv,alt:"시간외근무신청",className:"quick-overtime"}),color:"#722ed1",onClick:()=>{console.log("시간 외 근무 신청 클릭")}},{id:"business-trip",title:"출장신청",icon:s.jsx("img",{src:xv,alt:"출장신청",className:"quick-business-trip"}),color:"#1890ff",onClick:()=>{console.log("출장 신청 클릭")}},{id:"vacation",title:"휴가신청",icon:s.jsx("img",{src:Cv,alt:"휴가신청",className:"quick-holiday"}),color:"#eb2f96",onClick:()=>{console.log("휴가 신청 클릭")}},{id:"document",title:"문서신청",icon:s.jsx(pe.FileTextOutlined,{}),color:"#52c41a",onClick:()=>{console.log("문서 신청 클릭")}},{id:"profile",title:"인사정보",icon:s.jsx(pe.UserOutlined,{}),color:"#fa8c16",onClick:()=>{console.log("인사 정보 클릭")}},{id:"settings",title:"설정",icon:s.jsx(pe.SettingOutlined,{}),color:"#13c2c2",onClick:()=>{console.log("설정 클릭")}}];v.useEffect(()=>{const m=()=>{const O=window.innerHeight,j=Math.max(64,(O-300)/3);r({x:0,y:j});const x=O/2;f(j<x)};return m(),window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[]);const C=m=>{if(m.preventDefault(),m.stopPropagation(),d.current){const O=d.current.getBoundingClientRect();a({x:m.clientX-O.left,y:m.clientY-O.top}),o(!0)}},b=m=>{if(n){const O=m.clientY-i.y,T=window.innerHeight-24,x=Math.max(64,Math.min(T,O));r({x:t.x,y:x});const R=window.innerHeight/2;f(x<R)}},w=()=>{o(!1)},p=()=>{c(!l)},S=m=>{m.onClick&&m.onClick()};return v.useEffect(()=>{if(n)return document.addEventListener("mousemove",b),document.addEventListener("mouseup",w),()=>{document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",w)}},[n,i]),s.jsxs("div",{className:"quick-tab-container",ref:d,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:u?0:"auto",bottom:u?"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:u?`calc(100vh - ${t.y+12}px)`:`${t.y-12}px`,transform:l?"translateX(0)":"translateX(calc(100% + 100px))",transition:"transform 0.3s ease",marginTop:u&&t.y<100?"32px":"0",marginBottom:!u&&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:u?`calc(100vh - ${t.y+120}px)`:`${t.y-60}px`,padding:"14px 0"},children:g.map(m=>s.jsx(y.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:()=>S(m),onMouseEnter:O=>{},onMouseLeave:O=>{},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:m.color,marginBottom:"5px"},children:m.icon}),s.jsx("div",{className:"quick-tab-items-title",children:m.title})]})},m.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:m=>{},onMouseLeave:m=>{},children:s.jsx(pe.PlusOutlined,{style:{color:"#CDC4FF",fontSize:"15px"}})})]}),s.jsx("div",{className:"quick-tab-drag-btn",style:{cursor:n?"grabbing":"grab",zIndex:1001},onMouseDown:m=>C(m)}),s.jsx(y.Button,{className:`quick-tab-toggle-btn ${l?"expanded":""}`,type:"default",style:{border:"0",backgroundColor:"transparent"},onClick:p})]})},Ev=()=>{const{verifyWithToken:e}=Mr.useAuth(),t=Aa.useNavigate(),r=Aa.useLocation();return v.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(y.Spin,{tip:"인증중..."})})};exports.BwgButtonGroup=Gu;exports.BwgCmptArea=Yu;exports.BwgCol=Xu;exports.BwgConfigProvider=ca;exports.BwgDetail=ld;exports.BwgDrawer=cd;exports.BwgEditor=Ti;exports.BwgGrid=Ol;exports.BwgInfoArea=Cd;exports.BwgPagination=wo;exports.BwgPopup=Sd;exports.BwgRow=Ed;exports.BwgSpace=Rd;exports.BwgTable=jd;exports.BwgTabs=$d;exports.BwgTitleBox=xo;exports.BwgView=bv;exports.ContentBox=cr;exports.ContentLayOut=dr;exports.GlobalConfigProvider=yv;exports.QuickServiceToggle=Sv;exports.SSOHandler=Ev;exports.SearchBox=Co;exports.commonjsGlobal=Uu;exports.createBwgGridRenderer=Jn;exports.getAugmentedNamespace=Ku;exports.getDefaultExportFromCjs=bo;
183
+ `]:Object.assign(Object.assign({},Nc(e)),{marginInlineStart:e.marginXXS})}),Mm(e)),km(e)),Am()),{"&-rtl":{direction:"rtl"}})}},Dm=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Ou=Rn("Typography",Nm,Dm),Bm=e=>{const{prefixCls:t,"aria-label":r,className:n,style:o,direction:i,maxLength:a,autoSize:l=!0,value:c,onSave:u,onCancel:f,onEnd:d,component:g,enterIcon:C=h.createElement(hu,null)}=e,b=h.useRef(null),w=h.useRef(!1),p=h.useRef(null),[S,m]=h.useState(c);h.useEffect(()=>{m(c)},[c]),h.useEffect(()=>{var H;if(!((H=b.current)===null||H===void 0)&&H.resizableTextArea){const{textArea:P}=b.current.resizableTextArea;P.focus();const{length:A}=P.value;P.setSelectionRange(A,A)}},[]);const O=({target:H})=>{m(H.value.replace(/[\n\r]/g,""))},T=()=>{w.current=!0},j=()=>{w.current=!1},x=({keyCode:H})=>{w.current||(p.current=H)},R=()=>{u(S.trim())},$=({keyCode:H,ctrlKey:P,altKey:A,metaKey:Y,shiftKey:W})=>{p.current!==H||w.current||P||A||Y||W||(H===al.ENTER?(R(),d?.()):H===al.ESC&&f())},F=()=>{R()},[B,q,_]=Ou(t),D=he(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${g}`]:!!g},n,q,_);return B(h.createElement("div",{className:D,style:o},h.createElement(Tm,{ref:b,maxLength:a,value:S,onChange:O,onKeyDown:x,onKeyUp:$,onCompositionStart:T,onCompositionEnd:j,onBlur:F,"aria-label":r,rows:1,autoSize:l}),C!==null?uu(C,{className:`${t}-edit-content-confirm`}):null))};var bi,hl;function zm(){return hl||(hl=1,bi=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()}}),bi}var yi,gl;function Lm(){if(gl)return yi;gl=1;var e=zm(),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,u,f,d,g,C=!1;a||(a={}),l=a.debug||!1;try{u=e(),f=document.createRange(),d=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(w){if(w.stopPropagation(),a.format)if(w.preventDefault(),typeof w.clipboardData>"u"){l&&console.warn("unable to use e.clipboardData"),l&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=t[a.format]||t.default;window.clipboardData.setData(p,i)}else w.clipboardData.clearData(),w.clipboardData.setData(a.format,i);a.onCopy&&(w.preventDefault(),a.onCopy(w.clipboardData))}),document.body.appendChild(g),f.selectNodeContents(g),d.addRange(f);var b=document.execCommand("copy");if(!b)throw new Error("copy command was unsuccessful");C=!0}catch(w){l&&console.error("unable to copy using execCommand: ",w),l&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",i),a.onCopy&&a.onCopy(window.clipboardData),C=!0}catch(p){l&&console.error("unable to copy using clipboardData: ",p),l&&console.error("falling back to prompt"),c=n("message"in a?a.message:r),window.prompt(c,i)}}finally{d&&(typeof d.removeRange=="function"?d.removeRange(f):d.removeAllRanges()),g&&document.body.removeChild(g),u()}return C}return yi=o,yi}var Fm=Lm();const Hm=bo(Fm),Vm=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];var Wm=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{u(n.next(f))}catch(d){a(d)}}function c(f){try{u(n.throw(f))}catch(d){a(d)}}function u(f){f.done?i(f.value):o(f.value).then(l,c)}u((n=n.apply(e,t||[])).next())})};const qm=({copyConfig:e,children:t})=>{const[r,n]=h.useState(!1),[o,i]=h.useState(!1),a=h.useRef(null),l=()=>{a.current&&clearTimeout(a.current)},c={};e.format&&(c.format=e.format),h.useEffect(()=>l,[]);const u=ft(f=>Wm(void 0,void 0,void 0,function*(){var d;f?.preventDefault(),f?.stopPropagation(),i(!0);try{const g=typeof e.text=="function"?yield e.text():e.text;Hm(g||Vm(t,!0).join("")||"",c),i(!1),n(!0),l(),a.current=setTimeout(()=>{n(!1)},3e3),(d=e.onCopy)===null||d===void 0||d.call(e,f)}catch(g){throw i(!1),g}}));return{copied:r,copyLoading:o,onClick:u}};function xi(e,t){return h.useMemo(()=>{const r=!!e;return[r,Object.assign(Object.assign({},t),r&&typeof e=="object"?e:null)]},[e])}const Um=e=>{const t=v.useRef(void 0);return v.useEffect(()=>{t.current=e}),t.current},Km=(e,t,r)=>v.useMemo(()=>e===!0?{title:t??r}:v.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??r},e):{title:e},[e,t,r]);var Gm=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 _u=h.forwardRef((e,t)=>{const{prefixCls:r,component:n="article",className:o,rootClassName:i,setContentRef:a,children:l,direction:c,style:u}=e,f=Gm(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:d,direction:g,className:C,style:b}=To("typography"),w=c??g,p=a?xn(t,a):t,S=d("typography",r);process.env.NODE_ENV!=="production"&&kt("Typography").deprecated(!a,"setContentRef","ref");const[m,O,T]=Ou(S),j=he(S,C,{[`${S}-rtl`]:w==="rtl"},o,i,O,T),x=Object.assign(Object.assign({},b),u);return m(h.createElement(n,Object.assign({className:j,style:x,ref:p},f),l))});process.env.NODE_ENV!=="production"&&(_u.displayName="Typography");var Ym={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"},Xm=function(t,r){return h.createElement(qt,Ze({},t,{ref:r,icon:Ym}))},Iu=h.forwardRef(Xm);process.env.NODE_ENV!=="production"&&(Iu.displayName="CheckOutlined");var Qm={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"},Zm=function(t,r){return h.createElement(qt,Ze({},t,{ref:r,icon:Qm}))},Pu=h.forwardRef(Zm);process.env.NODE_ENV!=="production"&&(Pu.displayName="CopyOutlined");var Jm={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"},ev=function(t,r){return h.createElement(qt,Ze({},t,{ref:r,icon:Jm}))},Mu=h.forwardRef(ev);process.env.NODE_ENV!=="production"&&(Mu.displayName="LoadingOutlined");function pl(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Ci(e,t,r){return e===!0||e===void 0?t:e||r&&t}function tv(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 Ia=e=>["string","number"].includes(typeof e),rv=({prefixCls:e,copied:t,locale:r,iconOnly:n,tooltips:o,icon:i,tabIndex:a,onCopy:l,loading:c})=>{const u=pl(o),f=pl(i),{copied:d,copy:g}=r??{},C=t?d:g,b=Ci(u[t?1:0],C),w=typeof b=="string"?b:C;return h.createElement($n,{title:b},h.createElement("button",{type:"button",className:he(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:n}),onClick:l,"aria-label":w,tabIndex:a},t?Ci(f[1],h.createElement(Iu,null),!0):Ci(f[0],c?h.createElement(Mu,null):h.createElement(Pu,null),!0)))},Xn=h.forwardRef(({style:e,children:t},r)=>{const n=h.useRef(null);return h.useImperativeHandle(r,()=>({isExceed:()=>{const o=n.current;return o.scrollHeight>o.clientHeight},getHeight:()=>n.current.clientHeight})),h.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)}),nv=e=>e.reduce((t,r)=>t+(Ia(r)?String(r).length:1),0);function ml(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=Ia(i)?String(i).length:1,c=r+l;if(c>t){const u=t-r;return n.push(String(i).slice(0,u)),n}n.push(i),r=c}return e}const wi=0,Si=1,Ei=2,Ri=3,vl=4,Qn={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function ov(e){const{enableMeasure:t,width:r,text:n,children:o,rows:i,expanded:a,miscDeps:l,onEllipsis:c}=e,u=h.useMemo(()=>un(n),[n]),f=h.useMemo(()=>nv(u),[n]),d=h.useMemo(()=>o(u,!1),[n]),[g,C]=h.useState(null),b=h.useRef(null),w=h.useRef(null),p=h.useRef(null),S=h.useRef(null),m=h.useRef(null),[O,T]=h.useState(!1),[j,x]=h.useState(wi),[R,$]=h.useState(0),[F,B]=h.useState(null);Le(()=>{x(t&&r&&f?Si:wi)},[r,n,i,t,u]),Le(()=>{var H,P,A,Y;if(j===Si){x(Ei);const W=w.current&&getComputedStyle(w.current).whiteSpace;B(W)}else if(j===Ei){const W=!!(!((H=p.current)===null||H===void 0)&&H.isExceed());x(W?Ri:vl),C(W?[0,f]:null),T(W);const V=((P=p.current)===null||P===void 0?void 0:P.getHeight())||0,X=i===1?0:((A=S.current)===null||A===void 0?void 0:A.getHeight())||0,J=((Y=m.current)===null||Y===void 0?void 0:Y.getHeight())||0,K=Math.max(V,X+J);$(K+1),c(W)}},[j]);const q=g?Math.ceil((g[0]+g[1])/2):0;Le(()=>{var H;const[P,A]=g||[0,0];if(P!==A){const W=(((H=b.current)===null||H===void 0?void 0:H.getHeight())||0)>R;let V=q;A-P===1&&(V=W?P:A),C(W?[P,V]:[V,A])}},[g,q]);const _=h.useMemo(()=>{if(!t)return o(u,!1);if(j!==Ri||!g||g[0]!==g[1]){const H=o(u,!1);return[vl,wi].includes(j)?H:h.createElement("span",{style:Object.assign(Object.assign({},Qn),{WebkitLineClamp:i})},H)}return o(a?u:ml(u,g[0]),O)},[a,j,g,u].concat(rt(l))),D={width:r,margin:0,padding:0,whiteSpace:F==="nowrap"?"normal":"inherit"};return h.createElement(h.Fragment,null,_,j===Ei&&h.createElement(h.Fragment,null,h.createElement(Xn,{style:Object.assign(Object.assign(Object.assign({},D),Qn),{WebkitLineClamp:i}),ref:p},d),h.createElement(Xn,{style:Object.assign(Object.assign(Object.assign({},D),Qn),{WebkitLineClamp:i-1}),ref:S},d),h.createElement(Xn,{style:Object.assign(Object.assign(Object.assign({},D),Qn),{WebkitLineClamp:1}),ref:m},o([],!0))),j===Ri&&g&&g[0]!==g[1]&&h.createElement(Xn,{style:Object.assign(Object.assign({},D),{top:400}),ref:b},o(ml(u,q),!0)),j===Si&&h.createElement("span",{style:{whiteSpace:"inherit"},ref:w}))}const ku=({enableEllipsis:e,isEllipsis:t,children:r,tooltipProps:n})=>!n?.title||!e?r:h.createElement($n,Object.assign({open:t?void 0:!1},n),r);process.env.NODE_ENV!=="production"&&(ku.displayName="EllipsisTooltip");var iv=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 av({mark:e,code:t,underline:r,delete:n,strong:o,keyboard:i,italic:a},l){let c=l;function u(f,d){d&&(c=h.createElement(f,{},c))}return u("strong",o),u("u",r),u("del",n),u("code",t),u("mark",e),u("kbd",i),u("i",a),c}const sv="...",bl=["delete","mark","code","underline","strong","keyboard","italic"],lv=h.forwardRef((e,t)=>{var r;const{prefixCls:n,className:o,style:i,type:a,disabled:l,children:c,ellipsis:u,editable:f,copyable:d,component:g,title:C}=e,b=iv(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:w,direction:p}=h.useContext(Vt),[S]=rg("Text"),m=h.useRef(null),O=h.useRef(null),T=w("typography",n),j=oc(b,bl),[x,R]=xi(f),[$,F]=$r(!1,{value:R.editing}),{triggerType:B=["icon"]}=R,q=le=>{var de;le&&((de=R.onStart)===null||de===void 0||de.call(R)),F(le)},_=Um($);Le(()=>{var le;!$&&_&&((le=O.current)===null||le===void 0||le.focus())},[$]);const D=le=>{le?.preventDefault(),q(!0)},H=le=>{var de;(de=R.onChange)===null||de===void 0||de.call(R,le),q(!1)},P=()=>{var le;(le=R.onCancel)===null||le===void 0||le.call(R),q(!1)},[A,Y]=xi(d),{copied:W,copyLoading:V,onClick:X}=qm({copyConfig:Y,children:c}),[J,K]=h.useState(!1),[te,se]=h.useState(!1),[ge,ce]=h.useState(!1),[ve,E]=h.useState(!1),[N,z]=h.useState(!0),[M,L]=xi(u,{expandable:!1,symbol:le=>le?S?.collapse:S?.expand}),[k,I]=$r(L.defaultExpanded||!1,{value:L.expanded}),G=M&&(!k||L.expandable==="collapsible"),{rows:U=1}=L,Z=h.useMemo(()=>G&&(L.suffix!==void 0||L.onEllipsis||L.expandable||x||A),[G,L,x,A]);Le(()=>{M&&!Z&&(K(ms("webkitLineClamp")),se(ms("textOverflow")))},[Z,M]);const[ne,ae]=h.useState(G),we=h.useMemo(()=>Z?!1:U===1?te:J,[Z,te,J]);Le(()=>{ae(we&&G)},[we,G]);const be=G&&(ne?ve:ge),Ce=G&&U===1&&ne,ue=G&&U>1&&ne,oe=(le,de)=>{var We;I(de.expanded),(We=L.onExpand)===null||We===void 0||We.call(L,le,de)},[ye,Ee]=h.useState(0),Ye=({offsetWidth:le})=>{Ee(le)},Me=le=>{var de;ce(le),ge!==le&&((de=L.onEllipsis)===null||de===void 0||de.call(L,le))};h.useEffect(()=>{const le=m.current;if(M&&ne&&le){const de=tv(le);ve!==de&&E(de)}},[M,ne,c,ue,N,ye]),h.useEffect(()=>{const le=m.current;if(typeof IntersectionObserver>"u"||!le||!ne||!G)return;const de=new IntersectionObserver(()=>{z(!!le.offsetParent)});return de.observe(le),()=>{de.disconnect()}},[ne,G]);const ke=Km(L.tooltip,R.text,c),xe=h.useMemo(()=>{if(!(!M||ne))return[R.text,c,C,ke.title].find(Ia)},[M,ne,C,ke.title,be]);if($)return h.createElement(Bm,{value:(r=R.text)!==null&&r!==void 0?r:typeof c=="string"?c:"",onSave:H,onCancel:P,onEnd:R.onEnd,prefixCls:T,className:o,style:i,direction:p,component:g,maxLength:R.maxLength,autoSize:R.autoSize,enterIcon:R.enterIcon});const Ae=()=>{const{expandable:le,symbol:de}=L;return le?h.createElement("button",{type:"button",key:"expand",className:`${T}-${k?"collapse":"expand"}`,onClick:We=>oe(We,{expanded:!k}),"aria-label":k?S.collapse:S?.expand},typeof de=="function"?de(k):de):null},ze=()=>{if(!x)return;const{icon:le,tooltip:de,tabIndex:We}=R,At=un(de)[0]||S?.edit,rr=typeof At=="string"?At:"";return B.includes("icon")?h.createElement($n,{key:"edit",title:de===!1?"":At},h.createElement("button",{type:"button",ref:O,className:`${T}-edit`,onClick:D,"aria-label":rr,tabIndex:We},le||h.createElement(Ul,{role:"button"}))):null},Oe=()=>A?h.createElement(rv,Object.assign({key:"copy"},Y,{prefixCls:T,copied:W,locale:S,onCopy:X,loading:V,iconOnly:c==null})):null,me=le=>[le&&Ae(),ze(),Oe()],Ne=le=>[le&&!k&&h.createElement("span",{"aria-hidden":!0,key:"ellipsis"},sv),L.suffix,me(le)];return h.createElement(Ar,{onResize:Ye,disabled:!G},le=>h.createElement(ku,{tooltipProps:ke,enableEllipsis:G,isEllipsis:be},h.createElement(_u,Object.assign({className:he({[`${T}-${a}`]:a,[`${T}-disabled`]:l,[`${T}-ellipsis`]:M,[`${T}-ellipsis-single-line`]:Ce,[`${T}-ellipsis-multiple-line`]:ue},o),prefixCls:n,style:Object.assign(Object.assign({},i),{WebkitLineClamp:ue?U:void 0}),component:g,ref:xn(le,m,t),direction:p,onClick:B.includes("text")?D:void 0,"aria-label":xe?.toString(),title:C},j),h.createElement(ov,{enableMeasure:G&&!ne,text:c,rows:U,width:ye,onEllipsis:Me,expanded:k,miscDeps:[W,k,V,x,A,S].concat(rt(bl.map(de=>e[de])))},(de,We)=>av(e,h.createElement(h.Fragment,null,de.length>0&&We&&!k&&xe?h.createElement("span",{key:"show-content","aria-hidden":!0},de):de,Ne(We)))))))}),cv=h.forwardRef((e,t)=>h.createElement(lv,Object.assign({ref:t},e,{component:"div"}))),yl=(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}},uv=({title:e="팝업",width:t=800,height:r=600,minWidth:n=400,minHeight:o=300,onClose:i,children:a,footer:l,showMask:c=!0,maskStyle:u={backgroundColor:"rgba(0,0,0,0.3)"},buttons:f=[]})=>{const[d,g]=v.useState(t),[C,b]=v.useState(r),w=v.useRef(null),{loading:p}=ct.usePopupLoadingStore(),S=v.useMemo(()=>{const $=Math.max(0,(window.innerWidth-t)/2),F=Math.max(0,(window.innerHeight-r)/2);return{x:$,y:F}},[t,r]),[m,O]=v.useState(S),T=($,F)=>{const B=yl({x:F.x,y:F.y},{width:d,height:C});O(B)},j=($,F,B,q,_)=>{const D={width:parseInt(B.style.width,10),height:parseInt(B.style.height,10)},H=yl(_,D);g(D.width),b(D.height),O(H)},x=()=>w.current??document.body,R=[...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,...u,zIndex:0}}),s.jsxs(wl.Rnd,{className:"bwg-draggable",size:{width:d,height:C},position:m,bounds:"window",minWidth:n,minHeight:o,onDragStop:T,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(ca,{getPopupContainer:x,children:s.jsx(dr,{type:"vertical",children:s.jsxs(y.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:R.map($=>s.jsx(y.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,p&&s.jsx(Sl.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:w,className:"bwg-popup-portal-root",style:{position:"relative"}})]})]})},{TextArea:dv}=y.Input,Zn=[{label:"요청",value:"RQST"},{label:"문의",value:"INQR"}],fv={INQR:"blue",RQST:"green",RPRT:"red",SGSN:"purple"},xl=[{label:"대기",value:"READY"},{label:"담당자 지정",value:"ASSIGNED"},{label:"처리중",value:"PROCESSING"},{label:"처리완료",value:"COMPLETED"},{label:"반려",value:"REJECTED"}],hv={READY:"gray",ASSIGNED:"blue",PROCESSING:"yellow",COMPLETED:"green",REJECTED:"red"},Cl={READY:0,ASSIGNED:25,PROCESSING:50,COMPLETED:100,REJECTED:100},gv=({open:e,onClose:t})=>{const{searchBoxRef:r}=Mr.useSearchBox(),n=v.useRef(null),o=v.useRef(null),{user:i}=ct.useUserStore(),{activeMenuItem:a}=ct.useMenuViewStore(),[l]=y.Form.useForm(),[c,u]=v.useState(!1),[f,d]=v.useState(!1),[g,C]=v.useState(!1),[b,w]=v.useState(!1),[p,S]=v.useState(!1),[m,O]=v.useState("list");v.useState(null);const T=v.useRef(null),[j,x]=v.useState([]),[R,$]=v.useState(""),[F]=v.useState(!1),[B,q]=v.useState(15),_=v.useRef(null),D=v.useMemo(()=>Jn((k,I,G,U,Z)=>{const ne=k.getValue(I.index?.itemIndex,"type");Z.render(s.jsx(y.Tag,{color:fv[ne],children:Zn.find(ae=>ae.value===ne)?.label}))}),[]),H=v.useMemo(()=>Jn((k,I,G,U,Z)=>{const ne=k.getValue(I.index?.itemIndex,"status");Z.render(s.jsx(y.Tag,{color:hv[ne],children:xl.find(ae=>ae.value===ne)?.label}))}),[]),P=v.useMemo(()=>Jn((k,I,G,U,Z)=>{k.getValue(I.index?.itemIndex,"urgentYn")==="Y"?Z.render(s.jsx(pe.AlertTwoTone,{twoToneColor:"red"})):Z.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:Ve.realFormat.maskYmd},{fieldName:"dueDt",header:{text:"마감요청일자"},width:120,renderer:Ve.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:Ve.realFormat.maskYmd},{fieldName:"scrnId",header:{text:"화면ID"},width:100,visible:!1},{fieldName:"menuId",header:{text:"메뉴ID"},width:100,visible:!1}],Y={onCellDblClicked:(k,I)=>{const G=I.itemIndex??-1;if(G<0)return;const U=k.getValues(G);console.log("🔍 그리드 셀 더블클릭 이벤트:",U);const Z={...U,menuId:a?.menuId,menuNm:a?.menuNm,scrnId:a?.scrnId};l.setFieldsValue(Z),C(Z.rgstUserId===i?.userId),w(Z.status==="COMPLETED"||Z.status==="REJECTED"),O("detail")}},W=()=>{l.resetFields(),O("list"),M.SCMBoardMstr0001(1,20)},V=async k=>{u(!0);try{l.validateFields().then(I=>{console.log("문의/신고 제출:",I),m==="new"?M.SCMBoardMstr0003(I):m==="detail"&&M.SCMBoardMstr0004(I)})}catch(I){console.error("문의/신고 제출 실패:",I)}finally{u(!1)}},X=()=>{M.SCMBoardMstr0005()},J=()=>{r?.current?.resetForm(),l.resetFields(),m==="new"?O("list"):(O("list"),t())},K=()=>{r?.current?.resetForm(),l.resetFields(),O("list"),t()},te=()=>{(m==="detail"||m==="new")&&O("list")},se=()=>{l.resetFields(),O("new")},ge=()=>{console.log("댓글 수동 새로고침"),q(15)},ce=()=>{if(!R.trim()){y.message.warning("댓글 상세내용 작성");return}M.SCMBoardDtls0002(l.getFieldValue("boardMstrId"),R.trim()),$(""),setTimeout(()=>{T.current&&(T.current.scrollTop=T.current.scrollHeight)},100)},ve=k=>{const I=j.find(G=>G.id===k);if(I&&I.regUserId!==i?.userId){y.message.error("본인이 작성한 댓글만 삭제할 수 있습니다.");return}M.SCMBoardDtls0003(l.getFieldValue("boardMstrId"),k)};v.useEffect(()=>{e&&setTimeout(()=>{M.SCMBoardMstr0001(1,20)},100)},[e]);const E=()=>s.jsxs(cr,{border:!1,children:[s.jsx(Co,{border:!0,ref:r,reqRows:s.jsxs(s.Fragment,{children:[s.jsx(y.Row,{gutter:[16,8],style:{marginBottom:"8px"},children:s.jsx(y.Col,{span:24,children:s.jsx(Pe.BwgFormItem,{label:"화면 정보",name:void 0,children:s.jsxs(y.Space.Compact,{style:{width:"100%"},children:[s.jsx(y.Form.Item,{name:"menuId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:s.jsx(y.Input,{disabled:!0})}),s.jsx(y.Form.Item,{name:"menuNm",style:{width:"60%",marginBottom:0},children:s.jsx(y.Input,{disabled:!0})})]})})})}),s.jsxs(y.Row,{gutter:[16,8],style:{marginBottom:"8px"},children:[s.jsx(y.Col,{span:6,children:s.jsx(Pe.BwgSelect,{itemProps:{label:"등록구분",name:"type"},selectProps:{options:Zn}})}),s.jsx(y.Col,{span:12,children:s.jsx(Pe.BwgRangePicker,{itemProps:{label:"등록일자",name:"rgstDt"},inputProps:{allowEmpty:!0}})}),s.jsx(y.Col,{span:6,children:s.jsx(Pe.BwgSwitch,{itemProps:{name:"myArticle",label:"내 글만"},inputProps:{format:"YN",onChange:()=>console.log("hello!!")}})})]}),s.jsx(y.Row,{children:s.jsx(y.Col,{span:24,children:s.jsx(Pe.BwgInput,{itemProps:{label:"제목 및 내용",name:"keyword"}})})})]})}),s.jsx(Ol,{ref:_,gridColumns:A,gridEvents:Y,gridOptions:{},renderers:[{name:"tagType",renderer:D},{name:"statusTag",renderer:H},{name:"alert",renderer:P}]}),s.jsx(wo,{ref:n,mode:"server",onServerPageChange:(k,I)=>{console.log("🔄 서버 모드 페이징 변경:",{page:k,size:I}),M.SCMBoardMstr0001(k,I)},pageSizeOptions:[10,20,50,100]})]}),N=()=>s.jsxs(y.Splitter,{children:[s.jsx(y.Splitter.Panel,{defaultSize:"70%",min:"60%",max:"80%",style:{paddingRight:"15px",overflowX:"hidden",overflowY:"hidden"},children:s.jsx(cr,{children:s.jsxs(y.Form,{form:l,onFinish:V,labelCol:{flex:"100px"},disabled:!g||b,children:[s.jsxs(y.Row,{gutter:[16,8],children:[s.jsxs(y.Col,{span:8,children:[s.jsx(y.Form.Item,{name:"boardMstrId",hidden:!0,children:s.jsx(y.Input,{})}),s.jsx(Pe.BwgSelect,{itemProps:{name:"type",label:"구분"},selectProps:{options:Zn}})]}),s.jsxs(y.Col,{span:16,children:[s.jsx(Pe.BwgFormItem,{label:"화면 정보",name:void 0,children:s.jsxs(y.Space.Compact,{children:[s.jsx(y.Form.Item,{name:"menuId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:s.jsx(y.Input,{readOnly:!0})}),s.jsx(y.Form.Item,{name:"menuNm",style:{width:"60%",marginBottom:0},children:s.jsx(y.Input,{readOnly:!0})})]})}),s.jsx(y.Form.Item,{name:"scrnId",style:{width:"100%"},hidden:!0,children:s.jsx(y.Input,{readOnly:!0})})]})]}),s.jsxs(y.Row,{gutter:[16,8],children:[s.jsx(y.Col,{span:8,children:s.jsx(Pe.BwgFormItem,{label:"작성자",name:void 0,children:s.jsxs(y.Space.Compact,{style:{width:"100%"},children:[s.jsx(y.Form.Item,{name:"rgstUserId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:s.jsx(y.Input,{readOnly:!0})}),s.jsx(y.Form.Item,{name:"rgstUserNm",style:{width:"60%",marginBottom:0},children:s.jsx(y.Input,{readOnly:!0})})]})})}),s.jsx(y.Col,{span:8,children:s.jsx(Pe.BwgDatePicker,{itemProps:{label:"작성일자",name:"rgstDt"},inputProps:{disabled:!0}})}),s.jsx(y.Col,{span:8,children:s.jsx(Pe.BwgSelect,{itemProps:{name:"status",label:"상태"},selectProps:{options:xl,disabled:!0}})})]}),s.jsxs(y.Row,{gutter:[16,8],children:[s.jsx(y.Col,{span:8,children:s.jsx(Pe.BwgDatePicker,{itemProps:{label:"마감요청일",name:"dueDate"}})}),s.jsx(y.Col,{span:8,children:s.jsxs(y.Flex,{vertical:!0,gap:2,children:[s.jsx("span",{style:{fontSize:"12px",color:"#000000E0"},children:"진척률"}),s.jsx(y.Progress,{percent:Cl[l.getFieldValue("status")],status:Cl[l.getFieldValue("status")]>0?"active":"normal",size:"small",format:k=>`${k}%`})]})}),s.jsx(y.Col,{span:8,children:s.jsx(Pe.BwgCheck,{itemProps:{name:"urgentYn",label:"긴급여부"}})})]}),s.jsxs(y.Row,{gutter:[16,8],children:[s.jsx(y.Col,{span:8,children:s.jsx(Pe.BwgFormItem,{label:"처리담당자",name:void 0,help:"",children:s.jsxs(y.Space.Compact,{children:[s.jsx(y.Form.Item,{name:"processor",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:s.jsx(y.Input,{readOnly:!0})}),s.jsx(y.Form.Item,{name:"processorNm",style:{width:"60%",marginBottom:0},children:s.jsx(y.Input,{readOnly:!0})})]})})}),s.jsx(y.Col,{span:8,children:s.jsx(Pe.BwgDatePicker,{itemProps:{label:"처리일자",name:"processDt"}})})]}),s.jsx(y.Row,{gutter:[16,8],children:s.jsx(y.Col,{span:24,children:s.jsx(Pe.BwgFormItem,{label:"제목",name:"title",style:{width:"100%"},children:s.jsx(y.Input,{})})})}),s.jsx(Ti,{border:!1,itemProps:{name:"content",label:"내용",rules:[{required:!0,message:"내용을 입력하세요."}]},editorProps:{isEditing:g&&!b,title:{title:"에디터"}}})]})})}),s.jsx(y.Splitter.Panel,{collapsible:!0,style:{paddingLeft:"15px"},children:s.jsxs(cr,{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(y.Button,{type:"text",icon:s.jsx(pe.ReloadOutlined,{spin:F||p}),onClick:ge,disabled:F||p,size:"small",style:{fontSize:"12px",color:b?"#d9d9d9":p?"#8c8c8c":"#595959",height:"24px",padding:"0 8px"}}),!b&&s.jsx("span",{style:{position:"absolute",top:"-4px",right:"-4px",fontSize:"10px",fontWeight:"700",color:F?"#8c8c8c":"#1890ff",minWidth:"14px",height:"14px",lineHeight:"14px",textAlign:"center",borderRadius:"50%",pointerEvents:"none"},children:B})]})]}),s.jsx("div",{ref:T,style:{flex:1,overflowY:"auto",marginBottom:"16px",minHeight:0,position:"relative"},children:p?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(pe.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(y.List,{dataSource:j,renderItem:k=>s.jsxs(y.List.Item,{style:{position:"relative",paddingRight:"20px",padding:"12px 20px 12px 12px",borderBottom:"1px solid #f0f0f0"},children:[s.jsx(y.List.Item.Meta,{avatar:s.jsx(y.Avatar,{size:32,style:{backgroundColor:"#1890ff",fontSize:"13px"},children:k.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:k.author}),s.jsx("span",{style:{fontSize:"11px",color:"#8c8c8c"},children:k.regDt})]}),description:s.jsx("span",{style:{fontSize:"13px",color:"#595959",lineHeight:"1.5"},children:k.content})}),k.regUserId===i?.userId&&s.jsx(y.Button,{type:"text",danger:!0,icon:s.jsx(pe.DeleteOutlined,{style:{fontSize:"12px"}}),size:"small",onClick:()=>ve(k.id),disabled:p,style:{position:"absolute",right:"8px",top:"62%",transform:"translateY(-50%)",opacity:p?.3:.5,height:"24px",width:"24px",padding:0},onMouseEnter:I=>{p||(I.currentTarget.style.opacity="1")},onMouseLeave:I=>{I.currentTarget.style.opacity=p?"0.3":"0.5"}})]},k.id)})}),s.jsx("div",{style:{padding:"12px",borderTop:"1px solid #e8e8e8",backgroundColor:b?"#f5f5f5":"#fafafa",flexShrink:0,marginTop:"auto"},children:b?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(pe.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(dv,{rows:2,placeholder:p?"댓글 처리 중...":"댓글을 입력하세요...",value:R,onChange:k=>$(k.target.value),maxLength:300,disabled:p,style:{borderRadius:"6px",border:"1px solid #d9d9d9",resize:"none",fontSize:"13px",backgroundColor:p?"#f5f5f5":"#ffffff",color:p?"#8c8c8c":"#000000"},onFocus:k=>{p||(k.target.style.borderColor="#1890ff",k.target.style.boxShadow="0 0 0 2px rgba(24, 144, 255, 0.05)")},onBlur:k=>{k.target.style.borderColor="#d9d9d9",k.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:p?"처리 중...":`${R.length} / 300자`}),s.jsx(y.Button,{type:"primary",onClick:ce,size:"small",loading:p,style:{borderRadius:"4px",fontSize:"12px",height:"28px",padding:"0 16px",fontWeight:"500"},disabled:!R.trim()||p,children:p?"등록 중...":"등록"})]})]})})]})})]}),z=()=>s.jsx(cr,{children:s.jsxs(Pe.BwgForm,{form:l,onFinish:V,initialValues:{type:"INQR"},labelCol:{flex:"100px"},children:[s.jsxs(y.Row,{gutter:[16,8],children:[s.jsx(y.Col,{span:8,children:s.jsx(Pe.BwgSelect,{itemProps:{name:"type",label:"구분",rules:[{required:!0,message:"구분을 선택해주세요."}]},selectProps:{options:Zn}})}),s.jsxs(y.Col,{span:16,children:[s.jsx(Pe.BwgFormItem,{label:"화면 정보",name:void 0,children:s.jsxs(y.Space.Compact,{style:{width:"100%"},children:[s.jsx(y.Form.Item,{name:"menuId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:s.jsx(y.Input,{readOnly:!0})}),s.jsx(y.Form.Item,{name:"menuNm",style:{width:"60%",marginBottom:0},children:s.jsx(y.Input,{readOnly:!0})})]})}),s.jsx(y.Form.Item,{name:"scrnId",style:{width:"100%"},hidden:!0,children:s.jsx(y.Input,{readOnly:!0})})]})]}),s.jsxs(y.Row,{gutter:[16,8],children:[s.jsx(y.Col,{span:8,children:s.jsx(Pe.BwgFormItem,{label:"작성자",name:void 0,children:s.jsxs(y.Space.Compact,{style:{width:"100%"},children:[s.jsx(y.Form.Item,{name:"rgstUserId",style:{width:"40%",marginBottom:0,marginInlineEnd:0},validateStatus:"",help:"",children:s.jsx(y.Input,{readOnly:!0})}),s.jsx(y.Form.Item,{name:"rgstUserNm",style:{width:"60%",marginBottom:0},children:s.jsx(y.Input,{readOnly:!0})})]})})}),s.jsx(y.Col,{span:6,children:s.jsx(Pe.BwgFormItem,{label:"작성일자",name:"rgstDt",style:{width:"100%"},children:s.jsx(y.DatePicker,{disabled:!0})})}),s.jsx(y.Col,{span:6,children:s.jsx(Pe.BwgFormItem,{label:"마감요청일",name:"dueDate",style:{width:"100%"},children:s.jsx(y.DatePicker,{})})}),s.jsx(y.Col,{span:4,children:s.jsx(Pe.BwgCheck,{itemProps:{name:"urgentYn",label:"긴급여부"}})})]}),s.jsx(y.Row,{gutter:[16,8],children:s.jsx(y.Col,{span:24,children:s.jsx(Pe.BwgFormItem,{label:"제목",name:"title",style:{width:"100%"},rules:[{required:!0,message:"제목을 입력해주세요."}],children:s.jsx(y.Input,{})})})}),s.jsx(Ti,{border:!1,itemProps:{name:"content"},editorProps:{isEditing:f,title:{title:s.jsxs(s.Fragment,{children:[s.jsx(pe.EditOutlined,{style:{marginRight:"5px"}})," 상세내용 작성"]}),children:s.jsx(y.Button,{icon:s.jsx(pe.EyeFilled,{}),onClick:()=>d(!f),children:"미리보기"})}}})]})});v.useEffect(()=>{m==="new"&&(d(!0),l.setFieldsValue({type:"INQR",menuId:a?.menuId,menuNm:a?.menuNm,scrnId:a?.scrnId,rgstUserId:i?.userId,rgstUserNm:i?.userNm,rgstDt:qu(),content:""}))},[m,l,a,i]),v.useEffect(()=>{if(m==="detail"&&!b){const k=setInterval(()=>{q(I=>I<=1?(console.log("🔄 댓글 자동 갱신 실행 (카운트다운 완료)"),M.SCMBoardDtls0001(l.getFieldValue("boardMstrId")),15):I-1)},1e3);return M.SCMBoardDtls0001(l.getFieldValue("boardMstrId")),()=>{console.log("🧹 댓글 인터벌 정리"),clearInterval(k)}}else m==="detail"&&b&&(console.log("📋 완료된 게시글 - 댓글 조회만"),M.SCMBoardDtls0001(l.getFieldValue("boardMstrId")))},[m,b,l]),v.useEffect(()=>()=>{console.log("🧹 컴포넌트 언마운트 - 모든 인터벌 정리"),o.current&&(clearInterval(o.current),o.current=null)},[]),v.useEffect(()=>{m==="list"&&a&&(r?.current?.setFormData({menuId:a?.menuId,menuNm:a?.menuNm}),M.SCMBoardMstr0001(1,20))},[m,a]),v.useEffect(()=>{e&&a&&r?.current?.setFormData({menuId:a?.menuId,menuNm:a?.menuNm})},[e,a]);const M={SCMBoardMstr0001:async(k,I)=>{const G=k||n.current?.currentPage||1,U=I||n.current?.pageSize||20,Z={...r?.current?.getFormData(),pageNum:G,pageCount:U};console.log("🔍 서버 모드 페이징 요청:",Z);try{const ne=await Ve.callService("SCMBoardMstr0001",Z,{isPopup:!0});if(ne&&ne.pageList){const ae=ne.pageCnt||0;n.current?.setTotalData(ae),_.current?.addAllData(ne.pageList)}else n.current?.setTotalData(0),_.current?.addAllData([]),console.log("📭 서버 모드 페이징 데이터 없음")}catch(ne){console.error("❌ SCMBoardMstr0001 호출 실패:",ne),y.message.error("데이터 조회 중 오류가 발생했습니다.")}},SCMBoardMstr0003:k=>{Ve.callService("SCMBoardMstr0003",{...k,status:"READY"},{isPopup:!0}).then(I=>{console.log("문의/신고 제출 응답:",I),y.message.success("정상 접수되었습니다."),W()}).catch(I=>{console.error("문의/신고 제출 실패:",I),y.message.error("접수 중 오류가 발생했습니다.")})},SCMBoardMstr0004:k=>{Ve.callService("SCMBoardMstr0004",{boardMstrId:l.getFieldValue("boardMstrId"),...k},{isPopup:!0}).then(I=>{console.log("문의/신고 제출 응답:",I),y.message.success("수정이 완료되었습니다."),W()}).catch(I=>{console.error("문의/신고 변경 실패:",I)})},SCMBoardMstr0005:()=>{Ve.callService("SCMBoardMstr0005",{boardMstrId:l.getFieldValue("boardMstrId")},{isPopup:!0}).then(k=>{console.log("문의/신고 삭제 응답:",k),y.message.success("삭제가 완료되었습니다."),W()})},SCMBoardDtls0001:k=>{S(!0),Ve.callService("SCMBoardDtls0001",{boardMstrId:k},{isPopup:!0,showLoading:!1}).then(I=>{if(I&&I.subList){const G=I.subList.map(U=>({id:U.seq,author:U.userNm||U.regUserId,regUserId:U.regUserId,content:U.content,regDt:U.regDt}));x(G)}else x([])}).catch(I=>{console.error("게시글 댓글 목록 조회 실패:",I),y.message.error("댓글 목록 조회 중 오류가 발생했습니다.")}).finally(()=>{S(!1),q(15)})},SCMBoardDtls0002:(k,I)=>{S(!0),Ve.callService("SCMBoardDtls0002",{boardMstrId:k,content:I},{isPopup:!0,showLoading:!1}).then(G=>{G&&G.result===1?(y.message.success("댓글이 등록되었습니다."),M.SCMBoardDtls0001(k)):y.message.error("댓글 등록에 실패했습니다.")}).catch(G=>{y.message.error("댓글 등록 중 오류가 발생했습니다.")}).finally(()=>{S(!1)})},SCMBoardDtls0003:(k,I)=>{S(!0),Ve.callService("SCMBoardDtls0003",{boardMstrId:k,seq:I},{isPopup:!0,showLoading:!1}).then(G=>{G&&G.result===1?(y.message.success("댓글이 삭제되었습니다."),M.SCMBoardDtls0001(k)):y.message.error("댓글 삭제에 실패했습니다.")}).catch(G=>{y.message.error("댓글 삭제 중 오류가 발생했습니다.")}).finally(()=>{S(!1)})}},L=()=>{switch(m){case"list":return[{key:"REFRESH",text:"조회",type:"default",onClick:()=>M.SCMBoardMstr0001(),disabled:c},{key:"NEW",text:"신규 등록",type:"primary",onClick:se}];case"detail":return[{key:"BACK",text:"뒤로",type:"default",onClick:te},{key:"EDIT",text:"수정",type:"primary",disabled:!g||b,onClick:()=>l.submit()},{key:"DELETE",text:"삭제",danger:!0,disabled:!g||b,onClick:X}];case"new":return[{key:"SUBMIT",text:"제출",type:"primary",onClick:()=>l.submit(),disabled:c},{key:"CANCEL",text:"취소",type:"default",onClick:J}];default:return[]}};return e?s.jsxs(uv,{title:"게시판",width:1400,height:800,minWidth:600,minHeight:400,onClose:K,buttons:L(),children:[m==="list"&&E(),m==="detail"&&N(),m==="new"&&z()]}):null},Au=(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=Au(o.children,t,o);if(i.node)return i}}return{node:null,ctx:null}},Nu=(e,t)=>{if(!e.children)return!1;for(const r of e.children)if(r.key===t||Nu(r,t))return!0;return!1};function pv({open:e,onClose:t}){const{nodes:r,rootIds:n,addFolder:o,editFolder:i,removeFolder:a,removeMenu:l,moveNode:c}=ct.useFavoriteStore(),u=v.useRef(null),[f,d]=v.useState([]),[g,C]=v.useState([]),[b,w]=v.useState(""),[p,S]=v.useState("ADD"),[m,O]=v.useState(!1),[T,j]=v.useState("");v.useEffect(()=>{e&&C(n)},[e]),v.useEffect(()=>{const $=x(r,n);d($)},[r]),v.useEffect(()=>{m&&T&&(u.current.setFieldValue("prntBkmkId",T),u.current.setFieldValue("prntBkmkNm",r[T]?.bkmkNm??"-")),m&&p==="EDIT"&&(u.current.setFieldValue("bkmkId",T),u.current.setFieldValue("bkmkNm",r[T]?.bkmkNm)),!m&&p=="ADD"&&C($=>[...$,T]),!m&&u.current&&(j("-"),u.current.resetFields())},[m,p,T,r]);const x=($,F)=>{const B=(q,_="-")=>{const D=$[q];if(!D)return null;const H={key:D.bkmkId,type:D.type,title:D.type==="F"?D.bkmkNm:D.menuNm?`${D.menuNm} (${D.menuId})`:D.menuId,parentId:_,sortOrdr:D.sortOrdr??0};if(D.type==="F"){const A=(D.children??[]).map(Y=>B(Y,D.bkmkId)).filter(Boolean);return{...H,children:A}}return H};return F.map(q=>B(q,"-")).filter(Boolean)},R=()=>{if(S("ADD"),!b){j("-"),O(!0);return}const $=r[b];if(!$){j("-"),O(!0);return}$.type==="F"?j($.bkmkId):j($.prntBkmkId),O(!0)};return s.jsxs(y.ConfigProvider,{theme:{components:{Modal:{wireframe:!0}}},children:[s.jsxs(y.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(y.Typography.Text,{strong:!0,style:{fontSize:18},children:[s.jsx(pe.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(y.Button,{color:"blue",variant:"outlined",icon:s.jsx(pe.FolderAddOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:R,children:"새 폴더"}),s.jsxs("div",{children:[s.jsx(y.Tooltip,{title:"펼치기",children:s.jsx(y.Button,{icon:s.jsx(pe.PlusSquareOutlined,{}),style:{marginLeft:"8px",height:28,padding:"0 10px"},onClick:()=>{const $=Object.values(r).filter(F=>F.type==="F").map(F=>F.bkmkId);C($)}})}),s.jsx(y.Tooltip,{title:"접기",children:s.jsx(y.Button,{icon:s.jsx(pe.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(y.Empty,{description:s.jsxs(y.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",s.jsx("br",{}),"새로운 폴더를 생성해보세요."]})}),s.jsx(y.Tree,{blockNode:!0,draggable:!0,allowDrop:({dropNode:$,dropPosition:F})=>{const B=$.type==="F";return F===0?B:!0},onDrop:$=>{const{dragNode:F,node:B,dropPosition:q,dropToGap:_}=$;if(F.key===B.key||Nu(F,B.key))return;let D,H;if(_){const A=Au(f,B.key).ctx,Y=A.index;D=A.parent?A.parent.key:"-",H=q>0?Y+1:Y}else{if(B.type!=="F")return;const A=B.children||[];D=B.key,H=A.length}const P=Ve.getUserId();if(F.type==="F")c({bkmkId:F.key,newPrntBkmkId:D,sortOrdr:H,userId:P}).catch(()=>{y.Modal.error({title:"이동 실패",content:"폴더 이동 중 오류가 발생했어요."})});else{if(D==="-"){y.Modal.warning({title:"이동 불가",content:"메뉴는 최상위로 이동할 수 없어요."});return}c({bkmkId:F.key,newPrntBkmkId:D,sortOrdr:H,userId:P}).catch(()=>{y.Modal.error({title:"이동 실패",content:"메뉴 이동 중 오류가 발생했어요."})})}_===!1&&C(A=>Array.from(new Set([...A,B.key])))},showLine:!0,treeData:f,selectedKeys:[b],expandedKeys:g,onExpand:C,onSelect:$=>w($[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(y.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(pe.PlusOutlined,{style:{opacity:.8},onClick:()=>{S("ADD"),j($.key),O(!0)}}),s.jsx(pe.EditOutlined,{style:{opacity:.8},onClick:()=>{S("EDIT"),j($.key),O(!0)}})]}),s.jsx(pe.DeleteOutlined,{style:{cursor:"pointer",opacity:.5},onClick:()=>{$.type==="F"?y.Modal.confirm({title:"삭제 안내",content:"폴더를 삭제하면 하위 폴더와 메뉴도 모두 삭제됩니다. 삭제하시겠습니까?",centered:!0,onOk:()=>a($.key)}):y.Modal.confirm({title:"삭제 안내",centered:!0,content:"메뉴를 삭제하시겠습니까?",onOk:()=>l($.key)})}})]})]})})]})]}),s.jsx(y.ConfigProvider,{theme:{components:{Modal:{titleColor:p==="ADD"?"#0958d9":"#d46b08",headerBg:p==="ADD"?"#e6f4ff":"#fff7e6"}}},children:s.jsx(y.Modal,{title:s.jsxs(s.Fragment,{children:[p==="ADD"?s.jsx(pe.FolderAddOutlined,{style:{marginRight:10,fontSize:18,color:"#1677ff"}}):s.jsx(pe.EditOutlined,{style:{marginRight:10,fontSize:18,color:"#d46b08"}}),s.jsxs(y.Typography.Text,{strong:!0,style:{fontSize:17},children:["폴더",p==="ADD"?" 추가":"명 수정"]})]}),open:m,okText:"저장",onOk:()=>{const $=u.current.getFieldValue("bkmkNm"),F=Ve.getUserId();if(p==="ADD"){const B=__SYS_CD__??"KH",q=u.current.getFieldValue("prntBkmkId");o($,q,B,F).then(()=>{O(!1)})}else{const B=u.current.getFieldValue("bkmkId");i(B,F,$).then(()=>{O(!1)})}},centered:!0,width:400,onCancel:()=>O(!1),children:s.jsxs(Pe.BwgForm,{ref:u,children:[s.jsx(Pe.BwgInput,{itemProps:{name:p==="EDIT"?"bkmkId":"prntBkmkId",hidden:!0}}),s.jsx(Pe.BwgInput,{itemProps:{label:"상위 폴더명",name:"prntBkmkNm",hidden:T==="-"||p==="EDIT"},inputProps:{disabled:!0}}),s.jsx(Pe.BwgInput,{itemProps:{label:"폴더명",name:"bkmkNm"}})]})})})]})}function mv({triggerIcon:e}){const[t,r]=v.useState(!1),[n,o]=v.useState(""),[i,a]=v.useState(null),[l,c]=v.useState([]),[u,f]=v.useState([]),[d,g]=v.useState(!1),[C,b]=v.useState(!1),[w,p]=v.useState(!1),[S,m]=v.useState(null);ct.useFavoriteStore(V=>V.treeNodes);const{nodes:O,getPrntBkmkIdByMenuId:T,getNodeByMenuId:j,isMenuBookmarked:x,removeMenuByMenuId:R,addMenuToFolder:$,convertToAntTreeData:F}=ct.useFavoriteStore(),B=ct.useFavoriteStore(V=>V.rootIds),q=v.useMemo(()=>F(O,B,n,!0),[O,B,n]),_=ct.useMenuViewStore(V=>V.activeMenuItem??{menuId:"",menuNm:""}),D=v.useMemo(()=>{if(!_?.menuId)return"";const V=j(_.menuId);if(!V)return"";if(V.fullPath)return V.fullPath;const X=J=>{const K=O[J];if(!K)return"";if(K.prntBkmkId==="-")return`${K.bkmkNm||_?.menuNm}`;const te=X(K.prntBkmkId);return te?`${te} > ${K.bkmkNm||_?.menuNm}`:K.bkmkNm||_?.menuNm};return console.log("bookmarkNode ::::: ",V),console.log(X(V.bkmkId)),X(V.bkmkId)},[_?.menuId,j,O]);v.useEffect(()=>{t&&_?.menuId&&x(_.menuId)?f([T(_.menuId)]):t&&_?.menuId&&!x(_.menuId)?f(B):(f([]),c([]),m(null),p(!1))},[t,_?.menuId,x,T]),v.useEffect(()=>{if(!w||!_?.menuId)return;const V=T(_.menuId);!V||!O[V]||(o(""),c([V]),m(V))},[w,_?.menuId,O,T]);const H=(V,X)=>{$(V,X).then(J=>{console.log("AddMenuToFolder ::::: ",J),J||f(K=>K.includes(V)?K:[...K,V])})},P=V=>{R(V)},A=async V=>{_?.menuId&&(await R(_.menuId),await $(V,_),p(!1),m(null),f(X=>X.includes(V)?X:[...X,V]))},Y=()=>s.jsxs("div",{style:{width:360},children:[s.jsx("div",{style:{padding:12,borderBottom:"1px solid #f0f0f0"},children:s.jsxs(y.Space,{direction:"vertical",style:{width:"100%"},children:[s.jsxs(y.Typography.Text,{strong:!0,style:{fontSize:18},children:[s.jsx(y.Button,{type:"text",icon:s.jsx(pe.ArrowLeftOutlined,{}),onClick:()=>p(!1),style:{marginRight:4}}),"폴더 변경"]}),_&&s.jsxs(y.Typography.Text,{type:"secondary",children:["현재 화면: ",s.jsx("b",{children:_.menuNm})," ",s.jsxs("span",{style:{opacity:.7},children:["(",_.menuId,")"]})]})]})}),W(),s.jsxs("div",{style:{padding:12,borderTop:"1px solid #f0f0f0",display:"flex",justifyContent:"flex-end",gap:8},children:[s.jsx(y.Button,{onClick:()=>{p(!1),m(null)},children:"취소"}),s.jsx(y.Button,{type:"primary",disabled:!S,onClick:()=>S&&A(String(S)),children:"이동"})]})]}),W=()=>s.jsxs("div",{style:{maxHeight:360,overflow:"auto",padding:8},children:[s.jsxs(y.Space,{style:{width:"100%",marginBottom:8,display:"flex",justifyContent:"space-between"},children:[s.jsx(y.Input,{placeholder:"검색(폴더명)",prefix:s.jsx(pe.SearchOutlined,{}),allowClear:!0,value:n,onChange:V=>o(V.target.value),style:{width:"260px",height:28}}),s.jsxs(y.ConfigProvider,{theme:{components:{Button:{defaultHoverColor:"#6f6f6f",defaultHoverBorderColor:"#6f6f6f"}}},children:[s.jsx(y.Button,{icon:s.jsx(pe.PlusOutlined,{}),size:"small",style:{margin:"0 4px",fontSize:12},onClick:()=>{const V=Object.values(O).filter(X=>X.type==="F").map(X=>X.bkmkId);f(V)},title:"모두 확장"}),s.jsx(y.Button,{icon:s.jsx(pe.MinusOutlined,{}),size:"small",style:{margin:"0 4px",fontSize:12},onClick:()=>f([]),title:"모두 축소"})]})]}),q.length===0?s.jsx(y.Empty,{description:s.jsxs(y.Typography.Text,{type:"secondary",style:{fontSize:13},children:["아직 저장된 북마크가 없습니다.",s.jsx("br",{}),"새로운 폴더를 만들어 시작해보세요."]}),image:y.Empty.PRESENTED_IMAGE_SIMPLE}):s.jsx(y.Tree,{blockNode:!0,showLine:!0,treeData:q,selectedKeys:l,expandedKeys:u,onExpand:f,onSelect:V=>{c(V),m(V[0])},autoExpandParent:!0,titleRender:V=>{const X=String(V.key),J=i===X;return s.jsxs("div",{onMouseEnter:()=>a(X),onMouseLeave:()=>a(null),style:{display:"flex",alignItems:"center",justifyContent:"space-between",gap:8},children:[s.jsx("div",{children:V.title}),!x(_?.menuId)&&_&&J&&s.jsx(y.Button,{size:"small",type:"link",onClick:K=>{K.stopPropagation(),H(X,_)},children:"+ 현재화면 추가"})]})}})]});return s.jsxs(s.Fragment,{children:[s.jsx(y.Popover,{open:t&&!d,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:w?Y():s.jsxs("div",{style:{width:360},children:[s.jsx("div",{style:{padding:12,borderBottom:"1px solid #f0f0f0"},children:s.jsxs(y.Space,{direction:"vertical",style:{width:"100%"},children:[s.jsxs(y.Typography.Text,{strong:!0,style:{fontSize:18},children:["📌 북마크"," ",x(_?.menuId)?"저장됨":"추가"]}),_&&s.jsxs(y.Typography.Text,{type:"secondary",children:["현재 화면: ",s.jsx("b",{children:_.menuNm})," ",s.jsxs("span",{style:{opacity:.7},children:["(",_.menuId,")"]})]})]})}),x(_?.menuId)?s.jsxs("div",{style:{padding:12,margin:8,borderRadius:8,backgroundColor:"#f5f5f5"},children:[s.jsx(y.Typography.Text,{type:"secondary",style:{fontSize:12},children:"저장 위치"}),s.jsx("div",{style:{marginTop:4},children:`📁 > ${D}`||"알 수 없음"})]}):W(),s.jsxs(dr,{style:{padding:8,borderTop:"1px solid #f0f0f0"},layoutAlign:"right",children:[_&&!x(_.menuId)?s.jsx(y.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},type:"primary",icon:s.jsx(pe.PlusOutlined,{}),onClick:()=>{const V=String(l[0]);let X="-";V&&O[V]&&(X=O[V].type=="M"?O[V].prntBkmkId:V),H(X,_)},children:"추가"}):s.jsxs(dr,{layoutAlign:"between",children:[s.jsx(y.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},icon:s.jsx(pe.FolderOpenOutlined,{}),onClick:()=>p(!0),children:"폴더 변경"}),s.jsx(y.Button,{style:{height:"28px",padding:"0 10px",margin:"0 4px"},color:"danger",variant:"solid",icon:s.jsx(pe.MinusOutlined,{}),onClick:()=>P(_.menuId),children:"삭제"})]}),s.jsx(y.Button,{type:"text",style:{height:"28px",padding:"0 10px",margin:"0 4px"},icon:s.jsx(pe.SettingOutlined,{}),onClick:()=>{b(t),g(!0)},children:"관리"})]})]}),children:s.jsx("span",{style:{cursor:"pointer",display:"inline-flex",alignItems:"center"},children:e})}),s.jsx(pv,{open:d,onClose:()=>{g(!1),C&&r(!0)}})]})}const vv=({reqRows:e,subRows:t})=>{const{searchBoxRef:r}=Mr.useSearchBox();return s.jsx(Co,{ref:r,reqRows:e,subRows:t})},bv=({children:e,searchBox:t,title:r,preRenderEvents:n=[],postRenderEvents:o=[],loading:i=!1,error:a=null,grantEvent:l={},customEvent:c={}})=>{const u=Mr.useServiceCodeValue("AUTH_BTNS"),{user:f}=ct.useUserStore(),{activeMenuItem:d}=ct.useMenuViewStore(),{loadFavoritesIfNeeded:g,isMenuBookmarked:C}=ct.useFavoriteStore(),{loading:b}=ct.useLoadingStore(),[w,p]=v.useState({isInitialized:!1,isReady:!1,error:null,loading:!0,preRenderComplete:!1,postRenderComplete:!1});v.useState(null);const[S,m]=v.useState([]),[O,T]=v.useState([]),[j,x]=v.useState(!1),R=async()=>{if(n.length===0){p(P=>({...P,preRenderComplete:!0}));return}try{for(const P of n)await P();p(P=>({...P,preRenderComplete:!0}))}catch(P){p(A=>({...A,error:P instanceof Error?P.message:"사전 렌더링 실패",preRenderComplete:!0}))}},$=async()=>{if(o.length===0){p(P=>({...P,postRenderComplete:!0}));return}try{for(const P of o)await P();p(P=>({...P,postRenderComplete:!0}))}catch(P){p(A=>({...A,error:P instanceof Error?P.message:"사후 렌더링 실패",postRenderComplete:!0}))}};v.useEffect(()=>{if(w.isInitialized)return;(async()=>{try{try{console.log("SCMSIGN00202 권한 서비스 호출 시작");const A=await Ve.callService(u,{crprCd:f?.crprCd,userId:f?.userId,menuId:d?.menuId});if(console.log("SCMSIGN00202 권한 서비스 응답:",A),A?.data&&A.data.length>0){const Y=A.data?.filter(V=>V.grpId?.toUpperCase()==="DEFAULT").map(V=>({id:V.btnId,label:V.btnNm,type:"default",disabled:!1,onClick:l[V.btnId]||void 0}))||[];m(Y);const W=A.data?.filter(V=>V.grpId?.toUpperCase()==="CUSTOM").map(V=>({id:V.btnId,label:V.btnNm,type:"default",disabled:!1,onClick:c[V.btnId]||void 0}))||[];T(W)}else m([]),T([])}catch(A){console.error("SCMSIGN00202 권한 서비스 호출 실패:",A),m([]),T([])}await R(),p(A=>({...A,isInitialized:!0,loading:!1}))}catch(A){console.error("BwgView 초기화 실패:",A),p(Y=>({...Y,isInitialized:!0,loading:!1}))}})()},[]),v.useEffect(()=>{f?.userId&&g(f.userId)},[g,f?.userId]),v.useEffect(()=>{w.isInitialized&&w.preRenderComplete&&!w.isReady&&setTimeout(async()=>{await $(),p(A=>({...A,isReady:!0}))},100)},[w.isInitialized,w.preRenderComplete,w.isReady]),v.useEffect(()=>{a&&p(P=>({...P,error:a}))},[a]);const F=()=>s.jsxs("div",{className:"bwgview-header-container",children:[s.jsxs("div",{className:"bwgview-header",children:[s.jsx("div",{className:"bwgview-header-left",children:H.LEFT}),s.jsx("div",{className:"bwgview-header-right",children:H.RIGHT})]}),t&&s.jsx(vv,{reqRows:t.reqRows,subRows:t.subRows})]});if(v.useEffect(()=>{},[f,d]),w.error||a)return s.jsx("div",{style:{padding:"24px"},children:s.jsx(y.Alert,{message:"오류 발생",description:w.error||a,type:"error",showIcon:!0})});const B=()=>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"})}),q=()=>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"})}),_=P=>s.jsx(pe,{component:B,...P}),D=P=>s.jsx(pe,{component:q,...P}),H={LEFT:s.jsx("div",{className:"bwgview-header-left",children:s.jsxs(y.ConfigProvider,{theme:{components:{Tag:{controlHeight:28,controlHeightLG:28,controlHeightSM:28,controlHeightXS:28}}},children:[s.jsxs(y.Space,{children:[d&&s.jsx(mv,{triggerIcon:C(d.menuId)?s.jsx(_,{className:"bookmark-icon",style:{color:"#faad14"}}):s.jsx(D,{className:"bookmark-icon"})}),s.jsxs(y.Space.Compact,{style:{alignItems:"center"},children:[s.jsx("span",{className:"pageMenuNm",children:(()=>{let P="";return r?.useMenuTitle&&d?P=d.menuNm:r?.text?P=r.text:d&&(P=d.menuPrntId==="CM00"?d.menuNm.substring(d.menuNm.indexOf(" ")+1):d.menuNm),r?.prefix&&(P=`${r.prefix} ${P}`),r?.suffix&&(P=`${P} ${r.suffix}`),P})()}),d?.menuNo&&s.jsx(y.Tag,{className:"page-num-tag",children:d?.menuNo}),s.jsx(y.Tooltip,{title:"도움말",color:"geekblue",children:s.jsx(y.Button,{variant:"text",type:"text",className:"menu-help-btn",icon:s.jsx(pe.QuestionCircleTwoTone,{twoToneColor:"orange"})})}),s.jsx(y.Tooltip,{title:"게시판",color:"geekblue",children:s.jsx(y.Button,{variant:"text",type:"text",onClick:()=>x(!0),icon:s.jsx(pe.BugFilled,{style:{color:"#1890ff"}})})})]})]}),d?.scrnId&&Ve.isLocal&&s.jsx(y.Tag,{style:{marginLeft:8,fontSize:13,fontWeight:500,display:"flex"},children:s.jsx(cv,{copyable:!0,style:{display:"inherit",justifyContent:"center",alignItems:"center",marginBottom:0},children:d?.scrnId})})]})}),RIGHT:s.jsx("div",{className:"bwgview-header-right",children:s.jsx(y.ConfigProvider,{theme:{components:{Space:{padding:8}}},children:s.jsxs(y.Space,{children:[s.jsx(y.Flex,{gap:8,children:O.map(P=>s.jsx(y.Button,{type:P.type,disabled:P.disabled,className:"bwg-btn",onClick:()=>{typeof P.onClick=="function"&&P.onClick()},children:P.label},P.id))}),s.jsx(y.ConfigProvider,{theme:{components:{Divider:{verticalMarginInline:0}}},children:s.jsx(y.Divider,{type:"vertical"})}),s.jsx(y.Flex,{gap:8,className:"permission-buttons",children:S.length>0?S.map(P=>s.jsx(y.Button,{type:P.type,disabled:P.disabled,className:"bwg-btn",onClick:()=>{typeof P.onClick=="function"&&P.onClick()},children:P.label},P.id)):s.jsx(y.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:[F(),s.jsxs("div",{className:"bwgview-content",children:[s.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:e}),(w.loading||i||b)&&s.jsx(Sl.LoadingContainer,{text:b?"처리 중...":"화면 로드 중..."})]}),s.jsx(gv,{open:j,onClose:()=>x(!1)})]})},yv=({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:y.theme.defaultAlgorithm},o={...n,...t,token:{...n.token,...t?.token}};return s.jsx(y.ConfigProvider,{locale:Tl,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})},xv="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",Cv="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",wv="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",Sv=({children:e})=>{const[t,r]=v.useState({x:0,y:0}),[n,o]=v.useState(!1),[i,a]=v.useState({x:0,y:0}),[l,c]=v.useState(!1),[u,f]=v.useState(!0),d=v.useRef(null),g=[{id:"overtime",title:"시간 외 근무신청",icon:s.jsx("img",{src:wv,alt:"시간외근무신청",className:"quick-overtime"}),color:"#722ed1",onClick:()=>{console.log("시간 외 근무 신청 클릭")}},{id:"business-trip",title:"출장신청",icon:s.jsx("img",{src:xv,alt:"출장신청",className:"quick-business-trip"}),color:"#1890ff",onClick:()=>{console.log("출장 신청 클릭")}},{id:"vacation",title:"휴가신청",icon:s.jsx("img",{src:Cv,alt:"휴가신청",className:"quick-holiday"}),color:"#eb2f96",onClick:()=>{console.log("휴가 신청 클릭")}},{id:"document",title:"문서신청",icon:s.jsx(pe.FileTextOutlined,{}),color:"#52c41a",onClick:()=>{console.log("문서 신청 클릭")}},{id:"profile",title:"인사정보",icon:s.jsx(pe.UserOutlined,{}),color:"#fa8c16",onClick:()=>{console.log("인사 정보 클릭")}},{id:"settings",title:"설정",icon:s.jsx(pe.SettingOutlined,{}),color:"#13c2c2",onClick:()=>{console.log("설정 클릭")}}];v.useEffect(()=>{const m=()=>{const O=window.innerHeight,j=Math.max(64,(O-300)/3);r({x:0,y:j});const x=O/2;f(j<x)};return m(),window.addEventListener("resize",m),()=>window.removeEventListener("resize",m)},[]);const C=m=>{if(m.preventDefault(),m.stopPropagation(),d.current){const O=d.current.getBoundingClientRect();a({x:m.clientX-O.left,y:m.clientY-O.top}),o(!0)}},b=m=>{if(n){const O=m.clientY-i.y,T=window.innerHeight-24,x=Math.max(64,Math.min(T,O));r({x:t.x,y:x});const R=window.innerHeight/2;f(x<R)}},w=()=>{o(!1)},p=()=>{c(!l)},S=m=>{m.onClick&&m.onClick()};return v.useEffect(()=>{if(n)return document.addEventListener("mousemove",b),document.addEventListener("mouseup",w),()=>{document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",w)}},[n,i]),s.jsxs("div",{className:"quick-tab-container",ref:d,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:u?0:"auto",bottom:u?"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:u?`calc(100vh - ${t.y+12}px)`:`${t.y-12}px`,transform:l?"translateX(0)":"translateX(calc(100% + 100px))",transition:"transform 0.3s ease",marginTop:u&&t.y<100?"32px":"0",marginBottom:!u&&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:u?`calc(100vh - ${t.y+120}px)`:`${t.y-60}px`,padding:"14px 0"},children:g.map(m=>s.jsx(y.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:()=>S(m),onMouseEnter:O=>{},onMouseLeave:O=>{},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:m.color,marginBottom:"5px"},children:m.icon}),s.jsx("div",{className:"quick-tab-items-title",children:m.title})]})},m.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:m=>{},onMouseLeave:m=>{},children:s.jsx(pe.PlusOutlined,{style:{color:"#CDC4FF",fontSize:"15px"}})})]}),s.jsx("div",{className:"quick-tab-drag-btn",style:{cursor:n?"grabbing":"grab",zIndex:1001},onMouseDown:m=>C(m)}),s.jsx(y.Button,{className:`quick-tab-toggle-btn ${l?"expanded":""}`,type:"default",style:{border:"0",backgroundColor:"transparent"},onClick:p})]})},Ev=()=>{const{verifyWithToken:e}=Mr.useAuth(),t=Aa.useNavigate(),r=Aa.useLocation();return v.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(y.Spin,{tip:"인증중..."})})};exports.BwgButtonGroup=Gu;exports.BwgCmptArea=Yu;exports.BwgCol=Xu;exports.BwgConfigProvider=ca;exports.BwgDetail=ld;exports.BwgDrawer=cd;exports.BwgEditor=Ti;exports.BwgGrid=Ol;exports.BwgInfoArea=Cd;exports.BwgPagination=wo;exports.BwgPopup=Sd;exports.BwgRow=Ed;exports.BwgSpace=Rd;exports.BwgTable=jd;exports.BwgTabs=$d;exports.BwgTitleBox=xo;exports.BwgView=bv;exports.ContentBox=cr;exports.ContentLayOut=dr;exports.GlobalConfigProvider=yv;exports.QuickServiceToggle=Sv;exports.SSOHandler=Ev;exports.SearchBox=Co;exports.commonjsGlobal=Uu;exports.createBwgGridRenderer=Jn;exports.getAugmentedNamespace=Ku;exports.getDefaultExportFromCjs=bo;