@bwg-ui/core 1.1.14 → 1.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{SSOHandler-rq0OGrpX.cjs → SSOHandler-DZeC8Xgh.cjs} +43 -43
- package/dist/chunks/SSOHandler-DZeC8Xgh.cjs.map +1 -0
- package/dist/chunks/{SSOHandler-CZHPiuEh.js → SSOHandler-DrKRTb6h.js} +3383 -3344
- package/dist/chunks/SSOHandler-DrKRTb6h.js.map +1 -0
- package/dist/components/common/BwgEditor.d.ts +46 -5
- package/dist/components/common/BwgEditor.d.ts.map +1 -1
- package/dist/components/common/index.cjs +1 -1
- package/dist/components/common/index.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +16 -16
- package/dist/styles/index.css +3 -0
- package/dist/types/bwg-global.d.ts +4 -0
- package/package.json +1 -1
- package/dist/chunks/SSOHandler-CZHPiuEh.js.map +0 -1
- package/dist/chunks/SSOHandler-rq0OGrpX.cjs.map +0 -1
- package/dist/types/global.d.ts +0 -2
- /package/dist/types/{images.d.ts → bwg-images.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const Y=require("./jsx-runtime-CeSfJrVB.cjs"),U=require("react"),he=require("antd"),ft=require("@ant-design/icons"),mt=require("./apiUtils-Cbg6NQLv.cjs"),Nl=require("./SearchBoxContext-Cpr9xa1S.cjs"),er=require("./_commonjsHelpers-DKOUU3wS.cjs"),In=require("react-dom"),St=require("realgrid"),du=require("realgrid-react"),Mp=require("react-rnd"),Ip=require("./favoriteStore-3YceyayF.cjs"),Lp=require("./LoadingOverlay-NX9Mo_6n.cjs"),$p=require("./envUtils-CduTHoHu.cjs"),Fp=require("./AuthContext-CXng9fj0.cjs"),hu=require("react-router-dom");function Gd(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const I=Gd(U),kn=Gd(ft),Dp=({grpId:e,menuId:r,btnEvent:t,layout:i="horizontal",size:n="middle",style:o,className:a,onButtonClick:s})=>{const c=Nl.useServiceCodeValue("AUTH_BTNS"),{user:d}=mt.useUserStore(),[f,l]=U.useState([]),[u,h]=U.useState(!0),[p,m]=U.useState(null),[v,y]=U.useState({}),g=async()=>{try{h(!0),m(null),console.log("@@ 커스텀버튼그룹 영역 조회시작",e,r);const x=await mt.callService(c,{userId:d?.userId,crprCd:d?.crprCd,grpId:e.toUpperCase(),menuId:r});if(console.log("@@ 커스텀버튼그룹 영역 조회결과",x),x?.data&&Array.isArray(x.data)){const _=x.data.sort((E,C)=>E.btnSq-C.btnSq);l(_)}else l([])}catch(x){console.error("버튼 권한 조회 실패:",x),m("버튼 권한을 조회하는 중 오류가 발생했습니다."),l([])}finally{h(!1)}};U.useEffect(()=>{g()},[e,r]);const w=async(x,_)=>{y(E=>({...E,[x]:{loading:!0}}));try{const E=t?.[x];E?await E():console.warn(`버튼 이벤트 핸들러를 찾을 수 없습니다: ${x}`),s&&s(x,_,e)}catch(E){console.error("버튼 이벤트 실행 실패:",E),he.message.error("작업 중 오류가 발생했습니다.")}finally{y(E=>({...E,[x]:{loading:!1}}))}},b=x=>{const _=v[x.btnId]||{loading:!1};return Y.jsxRuntimeExports.jsxs(he.Button,{size:n,loading:_.loading,onClick:()=>w(x.btnId,x.btnNm),className:"bwg-btn",style:{...x.iconVal&&{display:"flex",alignItems:"center",gap:"4px"}},children:[x.iconVal&&Y.jsxRuntimeExports.jsxs(Y.jsxRuntimeExports.Fragment,{children:[x.iconType==="ANTD"&&kn[x.iconVal]&&U.createElement(kn[x.iconVal],{style:{fontSize:"14px"}}),x.iconType!=="ANTD"&&Y.jsxRuntimeExports.jsx("span",{className:x.iconVal,style:{fontSize:"14px"}})]}),x.btnNm]},x.btnId)};return u?Y.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:Y.jsxRuntimeExports.jsx(he.Space,{direction:i==="vertical"?"vertical":"horizontal",size:n,children:Y.jsxRuntimeExports.jsx(he.Button,{loading:!0,size:n,children:"권한 조회 중..."})})}):p?Y.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:Y.jsxRuntimeExports.jsx(he.Alert,{message:"권한 오류",description:p,type:"error",showIcon:!0,style:{minHeight:"40px"}})}):f.length===0?Y.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:Y.jsxRuntimeExports.jsx(he.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})}):Y.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:Y.jsxRuntimeExports.jsx(he.Flex,{gap:3,children:f.map(b)})})},qp=({content:e,layout:r="flex",gap:t=16,minWidth:i=120,maxWidth:n=300,style:o,className:a})=>{if(!(Array.isArray(e)&&e.length>0&&Array.isArray(e[0])))return Y.jsxRuntimeExports.jsx("div",{style:o,className:a,children:e});const c=e.filter(h=>h&&h.length>0),d=U.useMemo(()=>{const h=c[0];if(!h||h.length===0)return{totalCols:0,baseWidth:0};let p=0;const m=[];h.forEach(y=>{const g=y,w=g?.props?.["data-colspan"]?parseInt(String(g.props["data-colspan"])):1;p+=w,m.push(w)});const v=p>0?100/p:0;return{totalCols:p,baseWidth:v,componentWidths:m}},[c]),f=(h,p,m)=>{const v=h,y=v?.props?.["data-colspan"]?parseInt(String(v.props["data-colspan"])):1;switch(r){case"equal":return 100/m;case"auto":return 100/m;case"grid":return 100/d.totalCols*y;case"flex":default:const g=d.baseWidth*y;return Math.max(i,Math.min(n,g))}},l=h=>{if(!h||typeof h!="object")return h;const p=h;if(!p.props)return h;const v={...p.props.style||{},width:"100%"};return U.cloneElement(p,{...p.props,style:v})},u=(h,p)=>{if(!h||h.length===0)return null;const m=h.length;return r==="grid"?Y.jsxRuntimeExports.jsx("div",{className:"erp-cmm-form",style:{display:"grid",gridTemplateColumns:`repeat(${d.totalCols}, 1fr)`,gap:`${t}px`,width:"100%"},children:h.map((v,y)=>{const g=v?.props?.["data-colspan"]?parseInt(String(v.props["data-colspan"])):1,w=l(v);return Y.jsxRuntimeExports.jsx("div",{style:{gridColumn:`span ${g}`,minWidth:`${i}px`},className:"form-component-wrapper",children:w},`row-${p}-col-${y}`)})},`row-${p}`):Y.jsxRuntimeExports.jsx(he.Flex,{gap:t,className:"erp-cmm-form",wrap:r==="auto"?"wrap":"nowrap",style:{width:"100%"},children:h.map((v,y)=>{const g=f(v,y,m),w=l(v),b=r==="flex"?{width:`${g}px`,minWidth:`${i}px`,maxWidth:`${n}px`,flexShrink:0}:{width:`${g}%`,minWidth:`${i}px`};return Y.jsxRuntimeExports.jsx("div",{style:b,className:"form-component-wrapper",children:w},`row-${p}-col-${y}`)})},`row-${p}`)};return Y.jsxRuntimeExports.jsx(he.Flex,{gap:"small",vertical:!0,style:o,className:a,children:c.map((h,p)=>u(h,p+1))})},Bp=({children:e,...r})=>Y.jsxRuntimeExports.jsx(he.Col,{...r,className:"bwg-col",children:e});var mn={},Co={exports:{}},vu;function Ki(){return vu||(vu=1,(function(e){function r(t){return t&&t.__esModule?t:{default:t}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Co)),Co.exports}var yn={},pu;function Vp(){if(pu)return yn;pu=1,Object.defineProperty(yn,"__esModule",{value:!0}),yn.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 yn.default=e,yn}var bn={},xn={},wn={},Oo={exports:{}},Ro={exports:{}},Ao={exports:{}},To={exports:{}},gu;function Yd(){return gu||(gu=1,(function(e){function r(t){"@babel/helpers - typeof";return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(To)),To.exports}var Po={exports:{}},mu;function Hp(){return mu||(mu=1,(function(e){var r=Yd().default;function t(i,n){if(r(i)!="object"||!i)return i;var o=i[Symbol.toPrimitive];if(o!==void 0){var a=o.call(i,n||"default");if(r(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Po)),Po.exports}var yu;function zp(){return yu||(yu=1,(function(e){var r=Yd().default,t=Hp();function i(n){var o=t(n,"string");return r(o)=="symbol"?o:o+""}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(Ao)),Ao.exports}var bu;function Up(){return bu||(bu=1,(function(e){var r=zp();function t(i,n,o){return(n=r(n))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o,i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Ro)),Ro.exports}var xu;function Wp(){return xu||(xu=1,(function(e){var r=Up();function t(n,o){var a=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);o&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),a.push.apply(a,s)}return a}function i(n){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?t(Object(a),!0).forEach(function(s){r(n,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach(function(s){Object.defineProperty(n,s,Object.getOwnPropertyDescriptor(a,s))})}return n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(Oo)),Oo.exports}var En={},wu;function Kp(){return wu||(wu=1,Object.defineProperty(En,"__esModule",{value:!0}),En.commonLocale=void 0,En.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),En}var Eu;function Gp(){if(Eu)return wn;Eu=1;var e=Ki().default;Object.defineProperty(wn,"__esModule",{value:!0}),wn.default=void 0;var r=e(Wp()),t=Kp(),i=(0,r.default)((0,r.default)({},t.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 wn.default=i,wn}var _n={},_u;function Xd(){if(_u)return _n;_u=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.default=void 0;const e={placeholder:"시간 선택",rangePlaceholder:["시작 시간","종료 시간"]};return _n.default=e,_n}var Su;function Zd(){if(Su)return xn;Su=1;var e=Ki().default;Object.defineProperty(xn,"__esModule",{value:!0}),xn.default=void 0;var r=e(Gp()),t=e(Xd());const i={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월"]},r.default),timePickerLocale:Object.assign({},t.default)};return xn.default=i,xn}var Cu;function Yp(){if(Cu)return bn;Cu=1;var e=Ki().default;Object.defineProperty(bn,"__esModule",{value:!0}),bn.default=void 0;var r=e(Zd());return bn.default=r.default,bn}var Ou;function Xp(){if(Ou)return mn;Ou=1;var e=Ki().default;Object.defineProperty(mn,"__esModule",{value:!0}),mn.default=void 0;var r=e(Vp()),t=e(Yp()),i=e(Zd()),n=e(Xd());const o="${label} 유효하지 않은 ${type}",a={locale:"ko",Pagination:r.default,DatePicker:i.default,TimePicker:n.default,Calendar:t.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:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},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 mn.default=a,mn}var ko,Ru;function Zp(){return Ru||(Ru=1,ko=Xp()),ko}var Qp=Zp();const Qd=er.getDefaultExportFromCjs(Qp),Jd=({children:e,customTheme:r,customComponentSize:t="middle",layout:i="comfortable",getPopupContainer:n})=>{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:he.theme.defaultAlgorithm};switch(i){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}}}})(),s={...a,...r,token:{...a.token,...r?.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)"},...r?.components??{}}};return Y.jsxRuntimeExports.jsx(he.ConfigProvider,{locale:Qd,theme:s,componentSize:t,space:{size:t},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},getPopupContainer:n,children:e})},Jp=({children:e})=>{const{activeDetailItem:r}=mt.useMenuViewStore();return Y.jsxRuntimeExports.jsx("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:Y.jsxRuntimeExports.jsx("div",{className:"bwgview-content",children:Y.jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[Y.jsxRuntimeExports.jsx(he.Breadcrumb,{separator:">",items:[{title:r?.prntInfo?.menuNm},{title:r?.viewLabel}]}),e]})})})},Ml=({title:e,icons:r,tooltip:t,iconVisible:i=!0,paddingBottom:n=0,marginBottom:o=0,children:a})=>{const s=kn.AppstoreTwoTone;return U.useMemo(()=>r?.type==="antd"&&r.icon&&kn[r.icon]||s,[r?.type,r?.icon]),Y.jsxRuntimeExports.jsx(he.Flex,{vertical:!0,style:{width:"100%"},children:Y.jsxRuntimeExports.jsxs("div",{className:`bwg-title-box ${n?`pb${n}`:""} ${o?`mb${o}`:""}`,style:{display:"flex",justifyContent:"space-between"},children:[Y.jsxRuntimeExports.jsx("div",{className:"bwg-title-box-left",children:Y.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[Y.jsxRuntimeExports.jsx(he.Typography.Title,{level:4,children:Y.jsxRuntimeExports.jsx("span",{children:e})}),t&&Y.jsxRuntimeExports.jsx(he.Tooltip,{title:t.title,placement:t.placement,children:Y.jsxRuntimeExports.jsx(kn.QuestionCircleTwoTone,{style:{marginLeft:5}})})]})}),Y.jsxRuntimeExports.jsx("div",{className:"bwg-title-box-right",children:Y.jsxRuntimeExports.jsx(he.Flex,{gap:6,children:a})})]})})},{Panel:Au}=he.Collapse,Il=U.forwardRef(({reqRows:e,subRows:r,border:t=!1,labelDisplay:i,header:n},o)=>{const[a]=he.Form.useForm(),[s,c]=U.useState("1"),d=()=>i?{flex:i.md||i.lg||i.sm||"100px"}:{flex:"100px"};U.useImperativeHandle(o,()=>({getFormData:()=>a.getFieldsValue(),setFormData:l=>{a.setFieldsValue(l)},resetForm:()=>{a.resetFields()},validateForm:async()=>{try{return{success:!0,data:await a.validateFields()}}catch(l){return{success:!1,error:l}}}}));const f=()=>{c(l=>l.includes("subRows")?l.filter(u=>u!=="subRows"):[...l,"subRows"])};return console.log({reqRows:e,subRows:r}),Y.jsxRuntimeExports.jsxs("div",{style:t?{border:"1px solid #ddd",padding:"10px 12px",borderRadius:"8px",marginBottom:"10px"}:{},children:[n&&Y.jsxRuntimeExports.jsx(Ml,{title:n.title,children:n.buttons}),Y.jsxRuntimeExports.jsx(he.Form,{form:a,layout:"inline",className:"bwgview-header-form",labelCol:d(),labelAlign:"left",children:Y.jsxRuntimeExports.jsxs("div",{style:{position:"relative",width:"100%"},children:[r&&Y.jsxRuntimeExports.jsx("div",{style:{position:"absolute",top:"15px",left:"-9px",zIndex:10},children:s.includes("subRows")?Y.jsxRuntimeExports.jsx(he.Tooltip,{title:"접기",children:Y.jsxRuntimeExports.jsx("span",{className:"search-collapsed-arrow",onClick:f,children:Y.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:Y.jsxRuntimeExports.jsx("path",{d:"M5.28321 0.986589C4.88285 0.482264 4.11715 0.482265 3.71679 0.986589L1.0243 4.37824C0.50404 5.0336 0.970753 6 1.80751 6L7.19249 6C8.02925 6 8.49596 5.0336 7.9757 4.37824L5.28321 0.986589Z",fill:"#AEB9C4"})})})}):Y.jsxRuntimeExports.jsx(he.Tooltip,{title:"펼치기",children:Y.jsxRuntimeExports.jsx("span",{className:"search-collapsed-arrow",onClick:f,children:Y.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:Y.jsxRuntimeExports.jsx("path",{d:"M5.28321 5.01341C4.88285 5.51774 4.11715 5.51773 3.71679 5.01341L1.0243 1.62176C0.50404 0.966397 0.970753 1.64312e-07 1.80751 2.37464e-07L7.19249 7.08234e-07C8.02925 7.81386e-07 8.49596 0.966399 7.9757 1.62176L5.28321 5.01341Z",fill:"#AEB9C4"})})})})}),Y.jsxRuntimeExports.jsx(he.ConfigProvider,{theme:{components:{Collapse:{}}},children:Y.jsxRuntimeExports.jsxs(he.Collapse,{activeKey:["reqRows",...s.includes("subRows")?["subRows"]:[]],onChange:c,className:"searchbox-collapse",bordered:!1,ghost:!0,children:[e&&Y.jsxRuntimeExports.jsx(Au,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"disabled",children:e},"reqRows"),r&&Y.jsxRuntimeExports.jsx(Au,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"icon",children:r},"subRows")]})})]})})]})}),eg=({children:e,showSearchBox:r,showCloseButton:t=!0,showEyesButton:i=!1,shotSettingButton:n=!0,styles:o,...a})=>{const[s,c]=U.useState(!0),[d,f]=U.useState(()=>{const y=a.placement;return y==="left"||y==="right"||y==="top"||y==="bottom"?y:"bottom"}),[l,u]=U.useState(!1),p=(y=>{const g={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(y){case"bottom":return{...g,wrapper:{...g.wrapper,borderRadius:"30px 30px 0 0"},content:{borderRadius:"30px 30px 0 0"},header:{...g.header,borderRadius:"30px 30px 0 0"}};case"top":return{...g,wrapper:{...g.wrapper,borderRadius:"0 0 30px 30px"},content:{borderRadius:"0 0 30px 30px"},header:{...g.header}};case"left":return{...g,wrapper:{...g.wrapper,borderRadius:"0 30px 0px 0"},content:{borderRadius:"0 30px 0px 0"},header:{...g.header,borderRadius:"0 30px 0 0"}};case"right":return{...g,wrapper:{...g.wrapper,borderRadius:"30px 0 0 0"},content:{borderRadius:"30px 0 0 0"},header:{...g.header,borderRadius:"30px 0 0 0"}};default:return g}})(d),m={wrapper:{...p?.wrapper,...o?.wrapper},content:{...p?.content,...o?.content},header:{...p?.header,...o?.header}},v=()=>{const y=[];if(n){const g=[{key:"top",label:"상단",icon:Y.jsxRuntimeExports.jsx(ft.CaretUpOutlined,{})},{key:"right",label:"우측",icon:Y.jsxRuntimeExports.jsx(ft.CaretRightOutlined,{})},{key:"bottom",label:"하단",icon:Y.jsxRuntimeExports.jsx(ft.CaretDownOutlined,{})},{key:"left",label:"좌측",icon:Y.jsxRuntimeExports.jsx(ft.CaretLeftOutlined,{})}],w=Y.jsxRuntimeExports.jsx(he.Space.Compact,{children:g.map(b=>Y.jsxRuntimeExports.jsx(he.Button,{type:d===b.key?"primary":"default",size:"small",onClick:()=>{f(b.key),u(!1)},icon:b.icon},b.key))});y.push(Y.jsxRuntimeExports.jsx(he.Popover,{content:w,trigger:"click",placement:"left",open:l,onOpenChange:u,children:Y.jsxRuntimeExports.jsx(he.Tooltip,{placement:"bottom",title:"위치변경",zIndex:2100,children:Y.jsxRuntimeExports.jsx(he.Button,{icon:Y.jsxRuntimeExports.jsx(ft.SettingOutlined,{}),type:"text",size:"middle"})})},"shotSetting"))}return i&&y.push(Y.jsxRuntimeExports.jsx(he.Tooltip,{placement:"bottom",title:s?"배경 보기":"배경 숨기기",zIndex:2100,children:Y.jsxRuntimeExports.jsx(he.Button,{icon:Y.jsxRuntimeExports.jsx(ft.EyeOutlined,{}),type:"text",size:"middle",onClick:()=>c(!s)})},"eyes")),a.extra&&y.push(Y.jsxRuntimeExports.jsx("div",{style:{margin:"0 8px"},children:a.extra},"extra")),t&&y.push(Y.jsxRuntimeExports.jsx(he.Tooltip,{placement:"bottom",title:"닫기",zIndex:2100,children:Y.jsxRuntimeExports.jsx(he.Button,{icon:Y.jsxRuntimeExports.jsx(ft.CloseOutlined,{}),onClick:a.onClose,type:"text",size:"middle"})},"close")),y};return Y.jsxRuntimeExports.jsx(he.Drawer,{className:"main-drawer",footer:!0,...a,placement:d,styles:m,maskClosable:!1,closable:!1,mask:s,extra:Y.jsxRuntimeExports.jsx(he.Space,{size:"small",align:"center",children:v()}),afterOpenChange:y=>{y||(c(!0),f(a.placement)),a.afterOpenChange?.(y)},destroyOnHidden:!0,children:r?Y.jsxRuntimeExports.jsxs(eo,{type:"vertical",children:[Y.jsxRuntimeExports.jsxs(he.Flex,{justify:"space-between",align:"center",style:{width:"100%"},children:[Y.jsxRuntimeExports.jsx("div",{children:r.title}),Y.jsxRuntimeExports.jsx(he.Flex,{gap:2,children:r.extra})]}),Y.jsxRuntimeExports.jsx(Il,{...r.searchBox}),Y.jsxRuntimeExports.jsx(he.Divider,{}),e]}):e})};var Ai={exports:{}},tg=Ai.exports,Tu;function rg(){return Tu||(Tu=1,(function(e,r){(function(t,i){e.exports=i()})(tg,function(){return(function(t){function i(o){if(n[o])return n[o].exports;var a=n[o]={i:o,l:!1,exports:{}};return t[o].call(a.exports,a,a.exports,i),a.l=!0,a.exports}var n={};return i.m=t,i.c=n,i.i=function(o){return o},i.d=function(o,a,s){i.o(o,a)||Object.defineProperty(o,a,{configurable:!1,enumerable:!0,get:s})},i.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(a,"a",a),a},i.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},i.p="",i(i.s=38)})([function(t,i){function n(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}t.exports=n},function(t,i,n){var o=n(22),a=typeof self=="object"&&self&&self.Object===Object&&self,s=o||a||Function("return this")();t.exports=s},function(t,i){function n(o){return o!=null&&typeof o=="object"}t.exports=n},function(t,i,n){function o(l){var u=-1,h=l==null?0:l.length;for(this.clear();++u<h;){var p=l[u];this.set(p[0],p[1])}}var a=n(75),s=n(76),c=n(77),d=n(78),f=n(79);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=c,o.prototype.has=d,o.prototype.set=f,t.exports=o},function(t,i,n){function o(s,c){for(var d=s.length;d--;)if(a(s[d][0],c))return d;return-1}var a=n(8);t.exports=o},function(t,i,n){function o(u){return u==null?u===void 0?f:d:l&&l in Object(u)?s(u):c(u)}var a=n(16),s=n(64),c=n(87),d="[object Null]",f="[object Undefined]",l=a?a.toStringTag:void 0;t.exports=o},function(t,i,n){function o(s,c){var d=s.__data__;return a(c)?d[typeof c=="string"?"string":"hash"]:d.map}var a=n(73);t.exports=o},function(t,i,n){var o=n(11),a=o(Object,"create");t.exports=a},function(t,i){function n(o,a){return o===a||o!==o&&a!==a}t.exports=n},function(t,i,n){function o(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")}n.d(i,"a",function(){return a});var a=function s(c){o(this,s),this.onCreate=function(){},this.onDestroy=function(){},this.onUpdate=function(){},this.overlay=c.overlay,this.img=c.img,this.options=c.options,this.requestUpdate=c.onUpdate}},function(t,i,n){function o(s,c,d){c=="__proto__"&&a?a(s,c,{configurable:!0,enumerable:!0,value:d,writable:!0}):s[c]=d}var a=n(21);t.exports=o},function(t,i,n){function o(c,d){var f=s(c,d);return a(f)?f:void 0}var a=n(48),s=n(65);t.exports=o},function(t,i,n){function o(c){return c!=null&&s(c.length)&&!a(c)}var a=n(13),s=n(30);t.exports=o},function(t,i,n){function o(u){if(!s(u))return!1;var h=a(u);return h==d||h==f||h==c||h==l}var a=n(5),s=n(0),c="[object AsyncFunction]",d="[object Function]",f="[object GeneratorFunction]",l="[object Proxy]";t.exports=o},function(t,i){t.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),n.webpackPolyfill=1),n}},function(t,i,n){var o=n(11),a=n(1),s=o(a,"Map");t.exports=s},function(t,i,n){var o=n(1),a=o.Symbol;t.exports=a},function(t,i){function n(o,a,s){switch(s.length){case 0:return o.call(a);case 1:return o.call(a,s[0]);case 2:return o.call(a,s[0],s[1]);case 3:return o.call(a,s[0],s[1],s[2])}return o.apply(a,s)}t.exports=n},function(t,i,n){function o(c,d,f){(f===void 0||s(c[d],f))&&(f!==void 0||d in c)||a(c,d,f)}var a=n(10),s=n(8);t.exports=o},function(t,i,n){function o(u,h,p,m,v){u!==h&&c(h,function(y,g){if(f(y))v||(v=new a),d(u,h,g,p,o,m,v);else{var w=m?m(u[g],y,g+"",u,h,v):void 0;w===void 0&&(w=y),s(u,g,w)}},l)}var a=n(41),s=n(18),c=n(46),d=n(51),f=n(0),l=n(32);t.exports=o},function(t,i,n){function o(d,f){return c(s(d,f,a),d+"")}var a=n(26),s=n(89),c=n(90);t.exports=o},function(t,i,n){var o=n(11),a=(function(){try{var s=o(Object,"defineProperty");return s({},"",{}),s}catch{}})();t.exports=a},function(t,i,n){(function(o){var a=typeof o=="object"&&o&&o.Object===Object&&o;t.exports=a}).call(i,n(107))},function(t,i,n){var o=n(88),a=o(Object.getPrototypeOf,Object);t.exports=a},function(t,i){function n(s,c){return!!(c=c??o)&&(typeof s=="number"||a.test(s))&&s>-1&&s%1==0&&s<c}var o=9007199254740991,a=/^(?:0|[1-9]\d*)$/;t.exports=n},function(t,i){function n(a){var s=a&&a.constructor;return a===(typeof s=="function"&&s.prototype||o)}var o=Object.prototype;t.exports=n},function(t,i){function n(o){return o}t.exports=n},function(t,i,n){var o=n(47),a=n(2),s=Object.prototype,c=s.hasOwnProperty,d=s.propertyIsEnumerable,f=o((function(){return arguments})())?o:function(l){return a(l)&&c.call(l,"callee")&&!d.call(l,"callee")};t.exports=f},function(t,i){var n=Array.isArray;t.exports=n},function(t,i,n){(function(o){var a=n(1),s=n(102),c=typeof i=="object"&&i&&!i.nodeType&&i,d=c&&typeof o=="object"&&o&&!o.nodeType&&o,f=d&&d.exports===c,l=f?a.Buffer:void 0,u=l?l.isBuffer:void 0,h=u||s;o.exports=h}).call(i,n(14)(t))},function(t,i){function n(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=o}var o=9007199254740991;t.exports=n},function(t,i,n){var o=n(49),a=n(54),s=n(86),c=s&&s.isTypedArray,d=c?a(c):o;t.exports=d},function(t,i,n){function o(d){return c(d)?a(d,!0):s(d)}var a=n(43),s=n(50),c=n(12);t.exports=o},function(t,i,n){i.a={modules:["DisplaySize","Toolbar","Resize"],overlayStyles:{position:"absolute",boxSizing:"border-box",border:"1px dashed #444"},handleStyles:{position:"absolute",height:"12px",width:"12px",backgroundColor:"white",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80"},displayStyles:{position:"absolute",font:"12px/1.0 Arial, Helvetica, sans-serif",padding:"4px 8px",textAlign:"center",backgroundColor:"white",color:"#333",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80",cursor:"default"},toolbarStyles:{position:"absolute",top:"-12px",right:"0",left:"0",height:"0",minWidth:"100px",font:"12px/1.0 Arial, Helvetica, sans-serif",textAlign:"center",color:"#333",boxSizing:"border-box",cursor:"default"},toolbarButtonStyles:{display:"inline-block",width:"24px",height:"24px",background:"white",border:"1px solid #999",verticalAlign:"middle"},toolbarButtonSvgStyles:{fill:"#444",stroke:"#444",strokeWidth:"2"}}},function(t,i,n){function o(f,l){if(!(f instanceof l))throw new TypeError("Cannot call a class as a function")}function a(f,l){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||typeof l!="object"&&typeof l!="function"?f:l}function s(f,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);f.prototype=Object.create(l&&l.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(f,l):f.__proto__=l)}var c=n(9);n.d(i,"a",function(){return d});var d=(function(f){function l(){var u,h,p,m;o(this,l);for(var v=arguments.length,y=Array(v),g=0;g<v;g++)y[g]=arguments[g];return h=p=a(this,(u=l.__proto__||Object.getPrototypeOf(l)).call.apply(u,[this].concat(y))),p.onCreate=function(){p.display=document.createElement("div"),Object.assign(p.display.style,p.options.displayStyles),p.overlay.appendChild(p.display)},p.onDestroy=function(){},p.onUpdate=function(){if(p.display&&p.img){var w=p.getCurrentSize();if(p.display.innerHTML=w.join(" × "),w[0]>120&&w[1]>30)Object.assign(p.display.style,{right:"4px",bottom:"4px",left:"auto"});else if(p.img.style.float=="right"){var b=p.display.getBoundingClientRect();Object.assign(p.display.style,{right:"auto",bottom:"-"+(b.height+4)+"px",left:"-"+(b.width+4)+"px"})}else{var x=p.display.getBoundingClientRect();Object.assign(p.display.style,{right:"-"+(x.width+4)+"px",bottom:"-"+(x.height+4)+"px",left:"auto"})}}},p.getCurrentSize=function(){return[p.img.width,Math.round(p.img.width/p.img.naturalWidth*p.img.naturalHeight)]},m=h,a(p,m)}return s(l,f),l})(c.a)},function(t,i,n){function o(f,l){if(!(f instanceof l))throw new TypeError("Cannot call a class as a function")}function a(f,l){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||typeof l!="object"&&typeof l!="function"?f:l}function s(f,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);f.prototype=Object.create(l&&l.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(f,l):f.__proto__=l)}var c=n(9);n.d(i,"a",function(){return d});var d=(function(f){function l(){var u,h,p,m;o(this,l);for(var v=arguments.length,y=Array(v),g=0;g<v;g++)y[g]=arguments[g];return h=p=a(this,(u=l.__proto__||Object.getPrototypeOf(l)).call.apply(u,[this].concat(y))),p.onCreate=function(){p.boxes=[],p.addBox("nwse-resize"),p.addBox("nesw-resize"),p.addBox("nwse-resize"),p.addBox("nesw-resize"),p.positionBoxes()},p.onDestroy=function(){p.setCursor("")},p.positionBoxes=function(){var w=-parseFloat(p.options.handleStyles.width)/2+"px",b=-parseFloat(p.options.handleStyles.height)/2+"px";[{left:w,top:b},{right:w,top:b},{right:w,bottom:b},{left:w,bottom:b}].forEach(function(x,_){Object.assign(p.boxes[_].style,x)})},p.addBox=function(w){var b=document.createElement("div");Object.assign(b.style,p.options.handleStyles),b.style.cursor=w,b.style.width=p.options.handleStyles.width+"px",b.style.height=p.options.handleStyles.height+"px",b.addEventListener("mousedown",p.handleMousedown,!1),p.overlay.appendChild(b),p.boxes.push(b)},p.handleMousedown=function(w){p.dragBox=w.target,p.dragStartX=w.clientX,p.preDragWidth=p.img.width||p.img.naturalWidth,p.setCursor(p.dragBox.style.cursor),document.addEventListener("mousemove",p.handleDrag,!1),document.addEventListener("mouseup",p.handleMouseup,!1)},p.handleMouseup=function(){p.setCursor(""),document.removeEventListener("mousemove",p.handleDrag),document.removeEventListener("mouseup",p.handleMouseup)},p.handleDrag=function(w){if(p.img){var b=w.clientX-p.dragStartX;p.dragBox===p.boxes[0]||p.dragBox===p.boxes[3]?p.img.width=Math.round(p.preDragWidth-b):p.img.width=Math.round(p.preDragWidth+b),p.requestUpdate()}},p.setCursor=function(w){[document.body,p.img].forEach(function(b){b.style.cursor=w})},m=h,a(p,m)}return s(l,f),l})(c.a)},function(t,i,n){function o(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")}function a(b,x){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||typeof x!="object"&&typeof x!="function"?b:x}function s(b,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);b.prototype=Object.create(x&&x.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(b,x):b.__proto__=x)}var c=n(105),d=n.n(c),f=n(104),l=n.n(f),u=n(106),h=n.n(u),p=n(9);n.d(i,"a",function(){return w});var m={},v={},y={},g={},w=(function(b){function x(){var _,E,C,P;o(this,x);for(var O=arguments.length,S=Array(O),R=0;R<O;R++)S[R]=arguments[R];return E=C=a(this,(_=x.__proto__||Object.getPrototypeOf(x)).call.apply(_,[this].concat(S))),C.onCreate=function(T){m=T,v=new m.Attributor.Style("float","float"),y=new m.Attributor.Style("margin","margin"),g=new m.Attributor.Style("display","display"),C.toolbar=document.createElement("div"),Object.assign(C.toolbar.style,C.options.toolbarStyles),C.overlay.appendChild(C.toolbar),C._defineAlignments(),C._addToolbarButtons()},C.onDestroy=function(){},C.onUpdate=function(){},C._defineAlignments=function(){C.alignments=[{icon:d.a,apply:function(){g.add(C.img,"inline"),v.add(C.img,"left"),y.add(C.img,"0 1em 1em 0")},isApplied:function(){return v.value(C.img)=="left"}},{icon:l.a,apply:function(){g.add(C.img,"block"),v.remove(C.img),y.add(C.img,"auto")},isApplied:function(){return y.value(C.img)=="auto"}},{icon:h.a,apply:function(){g.add(C.img,"inline"),v.add(C.img,"right"),y.add(C.img,"0 0 1em 1em")},isApplied:function(){return v.value(C.img)=="right"}}]},C._addToolbarButtons=function(){var T=[];C.alignments.forEach(function(k,L){var F=document.createElement("span");T.push(F),F.innerHTML=k.icon,F.addEventListener("click",function(){T.forEach(function($){return $.style.filter=""}),k.isApplied()?(v.remove(C.img),y.remove(C.img),g.remove(C.img)):(C._selectButton(F),k.apply()),C.requestUpdate()}),Object.assign(F.style,C.options.toolbarButtonStyles),L>0&&(F.style.borderLeftWidth="0"),Object.assign(F.children[0].style,C.options.toolbarButtonSvgStyles),k.isApplied()&&C._selectButton(F),C.toolbar.appendChild(F)})},C._selectButton=function(T){T.style.filter="invert(20%)"},P=E,a(C,P)}return s(x,b),x})(p.a)},function(t,i,n){var o=n(17),a=n(20),s=n(63),c=n(101),d=a(function(f){return f.push(void 0,s),o(c,void 0,f)});t.exports=d},function(t,i,n){function o(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(i,"__esModule",{value:!0});var a=n(37),s=n.n(a),c=n(33),d=n(34),f=n(36),l=n(35),u={DisplaySize:d.a,Toolbar:f.a,Resize:l.a},h=function p(m){var v=this,y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o(this,p),this.initializeModules=function(){v.removeModules(),v.modules=v.moduleClasses.map(function(w){return new(u[w]||w)(v)}),v.modules.forEach(function(w){w.onCreate(v.parchment)}),v.onUpdate()},this.onUpdate=function(){v.repositionElements(),v.modules.forEach(function(w){w.onUpdate()})},this.removeModules=function(){v.modules.forEach(function(w){w.onDestroy()}),v.modules=[]},this.handleClick=function(w){if(w.target&&w.target.tagName&&w.target.tagName.toUpperCase()==="IMG"){if(v.img===w.target)return;v.img&&v.hide(),v.show(w.target)}else v.img&&v.hide()},this.show=function(w){v.img=w,v.showOverlay(),v.initializeModules()},this.showOverlay=function(){v.overlay&&v.hideOverlay(),v.quill.setSelection(null),v.setUserSelect("none"),document.addEventListener("keyup",v.checkImage,!0),v.quill.root.addEventListener("input",v.checkImage,!0),v.overlay=document.createElement("div"),Object.assign(v.overlay.style,v.options.overlayStyles),v.quill.root.parentNode.appendChild(v.overlay),v.repositionElements()},this.hideOverlay=function(){v.overlay&&(v.quill.root.parentNode.removeChild(v.overlay),v.overlay=void 0,document.removeEventListener("keyup",v.checkImage),v.quill.root.removeEventListener("input",v.checkImage),v.setUserSelect(""))},this.repositionElements=function(){if(v.overlay&&v.img){var w=v.quill.root.parentNode,b=v.img.getBoundingClientRect(),x=w.getBoundingClientRect();Object.assign(v.overlay.style,{left:b.left-x.left-1+w.scrollLeft+"px",top:b.top-x.top+w.scrollTop+"px",width:b.width+"px",height:b.height+"px"})}},this.hide=function(){v.hideOverlay(),v.removeModules(),v.img=void 0},this.setUserSelect=function(w){["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach(function(b){v.quill.root.style[b]=w,document.documentElement.style[b]=w})},this.checkImage=function(w){v.img&&(w.keyCode!=46&&w.keyCode!=8||window.Quill.find(v.img).deleteAt(0),v.hide())},this.quill=m;var g=!1;y.modules&&(g=y.modules.slice()),y.parchment&&(this.parchment=y.parchment),this.options=s()({},y,c.a),g!==!1&&(this.options.modules=g),document.execCommand("enableObjectResizing",!1,"false"),this.quill.root.addEventListener("click",this.handleClick,!1),this.quill.root.parentNode.style.position=this.quill.root.parentNode.style.position||"relative",this.moduleClasses=this.options.modules,this.modules=[]};i.default=h,window.Quill&&window.Quill.register("modules/imageResize",h)},function(t,i,n){function o(l){var u=-1,h=l==null?0:l.length;for(this.clear();++u<h;){var p=l[u];this.set(p[0],p[1])}}var a=n(66),s=n(67),c=n(68),d=n(69),f=n(70);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=c,o.prototype.has=d,o.prototype.set=f,t.exports=o},function(t,i,n){function o(l){var u=-1,h=l==null?0:l.length;for(this.clear();++u<h;){var p=l[u];this.set(p[0],p[1])}}var a=n(80),s=n(81),c=n(82),d=n(83),f=n(84);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=c,o.prototype.has=d,o.prototype.set=f,t.exports=o},function(t,i,n){function o(u){var h=this.__data__=new a(u);this.size=h.size}var a=n(3),s=n(92),c=n(93),d=n(94),f=n(95),l=n(96);o.prototype.clear=s,o.prototype.delete=c,o.prototype.get=d,o.prototype.has=f,o.prototype.set=l,t.exports=o},function(t,i,n){var o=n(1),a=o.Uint8Array;t.exports=a},function(t,i,n){function o(p,m){var v=c(p),y=!v&&s(p),g=!v&&!y&&d(p),w=!v&&!y&&!g&&l(p),b=v||y||g||w,x=b?a(p.length,String):[],_=x.length;for(var E in p)!m&&!h.call(p,E)||b&&(E=="length"||g&&(E=="offset"||E=="parent")||w&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||f(E,_))||x.push(E);return x}var a=n(53),s=n(27),c=n(28),d=n(29),f=n(24),l=n(31),u=Object.prototype,h=u.hasOwnProperty;t.exports=o},function(t,i,n){function o(f,l,u){var h=f[l];d.call(f,l)&&s(h,u)&&(u!==void 0||l in f)||a(f,l,u)}var a=n(10),s=n(8),c=Object.prototype,d=c.hasOwnProperty;t.exports=o},function(t,i,n){var o=n(0),a=Object.create,s=(function(){function c(){}return function(d){if(!o(d))return{};if(a)return a(d);c.prototype=d;var f=new c;return c.prototype=void 0,f}})();t.exports=s},function(t,i,n){var o=n(62),a=o();t.exports=a},function(t,i,n){function o(d){return s(d)&&a(d)==c}var a=n(5),s=n(2),c="[object Arguments]";t.exports=o},function(t,i,n){function o(v){return!(!c(v)||s(v))&&(a(v)?m:f).test(d(v))}var a=n(13),s=n(74),c=n(0),d=n(97),f=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,h=l.toString,p=u.hasOwnProperty,m=RegExp("^"+h.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=o},function(t,i,n){function o(f){return c(f)&&s(f.length)&&!!d[a(f)]}var a=n(5),s=n(30),c=n(2),d={};d["[object Float32Array]"]=d["[object Float64Array]"]=d["[object Int8Array]"]=d["[object Int16Array]"]=d["[object Int32Array]"]=d["[object Uint8Array]"]=d["[object Uint8ClampedArray]"]=d["[object Uint16Array]"]=d["[object Uint32Array]"]=!0,d["[object Arguments]"]=d["[object Array]"]=d["[object ArrayBuffer]"]=d["[object Boolean]"]=d["[object DataView]"]=d["[object Date]"]=d["[object Error]"]=d["[object Function]"]=d["[object Map]"]=d["[object Number]"]=d["[object Object]"]=d["[object RegExp]"]=d["[object Set]"]=d["[object String]"]=d["[object WeakMap]"]=!1,t.exports=o},function(t,i,n){function o(l){if(!a(l))return c(l);var u=s(l),h=[];for(var p in l)(p!="constructor"||!u&&f.call(l,p))&&h.push(p);return h}var a=n(0),s=n(25),c=n(85),d=Object.prototype,f=d.hasOwnProperty;t.exports=o},function(t,i,n){function o(b,x,_,E,C,P,O){var S=b[_],R=x[_],T=O.get(R);if(T)return void a(b,_,T);var k=P?P(S,R,_+"",b,x,O):void 0,L=k===void 0;if(L){var F=u(R),$=!F&&p(R),z=!F&&!$&&g(R);k=R,F||$||z?u(S)?k=S:h(S)?k=d(S):$?(L=!1,k=s(R,!0)):z?(L=!1,k=c(R,!0)):k=[]:y(R)||l(R)?(k=S,l(S)?k=w(S):(!v(S)||E&&m(S))&&(k=f(R))):L=!1}L&&(O.set(R,k),C(k,R,E,P,O),O.delete(R)),a(b,_,k)}var a=n(18),s=n(56),c=n(57),d=n(58),f=n(71),l=n(27),u=n(28),h=n(99),p=n(29),m=n(13),v=n(0),y=n(100),g=n(31),w=n(103);t.exports=o},function(t,i,n){var o=n(98),a=n(21),s=n(26),c=a?function(d,f){return a(d,"toString",{configurable:!0,enumerable:!1,value:o(f),writable:!0})}:s;t.exports=c},function(t,i){function n(o,a){for(var s=-1,c=Array(o);++s<o;)c[s]=a(s);return c}t.exports=n},function(t,i){function n(o){return function(a){return o(a)}}t.exports=n},function(t,i,n){function o(s){var c=new s.constructor(s.byteLength);return new a(c).set(new a(s)),c}var a=n(42);t.exports=o},function(t,i,n){(function(o){function a(h,p){if(p)return h.slice();var m=h.length,v=u?u(m):new h.constructor(m);return h.copy(v),v}var s=n(1),c=typeof i=="object"&&i&&!i.nodeType&&i,d=c&&typeof o=="object"&&o&&!o.nodeType&&o,f=d&&d.exports===c,l=f?s.Buffer:void 0,u=l?l.allocUnsafe:void 0;o.exports=a}).call(i,n(14)(t))},function(t,i,n){function o(s,c){var d=c?a(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}var a=n(55);t.exports=o},function(t,i){function n(o,a){var s=-1,c=o.length;for(a||(a=Array(c));++s<c;)a[s]=o[s];return a}t.exports=n},function(t,i,n){function o(c,d,f,l){var u=!f;f||(f={});for(var h=-1,p=d.length;++h<p;){var m=d[h],v=l?l(f[m],c[m],m,f,c):void 0;v===void 0&&(v=c[m]),u?s(f,m,v):a(f,m,v)}return f}var a=n(44),s=n(10);t.exports=o},function(t,i,n){var o=n(1),a=o["__core-js_shared__"];t.exports=a},function(t,i,n){function o(c){return a(function(d,f){var l=-1,u=f.length,h=u>1?f[u-1]:void 0,p=u>2?f[2]:void 0;for(h=c.length>3&&typeof h=="function"?(u--,h):void 0,p&&s(f[0],f[1],p)&&(h=u<3?void 0:h,u=1),d=Object(d);++l<u;){var m=f[l];m&&c(d,m,l,h)}return d})}var a=n(20),s=n(72);t.exports=o},function(t,i){function n(o){return function(a,s,c){for(var d=-1,f=Object(a),l=c(a),u=l.length;u--;){var h=l[o?u:++d];if(s(f[h],h,f)===!1)break}return a}}t.exports=n},function(t,i,n){function o(c,d,f,l,u,h){return s(c)&&s(d)&&(h.set(d,c),a(c,d,void 0,o,h),h.delete(d)),c}var a=n(19),s=n(0);t.exports=o},function(t,i,n){function o(l){var u=c.call(l,f),h=l[f];try{l[f]=void 0}catch{}var p=d.call(l);return u?l[f]=h:delete l[f],p}var a=n(16),s=Object.prototype,c=s.hasOwnProperty,d=s.toString,f=a?a.toStringTag:void 0;t.exports=o},function(t,i){function n(o,a){return o?.[a]}t.exports=n},function(t,i,n){function o(){this.__data__=a?a(null):{},this.size=0}var a=n(7);t.exports=o},function(t,i){function n(o){var a=this.has(o)&&delete this.__data__[o];return this.size-=a?1:0,a}t.exports=n},function(t,i,n){function o(f){var l=this.__data__;if(a){var u=l[f];return u===s?void 0:u}return d.call(l,f)?l[f]:void 0}var a=n(7),s="__lodash_hash_undefined__",c=Object.prototype,d=c.hasOwnProperty;t.exports=o},function(t,i,n){function o(d){var f=this.__data__;return a?f[d]!==void 0:c.call(f,d)}var a=n(7),s=Object.prototype,c=s.hasOwnProperty;t.exports=o},function(t,i,n){function o(c,d){var f=this.__data__;return this.size+=this.has(c)?0:1,f[c]=a&&d===void 0?s:d,this}var a=n(7),s="__lodash_hash_undefined__";t.exports=o},function(t,i,n){function o(d){return typeof d.constructor!="function"||c(d)?{}:a(s(d))}var a=n(45),s=n(23),c=n(25);t.exports=o},function(t,i,n){function o(f,l,u){if(!d(u))return!1;var h=typeof l;return!!(h=="number"?s(u)&&c(l,u.length):h=="string"&&l in u)&&a(u[l],f)}var a=n(8),s=n(12),c=n(24),d=n(0);t.exports=o},function(t,i){function n(o){var a=typeof o;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?o!=="__proto__":o===null}t.exports=n},function(t,i,n){function o(c){return!!s&&s in c}var a=n(60),s=(function(){var c=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})();t.exports=o},function(t,i){function n(){this.__data__=[],this.size=0}t.exports=n},function(t,i,n){function o(d){var f=this.__data__,l=a(f,d);return!(l<0)&&(l==f.length-1?f.pop():c.call(f,l,1),--this.size,!0)}var a=n(4),s=Array.prototype,c=s.splice;t.exports=o},function(t,i,n){function o(s){var c=this.__data__,d=a(c,s);return d<0?void 0:c[d][1]}var a=n(4);t.exports=o},function(t,i,n){function o(s){return a(this.__data__,s)>-1}var a=n(4);t.exports=o},function(t,i,n){function o(s,c){var d=this.__data__,f=a(d,s);return f<0?(++this.size,d.push([s,c])):d[f][1]=c,this}var a=n(4);t.exports=o},function(t,i,n){function o(){this.size=0,this.__data__={hash:new a,map:new(c||s),string:new a}}var a=n(39),s=n(3),c=n(15);t.exports=o},function(t,i,n){function o(s){var c=a(this,s).delete(s);return this.size-=c?1:0,c}var a=n(6);t.exports=o},function(t,i,n){function o(s){return a(this,s).get(s)}var a=n(6);t.exports=o},function(t,i,n){function o(s){return a(this,s).has(s)}var a=n(6);t.exports=o},function(t,i,n){function o(s,c){var d=a(this,s),f=d.size;return d.set(s,c),this.size+=d.size==f?0:1,this}var a=n(6);t.exports=o},function(t,i){function n(o){var a=[];if(o!=null)for(var s in Object(o))a.push(s);return a}t.exports=n},function(t,i,n){(function(o){var a=n(22),s=typeof i=="object"&&i&&!i.nodeType&&i,c=s&&typeof o=="object"&&o&&!o.nodeType&&o,d=c&&c.exports===s,f=d&&a.process,l=(function(){try{return f&&f.binding&&f.binding("util")}catch{}})();o.exports=l}).call(i,n(14)(t))},function(t,i){function n(s){return a.call(s)}var o=Object.prototype,a=o.toString;t.exports=n},function(t,i){function n(o,a){return function(s){return o(a(s))}}t.exports=n},function(t,i,n){function o(c,d,f){return d=s(d===void 0?c.length-1:d,0),function(){for(var l=arguments,u=-1,h=s(l.length-d,0),p=Array(h);++u<h;)p[u]=l[d+u];u=-1;for(var m=Array(d+1);++u<d;)m[u]=l[u];return m[d]=f(p),a(c,this,m)}}var a=n(17),s=Math.max;t.exports=o},function(t,i,n){var o=n(52),a=n(91),s=a(o);t.exports=s},function(t,i){function n(c){var d=0,f=0;return function(){var l=s(),u=a-(l-f);if(f=l,u>0){if(++d>=o)return arguments[0]}else d=0;return c.apply(void 0,arguments)}}var o=800,a=16,s=Date.now;t.exports=n},function(t,i,n){function o(){this.__data__=new a,this.size=0}var a=n(3);t.exports=o},function(t,i){function n(o){var a=this.__data__,s=a.delete(o);return this.size=a.size,s}t.exports=n},function(t,i){function n(o){return this.__data__.get(o)}t.exports=n},function(t,i){function n(o){return this.__data__.has(o)}t.exports=n},function(t,i,n){function o(f,l){var u=this.__data__;if(u instanceof a){var h=u.__data__;if(!s||h.length<d-1)return h.push([f,l]),this.size=++u.size,this;u=this.__data__=new c(h)}return u.set(f,l),this.size=u.size,this}var a=n(3),s=n(15),c=n(40),d=200;t.exports=o},function(t,i){function n(s){if(s!=null){try{return a.call(s)}catch{}try{return s+""}catch{}}return""}var o=Function.prototype,a=o.toString;t.exports=n},function(t,i){function n(o){return function(){return o}}t.exports=n},function(t,i,n){function o(c){return s(c)&&a(c)}var a=n(12),s=n(2);t.exports=o},function(t,i,n){function o(m){if(!c(m)||a(m)!=d)return!1;var v=s(m);if(v===null)return!0;var y=h.call(v,"constructor")&&v.constructor;return typeof y=="function"&&y instanceof y&&u.call(y)==p}var a=n(5),s=n(23),c=n(2),d="[object Object]",f=Function.prototype,l=Object.prototype,u=f.toString,h=l.hasOwnProperty,p=u.call(Object);t.exports=o},function(t,i,n){var o=n(19),a=n(61),s=a(function(c,d,f,l){o(c,d,f,l)});t.exports=s},function(t,i){function n(){return!1}t.exports=n},function(t,i,n){function o(c){return a(c,s(c))}var a=n(59),s=n(32);t.exports=o},function(t,i){t.exports=`<svg viewbox="0 0 18 18">
|
|
1
|
+
"use strict";const Y=require("./jsx-runtime-CeSfJrVB.cjs"),U=require("react"),de=require("antd"),ft=require("@ant-design/icons"),mt=require("./apiUtils-Cbg6NQLv.cjs"),Ml=require("./SearchBoxContext-Cpr9xa1S.cjs"),er=require("./_commonjsHelpers-DKOUU3wS.cjs"),In=require("react-dom"),St=require("realgrid"),vu=require("realgrid-react"),Mp=require("react-rnd"),Ip=require("./favoriteStore-3YceyayF.cjs"),Lp=require("./LoadingOverlay-NX9Mo_6n.cjs"),$p=require("./envUtils-CduTHoHu.cjs"),Fp=require("./AuthContext-CXng9fj0.cjs"),pu=require("react-router-dom");function Xd(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const I=Xd(U),Pn=Xd(ft),Dp=({grpId:e,menuId:r,btnEvent:t,layout:i="horizontal",size:n="middle",style:o,className:a,onButtonClick:s})=>{const c=Ml.useServiceCodeValue("AUTH_BTNS"),{user:d}=mt.useUserStore(),[f,l]=U.useState([]),[u,h]=U.useState(!0),[p,m]=U.useState(null),[v,y]=U.useState({}),g=async()=>{try{h(!0),m(null),console.log("@@ 커스텀버튼그룹 영역 조회시작",e,r);const x=await mt.callService(c,{userId:d?.userId,crprCd:d?.crprCd,grpId:e.toUpperCase(),menuId:r});if(console.log("@@ 커스텀버튼그룹 영역 조회결과",x),x?.data&&Array.isArray(x.data)){const _=x.data.sort((E,C)=>E.btnSq-C.btnSq);l(_)}else l([])}catch(x){console.error("버튼 권한 조회 실패:",x),m("버튼 권한을 조회하는 중 오류가 발생했습니다."),l([])}finally{h(!1)}};U.useEffect(()=>{g()},[e,r]);const w=async(x,_)=>{y(E=>({...E,[x]:{loading:!0}}));try{const E=t?.[x];E?await E():console.warn(`버튼 이벤트 핸들러를 찾을 수 없습니다: ${x}`),s&&s(x,_,e)}catch(E){console.error("버튼 이벤트 실행 실패:",E),de.message.error("작업 중 오류가 발생했습니다.")}finally{y(E=>({...E,[x]:{loading:!1}}))}},b=x=>{const _=v[x.btnId]||{loading:!1};return Y.jsxRuntimeExports.jsxs(de.Button,{size:n,loading:_.loading,onClick:()=>w(x.btnId,x.btnNm),className:"bwg-btn",style:{...x.iconVal&&{display:"flex",alignItems:"center",gap:"4px"}},children:[x.iconVal&&Y.jsxRuntimeExports.jsxs(Y.jsxRuntimeExports.Fragment,{children:[x.iconType==="ANTD"&&Pn[x.iconVal]&&U.createElement(Pn[x.iconVal],{style:{fontSize:"14px"}}),x.iconType!=="ANTD"&&Y.jsxRuntimeExports.jsx("span",{className:x.iconVal,style:{fontSize:"14px"}})]}),x.btnNm]},x.btnId)};return u?Y.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:Y.jsxRuntimeExports.jsx(de.Space,{direction:i==="vertical"?"vertical":"horizontal",size:n,children:Y.jsxRuntimeExports.jsx(de.Button,{loading:!0,size:n,children:"권한 조회 중..."})})}):p?Y.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:Y.jsxRuntimeExports.jsx(de.Alert,{message:"권한 오류",description:p,type:"error",showIcon:!0,style:{minHeight:"40px"}})}):f.length===0?Y.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:Y.jsxRuntimeExports.jsx(de.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})}):Y.jsxRuntimeExports.jsx("div",{className:`bwg-button-group bwg-button-group-${i} ${a||""}`,style:o,children:Y.jsxRuntimeExports.jsx(de.Flex,{gap:3,children:f.map(b)})})},qp=({content:e,layout:r="flex",gap:t=16,minWidth:i=120,maxWidth:n=300,style:o,className:a})=>{if(!(Array.isArray(e)&&e.length>0&&Array.isArray(e[0])))return Y.jsxRuntimeExports.jsx("div",{style:o,className:a,children:e});const c=e.filter(h=>h&&h.length>0),d=U.useMemo(()=>{const h=c[0];if(!h||h.length===0)return{totalCols:0,baseWidth:0};let p=0;const m=[];h.forEach(y=>{const g=y,w=g?.props?.["data-colspan"]?parseInt(String(g.props["data-colspan"])):1;p+=w,m.push(w)});const v=p>0?100/p:0;return{totalCols:p,baseWidth:v,componentWidths:m}},[c]),f=(h,p,m)=>{const v=h,y=v?.props?.["data-colspan"]?parseInt(String(v.props["data-colspan"])):1;switch(r){case"equal":return 100/m;case"auto":return 100/m;case"grid":return 100/d.totalCols*y;case"flex":default:const g=d.baseWidth*y;return Math.max(i,Math.min(n,g))}},l=h=>{if(!h||typeof h!="object")return h;const p=h;if(!p.props)return h;const v={...p.props.style||{},width:"100%"};return U.cloneElement(p,{...p.props,style:v})},u=(h,p)=>{if(!h||h.length===0)return null;const m=h.length;return r==="grid"?Y.jsxRuntimeExports.jsx("div",{className:"erp-cmm-form",style:{display:"grid",gridTemplateColumns:`repeat(${d.totalCols}, 1fr)`,gap:`${t}px`,width:"100%"},children:h.map((v,y)=>{const g=v?.props?.["data-colspan"]?parseInt(String(v.props["data-colspan"])):1,w=l(v);return Y.jsxRuntimeExports.jsx("div",{style:{gridColumn:`span ${g}`,minWidth:`${i}px`},className:"form-component-wrapper",children:w},`row-${p}-col-${y}`)})},`row-${p}`):Y.jsxRuntimeExports.jsx(de.Flex,{gap:t,className:"erp-cmm-form",wrap:r==="auto"?"wrap":"nowrap",style:{width:"100%"},children:h.map((v,y)=>{const g=f(v,y,m),w=l(v),b=r==="flex"?{width:`${g}px`,minWidth:`${i}px`,maxWidth:`${n}px`,flexShrink:0}:{width:`${g}%`,minWidth:`${i}px`};return Y.jsxRuntimeExports.jsx("div",{style:b,className:"form-component-wrapper",children:w},`row-${p}-col-${y}`)})},`row-${p}`)};return Y.jsxRuntimeExports.jsx(de.Flex,{gap:"small",vertical:!0,style:o,className:a,children:c.map((h,p)=>u(h,p+1))})},Bp=({children:e,...r})=>Y.jsxRuntimeExports.jsx(de.Col,{...r,className:"bwg-col",children:e});var mn={},Oo={exports:{}},gu;function Ki(){return gu||(gu=1,(function(e){function r(t){return t&&t.__esModule?t:{default:t}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Oo)),Oo.exports}var yn={},mu;function Vp(){if(mu)return yn;mu=1,Object.defineProperty(yn,"__esModule",{value:!0}),yn.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 yn.default=e,yn}var bn={},xn={},wn={},Ro={exports:{}},Ao={exports:{}},To={exports:{}},ko={exports:{}},yu;function Zd(){return yu||(yu=1,(function(e){function r(t){"@babel/helpers - typeof";return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(ko)),ko.exports}var Po={exports:{}},bu;function Hp(){return bu||(bu=1,(function(e){var r=Zd().default;function t(i,n){if(r(i)!="object"||!i)return i;var o=i[Symbol.toPrimitive];if(o!==void 0){var a=o.call(i,n||"default");if(r(a)!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Po)),Po.exports}var xu;function zp(){return xu||(xu=1,(function(e){var r=Zd().default,t=Hp();function i(n){var o=t(n,"string");return r(o)=="symbol"?o:o+""}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(To)),To.exports}var wu;function Up(){return wu||(wu=1,(function(e){var r=zp();function t(i,n,o){return(n=r(n))in i?Object.defineProperty(i,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):i[n]=o,i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Ao)),Ao.exports}var Eu;function Wp(){return Eu||(Eu=1,(function(e){var r=Up();function t(n,o){var a=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);o&&(s=s.filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable})),a.push.apply(a,s)}return a}function i(n){for(var o=1;o<arguments.length;o++){var a=arguments[o]!=null?arguments[o]:{};o%2?t(Object(a),!0).forEach(function(s){r(n,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach(function(s){Object.defineProperty(n,s,Object.getOwnPropertyDescriptor(a,s))})}return n}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(Ro)),Ro.exports}var En={},_u;function Kp(){return _u||(_u=1,Object.defineProperty(En,"__esModule",{value:!0}),En.commonLocale=void 0,En.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),En}var Su;function Gp(){if(Su)return wn;Su=1;var e=Ki().default;Object.defineProperty(wn,"__esModule",{value:!0}),wn.default=void 0;var r=e(Wp()),t=Kp(),i=(0,r.default)((0,r.default)({},t.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 wn.default=i,wn}var _n={},Cu;function Qd(){if(Cu)return _n;Cu=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.default=void 0;const e={placeholder:"시간 선택",rangePlaceholder:["시작 시간","종료 시간"]};return _n.default=e,_n}var Ou;function Jd(){if(Ou)return xn;Ou=1;var e=Ki().default;Object.defineProperty(xn,"__esModule",{value:!0}),xn.default=void 0;var r=e(Gp()),t=e(Qd());const i={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월"]},r.default),timePickerLocale:Object.assign({},t.default)};return xn.default=i,xn}var Ru;function Yp(){if(Ru)return bn;Ru=1;var e=Ki().default;Object.defineProperty(bn,"__esModule",{value:!0}),bn.default=void 0;var r=e(Jd());return bn.default=r.default,bn}var Au;function Xp(){if(Au)return mn;Au=1;var e=Ki().default;Object.defineProperty(mn,"__esModule",{value:!0}),mn.default=void 0;var r=e(Vp()),t=e(Yp()),i=e(Jd()),n=e(Qd());const o="${label} 유효하지 않은 ${type}",a={locale:"ko",Pagination:r.default,DatePicker:i.default,TimePicker:n.default,Calendar:t.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:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},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 mn.default=a,mn}var jo,Tu;function Zp(){return Tu||(Tu=1,jo=Xp()),jo}var Qp=Zp();const eh=er.getDefaultExportFromCjs(Qp),th=({children:e,customTheme:r,customComponentSize:t="middle",layout:i="comfortable",getPopupContainer:n})=>{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:de.theme.defaultAlgorithm};switch(i){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}}}})(),s={...a,...r,token:{...a.token,...r?.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)"},...r?.components??{}}};return Y.jsxRuntimeExports.jsx(de.ConfigProvider,{locale:eh,theme:s,componentSize:t,space:{size:t},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},getPopupContainer:n,children:e})},Jp=({children:e})=>{const{activeDetailItem:r}=mt.useMenuViewStore();return Y.jsxRuntimeExports.jsx("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:Y.jsxRuntimeExports.jsx("div",{className:"bwgview-content",children:Y.jsxRuntimeExports.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[Y.jsxRuntimeExports.jsx(de.Breadcrumb,{separator:">",items:[{title:r?.prntInfo?.menuNm},{title:r?.viewLabel}]}),e]})})})},Gi=({title:e,icons:r,tooltip:t,iconVisible:i=!0,paddingBottom:n=0,marginBottom:o=0,children:a})=>{const s=Pn.AppstoreTwoTone;return U.useMemo(()=>r?.type==="antd"&&r.icon&&Pn[r.icon]||s,[r?.type,r?.icon]),Y.jsxRuntimeExports.jsx(de.Flex,{vertical:!0,style:{width:"100%"},children:Y.jsxRuntimeExports.jsxs("div",{className:`bwg-title-box ${n?`pb${n}`:""} ${o?`mb${o}`:""}`,style:{display:"flex",justifyContent:"space-between"},children:[Y.jsxRuntimeExports.jsx("div",{className:"bwg-title-box-left",children:Y.jsxRuntimeExports.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[Y.jsxRuntimeExports.jsx(de.Typography.Title,{level:4,children:Y.jsxRuntimeExports.jsx("span",{children:e})}),t&&Y.jsxRuntimeExports.jsx(de.Tooltip,{title:t.title,placement:t.placement,children:Y.jsxRuntimeExports.jsx(Pn.QuestionCircleTwoTone,{style:{marginLeft:5}})})]})}),Y.jsxRuntimeExports.jsx("div",{className:"bwg-title-box-right",children:Y.jsxRuntimeExports.jsx(de.Flex,{gap:6,children:a})})]})})},{Panel:ku}=de.Collapse,Il=U.forwardRef(({reqRows:e,subRows:r,border:t=!1,labelDisplay:i,header:n},o)=>{const[a]=de.Form.useForm(),[s,c]=U.useState("1"),d=()=>i?{flex:i.md||i.lg||i.sm||"100px"}:{flex:"100px"};U.useImperativeHandle(o,()=>({getFormData:()=>a.getFieldsValue(),setFormData:l=>{a.setFieldsValue(l)},resetForm:()=>{a.resetFields()},validateForm:async()=>{try{return{success:!0,data:await a.validateFields()}}catch(l){return{success:!1,error:l}}}}));const f=()=>{c(l=>l.includes("subRows")?l.filter(u=>u!=="subRows"):[...l,"subRows"])};return console.log({reqRows:e,subRows:r}),Y.jsxRuntimeExports.jsxs("div",{style:t?{border:"1px solid #ddd",padding:"10px 12px",borderRadius:"8px",marginBottom:"10px"}:{},children:[n&&Y.jsxRuntimeExports.jsx(Gi,{title:n.title,children:n.buttons}),Y.jsxRuntimeExports.jsx(de.Form,{form:a,layout:"inline",className:"bwgview-header-form",labelCol:d(),labelAlign:"left",children:Y.jsxRuntimeExports.jsxs("div",{style:{position:"relative",width:"100%"},children:[r&&Y.jsxRuntimeExports.jsx("div",{style:{position:"absolute",top:"15px",left:"-9px",zIndex:10},children:s.includes("subRows")?Y.jsxRuntimeExports.jsx(de.Tooltip,{title:"접기",children:Y.jsxRuntimeExports.jsx("span",{className:"search-collapsed-arrow",onClick:f,children:Y.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:Y.jsxRuntimeExports.jsx("path",{d:"M5.28321 0.986589C4.88285 0.482264 4.11715 0.482265 3.71679 0.986589L1.0243 4.37824C0.50404 5.0336 0.970753 6 1.80751 6L7.19249 6C8.02925 6 8.49596 5.0336 7.9757 4.37824L5.28321 0.986589Z",fill:"#AEB9C4"})})})}):Y.jsxRuntimeExports.jsx(de.Tooltip,{title:"펼치기",children:Y.jsxRuntimeExports.jsx("span",{className:"search-collapsed-arrow",onClick:f,children:Y.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"9",height:"6",viewBox:"0 0 9 6",fill:"none",children:Y.jsxRuntimeExports.jsx("path",{d:"M5.28321 5.01341C4.88285 5.51774 4.11715 5.51773 3.71679 5.01341L1.0243 1.62176C0.50404 0.966397 0.970753 1.64312e-07 1.80751 2.37464e-07L7.19249 7.08234e-07C8.02925 7.81386e-07 8.49596 0.966399 7.9757 1.62176L5.28321 5.01341Z",fill:"#AEB9C4"})})})})}),Y.jsxRuntimeExports.jsx(de.ConfigProvider,{theme:{components:{Collapse:{}}},children:Y.jsxRuntimeExports.jsxs(de.Collapse,{activeKey:["reqRows",...s.includes("subRows")?["subRows"]:[]],onChange:c,className:"searchbox-collapse",bordered:!1,ghost:!0,children:[e&&Y.jsxRuntimeExports.jsx(ku,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"disabled",children:e},"reqRows"),r&&Y.jsxRuntimeExports.jsx(ku,{style:{padding:0,margin:0},header:void 0,showArrow:!1,collapsible:"icon",children:r},"subRows")]})})]})})]})}),eg=({children:e,showSearchBox:r,showCloseButton:t=!0,showEyesButton:i=!1,shotSettingButton:n=!0,styles:o,...a})=>{const[s,c]=U.useState(!0),[d,f]=U.useState(()=>{const y=a.placement;return y==="left"||y==="right"||y==="top"||y==="bottom"?y:"bottom"}),[l,u]=U.useState(!1),p=(y=>{const g={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(y){case"bottom":return{...g,wrapper:{...g.wrapper,borderRadius:"30px 30px 0 0"},content:{borderRadius:"30px 30px 0 0"},header:{...g.header,borderRadius:"30px 30px 0 0"}};case"top":return{...g,wrapper:{...g.wrapper,borderRadius:"0 0 30px 30px"},content:{borderRadius:"0 0 30px 30px"},header:{...g.header}};case"left":return{...g,wrapper:{...g.wrapper,borderRadius:"0 30px 0px 0"},content:{borderRadius:"0 30px 0px 0"},header:{...g.header,borderRadius:"0 30px 0 0"}};case"right":return{...g,wrapper:{...g.wrapper,borderRadius:"30px 0 0 0"},content:{borderRadius:"30px 0 0 0"},header:{...g.header,borderRadius:"30px 0 0 0"}};default:return g}})(d),m={wrapper:{...p?.wrapper,...o?.wrapper},content:{...p?.content,...o?.content},header:{...p?.header,...o?.header}},v=()=>{const y=[];if(n){const g=[{key:"top",label:"상단",icon:Y.jsxRuntimeExports.jsx(ft.CaretUpOutlined,{})},{key:"right",label:"우측",icon:Y.jsxRuntimeExports.jsx(ft.CaretRightOutlined,{})},{key:"bottom",label:"하단",icon:Y.jsxRuntimeExports.jsx(ft.CaretDownOutlined,{})},{key:"left",label:"좌측",icon:Y.jsxRuntimeExports.jsx(ft.CaretLeftOutlined,{})}],w=Y.jsxRuntimeExports.jsx(de.Space.Compact,{children:g.map(b=>Y.jsxRuntimeExports.jsx(de.Button,{type:d===b.key?"primary":"default",size:"small",onClick:()=>{f(b.key),u(!1)},icon:b.icon},b.key))});y.push(Y.jsxRuntimeExports.jsx(de.Popover,{content:w,trigger:"click",placement:"left",open:l,onOpenChange:u,children:Y.jsxRuntimeExports.jsx(de.Tooltip,{placement:"bottom",title:"위치변경",zIndex:2100,children:Y.jsxRuntimeExports.jsx(de.Button,{icon:Y.jsxRuntimeExports.jsx(ft.SettingOutlined,{}),type:"text",size:"middle"})})},"shotSetting"))}return i&&y.push(Y.jsxRuntimeExports.jsx(de.Tooltip,{placement:"bottom",title:s?"배경 보기":"배경 숨기기",zIndex:2100,children:Y.jsxRuntimeExports.jsx(de.Button,{icon:Y.jsxRuntimeExports.jsx(ft.EyeOutlined,{}),type:"text",size:"middle",onClick:()=>c(!s)})},"eyes")),a.extra&&y.push(Y.jsxRuntimeExports.jsx("div",{style:{margin:"0 8px"},children:a.extra},"extra")),t&&y.push(Y.jsxRuntimeExports.jsx(de.Tooltip,{placement:"bottom",title:"닫기",zIndex:2100,children:Y.jsxRuntimeExports.jsx(de.Button,{icon:Y.jsxRuntimeExports.jsx(ft.CloseOutlined,{}),onClick:a.onClose,type:"text",size:"middle"})},"close")),y};return Y.jsxRuntimeExports.jsx(de.Drawer,{className:"main-drawer",footer:!0,...a,placement:d,styles:m,maskClosable:!1,closable:!1,mask:s,extra:Y.jsxRuntimeExports.jsx(de.Space,{size:"small",align:"center",children:v()}),afterOpenChange:y=>{y||(c(!0),f(a.placement)),a.afterOpenChange?.(y)},destroyOnHidden:!0,children:r?Y.jsxRuntimeExports.jsxs(to,{type:"vertical",children:[Y.jsxRuntimeExports.jsxs(de.Flex,{justify:"space-between",align:"center",style:{width:"100%"},children:[Y.jsxRuntimeExports.jsx("div",{children:r.title}),Y.jsxRuntimeExports.jsx(de.Flex,{gap:2,children:r.extra})]}),Y.jsxRuntimeExports.jsx(Il,{...r.searchBox}),Y.jsxRuntimeExports.jsx(de.Divider,{}),e]}):e})};var Ai={exports:{}},tg=Ai.exports,Pu;function rg(){return Pu||(Pu=1,(function(e,r){(function(t,i){e.exports=i()})(tg,function(){return(function(t){function i(o){if(n[o])return n[o].exports;var a=n[o]={i:o,l:!1,exports:{}};return t[o].call(a.exports,a,a.exports,i),a.l=!0,a.exports}var n={};return i.m=t,i.c=n,i.i=function(o){return o},i.d=function(o,a,s){i.o(o,a)||Object.defineProperty(o,a,{configurable:!1,enumerable:!0,get:s})},i.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(a,"a",a),a},i.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},i.p="",i(i.s=38)})([function(t,i){function n(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}t.exports=n},function(t,i,n){var o=n(22),a=typeof self=="object"&&self&&self.Object===Object&&self,s=o||a||Function("return this")();t.exports=s},function(t,i){function n(o){return o!=null&&typeof o=="object"}t.exports=n},function(t,i,n){function o(l){var u=-1,h=l==null?0:l.length;for(this.clear();++u<h;){var p=l[u];this.set(p[0],p[1])}}var a=n(75),s=n(76),c=n(77),d=n(78),f=n(79);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=c,o.prototype.has=d,o.prototype.set=f,t.exports=o},function(t,i,n){function o(s,c){for(var d=s.length;d--;)if(a(s[d][0],c))return d;return-1}var a=n(8);t.exports=o},function(t,i,n){function o(u){return u==null?u===void 0?f:d:l&&l in Object(u)?s(u):c(u)}var a=n(16),s=n(64),c=n(87),d="[object Null]",f="[object Undefined]",l=a?a.toStringTag:void 0;t.exports=o},function(t,i,n){function o(s,c){var d=s.__data__;return a(c)?d[typeof c=="string"?"string":"hash"]:d.map}var a=n(73);t.exports=o},function(t,i,n){var o=n(11),a=o(Object,"create");t.exports=a},function(t,i){function n(o,a){return o===a||o!==o&&a!==a}t.exports=n},function(t,i,n){function o(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")}n.d(i,"a",function(){return a});var a=function s(c){o(this,s),this.onCreate=function(){},this.onDestroy=function(){},this.onUpdate=function(){},this.overlay=c.overlay,this.img=c.img,this.options=c.options,this.requestUpdate=c.onUpdate}},function(t,i,n){function o(s,c,d){c=="__proto__"&&a?a(s,c,{configurable:!0,enumerable:!0,value:d,writable:!0}):s[c]=d}var a=n(21);t.exports=o},function(t,i,n){function o(c,d){var f=s(c,d);return a(f)?f:void 0}var a=n(48),s=n(65);t.exports=o},function(t,i,n){function o(c){return c!=null&&s(c.length)&&!a(c)}var a=n(13),s=n(30);t.exports=o},function(t,i,n){function o(u){if(!s(u))return!1;var h=a(u);return h==d||h==f||h==c||h==l}var a=n(5),s=n(0),c="[object AsyncFunction]",d="[object Function]",f="[object GeneratorFunction]",l="[object Proxy]";t.exports=o},function(t,i){t.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),n.webpackPolyfill=1),n}},function(t,i,n){var o=n(11),a=n(1),s=o(a,"Map");t.exports=s},function(t,i,n){var o=n(1),a=o.Symbol;t.exports=a},function(t,i){function n(o,a,s){switch(s.length){case 0:return o.call(a);case 1:return o.call(a,s[0]);case 2:return o.call(a,s[0],s[1]);case 3:return o.call(a,s[0],s[1],s[2])}return o.apply(a,s)}t.exports=n},function(t,i,n){function o(c,d,f){(f===void 0||s(c[d],f))&&(f!==void 0||d in c)||a(c,d,f)}var a=n(10),s=n(8);t.exports=o},function(t,i,n){function o(u,h,p,m,v){u!==h&&c(h,function(y,g){if(f(y))v||(v=new a),d(u,h,g,p,o,m,v);else{var w=m?m(u[g],y,g+"",u,h,v):void 0;w===void 0&&(w=y),s(u,g,w)}},l)}var a=n(41),s=n(18),c=n(46),d=n(51),f=n(0),l=n(32);t.exports=o},function(t,i,n){function o(d,f){return c(s(d,f,a),d+"")}var a=n(26),s=n(89),c=n(90);t.exports=o},function(t,i,n){var o=n(11),a=(function(){try{var s=o(Object,"defineProperty");return s({},"",{}),s}catch{}})();t.exports=a},function(t,i,n){(function(o){var a=typeof o=="object"&&o&&o.Object===Object&&o;t.exports=a}).call(i,n(107))},function(t,i,n){var o=n(88),a=o(Object.getPrototypeOf,Object);t.exports=a},function(t,i){function n(s,c){return!!(c=c??o)&&(typeof s=="number"||a.test(s))&&s>-1&&s%1==0&&s<c}var o=9007199254740991,a=/^(?:0|[1-9]\d*)$/;t.exports=n},function(t,i){function n(a){var s=a&&a.constructor;return a===(typeof s=="function"&&s.prototype||o)}var o=Object.prototype;t.exports=n},function(t,i){function n(o){return o}t.exports=n},function(t,i,n){var o=n(47),a=n(2),s=Object.prototype,c=s.hasOwnProperty,d=s.propertyIsEnumerable,f=o((function(){return arguments})())?o:function(l){return a(l)&&c.call(l,"callee")&&!d.call(l,"callee")};t.exports=f},function(t,i){var n=Array.isArray;t.exports=n},function(t,i,n){(function(o){var a=n(1),s=n(102),c=typeof i=="object"&&i&&!i.nodeType&&i,d=c&&typeof o=="object"&&o&&!o.nodeType&&o,f=d&&d.exports===c,l=f?a.Buffer:void 0,u=l?l.isBuffer:void 0,h=u||s;o.exports=h}).call(i,n(14)(t))},function(t,i){function n(a){return typeof a=="number"&&a>-1&&a%1==0&&a<=o}var o=9007199254740991;t.exports=n},function(t,i,n){var o=n(49),a=n(54),s=n(86),c=s&&s.isTypedArray,d=c?a(c):o;t.exports=d},function(t,i,n){function o(d){return c(d)?a(d,!0):s(d)}var a=n(43),s=n(50),c=n(12);t.exports=o},function(t,i,n){i.a={modules:["DisplaySize","Toolbar","Resize"],overlayStyles:{position:"absolute",boxSizing:"border-box",border:"1px dashed #444"},handleStyles:{position:"absolute",height:"12px",width:"12px",backgroundColor:"white",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80"},displayStyles:{position:"absolute",font:"12px/1.0 Arial, Helvetica, sans-serif",padding:"4px 8px",textAlign:"center",backgroundColor:"white",color:"#333",border:"1px solid #777",boxSizing:"border-box",opacity:"0.80",cursor:"default"},toolbarStyles:{position:"absolute",top:"-12px",right:"0",left:"0",height:"0",minWidth:"100px",font:"12px/1.0 Arial, Helvetica, sans-serif",textAlign:"center",color:"#333",boxSizing:"border-box",cursor:"default"},toolbarButtonStyles:{display:"inline-block",width:"24px",height:"24px",background:"white",border:"1px solid #999",verticalAlign:"middle"},toolbarButtonSvgStyles:{fill:"#444",stroke:"#444",strokeWidth:"2"}}},function(t,i,n){function o(f,l){if(!(f instanceof l))throw new TypeError("Cannot call a class as a function")}function a(f,l){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||typeof l!="object"&&typeof l!="function"?f:l}function s(f,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);f.prototype=Object.create(l&&l.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(f,l):f.__proto__=l)}var c=n(9);n.d(i,"a",function(){return d});var d=(function(f){function l(){var u,h,p,m;o(this,l);for(var v=arguments.length,y=Array(v),g=0;g<v;g++)y[g]=arguments[g];return h=p=a(this,(u=l.__proto__||Object.getPrototypeOf(l)).call.apply(u,[this].concat(y))),p.onCreate=function(){p.display=document.createElement("div"),Object.assign(p.display.style,p.options.displayStyles),p.overlay.appendChild(p.display)},p.onDestroy=function(){},p.onUpdate=function(){if(p.display&&p.img){var w=p.getCurrentSize();if(p.display.innerHTML=w.join(" × "),w[0]>120&&w[1]>30)Object.assign(p.display.style,{right:"4px",bottom:"4px",left:"auto"});else if(p.img.style.float=="right"){var b=p.display.getBoundingClientRect();Object.assign(p.display.style,{right:"auto",bottom:"-"+(b.height+4)+"px",left:"-"+(b.width+4)+"px"})}else{var x=p.display.getBoundingClientRect();Object.assign(p.display.style,{right:"-"+(x.width+4)+"px",bottom:"-"+(x.height+4)+"px",left:"auto"})}}},p.getCurrentSize=function(){return[p.img.width,Math.round(p.img.width/p.img.naturalWidth*p.img.naturalHeight)]},m=h,a(p,m)}return s(l,f),l})(c.a)},function(t,i,n){function o(f,l){if(!(f instanceof l))throw new TypeError("Cannot call a class as a function")}function a(f,l){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!l||typeof l!="object"&&typeof l!="function"?f:l}function s(f,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);f.prototype=Object.create(l&&l.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(f,l):f.__proto__=l)}var c=n(9);n.d(i,"a",function(){return d});var d=(function(f){function l(){var u,h,p,m;o(this,l);for(var v=arguments.length,y=Array(v),g=0;g<v;g++)y[g]=arguments[g];return h=p=a(this,(u=l.__proto__||Object.getPrototypeOf(l)).call.apply(u,[this].concat(y))),p.onCreate=function(){p.boxes=[],p.addBox("nwse-resize"),p.addBox("nesw-resize"),p.addBox("nwse-resize"),p.addBox("nesw-resize"),p.positionBoxes()},p.onDestroy=function(){p.setCursor("")},p.positionBoxes=function(){var w=-parseFloat(p.options.handleStyles.width)/2+"px",b=-parseFloat(p.options.handleStyles.height)/2+"px";[{left:w,top:b},{right:w,top:b},{right:w,bottom:b},{left:w,bottom:b}].forEach(function(x,_){Object.assign(p.boxes[_].style,x)})},p.addBox=function(w){var b=document.createElement("div");Object.assign(b.style,p.options.handleStyles),b.style.cursor=w,b.style.width=p.options.handleStyles.width+"px",b.style.height=p.options.handleStyles.height+"px",b.addEventListener("mousedown",p.handleMousedown,!1),p.overlay.appendChild(b),p.boxes.push(b)},p.handleMousedown=function(w){p.dragBox=w.target,p.dragStartX=w.clientX,p.preDragWidth=p.img.width||p.img.naturalWidth,p.setCursor(p.dragBox.style.cursor),document.addEventListener("mousemove",p.handleDrag,!1),document.addEventListener("mouseup",p.handleMouseup,!1)},p.handleMouseup=function(){p.setCursor(""),document.removeEventListener("mousemove",p.handleDrag),document.removeEventListener("mouseup",p.handleMouseup)},p.handleDrag=function(w){if(p.img){var b=w.clientX-p.dragStartX;p.dragBox===p.boxes[0]||p.dragBox===p.boxes[3]?p.img.width=Math.round(p.preDragWidth-b):p.img.width=Math.round(p.preDragWidth+b),p.requestUpdate()}},p.setCursor=function(w){[document.body,p.img].forEach(function(b){b.style.cursor=w})},m=h,a(p,m)}return s(l,f),l})(c.a)},function(t,i,n){function o(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")}function a(b,x){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!x||typeof x!="object"&&typeof x!="function"?b:x}function s(b,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);b.prototype=Object.create(x&&x.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(b,x):b.__proto__=x)}var c=n(105),d=n.n(c),f=n(104),l=n.n(f),u=n(106),h=n.n(u),p=n(9);n.d(i,"a",function(){return w});var m={},v={},y={},g={},w=(function(b){function x(){var _,E,C,k;o(this,x);for(var O=arguments.length,S=Array(O),R=0;R<O;R++)S[R]=arguments[R];return E=C=a(this,(_=x.__proto__||Object.getPrototypeOf(x)).call.apply(_,[this].concat(S))),C.onCreate=function(T){m=T,v=new m.Attributor.Style("float","float"),y=new m.Attributor.Style("margin","margin"),g=new m.Attributor.Style("display","display"),C.toolbar=document.createElement("div"),Object.assign(C.toolbar.style,C.options.toolbarStyles),C.overlay.appendChild(C.toolbar),C._defineAlignments(),C._addToolbarButtons()},C.onDestroy=function(){},C.onUpdate=function(){},C._defineAlignments=function(){C.alignments=[{icon:d.a,apply:function(){g.add(C.img,"inline"),v.add(C.img,"left"),y.add(C.img,"0 1em 1em 0")},isApplied:function(){return v.value(C.img)=="left"}},{icon:l.a,apply:function(){g.add(C.img,"block"),v.remove(C.img),y.add(C.img,"auto")},isApplied:function(){return y.value(C.img)=="auto"}},{icon:h.a,apply:function(){g.add(C.img,"inline"),v.add(C.img,"right"),y.add(C.img,"0 0 1em 1em")},isApplied:function(){return v.value(C.img)=="right"}}]},C._addToolbarButtons=function(){var T=[];C.alignments.forEach(function(P,L){var F=document.createElement("span");T.push(F),F.innerHTML=P.icon,F.addEventListener("click",function(){T.forEach(function($){return $.style.filter=""}),P.isApplied()?(v.remove(C.img),y.remove(C.img),g.remove(C.img)):(C._selectButton(F),P.apply()),C.requestUpdate()}),Object.assign(F.style,C.options.toolbarButtonStyles),L>0&&(F.style.borderLeftWidth="0"),Object.assign(F.children[0].style,C.options.toolbarButtonSvgStyles),P.isApplied()&&C._selectButton(F),C.toolbar.appendChild(F)})},C._selectButton=function(T){T.style.filter="invert(20%)"},k=E,a(C,k)}return s(x,b),x})(p.a)},function(t,i,n){var o=n(17),a=n(20),s=n(63),c=n(101),d=a(function(f){return f.push(void 0,s),o(c,void 0,f)});t.exports=d},function(t,i,n){function o(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(i,"__esModule",{value:!0});var a=n(37),s=n.n(a),c=n(33),d=n(34),f=n(36),l=n(35),u={DisplaySize:d.a,Toolbar:f.a,Resize:l.a},h=function p(m){var v=this,y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o(this,p),this.initializeModules=function(){v.removeModules(),v.modules=v.moduleClasses.map(function(w){return new(u[w]||w)(v)}),v.modules.forEach(function(w){w.onCreate(v.parchment)}),v.onUpdate()},this.onUpdate=function(){v.repositionElements(),v.modules.forEach(function(w){w.onUpdate()})},this.removeModules=function(){v.modules.forEach(function(w){w.onDestroy()}),v.modules=[]},this.handleClick=function(w){if(w.target&&w.target.tagName&&w.target.tagName.toUpperCase()==="IMG"){if(v.img===w.target)return;v.img&&v.hide(),v.show(w.target)}else v.img&&v.hide()},this.show=function(w){v.img=w,v.showOverlay(),v.initializeModules()},this.showOverlay=function(){v.overlay&&v.hideOverlay(),v.quill.setSelection(null),v.setUserSelect("none"),document.addEventListener("keyup",v.checkImage,!0),v.quill.root.addEventListener("input",v.checkImage,!0),v.overlay=document.createElement("div"),Object.assign(v.overlay.style,v.options.overlayStyles),v.quill.root.parentNode.appendChild(v.overlay),v.repositionElements()},this.hideOverlay=function(){v.overlay&&(v.quill.root.parentNode.removeChild(v.overlay),v.overlay=void 0,document.removeEventListener("keyup",v.checkImage),v.quill.root.removeEventListener("input",v.checkImage),v.setUserSelect(""))},this.repositionElements=function(){if(v.overlay&&v.img){var w=v.quill.root.parentNode,b=v.img.getBoundingClientRect(),x=w.getBoundingClientRect();Object.assign(v.overlay.style,{left:b.left-x.left-1+w.scrollLeft+"px",top:b.top-x.top+w.scrollTop+"px",width:b.width+"px",height:b.height+"px"})}},this.hide=function(){v.hideOverlay(),v.removeModules(),v.img=void 0},this.setUserSelect=function(w){["userSelect","mozUserSelect","webkitUserSelect","msUserSelect"].forEach(function(b){v.quill.root.style[b]=w,document.documentElement.style[b]=w})},this.checkImage=function(w){v.img&&(w.keyCode!=46&&w.keyCode!=8||window.Quill.find(v.img).deleteAt(0),v.hide())},this.quill=m;var g=!1;y.modules&&(g=y.modules.slice()),y.parchment&&(this.parchment=y.parchment),this.options=s()({},y,c.a),g!==!1&&(this.options.modules=g),document.execCommand("enableObjectResizing",!1,"false"),this.quill.root.addEventListener("click",this.handleClick,!1),this.quill.root.parentNode.style.position=this.quill.root.parentNode.style.position||"relative",this.moduleClasses=this.options.modules,this.modules=[]};i.default=h,window.Quill&&window.Quill.register("modules/imageResize",h)},function(t,i,n){function o(l){var u=-1,h=l==null?0:l.length;for(this.clear();++u<h;){var p=l[u];this.set(p[0],p[1])}}var a=n(66),s=n(67),c=n(68),d=n(69),f=n(70);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=c,o.prototype.has=d,o.prototype.set=f,t.exports=o},function(t,i,n){function o(l){var u=-1,h=l==null?0:l.length;for(this.clear();++u<h;){var p=l[u];this.set(p[0],p[1])}}var a=n(80),s=n(81),c=n(82),d=n(83),f=n(84);o.prototype.clear=a,o.prototype.delete=s,o.prototype.get=c,o.prototype.has=d,o.prototype.set=f,t.exports=o},function(t,i,n){function o(u){var h=this.__data__=new a(u);this.size=h.size}var a=n(3),s=n(92),c=n(93),d=n(94),f=n(95),l=n(96);o.prototype.clear=s,o.prototype.delete=c,o.prototype.get=d,o.prototype.has=f,o.prototype.set=l,t.exports=o},function(t,i,n){var o=n(1),a=o.Uint8Array;t.exports=a},function(t,i,n){function o(p,m){var v=c(p),y=!v&&s(p),g=!v&&!y&&d(p),w=!v&&!y&&!g&&l(p),b=v||y||g||w,x=b?a(p.length,String):[],_=x.length;for(var E in p)!m&&!h.call(p,E)||b&&(E=="length"||g&&(E=="offset"||E=="parent")||w&&(E=="buffer"||E=="byteLength"||E=="byteOffset")||f(E,_))||x.push(E);return x}var a=n(53),s=n(27),c=n(28),d=n(29),f=n(24),l=n(31),u=Object.prototype,h=u.hasOwnProperty;t.exports=o},function(t,i,n){function o(f,l,u){var h=f[l];d.call(f,l)&&s(h,u)&&(u!==void 0||l in f)||a(f,l,u)}var a=n(10),s=n(8),c=Object.prototype,d=c.hasOwnProperty;t.exports=o},function(t,i,n){var o=n(0),a=Object.create,s=(function(){function c(){}return function(d){if(!o(d))return{};if(a)return a(d);c.prototype=d;var f=new c;return c.prototype=void 0,f}})();t.exports=s},function(t,i,n){var o=n(62),a=o();t.exports=a},function(t,i,n){function o(d){return s(d)&&a(d)==c}var a=n(5),s=n(2),c="[object Arguments]";t.exports=o},function(t,i,n){function o(v){return!(!c(v)||s(v))&&(a(v)?m:f).test(d(v))}var a=n(13),s=n(74),c=n(0),d=n(97),f=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,h=l.toString,p=u.hasOwnProperty,m=RegExp("^"+h.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=o},function(t,i,n){function o(f){return c(f)&&s(f.length)&&!!d[a(f)]}var a=n(5),s=n(30),c=n(2),d={};d["[object Float32Array]"]=d["[object Float64Array]"]=d["[object Int8Array]"]=d["[object Int16Array]"]=d["[object Int32Array]"]=d["[object Uint8Array]"]=d["[object Uint8ClampedArray]"]=d["[object Uint16Array]"]=d["[object Uint32Array]"]=!0,d["[object Arguments]"]=d["[object Array]"]=d["[object ArrayBuffer]"]=d["[object Boolean]"]=d["[object DataView]"]=d["[object Date]"]=d["[object Error]"]=d["[object Function]"]=d["[object Map]"]=d["[object Number]"]=d["[object Object]"]=d["[object RegExp]"]=d["[object Set]"]=d["[object String]"]=d["[object WeakMap]"]=!1,t.exports=o},function(t,i,n){function o(l){if(!a(l))return c(l);var u=s(l),h=[];for(var p in l)(p!="constructor"||!u&&f.call(l,p))&&h.push(p);return h}var a=n(0),s=n(25),c=n(85),d=Object.prototype,f=d.hasOwnProperty;t.exports=o},function(t,i,n){function o(b,x,_,E,C,k,O){var S=b[_],R=x[_],T=O.get(R);if(T)return void a(b,_,T);var P=k?k(S,R,_+"",b,x,O):void 0,L=P===void 0;if(L){var F=u(R),$=!F&&p(R),z=!F&&!$&&g(R);P=R,F||$||z?u(S)?P=S:h(S)?P=d(S):$?(L=!1,P=s(R,!0)):z?(L=!1,P=c(R,!0)):P=[]:y(R)||l(R)?(P=S,l(S)?P=w(S):(!v(S)||E&&m(S))&&(P=f(R))):L=!1}L&&(O.set(R,P),C(P,R,E,k,O),O.delete(R)),a(b,_,P)}var a=n(18),s=n(56),c=n(57),d=n(58),f=n(71),l=n(27),u=n(28),h=n(99),p=n(29),m=n(13),v=n(0),y=n(100),g=n(31),w=n(103);t.exports=o},function(t,i,n){var o=n(98),a=n(21),s=n(26),c=a?function(d,f){return a(d,"toString",{configurable:!0,enumerable:!1,value:o(f),writable:!0})}:s;t.exports=c},function(t,i){function n(o,a){for(var s=-1,c=Array(o);++s<o;)c[s]=a(s);return c}t.exports=n},function(t,i){function n(o){return function(a){return o(a)}}t.exports=n},function(t,i,n){function o(s){var c=new s.constructor(s.byteLength);return new a(c).set(new a(s)),c}var a=n(42);t.exports=o},function(t,i,n){(function(o){function a(h,p){if(p)return h.slice();var m=h.length,v=u?u(m):new h.constructor(m);return h.copy(v),v}var s=n(1),c=typeof i=="object"&&i&&!i.nodeType&&i,d=c&&typeof o=="object"&&o&&!o.nodeType&&o,f=d&&d.exports===c,l=f?s.Buffer:void 0,u=l?l.allocUnsafe:void 0;o.exports=a}).call(i,n(14)(t))},function(t,i,n){function o(s,c){var d=c?a(s.buffer):s.buffer;return new s.constructor(d,s.byteOffset,s.length)}var a=n(55);t.exports=o},function(t,i){function n(o,a){var s=-1,c=o.length;for(a||(a=Array(c));++s<c;)a[s]=o[s];return a}t.exports=n},function(t,i,n){function o(c,d,f,l){var u=!f;f||(f={});for(var h=-1,p=d.length;++h<p;){var m=d[h],v=l?l(f[m],c[m],m,f,c):void 0;v===void 0&&(v=c[m]),u?s(f,m,v):a(f,m,v)}return f}var a=n(44),s=n(10);t.exports=o},function(t,i,n){var o=n(1),a=o["__core-js_shared__"];t.exports=a},function(t,i,n){function o(c){return a(function(d,f){var l=-1,u=f.length,h=u>1?f[u-1]:void 0,p=u>2?f[2]:void 0;for(h=c.length>3&&typeof h=="function"?(u--,h):void 0,p&&s(f[0],f[1],p)&&(h=u<3?void 0:h,u=1),d=Object(d);++l<u;){var m=f[l];m&&c(d,m,l,h)}return d})}var a=n(20),s=n(72);t.exports=o},function(t,i){function n(o){return function(a,s,c){for(var d=-1,f=Object(a),l=c(a),u=l.length;u--;){var h=l[o?u:++d];if(s(f[h],h,f)===!1)break}return a}}t.exports=n},function(t,i,n){function o(c,d,f,l,u,h){return s(c)&&s(d)&&(h.set(d,c),a(c,d,void 0,o,h),h.delete(d)),c}var a=n(19),s=n(0);t.exports=o},function(t,i,n){function o(l){var u=c.call(l,f),h=l[f];try{l[f]=void 0}catch{}var p=d.call(l);return u?l[f]=h:delete l[f],p}var a=n(16),s=Object.prototype,c=s.hasOwnProperty,d=s.toString,f=a?a.toStringTag:void 0;t.exports=o},function(t,i){function n(o,a){return o?.[a]}t.exports=n},function(t,i,n){function o(){this.__data__=a?a(null):{},this.size=0}var a=n(7);t.exports=o},function(t,i){function n(o){var a=this.has(o)&&delete this.__data__[o];return this.size-=a?1:0,a}t.exports=n},function(t,i,n){function o(f){var l=this.__data__;if(a){var u=l[f];return u===s?void 0:u}return d.call(l,f)?l[f]:void 0}var a=n(7),s="__lodash_hash_undefined__",c=Object.prototype,d=c.hasOwnProperty;t.exports=o},function(t,i,n){function o(d){var f=this.__data__;return a?f[d]!==void 0:c.call(f,d)}var a=n(7),s=Object.prototype,c=s.hasOwnProperty;t.exports=o},function(t,i,n){function o(c,d){var f=this.__data__;return this.size+=this.has(c)?0:1,f[c]=a&&d===void 0?s:d,this}var a=n(7),s="__lodash_hash_undefined__";t.exports=o},function(t,i,n){function o(d){return typeof d.constructor!="function"||c(d)?{}:a(s(d))}var a=n(45),s=n(23),c=n(25);t.exports=o},function(t,i,n){function o(f,l,u){if(!d(u))return!1;var h=typeof l;return!!(h=="number"?s(u)&&c(l,u.length):h=="string"&&l in u)&&a(u[l],f)}var a=n(8),s=n(12),c=n(24),d=n(0);t.exports=o},function(t,i){function n(o){var a=typeof o;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?o!=="__proto__":o===null}t.exports=n},function(t,i,n){function o(c){return!!s&&s in c}var a=n(60),s=(function(){var c=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})();t.exports=o},function(t,i){function n(){this.__data__=[],this.size=0}t.exports=n},function(t,i,n){function o(d){var f=this.__data__,l=a(f,d);return!(l<0)&&(l==f.length-1?f.pop():c.call(f,l,1),--this.size,!0)}var a=n(4),s=Array.prototype,c=s.splice;t.exports=o},function(t,i,n){function o(s){var c=this.__data__,d=a(c,s);return d<0?void 0:c[d][1]}var a=n(4);t.exports=o},function(t,i,n){function o(s){return a(this.__data__,s)>-1}var a=n(4);t.exports=o},function(t,i,n){function o(s,c){var d=this.__data__,f=a(d,s);return f<0?(++this.size,d.push([s,c])):d[f][1]=c,this}var a=n(4);t.exports=o},function(t,i,n){function o(){this.size=0,this.__data__={hash:new a,map:new(c||s),string:new a}}var a=n(39),s=n(3),c=n(15);t.exports=o},function(t,i,n){function o(s){var c=a(this,s).delete(s);return this.size-=c?1:0,c}var a=n(6);t.exports=o},function(t,i,n){function o(s){return a(this,s).get(s)}var a=n(6);t.exports=o},function(t,i,n){function o(s){return a(this,s).has(s)}var a=n(6);t.exports=o},function(t,i,n){function o(s,c){var d=a(this,s),f=d.size;return d.set(s,c),this.size+=d.size==f?0:1,this}var a=n(6);t.exports=o},function(t,i){function n(o){var a=[];if(o!=null)for(var s in Object(o))a.push(s);return a}t.exports=n},function(t,i,n){(function(o){var a=n(22),s=typeof i=="object"&&i&&!i.nodeType&&i,c=s&&typeof o=="object"&&o&&!o.nodeType&&o,d=c&&c.exports===s,f=d&&a.process,l=(function(){try{return f&&f.binding&&f.binding("util")}catch{}})();o.exports=l}).call(i,n(14)(t))},function(t,i){function n(s){return a.call(s)}var o=Object.prototype,a=o.toString;t.exports=n},function(t,i){function n(o,a){return function(s){return o(a(s))}}t.exports=n},function(t,i,n){function o(c,d,f){return d=s(d===void 0?c.length-1:d,0),function(){for(var l=arguments,u=-1,h=s(l.length-d,0),p=Array(h);++u<h;)p[u]=l[d+u];u=-1;for(var m=Array(d+1);++u<d;)m[u]=l[u];return m[d]=f(p),a(c,this,m)}}var a=n(17),s=Math.max;t.exports=o},function(t,i,n){var o=n(52),a=n(91),s=a(o);t.exports=s},function(t,i){function n(c){var d=0,f=0;return function(){var l=s(),u=a-(l-f);if(f=l,u>0){if(++d>=o)return arguments[0]}else d=0;return c.apply(void 0,arguments)}}var o=800,a=16,s=Date.now;t.exports=n},function(t,i,n){function o(){this.__data__=new a,this.size=0}var a=n(3);t.exports=o},function(t,i){function n(o){var a=this.__data__,s=a.delete(o);return this.size=a.size,s}t.exports=n},function(t,i){function n(o){return this.__data__.get(o)}t.exports=n},function(t,i){function n(o){return this.__data__.has(o)}t.exports=n},function(t,i,n){function o(f,l){var u=this.__data__;if(u instanceof a){var h=u.__data__;if(!s||h.length<d-1)return h.push([f,l]),this.size=++u.size,this;u=this.__data__=new c(h)}return u.set(f,l),this.size=u.size,this}var a=n(3),s=n(15),c=n(40),d=200;t.exports=o},function(t,i){function n(s){if(s!=null){try{return a.call(s)}catch{}try{return s+""}catch{}}return""}var o=Function.prototype,a=o.toString;t.exports=n},function(t,i){function n(o){return function(){return o}}t.exports=n},function(t,i,n){function o(c){return s(c)&&a(c)}var a=n(12),s=n(2);t.exports=o},function(t,i,n){function o(m){if(!c(m)||a(m)!=d)return!1;var v=s(m);if(v===null)return!0;var y=h.call(v,"constructor")&&v.constructor;return typeof y=="function"&&y instanceof y&&u.call(y)==p}var a=n(5),s=n(23),c=n(2),d="[object Object]",f=Function.prototype,l=Object.prototype,u=f.toString,h=l.hasOwnProperty,p=u.call(Object);t.exports=o},function(t,i,n){var o=n(19),a=n(61),s=a(function(c,d,f,l){o(c,d,f,l)});t.exports=s},function(t,i){function n(){return!1}t.exports=n},function(t,i,n){function o(c){return a(c,s(c))}var a=n(59),s=n(32);t.exports=o},function(t,i){t.exports=`<svg viewbox="0 0 18 18">
|
|
2
2
|
<line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"></line>
|
|
3
3
|
<line class="ql-stroke" x1="14" x2="4" y1="14" y2="14"></line>
|
|
4
4
|
<line class="ql-stroke" x1="12" x2="6" y1="4" y2="4"></line>
|
|
@@ -10,39 +10,39 @@
|
|
|
10
10
|
<line class="ql-stroke" x1="15" x2="3" y1="9" y2="9"></line>
|
|
11
11
|
<line class="ql-stroke" x1="15" x2="5" y1="14" y2="14"></line>
|
|
12
12
|
<line class="ql-stroke" x1="15" x2="9" y1="4" y2="4"></line>
|
|
13
|
-
</svg>`},function(t,i){var n;n=(function(){return this})();try{n=n||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(n=window)}t.exports=n}])})})(Ai)),Ai.exports}var ng=rg();const ig=er.getDefaultExportFromCjs(ng);var jo,Pu;function og(){if(Pu)return jo;Pu=1;function e(){this.__data__=[],this.size=0}return jo=e,jo}var No,ku;function eh(){if(ku)return No;ku=1;function e(r,t){return r===t||r!==r&&t!==t}return No=e,No}var Mo,ju;function Gi(){if(ju)return Mo;ju=1;var e=eh();function r(t,i){for(var n=t.length;n--;)if(e(t[n][0],i))return n;return-1}return Mo=r,Mo}var Io,Nu;function ag(){if(Nu)return Io;Nu=1;var e=Gi(),r=Array.prototype,t=r.splice;function i(n){var o=this.__data__,a=e(o,n);if(a<0)return!1;var s=o.length-1;return a==s?o.pop():t.call(o,a,1),--this.size,!0}return Io=i,Io}var Lo,Mu;function sg(){if(Mu)return Lo;Mu=1;var e=Gi();function r(t){var i=this.__data__,n=e(i,t);return n<0?void 0:i[n][1]}return Lo=r,Lo}var $o,Iu;function lg(){if(Iu)return $o;Iu=1;var e=Gi();function r(t){return e(this.__data__,t)>-1}return $o=r,$o}var Fo,Lu;function ug(){if(Lu)return Fo;Lu=1;var e=Gi();function r(t,i){var n=this.__data__,o=e(n,t);return o<0?(++this.size,n.push([t,i])):n[o][1]=i,this}return Fo=r,Fo}var Do,$u;function Yi(){if($u)return Do;$u=1;var e=og(),r=ag(),t=sg(),i=lg(),n=ug();function o(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var d=a[s];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=r,o.prototype.get=t,o.prototype.has=i,o.prototype.set=n,Do=o,Do}var qo,Fu;function cg(){if(Fu)return qo;Fu=1;var e=Yi();function r(){this.__data__=new e,this.size=0}return qo=r,qo}var Bo,Du;function fg(){if(Du)return Bo;Du=1;function e(r){var t=this.__data__,i=t.delete(r);return this.size=t.size,i}return Bo=e,Bo}var Vo,qu;function dg(){if(qu)return Vo;qu=1;function e(r){return this.__data__.get(r)}return Vo=e,Vo}var Ho,Bu;function hg(){if(Bu)return Ho;Bu=1;function e(r){return this.__data__.has(r)}return Ho=e,Ho}var zo,Vu;function th(){if(Vu)return zo;Vu=1;var e=typeof er.commonjsGlobal=="object"&&er.commonjsGlobal&&er.commonjsGlobal.Object===Object&&er.commonjsGlobal;return zo=e,zo}var Uo,Hu;function nr(){if(Hu)return Uo;Hu=1;var e=th(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return Uo=t,Uo}var Wo,zu;function Ll(){if(zu)return Wo;zu=1;var e=nr(),r=e.Symbol;return Wo=r,Wo}var Ko,Uu;function vg(){if(Uu)return Ko;Uu=1;var e=Ll(),r=Object.prototype,t=r.hasOwnProperty,i=r.toString,n=e?e.toStringTag:void 0;function o(a){var s=t.call(a,n),c=a[n];try{a[n]=void 0;var d=!0}catch{}var f=i.call(a);return d&&(s?a[n]=c:delete a[n]),f}return Ko=o,Ko}var Go,Wu;function pg(){if(Wu)return Go;Wu=1;var e=Object.prototype,r=e.toString;function t(i){return r.call(i)}return Go=t,Go}var Yo,Ku;function Xi(){if(Ku)return Yo;Ku=1;var e=Ll(),r=vg(),t=pg(),i="[object Null]",n="[object Undefined]",o=e?e.toStringTag:void 0;function a(s){return s==null?s===void 0?n:i:o&&o in Object(s)?r(s):t(s)}return Yo=a,Yo}var Xo,Gu;function rh(){if(Gu)return Xo;Gu=1;function e(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}return Xo=e,Xo}var Zo,Yu;function nh(){if(Yu)return Zo;Yu=1;var e=Xi(),r=rh(),t="[object AsyncFunction]",i="[object Function]",n="[object GeneratorFunction]",o="[object Proxy]";function a(s){if(!r(s))return!1;var c=e(s);return c==i||c==n||c==t||c==o}return Zo=a,Zo}var Qo,Xu;function gg(){if(Xu)return Qo;Xu=1;var e=nr(),r=e["__core-js_shared__"];return Qo=r,Qo}var Jo,Zu;function mg(){if(Zu)return Jo;Zu=1;var e=gg(),r=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function t(i){return!!r&&r in i}return Jo=t,Jo}var ea,Qu;function ih(){if(Qu)return ea;Qu=1;var e=Function.prototype,r=e.toString;function t(i){if(i!=null){try{return r.call(i)}catch{}try{return i+""}catch{}}return""}return ea=t,ea}var ta,Ju;function yg(){if(Ju)return ta;Ju=1;var e=nh(),r=mg(),t=rh(),i=ih(),n=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,a=Function.prototype,s=Object.prototype,c=a.toString,d=s.hasOwnProperty,f=RegExp("^"+c.call(d).replace(n,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(u){if(!t(u)||r(u))return!1;var h=e(u)?f:o;return h.test(i(u))}return ta=l,ta}var ra,ec;function bg(){if(ec)return ra;ec=1;function e(r,t){return r?.[t]}return ra=e,ra}var na,tc;function nn(){if(tc)return na;tc=1;var e=yg(),r=bg();function t(i,n){var o=r(i,n);return e(o)?o:void 0}return na=t,na}var ia,rc;function $l(){if(rc)return ia;rc=1;var e=nn(),r=nr(),t=e(r,"Map");return ia=t,ia}var oa,nc;function Zi(){if(nc)return oa;nc=1;var e=nn(),r=e(Object,"create");return oa=r,oa}var aa,ic;function xg(){if(ic)return aa;ic=1;var e=Zi();function r(){this.__data__=e?e(null):{},this.size=0}return aa=r,aa}var sa,oc;function wg(){if(oc)return sa;oc=1;function e(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}return sa=e,sa}var la,ac;function Eg(){if(ac)return la;ac=1;var e=Zi(),r="__lodash_hash_undefined__",t=Object.prototype,i=t.hasOwnProperty;function n(o){var a=this.__data__;if(e){var s=a[o];return s===r?void 0:s}return i.call(a,o)?a[o]:void 0}return la=n,la}var ua,sc;function _g(){if(sc)return ua;sc=1;var e=Zi(),r=Object.prototype,t=r.hasOwnProperty;function i(n){var o=this.__data__;return e?o[n]!==void 0:t.call(o,n)}return ua=i,ua}var ca,lc;function Sg(){if(lc)return ca;lc=1;var e=Zi(),r="__lodash_hash_undefined__";function t(i,n){var o=this.__data__;return this.size+=this.has(i)?0:1,o[i]=e&&n===void 0?r:n,this}return ca=t,ca}var fa,uc;function Cg(){if(uc)return fa;uc=1;var e=xg(),r=wg(),t=Eg(),i=_g(),n=Sg();function o(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var d=a[s];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=r,o.prototype.get=t,o.prototype.has=i,o.prototype.set=n,fa=o,fa}var da,cc;function Og(){if(cc)return da;cc=1;var e=Cg(),r=Yi(),t=$l();function i(){this.size=0,this.__data__={hash:new e,map:new(t||r),string:new e}}return da=i,da}var ha,fc;function Rg(){if(fc)return ha;fc=1;function e(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}return ha=e,ha}var va,dc;function Qi(){if(dc)return va;dc=1;var e=Rg();function r(t,i){var n=t.__data__;return e(i)?n[typeof i=="string"?"string":"hash"]:n.map}return va=r,va}var pa,hc;function Ag(){if(hc)return pa;hc=1;var e=Qi();function r(t){var i=e(this,t).delete(t);return this.size-=i?1:0,i}return pa=r,pa}var ga,vc;function Tg(){if(vc)return ga;vc=1;var e=Qi();function r(t){return e(this,t).get(t)}return ga=r,ga}var ma,pc;function Pg(){if(pc)return ma;pc=1;var e=Qi();function r(t){return e(this,t).has(t)}return ma=r,ma}var ya,gc;function kg(){if(gc)return ya;gc=1;var e=Qi();function r(t,i){var n=e(this,t),o=n.size;return n.set(t,i),this.size+=n.size==o?0:1,this}return ya=r,ya}var ba,mc;function oh(){if(mc)return ba;mc=1;var e=Og(),r=Ag(),t=Tg(),i=Pg(),n=kg();function o(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var d=a[s];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=r,o.prototype.get=t,o.prototype.has=i,o.prototype.set=n,ba=o,ba}var xa,yc;function jg(){if(yc)return xa;yc=1;var e=Yi(),r=$l(),t=oh(),i=200;function n(o,a){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!r||c.length<i-1)return c.push([o,a]),this.size=++s.size,this;s=this.__data__=new t(c)}return s.set(o,a),this.size=s.size,this}return xa=n,xa}var wa,bc;function Ng(){if(bc)return wa;bc=1;var e=Yi(),r=cg(),t=fg(),i=dg(),n=hg(),o=jg();function a(s){var c=this.__data__=new e(s);this.size=c.size}return a.prototype.clear=r,a.prototype.delete=t,a.prototype.get=i,a.prototype.has=n,a.prototype.set=o,wa=a,wa}var Ea,xc;function Mg(){if(xc)return Ea;xc=1;var e="__lodash_hash_undefined__";function r(t){return this.__data__.set(t,e),this}return Ea=r,Ea}var _a,wc;function Ig(){if(wc)return _a;wc=1;function e(r){return this.__data__.has(r)}return _a=e,_a}var Sa,Ec;function Lg(){if(Ec)return Sa;Ec=1;var e=oh(),r=Mg(),t=Ig();function i(n){var o=-1,a=n==null?0:n.length;for(this.__data__=new e;++o<a;)this.add(n[o])}return i.prototype.add=i.prototype.push=r,i.prototype.has=t,Sa=i,Sa}var Ca,_c;function $g(){if(_c)return Ca;_c=1;function e(r,t){for(var i=-1,n=r==null?0:r.length;++i<n;)if(t(r[i],i,r))return!0;return!1}return Ca=e,Ca}var Oa,Sc;function Fg(){if(Sc)return Oa;Sc=1;function e(r,t){return r.has(t)}return Oa=e,Oa}var Ra,Cc;function ah(){if(Cc)return Ra;Cc=1;var e=Lg(),r=$g(),t=Fg(),i=1,n=2;function o(a,s,c,d,f,l){var u=c&i,h=a.length,p=s.length;if(h!=p&&!(u&&p>h))return!1;var m=l.get(a),v=l.get(s);if(m&&v)return m==s&&v==a;var y=-1,g=!0,w=c&n?new e:void 0;for(l.set(a,s),l.set(s,a);++y<h;){var b=a[y],x=s[y];if(d)var _=u?d(x,b,y,s,a,l):d(b,x,y,a,s,l);if(_!==void 0){if(_)continue;g=!1;break}if(w){if(!r(s,function(E,C){if(!t(w,C)&&(b===E||f(b,E,c,d,l)))return w.push(C)})){g=!1;break}}else if(!(b===x||f(b,x,c,d,l))){g=!1;break}}return l.delete(a),l.delete(s),g}return Ra=o,Ra}var Aa,Oc;function Dg(){if(Oc)return Aa;Oc=1;var e=nr(),r=e.Uint8Array;return Aa=r,Aa}var Ta,Rc;function qg(){if(Rc)return Ta;Rc=1;function e(r){var t=-1,i=Array(r.size);return r.forEach(function(n,o){i[++t]=[o,n]}),i}return Ta=e,Ta}var Pa,Ac;function Bg(){if(Ac)return Pa;Ac=1;function e(r){var t=-1,i=Array(r.size);return r.forEach(function(n){i[++t]=n}),i}return Pa=e,Pa}var ka,Tc;function Vg(){if(Tc)return ka;Tc=1;var e=Ll(),r=Dg(),t=eh(),i=ah(),n=qg(),o=Bg(),a=1,s=2,c="[object Boolean]",d="[object Date]",f="[object Error]",l="[object Map]",u="[object Number]",h="[object RegExp]",p="[object Set]",m="[object String]",v="[object Symbol]",y="[object ArrayBuffer]",g="[object DataView]",w=e?e.prototype:void 0,b=w?w.valueOf:void 0;function x(_,E,C,P,O,S,R){switch(C){case g:if(_.byteLength!=E.byteLength||_.byteOffset!=E.byteOffset)return!1;_=_.buffer,E=E.buffer;case y:return!(_.byteLength!=E.byteLength||!S(new r(_),new r(E)));case c:case d:case u:return t(+_,+E);case f:return _.name==E.name&&_.message==E.message;case h:case m:return _==E+"";case l:var T=n;case p:var k=P&a;if(T||(T=o),_.size!=E.size&&!k)return!1;var L=R.get(_);if(L)return L==E;P|=s,R.set(_,E);var F=i(T(_),T(E),P,O,S,R);return R.delete(_),F;case v:if(b)return b.call(_)==b.call(E)}return!1}return ka=x,ka}var ja,Pc;function Hg(){if(Pc)return ja;Pc=1;function e(r,t){for(var i=-1,n=t.length,o=r.length;++i<n;)r[o+i]=t[i];return r}return ja=e,ja}var Na,kc;function Fl(){if(kc)return Na;kc=1;var e=Array.isArray;return Na=e,Na}var Ma,jc;function zg(){if(jc)return Ma;jc=1;var e=Hg(),r=Fl();function t(i,n,o){var a=n(i);return r(i)?a:e(a,o(i))}return Ma=t,Ma}var Ia,Nc;function Ug(){if(Nc)return Ia;Nc=1;function e(r,t){for(var i=-1,n=r==null?0:r.length,o=0,a=[];++i<n;){var s=r[i];t(s,i,r)&&(a[o++]=s)}return a}return Ia=e,Ia}var La,Mc;function Wg(){if(Mc)return La;Mc=1;function e(){return[]}return La=e,La}var $a,Ic;function Kg(){if(Ic)return $a;Ic=1;var e=Ug(),r=Wg(),t=Object.prototype,i=t.propertyIsEnumerable,n=Object.getOwnPropertySymbols,o=n?function(a){return a==null?[]:(a=Object(a),e(n(a),function(s){return i.call(a,s)}))}:r;return $a=o,$a}var Fa,Lc;function Gg(){if(Lc)return Fa;Lc=1;function e(r,t){for(var i=-1,n=Array(r);++i<r;)n[i]=t(i);return n}return Fa=e,Fa}var Da,$c;function Ji(){if($c)return Da;$c=1;function e(r){return r!=null&&typeof r=="object"}return Da=e,Da}var qa,Fc;function Yg(){if(Fc)return qa;Fc=1;var e=Xi(),r=Ji(),t="[object Arguments]";function i(n){return r(n)&&e(n)==t}return qa=i,qa}var Ba,Dc;function Xg(){if(Dc)return Ba;Dc=1;var e=Yg(),r=Ji(),t=Object.prototype,i=t.hasOwnProperty,n=t.propertyIsEnumerable,o=e((function(){return arguments})())?e:function(a){return r(a)&&i.call(a,"callee")&&!n.call(a,"callee")};return Ba=o,Ba}var An={exports:{}},Va,qc;function Zg(){if(qc)return Va;qc=1;function e(){return!1}return Va=e,Va}An.exports;var Bc;function sh(){return Bc||(Bc=1,(function(e,r){var t=nr(),i=Zg(),n=r&&!r.nodeType&&r,o=n&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===n,s=a?t.Buffer:void 0,c=s?s.isBuffer:void 0,d=c||i;e.exports=d})(An,An.exports)),An.exports}var Ha,Vc;function Qg(){if(Vc)return Ha;Vc=1;var e=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function t(i,n){var o=typeof i;return n=n??e,!!n&&(o=="number"||o!="symbol"&&r.test(i))&&i>-1&&i%1==0&&i<n}return Ha=t,Ha}var za,Hc;function lh(){if(Hc)return za;Hc=1;var e=9007199254740991;function r(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=e}return za=r,za}var Ua,zc;function Jg(){if(zc)return Ua;zc=1;var e=Xi(),r=lh(),t=Ji(),i="[object Arguments]",n="[object Array]",o="[object Boolean]",a="[object Date]",s="[object Error]",c="[object Function]",d="[object Map]",f="[object Number]",l="[object Object]",u="[object RegExp]",h="[object Set]",p="[object String]",m="[object WeakMap]",v="[object ArrayBuffer]",y="[object DataView]",g="[object Float32Array]",w="[object Float64Array]",b="[object Int8Array]",x="[object Int16Array]",_="[object Int32Array]",E="[object Uint8Array]",C="[object Uint8ClampedArray]",P="[object Uint16Array]",O="[object Uint32Array]",S={};S[g]=S[w]=S[b]=S[x]=S[_]=S[E]=S[C]=S[P]=S[O]=!0,S[i]=S[n]=S[v]=S[o]=S[y]=S[a]=S[s]=S[c]=S[d]=S[f]=S[l]=S[u]=S[h]=S[p]=S[m]=!1;function R(T){return t(T)&&r(T.length)&&!!S[e(T)]}return Ua=R,Ua}var Wa,Uc;function em(){if(Uc)return Wa;Uc=1;function e(r){return function(t){return r(t)}}return Wa=e,Wa}var Tn={exports:{}};Tn.exports;var Wc;function tm(){return Wc||(Wc=1,(function(e,r){var t=th(),i=r&&!r.nodeType&&r,n=i&&!0&&e&&!e.nodeType&&e,o=n&&n.exports===i,a=o&&t.process,s=(function(){try{var c=n&&n.require&&n.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}})();e.exports=s})(Tn,Tn.exports)),Tn.exports}var Ka,Kc;function uh(){if(Kc)return Ka;Kc=1;var e=Jg(),r=em(),t=tm(),i=t&&t.isTypedArray,n=i?r(i):e;return Ka=n,Ka}var Ga,Gc;function rm(){if(Gc)return Ga;Gc=1;var e=Gg(),r=Xg(),t=Fl(),i=sh(),n=Qg(),o=uh(),a=Object.prototype,s=a.hasOwnProperty;function c(d,f){var l=t(d),u=!l&&r(d),h=!l&&!u&&i(d),p=!l&&!u&&!h&&o(d),m=l||u||h||p,v=m?e(d.length,String):[],y=v.length;for(var g in d)(f||s.call(d,g))&&!(m&&(g=="length"||h&&(g=="offset"||g=="parent")||p&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||n(g,y)))&&v.push(g);return v}return Ga=c,Ga}var Ya,Yc;function nm(){if(Yc)return Ya;Yc=1;var e=Object.prototype;function r(t){var i=t&&t.constructor,n=typeof i=="function"&&i.prototype||e;return t===n}return Ya=r,Ya}var Xa,Xc;function im(){if(Xc)return Xa;Xc=1;function e(r,t){return function(i){return r(t(i))}}return Xa=e,Xa}var Za,Zc;function om(){if(Zc)return Za;Zc=1;var e=im(),r=e(Object.keys,Object);return Za=r,Za}var Qa,Qc;function am(){if(Qc)return Qa;Qc=1;var e=nm(),r=om(),t=Object.prototype,i=t.hasOwnProperty;function n(o){if(!e(o))return r(o);var a=[];for(var s in Object(o))i.call(o,s)&&s!="constructor"&&a.push(s);return a}return Qa=n,Qa}var Ja,Jc;function sm(){if(Jc)return Ja;Jc=1;var e=nh(),r=lh();function t(i){return i!=null&&r(i.length)&&!e(i)}return Ja=t,Ja}var es,ef;function lm(){if(ef)return es;ef=1;var e=rm(),r=am(),t=sm();function i(n){return t(n)?e(n):r(n)}return es=i,es}var ts,tf;function um(){if(tf)return ts;tf=1;var e=zg(),r=Kg(),t=lm();function i(n){return e(n,t,r)}return ts=i,ts}var rs,rf;function cm(){if(rf)return rs;rf=1;var e=um(),r=1,t=Object.prototype,i=t.hasOwnProperty;function n(o,a,s,c,d,f){var l=s&r,u=e(o),h=u.length,p=e(a),m=p.length;if(h!=m&&!l)return!1;for(var v=h;v--;){var y=u[v];if(!(l?y in a:i.call(a,y)))return!1}var g=f.get(o),w=f.get(a);if(g&&w)return g==a&&w==o;var b=!0;f.set(o,a),f.set(a,o);for(var x=l;++v<h;){y=u[v];var _=o[y],E=a[y];if(c)var C=l?c(E,_,y,a,o,f):c(_,E,y,o,a,f);if(!(C===void 0?_===E||d(_,E,s,c,f):C)){b=!1;break}x||(x=y=="constructor")}if(b&&!x){var P=o.constructor,O=a.constructor;P!=O&&"constructor"in o&&"constructor"in a&&!(typeof P=="function"&&P instanceof P&&typeof O=="function"&&O instanceof O)&&(b=!1)}return f.delete(o),f.delete(a),b}return rs=n,rs}var ns,nf;function fm(){if(nf)return ns;nf=1;var e=nn(),r=nr(),t=e(r,"DataView");return ns=t,ns}var is,of;function dm(){if(of)return is;of=1;var e=nn(),r=nr(),t=e(r,"Promise");return is=t,is}var os,af;function hm(){if(af)return os;af=1;var e=nn(),r=nr(),t=e(r,"Set");return os=t,os}var as,sf;function vm(){if(sf)return as;sf=1;var e=nn(),r=nr(),t=e(r,"WeakMap");return as=t,as}var ss,lf;function pm(){if(lf)return ss;lf=1;var e=fm(),r=$l(),t=dm(),i=hm(),n=vm(),o=Xi(),a=ih(),s="[object Map]",c="[object Object]",d="[object Promise]",f="[object Set]",l="[object WeakMap]",u="[object DataView]",h=a(e),p=a(r),m=a(t),v=a(i),y=a(n),g=o;return(e&&g(new e(new ArrayBuffer(1)))!=u||r&&g(new r)!=s||t&&g(t.resolve())!=d||i&&g(new i)!=f||n&&g(new n)!=l)&&(g=function(w){var b=o(w),x=b==c?w.constructor:void 0,_=x?a(x):"";if(_)switch(_){case h:return u;case p:return s;case m:return d;case v:return f;case y:return l}return b}),ss=g,ss}var ls,uf;function gm(){if(uf)return ls;uf=1;var e=Ng(),r=ah(),t=Vg(),i=cm(),n=pm(),o=Fl(),a=sh(),s=uh(),c=1,d="[object Arguments]",f="[object Array]",l="[object Object]",u=Object.prototype,h=u.hasOwnProperty;function p(m,v,y,g,w,b){var x=o(m),_=o(v),E=x?f:n(m),C=_?f:n(v);E=E==d?l:E,C=C==d?l:C;var P=E==l,O=C==l,S=E==C;if(S&&a(m)){if(!a(v))return!1;x=!0,P=!1}if(S&&!P)return b||(b=new e),x||s(m)?r(m,v,y,g,w,b):t(m,v,E,y,g,w,b);if(!(y&c)){var R=P&&h.call(m,"__wrapped__"),T=O&&h.call(v,"__wrapped__");if(R||T){var k=R?m.value():m,L=T?v.value():v;return b||(b=new e),w(k,L,y,g,b)}}return S?(b||(b=new e),i(m,v,y,g,w,b)):!1}return ls=p,ls}var us,cf;function mm(){if(cf)return us;cf=1;var e=gm(),r=Ji();function t(i,n,o,a,s){return i===n?!0:i==null||n==null||!r(i)&&!r(n)?i!==i&&n!==n:e(i,n,o,a,t,s)}return us=t,us}var cs,ff;function ym(){if(ff)return cs;ff=1;var e=mm();function r(t,i){return e(t,i)}return cs=r,cs}var Ti={exports:{}};/*!
|
|
13
|
+
</svg>`},function(t,i){var n;n=(function(){return this})();try{n=n||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(n=window)}t.exports=n}])})})(Ai)),Ai.exports}var ng=rg();const ig=er.getDefaultExportFromCjs(ng);var No,ju;function og(){if(ju)return No;ju=1;function e(){this.__data__=[],this.size=0}return No=e,No}var Mo,Nu;function rh(){if(Nu)return Mo;Nu=1;function e(r,t){return r===t||r!==r&&t!==t}return Mo=e,Mo}var Io,Mu;function Yi(){if(Mu)return Io;Mu=1;var e=rh();function r(t,i){for(var n=t.length;n--;)if(e(t[n][0],i))return n;return-1}return Io=r,Io}var Lo,Iu;function ag(){if(Iu)return Lo;Iu=1;var e=Yi(),r=Array.prototype,t=r.splice;function i(n){var o=this.__data__,a=e(o,n);if(a<0)return!1;var s=o.length-1;return a==s?o.pop():t.call(o,a,1),--this.size,!0}return Lo=i,Lo}var $o,Lu;function sg(){if(Lu)return $o;Lu=1;var e=Yi();function r(t){var i=this.__data__,n=e(i,t);return n<0?void 0:i[n][1]}return $o=r,$o}var Fo,$u;function lg(){if($u)return Fo;$u=1;var e=Yi();function r(t){return e(this.__data__,t)>-1}return Fo=r,Fo}var Do,Fu;function ug(){if(Fu)return Do;Fu=1;var e=Yi();function r(t,i){var n=this.__data__,o=e(n,t);return o<0?(++this.size,n.push([t,i])):n[o][1]=i,this}return Do=r,Do}var qo,Du;function Xi(){if(Du)return qo;Du=1;var e=og(),r=ag(),t=sg(),i=lg(),n=ug();function o(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var d=a[s];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=r,o.prototype.get=t,o.prototype.has=i,o.prototype.set=n,qo=o,qo}var Bo,qu;function cg(){if(qu)return Bo;qu=1;var e=Xi();function r(){this.__data__=new e,this.size=0}return Bo=r,Bo}var Vo,Bu;function fg(){if(Bu)return Vo;Bu=1;function e(r){var t=this.__data__,i=t.delete(r);return this.size=t.size,i}return Vo=e,Vo}var Ho,Vu;function dg(){if(Vu)return Ho;Vu=1;function e(r){return this.__data__.get(r)}return Ho=e,Ho}var zo,Hu;function hg(){if(Hu)return zo;Hu=1;function e(r){return this.__data__.has(r)}return zo=e,zo}var Uo,zu;function nh(){if(zu)return Uo;zu=1;var e=typeof er.commonjsGlobal=="object"&&er.commonjsGlobal&&er.commonjsGlobal.Object===Object&&er.commonjsGlobal;return Uo=e,Uo}var Wo,Uu;function nr(){if(Uu)return Wo;Uu=1;var e=nh(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return Wo=t,Wo}var Ko,Wu;function Ll(){if(Wu)return Ko;Wu=1;var e=nr(),r=e.Symbol;return Ko=r,Ko}var Go,Ku;function vg(){if(Ku)return Go;Ku=1;var e=Ll(),r=Object.prototype,t=r.hasOwnProperty,i=r.toString,n=e?e.toStringTag:void 0;function o(a){var s=t.call(a,n),c=a[n];try{a[n]=void 0;var d=!0}catch{}var f=i.call(a);return d&&(s?a[n]=c:delete a[n]),f}return Go=o,Go}var Yo,Gu;function pg(){if(Gu)return Yo;Gu=1;var e=Object.prototype,r=e.toString;function t(i){return r.call(i)}return Yo=t,Yo}var Xo,Yu;function Zi(){if(Yu)return Xo;Yu=1;var e=Ll(),r=vg(),t=pg(),i="[object Null]",n="[object Undefined]",o=e?e.toStringTag:void 0;function a(s){return s==null?s===void 0?n:i:o&&o in Object(s)?r(s):t(s)}return Xo=a,Xo}var Zo,Xu;function ih(){if(Xu)return Zo;Xu=1;function e(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}return Zo=e,Zo}var Qo,Zu;function oh(){if(Zu)return Qo;Zu=1;var e=Zi(),r=ih(),t="[object AsyncFunction]",i="[object Function]",n="[object GeneratorFunction]",o="[object Proxy]";function a(s){if(!r(s))return!1;var c=e(s);return c==i||c==n||c==t||c==o}return Qo=a,Qo}var Jo,Qu;function gg(){if(Qu)return Jo;Qu=1;var e=nr(),r=e["__core-js_shared__"];return Jo=r,Jo}var ea,Ju;function mg(){if(Ju)return ea;Ju=1;var e=gg(),r=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function t(i){return!!r&&r in i}return ea=t,ea}var ta,ec;function ah(){if(ec)return ta;ec=1;var e=Function.prototype,r=e.toString;function t(i){if(i!=null){try{return r.call(i)}catch{}try{return i+""}catch{}}return""}return ta=t,ta}var ra,tc;function yg(){if(tc)return ra;tc=1;var e=oh(),r=mg(),t=ih(),i=ah(),n=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,a=Function.prototype,s=Object.prototype,c=a.toString,d=s.hasOwnProperty,f=RegExp("^"+c.call(d).replace(n,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(u){if(!t(u)||r(u))return!1;var h=e(u)?f:o;return h.test(i(u))}return ra=l,ra}var na,rc;function bg(){if(rc)return na;rc=1;function e(r,t){return r?.[t]}return na=e,na}var ia,nc;function nn(){if(nc)return ia;nc=1;var e=yg(),r=bg();function t(i,n){var o=r(i,n);return e(o)?o:void 0}return ia=t,ia}var oa,ic;function $l(){if(ic)return oa;ic=1;var e=nn(),r=nr(),t=e(r,"Map");return oa=t,oa}var aa,oc;function Qi(){if(oc)return aa;oc=1;var e=nn(),r=e(Object,"create");return aa=r,aa}var sa,ac;function xg(){if(ac)return sa;ac=1;var e=Qi();function r(){this.__data__=e?e(null):{},this.size=0}return sa=r,sa}var la,sc;function wg(){if(sc)return la;sc=1;function e(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}return la=e,la}var ua,lc;function Eg(){if(lc)return ua;lc=1;var e=Qi(),r="__lodash_hash_undefined__",t=Object.prototype,i=t.hasOwnProperty;function n(o){var a=this.__data__;if(e){var s=a[o];return s===r?void 0:s}return i.call(a,o)?a[o]:void 0}return ua=n,ua}var ca,uc;function _g(){if(uc)return ca;uc=1;var e=Qi(),r=Object.prototype,t=r.hasOwnProperty;function i(n){var o=this.__data__;return e?o[n]!==void 0:t.call(o,n)}return ca=i,ca}var fa,cc;function Sg(){if(cc)return fa;cc=1;var e=Qi(),r="__lodash_hash_undefined__";function t(i,n){var o=this.__data__;return this.size+=this.has(i)?0:1,o[i]=e&&n===void 0?r:n,this}return fa=t,fa}var da,fc;function Cg(){if(fc)return da;fc=1;var e=xg(),r=wg(),t=Eg(),i=_g(),n=Sg();function o(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var d=a[s];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=r,o.prototype.get=t,o.prototype.has=i,o.prototype.set=n,da=o,da}var ha,dc;function Og(){if(dc)return ha;dc=1;var e=Cg(),r=Xi(),t=$l();function i(){this.size=0,this.__data__={hash:new e,map:new(t||r),string:new e}}return ha=i,ha}var va,hc;function Rg(){if(hc)return va;hc=1;function e(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}return va=e,va}var pa,vc;function Ji(){if(vc)return pa;vc=1;var e=Rg();function r(t,i){var n=t.__data__;return e(i)?n[typeof i=="string"?"string":"hash"]:n.map}return pa=r,pa}var ga,pc;function Ag(){if(pc)return ga;pc=1;var e=Ji();function r(t){var i=e(this,t).delete(t);return this.size-=i?1:0,i}return ga=r,ga}var ma,gc;function Tg(){if(gc)return ma;gc=1;var e=Ji();function r(t){return e(this,t).get(t)}return ma=r,ma}var ya,mc;function kg(){if(mc)return ya;mc=1;var e=Ji();function r(t){return e(this,t).has(t)}return ya=r,ya}var ba,yc;function Pg(){if(yc)return ba;yc=1;var e=Ji();function r(t,i){var n=e(this,t),o=n.size;return n.set(t,i),this.size+=n.size==o?0:1,this}return ba=r,ba}var xa,bc;function sh(){if(bc)return xa;bc=1;var e=Og(),r=Ag(),t=Tg(),i=kg(),n=Pg();function o(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var d=a[s];this.set(d[0],d[1])}}return o.prototype.clear=e,o.prototype.delete=r,o.prototype.get=t,o.prototype.has=i,o.prototype.set=n,xa=o,xa}var wa,xc;function jg(){if(xc)return wa;xc=1;var e=Xi(),r=$l(),t=sh(),i=200;function n(o,a){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!r||c.length<i-1)return c.push([o,a]),this.size=++s.size,this;s=this.__data__=new t(c)}return s.set(o,a),this.size=s.size,this}return wa=n,wa}var Ea,wc;function Ng(){if(wc)return Ea;wc=1;var e=Xi(),r=cg(),t=fg(),i=dg(),n=hg(),o=jg();function a(s){var c=this.__data__=new e(s);this.size=c.size}return a.prototype.clear=r,a.prototype.delete=t,a.prototype.get=i,a.prototype.has=n,a.prototype.set=o,Ea=a,Ea}var _a,Ec;function Mg(){if(Ec)return _a;Ec=1;var e="__lodash_hash_undefined__";function r(t){return this.__data__.set(t,e),this}return _a=r,_a}var Sa,_c;function Ig(){if(_c)return Sa;_c=1;function e(r){return this.__data__.has(r)}return Sa=e,Sa}var Ca,Sc;function Lg(){if(Sc)return Ca;Sc=1;var e=sh(),r=Mg(),t=Ig();function i(n){var o=-1,a=n==null?0:n.length;for(this.__data__=new e;++o<a;)this.add(n[o])}return i.prototype.add=i.prototype.push=r,i.prototype.has=t,Ca=i,Ca}var Oa,Cc;function $g(){if(Cc)return Oa;Cc=1;function e(r,t){for(var i=-1,n=r==null?0:r.length;++i<n;)if(t(r[i],i,r))return!0;return!1}return Oa=e,Oa}var Ra,Oc;function Fg(){if(Oc)return Ra;Oc=1;function e(r,t){return r.has(t)}return Ra=e,Ra}var Aa,Rc;function lh(){if(Rc)return Aa;Rc=1;var e=Lg(),r=$g(),t=Fg(),i=1,n=2;function o(a,s,c,d,f,l){var u=c&i,h=a.length,p=s.length;if(h!=p&&!(u&&p>h))return!1;var m=l.get(a),v=l.get(s);if(m&&v)return m==s&&v==a;var y=-1,g=!0,w=c&n?new e:void 0;for(l.set(a,s),l.set(s,a);++y<h;){var b=a[y],x=s[y];if(d)var _=u?d(x,b,y,s,a,l):d(b,x,y,a,s,l);if(_!==void 0){if(_)continue;g=!1;break}if(w){if(!r(s,function(E,C){if(!t(w,C)&&(b===E||f(b,E,c,d,l)))return w.push(C)})){g=!1;break}}else if(!(b===x||f(b,x,c,d,l))){g=!1;break}}return l.delete(a),l.delete(s),g}return Aa=o,Aa}var Ta,Ac;function Dg(){if(Ac)return Ta;Ac=1;var e=nr(),r=e.Uint8Array;return Ta=r,Ta}var ka,Tc;function qg(){if(Tc)return ka;Tc=1;function e(r){var t=-1,i=Array(r.size);return r.forEach(function(n,o){i[++t]=[o,n]}),i}return ka=e,ka}var Pa,kc;function Bg(){if(kc)return Pa;kc=1;function e(r){var t=-1,i=Array(r.size);return r.forEach(function(n){i[++t]=n}),i}return Pa=e,Pa}var ja,Pc;function Vg(){if(Pc)return ja;Pc=1;var e=Ll(),r=Dg(),t=rh(),i=lh(),n=qg(),o=Bg(),a=1,s=2,c="[object Boolean]",d="[object Date]",f="[object Error]",l="[object Map]",u="[object Number]",h="[object RegExp]",p="[object Set]",m="[object String]",v="[object Symbol]",y="[object ArrayBuffer]",g="[object DataView]",w=e?e.prototype:void 0,b=w?w.valueOf:void 0;function x(_,E,C,k,O,S,R){switch(C){case g:if(_.byteLength!=E.byteLength||_.byteOffset!=E.byteOffset)return!1;_=_.buffer,E=E.buffer;case y:return!(_.byteLength!=E.byteLength||!S(new r(_),new r(E)));case c:case d:case u:return t(+_,+E);case f:return _.name==E.name&&_.message==E.message;case h:case m:return _==E+"";case l:var T=n;case p:var P=k&a;if(T||(T=o),_.size!=E.size&&!P)return!1;var L=R.get(_);if(L)return L==E;k|=s,R.set(_,E);var F=i(T(_),T(E),k,O,S,R);return R.delete(_),F;case v:if(b)return b.call(_)==b.call(E)}return!1}return ja=x,ja}var Na,jc;function Hg(){if(jc)return Na;jc=1;function e(r,t){for(var i=-1,n=t.length,o=r.length;++i<n;)r[o+i]=t[i];return r}return Na=e,Na}var Ma,Nc;function Fl(){if(Nc)return Ma;Nc=1;var e=Array.isArray;return Ma=e,Ma}var Ia,Mc;function zg(){if(Mc)return Ia;Mc=1;var e=Hg(),r=Fl();function t(i,n,o){var a=n(i);return r(i)?a:e(a,o(i))}return Ia=t,Ia}var La,Ic;function Ug(){if(Ic)return La;Ic=1;function e(r,t){for(var i=-1,n=r==null?0:r.length,o=0,a=[];++i<n;){var s=r[i];t(s,i,r)&&(a[o++]=s)}return a}return La=e,La}var $a,Lc;function Wg(){if(Lc)return $a;Lc=1;function e(){return[]}return $a=e,$a}var Fa,$c;function Kg(){if($c)return Fa;$c=1;var e=Ug(),r=Wg(),t=Object.prototype,i=t.propertyIsEnumerable,n=Object.getOwnPropertySymbols,o=n?function(a){return a==null?[]:(a=Object(a),e(n(a),function(s){return i.call(a,s)}))}:r;return Fa=o,Fa}var Da,Fc;function Gg(){if(Fc)return Da;Fc=1;function e(r,t){for(var i=-1,n=Array(r);++i<r;)n[i]=t(i);return n}return Da=e,Da}var qa,Dc;function eo(){if(Dc)return qa;Dc=1;function e(r){return r!=null&&typeof r=="object"}return qa=e,qa}var Ba,qc;function Yg(){if(qc)return Ba;qc=1;var e=Zi(),r=eo(),t="[object Arguments]";function i(n){return r(n)&&e(n)==t}return Ba=i,Ba}var Va,Bc;function Xg(){if(Bc)return Va;Bc=1;var e=Yg(),r=eo(),t=Object.prototype,i=t.hasOwnProperty,n=t.propertyIsEnumerable,o=e((function(){return arguments})())?e:function(a){return r(a)&&i.call(a,"callee")&&!n.call(a,"callee")};return Va=o,Va}var An={exports:{}},Ha,Vc;function Zg(){if(Vc)return Ha;Vc=1;function e(){return!1}return Ha=e,Ha}An.exports;var Hc;function uh(){return Hc||(Hc=1,(function(e,r){var t=nr(),i=Zg(),n=r&&!r.nodeType&&r,o=n&&!0&&e&&!e.nodeType&&e,a=o&&o.exports===n,s=a?t.Buffer:void 0,c=s?s.isBuffer:void 0,d=c||i;e.exports=d})(An,An.exports)),An.exports}var za,zc;function Qg(){if(zc)return za;zc=1;var e=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function t(i,n){var o=typeof i;return n=n??e,!!n&&(o=="number"||o!="symbol"&&r.test(i))&&i>-1&&i%1==0&&i<n}return za=t,za}var Ua,Uc;function ch(){if(Uc)return Ua;Uc=1;var e=9007199254740991;function r(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=e}return Ua=r,Ua}var Wa,Wc;function Jg(){if(Wc)return Wa;Wc=1;var e=Zi(),r=ch(),t=eo(),i="[object Arguments]",n="[object Array]",o="[object Boolean]",a="[object Date]",s="[object Error]",c="[object Function]",d="[object Map]",f="[object Number]",l="[object Object]",u="[object RegExp]",h="[object Set]",p="[object String]",m="[object WeakMap]",v="[object ArrayBuffer]",y="[object DataView]",g="[object Float32Array]",w="[object Float64Array]",b="[object Int8Array]",x="[object Int16Array]",_="[object Int32Array]",E="[object Uint8Array]",C="[object Uint8ClampedArray]",k="[object Uint16Array]",O="[object Uint32Array]",S={};S[g]=S[w]=S[b]=S[x]=S[_]=S[E]=S[C]=S[k]=S[O]=!0,S[i]=S[n]=S[v]=S[o]=S[y]=S[a]=S[s]=S[c]=S[d]=S[f]=S[l]=S[u]=S[h]=S[p]=S[m]=!1;function R(T){return t(T)&&r(T.length)&&!!S[e(T)]}return Wa=R,Wa}var Ka,Kc;function em(){if(Kc)return Ka;Kc=1;function e(r){return function(t){return r(t)}}return Ka=e,Ka}var Tn={exports:{}};Tn.exports;var Gc;function tm(){return Gc||(Gc=1,(function(e,r){var t=nh(),i=r&&!r.nodeType&&r,n=i&&!0&&e&&!e.nodeType&&e,o=n&&n.exports===i,a=o&&t.process,s=(function(){try{var c=n&&n.require&&n.require("util").types;return c||a&&a.binding&&a.binding("util")}catch{}})();e.exports=s})(Tn,Tn.exports)),Tn.exports}var Ga,Yc;function fh(){if(Yc)return Ga;Yc=1;var e=Jg(),r=em(),t=tm(),i=t&&t.isTypedArray,n=i?r(i):e;return Ga=n,Ga}var Ya,Xc;function rm(){if(Xc)return Ya;Xc=1;var e=Gg(),r=Xg(),t=Fl(),i=uh(),n=Qg(),o=fh(),a=Object.prototype,s=a.hasOwnProperty;function c(d,f){var l=t(d),u=!l&&r(d),h=!l&&!u&&i(d),p=!l&&!u&&!h&&o(d),m=l||u||h||p,v=m?e(d.length,String):[],y=v.length;for(var g in d)(f||s.call(d,g))&&!(m&&(g=="length"||h&&(g=="offset"||g=="parent")||p&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||n(g,y)))&&v.push(g);return v}return Ya=c,Ya}var Xa,Zc;function nm(){if(Zc)return Xa;Zc=1;var e=Object.prototype;function r(t){var i=t&&t.constructor,n=typeof i=="function"&&i.prototype||e;return t===n}return Xa=r,Xa}var Za,Qc;function im(){if(Qc)return Za;Qc=1;function e(r,t){return function(i){return r(t(i))}}return Za=e,Za}var Qa,Jc;function om(){if(Jc)return Qa;Jc=1;var e=im(),r=e(Object.keys,Object);return Qa=r,Qa}var Ja,ef;function am(){if(ef)return Ja;ef=1;var e=nm(),r=om(),t=Object.prototype,i=t.hasOwnProperty;function n(o){if(!e(o))return r(o);var a=[];for(var s in Object(o))i.call(o,s)&&s!="constructor"&&a.push(s);return a}return Ja=n,Ja}var es,tf;function sm(){if(tf)return es;tf=1;var e=oh(),r=ch();function t(i){return i!=null&&r(i.length)&&!e(i)}return es=t,es}var ts,rf;function lm(){if(rf)return ts;rf=1;var e=rm(),r=am(),t=sm();function i(n){return t(n)?e(n):r(n)}return ts=i,ts}var rs,nf;function um(){if(nf)return rs;nf=1;var e=zg(),r=Kg(),t=lm();function i(n){return e(n,t,r)}return rs=i,rs}var ns,of;function cm(){if(of)return ns;of=1;var e=um(),r=1,t=Object.prototype,i=t.hasOwnProperty;function n(o,a,s,c,d,f){var l=s&r,u=e(o),h=u.length,p=e(a),m=p.length;if(h!=m&&!l)return!1;for(var v=h;v--;){var y=u[v];if(!(l?y in a:i.call(a,y)))return!1}var g=f.get(o),w=f.get(a);if(g&&w)return g==a&&w==o;var b=!0;f.set(o,a),f.set(a,o);for(var x=l;++v<h;){y=u[v];var _=o[y],E=a[y];if(c)var C=l?c(E,_,y,a,o,f):c(_,E,y,o,a,f);if(!(C===void 0?_===E||d(_,E,s,c,f):C)){b=!1;break}x||(x=y=="constructor")}if(b&&!x){var k=o.constructor,O=a.constructor;k!=O&&"constructor"in o&&"constructor"in a&&!(typeof k=="function"&&k instanceof k&&typeof O=="function"&&O instanceof O)&&(b=!1)}return f.delete(o),f.delete(a),b}return ns=n,ns}var is,af;function fm(){if(af)return is;af=1;var e=nn(),r=nr(),t=e(r,"DataView");return is=t,is}var os,sf;function dm(){if(sf)return os;sf=1;var e=nn(),r=nr(),t=e(r,"Promise");return os=t,os}var as,lf;function hm(){if(lf)return as;lf=1;var e=nn(),r=nr(),t=e(r,"Set");return as=t,as}var ss,uf;function vm(){if(uf)return ss;uf=1;var e=nn(),r=nr(),t=e(r,"WeakMap");return ss=t,ss}var ls,cf;function pm(){if(cf)return ls;cf=1;var e=fm(),r=$l(),t=dm(),i=hm(),n=vm(),o=Zi(),a=ah(),s="[object Map]",c="[object Object]",d="[object Promise]",f="[object Set]",l="[object WeakMap]",u="[object DataView]",h=a(e),p=a(r),m=a(t),v=a(i),y=a(n),g=o;return(e&&g(new e(new ArrayBuffer(1)))!=u||r&&g(new r)!=s||t&&g(t.resolve())!=d||i&&g(new i)!=f||n&&g(new n)!=l)&&(g=function(w){var b=o(w),x=b==c?w.constructor:void 0,_=x?a(x):"";if(_)switch(_){case h:return u;case p:return s;case m:return d;case v:return f;case y:return l}return b}),ls=g,ls}var us,ff;function gm(){if(ff)return us;ff=1;var e=Ng(),r=lh(),t=Vg(),i=cm(),n=pm(),o=Fl(),a=uh(),s=fh(),c=1,d="[object Arguments]",f="[object Array]",l="[object Object]",u=Object.prototype,h=u.hasOwnProperty;function p(m,v,y,g,w,b){var x=o(m),_=o(v),E=x?f:n(m),C=_?f:n(v);E=E==d?l:E,C=C==d?l:C;var k=E==l,O=C==l,S=E==C;if(S&&a(m)){if(!a(v))return!1;x=!0,k=!1}if(S&&!k)return b||(b=new e),x||s(m)?r(m,v,y,g,w,b):t(m,v,E,y,g,w,b);if(!(y&c)){var R=k&&h.call(m,"__wrapped__"),T=O&&h.call(v,"__wrapped__");if(R||T){var P=R?m.value():m,L=T?v.value():v;return b||(b=new e),w(P,L,y,g,b)}}return S?(b||(b=new e),i(m,v,y,g,w,b)):!1}return us=p,us}var cs,df;function mm(){if(df)return cs;df=1;var e=gm(),r=eo();function t(i,n,o,a,s){return i===n?!0:i==null||n==null||!r(i)&&!r(n)?i!==i&&n!==n:e(i,n,o,a,t,s)}return cs=t,cs}var fs,hf;function ym(){if(hf)return fs;hf=1;var e=mm();function r(t,i){return e(t,i)}return fs=r,fs}var Ti={exports:{}};/*!
|
|
14
14
|
* Quill Editor v1.3.7
|
|
15
15
|
* https://quilljs.com/
|
|
16
16
|
* Copyright (c) 2014, Jason Chen
|
|
17
17
|
* Copyright (c) 2013, salesforce.com
|
|
18
|
-
*/var bm=Ti.exports,
|
|
19
|
-
`;for(var h=c.iterator(this.ops),p=new f,m=0;h.hasNext();){if(h.peekType()!=="insert")return;var v=h.peek(),y=c.length(v)-h.peekLength(),g=typeof v.insert=="string"?v.insert.indexOf(u,y)-y:-1;if(g<0)p.push(h.next());else if(g>0)p.push(h.next(g));else{if(l(p,h.next(1).attributes||{},m)===!1)return;m+=1,p=new f}}p.length()>0&&l(p,{},m)},f.prototype.transform=function(l,u){if(u=!!u,typeof l=="number")return this.transformPosition(l,u);for(var h=c.iterator(this.ops),p=c.iterator(l.ops),m=new f;h.hasNext()||p.hasNext();)if(h.peekType()==="insert"&&(u||p.peekType()!=="insert"))m.retain(c.length(h.next()));else if(p.peekType()==="insert")m.push(p.next());else{var v=Math.min(h.peekLength(),p.peekLength()),y=h.next(v),g=p.next(v);if(y.delete)continue;g.delete?m.push(g):m.retain(v,c.attributes.transform(y.attributes,g.attributes,u))}return m.chop()},f.prototype.transformPosition=function(l,u){u=!!u;for(var h=c.iterator(this.ops),p=0;h.hasNext()&&p<=l;){var m=h.peekLength(),v=h.peekType();if(h.next(),v==="delete"){l-=Math.min(m,l-p);continue}else v==="insert"&&(p<l||!u)&&(l+=m);p+=m}return l},t.exports=f}),(function(t,i){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=function(h){return typeof Array.isArray=="function"?Array.isArray(h):o.call(h)==="[object Array]"},d=function(h){if(!h||o.call(h)!=="[object Object]")return!1;var p=n.call(h,"constructor"),m=h.constructor&&h.constructor.prototype&&n.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!p&&!m)return!1;var v;for(v in h);return typeof v>"u"||n.call(h,v)},f=function(h,p){a&&p.name==="__proto__"?a(h,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):h[p.name]=p.newValue},l=function(h,p){if(p==="__proto__")if(n.call(h,p)){if(s)return s(h,p).value}else return;return h[p]};t.exports=function u(){var h,p,m,v,y,g,w=arguments[0],b=1,x=arguments.length,_=!1;for(typeof w=="boolean"&&(_=w,w=arguments[1]||{},b=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});b<x;++b)if(h=arguments[b],h!=null)for(p in h)m=l(w,p),v=l(h,p),w!==v&&(_&&v&&(d(v)||(y=c(v)))?(y?(y=!1,g=m&&c(m)?m:[]):g=m&&d(m)?m:{},f(w,{name:p,newValue:u(_,g,v)})):typeof v<"u"&&f(w,{name:p,newValue:v}));return w}}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BlockEmbed=i.bubbleFormats=void 0;var o=(function(){function S(R,T){for(var
|
|
20
|
-
`)){var $=u.default.create(
|
|
21
|
-
`,O(this))),this.cache.delta}},{key:"deleteAt",value:function(
|
|
22
|
-
`),z=$.shift();z.length>0&&(k<this.length()-1||this.children.tail==null?a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,Math.min(k,this.length()-1),z):this.children.tail.insertAt(this.children.tail.length(),z),this.cache={});var H=this;$.reduce(function(D,j){return H=H.split(D,!0),H.insertAt(0,j),j.length},k+z.length)}}},{key:"insertBefore",value:function(k,L){var F=this.children.head;a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertBefore",this).call(this,k,L),F instanceof p.default&&F.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"length",this).call(this)+E),this.cache.length}},{key:"moveChildren",value:function(k,L){a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"moveChildren",this).call(this,k,L),this.cache={}}},{key:"optimize",value:function(k){a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"optimize",this).call(this,k),this.cache={}}},{key:"path",value:function(k){return a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"path",this).call(this,k,!0)}},{key:"removeChild",value:function(k){a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"removeChild",this).call(this,k),this.cache={}}},{key:"split",value:function(k){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(L&&(k===0||k>=this.length()-E)){var F=this.clone();return k===0?(this.parent.insertBefore(F,this),this):(this.parent.insertBefore(F,this.next),F)}else{var $=a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"split",this).call(this,k,L);return this.cache={},$}}}]),R})(u.default.Block);P.blotName="block",P.tagName="P",P.defaultChild="break",P.allowedChildren=[v.default,u.default.Embed,g.default];function O(S){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return S==null||(typeof S.formats=="function"&&(R=(0,c.default)(R,S.formats())),S.parent==null||S.parent.blotName=="scroll"||S.parent.statics.scope!==S.statics.scope)?R:O(S.parent,R)}i.bubbleFormats=O,i.BlockEmbed=C,i.default=P}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.overload=i.expandConfig=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},a=(function(){function H(D,j){var A=[],M=!0,q=!1,B=void 0;try{for(var N=D[Symbol.iterator](),V;!(M=(V=N.next()).done)&&(A.push(V.value),!(j&&A.length===j));M=!0);}catch(K){q=!0,B=K}finally{try{!M&&N.return&&N.return()}finally{if(q)throw B}}return A}return function(D,j){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return H(D,j);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function H(D,j){for(var A=0;A<j.length;A++){var M=j[A];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(D,M.key,M)}}return function(D,j,A){return j&&H(D.prototype,j),A&&H(D,A),D}})();n(50);var c=n(2),d=O(c),f=n(14),l=O(f),u=n(8),h=O(u),p=n(9),m=O(p),v=n(0),y=O(v),g=n(15),w=O(g),b=n(3),x=O(b),_=n(10),E=O(_),C=n(34),P=O(C);function O(H){return H&&H.__esModule?H:{default:H}}function S(H,D,j){return D in H?Object.defineProperty(H,D,{value:j,enumerable:!0,configurable:!0,writable:!0}):H[D]=j,H}function R(H,D){if(!(H instanceof D))throw new TypeError("Cannot call a class as a function")}var T=(0,E.default)("quill"),k=(function(){s(H,null,[{key:"debug",value:function(j){j===!0&&(j="log"),E.default.level(j)}},{key:"find",value:function(j){return j.__quill||y.default.find(j)}},{key:"import",value:function(j){return this.imports[j]==null&&T.error("Cannot import "+j+". Are you sure it was registered?"),this.imports[j]}},{key:"register",value:function(j,A){var M=this,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof j!="string"){var B=j.attrName||j.blotName;typeof B=="string"?this.register("formats/"+B,j,A):Object.keys(j).forEach(function(N){M.register(N,j[N],A)})}else this.imports[j]!=null&&!q&&T.warn("Overwriting "+j+" with",A),this.imports[j]=A,(j.startsWith("blots/")||j.startsWith("formats/"))&&A.blotName!=="abstract"?y.default.register(A):j.startsWith("modules")&&typeof A.register=="function"&&A.register()}}]);function H(D){var j=this,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(R(this,H),this.options=L(D,A),this.container=this.options.container,this.container==null)return T.error("Invalid Quill container",D);this.options.debug&&H.debug(this.options.debug);var M=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new w.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(h.default.events.EDITOR_CHANGE,function(B){B===h.default.events.TEXT_CHANGE&&j.root.classList.toggle("ql-blank",j.editor.isBlank())}),this.emitter.on(h.default.events.SCROLL_UPDATE,function(B,N){var V=j.selection.lastRange,K=V&&V.length===0?V.index:void 0;F.call(j,function(){return j.editor.update(null,N,K)},B)});var q=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+M+"<p><br></p></div>");this.setContents(q),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return s(H,[{key:"addContainer",value:function(j){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof j=="string"){var M=j;j=document.createElement("div"),j.classList.add(M)}return this.container.insertBefore(j,A),j}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(j,A,M){var q=this,B=$(j,A,M),N=a(B,4);return j=N[0],A=N[1],M=N[3],F.call(this,function(){return q.editor.deleteText(j,A)},M,j,-1*A)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(j),this.container.classList.toggle("ql-disabled",!j)}},{key:"focus",value:function(){var j=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=j,this.scrollIntoView()}},{key:"format",value:function(j,A){var M=this,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;return F.call(this,function(){var B=M.getSelection(!0),N=new d.default;if(B==null)return N;if(y.default.query(j,y.default.Scope.BLOCK))N=M.editor.formatLine(B.index,B.length,S({},j,A));else{if(B.length===0)return M.selection.format(j,A),N;N=M.editor.formatText(B.index,B.length,S({},j,A))}return M.setSelection(B,h.default.sources.SILENT),N},q)}},{key:"formatLine",value:function(j,A,M,q,B){var N=this,V=void 0,K=$(j,A,M,q,B),W=a(K,4);return j=W[0],A=W[1],V=W[2],B=W[3],F.call(this,function(){return N.editor.formatLine(j,A,V)},B,j,0)}},{key:"formatText",value:function(j,A,M,q,B){var N=this,V=void 0,K=$(j,A,M,q,B),W=a(K,4);return j=W[0],A=W[1],V=W[2],B=W[3],F.call(this,function(){return N.editor.formatText(j,A,V)},B,j,0)}},{key:"getBounds",value:function(j){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=void 0;typeof j=="number"?M=this.selection.getBounds(j,A):M=this.selection.getBounds(j.index,j.length);var q=this.container.getBoundingClientRect();return{bottom:M.bottom-q.top,height:M.height,left:M.left-q.left,right:M.right-q.left,top:M.top-q.top,width:M.width}}},{key:"getContents",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-j,M=$(j,A),q=a(M,2);return j=q[0],A=q[1],this.editor.getContents(j,A)}},{key:"getFormat",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof j=="number"?this.editor.getFormat(j,A):this.editor.getFormat(j.index,j.length)}},{key:"getIndex",value:function(j){return j.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(j){return this.scroll.leaf(j)}},{key:"getLine",value:function(j){return this.scroll.line(j)}},{key:"getLines",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof j!="number"?this.scroll.lines(j.index,j.length):this.scroll.lines(j,A)}},{key:"getModule",value:function(j){return this.theme.modules[j]}},{key:"getSelection",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return j&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-j,M=$(j,A),q=a(M,2);return j=q[0],A=q[1],this.editor.getText(j,A)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(j,A,M){var q=this,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:H.sources.API;return F.call(this,function(){return q.editor.insertEmbed(j,A,M)},B,j)}},{key:"insertText",value:function(j,A,M,q,B){var N=this,V=void 0,K=$(j,0,M,q,B),W=a(K,4);return j=W[0],V=W[2],B=W[3],F.call(this,function(){return N.editor.insertText(j,A,V)},B,j,A.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(j,A,M){this.clipboard.dangerouslyPasteHTML(j,A,M)}},{key:"removeFormat",value:function(j,A,M){var q=this,B=$(j,A,M),N=a(B,4);return j=N[0],A=N[1],M=N[3],F.call(this,function(){return q.editor.removeFormat(j,A)},M,j)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(j){var A=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return F.call(this,function(){j=new d.default(j);var q=A.getLength(),B=A.editor.deleteText(0,q),N=A.editor.applyDelta(j),V=N.ops[N.ops.length-1];V!=null&&typeof V.insert=="string"&&V.insert[V.insert.length-1]===`
|
|
23
|
-
`&&(A.editor.deleteText(A.getLength()-1,1),N.delete(1));var K=B.compose(N);return K},M)}},{key:"setSelection",value:function(j,A,M){if(j==null)this.selection.setRange(null,A||H.sources.API);else{var q=$(j,A,M),B=a(q,4);j=B[0],A=B[1],M=B[3],this.selection.setRange(new g.Range(j,A),M),M!==h.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(j){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API,M=new d.default().insert(j);return this.setContents(M,A)}},{key:"update",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h.default.sources.USER,A=this.scroll.update(j);return this.selection.update(j),A}},{key:"updateContents",value:function(j){var A=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return F.call(this,function(){return j=new d.default(j),A.editor.applyDelta(j,M)},M,!0)}}]),H})();k.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},k.events=h.default.events,k.sources=h.default.sources,k.version="1.3.7",k.imports={delta:d.default,parchment:y.default,"core/module":m.default,"core/theme":P.default};function L(H,D){if(D=(0,x.default)(!0,{container:H,modules:{clipboard:!0,keyboard:!0,history:!0}},D),!D.theme||D.theme===k.DEFAULTS.theme)D.theme=P.default;else if(D.theme=k.import("themes/"+D.theme),D.theme==null)throw new Error("Invalid theme "+D.theme+". Did you register it?");var j=(0,x.default)(!0,{},D.theme.DEFAULTS);[j,D].forEach(function(q){q.modules=q.modules||{},Object.keys(q.modules).forEach(function(B){q.modules[B]===!0&&(q.modules[B]={})})});var A=Object.keys(j.modules).concat(Object.keys(D.modules)),M=A.reduce(function(q,B){var N=k.import("modules/"+B);return N==null?T.error("Cannot load "+B+" module. Are you sure you registered it?"):q[B]=N.DEFAULTS||{},q},{});return D.modules!=null&&D.modules.toolbar&&D.modules.toolbar.constructor!==Object&&(D.modules.toolbar={container:D.modules.toolbar}),D=(0,x.default)(!0,{},k.DEFAULTS,{modules:M},j,D),["bounds","container","scrollingContainer"].forEach(function(q){typeof D[q]=="string"&&(D[q]=document.querySelector(D[q]))}),D.modules=Object.keys(D.modules).reduce(function(q,B){return D.modules[B]&&(q[B]=D.modules[B]),q},{}),D}function F(H,D,j,A){if(this.options.strict&&!this.isEnabled()&&D===h.default.sources.USER)return new d.default;var M=j==null?null:this.getSelection(),q=this.editor.delta,B=H();if(M!=null&&(j===!0&&(j=M.index),A==null?M=z(M,B,D):A!==0&&(M=z(M,j,A,D)),this.setSelection(M,h.default.sources.SILENT)),B.length()>0){var N,V=[h.default.events.TEXT_CHANGE,B,q,D];if((N=this.emitter).emit.apply(N,[h.default.events.EDITOR_CHANGE].concat(V)),D!==h.default.sources.SILENT){var K;(K=this.emitter).emit.apply(K,V)}}return B}function $(H,D,j,A,M){var q={};return typeof H.index=="number"&&typeof H.length=="number"?typeof D!="number"?(M=A,A=j,j=D,D=H.length,H=H.index):(D=H.length,H=H.index):typeof D!="number"&&(M=A,A=j,j=D,D=0),(typeof j>"u"?"undefined":o(j))==="object"?(q=j,M=A):typeof j=="string"&&(A!=null?q[j]=A:M=j),M=M||h.default.sources.API,[H,D,q,M]}function z(H,D,j,A){if(H==null)return null;var M=void 0,q=void 0;if(D instanceof d.default){var B=[H.index,H.index+H.length].map(function(W){return D.transformPosition(W,A!==h.default.sources.USER)}),N=a(B,2);M=N[0],q=N[1]}else{var V=[H.index,H.index+H.length].map(function(W){return W<D||W===D&&A===h.default.sources.USER?W:j>=0?W+j:Math.max(D,W+j)}),K=a(V,2);M=K[0],q=K[1]}return new g.Range(M,q-M)}i.expandConfig=L,i.overload=$,i.default=k}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function v(y,g){for(var w=0;w<g.length;w++){var b=g[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,g,w){return g&&v(y.prototype,g),w&&v(y,w),y}})(),a=function v(y,g,w){y===null&&(y=Function.prototype);var b=Object.getOwnPropertyDescriptor(y,g);if(b===void 0){var x=Object.getPrototypeOf(y);return x===null?void 0:v(x,g,w)}else{if("value"in b)return b.value;var _=b.get;return _===void 0?void 0:_.call(w)}},s=n(7),c=l(s),d=n(0),f=l(d);function l(v){return v&&v.__esModule?v:{default:v}}function u(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function h(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function p(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var m=(function(v){p(y,v);function y(){return u(this,y),h(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"formatAt",value:function(w,b,x,_){if(y.compare(this.statics.blotName,x)<0&&f.default.query(x,f.default.Scope.BLOT)){var E=this.isolate(w,b);_&&E.wrap(x,_)}else a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"formatAt",this).call(this,w,b,x,_)}},{key:"optimize",value:function(w){if(a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,w),this.parent instanceof y&&y.compare(this.statics.blotName,this.parent.statics.blotName)>0){var b=this.parent.isolate(this.offset(),this.length());this.moveChildren(b),b.wrap(this)}}}],[{key:"compare",value:function(w,b){var x=y.order.indexOf(w),_=y.order.indexOf(b);return x>=0||_>=0?x-_:w===b?0:w<b?-1:1}}]),y})(f.default.Inline);m.allowedChildren=[m,f.default.Embed,c.default],m.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],i.default=m}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(0),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function c(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function f(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){f(h,u);function h(){return c(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default.Text);i.default=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function g(w,b){for(var x=0;x<b.length;x++){var _=b[x];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(w,_.key,_)}}return function(w,b,x){return b&&g(w.prototype,b),x&&g(w,x),w}})(),a=function g(w,b,x){w===null&&(w=Function.prototype);var _=Object.getOwnPropertyDescriptor(w,b);if(_===void 0){var E=Object.getPrototypeOf(w);return E===null?void 0:g(E,b,x)}else{if("value"in _)return _.value;var C=_.get;return C===void 0?void 0:C.call(x)}},s=n(54),c=l(s),d=n(10),f=l(d);function l(g){return g&&g.__esModule?g:{default:g}}function u(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")}function h(g,w){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:g}function p(g,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);g.prototype=Object.create(w&&w.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(g,w):g.__proto__=w)}var m=(0,f.default)("quill:events"),v=["selectionchange","mousedown","mouseup","click"];v.forEach(function(g){document.addEventListener(g,function(){for(var w=arguments.length,b=Array(w),x=0;x<w;x++)b[x]=arguments[x];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(_){if(_.__quill&&_.__quill.emitter){var E;(E=_.__quill.emitter).handleDOM.apply(E,b)}})})});var y=(function(g){p(w,g);function w(){u(this,w);var b=h(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));return b.listeners={},b.on("error",m.error),b}return o(w,[{key:"emit",value:function(){m.log.apply(m,arguments),a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(x){for(var _=arguments.length,E=Array(_>1?_-1:0),C=1;C<_;C++)E[C-1]=arguments[C];(this.listeners[x.type]||[]).forEach(function(P){var O=P.node,S=P.handler;(x.target===O||O.contains(x.target))&&S.apply(void 0,[x].concat(E))})}},{key:"listenDOM",value:function(x,_,E){this.listeners[x]||(this.listeners[x]=[]),this.listeners[x].push({node:_,handler:E})}}]),w})(c.default);y.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},y.sources={API:"api",SILENT:"silent",USER:"user"},i.default=y}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});function o(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")}var a=function s(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o(this,s),this.quill=c,this.options=d};a.DEFAULTS={},i.default=a}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=["error","warn","log","info"],a="warn";function s(d){if(o.indexOf(d)<=o.indexOf(a)){for(var f,l=arguments.length,u=Array(l>1?l-1:0),h=1;h<l;h++)u[h-1]=arguments[h];(f=console)[d].apply(f,u)}}function c(d){return o.reduce(function(f,l){return f[l]=s.bind(console,l,d),f},{})}s.level=c.level=function(d){a=d},i.default=c}),(function(t,i,n){var o=Array.prototype.slice,a=n(52),s=n(53),c=t.exports=function(u,h,p){return p||(p={}),u===h?!0:u instanceof Date&&h instanceof Date?u.getTime()===h.getTime():!u||!h||typeof u!="object"&&typeof h!="object"?p.strict?u===h:u==h:l(u,h,p)};function d(u){return u==null}function f(u){return!(!u||typeof u!="object"||typeof u.length!="number"||typeof u.copy!="function"||typeof u.slice!="function"||u.length>0&&typeof u[0]!="number")}function l(u,h,p){var m,v;if(d(u)||d(h)||u.prototype!==h.prototype)return!1;if(s(u))return s(h)?(u=o.call(u),h=o.call(h),c(u,h,p)):!1;if(f(u)){if(!f(h)||u.length!==h.length)return!1;for(m=0;m<u.length;m++)if(u[m]!==h[m])return!1;return!0}try{var y=a(u),g=a(h)}catch{return!1}if(y.length!=g.length)return!1;for(y.sort(),g.sort(),m=y.length-1;m>=0;m--)if(y[m]!=g[m])return!1;for(m=y.length-1;m>=0;m--)if(v=y[m],!c(u[v],h[v],p))return!1;return typeof u==typeof h}}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(1),a=(function(){function s(c,d,f){f===void 0&&(f={}),this.attrName=c,this.keyName=d;var l=o.Scope.TYPE&o.Scope.ATTRIBUTE;f.scope!=null?this.scope=f.scope&o.Scope.LEVEL|l:this.scope=o.Scope.ATTRIBUTE,f.whitelist!=null&&(this.whitelist=f.whitelist)}return s.keys=function(c){return[].map.call(c.attributes,function(d){return d.name})},s.prototype.add=function(c,d){return this.canAdd(c,d)?(c.setAttribute(this.keyName,d),!0):!1},s.prototype.canAdd=function(c,d){var f=o.query(c,o.Scope.BLOT&(this.scope|o.Scope.TYPE));return f==null?!1:this.whitelist==null?!0:typeof d=="string"?this.whitelist.indexOf(d.replace(/["']/g,""))>-1:this.whitelist.indexOf(d)>-1},s.prototype.remove=function(c){c.removeAttribute(this.keyName)},s.prototype.value=function(c){var d=c.getAttribute(this.keyName);return this.canAdd(c,d)&&d?d:""},s})();i.default=a}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.Code=void 0;var o=(function(){function C(P,O){var S=[],R=!0,T=!1,k=void 0;try{for(var L=P[Symbol.iterator](),F;!(R=(F=L.next()).done)&&(S.push(F.value),!(O&&S.length===O));R=!0);}catch($){T=!0,k=$}finally{try{!R&&L.return&&L.return()}finally{if(T)throw k}}return S}return function(P,O){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return C(P,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function C(P,O){for(var S=0;S<O.length;S++){var R=O[S];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(P,R.key,R)}}return function(P,O,S){return O&&C(P.prototype,O),S&&C(P,S),P}})(),s=function C(P,O,S){P===null&&(P=Function.prototype);var R=Object.getOwnPropertyDescriptor(P,O);if(R===void 0){var T=Object.getPrototypeOf(P);return T===null?void 0:C(T,O,S)}else{if("value"in R)return R.value;var k=R.get;return k===void 0?void 0:k.call(S)}},c=n(2),d=g(c),f=n(0),l=g(f),u=n(4),h=g(u),p=n(6),m=g(p),v=n(7),y=g(v);function g(C){return C&&C.__esModule?C:{default:C}}function w(C,P){if(!(C instanceof P))throw new TypeError("Cannot call a class as a function")}function b(C,P){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:C}function x(C,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);C.prototype=Object.create(P&&P.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(C,P):C.__proto__=P)}var _=(function(C){x(P,C);function P(){return w(this,P),b(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return P})(m.default);_.blotName="code",_.tagName="CODE";var E=(function(C){x(P,C);function P(){return w(this,P),b(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return a(P,[{key:"delta",value:function(){var S=this,R=this.domNode.textContent;return R.endsWith(`
|
|
18
|
+
*/var bm=Ti.exports,vf;function xm(){return vf||(vf=1,(function(e,r){(function(i,n){e.exports=n()})(typeof self<"u"?self:bm,function(){return(function(t){var i={};function n(o){if(i[o])return i[o].exports;var a=i[o]={i:o,l:!1,exports:{}};return t[o].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=t,n.c=i,n.d=function(o,a,s){n.o(o,a)||Object.defineProperty(o,a,{configurable:!1,enumerable:!0,get:s})},n.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(a,"a",a),a},n.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},n.p="",n(n.s=109)})([(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(17),a=n(18),s=n(19),c=n(45),d=n(46),f=n(47),l=n(48),u=n(49),h=n(12),p=n(32),m=n(33),v=n(31),y=n(1),g={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:o.default,Format:a.default,Leaf:s.default,Embed:l.default,Scroll:c.default,Block:f.default,Inline:d.default,Text:u.default,Attributor:{Attribute:h.default,Class:p.default,Style:m.default,Store:v.default}};i.default=g}),(function(t,i,n){var o=this&&this.__extends||(function(){var v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,g){y.__proto__=g}||function(y,g){for(var w in g)g.hasOwnProperty(w)&&(y[w]=g[w])};return function(y,g){v(y,g);function w(){this.constructor=y}y.prototype=g===null?Object.create(g):(w.prototype=g.prototype,new w)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=(function(v){o(y,v);function y(g){var w=this;return g="[Parchment] "+g,w=v.call(this,g)||this,w.message=g,w.name=w.constructor.name,w}return y})(Error);i.ParchmentError=a;var s={},c={},d={},f={};i.DATA_KEY="__blot";var l;(function(v){v[v.TYPE=3]="TYPE",v[v.LEVEL=12]="LEVEL",v[v.ATTRIBUTE=13]="ATTRIBUTE",v[v.BLOT=14]="BLOT",v[v.INLINE=7]="INLINE",v[v.BLOCK=11]="BLOCK",v[v.BLOCK_BLOT=10]="BLOCK_BLOT",v[v.INLINE_BLOT=6]="INLINE_BLOT",v[v.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",v[v.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",v[v.ANY=15]="ANY"})(l=i.Scope||(i.Scope={}));function u(v,y){var g=p(v);if(g==null)throw new a("Unable to create "+v+" blot");var w=g,b=v instanceof Node||v.nodeType===Node.TEXT_NODE?v:w.create(y);return new w(b,y)}i.create=u;function h(v,y){return y===void 0&&(y=!1),v==null?null:v[i.DATA_KEY]!=null?v[i.DATA_KEY].blot:y?h(v.parentNode,y):null}i.find=h;function p(v,y){y===void 0&&(y=l.ANY);var g;if(typeof v=="string")g=f[v]||s[v];else if(v instanceof Text||v.nodeType===Node.TEXT_NODE)g=f.text;else if(typeof v=="number")v&l.LEVEL&l.BLOCK?g=f.block:v&l.LEVEL&l.INLINE&&(g=f.inline);else if(v instanceof HTMLElement){var w=(v.getAttribute("class")||"").split(/\s+/);for(var b in w)if(g=c[w[b]],g)break;g=g||d[v.tagName]}return g==null?null:y&l.LEVEL&g.scope&&y&l.TYPE&g.scope?g:null}i.query=p;function m(){for(var v=[],y=0;y<arguments.length;y++)v[y]=arguments[y];if(v.length>1)return v.map(function(b){return m(b)});var g=v[0];if(typeof g.blotName!="string"&&typeof g.attrName!="string")throw new a("Invalid definition");if(g.blotName==="abstract")throw new a("Cannot register abstract class");if(f[g.blotName||g.attrName]=g,typeof g.keyName=="string")s[g.keyName]=g;else if(g.className!=null&&(c[g.className]=g),g.tagName!=null){Array.isArray(g.tagName)?g.tagName=g.tagName.map(function(b){return b.toUpperCase()}):g.tagName=g.tagName.toUpperCase();var w=Array.isArray(g.tagName)?g.tagName:[g.tagName];w.forEach(function(b){(d[b]==null||g.className==null)&&(d[b]=g)})}return g}i.register=m}),(function(t,i,n){var o=n(51),a=n(11),s=n(3),c=n(20),d="\0",f=function(l){Array.isArray(l)?this.ops=l:l!=null&&Array.isArray(l.ops)?this.ops=l.ops:this.ops=[]};f.prototype.insert=function(l,u){var h={};return l.length===0?this:(h.insert=l,u!=null&&typeof u=="object"&&Object.keys(u).length>0&&(h.attributes=u),this.push(h))},f.prototype.delete=function(l){return l<=0?this:this.push({delete:l})},f.prototype.retain=function(l,u){if(l<=0)return this;var h={retain:l};return u!=null&&typeof u=="object"&&Object.keys(u).length>0&&(h.attributes=u),this.push(h)},f.prototype.push=function(l){var u=this.ops.length,h=this.ops[u-1];if(l=s(!0,{},l),typeof h=="object"){if(typeof l.delete=="number"&&typeof h.delete=="number")return this.ops[u-1]={delete:h.delete+l.delete},this;if(typeof h.delete=="number"&&l.insert!=null&&(u-=1,h=this.ops[u-1],typeof h!="object"))return this.ops.unshift(l),this;if(a(l.attributes,h.attributes)){if(typeof l.insert=="string"&&typeof h.insert=="string")return this.ops[u-1]={insert:h.insert+l.insert},typeof l.attributes=="object"&&(this.ops[u-1].attributes=l.attributes),this;if(typeof l.retain=="number"&&typeof h.retain=="number")return this.ops[u-1]={retain:h.retain+l.retain},typeof l.attributes=="object"&&(this.ops[u-1].attributes=l.attributes),this}}return u===this.ops.length?this.ops.push(l):this.ops.splice(u,0,l),this},f.prototype.chop=function(){var l=this.ops[this.ops.length-1];return l&&l.retain&&!l.attributes&&this.ops.pop(),this},f.prototype.filter=function(l){return this.ops.filter(l)},f.prototype.forEach=function(l){this.ops.forEach(l)},f.prototype.map=function(l){return this.ops.map(l)},f.prototype.partition=function(l){var u=[],h=[];return this.forEach(function(p){var m=l(p)?u:h;m.push(p)}),[u,h]},f.prototype.reduce=function(l,u){return this.ops.reduce(l,u)},f.prototype.changeLength=function(){return this.reduce(function(l,u){return u.insert?l+c.length(u):u.delete?l-u.delete:l},0)},f.prototype.length=function(){return this.reduce(function(l,u){return l+c.length(u)},0)},f.prototype.slice=function(l,u){l=l||0,typeof u!="number"&&(u=1/0);for(var h=[],p=c.iterator(this.ops),m=0;m<u&&p.hasNext();){var v;m<l?v=p.next(l-m):(v=p.next(u-m),h.push(v)),m+=c.length(v)}return new f(h)},f.prototype.compose=function(l){var u=c.iterator(this.ops),h=c.iterator(l.ops),p=[],m=h.peek();if(m!=null&&typeof m.retain=="number"&&m.attributes==null){for(var v=m.retain;u.peekType()==="insert"&&u.peekLength()<=v;)v-=u.peekLength(),p.push(u.next());m.retain-v>0&&h.next(m.retain-v)}for(var y=new f(p);u.hasNext()||h.hasNext();)if(h.peekType()==="insert")y.push(h.next());else if(u.peekType()==="delete")y.push(u.next());else{var g=Math.min(u.peekLength(),h.peekLength()),w=u.next(g),b=h.next(g);if(typeof b.retain=="number"){var x={};typeof w.retain=="number"?x.retain=g:x.insert=w.insert;var _=c.attributes.compose(w.attributes,b.attributes,typeof w.retain=="number");if(_&&(x.attributes=_),y.push(x),!h.hasNext()&&a(y.ops[y.ops.length-1],x)){var E=new f(u.rest());return y.concat(E).chop()}}else typeof b.delete=="number"&&typeof w.retain=="number"&&y.push(b)}return y.chop()},f.prototype.concat=function(l){var u=new f(this.ops.slice());return l.ops.length>0&&(u.push(l.ops[0]),u.ops=u.ops.concat(l.ops.slice(1))),u},f.prototype.diff=function(l,u){if(this.ops===l.ops)return new f;var h=[this,l].map(function(g){return g.map(function(w){if(w.insert!=null)return typeof w.insert=="string"?w.insert:d;var b=g===l?"on":"with";throw new Error("diff() called "+b+" non-document")}).join("")}),p=new f,m=o(h[0],h[1],u),v=c.iterator(this.ops),y=c.iterator(l.ops);return m.forEach(function(g){for(var w=g[1].length;w>0;){var b=0;switch(g[0]){case o.INSERT:b=Math.min(y.peekLength(),w),p.push(y.next(b));break;case o.DELETE:b=Math.min(w,v.peekLength()),v.next(b),p.delete(b);break;case o.EQUAL:b=Math.min(v.peekLength(),y.peekLength(),w);var x=v.next(b),_=y.next(b);a(x.insert,_.insert)?p.retain(b,c.attributes.diff(x.attributes,_.attributes)):p.push(_).delete(b);break}w-=b}}),p.chop()},f.prototype.eachLine=function(l,u){u=u||`
|
|
19
|
+
`;for(var h=c.iterator(this.ops),p=new f,m=0;h.hasNext();){if(h.peekType()!=="insert")return;var v=h.peek(),y=c.length(v)-h.peekLength(),g=typeof v.insert=="string"?v.insert.indexOf(u,y)-y:-1;if(g<0)p.push(h.next());else if(g>0)p.push(h.next(g));else{if(l(p,h.next(1).attributes||{},m)===!1)return;m+=1,p=new f}}p.length()>0&&l(p,{},m)},f.prototype.transform=function(l,u){if(u=!!u,typeof l=="number")return this.transformPosition(l,u);for(var h=c.iterator(this.ops),p=c.iterator(l.ops),m=new f;h.hasNext()||p.hasNext();)if(h.peekType()==="insert"&&(u||p.peekType()!=="insert"))m.retain(c.length(h.next()));else if(p.peekType()==="insert")m.push(p.next());else{var v=Math.min(h.peekLength(),p.peekLength()),y=h.next(v),g=p.next(v);if(y.delete)continue;g.delete?m.push(g):m.retain(v,c.attributes.transform(y.attributes,g.attributes,u))}return m.chop()},f.prototype.transformPosition=function(l,u){u=!!u;for(var h=c.iterator(this.ops),p=0;h.hasNext()&&p<=l;){var m=h.peekLength(),v=h.peekType();if(h.next(),v==="delete"){l-=Math.min(m,l-p);continue}else v==="insert"&&(p<l||!u)&&(l+=m);p+=m}return l},t.exports=f}),(function(t,i){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=function(h){return typeof Array.isArray=="function"?Array.isArray(h):o.call(h)==="[object Array]"},d=function(h){if(!h||o.call(h)!=="[object Object]")return!1;var p=n.call(h,"constructor"),m=h.constructor&&h.constructor.prototype&&n.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!p&&!m)return!1;var v;for(v in h);return typeof v>"u"||n.call(h,v)},f=function(h,p){a&&p.name==="__proto__"?a(h,p.name,{enumerable:!0,configurable:!0,value:p.newValue,writable:!0}):h[p.name]=p.newValue},l=function(h,p){if(p==="__proto__")if(n.call(h,p)){if(s)return s(h,p).value}else return;return h[p]};t.exports=function u(){var h,p,m,v,y,g,w=arguments[0],b=1,x=arguments.length,_=!1;for(typeof w=="boolean"&&(_=w,w=arguments[1]||{},b=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});b<x;++b)if(h=arguments[b],h!=null)for(p in h)m=l(w,p),v=l(h,p),w!==v&&(_&&v&&(d(v)||(y=c(v)))?(y?(y=!1,g=m&&c(m)?m:[]):g=m&&d(m)?m:{},f(w,{name:p,newValue:u(_,g,v)})):typeof v<"u"&&f(w,{name:p,newValue:v}));return w}}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BlockEmbed=i.bubbleFormats=void 0;var o=(function(){function S(R,T){for(var P=0;P<T.length;P++){var L=T[P];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(R,L.key,L)}}return function(R,T,P){return T&&S(R.prototype,T),P&&S(R,P),R}})(),a=function S(R,T,P){R===null&&(R=Function.prototype);var L=Object.getOwnPropertyDescriptor(R,T);if(L===void 0){var F=Object.getPrototypeOf(R);return F===null?void 0:S(F,T,P)}else{if("value"in L)return L.value;var $=L.get;return $===void 0?void 0:$.call(P)}},s=n(3),c=w(s),d=n(2),f=w(d),l=n(0),u=w(l),h=n(16),p=w(h),m=n(6),v=w(m),y=n(7),g=w(y);function w(S){return S&&S.__esModule?S:{default:S}}function b(S,R){if(!(S instanceof R))throw new TypeError("Cannot call a class as a function")}function x(S,R){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:S}function _(S,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);S.prototype=Object.create(R&&R.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(S,R):S.__proto__=R)}var E=1,C=(function(S){_(R,S);function R(){return b(this,R),x(this,(R.__proto__||Object.getPrototypeOf(R)).apply(this,arguments))}return o(R,[{key:"attach",value:function(){a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"attach",this).call(this),this.attributes=new u.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new f.default().insert(this.value(),(0,c.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(P,L){var F=u.default.query(P,u.default.Scope.BLOCK_ATTRIBUTE);F!=null&&this.attributes.attribute(F,L)}},{key:"formatAt",value:function(P,L,F,$){this.format(F,$)}},{key:"insertAt",value:function(P,L,F){if(typeof L=="string"&&L.endsWith(`
|
|
20
|
+
`)){var $=u.default.create(k.blotName);this.parent.insertBefore($,P===0?this:this.next),$.insertAt(0,L.slice(0,-1))}else a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,P,L,F)}}]),R})(u.default.Embed);C.scope=u.default.Scope.BLOCK_BLOT;var k=(function(S){_(R,S);function R(T){b(this,R);var P=x(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,T));return P.cache={},P}return o(R,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(u.default.Leaf).reduce(function(P,L){return L.length()===0?P:P.insert(L.value(),O(L))},new f.default).insert(`
|
|
21
|
+
`,O(this))),this.cache.delta}},{key:"deleteAt",value:function(P,L){a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"deleteAt",this).call(this,P,L),this.cache={}}},{key:"formatAt",value:function(P,L,F,$){L<=0||(u.default.query(F,u.default.Scope.BLOCK)?P+L===this.length()&&this.format(F,$):a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"formatAt",this).call(this,P,Math.min(L,this.length()-P-1),F,$),this.cache={})}},{key:"insertAt",value:function(P,L,F){if(F!=null)return a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,P,L,F);if(L.length!==0){var $=L.split(`
|
|
22
|
+
`),z=$.shift();z.length>0&&(P<this.length()-1||this.children.tail==null?a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertAt",this).call(this,Math.min(P,this.length()-1),z):this.children.tail.insertAt(this.children.tail.length(),z),this.cache={});var H=this;$.reduce(function(D,j){return H=H.split(D,!0),H.insertAt(0,j),j.length},P+z.length)}}},{key:"insertBefore",value:function(P,L){var F=this.children.head;a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"insertBefore",this).call(this,P,L),F instanceof p.default&&F.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"length",this).call(this)+E),this.cache.length}},{key:"moveChildren",value:function(P,L){a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"moveChildren",this).call(this,P,L),this.cache={}}},{key:"optimize",value:function(P){a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"optimize",this).call(this,P),this.cache={}}},{key:"path",value:function(P){return a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"path",this).call(this,P,!0)}},{key:"removeChild",value:function(P){a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"removeChild",this).call(this,P),this.cache={}}},{key:"split",value:function(P){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(L&&(P===0||P>=this.length()-E)){var F=this.clone();return P===0?(this.parent.insertBefore(F,this),this):(this.parent.insertBefore(F,this.next),F)}else{var $=a(R.prototype.__proto__||Object.getPrototypeOf(R.prototype),"split",this).call(this,P,L);return this.cache={},$}}}]),R})(u.default.Block);k.blotName="block",k.tagName="P",k.defaultChild="break",k.allowedChildren=[v.default,u.default.Embed,g.default];function O(S){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return S==null||(typeof S.formats=="function"&&(R=(0,c.default)(R,S.formats())),S.parent==null||S.parent.blotName=="scroll"||S.parent.statics.scope!==S.statics.scope)?R:O(S.parent,R)}i.bubbleFormats=O,i.BlockEmbed=C,i.default=k}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.overload=i.expandConfig=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},a=(function(){function H(D,j){var A=[],M=!0,q=!1,B=void 0;try{for(var N=D[Symbol.iterator](),V;!(M=(V=N.next()).done)&&(A.push(V.value),!(j&&A.length===j));M=!0);}catch(K){q=!0,B=K}finally{try{!M&&N.return&&N.return()}finally{if(q)throw B}}return A}return function(D,j){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return H(D,j);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function H(D,j){for(var A=0;A<j.length;A++){var M=j[A];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(D,M.key,M)}}return function(D,j,A){return j&&H(D.prototype,j),A&&H(D,A),D}})();n(50);var c=n(2),d=O(c),f=n(14),l=O(f),u=n(8),h=O(u),p=n(9),m=O(p),v=n(0),y=O(v),g=n(15),w=O(g),b=n(3),x=O(b),_=n(10),E=O(_),C=n(34),k=O(C);function O(H){return H&&H.__esModule?H:{default:H}}function S(H,D,j){return D in H?Object.defineProperty(H,D,{value:j,enumerable:!0,configurable:!0,writable:!0}):H[D]=j,H}function R(H,D){if(!(H instanceof D))throw new TypeError("Cannot call a class as a function")}var T=(0,E.default)("quill"),P=(function(){s(H,null,[{key:"debug",value:function(j){j===!0&&(j="log"),E.default.level(j)}},{key:"find",value:function(j){return j.__quill||y.default.find(j)}},{key:"import",value:function(j){return this.imports[j]==null&&T.error("Cannot import "+j+". Are you sure it was registered?"),this.imports[j]}},{key:"register",value:function(j,A){var M=this,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof j!="string"){var B=j.attrName||j.blotName;typeof B=="string"?this.register("formats/"+B,j,A):Object.keys(j).forEach(function(N){M.register(N,j[N],A)})}else this.imports[j]!=null&&!q&&T.warn("Overwriting "+j+" with",A),this.imports[j]=A,(j.startsWith("blots/")||j.startsWith("formats/"))&&A.blotName!=="abstract"?y.default.register(A):j.startsWith("modules")&&typeof A.register=="function"&&A.register()}}]);function H(D){var j=this,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(R(this,H),this.options=L(D,A),this.container=this.options.container,this.container==null)return T.error("Invalid Quill container",D);this.options.debug&&H.debug(this.options.debug);var M=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new h.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new w.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(h.default.events.EDITOR_CHANGE,function(B){B===h.default.events.TEXT_CHANGE&&j.root.classList.toggle("ql-blank",j.editor.isBlank())}),this.emitter.on(h.default.events.SCROLL_UPDATE,function(B,N){var V=j.selection.lastRange,K=V&&V.length===0?V.index:void 0;F.call(j,function(){return j.editor.update(null,N,K)},B)});var q=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+M+"<p><br></p></div>");this.setContents(q),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return s(H,[{key:"addContainer",value:function(j){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof j=="string"){var M=j;j=document.createElement("div"),j.classList.add(M)}return this.container.insertBefore(j,A),j}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(j,A,M){var q=this,B=$(j,A,M),N=a(B,4);return j=N[0],A=N[1],M=N[3],F.call(this,function(){return q.editor.deleteText(j,A)},M,j,-1*A)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(j),this.container.classList.toggle("ql-disabled",!j)}},{key:"focus",value:function(){var j=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=j,this.scrollIntoView()}},{key:"format",value:function(j,A){var M=this,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.default.sources.API;return F.call(this,function(){var B=M.getSelection(!0),N=new d.default;if(B==null)return N;if(y.default.query(j,y.default.Scope.BLOCK))N=M.editor.formatLine(B.index,B.length,S({},j,A));else{if(B.length===0)return M.selection.format(j,A),N;N=M.editor.formatText(B.index,B.length,S({},j,A))}return M.setSelection(B,h.default.sources.SILENT),N},q)}},{key:"formatLine",value:function(j,A,M,q,B){var N=this,V=void 0,K=$(j,A,M,q,B),W=a(K,4);return j=W[0],A=W[1],V=W[2],B=W[3],F.call(this,function(){return N.editor.formatLine(j,A,V)},B,j,0)}},{key:"formatText",value:function(j,A,M,q,B){var N=this,V=void 0,K=$(j,A,M,q,B),W=a(K,4);return j=W[0],A=W[1],V=W[2],B=W[3],F.call(this,function(){return N.editor.formatText(j,A,V)},B,j,0)}},{key:"getBounds",value:function(j){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=void 0;typeof j=="number"?M=this.selection.getBounds(j,A):M=this.selection.getBounds(j.index,j.length);var q=this.container.getBoundingClientRect();return{bottom:M.bottom-q.top,height:M.height,left:M.left-q.left,right:M.right-q.left,top:M.top-q.top,width:M.width}}},{key:"getContents",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-j,M=$(j,A),q=a(M,2);return j=q[0],A=q[1],this.editor.getContents(j,A)}},{key:"getFormat",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof j=="number"?this.editor.getFormat(j,A):this.editor.getFormat(j.index,j.length)}},{key:"getIndex",value:function(j){return j.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(j){return this.scroll.leaf(j)}},{key:"getLine",value:function(j){return this.scroll.line(j)}},{key:"getLines",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof j!="number"?this.scroll.lines(j.index,j.length):this.scroll.lines(j,A)}},{key:"getModule",value:function(j){return this.theme.modules[j]}},{key:"getSelection",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return j&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-j,M=$(j,A),q=a(M,2);return j=q[0],A=q[1],this.editor.getText(j,A)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(j,A,M){var q=this,B=arguments.length>3&&arguments[3]!==void 0?arguments[3]:H.sources.API;return F.call(this,function(){return q.editor.insertEmbed(j,A,M)},B,j)}},{key:"insertText",value:function(j,A,M,q,B){var N=this,V=void 0,K=$(j,0,M,q,B),W=a(K,4);return j=W[0],V=W[2],B=W[3],F.call(this,function(){return N.editor.insertText(j,A,V)},B,j,A.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(j,A,M){this.clipboard.dangerouslyPasteHTML(j,A,M)}},{key:"removeFormat",value:function(j,A,M){var q=this,B=$(j,A,M),N=a(B,4);return j=N[0],A=N[1],M=N[3],F.call(this,function(){return q.editor.removeFormat(j,A)},M,j)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(j){var A=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return F.call(this,function(){j=new d.default(j);var q=A.getLength(),B=A.editor.deleteText(0,q),N=A.editor.applyDelta(j),V=N.ops[N.ops.length-1];V!=null&&typeof V.insert=="string"&&V.insert[V.insert.length-1]===`
|
|
23
|
+
`&&(A.editor.deleteText(A.getLength()-1,1),N.delete(1));var K=B.compose(N);return K},M)}},{key:"setSelection",value:function(j,A,M){if(j==null)this.selection.setRange(null,A||H.sources.API);else{var q=$(j,A,M),B=a(q,4);j=B[0],A=B[1],M=B[3],this.selection.setRange(new g.Range(j,A),M),M!==h.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(j){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API,M=new d.default().insert(j);return this.setContents(M,A)}},{key:"update",value:function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h.default.sources.USER,A=this.scroll.update(j);return this.selection.update(j),A}},{key:"updateContents",value:function(j){var A=this,M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.default.sources.API;return F.call(this,function(){return j=new d.default(j),A.editor.applyDelta(j,M)},M,!0)}}]),H})();P.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},P.events=h.default.events,P.sources=h.default.sources,P.version="1.3.7",P.imports={delta:d.default,parchment:y.default,"core/module":m.default,"core/theme":k.default};function L(H,D){if(D=(0,x.default)(!0,{container:H,modules:{clipboard:!0,keyboard:!0,history:!0}},D),!D.theme||D.theme===P.DEFAULTS.theme)D.theme=k.default;else if(D.theme=P.import("themes/"+D.theme),D.theme==null)throw new Error("Invalid theme "+D.theme+". Did you register it?");var j=(0,x.default)(!0,{},D.theme.DEFAULTS);[j,D].forEach(function(q){q.modules=q.modules||{},Object.keys(q.modules).forEach(function(B){q.modules[B]===!0&&(q.modules[B]={})})});var A=Object.keys(j.modules).concat(Object.keys(D.modules)),M=A.reduce(function(q,B){var N=P.import("modules/"+B);return N==null?T.error("Cannot load "+B+" module. Are you sure you registered it?"):q[B]=N.DEFAULTS||{},q},{});return D.modules!=null&&D.modules.toolbar&&D.modules.toolbar.constructor!==Object&&(D.modules.toolbar={container:D.modules.toolbar}),D=(0,x.default)(!0,{},P.DEFAULTS,{modules:M},j,D),["bounds","container","scrollingContainer"].forEach(function(q){typeof D[q]=="string"&&(D[q]=document.querySelector(D[q]))}),D.modules=Object.keys(D.modules).reduce(function(q,B){return D.modules[B]&&(q[B]=D.modules[B]),q},{}),D}function F(H,D,j,A){if(this.options.strict&&!this.isEnabled()&&D===h.default.sources.USER)return new d.default;var M=j==null?null:this.getSelection(),q=this.editor.delta,B=H();if(M!=null&&(j===!0&&(j=M.index),A==null?M=z(M,B,D):A!==0&&(M=z(M,j,A,D)),this.setSelection(M,h.default.sources.SILENT)),B.length()>0){var N,V=[h.default.events.TEXT_CHANGE,B,q,D];if((N=this.emitter).emit.apply(N,[h.default.events.EDITOR_CHANGE].concat(V)),D!==h.default.sources.SILENT){var K;(K=this.emitter).emit.apply(K,V)}}return B}function $(H,D,j,A,M){var q={};return typeof H.index=="number"&&typeof H.length=="number"?typeof D!="number"?(M=A,A=j,j=D,D=H.length,H=H.index):(D=H.length,H=H.index):typeof D!="number"&&(M=A,A=j,j=D,D=0),(typeof j>"u"?"undefined":o(j))==="object"?(q=j,M=A):typeof j=="string"&&(A!=null?q[j]=A:M=j),M=M||h.default.sources.API,[H,D,q,M]}function z(H,D,j,A){if(H==null)return null;var M=void 0,q=void 0;if(D instanceof d.default){var B=[H.index,H.index+H.length].map(function(W){return D.transformPosition(W,A!==h.default.sources.USER)}),N=a(B,2);M=N[0],q=N[1]}else{var V=[H.index,H.index+H.length].map(function(W){return W<D||W===D&&A===h.default.sources.USER?W:j>=0?W+j:Math.max(D,W+j)}),K=a(V,2);M=K[0],q=K[1]}return new g.Range(M,q-M)}i.expandConfig=L,i.overload=$,i.default=P}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function v(y,g){for(var w=0;w<g.length;w++){var b=g[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,g,w){return g&&v(y.prototype,g),w&&v(y,w),y}})(),a=function v(y,g,w){y===null&&(y=Function.prototype);var b=Object.getOwnPropertyDescriptor(y,g);if(b===void 0){var x=Object.getPrototypeOf(y);return x===null?void 0:v(x,g,w)}else{if("value"in b)return b.value;var _=b.get;return _===void 0?void 0:_.call(w)}},s=n(7),c=l(s),d=n(0),f=l(d);function l(v){return v&&v.__esModule?v:{default:v}}function u(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function h(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function p(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var m=(function(v){p(y,v);function y(){return u(this,y),h(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"formatAt",value:function(w,b,x,_){if(y.compare(this.statics.blotName,x)<0&&f.default.query(x,f.default.Scope.BLOT)){var E=this.isolate(w,b);_&&E.wrap(x,_)}else a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"formatAt",this).call(this,w,b,x,_)}},{key:"optimize",value:function(w){if(a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,w),this.parent instanceof y&&y.compare(this.statics.blotName,this.parent.statics.blotName)>0){var b=this.parent.isolate(this.offset(),this.length());this.moveChildren(b),b.wrap(this)}}}],[{key:"compare",value:function(w,b){var x=y.order.indexOf(w),_=y.order.indexOf(b);return x>=0||_>=0?x-_:w===b?0:w<b?-1:1}}]),y})(f.default.Inline);m.allowedChildren=[m,f.default.Embed,c.default],m.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],i.default=m}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(0),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function c(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function f(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){f(h,u);function h(){return c(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default.Text);i.default=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function g(w,b){for(var x=0;x<b.length;x++){var _=b[x];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(w,_.key,_)}}return function(w,b,x){return b&&g(w.prototype,b),x&&g(w,x),w}})(),a=function g(w,b,x){w===null&&(w=Function.prototype);var _=Object.getOwnPropertyDescriptor(w,b);if(_===void 0){var E=Object.getPrototypeOf(w);return E===null?void 0:g(E,b,x)}else{if("value"in _)return _.value;var C=_.get;return C===void 0?void 0:C.call(x)}},s=n(54),c=l(s),d=n(10),f=l(d);function l(g){return g&&g.__esModule?g:{default:g}}function u(g,w){if(!(g instanceof w))throw new TypeError("Cannot call a class as a function")}function h(g,w){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:g}function p(g,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);g.prototype=Object.create(w&&w.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(g,w):g.__proto__=w)}var m=(0,f.default)("quill:events"),v=["selectionchange","mousedown","mouseup","click"];v.forEach(function(g){document.addEventListener(g,function(){for(var w=arguments.length,b=Array(w),x=0;x<w;x++)b[x]=arguments[x];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(_){if(_.__quill&&_.__quill.emitter){var E;(E=_.__quill.emitter).handleDOM.apply(E,b)}})})});var y=(function(g){p(w,g);function w(){u(this,w);var b=h(this,(w.__proto__||Object.getPrototypeOf(w)).call(this));return b.listeners={},b.on("error",m.error),b}return o(w,[{key:"emit",value:function(){m.log.apply(m,arguments),a(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(x){for(var _=arguments.length,E=Array(_>1?_-1:0),C=1;C<_;C++)E[C-1]=arguments[C];(this.listeners[x.type]||[]).forEach(function(k){var O=k.node,S=k.handler;(x.target===O||O.contains(x.target))&&S.apply(void 0,[x].concat(E))})}},{key:"listenDOM",value:function(x,_,E){this.listeners[x]||(this.listeners[x]=[]),this.listeners[x].push({node:_,handler:E})}}]),w})(c.default);y.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},y.sources={API:"api",SILENT:"silent",USER:"user"},i.default=y}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});function o(s,c){if(!(s instanceof c))throw new TypeError("Cannot call a class as a function")}var a=function s(c){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o(this,s),this.quill=c,this.options=d};a.DEFAULTS={},i.default=a}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=["error","warn","log","info"],a="warn";function s(d){if(o.indexOf(d)<=o.indexOf(a)){for(var f,l=arguments.length,u=Array(l>1?l-1:0),h=1;h<l;h++)u[h-1]=arguments[h];(f=console)[d].apply(f,u)}}function c(d){return o.reduce(function(f,l){return f[l]=s.bind(console,l,d),f},{})}s.level=c.level=function(d){a=d},i.default=c}),(function(t,i,n){var o=Array.prototype.slice,a=n(52),s=n(53),c=t.exports=function(u,h,p){return p||(p={}),u===h?!0:u instanceof Date&&h instanceof Date?u.getTime()===h.getTime():!u||!h||typeof u!="object"&&typeof h!="object"?p.strict?u===h:u==h:l(u,h,p)};function d(u){return u==null}function f(u){return!(!u||typeof u!="object"||typeof u.length!="number"||typeof u.copy!="function"||typeof u.slice!="function"||u.length>0&&typeof u[0]!="number")}function l(u,h,p){var m,v;if(d(u)||d(h)||u.prototype!==h.prototype)return!1;if(s(u))return s(h)?(u=o.call(u),h=o.call(h),c(u,h,p)):!1;if(f(u)){if(!f(h)||u.length!==h.length)return!1;for(m=0;m<u.length;m++)if(u[m]!==h[m])return!1;return!0}try{var y=a(u),g=a(h)}catch{return!1}if(y.length!=g.length)return!1;for(y.sort(),g.sort(),m=y.length-1;m>=0;m--)if(y[m]!=g[m])return!1;for(m=y.length-1;m>=0;m--)if(v=y[m],!c(u[v],h[v],p))return!1;return typeof u==typeof h}}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(1),a=(function(){function s(c,d,f){f===void 0&&(f={}),this.attrName=c,this.keyName=d;var l=o.Scope.TYPE&o.Scope.ATTRIBUTE;f.scope!=null?this.scope=f.scope&o.Scope.LEVEL|l:this.scope=o.Scope.ATTRIBUTE,f.whitelist!=null&&(this.whitelist=f.whitelist)}return s.keys=function(c){return[].map.call(c.attributes,function(d){return d.name})},s.prototype.add=function(c,d){return this.canAdd(c,d)?(c.setAttribute(this.keyName,d),!0):!1},s.prototype.canAdd=function(c,d){var f=o.query(c,o.Scope.BLOT&(this.scope|o.Scope.TYPE));return f==null?!1:this.whitelist==null?!0:typeof d=="string"?this.whitelist.indexOf(d.replace(/["']/g,""))>-1:this.whitelist.indexOf(d)>-1},s.prototype.remove=function(c){c.removeAttribute(this.keyName)},s.prototype.value=function(c){var d=c.getAttribute(this.keyName);return this.canAdd(c,d)&&d?d:""},s})();i.default=a}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.Code=void 0;var o=(function(){function C(k,O){var S=[],R=!0,T=!1,P=void 0;try{for(var L=k[Symbol.iterator](),F;!(R=(F=L.next()).done)&&(S.push(F.value),!(O&&S.length===O));R=!0);}catch($){T=!0,P=$}finally{try{!R&&L.return&&L.return()}finally{if(T)throw P}}return S}return function(k,O){if(Array.isArray(k))return k;if(Symbol.iterator in Object(k))return C(k,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function C(k,O){for(var S=0;S<O.length;S++){var R=O[S];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(k,R.key,R)}}return function(k,O,S){return O&&C(k.prototype,O),S&&C(k,S),k}})(),s=function C(k,O,S){k===null&&(k=Function.prototype);var R=Object.getOwnPropertyDescriptor(k,O);if(R===void 0){var T=Object.getPrototypeOf(k);return T===null?void 0:C(T,O,S)}else{if("value"in R)return R.value;var P=R.get;return P===void 0?void 0:P.call(S)}},c=n(2),d=g(c),f=n(0),l=g(f),u=n(4),h=g(u),p=n(6),m=g(p),v=n(7),y=g(v);function g(C){return C&&C.__esModule?C:{default:C}}function w(C,k){if(!(C instanceof k))throw new TypeError("Cannot call a class as a function")}function b(C,k){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:C}function x(C,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);C.prototype=Object.create(k&&k.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(C,k):C.__proto__=k)}var _=(function(C){x(k,C);function k(){return w(this,k),b(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return k})(m.default);_.blotName="code",_.tagName="CODE";var E=(function(C){x(k,C);function k(){return w(this,k),b(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments))}return a(k,[{key:"delta",value:function(){var S=this,R=this.domNode.textContent;return R.endsWith(`
|
|
24
24
|
`)&&(R=R.slice(0,-1)),R.split(`
|
|
25
|
-
`).reduce(function(T,
|
|
26
|
-
`,S.formats())},new d.default)}},{key:"format",value:function(S,R){if(!(S===this.statics.blotName&&R)){var T=this.descendant(y.default,this.length()-1),
|
|
25
|
+
`).reduce(function(T,P){return T.insert(P).insert(`
|
|
26
|
+
`,S.formats())},new d.default)}},{key:"format",value:function(S,R){if(!(S===this.statics.blotName&&R)){var T=this.descendant(y.default,this.length()-1),P=o(T,1),L=P[0];L?.deleteAt(L.length()-1,1),s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"format",this).call(this,S,R)}}},{key:"formatAt",value:function(S,R,T,P){if(R!==0&&!(l.default.query(T,l.default.Scope.BLOCK)==null||T===this.statics.blotName&&P===this.statics.formats(this.domNode))){var L=this.newlineIndex(S);if(!(L<0||L>=S+R)){var F=this.newlineIndex(S,!0)+1,$=L-F+1,z=this.isolate(F,$),H=z.next;z.format(T,P),H instanceof k&&H.formatAt(0,S-F+R-$,T,P)}}}},{key:"insertAt",value:function(S,R,T){if(T==null){var P=this.descendant(y.default,S),L=o(P,2),F=L[0],$=L[1];F.insertAt($,R)}}},{key:"length",value:function(){var S=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
|
|
27
27
|
`)?S:S+1}},{key:"newlineIndex",value:function(S){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(R)return this.domNode.textContent.slice(0,S).lastIndexOf(`
|
|
28
28
|
`);var T=this.domNode.textContent.slice(S).indexOf(`
|
|
29
29
|
`);return T>-1?S+T:-1}},{key:"optimize",value:function(S){this.domNode.textContent.endsWith(`
|
|
30
30
|
`)||this.appendChild(l.default.create("text",`
|
|
31
|
-
`)),s(
|
|
31
|
+
`)),s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"optimize",this).call(this,S);var R=this.next;R!=null&&R.prev===this&&R.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===R.statics.formats(R.domNode)&&(R.optimize(S),R.moveChildren(this),R.remove())}},{key:"replace",value:function(S){s(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"replace",this).call(this,S),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(R){var T=l.default.find(R);T==null?R.parentNode.removeChild(R):T instanceof l.default.Embed?T.remove():T.unwrap()})}}],[{key:"create",value:function(S){var R=s(k.__proto__||Object.getPrototypeOf(k),"create",this).call(this,S);return R.setAttribute("spellcheck",!1),R}},{key:"formats",value:function(){return!0}}]),k})(h.default);E.blotName="code-block",E.tagName="PRE",E.TAB=" ",i.Code=_,i.default=E}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},a=(function(){function H(D,j){var A=[],M=!0,q=!1,B=void 0;try{for(var N=D[Symbol.iterator](),V;!(M=(V=N.next()).done)&&(A.push(V.value),!(j&&A.length===j));M=!0);}catch(K){q=!0,B=K}finally{try{!M&&N.return&&N.return()}finally{if(q)throw B}}return A}return function(D,j){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return H(D,j);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function H(D,j){for(var A=0;A<j.length;A++){var M=j[A];M.enumerable=M.enumerable||!1,M.configurable=!0,"value"in M&&(M.writable=!0),Object.defineProperty(D,M.key,M)}}return function(D,j,A){return j&&H(D.prototype,j),A&&H(D,A),D}})(),c=n(2),d=R(c),f=n(20),l=R(f),u=n(0),h=R(u),p=n(13),m=R(p),v=n(24),y=R(v),g=n(4),w=R(g),b=n(16),x=R(b),_=n(21),E=R(_),C=n(11),k=R(C),O=n(3),S=R(O);function R(H){return H&&H.__esModule?H:{default:H}}function T(H,D,j){return D in H?Object.defineProperty(H,D,{value:j,enumerable:!0,configurable:!0,writable:!0}):H[D]=j,H}function P(H,D){if(!(H instanceof D))throw new TypeError("Cannot call a class as a function")}var L=/^[ -~]*$/,F=(function(){function H(D){P(this,H),this.scroll=D,this.delta=this.getDelta()}return s(H,[{key:"applyDelta",value:function(j){var A=this,M=!1;this.scroll.update();var q=this.scroll.length();return this.scroll.batchStart(),j=z(j),j.reduce(function(B,N){var V=N.retain||N.delete||N.insert.length||1,K=N.attributes||{};if(N.insert!=null){if(typeof N.insert=="string"){var W=N.insert;W.endsWith(`
|
|
32
32
|
`)&&M&&(M=!1,W=W.slice(0,-1)),B>=q&&!W.endsWith(`
|
|
33
33
|
`)&&(M=!0),A.scroll.insertAt(B,W);var X=A.scroll.line(B),re=a(X,2),oe=re[0],se=re[1],te=(0,S.default)({},(0,g.bubbleFormats)(oe));if(oe instanceof w.default){var ce=oe.descendant(h.default.Leaf,se),fe=a(ce,1),ve=fe[0];te=(0,S.default)(te,(0,g.bubbleFormats)(ve))}K=l.default.attributes.diff(te,K)||{}}else if(o(N.insert)==="object"){var Q=Object.keys(N.insert)[0];if(Q==null)return B;A.scroll.insertAt(B,Q,N.insert[Q])}q+=V}return Object.keys(K).forEach(function(Z){A.scroll.formatAt(B,V,Z,K[Z])}),B+V},0),j.reduce(function(B,N){return typeof N.delete=="number"?(A.scroll.deleteAt(B,N.delete),B):B+(N.retain||N.insert.length||1)},0),this.scroll.batchEnd(),this.update(j)}},{key:"deleteText",value:function(j,A){return this.scroll.deleteAt(j,A),this.update(new d.default().retain(j).delete(A))}},{key:"formatLine",value:function(j,A){var M=this,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(q).forEach(function(B){if(!(M.scroll.whitelist!=null&&!M.scroll.whitelist[B])){var N=M.scroll.lines(j,Math.max(A,1)),V=A;N.forEach(function(K){var W=K.length();if(!(K instanceof m.default))K.format(B,q[B]);else{var X=j-K.offset(M.scroll),re=K.newlineIndex(X+V)-X+1;K.formatAt(X,re,B,q[B])}V-=W})}}),this.scroll.optimize(),this.update(new d.default().retain(j).retain(A,(0,E.default)(q)))}},{key:"formatText",value:function(j,A){var M=this,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(q).forEach(function(B){M.scroll.formatAt(j,A,B,q[B])}),this.update(new d.default().retain(j).retain(A,(0,E.default)(q)))}},{key:"getContents",value:function(j,A){return this.delta.slice(j,j+A)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(j,A){return j.concat(A.delta())},new d.default)}},{key:"getFormat",value:function(j){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,M=[],q=[];A===0?this.scroll.path(j).forEach(function(N){var V=a(N,1),K=V[0];K instanceof w.default?M.push(K):K instanceof h.default.Leaf&&q.push(K)}):(M=this.scroll.lines(j,A),q=this.scroll.descendants(h.default.Leaf,j,A));var B=[M,q].map(function(N){if(N.length===0)return{};for(var V=(0,g.bubbleFormats)(N.shift());Object.keys(V).length>0;){var K=N.shift();if(K==null)return V;V=$((0,g.bubbleFormats)(K),V)}return V});return S.default.apply(S.default,B)}},{key:"getText",value:function(j,A){return this.getContents(j,A).filter(function(M){return typeof M.insert=="string"}).map(function(M){return M.insert}).join("")}},{key:"insertEmbed",value:function(j,A,M){return this.scroll.insertAt(j,A,M),this.update(new d.default().retain(j).insert(T({},A,M)))}},{key:"insertText",value:function(j,A){var M=this,q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return A=A.replace(/\r\n/g,`
|
|
34
34
|
`).replace(/\r/g,`
|
|
35
35
|
`),this.scroll.insertAt(j,A),Object.keys(q).forEach(function(B){M.scroll.formatAt(j,A.length,B,q[B])}),this.update(new d.default().retain(j).insert(A,(0,E.default)(q)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var j=this.scroll.children.head;return j.statics.blotName!==w.default.blotName||j.children.length>1?!1:j.children.head instanceof x.default}},{key:"removeFormat",value:function(j,A){var M=this.getText(j,A),q=this.scroll.line(j+A),B=a(q,2),N=B[0],V=B[1],K=0,W=new d.default;N!=null&&(N instanceof m.default?K=N.newlineIndex(V)-V+1:K=N.length()-V,W=N.delta().slice(V,V+K-1).insert(`
|
|
36
|
-
`));var X=this.getContents(j,A+K),re=X.diff(new d.default().insert(M).concat(W)),oe=new d.default().retain(j).concat(re);return this.applyDelta(oe)}},{key:"update",value:function(j){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,q=this.delta;if(A.length===1&&A[0].type==="characterData"&&A[0].target.data.match(L)&&h.default.find(A[0].target)){var B=h.default.find(A[0].target),N=(0,g.bubbleFormats)(B),V=B.offset(this.scroll),K=A[0].oldValue.replace(y.default.CONTENTS,""),W=new d.default().insert(K),X=new d.default().insert(B.value()),re=new d.default().retain(V).concat(W.diff(X,M));j=re.reduce(function(oe,se){return se.insert?oe.insert(se.insert,N):oe.push(se)},new d.default),this.delta=q.compose(j)}else this.delta=this.getDelta(),(!j||!(0,
|
|
36
|
+
`));var X=this.getContents(j,A+K),re=X.diff(new d.default().insert(M).concat(W)),oe=new d.default().retain(j).concat(re);return this.applyDelta(oe)}},{key:"update",value:function(j){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,q=this.delta;if(A.length===1&&A[0].type==="characterData"&&A[0].target.data.match(L)&&h.default.find(A[0].target)){var B=h.default.find(A[0].target),N=(0,g.bubbleFormats)(B),V=B.offset(this.scroll),K=A[0].oldValue.replace(y.default.CONTENTS,""),W=new d.default().insert(K),X=new d.default().insert(B.value()),re=new d.default().retain(V).concat(W.diff(X,M));j=re.reduce(function(oe,se){return se.insert?oe.insert(se.insert,N):oe.push(se)},new d.default),this.delta=q.compose(j)}else this.delta=this.getDelta(),(!j||!(0,k.default)(q.compose(j),this.delta))&&(j=q.diff(this.delta,M));return j}}]),H})();function $(H,D){return Object.keys(D).reduce(function(j,A){return H[A]==null||(D[A]===H[A]?j[A]=D[A]:Array.isArray(D[A])?D[A].indexOf(H[A])<0&&(j[A]=D[A].concat([H[A]])):j[A]=[D[A],H[A]]),j},{})}function z(H){return H.reduce(function(D,j){if(j.insert===1){var A=(0,E.default)(j.attributes);return delete A.image,D.insert({image:j.attributes.image},A)}if(j.attributes!=null&&(j.attributes.list===!0||j.attributes.bullet===!0)&&(j=(0,E.default)(j),j.attributes.list?j.attributes.list="ordered":(j.attributes.list="bullet",delete j.attributes.bullet)),typeof j.insert=="string"){var M=j.insert.replace(/\r\n/g,`
|
|
37
37
|
`).replace(/\r/g,`
|
|
38
|
-
`);return D.insert(M,j.attributes)}return D.push(j)},new d.default)}i.default=F}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.Range=void 0;var o=(function(){function C(P,O){var S=[],R=!0,T=!1,k=void 0;try{for(var L=P[Symbol.iterator](),F;!(R=(F=L.next()).done)&&(S.push(F.value),!(O&&S.length===O));R=!0);}catch($){T=!0,k=$}finally{try{!R&&L.return&&L.return()}finally{if(T)throw k}}return S}return function(P,O){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return C(P,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function C(P,O){for(var S=0;S<O.length;S++){var R=O[S];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(P,R.key,R)}}return function(P,O,S){return O&&C(P.prototype,O),S&&C(P,S),P}})(),s=n(0),c=y(s),d=n(21),f=y(d),l=n(11),u=y(l),h=n(8),p=y(h),m=n(10),v=y(m);function y(C){return C&&C.__esModule?C:{default:C}}function g(C){if(Array.isArray(C)){for(var P=0,O=Array(C.length);P<C.length;P++)O[P]=C[P];return O}else return Array.from(C)}function w(C,P){if(!(C instanceof P))throw new TypeError("Cannot call a class as a function")}var b=(0,v.default)("quill:selection"),x=function C(P){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;w(this,C),this.index=P,this.length=O},_=(function(){function C(P,O){var S=this;w(this,C),this.emitter=O,this.scroll=P,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new x(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){S.mouseDown||setTimeout(S.update.bind(S,p.default.sources.USER),1)}),this.emitter.on(p.default.events.EDITOR_CHANGE,function(R,T){R===p.default.events.TEXT_CHANGE&&T.length()>0&&S.update(p.default.sources.SILENT)}),this.emitter.on(p.default.events.SCROLL_BEFORE_UPDATE,function(){if(S.hasFocus()){var R=S.getNativeRange();R!=null&&R.start.node!==S.cursor.textNode&&S.emitter.once(p.default.events.SCROLL_UPDATE,function(){try{S.setNativeRange(R.start.node,R.start.offset,R.end.node,R.end.offset)}catch{}})}}),this.emitter.on(p.default.events.SCROLL_OPTIMIZE,function(R,T){if(T.range){var k=T.range,L=k.startNode,F=k.startOffset,$=k.endNode,z=k.endOffset;S.setNativeRange(L,F,$,z)}}),this.update(p.default.sources.SILENT)}return a(C,[{key:"handleComposition",value:function(){var O=this;this.root.addEventListener("compositionstart",function(){O.composing=!0}),this.root.addEventListener("compositionend",function(){if(O.composing=!1,O.cursor.parent){var S=O.cursor.restore();if(!S)return;setTimeout(function(){O.setNativeRange(S.startNode,S.startOffset,S.endNode,S.endOffset)},1)}})}},{key:"handleDragging",value:function(){var O=this;this.emitter.listenDOM("mousedown",document.body,function(){O.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){O.mouseDown=!1,O.update(p.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(O,S){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[O])){this.scroll.update();var R=this.getNativeRange();if(!(R==null||!R.native.collapsed||c.default.query(O,c.default.Scope.BLOCK))){if(R.start.node!==this.cursor.textNode){var T=c.default.find(R.start.node,!1);if(T==null)return;if(T instanceof c.default.Leaf){var k=T.split(R.start.offset);T.parent.insertBefore(this.cursor,k)}else T.insertBefore(this.cursor,R.start.node);this.cursor.attach()}this.cursor.format(O,S),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(O){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,R=this.scroll.length();O=Math.min(O,R-1),S=Math.min(O+S,R-1)-O;var T=void 0,k=this.scroll.leaf(O),L=o(k,2),F=L[0],$=L[1];if(F==null)return null;var z=F.position($,!0),H=o(z,2);T=H[0],$=H[1];var D=document.createRange();if(S>0){D.setStart(T,$);var j=this.scroll.leaf(O+S),A=o(j,2);if(F=A[0],$=A[1],F==null)return null;var M=F.position($,!0),q=o(M,2);return T=q[0],$=q[1],D.setEnd(T,$),D.getBoundingClientRect()}else{var B="left",N=void 0;return T instanceof Text?($<T.data.length?(D.setStart(T,$),D.setEnd(T,$+1)):(D.setStart(T,$-1),D.setEnd(T,$),B="right"),N=D.getBoundingClientRect()):(N=F.domNode.getBoundingClientRect(),$>0&&(B="right")),{bottom:N.top+N.height,height:N.height,left:N[B],right:N[B],top:N.top,width:0}}}},{key:"getNativeRange",value:function(){var O=document.getSelection();if(O==null||O.rangeCount<=0)return null;var S=O.getRangeAt(0);if(S==null)return null;var R=this.normalizeNative(S);return b.info("getNativeRange",R),R}},{key:"getRange",value:function(){var O=this.getNativeRange();if(O==null)return[null,null];var S=this.normalizedToRange(O);return[S,O]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(O){var S=this,R=[[O.start.node,O.start.offset]];O.native.collapsed||R.push([O.end.node,O.end.offset]);var T=R.map(function(F){var $=o(F,2),z=$[0],H=$[1],D=c.default.find(z,!0),j=D.offset(S.scroll);return H===0?j:D instanceof c.default.Container?j+D.length():j+D.index(z,H)}),k=Math.min(Math.max.apply(Math,g(T)),this.scroll.length()-1),L=Math.min.apply(Math,[k].concat(g(T)));return new x(L,k-L)}},{key:"normalizeNative",value:function(O){if(!E(this.root,O.startContainer)||!O.collapsed&&!E(this.root,O.endContainer))return null;var S={start:{node:O.startContainer,offset:O.startOffset},end:{node:O.endContainer,offset:O.endOffset},native:O};return[S.start,S.end].forEach(function(R){for(var T=R.node,k=R.offset;!(T instanceof Text)&&T.childNodes.length>0;)if(T.childNodes.length>k)T=T.childNodes[k],k=0;else if(T.childNodes.length===k)T=T.lastChild,k=T instanceof Text?T.data.length:T.childNodes.length+1;else break;R.node=T,R.offset=k}),S}},{key:"rangeToNative",value:function(O){var S=this,R=O.collapsed?[O.index]:[O.index,O.index+O.length],T=[],k=this.scroll.length();return R.forEach(function(L,F){L=Math.min(k-1,L);var $=void 0,z=S.scroll.leaf(L),H=o(z,2),D=H[0],j=H[1],A=D.position(j,F!==0),M=o(A,2);$=M[0],j=M[1],T.push($,j)}),T.length<2&&(T=T.concat(T)),T}},{key:"scrollIntoView",value:function(O){var S=this.lastRange;if(S!=null){var R=this.getBounds(S.index,S.length);if(R!=null){var T=this.scroll.length()-1,k=this.scroll.line(Math.min(S.index,T)),L=o(k,1),F=L[0],$=F;if(S.length>0){var z=this.scroll.line(Math.min(S.index+S.length,T)),H=o(z,1);$=H[0]}if(!(F==null||$==null)){var D=O.getBoundingClientRect();R.top<D.top?O.scrollTop-=D.top-R.top:R.bottom>D.bottom&&(O.scrollTop+=R.bottom-D.bottom)}}}}},{key:"setNativeRange",value:function(O,S){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:O,T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S,k=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(b.info("setNativeRange",O,S,R,T),!(O!=null&&(this.root.parentNode==null||O.parentNode==null||R.parentNode==null))){var L=document.getSelection();if(L!=null)if(O!=null){this.hasFocus()||this.root.focus();var F=(this.getNativeRange()||{}).native;if(F==null||k||O!==F.startContainer||S!==F.startOffset||R!==F.endContainer||T!==F.endOffset){O.tagName=="BR"&&(S=[].indexOf.call(O.parentNode.childNodes,O),O=O.parentNode),R.tagName=="BR"&&(T=[].indexOf.call(R.parentNode.childNodes,R),R=R.parentNode);var $=document.createRange();$.setStart(O,S),$.setEnd(R,T),L.removeAllRanges(),L.addRange($)}}else L.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(O){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.default.sources.API;if(typeof S=="string"&&(R=S,S=!1),b.info("setRange",O),O!=null){var T=this.rangeToNative(O);this.setNativeRange.apply(this,g(T).concat([S]))}else this.setNativeRange(null);this.update(R)}},{key:"update",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p.default.sources.USER,S=this.lastRange,R=this.getRange(),T=o(R,2),k=T[0],L=T[1];if(this.lastRange=k,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,u.default)(S,this.lastRange)){var F;!this.composing&&L!=null&&L.native.collapsed&&L.start.node!==this.cursor.textNode&&this.cursor.restore();var $=[p.default.events.SELECTION_CHANGE,(0,f.default)(this.lastRange),(0,f.default)(S),O];if((F=this.emitter).emit.apply(F,[p.default.events.EDITOR_CHANGE].concat($)),O!==p.default.sources.SILENT){var z;(z=this.emitter).emit.apply(z,$)}}}}]),C})();function E(C,P){try{P.parentNode}catch{return!1}return P instanceof Text&&(P=P.parentNode),C.contains(P)}i.Range=x,i.default=_}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function p(m,v){for(var y=0;y<v.length;y++){var g=v[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,v,y){return v&&p(m.prototype,v),y&&p(m,y),m}})(),a=function p(m,v,y){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,v);if(g===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:p(w,v,y)}else{if("value"in g)return g.value;var b=g.get;return b===void 0?void 0:b.call(y)}},s=n(0),c=d(s);function d(p){return p&&p.__esModule?p:{default:p}}function f(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function l(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:p}function u(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(p,m):p.__proto__=m)}var h=(function(p){u(m,p);function m(){return f(this,m),l(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,[{key:"insertInto",value:function(y,g){y.children.length===0?a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertInto",this).call(this,y,g):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),m})(c.default.Embed);h.blotName="break",h.tagName="BR",i.default=h}),(function(t,i,n){var o=this&&this.__extends||(function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var p in h)h.hasOwnProperty(p)&&(u[p]=h[p])};return function(u,h){l(u,h);function p(){this.constructor=u}u.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(44),s=n(30),c=n(1),d=(function(l){o(u,l);function u(h){var p=l.call(this,h)||this;return p.build(),p}return u.prototype.appendChild=function(h){this.insertBefore(h)},u.prototype.attach=function(){l.prototype.attach.call(this),this.children.forEach(function(h){h.attach()})},u.prototype.build=function(){var h=this;this.children=new a.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(p){try{var m=f(p);h.insertBefore(m,h.children.head||void 0)}catch(v){if(v instanceof c.ParchmentError)return;throw v}})},u.prototype.deleteAt=function(h,p){if(h===0&&p===this.length())return this.remove();this.children.forEachAt(h,p,function(m,v,y){m.deleteAt(v,y)})},u.prototype.descendant=function(h,p){var m=this.children.find(p),v=m[0],y=m[1];return h.blotName==null&&h(v)||h.blotName!=null&&v instanceof h?[v,y]:v instanceof u?v.descendant(h,y):[null,-1]},u.prototype.descendants=function(h,p,m){p===void 0&&(p=0),m===void 0&&(m=Number.MAX_VALUE);var v=[],y=m;return this.children.forEachAt(p,m,function(g,w,b){(h.blotName==null&&h(g)||h.blotName!=null&&g instanceof h)&&v.push(g),g instanceof u&&(v=v.concat(g.descendants(h,w,y))),y-=b}),v},u.prototype.detach=function(){this.children.forEach(function(h){h.detach()}),l.prototype.detach.call(this)},u.prototype.formatAt=function(h,p,m,v){this.children.forEachAt(h,p,function(y,g,w){y.formatAt(g,w,m,v)})},u.prototype.insertAt=function(h,p,m){var v=this.children.find(h),y=v[0],g=v[1];if(y)y.insertAt(g,p,m);else{var w=m==null?c.create("text",p):c.create(p,m);this.appendChild(w)}},u.prototype.insertBefore=function(h,p){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(m){return h instanceof m}))throw new c.ParchmentError("Cannot insert "+h.statics.blotName+" into "+this.statics.blotName);h.insertInto(this,p)},u.prototype.length=function(){return this.children.reduce(function(h,p){return h+p.length()},0)},u.prototype.moveChildren=function(h,p){this.children.forEach(function(m){h.insertBefore(m,p)})},u.prototype.optimize=function(h){if(l.prototype.optimize.call(this,h),this.children.length===0)if(this.statics.defaultChild!=null){var p=c.create(this.statics.defaultChild);this.appendChild(p),p.optimize(h)}else this.remove()},u.prototype.path=function(h,p){p===void 0&&(p=!1);var m=this.children.find(h,p),v=m[0],y=m[1],g=[[this,h]];return v instanceof u?g.concat(v.path(y,p)):(v!=null&&g.push([v,y]),g)},u.prototype.removeChild=function(h){this.children.remove(h)},u.prototype.replace=function(h){h instanceof u&&h.moveChildren(this),l.prototype.replace.call(this,h)},u.prototype.split=function(h,p){if(p===void 0&&(p=!1),!p){if(h===0)return this;if(h===this.length())return this.next}var m=this.clone();return this.parent.insertBefore(m,this.next),this.children.forEachAt(h,this.length(),function(v,y,g){v=v.split(y,p),m.appendChild(v)}),m},u.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},u.prototype.update=function(h,p){var m=this,v=[],y=[];h.forEach(function(g){g.target===m.domNode&&g.type==="childList"&&(v.push.apply(v,g.addedNodes),y.push.apply(y,g.removedNodes))}),y.forEach(function(g){if(!(g.parentNode!=null&&g.tagName!=="IFRAME"&&document.body.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var w=c.find(g);w!=null&&(w.domNode.parentNode==null||w.domNode.parentNode===m.domNode)&&w.detach()}}),v.filter(function(g){return g.parentNode==m.domNode}).sort(function(g,w){return g===w?0:g.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(g){var w=null;g.nextSibling!=null&&(w=c.find(g.nextSibling));var b=f(g);(b.next!=w||b.next==null)&&(b.parent!=null&&b.parent.removeChild(m),m.insertBefore(b,w||void 0))})},u})(s.default);function f(l){var u=c.find(l);if(u==null)try{u=c.create(l)}catch{u=c.create(c.Scope.INLINE),[].slice.call(l.childNodes).forEach(function(p){u.domNode.appendChild(p)}),l.parentNode&&l.parentNode.replaceChild(u.domNode,l),u.attach()}return u}i.default=d}),(function(t,i,n){var o=this&&this.__extends||(function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var p in h)h.hasOwnProperty(p)&&(u[p]=h[p])};return function(u,h){l(u,h);function p(){this.constructor=u}u.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(12),s=n(31),c=n(17),d=n(1),f=(function(l){o(u,l);function u(h){var p=l.call(this,h)||this;return p.attributes=new s.default(p.domNode),p}return u.formats=function(h){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return h.tagName.toLowerCase()},u.prototype.format=function(h,p){var m=d.query(h);m instanceof a.default?this.attributes.attribute(m,p):p&&m!=null&&(h!==this.statics.blotName||this.formats()[h]!==p)&&this.replaceWith(h,p)},u.prototype.formats=function(){var h=this.attributes.values(),p=this.statics.formats(this.domNode);return p!=null&&(h[this.statics.blotName]=p),h},u.prototype.replaceWith=function(h,p){var m=l.prototype.replaceWith.call(this,h,p);return this.attributes.copy(m),m},u.prototype.update=function(h,p){var m=this;l.prototype.update.call(this,h,p),h.some(function(v){return v.target===m.domNode&&v.type==="attributes"})&&this.attributes.build()},u.prototype.wrap=function(h,p){var m=l.prototype.wrap.call(this,h,p);return m instanceof u&&m.statics.scope===this.statics.scope&&this.attributes.move(m),m},u})(c.default);i.default=f}),(function(t,i,n){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var u in l)l.hasOwnProperty(u)&&(f[u]=l[u])};return function(f,l){d(f,l);function u(){this.constructor=f}f.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(30),s=n(1),c=(function(d){o(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.value=function(l){return!0},f.prototype.index=function(l,u){return this.domNode===l||this.domNode.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(u,1):-1},f.prototype.position=function(l,u){var h=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return l>0&&(h+=1),[this.parent.domNode,h]},f.prototype.value=function(){var l;return l={},l[this.statics.blotName]=this.statics.value(this.domNode)||!0,l},f.scope=s.Scope.INLINE_BLOT,f})(a.default);i.default=c}),(function(t,i,n){var o=n(11),a=n(3),s={attributes:{compose:function(d,f,l){typeof d!="object"&&(d={}),typeof f!="object"&&(f={});var u=a(!0,{},f);l||(u=Object.keys(u).reduce(function(p,m){return u[m]!=null&&(p[m]=u[m]),p},{}));for(var h in d)d[h]!==void 0&&f[h]===void 0&&(u[h]=d[h]);return Object.keys(u).length>0?u:void 0},diff:function(d,f){typeof d!="object"&&(d={}),typeof f!="object"&&(f={});var l=Object.keys(d).concat(Object.keys(f)).reduce(function(u,h){return o(d[h],f[h])||(u[h]=f[h]===void 0?null:f[h]),u},{});return Object.keys(l).length>0?l:void 0},transform:function(d,f,l){if(typeof d!="object")return f;if(typeof f=="object"){if(!l)return f;var u=Object.keys(f).reduce(function(h,p){return d[p]===void 0&&(h[p]=f[p]),h},{});return Object.keys(u).length>0?u:void 0}}},iterator:function(d){return new c(d)},length:function(d){return typeof d.delete=="number"?d.delete:typeof d.retain=="number"?d.retain:typeof d.insert=="string"?d.insert.length:1}};function c(d){this.ops=d,this.index=0,this.offset=0}c.prototype.hasNext=function(){return this.peekLength()<1/0},c.prototype.next=function(d){d||(d=1/0);var f=this.ops[this.index];if(f){var l=this.offset,u=s.length(f);if(d>=u-l?(d=u-l,this.index+=1,this.offset=0):this.offset+=d,typeof f.delete=="number")return{delete:d};var h={};return f.attributes&&(h.attributes=f.attributes),typeof f.retain=="number"?h.retain=d:typeof f.insert=="string"?h.insert=f.insert.substr(l,d):h.insert=f.insert,h}else return{retain:1/0}},c.prototype.peek=function(){return this.ops[this.index]},c.prototype.peekLength=function(){return this.ops[this.index]?s.length(this.ops[this.index])-this.offset:1/0},c.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},c.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var d=this.offset,f=this.index,l=this.next(),u=this.ops.slice(this.index);return this.offset=d,this.index=f,[l].concat(u)}else return[]},t.exports=s}),(function(t,i){var n=(function(){function o(m,v){return v!=null&&m instanceof v}var a;try{a=Map}catch{a=function(){}}var s;try{s=Set}catch{s=function(){}}var c;try{c=Promise}catch{c=function(){}}function d(m,v,y,g,w){typeof v=="object"&&(y=v.depth,g=v.prototype,w=v.includeNonEnumerable,v=v.circular);var b=[],x=[],_=typeof Buffer<"u";typeof v>"u"&&(v=!0),typeof y>"u"&&(y=1/0);function E(C,P){if(C===null)return null;if(P===0)return C;var O,S;if(typeof C!="object")return C;if(o(C,a))O=new a;else if(o(C,s))O=new s;else if(o(C,c))O=new c(function(D,j){C.then(function(A){D(E(A,P-1))},function(A){j(E(A,P-1))})});else if(d.__isArray(C))O=[];else if(d.__isRegExp(C))O=new RegExp(C.source,p(C)),C.lastIndex&&(O.lastIndex=C.lastIndex);else if(d.__isDate(C))O=new Date(C.getTime());else{if(_&&Buffer.isBuffer(C))return Buffer.allocUnsafe?O=Buffer.allocUnsafe(C.length):O=new Buffer(C.length),C.copy(O),O;o(C,Error)?O=Object.create(C):typeof g>"u"?(S=Object.getPrototypeOf(C),O=Object.create(S)):(O=Object.create(g),S=g)}if(v){var R=b.indexOf(C);if(R!=-1)return x[R];b.push(C),x.push(O)}o(C,a)&&C.forEach(function(D,j){var A=E(j,P-1),M=E(D,P-1);O.set(A,M)}),o(C,s)&&C.forEach(function(D){var j=E(D,P-1);O.add(j)});for(var T in C){var k;S&&(k=Object.getOwnPropertyDescriptor(S,T)),!(k&&k.set==null)&&(O[T]=E(C[T],P-1))}if(Object.getOwnPropertySymbols)for(var L=Object.getOwnPropertySymbols(C),T=0;T<L.length;T++){var F=L[T],$=Object.getOwnPropertyDescriptor(C,F);$&&!$.enumerable&&!w||(O[F]=E(C[F],P-1),$.enumerable||Object.defineProperty(O,F,{enumerable:!1}))}if(w)for(var z=Object.getOwnPropertyNames(C),T=0;T<z.length;T++){var H=z[T],$=Object.getOwnPropertyDescriptor(C,H);$&&$.enumerable||(O[H]=E(C[H],P-1),Object.defineProperty(O,H,{enumerable:!1}))}return O}return E(m,y)}d.clonePrototype=function(v){if(v===null)return null;var y=function(){};return y.prototype=v,new y};function f(m){return Object.prototype.toString.call(m)}d.__objToStr=f;function l(m){return typeof m=="object"&&f(m)==="[object Date]"}d.__isDate=l;function u(m){return typeof m=="object"&&f(m)==="[object Array]"}d.__isArray=u;function h(m){return typeof m=="object"&&f(m)==="[object RegExp]"}d.__isRegExp=h;function p(m){var v="";return m.global&&(v+="g"),m.ignoreCase&&(v+="i"),m.multiline&&(v+="m"),v}return d.__getRegExpFlags=p,d})();typeof t=="object"&&t.exports&&(t.exports=n)}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function O(S,R){var T=[],k=!0,L=!1,F=void 0;try{for(var $=S[Symbol.iterator](),z;!(k=(z=$.next()).done)&&(T.push(z.value),!(R&&T.length===R));k=!0);}catch(H){L=!0,F=H}finally{try{!k&&$.return&&$.return()}finally{if(L)throw F}}return T}return function(S,R){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return O(S,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function O(S,R){for(var T=0;T<R.length;T++){var k=R[T];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(S,k.key,k)}}return function(S,R,T){return R&&O(S.prototype,R),T&&O(S,T),S}})(),s=function O(S,R,T){S===null&&(S=Function.prototype);var k=Object.getOwnPropertyDescriptor(S,R);if(k===void 0){var L=Object.getPrototypeOf(S);return L===null?void 0:O(L,R,T)}else{if("value"in k)return k.value;var F=k.get;return F===void 0?void 0:F.call(T)}},c=n(0),d=b(c),f=n(8),l=b(f),u=n(4),h=b(u),p=n(16),m=b(p),v=n(13),y=b(v),g=n(25),w=b(g);function b(O){return O&&O.__esModule?O:{default:O}}function x(O,S){if(!(O instanceof S))throw new TypeError("Cannot call a class as a function")}function _(O,S){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:O}function E(O,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);O.prototype=Object.create(S&&S.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(O,S):O.__proto__=S)}function C(O){return O instanceof h.default||O instanceof u.BlockEmbed}var P=(function(O){E(S,O);function S(R,T){x(this,S);var k=_(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,R));return k.emitter=T.emitter,Array.isArray(T.whitelist)&&(k.whitelist=T.whitelist.reduce(function(L,F){return L[F]=!0,L},{})),k.domNode.addEventListener("DOMNodeInserted",function(){}),k.optimize(),k.enable(),k}return a(S,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(T,k){var L=this.line(T),F=o(L,2),$=F[0],z=F[1],H=this.line(T+k),D=o(H,1),j=D[0];if(s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"deleteAt",this).call(this,T,k),j!=null&&$!==j&&z>0){if($ instanceof u.BlockEmbed||j instanceof u.BlockEmbed){this.optimize();return}if($ instanceof y.default){var A=$.newlineIndex($.length(),!0);if(A>-1&&($=$.split(A+1),$===j)){this.optimize();return}}else if(j instanceof y.default){var M=j.newlineIndex(0);M>-1&&j.split(M+1)}var q=j.children.head instanceof m.default?null:j.children.head;$.moveChildren(j,q),$.remove()}this.optimize()}},{key:"enable",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",T)}},{key:"formatAt",value:function(T,k,L,F){this.whitelist!=null&&!this.whitelist[L]||(s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"formatAt",this).call(this,T,k,L,F),this.optimize())}},{key:"insertAt",value:function(T,k,L){if(!(L!=null&&this.whitelist!=null&&!this.whitelist[k])){if(T>=this.length())if(L==null||d.default.query(k,d.default.Scope.BLOCK)==null){var F=d.default.create(this.statics.defaultChild);this.appendChild(F),L==null&&k.endsWith(`
|
|
39
|
-
`)&&(
|
|
38
|
+
`);return D.insert(M,j.attributes)}return D.push(j)},new d.default)}i.default=F}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.Range=void 0;var o=(function(){function C(k,O){var S=[],R=!0,T=!1,P=void 0;try{for(var L=k[Symbol.iterator](),F;!(R=(F=L.next()).done)&&(S.push(F.value),!(O&&S.length===O));R=!0);}catch($){T=!0,P=$}finally{try{!R&&L.return&&L.return()}finally{if(T)throw P}}return S}return function(k,O){if(Array.isArray(k))return k;if(Symbol.iterator in Object(k))return C(k,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function C(k,O){for(var S=0;S<O.length;S++){var R=O[S];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(k,R.key,R)}}return function(k,O,S){return O&&C(k.prototype,O),S&&C(k,S),k}})(),s=n(0),c=y(s),d=n(21),f=y(d),l=n(11),u=y(l),h=n(8),p=y(h),m=n(10),v=y(m);function y(C){return C&&C.__esModule?C:{default:C}}function g(C){if(Array.isArray(C)){for(var k=0,O=Array(C.length);k<C.length;k++)O[k]=C[k];return O}else return Array.from(C)}function w(C,k){if(!(C instanceof k))throw new TypeError("Cannot call a class as a function")}var b=(0,v.default)("quill:selection"),x=function C(k){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;w(this,C),this.index=k,this.length=O},_=(function(){function C(k,O){var S=this;w(this,C),this.emitter=O,this.scroll=k,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=c.default.create("cursor",this),this.lastRange=this.savedRange=new x(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){S.mouseDown||setTimeout(S.update.bind(S,p.default.sources.USER),1)}),this.emitter.on(p.default.events.EDITOR_CHANGE,function(R,T){R===p.default.events.TEXT_CHANGE&&T.length()>0&&S.update(p.default.sources.SILENT)}),this.emitter.on(p.default.events.SCROLL_BEFORE_UPDATE,function(){if(S.hasFocus()){var R=S.getNativeRange();R!=null&&R.start.node!==S.cursor.textNode&&S.emitter.once(p.default.events.SCROLL_UPDATE,function(){try{S.setNativeRange(R.start.node,R.start.offset,R.end.node,R.end.offset)}catch{}})}}),this.emitter.on(p.default.events.SCROLL_OPTIMIZE,function(R,T){if(T.range){var P=T.range,L=P.startNode,F=P.startOffset,$=P.endNode,z=P.endOffset;S.setNativeRange(L,F,$,z)}}),this.update(p.default.sources.SILENT)}return a(C,[{key:"handleComposition",value:function(){var O=this;this.root.addEventListener("compositionstart",function(){O.composing=!0}),this.root.addEventListener("compositionend",function(){if(O.composing=!1,O.cursor.parent){var S=O.cursor.restore();if(!S)return;setTimeout(function(){O.setNativeRange(S.startNode,S.startOffset,S.endNode,S.endOffset)},1)}})}},{key:"handleDragging",value:function(){var O=this;this.emitter.listenDOM("mousedown",document.body,function(){O.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){O.mouseDown=!1,O.update(p.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(O,S){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[O])){this.scroll.update();var R=this.getNativeRange();if(!(R==null||!R.native.collapsed||c.default.query(O,c.default.Scope.BLOCK))){if(R.start.node!==this.cursor.textNode){var T=c.default.find(R.start.node,!1);if(T==null)return;if(T instanceof c.default.Leaf){var P=T.split(R.start.offset);T.parent.insertBefore(this.cursor,P)}else T.insertBefore(this.cursor,R.start.node);this.cursor.attach()}this.cursor.format(O,S),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(O){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,R=this.scroll.length();O=Math.min(O,R-1),S=Math.min(O+S,R-1)-O;var T=void 0,P=this.scroll.leaf(O),L=o(P,2),F=L[0],$=L[1];if(F==null)return null;var z=F.position($,!0),H=o(z,2);T=H[0],$=H[1];var D=document.createRange();if(S>0){D.setStart(T,$);var j=this.scroll.leaf(O+S),A=o(j,2);if(F=A[0],$=A[1],F==null)return null;var M=F.position($,!0),q=o(M,2);return T=q[0],$=q[1],D.setEnd(T,$),D.getBoundingClientRect()}else{var B="left",N=void 0;return T instanceof Text?($<T.data.length?(D.setStart(T,$),D.setEnd(T,$+1)):(D.setStart(T,$-1),D.setEnd(T,$),B="right"),N=D.getBoundingClientRect()):(N=F.domNode.getBoundingClientRect(),$>0&&(B="right")),{bottom:N.top+N.height,height:N.height,left:N[B],right:N[B],top:N.top,width:0}}}},{key:"getNativeRange",value:function(){var O=document.getSelection();if(O==null||O.rangeCount<=0)return null;var S=O.getRangeAt(0);if(S==null)return null;var R=this.normalizeNative(S);return b.info("getNativeRange",R),R}},{key:"getRange",value:function(){var O=this.getNativeRange();if(O==null)return[null,null];var S=this.normalizedToRange(O);return[S,O]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(O){var S=this,R=[[O.start.node,O.start.offset]];O.native.collapsed||R.push([O.end.node,O.end.offset]);var T=R.map(function(F){var $=o(F,2),z=$[0],H=$[1],D=c.default.find(z,!0),j=D.offset(S.scroll);return H===0?j:D instanceof c.default.Container?j+D.length():j+D.index(z,H)}),P=Math.min(Math.max.apply(Math,g(T)),this.scroll.length()-1),L=Math.min.apply(Math,[P].concat(g(T)));return new x(L,P-L)}},{key:"normalizeNative",value:function(O){if(!E(this.root,O.startContainer)||!O.collapsed&&!E(this.root,O.endContainer))return null;var S={start:{node:O.startContainer,offset:O.startOffset},end:{node:O.endContainer,offset:O.endOffset},native:O};return[S.start,S.end].forEach(function(R){for(var T=R.node,P=R.offset;!(T instanceof Text)&&T.childNodes.length>0;)if(T.childNodes.length>P)T=T.childNodes[P],P=0;else if(T.childNodes.length===P)T=T.lastChild,P=T instanceof Text?T.data.length:T.childNodes.length+1;else break;R.node=T,R.offset=P}),S}},{key:"rangeToNative",value:function(O){var S=this,R=O.collapsed?[O.index]:[O.index,O.index+O.length],T=[],P=this.scroll.length();return R.forEach(function(L,F){L=Math.min(P-1,L);var $=void 0,z=S.scroll.leaf(L),H=o(z,2),D=H[0],j=H[1],A=D.position(j,F!==0),M=o(A,2);$=M[0],j=M[1],T.push($,j)}),T.length<2&&(T=T.concat(T)),T}},{key:"scrollIntoView",value:function(O){var S=this.lastRange;if(S!=null){var R=this.getBounds(S.index,S.length);if(R!=null){var T=this.scroll.length()-1,P=this.scroll.line(Math.min(S.index,T)),L=o(P,1),F=L[0],$=F;if(S.length>0){var z=this.scroll.line(Math.min(S.index+S.length,T)),H=o(z,1);$=H[0]}if(!(F==null||$==null)){var D=O.getBoundingClientRect();R.top<D.top?O.scrollTop-=D.top-R.top:R.bottom>D.bottom&&(O.scrollTop+=R.bottom-D.bottom)}}}}},{key:"setNativeRange",value:function(O,S){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:O,T=arguments.length>3&&arguments[3]!==void 0?arguments[3]:S,P=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(b.info("setNativeRange",O,S,R,T),!(O!=null&&(this.root.parentNode==null||O.parentNode==null||R.parentNode==null))){var L=document.getSelection();if(L!=null)if(O!=null){this.hasFocus()||this.root.focus();var F=(this.getNativeRange()||{}).native;if(F==null||P||O!==F.startContainer||S!==F.startOffset||R!==F.endContainer||T!==F.endOffset){O.tagName=="BR"&&(S=[].indexOf.call(O.parentNode.childNodes,O),O=O.parentNode),R.tagName=="BR"&&(T=[].indexOf.call(R.parentNode.childNodes,R),R=R.parentNode);var $=document.createRange();$.setStart(O,S),$.setEnd(R,T),L.removeAllRanges(),L.addRange($)}}else L.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(O){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.default.sources.API;if(typeof S=="string"&&(R=S,S=!1),b.info("setRange",O),O!=null){var T=this.rangeToNative(O);this.setNativeRange.apply(this,g(T).concat([S]))}else this.setNativeRange(null);this.update(R)}},{key:"update",value:function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p.default.sources.USER,S=this.lastRange,R=this.getRange(),T=o(R,2),P=T[0],L=T[1];if(this.lastRange=P,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,u.default)(S,this.lastRange)){var F;!this.composing&&L!=null&&L.native.collapsed&&L.start.node!==this.cursor.textNode&&this.cursor.restore();var $=[p.default.events.SELECTION_CHANGE,(0,f.default)(this.lastRange),(0,f.default)(S),O];if((F=this.emitter).emit.apply(F,[p.default.events.EDITOR_CHANGE].concat($)),O!==p.default.sources.SILENT){var z;(z=this.emitter).emit.apply(z,$)}}}}]),C})();function E(C,k){try{k.parentNode}catch{return!1}return k instanceof Text&&(k=k.parentNode),C.contains(k)}i.Range=x,i.default=_}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function p(m,v){for(var y=0;y<v.length;y++){var g=v[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,v,y){return v&&p(m.prototype,v),y&&p(m,y),m}})(),a=function p(m,v,y){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,v);if(g===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:p(w,v,y)}else{if("value"in g)return g.value;var b=g.get;return b===void 0?void 0:b.call(y)}},s=n(0),c=d(s);function d(p){return p&&p.__esModule?p:{default:p}}function f(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function l(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:p}function u(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(p,m):p.__proto__=m)}var h=(function(p){u(m,p);function m(){return f(this,m),l(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,[{key:"insertInto",value:function(y,g){y.children.length===0?a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertInto",this).call(this,y,g):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),m})(c.default.Embed);h.blotName="break",h.tagName="BR",i.default=h}),(function(t,i,n){var o=this&&this.__extends||(function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var p in h)h.hasOwnProperty(p)&&(u[p]=h[p])};return function(u,h){l(u,h);function p(){this.constructor=u}u.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(44),s=n(30),c=n(1),d=(function(l){o(u,l);function u(h){var p=l.call(this,h)||this;return p.build(),p}return u.prototype.appendChild=function(h){this.insertBefore(h)},u.prototype.attach=function(){l.prototype.attach.call(this),this.children.forEach(function(h){h.attach()})},u.prototype.build=function(){var h=this;this.children=new a.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(p){try{var m=f(p);h.insertBefore(m,h.children.head||void 0)}catch(v){if(v instanceof c.ParchmentError)return;throw v}})},u.prototype.deleteAt=function(h,p){if(h===0&&p===this.length())return this.remove();this.children.forEachAt(h,p,function(m,v,y){m.deleteAt(v,y)})},u.prototype.descendant=function(h,p){var m=this.children.find(p),v=m[0],y=m[1];return h.blotName==null&&h(v)||h.blotName!=null&&v instanceof h?[v,y]:v instanceof u?v.descendant(h,y):[null,-1]},u.prototype.descendants=function(h,p,m){p===void 0&&(p=0),m===void 0&&(m=Number.MAX_VALUE);var v=[],y=m;return this.children.forEachAt(p,m,function(g,w,b){(h.blotName==null&&h(g)||h.blotName!=null&&g instanceof h)&&v.push(g),g instanceof u&&(v=v.concat(g.descendants(h,w,y))),y-=b}),v},u.prototype.detach=function(){this.children.forEach(function(h){h.detach()}),l.prototype.detach.call(this)},u.prototype.formatAt=function(h,p,m,v){this.children.forEachAt(h,p,function(y,g,w){y.formatAt(g,w,m,v)})},u.prototype.insertAt=function(h,p,m){var v=this.children.find(h),y=v[0],g=v[1];if(y)y.insertAt(g,p,m);else{var w=m==null?c.create("text",p):c.create(p,m);this.appendChild(w)}},u.prototype.insertBefore=function(h,p){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(m){return h instanceof m}))throw new c.ParchmentError("Cannot insert "+h.statics.blotName+" into "+this.statics.blotName);h.insertInto(this,p)},u.prototype.length=function(){return this.children.reduce(function(h,p){return h+p.length()},0)},u.prototype.moveChildren=function(h,p){this.children.forEach(function(m){h.insertBefore(m,p)})},u.prototype.optimize=function(h){if(l.prototype.optimize.call(this,h),this.children.length===0)if(this.statics.defaultChild!=null){var p=c.create(this.statics.defaultChild);this.appendChild(p),p.optimize(h)}else this.remove()},u.prototype.path=function(h,p){p===void 0&&(p=!1);var m=this.children.find(h,p),v=m[0],y=m[1],g=[[this,h]];return v instanceof u?g.concat(v.path(y,p)):(v!=null&&g.push([v,y]),g)},u.prototype.removeChild=function(h){this.children.remove(h)},u.prototype.replace=function(h){h instanceof u&&h.moveChildren(this),l.prototype.replace.call(this,h)},u.prototype.split=function(h,p){if(p===void 0&&(p=!1),!p){if(h===0)return this;if(h===this.length())return this.next}var m=this.clone();return this.parent.insertBefore(m,this.next),this.children.forEachAt(h,this.length(),function(v,y,g){v=v.split(y,p),m.appendChild(v)}),m},u.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},u.prototype.update=function(h,p){var m=this,v=[],y=[];h.forEach(function(g){g.target===m.domNode&&g.type==="childList"&&(v.push.apply(v,g.addedNodes),y.push.apply(y,g.removedNodes))}),y.forEach(function(g){if(!(g.parentNode!=null&&g.tagName!=="IFRAME"&&document.body.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var w=c.find(g);w!=null&&(w.domNode.parentNode==null||w.domNode.parentNode===m.domNode)&&w.detach()}}),v.filter(function(g){return g.parentNode==m.domNode}).sort(function(g,w){return g===w?0:g.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(g){var w=null;g.nextSibling!=null&&(w=c.find(g.nextSibling));var b=f(g);(b.next!=w||b.next==null)&&(b.parent!=null&&b.parent.removeChild(m),m.insertBefore(b,w||void 0))})},u})(s.default);function f(l){var u=c.find(l);if(u==null)try{u=c.create(l)}catch{u=c.create(c.Scope.INLINE),[].slice.call(l.childNodes).forEach(function(p){u.domNode.appendChild(p)}),l.parentNode&&l.parentNode.replaceChild(u.domNode,l),u.attach()}return u}i.default=d}),(function(t,i,n){var o=this&&this.__extends||(function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var p in h)h.hasOwnProperty(p)&&(u[p]=h[p])};return function(u,h){l(u,h);function p(){this.constructor=u}u.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(12),s=n(31),c=n(17),d=n(1),f=(function(l){o(u,l);function u(h){var p=l.call(this,h)||this;return p.attributes=new s.default(p.domNode),p}return u.formats=function(h){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return h.tagName.toLowerCase()},u.prototype.format=function(h,p){var m=d.query(h);m instanceof a.default?this.attributes.attribute(m,p):p&&m!=null&&(h!==this.statics.blotName||this.formats()[h]!==p)&&this.replaceWith(h,p)},u.prototype.formats=function(){var h=this.attributes.values(),p=this.statics.formats(this.domNode);return p!=null&&(h[this.statics.blotName]=p),h},u.prototype.replaceWith=function(h,p){var m=l.prototype.replaceWith.call(this,h,p);return this.attributes.copy(m),m},u.prototype.update=function(h,p){var m=this;l.prototype.update.call(this,h,p),h.some(function(v){return v.target===m.domNode&&v.type==="attributes"})&&this.attributes.build()},u.prototype.wrap=function(h,p){var m=l.prototype.wrap.call(this,h,p);return m instanceof u&&m.statics.scope===this.statics.scope&&this.attributes.move(m),m},u})(c.default);i.default=f}),(function(t,i,n){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var u in l)l.hasOwnProperty(u)&&(f[u]=l[u])};return function(f,l){d(f,l);function u(){this.constructor=f}f.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(30),s=n(1),c=(function(d){o(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.value=function(l){return!0},f.prototype.index=function(l,u){return this.domNode===l||this.domNode.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(u,1):-1},f.prototype.position=function(l,u){var h=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return l>0&&(h+=1),[this.parent.domNode,h]},f.prototype.value=function(){var l;return l={},l[this.statics.blotName]=this.statics.value(this.domNode)||!0,l},f.scope=s.Scope.INLINE_BLOT,f})(a.default);i.default=c}),(function(t,i,n){var o=n(11),a=n(3),s={attributes:{compose:function(d,f,l){typeof d!="object"&&(d={}),typeof f!="object"&&(f={});var u=a(!0,{},f);l||(u=Object.keys(u).reduce(function(p,m){return u[m]!=null&&(p[m]=u[m]),p},{}));for(var h in d)d[h]!==void 0&&f[h]===void 0&&(u[h]=d[h]);return Object.keys(u).length>0?u:void 0},diff:function(d,f){typeof d!="object"&&(d={}),typeof f!="object"&&(f={});var l=Object.keys(d).concat(Object.keys(f)).reduce(function(u,h){return o(d[h],f[h])||(u[h]=f[h]===void 0?null:f[h]),u},{});return Object.keys(l).length>0?l:void 0},transform:function(d,f,l){if(typeof d!="object")return f;if(typeof f=="object"){if(!l)return f;var u=Object.keys(f).reduce(function(h,p){return d[p]===void 0&&(h[p]=f[p]),h},{});return Object.keys(u).length>0?u:void 0}}},iterator:function(d){return new c(d)},length:function(d){return typeof d.delete=="number"?d.delete:typeof d.retain=="number"?d.retain:typeof d.insert=="string"?d.insert.length:1}};function c(d){this.ops=d,this.index=0,this.offset=0}c.prototype.hasNext=function(){return this.peekLength()<1/0},c.prototype.next=function(d){d||(d=1/0);var f=this.ops[this.index];if(f){var l=this.offset,u=s.length(f);if(d>=u-l?(d=u-l,this.index+=1,this.offset=0):this.offset+=d,typeof f.delete=="number")return{delete:d};var h={};return f.attributes&&(h.attributes=f.attributes),typeof f.retain=="number"?h.retain=d:typeof f.insert=="string"?h.insert=f.insert.substr(l,d):h.insert=f.insert,h}else return{retain:1/0}},c.prototype.peek=function(){return this.ops[this.index]},c.prototype.peekLength=function(){return this.ops[this.index]?s.length(this.ops[this.index])-this.offset:1/0},c.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},c.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var d=this.offset,f=this.index,l=this.next(),u=this.ops.slice(this.index);return this.offset=d,this.index=f,[l].concat(u)}else return[]},t.exports=s}),(function(t,i){var n=(function(){function o(m,v){return v!=null&&m instanceof v}var a;try{a=Map}catch{a=function(){}}var s;try{s=Set}catch{s=function(){}}var c;try{c=Promise}catch{c=function(){}}function d(m,v,y,g,w){typeof v=="object"&&(y=v.depth,g=v.prototype,w=v.includeNonEnumerable,v=v.circular);var b=[],x=[],_=typeof Buffer<"u";typeof v>"u"&&(v=!0),typeof y>"u"&&(y=1/0);function E(C,k){if(C===null)return null;if(k===0)return C;var O,S;if(typeof C!="object")return C;if(o(C,a))O=new a;else if(o(C,s))O=new s;else if(o(C,c))O=new c(function(D,j){C.then(function(A){D(E(A,k-1))},function(A){j(E(A,k-1))})});else if(d.__isArray(C))O=[];else if(d.__isRegExp(C))O=new RegExp(C.source,p(C)),C.lastIndex&&(O.lastIndex=C.lastIndex);else if(d.__isDate(C))O=new Date(C.getTime());else{if(_&&Buffer.isBuffer(C))return Buffer.allocUnsafe?O=Buffer.allocUnsafe(C.length):O=new Buffer(C.length),C.copy(O),O;o(C,Error)?O=Object.create(C):typeof g>"u"?(S=Object.getPrototypeOf(C),O=Object.create(S)):(O=Object.create(g),S=g)}if(v){var R=b.indexOf(C);if(R!=-1)return x[R];b.push(C),x.push(O)}o(C,a)&&C.forEach(function(D,j){var A=E(j,k-1),M=E(D,k-1);O.set(A,M)}),o(C,s)&&C.forEach(function(D){var j=E(D,k-1);O.add(j)});for(var T in C){var P;S&&(P=Object.getOwnPropertyDescriptor(S,T)),!(P&&P.set==null)&&(O[T]=E(C[T],k-1))}if(Object.getOwnPropertySymbols)for(var L=Object.getOwnPropertySymbols(C),T=0;T<L.length;T++){var F=L[T],$=Object.getOwnPropertyDescriptor(C,F);$&&!$.enumerable&&!w||(O[F]=E(C[F],k-1),$.enumerable||Object.defineProperty(O,F,{enumerable:!1}))}if(w)for(var z=Object.getOwnPropertyNames(C),T=0;T<z.length;T++){var H=z[T],$=Object.getOwnPropertyDescriptor(C,H);$&&$.enumerable||(O[H]=E(C[H],k-1),Object.defineProperty(O,H,{enumerable:!1}))}return O}return E(m,y)}d.clonePrototype=function(v){if(v===null)return null;var y=function(){};return y.prototype=v,new y};function f(m){return Object.prototype.toString.call(m)}d.__objToStr=f;function l(m){return typeof m=="object"&&f(m)==="[object Date]"}d.__isDate=l;function u(m){return typeof m=="object"&&f(m)==="[object Array]"}d.__isArray=u;function h(m){return typeof m=="object"&&f(m)==="[object RegExp]"}d.__isRegExp=h;function p(m){var v="";return m.global&&(v+="g"),m.ignoreCase&&(v+="i"),m.multiline&&(v+="m"),v}return d.__getRegExpFlags=p,d})();typeof t=="object"&&t.exports&&(t.exports=n)}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function O(S,R){var T=[],P=!0,L=!1,F=void 0;try{for(var $=S[Symbol.iterator](),z;!(P=(z=$.next()).done)&&(T.push(z.value),!(R&&T.length===R));P=!0);}catch(H){L=!0,F=H}finally{try{!P&&$.return&&$.return()}finally{if(L)throw F}}return T}return function(S,R){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return O(S,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function O(S,R){for(var T=0;T<R.length;T++){var P=R[T];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(S,P.key,P)}}return function(S,R,T){return R&&O(S.prototype,R),T&&O(S,T),S}})(),s=function O(S,R,T){S===null&&(S=Function.prototype);var P=Object.getOwnPropertyDescriptor(S,R);if(P===void 0){var L=Object.getPrototypeOf(S);return L===null?void 0:O(L,R,T)}else{if("value"in P)return P.value;var F=P.get;return F===void 0?void 0:F.call(T)}},c=n(0),d=b(c),f=n(8),l=b(f),u=n(4),h=b(u),p=n(16),m=b(p),v=n(13),y=b(v),g=n(25),w=b(g);function b(O){return O&&O.__esModule?O:{default:O}}function x(O,S){if(!(O instanceof S))throw new TypeError("Cannot call a class as a function")}function _(O,S){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:O}function E(O,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);O.prototype=Object.create(S&&S.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(O,S):O.__proto__=S)}function C(O){return O instanceof h.default||O instanceof u.BlockEmbed}var k=(function(O){E(S,O);function S(R,T){x(this,S);var P=_(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,R));return P.emitter=T.emitter,Array.isArray(T.whitelist)&&(P.whitelist=T.whitelist.reduce(function(L,F){return L[F]=!0,L},{})),P.domNode.addEventListener("DOMNodeInserted",function(){}),P.optimize(),P.enable(),P}return a(S,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(T,P){var L=this.line(T),F=o(L,2),$=F[0],z=F[1],H=this.line(T+P),D=o(H,1),j=D[0];if(s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"deleteAt",this).call(this,T,P),j!=null&&$!==j&&z>0){if($ instanceof u.BlockEmbed||j instanceof u.BlockEmbed){this.optimize();return}if($ instanceof y.default){var A=$.newlineIndex($.length(),!0);if(A>-1&&($=$.split(A+1),$===j)){this.optimize();return}}else if(j instanceof y.default){var M=j.newlineIndex(0);M>-1&&j.split(M+1)}var q=j.children.head instanceof m.default?null:j.children.head;$.moveChildren(j,q),$.remove()}this.optimize()}},{key:"enable",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",T)}},{key:"formatAt",value:function(T,P,L,F){this.whitelist!=null&&!this.whitelist[L]||(s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"formatAt",this).call(this,T,P,L,F),this.optimize())}},{key:"insertAt",value:function(T,P,L){if(!(L!=null&&this.whitelist!=null&&!this.whitelist[P])){if(T>=this.length())if(L==null||d.default.query(P,d.default.Scope.BLOCK)==null){var F=d.default.create(this.statics.defaultChild);this.appendChild(F),L==null&&P.endsWith(`
|
|
39
|
+
`)&&(P=P.slice(0,-1)),F.insertAt(0,P,L)}else{var $=d.default.create(P,L);this.appendChild($)}else s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"insertAt",this).call(this,T,P,L);this.optimize()}}},{key:"insertBefore",value:function(T,P){if(T.statics.scope===d.default.Scope.INLINE_BLOT){var L=d.default.create(this.statics.defaultChild);L.appendChild(T),T=L}s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"insertBefore",this).call(this,T,P)}},{key:"leaf",value:function(T){return this.path(T).pop()||[null,-1]}},{key:"line",value:function(T){return T===this.length()?this.line(T-1):this.descendant(C,T)}},{key:"lines",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,L=function F($,z,H){var D=[],j=H;return $.children.forEachAt(z,H,function(A,M,q){C(A)?D.push(A):A instanceof d.default.Container&&(D=D.concat(F(A,M,j))),j-=q}),D};return L(this,T,P)}},{key:"optimize",value:function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"optimize",this).call(this,T,P),T.length>0&&this.emitter.emit(l.default.events.SCROLL_OPTIMIZE,T,P))}},{key:"path",value:function(T){return s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"path",this).call(this,T).slice(1)}},{key:"update",value:function(T){if(this.batch!==!0){var P=l.default.sources.USER;typeof T=="string"&&(P=T),Array.isArray(T)||(T=this.observer.takeRecords()),T.length>0&&this.emitter.emit(l.default.events.SCROLL_BEFORE_UPDATE,P,T),s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"update",this).call(this,T.concat([])),T.length>0&&this.emitter.emit(l.default.events.SCROLL_UPDATE,P,T)}}}]),S})(d.default.Scroll);k.blotName="scroll",k.className="ql-editor",k.tagName="DIV",k.defaultChild="block",k.allowedChildren=[h.default,u.BlockEmbed,w.default],i.default=k}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.SHORTKEY=i.default=void 0;var o=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},a=(function(){function N(V,K){var W=[],X=!0,re=!1,oe=void 0;try{for(var se=V[Symbol.iterator](),te;!(X=(te=se.next()).done)&&(W.push(te.value),!(K&&W.length===K));X=!0);}catch(ce){re=!0,oe=ce}finally{try{!X&&se.return&&se.return()}finally{if(re)throw oe}}return W}return function(V,K){if(Array.isArray(V))return V;if(Symbol.iterator in Object(V))return N(V,K);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function N(V,K){for(var W=0;W<K.length;W++){var X=K[W];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(V,X.key,X)}}return function(V,K,W){return K&&N(V.prototype,K),W&&N(V,W),V}})(),c=n(21),d=O(c),f=n(11),l=O(f),u=n(3),h=O(u),p=n(2),m=O(p),v=n(20),y=O(v),g=n(0),w=O(g),b=n(5),x=O(b),_=n(10),E=O(_),C=n(9),k=O(C);function O(N){return N&&N.__esModule?N:{default:N}}function S(N,V,K){return V in N?Object.defineProperty(N,V,{value:K,enumerable:!0,configurable:!0,writable:!0}):N[V]=K,N}function R(N,V){if(!(N instanceof V))throw new TypeError("Cannot call a class as a function")}function T(N,V){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V&&(typeof V=="object"||typeof V=="function")?V:N}function P(N,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof V);N.prototype=Object.create(V&&V.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),V&&(Object.setPrototypeOf?Object.setPrototypeOf(N,V):N.__proto__=V)}var L=(0,E.default)("quill:keyboard"),F=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",$=(function(N){P(V,N),s(V,null,[{key:"match",value:function(W,X){return X=B(X),["altKey","ctrlKey","metaKey","shiftKey"].some(function(re){return!!X[re]!==W[re]&&X[re]!==null})?!1:X.key===(W.which||W.keyCode)}}]);function V(K,W){R(this,V);var X=T(this,(V.__proto__||Object.getPrototypeOf(V)).call(this,K,W));return X.bindings={},Object.keys(X.options.bindings).forEach(function(re){re==="list autofill"&&K.scroll.whitelist!=null&&!K.scroll.whitelist.list||X.options.bindings[re]&&X.addBinding(X.options.bindings[re])}),X.addBinding({key:V.keys.ENTER,shiftKey:null},A),X.addBinding({key:V.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(X.addBinding({key:V.keys.BACKSPACE},{collapsed:!0},H),X.addBinding({key:V.keys.DELETE},{collapsed:!0},D)):(X.addBinding({key:V.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},H),X.addBinding({key:V.keys.DELETE},{collapsed:!0,suffix:/^.?$/},D)),X.addBinding({key:V.keys.BACKSPACE},{collapsed:!1},j),X.addBinding({key:V.keys.DELETE},{collapsed:!1},j),X.addBinding({key:V.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},H),X.listen(),X}return s(V,[{key:"addBinding",value:function(W){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},oe=B(W);if(oe==null||oe.key==null)return L.warn("Attempted to add invalid keyboard binding",oe);typeof X=="function"&&(X={handler:X}),typeof re=="function"&&(re={handler:re}),oe=(0,h.default)(oe,X,re),this.bindings[oe.key]=this.bindings[oe.key]||[],this.bindings[oe.key].push(oe)}},{key:"listen",value:function(){var W=this;this.quill.root.addEventListener("keydown",function(X){if(!X.defaultPrevented){var re=X.which||X.keyCode,oe=(W.bindings[re]||[]).filter(function(Ce){return V.match(X,Ce)});if(oe.length!==0){var se=W.quill.getSelection();if(!(se==null||!W.quill.hasFocus())){var te=W.quill.getLine(se.index),ce=a(te,2),fe=ce[0],ve=ce[1],Q=W.quill.getLeaf(se.index),Z=a(Q,2),ae=Z[0],ie=Z[1],ee=se.length===0?[ae,ie]:W.quill.getLeaf(se.index+se.length),ue=a(ee,2),ne=ue[0],he=ue[1],Se=ae instanceof w.default.Text?ae.value().slice(0,ie):"",Me=ne instanceof w.default.Text?ne.value().slice(he):"",be={collapsed:se.length===0,empty:se.length===0&&fe.length()<=1,format:W.quill.getFormat(se),offset:ve,prefix:Se,suffix:Me},De=oe.some(function(Ce){if(Ce.collapsed!=null&&Ce.collapsed!==be.collapsed||Ce.empty!=null&&Ce.empty!==be.empty||Ce.offset!=null&&Ce.offset!==be.offset)return!1;if(Array.isArray(Ce.format)){if(Ce.format.every(function(Re){return be.format[Re]==null}))return!1}else if(o(Ce.format)==="object"&&!Object.keys(Ce.format).every(function(Re){return Ce.format[Re]===!0?be.format[Re]!=null:Ce.format[Re]===!1?be.format[Re]==null:(0,l.default)(Ce.format[Re],be.format[Re])}))return!1;return Ce.prefix!=null&&!Ce.prefix.test(be.prefix)||Ce.suffix!=null&&!Ce.suffix.test(be.suffix)?!1:Ce.handler.call(W,se,be)!==!0});De&&X.preventDefault()}}}})}}]),V})(k.default);$.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},$.DEFAULTS={bindings:{bold:q("bold"),italic:q("italic"),underline:q("underline"),indent:{key:$.keys.TAB,format:["blockquote","indent","list"],handler:function(V,K){if(K.collapsed&&K.offset!==0)return!0;this.quill.format("indent","+1",x.default.sources.USER)}},outdent:{key:$.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(V,K){if(K.collapsed&&K.offset!==0)return!0;this.quill.format("indent","-1",x.default.sources.USER)}},"outdent backspace":{key:$.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(V,K){K.format.indent!=null?this.quill.format("indent","-1",x.default.sources.USER):K.format.list!=null&&this.quill.format("list",!1,x.default.sources.USER)}},"indent code-block":M(!0),"outdent code-block":M(!1),"remove tab":{key:$.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(V){this.quill.deleteText(V.index-1,1,x.default.sources.USER)}},tab:{key:$.keys.TAB,handler:function(V){this.quill.history.cutoff();var K=new m.default().retain(V.index).delete(V.length).insert(" ");this.quill.updateContents(K,x.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(V.index+1,x.default.sources.SILENT)}},"list empty enter":{key:$.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(V,K){this.quill.format("list",!1,x.default.sources.USER),K.format.indent&&this.quill.format("indent",!1,x.default.sources.USER)}},"checklist enter":{key:$.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(V){var K=this.quill.getLine(V.index),W=a(K,2),X=W[0],re=W[1],oe=(0,h.default)({},X.formats(),{list:"checked"}),se=new m.default().retain(V.index).insert(`
|
|
40
40
|
`,oe).retain(X.length()-re-1).retain(1,{list:"unchecked"});this.quill.updateContents(se,x.default.sources.USER),this.quill.setSelection(V.index+1,x.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:$.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(V,K){var W=this.quill.getLine(V.index),X=a(W,2),re=X[0],oe=X[1],se=new m.default().retain(V.index).insert(`
|
|
41
41
|
`,K.format).retain(re.length()-oe-1).retain(1,{header:null});this.quill.updateContents(se,x.default.sources.USER),this.quill.setSelection(V.index+1,x.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(V,K){var W=K.prefix.length,X=this.quill.getLine(V.index),re=a(X,2),oe=re[0],se=re[1];if(se>W)return!0;var te=void 0;switch(K.prefix.trim()){case"[]":case"[ ]":te="unchecked";break;case"[x]":te="checked";break;case"-":case"*":te="bullet";break;default:te="ordered"}this.quill.insertText(V.index," ",x.default.sources.USER),this.quill.history.cutoff();var ce=new m.default().retain(V.index-se).delete(W+1).retain(oe.length()-2-se).retain(1,{list:te});this.quill.updateContents(ce,x.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(V.index-W,x.default.sources.SILENT)}},"code exit":{key:$.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(V){var K=this.quill.getLine(V.index),W=a(K,2),X=W[0],re=W[1],oe=new m.default().retain(V.index+X.length()-re-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(oe,x.default.sources.USER)}},"embed left":z($.keys.LEFT,!1),"embed left shift":z($.keys.LEFT,!0),"embed right":z($.keys.RIGHT,!1),"embed right shift":z($.keys.RIGHT,!0)}};function z(N,V){var K,W=N===$.keys.LEFT?"prefix":"suffix";return K={key:N,shiftKey:V,altKey:null},S(K,W,/^$/),S(K,"handler",function(re){var oe=re.index;N===$.keys.RIGHT&&(oe+=re.length+1);var se=this.quill.getLeaf(oe),te=a(se,1),ce=te[0];return ce instanceof w.default.Embed?(N===$.keys.LEFT?V?this.quill.setSelection(re.index-1,re.length+1,x.default.sources.USER):this.quill.setSelection(re.index-1,x.default.sources.USER):V?this.quill.setSelection(re.index,re.length+1,x.default.sources.USER):this.quill.setSelection(re.index+re.length+1,x.default.sources.USER),!1):!0}),K}function H(N,V){if(!(N.index===0||this.quill.getLength()<=1)){var K=this.quill.getLine(N.index),W=a(K,1),X=W[0],re={};if(V.offset===0){var oe=this.quill.getLine(N.index-1),se=a(oe,1),te=se[0];if(te!=null&&te.length()>1){var ce=X.formats(),fe=this.quill.getFormat(N.index-1,1);re=y.default.attributes.diff(ce,fe)||{}}}var ve=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(V.prefix)?2:1;this.quill.deleteText(N.index-ve,ve,x.default.sources.USER),Object.keys(re).length>0&&this.quill.formatLine(N.index-ve,ve,re,x.default.sources.USER),this.quill.focus()}}function D(N,V){var K=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(V.suffix)?2:1;if(!(N.index>=this.quill.getLength()-K)){var W={},X=0,re=this.quill.getLine(N.index),oe=a(re,1),se=oe[0];if(V.offset>=se.length()-1){var te=this.quill.getLine(N.index+1),ce=a(te,1),fe=ce[0];if(fe){var ve=se.formats(),Q=this.quill.getFormat(N.index,1);W=y.default.attributes.diff(ve,Q)||{},X=fe.length()}}this.quill.deleteText(N.index,K,x.default.sources.USER),Object.keys(W).length>0&&this.quill.formatLine(N.index+X-1,K,W,x.default.sources.USER)}}function j(N){var V=this.quill.getLines(N),K={};if(V.length>1){var W=V[0].formats(),X=V[V.length-1].formats();K=y.default.attributes.diff(X,W)||{}}this.quill.deleteText(N,x.default.sources.USER),Object.keys(K).length>0&&this.quill.formatLine(N.index,1,K,x.default.sources.USER),this.quill.setSelection(N.index,x.default.sources.SILENT),this.quill.focus()}function A(N,V){var K=this;N.length>0&&this.quill.scroll.deleteAt(N.index,N.length);var W=Object.keys(V.format).reduce(function(X,re){return w.default.query(re,w.default.Scope.BLOCK)&&!Array.isArray(V.format[re])&&(X[re]=V.format[re]),X},{});this.quill.insertText(N.index,`
|
|
42
42
|
`,W,x.default.sources.USER),this.quill.setSelection(N.index+1,x.default.sources.SILENT),this.quill.focus(),Object.keys(V.format).forEach(function(X){W[X]==null&&(Array.isArray(V.format[X])||X!=="link"&&K.quill.format(X,V.format[X],x.default.sources.USER))})}function M(N){return{key:$.keys.TAB,shiftKey:!N,format:{"code-block":!0},handler:function(K){var W=w.default.query("code-block"),X=K.index,re=K.length,oe=this.quill.scroll.descendant(W,X),se=a(oe,2),te=se[0],ce=se[1];if(te!=null){var fe=this.quill.getIndex(te),ve=te.newlineIndex(ce,!0)+1,Q=te.newlineIndex(fe+ce+re),Z=te.domNode.textContent.slice(ve,Q).split(`
|
|
43
|
-
`);ce=0,Z.forEach(function(ae,ie){N?(te.insertAt(ve+ce,W.TAB),ce+=W.TAB.length,ie===0?X+=W.TAB.length:re+=W.TAB.length):ae.startsWith(W.TAB)&&(te.deleteAt(ve+ce,W.TAB.length),ce-=W.TAB.length,ie===0?X-=W.TAB.length:re-=W.TAB.length),ce+=ae.length+1}),this.quill.update(x.default.sources.USER),this.quill.setSelection(X,re,x.default.sources.SILENT)}}}}function q(N){return{key:N[0].toUpperCase(),shortKey:!0,handler:function(K,W){this.quill.format(N,!W.format[N],x.default.sources.USER)}}}function B(N){if(typeof N=="string"||typeof N=="number")return B({key:N});if((typeof N>"u"?"undefined":o(N))==="object"&&(N=(0,d.default)(N,!1)),typeof N.key=="string")if($.keys[N.key.toUpperCase()]!=null)N.key=$.keys[N.key.toUpperCase()];else if(N.key.length===1)N.key=N.key.toUpperCase().charCodeAt(0);else return null;return N.shortKey&&(N[F]=N.shortKey,delete N.shortKey),N}i.default=$,i.SHORTKEY=F}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function y(g,w){var b=[],x=!0,_=!1,E=void 0;try{for(var C=g[Symbol.iterator](),P;!(x=(P=C.next()).done)&&(b.push(P.value),!(w&&b.length===w));x=!0);}catch(O){_=!0,E=O}finally{try{!x&&C.return&&C.return()}finally{if(_)throw E}}return b}return function(g,w){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return y(g,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=function y(g,w,b){g===null&&(g=Function.prototype);var x=Object.getOwnPropertyDescriptor(g,w);if(x===void 0){var _=Object.getPrototypeOf(g);return _===null?void 0:y(_,w,b)}else{if("value"in x)return x.value;var E=x.get;return E===void 0?void 0:E.call(b)}},s=(function(){function y(g,w){for(var b=0;b<w.length;b++){var x=w[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(g,x.key,x)}}return function(g,w,b){return w&&y(g.prototype,w),b&&y(g,b),g}})(),c=n(0),d=u(c),f=n(7),l=u(f);function u(y){return y&&y.__esModule?y:{default:y}}function h(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function p(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function m(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var v=(function(y){m(g,y),s(g,null,[{key:"value",value:function(){}}]);function g(w,b){h(this,g);var x=p(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,w));return x.selection=b,x.textNode=document.createTextNode(g.CONTENTS),x.domNode.appendChild(x.textNode),x._length=0,x}return s(g,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(b,x){if(this._length!==0)return a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,b,x);for(var _=this,E=0;_!=null&&_.statics.scope!==d.default.Scope.BLOCK_BLOT;)E+=_.offset(_.parent),_=_.parent;_!=null&&(this._length=g.CONTENTS.length,_.optimize(),_.formatAt(E,g.CONTENTS.length,b,x),this._length=0)}},{key:"index",value:function(b,x){return b===this.textNode?0:a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"index",this).call(this,b,x)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var b=this.textNode,x=this.selection.getNativeRange(),_=void 0,E=void 0,C=void 0;if(x!=null&&x.start.node===b&&x.end.node===b){var P=[b,x.start.offset,x.end.offset];_=P[0],E=P[1],C=P[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==g.CONTENTS){var O=this.textNode.data.split(g.CONTENTS).join("");this.next instanceof l.default?(_=this.next.domNode,this.next.insertAt(0,O),this.textNode.data=g.CONTENTS):(this.textNode.data=O,this.parent.insertBefore(d.default.create(this.textNode),this),this.textNode=document.createTextNode(g.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),E!=null){var S=[E,C].map(function(T){return Math.max(0,Math.min(_.data.length,T-1))}),R=o(S,2);return E=R[0],C=R[1],{startNode:_,startOffset:E,endNode:_,endOffset:C}}}}},{key:"update",value:function(b,x){var _=this;if(b.some(function(C){return C.type==="characterData"&&C.target===_.textNode})){var E=this.restore();E&&(x.range=E)}}},{key:"value",value:function(){return""}}]),g})(d.default.Embed);v.blotName="cursor",v.className="ql-cursor",v.tagName="span",v.CONTENTS="\uFEFF",i.default=v}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(0),a=d(o),s=n(4),c=d(s);function d(p){return p&&p.__esModule?p:{default:p}}function f(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function l(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:p}function u(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(p,m):p.__proto__=m)}var h=(function(p){u(m,p);function m(){return f(this,m),l(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m})(a.default.Container);h.allowedChildren=[c.default,s.BlockEmbed,h],i.default=h}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.ColorStyle=i.ColorClass=i.ColorAttributor=void 0;var o=(function(){function v(y,g){for(var w=0;w<g.length;w++){var b=g[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,g,w){return g&&v(y.prototype,g),w&&v(y,w),y}})(),a=function v(y,g,w){y===null&&(y=Function.prototype);var b=Object.getOwnPropertyDescriptor(y,g);if(b===void 0){var x=Object.getPrototypeOf(y);return x===null?void 0:v(x,g,w)}else{if("value"in b)return b.value;var _=b.get;return _===void 0?void 0:_.call(w)}},s=n(0),c=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function f(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function l(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function u(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var h=(function(v){u(y,v);function y(){return f(this,y),l(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"value",value:function(w){var b=a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,w);return b.startsWith("rgb(")?(b=b.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+b.split(",").map(function(x){return("00"+parseInt(x).toString(16)).slice(-2)}).join("")):b}}]),y})(c.default.Attributor.Style),p=new c.default.Attributor.Class("color","ql-color",{scope:c.default.Scope.INLINE}),m=new h("color","color",{scope:c.default.Scope.INLINE});i.ColorAttributor=h,i.ColorClass=p,i.ColorStyle=m}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.sanitize=i.default=void 0;var o=(function(){function m(v,y){for(var g=0;g<y.length;g++){var w=y[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,w.key,w)}}return function(v,y,g){return y&&m(v.prototype,y),g&&m(v,g),v}})(),a=function m(v,y,g){v===null&&(v=Function.prototype);var w=Object.getOwnPropertyDescriptor(v,y);if(w===void 0){var b=Object.getPrototypeOf(v);return b===null?void 0:m(b,y,g)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(g)}},s=n(6),c=d(s);function d(m){return m&&m.__esModule?m:{default:m}}function f(m,v){if(!(m instanceof v))throw new TypeError("Cannot call a class as a function")}function l(m,v){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:m}function u(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);m.prototype=Object.create(v&&v.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(m,v):m.__proto__=v)}var h=(function(m){u(v,m);function v(){return f(this,v),l(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return o(v,[{key:"format",value:function(g,w){if(g!==this.statics.blotName||!w)return a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,g,w);w=this.constructor.sanitize(w),this.domNode.setAttribute("href",w)}}],[{key:"create",value:function(g){var w=a(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,g);return g=this.sanitize(g),w.setAttribute("href",g),w.setAttribute("rel","noopener noreferrer"),w.setAttribute("target","_blank"),w}},{key:"formats",value:function(g){return g.getAttribute("href")}},{key:"sanitize",value:function(g){return p(g,this.PROTOCOL_WHITELIST)?g:this.SANITIZED_URL}}]),v})(c.default);h.blotName="link",h.tagName="A",h.SANITIZED_URL="about:blank",h.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function p(m,v){var y=document.createElement("a");y.href=m;var g=y.href.slice(0,y.href.indexOf(":"));return v.indexOf(g)>-1}i.default=h,i.sanitize=p}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},a=(function(){function v(y,g){for(var w=0;w<g.length;w++){var b=g[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,g,w){return g&&v(y.prototype,g),w&&v(y,w),y}})(),s=n(23),c=l(s),d=n(107),f=l(d);function l(v){return v&&v.__esModule?v:{default:v}}function u(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}var h=0;function p(v,y){v.setAttribute(y,v.getAttribute(y)!=="true")}var m=(function(){function v(y){var g=this;u(this,v),this.select=y,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){g.togglePicker()}),this.label.addEventListener("keydown",function(w){switch(w.keyCode){case c.default.keys.ENTER:g.togglePicker();break;case c.default.keys.ESCAPE:g.escape(),w.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return a(v,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),p(this.label,"aria-expanded"),p(this.options,"aria-hidden")}},{key:"buildItem",value:function(g){var w=this,b=document.createElement("span");return b.tabIndex="0",b.setAttribute("role","button"),b.classList.add("ql-picker-item"),g.hasAttribute("value")&&b.setAttribute("data-value",g.getAttribute("value")),g.textContent&&b.setAttribute("data-label",g.textContent),b.addEventListener("click",function(){w.selectItem(b,!0)}),b.addEventListener("keydown",function(x){switch(x.keyCode){case c.default.keys.ENTER:w.selectItem(b,!0),x.preventDefault();break;case c.default.keys.ESCAPE:w.escape(),x.preventDefault();break}}),b}},{key:"buildLabel",value:function(){var g=document.createElement("span");return g.classList.add("ql-picker-label"),g.innerHTML=f.default,g.tabIndex="0",g.setAttribute("role","button"),g.setAttribute("aria-expanded","false"),this.container.appendChild(g),g}},{key:"buildOptions",value:function(){var g=this,w=document.createElement("span");w.classList.add("ql-picker-options"),w.setAttribute("aria-hidden","true"),w.tabIndex="-1",w.id="ql-picker-options-"+h,h+=1,this.label.setAttribute("aria-controls",w.id),this.options=w,[].slice.call(this.select.options).forEach(function(b){var x=g.buildItem(b);w.appendChild(x),b.selected===!0&&g.selectItem(x)}),this.container.appendChild(w)}},{key:"buildPicker",value:function(){var g=this;[].slice.call(this.select.attributes).forEach(function(w){g.container.setAttribute(w.name,w.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var g=this;this.close(),setTimeout(function(){return g.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(g){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=this.container.querySelector(".ql-selected");if(g!==b&&(b?.classList.remove("ql-selected"),g!=null&&(g.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(g.parentNode.children,g),g.hasAttribute("data-value")?this.label.setAttribute("data-value",g.getAttribute("data-value")):this.label.removeAttribute("data-value"),g.hasAttribute("data-label")?this.label.setAttribute("data-label",g.getAttribute("data-label")):this.label.removeAttribute("data-label"),w))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":o(Event))==="object"){var x=document.createEvent("Event");x.initEvent("change",!0,!0),this.select.dispatchEvent(x)}this.close()}}},{key:"update",value:function(){var g=void 0;if(this.select.selectedIndex>-1){var w=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];g=this.select.options[this.select.selectedIndex],this.selectItem(w)}else this.selectItem(null);var b=g!=null&&g!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",b)}}]),v})();i.default=m}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(0),a=L(o),s=n(5),c=L(s),d=n(4),f=L(d),l=n(16),u=L(l),h=n(25),p=L(h),m=n(24),v=L(m),y=n(35),g=L(y),w=n(6),b=L(w),x=n(22),_=L(x),E=n(7),C=L(E),P=n(55),O=L(P),S=n(42),R=L(S),T=n(23),k=L(T);function L(F){return F&&F.__esModule?F:{default:F}}c.default.register({"blots/block":f.default,"blots/block/embed":d.BlockEmbed,"blots/break":u.default,"blots/container":p.default,"blots/cursor":v.default,"blots/embed":g.default,"blots/inline":b.default,"blots/scroll":_.default,"blots/text":C.default,"modules/clipboard":O.default,"modules/history":R.default,"modules/keyboard":k.default}),a.default.register(f.default,u.default,v.default,b.default,_.default,C.default),i.default=c.default}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(1),a=(function(){function s(c){this.domNode=c,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(s.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),s.create=function(c){if(this.tagName==null)throw new o.ParchmentError("Blot definition missing tagName");var d;return Array.isArray(this.tagName)?(typeof c=="string"&&(c=c.toUpperCase(),parseInt(c).toString()===c&&(c=parseInt(c))),typeof c=="number"?d=document.createElement(this.tagName[c-1]):this.tagName.indexOf(c)>-1?d=document.createElement(c):d=document.createElement(this.tagName[0])):d=document.createElement(this.tagName),this.className&&d.classList.add(this.className),d},s.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},s.prototype.clone=function(){var c=this.domNode.cloneNode(!1);return o.create(c)},s.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},s.prototype.deleteAt=function(c,d){var f=this.isolate(c,d);f.remove()},s.prototype.formatAt=function(c,d,f,l){var u=this.isolate(c,d);if(o.query(f,o.Scope.BLOT)!=null&&l)u.wrap(f,l);else if(o.query(f,o.Scope.ATTRIBUTE)!=null){var h=o.create(this.statics.scope);u.wrap(h),h.format(f,l)}},s.prototype.insertAt=function(c,d,f){var l=f==null?o.create("text",d):o.create(d,f),u=this.split(c);this.parent.insertBefore(l,u)},s.prototype.insertInto=function(c,d){d===void 0&&(d=null),this.parent!=null&&this.parent.children.remove(this);var f=null;c.children.insertBefore(this,d),d!=null&&(f=d.domNode),(this.domNode.parentNode!=c.domNode||this.domNode.nextSibling!=f)&&c.domNode.insertBefore(this.domNode,f),this.parent=c,this.attach()},s.prototype.isolate=function(c,d){var f=this.split(c);return f.split(d),f},s.prototype.length=function(){return 1},s.prototype.offset=function(c){return c===void 0&&(c=this.parent),this.parent==null||this==c?0:this.parent.children.offset(this)+this.parent.offset(c)},s.prototype.optimize=function(c){this.domNode[o.DATA_KEY]!=null&&delete this.domNode[o.DATA_KEY].mutations},s.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},s.prototype.replace=function(c){c.parent!=null&&(c.parent.insertBefore(this,c.next),c.remove())},s.prototype.replaceWith=function(c,d){var f=typeof c=="string"?o.create(c,d):c;return f.replace(this),f},s.prototype.split=function(c,d){return c===0?this:this.next},s.prototype.update=function(c,d){},s.prototype.wrap=function(c,d){var f=typeof c=="string"?o.create(c,d):c;return this.parent!=null&&this.parent.insertBefore(f,this.next),f.appendChild(this),f},s.blotName="abstract",s})();i.default=a}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(12),a=n(32),s=n(33),c=n(1),d=(function(){function f(l){this.attributes={},this.domNode=l,this.build()}return f.prototype.attribute=function(l,u){u?l.add(this.domNode,u)&&(l.value(this.domNode)!=null?this.attributes[l.attrName]=l:delete this.attributes[l.attrName]):(l.remove(this.domNode),delete this.attributes[l.attrName])},f.prototype.build=function(){var l=this;this.attributes={};var u=o.default.keys(this.domNode),h=a.default.keys(this.domNode),p=s.default.keys(this.domNode);u.concat(h).concat(p).forEach(function(m){var v=c.query(m,c.Scope.ATTRIBUTE);v instanceof o.default&&(l.attributes[v.attrName]=v)})},f.prototype.copy=function(l){var u=this;Object.keys(this.attributes).forEach(function(h){var p=u.attributes[h].value(u.domNode);l.format(h,p)})},f.prototype.move=function(l){var u=this;this.copy(l),Object.keys(this.attributes).forEach(function(h){u.attributes[h].remove(u.domNode)}),this.attributes={}},f.prototype.values=function(){var l=this;return Object.keys(this.attributes).reduce(function(u,h){return u[h]=l.attributes[h].value(l.domNode),u},{})},f})();i.default=d}),(function(t,i,n){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var u in l)l.hasOwnProperty(u)&&(f[u]=l[u])};return function(f,l){d(f,l);function u(){this.constructor=f}f.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(12);function s(d,f){var l=d.getAttribute("class")||"";return l.split(/\s+/).filter(function(u){return u.indexOf(f+"-")===0})}var c=(function(d){o(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.keys=function(l){return(l.getAttribute("class")||"").split(/\s+/).map(function(u){return u.split("-").slice(0,-1).join("-")})},f.prototype.add=function(l,u){return this.canAdd(l,u)?(this.remove(l),l.classList.add(this.keyName+"-"+u),!0):!1},f.prototype.remove=function(l){var u=s(l,this.keyName);u.forEach(function(h){l.classList.remove(h)}),l.classList.length===0&&l.removeAttribute("class")},f.prototype.value=function(l){var u=s(l,this.keyName)[0]||"",h=u.slice(this.keyName.length+1);return this.canAdd(l,h)?h:""},f})(a.default);i.default=c}),(function(t,i,n){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var u in l)l.hasOwnProperty(u)&&(f[u]=l[u])};return function(f,l){d(f,l);function u(){this.constructor=f}f.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(12);function s(d){var f=d.split("-"),l=f.slice(1).map(function(u){return u[0].toUpperCase()+u.slice(1)}).join("");return f[0]+l}var c=(function(d){o(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.keys=function(l){return(l.getAttribute("style")||"").split(";").map(function(u){var h=u.split(":");return h[0].trim()})},f.prototype.add=function(l,u){return this.canAdd(l,u)?(l.style[s(this.keyName)]=u,!0):!1},f.prototype.remove=function(l){l.style[s(this.keyName)]="",l.getAttribute("style")||l.removeAttribute("style")},f.prototype.value=function(l){var u=l.style[s(this.keyName)];return this.canAdd(l,u)?u:""},f})(a.default);i.default=c}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function c(d,f){for(var l=0;l<f.length;l++){var u=f[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,u.key,u)}}return function(d,f,l){return f&&c(d.prototype,f),l&&c(d,l),d}})();function a(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")}var s=(function(){function c(d,f){a(this,c),this.quill=d,this.options=f,this.modules={}}return o(c,[{key:"init",value:function(){var f=this;Object.keys(this.options.modules).forEach(function(l){f.modules[l]==null&&f.addModule(l)})}},{key:"addModule",value:function(f){var l=this.quill.constructor.import("modules/"+f);return this.modules[f]=new l(this.quill,this.options.modules[f]||{}),this.modules[f]}}]),c})();s.DEFAULTS={modules:{}},s.themes={default:s},i.default=s}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function y(g,w){for(var b=0;b<w.length;b++){var x=w[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(g,x.key,x)}}return function(g,w,b){return w&&y(g.prototype,w),b&&y(g,b),g}})(),a=function y(g,w,b){g===null&&(g=Function.prototype);var x=Object.getOwnPropertyDescriptor(g,w);if(x===void 0){var _=Object.getPrototypeOf(g);return _===null?void 0:y(_,w,b)}else{if("value"in x)return x.value;var E=x.get;return E===void 0?void 0:E.call(b)}},s=n(0),c=l(s),d=n(7),f=l(d);function l(y){return y&&y.__esModule?y:{default:y}}function u(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function h(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function p(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var m="\uFEFF",v=(function(y){p(g,y);function g(w){u(this,g);var b=h(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,w));return b.contentNode=document.createElement("span"),b.contentNode.setAttribute("contenteditable",!1),[].slice.call(b.domNode.childNodes).forEach(function(x){b.contentNode.appendChild(x)}),b.leftGuard=document.createTextNode(m),b.rightGuard=document.createTextNode(m),b.domNode.appendChild(b.leftGuard),b.domNode.appendChild(b.contentNode),b.domNode.appendChild(b.rightGuard),b}return o(g,[{key:"index",value:function(b,x){return b===this.leftGuard?0:b===this.rightGuard?1:a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"index",this).call(this,b,x)}},{key:"restore",value:function(b){var x=void 0,_=void 0,E=b.data.split(m).join("");if(b===this.leftGuard)if(this.prev instanceof f.default){var C=this.prev.length();this.prev.insertAt(C,E),x={startNode:this.prev.domNode,startOffset:C+E.length}}else _=document.createTextNode(E),this.parent.insertBefore(c.default.create(_),this),x={startNode:_,startOffset:E.length};else b===this.rightGuard&&(this.next instanceof f.default?(this.next.insertAt(0,E),x={startNode:this.next.domNode,startOffset:E.length}):(_=document.createTextNode(E),this.parent.insertBefore(c.default.create(_),this.next),x={startNode:_,startOffset:E.length}));return b.data=m,x}},{key:"update",value:function(b,x){var _=this;b.forEach(function(E){if(E.type==="characterData"&&(E.target===_.leftGuard||E.target===_.rightGuard)){var C=_.restore(E.target);C&&(x.range=C)}})}}]),g})(c.default.Embed);i.default=v}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.AlignStyle=i.AlignClass=i.AlignAttribute=void 0;var o=n(0),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}var c={scope:a.default.Scope.BLOCK,whitelist:["right","center","justify"]},d=new a.default.Attributor.Attribute("align","align",c),f=new a.default.Attributor.Class("align","ql-align",c),l=new a.default.Attributor.Style("align","text-align",c);i.AlignAttribute=d,i.AlignClass=f,i.AlignStyle=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.BackgroundStyle=i.BackgroundClass=void 0;var o=n(0),a=c(o),s=n(26);function c(l){return l&&l.__esModule?l:{default:l}}var d=new a.default.Attributor.Class("background","ql-bg",{scope:a.default.Scope.INLINE}),f=new s.ColorAttributor("background","background-color",{scope:a.default.Scope.INLINE});i.BackgroundClass=d,i.BackgroundStyle=f}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.DirectionStyle=i.DirectionClass=i.DirectionAttribute=void 0;var o=n(0),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}var c={scope:a.default.Scope.BLOCK,whitelist:["rtl"]},d=new a.default.Attributor.Attribute("direction","dir",c),f=new a.default.Attributor.Class("direction","ql-direction",c),l=new a.default.Attributor.Style("direction","direction",c);i.DirectionAttribute=d,i.DirectionClass=f,i.DirectionStyle=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.FontClass=i.FontStyle=void 0;var o=(function(){function y(g,w){for(var b=0;b<w.length;b++){var x=w[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(g,x.key,x)}}return function(g,w,b){return w&&y(g.prototype,w),b&&y(g,b),g}})(),a=function y(g,w,b){g===null&&(g=Function.prototype);var x=Object.getOwnPropertyDescriptor(g,w);if(x===void 0){var _=Object.getPrototypeOf(g);return _===null?void 0:y(_,w,b)}else{if("value"in x)return x.value;var E=x.get;return E===void 0?void 0:E.call(b)}},s=n(0),c=d(s);function d(y){return y&&y.__esModule?y:{default:y}}function f(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function l(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function u(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var h={scope:c.default.Scope.INLINE,whitelist:["serif","monospace"]},p=new c.default.Attributor.Class("font","ql-font",h),m=(function(y){u(g,y);function g(){return f(this,g),l(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return o(g,[{key:"value",value:function(b){return a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,b).replace(/["']/g,"")}}]),g})(c.default.Attributor.Style),v=new m("font","font-family",h);i.FontStyle=v,i.FontClass=p}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.SizeStyle=i.SizeClass=void 0;var o=n(0),a=s(o);function s(f){return f&&f.__esModule?f:{default:f}}var c=new a.default.Attributor.Class("size","ql-size",{scope:a.default.Scope.INLINE,whitelist:["small","large","huge"]}),d=new a.default.Attributor.Style("size","font-size",{scope:a.default.Scope.INLINE,whitelist:["10px","18px","32px"]});i.SizeClass=c,i.SizeStyle=d}),(function(t,i,n){t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.getLastChangeIndex=i.default=void 0;var o=(function(){function w(b,x){for(var _=0;_<x.length;_++){var E=x[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(b,E.key,E)}}return function(b,x,_){return x&&w(b.prototype,x),_&&w(b,_),b}})(),a=n(0),s=u(a),c=n(5),d=u(c),f=n(9),l=u(f);function u(w){return w&&w.__esModule?w:{default:w}}function h(w,b){if(!(w instanceof b))throw new TypeError("Cannot call a class as a function")}function p(w,b){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:w}function m(w,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);w.prototype=Object.create(b&&b.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(w,b):w.__proto__=b)}var v=(function(w){m(b,w);function b(x,_){h(this,b);var E=p(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,x,_));return E.lastRecorded=0,E.ignoreChange=!1,E.clear(),E.quill.on(d.default.events.EDITOR_CHANGE,function(C,P,O,S){C!==d.default.events.TEXT_CHANGE||E.ignoreChange||(!E.options.userOnly||S===d.default.sources.USER?E.record(P,O):E.transform(P))}),E.quill.keyboard.addBinding({key:"Z",shortKey:!0},E.undo.bind(E)),E.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},E.redo.bind(E)),/Win/i.test(navigator.platform)&&E.quill.keyboard.addBinding({key:"Y",shortKey:!0},E.redo.bind(E)),E}return o(b,[{key:"change",value:function(_,E){if(this.stack[_].length!==0){var C=this.stack[_].pop();this.stack[E].push(C),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(C[_],d.default.sources.USER),this.ignoreChange=!1;var P=g(C[_]);this.quill.setSelection(P)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(_,E){if(_.ops.length!==0){this.stack.redo=[];var C=this.quill.getContents().diff(E),P=Date.now();if(this.lastRecorded+this.options.delay>P&&this.stack.undo.length>0){var O=this.stack.undo.pop();C=C.compose(O.undo),_=O.redo.compose(_)}else this.lastRecorded=P;this.stack.undo.push({redo:_,undo:C}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(_){this.stack.undo.forEach(function(E){E.undo=_.transform(E.undo,!0),E.redo=_.transform(E.redo,!0)}),this.stack.redo.forEach(function(E){E.undo=_.transform(E.undo,!0),E.redo=_.transform(E.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),b})(l.default);v.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function y(w){var b=w.ops[w.ops.length-1];return b==null?!1:b.insert!=null?typeof b.insert=="string"&&b.insert.endsWith(`
|
|
44
|
-
`):b.attributes!=null?Object.keys(b.attributes).some(function(x){return s.default.query(x,s.default.Scope.BLOCK)!=null}):!1}function g(w){var b=w.reduce(function(_,E){return _+=E.delete||0,_},0),x=w.length()-b;return y(w)&&(x-=1),x}i.default=v,i.getLastChangeIndex=g}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BaseTooltip=void 0;var o=(function(){function A(M,q){for(var B=0;B<q.length;B++){var N=q[B];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(M,N.key,N)}}return function(M,q,B){return q&&A(M.prototype,q),B&&A(M,B),M}})(),a=function A(M,q,B){M===null&&(M=Function.prototype);var N=Object.getOwnPropertyDescriptor(M,q);if(N===void 0){var V=Object.getPrototypeOf(M);return V===null?void 0:A(V,q,B)}else{if("value"in N)return N.value;var K=N.get;return K===void 0?void 0:K.call(B)}},s=n(3),c=P(s),d=n(2),f=P(d),l=n(8),u=P(l),h=n(23),p=P(h),m=n(34),v=P(m),y=n(59),g=P(y),w=n(60),b=P(w),x=n(28),_=P(x),E=n(61),C=P(E);function P(A){return A&&A.__esModule?A:{default:A}}function O(A,M){if(!(A instanceof M))throw new TypeError("Cannot call a class as a function")}function S(A,M){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:A}function R(A,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);A.prototype=Object.create(M&&M.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(A,M):A.__proto__=M)}var T=[!1,"center","right","justify"],k=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],L=[!1,"serif","monospace"],F=["1","2","3",!1],$=["small",!1,"large","huge"],z=(function(A){R(M,A);function M(q,B){O(this,M);var N=S(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,q,B)),V=function K(W){if(!document.body.contains(q.root))return document.body.removeEventListener("click",K);N.tooltip!=null&&!N.tooltip.root.contains(W.target)&&document.activeElement!==N.tooltip.textbox&&!N.quill.hasFocus()&&N.tooltip.hide(),N.pickers!=null&&N.pickers.forEach(function(X){X.container.contains(W.target)||X.close()})};return q.emitter.listenDOM("click",document.body,V),N}return o(M,[{key:"addModule",value:function(B){var N=a(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"addModule",this).call(this,B);return B==="toolbar"&&this.extendToolbar(N),N}},{key:"buildButtons",value:function(B,N){B.forEach(function(V){var K=V.getAttribute("class")||"";K.split(/\s+/).forEach(function(W){if(W.startsWith("ql-")&&(W=W.slice(3),N[W]!=null))if(W==="direction")V.innerHTML=N[W][""]+N[W].rtl;else if(typeof N[W]=="string")V.innerHTML=N[W];else{var X=V.value||"";X!=null&&N[W][X]&&(V.innerHTML=N[W][X])}})})}},{key:"buildPickers",value:function(B,N){var V=this;this.pickers=B.map(function(W){if(W.classList.contains("ql-align"))return W.querySelector("option")==null&&j(W,T),new b.default(W,N.align);if(W.classList.contains("ql-background")||W.classList.contains("ql-color")){var X=W.classList.contains("ql-background")?"background":"color";return W.querySelector("option")==null&&j(W,k,X==="background"?"#ffffff":"#000000"),new g.default(W,N[X])}else return W.querySelector("option")==null&&(W.classList.contains("ql-font")?j(W,L):W.classList.contains("ql-header")?j(W,F):W.classList.contains("ql-size")&&j(W,$)),new _.default(W)});var K=function(){V.pickers.forEach(function(X){X.update()})};this.quill.on(u.default.events.EDITOR_CHANGE,K)}}]),M})(v.default);z.DEFAULTS=(0,c.default)(!0,{},v.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var M=this,q=this.container.querySelector("input.ql-image[type=file]");q==null&&(q=document.createElement("input"),q.setAttribute("type","file"),q.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),q.classList.add("ql-image"),q.addEventListener("change",function(){if(q.files!=null&&q.files[0]!=null){var B=new FileReader;B.onload=function(N){var V=M.quill.getSelection(!0);M.quill.updateContents(new f.default().retain(V.index).delete(V.length).insert({image:N.target.result}),u.default.sources.USER),M.quill.setSelection(V.index+1,u.default.sources.SILENT),q.value=""},B.readAsDataURL(q.files[0])}}),this.container.appendChild(q)),q.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var H=(function(A){R(M,A);function M(q,B){O(this,M);var N=S(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,q,B));return N.textbox=N.root.querySelector('input[type="text"]'),N.listen(),N}return o(M,[{key:"listen",value:function(){var B=this;this.textbox.addEventListener("keydown",function(N){p.default.match(N,"enter")?(B.save(),N.preventDefault()):p.default.match(N,"escape")&&(B.cancel(),N.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),N!=null?this.textbox.value=N:B!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+B)||""),this.root.setAttribute("data-mode",B)}},{key:"restoreFocus",value:function(){var B=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=B}},{key:"save",value:function(){var B=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var N=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",B,u.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",B,u.default.sources.USER)),this.quill.root.scrollTop=N;break}case"video":B=D(B);case"formula":{if(!B)break;var V=this.quill.getSelection(!0);if(V!=null){var K=V.index+V.length;this.quill.insertEmbed(K,this.root.getAttribute("data-mode"),B,u.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(K+1," ",u.default.sources.USER),this.quill.setSelection(K+2,u.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),M})(C.default);function D(A){var M=A.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||A.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return M?(M[1]||"https")+"://www.youtube.com/embed/"+M[2]+"?showinfo=0":(M=A.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(M[1]||"https")+"://player.vimeo.com/video/"+M[2]+"/":A}function j(A,M){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;M.forEach(function(B){var N=document.createElement("option");B===q?N.setAttribute("selected","selected"):N.setAttribute("value",B),A.appendChild(N)})}i.BaseTooltip=H,i.default=z}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function a(){this.head=this.tail=null,this.length=0}return a.prototype.append=function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];this.insertBefore(s[0],null),s.length>1&&this.append.apply(this,s.slice(1))},a.prototype.contains=function(s){for(var c,d=this.iterator();c=d();)if(c===s)return!0;return!1},a.prototype.insertBefore=function(s,c){s&&(s.next=c,c!=null?(s.prev=c.prev,c.prev!=null&&(c.prev.next=s),c.prev=s,c===this.head&&(this.head=s)):this.tail!=null?(this.tail.next=s,s.prev=this.tail,this.tail=s):(s.prev=null,this.head=this.tail=s),this.length+=1)},a.prototype.offset=function(s){for(var c=0,d=this.head;d!=null;){if(d===s)return c;c+=d.length(),d=d.next}return-1},a.prototype.remove=function(s){this.contains(s)&&(s.prev!=null&&(s.prev.next=s.next),s.next!=null&&(s.next.prev=s.prev),s===this.head&&(this.head=s.next),s===this.tail&&(this.tail=s.prev),this.length-=1)},a.prototype.iterator=function(s){return s===void 0&&(s=this.head),function(){var c=s;return s!=null&&(s=s.next),c}},a.prototype.find=function(s,c){c===void 0&&(c=!1);for(var d,f=this.iterator();d=f();){var l=d.length();if(s<l||c&&s===l&&(d.next==null||d.next.length()!==0))return[d,s];s-=l}return[null,0]},a.prototype.forEach=function(s){for(var c,d=this.iterator();c=d();)s(c)},a.prototype.forEachAt=function(s,c,d){if(!(c<=0))for(var f=this.find(s),l=f[0],u=f[1],h,p=s-u,m=this.iterator(l);(h=m())&&p<s+c;){var v=h.length();s>p?d(h,s-p,Math.min(c,p+v-s)):d(h,0,Math.min(v,s+c-p)),p+=v}},a.prototype.map=function(s){return this.reduce(function(c,d){return c.push(s(d)),c},[])},a.prototype.reduce=function(s,c){for(var d,f=this.iterator();d=f();)c=s(c,d);return c},a})();i.default=o}),(function(t,i,n){var o=this&&this.__extends||(function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var p in h)h.hasOwnProperty(p)&&(u[p]=h[p])};return function(u,h){l(u,h);function p(){this.constructor=u}u.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(17),s=n(1),c={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},d=100,f=(function(l){o(u,l);function u(h){var p=l.call(this,h)||this;return p.scroll=p,p.observer=new MutationObserver(function(m){p.update(m)}),p.observer.observe(p.domNode,c),p.attach(),p}return u.prototype.detach=function(){l.prototype.detach.call(this),this.observer.disconnect()},u.prototype.deleteAt=function(h,p){this.update(),h===0&&p===this.length()?this.children.forEach(function(m){m.remove()}):l.prototype.deleteAt.call(this,h,p)},u.prototype.formatAt=function(h,p,m,v){this.update(),l.prototype.formatAt.call(this,h,p,m,v)},u.prototype.insertAt=function(h,p,m){this.update(),l.prototype.insertAt.call(this,h,p,m)},u.prototype.optimize=function(h,p){var m=this;h===void 0&&(h=[]),p===void 0&&(p={}),l.prototype.optimize.call(this,p);for(var v=[].slice.call(this.observer.takeRecords());v.length>0;)h.push(v.pop());for(var y=function(x,_){_===void 0&&(_=!0),!(x==null||x===m)&&x.domNode.parentNode!=null&&(x.domNode[s.DATA_KEY].mutations==null&&(x.domNode[s.DATA_KEY].mutations=[]),_&&y(x.parent))},g=function(x){x.domNode[s.DATA_KEY]==null||x.domNode[s.DATA_KEY].mutations==null||(x instanceof a.default&&x.children.forEach(g),x.optimize(p))},w=h,b=0;w.length>0;b+=1){if(b>=d)throw new Error("[Parchment] Maximum optimize iterations reached");for(w.forEach(function(x){var _=s.find(x.target,!0);_!=null&&(_.domNode===x.target&&(x.type==="childList"?(y(s.find(x.previousSibling,!1)),[].forEach.call(x.addedNodes,function(E){var C=s.find(E,!1);y(C,!1),C instanceof a.default&&C.children.forEach(function(P){y(P,!1)})})):x.type==="attributes"&&y(_.prev)),y(_))}),this.children.forEach(g),w=[].slice.call(this.observer.takeRecords()),v=w.slice();v.length>0;)h.push(v.pop())}},u.prototype.update=function(h,p){var m=this;p===void 0&&(p={}),h=h||this.observer.takeRecords(),h.map(function(v){var y=s.find(v.target,!0);return y==null?null:y.domNode[s.DATA_KEY].mutations==null?(y.domNode[s.DATA_KEY].mutations=[v],y):(y.domNode[s.DATA_KEY].mutations.push(v),null)}).forEach(function(v){v==null||v===m||v.domNode[s.DATA_KEY]==null||v.update(v.domNode[s.DATA_KEY].mutations||[],p)}),this.domNode[s.DATA_KEY].mutations!=null&&l.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,p),this.optimize(h,p)},u.blotName="scroll",u.defaultChild="block",u.scope=s.Scope.BLOCK_BLOT,u.tagName="DIV",u})(a.default);i.default=f}),(function(t,i,n){var o=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var h in u)u.hasOwnProperty(h)&&(l[h]=u[h])};return function(l,u){f(l,u);function h(){this.constructor=l}l.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(18),s=n(1);function c(f,l){if(Object.keys(f).length!==Object.keys(l).length)return!1;for(var u in f)if(f[u]!==l[u])return!1;return!0}var d=(function(f){o(l,f);function l(){return f!==null&&f.apply(this,arguments)||this}return l.formats=function(u){if(u.tagName!==l.tagName)return f.formats.call(this,u)},l.prototype.format=function(u,h){var p=this;u===this.statics.blotName&&!h?(this.children.forEach(function(m){m instanceof a.default||(m=m.wrap(l.blotName,!0)),p.attributes.copy(m)}),this.unwrap()):f.prototype.format.call(this,u,h)},l.prototype.formatAt=function(u,h,p,m){if(this.formats()[p]!=null||s.query(p,s.Scope.ATTRIBUTE)){var v=this.isolate(u,h);v.format(p,m)}else f.prototype.formatAt.call(this,u,h,p,m)},l.prototype.optimize=function(u){f.prototype.optimize.call(this,u);var h=this.formats();if(Object.keys(h).length===0)return this.unwrap();var p=this.next;p instanceof l&&p.prev===this&&c(h,p.formats())&&(p.moveChildren(this),p.remove())},l.blotName="inline",l.scope=s.Scope.INLINE_BLOT,l.tagName="SPAN",l})(a.default);i.default=d}),(function(t,i,n){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var u in l)l.hasOwnProperty(u)&&(f[u]=l[u])};return function(f,l){d(f,l);function u(){this.constructor=f}f.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(18),s=n(1),c=(function(d){o(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.formats=function(l){var u=s.query(f.blotName).tagName;if(l.tagName!==u)return d.formats.call(this,l)},f.prototype.format=function(l,u){s.query(l,s.Scope.BLOCK)!=null&&(l===this.statics.blotName&&!u?this.replaceWith(f.blotName):d.prototype.format.call(this,l,u))},f.prototype.formatAt=function(l,u,h,p){s.query(h,s.Scope.BLOCK)!=null?this.format(h,p):d.prototype.formatAt.call(this,l,u,h,p)},f.prototype.insertAt=function(l,u,h){if(h==null||s.query(u,s.Scope.INLINE)!=null)d.prototype.insertAt.call(this,l,u,h);else{var p=this.split(l),m=s.create(u,h);p.parent.insertBefore(m,p)}},f.prototype.update=function(l,u){navigator.userAgent.match(/Trident/)?this.build():d.prototype.update.call(this,l,u)},f.blotName="block",f.scope=s.Scope.BLOCK_BLOT,f.tagName="P",f})(a.default);i.default=c}),(function(t,i,n){var o=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var l in f)f.hasOwnProperty(l)&&(d[l]=f[l])};return function(d,f){c(d,f);function l(){this.constructor=d}d.prototype=f===null?Object.create(f):(l.prototype=f.prototype,new l)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(19),s=(function(c){o(d,c);function d(){return c!==null&&c.apply(this,arguments)||this}return d.formats=function(f){},d.prototype.format=function(f,l){c.prototype.formatAt.call(this,0,this.length(),f,l)},d.prototype.formatAt=function(f,l,u,h){f===0&&l===this.length()?this.format(u,h):c.prototype.formatAt.call(this,f,l,u,h)},d.prototype.formats=function(){return this.statics.formats(this.domNode)},d})(a.default);i.default=s}),(function(t,i,n){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var u in l)l.hasOwnProperty(u)&&(f[u]=l[u])};return function(f,l){d(f,l);function u(){this.constructor=f}f.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(19),s=n(1),c=(function(d){o(f,d);function f(l){var u=d.call(this,l)||this;return u.text=u.statics.value(u.domNode),u}return f.create=function(l){return document.createTextNode(l)},f.value=function(l){var u=l.data;return u.normalize&&(u=u.normalize()),u},f.prototype.deleteAt=function(l,u){this.domNode.data=this.text=this.text.slice(0,l)+this.text.slice(l+u)},f.prototype.index=function(l,u){return this.domNode===l?u:-1},f.prototype.insertAt=function(l,u,h){h==null?(this.text=this.text.slice(0,l)+u+this.text.slice(l),this.domNode.data=this.text):d.prototype.insertAt.call(this,l,u,h)},f.prototype.length=function(){return this.text.length},f.prototype.optimize=function(l){d.prototype.optimize.call(this,l),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof f&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},f.prototype.position=function(l,u){return[this.domNode,l]},f.prototype.split=function(l,u){if(u===void 0&&(u=!1),!u){if(l===0)return this;if(l===this.length())return this.next}var h=s.create(this.domNode.splitText(l));return this.parent.insertBefore(h,this.next),this.text=this.statics.value(this.domNode),h},f.prototype.update=function(l,u){var h=this;l.some(function(p){return p.type==="characterData"&&p.target===h.domNode})&&(this.text=this.statics.value(this.domNode))},f.prototype.value=function(){return this.text},f.blotName="text",f.scope=s.Scope.INLINE_BLOT,f})(a.default);i.default=c}),(function(t,i,n){var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var a=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(s,c){return arguments.length>1&&!this.contains(s)==!c?c:a.call(this,s)}}String.prototype.startsWith||(String.prototype.startsWith=function(s,c){return c=c||0,this.substr(c,s.length)===s}),String.prototype.endsWith||(String.prototype.endsWith=function(s,c){var d=this.toString();(typeof c!="number"||!isFinite(c)||Math.floor(c)!==c||c>d.length)&&(c=d.length),c-=s.length;var f=d.indexOf(s,c);return f!==-1&&f===c}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(c){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof c!="function")throw new TypeError("predicate must be a function");for(var d=Object(this),f=d.length>>>0,l=arguments[1],u,h=0;h<f;h++)if(u=d[h],c.call(l,u,h,d))return u}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})}),(function(t,i){var n=-1,o=1,a=0;function s(b,x,_){if(b==x)return b?[[a,b]]:[];(_<0||b.length<_)&&(_=null);var E=l(b,x),C=b.substring(0,E);b=b.substring(E),x=x.substring(E),E=u(b,x);var P=b.substring(b.length-E);b=b.substring(0,b.length-E),x=x.substring(0,x.length-E);var O=c(b,x);return C&&O.unshift([a,C]),P&&O.push([a,P]),p(O),_!=null&&(O=y(O,_)),O=g(O),O}function c(b,x){var _;if(!b)return[[o,x]];if(!x)return[[n,b]];var E=b.length>x.length?b:x,C=b.length>x.length?x:b,P=E.indexOf(C);if(P!=-1)return _=[[o,E.substring(0,P)],[a,C],[o,E.substring(P+C.length)]],b.length>x.length&&(_[0][0]=_[2][0]=n),_;if(C.length==1)return[[n,b],[o,x]];var O=h(b,x);if(O){var S=O[0],R=O[1],T=O[2],k=O[3],L=O[4],F=s(S,T),$=s(R,k);return F.concat([[a,L]],$)}return d(b,x)}function d(b,x){for(var _=b.length,E=x.length,C=Math.ceil((_+E)/2),P=C,O=2*C,S=new Array(O),R=new Array(O),T=0;T<O;T++)S[T]=-1,R[T]=-1;S[P+1]=0,R[P+1]=0;for(var k=_-E,L=k%2!=0,F=0,$=0,z=0,H=0,D=0;D<C;D++){for(var j=-D+F;j<=D-$;j+=2){var A=P+j,M;j==-D||j!=D&&S[A-1]<S[A+1]?M=S[A+1]:M=S[A-1]+1;for(var q=M-j;M<_&&q<E&&b.charAt(M)==x.charAt(q);)M++,q++;if(S[A]=M,M>_)$+=2;else if(q>E)F+=2;else if(L){var B=P+k-j;if(B>=0&&B<O&&R[B]!=-1){var N=_-R[B];if(M>=N)return f(b,x,M,q)}}}for(var V=-D+z;V<=D-H;V+=2){var B=P+V,N;V==-D||V!=D&&R[B-1]<R[B+1]?N=R[B+1]:N=R[B-1]+1;for(var K=N-V;N<_&&K<E&&b.charAt(_-N-1)==x.charAt(E-K-1);)N++,K++;if(R[B]=N,N>_)H+=2;else if(K>E)z+=2;else if(!L){var A=P+k-V;if(A>=0&&A<O&&S[A]!=-1){var M=S[A],q=P+M-A;if(N=_-N,M>=N)return f(b,x,M,q)}}}}return[[n,b],[o,x]]}function f(b,x,_,E){var C=b.substring(0,_),P=x.substring(0,E),O=b.substring(_),S=x.substring(E),R=s(C,P),T=s(O,S);return R.concat(T)}function l(b,x){if(!b||!x||b.charAt(0)!=x.charAt(0))return 0;for(var _=0,E=Math.min(b.length,x.length),C=E,P=0;_<C;)b.substring(P,C)==x.substring(P,C)?(_=C,P=_):E=C,C=Math.floor((E-_)/2+_);return C}function u(b,x){if(!b||!x||b.charAt(b.length-1)!=x.charAt(x.length-1))return 0;for(var _=0,E=Math.min(b.length,x.length),C=E,P=0;_<C;)b.substring(b.length-C,b.length-P)==x.substring(x.length-C,x.length-P)?(_=C,P=_):E=C,C=Math.floor((E-_)/2+_);return C}function h(b,x){var _=b.length>x.length?b:x,E=b.length>x.length?x:b;if(_.length<4||E.length*2<_.length)return null;function C($,z,H){for(var D=$.substring(H,H+Math.floor($.length/4)),j=-1,A="",M,q,B,N;(j=z.indexOf(D,j+1))!=-1;){var V=l($.substring(H),z.substring(j)),K=u($.substring(0,H),z.substring(0,j));A.length<K+V&&(A=z.substring(j-K,j)+z.substring(j,j+V),M=$.substring(0,H-K),q=$.substring(H+V),B=z.substring(0,j-K),N=z.substring(j+V))}return A.length*2>=$.length?[M,q,B,N,A]:null}var P=C(_,E,Math.ceil(_.length/4)),O=C(_,E,Math.ceil(_.length/2)),S;if(!P&&!O)return null;O?P?S=P[4].length>O[4].length?P:O:S=O:S=P;var R,T,k,L;b.length>x.length?(R=S[0],T=S[1],k=S[2],L=S[3]):(k=S[0],L=S[1],R=S[2],T=S[3]);var F=S[4];return[R,T,k,L,F]}function p(b){b.push([a,""]);for(var x=0,_=0,E=0,C="",P="",O;x<b.length;)switch(b[x][0]){case o:E++,P+=b[x][1],x++;break;case n:_++,C+=b[x][1],x++;break;case a:_+E>1?(_!==0&&E!==0&&(O=l(P,C),O!==0&&(x-_-E>0&&b[x-_-E-1][0]==a?b[x-_-E-1][1]+=P.substring(0,O):(b.splice(0,0,[a,P.substring(0,O)]),x++),P=P.substring(O),C=C.substring(O)),O=u(P,C),O!==0&&(b[x][1]=P.substring(P.length-O)+b[x][1],P=P.substring(0,P.length-O),C=C.substring(0,C.length-O))),_===0?b.splice(x-E,_+E,[o,P]):E===0?b.splice(x-_,_+E,[n,C]):b.splice(x-_-E,_+E,[n,C],[o,P]),x=x-_-E+(_?1:0)+(E?1:0)+1):x!==0&&b[x-1][0]==a?(b[x-1][1]+=b[x][1],b.splice(x,1)):x++,E=0,_=0,C="",P="";break}b[b.length-1][1]===""&&b.pop();var S=!1;for(x=1;x<b.length-1;)b[x-1][0]==a&&b[x+1][0]==a&&(b[x][1].substring(b[x][1].length-b[x-1][1].length)==b[x-1][1]?(b[x][1]=b[x-1][1]+b[x][1].substring(0,b[x][1].length-b[x-1][1].length),b[x+1][1]=b[x-1][1]+b[x+1][1],b.splice(x-1,1),S=!0):b[x][1].substring(0,b[x+1][1].length)==b[x+1][1]&&(b[x-1][1]+=b[x+1][1],b[x][1]=b[x][1].substring(b[x+1][1].length)+b[x+1][1],b.splice(x+1,1),S=!0)),x++;S&&p(b)}var m=s;m.INSERT=o,m.DELETE=n,m.EQUAL=a,t.exports=m;function v(b,x){if(x===0)return[a,b];for(var _=0,E=0;E<b.length;E++){var C=b[E];if(C[0]===n||C[0]===a){var P=_+C[1].length;if(x===P)return[E+1,b];if(x<P){b=b.slice();var O=x-_,S=[C[0],C[1].slice(0,O)],R=[C[0],C[1].slice(O)];return b.splice(E,1,S,R),[E+1,b]}else _=P}}throw new Error("cursor_pos is out of bounds!")}function y(b,x){var _=v(b,x),E=_[1],C=_[0],P=E[C],O=E[C+1];if(P==null)return b;if(P[0]!==a)return b;if(O!=null&&P[1]+O[1]===O[1]+P[1])return E.splice(C,2,O,P),w(E,C,2);if(O!=null&&O[1].indexOf(P[1])===0){E.splice(C,2,[O[0],P[1]],[0,P[1]]);var S=O[1].slice(P[1].length);return S.length>0&&E.splice(C+2,0,[O[0],S]),w(E,C,3)}else return b}function g(b){for(var x=!1,_=function(O){return O.charCodeAt(0)>=56320&&O.charCodeAt(0)<=57343},E=function(O){return O.charCodeAt(O.length-1)>=55296&&O.charCodeAt(O.length-1)<=56319},C=2;C<b.length;C+=1)b[C-2][0]===a&&E(b[C-2][1])&&b[C-1][0]===n&&_(b[C-1][1])&&b[C][0]===o&&_(b[C][1])&&(x=!0,b[C-1][1]=b[C-2][1].slice(-1)+b[C-1][1],b[C][1]=b[C-2][1].slice(-1)+b[C][1],b[C-2][1]=b[C-2][1].slice(0,-1));if(!x)return b;for(var P=[],C=0;C<b.length;C+=1)b[C][1].length>0&&P.push(b[C]);return P}function w(b,x,_){for(var E=x+_-1;E>=0&&E>=x-1;E--)if(E+1<b.length){var C=b[E],P=b[E+1];C[0]===P[1]&&b.splice(E,2,[C[0],C[1]+P[1]])}return b}}),(function(t,i){i=t.exports=typeof Object.keys=="function"?Object.keys:n,i.shim=n;function n(o){var a=[];for(var s in o)a.push(s);return a}}),(function(t,i){var n=(function(){return Object.prototype.toString.call(arguments)})()=="[object Arguments]";i=t.exports=n?o:a,i.supported=o;function o(s){return Object.prototype.toString.call(s)=="[object Arguments]"}i.unsupported=a;function a(s){return s&&typeof s=="object"&&typeof s.length=="number"&&Object.prototype.hasOwnProperty.call(s,"callee")&&!Object.prototype.propertyIsEnumerable.call(s,"callee")||!1}}),(function(t,i){var n=Object.prototype.hasOwnProperty,o="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(o=!1));function s(d,f,l){this.fn=d,this.context=f,this.once=l||!1}function c(){this._events=new a,this._eventsCount=0}c.prototype.eventNames=function(){var f=[],l,u;if(this._eventsCount===0)return f;for(u in l=this._events)n.call(l,u)&&f.push(o?u.slice(1):u);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(l)):f},c.prototype.listeners=function(f,l){var u=o?o+f:f,h=this._events[u];if(l)return!!h;if(!h)return[];if(h.fn)return[h.fn];for(var p=0,m=h.length,v=new Array(m);p<m;p++)v[p]=h[p].fn;return v},c.prototype.emit=function(f,l,u,h,p,m){var v=o?o+f:f;if(!this._events[v])return!1;var y=this._events[v],g=arguments.length,w,b;if(y.fn){switch(y.once&&this.removeListener(f,y.fn,void 0,!0),g){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,l),!0;case 3:return y.fn.call(y.context,l,u),!0;case 4:return y.fn.call(y.context,l,u,h),!0;case 5:return y.fn.call(y.context,l,u,h,p),!0;case 6:return y.fn.call(y.context,l,u,h,p,m),!0}for(b=1,w=new Array(g-1);b<g;b++)w[b-1]=arguments[b];y.fn.apply(y.context,w)}else{var x=y.length,_;for(b=0;b<x;b++)switch(y[b].once&&this.removeListener(f,y[b].fn,void 0,!0),g){case 1:y[b].fn.call(y[b].context);break;case 2:y[b].fn.call(y[b].context,l);break;case 3:y[b].fn.call(y[b].context,l,u);break;case 4:y[b].fn.call(y[b].context,l,u,h);break;default:if(!w)for(_=1,w=new Array(g-1);_<g;_++)w[_-1]=arguments[_];y[b].fn.apply(y[b].context,w)}}return!0},c.prototype.on=function(f,l,u){var h=new s(l,u||this),p=o?o+f:f;return this._events[p]?this._events[p].fn?this._events[p]=[this._events[p],h]:this._events[p].push(h):(this._events[p]=h,this._eventsCount++),this},c.prototype.once=function(f,l,u){var h=new s(l,u||this,!0),p=o?o+f:f;return this._events[p]?this._events[p].fn?this._events[p]=[this._events[p],h]:this._events[p].push(h):(this._events[p]=h,this._eventsCount++),this},c.prototype.removeListener=function(f,l,u,h){var p=o?o+f:f;if(!this._events[p])return this;if(!l)return--this._eventsCount===0?this._events=new a:delete this._events[p],this;var m=this._events[p];if(m.fn)m.fn===l&&(!h||m.once)&&(!u||m.context===u)&&(--this._eventsCount===0?this._events=new a:delete this._events[p]);else{for(var v=0,y=[],g=m.length;v<g;v++)(m[v].fn!==l||h&&!m[v].once||u&&m[v].context!==u)&&y.push(m[v]);y.length?this._events[p]=y.length===1?y[0]:y:--this._eventsCount===0?this._events=new a:delete this._events[p]}return this},c.prototype.removeAllListeners=function(f){var l;return f?(l=o?o+f:f,this._events[l]&&(--this._eventsCount===0?this._events=new a:delete this._events[l])):(this._events=new a,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prototype.setMaxListeners=function(){return this},c.prefixed=o,c.EventEmitter=c,typeof t<"u"&&(t.exports=c)}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.matchText=i.matchSpacing=i.matchNewline=i.matchBlot=i.matchAttributor=i.default=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Q){return typeof Q}:function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},a=(function(){function Q(Z,ae){var ie=[],ee=!0,ue=!1,ne=void 0;try{for(var de=Z[Symbol.iterator](),Se;!(ee=(Se=de.next()).done)&&(ie.push(Se.value),!(ae&&ie.length===ae));ee=!0);}catch(Me){ue=!0,ne=Me}finally{try{!ee&&de.return&&de.return()}finally{if(ue)throw ne}}return ie}return function(Z,ae){if(Array.isArray(Z))return Z;if(Symbol.iterator in Object(Z))return Q(Z,ae);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function Q(Z,ae){for(var ie=0;ie<ae.length;ie++){var ee=ae[ie];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(Z,ee.key,ee)}}return function(Z,ae,ie){return ae&&Q(Z.prototype,ae),ie&&Q(Z,ie),Z}})(),c=n(3),d=R(c),f=n(2),l=R(f),u=n(0),h=R(u),p=n(5),m=R(p),v=n(10),y=R(v),g=n(9),w=R(g),b=n(36),x=n(37),_=n(13),E=R(_),C=n(26),P=n(38),O=n(39),S=n(40);function R(Q){return Q&&Q.__esModule?Q:{default:Q}}function T(Q,Z,ae){return Z in Q?Object.defineProperty(Q,Z,{value:ae,enumerable:!0,configurable:!0,writable:!0}):Q[Z]=ae,Q}function k(Q,Z){if(!(Q instanceof Z))throw new TypeError("Cannot call a class as a function")}function L(Q,Z){if(!Q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z&&(typeof Z=="object"||typeof Z=="function")?Z:Q}function F(Q,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Z);Q.prototype=Object.create(Z&&Z.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),Z&&(Object.setPrototypeOf?Object.setPrototypeOf(Q,Z):Q.__proto__=Z)}var $=(0,y.default)("quill:clipboard"),z="__ql-matcher",H=[[Node.TEXT_NODE,ve],[Node.TEXT_NODE,te],["br",re],[Node.ELEMENT_NODE,te],[Node.ELEMENT_NODE,X],[Node.ELEMENT_NODE,ce],[Node.ELEMENT_NODE,W],[Node.ELEMENT_NODE,fe],["li",se],["b",K.bind(K,"bold")],["i",K.bind(K,"italic")],["style",oe]],D=[b.AlignAttribute,P.DirectionAttribute].reduce(function(Q,Z){return Q[Z.keyName]=Z,Q},{}),j=[b.AlignStyle,x.BackgroundStyle,C.ColorStyle,P.DirectionStyle,O.FontStyle,S.SizeStyle].reduce(function(Q,Z){return Q[Z.keyName]=Z,Q},{}),A=(function(Q){F(Z,Q);function Z(ae,ie){k(this,Z);var ee=L(this,(Z.__proto__||Object.getPrototypeOf(Z)).call(this,ae,ie));return ee.quill.root.addEventListener("paste",ee.onPaste.bind(ee)),ee.container=ee.quill.addContainer("ql-clipboard"),ee.container.setAttribute("contenteditable",!0),ee.container.setAttribute("tabindex",-1),ee.matchers=[],H.concat(ee.options.matchers).forEach(function(ue){var ne=a(ue,2),de=ne[0],Se=ne[1];!ie.matchVisual&&Se===ce||ee.addMatcher(de,Se)}),ee}return s(Z,[{key:"addMatcher",value:function(ie,ee){this.matchers.push([ie,ee])}},{key:"convert",value:function(ie){if(typeof ie=="string")return this.container.innerHTML=ie.replace(/\>\r?\n +\</g,"><"),this.convert();var ee=this.quill.getFormat(this.quill.selection.savedRange.index);if(ee[E.default.blotName]){var ue=this.container.innerText;return this.container.innerHTML="",new l.default().insert(ue,T({},E.default.blotName,ee[E.default.blotName]))}var ne=this.prepareMatching(),de=a(ne,2),Se=de[0],Me=de[1],be=V(this.container,Se,Me);return B(be,`
|
|
45
|
-
`)&&be.ops[be.ops.length-1].attributes==null&&(be=be.compose(new l.default().retain(be.length()-1).delete(1))),$.log("convert",this.container.innerHTML,be),this.container.innerHTML="",be}},{key:"dangerouslyPasteHTML",value:function(ie,ee){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m.default.sources.API;if(typeof ie=="string")this.quill.setContents(this.convert(ie),ee),this.quill.setSelection(0,m.default.sources.SILENT);else{var ne=this.convert(ee);this.quill.updateContents(new l.default().retain(ie).concat(ne),ue),this.quill.setSelection(ie+ne.length(),m.default.sources.SILENT)}}},{key:"onPaste",value:function(ie){var ee=this;if(!(ie.defaultPrevented||!this.quill.isEnabled())){var ue=this.quill.getSelection(),ne=new l.default().retain(ue.index),
|
|
43
|
+
`);ce=0,Z.forEach(function(ae,ie){N?(te.insertAt(ve+ce,W.TAB),ce+=W.TAB.length,ie===0?X+=W.TAB.length:re+=W.TAB.length):ae.startsWith(W.TAB)&&(te.deleteAt(ve+ce,W.TAB.length),ce-=W.TAB.length,ie===0?X-=W.TAB.length:re-=W.TAB.length),ce+=ae.length+1}),this.quill.update(x.default.sources.USER),this.quill.setSelection(X,re,x.default.sources.SILENT)}}}}function q(N){return{key:N[0].toUpperCase(),shortKey:!0,handler:function(K,W){this.quill.format(N,!W.format[N],x.default.sources.USER)}}}function B(N){if(typeof N=="string"||typeof N=="number")return B({key:N});if((typeof N>"u"?"undefined":o(N))==="object"&&(N=(0,d.default)(N,!1)),typeof N.key=="string")if($.keys[N.key.toUpperCase()]!=null)N.key=$.keys[N.key.toUpperCase()];else if(N.key.length===1)N.key=N.key.toUpperCase().charCodeAt(0);else return null;return N.shortKey&&(N[F]=N.shortKey,delete N.shortKey),N}i.default=$,i.SHORTKEY=F}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function y(g,w){var b=[],x=!0,_=!1,E=void 0;try{for(var C=g[Symbol.iterator](),k;!(x=(k=C.next()).done)&&(b.push(k.value),!(w&&b.length===w));x=!0);}catch(O){_=!0,E=O}finally{try{!x&&C.return&&C.return()}finally{if(_)throw E}}return b}return function(g,w){if(Array.isArray(g))return g;if(Symbol.iterator in Object(g))return y(g,w);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=function y(g,w,b){g===null&&(g=Function.prototype);var x=Object.getOwnPropertyDescriptor(g,w);if(x===void 0){var _=Object.getPrototypeOf(g);return _===null?void 0:y(_,w,b)}else{if("value"in x)return x.value;var E=x.get;return E===void 0?void 0:E.call(b)}},s=(function(){function y(g,w){for(var b=0;b<w.length;b++){var x=w[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(g,x.key,x)}}return function(g,w,b){return w&&y(g.prototype,w),b&&y(g,b),g}})(),c=n(0),d=u(c),f=n(7),l=u(f);function u(y){return y&&y.__esModule?y:{default:y}}function h(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function p(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function m(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var v=(function(y){m(g,y),s(g,null,[{key:"value",value:function(){}}]);function g(w,b){h(this,g);var x=p(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,w));return x.selection=b,x.textNode=document.createTextNode(g.CONTENTS),x.domNode.appendChild(x.textNode),x._length=0,x}return s(g,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(b,x){if(this._length!==0)return a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,b,x);for(var _=this,E=0;_!=null&&_.statics.scope!==d.default.Scope.BLOCK_BLOT;)E+=_.offset(_.parent),_=_.parent;_!=null&&(this._length=g.CONTENTS.length,_.optimize(),_.formatAt(E,g.CONTENTS.length,b,x),this._length=0)}},{key:"index",value:function(b,x){return b===this.textNode?0:a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"index",this).call(this,b,x)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var b=this.textNode,x=this.selection.getNativeRange(),_=void 0,E=void 0,C=void 0;if(x!=null&&x.start.node===b&&x.end.node===b){var k=[b,x.start.offset,x.end.offset];_=k[0],E=k[1],C=k[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==g.CONTENTS){var O=this.textNode.data.split(g.CONTENTS).join("");this.next instanceof l.default?(_=this.next.domNode,this.next.insertAt(0,O),this.textNode.data=g.CONTENTS):(this.textNode.data=O,this.parent.insertBefore(d.default.create(this.textNode),this),this.textNode=document.createTextNode(g.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),E!=null){var S=[E,C].map(function(T){return Math.max(0,Math.min(_.data.length,T-1))}),R=o(S,2);return E=R[0],C=R[1],{startNode:_,startOffset:E,endNode:_,endOffset:C}}}}},{key:"update",value:function(b,x){var _=this;if(b.some(function(C){return C.type==="characterData"&&C.target===_.textNode})){var E=this.restore();E&&(x.range=E)}}},{key:"value",value:function(){return""}}]),g})(d.default.Embed);v.blotName="cursor",v.className="ql-cursor",v.tagName="span",v.CONTENTS="\uFEFF",i.default=v}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(0),a=d(o),s=n(4),c=d(s);function d(p){return p&&p.__esModule?p:{default:p}}function f(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function l(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:p}function u(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(p,m):p.__proto__=m)}var h=(function(p){u(m,p);function m(){return f(this,m),l(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return m})(a.default.Container);h.allowedChildren=[c.default,s.BlockEmbed,h],i.default=h}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.ColorStyle=i.ColorClass=i.ColorAttributor=void 0;var o=(function(){function v(y,g){for(var w=0;w<g.length;w++){var b=g[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,g,w){return g&&v(y.prototype,g),w&&v(y,w),y}})(),a=function v(y,g,w){y===null&&(y=Function.prototype);var b=Object.getOwnPropertyDescriptor(y,g);if(b===void 0){var x=Object.getPrototypeOf(y);return x===null?void 0:v(x,g,w)}else{if("value"in b)return b.value;var _=b.get;return _===void 0?void 0:_.call(w)}},s=n(0),c=d(s);function d(v){return v&&v.__esModule?v:{default:v}}function f(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function l(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function u(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var h=(function(v){u(y,v);function y(){return f(this,y),l(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"value",value:function(w){var b=a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,w);return b.startsWith("rgb(")?(b=b.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+b.split(",").map(function(x){return("00"+parseInt(x).toString(16)).slice(-2)}).join("")):b}}]),y})(c.default.Attributor.Style),p=new c.default.Attributor.Class("color","ql-color",{scope:c.default.Scope.INLINE}),m=new h("color","color",{scope:c.default.Scope.INLINE});i.ColorAttributor=h,i.ColorClass=p,i.ColorStyle=m}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.sanitize=i.default=void 0;var o=(function(){function m(v,y){for(var g=0;g<y.length;g++){var w=y[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,w.key,w)}}return function(v,y,g){return y&&m(v.prototype,y),g&&m(v,g),v}})(),a=function m(v,y,g){v===null&&(v=Function.prototype);var w=Object.getOwnPropertyDescriptor(v,y);if(w===void 0){var b=Object.getPrototypeOf(v);return b===null?void 0:m(b,y,g)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(g)}},s=n(6),c=d(s);function d(m){return m&&m.__esModule?m:{default:m}}function f(m,v){if(!(m instanceof v))throw new TypeError("Cannot call a class as a function")}function l(m,v){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:m}function u(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);m.prototype=Object.create(v&&v.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(m,v):m.__proto__=v)}var h=(function(m){u(v,m);function v(){return f(this,v),l(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return o(v,[{key:"format",value:function(g,w){if(g!==this.statics.blotName||!w)return a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"format",this).call(this,g,w);w=this.constructor.sanitize(w),this.domNode.setAttribute("href",w)}}],[{key:"create",value:function(g){var w=a(v.__proto__||Object.getPrototypeOf(v),"create",this).call(this,g);return g=this.sanitize(g),w.setAttribute("href",g),w.setAttribute("rel","noopener noreferrer"),w.setAttribute("target","_blank"),w}},{key:"formats",value:function(g){return g.getAttribute("href")}},{key:"sanitize",value:function(g){return p(g,this.PROTOCOL_WHITELIST)?g:this.SANITIZED_URL}}]),v})(c.default);h.blotName="link",h.tagName="A",h.SANITIZED_URL="about:blank",h.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function p(m,v){var y=document.createElement("a");y.href=m;var g=y.href.slice(0,y.href.indexOf(":"));return v.indexOf(g)>-1}i.default=h,i.sanitize=p}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},a=(function(){function v(y,g){for(var w=0;w<g.length;w++){var b=g[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,g,w){return g&&v(y.prototype,g),w&&v(y,w),y}})(),s=n(23),c=l(s),d=n(107),f=l(d);function l(v){return v&&v.__esModule?v:{default:v}}function u(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}var h=0;function p(v,y){v.setAttribute(y,v.getAttribute(y)!=="true")}var m=(function(){function v(y){var g=this;u(this,v),this.select=y,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){g.togglePicker()}),this.label.addEventListener("keydown",function(w){switch(w.keyCode){case c.default.keys.ENTER:g.togglePicker();break;case c.default.keys.ESCAPE:g.escape(),w.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return a(v,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),p(this.label,"aria-expanded"),p(this.options,"aria-hidden")}},{key:"buildItem",value:function(g){var w=this,b=document.createElement("span");return b.tabIndex="0",b.setAttribute("role","button"),b.classList.add("ql-picker-item"),g.hasAttribute("value")&&b.setAttribute("data-value",g.getAttribute("value")),g.textContent&&b.setAttribute("data-label",g.textContent),b.addEventListener("click",function(){w.selectItem(b,!0)}),b.addEventListener("keydown",function(x){switch(x.keyCode){case c.default.keys.ENTER:w.selectItem(b,!0),x.preventDefault();break;case c.default.keys.ESCAPE:w.escape(),x.preventDefault();break}}),b}},{key:"buildLabel",value:function(){var g=document.createElement("span");return g.classList.add("ql-picker-label"),g.innerHTML=f.default,g.tabIndex="0",g.setAttribute("role","button"),g.setAttribute("aria-expanded","false"),this.container.appendChild(g),g}},{key:"buildOptions",value:function(){var g=this,w=document.createElement("span");w.classList.add("ql-picker-options"),w.setAttribute("aria-hidden","true"),w.tabIndex="-1",w.id="ql-picker-options-"+h,h+=1,this.label.setAttribute("aria-controls",w.id),this.options=w,[].slice.call(this.select.options).forEach(function(b){var x=g.buildItem(b);w.appendChild(x),b.selected===!0&&g.selectItem(x)}),this.container.appendChild(w)}},{key:"buildPicker",value:function(){var g=this;[].slice.call(this.select.attributes).forEach(function(w){g.container.setAttribute(w.name,w.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var g=this;this.close(),setTimeout(function(){return g.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(g){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=this.container.querySelector(".ql-selected");if(g!==b&&(b?.classList.remove("ql-selected"),g!=null&&(g.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(g.parentNode.children,g),g.hasAttribute("data-value")?this.label.setAttribute("data-value",g.getAttribute("data-value")):this.label.removeAttribute("data-value"),g.hasAttribute("data-label")?this.label.setAttribute("data-label",g.getAttribute("data-label")):this.label.removeAttribute("data-label"),w))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":o(Event))==="object"){var x=document.createEvent("Event");x.initEvent("change",!0,!0),this.select.dispatchEvent(x)}this.close()}}},{key:"update",value:function(){var g=void 0;if(this.select.selectedIndex>-1){var w=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];g=this.select.options[this.select.selectedIndex],this.selectItem(w)}else this.selectItem(null);var b=g!=null&&g!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",b)}}]),v})();i.default=m}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(0),a=L(o),s=n(5),c=L(s),d=n(4),f=L(d),l=n(16),u=L(l),h=n(25),p=L(h),m=n(24),v=L(m),y=n(35),g=L(y),w=n(6),b=L(w),x=n(22),_=L(x),E=n(7),C=L(E),k=n(55),O=L(k),S=n(42),R=L(S),T=n(23),P=L(T);function L(F){return F&&F.__esModule?F:{default:F}}c.default.register({"blots/block":f.default,"blots/block/embed":d.BlockEmbed,"blots/break":u.default,"blots/container":p.default,"blots/cursor":v.default,"blots/embed":g.default,"blots/inline":b.default,"blots/scroll":_.default,"blots/text":C.default,"modules/clipboard":O.default,"modules/history":R.default,"modules/keyboard":P.default}),a.default.register(f.default,u.default,v.default,b.default,_.default,C.default),i.default=c.default}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(1),a=(function(){function s(c){this.domNode=c,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(s.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),s.create=function(c){if(this.tagName==null)throw new o.ParchmentError("Blot definition missing tagName");var d;return Array.isArray(this.tagName)?(typeof c=="string"&&(c=c.toUpperCase(),parseInt(c).toString()===c&&(c=parseInt(c))),typeof c=="number"?d=document.createElement(this.tagName[c-1]):this.tagName.indexOf(c)>-1?d=document.createElement(c):d=document.createElement(this.tagName[0])):d=document.createElement(this.tagName),this.className&&d.classList.add(this.className),d},s.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},s.prototype.clone=function(){var c=this.domNode.cloneNode(!1);return o.create(c)},s.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},s.prototype.deleteAt=function(c,d){var f=this.isolate(c,d);f.remove()},s.prototype.formatAt=function(c,d,f,l){var u=this.isolate(c,d);if(o.query(f,o.Scope.BLOT)!=null&&l)u.wrap(f,l);else if(o.query(f,o.Scope.ATTRIBUTE)!=null){var h=o.create(this.statics.scope);u.wrap(h),h.format(f,l)}},s.prototype.insertAt=function(c,d,f){var l=f==null?o.create("text",d):o.create(d,f),u=this.split(c);this.parent.insertBefore(l,u)},s.prototype.insertInto=function(c,d){d===void 0&&(d=null),this.parent!=null&&this.parent.children.remove(this);var f=null;c.children.insertBefore(this,d),d!=null&&(f=d.domNode),(this.domNode.parentNode!=c.domNode||this.domNode.nextSibling!=f)&&c.domNode.insertBefore(this.domNode,f),this.parent=c,this.attach()},s.prototype.isolate=function(c,d){var f=this.split(c);return f.split(d),f},s.prototype.length=function(){return 1},s.prototype.offset=function(c){return c===void 0&&(c=this.parent),this.parent==null||this==c?0:this.parent.children.offset(this)+this.parent.offset(c)},s.prototype.optimize=function(c){this.domNode[o.DATA_KEY]!=null&&delete this.domNode[o.DATA_KEY].mutations},s.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},s.prototype.replace=function(c){c.parent!=null&&(c.parent.insertBefore(this,c.next),c.remove())},s.prototype.replaceWith=function(c,d){var f=typeof c=="string"?o.create(c,d):c;return f.replace(this),f},s.prototype.split=function(c,d){return c===0?this:this.next},s.prototype.update=function(c,d){},s.prototype.wrap=function(c,d){var f=typeof c=="string"?o.create(c,d):c;return this.parent!=null&&this.parent.insertBefore(f,this.next),f.appendChild(this),f},s.blotName="abstract",s})();i.default=a}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(12),a=n(32),s=n(33),c=n(1),d=(function(){function f(l){this.attributes={},this.domNode=l,this.build()}return f.prototype.attribute=function(l,u){u?l.add(this.domNode,u)&&(l.value(this.domNode)!=null?this.attributes[l.attrName]=l:delete this.attributes[l.attrName]):(l.remove(this.domNode),delete this.attributes[l.attrName])},f.prototype.build=function(){var l=this;this.attributes={};var u=o.default.keys(this.domNode),h=a.default.keys(this.domNode),p=s.default.keys(this.domNode);u.concat(h).concat(p).forEach(function(m){var v=c.query(m,c.Scope.ATTRIBUTE);v instanceof o.default&&(l.attributes[v.attrName]=v)})},f.prototype.copy=function(l){var u=this;Object.keys(this.attributes).forEach(function(h){var p=u.attributes[h].value(u.domNode);l.format(h,p)})},f.prototype.move=function(l){var u=this;this.copy(l),Object.keys(this.attributes).forEach(function(h){u.attributes[h].remove(u.domNode)}),this.attributes={}},f.prototype.values=function(){var l=this;return Object.keys(this.attributes).reduce(function(u,h){return u[h]=l.attributes[h].value(l.domNode),u},{})},f})();i.default=d}),(function(t,i,n){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var u in l)l.hasOwnProperty(u)&&(f[u]=l[u])};return function(f,l){d(f,l);function u(){this.constructor=f}f.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(12);function s(d,f){var l=d.getAttribute("class")||"";return l.split(/\s+/).filter(function(u){return u.indexOf(f+"-")===0})}var c=(function(d){o(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.keys=function(l){return(l.getAttribute("class")||"").split(/\s+/).map(function(u){return u.split("-").slice(0,-1).join("-")})},f.prototype.add=function(l,u){return this.canAdd(l,u)?(this.remove(l),l.classList.add(this.keyName+"-"+u),!0):!1},f.prototype.remove=function(l){var u=s(l,this.keyName);u.forEach(function(h){l.classList.remove(h)}),l.classList.length===0&&l.removeAttribute("class")},f.prototype.value=function(l){var u=s(l,this.keyName)[0]||"",h=u.slice(this.keyName.length+1);return this.canAdd(l,h)?h:""},f})(a.default);i.default=c}),(function(t,i,n){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var u in l)l.hasOwnProperty(u)&&(f[u]=l[u])};return function(f,l){d(f,l);function u(){this.constructor=f}f.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(12);function s(d){var f=d.split("-"),l=f.slice(1).map(function(u){return u[0].toUpperCase()+u.slice(1)}).join("");return f[0]+l}var c=(function(d){o(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.keys=function(l){return(l.getAttribute("style")||"").split(";").map(function(u){var h=u.split(":");return h[0].trim()})},f.prototype.add=function(l,u){return this.canAdd(l,u)?(l.style[s(this.keyName)]=u,!0):!1},f.prototype.remove=function(l){l.style[s(this.keyName)]="",l.getAttribute("style")||l.removeAttribute("style")},f.prototype.value=function(l){var u=l.style[s(this.keyName)];return this.canAdd(l,u)?u:""},f})(a.default);i.default=c}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function c(d,f){for(var l=0;l<f.length;l++){var u=f[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,u.key,u)}}return function(d,f,l){return f&&c(d.prototype,f),l&&c(d,l),d}})();function a(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")}var s=(function(){function c(d,f){a(this,c),this.quill=d,this.options=f,this.modules={}}return o(c,[{key:"init",value:function(){var f=this;Object.keys(this.options.modules).forEach(function(l){f.modules[l]==null&&f.addModule(l)})}},{key:"addModule",value:function(f){var l=this.quill.constructor.import("modules/"+f);return this.modules[f]=new l(this.quill,this.options.modules[f]||{}),this.modules[f]}}]),c})();s.DEFAULTS={modules:{}},s.themes={default:s},i.default=s}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function y(g,w){for(var b=0;b<w.length;b++){var x=w[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(g,x.key,x)}}return function(g,w,b){return w&&y(g.prototype,w),b&&y(g,b),g}})(),a=function y(g,w,b){g===null&&(g=Function.prototype);var x=Object.getOwnPropertyDescriptor(g,w);if(x===void 0){var _=Object.getPrototypeOf(g);return _===null?void 0:y(_,w,b)}else{if("value"in x)return x.value;var E=x.get;return E===void 0?void 0:E.call(b)}},s=n(0),c=l(s),d=n(7),f=l(d);function l(y){return y&&y.__esModule?y:{default:y}}function u(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function h(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function p(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var m="\uFEFF",v=(function(y){p(g,y);function g(w){u(this,g);var b=h(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,w));return b.contentNode=document.createElement("span"),b.contentNode.setAttribute("contenteditable",!1),[].slice.call(b.domNode.childNodes).forEach(function(x){b.contentNode.appendChild(x)}),b.leftGuard=document.createTextNode(m),b.rightGuard=document.createTextNode(m),b.domNode.appendChild(b.leftGuard),b.domNode.appendChild(b.contentNode),b.domNode.appendChild(b.rightGuard),b}return o(g,[{key:"index",value:function(b,x){return b===this.leftGuard?0:b===this.rightGuard?1:a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"index",this).call(this,b,x)}},{key:"restore",value:function(b){var x=void 0,_=void 0,E=b.data.split(m).join("");if(b===this.leftGuard)if(this.prev instanceof f.default){var C=this.prev.length();this.prev.insertAt(C,E),x={startNode:this.prev.domNode,startOffset:C+E.length}}else _=document.createTextNode(E),this.parent.insertBefore(c.default.create(_),this),x={startNode:_,startOffset:E.length};else b===this.rightGuard&&(this.next instanceof f.default?(this.next.insertAt(0,E),x={startNode:this.next.domNode,startOffset:E.length}):(_=document.createTextNode(E),this.parent.insertBefore(c.default.create(_),this.next),x={startNode:_,startOffset:E.length}));return b.data=m,x}},{key:"update",value:function(b,x){var _=this;b.forEach(function(E){if(E.type==="characterData"&&(E.target===_.leftGuard||E.target===_.rightGuard)){var C=_.restore(E.target);C&&(x.range=C)}})}}]),g})(c.default.Embed);i.default=v}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.AlignStyle=i.AlignClass=i.AlignAttribute=void 0;var o=n(0),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}var c={scope:a.default.Scope.BLOCK,whitelist:["right","center","justify"]},d=new a.default.Attributor.Attribute("align","align",c),f=new a.default.Attributor.Class("align","ql-align",c),l=new a.default.Attributor.Style("align","text-align",c);i.AlignAttribute=d,i.AlignClass=f,i.AlignStyle=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.BackgroundStyle=i.BackgroundClass=void 0;var o=n(0),a=c(o),s=n(26);function c(l){return l&&l.__esModule?l:{default:l}}var d=new a.default.Attributor.Class("background","ql-bg",{scope:a.default.Scope.INLINE}),f=new s.ColorAttributor("background","background-color",{scope:a.default.Scope.INLINE});i.BackgroundClass=d,i.BackgroundStyle=f}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.DirectionStyle=i.DirectionClass=i.DirectionAttribute=void 0;var o=n(0),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}var c={scope:a.default.Scope.BLOCK,whitelist:["rtl"]},d=new a.default.Attributor.Attribute("direction","dir",c),f=new a.default.Attributor.Class("direction","ql-direction",c),l=new a.default.Attributor.Style("direction","direction",c);i.DirectionAttribute=d,i.DirectionClass=f,i.DirectionStyle=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.FontClass=i.FontStyle=void 0;var o=(function(){function y(g,w){for(var b=0;b<w.length;b++){var x=w[b];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(g,x.key,x)}}return function(g,w,b){return w&&y(g.prototype,w),b&&y(g,b),g}})(),a=function y(g,w,b){g===null&&(g=Function.prototype);var x=Object.getOwnPropertyDescriptor(g,w);if(x===void 0){var _=Object.getPrototypeOf(g);return _===null?void 0:y(_,w,b)}else{if("value"in x)return x.value;var E=x.get;return E===void 0?void 0:E.call(b)}},s=n(0),c=d(s);function d(y){return y&&y.__esModule?y:{default:y}}function f(y,g){if(!(y instanceof g))throw new TypeError("Cannot call a class as a function")}function l(y,g){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:y}function u(y,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);y.prototype=Object.create(g&&g.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(y,g):y.__proto__=g)}var h={scope:c.default.Scope.INLINE,whitelist:["serif","monospace"]},p=new c.default.Attributor.Class("font","ql-font",h),m=(function(y){u(g,y);function g(){return f(this,g),l(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return o(g,[{key:"value",value:function(b){return a(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"value",this).call(this,b).replace(/["']/g,"")}}]),g})(c.default.Attributor.Style),v=new m("font","font-family",h);i.FontStyle=v,i.FontClass=p}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.SizeStyle=i.SizeClass=void 0;var o=n(0),a=s(o);function s(f){return f&&f.__esModule?f:{default:f}}var c=new a.default.Attributor.Class("size","ql-size",{scope:a.default.Scope.INLINE,whitelist:["small","large","huge"]}),d=new a.default.Attributor.Style("size","font-size",{scope:a.default.Scope.INLINE,whitelist:["10px","18px","32px"]});i.SizeClass=c,i.SizeStyle=d}),(function(t,i,n){t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.getLastChangeIndex=i.default=void 0;var o=(function(){function w(b,x){for(var _=0;_<x.length;_++){var E=x[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(b,E.key,E)}}return function(b,x,_){return x&&w(b.prototype,x),_&&w(b,_),b}})(),a=n(0),s=u(a),c=n(5),d=u(c),f=n(9),l=u(f);function u(w){return w&&w.__esModule?w:{default:w}}function h(w,b){if(!(w instanceof b))throw new TypeError("Cannot call a class as a function")}function p(w,b){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:w}function m(w,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);w.prototype=Object.create(b&&b.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(w,b):w.__proto__=b)}var v=(function(w){m(b,w);function b(x,_){h(this,b);var E=p(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,x,_));return E.lastRecorded=0,E.ignoreChange=!1,E.clear(),E.quill.on(d.default.events.EDITOR_CHANGE,function(C,k,O,S){C!==d.default.events.TEXT_CHANGE||E.ignoreChange||(!E.options.userOnly||S===d.default.sources.USER?E.record(k,O):E.transform(k))}),E.quill.keyboard.addBinding({key:"Z",shortKey:!0},E.undo.bind(E)),E.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},E.redo.bind(E)),/Win/i.test(navigator.platform)&&E.quill.keyboard.addBinding({key:"Y",shortKey:!0},E.redo.bind(E)),E}return o(b,[{key:"change",value:function(_,E){if(this.stack[_].length!==0){var C=this.stack[_].pop();this.stack[E].push(C),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(C[_],d.default.sources.USER),this.ignoreChange=!1;var k=g(C[_]);this.quill.setSelection(k)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(_,E){if(_.ops.length!==0){this.stack.redo=[];var C=this.quill.getContents().diff(E),k=Date.now();if(this.lastRecorded+this.options.delay>k&&this.stack.undo.length>0){var O=this.stack.undo.pop();C=C.compose(O.undo),_=O.redo.compose(_)}else this.lastRecorded=k;this.stack.undo.push({redo:_,undo:C}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(_){this.stack.undo.forEach(function(E){E.undo=_.transform(E.undo,!0),E.redo=_.transform(E.redo,!0)}),this.stack.redo.forEach(function(E){E.undo=_.transform(E.undo,!0),E.redo=_.transform(E.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),b})(l.default);v.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function y(w){var b=w.ops[w.ops.length-1];return b==null?!1:b.insert!=null?typeof b.insert=="string"&&b.insert.endsWith(`
|
|
44
|
+
`):b.attributes!=null?Object.keys(b.attributes).some(function(x){return s.default.query(x,s.default.Scope.BLOCK)!=null}):!1}function g(w){var b=w.reduce(function(_,E){return _+=E.delete||0,_},0),x=w.length()-b;return y(w)&&(x-=1),x}i.default=v,i.getLastChangeIndex=g}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BaseTooltip=void 0;var o=(function(){function A(M,q){for(var B=0;B<q.length;B++){var N=q[B];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(M,N.key,N)}}return function(M,q,B){return q&&A(M.prototype,q),B&&A(M,B),M}})(),a=function A(M,q,B){M===null&&(M=Function.prototype);var N=Object.getOwnPropertyDescriptor(M,q);if(N===void 0){var V=Object.getPrototypeOf(M);return V===null?void 0:A(V,q,B)}else{if("value"in N)return N.value;var K=N.get;return K===void 0?void 0:K.call(B)}},s=n(3),c=k(s),d=n(2),f=k(d),l=n(8),u=k(l),h=n(23),p=k(h),m=n(34),v=k(m),y=n(59),g=k(y),w=n(60),b=k(w),x=n(28),_=k(x),E=n(61),C=k(E);function k(A){return A&&A.__esModule?A:{default:A}}function O(A,M){if(!(A instanceof M))throw new TypeError("Cannot call a class as a function")}function S(A,M){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M&&(typeof M=="object"||typeof M=="function")?M:A}function R(A,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);A.prototype=Object.create(M&&M.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(A,M):A.__proto__=M)}var T=[!1,"center","right","justify"],P=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],L=[!1,"serif","monospace"],F=["1","2","3",!1],$=["small",!1,"large","huge"],z=(function(A){R(M,A);function M(q,B){O(this,M);var N=S(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,q,B)),V=function K(W){if(!document.body.contains(q.root))return document.body.removeEventListener("click",K);N.tooltip!=null&&!N.tooltip.root.contains(W.target)&&document.activeElement!==N.tooltip.textbox&&!N.quill.hasFocus()&&N.tooltip.hide(),N.pickers!=null&&N.pickers.forEach(function(X){X.container.contains(W.target)||X.close()})};return q.emitter.listenDOM("click",document.body,V),N}return o(M,[{key:"addModule",value:function(B){var N=a(M.prototype.__proto__||Object.getPrototypeOf(M.prototype),"addModule",this).call(this,B);return B==="toolbar"&&this.extendToolbar(N),N}},{key:"buildButtons",value:function(B,N){B.forEach(function(V){var K=V.getAttribute("class")||"";K.split(/\s+/).forEach(function(W){if(W.startsWith("ql-")&&(W=W.slice(3),N[W]!=null))if(W==="direction")V.innerHTML=N[W][""]+N[W].rtl;else if(typeof N[W]=="string")V.innerHTML=N[W];else{var X=V.value||"";X!=null&&N[W][X]&&(V.innerHTML=N[W][X])}})})}},{key:"buildPickers",value:function(B,N){var V=this;this.pickers=B.map(function(W){if(W.classList.contains("ql-align"))return W.querySelector("option")==null&&j(W,T),new b.default(W,N.align);if(W.classList.contains("ql-background")||W.classList.contains("ql-color")){var X=W.classList.contains("ql-background")?"background":"color";return W.querySelector("option")==null&&j(W,P,X==="background"?"#ffffff":"#000000"),new g.default(W,N[X])}else return W.querySelector("option")==null&&(W.classList.contains("ql-font")?j(W,L):W.classList.contains("ql-header")?j(W,F):W.classList.contains("ql-size")&&j(W,$)),new _.default(W)});var K=function(){V.pickers.forEach(function(X){X.update()})};this.quill.on(u.default.events.EDITOR_CHANGE,K)}}]),M})(v.default);z.DEFAULTS=(0,c.default)(!0,{},v.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var M=this,q=this.container.querySelector("input.ql-image[type=file]");q==null&&(q=document.createElement("input"),q.setAttribute("type","file"),q.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),q.classList.add("ql-image"),q.addEventListener("change",function(){if(q.files!=null&&q.files[0]!=null){var B=new FileReader;B.onload=function(N){var V=M.quill.getSelection(!0);M.quill.updateContents(new f.default().retain(V.index).delete(V.length).insert({image:N.target.result}),u.default.sources.USER),M.quill.setSelection(V.index+1,u.default.sources.SILENT),q.value=""},B.readAsDataURL(q.files[0])}}),this.container.appendChild(q)),q.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var H=(function(A){R(M,A);function M(q,B){O(this,M);var N=S(this,(M.__proto__||Object.getPrototypeOf(M)).call(this,q,B));return N.textbox=N.root.querySelector('input[type="text"]'),N.listen(),N}return o(M,[{key:"listen",value:function(){var B=this;this.textbox.addEventListener("keydown",function(N){p.default.match(N,"enter")?(B.save(),N.preventDefault()):p.default.match(N,"escape")&&(B.cancel(),N.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),N!=null?this.textbox.value=N:B!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+B)||""),this.root.setAttribute("data-mode",B)}},{key:"restoreFocus",value:function(){var B=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=B}},{key:"save",value:function(){var B=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var N=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",B,u.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",B,u.default.sources.USER)),this.quill.root.scrollTop=N;break}case"video":B=D(B);case"formula":{if(!B)break;var V=this.quill.getSelection(!0);if(V!=null){var K=V.index+V.length;this.quill.insertEmbed(K,this.root.getAttribute("data-mode"),B,u.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(K+1," ",u.default.sources.USER),this.quill.setSelection(K+2,u.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),M})(C.default);function D(A){var M=A.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||A.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return M?(M[1]||"https")+"://www.youtube.com/embed/"+M[2]+"?showinfo=0":(M=A.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(M[1]||"https")+"://player.vimeo.com/video/"+M[2]+"/":A}function j(A,M){var q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;M.forEach(function(B){var N=document.createElement("option");B===q?N.setAttribute("selected","selected"):N.setAttribute("value",B),A.appendChild(N)})}i.BaseTooltip=H,i.default=z}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function a(){this.head=this.tail=null,this.length=0}return a.prototype.append=function(){for(var s=[],c=0;c<arguments.length;c++)s[c]=arguments[c];this.insertBefore(s[0],null),s.length>1&&this.append.apply(this,s.slice(1))},a.prototype.contains=function(s){for(var c,d=this.iterator();c=d();)if(c===s)return!0;return!1},a.prototype.insertBefore=function(s,c){s&&(s.next=c,c!=null?(s.prev=c.prev,c.prev!=null&&(c.prev.next=s),c.prev=s,c===this.head&&(this.head=s)):this.tail!=null?(this.tail.next=s,s.prev=this.tail,this.tail=s):(s.prev=null,this.head=this.tail=s),this.length+=1)},a.prototype.offset=function(s){for(var c=0,d=this.head;d!=null;){if(d===s)return c;c+=d.length(),d=d.next}return-1},a.prototype.remove=function(s){this.contains(s)&&(s.prev!=null&&(s.prev.next=s.next),s.next!=null&&(s.next.prev=s.prev),s===this.head&&(this.head=s.next),s===this.tail&&(this.tail=s.prev),this.length-=1)},a.prototype.iterator=function(s){return s===void 0&&(s=this.head),function(){var c=s;return s!=null&&(s=s.next),c}},a.prototype.find=function(s,c){c===void 0&&(c=!1);for(var d,f=this.iterator();d=f();){var l=d.length();if(s<l||c&&s===l&&(d.next==null||d.next.length()!==0))return[d,s];s-=l}return[null,0]},a.prototype.forEach=function(s){for(var c,d=this.iterator();c=d();)s(c)},a.prototype.forEachAt=function(s,c,d){if(!(c<=0))for(var f=this.find(s),l=f[0],u=f[1],h,p=s-u,m=this.iterator(l);(h=m())&&p<s+c;){var v=h.length();s>p?d(h,s-p,Math.min(c,p+v-s)):d(h,0,Math.min(v,s+c-p)),p+=v}},a.prototype.map=function(s){return this.reduce(function(c,d){return c.push(s(d)),c},[])},a.prototype.reduce=function(s,c){for(var d,f=this.iterator();d=f();)c=s(c,d);return c},a})();i.default=o}),(function(t,i,n){var o=this&&this.__extends||(function(){var l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,h){u.__proto__=h}||function(u,h){for(var p in h)h.hasOwnProperty(p)&&(u[p]=h[p])};return function(u,h){l(u,h);function p(){this.constructor=u}u.prototype=h===null?Object.create(h):(p.prototype=h.prototype,new p)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(17),s=n(1),c={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},d=100,f=(function(l){o(u,l);function u(h){var p=l.call(this,h)||this;return p.scroll=p,p.observer=new MutationObserver(function(m){p.update(m)}),p.observer.observe(p.domNode,c),p.attach(),p}return u.prototype.detach=function(){l.prototype.detach.call(this),this.observer.disconnect()},u.prototype.deleteAt=function(h,p){this.update(),h===0&&p===this.length()?this.children.forEach(function(m){m.remove()}):l.prototype.deleteAt.call(this,h,p)},u.prototype.formatAt=function(h,p,m,v){this.update(),l.prototype.formatAt.call(this,h,p,m,v)},u.prototype.insertAt=function(h,p,m){this.update(),l.prototype.insertAt.call(this,h,p,m)},u.prototype.optimize=function(h,p){var m=this;h===void 0&&(h=[]),p===void 0&&(p={}),l.prototype.optimize.call(this,p);for(var v=[].slice.call(this.observer.takeRecords());v.length>0;)h.push(v.pop());for(var y=function(x,_){_===void 0&&(_=!0),!(x==null||x===m)&&x.domNode.parentNode!=null&&(x.domNode[s.DATA_KEY].mutations==null&&(x.domNode[s.DATA_KEY].mutations=[]),_&&y(x.parent))},g=function(x){x.domNode[s.DATA_KEY]==null||x.domNode[s.DATA_KEY].mutations==null||(x instanceof a.default&&x.children.forEach(g),x.optimize(p))},w=h,b=0;w.length>0;b+=1){if(b>=d)throw new Error("[Parchment] Maximum optimize iterations reached");for(w.forEach(function(x){var _=s.find(x.target,!0);_!=null&&(_.domNode===x.target&&(x.type==="childList"?(y(s.find(x.previousSibling,!1)),[].forEach.call(x.addedNodes,function(E){var C=s.find(E,!1);y(C,!1),C instanceof a.default&&C.children.forEach(function(k){y(k,!1)})})):x.type==="attributes"&&y(_.prev)),y(_))}),this.children.forEach(g),w=[].slice.call(this.observer.takeRecords()),v=w.slice();v.length>0;)h.push(v.pop())}},u.prototype.update=function(h,p){var m=this;p===void 0&&(p={}),h=h||this.observer.takeRecords(),h.map(function(v){var y=s.find(v.target,!0);return y==null?null:y.domNode[s.DATA_KEY].mutations==null?(y.domNode[s.DATA_KEY].mutations=[v],y):(y.domNode[s.DATA_KEY].mutations.push(v),null)}).forEach(function(v){v==null||v===m||v.domNode[s.DATA_KEY]==null||v.update(v.domNode[s.DATA_KEY].mutations||[],p)}),this.domNode[s.DATA_KEY].mutations!=null&&l.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,p),this.optimize(h,p)},u.blotName="scroll",u.defaultChild="block",u.scope=s.Scope.BLOCK_BLOT,u.tagName="DIV",u})(a.default);i.default=f}),(function(t,i,n){var o=this&&this.__extends||(function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,u){l.__proto__=u}||function(l,u){for(var h in u)u.hasOwnProperty(h)&&(l[h]=u[h])};return function(l,u){f(l,u);function h(){this.constructor=l}l.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(18),s=n(1);function c(f,l){if(Object.keys(f).length!==Object.keys(l).length)return!1;for(var u in f)if(f[u]!==l[u])return!1;return!0}var d=(function(f){o(l,f);function l(){return f!==null&&f.apply(this,arguments)||this}return l.formats=function(u){if(u.tagName!==l.tagName)return f.formats.call(this,u)},l.prototype.format=function(u,h){var p=this;u===this.statics.blotName&&!h?(this.children.forEach(function(m){m instanceof a.default||(m=m.wrap(l.blotName,!0)),p.attributes.copy(m)}),this.unwrap()):f.prototype.format.call(this,u,h)},l.prototype.formatAt=function(u,h,p,m){if(this.formats()[p]!=null||s.query(p,s.Scope.ATTRIBUTE)){var v=this.isolate(u,h);v.format(p,m)}else f.prototype.formatAt.call(this,u,h,p,m)},l.prototype.optimize=function(u){f.prototype.optimize.call(this,u);var h=this.formats();if(Object.keys(h).length===0)return this.unwrap();var p=this.next;p instanceof l&&p.prev===this&&c(h,p.formats())&&(p.moveChildren(this),p.remove())},l.blotName="inline",l.scope=s.Scope.INLINE_BLOT,l.tagName="SPAN",l})(a.default);i.default=d}),(function(t,i,n){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var u in l)l.hasOwnProperty(u)&&(f[u]=l[u])};return function(f,l){d(f,l);function u(){this.constructor=f}f.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(18),s=n(1),c=(function(d){o(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.formats=function(l){var u=s.query(f.blotName).tagName;if(l.tagName!==u)return d.formats.call(this,l)},f.prototype.format=function(l,u){s.query(l,s.Scope.BLOCK)!=null&&(l===this.statics.blotName&&!u?this.replaceWith(f.blotName):d.prototype.format.call(this,l,u))},f.prototype.formatAt=function(l,u,h,p){s.query(h,s.Scope.BLOCK)!=null?this.format(h,p):d.prototype.formatAt.call(this,l,u,h,p)},f.prototype.insertAt=function(l,u,h){if(h==null||s.query(u,s.Scope.INLINE)!=null)d.prototype.insertAt.call(this,l,u,h);else{var p=this.split(l),m=s.create(u,h);p.parent.insertBefore(m,p)}},f.prototype.update=function(l,u){navigator.userAgent.match(/Trident/)?this.build():d.prototype.update.call(this,l,u)},f.blotName="block",f.scope=s.Scope.BLOCK_BLOT,f.tagName="P",f})(a.default);i.default=c}),(function(t,i,n){var o=this&&this.__extends||(function(){var c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,f){d.__proto__=f}||function(d,f){for(var l in f)f.hasOwnProperty(l)&&(d[l]=f[l])};return function(d,f){c(d,f);function l(){this.constructor=d}d.prototype=f===null?Object.create(f):(l.prototype=f.prototype,new l)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(19),s=(function(c){o(d,c);function d(){return c!==null&&c.apply(this,arguments)||this}return d.formats=function(f){},d.prototype.format=function(f,l){c.prototype.formatAt.call(this,0,this.length(),f,l)},d.prototype.formatAt=function(f,l,u,h){f===0&&l===this.length()?this.format(u,h):c.prototype.formatAt.call(this,f,l,u,h)},d.prototype.formats=function(){return this.statics.formats(this.domNode)},d})(a.default);i.default=s}),(function(t,i,n){var o=this&&this.__extends||(function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,l){f.__proto__=l}||function(f,l){for(var u in l)l.hasOwnProperty(u)&&(f[u]=l[u])};return function(f,l){d(f,l);function u(){this.constructor=f}f.prototype=l===null?Object.create(l):(u.prototype=l.prototype,new u)}})();Object.defineProperty(i,"__esModule",{value:!0});var a=n(19),s=n(1),c=(function(d){o(f,d);function f(l){var u=d.call(this,l)||this;return u.text=u.statics.value(u.domNode),u}return f.create=function(l){return document.createTextNode(l)},f.value=function(l){var u=l.data;return u.normalize&&(u=u.normalize()),u},f.prototype.deleteAt=function(l,u){this.domNode.data=this.text=this.text.slice(0,l)+this.text.slice(l+u)},f.prototype.index=function(l,u){return this.domNode===l?u:-1},f.prototype.insertAt=function(l,u,h){h==null?(this.text=this.text.slice(0,l)+u+this.text.slice(l),this.domNode.data=this.text):d.prototype.insertAt.call(this,l,u,h)},f.prototype.length=function(){return this.text.length},f.prototype.optimize=function(l){d.prototype.optimize.call(this,l),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof f&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},f.prototype.position=function(l,u){return[this.domNode,l]},f.prototype.split=function(l,u){if(u===void 0&&(u=!1),!u){if(l===0)return this;if(l===this.length())return this.next}var h=s.create(this.domNode.splitText(l));return this.parent.insertBefore(h,this.next),this.text=this.statics.value(this.domNode),h},f.prototype.update=function(l,u){var h=this;l.some(function(p){return p.type==="characterData"&&p.target===h.domNode})&&(this.text=this.statics.value(this.domNode))},f.prototype.value=function(){return this.text},f.blotName="text",f.scope=s.Scope.INLINE_BLOT,f})(a.default);i.default=c}),(function(t,i,n){var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var a=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(s,c){return arguments.length>1&&!this.contains(s)==!c?c:a.call(this,s)}}String.prototype.startsWith||(String.prototype.startsWith=function(s,c){return c=c||0,this.substr(c,s.length)===s}),String.prototype.endsWith||(String.prototype.endsWith=function(s,c){var d=this.toString();(typeof c!="number"||!isFinite(c)||Math.floor(c)!==c||c>d.length)&&(c=d.length),c-=s.length;var f=d.indexOf(s,c);return f!==-1&&f===c}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(c){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof c!="function")throw new TypeError("predicate must be a function");for(var d=Object(this),f=d.length>>>0,l=arguments[1],u,h=0;h<f;h++)if(u=d[h],c.call(l,u,h,d))return u}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})}),(function(t,i){var n=-1,o=1,a=0;function s(b,x,_){if(b==x)return b?[[a,b]]:[];(_<0||b.length<_)&&(_=null);var E=l(b,x),C=b.substring(0,E);b=b.substring(E),x=x.substring(E),E=u(b,x);var k=b.substring(b.length-E);b=b.substring(0,b.length-E),x=x.substring(0,x.length-E);var O=c(b,x);return C&&O.unshift([a,C]),k&&O.push([a,k]),p(O),_!=null&&(O=y(O,_)),O=g(O),O}function c(b,x){var _;if(!b)return[[o,x]];if(!x)return[[n,b]];var E=b.length>x.length?b:x,C=b.length>x.length?x:b,k=E.indexOf(C);if(k!=-1)return _=[[o,E.substring(0,k)],[a,C],[o,E.substring(k+C.length)]],b.length>x.length&&(_[0][0]=_[2][0]=n),_;if(C.length==1)return[[n,b],[o,x]];var O=h(b,x);if(O){var S=O[0],R=O[1],T=O[2],P=O[3],L=O[4],F=s(S,T),$=s(R,P);return F.concat([[a,L]],$)}return d(b,x)}function d(b,x){for(var _=b.length,E=x.length,C=Math.ceil((_+E)/2),k=C,O=2*C,S=new Array(O),R=new Array(O),T=0;T<O;T++)S[T]=-1,R[T]=-1;S[k+1]=0,R[k+1]=0;for(var P=_-E,L=P%2!=0,F=0,$=0,z=0,H=0,D=0;D<C;D++){for(var j=-D+F;j<=D-$;j+=2){var A=k+j,M;j==-D||j!=D&&S[A-1]<S[A+1]?M=S[A+1]:M=S[A-1]+1;for(var q=M-j;M<_&&q<E&&b.charAt(M)==x.charAt(q);)M++,q++;if(S[A]=M,M>_)$+=2;else if(q>E)F+=2;else if(L){var B=k+P-j;if(B>=0&&B<O&&R[B]!=-1){var N=_-R[B];if(M>=N)return f(b,x,M,q)}}}for(var V=-D+z;V<=D-H;V+=2){var B=k+V,N;V==-D||V!=D&&R[B-1]<R[B+1]?N=R[B+1]:N=R[B-1]+1;for(var K=N-V;N<_&&K<E&&b.charAt(_-N-1)==x.charAt(E-K-1);)N++,K++;if(R[B]=N,N>_)H+=2;else if(K>E)z+=2;else if(!L){var A=k+P-V;if(A>=0&&A<O&&S[A]!=-1){var M=S[A],q=k+M-A;if(N=_-N,M>=N)return f(b,x,M,q)}}}}return[[n,b],[o,x]]}function f(b,x,_,E){var C=b.substring(0,_),k=x.substring(0,E),O=b.substring(_),S=x.substring(E),R=s(C,k),T=s(O,S);return R.concat(T)}function l(b,x){if(!b||!x||b.charAt(0)!=x.charAt(0))return 0;for(var _=0,E=Math.min(b.length,x.length),C=E,k=0;_<C;)b.substring(k,C)==x.substring(k,C)?(_=C,k=_):E=C,C=Math.floor((E-_)/2+_);return C}function u(b,x){if(!b||!x||b.charAt(b.length-1)!=x.charAt(x.length-1))return 0;for(var _=0,E=Math.min(b.length,x.length),C=E,k=0;_<C;)b.substring(b.length-C,b.length-k)==x.substring(x.length-C,x.length-k)?(_=C,k=_):E=C,C=Math.floor((E-_)/2+_);return C}function h(b,x){var _=b.length>x.length?b:x,E=b.length>x.length?x:b;if(_.length<4||E.length*2<_.length)return null;function C($,z,H){for(var D=$.substring(H,H+Math.floor($.length/4)),j=-1,A="",M,q,B,N;(j=z.indexOf(D,j+1))!=-1;){var V=l($.substring(H),z.substring(j)),K=u($.substring(0,H),z.substring(0,j));A.length<K+V&&(A=z.substring(j-K,j)+z.substring(j,j+V),M=$.substring(0,H-K),q=$.substring(H+V),B=z.substring(0,j-K),N=z.substring(j+V))}return A.length*2>=$.length?[M,q,B,N,A]:null}var k=C(_,E,Math.ceil(_.length/4)),O=C(_,E,Math.ceil(_.length/2)),S;if(!k&&!O)return null;O?k?S=k[4].length>O[4].length?k:O:S=O:S=k;var R,T,P,L;b.length>x.length?(R=S[0],T=S[1],P=S[2],L=S[3]):(P=S[0],L=S[1],R=S[2],T=S[3]);var F=S[4];return[R,T,P,L,F]}function p(b){b.push([a,""]);for(var x=0,_=0,E=0,C="",k="",O;x<b.length;)switch(b[x][0]){case o:E++,k+=b[x][1],x++;break;case n:_++,C+=b[x][1],x++;break;case a:_+E>1?(_!==0&&E!==0&&(O=l(k,C),O!==0&&(x-_-E>0&&b[x-_-E-1][0]==a?b[x-_-E-1][1]+=k.substring(0,O):(b.splice(0,0,[a,k.substring(0,O)]),x++),k=k.substring(O),C=C.substring(O)),O=u(k,C),O!==0&&(b[x][1]=k.substring(k.length-O)+b[x][1],k=k.substring(0,k.length-O),C=C.substring(0,C.length-O))),_===0?b.splice(x-E,_+E,[o,k]):E===0?b.splice(x-_,_+E,[n,C]):b.splice(x-_-E,_+E,[n,C],[o,k]),x=x-_-E+(_?1:0)+(E?1:0)+1):x!==0&&b[x-1][0]==a?(b[x-1][1]+=b[x][1],b.splice(x,1)):x++,E=0,_=0,C="",k="";break}b[b.length-1][1]===""&&b.pop();var S=!1;for(x=1;x<b.length-1;)b[x-1][0]==a&&b[x+1][0]==a&&(b[x][1].substring(b[x][1].length-b[x-1][1].length)==b[x-1][1]?(b[x][1]=b[x-1][1]+b[x][1].substring(0,b[x][1].length-b[x-1][1].length),b[x+1][1]=b[x-1][1]+b[x+1][1],b.splice(x-1,1),S=!0):b[x][1].substring(0,b[x+1][1].length)==b[x+1][1]&&(b[x-1][1]+=b[x+1][1],b[x][1]=b[x][1].substring(b[x+1][1].length)+b[x+1][1],b.splice(x+1,1),S=!0)),x++;S&&p(b)}var m=s;m.INSERT=o,m.DELETE=n,m.EQUAL=a,t.exports=m;function v(b,x){if(x===0)return[a,b];for(var _=0,E=0;E<b.length;E++){var C=b[E];if(C[0]===n||C[0]===a){var k=_+C[1].length;if(x===k)return[E+1,b];if(x<k){b=b.slice();var O=x-_,S=[C[0],C[1].slice(0,O)],R=[C[0],C[1].slice(O)];return b.splice(E,1,S,R),[E+1,b]}else _=k}}throw new Error("cursor_pos is out of bounds!")}function y(b,x){var _=v(b,x),E=_[1],C=_[0],k=E[C],O=E[C+1];if(k==null)return b;if(k[0]!==a)return b;if(O!=null&&k[1]+O[1]===O[1]+k[1])return E.splice(C,2,O,k),w(E,C,2);if(O!=null&&O[1].indexOf(k[1])===0){E.splice(C,2,[O[0],k[1]],[0,k[1]]);var S=O[1].slice(k[1].length);return S.length>0&&E.splice(C+2,0,[O[0],S]),w(E,C,3)}else return b}function g(b){for(var x=!1,_=function(O){return O.charCodeAt(0)>=56320&&O.charCodeAt(0)<=57343},E=function(O){return O.charCodeAt(O.length-1)>=55296&&O.charCodeAt(O.length-1)<=56319},C=2;C<b.length;C+=1)b[C-2][0]===a&&E(b[C-2][1])&&b[C-1][0]===n&&_(b[C-1][1])&&b[C][0]===o&&_(b[C][1])&&(x=!0,b[C-1][1]=b[C-2][1].slice(-1)+b[C-1][1],b[C][1]=b[C-2][1].slice(-1)+b[C][1],b[C-2][1]=b[C-2][1].slice(0,-1));if(!x)return b;for(var k=[],C=0;C<b.length;C+=1)b[C][1].length>0&&k.push(b[C]);return k}function w(b,x,_){for(var E=x+_-1;E>=0&&E>=x-1;E--)if(E+1<b.length){var C=b[E],k=b[E+1];C[0]===k[1]&&b.splice(E,2,[C[0],C[1]+k[1]])}return b}}),(function(t,i){i=t.exports=typeof Object.keys=="function"?Object.keys:n,i.shim=n;function n(o){var a=[];for(var s in o)a.push(s);return a}}),(function(t,i){var n=(function(){return Object.prototype.toString.call(arguments)})()=="[object Arguments]";i=t.exports=n?o:a,i.supported=o;function o(s){return Object.prototype.toString.call(s)=="[object Arguments]"}i.unsupported=a;function a(s){return s&&typeof s=="object"&&typeof s.length=="number"&&Object.prototype.hasOwnProperty.call(s,"callee")&&!Object.prototype.propertyIsEnumerable.call(s,"callee")||!1}}),(function(t,i){var n=Object.prototype.hasOwnProperty,o="~";function a(){}Object.create&&(a.prototype=Object.create(null),new a().__proto__||(o=!1));function s(d,f,l){this.fn=d,this.context=f,this.once=l||!1}function c(){this._events=new a,this._eventsCount=0}c.prototype.eventNames=function(){var f=[],l,u;if(this._eventsCount===0)return f;for(u in l=this._events)n.call(l,u)&&f.push(o?u.slice(1):u);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(l)):f},c.prototype.listeners=function(f,l){var u=o?o+f:f,h=this._events[u];if(l)return!!h;if(!h)return[];if(h.fn)return[h.fn];for(var p=0,m=h.length,v=new Array(m);p<m;p++)v[p]=h[p].fn;return v},c.prototype.emit=function(f,l,u,h,p,m){var v=o?o+f:f;if(!this._events[v])return!1;var y=this._events[v],g=arguments.length,w,b;if(y.fn){switch(y.once&&this.removeListener(f,y.fn,void 0,!0),g){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,l),!0;case 3:return y.fn.call(y.context,l,u),!0;case 4:return y.fn.call(y.context,l,u,h),!0;case 5:return y.fn.call(y.context,l,u,h,p),!0;case 6:return y.fn.call(y.context,l,u,h,p,m),!0}for(b=1,w=new Array(g-1);b<g;b++)w[b-1]=arguments[b];y.fn.apply(y.context,w)}else{var x=y.length,_;for(b=0;b<x;b++)switch(y[b].once&&this.removeListener(f,y[b].fn,void 0,!0),g){case 1:y[b].fn.call(y[b].context);break;case 2:y[b].fn.call(y[b].context,l);break;case 3:y[b].fn.call(y[b].context,l,u);break;case 4:y[b].fn.call(y[b].context,l,u,h);break;default:if(!w)for(_=1,w=new Array(g-1);_<g;_++)w[_-1]=arguments[_];y[b].fn.apply(y[b].context,w)}}return!0},c.prototype.on=function(f,l,u){var h=new s(l,u||this),p=o?o+f:f;return this._events[p]?this._events[p].fn?this._events[p]=[this._events[p],h]:this._events[p].push(h):(this._events[p]=h,this._eventsCount++),this},c.prototype.once=function(f,l,u){var h=new s(l,u||this,!0),p=o?o+f:f;return this._events[p]?this._events[p].fn?this._events[p]=[this._events[p],h]:this._events[p].push(h):(this._events[p]=h,this._eventsCount++),this},c.prototype.removeListener=function(f,l,u,h){var p=o?o+f:f;if(!this._events[p])return this;if(!l)return--this._eventsCount===0?this._events=new a:delete this._events[p],this;var m=this._events[p];if(m.fn)m.fn===l&&(!h||m.once)&&(!u||m.context===u)&&(--this._eventsCount===0?this._events=new a:delete this._events[p]);else{for(var v=0,y=[],g=m.length;v<g;v++)(m[v].fn!==l||h&&!m[v].once||u&&m[v].context!==u)&&y.push(m[v]);y.length?this._events[p]=y.length===1?y[0]:y:--this._eventsCount===0?this._events=new a:delete this._events[p]}return this},c.prototype.removeAllListeners=function(f){var l;return f?(l=o?o+f:f,this._events[l]&&(--this._eventsCount===0?this._events=new a:delete this._events[l])):(this._events=new a,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prototype.setMaxListeners=function(){return this},c.prefixed=o,c.EventEmitter=c,typeof t<"u"&&(t.exports=c)}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.matchText=i.matchSpacing=i.matchNewline=i.matchBlot=i.matchAttributor=i.default=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Q){return typeof Q}:function(Q){return Q&&typeof Symbol=="function"&&Q.constructor===Symbol&&Q!==Symbol.prototype?"symbol":typeof Q},a=(function(){function Q(Z,ae){var ie=[],ee=!0,ue=!1,ne=void 0;try{for(var he=Z[Symbol.iterator](),Se;!(ee=(Se=he.next()).done)&&(ie.push(Se.value),!(ae&&ie.length===ae));ee=!0);}catch(Me){ue=!0,ne=Me}finally{try{!ee&&he.return&&he.return()}finally{if(ue)throw ne}}return ie}return function(Z,ae){if(Array.isArray(Z))return Z;if(Symbol.iterator in Object(Z))return Q(Z,ae);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=(function(){function Q(Z,ae){for(var ie=0;ie<ae.length;ie++){var ee=ae[ie];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(Z,ee.key,ee)}}return function(Z,ae,ie){return ae&&Q(Z.prototype,ae),ie&&Q(Z,ie),Z}})(),c=n(3),d=R(c),f=n(2),l=R(f),u=n(0),h=R(u),p=n(5),m=R(p),v=n(10),y=R(v),g=n(9),w=R(g),b=n(36),x=n(37),_=n(13),E=R(_),C=n(26),k=n(38),O=n(39),S=n(40);function R(Q){return Q&&Q.__esModule?Q:{default:Q}}function T(Q,Z,ae){return Z in Q?Object.defineProperty(Q,Z,{value:ae,enumerable:!0,configurable:!0,writable:!0}):Q[Z]=ae,Q}function P(Q,Z){if(!(Q instanceof Z))throw new TypeError("Cannot call a class as a function")}function L(Q,Z){if(!Q)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Z&&(typeof Z=="object"||typeof Z=="function")?Z:Q}function F(Q,Z){if(typeof Z!="function"&&Z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof Z);Q.prototype=Object.create(Z&&Z.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}),Z&&(Object.setPrototypeOf?Object.setPrototypeOf(Q,Z):Q.__proto__=Z)}var $=(0,y.default)("quill:clipboard"),z="__ql-matcher",H=[[Node.TEXT_NODE,ve],[Node.TEXT_NODE,te],["br",re],[Node.ELEMENT_NODE,te],[Node.ELEMENT_NODE,X],[Node.ELEMENT_NODE,ce],[Node.ELEMENT_NODE,W],[Node.ELEMENT_NODE,fe],["li",se],["b",K.bind(K,"bold")],["i",K.bind(K,"italic")],["style",oe]],D=[b.AlignAttribute,k.DirectionAttribute].reduce(function(Q,Z){return Q[Z.keyName]=Z,Q},{}),j=[b.AlignStyle,x.BackgroundStyle,C.ColorStyle,k.DirectionStyle,O.FontStyle,S.SizeStyle].reduce(function(Q,Z){return Q[Z.keyName]=Z,Q},{}),A=(function(Q){F(Z,Q);function Z(ae,ie){P(this,Z);var ee=L(this,(Z.__proto__||Object.getPrototypeOf(Z)).call(this,ae,ie));return ee.quill.root.addEventListener("paste",ee.onPaste.bind(ee)),ee.container=ee.quill.addContainer("ql-clipboard"),ee.container.setAttribute("contenteditable",!0),ee.container.setAttribute("tabindex",-1),ee.matchers=[],H.concat(ee.options.matchers).forEach(function(ue){var ne=a(ue,2),he=ne[0],Se=ne[1];!ie.matchVisual&&Se===ce||ee.addMatcher(he,Se)}),ee}return s(Z,[{key:"addMatcher",value:function(ie,ee){this.matchers.push([ie,ee])}},{key:"convert",value:function(ie){if(typeof ie=="string")return this.container.innerHTML=ie.replace(/\>\r?\n +\</g,"><"),this.convert();var ee=this.quill.getFormat(this.quill.selection.savedRange.index);if(ee[E.default.blotName]){var ue=this.container.innerText;return this.container.innerHTML="",new l.default().insert(ue,T({},E.default.blotName,ee[E.default.blotName]))}var ne=this.prepareMatching(),he=a(ne,2),Se=he[0],Me=he[1],be=V(this.container,Se,Me);return B(be,`
|
|
45
|
+
`)&&be.ops[be.ops.length-1].attributes==null&&(be=be.compose(new l.default().retain(be.length()-1).delete(1))),$.log("convert",this.container.innerHTML,be),this.container.innerHTML="",be}},{key:"dangerouslyPasteHTML",value:function(ie,ee){var ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m.default.sources.API;if(typeof ie=="string")this.quill.setContents(this.convert(ie),ee),this.quill.setSelection(0,m.default.sources.SILENT);else{var ne=this.convert(ee);this.quill.updateContents(new l.default().retain(ie).concat(ne),ue),this.quill.setSelection(ie+ne.length(),m.default.sources.SILENT)}}},{key:"onPaste",value:function(ie){var ee=this;if(!(ie.defaultPrevented||!this.quill.isEnabled())){var ue=this.quill.getSelection(),ne=new l.default().retain(ue.index),he=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(m.default.sources.SILENT),setTimeout(function(){ne=ne.concat(ee.convert()).delete(ue.length),ee.quill.updateContents(ne,m.default.sources.USER),ee.quill.setSelection(ne.length()-ue.length,m.default.sources.SILENT),ee.quill.scrollingContainer.scrollTop=he,ee.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var ie=this,ee=[],ue=[];return this.matchers.forEach(function(ne){var he=a(ne,2),Se=he[0],Me=he[1];switch(Se){case Node.TEXT_NODE:ue.push(Me);break;case Node.ELEMENT_NODE:ee.push(Me);break;default:[].forEach.call(ie.container.querySelectorAll(Se),function(be){be[z]=be[z]||[],be[z].push(Me)});break}}),[ee,ue]}}]),Z})(w.default);A.DEFAULTS={matchers:[],matchVisual:!0};function M(Q,Z,ae){return(typeof Z>"u"?"undefined":o(Z))==="object"?Object.keys(Z).reduce(function(ie,ee){return M(ie,ee,Z[ee])},Q):Q.reduce(function(ie,ee){return ee.attributes&&ee.attributes[Z]?ie.push(ee):ie.insert(ee.insert,(0,d.default)({},T({},Z,ae),ee.attributes))},new l.default)}function q(Q){if(Q.nodeType!==Node.ELEMENT_NODE)return{};var Z="__ql-computed-style";return Q[Z]||(Q[Z]=window.getComputedStyle(Q))}function B(Q,Z){for(var ae="",ie=Q.ops.length-1;ie>=0&&ae.length<Z.length;--ie){var ee=Q.ops[ie];if(typeof ee.insert!="string")break;ae=ee.insert+ae}return ae.slice(-1*Z.length)===Z}function N(Q){if(Q.childNodes.length===0)return!1;var Z=q(Q);return["block","list-item"].indexOf(Z.display)>-1}function V(Q,Z,ae){return Q.nodeType===Q.TEXT_NODE?ae.reduce(function(ie,ee){return ee(Q,ie)},new l.default):Q.nodeType===Q.ELEMENT_NODE?[].reduce.call(Q.childNodes||[],function(ie,ee){var ue=V(ee,Z,ae);return ee.nodeType===Q.ELEMENT_NODE&&(ue=Z.reduce(function(ne,he){return he(ee,ne)},ue),ue=(ee[z]||[]).reduce(function(ne,he){return he(ee,ne)},ue)),ie.concat(ue)},new l.default):new l.default}function K(Q,Z,ae){return M(ae,Q,!0)}function W(Q,Z){var ae=h.default.Attributor.Attribute.keys(Q),ie=h.default.Attributor.Class.keys(Q),ee=h.default.Attributor.Style.keys(Q),ue={};return ae.concat(ie).concat(ee).forEach(function(ne){var he=h.default.query(ne,h.default.Scope.ATTRIBUTE);he!=null&&(ue[he.attrName]=he.value(Q),ue[he.attrName])||(he=D[ne],he!=null&&(he.attrName===ne||he.keyName===ne)&&(ue[he.attrName]=he.value(Q)||void 0),he=j[ne],he!=null&&(he.attrName===ne||he.keyName===ne)&&(he=j[ne],ue[he.attrName]=he.value(Q)||void 0))}),Object.keys(ue).length>0&&(Z=M(Z,ue)),Z}function X(Q,Z){var ae=h.default.query(Q);if(ae==null)return Z;if(ae.prototype instanceof h.default.Embed){var ie={},ee=ae.value(Q);ee!=null&&(ie[ae.blotName]=ee,Z=new l.default().insert(ie,ae.formats(Q)))}else typeof ae.formats=="function"&&(Z=M(Z,ae.blotName,ae.formats(Q)));return Z}function re(Q,Z){return B(Z,`
|
|
46
46
|
`)||Z.insert(`
|
|
47
47
|
`),Z}function oe(){return new l.default}function se(Q,Z){var ae=h.default.query(Q);if(ae==null||ae.blotName!=="list-item"||!B(Z,`
|
|
48
48
|
`))return Z;for(var ie=-1,ee=Q.parentNode;!ee.classList.contains("ql-clipboard");)(h.default.query(ee)||{}).blotName==="list"&&(ie+=1),ee=ee.parentNode;return ie<=0?Z:Z.compose(new l.default().retain(Z.length()-1).retain(1,{indent:ie}))}function te(Q,Z){return B(Z,`
|
|
@@ -50,13 +50,13 @@
|
|
|
50
50
|
`),Z}function ce(Q,Z){if(N(Q)&&Q.nextElementSibling!=null&&!B(Z,`
|
|
51
51
|
|
|
52
52
|
`)){var ae=Q.offsetHeight+parseFloat(q(Q).marginTop)+parseFloat(q(Q).marginBottom);Q.nextElementSibling.offsetTop>Q.offsetTop+ae*1.5&&Z.insert(`
|
|
53
|
-
`)}return Z}function fe(Q,Z){var ae={},ie=Q.style||{};return ie.fontStyle&&q(Q).fontStyle==="italic"&&(ae.italic=!0),ie.fontWeight&&(q(Q).fontWeight.startsWith("bold")||parseInt(q(Q).fontWeight)>=700)&&(ae.bold=!0),Object.keys(ae).length>0&&(Z=M(Z,ae)),parseFloat(ie.textIndent||0)>0&&(Z=new l.default().insert(" ").concat(Z)),Z}function ve(Q,Z){var ae=Q.data;if(Q.parentNode.tagName==="O:P")return Z.insert(ae.trim());if(ae.trim().length===0&&Q.parentNode.classList.contains("ql-clipboard"))return Z;if(!q(Q.parentNode).whiteSpace.startsWith("pre")){var ie=function(ue,ne){return ne=ne.replace(/[^\u00a0]/g,""),ne.length<1&&ue?" ":ne};ae=ae.replace(/\r\n/g," ").replace(/\n/g," "),ae=ae.replace(/\s\s+/g,ie.bind(ie,!0)),(Q.previousSibling==null&&N(Q.parentNode)||Q.previousSibling!=null&&N(Q.previousSibling))&&(ae=ae.replace(/^\s+/,ie.bind(ie,!1))),(Q.nextSibling==null&&N(Q.parentNode)||Q.nextSibling!=null&&N(Q.nextSibling))&&(ae=ae.replace(/\s+$/,ie.bind(ie,!1)))}return Z.insert(ae)}i.default=A,i.matchAttributor=W,i.matchBlot=X,i.matchNewline=te,i.matchSpacing=ce,i.matchText=ve}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function p(m,v){for(var y=0;y<v.length;y++){var g=v[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,v,y){return v&&p(m.prototype,v),y&&p(m,y),m}})(),a=function p(m,v,y){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,v);if(g===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:p(w,v,y)}else{if("value"in g)return g.value;var b=g.get;return b===void 0?void 0:b.call(y)}},s=n(6),c=d(s);function d(p){return p&&p.__esModule?p:{default:p}}function f(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function l(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:p}function u(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(p,m):p.__proto__=m)}var h=(function(p){u(m,p);function m(){return f(this,m),l(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,[{key:"optimize",value:function(y){a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,y),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),m})(c.default);h.blotName="bold",h.tagName=["STRONG","B"],i.default=h}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.addControls=i.default=void 0;var o=(function(){function S(R,T){var k=[],L=!0,F=!1,$=void 0;try{for(var z=R[Symbol.iterator](),H;!(L=(H=z.next()).done)&&(k.push(H.value),!(T&&k.length===T));L=!0);}catch(D){F=!0,$=D}finally{try{!L&&z.return&&z.return()}finally{if(F)throw $}}return k}return function(R,T){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return S(R,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function S(R,T){for(var k=0;k<T.length;k++){var L=T[k];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(R,L.key,L)}}return function(R,T,k){return T&&S(R.prototype,T),k&&S(R,k),R}})(),s=n(2),c=y(s),d=n(0),f=y(d),l=n(5),u=y(l),h=n(10),p=y(h),m=n(9),v=y(m);function y(S){return S&&S.__esModule?S:{default:S}}function g(S,R,T){return R in S?Object.defineProperty(S,R,{value:T,enumerable:!0,configurable:!0,writable:!0}):S[R]=T,S}function w(S,R){if(!(S instanceof R))throw new TypeError("Cannot call a class as a function")}function b(S,R){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:S}function x(S,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);S.prototype=Object.create(R&&R.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(S,R):S.__proto__=R)}var _=(0,p.default)("quill:toolbar"),E=(function(S){x(R,S);function R(T,k){w(this,R);var L=b(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,T,k));if(Array.isArray(L.options.container)){var F=document.createElement("div");P(F,L.options.container),T.container.parentNode.insertBefore(F,T.container),L.container=F}else typeof L.options.container=="string"?L.container=document.querySelector(L.options.container):L.container=L.options.container;if(!(L.container instanceof HTMLElement)){var $;return $=_.error("Container required for toolbar",L.options),b(L,$)}return L.container.classList.add("ql-toolbar"),L.controls=[],L.handlers={},Object.keys(L.options.handlers).forEach(function(z){L.addHandler(z,L.options.handlers[z])}),[].forEach.call(L.container.querySelectorAll("button, select"),function(z){L.attach(z)}),L.quill.on(u.default.events.EDITOR_CHANGE,function(z,H){z===u.default.events.SELECTION_CHANGE&&L.update(H)}),L.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){var z=L.quill.selection.getRange(),H=o(z,1),D=H[0];L.update(D)}),L}return a(R,[{key:"addHandler",value:function(k,L){this.handlers[k]=L}},{key:"attach",value:function(k){var L=this,F=[].find.call(k.classList,function(z){return z.indexOf("ql-")===0});if(F){if(F=F.slice(3),k.tagName==="BUTTON"&&k.setAttribute("type","button"),this.handlers[F]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[F]==null){_.warn("ignoring attaching to disabled format",F,k);return}if(f.default.query(F)==null){_.warn("ignoring attaching to nonexistent format",F,k);return}}var $=k.tagName==="SELECT"?"change":"click";k.addEventListener($,function(z){var H=void 0;if(k.tagName==="SELECT"){if(k.selectedIndex<0)return;var D=k.options[k.selectedIndex];D.hasAttribute("selected")?H=!1:H=D.value||!1}else k.classList.contains("ql-active")?H=!1:H=k.value||!k.hasAttribute("value"),z.preventDefault();L.quill.focus();var j=L.quill.selection.getRange(),A=o(j,1),M=A[0];if(L.handlers[F]!=null)L.handlers[F].call(L,H);else if(f.default.query(F).prototype instanceof f.default.Embed){if(H=prompt("Enter "+F),!H)return;L.quill.updateContents(new c.default().retain(M.index).delete(M.length).insert(g({},F,H)),u.default.sources.USER)}else L.quill.format(F,H,u.default.sources.USER);L.update(M)}),this.controls.push([F,k])}}},{key:"update",value:function(k){var L=k==null?{}:this.quill.getFormat(k);this.controls.forEach(function(F){var $=o(F,2),z=$[0],H=$[1];if(H.tagName==="SELECT"){var D=void 0;if(k==null)D=null;else if(L[z]==null)D=H.querySelector("option[selected]");else if(!Array.isArray(L[z])){var j=L[z];typeof j=="string"&&(j=j.replace(/\"/g,'\\"')),D=H.querySelector('option[value="'+j+'"]')}D==null?(H.value="",H.selectedIndex=-1):D.selected=!0}else if(k==null)H.classList.remove("ql-active");else if(H.hasAttribute("value")){var A=L[z]===H.getAttribute("value")||L[z]!=null&&L[z].toString()===H.getAttribute("value")||L[z]==null&&!H.getAttribute("value");H.classList.toggle("ql-active",A)}else H.classList.toggle("ql-active",L[z]!=null)})}}]),R})(v.default);E.DEFAULTS={};function C(S,R,T){var k=document.createElement("button");k.setAttribute("type","button"),k.classList.add("ql-"+R),T!=null&&(k.value=T),S.appendChild(k)}function P(S,R){Array.isArray(R[0])||(R=[R]),R.forEach(function(T){var k=document.createElement("span");k.classList.add("ql-formats"),T.forEach(function(L){if(typeof L=="string")C(k,L);else{var F=Object.keys(L)[0],$=L[F];Array.isArray($)?O(k,F,$):C(k,F,$)}}),S.appendChild(k)})}function O(S,R,T){var k=document.createElement("select");k.classList.add("ql-"+R),T.forEach(function(L){var F=document.createElement("option");L!==!1?F.setAttribute("value",L):F.setAttribute("selected","selected"),k.appendChild(F)}),S.appendChild(k)}E.DEFAULTS={container:null,handlers:{clean:function(){var R=this,T=this.quill.getSelection();if(T!=null)if(T.length==0){var k=this.quill.getFormat();Object.keys(k).forEach(function(L){f.default.query(L,f.default.Scope.INLINE)!=null&&R.quill.format(L,!1)})}else this.quill.removeFormat(T,u.default.sources.USER)},direction:function(R){var T=this.quill.getFormat().align;R==="rtl"&&T==null?this.quill.format("align","right",u.default.sources.USER):!R&&T==="right"&&this.quill.format("align",!1,u.default.sources.USER),this.quill.format("direction",R,u.default.sources.USER)},indent:function(R){var T=this.quill.getSelection(),k=this.quill.getFormat(T),L=parseInt(k.indent||0);if(R==="+1"||R==="-1"){var F=R==="+1"?1:-1;k.direction==="rtl"&&(F*=-1),this.quill.format("indent",L+F,u.default.sources.USER)}},link:function(R){R===!0&&(R=prompt("Enter link URL:")),this.quill.format("link",R,u.default.sources.USER)},list:function(R){var T=this.quill.getSelection(),k=this.quill.getFormat(T);R==="check"?k.list==="checked"||k.list==="unchecked"?this.quill.format("list",!1,u.default.sources.USER):this.quill.format("list","unchecked",u.default.sources.USER):this.quill.format("list",R,u.default.sources.USER)}}},i.default=E,i.addControls=P}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function p(m,v){for(var y=0;y<v.length;y++){var g=v[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,v,y){return v&&p(m.prototype,v),y&&p(m,y),m}})(),a=function p(m,v,y){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,v);if(g===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:p(w,v,y)}else{if("value"in g)return g.value;var b=g.get;return b===void 0?void 0:b.call(y)}},s=n(28),c=d(s);function d(p){return p&&p.__esModule?p:{default:p}}function f(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function l(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:p}function u(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(p,m):p.__proto__=m)}var h=(function(p){u(m,p);function m(v,y){f(this,m);var g=l(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,v));return g.label.innerHTML=y,g.container.classList.add("ql-color-picker"),[].slice.call(g.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(w){w.classList.add("ql-primary")}),g}return o(m,[{key:"buildItem",value:function(y){var g=a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"buildItem",this).call(this,y);return g.style.backgroundColor=y.getAttribute("value")||"",g}},{key:"selectItem",value:function(y,g){a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,y,g);var w=this.label.querySelector(".ql-color-label"),b=y&&y.getAttribute("data-value")||"";w&&(w.tagName==="line"?w.style.stroke=b:w.style.fill=b)}}]),m})(c.default);i.default=h}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function p(m,v){for(var y=0;y<v.length;y++){var g=v[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,v,y){return v&&p(m.prototype,v),y&&p(m,y),m}})(),a=function p(m,v,y){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,v);if(g===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:p(w,v,y)}else{if("value"in g)return g.value;var b=g.get;return b===void 0?void 0:b.call(y)}},s=n(28),c=d(s);function d(p){return p&&p.__esModule?p:{default:p}}function f(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function l(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:p}function u(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(p,m):p.__proto__=m)}var h=(function(p){u(m,p);function m(v,y){f(this,m);var g=l(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,v));return g.container.classList.add("ql-icon-picker"),[].forEach.call(g.container.querySelectorAll(".ql-picker-item"),function(w){w.innerHTML=y[w.getAttribute("data-value")||""]}),g.defaultItem=g.container.querySelector(".ql-selected"),g.selectItem(g.defaultItem),g}return o(m,[{key:"selectItem",value:function(y,g){a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,y,g),y=y||this.defaultItem,this.label.innerHTML=y.innerHTML}}]),m})(c.default);i.default=h}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function c(d,f){for(var l=0;l<f.length;l++){var u=f[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,u.key,u)}}return function(d,f,l){return f&&c(d.prototype,f),l&&c(d,l),d}})();function a(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")}var s=(function(){function c(d,f){var l=this;a(this,c),this.quill=d,this.boundsContainer=f||document.body,this.root=d.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){l.root.style.marginTop=-1*l.quill.root.scrollTop+"px"}),this.hide()}return o(c,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(f){var l=f.left+f.width/2-this.root.offsetWidth/2,u=f.bottom+this.quill.root.scrollTop;this.root.style.left=l+"px",this.root.style.top=u+"px",this.root.classList.remove("ql-flip");var h=this.boundsContainer.getBoundingClientRect(),p=this.root.getBoundingClientRect(),m=0;if(p.right>h.right&&(m=h.right-p.right,this.root.style.left=l+m+"px"),p.left<h.left&&(m=h.left-p.left,this.root.style.left=l+m+"px"),p.bottom>h.bottom){var v=p.bottom-p.top,y=f.bottom-f.top+v;this.root.style.top=u-y+"px",this.root.classList.add("ql-flip")}return m}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),c})();i.default=s}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function O(S,R){var T=[],k=!0,L=!1,F=void 0;try{for(var $=S[Symbol.iterator](),z;!(k=(z=$.next()).done)&&(T.push(z.value),!(R&&T.length===R));k=!0);}catch(H){L=!0,F=H}finally{try{!k&&$.return&&$.return()}finally{if(L)throw F}}return T}return function(S,R){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return O(S,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=function O(S,R,T){S===null&&(S=Function.prototype);var k=Object.getOwnPropertyDescriptor(S,R);if(k===void 0){var L=Object.getPrototypeOf(S);return L===null?void 0:O(L,R,T)}else{if("value"in k)return k.value;var F=k.get;return F===void 0?void 0:F.call(T)}},s=(function(){function O(S,R){for(var T=0;T<R.length;T++){var k=R[T];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(S,k.key,k)}}return function(S,R,T){return R&&O(S.prototype,R),T&&O(S,T),S}})(),c=n(3),d=w(c),f=n(8),l=w(f),u=n(43),h=w(u),p=n(27),m=w(p),v=n(15),y=n(41),g=w(y);function w(O){return O&&O.__esModule?O:{default:O}}function b(O,S){if(!(O instanceof S))throw new TypeError("Cannot call a class as a function")}function x(O,S){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:O}function _(O,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);O.prototype=Object.create(S&&S.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(O,S):O.__proto__=S)}var E=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],C=(function(O){_(S,O);function S(R,T){b(this,S),T.modules.toolbar!=null&&T.modules.toolbar.container==null&&(T.modules.toolbar.container=E);var k=x(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,R,T));return k.quill.container.classList.add("ql-snow"),k}return s(S,[{key:"extendToolbar",value:function(T){T.container.classList.add("ql-snow"),this.buildButtons([].slice.call(T.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(T.container.querySelectorAll("select")),g.default),this.tooltip=new P(this.quill,this.options.bounds),T.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(k,L){T.handlers.link.call(T,!L.format.link)})}}]),S})(h.default);C.DEFAULTS=(0,d.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(S){if(S){var R=this.quill.getSelection();if(R==null||R.length==0)return;var T=this.quill.getText(R);/^\S+@\S+\.\S+$/.test(T)&&T.indexOf("mailto:")!==0&&(T="mailto:"+T);var k=this.quill.theme.tooltip;k.edit("link",T)}else this.quill.format("link",!1)}}}}});var P=(function(O){_(S,O);function S(R,T){b(this,S);var k=x(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,R,T));return k.preview=k.root.querySelector("a.ql-preview"),k}return s(S,[{key:"listen",value:function(){var T=this;a(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(k){T.root.classList.contains("ql-editing")?T.save():T.edit("link",T.preview.textContent),k.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(k){if(T.linkRange!=null){var L=T.linkRange;T.restoreFocus(),T.quill.formatText(L,"link",!1,l.default.sources.USER),delete T.linkRange}k.preventDefault(),T.hide()}),this.quill.on(l.default.events.SELECTION_CHANGE,function(k,L,F){if(k!=null){if(k.length===0&&F===l.default.sources.USER){var $=T.quill.scroll.descendant(m.default,k.index),z=o($,2),H=z[0],D=z[1];if(H!=null){T.linkRange=new v.Range(k.index-D,H.length());var j=m.default.formats(H.domNode);T.preview.textContent=j,T.preview.setAttribute("href",j),T.show(),T.position(T.quill.getBounds(T.linkRange));return}}else delete T.linkRange;T.hide()}})}},{key:"show",value:function(){a(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),S})(u.BaseTooltip);P.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),i.default=C}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(29),a=ee(o),s=n(36),c=n(38),d=n(64),f=n(65),l=ee(f),u=n(66),h=ee(u),p=n(67),m=ee(p),v=n(37),y=n(26),g=n(39),w=n(40),b=n(56),x=ee(b),_=n(68),E=ee(_),C=n(27),P=ee(C),O=n(69),S=ee(O),R=n(70),T=ee(R),k=n(71),L=ee(k),F=n(72),$=ee(F),z=n(73),H=ee(z),D=n(13),j=ee(D),A=n(74),M=ee(A),q=n(75),B=ee(q),N=n(57),V=ee(N),K=n(41),W=ee(K),X=n(28),re=ee(X),oe=n(59),se=ee(oe),te=n(60),ce=ee(te),fe=n(61),ve=ee(fe),Q=n(108),Z=ee(Q),ae=n(62),ie=ee(ae);function ee(ue){return ue&&ue.__esModule?ue:{default:ue}}a.default.register({"attributors/attribute/direction":c.DirectionAttribute,"attributors/class/align":s.AlignClass,"attributors/class/background":v.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":c.DirectionClass,"attributors/class/font":g.FontClass,"attributors/class/size":w.SizeClass,"attributors/style/align":s.AlignStyle,"attributors/style/background":v.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":c.DirectionStyle,"attributors/style/font":g.FontStyle,"attributors/style/size":w.SizeStyle},!0),a.default.register({"formats/align":s.AlignClass,"formats/direction":c.DirectionClass,"formats/indent":d.IndentClass,"formats/background":v.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":g.FontClass,"formats/size":w.SizeClass,"formats/blockquote":l.default,"formats/code-block":j.default,"formats/header":h.default,"formats/list":m.default,"formats/bold":x.default,"formats/code":D.Code,"formats/italic":E.default,"formats/link":P.default,"formats/script":S.default,"formats/strike":T.default,"formats/underline":L.default,"formats/image":$.default,"formats/video":H.default,"formats/list/item":p.ListItem,"modules/formula":M.default,"modules/syntax":B.default,"modules/toolbar":V.default,"themes/bubble":Z.default,"themes/snow":ie.default,"ui/icons":W.default,"ui/picker":re.default,"ui/icon-picker":ce.default,"ui/color-picker":se.default,"ui/tooltip":ve.default},!0),i.default=a.default}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.IndentClass=void 0;var o=(function(){function m(v,y){for(var g=0;g<y.length;g++){var w=y[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,w.key,w)}}return function(v,y,g){return y&&m(v.prototype,y),g&&m(v,g),v}})(),a=function m(v,y,g){v===null&&(v=Function.prototype);var w=Object.getOwnPropertyDescriptor(v,y);if(w===void 0){var b=Object.getPrototypeOf(v);return b===null?void 0:m(b,y,g)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(g)}},s=n(0),c=d(s);function d(m){return m&&m.__esModule?m:{default:m}}function f(m,v){if(!(m instanceof v))throw new TypeError("Cannot call a class as a function")}function l(m,v){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:m}function u(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);m.prototype=Object.create(v&&v.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(m,v):m.__proto__=v)}var h=(function(m){u(v,m);function v(){return f(this,v),l(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return o(v,[{key:"add",value:function(g,w){if(w==="+1"||w==="-1"){var b=this.value(g)||0;w=w==="+1"?b+1:b-1}return w===0?(this.remove(g),!0):a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"add",this).call(this,g,w)}},{key:"canAdd",value:function(g,w){return a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"canAdd",this).call(this,g,w)||a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"canAdd",this).call(this,g,parseInt(w))}},{key:"value",value:function(g){return parseInt(a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"value",this).call(this,g))||void 0}}]),v})(c.default.Attributor.Class),p=new h("indent","ql-indent",{scope:c.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});i.IndentClass=p}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(4),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function c(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function f(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){f(h,u);function h(){return c(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="blockquote",l.tagName="blockquote",i.default=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function h(p,m){for(var v=0;v<m.length;v++){var y=m[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}return function(p,m,v){return m&&h(p.prototype,m),v&&h(p,v),p}})(),a=n(4),s=c(a);function c(h){return h&&h.__esModule?h:{default:h}}function d(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function l(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var u=(function(h){l(p,h);function p(){return d(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return o(p,null,[{key:"formats",value:function(v){return this.tagName.indexOf(v.tagName)+1}}]),p})(s.default);u.blotName="header",u.tagName=["H1","H2","H3","H4","H5","H6"],i.default=u}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.ListItem=void 0;var o=(function(){function b(x,_){for(var E=0;E<_.length;E++){var C=_[E];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(x,C.key,C)}}return function(x,_,E){return _&&b(x.prototype,_),E&&b(x,E),x}})(),a=function b(x,_,E){x===null&&(x=Function.prototype);var C=Object.getOwnPropertyDescriptor(x,_);if(C===void 0){var P=Object.getPrototypeOf(x);return P===null?void 0:b(P,_,E)}else{if("value"in C)return C.value;var O=C.get;return O===void 0?void 0:O.call(E)}},s=n(0),c=h(s),d=n(4),f=h(d),l=n(25),u=h(l);function h(b){return b&&b.__esModule?b:{default:b}}function p(b,x,_){return x in b?Object.defineProperty(b,x,{value:_,enumerable:!0,configurable:!0,writable:!0}):b[x]=_,b}function m(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")}function v(b,x){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:b}function y(b,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);b.prototype=Object.create(x&&x.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(b,x):b.__proto__=x)}var g=(function(b){y(x,b);function x(){return m(this,x),v(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return o(x,[{key:"format",value:function(E,C){E===w.blotName&&!C?this.replaceWith(c.default.create(this.statics.scope)):a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,E,C)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(E,C){return this.parent.isolate(this.offset(this.parent),this.length()),E===this.parent.statics.blotName?(this.parent.replaceWith(E,C),this):(this.parent.unwrap(),a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replaceWith",this).call(this,E,C))}}],[{key:"formats",value:function(E){return E.tagName===this.tagName?void 0:a(x.__proto__||Object.getPrototypeOf(x),"formats",this).call(this,E)}}]),x})(f.default);g.blotName="list-item",g.tagName="LI";var w=(function(b){y(x,b),o(x,null,[{key:"create",value:function(E){var C=E==="ordered"?"OL":"UL",P=a(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,C);return(E==="checked"||E==="unchecked")&&P.setAttribute("data-checked",E==="checked"),P}},{key:"formats",value:function(E){if(E.tagName==="OL")return"ordered";if(E.tagName==="UL")return E.hasAttribute("data-checked")?E.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function x(_){m(this,x);var E=v(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,_)),C=function(O){if(O.target.parentNode===_){var S=E.statics.formats(_),R=c.default.find(O.target);S==="checked"?R.format("list","unchecked"):S==="unchecked"&&R.format("list","checked")}};return _.addEventListener("touchstart",C),_.addEventListener("mousedown",C),E}return o(x,[{key:"format",value:function(E,C){this.children.length>0&&this.children.tail.format(E,C)}},{key:"formats",value:function(){return p({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(E,C){if(E instanceof g)a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertBefore",this).call(this,E,C);else{var P=C==null?this.length():C.offset(this),O=this.split(P);O.parent.insertBefore(E,O)}}},{key:"optimize",value:function(E){a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,E);var C=this.next;C!=null&&C.prev===this&&C.statics.blotName===this.statics.blotName&&C.domNode.tagName===this.domNode.tagName&&C.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(C.moveChildren(this),C.remove())}},{key:"replace",value:function(E){if(E.statics.blotName!==this.statics.blotName){var C=c.default.create(this.statics.defaultChild);E.moveChildren(C),this.appendChild(C)}a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replace",this).call(this,E)}}]),x})(u.default);w.blotName="list",w.scope=c.default.Scope.BLOCK_BLOT,w.tagName=["OL","UL"],w.defaultChild="list-item",w.allowedChildren=[g],i.ListItem=g,i.default=w}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(56),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function c(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function f(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){f(h,u);function h(){return c(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="italic",l.tagName=["EM","I"],i.default=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function p(m,v){for(var y=0;y<v.length;y++){var g=v[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,v,y){return v&&p(m.prototype,v),y&&p(m,y),m}})(),a=function p(m,v,y){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,v);if(g===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:p(w,v,y)}else{if("value"in g)return g.value;var b=g.get;return b===void 0?void 0:b.call(y)}},s=n(6),c=d(s);function d(p){return p&&p.__esModule?p:{default:p}}function f(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function l(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:p}function u(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(p,m):p.__proto__=m)}var h=(function(p){u(m,p);function m(){return f(this,m),l(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,null,[{key:"create",value:function(y){return y==="super"?document.createElement("sup"):y==="sub"?document.createElement("sub"):a(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,y)}},{key:"formats",value:function(y){if(y.tagName==="SUB")return"sub";if(y.tagName==="SUP")return"super"}}]),m})(c.default);h.blotName="script",h.tagName=["SUB","SUP"],i.default=h}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(6),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function c(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function f(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){f(h,u);function h(){return c(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="strike",l.tagName="S",i.default=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(6),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function c(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function f(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){f(h,u);function h(){return c(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="underline",l.tagName="U",i.default=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function v(y,g){for(var w=0;w<g.length;w++){var b=g[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,g,w){return g&&v(y.prototype,g),w&&v(y,w),y}})(),a=function v(y,g,w){y===null&&(y=Function.prototype);var b=Object.getOwnPropertyDescriptor(y,g);if(b===void 0){var x=Object.getPrototypeOf(y);return x===null?void 0:v(x,g,w)}else{if("value"in b)return b.value;var _=b.get;return _===void 0?void 0:_.call(w)}},s=n(0),c=f(s),d=n(27);function f(v){return v&&v.__esModule?v:{default:v}}function l(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function u(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function h(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var p=["alt","height","width"],m=(function(v){h(y,v);function y(){return l(this,y),u(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"format",value:function(w,b){p.indexOf(w)>-1?b?this.domNode.setAttribute(w,b):this.domNode.removeAttribute(w):a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,w,b)}}],[{key:"create",value:function(w){var b=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,w);return typeof w=="string"&&b.setAttribute("src",this.sanitize(w)),b}},{key:"formats",value:function(w){return p.reduce(function(b,x){return w.hasAttribute(x)&&(b[x]=w.getAttribute(x)),b},{})}},{key:"match",value:function(w){return/\.(jpe?g|gif|png)$/.test(w)||/^data:image\/.+;base64/.test(w)}},{key:"sanitize",value:function(w){return(0,d.sanitize)(w,["http","https","data"])?w:"//:0"}},{key:"value",value:function(w){return w.getAttribute("src")}}]),y})(c.default.Embed);m.blotName="image",m.tagName="IMG",i.default=m}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function v(y,g){for(var w=0;w<g.length;w++){var b=g[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,g,w){return g&&v(y.prototype,g),w&&v(y,w),y}})(),a=function v(y,g,w){y===null&&(y=Function.prototype);var b=Object.getOwnPropertyDescriptor(y,g);if(b===void 0){var x=Object.getPrototypeOf(y);return x===null?void 0:v(x,g,w)}else{if("value"in b)return b.value;var _=b.get;return _===void 0?void 0:_.call(w)}},s=n(4),c=n(27),d=f(c);function f(v){return v&&v.__esModule?v:{default:v}}function l(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function u(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function h(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var p=["height","width"],m=(function(v){h(y,v);function y(){return l(this,y),u(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"format",value:function(w,b){p.indexOf(w)>-1?b?this.domNode.setAttribute(w,b):this.domNode.removeAttribute(w):a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,w,b)}}],[{key:"create",value:function(w){var b=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,w);return b.setAttribute("frameborder","0"),b.setAttribute("allowfullscreen",!0),b.setAttribute("src",this.sanitize(w)),b}},{key:"formats",value:function(w){return p.reduce(function(b,x){return w.hasAttribute(x)&&(b[x]=w.getAttribute(x)),b},{})}},{key:"sanitize",value:function(w){return d.default.sanitize(w)}},{key:"value",value:function(w){return w.getAttribute("src")}}]),y})(s.BlockEmbed);m.blotName="video",m.className="ql-video",m.tagName="IFRAME",i.default=m}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.FormulaBlot=void 0;var o=(function(){function w(b,x){for(var _=0;_<x.length;_++){var E=x[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(b,E.key,E)}}return function(b,x,_){return x&&w(b.prototype,x),_&&w(b,_),b}})(),a=function w(b,x,_){b===null&&(b=Function.prototype);var E=Object.getOwnPropertyDescriptor(b,x);if(E===void 0){var C=Object.getPrototypeOf(b);return C===null?void 0:w(C,x,_)}else{if("value"in E)return E.value;var P=E.get;return P===void 0?void 0:P.call(_)}},s=n(35),c=h(s),d=n(5),f=h(d),l=n(9),u=h(l);function h(w){return w&&w.__esModule?w:{default:w}}function p(w,b){if(!(w instanceof b))throw new TypeError("Cannot call a class as a function")}function m(w,b){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:w}function v(w,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);w.prototype=Object.create(b&&b.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(w,b):w.__proto__=b)}var y=(function(w){v(b,w);function b(){return p(this,b),m(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,null,[{key:"create",value:function(_){var E=a(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,_);return typeof _=="string"&&(window.katex.render(_,E,{throwOnError:!1,errorColor:"#f00"}),E.setAttribute("data-value",_)),E}},{key:"value",value:function(_){return _.getAttribute("data-value")}}]),b})(c.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var g=(function(w){v(b,w),o(b,null,[{key:"register",value:function(){f.default.register(y,!0)}}]);function b(){p(this,b);var x=m(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return x}return b})(u.default);i.FormulaBlot=y,i.default=g}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.CodeToken=i.CodeBlock=void 0;var o=(function(){function _(E,C){for(var P=0;P<C.length;P++){var O=C[P];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(E,O.key,O)}}return function(E,C,P){return C&&_(E.prototype,C),P&&_(E,P),E}})(),a=function _(E,C,P){E===null&&(E=Function.prototype);var O=Object.getOwnPropertyDescriptor(E,C);if(O===void 0){var S=Object.getPrototypeOf(E);return S===null?void 0:_(S,C,P)}else{if("value"in O)return O.value;var R=O.get;return R===void 0?void 0:R.call(P)}},s=n(0),c=m(s),d=n(5),f=m(d),l=n(9),u=m(l),h=n(13),p=m(h);function m(_){return _&&_.__esModule?_:{default:_}}function v(_,E){if(!(_ instanceof E))throw new TypeError("Cannot call a class as a function")}function y(_,E){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:_}function g(_,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);_.prototype=Object.create(E&&E.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(_,E):_.__proto__=E)}var w=(function(_){g(E,_);function E(){return v(this,E),y(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return o(E,[{key:"replaceWith",value:function(P){this.domNode.textContent=this.domNode.textContent,this.attach(),a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,P)}},{key:"highlight",value:function(P){var O=this.domNode.textContent;this.cachedText!==O&&((O.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=P(O),this.domNode.normalize(),this.attach()),this.cachedText=O)}}]),E})(p.default);w.className="ql-syntax";var b=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),x=(function(_){g(E,_),o(E,null,[{key:"register",value:function(){f.default.register(b,!0),f.default.register(w,!0)}}]);function E(C,P){v(this,E);var O=y(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,C,P));if(typeof O.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var S=null;return O.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(S),S=setTimeout(function(){O.highlight(),S=null},O.options.interval)}),O.highlight(),O}return o(E,[{key:"highlight",value:function(){var P=this;if(!this.quill.selection.composing){this.quill.update(f.default.sources.USER);var O=this.quill.getSelection();this.quill.scroll.descendants(w).forEach(function(S){S.highlight(P.options.highlight)}),this.quill.update(f.default.sources.SILENT),O!=null&&this.quill.setSelection(O,f.default.sources.SILENT)}}}]),E})(u.default);x.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(_){var E=window.hljs.highlightAuto(_);return E.value}})(),interval:1e3},i.CodeBlock=w,i.CodeToken=b,i.default=x}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'}),(function(t,i){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'}),(function(t,i){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'}),(function(t,i){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'}),(function(t,i){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BubbleTooltip=void 0;var o=function E(C,P,O){C===null&&(C=Function.prototype);var S=Object.getOwnPropertyDescriptor(C,P);if(S===void 0){var R=Object.getPrototypeOf(C);return R===null?void 0:E(R,P,O)}else{if("value"in S)return S.value;var T=S.get;return T===void 0?void 0:T.call(O)}},a=(function(){function E(C,P){for(var O=0;O<P.length;O++){var S=P[O];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(C,S.key,S)}}return function(C,P,O){return P&&E(C.prototype,P),O&&E(C,O),C}})(),s=n(3),c=v(s),d=n(8),f=v(d),l=n(43),u=v(l),h=n(15),p=n(41),m=v(p);function v(E){return E&&E.__esModule?E:{default:E}}function y(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")}function g(E,C){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:E}function w(E,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);E.prototype=Object.create(C&&C.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(E,C):E.__proto__=C)}var b=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],x=(function(E){w(C,E);function C(P,O){y(this,C),O.modules.toolbar!=null&&O.modules.toolbar.container==null&&(O.modules.toolbar.container=b);var S=g(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,P,O));return S.quill.container.classList.add("ql-bubble"),S}return a(C,[{key:"extendToolbar",value:function(O){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(O.container),this.buildButtons([].slice.call(O.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(O.container.querySelectorAll("select")),m.default)}}]),C})(u.default);x.DEFAULTS=(0,c.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(C){C?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=(function(E){w(C,E);function C(P,O){y(this,C);var S=g(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,P,O));return S.quill.on(f.default.events.EDITOR_CHANGE,function(R,T,k,L){if(R===f.default.events.SELECTION_CHANGE)if(T!=null&&T.length>0&&L===f.default.sources.USER){S.show(),S.root.style.left="0px",S.root.style.width="",S.root.style.width=S.root.offsetWidth+"px";var F=S.quill.getLines(T.index,T.length);if(F.length===1)S.position(S.quill.getBounds(T));else{var $=F[F.length-1],z=S.quill.getIndex($),H=Math.min($.length()-1,T.index+T.length-z),D=S.quill.getBounds(new h.Range(z,H));S.position(D)}}else document.activeElement!==S.textbox&&S.quill.hasFocus()&&S.hide()}),S}return a(C,[{key:"listen",value:function(){var O=this;o(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){O.root.classList.remove("ql-editing")}),this.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!O.root.classList.contains("ql-hidden")){var S=O.quill.getSelection();S!=null&&O.position(O.quill.getBounds(S))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(O){var S=o(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"position",this).call(this,O),R=this.root.querySelector(".ql-tooltip-arrow");if(R.style.marginLeft="",S===0)return S;R.style.marginLeft=-1*S-R.offsetWidth/2+"px"}}]),C})(l.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),i.BubbleTooltip=_,i.default=x}),(function(t,i,n){t.exports=n(63)})]).default})})(Ti)),Ti.exports}var It,hf;function wm(){if(hf)return It;hf=1;var e=It&&It.__extends||(function(){var f=function(l,u){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var m in p)p.hasOwnProperty(m)&&(h[m]=p[m])},f(l,u)};return function(l,u){f(l,u);function h(){this.constructor=l}l.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}})(),r=It&&It.__assign||function(){return r=Object.assign||function(f){for(var l,u=1,h=arguments.length;u<h;u++){l=arguments[u];for(var p in l)Object.prototype.hasOwnProperty.call(l,p)&&(f[p]=l[p])}return f},r.apply(this,arguments)},t=It&&It.__spreadArrays||function(){for(var f=0,l=0,u=arguments.length;l<u;l++)f+=arguments[l].length;for(var h=Array(f),p=0,l=0;l<u;l++)for(var m=arguments[l],v=0,y=m.length;v<y;v++,p++)h[p]=m[v];return h},i=It&&It.__importDefault||function(f){return f&&f.__esModule?f:{default:f}},n=i(U),o=i(In),a=i(ym()),s=i(xm()),c=(function(f){e(l,f);function l(u){var h=f.call(this,u)||this;h.dirtyProps=["modules","formats","bounds","theme","children"],h.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],h.state={generation:0},h.selection=null,h.onEditorChange=function(m,v,y,g){var w,b,x,_;m==="text-change"?(b=(w=h).onEditorChangeText)===null||b===void 0||b.call(w,h.editor.root.innerHTML,v,g,h.unprivilegedEditor):m==="selection-change"&&((_=(x=h).onEditorChangeSelection)===null||_===void 0||_.call(x,v,g,h.unprivilegedEditor))};var p=h.isControlled()?u.value:u.defaultValue;return h.value=p??"",h}return l.prototype.validateProps=function(u){var h;if(n.default.Children.count(u.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(n.default.Children.count(u.children)){var p=n.default.Children.only(u.children);if(((h=p)===null||h===void 0?void 0:h.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&u.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},l.prototype.shouldComponentUpdate=function(u,h){var p=this,m;if(this.validateProps(u),!this.editor||this.state.generation!==h.generation)return!0;if("value"in u){var v=this.getEditorContents(),y=(m=u.value,m??"");this.isEqualValue(y,v)||this.setEditorContents(this.editor,y)}return u.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,u.readOnly),t(this.cleanProps,this.dirtyProps).some(function(g){return!a.default(u[g],p.props[g])})},l.prototype.shouldComponentRegenerate=function(u){var h=this;return this.dirtyProps.some(function(p){return!a.default(u[p],h.props[p])})},l.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},l.prototype.componentWillUnmount=function(){this.destroyEditor()},l.prototype.componentDidUpdate=function(u,h){var p=this;if(this.editor&&this.shouldComponentRegenerate(u)){var m=this.editor.getContents(),v=this.editor.getSelection();this.regenerationSnapshot={delta:m,selection:v},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==h.generation){var y=this.regenerationSnapshot,m=y.delta,g=y.selection;delete this.regenerationSnapshot,this.instantiateEditor();var w=this.editor;w.setContents(m),d(function(){return p.setEditorSelection(w,g)})}},l.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},l.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},l.prototype.isControlled=function(){return"value"in this.props},l.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},l.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},l.prototype.createEditor=function(u,h){var p=new s.default(u,h);return h.tabIndex!=null&&this.setEditorTabIndex(p,h.tabIndex),this.hookEditor(p),p},l.prototype.hookEditor=function(u){this.unprivilegedEditor=this.makeUnprivilegedEditor(u),u.on("editor-change",this.onEditorChange)},l.prototype.unhookEditor=function(u){u.off("editor-change",this.onEditorChange)},l.prototype.getEditorContents=function(){return this.value},l.prototype.getEditorSelection=function(){return this.selection},l.prototype.isDelta=function(u){return u&&u.ops},l.prototype.isEqualValue=function(u,h){return this.isDelta(u)&&this.isDelta(h)?a.default(u.ops,h.ops):a.default(u,h)},l.prototype.setEditorContents=function(u,h){var p=this;this.value=h;var m=this.getEditorSelection();typeof h=="string"?u.setContents(u.clipboard.convert(h)):u.setContents(h),d(function(){return p.setEditorSelection(u,m)})},l.prototype.setEditorSelection=function(u,h){if(this.selection=h,h){var p=u.getLength();h.index=Math.max(0,Math.min(h.index,p-1)),h.length=Math.max(0,Math.min(h.length,p-1-h.index)),u.setSelection(h)}},l.prototype.setEditorTabIndex=function(u,h){var p,m;!((m=(p=u)===null||p===void 0?void 0:p.scroll)===null||m===void 0)&&m.domNode&&(u.scroll.domNode.tabIndex=h)},l.prototype.setEditorReadOnly=function(u,h){h?u.disable():u.enable()},l.prototype.makeUnprivilegedEditor=function(u){var h=u;return{getHTML:function(){return h.root.innerHTML},getLength:h.getLength.bind(h),getText:h.getText.bind(h),getContents:h.getContents.bind(h),getSelection:h.getSelection.bind(h),getBounds:h.getBounds.bind(h)}},l.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var u=o.default.findDOMNode(this.editingArea);if(!u)throw new Error("Cannot find element for editing area");if(u.nodeType===3)throw new Error("Editing area cannot be a text node");return u},l.prototype.renderEditingArea=function(){var u=this,h=this.props,p=h.children,m=h.preserveWhitespace,v=this.state.generation,y={key:v,ref:function(g){u.editingArea=g}};return n.default.Children.count(p)?n.default.cloneElement(n.default.Children.only(p),y):m?n.default.createElement("pre",r({},y)):n.default.createElement("div",r({},y))},l.prototype.render=function(){var u;return n.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(u=this.props.className,u??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},l.prototype.onEditorChangeText=function(u,h,p,m){var v,y;if(this.editor){var g=this.isDelta(this.value)?m.getContents():m.getHTML();g!==this.getEditorContents()&&(this.lastDeltaChangeSet=h,this.value=g,(y=(v=this.props).onChange)===null||y===void 0||y.call(v,u,h,p,m))}},l.prototype.onEditorChangeSelection=function(u,h,p){var m,v,y,g,w,b;if(this.editor){var x=this.getEditorSelection(),_=!x&&u,E=x&&!u;a.default(u,x)||(this.selection=u,(v=(m=this.props).onChangeSelection)===null||v===void 0||v.call(m,u,h,p),_?(g=(y=this.props).onFocus)===null||g===void 0||g.call(y,u,h,p):E&&((b=(w=this.props).onBlur)===null||b===void 0||b.call(w,x,h,p)))}},l.prototype.focus=function(){this.editor&&this.editor.focus()},l.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},l.displayName="React Quill",l.Quill=s.default,l.defaultProps={theme:"snow",modules:{},readOnly:!1},l})(n.default.Component);function d(f){Promise.resolve().then(f)}return It=c,It}var ch=wm();const Em=er.getDefaultExportFromCjs(ch);ch.Quill.register("modules/imageResize",ig);const _m=U.forwardRef((e,r)=>{const[t,i]=U.useState();U.useImperativeHandle(r,()=>({init:()=>i(""),setValue:o=>i(o??void 0),getValue:()=>t}),[t]);const n=U.useMemo(()=>({toolbar:{container:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{script:"sub"},{script:"super"}],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{align:[]}],["link","image"],["clean"]]},imageResize:{modules:["Resize","DisplaySize"]}}),[]);return Y.jsxRuntimeExports.jsx(Em,{theme:"snow",placeholder:e.readOnly?"":"내용을 입력해 주세요.",value:t,onChange:o=>i(o),modules:n,style:{height:600,...e.style},readOnly:e.readOnly})});var Mr={},vf;function Sm(){if(vf)return Mr;vf=1;var e=In;if(process.env.NODE_ENV==="production")Mr.createRoot=e.createRoot,Mr.hydrateRoot=e.hydrateRoot;else{var r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Mr.createRoot=function(t,i){r.usingClientEntryPoint=!0;try{return e.createRoot(t,i)}finally{r.usingClientEntryPoint=!1}},Mr.hydrateRoot=function(t,i,n){r.usingClientEntryPoint=!0;try{return e.hydrateRoot(t,i,n)}finally{r.usingClientEntryPoint=!1}}}return Mr}var Cm=Sm();const Om="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZVDbDcIwDHSiqL90AzoCI5S/fvQBEwATIDYoE7BCRwjqAtmAsEE3gAlqzlFBKbXknJ2cL5cQRcF13SIf9Bd63mmHdcN5nsbbJm6UtY6bxlGaCunNZZmTUpniqhpQvIhZ8AlcI+9QXYHYIb3BgQ0ETAJ36BvUmQiDuBV19TNdFBkliUyK0lX1fbc0bkyL1WF6D7UzbBxnpKCi9YHG0UPeoz6BePt+h55UxMMA9NMrPa68BDLiAxmcQh0cAM62AAAAAElFTkSuQmCC",Rm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZZDLDcJADETHUe7QQVJC6AAqACoAKkCcESh8JI60kBKgg3TA0kE6gAISzHgj0BJ8sWw/j2cXCCI7aD446g2diDp1aWyWaz9sxmHhNlJSyUCDnlQeQpEKm5UCDwgqvHBnTji4MvcEKGw3FsVFDeCmCCbMYwIpQY4wMnX5mj5pKrXfTFSxc1sp/o03yLlZaoSpRFhme53/QF4FmNl9txbH8wuC5893tEo1PZivBs6/sgVXBlv9BpvVRX62Og6eAAAAAElFTkSuQmCC",Am=[{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"}],Tm=[{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"}],Pm=({children:e})=>{const[r,t]=U.useState(!1),[i,n]=U.useState(null);return r?Y.jsxRuntimeExports.jsx("div",{style:{padding:"20px",border:"1px solid #ff4d4f",borderRadius:"6px",backgroundColor:"#fff2f0",margin:"10px"},children:Y.jsxRuntimeExports.jsx(he.Alert,{message:"리얼그리드 로드 실패",description:Y.jsxRuntimeExports.jsxs("div",{children:[Y.jsxRuntimeExports.jsx("p",{children:"리얼그리드 라이센스 또는 초기화 중 오류가 발생했습니다."}),Y.jsxRuntimeExports.jsxs("p",{style:{fontSize:"12px",color:"#666",marginTop:"8px"},children:["오류: ",i?.message||"알 수 없는 오류"]}),Y.jsxRuntimeExports.jsx(he.Button,{type:"primary",size:"small",style:{marginTop:"8px"},onClick:()=>{t(!1),n(null),window.location.reload()},children:"다시 시도"})]}),type:"error",showIcon:!0})}):Y.jsxRuntimeExports.jsx(km,{onError:o=>{console.error("BwgGrid 에러:",o),n(o),t(!0)},children:e})};class km extends U.Component{constructor(r){super(r),this.state={hasError:!1}}static getDerivedStateFromError(r){return{hasError:!0}}componentDidCatch(r,t){this.props.onError(r)}render(){return this.state.hasError?null:this.props.children}}const jm=U.forwardRef(({type:e="nrml",gridDivStyle:r,gridDivClassName:t,gridColumns:i,gridOptions:n,gridEvents:o,bindRef:a,gridContext:s,renderers:c,gridInitCallback:d},f)=>{const l=U.useRef(null),u=(A,M,q,B)=>{let N=[],V=[];const K="treeNode";for(let W in A){let X=A[W];N[X[q]]=A[W];let re=N[X[M]];if(re==null||re=="-"){V.push(X);continue}re[K]==null&&(re[K]=[]),re[K].push(X)}return V},h=U.useCallback(A=>{const M=B=>{const N=[];return B.forEach(V=>{V.children&&V.children.length>0?N.push(...M(V.children)):N.push(V)}),N};return M(A).map(B=>({fieldName:B.fieldName,dataType:B.dataType||"text"}))},[]),p=U.useCallback(A=>{const M=B=>{const N=[];return B.forEach(V=>{V.children&&V.children.length>0?N.push(...M(V.children)):N.push(V)}),N};return M(A).map(B=>({...B,header:{template:B.required?`<img src='${Om}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:B.editable?`<img src='${Rm}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:"${headerText}",values:{headerText:B.header?.text??""},text:B.header?.text||""},styleName:B.dataType==="number"?"right":B.styleName||"center"}))},[]);U.useImperativeHandle(f,()=>({addAllData(A,M){const q=l.current?.gridView.getCurrent().dataRow;if(l.current?.dataProvider instanceof St.LocalDataProvider){l.current.dataProvider.clearRows();try{l.current.dataProvider.fillJsonData(A)}catch(B){console.error("fillJsonData 오류:",B)}}if(l.current?.dataProvider instanceof St.LocalTreeDataProvider){if(l.current.dataProvider.clearRows(),M?.treeOption?.dataField==null||M?.treeOption?.parentField==null)return;const B={rows:"treeNode"};let N=u(A,M.treeOption?.parentField,M.treeOption?.dataField);l.current.dataProvider.fillJsonData({treeNode:N},B),M.treeOption.isExpand&&l.current.gridView?.expandAll()}M?.isCurrent?l.current?.gridView.setCurrent({dataRow:q}):l.current?.gridView.setCurrent({dataRow:0})},getGridInstance:()=>l.current,getCurrentRow:()=>l.current?.gridView.getCurrent().dataRow??-1,getCurrentIndex:()=>l.current?.gridView.getCurrent().itemIndex??-1,gridExcelDown(A){l.current?.gridView.exportGrid({type:"excel",target:"local",allItems:!1,lookupDisplay:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!A?.indenting,header:"default",footer:"default",sheetName:"",fileName:A?.fileName||"sample.xlsx",...A})},dp:l.current?.dataProvider??null,vw:l.current?.gridView??null}));const m=U.useCallback((A,M,q)=>{if(a!==void 0&&q>=0){let B=A.getDataSource().getJsonRow(q);a?.current?.setFieldsValue(B)}else a!==void 0&&q<0&&a?.current?.resetFields();A.setCurrent({dataRow:0}),o?.onCurrentRowChanged&&o?.onCurrentRowChanged(A,M,q)},[a,o]),v=U.useCallback((A,M,q)=>{const B=M.fieldName??"";a?.current?.getFieldInstance(B)&&a?.current.setFieldValue(B,q),o?.onEditChange&&o?.onEditChange(A,M,q)},[a,o]),y=U.useCallback((A,M,q)=>{const B=A.getOrgFieldName(q),N=A.getValue(M,q);a?.current?.setFieldValue(B,N)},[a]),g=U.useCallback((A,M,q,B)=>{const N=A.getColumn(B).name??"",V=A.getValue(M,B);a?.current?.getFieldInstance(N)&&a?.current.setFieldValue(N,V),o?.onCellEdited&&o?.onCellEdited(A,M,q,B)},[a,o]),w=U.useCallback(A=>{},[]),b=U.useCallback(()=>{if(!l.current)return;const A=l.current.gridView,M=A.getDataSource(),q=["onKeyDown"],B=["onRowInserted"];Object.keys(o??{}).map(N=>{q.includes(N)?A[N+"Add"]=o?.[N]:A[N]=o?.[N],B.includes(N)?M[N+"Add"]=o?.[N]:M[N]=o?.[N]}),M instanceof St.LocalDataProvider&&(M.onRowInserted=(N,V)=>{V<0||(setTimeout(function(){A?.setCurrent({dataRow:V})},1),N.onRowInsertedAdd!==void 0&&N.onRowInsertedAdd(N,V))}),A.onKeyDown=function(N,V){if(V.code=="Space"){let K=N.getSelectedItems(!0);for(const W in K)N.isCheckable(K[W])&&(N.isCheckedItem(K[W])?N.checkItem(K[W],!1,!1):N.checkItem(K[W],!0,!1))}return N.onKeyDownAdd!==void 0&&N.onKeyDownAdd(N,V),!0},l.current.gridView.onCurrentRowChanged=m,l.current.gridView.onEditChange=v,l.current.gridView.getDataSource().onValueChanged=y,l.current.gridView.onCellEdited=g,l.current.gridView.onDataLoadComplated=w},[m,v,y,g,w]),x=U.useCallback(A=>{if(A){try{A.gridView.setSortingOptions({enabled:!0}),A.gridView.sortMode=St.SortMode.EXPLICIT,A.gridView.editorOptions.viewGridInside=!0,A.gridView instanceof St.TreeView&&A.gridView.setTreeOptions({expandWhenSetData:St.ExpandWhenSetData.REMAIN_AND_EXPAND,expanderIconStyle:St.TreeExpanderIconStyle.SQUARE,iconVisible:!1,lineVisible:!0}),A.gridView.setDisplayOptions({showEmptyMessage:!0,emptyMessage:"조회된 데이터가 존재하지 않습니다.",useFocusClass:!0,minRowHeight:n?.display?.minRowHeight||43,maxRowHeight:n?.display?.maxRowHeight||100,rowHeight:n?.display?.rowHeight||43,rowChangeDelay:n?.display?.rowChangeDelay||0,selectionStyle:n?.display?.selectionStyle||St.SelectionStyle.ROWS,fitStyle:n?.display?.fitStyle||St.GridFitStyle.FILL,useAlternateRowStyle:n?.display?.useAlternateRowStyle||!1}),A.gridView.setEditOptions({commitWhenExitLast:!0,columnEditableFirst:!1,commitByCell:!0,commitWhenLeave:!0,crossWhenExitLast:!0,confirmWhenDelete:!1,deletable:!1,revertable:!1,showOnlyValidationMessage:!0,editable:n?.edit?.editable||!1,validateOnEdited:n?.edit?.validateOnEdited||!1}),A.gridView.setCopyOptions({singleMode:n?.copy?.singleMode||!1}),A.gridView.setPasteOptions({selectBlockPaste:!0,checkReadOnly:!0,throwValidationError:!1}),A.gridView.header.height=n?.header?.height||43,A.gridView.header.styleName=n?.header?.styleName||"bwgGridHeader",n?.container?.radio?A.gridView.setCheckBar({exclusive:n?.container?.radio||!1}):A.gridView.setCheckBar({visible:n?.container?.check||!1,showAll:n?.container?.checkAll||!1}),A.gridView.setStateBar({visible:n?.container?.state||!1}),A.gridView.rowIndicator.visible=n?.container?.indicator||!1,A.gridView instanceof St.GridView&&(A.gridView.groupPanel.visible=n?.container?.panel||!1),A.gridView.setFooters({visible:n?.container?.footer||!1}),A.gridView.setHeader({visible:n?.container?.header||!0}),A.gridView.formatOptions.numberFormat="#,##0"}catch(M){console.log("그리드 옵션 설정 중 오류:",M)}try{A.gridView instanceof St.TreeView?A.gridView.setContextMenu(Tm):A.gridView.setContextMenu(Am),A.gridView.onContextMenuItemClicked=function(M,q,B){if(!(!B||!B.column)){if(q.tag=="excel")P(M,{isTitle:!1},s?.excel);else if(q.tag=="showIndentExcel")P(M,{isTitle:!1,treeBlank:!0},s?.excel);else if(q.tag=="withTitleExcel")P(M,{isTitle:!0,treeBlank:!1},s?.excel);else if(q.tag=="filter")O(M,q);else if(q.tag=="fixedCol"){const V=M.getDataSource().getFieldIndex(B.column);M.setFixedOptions({colCount:V})}else if(q.tag=="fixedRow")M.setFixedOptions({rowCount:(B.itemIndex||0)+1});else if(q.tag=="fixedCancel")M.setFixedOptions({colCount:0,rowCount:0});else if(q.tag=="hide")M.setColumnProperty(B.column,"visible",!1),M._hideCols[M._hideCols.length]=B.column;else if(q.tag=="hideClear")for(var N=0;N<M._hideCols.length;N++)M.setColumnProperty(M._hideCols[N],"visible",!0)}}}catch(M){console.log("컨텍스트 설정 중 오류:",M)}}},[n]),_=A=>{if(!(!c||c.length===0))try{c.forEach(M=>{const{name:q,renderer:B}=M;if(q&&B){const N=typeof B=="function"?new B:B;A.gridView.registerCustomRenderer(q,N)}})}catch(M){console.error("커스텀 렌더러 초기화 중 오류:",M)}},E=A=>{if(n?.layout?.colspan&&n.layout.colspan.length>0&&n?.layout?.colspan.forEach(M=>{const q=A.gridView.layoutByColumn(M.fieldName);if(q){const B=M.span;q.spanCallback=function(N,V,K){return B}}}),i&&i.length>0&&i.some(q=>q.children&&q.children.length>0))try{(()=>{const B=JSON.parse(JSON.stringify(i)),N=[],V=K=>{const W=[];return K.children.map(X=>{if(X.children&&X.children.length>0){const re=V(X),oe=X.header?.text||X.fieldName,se=A.gridView.getColumnProperty(X.fieldName,"header");delete X.children,delete X.header;let te={name:X.fieldName,header:{text:se?.text||oe,template:se?.template,values:se?.values},items:re,...X};W.push(te)}else W.push(X.fieldName)}),W};B.map(K=>{if(K.children&&K.children.length>0){const W=V(K),X=K.header?.text||K.fieldName,re=A.gridView.getColumnProperty(K.fieldName,"header");delete K.children,delete K.header;const oe={name:K.fieldName,header:{text:re?.text||X,template:re?.template,values:re?.values},items:W,...K};N.push(oe)}else N.push(K.fieldName)}),console.log("Final Layout!!",N),A.gridView.setColumnLayout(N)})()}catch(q){console.error("컬럼 레이아웃 설정 오류:",q)}},C=()=>{if(l.current){if(e==="nrml"){const A=l.current;if(x(A),_(A),i&&i.length>0){const M=h(i),q=p(i);A.gridView.getDataSource().setFields(M),A.gridView.setColumns(q)}E(A)}else{const A=l.current;if(x(A),_(A),i&&i.length>0){const M=h(i),q=p(i);A.gridView.getDataSource().setFields(M),A.gridView.setColumns(q)}E(l.current)}setTimeout(()=>{if(d){const A=typeof f=="object"&&f!==null?f.current:null;d(A)}},0)}},P=(A,M,q)=>{const B=A.getDataSource();let N=q?.footer==null?"default":q.footer;B.getRowCount()<1&&(N="hidden");let V={type:"excel",target:"local",allItems:!1,lookupDisplay:!0,compatibility:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!M?.treeBlank,footer:N,sheetName:"",documentTitle:{},documentSubtitle:{},documentTail:{},fileName:q?.fileName||"sample.xlsx"};B instanceof St.LocalTreeDataProvider&&(V.indenting=!!M?.treeBlank),q?.isCellMerge==!0&&(V.separateRows=!1),mt.isEmpty(q?.sheetName)==!1&&(V.sheetName=q?.sheetName),M?.isTitle&&(V.documentTitle={message:mt.isSafeEmpty(q?.mainTitle,"No Title"),visible:!0,styleName:"documentStyle",spaceTop:1,spaceBottom:0,height:43},mt.isEmpty(q?.subTitle)==!1&&(V.documentSubtitle={message:q?.subTitle,visible:!0,styleName:"center",height:20}),mt.isEmpty(q?.tailTitle)==!1&&(V.documentTail={message:q?.tailTitle,visible:!0,styleName:"documentStyle"})),A.exportGrid(V)},O=(A,M)=>{const q=A.getDataSource(),B=q.getOrgFieldNames();if(M.checked)for(var N=0;N<B.length;N++){let K=[],W=q.getDistinctValues(B[N])??[];if(W.length==0)continue;let X=A.columnByName(B[N]);for(var V=0;V<W.length;V++){if(W[V]==null)continue;let re=X.values!=null&&X.values.indexOf(W[V])!=-1?X?.labels?.[X.values.indexOf(W[V])]:W[V];mt.isEmpty(re)&&(mt.isEmpty(W[V])?re=" ":re=W[V]);let oe="";W[V]==null?oe="value="+W[V]:oe="value='"+W[V]+"'",K.push({name:re,criteria:oe})}A.setColumnFilters(B[N],K)}else for(var N=0;N<B.length;N++)A.clearColumnFilters(B[N]),A.activateAllColumnFilters(B[N],!1),A.clearColumnFilters(B[N])};U.useEffect(()=>{if(l.current&&l.current.gridView)if(e==="nrml"){const A=l.current;x(A)}else{const A=l.current;x(A)}},[e,n,x]),U.useEffect(()=>{!l.current||!i||i.length===0||C()},[i]),U.useEffect(()=>{l.current&&b()},[o,b]);const[S,R]=U.useState(!1),[T,k]=U.useState(""),L=U.useRef(null);U.useEffect(()=>{S&&setTimeout(()=>{L.current?.focus?.()},0)},[S]),U.useEffect(()=>()=>{if(l.current)try{const A=l.current;A.gridView&&(A.gridView.onDataLoadComplated=void 0,A.gridView.onCurrentRowChanged=void 0,A.gridView.onCellClicked=void 0,A.gridView.onCellDblClicked=void 0,A.gridView.onEditRowChanged=void 0,A.gridView.onItemChecked=void 0,A.gridView.onItemAllChecked=void 0,A.gridView.onColumnCheckedChanged=void 0,A.gridView.onCellButtonClicked=void 0,A.gridView.onEditChange=void 0,A.gridView.onCellEdited=void 0,A.gridView.onKeyUp=void 0,A.gridView.onKeyDown=void 0,A.gridView.onWheel=void 0,A.gridView.onValidateColumn=void 0,A.gridView.onValidateRow=void 0,A.gridView.onValidationFail=void 0,A.gridView.onRowInserting=void 0,A.gridView.onCellItemClicked=void 0,A.gridView.onShowEditor=void 0,A.gridView.getDataSource()&&(A.gridView.getDataSource().clearRows(),A.gridView.getDataSource().setFields([])),A.gridView.getDataSource().clearRows())}catch(A){console.warn("⚠️ BwgGrid cleanup error:",A)}},[]);const F=U.useCallback(A=>{$(A)},[]),$=U.useCallback(A=>{const M=l.current?.gridView;if(M?.isFiltered()){console.log("EE:: [그리드 Filtering 으로 인한 오류] 그리드 내 Filter를 해제 후 진행해 주십시오.");return}if(M?.commit(),mt.isEmpty(A))return;const q=M?.getCurrent().itemIndex??-1;if(q<0)return;const B={value:A,startIndex:q+1,wrap:!0,caseSensitive:!1,partialMatch:!0},N=M?.searchCell(B);M?.setCurrent(N)},[]),z=U.useCallback(A=>{A.key==="Escape"&&(A.preventDefault(),R(!1))},[]),H=U.useCallback(A=>{A.ctrlKey&&A.code==="KeyF"&&(A.preventDefault(),k(""),R(!S))},[S]),D={searchRow:F,searchEnter:$,handleCloseKeyword:z,handleSearch:H},j=U.useMemo(()=>({...r,position:"relative",width:r?.width||"100%",height:r?.height||"100%"}),[r]);return Y.jsxRuntimeExports.jsx(Pm,{children:Y.jsxRuntimeExports.jsxs("div",{style:j,className:t,onKeyDown:A=>D.handleSearch(A),children:[S&&Y.jsxRuntimeExports.jsx("div",{className:"grid-search-box",children:Y.jsxRuntimeExports.jsxs(he.Flex,{gap:3,children:[Y.jsxRuntimeExports.jsx(he.ConfigProvider,{theme:{components:{Button:{controlHeight:32},Input:{controlHeight:32}}},children:Y.jsxRuntimeExports.jsxs(he.Space.Compact,{children:[Y.jsxRuntimeExports.jsx(he.Button,{icon:Y.jsxRuntimeExports.jsx(ft.SearchOutlined,{})}),Y.jsxRuntimeExports.jsx(he.Input,{ref:L,value:T,name:"srchField",autoComplete:"off",onKeyUp:A=>D.handleCloseKeyword(A),onChange:A=>k(A.target.value),onPressEnter:A=>D.searchEnter(A)})]})}),Y.jsxRuntimeExports.jsx(he.Button,{variant:"solid",icon:Y.jsxRuntimeExports.jsx(ft.CloseOutlined,{}),onClick:()=>R(!1)})]})}),e==="nrml"?Y.jsxRuntimeExports.jsx(du.RealGridReact,{ref:l,autoGenerateField:!0,onInitialized:C}):Y.jsxRuntimeExports.jsx(du.RealTreeReact,{ref:l,autoGenerateField:!1,onInitialized:C})]})})}),Nm=e=>({initContent(r){this._root=Cm.createRoot(r)},render(r,t,i,n){const o=this._root;o&&e(r,t,i,n,o)},clearContent(r){const t=this._root;t&&setTimeout(()=>{t&&(t.unmount(),this._root=null)},0)},canClick(r){return!0},click(){return{}}}),Mm=U.memo(({title:e,border:r,children:t,titleChildren:i})=>{const n=U.useMemo(()=>({components:{Form:{labelColor:"#9A9A9A"},Select:{colorTextDisabled:"#000"}}}),[]);return Y.jsxRuntimeExports.jsxs(eo,{type:"vertical",children:[Y.jsxRuntimeExports.jsx(Ml,{title:e,icons:{type:"antd",icon:"InfoCircleTwoTone"},children:i}),Y.jsxRuntimeExports.jsx(Np,{border:!1,children:Y.jsxRuntimeExports.jsx(he.ConfigProvider,{theme:n,children:t})})]})}),eo=({type:e="horizontal",layoutAlign:r="left",verticalAlign:t,className:i,style:n,children:o})=>Y.jsxRuntimeExports.jsx("div",{style:n,className:`bwgview-content-layout ${e=="horizontal"?"hz-layout":"vt-layout"} layout-${r} ${t&&`vertical-${t}`} ${i||""}`,children:o}),pf=(e,r)=>{const t=window.innerWidth,i=window.innerHeight,n=Math.min(Math.max(e.x,0),Math.max(0,t-r.width)),o=Math.min(Math.max(e.y,0),Math.max(0,i-r.height));return{x:n,y:o}},Im=({buttons:e,popupData:r,onButtonClick:t})=>!e||e.length===0?null:Y.jsxRuntimeExports.jsx("div",{style:{display:"flex",gap:6},children:e.map(i=>Y.jsxRuntimeExports.jsx(he.Button,{type:i.type||"default",danger:i.danger,disabled:i.disabled,onClick:()=>t?.(i.key,r),className:"bwg-btn popup-btn",children:i.text},i.key))}),Lm=({popup:e,popupEvent:r,onClose:t,children:i})=>{const n=U.useRef(null);e?.popupId;const o=e?.popupTitle||"팝업",a=e?.width||800,s=e?.height||600,c=e?.buttonList?.map((_,E)=>({key:_.btnId||`btn_${E}`,text:_.btnNm,type:_.btnId==="CLOSE"?"default":"primary",disabled:_.enblYn!=="Y",danger:!1}))||[],f=c.some(_=>_.key==="CLOSE"||_.key==="close")?c:[...c,{key:"CLOSE",text:"닫기",type:"default",disabled:!1,danger:!1}],[l,u]=U.useState(a),[h,p]=U.useState(s),m=U.useMemo(()=>{const _=Math.max(0,(window.innerWidth-a)/2),E=Math.max(0,(window.innerHeight-s)/2);return{x:_,y:E}},[a,s]),[v,y]=U.useState(m),g=(_,E)=>{if(_==="CLOSE"||_==="close"){e?.close?.()||t?.();return}r&&r[_]?r[_]():e?.close?.()||t?.()},w=(_,E)=>{const C=pf({x:E.x,y:E.y},{width:l,height:h});y(C)},b=(_,E,C,P,O)=>{const S={width:parseInt(C.style.width,10),height:parseInt(C.style.height,10)},R=pf(O,S);u(S.width),p(S.height),y(R)},x=()=>n.current??document.body;return Y.jsxRuntimeExports.jsxs("div",{style:{position:"fixed",inset:0,zIndex:1e3},children:[Y.jsxRuntimeExports.jsx("div",{onClick:t,style:{position:"absolute",inset:0,backgroundColor:"rgba(0,0,0,0.3)",zIndex:0}}),Y.jsxRuntimeExports.jsxs(Mp.Rnd,{className:"bwg-popup",size:{width:l,height:h},position:v,bounds:"window",minWidth:400,minHeight:300,onDragStop:w,onResizeStop:b,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:[Y.jsxRuntimeExports.jsx("div",{className:"bwg-popup-content",style:{overflow:"hidden",borderRadius:20,height:"100%"},children:Y.jsxRuntimeExports.jsx(Jd,{getPopupContainer:x,children:Y.jsxRuntimeExports.jsx(eo,{type:"vertical",children:Y.jsxRuntimeExports.jsx(he.Card,{className:"popup-drag-container",title:Y.jsxRuntimeExports.jsx("div",{className:"drag-handle",style:{display:"flex",alignItems:"center",gap:8},children:o}),style:{width:"100%",height:"100%"},styles:{body:{height:"calc(100% - 77px)",padding:20,overflow:"auto"}},extra:Y.jsxRuntimeExports.jsx(Im,{buttons:f,popupData:e,onButtonClick:g}),children:Y.jsxRuntimeExports.jsx("div",{className:"rnd-cancel",style:{height:"100%"},children:i})})})})}),Y.jsxRuntimeExports.jsx("div",{ref:n,className:"bwg-popup-portal-root",style:{position:"relative"}})]})]})},$m=({children:e,...r})=>Y.jsxRuntimeExports.jsx(he.Row,{...r,className:"bwg-row",children:e}),Fm=({rowKey:e="id",columns:r,dataSource:t,loading:i=!1,rowSelection:n,size:o="middle",pagination:a=!1,...s})=>Y.jsxRuntimeExports.jsx(he.Table,{rowKey:e,columns:r,dataSource:t,loading:i,rowSelection:n,size:o,pagination:a,bordered:!0,scroll:{x:"max-content"},locale:{emptyText:"데이터가 없습니다."},...s}),Dm=e=>{const{type:r="card",animated:t=!0,...i}=e;return Y.jsxRuntimeExports.jsx(he.Tabs,{type:r,animated:t,...i})};function qs(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,i=Array(r);t<r;t++)i[t]=e[t];return i}function qm(e){if(Array.isArray(e))return qs(e)}function fh(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dl(e,r){if(e){if(typeof e=="string")return qs(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?qs(e,r):void 0}}function Bm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
54
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function me(e){return
|
|
55
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function le(e,r){return
|
|
53
|
+
`)}return Z}function fe(Q,Z){var ae={},ie=Q.style||{};return ie.fontStyle&&q(Q).fontStyle==="italic"&&(ae.italic=!0),ie.fontWeight&&(q(Q).fontWeight.startsWith("bold")||parseInt(q(Q).fontWeight)>=700)&&(ae.bold=!0),Object.keys(ae).length>0&&(Z=M(Z,ae)),parseFloat(ie.textIndent||0)>0&&(Z=new l.default().insert(" ").concat(Z)),Z}function ve(Q,Z){var ae=Q.data;if(Q.parentNode.tagName==="O:P")return Z.insert(ae.trim());if(ae.trim().length===0&&Q.parentNode.classList.contains("ql-clipboard"))return Z;if(!q(Q.parentNode).whiteSpace.startsWith("pre")){var ie=function(ue,ne){return ne=ne.replace(/[^\u00a0]/g,""),ne.length<1&&ue?" ":ne};ae=ae.replace(/\r\n/g," ").replace(/\n/g," "),ae=ae.replace(/\s\s+/g,ie.bind(ie,!0)),(Q.previousSibling==null&&N(Q.parentNode)||Q.previousSibling!=null&&N(Q.previousSibling))&&(ae=ae.replace(/^\s+/,ie.bind(ie,!1))),(Q.nextSibling==null&&N(Q.parentNode)||Q.nextSibling!=null&&N(Q.nextSibling))&&(ae=ae.replace(/\s+$/,ie.bind(ie,!1)))}return Z.insert(ae)}i.default=A,i.matchAttributor=W,i.matchBlot=X,i.matchNewline=te,i.matchSpacing=ce,i.matchText=ve}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function p(m,v){for(var y=0;y<v.length;y++){var g=v[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,v,y){return v&&p(m.prototype,v),y&&p(m,y),m}})(),a=function p(m,v,y){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,v);if(g===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:p(w,v,y)}else{if("value"in g)return g.value;var b=g.get;return b===void 0?void 0:b.call(y)}},s=n(6),c=d(s);function d(p){return p&&p.__esModule?p:{default:p}}function f(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function l(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:p}function u(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(p,m):p.__proto__=m)}var h=(function(p){u(m,p);function m(){return f(this,m),l(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,[{key:"optimize",value:function(y){a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,y),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return a(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),m})(c.default);h.blotName="bold",h.tagName=["STRONG","B"],i.default=h}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.addControls=i.default=void 0;var o=(function(){function S(R,T){var P=[],L=!0,F=!1,$=void 0;try{for(var z=R[Symbol.iterator](),H;!(L=(H=z.next()).done)&&(P.push(H.value),!(T&&P.length===T));L=!0);}catch(D){F=!0,$=D}finally{try{!L&&z.return&&z.return()}finally{if(F)throw $}}return P}return function(R,T){if(Array.isArray(R))return R;if(Symbol.iterator in Object(R))return S(R,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=(function(){function S(R,T){for(var P=0;P<T.length;P++){var L=T[P];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(R,L.key,L)}}return function(R,T,P){return T&&S(R.prototype,T),P&&S(R,P),R}})(),s=n(2),c=y(s),d=n(0),f=y(d),l=n(5),u=y(l),h=n(10),p=y(h),m=n(9),v=y(m);function y(S){return S&&S.__esModule?S:{default:S}}function g(S,R,T){return R in S?Object.defineProperty(S,R,{value:T,enumerable:!0,configurable:!0,writable:!0}):S[R]=T,S}function w(S,R){if(!(S instanceof R))throw new TypeError("Cannot call a class as a function")}function b(S,R){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return R&&(typeof R=="object"||typeof R=="function")?R:S}function x(S,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof R);S.prototype=Object.create(R&&R.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),R&&(Object.setPrototypeOf?Object.setPrototypeOf(S,R):S.__proto__=R)}var _=(0,p.default)("quill:toolbar"),E=(function(S){x(R,S);function R(T,P){w(this,R);var L=b(this,(R.__proto__||Object.getPrototypeOf(R)).call(this,T,P));if(Array.isArray(L.options.container)){var F=document.createElement("div");k(F,L.options.container),T.container.parentNode.insertBefore(F,T.container),L.container=F}else typeof L.options.container=="string"?L.container=document.querySelector(L.options.container):L.container=L.options.container;if(!(L.container instanceof HTMLElement)){var $;return $=_.error("Container required for toolbar",L.options),b(L,$)}return L.container.classList.add("ql-toolbar"),L.controls=[],L.handlers={},Object.keys(L.options.handlers).forEach(function(z){L.addHandler(z,L.options.handlers[z])}),[].forEach.call(L.container.querySelectorAll("button, select"),function(z){L.attach(z)}),L.quill.on(u.default.events.EDITOR_CHANGE,function(z,H){z===u.default.events.SELECTION_CHANGE&&L.update(H)}),L.quill.on(u.default.events.SCROLL_OPTIMIZE,function(){var z=L.quill.selection.getRange(),H=o(z,1),D=H[0];L.update(D)}),L}return a(R,[{key:"addHandler",value:function(P,L){this.handlers[P]=L}},{key:"attach",value:function(P){var L=this,F=[].find.call(P.classList,function(z){return z.indexOf("ql-")===0});if(F){if(F=F.slice(3),P.tagName==="BUTTON"&&P.setAttribute("type","button"),this.handlers[F]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[F]==null){_.warn("ignoring attaching to disabled format",F,P);return}if(f.default.query(F)==null){_.warn("ignoring attaching to nonexistent format",F,P);return}}var $=P.tagName==="SELECT"?"change":"click";P.addEventListener($,function(z){var H=void 0;if(P.tagName==="SELECT"){if(P.selectedIndex<0)return;var D=P.options[P.selectedIndex];D.hasAttribute("selected")?H=!1:H=D.value||!1}else P.classList.contains("ql-active")?H=!1:H=P.value||!P.hasAttribute("value"),z.preventDefault();L.quill.focus();var j=L.quill.selection.getRange(),A=o(j,1),M=A[0];if(L.handlers[F]!=null)L.handlers[F].call(L,H);else if(f.default.query(F).prototype instanceof f.default.Embed){if(H=prompt("Enter "+F),!H)return;L.quill.updateContents(new c.default().retain(M.index).delete(M.length).insert(g({},F,H)),u.default.sources.USER)}else L.quill.format(F,H,u.default.sources.USER);L.update(M)}),this.controls.push([F,P])}}},{key:"update",value:function(P){var L=P==null?{}:this.quill.getFormat(P);this.controls.forEach(function(F){var $=o(F,2),z=$[0],H=$[1];if(H.tagName==="SELECT"){var D=void 0;if(P==null)D=null;else if(L[z]==null)D=H.querySelector("option[selected]");else if(!Array.isArray(L[z])){var j=L[z];typeof j=="string"&&(j=j.replace(/\"/g,'\\"')),D=H.querySelector('option[value="'+j+'"]')}D==null?(H.value="",H.selectedIndex=-1):D.selected=!0}else if(P==null)H.classList.remove("ql-active");else if(H.hasAttribute("value")){var A=L[z]===H.getAttribute("value")||L[z]!=null&&L[z].toString()===H.getAttribute("value")||L[z]==null&&!H.getAttribute("value");H.classList.toggle("ql-active",A)}else H.classList.toggle("ql-active",L[z]!=null)})}}]),R})(v.default);E.DEFAULTS={};function C(S,R,T){var P=document.createElement("button");P.setAttribute("type","button"),P.classList.add("ql-"+R),T!=null&&(P.value=T),S.appendChild(P)}function k(S,R){Array.isArray(R[0])||(R=[R]),R.forEach(function(T){var P=document.createElement("span");P.classList.add("ql-formats"),T.forEach(function(L){if(typeof L=="string")C(P,L);else{var F=Object.keys(L)[0],$=L[F];Array.isArray($)?O(P,F,$):C(P,F,$)}}),S.appendChild(P)})}function O(S,R,T){var P=document.createElement("select");P.classList.add("ql-"+R),T.forEach(function(L){var F=document.createElement("option");L!==!1?F.setAttribute("value",L):F.setAttribute("selected","selected"),P.appendChild(F)}),S.appendChild(P)}E.DEFAULTS={container:null,handlers:{clean:function(){var R=this,T=this.quill.getSelection();if(T!=null)if(T.length==0){var P=this.quill.getFormat();Object.keys(P).forEach(function(L){f.default.query(L,f.default.Scope.INLINE)!=null&&R.quill.format(L,!1)})}else this.quill.removeFormat(T,u.default.sources.USER)},direction:function(R){var T=this.quill.getFormat().align;R==="rtl"&&T==null?this.quill.format("align","right",u.default.sources.USER):!R&&T==="right"&&this.quill.format("align",!1,u.default.sources.USER),this.quill.format("direction",R,u.default.sources.USER)},indent:function(R){var T=this.quill.getSelection(),P=this.quill.getFormat(T),L=parseInt(P.indent||0);if(R==="+1"||R==="-1"){var F=R==="+1"?1:-1;P.direction==="rtl"&&(F*=-1),this.quill.format("indent",L+F,u.default.sources.USER)}},link:function(R){R===!0&&(R=prompt("Enter link URL:")),this.quill.format("link",R,u.default.sources.USER)},list:function(R){var T=this.quill.getSelection(),P=this.quill.getFormat(T);R==="check"?P.list==="checked"||P.list==="unchecked"?this.quill.format("list",!1,u.default.sources.USER):this.quill.format("list","unchecked",u.default.sources.USER):this.quill.format("list",R,u.default.sources.USER)}}},i.default=E,i.addControls=k}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function p(m,v){for(var y=0;y<v.length;y++){var g=v[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,v,y){return v&&p(m.prototype,v),y&&p(m,y),m}})(),a=function p(m,v,y){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,v);if(g===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:p(w,v,y)}else{if("value"in g)return g.value;var b=g.get;return b===void 0?void 0:b.call(y)}},s=n(28),c=d(s);function d(p){return p&&p.__esModule?p:{default:p}}function f(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function l(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:p}function u(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(p,m):p.__proto__=m)}var h=(function(p){u(m,p);function m(v,y){f(this,m);var g=l(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,v));return g.label.innerHTML=y,g.container.classList.add("ql-color-picker"),[].slice.call(g.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(w){w.classList.add("ql-primary")}),g}return o(m,[{key:"buildItem",value:function(y){var g=a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"buildItem",this).call(this,y);return g.style.backgroundColor=y.getAttribute("value")||"",g}},{key:"selectItem",value:function(y,g){a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,y,g);var w=this.label.querySelector(".ql-color-label"),b=y&&y.getAttribute("data-value")||"";w&&(w.tagName==="line"?w.style.stroke=b:w.style.fill=b)}}]),m})(c.default);i.default=h}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function p(m,v){for(var y=0;y<v.length;y++){var g=v[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,v,y){return v&&p(m.prototype,v),y&&p(m,y),m}})(),a=function p(m,v,y){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,v);if(g===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:p(w,v,y)}else{if("value"in g)return g.value;var b=g.get;return b===void 0?void 0:b.call(y)}},s=n(28),c=d(s);function d(p){return p&&p.__esModule?p:{default:p}}function f(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function l(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:p}function u(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(p,m):p.__proto__=m)}var h=(function(p){u(m,p);function m(v,y){f(this,m);var g=l(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,v));return g.container.classList.add("ql-icon-picker"),[].forEach.call(g.container.querySelectorAll(".ql-picker-item"),function(w){w.innerHTML=y[w.getAttribute("data-value")||""]}),g.defaultItem=g.container.querySelector(".ql-selected"),g.selectItem(g.defaultItem),g}return o(m,[{key:"selectItem",value:function(y,g){a(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,y,g),y=y||this.defaultItem,this.label.innerHTML=y.innerHTML}}]),m})(c.default);i.default=h}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function c(d,f){for(var l=0;l<f.length;l++){var u=f[l];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(d,u.key,u)}}return function(d,f,l){return f&&c(d.prototype,f),l&&c(d,l),d}})();function a(c,d){if(!(c instanceof d))throw new TypeError("Cannot call a class as a function")}var s=(function(){function c(d,f){var l=this;a(this,c),this.quill=d,this.boundsContainer=f||document.body,this.root=d.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){l.root.style.marginTop=-1*l.quill.root.scrollTop+"px"}),this.hide()}return o(c,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(f){var l=f.left+f.width/2-this.root.offsetWidth/2,u=f.bottom+this.quill.root.scrollTop;this.root.style.left=l+"px",this.root.style.top=u+"px",this.root.classList.remove("ql-flip");var h=this.boundsContainer.getBoundingClientRect(),p=this.root.getBoundingClientRect(),m=0;if(p.right>h.right&&(m=h.right-p.right,this.root.style.left=l+m+"px"),p.left<h.left&&(m=h.left-p.left,this.root.style.left=l+m+"px"),p.bottom>h.bottom){var v=p.bottom-p.top,y=f.bottom-f.top+v;this.root.style.top=u-y+"px",this.root.classList.add("ql-flip")}return m}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),c})();i.default=s}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function O(S,R){var T=[],P=!0,L=!1,F=void 0;try{for(var $=S[Symbol.iterator](),z;!(P=(z=$.next()).done)&&(T.push(z.value),!(R&&T.length===R));P=!0);}catch(H){L=!0,F=H}finally{try{!P&&$.return&&$.return()}finally{if(L)throw F}}return T}return function(S,R){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return O(S,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),a=function O(S,R,T){S===null&&(S=Function.prototype);var P=Object.getOwnPropertyDescriptor(S,R);if(P===void 0){var L=Object.getPrototypeOf(S);return L===null?void 0:O(L,R,T)}else{if("value"in P)return P.value;var F=P.get;return F===void 0?void 0:F.call(T)}},s=(function(){function O(S,R){for(var T=0;T<R.length;T++){var P=R[T];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(S,P.key,P)}}return function(S,R,T){return R&&O(S.prototype,R),T&&O(S,T),S}})(),c=n(3),d=w(c),f=n(8),l=w(f),u=n(43),h=w(u),p=n(27),m=w(p),v=n(15),y=n(41),g=w(y);function w(O){return O&&O.__esModule?O:{default:O}}function b(O,S){if(!(O instanceof S))throw new TypeError("Cannot call a class as a function")}function x(O,S){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:O}function _(O,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);O.prototype=Object.create(S&&S.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(O,S):O.__proto__=S)}var E=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],C=(function(O){_(S,O);function S(R,T){b(this,S),T.modules.toolbar!=null&&T.modules.toolbar.container==null&&(T.modules.toolbar.container=E);var P=x(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,R,T));return P.quill.container.classList.add("ql-snow"),P}return s(S,[{key:"extendToolbar",value:function(T){T.container.classList.add("ql-snow"),this.buildButtons([].slice.call(T.container.querySelectorAll("button")),g.default),this.buildPickers([].slice.call(T.container.querySelectorAll("select")),g.default),this.tooltip=new k(this.quill,this.options.bounds),T.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(P,L){T.handlers.link.call(T,!L.format.link)})}}]),S})(h.default);C.DEFAULTS=(0,d.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(S){if(S){var R=this.quill.getSelection();if(R==null||R.length==0)return;var T=this.quill.getText(R);/^\S+@\S+\.\S+$/.test(T)&&T.indexOf("mailto:")!==0&&(T="mailto:"+T);var P=this.quill.theme.tooltip;P.edit("link",T)}else this.quill.format("link",!1)}}}}});var k=(function(O){_(S,O);function S(R,T){b(this,S);var P=x(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,R,T));return P.preview=P.root.querySelector("a.ql-preview"),P}return s(S,[{key:"listen",value:function(){var T=this;a(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(P){T.root.classList.contains("ql-editing")?T.save():T.edit("link",T.preview.textContent),P.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(P){if(T.linkRange!=null){var L=T.linkRange;T.restoreFocus(),T.quill.formatText(L,"link",!1,l.default.sources.USER),delete T.linkRange}P.preventDefault(),T.hide()}),this.quill.on(l.default.events.SELECTION_CHANGE,function(P,L,F){if(P!=null){if(P.length===0&&F===l.default.sources.USER){var $=T.quill.scroll.descendant(m.default,P.index),z=o($,2),H=z[0],D=z[1];if(H!=null){T.linkRange=new v.Range(P.index-D,H.length());var j=m.default.formats(H.domNode);T.preview.textContent=j,T.preview.setAttribute("href",j),T.show(),T.position(T.quill.getBounds(T.linkRange));return}}else delete T.linkRange;T.hide()}})}},{key:"show",value:function(){a(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),S})(u.BaseTooltip);k.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),i.default=C}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(29),a=ee(o),s=n(36),c=n(38),d=n(64),f=n(65),l=ee(f),u=n(66),h=ee(u),p=n(67),m=ee(p),v=n(37),y=n(26),g=n(39),w=n(40),b=n(56),x=ee(b),_=n(68),E=ee(_),C=n(27),k=ee(C),O=n(69),S=ee(O),R=n(70),T=ee(R),P=n(71),L=ee(P),F=n(72),$=ee(F),z=n(73),H=ee(z),D=n(13),j=ee(D),A=n(74),M=ee(A),q=n(75),B=ee(q),N=n(57),V=ee(N),K=n(41),W=ee(K),X=n(28),re=ee(X),oe=n(59),se=ee(oe),te=n(60),ce=ee(te),fe=n(61),ve=ee(fe),Q=n(108),Z=ee(Q),ae=n(62),ie=ee(ae);function ee(ue){return ue&&ue.__esModule?ue:{default:ue}}a.default.register({"attributors/attribute/direction":c.DirectionAttribute,"attributors/class/align":s.AlignClass,"attributors/class/background":v.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":c.DirectionClass,"attributors/class/font":g.FontClass,"attributors/class/size":w.SizeClass,"attributors/style/align":s.AlignStyle,"attributors/style/background":v.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":c.DirectionStyle,"attributors/style/font":g.FontStyle,"attributors/style/size":w.SizeStyle},!0),a.default.register({"formats/align":s.AlignClass,"formats/direction":c.DirectionClass,"formats/indent":d.IndentClass,"formats/background":v.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":g.FontClass,"formats/size":w.SizeClass,"formats/blockquote":l.default,"formats/code-block":j.default,"formats/header":h.default,"formats/list":m.default,"formats/bold":x.default,"formats/code":D.Code,"formats/italic":E.default,"formats/link":k.default,"formats/script":S.default,"formats/strike":T.default,"formats/underline":L.default,"formats/image":$.default,"formats/video":H.default,"formats/list/item":p.ListItem,"modules/formula":M.default,"modules/syntax":B.default,"modules/toolbar":V.default,"themes/bubble":Z.default,"themes/snow":ie.default,"ui/icons":W.default,"ui/picker":re.default,"ui/icon-picker":ce.default,"ui/color-picker":se.default,"ui/tooltip":ve.default},!0),i.default=a.default}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.IndentClass=void 0;var o=(function(){function m(v,y){for(var g=0;g<y.length;g++){var w=y[g];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(v,w.key,w)}}return function(v,y,g){return y&&m(v.prototype,y),g&&m(v,g),v}})(),a=function m(v,y,g){v===null&&(v=Function.prototype);var w=Object.getOwnPropertyDescriptor(v,y);if(w===void 0){var b=Object.getPrototypeOf(v);return b===null?void 0:m(b,y,g)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(g)}},s=n(0),c=d(s);function d(m){return m&&m.__esModule?m:{default:m}}function f(m,v){if(!(m instanceof v))throw new TypeError("Cannot call a class as a function")}function l(m,v){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:m}function u(m,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);m.prototype=Object.create(v&&v.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(m,v):m.__proto__=v)}var h=(function(m){u(v,m);function v(){return f(this,v),l(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return o(v,[{key:"add",value:function(g,w){if(w==="+1"||w==="-1"){var b=this.value(g)||0;w=w==="+1"?b+1:b-1}return w===0?(this.remove(g),!0):a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"add",this).call(this,g,w)}},{key:"canAdd",value:function(g,w){return a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"canAdd",this).call(this,g,w)||a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"canAdd",this).call(this,g,parseInt(w))}},{key:"value",value:function(g){return parseInt(a(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"value",this).call(this,g))||void 0}}]),v})(c.default.Attributor.Class),p=new h("indent","ql-indent",{scope:c.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});i.IndentClass=p}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(4),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function c(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function f(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){f(h,u);function h(){return c(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="blockquote",l.tagName="blockquote",i.default=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function h(p,m){for(var v=0;v<m.length;v++){var y=m[v];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}return function(p,m,v){return m&&h(p.prototype,m),v&&h(p,v),p}})(),a=n(4),s=c(a);function c(h){return h&&h.__esModule?h:{default:h}}function d(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function f(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:h}function l(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}var u=(function(h){l(p,h);function p(){return d(this,p),f(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return o(p,null,[{key:"formats",value:function(v){return this.tagName.indexOf(v.tagName)+1}}]),p})(s.default);u.blotName="header",u.tagName=["H1","H2","H3","H4","H5","H6"],i.default=u}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.ListItem=void 0;var o=(function(){function b(x,_){for(var E=0;E<_.length;E++){var C=_[E];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(x,C.key,C)}}return function(x,_,E){return _&&b(x.prototype,_),E&&b(x,E),x}})(),a=function b(x,_,E){x===null&&(x=Function.prototype);var C=Object.getOwnPropertyDescriptor(x,_);if(C===void 0){var k=Object.getPrototypeOf(x);return k===null?void 0:b(k,_,E)}else{if("value"in C)return C.value;var O=C.get;return O===void 0?void 0:O.call(E)}},s=n(0),c=h(s),d=n(4),f=h(d),l=n(25),u=h(l);function h(b){return b&&b.__esModule?b:{default:b}}function p(b,x,_){return x in b?Object.defineProperty(b,x,{value:_,enumerable:!0,configurable:!0,writable:!0}):b[x]=_,b}function m(b,x){if(!(b instanceof x))throw new TypeError("Cannot call a class as a function")}function v(b,x){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:b}function y(b,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);b.prototype=Object.create(x&&x.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(b,x):b.__proto__=x)}var g=(function(b){y(x,b);function x(){return m(this,x),v(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return o(x,[{key:"format",value:function(E,C){E===w.blotName&&!C?this.replaceWith(c.default.create(this.statics.scope)):a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"format",this).call(this,E,C)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(E,C){return this.parent.isolate(this.offset(this.parent),this.length()),E===this.parent.statics.blotName?(this.parent.replaceWith(E,C),this):(this.parent.unwrap(),a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replaceWith",this).call(this,E,C))}}],[{key:"formats",value:function(E){return E.tagName===this.tagName?void 0:a(x.__proto__||Object.getPrototypeOf(x),"formats",this).call(this,E)}}]),x})(f.default);g.blotName="list-item",g.tagName="LI";var w=(function(b){y(x,b),o(x,null,[{key:"create",value:function(E){var C=E==="ordered"?"OL":"UL",k=a(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,C);return(E==="checked"||E==="unchecked")&&k.setAttribute("data-checked",E==="checked"),k}},{key:"formats",value:function(E){if(E.tagName==="OL")return"ordered";if(E.tagName==="UL")return E.hasAttribute("data-checked")?E.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function x(_){m(this,x);var E=v(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,_)),C=function(O){if(O.target.parentNode===_){var S=E.statics.formats(_),R=c.default.find(O.target);S==="checked"?R.format("list","unchecked"):S==="unchecked"&&R.format("list","checked")}};return _.addEventListener("touchstart",C),_.addEventListener("mousedown",C),E}return o(x,[{key:"format",value:function(E,C){this.children.length>0&&this.children.tail.format(E,C)}},{key:"formats",value:function(){return p({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(E,C){if(E instanceof g)a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"insertBefore",this).call(this,E,C);else{var k=C==null?this.length():C.offset(this),O=this.split(k);O.parent.insertBefore(E,O)}}},{key:"optimize",value:function(E){a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"optimize",this).call(this,E);var C=this.next;C!=null&&C.prev===this&&C.statics.blotName===this.statics.blotName&&C.domNode.tagName===this.domNode.tagName&&C.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(C.moveChildren(this),C.remove())}},{key:"replace",value:function(E){if(E.statics.blotName!==this.statics.blotName){var C=c.default.create(this.statics.defaultChild);E.moveChildren(C),this.appendChild(C)}a(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"replace",this).call(this,E)}}]),x})(u.default);w.blotName="list",w.scope=c.default.Scope.BLOCK_BLOT,w.tagName=["OL","UL"],w.defaultChild="list-item",w.allowedChildren=[g],i.ListItem=g,i.default=w}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(56),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function c(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function f(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){f(h,u);function h(){return c(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="italic",l.tagName=["EM","I"],i.default=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function p(m,v){for(var y=0;y<v.length;y++){var g=v[y];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,v,y){return v&&p(m.prototype,v),y&&p(m,y),m}})(),a=function p(m,v,y){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,v);if(g===void 0){var w=Object.getPrototypeOf(m);return w===null?void 0:p(w,v,y)}else{if("value"in g)return g.value;var b=g.get;return b===void 0?void 0:b.call(y)}},s=n(6),c=d(s);function d(p){return p&&p.__esModule?p:{default:p}}function f(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function l(p,m){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:p}function u(p,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);p.prototype=Object.create(m&&m.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(p,m):p.__proto__=m)}var h=(function(p){u(m,p);function m(){return f(this,m),l(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,null,[{key:"create",value:function(y){return y==="super"?document.createElement("sup"):y==="sub"?document.createElement("sub"):a(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,y)}},{key:"formats",value:function(y){if(y.tagName==="SUB")return"sub";if(y.tagName==="SUP")return"super"}}]),m})(c.default);h.blotName="script",h.tagName=["SUB","SUP"],i.default=h}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(6),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function c(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function f(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){f(h,u);function h(){return c(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="strike",l.tagName="S",i.default=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=n(6),a=s(o);function s(u){return u&&u.__esModule?u:{default:u}}function c(u,h){if(!(u instanceof h))throw new TypeError("Cannot call a class as a function")}function d(u,h){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return h&&(typeof h=="object"||typeof h=="function")?h:u}function f(u,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);u.prototype=Object.create(h&&h.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(u,h):u.__proto__=h)}var l=(function(u){f(h,u);function h(){return c(this,h),d(this,(h.__proto__||Object.getPrototypeOf(h)).apply(this,arguments))}return h})(a.default);l.blotName="underline",l.tagName="U",i.default=l}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function v(y,g){for(var w=0;w<g.length;w++){var b=g[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,g,w){return g&&v(y.prototype,g),w&&v(y,w),y}})(),a=function v(y,g,w){y===null&&(y=Function.prototype);var b=Object.getOwnPropertyDescriptor(y,g);if(b===void 0){var x=Object.getPrototypeOf(y);return x===null?void 0:v(x,g,w)}else{if("value"in b)return b.value;var _=b.get;return _===void 0?void 0:_.call(w)}},s=n(0),c=f(s),d=n(27);function f(v){return v&&v.__esModule?v:{default:v}}function l(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function u(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function h(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var p=["alt","height","width"],m=(function(v){h(y,v);function y(){return l(this,y),u(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"format",value:function(w,b){p.indexOf(w)>-1?b?this.domNode.setAttribute(w,b):this.domNode.removeAttribute(w):a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,w,b)}}],[{key:"create",value:function(w){var b=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,w);return typeof w=="string"&&b.setAttribute("src",this.sanitize(w)),b}},{key:"formats",value:function(w){return p.reduce(function(b,x){return w.hasAttribute(x)&&(b[x]=w.getAttribute(x)),b},{})}},{key:"match",value:function(w){return/\.(jpe?g|gif|png)$/.test(w)||/^data:image\/.+;base64/.test(w)}},{key:"sanitize",value:function(w){return(0,d.sanitize)(w,["http","https","data"])?w:"//:0"}},{key:"value",value:function(w){return w.getAttribute("src")}}]),y})(c.default.Embed);m.blotName="image",m.tagName="IMG",i.default=m}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0});var o=(function(){function v(y,g){for(var w=0;w<g.length;w++){var b=g[w];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(y,b.key,b)}}return function(y,g,w){return g&&v(y.prototype,g),w&&v(y,w),y}})(),a=function v(y,g,w){y===null&&(y=Function.prototype);var b=Object.getOwnPropertyDescriptor(y,g);if(b===void 0){var x=Object.getPrototypeOf(y);return x===null?void 0:v(x,g,w)}else{if("value"in b)return b.value;var _=b.get;return _===void 0?void 0:_.call(w)}},s=n(4),c=n(27),d=f(c);function f(v){return v&&v.__esModule?v:{default:v}}function l(v,y){if(!(v instanceof y))throw new TypeError("Cannot call a class as a function")}function u(v,y){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:v}function h(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);v.prototype=Object.create(y&&y.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(v,y):v.__proto__=y)}var p=["height","width"],m=(function(v){h(y,v);function y(){return l(this,y),u(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"format",value:function(w,b){p.indexOf(w)>-1?b?this.domNode.setAttribute(w,b):this.domNode.removeAttribute(w):a(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,w,b)}}],[{key:"create",value:function(w){var b=a(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,w);return b.setAttribute("frameborder","0"),b.setAttribute("allowfullscreen",!0),b.setAttribute("src",this.sanitize(w)),b}},{key:"formats",value:function(w){return p.reduce(function(b,x){return w.hasAttribute(x)&&(b[x]=w.getAttribute(x)),b},{})}},{key:"sanitize",value:function(w){return d.default.sanitize(w)}},{key:"value",value:function(w){return w.getAttribute("src")}}]),y})(s.BlockEmbed);m.blotName="video",m.className="ql-video",m.tagName="IFRAME",i.default=m}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.FormulaBlot=void 0;var o=(function(){function w(b,x){for(var _=0;_<x.length;_++){var E=x[_];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(b,E.key,E)}}return function(b,x,_){return x&&w(b.prototype,x),_&&w(b,_),b}})(),a=function w(b,x,_){b===null&&(b=Function.prototype);var E=Object.getOwnPropertyDescriptor(b,x);if(E===void 0){var C=Object.getPrototypeOf(b);return C===null?void 0:w(C,x,_)}else{if("value"in E)return E.value;var k=E.get;return k===void 0?void 0:k.call(_)}},s=n(35),c=h(s),d=n(5),f=h(d),l=n(9),u=h(l);function h(w){return w&&w.__esModule?w:{default:w}}function p(w,b){if(!(w instanceof b))throw new TypeError("Cannot call a class as a function")}function m(w,b){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:w}function v(w,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);w.prototype=Object.create(b&&b.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(w,b):w.__proto__=b)}var y=(function(w){v(b,w);function b(){return p(this,b),m(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,null,[{key:"create",value:function(_){var E=a(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,_);return typeof _=="string"&&(window.katex.render(_,E,{throwOnError:!1,errorColor:"#f00"}),E.setAttribute("data-value",_)),E}},{key:"value",value:function(_){return _.getAttribute("data-value")}}]),b})(c.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var g=(function(w){v(b,w),o(b,null,[{key:"register",value:function(){f.default.register(y,!0)}}]);function b(){p(this,b);var x=m(this,(b.__proto__||Object.getPrototypeOf(b)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return x}return b})(u.default);i.FormulaBlot=y,i.default=g}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.CodeToken=i.CodeBlock=void 0;var o=(function(){function _(E,C){for(var k=0;k<C.length;k++){var O=C[k];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(E,O.key,O)}}return function(E,C,k){return C&&_(E.prototype,C),k&&_(E,k),E}})(),a=function _(E,C,k){E===null&&(E=Function.prototype);var O=Object.getOwnPropertyDescriptor(E,C);if(O===void 0){var S=Object.getPrototypeOf(E);return S===null?void 0:_(S,C,k)}else{if("value"in O)return O.value;var R=O.get;return R===void 0?void 0:R.call(k)}},s=n(0),c=m(s),d=n(5),f=m(d),l=n(9),u=m(l),h=n(13),p=m(h);function m(_){return _&&_.__esModule?_:{default:_}}function v(_,E){if(!(_ instanceof E))throw new TypeError("Cannot call a class as a function")}function y(_,E){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:_}function g(_,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);_.prototype=Object.create(E&&E.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(_,E):_.__proto__=E)}var w=(function(_){g(E,_);function E(){return v(this,E),y(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return o(E,[{key:"replaceWith",value:function(k){this.domNode.textContent=this.domNode.textContent,this.attach(),a(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,k)}},{key:"highlight",value:function(k){var O=this.domNode.textContent;this.cachedText!==O&&((O.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=k(O),this.domNode.normalize(),this.attach()),this.cachedText=O)}}]),E})(p.default);w.className="ql-syntax";var b=new c.default.Attributor.Class("token","hljs",{scope:c.default.Scope.INLINE}),x=(function(_){g(E,_),o(E,null,[{key:"register",value:function(){f.default.register(b,!0),f.default.register(w,!0)}}]);function E(C,k){v(this,E);var O=y(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,C,k));if(typeof O.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var S=null;return O.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(S),S=setTimeout(function(){O.highlight(),S=null},O.options.interval)}),O.highlight(),O}return o(E,[{key:"highlight",value:function(){var k=this;if(!this.quill.selection.composing){this.quill.update(f.default.sources.USER);var O=this.quill.getSelection();this.quill.scroll.descendants(w).forEach(function(S){S.highlight(k.options.highlight)}),this.quill.update(f.default.sources.SILENT),O!=null&&this.quill.setSelection(O,f.default.sources.SILENT)}}}]),E})(u.default);x.DEFAULTS={highlight:(function(){return window.hljs==null?null:function(_){var E=window.hljs.highlightAuto(_);return E.value}})(),interval:1e3},i.CodeBlock=w,i.CodeToken=b,i.default=x}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'}),(function(t,i){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'}),(function(t,i){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'}),(function(t,i){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'}),(function(t,i){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'}),(function(t,i){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'}),(function(t,i,n){Object.defineProperty(i,"__esModule",{value:!0}),i.default=i.BubbleTooltip=void 0;var o=function E(C,k,O){C===null&&(C=Function.prototype);var S=Object.getOwnPropertyDescriptor(C,k);if(S===void 0){var R=Object.getPrototypeOf(C);return R===null?void 0:E(R,k,O)}else{if("value"in S)return S.value;var T=S.get;return T===void 0?void 0:T.call(O)}},a=(function(){function E(C,k){for(var O=0;O<k.length;O++){var S=k[O];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(C,S.key,S)}}return function(C,k,O){return k&&E(C.prototype,k),O&&E(C,O),C}})(),s=n(3),c=v(s),d=n(8),f=v(d),l=n(43),u=v(l),h=n(15),p=n(41),m=v(p);function v(E){return E&&E.__esModule?E:{default:E}}function y(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")}function g(E,C){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:E}function w(E,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);E.prototype=Object.create(C&&C.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(E,C):E.__proto__=C)}var b=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],x=(function(E){w(C,E);function C(k,O){y(this,C),O.modules.toolbar!=null&&O.modules.toolbar.container==null&&(O.modules.toolbar.container=b);var S=g(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,k,O));return S.quill.container.classList.add("ql-bubble"),S}return a(C,[{key:"extendToolbar",value:function(O){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(O.container),this.buildButtons([].slice.call(O.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(O.container.querySelectorAll("select")),m.default)}}]),C})(u.default);x.DEFAULTS=(0,c.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(C){C?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=(function(E){w(C,E);function C(k,O){y(this,C);var S=g(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,k,O));return S.quill.on(f.default.events.EDITOR_CHANGE,function(R,T,P,L){if(R===f.default.events.SELECTION_CHANGE)if(T!=null&&T.length>0&&L===f.default.sources.USER){S.show(),S.root.style.left="0px",S.root.style.width="",S.root.style.width=S.root.offsetWidth+"px";var F=S.quill.getLines(T.index,T.length);if(F.length===1)S.position(S.quill.getBounds(T));else{var $=F[F.length-1],z=S.quill.getIndex($),H=Math.min($.length()-1,T.index+T.length-z),D=S.quill.getBounds(new h.Range(z,H));S.position(D)}}else document.activeElement!==S.textbox&&S.quill.hasFocus()&&S.hide()}),S}return a(C,[{key:"listen",value:function(){var O=this;o(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){O.root.classList.remove("ql-editing")}),this.quill.on(f.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!O.root.classList.contains("ql-hidden")){var S=O.quill.getSelection();S!=null&&O.position(O.quill.getBounds(S))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(O){var S=o(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"position",this).call(this,O),R=this.root.querySelector(".ql-tooltip-arrow");if(R.style.marginLeft="",S===0)return S;R.style.marginLeft=-1*S-R.offsetWidth/2+"px"}}]),C})(l.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),i.BubbleTooltip=_,i.default=x}),(function(t,i,n){t.exports=n(63)})]).default})})(Ti)),Ti.exports}var It,pf;function wm(){if(pf)return It;pf=1;var e=It&&It.__extends||(function(){var f=function(l,u){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,p){h.__proto__=p}||function(h,p){for(var m in p)p.hasOwnProperty(m)&&(h[m]=p[m])},f(l,u)};return function(l,u){f(l,u);function h(){this.constructor=l}l.prototype=u===null?Object.create(u):(h.prototype=u.prototype,new h)}})(),r=It&&It.__assign||function(){return r=Object.assign||function(f){for(var l,u=1,h=arguments.length;u<h;u++){l=arguments[u];for(var p in l)Object.prototype.hasOwnProperty.call(l,p)&&(f[p]=l[p])}return f},r.apply(this,arguments)},t=It&&It.__spreadArrays||function(){for(var f=0,l=0,u=arguments.length;l<u;l++)f+=arguments[l].length;for(var h=Array(f),p=0,l=0;l<u;l++)for(var m=arguments[l],v=0,y=m.length;v<y;v++,p++)h[p]=m[v];return h},i=It&&It.__importDefault||function(f){return f&&f.__esModule?f:{default:f}},n=i(U),o=i(In),a=i(ym()),s=i(xm()),c=(function(f){e(l,f);function l(u){var h=f.call(this,u)||this;h.dirtyProps=["modules","formats","bounds","theme","children"],h.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],h.state={generation:0},h.selection=null,h.onEditorChange=function(m,v,y,g){var w,b,x,_;m==="text-change"?(b=(w=h).onEditorChangeText)===null||b===void 0||b.call(w,h.editor.root.innerHTML,v,g,h.unprivilegedEditor):m==="selection-change"&&((_=(x=h).onEditorChangeSelection)===null||_===void 0||_.call(x,v,g,h.unprivilegedEditor))};var p=h.isControlled()?u.value:u.defaultValue;return h.value=p??"",h}return l.prototype.validateProps=function(u){var h;if(n.default.Children.count(u.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(n.default.Children.count(u.children)){var p=n.default.Children.only(u.children);if(((h=p)===null||h===void 0?void 0:h.type)==="textarea")throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.")}if(this.lastDeltaChangeSet&&u.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},l.prototype.shouldComponentUpdate=function(u,h){var p=this,m;if(this.validateProps(u),!this.editor||this.state.generation!==h.generation)return!0;if("value"in u){var v=this.getEditorContents(),y=(m=u.value,m??"");this.isEqualValue(y,v)||this.setEditorContents(this.editor,y)}return u.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,u.readOnly),t(this.cleanProps,this.dirtyProps).some(function(g){return!a.default(u[g],p.props[g])})},l.prototype.shouldComponentRegenerate=function(u){var h=this;return this.dirtyProps.some(function(p){return!a.default(u[p],h.props[p])})},l.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},l.prototype.componentWillUnmount=function(){this.destroyEditor()},l.prototype.componentDidUpdate=function(u,h){var p=this;if(this.editor&&this.shouldComponentRegenerate(u)){var m=this.editor.getContents(),v=this.editor.getSelection();this.regenerationSnapshot={delta:m,selection:v},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==h.generation){var y=this.regenerationSnapshot,m=y.delta,g=y.selection;delete this.regenerationSnapshot,this.instantiateEditor();var w=this.editor;w.setContents(m),d(function(){return p.setEditorSelection(w,g)})}},l.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},l.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},l.prototype.isControlled=function(){return"value"in this.props},l.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},l.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},l.prototype.createEditor=function(u,h){var p=new s.default(u,h);return h.tabIndex!=null&&this.setEditorTabIndex(p,h.tabIndex),this.hookEditor(p),p},l.prototype.hookEditor=function(u){this.unprivilegedEditor=this.makeUnprivilegedEditor(u),u.on("editor-change",this.onEditorChange)},l.prototype.unhookEditor=function(u){u.off("editor-change",this.onEditorChange)},l.prototype.getEditorContents=function(){return this.value},l.prototype.getEditorSelection=function(){return this.selection},l.prototype.isDelta=function(u){return u&&u.ops},l.prototype.isEqualValue=function(u,h){return this.isDelta(u)&&this.isDelta(h)?a.default(u.ops,h.ops):a.default(u,h)},l.prototype.setEditorContents=function(u,h){var p=this;this.value=h;var m=this.getEditorSelection();typeof h=="string"?u.setContents(u.clipboard.convert(h)):u.setContents(h),d(function(){return p.setEditorSelection(u,m)})},l.prototype.setEditorSelection=function(u,h){if(this.selection=h,h){var p=u.getLength();h.index=Math.max(0,Math.min(h.index,p-1)),h.length=Math.max(0,Math.min(h.length,p-1-h.index)),u.setSelection(h)}},l.prototype.setEditorTabIndex=function(u,h){var p,m;!((m=(p=u)===null||p===void 0?void 0:p.scroll)===null||m===void 0)&&m.domNode&&(u.scroll.domNode.tabIndex=h)},l.prototype.setEditorReadOnly=function(u,h){h?u.disable():u.enable()},l.prototype.makeUnprivilegedEditor=function(u){var h=u;return{getHTML:function(){return h.root.innerHTML},getLength:h.getLength.bind(h),getText:h.getText.bind(h),getContents:h.getContents.bind(h),getSelection:h.getSelection.bind(h),getBounds:h.getBounds.bind(h)}},l.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var u=o.default.findDOMNode(this.editingArea);if(!u)throw new Error("Cannot find element for editing area");if(u.nodeType===3)throw new Error("Editing area cannot be a text node");return u},l.prototype.renderEditingArea=function(){var u=this,h=this.props,p=h.children,m=h.preserveWhitespace,v=this.state.generation,y={key:v,ref:function(g){u.editingArea=g}};return n.default.Children.count(p)?n.default.cloneElement(n.default.Children.only(p),y):m?n.default.createElement("pre",r({},y)):n.default.createElement("div",r({},y))},l.prototype.render=function(){var u;return n.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(u=this.props.className,u??""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},l.prototype.onEditorChangeText=function(u,h,p,m){var v,y;if(this.editor){var g=this.isDelta(this.value)?m.getContents():m.getHTML();g!==this.getEditorContents()&&(this.lastDeltaChangeSet=h,this.value=g,(y=(v=this.props).onChange)===null||y===void 0||y.call(v,u,h,p,m))}},l.prototype.onEditorChangeSelection=function(u,h,p){var m,v,y,g,w,b;if(this.editor){var x=this.getEditorSelection(),_=!x&&u,E=x&&!u;a.default(u,x)||(this.selection=u,(v=(m=this.props).onChangeSelection)===null||v===void 0||v.call(m,u,h,p),_?(g=(y=this.props).onFocus)===null||g===void 0||g.call(y,u,h,p):E&&((b=(w=this.props).onBlur)===null||b===void 0||b.call(w,x,h,p)))}},l.prototype.focus=function(){this.editor&&this.editor.focus()},l.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},l.displayName="React Quill",l.Quill=s.default,l.defaultProps={theme:"snow",modules:{},readOnly:!1},l})(n.default.Component);function d(f){Promise.resolve().then(f)}return It=c,It}var Dl=wm();const Em=er.getDefaultExportFromCjs(Dl),ql=({width:e="100%",height:r="100%",boxAlign:t,display:i="show",overflow:n,style:o,className:a,border:s=!0,children:c,ref:d})=>Y.jsxRuntimeExports.jsx("div",{style:{width:e,height:r,display:i==="show"?"":i,overflowX:n?.x,overflowY:n?.y,...o},className:`bwgview-content-box ${t?`content-box-${t}`:""} ${a||""} ${s?"":"none-box-st"}`,ref:d,children:c});Dl.Quill.register("modules/imageResize",ig);const _m=({name:e,value:r,itemProps:t})=>{const i=de.Form.useFormInstance();return U.useEffect(()=>{i?.setFieldValue(e,r??"")},[i,e,r]),Y.jsxRuntimeExports.jsx(de.Form.Item,{...t,hidden:!0,children:Y.jsxRuntimeExports.jsx(de.Input,{type:"hidden"})})},Sm=({itemProps:e,editorProps:r,value:t,defaultValue:i,onChange:n})=>{const{isEditing:o=!0,title:a,containerHeight:s="100%"}=r||{},c=U.useMemo(()=>({toolbar:o?[[{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,imageResize:{parchment:Dl.Quill.import("parchment"),modules:["Resize","DisplaySize","Toolbar"],displayStyles:{backgroundColor:"black",border:"none",color:"white"},handleStyles:{}}}),[o]),d=U.useMemo(()=>["header","bold","italic","underline","strike","color","background","list","bullet","indent","align","link","image"],[]),f=t!==void 0,[l,u]=U.useState(i??""),h=f?t:l,p=U.useCallback((g,w,b,x)=>{f||u(g),n?.(g,w,b,x)},[f,n]),y=`calc(100% - ${o?"42px":"0px"} - ${a?"40px":"0px"})`;return Y.jsxRuntimeExports.jsxs(ql,{children:[a&&Y.jsxRuntimeExports.jsx(Gi,{...a,paddingBottom:10}),e?.name&&Y.jsxRuntimeExports.jsx(_m,{name:e.name,value:h??"",itemProps:e}),Y.jsxRuntimeExports.jsx(Em,{readOnly:!o,value:h,onChange:p,modules:c,formats:d,style:{width:"100%",height:y}},o?"snow":"bubble")]})};var Mr={},gf;function Cm(){if(gf)return Mr;gf=1;var e=In;if(process.env.NODE_ENV==="production")Mr.createRoot=e.createRoot,Mr.hydrateRoot=e.hydrateRoot;else{var r=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Mr.createRoot=function(t,i){r.usingClientEntryPoint=!0;try{return e.createRoot(t,i)}finally{r.usingClientEntryPoint=!1}},Mr.hydrateRoot=function(t,i,n){r.usingClientEntryPoint=!0;try{return e.hydrateRoot(t,i,n)}finally{r.usingClientEntryPoint=!1}}}return Mr}var Om=Cm();const Rm="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZVDbDcIwDHSiqL90AzoCI5S/fvQBEwATIDYoE7BCRwjqAtmAsEE3gAlqzlFBKbXknJ2cL5cQRcF13SIf9Bd63mmHdcN5nsbbJm6UtY6bxlGaCunNZZmTUpniqhpQvIhZ8AlcI+9QXYHYIb3BgQ0ETAJ36BvUmQiDuBV19TNdFBkliUyK0lX1fbc0bkyL1WF6D7UzbBxnpKCi9YHG0UPeoz6BePt+h55UxMMA9NMrPa68BDLiAxmcQh0cAM62AAAAAElFTkSuQmCC",Am="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAC7SURBVHgBZZDLDcJADETHUe7QQVJC6AAqACoAKkCcESh8JI60kBKgg3TA0kE6gAISzHgj0BJ8sWw/j2cXCCI7aD446g2diDp1aWyWaz9sxmHhNlJSyUCDnlQeQpEKm5UCDwgqvHBnTji4MvcEKGw3FsVFDeCmCCbMYwIpQY4wMnX5mj5pKrXfTFSxc1sp/o03yLlZaoSpRFhme53/QF4FmNl9txbH8wuC5893tEo1PZivBs6/sgVXBlv9BpvVRX62Og6eAAAAAElFTkSuQmCC",Tm=[{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"}],km=[{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"}],Pm=({children:e})=>{const[r,t]=U.useState(!1),[i,n]=U.useState(null);return r?Y.jsxRuntimeExports.jsx("div",{style:{padding:"20px",border:"1px solid #ff4d4f",borderRadius:"6px",backgroundColor:"#fff2f0",margin:"10px"},children:Y.jsxRuntimeExports.jsx(de.Alert,{message:"리얼그리드 로드 실패",description:Y.jsxRuntimeExports.jsxs("div",{children:[Y.jsxRuntimeExports.jsx("p",{children:"리얼그리드 라이센스 또는 초기화 중 오류가 발생했습니다."}),Y.jsxRuntimeExports.jsxs("p",{style:{fontSize:"12px",color:"#666",marginTop:"8px"},children:["오류: ",i?.message||"알 수 없는 오류"]}),Y.jsxRuntimeExports.jsx(de.Button,{type:"primary",size:"small",style:{marginTop:"8px"},onClick:()=>{t(!1),n(null),window.location.reload()},children:"다시 시도"})]}),type:"error",showIcon:!0})}):Y.jsxRuntimeExports.jsx(jm,{onError:o=>{console.error("BwgGrid 에러:",o),n(o),t(!0)},children:e})};class jm extends U.Component{constructor(r){super(r),this.state={hasError:!1}}static getDerivedStateFromError(r){return{hasError:!0}}componentDidCatch(r,t){this.props.onError(r)}render(){return this.state.hasError?null:this.props.children}}const Nm=U.forwardRef(({type:e="nrml",gridDivStyle:r,gridDivClassName:t,gridColumns:i,gridOptions:n,gridEvents:o,bindRef:a,gridContext:s,renderers:c,gridInitCallback:d},f)=>{const l=U.useRef(null),u=(A,M,q,B)=>{let N=[],V=[];const K="treeNode";for(let W in A){let X=A[W];N[X[q]]=A[W];let re=N[X[M]];if(re==null||re=="-"){V.push(X);continue}re[K]==null&&(re[K]=[]),re[K].push(X)}return V},h=U.useCallback(A=>{const M=B=>{const N=[];return B.forEach(V=>{V.children&&V.children.length>0?N.push(...M(V.children)):N.push(V)}),N};return M(A).map(B=>({fieldName:B.fieldName,dataType:B.dataType||"text"}))},[]),p=U.useCallback(A=>{const M=B=>{const N=[];return B.forEach(V=>{V.children&&V.children.length>0?N.push(...M(V.children)):N.push(V)}),N};return M(A).map(B=>({...B,header:{template:B.required?`<img src='${Rm}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:B.editable?`<img src='${Am}' style='margin-top:4px; margin-right: 2px;' alt='Required input' >\${headerText} `:"${headerText}",values:{headerText:B.header?.text??""},text:B.header?.text||""},styleName:B.dataType==="number"?"right":B.styleName||"center"}))},[]);U.useImperativeHandle(f,()=>({addAllData(A,M){const q=l.current?.gridView.getCurrent().dataRow;if(l.current?.dataProvider instanceof St.LocalDataProvider){l.current.dataProvider.clearRows();try{l.current.dataProvider.fillJsonData(A)}catch(B){console.error("fillJsonData 오류:",B)}}if(l.current?.dataProvider instanceof St.LocalTreeDataProvider){if(l.current.dataProvider.clearRows(),M?.treeOption?.dataField==null||M?.treeOption?.parentField==null)return;const B={rows:"treeNode"};let N=u(A,M.treeOption?.parentField,M.treeOption?.dataField);l.current.dataProvider.fillJsonData({treeNode:N},B),M.treeOption.isExpand&&l.current.gridView?.expandAll()}M?.isCurrent?l.current?.gridView.setCurrent({dataRow:q}):l.current?.gridView.setCurrent({dataRow:0})},getGridInstance:()=>l.current,getCurrentRow:()=>l.current?.gridView.getCurrent().dataRow??-1,getCurrentIndex:()=>l.current?.gridView.getCurrent().itemIndex??-1,gridExcelDown(A){l.current?.gridView.exportGrid({type:"excel",target:"local",allItems:!1,lookupDisplay:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!A?.indenting,header:"default",footer:"default",sheetName:"",fileName:A?.fileName||"sample.xlsx",...A})},dp:l.current?.dataProvider??null,vw:l.current?.gridView??null}));const m=U.useCallback((A,M,q)=>{if(a!==void 0&&q>=0){let B=A.getDataSource().getJsonRow(q);a?.current?.setFieldsValue(B)}else a!==void 0&&q<0&&a?.current?.resetFields();A.setCurrent({dataRow:0}),o?.onCurrentRowChanged&&o?.onCurrentRowChanged(A,M,q)},[a,o]),v=U.useCallback((A,M,q)=>{const B=M.fieldName??"";a?.current?.getFieldInstance(B)&&a?.current.setFieldValue(B,q),o?.onEditChange&&o?.onEditChange(A,M,q)},[a,o]),y=U.useCallback((A,M,q)=>{const B=A.getOrgFieldName(q),N=A.getValue(M,q);a?.current?.setFieldValue(B,N)},[a]),g=U.useCallback((A,M,q,B)=>{const N=A.getColumn(B).name??"",V=A.getValue(M,B);a?.current?.getFieldInstance(N)&&a?.current.setFieldValue(N,V),o?.onCellEdited&&o?.onCellEdited(A,M,q,B)},[a,o]),w=U.useCallback(A=>{},[]),b=U.useCallback(()=>{if(!l.current)return;const A=l.current.gridView,M=A.getDataSource(),q=["onKeyDown"],B=["onRowInserted"];Object.keys(o??{}).map(N=>{q.includes(N)?A[N+"Add"]=o?.[N]:A[N]=o?.[N],B.includes(N)?M[N+"Add"]=o?.[N]:M[N]=o?.[N]}),M instanceof St.LocalDataProvider&&(M.onRowInserted=(N,V)=>{V<0||(setTimeout(function(){A?.setCurrent({dataRow:V})},1),N.onRowInsertedAdd!==void 0&&N.onRowInsertedAdd(N,V))}),A.onKeyDown=function(N,V){if(V.code=="Space"){let K=N.getSelectedItems(!0);for(const W in K)N.isCheckable(K[W])&&(N.isCheckedItem(K[W])?N.checkItem(K[W],!1,!1):N.checkItem(K[W],!0,!1))}return N.onKeyDownAdd!==void 0&&N.onKeyDownAdd(N,V),!0},l.current.gridView.onCurrentRowChanged=m,l.current.gridView.onEditChange=v,l.current.gridView.getDataSource().onValueChanged=y,l.current.gridView.onCellEdited=g,l.current.gridView.onDataLoadComplated=w},[m,v,y,g,w]),x=U.useCallback(A=>{if(A){try{A.gridView.setSortingOptions({enabled:!0}),A.gridView.sortMode=St.SortMode.EXPLICIT,A.gridView.editorOptions.viewGridInside=!0,A.gridView instanceof St.TreeView&&A.gridView.setTreeOptions({expandWhenSetData:St.ExpandWhenSetData.REMAIN_AND_EXPAND,expanderIconStyle:St.TreeExpanderIconStyle.SQUARE,iconVisible:!1,lineVisible:!0}),A.gridView.setDisplayOptions({showEmptyMessage:!0,emptyMessage:"조회된 데이터가 존재하지 않습니다.",useFocusClass:!0,minRowHeight:n?.display?.minRowHeight||43,maxRowHeight:n?.display?.maxRowHeight||100,rowHeight:n?.display?.rowHeight||43,rowChangeDelay:n?.display?.rowChangeDelay||0,selectionStyle:n?.display?.selectionStyle||St.SelectionStyle.ROWS,fitStyle:n?.display?.fitStyle||St.GridFitStyle.FILL,useAlternateRowStyle:n?.display?.useAlternateRowStyle||!1}),A.gridView.setEditOptions({commitWhenExitLast:!0,columnEditableFirst:!1,commitByCell:!0,commitWhenLeave:!0,crossWhenExitLast:!0,confirmWhenDelete:!1,deletable:!1,revertable:!1,showOnlyValidationMessage:!0,editable:n?.edit?.editable||!1,validateOnEdited:n?.edit?.validateOnEdited||!1}),A.gridView.setCopyOptions({singleMode:n?.copy?.singleMode||!1}),A.gridView.setPasteOptions({selectBlockPaste:!0,checkReadOnly:!0,throwValidationError:!1}),A.gridView.header.height=n?.header?.height||43,A.gridView.header.styleName=n?.header?.styleName||"bwgGridHeader",n?.container?.radio?A.gridView.setCheckBar({exclusive:n?.container?.radio||!1}):A.gridView.setCheckBar({visible:n?.container?.check||!1,showAll:n?.container?.checkAll||!1}),A.gridView.setStateBar({visible:n?.container?.state||!1}),A.gridView.rowIndicator.visible=n?.container?.indicator||!1,A.gridView instanceof St.GridView&&(A.gridView.groupPanel.visible=n?.container?.panel||!1),A.gridView.setFooters({visible:n?.container?.footer||!1}),A.gridView.setHeader({visible:n?.container?.header||!0}),A.gridView.formatOptions.numberFormat="#,##0"}catch(M){console.log("그리드 옵션 설정 중 오류:",M)}try{A.gridView instanceof St.TreeView?A.gridView.setContextMenu(km):A.gridView.setContextMenu(Tm),A.gridView.onContextMenuItemClicked=function(M,q,B){if(!(!B||!B.column)){if(q.tag=="excel")k(M,{isTitle:!1},s?.excel);else if(q.tag=="showIndentExcel")k(M,{isTitle:!1,treeBlank:!0},s?.excel);else if(q.tag=="withTitleExcel")k(M,{isTitle:!0,treeBlank:!1},s?.excel);else if(q.tag=="filter")O(M,q);else if(q.tag=="fixedCol"){const V=M.getDataSource().getFieldIndex(B.column);M.setFixedOptions({colCount:V})}else if(q.tag=="fixedRow")M.setFixedOptions({rowCount:(B.itemIndex||0)+1});else if(q.tag=="fixedCancel")M.setFixedOptions({colCount:0,rowCount:0});else if(q.tag=="hide")M.setColumnProperty(B.column,"visible",!1),M._hideCols[M._hideCols.length]=B.column;else if(q.tag=="hideClear")for(var N=0;N<M._hideCols.length;N++)M.setColumnProperty(M._hideCols[N],"visible",!0)}}}catch(M){console.log("컨텍스트 설정 중 오류:",M)}}},[n]),_=A=>{if(!(!c||c.length===0))try{c.forEach(M=>{const{name:q,renderer:B}=M;if(q&&B){const N=typeof B=="function"?new B:B;A.gridView.registerCustomRenderer(q,N)}})}catch(M){console.error("커스텀 렌더러 초기화 중 오류:",M)}},E=A=>{if(n?.layout?.colspan&&n.layout.colspan.length>0&&n?.layout?.colspan.forEach(M=>{const q=A.gridView.layoutByColumn(M.fieldName);if(q){const B=M.span;q.spanCallback=function(N,V,K){return B}}}),i&&i.length>0&&i.some(q=>q.children&&q.children.length>0))try{(()=>{const B=JSON.parse(JSON.stringify(i)),N=[],V=K=>{const W=[];return K.children.map(X=>{if(X.children&&X.children.length>0){const re=V(X),oe=X.header?.text||X.fieldName,se=A.gridView.getColumnProperty(X.fieldName,"header");delete X.children,delete X.header;let te={name:X.fieldName,header:{text:se?.text||oe,template:se?.template,values:se?.values},items:re,...X};W.push(te)}else W.push(X.fieldName)}),W};B.map(K=>{if(K.children&&K.children.length>0){const W=V(K),X=K.header?.text||K.fieldName,re=A.gridView.getColumnProperty(K.fieldName,"header");delete K.children,delete K.header;const oe={name:K.fieldName,header:{text:re?.text||X,template:re?.template,values:re?.values},items:W,...K};N.push(oe)}else N.push(K.fieldName)}),console.log("Final Layout!!",N),A.gridView.setColumnLayout(N)})()}catch(q){console.error("컬럼 레이아웃 설정 오류:",q)}},C=()=>{if(l.current){if(e==="nrml"){const A=l.current;if(x(A),_(A),i&&i.length>0){const M=h(i),q=p(i);A.gridView.getDataSource().setFields(M),A.gridView.setColumns(q)}E(A)}else{const A=l.current;if(x(A),_(A),i&&i.length>0){const M=h(i),q=p(i);A.gridView.getDataSource().setFields(M),A.gridView.setColumns(q)}E(l.current)}setTimeout(()=>{if(d){const A=typeof f=="object"&&f!==null?f.current:null;d(A)}},0)}},k=(A,M,q)=>{const B=A.getDataSource();let N=q?.footer==null?"default":q.footer;B.getRowCount()<1&&(N="hidden");let V={type:"excel",target:"local",allItems:!1,lookupDisplay:!0,compatibility:!0,showProgress:!0,progressMessage:"엑셀 Export 중 입니다.",applyDynamicStyles:!1,separateRows:!0,indenting:!!M?.treeBlank,footer:N,sheetName:"",documentTitle:{},documentSubtitle:{},documentTail:{},fileName:q?.fileName||"sample.xlsx"};B instanceof St.LocalTreeDataProvider&&(V.indenting=!!M?.treeBlank),q?.isCellMerge==!0&&(V.separateRows=!1),mt.isEmpty(q?.sheetName)==!1&&(V.sheetName=q?.sheetName),M?.isTitle&&(V.documentTitle={message:mt.isSafeEmpty(q?.mainTitle,"No Title"),visible:!0,styleName:"documentStyle",spaceTop:1,spaceBottom:0,height:43},mt.isEmpty(q?.subTitle)==!1&&(V.documentSubtitle={message:q?.subTitle,visible:!0,styleName:"center",height:20}),mt.isEmpty(q?.tailTitle)==!1&&(V.documentTail={message:q?.tailTitle,visible:!0,styleName:"documentStyle"})),A.exportGrid(V)},O=(A,M)=>{const q=A.getDataSource(),B=q.getOrgFieldNames();if(M.checked)for(var N=0;N<B.length;N++){let K=[],W=q.getDistinctValues(B[N])??[];if(W.length==0)continue;let X=A.columnByName(B[N]);for(var V=0;V<W.length;V++){if(W[V]==null)continue;let re=X.values!=null&&X.values.indexOf(W[V])!=-1?X?.labels?.[X.values.indexOf(W[V])]:W[V];mt.isEmpty(re)&&(mt.isEmpty(W[V])?re=" ":re=W[V]);let oe="";W[V]==null?oe="value="+W[V]:oe="value='"+W[V]+"'",K.push({name:re,criteria:oe})}A.setColumnFilters(B[N],K)}else for(var N=0;N<B.length;N++)A.clearColumnFilters(B[N]),A.activateAllColumnFilters(B[N],!1),A.clearColumnFilters(B[N])};U.useEffect(()=>{if(l.current&&l.current.gridView)if(e==="nrml"){const A=l.current;x(A)}else{const A=l.current;x(A)}},[e,n,x]),U.useEffect(()=>{!l.current||!i||i.length===0||C()},[i]),U.useEffect(()=>{l.current&&b()},[o,b]);const[S,R]=U.useState(!1),[T,P]=U.useState(""),L=U.useRef(null);U.useEffect(()=>{S&&setTimeout(()=>{L.current?.focus?.()},0)},[S]),U.useEffect(()=>()=>{if(l.current)try{const A=l.current;A.gridView&&(A.gridView.onDataLoadComplated=void 0,A.gridView.onCurrentRowChanged=void 0,A.gridView.onCellClicked=void 0,A.gridView.onCellDblClicked=void 0,A.gridView.onEditRowChanged=void 0,A.gridView.onItemChecked=void 0,A.gridView.onItemAllChecked=void 0,A.gridView.onColumnCheckedChanged=void 0,A.gridView.onCellButtonClicked=void 0,A.gridView.onEditChange=void 0,A.gridView.onCellEdited=void 0,A.gridView.onKeyUp=void 0,A.gridView.onKeyDown=void 0,A.gridView.onWheel=void 0,A.gridView.onValidateColumn=void 0,A.gridView.onValidateRow=void 0,A.gridView.onValidationFail=void 0,A.gridView.onRowInserting=void 0,A.gridView.onCellItemClicked=void 0,A.gridView.onShowEditor=void 0,A.gridView.getDataSource()&&(A.gridView.getDataSource().clearRows(),A.gridView.getDataSource().setFields([])),A.gridView.getDataSource().clearRows())}catch(A){console.warn("⚠️ BwgGrid cleanup error:",A)}},[]);const F=U.useCallback(A=>{$(A)},[]),$=U.useCallback(A=>{const M=l.current?.gridView;if(M?.isFiltered()){console.log("EE:: [그리드 Filtering 으로 인한 오류] 그리드 내 Filter를 해제 후 진행해 주십시오.");return}if(M?.commit(),mt.isEmpty(A))return;const q=M?.getCurrent().itemIndex??-1;if(q<0)return;const B={value:A,startIndex:q+1,wrap:!0,caseSensitive:!1,partialMatch:!0},N=M?.searchCell(B);M?.setCurrent(N)},[]),z=U.useCallback(A=>{A.key==="Escape"&&(A.preventDefault(),R(!1))},[]),H=U.useCallback(A=>{A.ctrlKey&&A.code==="KeyF"&&(A.preventDefault(),P(""),R(!S))},[S]),D={searchRow:F,searchEnter:$,handleCloseKeyword:z,handleSearch:H},j=U.useMemo(()=>({...r,position:"relative",width:r?.width||"100%",height:r?.height||"100%"}),[r]);return Y.jsxRuntimeExports.jsx(Pm,{children:Y.jsxRuntimeExports.jsxs("div",{style:j,className:t,onKeyDown:A=>D.handleSearch(A),children:[S&&Y.jsxRuntimeExports.jsx("div",{className:"grid-search-box",children:Y.jsxRuntimeExports.jsxs(de.Flex,{gap:3,children:[Y.jsxRuntimeExports.jsx(de.ConfigProvider,{theme:{components:{Button:{controlHeight:32},Input:{controlHeight:32}}},children:Y.jsxRuntimeExports.jsxs(de.Space.Compact,{children:[Y.jsxRuntimeExports.jsx(de.Button,{icon:Y.jsxRuntimeExports.jsx(ft.SearchOutlined,{})}),Y.jsxRuntimeExports.jsx(de.Input,{ref:L,value:T,name:"srchField",autoComplete:"off",onKeyUp:A=>D.handleCloseKeyword(A),onChange:A=>P(A.target.value),onPressEnter:A=>D.searchEnter(A)})]})}),Y.jsxRuntimeExports.jsx(de.Button,{variant:"solid",icon:Y.jsxRuntimeExports.jsx(ft.CloseOutlined,{}),onClick:()=>R(!1)})]})}),e==="nrml"?Y.jsxRuntimeExports.jsx(vu.RealGridReact,{ref:l,autoGenerateField:!0,onInitialized:C}):Y.jsxRuntimeExports.jsx(vu.RealTreeReact,{ref:l,autoGenerateField:!1,onInitialized:C})]})})}),Mm=e=>({initContent(r){this._root=Om.createRoot(r)},render(r,t,i,n){const o=this._root;o&&e(r,t,i,n,o)},clearContent(r){const t=this._root;t&&setTimeout(()=>{t&&(t.unmount(),this._root=null)},0)},canClick(r){return!0},click(){return{}}}),Im=U.memo(({title:e,border:r,children:t,titleChildren:i})=>{const n=U.useMemo(()=>({components:{Form:{labelColor:"#9A9A9A"},Select:{colorTextDisabled:"#000"}}}),[]);return Y.jsxRuntimeExports.jsxs(to,{type:"vertical",children:[Y.jsxRuntimeExports.jsx(Gi,{title:e,icons:{type:"antd",icon:"InfoCircleTwoTone"},children:i}),Y.jsxRuntimeExports.jsx(ql,{border:!1,children:Y.jsxRuntimeExports.jsx(de.ConfigProvider,{theme:n,children:t})})]})}),to=({type:e="horizontal",layoutAlign:r="left",verticalAlign:t,className:i,style:n,children:o})=>Y.jsxRuntimeExports.jsx("div",{style:n,className:`bwgview-content-layout ${e=="horizontal"?"hz-layout":"vt-layout"} layout-${r} ${t&&`vertical-${t}`} ${i||""}`,children:o}),mf=(e,r)=>{const t=window.innerWidth,i=window.innerHeight,n=Math.min(Math.max(e.x,0),Math.max(0,t-r.width)),o=Math.min(Math.max(e.y,0),Math.max(0,i-r.height));return{x:n,y:o}},Lm=({buttons:e,popupData:r,onButtonClick:t})=>!e||e.length===0?null:Y.jsxRuntimeExports.jsx("div",{style:{display:"flex",gap:6},children:e.map(i=>Y.jsxRuntimeExports.jsx(de.Button,{type:i.type||"default",danger:i.danger,disabled:i.disabled,onClick:()=>t?.(i.key,r),className:"bwg-btn popup-btn",children:i.text},i.key))}),$m=({popup:e,popupEvent:r,onClose:t,children:i})=>{const n=U.useRef(null);e?.popupId;const o=e?.popupTitle||"팝업",a=e?.width||800,s=e?.height||600,c=e?.buttonList?.map((_,E)=>({key:_.btnId||`btn_${E}`,text:_.btnNm,type:_.btnId==="CLOSE"?"default":"primary",disabled:_.enblYn!=="Y",danger:!1}))||[],f=c.some(_=>_.key==="CLOSE"||_.key==="close")?c:[...c,{key:"CLOSE",text:"닫기",type:"default",disabled:!1,danger:!1}],[l,u]=U.useState(a),[h,p]=U.useState(s),m=U.useMemo(()=>{const _=Math.max(0,(window.innerWidth-a)/2),E=Math.max(0,(window.innerHeight-s)/2);return{x:_,y:E}},[a,s]),[v,y]=U.useState(m),g=(_,E)=>{if(_==="CLOSE"||_==="close"){e?.close?.()||t?.();return}r&&r[_]?r[_]():e?.close?.()||t?.()},w=(_,E)=>{const C=mf({x:E.x,y:E.y},{width:l,height:h});y(C)},b=(_,E,C,k,O)=>{const S={width:parseInt(C.style.width,10),height:parseInt(C.style.height,10)},R=mf(O,S);u(S.width),p(S.height),y(R)},x=()=>n.current??document.body;return Y.jsxRuntimeExports.jsxs("div",{style:{position:"fixed",inset:0,zIndex:1e3},children:[Y.jsxRuntimeExports.jsx("div",{onClick:t,style:{position:"absolute",inset:0,backgroundColor:"rgba(0,0,0,0.3)",zIndex:0}}),Y.jsxRuntimeExports.jsxs(Mp.Rnd,{className:"bwg-popup",size:{width:l,height:h},position:v,bounds:"window",minWidth:400,minHeight:300,onDragStop:w,onResizeStop:b,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:[Y.jsxRuntimeExports.jsx("div",{className:"bwg-popup-content",style:{overflow:"hidden",borderRadius:20,height:"100%"},children:Y.jsxRuntimeExports.jsx(th,{getPopupContainer:x,children:Y.jsxRuntimeExports.jsx(to,{type:"vertical",children:Y.jsxRuntimeExports.jsx(de.Card,{className:"popup-drag-container",title:Y.jsxRuntimeExports.jsx("div",{className:"drag-handle",style:{display:"flex",alignItems:"center",gap:8},children:o}),style:{width:"100%",height:"100%"},styles:{body:{height:"calc(100% - 77px)",padding:20,overflow:"auto"}},extra:Y.jsxRuntimeExports.jsx(Lm,{buttons:f,popupData:e,onButtonClick:g}),children:Y.jsxRuntimeExports.jsx("div",{className:"rnd-cancel",style:{height:"100%"},children:i})})})})}),Y.jsxRuntimeExports.jsx("div",{ref:n,className:"bwg-popup-portal-root",style:{position:"relative"}})]})]})},Fm=({children:e,...r})=>Y.jsxRuntimeExports.jsx(de.Row,{...r,className:"bwg-row",children:e}),Dm=({rowKey:e="id",columns:r,dataSource:t,loading:i=!1,rowSelection:n,size:o="middle",pagination:a=!1,...s})=>Y.jsxRuntimeExports.jsx(de.Table,{rowKey:e,columns:r,dataSource:t,loading:i,rowSelection:n,size:o,pagination:a,bordered:!0,scroll:{x:"max-content"},locale:{emptyText:"데이터가 없습니다."},...s}),qm=e=>{const{type:r="card",animated:t=!0,...i}=e;return Y.jsxRuntimeExports.jsx(de.Tabs,{type:r,animated:t,...i})};function Bs(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,i=Array(r);t<r;t++)i[t]=e[t];return i}function Bm(e){if(Array.isArray(e))return Bs(e)}function dh(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bl(e,r){if(e){if(typeof e=="string")return Bs(e,r);var t={}.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Bs(e,r):void 0}}function Vm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
54
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function me(e){return Bm(e)||dh(e)||Bl(e)||Vm()}function qe(){return qe=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},qe.apply(null,arguments)}var Hm={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 hh(e){if(Array.isArray(e))return e}function zm(e,r){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var i,n,o,a,s=[],c=!0,d=!1;try{if(o=(t=t.call(e)).next,r===0){if(Object(t)!==t)return;c=!1}else for(;!(c=(i=o.call(t)).done)&&(s.push(i.value),s.length!==r);c=!0);}catch(f){d=!0,n=f}finally{try{if(!c&&t.return!=null&&(a=t.return(),Object(a)!==a))return}finally{if(d)throw n}}return s}}function vh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
55
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function le(e,r){return hh(e)||zm(e,r)||Bl(e,r)||vh()}function Ee(e){"@babel/helpers - typeof";return Ee=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ee(e)}function Um(e,r){if(Ee(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var i=t.call(e,r);if(Ee(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function ph(e){var r=Um(e,"string");return Ee(r)=="symbol"?r:r+""}function G(e,r,t){return(r=ph(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Wm(e,r){if(e==null)return{};var t={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(r.indexOf(i)!==-1)continue;t[i]=e[i]}return t}function dt(e,r){if(e==null)return{};var t,i,n=Wm(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)t=o[i],r.indexOf(t)===-1&&{}.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}var ds={exports:{}};/*!
|
|
56
56
|
Copyright (c) 2018 Jed Watson.
|
|
57
57
|
Licensed under the MIT License (MIT), see
|
|
58
58
|
http://jedwatson.github.io/classnames
|
|
59
|
-
*/var gf;function Wm(){return gf||(gf=1,(function(e){(function(){var r={}.hasOwnProperty;function t(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=n(o,i(s)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)r.call(o,s)&&o[s]&&(a=n(a,s));return a}function n(o,a){return a?o?o+" "+a:o+a:o}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(fs)),fs.exports}var Km=Wm();const ye=er.getDefaultExportFromCjs(Km),nt=Math.round;function ds(e,r){const t=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],i=t.map(n=>parseFloat(n));for(let n=0;n<3;n+=1)i[n]=r(i[n]||0,t[n]||"",n);return t[3]?i[3]=t[3].includes("%")?i[3]/100:i[3]:i[3]=1,i}const mf=(e,r,t)=>t===0?e:e/100;function Sn(e,r){const t=r||255;return e>t?t:e<0?0:e}let et=class ph{constructor(r){G(this,"isValid",!0),G(this,"r",0),G(this,"g",0),G(this,"b",0),G(this,"a",1),G(this,"_h",void 0),G(this,"_s",void 0),G(this,"_l",void 0),G(this,"_v",void 0),G(this,"_max",void 0),G(this,"_min",void 0),G(this,"_brightness",void 0);function t(i){return i[0]in r&&i[1]in r&&i[2]in r}if(r)if(typeof r=="string"){let n=function(o){return i.startsWith(o)};const i=r.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):n("rgb")?this.fromRgbString(i):n("hsl")?this.fromHslString(i):(n("hsv")||n("hsb"))&&this.fromHsvString(i)}else if(r instanceof ph)this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this._h=r._h,this._s=r._s,this._l=r._l,this._v=r._v;else if(t("rgb"))this.r=Sn(r.r),this.g=Sn(r.g),this.b=Sn(r.b),this.a=typeof r.a=="number"?Sn(r.a,1):1;else if(t("hsl"))this.fromHsl(r);else if(t("hsv"))this.fromHsv(r);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(r))}setR(r){return this._sc("r",r)}setG(r){return this._sc("g",r)}setB(r){return this._sc("b",r)}setA(r){return this._sc("a",r,1)}setHue(r){const t=this.toHsv();return t.h=r,this._c(t)}getLuminance(){function r(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const t=r(this.r),i=r(this.g),n=r(this.b);return .2126*t+.7152*i+.0722*n}getHue(){if(typeof this._h>"u"){const r=this.getMax()-this.getMin();r===0?this._h=0:this._h=nt(60*(this.r===this.getMax()?(this.g-this.b)/r+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/r+2:(this.r-this.g)/r+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const r=this.getMax()-this.getMin();r===0?this._s=0:this._s=r/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(r=10){const t=this.getHue(),i=this.getSaturation();let n=this.getLightness()-r/100;return n<0&&(n=0),this._c({h:t,s:i,l:n,a:this.a})}lighten(r=10){const t=this.getHue(),i=this.getSaturation();let n=this.getLightness()+r/100;return n>1&&(n=1),this._c({h:t,s:i,l:n,a:this.a})}mix(r,t=50){const i=this._c(r),n=t/100,o=s=>(i[s]-this[s])*n+this[s],a={r:nt(o("r")),g:nt(o("g")),b:nt(o("b")),a:nt(o("a")*100)/100};return this._c(a)}tint(r=10){return this.mix({r:255,g:255,b:255,a:1},r)}shade(r=10){return this.mix({r:0,g:0,b:0,a:1},r)}onBackground(r){const t=this._c(r),i=this.a+t.a*(1-this.a),n=o=>nt((this[o]*this.a+t[o]*t.a*(1-this.a))/i);return this._c({r:n("r"),g:n("g"),b:n("b"),a:i})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(r){return this.r===r.r&&this.g===r.g&&this.b===r.b&&this.a===r.a}clone(){return this._c(this)}toHexString(){let r="#";const t=(this.r||0).toString(16);r+=t.length===2?t:"0"+t;const i=(this.g||0).toString(16);r+=i.length===2?i:"0"+i;const n=(this.b||0).toString(16);if(r+=n.length===2?n:"0"+n,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=nt(this.a*255).toString(16);r+=o.length===2?o:"0"+o}return r}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const r=this.getHue(),t=nt(this.getSaturation()*100),i=nt(this.getLightness()*100);return this.a!==1?`hsla(${r},${t}%,${i}%,${this.a})`:`hsl(${r},${t}%,${i}%)`}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(r,t,i){const n=this.clone();return n[r]=Sn(t,i),n}_c(r){return new this.constructor(r)}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(r){const t=r.replace("#","");function i(n,o){return parseInt(t[n]+t[o||n],16)}t.length<6?(this.r=i(0),this.g=i(1),this.b=i(2),this.a=t[3]?i(3)/255:1):(this.r=i(0,1),this.g=i(2,3),this.b=i(4,5),this.a=t[6]?i(6,7)/255:1)}fromHsl({h:r,s:t,l:i,a:n}){if(this._h=r%360,this._s=t,this._l=i,this.a=typeof n=="number"?n:1,t<=0){const u=nt(i*255);this.r=u,this.g=u,this.b=u}let o=0,a=0,s=0;const c=r/60,d=(1-Math.abs(2*i-1))*t,f=d*(1-Math.abs(c%2-1));c>=0&&c<1?(o=d,a=f):c>=1&&c<2?(o=f,a=d):c>=2&&c<3?(a=d,s=f):c>=3&&c<4?(a=f,s=d):c>=4&&c<5?(o=f,s=d):c>=5&&c<6&&(o=d,s=f);const l=i-d/2;this.r=nt((o+l)*255),this.g=nt((a+l)*255),this.b=nt((s+l)*255)}fromHsv({h:r,s:t,v:i,a:n}){this._h=r%360,this._s=t,this._v=i,this.a=typeof n=="number"?n:1;const o=nt(i*255);if(this.r=o,this.g=o,this.b=o,t<=0)return;const a=r/60,s=Math.floor(a),c=a-s,d=nt(i*(1-t)*255),f=nt(i*(1-t*c)*255),l=nt(i*(1-t*(1-c))*255);switch(s){case 0:this.g=l,this.b=d;break;case 1:this.r=f,this.b=d;break;case 2:this.r=d,this.b=l;break;case 3:this.r=d,this.g=f;break;case 4:this.r=l,this.g=d;break;case 5:default:this.g=d,this.b=f;break}}fromHsvString(r){const t=ds(r,mf);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(r){const t=ds(r,mf);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(r){const t=ds(r,(i,n)=>n.includes("%")?nt(i/100*255):i);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}};var pi=2,yf=.16,Gm=.05,Ym=.05,Xm=.15,gh=5,mh=4,Zm=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function bf(e,r,t){var i;return Math.round(e.h)>=60&&Math.round(e.h)<=240?i=t?Math.round(e.h)-pi*r:Math.round(e.h)+pi*r:i=t?Math.round(e.h)+pi*r:Math.round(e.h)-pi*r,i<0?i+=360:i>=360&&(i-=360),i}function xf(e,r,t){if(e.h===0&&e.s===0)return e.s;var i;return t?i=e.s-yf*r:r===mh?i=e.s+yf:i=e.s+Gm*r,i>1&&(i=1),t&&r===gh&&i>.1&&(i=.1),i<.06&&(i=.06),Math.round(i*100)/100}function wf(e,r,t){var i;return t?i=e.v+Ym*r:i=e.v-Xm*r,i=Math.max(0,Math.min(1,i)),Math.round(i*100)/100}function Ln(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],i=new et(e),n=i.toHsv(),o=gh;o>0;o-=1){var a=new et({h:bf(n,o,!0),s:xf(n,o,!0),v:wf(n,o,!0)});t.push(a)}t.push(i);for(var s=1;s<=mh;s+=1){var c=new et({h:bf(n,s),s:xf(n,s),v:wf(n,s)});t.push(c)}return r.theme==="dark"?Zm.map(function(d){var f=d.index,l=d.amount;return new et(r.backgroundColor||"#141414").mix(t[f],l).toHexString()}):t.map(function(d){return d.toHexString()})}var hs={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Bs=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Bs.primary=Bs[5];var Vs=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Vs.primary=Vs[5];var Hs=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Hs.primary=Hs[5];var $i=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];$i.primary=$i[5];var zs=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];zs.primary=zs[5];var Us=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Us.primary=Us[5];var Ws=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Ws.primary=Ws[5];var Ks=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Ks.primary=Ks[5];var Fi=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Fi.primary=Fi[5];var Gs=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Gs.primary=Gs[5];var Ys=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Ys.primary=Ys[5];var Xs=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Xs.primary=Xs[5];var Zs=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Zs.primary=Zs[5];var vs={red:Bs,volcano:Vs,orange:Hs,gold:$i,yellow:zs,lime:Us,green:Ws,cyan:Ks,blue:Fi,geekblue:Gs,purple:Ys,magenta:Xs,grey:Zs},ql=U.createContext({});function Ef(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function J(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Ef(Object(t),!0).forEach(function(i){G(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ef(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function pt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Qm(e,r){if(!e)return!1;if(e.contains)return e.contains(r);for(var t=r;t;){if(t===e)return!0;t=t.parentNode}return!1}var _f="data-rc-order",Sf="data-rc-priority",Jm="rc-util-key",Qs=new Map;function yh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.mark;return r?r.startsWith("data-")?r:"data-".concat(r):Jm}function to(e){if(e.attachTo)return e.attachTo;var r=document.querySelector("head");return r||document.body}function ey(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Bl(e){return Array.from((Qs.get(e)||e).children).filter(function(r){return r.tagName==="STYLE"})}function bh(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!pt())return null;var t=r.csp,i=r.prepend,n=r.priority,o=n===void 0?0:n,a=ey(i),s=a==="prependQueue",c=document.createElement("style");c.setAttribute(_f,a),s&&o&&c.setAttribute(Sf,"".concat(o)),t!=null&&t.nonce&&(c.nonce=t?.nonce),c.innerHTML=e;var d=to(r),f=d.firstChild;if(i){if(s){var l=(r.styles||Bl(d)).filter(function(u){if(!["prepend","prependQueue"].includes(u.getAttribute(_f)))return!1;var h=Number(u.getAttribute(Sf)||0);return o>=h});if(l.length)return d.insertBefore(c,l[l.length-1].nextSibling),c}d.insertBefore(c,f)}else d.appendChild(c);return c}function xh(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=to(r);return(r.styles||Bl(t)).find(function(i){return i.getAttribute(yh(r))===e})}function $n(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=xh(e,r);if(t){var i=to(r);i.removeChild(t)}}function ty(e,r){var t=Qs.get(e);if(!t||!Qm(document,t)){var i=bh("",r),n=i.parentNode;Qs.set(e,n),e.removeChild(i)}}function rr(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=to(t),n=Bl(i),o=J(J({},t),{},{styles:n});ty(i,o);var a=xh(r,o);if(a){var s,c;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var d;a.nonce=(d=o.csp)===null||d===void 0?void 0:d.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var f=bh(e,o);return f.setAttribute(yh(o),r),f}function wh(e){var r;return e==null||(r=e.getRootNode)===null||r===void 0?void 0:r.call(e)}function ry(e){return wh(e)instanceof ShadowRoot}function Di(e){return ry(e)?wh(e):null}var Js={},Vl=[],ny=function(r){Vl.push(r)};function Kr(e,r){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var t=Vl.reduce(function(i,n){return n(i??"","warning")},r);t&&console.error("Warning: ".concat(t))}}function iy(e,r){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var t=Vl.reduce(function(i,n){return n(i??"","note")},r);t&&console.warn("Note: ".concat(t))}}function Eh(){Js={}}function _h(e,r,t){!r&&!Js[t]&&(e(!1,t),Js[t]=!0)}function ze(e,r){_h(Kr,e,r)}function oy(e,r){_h(iy,e,r)}ze.preMessage=ny;ze.resetWarned=Eh;ze.noteOnce=oy;function ay(e){return e.replace(/-(.)/g,function(r,t){return t.toUpperCase()})}function sy(e,r){ze(e,"[@ant-design/icons] ".concat(r))}function Cf(e){return Ee(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ee(e.icon)==="object"||typeof e.icon=="function")}function Of(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(r,t){var i=e[t];switch(t){case"class":r.className=i,delete r.class;break;default:delete r[t],r[ay(t)]=i}return r},{})}function el(e,r,t){return t?U.createElement(e.tag,J(J({key:r},Of(e.attrs)),t),(e.children||[]).map(function(i,n){return el(i,"".concat(r,"-").concat(e.tag,"-").concat(n))})):U.createElement(e.tag,J({key:r},Of(e.attrs)),(e.children||[]).map(function(i,n){return el(i,"".concat(r,"-").concat(e.tag,"-").concat(n))}))}function Sh(e){return Ln(e)[0]}function Ch(e){return e?Array.isArray(e)?e:[e]:[]}var ly=`
|
|
59
|
+
*/var yf;function Km(){return yf||(yf=1,(function(e){(function(){var r={}.hasOwnProperty;function t(){for(var o="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(o=n(o,i(s)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var a="";for(var s in o)r.call(o,s)&&o[s]&&(a=n(a,s));return a}function n(o,a){return a?o?o+" "+a:o+a:o}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(ds)),ds.exports}var Gm=Km();const ye=er.getDefaultExportFromCjs(Gm),nt=Math.round;function hs(e,r){const t=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],i=t.map(n=>parseFloat(n));for(let n=0;n<3;n+=1)i[n]=r(i[n]||0,t[n]||"",n);return t[3]?i[3]=t[3].includes("%")?i[3]/100:i[3]:i[3]=1,i}const bf=(e,r,t)=>t===0?e:e/100;function Sn(e,r){const t=r||255;return e>t?t:e<0?0:e}let et=class gh{constructor(r){G(this,"isValid",!0),G(this,"r",0),G(this,"g",0),G(this,"b",0),G(this,"a",1),G(this,"_h",void 0),G(this,"_s",void 0),G(this,"_l",void 0),G(this,"_v",void 0),G(this,"_max",void 0),G(this,"_min",void 0),G(this,"_brightness",void 0);function t(i){return i[0]in r&&i[1]in r&&i[2]in r}if(r)if(typeof r=="string"){let n=function(o){return i.startsWith(o)};const i=r.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):n("rgb")?this.fromRgbString(i):n("hsl")?this.fromHslString(i):(n("hsv")||n("hsb"))&&this.fromHsvString(i)}else if(r instanceof gh)this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this._h=r._h,this._s=r._s,this._l=r._l,this._v=r._v;else if(t("rgb"))this.r=Sn(r.r),this.g=Sn(r.g),this.b=Sn(r.b),this.a=typeof r.a=="number"?Sn(r.a,1):1;else if(t("hsl"))this.fromHsl(r);else if(t("hsv"))this.fromHsv(r);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(r))}setR(r){return this._sc("r",r)}setG(r){return this._sc("g",r)}setB(r){return this._sc("b",r)}setA(r){return this._sc("a",r,1)}setHue(r){const t=this.toHsv();return t.h=r,this._c(t)}getLuminance(){function r(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const t=r(this.r),i=r(this.g),n=r(this.b);return .2126*t+.7152*i+.0722*n}getHue(){if(typeof this._h>"u"){const r=this.getMax()-this.getMin();r===0?this._h=0:this._h=nt(60*(this.r===this.getMax()?(this.g-this.b)/r+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/r+2:(this.r-this.g)/r+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const r=this.getMax()-this.getMin();r===0?this._s=0:this._s=r/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(r=10){const t=this.getHue(),i=this.getSaturation();let n=this.getLightness()-r/100;return n<0&&(n=0),this._c({h:t,s:i,l:n,a:this.a})}lighten(r=10){const t=this.getHue(),i=this.getSaturation();let n=this.getLightness()+r/100;return n>1&&(n=1),this._c({h:t,s:i,l:n,a:this.a})}mix(r,t=50){const i=this._c(r),n=t/100,o=s=>(i[s]-this[s])*n+this[s],a={r:nt(o("r")),g:nt(o("g")),b:nt(o("b")),a:nt(o("a")*100)/100};return this._c(a)}tint(r=10){return this.mix({r:255,g:255,b:255,a:1},r)}shade(r=10){return this.mix({r:0,g:0,b:0,a:1},r)}onBackground(r){const t=this._c(r),i=this.a+t.a*(1-this.a),n=o=>nt((this[o]*this.a+t[o]*t.a*(1-this.a))/i);return this._c({r:n("r"),g:n("g"),b:n("b"),a:i})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(r){return this.r===r.r&&this.g===r.g&&this.b===r.b&&this.a===r.a}clone(){return this._c(this)}toHexString(){let r="#";const t=(this.r||0).toString(16);r+=t.length===2?t:"0"+t;const i=(this.g||0).toString(16);r+=i.length===2?i:"0"+i;const n=(this.b||0).toString(16);if(r+=n.length===2?n:"0"+n,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=nt(this.a*255).toString(16);r+=o.length===2?o:"0"+o}return r}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const r=this.getHue(),t=nt(this.getSaturation()*100),i=nt(this.getLightness()*100);return this.a!==1?`hsla(${r},${t}%,${i}%,${this.a})`:`hsl(${r},${t}%,${i}%)`}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(r,t,i){const n=this.clone();return n[r]=Sn(t,i),n}_c(r){return new this.constructor(r)}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(r){const t=r.replace("#","");function i(n,o){return parseInt(t[n]+t[o||n],16)}t.length<6?(this.r=i(0),this.g=i(1),this.b=i(2),this.a=t[3]?i(3)/255:1):(this.r=i(0,1),this.g=i(2,3),this.b=i(4,5),this.a=t[6]?i(6,7)/255:1)}fromHsl({h:r,s:t,l:i,a:n}){if(this._h=r%360,this._s=t,this._l=i,this.a=typeof n=="number"?n:1,t<=0){const u=nt(i*255);this.r=u,this.g=u,this.b=u}let o=0,a=0,s=0;const c=r/60,d=(1-Math.abs(2*i-1))*t,f=d*(1-Math.abs(c%2-1));c>=0&&c<1?(o=d,a=f):c>=1&&c<2?(o=f,a=d):c>=2&&c<3?(a=d,s=f):c>=3&&c<4?(a=f,s=d):c>=4&&c<5?(o=f,s=d):c>=5&&c<6&&(o=d,s=f);const l=i-d/2;this.r=nt((o+l)*255),this.g=nt((a+l)*255),this.b=nt((s+l)*255)}fromHsv({h:r,s:t,v:i,a:n}){this._h=r%360,this._s=t,this._v=i,this.a=typeof n=="number"?n:1;const o=nt(i*255);if(this.r=o,this.g=o,this.b=o,t<=0)return;const a=r/60,s=Math.floor(a),c=a-s,d=nt(i*(1-t)*255),f=nt(i*(1-t*c)*255),l=nt(i*(1-t*(1-c))*255);switch(s){case 0:this.g=l,this.b=d;break;case 1:this.r=f,this.b=d;break;case 2:this.r=d,this.b=l;break;case 3:this.r=d,this.g=f;break;case 4:this.r=l,this.g=d;break;case 5:default:this.g=d,this.b=f;break}}fromHsvString(r){const t=hs(r,bf);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(r){const t=hs(r,bf);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(r){const t=hs(r,(i,n)=>n.includes("%")?nt(i/100*255):i);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}};var pi=2,xf=.16,Ym=.05,Xm=.05,Zm=.15,mh=5,yh=4,Qm=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function wf(e,r,t){var i;return Math.round(e.h)>=60&&Math.round(e.h)<=240?i=t?Math.round(e.h)-pi*r:Math.round(e.h)+pi*r:i=t?Math.round(e.h)+pi*r:Math.round(e.h)-pi*r,i<0?i+=360:i>=360&&(i-=360),i}function Ef(e,r,t){if(e.h===0&&e.s===0)return e.s;var i;return t?i=e.s-xf*r:r===yh?i=e.s+xf:i=e.s+Ym*r,i>1&&(i=1),t&&r===mh&&i>.1&&(i=.1),i<.06&&(i=.06),Math.round(i*100)/100}function _f(e,r,t){var i;return t?i=e.v+Xm*r:i=e.v-Zm*r,i=Math.max(0,Math.min(1,i)),Math.round(i*100)/100}function Ln(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],i=new et(e),n=i.toHsv(),o=mh;o>0;o-=1){var a=new et({h:wf(n,o,!0),s:Ef(n,o,!0),v:_f(n,o,!0)});t.push(a)}t.push(i);for(var s=1;s<=yh;s+=1){var c=new et({h:wf(n,s),s:Ef(n,s),v:_f(n,s)});t.push(c)}return r.theme==="dark"?Qm.map(function(d){var f=d.index,l=d.amount;return new et(r.backgroundColor||"#141414").mix(t[f],l).toHexString()}):t.map(function(d){return d.toHexString()})}var vs={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Vs=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Vs.primary=Vs[5];var Hs=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Hs.primary=Hs[5];var zs=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];zs.primary=zs[5];var $i=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];$i.primary=$i[5];var Us=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Us.primary=Us[5];var Ws=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Ws.primary=Ws[5];var Ks=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Ks.primary=Ks[5];var Gs=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Gs.primary=Gs[5];var Fi=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Fi.primary=Fi[5];var Ys=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Ys.primary=Ys[5];var Xs=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Xs.primary=Xs[5];var Zs=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Zs.primary=Zs[5];var Qs=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Qs.primary=Qs[5];var ps={red:Vs,volcano:Hs,orange:zs,gold:$i,yellow:Us,lime:Ws,green:Ks,cyan:Gs,blue:Fi,geekblue:Ys,purple:Xs,magenta:Zs,grey:Qs},Vl=U.createContext({});function Sf(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function J(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Sf(Object(t),!0).forEach(function(i){G(e,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Sf(Object(t)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))})}return e}function pt(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Jm(e,r){if(!e)return!1;if(e.contains)return e.contains(r);for(var t=r;t;){if(t===e)return!0;t=t.parentNode}return!1}var Cf="data-rc-order",Of="data-rc-priority",ey="rc-util-key",Js=new Map;function bh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.mark;return r?r.startsWith("data-")?r:"data-".concat(r):ey}function ro(e){if(e.attachTo)return e.attachTo;var r=document.querySelector("head");return r||document.body}function ty(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Hl(e){return Array.from((Js.get(e)||e).children).filter(function(r){return r.tagName==="STYLE"})}function xh(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!pt())return null;var t=r.csp,i=r.prepend,n=r.priority,o=n===void 0?0:n,a=ty(i),s=a==="prependQueue",c=document.createElement("style");c.setAttribute(Cf,a),s&&o&&c.setAttribute(Of,"".concat(o)),t!=null&&t.nonce&&(c.nonce=t?.nonce),c.innerHTML=e;var d=ro(r),f=d.firstChild;if(i){if(s){var l=(r.styles||Hl(d)).filter(function(u){if(!["prepend","prependQueue"].includes(u.getAttribute(Cf)))return!1;var h=Number(u.getAttribute(Of)||0);return o>=h});if(l.length)return d.insertBefore(c,l[l.length-1].nextSibling),c}d.insertBefore(c,f)}else d.appendChild(c);return c}function wh(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=ro(r);return(r.styles||Hl(t)).find(function(i){return i.getAttribute(bh(r))===e})}function $n(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=wh(e,r);if(t){var i=ro(r);i.removeChild(t)}}function ry(e,r){var t=Js.get(e);if(!t||!Jm(document,t)){var i=xh("",r),n=i.parentNode;Js.set(e,n),e.removeChild(i)}}function rr(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=ro(t),n=Hl(i),o=J(J({},t),{},{styles:n});ry(i,o);var a=wh(r,o);if(a){var s,c;if((s=o.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((c=o.csp)===null||c===void 0?void 0:c.nonce)){var d;a.nonce=(d=o.csp)===null||d===void 0?void 0:d.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var f=xh(e,o);return f.setAttribute(bh(o),r),f}function Eh(e){var r;return e==null||(r=e.getRootNode)===null||r===void 0?void 0:r.call(e)}function ny(e){return Eh(e)instanceof ShadowRoot}function Di(e){return ny(e)?Eh(e):null}var el={},zl=[],iy=function(r){zl.push(r)};function Kr(e,r){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var t=zl.reduce(function(i,n){return n(i??"","warning")},r);t&&console.error("Warning: ".concat(t))}}function oy(e,r){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var t=zl.reduce(function(i,n){return n(i??"","note")},r);t&&console.warn("Note: ".concat(t))}}function _h(){el={}}function Sh(e,r,t){!r&&!el[t]&&(e(!1,t),el[t]=!0)}function ze(e,r){Sh(Kr,e,r)}function ay(e,r){Sh(oy,e,r)}ze.preMessage=iy;ze.resetWarned=_h;ze.noteOnce=ay;function sy(e){return e.replace(/-(.)/g,function(r,t){return t.toUpperCase()})}function ly(e,r){ze(e,"[@ant-design/icons] ".concat(r))}function Rf(e){return Ee(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ee(e.icon)==="object"||typeof e.icon=="function")}function Af(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(r,t){var i=e[t];switch(t){case"class":r.className=i,delete r.class;break;default:delete r[t],r[sy(t)]=i}return r},{})}function tl(e,r,t){return t?U.createElement(e.tag,J(J({key:r},Af(e.attrs)),t),(e.children||[]).map(function(i,n){return tl(i,"".concat(r,"-").concat(e.tag,"-").concat(n))})):U.createElement(e.tag,J({key:r},Af(e.attrs)),(e.children||[]).map(function(i,n){return tl(i,"".concat(r,"-").concat(e.tag,"-").concat(n))}))}function Ch(e){return Ln(e)[0]}function Oh(e){return e?Array.isArray(e)?e:[e]:[]}var uy=`
|
|
60
60
|
.anticon {
|
|
61
61
|
display: inline-flex;
|
|
62
62
|
align-items: center;
|
|
@@ -111,9 +111,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
111
111
|
transform: rotate(360deg);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
`,
|
|
114
|
+
`,cy=function(r){var t=U.useContext(Vl),i=t.csp,n=t.prefixCls,o=t.layer,a=uy;n&&(a=a.replace(/anticon/g,n)),o&&(a="@layer ".concat(o,` {
|
|
115
115
|
`).concat(a,`
|
|
116
|
-
}`)),U.useEffect(function(){var s=r.current,c=Di(s);rr(a,"@ant-design-icons",{prepend:!o,csp:i,attachTo:c})},[])},
|
|
116
|
+
}`)),U.useEffect(function(){var s=r.current,c=Di(s);rr(a,"@ant-design-icons",{prepend:!o,csp:i,attachTo:c})},[])},fy=["icon","className","onClick","style","primaryColor","secondaryColor"],jn={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function dy(e){var r=e.primaryColor,t=e.secondaryColor;jn.primaryColor=r,jn.secondaryColor=t||Ch(r),jn.calculated=!!t}function hy(){return J({},jn)}var on=function(r){var t=r.icon,i=r.className,n=r.onClick,o=r.style,a=r.primaryColor,s=r.secondaryColor,c=dt(r,fy),d=I.useRef(),f=jn;if(a&&(f={primaryColor:a,secondaryColor:s||Ch(a)}),cy(d),ly(Rf(t),"icon should be icon definiton, but got ".concat(t)),!Rf(t))return null;var l=t;return l&&typeof l.icon=="function"&&(l=J(J({},l),{},{icon:l.icon(f.primaryColor,f.secondaryColor)})),tl(l.icon,"svg-".concat(l.name),J(J({className:i,onClick:n,style:o,"data-icon":l.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:d}))};on.displayName="IconReact";on.getTwoToneColors=hy;on.setTwoToneColors=dy;function Rh(e){var r=Oh(e),t=le(r,2),i=t[0],n=t[1];return on.setTwoToneColors({primaryColor:i,secondaryColor:n})}function vy(){var e=on.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var py=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Rh(Fi.primary);var ir=I.forwardRef(function(e,r){var t=e.className,i=e.icon,n=e.spin,o=e.rotate,a=e.tabIndex,s=e.onClick,c=e.twoToneColor,d=dt(e,py),f=I.useContext(Vl),l=f.prefixCls,u=l===void 0?"anticon":l,h=f.rootClassName,p=ye(h,u,G(G({},"".concat(u,"-").concat(i.name),!!i.name),"".concat(u,"-spin"),!!n||i.name==="loading"),t),m=a;m===void 0&&s&&(m=-1);var v=o?{msTransform:"rotate(".concat(o,"deg)"),transform:"rotate(".concat(o,"deg)")}:void 0,y=Oh(c),g=le(y,2),w=g[0],b=g[1];return I.createElement("span",qe({role:"img","aria-label":i.name},d,{ref:r,tabIndex:m,onClick:s,className:p}),I.createElement(on,{icon:i,primaryColor:w,secondaryColor:b,style:v}))});ir.displayName="AntdIcon";ir.getTwoToneColor=vy;ir.setTwoToneColor=Rh;var gy=function(r,t){return I.createElement(ir,qe({},r,{ref:t,icon:Hm}))},Ah=I.forwardRef(gy);process.env.NODE_ENV!=="production"&&(Ah.displayName="EditOutlined");var my=Symbol.for("react.element"),yy=Symbol.for("react.transitional.element"),by=Symbol.for("react.fragment");function Th(e){return e&&Ee(e)==="object"&&(e.$$typeof===my||e.$$typeof===yy)&&e.type===by}function Gr(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[];return U.Children.forEach(e,function(i){i==null&&!r.keepEmpty||(Array.isArray(i)?t=t.concat(Gr(i)):Th(i)&&i.props?t=t.concat(Gr(i.props.children,r)):t.push(i))}),t}function Fn(e){return e instanceof HTMLElement||e instanceof SVGElement}function xy(e){return e&&Ee(e)==="object"&&Fn(e.nativeElement)?e.nativeElement:Fn(e)?e:null}function ki(e){var r=xy(e);if(r)return r;if(e instanceof U.Component){var t;return(t=In.findDOMNode)===null||t===void 0?void 0:t.call(In,e)}return null}var gi={exports:{}},je={};/**
|
|
117
117
|
* @license React
|
|
118
118
|
* react-is.production.min.js
|
|
119
119
|
*
|
|
@@ -121,7 +121,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
121
121
|
*
|
|
122
122
|
* This source code is licensed under the MIT license found in the
|
|
123
123
|
* LICENSE file in the root directory of this source tree.
|
|
124
|
-
*/var
|
|
124
|
+
*/var Tf;function wy(){if(Tf)return je;Tf=1;var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),p;p=Symbol.for("react.module.reference");function m(v){if(typeof v=="object"&&v!==null){var y=v.$$typeof;switch(y){case e:switch(v=v.type,v){case t:case n:case i:case d:case f:return v;default:switch(v=v&&v.$$typeof,v){case s:case a:case c:case u:case l:case o:return v;default:return y}}case r:return y}}}return je.ContextConsumer=a,je.ContextProvider=o,je.Element=e,je.ForwardRef=c,je.Fragment=t,je.Lazy=u,je.Memo=l,je.Portal=r,je.Profiler=n,je.StrictMode=i,je.Suspense=d,je.SuspenseList=f,je.isAsyncMode=function(){return!1},je.isConcurrentMode=function(){return!1},je.isContextConsumer=function(v){return m(v)===a},je.isContextProvider=function(v){return m(v)===o},je.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},je.isForwardRef=function(v){return m(v)===c},je.isFragment=function(v){return m(v)===t},je.isLazy=function(v){return m(v)===u},je.isMemo=function(v){return m(v)===l},je.isPortal=function(v){return m(v)===r},je.isProfiler=function(v){return m(v)===n},je.isStrictMode=function(v){return m(v)===i},je.isSuspense=function(v){return m(v)===d},je.isSuspenseList=function(v){return m(v)===f},je.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===t||v===n||v===i||v===d||v===f||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===u||v.$$typeof===l||v.$$typeof===o||v.$$typeof===a||v.$$typeof===c||v.$$typeof===p||v.getModuleId!==void 0)},je.typeOf=m,je}var Ne={};/**
|
|
125
125
|
* @license React
|
|
126
126
|
* react-is.development.js
|
|
127
127
|
*
|
|
@@ -129,16 +129,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
129
129
|
*
|
|
130
130
|
* This source code is licensed under the MIT license found in the
|
|
131
131
|
* LICENSE file in the root directory of this source tree.
|
|
132
|
-
*/var Af;function wy(){return Af||(Af=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),p=!1,m=!1,v=!1,y=!1,g=!1,w;w=Symbol.for("react.module.reference");function b(te){return!!(typeof te=="string"||typeof te=="function"||te===t||te===n||g||te===i||te===d||te===f||y||te===h||p||m||v||typeof te=="object"&&te!==null&&(te.$$typeof===u||te.$$typeof===l||te.$$typeof===o||te.$$typeof===a||te.$$typeof===c||te.$$typeof===w||te.getModuleId!==void 0))}function x(te){if(typeof te=="object"&&te!==null){var ce=te.$$typeof;switch(ce){case e:var fe=te.type;switch(fe){case t:case n:case i:case d:case f:return fe;default:var ve=fe&&fe.$$typeof;switch(ve){case s:case a:case c:case u:case l:case o:return ve;default:return ce}}case r:return ce}}}var _=a,E=o,C=e,P=c,O=t,S=u,R=l,T=r,k=n,L=i,F=d,$=f,z=!1,H=!1;function D(te){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function j(te){return H||(H=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function A(te){return x(te)===a}function M(te){return x(te)===o}function q(te){return typeof te=="object"&&te!==null&&te.$$typeof===e}function B(te){return x(te)===c}function N(te){return x(te)===t}function V(te){return x(te)===u}function K(te){return x(te)===l}function W(te){return x(te)===r}function X(te){return x(te)===n}function re(te){return x(te)===i}function oe(te){return x(te)===d}function se(te){return x(te)===f}Ne.ContextConsumer=_,Ne.ContextProvider=E,Ne.Element=C,Ne.ForwardRef=P,Ne.Fragment=O,Ne.Lazy=S,Ne.Memo=R,Ne.Portal=T,Ne.Profiler=k,Ne.StrictMode=L,Ne.Suspense=F,Ne.SuspenseList=$,Ne.isAsyncMode=D,Ne.isConcurrentMode=j,Ne.isContextConsumer=A,Ne.isContextProvider=M,Ne.isElement=q,Ne.isForwardRef=B,Ne.isFragment=N,Ne.isLazy=V,Ne.isMemo=K,Ne.isPortal=W,Ne.isProfiler=X,Ne.isStrictMode=re,Ne.isSuspense=oe,Ne.isSuspenseList=se,Ne.isValidElementType=b,Ne.typeOf=x})()),Ne}var Tf;function Ey(){return Tf||(Tf=1,process.env.NODE_ENV==="production"?gi.exports=xy():gi.exports=wy()),gi.exports}var ps=Ey();function Hl(e,r,t){var i=I.useRef({});return(!("value"in i.current)||t(i.current.condition,r))&&(i.current.value=e(),i.current.condition=r),i.current.value}var _y=Number(U.version.split(".")[0]),zl=function(r,t){typeof r=="function"?r(t):Ee(r)==="object"&&r&&"current"in r&&(r.current=t)},Gn=function(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];var n=t.filter(Boolean);return n.length<=1?n[0]:function(o){t.forEach(function(a){zl(a,o)})}},Ul=function(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];return Hl(function(){return Gn.apply(void 0,t)},t,function(n,o){return n.length!==o.length||n.every(function(a,s){return a!==o[s]})})},ro=function(r){var t,i;if(!r)return!1;if(Th(r)&&_y>=19)return!0;var n=ps.isMemo(r)?r.type.type:r.type;return!(typeof n=="function"&&!((t=n.prototype)!==null&&t!==void 0&&t.render)&&n.$$typeof!==ps.ForwardRef||typeof r=="function"&&!((i=r.prototype)!==null&&i!==void 0&&i.render)&&r.$$typeof!==ps.ForwardRef)};function Th(e){return U.isValidElement(e)&&!Ah(e)}var Wl=function(r){if(r&&Th(r)){var t=r;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},tl=I.createContext(null);function Sy(e){var r=e.children,t=e.onBatchResize,i=I.useRef(0),n=I.useRef([]),o=I.useContext(tl),a=I.useCallback(function(s,c,d){i.current+=1;var f=i.current;n.current.push({size:s,element:c,data:d}),Promise.resolve().then(function(){f===i.current&&(t?.(n.current),n.current=[])}),o?.(s,c,d)},[t,o]);return I.createElement(tl.Provider,{value:a},r)}var Ph=(function(){if(typeof Map<"u")return Map;function e(r,t){var i=-1;return r.some(function(n,o){return n[0]===t?(i=o,!0):!1}),i}return(function(){function r(){this.__entries__=[]}return Object.defineProperty(r.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),r.prototype.get=function(t){var i=e(this.__entries__,t),n=this.__entries__[i];return n&&n[1]},r.prototype.set=function(t,i){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=i:this.__entries__.push([t,i])},r.prototype.delete=function(t){var i=this.__entries__,n=e(i,t);~n&&i.splice(n,1)},r.prototype.has=function(t){return!!~e(this.__entries__,t)},r.prototype.clear=function(){this.__entries__.splice(0)},r.prototype.forEach=function(t,i){i===void 0&&(i=null);for(var n=0,o=this.__entries__;n<o.length;n++){var a=o[n];t.call(i,a[1],a[0])}},r})()})(),rl=typeof window<"u"&&typeof document<"u"&&window.document===document,qi=(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")()})(),Cy=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(qi):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),Oy=2;function Ry(e,r){var t=!1,i=!1,n=0;function o(){t&&(t=!1,e()),i&&s()}function a(){Cy(o)}function s(){var c=Date.now();if(t){if(c-n<Oy)return;i=!0}else t=!0,i=!1,setTimeout(a,r);n=c}return s}var Ay=20,Ty=["top","right","bottom","left","width","height","size","weight"],Py=typeof MutationObserver<"u",ky=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Ry(this.refresh.bind(this),Ay)}return e.prototype.addObserver=function(r){~this.observers_.indexOf(r)||this.observers_.push(r),this.connected_||this.connect_()},e.prototype.removeObserver=function(r){var t=this.observers_,i=t.indexOf(r);~i&&t.splice(i,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var r=this.updateObservers_();r&&this.refresh()},e.prototype.updateObservers_=function(){var r=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return r.forEach(function(t){return t.broadcastActive()}),r.length>0},e.prototype.connect_=function(){!rl||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Py?(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(){!rl||!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(r){var t=r.propertyName,i=t===void 0?"":t,n=Ty.some(function(o){return!!~i.indexOf(o)});n&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),kh=(function(e,r){for(var t=0,i=Object.keys(r);t<i.length;t++){var n=i[t];Object.defineProperty(e,n,{value:r[n],enumerable:!1,writable:!1,configurable:!0})}return e}),Yr=(function(e){var r=e&&e.ownerDocument&&e.ownerDocument.defaultView;return r||qi}),jh=no(0,0,0,0);function Bi(e){return parseFloat(e)||0}function Pf(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return r.reduce(function(i,n){var o=e["border-"+n+"-width"];return i+Bi(o)},0)}function jy(e){for(var r=["top","right","bottom","left"],t={},i=0,n=r;i<n.length;i++){var o=n[i],a=e["padding-"+o];t[o]=Bi(a)}return t}function Ny(e){var r=e.getBBox();return no(0,0,r.width,r.height)}function My(e){var r=e.clientWidth,t=e.clientHeight;if(!r&&!t)return jh;var i=Yr(e).getComputedStyle(e),n=jy(i),o=n.left+n.right,a=n.top+n.bottom,s=Bi(i.width),c=Bi(i.height);if(i.boxSizing==="border-box"&&(Math.round(s+o)!==r&&(s-=Pf(i,"left","right")+o),Math.round(c+a)!==t&&(c-=Pf(i,"top","bottom")+a)),!Ly(e)){var d=Math.round(s+o)-r,f=Math.round(c+a)-t;Math.abs(d)!==1&&(s-=d),Math.abs(f)!==1&&(c-=f)}return no(n.left,n.top,s,c)}var Iy=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Yr(e).SVGGraphicsElement}:function(e){return e instanceof Yr(e).SVGElement&&typeof e.getBBox=="function"}})();function Ly(e){return e===Yr(e).document.documentElement}function $y(e){return rl?Iy(e)?Ny(e):My(e):jh}function Fy(e){var r=e.x,t=e.y,i=e.width,n=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return kh(a,{x:r,y:t,width:i,height:n,top:t,right:r+i,bottom:n+t,left:r}),a}function no(e,r,t,i){return{x:e,y:r,width:t,height:i}}var Dy=(function(){function e(r){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=no(0,0,0,0),this.target=r}return e.prototype.isActive=function(){var r=$y(this.target);return this.contentRect_=r,r.width!==this.broadcastWidth||r.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var r=this.contentRect_;return this.broadcastWidth=r.width,this.broadcastHeight=r.height,r},e})(),qy=(function(){function e(r,t){var i=Fy(t);kh(this,{target:r,contentRect:i})}return e})(),By=(function(){function e(r,t,i){if(this.activeObservations_=[],this.observations_=new Ph,typeof r!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=r,this.controller_=t,this.callbackCtx_=i}return e.prototype.observe=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(r instanceof Yr(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(r)||(t.set(r,new Dy(r)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(r instanceof Yr(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(r)&&(t.delete(r),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var r=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&r.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var r=this.callbackCtx_,t=this.activeObservations_.map(function(i){return new qy(i.target,i.broadcastRect())});this.callback_.call(r,t,r),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),Nh=typeof WeakMap<"u"?new WeakMap:new Ph,Mh=(function(){function e(r){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 t=ky.getInstance(),i=new By(r,t,this);Nh.set(this,i)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Mh.prototype[e]=function(){var r;return(r=Nh.get(this))[e].apply(r,arguments)}});var Vy=(function(){return typeof qi.ResizeObserver<"u"?qi.ResizeObserver:Mh})(),tr=new Map;function Ih(e){e.forEach(function(r){var t,i=r.target;(t=tr.get(i))===null||t===void 0||t.forEach(function(n){return n(i)})})}var Lh=new Vy(Ih);process.env.NODE_ENV;process.env.NODE_ENV;function Hy(e,r){tr.has(e)||(tr.set(e,new Set),Lh.observe(e)),tr.get(e).add(r)}function zy(e,r){tr.has(e)&&(tr.get(e).delete(r),tr.get(e).size||(Lh.unobserve(e),tr.delete(e)))}function ot(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function kf(e,r){for(var t=0;t<r.length;t++){var i=r[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,vh(i.key),i)}}function at(e,r,t){return r&&kf(e.prototype,r),t&&kf(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dn(e,r){return Dn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},Dn(e,r)}function gr(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Dn(e,r)}function qn(e){return qn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qn(e)}function Kl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kl=function(){return!!e})()}function Oe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uy(e,r){if(r&&(Ee(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Oe(e)}function mr(e){var r=Kl();return function(){var t,i=qn(e);if(r){var n=qn(this).constructor;t=Reflect.construct(i,arguments,n)}else t=i.apply(this,arguments);return Uy(this,t)}}var Wy=(function(e){gr(t,e);var r=mr(t);function t(){return ot(this,t),r.apply(this,arguments)}return at(t,[{key:"render",value:function(){return this.props.children}}]),t})(I.Component);function Ky(e,r){var t=e.children,i=e.disabled,n=I.useRef(null),o=I.useRef(null),a=I.useContext(tl),s=typeof t=="function",c=s?t(n):t,d=I.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!s&&I.isValidElement(c)&&ro(c),l=f?Wl(c):null,u=Ul(l,n),h=function(){var y;return Pi(n.current)||(n.current&&Ee(n.current)==="object"?Pi((y=n.current)===null||y===void 0?void 0:y.nativeElement):null)||Pi(o.current)};I.useImperativeHandle(r,function(){return h()});var p=I.useRef(e);p.current=e;var m=I.useCallback(function(v){var y=p.current,g=y.onResize,w=y.data,b=v.getBoundingClientRect(),x=b.width,_=b.height,E=v.offsetWidth,C=v.offsetHeight,P=Math.floor(x),O=Math.floor(_);if(d.current.width!==P||d.current.height!==O||d.current.offsetWidth!==E||d.current.offsetHeight!==C){var S={width:P,height:O,offsetWidth:E,offsetHeight:C};d.current=S;var R=E===Math.round(x)?x:E,T=C===Math.round(_)?_:C,k=J(J({},S),{},{offsetWidth:R,offsetHeight:T});a?.(k,v,w),g&&Promise.resolve().then(function(){g(k,v)})}},[]);return I.useEffect(function(){var v=h();return v&&!i&&Hy(v,m),function(){return zy(v,m)}},[n.current,i]),I.createElement(Wy,{ref:o},f?I.cloneElement(c,{ref:u}):c)}var $h=I.forwardRef(Ky);process.env.NODE_ENV!=="production"&&($h.displayName="SingleObserver");var Gy="rc-observer-key";function Yy(e,r){var t=e.children,i=typeof t=="function"?[t]:Gr(t);return process.env.NODE_ENV!=="production"&&(i.length>1?Kr(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):i.length===0&&Kr(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),i.map(function(n,o){var a=n?.key||"".concat(Gy,"-").concat(o);return I.createElement($h,qe({},e,{key:a,ref:o===0?r:void 0}),n)})}var an=I.forwardRef(Yy);process.env.NODE_ENV!=="production"&&(an.displayName="ResizeObserver");an.Collection=Sy;var jf=process.env.NODE_ENV!=="test"&&pt()?I.useLayoutEffect:I.useEffect,Ue=function(r,t){var i=I.useRef(!0);jf(function(){return r(i.current)},t),jf(function(){return i.current=!1,function(){i.current=!0}},[])},Nf=function(r,t){Ue(function(i){if(!i)return r()},t)};function vt(e){var r=I.useRef();r.current=e;var t=I.useCallback(function(){for(var i,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return(i=r.current)===null||i===void 0?void 0:i.call.apply(i,[r].concat(o))},[]);return t}function Bn(e){var r=I.useRef(!1),t=I.useState(e),i=le(t,2),n=i[0],o=i[1];I.useEffect(function(){return r.current=!1,function(){r.current=!0}},[]);function a(s,c){c&&r.current||o(s)}return[n,a]}function gs(e){return e!==void 0}function Rr(e,r){var t=r||{},i=t.defaultValue,n=t.value,o=t.onChange,a=t.postState,s=Bn(function(){return gs(n)?n:gs(i)?typeof i=="function"?i():i:typeof e=="function"?e():e}),c=le(s,2),d=c[0],f=c[1],l=n!==void 0?n:d,u=a?a(l):l,h=vt(o),p=Bn([l]),m=le(p,2),v=m[0],y=m[1];Nf(function(){var w=v[0];d!==w&&h(d,w)},[v]),Nf(function(){gs(n)||f(n)},[n]);var g=vt(function(w,b){f(w,b),y([l],b)});return[u,g]}function Fh(e,r){var t=Object.assign({},e);return Array.isArray(r)&&r.forEach(function(i){delete t[i]}),t}var Xy=function(r){if(pt()&&window.document.documentElement){var t=Array.isArray(r)?r:[r],i=window.document.documentElement;return t.some(function(n){return n in i.style})}return!1};function Mf(e,r){return Xy(e)}function Vn(e){for(var r=0,t,i=0,n=e.length;n>=4;++i,n-=4)t=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(n){case 3:r^=(e.charCodeAt(i+2)&255)<<16;case 2:r^=(e.charCodeAt(i+1)&255)<<8;case 1:r^=e.charCodeAt(i)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}function nl(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=new Set;function n(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=i.has(o);if(ze(!c,"Warning: There may be circular references"),c)return!1;if(o===a)return!0;if(t&&s>1)return!1;i.add(o);var d=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var f=0;f<o.length;f++)if(!n(o[f],a[f],d))return!1;return!0}if(o&&a&&Ee(o)==="object"&&Ee(a)==="object"){var l=Object.keys(o);return l.length!==Object.keys(a).length?!1:l.every(function(u){return n(o[u],a[u],d)})}return!1}return n(e,r)}var Zy="%";function il(e){return e.join(Zy)}var Qy=(function(){function e(r){ot(this,e),G(this,"instanceId",void 0),G(this,"cache",new Map),G(this,"extracted",new Set),this.instanceId=r}return at(e,[{key:"get",value:function(t){return this.opGet(il(t))}},{key:"opGet",value:function(t){return this.cache.get(t)||null}},{key:"update",value:function(t,i){return this.opUpdate(il(t),i)}},{key:"opUpdate",value:function(t,i){var n=this.cache.get(t),o=i(n);o===null?this.cache.delete(t):this.cache.set(t,o)}}]),e})(),Xr="data-token-hash",Ft="data-css-hash",Jy="data-cache-path",hr="__cssinjs_instance__";function e0(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var r=document.body.querySelectorAll("style[".concat(Ft,"]"))||[],t=document.head.firstChild;Array.from(r).forEach(function(n){n[hr]=n[hr]||e,n[hr]===e&&document.head.insertBefore(n,t)});var i={};Array.from(document.querySelectorAll("style[".concat(Ft,"]"))).forEach(function(n){var o=n.getAttribute(Ft);if(i[o]){if(n[hr]===e){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}}else i[o]=!0})}return new Qy(e)}var Yn=I.createContext({hashPriority:"low",cache:e0(),defaultCache:!0});function t0(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}var Gl=(function(){function e(){ot(this,e),G(this,"cache",void 0),G(this,"keys",void 0),G(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return at(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(t){var i,n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return t.forEach(function(s){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(s)}}),(i=a)!==null&&i!==void 0&&i.value&&o&&(a.value[1]=this.cacheCallTimes++),(n=a)===null||n===void 0?void 0:n.value}},{key:"get",value:function(t){var i;return(i=this.internalGet(t,!0))===null||i===void 0?void 0:i[0]}},{key:"has",value:function(t){return!!this.internalGet(t)}},{key:"set",value:function(t,i){var n=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(d,f){var l=le(d,2),u=l[1];return n.internalGet(f)[1]<u?[f,n.internalGet(f)[1]]:d},[this.keys[0],this.cacheCallTimes]),a=le(o,1),s=a[0];this.delete(s)}this.keys.push(t)}var c=this.cache;t.forEach(function(d,f){if(f===t.length-1)c.set(d,{value:[i,n.cacheCallTimes++]});else{var l=c.get(d);l?l.map||(l.map=new Map):c.set(d,{map:new Map}),c=c.get(d).map}})}},{key:"deleteByPath",value:function(t,i){var n=t.get(i[0]);if(i.length===1){var o;return n.map?t.set(i[0],{map:n.map}):t.delete(i[0]),(o=n.value)===null||o===void 0?void 0:o[0]}var a=this.deleteByPath(n.map,i.slice(1));return(!n.map||n.map.size===0)&&!n.value&&t.delete(i[0]),a}},{key:"delete",value:function(t){if(this.has(t))return this.keys=this.keys.filter(function(i){return!t0(i,t)}),this.deleteByPath(this.cache,t)}}]),e})();G(Gl,"MAX_CACHE_SIZE",20);G(Gl,"MAX_CACHE_OFFSET",5);var If=0,Dh=(function(){function e(r){ot(this,e),G(this,"derivatives",void 0),G(this,"id",void 0),this.derivatives=Array.isArray(r)?r:[r],this.id=If,r.length===0&&Kr(r.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),If+=1}return at(e,[{key:"getDerivativeToken",value:function(t){return this.derivatives.reduce(function(i,n){return n(t,i)},void 0)}}]),e})(),ms=new Gl;function ol(e){var r=Array.isArray(e)?e:[e];return ms.has(r)||ms.set(r,new Dh(r)),ms.get(r)}var r0=new WeakMap,ys={};function n0(e,r){for(var t=r0,i=0;i<r.length;i+=1){var n=r[i];t.has(n)||t.set(n,new WeakMap),t=t.get(n)}return t.has(ys)||t.set(ys,e()),t.get(ys)}var Lf=new WeakMap;function Nn(e){var r=Lf.get(e)||"";return r||(Object.keys(e).forEach(function(t){var i=e[t];r+=t,i instanceof Dh?r+=i.id:i&&Ee(i)==="object"?r+=Nn(i):r+=i}),r=Vn(r),Lf.set(e,r)),r}function $f(e,r){return Vn("".concat(r,"_").concat(Nn(e)))}var al=pt();function Le(e){return typeof e=="number"?"".concat(e,"px"):e}function Vi(e,r,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n)return e;var o=J(J({},i),{},G(G({},Xr,r),Ft,t)),a=Object.keys(o).map(function(s){var c=o[s];return c?"".concat(s,'="').concat(c,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(a,">").concat(e,"</style>")}var ki=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(r).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()},i0=function(r,t,i){return Object.keys(r).length?".".concat(t).concat(i!=null&&i.scope?".".concat(i.scope):"","{").concat(Object.entries(r).map(function(n){var o=le(n,2),a=o[0],s=o[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},qh=function(r,t,i){var n={},o={};return Object.entries(r).forEach(function(a){var s,c,d=le(a,2),f=d[0],l=d[1];if(i!=null&&(s=i.preserve)!==null&&s!==void 0&&s[f])o[f]=l;else if((typeof l=="string"||typeof l=="number")&&!(i!=null&&(c=i.ignore)!==null&&c!==void 0&&c[f])){var u,h=ki(f,i?.prefix);n[h]=typeof l=="number"&&!(i!=null&&(u=i.unitless)!==null&&u!==void 0&&u[f])?"".concat(l,"px"):String(l),o[f]="var(".concat(h,")")}}),[o,i0(n,t,{scope:i?.scope})]},o0=J({},I),Ff=o0.useInsertionEffect,a0=function(r,t,i){I.useMemo(r,i),Ue(function(){return t(!0)},i)},s0=Ff?function(e,r,t){return Ff(function(){return e(),r()},t)}:a0,l0=J({},I),u0=l0.useInsertionEffect,c0=function(r){var t=[],i=!1;function n(o){if(i){process.env.NODE_ENV!=="production"&&Kr(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}t.push(o)}return I.useEffect(function(){return i=!1,function(){i=!0,t.length&&t.forEach(function(o){return o()})}},r),n},f0=function(){return function(r){r()}},d0=typeof u0<"u"?c0:f0;function h0(){return!1}var sl=!1;function v0(){return sl}const p0=process.env.NODE_ENV==="production"?h0:v0;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(mi&&typeof mi.webpackHotUpdate=="function"){var g0=mi.webpackHotUpdate;mi.webpackHotUpdate=function(){return sl=!0,setTimeout(function(){sl=!1},0),g0.apply(void 0,arguments)}}}function Yl(e,r,t,i,n){var o=I.useContext(Yn),a=o.cache,s=[e].concat(me(r)),c=il(s),d=d0([c]),f=p0(),l=function(m){a.opUpdate(c,function(v){var y=v||[void 0,void 0],g=le(y,2),w=g[0],b=w===void 0?0:w,x=g[1],_=x;process.env.NODE_ENV!=="production"&&x&&f&&(i?.(_,f),_=null);var E=_||t(),C=[b,E];return m?m(C):C})};I.useMemo(function(){l()},[c]);var u=a.opGet(c);process.env.NODE_ENV!=="production"&&!u&&(l(),u=a.opGet(c));var h=u[1];return s0(function(){n?.(h)},function(p){return l(function(m){var v=le(m,2),y=v[0],g=v[1];return p&&y===0&&n?.(h),[y+1,g]}),function(){a.opUpdate(c,function(m){var v=m||[],y=le(v,2),g=y[0],w=g===void 0?0:g,b=y[1],x=w-1;return x===0?(d(function(){(p||!a.opGet(c))&&i?.(b,!1)}),null):[w-1,b]})}},[c]),h}var m0={},y0=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",Sr=new Map;function b0(e){Sr.set(e,(Sr.get(e)||0)+1)}function x0(e,r){if(typeof document<"u"){var t=document.querySelectorAll("style[".concat(Xr,'="').concat(e,'"]'));t.forEach(function(i){if(i[hr]===r){var n;(n=i.parentNode)===null||n===void 0||n.removeChild(i)}})}}var w0=0;function E0(e,r){Sr.set(e,(Sr.get(e)||0)-1);var t=new Set;Sr.forEach(function(i,n){i<=0&&t.add(n)}),Sr.size-t.size>w0&&t.forEach(function(i){x0(i,r),Sr.delete(i)})}var _0=function(r,t,i,n){var o=i.getDerivativeToken(r),a=J(J({},o),t);return n&&(a=n(a)),a},Bh="token";function S0(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=U.useContext(Yn),n=i.cache.instanceId,o=i.container,a=t.salt,s=a===void 0?"":a,c=t.override,d=c===void 0?m0:c,f=t.formatToken,l=t.getComputedToken,u=t.cssVar,h=n0(function(){return Object.assign.apply(Object,[{}].concat(me(r)))},r),p=Nn(h),m=Nn(d),v=u?Nn(u):"",y=Yl(Bh,[s,e.id,p,m,v],function(){var g,w=l?l(h,d,e):_0(h,d,e,f),b=J({},w),x="";if(u){var _=qh(w,u.key,{prefix:u.prefix,ignore:u.ignore,unitless:u.unitless,preserve:u.preserve}),E=le(_,2);w=E[0],x=E[1]}var C=$f(w,s);w._tokenKey=C,b._tokenKey=$f(b,s);var P=(g=u?.key)!==null&&g!==void 0?g:C;w._themeKey=P,b0(P);var O="".concat(y0,"-").concat(Vn(C));return w._hashId=O,[w,O,b,x,u?.key||""]},function(g){E0(g[0]._themeKey,n)},function(g){var w=le(g,4),b=w[0],x=w[3];if(u&&x){var _=rr(x,Vn("css-variables-".concat(b._themeKey)),{mark:Ft,prepend:"queue",attachTo:o,priority:-999});_[hr]=n,_.setAttribute(Xr,b._themeKey)}});return y}var C0=function(r,t,i){var n=le(r,5),o=n[2],a=n[3],s=n[4],c=i||{},d=c.plain;if(!a)return null;var f=o._tokenKey,l=-999,u={"data-rc-order":"prependQueue","data-rc-priority":"".concat(l)},h=Vi(a,s,f,u,d);return[l,f,h]},O0={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},Vh="comm",Hh="rule",zh="decl",R0="@import",A0="@namespace",T0="@keyframes",P0="@layer",Uh=Math.abs,Xl=String.fromCharCode;function Wh(e){return e.trim()}function ji(e,r,t){return e.replace(r,t)}function k0(e,r,t){return e.indexOf(r,t)}function zr(e,r){return e.charCodeAt(r)|0}function Zr(e,r,t){return e.slice(r,t)}function zt(e){return e.length}function j0(e){return e.length}function yi(e,r){return r.push(e),e}var io=1,Qr=1,Kh=0,At=0,Qe=0,sn="";function Zl(e,r,t,i,n,o,a,s){return{value:e,root:r,parent:t,type:i,props:n,children:o,line:io,column:Qr,length:a,return:"",siblings:s}}function N0(){return Qe}function M0(){return Qe=At>0?zr(sn,--At):0,Qr--,Qe===10&&(Qr=1,io--),Qe}function Dt(){return Qe=At<Kh?zr(sn,At++):0,Qr++,Qe===10&&(Qr=1,io++),Qe}function vr(){return zr(sn,At)}function Ni(){return At}function oo(e,r){return Zr(sn,e,r)}function Hn(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 I0(e){return io=Qr=1,Kh=zt(sn=e),At=0,[]}function L0(e){return sn="",e}function bs(e){return Wh(oo(At-1,ll(e===91?e+2:e===40?e+1:e)))}function $0(e){for(;(Qe=vr())&&Qe<33;)Dt();return Hn(e)>2||Hn(Qe)>3?"":" "}function F0(e,r){for(;--r&&Dt()&&!(Qe<48||Qe>102||Qe>57&&Qe<65||Qe>70&&Qe<97););return oo(e,Ni()+(r<6&&vr()==32&&Dt()==32))}function ll(e){for(;Dt();)switch(Qe){case e:return At;case 34:case 39:e!==34&&e!==39&&ll(Qe);break;case 40:e===41&&ll(e);break;case 92:Dt();break}return At}function D0(e,r){for(;Dt()&&e+Qe!==57;)if(e+Qe===84&&vr()===47)break;return"/*"+oo(r,At-1)+"*"+Xl(e===47?e:Dt())}function q0(e){for(;!Hn(vr());)Dt();return oo(e,At)}function B0(e){return L0(Mi("",null,null,null,[""],e=I0(e),0,[0],e))}function Mi(e,r,t,i,n,o,a,s,c){for(var d=0,f=0,l=a,u=0,h=0,p=0,m=1,v=1,y=1,g=0,w="",b=n,x=o,_=i,E=w;v;)switch(p=g,g=Dt()){case 40:if(p!=108&&zr(E,l-1)==58){k0(E+=ji(bs(g),"&","&\f"),"&\f",Uh(d?s[d-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:E+=bs(g);break;case 9:case 10:case 13:case 32:E+=$0(p);break;case 92:E+=F0(Ni()-1,7);continue;case 47:switch(vr()){case 42:case 47:yi(V0(D0(Dt(),Ni()),r,t,c),c),(Hn(p||1)==5||Hn(vr()||1)==5)&&zt(E)&&Zr(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*m:s[d++]=zt(E)*y;case 125*m:case 59:case 0:switch(g){case 0:case 125:v=0;case 59+f:y==-1&&(E=ji(E,/\f/g,"")),h>0&&(zt(E)-l||m===0&&p===47)&&yi(h>32?qf(E+";",i,t,l-1,c):qf(ji(E," ","")+";",i,t,l-2,c),c);break;case 59:E+=";";default:if(yi(_=Df(E,r,t,d,f,n,s,w,b=[],x=[],l,o),o),g===123)if(f===0)Mi(E,r,_,_,b,o,l,s,x);else{switch(u){case 99:if(zr(E,3)===110)break;case 108:if(zr(E,2)===97)break;default:f=0;case 100:case 109:case 115:}f?Mi(e,_,_,i&&yi(Df(e,_,_,0,0,n,s,w,n,b=[],l,x),x),n,x,l,s,i?b:x):Mi(E,_,_,_,[""],x,0,s,x)}}d=f=h=0,m=y=1,w=E="",l=a;break;case 58:l=1+zt(E),h=p;default:if(m<1){if(g==123)--m;else if(g==125&&m++==0&&M0()==125)continue}switch(E+=Xl(g),g*m){case 38:y=f>0?1:(E+="\f",-1);break;case 44:s[d++]=(zt(E)-1)*y,y=1;break;case 64:vr()===45&&(E+=bs(Dt())),u=vr(),f=l=zt(w=E+=q0(Ni())),g++;break;case 45:p===45&&zt(E)==2&&(m=0)}}return o}function Df(e,r,t,i,n,o,a,s,c,d,f,l){for(var u=n-1,h=n===0?o:[""],p=j0(h),m=0,v=0,y=0;m<i;++m)for(var g=0,w=Zr(e,u+1,u=Uh(v=a[m])),b=e;g<p;++g)(b=Wh(v>0?h[g]+" "+w:ji(w,/&\f/g,h[g])))&&(c[y++]=b);return Zl(e,r,t,n===0?Hh:s,c,d,f,l)}function V0(e,r,t,i){return Zl(e,r,t,Vh,Xl(N0()),Zr(e,2,-2),0,i)}function qf(e,r,t,i,n){return Zl(e,r,t,zh,Zr(e,0,i),Zr(e,i+1,-1),i,n)}function ul(e,r){for(var t="",i=0;i<e.length;i++)t+=r(e[i],i,e,r)||"";return t}function H0(e,r,t,i){switch(e.type){case P0:if(e.children.length)break;case R0:case A0:case zh:return e.return=e.return||e.value;case Vh:return"";case T0:return e.return=e.value+"{"+ul(e.children,i)+"}";case Hh:if(!zt(e.value=e.props.join(",")))return""}return zt(t=ul(e.children,i))?e.return=e.value+"{"+t+"}":""}function Gh(e,r){var t=r.path,i=r.parentSelectors;ze(!1,"[Ant Design CSS-in-JS] ".concat(t?"Error in ".concat(t,": "):"").concat(e).concat(i.length?" Selector: ".concat(i.join(" | ")):""))}var z0=function(r,t,i){if(r==="content"){var n=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,o=["normal","none","initial","inherit","unset"];(typeof t!="string"||o.indexOf(t)===-1&&!n.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||t.charAt(0)!=='"'&&t.charAt(0)!=="'"))&&Gh("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),i)}},U0=function(r,t,i){r==="animation"&&i.hashId&&t!=="none"&&Gh("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),i)},Bf="data-ant-cssinjs-cache-path",Yh="_FILE_STYLE__",Or,Xh=!0;function W0(){if(!Or&&(Or={},pt())){var e=document.createElement("div");e.className=Bf,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var r=getComputedStyle(e).content||"";r=r.replace(/^"/,"").replace(/"$/,""),r.split(";").forEach(function(n){var o=n.split(":"),a=le(o,2),s=a[0],c=a[1];Or[s]=c});var t=document.querySelector("style[".concat(Bf,"]"));if(t){var i;Xh=!1,(i=t.parentNode)===null||i===void 0||i.removeChild(t)}document.body.removeChild(e)}}function K0(e){return W0(),!!Or[e]}function G0(e){var r=Or[e],t=null;if(r&&pt())if(Xh)t=Yh;else{var i=document.querySelector("style[".concat(Ft,'="').concat(Or[e],'"]'));i?t=i.innerHTML:delete Or[e]}return[t,r]}var Zh="_skip_check_",Qh="_multi_value_";function Ii(e){var r=ul(B0(e),H0);return r.replace(/\{%%%\:[^;];}/g,";")}function Y0(e){return Ee(e)==="object"&&e&&(Zh in e||Qh in e)}function Vf(e,r,t){if(!r)return e;var i=".".concat(r),n=t==="low"?":where(".concat(i,")"):i,o=e.split(",").map(function(a){var s,c=a.trim().split(/\s+/),d=c[0]||"",f=((s=d.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return d="".concat(f).concat(n).concat(d.slice(f.length)),[d].concat(me(c.slice(1))).join(" ")});return o.join(",")}var X0=function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},n=i.root,o=i.injectHash,a=i.parentSelectors,s=t.hashId,c=t.layer,d=t.path,f=t.hashPriority,l=t.transformers,u=l===void 0?[]:l,h=t.linters,p=h===void 0?[]:h,m="",v={};function y(b){var x=b.getName(s);if(!v[x]){var _=e(b.style,t,{root:!1,parentSelectors:a}),E=le(_,1),C=E[0];v[x]="@keyframes ".concat(b.getName(s)).concat(C)}}function g(b){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(_){Array.isArray(_)?g(_,x):_&&x.push(_)}),x}var w=g(Array.isArray(r)?r:[r]);return w.forEach(function(b){var x=typeof b=="string"&&!n?{}:b;if(typeof x=="string")m+="".concat(x,`
|
|
133
|
-
`);else if(x._keyframe)y(x);else{var _=u.reduce(function(E,C){var
|
|
134
|
-
`))):m="{".concat(m,"}"),[m,v]};function Jh(e,r){return Vn("".concat(e.join("%")).concat(r))}function Z0(){return null}var ev="style";function cl(e,r){var t=e.token,i=e.path,n=e.hashId,o=e.layer,a=e.nonce,s=e.clientOnly,c=e.order,d=c===void 0?0:c,f=I.useContext(Yn),l=f.autoClear,u=f.mock,h=f.defaultCache,p=f.hashPriority,m=f.container,v=f.ssrInline,y=f.transformers,g=f.linters,w=f.cache,b=f.layer,x=t._tokenKey,_=[x];b&&_.push("layer"),_.push.apply(_,me(i));var E=al;process.env.NODE_ENV!=="production"&&u!==void 0&&(E=u==="client");var C=Yl(ev,_,function(){var T=_.join("|");if(K0(T)){var k=G0(T),L=le(k,2),F=L[0],$=L[1];if(F)return[F,x,$,{},s,d]}var z=r(),H=X0(z,{hashId:n,hashPriority:p,layer:b?o:void 0,path:i.join("-"),transformers:y,linters:g}),D=le(H,2),j=D[0],A=D[1],M=Ii(j),q=Jh(_,M);return[M,x,q,A,s,d]},function(T,k){var L=le(T,3),F=L[2];(k||l)&&al&&$n(F,{mark:Ft,attachTo:m})},function(T){var k=le(T,4),L=k[0];k[1];var F=k[2],$=k[3];if(E&&L!==Yh){var z={mark:Ft,prepend:b?!1:"queue",attachTo:m,priority:d},H=typeof a=="function"?a():a;H&&(z.csp={nonce:H});var D=[],j=[];Object.keys($).forEach(function(M){M.startsWith("@layer")?D.push(M):j.push(M)}),D.forEach(function(M){rr(Ii($[M]),"_layer-".concat(M),J(J({},z),{},{prepend:!0}))});var A=rr(L,F,z);A[hr]=w.instanceId,A.setAttribute(Xr,x),process.env.NODE_ENV!=="production"&&A.setAttribute(Jy,_.join("|")),j.forEach(function(M){rr(Ii($[M]),"_effect-".concat(M),z)})}}),P=le(C,3),O=P[0],S=P[1],R=P[2];return function(T){var k;return!v||E||!h?k=I.createElement(Z0,null):k=I.createElement("style",qe({},G(G({},Xr,S),Ft,R),{dangerouslySetInnerHTML:{__html:O}})),I.createElement(I.Fragment,null,k,T)}}var Q0=function(r,t,i){var n=le(r,6),o=n[0],a=n[1],s=n[2],c=n[3],d=n[4],f=n[5],l=i||{},u=l.plain;if(d)return null;var h=o,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)};return h=Vi(o,a,s,p,u),c&&Object.keys(c).forEach(function(m){if(!t[m]){t[m]=!0;var v=Ii(c[m]),y=Vi(v,a,"_effect-".concat(m),p,u);m.startsWith("@layer")?h=y+h:h+=y}}),[f,s,h]},tv="cssVar",J0=function(r,t){var i=r.key,n=r.prefix,o=r.unitless,a=r.ignore,s=r.token,c=r.scope,d=c===void 0?"":c,f=U.useContext(Yn),l=f.cache.instanceId,u=f.container,h=s._tokenKey,p=[].concat(me(r.path),[i,d,h]),m=Yl(tv,p,function(){var v=t(),y=qh(v,i,{prefix:n,unitless:o,ignore:a,scope:d}),g=le(y,2),w=g[0],b=g[1],x=Jh(p,b);return[w,b,x,i]},function(v){var y=le(v,3),g=y[2];al&&$n(g,{mark:Ft,attachTo:u})},function(v){var y=le(v,3),g=y[1],w=y[2];if(g){var b=rr(g,w,{mark:Ft,prepend:"queue",attachTo:u,priority:-999});b[hr]=l,b.setAttribute(Xr,i)}});return m},eb=function(r,t,i){var n=le(r,4),o=n[1],a=n[2],s=n[3],c=i||{},d=c.plain;if(!o)return null;var f=-999,l={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},u=Vi(o,s,a,l,d);return[f,a,u]};G(G(G({},ev,Q0),Bh,C0),tv,eb);var Pt=(function(){function e(r,t){ot(this,e),G(this,"name",void 0),G(this,"style",void 0),G(this,"_keyframe",!0),this.name=r,this.style=t}return at(e,[{key:"getName",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),e})();function Ir(e){return e.notSplit=!0,e}Ir(["borderTop","borderBottom"]),Ir(["borderTop"]),Ir(["borderBottom"]),Ir(["borderLeft","borderRight"]),Ir(["borderLeft"]),Ir(["borderRight"]);function tb(e){return dh(e)||fh(e)||Dl(e)||hh()}function Ut(e,r){for(var t=e,i=0;i<r.length;i+=1){if(t==null)return;t=t[r[i]]}return t}function rv(e,r,t,i){if(!r.length)return t;var n=tb(r),o=n[0],a=n.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=me(e):s=J({},e),i&&t===void 0&&a.length===1?delete s[o][a[0]]:s[o]=rv(s[o],a,t,i),s}function Lt(e,r,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return r.length&&i&&t===void 0&&!Ut(e,r.slice(0,-1))?e:rv(e,r,t,i)}function rb(e){return Ee(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Hf(e){return Array.isArray(e)?[]:{}}var nb=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Br(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var i=Hf(r[0]);return r.forEach(function(n){function o(a,s){var c=new Set(s),d=Ut(n,a),f=Array.isArray(d);if(f||rb(d)){if(!c.has(d)){c.add(d);var l=Ut(i,a);f?i=Lt(i,a,[]):(!l||Ee(l)!=="object")&&(i=Lt(i,a,Hf(d))),nb(d).forEach(function(u){o([].concat(me(a),[u]),c)})}}else i=Lt(i,a,d)}o([])}),i}function nv(){}let Qt=null;function ib(){Qt=null,Eh()}let iv=nv;process.env.NODE_ENV!=="production"&&(iv=(e,r,t)=>{ze(e,`[antd: ${r}] ${t}`),process.env.NODE_ENV==="test"&&ib()});const Xn=iv,ov=I.createContext({}),Wt=process.env.NODE_ENV!=="production"?e=>{const{strict:r}=I.useContext(ov),t=(i,n,o)=>{if(!i)if(r===!1&&n==="deprecated"){const a=Qt;Qt||(Qt={}),Qt[e]=Qt[e]||[],Qt[e].includes(o||"")||Qt[e].push(o||""),a||console.warn("[antd] There exists deprecated usage in your code:",Qt)}else process.env.NODE_ENV!=="production"&&Xn(i,e,o)};return t.deprecated=(i,n,o,a)=>{t(i,"deprecated",`\`${n}\` is deprecated. Please use \`${o}\` instead.${a?` ${a}`:""}`)},t}:()=>{const e=()=>{};return e.deprecated=nv,e},ob=U.createContext(void 0);var ab={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"},sb={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},lb=J(J({},sb),{},{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 av={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},zf={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"]},lb),timePickerLocale:Object.assign({},av)},yt="${label} is not a valid ${type}",Jr={locale:"en",Pagination:ab,DatePicker:zf,TimePicker:av,Calendar:zf,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:yt,method:yt,array:yt,object:yt,number:yt,date:yt,boolean:yt,integer:yt,float:yt,regexp:yt,email:yt,url:yt,hex:yt},string:{len:"${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({},Jr.Modal);let Li=[];const Uf=()=>Li.reduce((e,r)=>Object.assign(Object.assign({},e),r),Jr.Modal);function ub(e){if(e){const r=Object.assign({},e);return Li.push(r),Uf(),()=>{Li=Li.filter(t=>t!==r),Uf()}}Object.assign({},Jr.Modal)}const Ql=U.createContext(void 0),cb=(e,r)=>{const t=I.useContext(Ql),i=I.useMemo(()=>{var o;const a=Jr[e],s=(o=t?.[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,r,t]),n=I.useMemo(()=>{const o=t?.locale;return t?.exist&&!o?Jr.locale:o},[t]);return[i,n]},sv="internalMark",lv=e=>{const{locale:r={},children:t,_ANT_MARK__:i}=e;if(process.env.NODE_ENV!=="production"){const o=Wt("LocaleProvider");process.env.NODE_ENV!=="production"&&o(i===sv,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}I.useEffect(()=>ub(r?.Modal),[r]);const n=I.useMemo(()=>Object.assign(Object.assign({},r),{exist:!0}),[r]);return I.createElement(Ql.Provider,{value:n},t)};process.env.NODE_ENV!=="production"&&(lv.displayName="LocaleProvider");const uv={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"},zn=Object.assign(Object.assign({},uv),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
132
|
+
*/var kf;function Ey(){return kf||(kf=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),r=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),p=!1,m=!1,v=!1,y=!1,g=!1,w;w=Symbol.for("react.module.reference");function b(te){return!!(typeof te=="string"||typeof te=="function"||te===t||te===n||g||te===i||te===d||te===f||y||te===h||p||m||v||typeof te=="object"&&te!==null&&(te.$$typeof===u||te.$$typeof===l||te.$$typeof===o||te.$$typeof===a||te.$$typeof===c||te.$$typeof===w||te.getModuleId!==void 0))}function x(te){if(typeof te=="object"&&te!==null){var ce=te.$$typeof;switch(ce){case e:var fe=te.type;switch(fe){case t:case n:case i:case d:case f:return fe;default:var ve=fe&&fe.$$typeof;switch(ve){case s:case a:case c:case u:case l:case o:return ve;default:return ce}}case r:return ce}}}var _=a,E=o,C=e,k=c,O=t,S=u,R=l,T=r,P=n,L=i,F=d,$=f,z=!1,H=!1;function D(te){return z||(z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function j(te){return H||(H=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function A(te){return x(te)===a}function M(te){return x(te)===o}function q(te){return typeof te=="object"&&te!==null&&te.$$typeof===e}function B(te){return x(te)===c}function N(te){return x(te)===t}function V(te){return x(te)===u}function K(te){return x(te)===l}function W(te){return x(te)===r}function X(te){return x(te)===n}function re(te){return x(te)===i}function oe(te){return x(te)===d}function se(te){return x(te)===f}Ne.ContextConsumer=_,Ne.ContextProvider=E,Ne.Element=C,Ne.ForwardRef=k,Ne.Fragment=O,Ne.Lazy=S,Ne.Memo=R,Ne.Portal=T,Ne.Profiler=P,Ne.StrictMode=L,Ne.Suspense=F,Ne.SuspenseList=$,Ne.isAsyncMode=D,Ne.isConcurrentMode=j,Ne.isContextConsumer=A,Ne.isContextProvider=M,Ne.isElement=q,Ne.isForwardRef=B,Ne.isFragment=N,Ne.isLazy=V,Ne.isMemo=K,Ne.isPortal=W,Ne.isProfiler=X,Ne.isStrictMode=re,Ne.isSuspense=oe,Ne.isSuspenseList=se,Ne.isValidElementType=b,Ne.typeOf=x})()),Ne}var Pf;function _y(){return Pf||(Pf=1,process.env.NODE_ENV==="production"?gi.exports=wy():gi.exports=Ey()),gi.exports}var gs=_y();function Ul(e,r,t){var i=I.useRef({});return(!("value"in i.current)||t(i.current.condition,r))&&(i.current.value=e(),i.current.condition=r),i.current.value}var Sy=Number(U.version.split(".")[0]),Wl=function(r,t){typeof r=="function"?r(t):Ee(r)==="object"&&r&&"current"in r&&(r.current=t)},Gn=function(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];var n=t.filter(Boolean);return n.length<=1?n[0]:function(o){t.forEach(function(a){Wl(a,o)})}},Kl=function(){for(var r=arguments.length,t=new Array(r),i=0;i<r;i++)t[i]=arguments[i];return Ul(function(){return Gn.apply(void 0,t)},t,function(n,o){return n.length!==o.length||n.every(function(a,s){return a!==o[s]})})},no=function(r){var t,i;if(!r)return!1;if(kh(r)&&Sy>=19)return!0;var n=gs.isMemo(r)?r.type.type:r.type;return!(typeof n=="function"&&!((t=n.prototype)!==null&&t!==void 0&&t.render)&&n.$$typeof!==gs.ForwardRef||typeof r=="function"&&!((i=r.prototype)!==null&&i!==void 0&&i.render)&&r.$$typeof!==gs.ForwardRef)};function kh(e){return U.isValidElement(e)&&!Th(e)}var Gl=function(r){if(r&&kh(r)){var t=r;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},rl=I.createContext(null);function Cy(e){var r=e.children,t=e.onBatchResize,i=I.useRef(0),n=I.useRef([]),o=I.useContext(rl),a=I.useCallback(function(s,c,d){i.current+=1;var f=i.current;n.current.push({size:s,element:c,data:d}),Promise.resolve().then(function(){f===i.current&&(t?.(n.current),n.current=[])}),o?.(s,c,d)},[t,o]);return I.createElement(rl.Provider,{value:a},r)}var Ph=(function(){if(typeof Map<"u")return Map;function e(r,t){var i=-1;return r.some(function(n,o){return n[0]===t?(i=o,!0):!1}),i}return(function(){function r(){this.__entries__=[]}return Object.defineProperty(r.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),r.prototype.get=function(t){var i=e(this.__entries__,t),n=this.__entries__[i];return n&&n[1]},r.prototype.set=function(t,i){var n=e(this.__entries__,t);~n?this.__entries__[n][1]=i:this.__entries__.push([t,i])},r.prototype.delete=function(t){var i=this.__entries__,n=e(i,t);~n&&i.splice(n,1)},r.prototype.has=function(t){return!!~e(this.__entries__,t)},r.prototype.clear=function(){this.__entries__.splice(0)},r.prototype.forEach=function(t,i){i===void 0&&(i=null);for(var n=0,o=this.__entries__;n<o.length;n++){var a=o[n];t.call(i,a[1],a[0])}},r})()})(),nl=typeof window<"u"&&typeof document<"u"&&window.document===document,qi=(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")()})(),Oy=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(qi):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),Ry=2;function Ay(e,r){var t=!1,i=!1,n=0;function o(){t&&(t=!1,e()),i&&s()}function a(){Oy(o)}function s(){var c=Date.now();if(t){if(c-n<Ry)return;i=!0}else t=!0,i=!1,setTimeout(a,r);n=c}return s}var Ty=20,ky=["top","right","bottom","left","width","height","size","weight"],Py=typeof MutationObserver<"u",jy=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Ay(this.refresh.bind(this),Ty)}return e.prototype.addObserver=function(r){~this.observers_.indexOf(r)||this.observers_.push(r),this.connected_||this.connect_()},e.prototype.removeObserver=function(r){var t=this.observers_,i=t.indexOf(r);~i&&t.splice(i,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var r=this.updateObservers_();r&&this.refresh()},e.prototype.updateObservers_=function(){var r=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return r.forEach(function(t){return t.broadcastActive()}),r.length>0},e.prototype.connect_=function(){!nl||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Py?(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(){!nl||!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(r){var t=r.propertyName,i=t===void 0?"":t,n=ky.some(function(o){return!!~i.indexOf(o)});n&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),jh=(function(e,r){for(var t=0,i=Object.keys(r);t<i.length;t++){var n=i[t];Object.defineProperty(e,n,{value:r[n],enumerable:!1,writable:!1,configurable:!0})}return e}),Yr=(function(e){var r=e&&e.ownerDocument&&e.ownerDocument.defaultView;return r||qi}),Nh=io(0,0,0,0);function Bi(e){return parseFloat(e)||0}function jf(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];return r.reduce(function(i,n){var o=e["border-"+n+"-width"];return i+Bi(o)},0)}function Ny(e){for(var r=["top","right","bottom","left"],t={},i=0,n=r;i<n.length;i++){var o=n[i],a=e["padding-"+o];t[o]=Bi(a)}return t}function My(e){var r=e.getBBox();return io(0,0,r.width,r.height)}function Iy(e){var r=e.clientWidth,t=e.clientHeight;if(!r&&!t)return Nh;var i=Yr(e).getComputedStyle(e),n=Ny(i),o=n.left+n.right,a=n.top+n.bottom,s=Bi(i.width),c=Bi(i.height);if(i.boxSizing==="border-box"&&(Math.round(s+o)!==r&&(s-=jf(i,"left","right")+o),Math.round(c+a)!==t&&(c-=jf(i,"top","bottom")+a)),!$y(e)){var d=Math.round(s+o)-r,f=Math.round(c+a)-t;Math.abs(d)!==1&&(s-=d),Math.abs(f)!==1&&(c-=f)}return io(n.left,n.top,s,c)}var Ly=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Yr(e).SVGGraphicsElement}:function(e){return e instanceof Yr(e).SVGElement&&typeof e.getBBox=="function"}})();function $y(e){return e===Yr(e).document.documentElement}function Fy(e){return nl?Ly(e)?My(e):Iy(e):Nh}function Dy(e){var r=e.x,t=e.y,i=e.width,n=e.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return jh(a,{x:r,y:t,width:i,height:n,top:t,right:r+i,bottom:n+t,left:r}),a}function io(e,r,t,i){return{x:e,y:r,width:t,height:i}}var qy=(function(){function e(r){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=io(0,0,0,0),this.target=r}return e.prototype.isActive=function(){var r=Fy(this.target);return this.contentRect_=r,r.width!==this.broadcastWidth||r.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var r=this.contentRect_;return this.broadcastWidth=r.width,this.broadcastHeight=r.height,r},e})(),By=(function(){function e(r,t){var i=Dy(t);jh(this,{target:r,contentRect:i})}return e})(),Vy=(function(){function e(r,t,i){if(this.activeObservations_=[],this.observations_=new Ph,typeof r!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=r,this.controller_=t,this.callbackCtx_=i}return e.prototype.observe=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(r instanceof Yr(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(r)||(t.set(r,new qy(r)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(r){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(r instanceof Yr(r).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(r)&&(t.delete(r),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var r=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&r.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var r=this.callbackCtx_,t=this.activeObservations_.map(function(i){return new By(i.target,i.broadcastRect())});this.callback_.call(r,t,r),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),Mh=typeof WeakMap<"u"?new WeakMap:new Ph,Ih=(function(){function e(r){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 t=jy.getInstance(),i=new Vy(r,t,this);Mh.set(this,i)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Ih.prototype[e]=function(){var r;return(r=Mh.get(this))[e].apply(r,arguments)}});var Hy=(function(){return typeof qi.ResizeObserver<"u"?qi.ResizeObserver:Ih})(),tr=new Map;function Lh(e){e.forEach(function(r){var t,i=r.target;(t=tr.get(i))===null||t===void 0||t.forEach(function(n){return n(i)})})}var $h=new Hy(Lh);process.env.NODE_ENV;process.env.NODE_ENV;function zy(e,r){tr.has(e)||(tr.set(e,new Set),$h.observe(e)),tr.get(e).add(r)}function Uy(e,r){tr.has(e)&&(tr.get(e).delete(r),tr.get(e).size||($h.unobserve(e),tr.delete(e)))}function ot(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Nf(e,r){for(var t=0;t<r.length;t++){var i=r[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,ph(i.key),i)}}function at(e,r,t){return r&&Nf(e.prototype,r),t&&Nf(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dn(e,r){return Dn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,i){return t.__proto__=i,t},Dn(e,r)}function gr(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&Dn(e,r)}function qn(e){return qn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qn(e)}function Yl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yl=function(){return!!e})()}function Oe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wy(e,r){if(r&&(Ee(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Oe(e)}function mr(e){var r=Yl();return function(){var t,i=qn(e);if(r){var n=qn(this).constructor;t=Reflect.construct(i,arguments,n)}else t=i.apply(this,arguments);return Wy(this,t)}}var Ky=(function(e){gr(t,e);var r=mr(t);function t(){return ot(this,t),r.apply(this,arguments)}return at(t,[{key:"render",value:function(){return this.props.children}}]),t})(I.Component);function Gy(e,r){var t=e.children,i=e.disabled,n=I.useRef(null),o=I.useRef(null),a=I.useContext(rl),s=typeof t=="function",c=s?t(n):t,d=I.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!s&&I.isValidElement(c)&&no(c),l=f?Gl(c):null,u=Kl(l,n),h=function(){var y;return ki(n.current)||(n.current&&Ee(n.current)==="object"?ki((y=n.current)===null||y===void 0?void 0:y.nativeElement):null)||ki(o.current)};I.useImperativeHandle(r,function(){return h()});var p=I.useRef(e);p.current=e;var m=I.useCallback(function(v){var y=p.current,g=y.onResize,w=y.data,b=v.getBoundingClientRect(),x=b.width,_=b.height,E=v.offsetWidth,C=v.offsetHeight,k=Math.floor(x),O=Math.floor(_);if(d.current.width!==k||d.current.height!==O||d.current.offsetWidth!==E||d.current.offsetHeight!==C){var S={width:k,height:O,offsetWidth:E,offsetHeight:C};d.current=S;var R=E===Math.round(x)?x:E,T=C===Math.round(_)?_:C,P=J(J({},S),{},{offsetWidth:R,offsetHeight:T});a?.(P,v,w),g&&Promise.resolve().then(function(){g(P,v)})}},[]);return I.useEffect(function(){var v=h();return v&&!i&&zy(v,m),function(){return Uy(v,m)}},[n.current,i]),I.createElement(Ky,{ref:o},f?I.cloneElement(c,{ref:u}):c)}var Fh=I.forwardRef(Gy);process.env.NODE_ENV!=="production"&&(Fh.displayName="SingleObserver");var Yy="rc-observer-key";function Xy(e,r){var t=e.children,i=typeof t=="function"?[t]:Gr(t);return process.env.NODE_ENV!=="production"&&(i.length>1?Kr(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):i.length===0&&Kr(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),i.map(function(n,o){var a=n?.key||"".concat(Yy,"-").concat(o);return I.createElement(Fh,qe({},e,{key:a,ref:o===0?r:void 0}),n)})}var an=I.forwardRef(Xy);process.env.NODE_ENV!=="production"&&(an.displayName="ResizeObserver");an.Collection=Cy;var Mf=process.env.NODE_ENV!=="test"&&pt()?I.useLayoutEffect:I.useEffect,Ue=function(r,t){var i=I.useRef(!0);Mf(function(){return r(i.current)},t),Mf(function(){return i.current=!1,function(){i.current=!0}},[])},If=function(r,t){Ue(function(i){if(!i)return r()},t)};function vt(e){var r=I.useRef();r.current=e;var t=I.useCallback(function(){for(var i,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return(i=r.current)===null||i===void 0?void 0:i.call.apply(i,[r].concat(o))},[]);return t}function Bn(e){var r=I.useRef(!1),t=I.useState(e),i=le(t,2),n=i[0],o=i[1];I.useEffect(function(){return r.current=!1,function(){r.current=!0}},[]);function a(s,c){c&&r.current||o(s)}return[n,a]}function ms(e){return e!==void 0}function Rr(e,r){var t=r||{},i=t.defaultValue,n=t.value,o=t.onChange,a=t.postState,s=Bn(function(){return ms(n)?n:ms(i)?typeof i=="function"?i():i:typeof e=="function"?e():e}),c=le(s,2),d=c[0],f=c[1],l=n!==void 0?n:d,u=a?a(l):l,h=vt(o),p=Bn([l]),m=le(p,2),v=m[0],y=m[1];If(function(){var w=v[0];d!==w&&h(d,w)},[v]),If(function(){ms(n)||f(n)},[n]);var g=vt(function(w,b){f(w,b),y([l],b)});return[u,g]}function Dh(e,r){var t=Object.assign({},e);return Array.isArray(r)&&r.forEach(function(i){delete t[i]}),t}var Zy=function(r){if(pt()&&window.document.documentElement){var t=Array.isArray(r)?r:[r],i=window.document.documentElement;return t.some(function(n){return n in i.style})}return!1};function Lf(e,r){return Zy(e)}function Vn(e){for(var r=0,t,i=0,n=e.length;n>=4;++i,n-=4)t=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(n){case 3:r^=(e.charCodeAt(i+2)&255)<<16;case 2:r^=(e.charCodeAt(i+1)&255)<<8;case 1:r^=e.charCodeAt(i)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}function il(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=new Set;function n(o,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=i.has(o);if(ze(!c,"Warning: There may be circular references"),c)return!1;if(o===a)return!0;if(t&&s>1)return!1;i.add(o);var d=s+1;if(Array.isArray(o)){if(!Array.isArray(a)||o.length!==a.length)return!1;for(var f=0;f<o.length;f++)if(!n(o[f],a[f],d))return!1;return!0}if(o&&a&&Ee(o)==="object"&&Ee(a)==="object"){var l=Object.keys(o);return l.length!==Object.keys(a).length?!1:l.every(function(u){return n(o[u],a[u],d)})}return!1}return n(e,r)}var Qy="%";function ol(e){return e.join(Qy)}var Jy=(function(){function e(r){ot(this,e),G(this,"instanceId",void 0),G(this,"cache",new Map),G(this,"extracted",new Set),this.instanceId=r}return at(e,[{key:"get",value:function(t){return this.opGet(ol(t))}},{key:"opGet",value:function(t){return this.cache.get(t)||null}},{key:"update",value:function(t,i){return this.opUpdate(ol(t),i)}},{key:"opUpdate",value:function(t,i){var n=this.cache.get(t),o=i(n);o===null?this.cache.delete(t):this.cache.set(t,o)}}]),e})(),Xr="data-token-hash",Ft="data-css-hash",e0="data-cache-path",hr="__cssinjs_instance__";function t0(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var r=document.body.querySelectorAll("style[".concat(Ft,"]"))||[],t=document.head.firstChild;Array.from(r).forEach(function(n){n[hr]=n[hr]||e,n[hr]===e&&document.head.insertBefore(n,t)});var i={};Array.from(document.querySelectorAll("style[".concat(Ft,"]"))).forEach(function(n){var o=n.getAttribute(Ft);if(i[o]){if(n[hr]===e){var a;(a=n.parentNode)===null||a===void 0||a.removeChild(n)}}else i[o]=!0})}return new Jy(e)}var Yn=I.createContext({hashPriority:"low",cache:t0(),defaultCache:!0});function r0(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==r[t])return!1;return!0}var Xl=(function(){function e(){ot(this,e),G(this,"cache",void 0),G(this,"keys",void 0),G(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return at(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(t){var i,n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return t.forEach(function(s){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(s)}}),(i=a)!==null&&i!==void 0&&i.value&&o&&(a.value[1]=this.cacheCallTimes++),(n=a)===null||n===void 0?void 0:n.value}},{key:"get",value:function(t){var i;return(i=this.internalGet(t,!0))===null||i===void 0?void 0:i[0]}},{key:"has",value:function(t){return!!this.internalGet(t)}},{key:"set",value:function(t,i){var n=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(d,f){var l=le(d,2),u=l[1];return n.internalGet(f)[1]<u?[f,n.internalGet(f)[1]]:d},[this.keys[0],this.cacheCallTimes]),a=le(o,1),s=a[0];this.delete(s)}this.keys.push(t)}var c=this.cache;t.forEach(function(d,f){if(f===t.length-1)c.set(d,{value:[i,n.cacheCallTimes++]});else{var l=c.get(d);l?l.map||(l.map=new Map):c.set(d,{map:new Map}),c=c.get(d).map}})}},{key:"deleteByPath",value:function(t,i){var n=t.get(i[0]);if(i.length===1){var o;return n.map?t.set(i[0],{map:n.map}):t.delete(i[0]),(o=n.value)===null||o===void 0?void 0:o[0]}var a=this.deleteByPath(n.map,i.slice(1));return(!n.map||n.map.size===0)&&!n.value&&t.delete(i[0]),a}},{key:"delete",value:function(t){if(this.has(t))return this.keys=this.keys.filter(function(i){return!r0(i,t)}),this.deleteByPath(this.cache,t)}}]),e})();G(Xl,"MAX_CACHE_SIZE",20);G(Xl,"MAX_CACHE_OFFSET",5);var $f=0,qh=(function(){function e(r){ot(this,e),G(this,"derivatives",void 0),G(this,"id",void 0),this.derivatives=Array.isArray(r)?r:[r],this.id=$f,r.length===0&&Kr(r.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),$f+=1}return at(e,[{key:"getDerivativeToken",value:function(t){return this.derivatives.reduce(function(i,n){return n(t,i)},void 0)}}]),e})(),ys=new Xl;function al(e){var r=Array.isArray(e)?e:[e];return ys.has(r)||ys.set(r,new qh(r)),ys.get(r)}var n0=new WeakMap,bs={};function i0(e,r){for(var t=n0,i=0;i<r.length;i+=1){var n=r[i];t.has(n)||t.set(n,new WeakMap),t=t.get(n)}return t.has(bs)||t.set(bs,e()),t.get(bs)}var Ff=new WeakMap;function Nn(e){var r=Ff.get(e)||"";return r||(Object.keys(e).forEach(function(t){var i=e[t];r+=t,i instanceof qh?r+=i.id:i&&Ee(i)==="object"?r+=Nn(i):r+=i}),r=Vn(r),Ff.set(e,r)),r}function Df(e,r){return Vn("".concat(r,"_").concat(Nn(e)))}var sl=pt();function Le(e){return typeof e=="number"?"".concat(e,"px"):e}function Vi(e,r,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(n)return e;var o=J(J({},i),{},G(G({},Xr,r),Ft,t)),a=Object.keys(o).map(function(s){var c=o[s];return c?"".concat(s,'="').concat(c,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(a,">").concat(e,"</style>")}var Pi=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(r).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()},o0=function(r,t,i){return Object.keys(r).length?".".concat(t).concat(i!=null&&i.scope?".".concat(i.scope):"","{").concat(Object.entries(r).map(function(n){var o=le(n,2),a=o[0],s=o[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},Bh=function(r,t,i){var n={},o={};return Object.entries(r).forEach(function(a){var s,c,d=le(a,2),f=d[0],l=d[1];if(i!=null&&(s=i.preserve)!==null&&s!==void 0&&s[f])o[f]=l;else if((typeof l=="string"||typeof l=="number")&&!(i!=null&&(c=i.ignore)!==null&&c!==void 0&&c[f])){var u,h=Pi(f,i?.prefix);n[h]=typeof l=="number"&&!(i!=null&&(u=i.unitless)!==null&&u!==void 0&&u[f])?"".concat(l,"px"):String(l),o[f]="var(".concat(h,")")}}),[o,o0(n,t,{scope:i?.scope})]},a0=J({},I),qf=a0.useInsertionEffect,s0=function(r,t,i){I.useMemo(r,i),Ue(function(){return t(!0)},i)},l0=qf?function(e,r,t){return qf(function(){return e(),r()},t)}:s0,u0=J({},I),c0=u0.useInsertionEffect,f0=function(r){var t=[],i=!1;function n(o){if(i){process.env.NODE_ENV!=="production"&&Kr(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}t.push(o)}return I.useEffect(function(){return i=!1,function(){i=!0,t.length&&t.forEach(function(o){return o()})}},r),n},d0=function(){return function(r){r()}},h0=typeof c0<"u"?f0:d0;function v0(){return!1}var ll=!1;function p0(){return ll}const g0=process.env.NODE_ENV==="production"?v0:p0;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var mi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:null;if(mi&&typeof mi.webpackHotUpdate=="function"){var m0=mi.webpackHotUpdate;mi.webpackHotUpdate=function(){return ll=!0,setTimeout(function(){ll=!1},0),m0.apply(void 0,arguments)}}}function Zl(e,r,t,i,n){var o=I.useContext(Yn),a=o.cache,s=[e].concat(me(r)),c=ol(s),d=h0([c]),f=g0(),l=function(m){a.opUpdate(c,function(v){var y=v||[void 0,void 0],g=le(y,2),w=g[0],b=w===void 0?0:w,x=g[1],_=x;process.env.NODE_ENV!=="production"&&x&&f&&(i?.(_,f),_=null);var E=_||t(),C=[b,E];return m?m(C):C})};I.useMemo(function(){l()},[c]);var u=a.opGet(c);process.env.NODE_ENV!=="production"&&!u&&(l(),u=a.opGet(c));var h=u[1];return l0(function(){n?.(h)},function(p){return l(function(m){var v=le(m,2),y=v[0],g=v[1];return p&&y===0&&n?.(h),[y+1,g]}),function(){a.opUpdate(c,function(m){var v=m||[],y=le(v,2),g=y[0],w=g===void 0?0:g,b=y[1],x=w-1;return x===0?(d(function(){(p||!a.opGet(c))&&i?.(b,!1)}),null):[w-1,b]})}},[c]),h}var y0={},b0=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",Sr=new Map;function x0(e){Sr.set(e,(Sr.get(e)||0)+1)}function w0(e,r){if(typeof document<"u"){var t=document.querySelectorAll("style[".concat(Xr,'="').concat(e,'"]'));t.forEach(function(i){if(i[hr]===r){var n;(n=i.parentNode)===null||n===void 0||n.removeChild(i)}})}}var E0=0;function _0(e,r){Sr.set(e,(Sr.get(e)||0)-1);var t=new Set;Sr.forEach(function(i,n){i<=0&&t.add(n)}),Sr.size-t.size>E0&&t.forEach(function(i){w0(i,r),Sr.delete(i)})}var S0=function(r,t,i,n){var o=i.getDerivativeToken(r),a=J(J({},o),t);return n&&(a=n(a)),a},Vh="token";function C0(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=U.useContext(Yn),n=i.cache.instanceId,o=i.container,a=t.salt,s=a===void 0?"":a,c=t.override,d=c===void 0?y0:c,f=t.formatToken,l=t.getComputedToken,u=t.cssVar,h=i0(function(){return Object.assign.apply(Object,[{}].concat(me(r)))},r),p=Nn(h),m=Nn(d),v=u?Nn(u):"",y=Zl(Vh,[s,e.id,p,m,v],function(){var g,w=l?l(h,d,e):S0(h,d,e,f),b=J({},w),x="";if(u){var _=Bh(w,u.key,{prefix:u.prefix,ignore:u.ignore,unitless:u.unitless,preserve:u.preserve}),E=le(_,2);w=E[0],x=E[1]}var C=Df(w,s);w._tokenKey=C,b._tokenKey=Df(b,s);var k=(g=u?.key)!==null&&g!==void 0?g:C;w._themeKey=k,x0(k);var O="".concat(b0,"-").concat(Vn(C));return w._hashId=O,[w,O,b,x,u?.key||""]},function(g){_0(g[0]._themeKey,n)},function(g){var w=le(g,4),b=w[0],x=w[3];if(u&&x){var _=rr(x,Vn("css-variables-".concat(b._themeKey)),{mark:Ft,prepend:"queue",attachTo:o,priority:-999});_[hr]=n,_.setAttribute(Xr,b._themeKey)}});return y}var O0=function(r,t,i){var n=le(r,5),o=n[2],a=n[3],s=n[4],c=i||{},d=c.plain;if(!a)return null;var f=o._tokenKey,l=-999,u={"data-rc-order":"prependQueue","data-rc-priority":"".concat(l)},h=Vi(a,s,f,u,d);return[l,f,h]},R0={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},Hh="comm",zh="rule",Uh="decl",A0="@import",T0="@namespace",k0="@keyframes",P0="@layer",Wh=Math.abs,Ql=String.fromCharCode;function Kh(e){return e.trim()}function ji(e,r,t){return e.replace(r,t)}function j0(e,r,t){return e.indexOf(r,t)}function zr(e,r){return e.charCodeAt(r)|0}function Zr(e,r,t){return e.slice(r,t)}function zt(e){return e.length}function N0(e){return e.length}function yi(e,r){return r.push(e),e}var oo=1,Qr=1,Gh=0,At=0,Qe=0,sn="";function Jl(e,r,t,i,n,o,a,s){return{value:e,root:r,parent:t,type:i,props:n,children:o,line:oo,column:Qr,length:a,return:"",siblings:s}}function M0(){return Qe}function I0(){return Qe=At>0?zr(sn,--At):0,Qr--,Qe===10&&(Qr=1,oo--),Qe}function Dt(){return Qe=At<Gh?zr(sn,At++):0,Qr++,Qe===10&&(Qr=1,oo++),Qe}function vr(){return zr(sn,At)}function Ni(){return At}function ao(e,r){return Zr(sn,e,r)}function Hn(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 L0(e){return oo=Qr=1,Gh=zt(sn=e),At=0,[]}function $0(e){return sn="",e}function xs(e){return Kh(ao(At-1,ul(e===91?e+2:e===40?e+1:e)))}function F0(e){for(;(Qe=vr())&&Qe<33;)Dt();return Hn(e)>2||Hn(Qe)>3?"":" "}function D0(e,r){for(;--r&&Dt()&&!(Qe<48||Qe>102||Qe>57&&Qe<65||Qe>70&&Qe<97););return ao(e,Ni()+(r<6&&vr()==32&&Dt()==32))}function ul(e){for(;Dt();)switch(Qe){case e:return At;case 34:case 39:e!==34&&e!==39&&ul(Qe);break;case 40:e===41&&ul(e);break;case 92:Dt();break}return At}function q0(e,r){for(;Dt()&&e+Qe!==57;)if(e+Qe===84&&vr()===47)break;return"/*"+ao(r,At-1)+"*"+Ql(e===47?e:Dt())}function B0(e){for(;!Hn(vr());)Dt();return ao(e,At)}function V0(e){return $0(Mi("",null,null,null,[""],e=L0(e),0,[0],e))}function Mi(e,r,t,i,n,o,a,s,c){for(var d=0,f=0,l=a,u=0,h=0,p=0,m=1,v=1,y=1,g=0,w="",b=n,x=o,_=i,E=w;v;)switch(p=g,g=Dt()){case 40:if(p!=108&&zr(E,l-1)==58){j0(E+=ji(xs(g),"&","&\f"),"&\f",Wh(d?s[d-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:E+=xs(g);break;case 9:case 10:case 13:case 32:E+=F0(p);break;case 92:E+=D0(Ni()-1,7);continue;case 47:switch(vr()){case 42:case 47:yi(H0(q0(Dt(),Ni()),r,t,c),c),(Hn(p||1)==5||Hn(vr()||1)==5)&&zt(E)&&Zr(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*m:s[d++]=zt(E)*y;case 125*m:case 59:case 0:switch(g){case 0:case 125:v=0;case 59+f:y==-1&&(E=ji(E,/\f/g,"")),h>0&&(zt(E)-l||m===0&&p===47)&&yi(h>32?Vf(E+";",i,t,l-1,c):Vf(ji(E," ","")+";",i,t,l-2,c),c);break;case 59:E+=";";default:if(yi(_=Bf(E,r,t,d,f,n,s,w,b=[],x=[],l,o),o),g===123)if(f===0)Mi(E,r,_,_,b,o,l,s,x);else{switch(u){case 99:if(zr(E,3)===110)break;case 108:if(zr(E,2)===97)break;default:f=0;case 100:case 109:case 115:}f?Mi(e,_,_,i&&yi(Bf(e,_,_,0,0,n,s,w,n,b=[],l,x),x),n,x,l,s,i?b:x):Mi(E,_,_,_,[""],x,0,s,x)}}d=f=h=0,m=y=1,w=E="",l=a;break;case 58:l=1+zt(E),h=p;default:if(m<1){if(g==123)--m;else if(g==125&&m++==0&&I0()==125)continue}switch(E+=Ql(g),g*m){case 38:y=f>0?1:(E+="\f",-1);break;case 44:s[d++]=(zt(E)-1)*y,y=1;break;case 64:vr()===45&&(E+=xs(Dt())),u=vr(),f=l=zt(w=E+=B0(Ni())),g++;break;case 45:p===45&&zt(E)==2&&(m=0)}}return o}function Bf(e,r,t,i,n,o,a,s,c,d,f,l){for(var u=n-1,h=n===0?o:[""],p=N0(h),m=0,v=0,y=0;m<i;++m)for(var g=0,w=Zr(e,u+1,u=Wh(v=a[m])),b=e;g<p;++g)(b=Kh(v>0?h[g]+" "+w:ji(w,/&\f/g,h[g])))&&(c[y++]=b);return Jl(e,r,t,n===0?zh:s,c,d,f,l)}function H0(e,r,t,i){return Jl(e,r,t,Hh,Ql(M0()),Zr(e,2,-2),0,i)}function Vf(e,r,t,i,n){return Jl(e,r,t,Uh,Zr(e,0,i),Zr(e,i+1,-1),i,n)}function cl(e,r){for(var t="",i=0;i<e.length;i++)t+=r(e[i],i,e,r)||"";return t}function z0(e,r,t,i){switch(e.type){case P0:if(e.children.length)break;case A0:case T0:case Uh:return e.return=e.return||e.value;case Hh:return"";case k0:return e.return=e.value+"{"+cl(e.children,i)+"}";case zh:if(!zt(e.value=e.props.join(",")))return""}return zt(t=cl(e.children,i))?e.return=e.value+"{"+t+"}":""}function Yh(e,r){var t=r.path,i=r.parentSelectors;ze(!1,"[Ant Design CSS-in-JS] ".concat(t?"Error in ".concat(t,": "):"").concat(e).concat(i.length?" Selector: ".concat(i.join(" | ")):""))}var U0=function(r,t,i){if(r==="content"){var n=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,o=["normal","none","initial","inherit","unset"];(typeof t!="string"||o.indexOf(t)===-1&&!n.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||t.charAt(0)!=='"'&&t.charAt(0)!=="'"))&&Yh("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`."),i)}},W0=function(r,t,i){r==="animation"&&i.hashId&&t!=="none"&&Yh("You seem to be using hashed animation '".concat(t,"', in which case 'animationName' with Keyframe as value is recommended."),i)},Hf="data-ant-cssinjs-cache-path",Xh="_FILE_STYLE__",Or,Zh=!0;function K0(){if(!Or&&(Or={},pt())){var e=document.createElement("div");e.className=Hf,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var r=getComputedStyle(e).content||"";r=r.replace(/^"/,"").replace(/"$/,""),r.split(";").forEach(function(n){var o=n.split(":"),a=le(o,2),s=a[0],c=a[1];Or[s]=c});var t=document.querySelector("style[".concat(Hf,"]"));if(t){var i;Zh=!1,(i=t.parentNode)===null||i===void 0||i.removeChild(t)}document.body.removeChild(e)}}function G0(e){return K0(),!!Or[e]}function Y0(e){var r=Or[e],t=null;if(r&&pt())if(Zh)t=Xh;else{var i=document.querySelector("style[".concat(Ft,'="').concat(Or[e],'"]'));i?t=i.innerHTML:delete Or[e]}return[t,r]}var Qh="_skip_check_",Jh="_multi_value_";function Ii(e){var r=cl(V0(e),z0);return r.replace(/\{%%%\:[^;];}/g,";")}function X0(e){return Ee(e)==="object"&&e&&(Qh in e||Jh in e)}function zf(e,r,t){if(!r)return e;var i=".".concat(r),n=t==="low"?":where(".concat(i,")"):i,o=e.split(",").map(function(a){var s,c=a.trim().split(/\s+/),d=c[0]||"",f=((s=d.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return d="".concat(f).concat(n).concat(d.slice(f.length)),[d].concat(me(c.slice(1))).join(" ")});return o.join(",")}var Z0=function e(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},n=i.root,o=i.injectHash,a=i.parentSelectors,s=t.hashId,c=t.layer,d=t.path,f=t.hashPriority,l=t.transformers,u=l===void 0?[]:l,h=t.linters,p=h===void 0?[]:h,m="",v={};function y(b){var x=b.getName(s);if(!v[x]){var _=e(b.style,t,{root:!1,parentSelectors:a}),E=le(_,1),C=E[0];v[x]="@keyframes ".concat(b.getName(s)).concat(C)}}function g(b){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(_){Array.isArray(_)?g(_,x):_&&x.push(_)}),x}var w=g(Array.isArray(r)?r:[r]);return w.forEach(function(b){var x=typeof b=="string"&&!n?{}:b;if(typeof x=="string")m+="".concat(x,`
|
|
133
|
+
`);else if(x._keyframe)y(x);else{var _=u.reduce(function(E,C){var k;return(C==null||(k=C.visit)===null||k===void 0?void 0:k.call(C,E))||E},x);Object.keys(_).forEach(function(E){var C=_[E];if(Ee(C)==="object"&&C&&(E!=="animationName"||!C._keyframe)&&!X0(C)){var k=!1,O=E.trim(),S=!1;(n||o)&&s?O.startsWith("@")?k=!0:O==="&"?O=zf("",s,f):O=zf(E,s,f):n&&!s&&(O==="&"||O==="")&&(O="",S=!0);var R=e(C,t,{root:S,injectHash:k,parentSelectors:[].concat(me(a),[O])}),T=le(R,2),P=T[0],L=T[1];v=J(J({},v),L),m+="".concat(O).concat(P)}else{let z=function(H,D){process.env.NODE_ENV!=="production"&&(Ee(C)!=="object"||!(C!=null&&C[Qh]))&&[U0,W0].concat(me(p)).forEach(function(M){return M(H,D,{path:d,hashId:s,parentSelectors:a})});var j=H.replace(/[A-Z]/g,function(M){return"-".concat(M.toLowerCase())}),A=D;!R0[H]&&typeof A=="number"&&A!==0&&(A="".concat(A,"px")),H==="animationName"&&D!==null&&D!==void 0&&D._keyframe&&(y(D),A=D.getName(s)),m+="".concat(j,":").concat(A,";")};var F,$=(F=C?.value)!==null&&F!==void 0?F:C;Ee(C)==="object"&&C!==null&&C!==void 0&&C[Jh]&&Array.isArray($)?$.forEach(function(H){z(E,H)}):z(E,$)}})}}),n?c&&(m&&(m="@layer ".concat(c.name," {").concat(m,"}")),c.dependencies&&(v["@layer ".concat(c.name)]=c.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(c.name,";")}).join(`
|
|
134
|
+
`))):m="{".concat(m,"}"),[m,v]};function ev(e,r){return Vn("".concat(e.join("%")).concat(r))}function Q0(){return null}var tv="style";function fl(e,r){var t=e.token,i=e.path,n=e.hashId,o=e.layer,a=e.nonce,s=e.clientOnly,c=e.order,d=c===void 0?0:c,f=I.useContext(Yn),l=f.autoClear,u=f.mock,h=f.defaultCache,p=f.hashPriority,m=f.container,v=f.ssrInline,y=f.transformers,g=f.linters,w=f.cache,b=f.layer,x=t._tokenKey,_=[x];b&&_.push("layer"),_.push.apply(_,me(i));var E=sl;process.env.NODE_ENV!=="production"&&u!==void 0&&(E=u==="client");var C=Zl(tv,_,function(){var T=_.join("|");if(G0(T)){var P=Y0(T),L=le(P,2),F=L[0],$=L[1];if(F)return[F,x,$,{},s,d]}var z=r(),H=Z0(z,{hashId:n,hashPriority:p,layer:b?o:void 0,path:i.join("-"),transformers:y,linters:g}),D=le(H,2),j=D[0],A=D[1],M=Ii(j),q=ev(_,M);return[M,x,q,A,s,d]},function(T,P){var L=le(T,3),F=L[2];(P||l)&&sl&&$n(F,{mark:Ft,attachTo:m})},function(T){var P=le(T,4),L=P[0];P[1];var F=P[2],$=P[3];if(E&&L!==Xh){var z={mark:Ft,prepend:b?!1:"queue",attachTo:m,priority:d},H=typeof a=="function"?a():a;H&&(z.csp={nonce:H});var D=[],j=[];Object.keys($).forEach(function(M){M.startsWith("@layer")?D.push(M):j.push(M)}),D.forEach(function(M){rr(Ii($[M]),"_layer-".concat(M),J(J({},z),{},{prepend:!0}))});var A=rr(L,F,z);A[hr]=w.instanceId,A.setAttribute(Xr,x),process.env.NODE_ENV!=="production"&&A.setAttribute(e0,_.join("|")),j.forEach(function(M){rr(Ii($[M]),"_effect-".concat(M),z)})}}),k=le(C,3),O=k[0],S=k[1],R=k[2];return function(T){var P;return!v||E||!h?P=I.createElement(Q0,null):P=I.createElement("style",qe({},G(G({},Xr,S),Ft,R),{dangerouslySetInnerHTML:{__html:O}})),I.createElement(I.Fragment,null,P,T)}}var J0=function(r,t,i){var n=le(r,6),o=n[0],a=n[1],s=n[2],c=n[3],d=n[4],f=n[5],l=i||{},u=l.plain;if(d)return null;var h=o,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)};return h=Vi(o,a,s,p,u),c&&Object.keys(c).forEach(function(m){if(!t[m]){t[m]=!0;var v=Ii(c[m]),y=Vi(v,a,"_effect-".concat(m),p,u);m.startsWith("@layer")?h=y+h:h+=y}}),[f,s,h]},rv="cssVar",eb=function(r,t){var i=r.key,n=r.prefix,o=r.unitless,a=r.ignore,s=r.token,c=r.scope,d=c===void 0?"":c,f=U.useContext(Yn),l=f.cache.instanceId,u=f.container,h=s._tokenKey,p=[].concat(me(r.path),[i,d,h]),m=Zl(rv,p,function(){var v=t(),y=Bh(v,i,{prefix:n,unitless:o,ignore:a,scope:d}),g=le(y,2),w=g[0],b=g[1],x=ev(p,b);return[w,b,x,i]},function(v){var y=le(v,3),g=y[2];sl&&$n(g,{mark:Ft,attachTo:u})},function(v){var y=le(v,3),g=y[1],w=y[2];if(g){var b=rr(g,w,{mark:Ft,prepend:"queue",attachTo:u,priority:-999});b[hr]=l,b.setAttribute(Xr,i)}});return m},tb=function(r,t,i){var n=le(r,4),o=n[1],a=n[2],s=n[3],c=i||{},d=c.plain;if(!o)return null;var f=-999,l={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},u=Vi(o,s,a,l,d);return[f,a,u]};G(G(G({},tv,J0),Vh,O0),rv,tb);var kt=(function(){function e(r,t){ot(this,e),G(this,"name",void 0),G(this,"style",void 0),G(this,"_keyframe",!0),this.name=r,this.style=t}return at(e,[{key:"getName",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),e})();function Ir(e){return e.notSplit=!0,e}Ir(["borderTop","borderBottom"]),Ir(["borderTop"]),Ir(["borderBottom"]),Ir(["borderLeft","borderRight"]),Ir(["borderLeft"]),Ir(["borderRight"]);function rb(e){return hh(e)||dh(e)||Bl(e)||vh()}function Ut(e,r){for(var t=e,i=0;i<r.length;i+=1){if(t==null)return;t=t[r[i]]}return t}function nv(e,r,t,i){if(!r.length)return t;var n=rb(r),o=n[0],a=n.slice(1),s;return!e&&typeof o=="number"?s=[]:Array.isArray(e)?s=me(e):s=J({},e),i&&t===void 0&&a.length===1?delete s[o][a[0]]:s[o]=nv(s[o],a,t,i),s}function Lt(e,r,t){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return r.length&&i&&t===void 0&&!Ut(e,r.slice(0,-1))?e:nv(e,r,t,i)}function nb(e){return Ee(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Uf(e){return Array.isArray(e)?[]:{}}var ib=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Br(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var i=Uf(r[0]);return r.forEach(function(n){function o(a,s){var c=new Set(s),d=Ut(n,a),f=Array.isArray(d);if(f||nb(d)){if(!c.has(d)){c.add(d);var l=Ut(i,a);f?i=Lt(i,a,[]):(!l||Ee(l)!=="object")&&(i=Lt(i,a,Uf(d))),ib(d).forEach(function(u){o([].concat(me(a),[u]),c)})}}else i=Lt(i,a,d)}o([])}),i}function iv(){}let Qt=null;function ob(){Qt=null,_h()}let ov=iv;process.env.NODE_ENV!=="production"&&(ov=(e,r,t)=>{ze(e,`[antd: ${r}] ${t}`),process.env.NODE_ENV==="test"&&ob()});const Xn=ov,av=I.createContext({}),Wt=process.env.NODE_ENV!=="production"?e=>{const{strict:r}=I.useContext(av),t=(i,n,o)=>{if(!i)if(r===!1&&n==="deprecated"){const a=Qt;Qt||(Qt={}),Qt[e]=Qt[e]||[],Qt[e].includes(o||"")||Qt[e].push(o||""),a||console.warn("[antd] There exists deprecated usage in your code:",Qt)}else process.env.NODE_ENV!=="production"&&Xn(i,e,o)};return t.deprecated=(i,n,o,a)=>{t(i,"deprecated",`\`${n}\` is deprecated. Please use \`${o}\` instead.${a?` ${a}`:""}`)},t}:()=>{const e=()=>{};return e.deprecated=iv,e},ab=U.createContext(void 0);var sb={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"},lb={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},ub=J(J({},lb),{},{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 sv={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Wf={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"]},ub),timePickerLocale:Object.assign({},sv)},yt="${label} is not a valid ${type}",Jr={locale:"en",Pagination:sb,DatePicker:Wf,TimePicker:sv,Calendar:Wf,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:yt,method:yt,array:yt,object:yt,number:yt,date:yt,boolean:yt,integer:yt,float:yt,regexp:yt,email:yt,url:yt,hex:yt},string:{len:"${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({},Jr.Modal);let Li=[];const Kf=()=>Li.reduce((e,r)=>Object.assign(Object.assign({},e),r),Jr.Modal);function cb(e){if(e){const r=Object.assign({},e);return Li.push(r),Kf(),()=>{Li=Li.filter(t=>t!==r),Kf()}}Object.assign({},Jr.Modal)}const eu=U.createContext(void 0),fb=(e,r)=>{const t=I.useContext(eu),i=I.useMemo(()=>{var o;const a=Jr[e],s=(o=t?.[e])!==null&&o!==void 0?o:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,r,t]),n=I.useMemo(()=>{const o=t?.locale;return t?.exist&&!o?Jr.locale:o},[t]);return[i,n]},lv="internalMark",uv=e=>{const{locale:r={},children:t,_ANT_MARK__:i}=e;if(process.env.NODE_ENV!=="production"){const o=Wt("LocaleProvider");process.env.NODE_ENV!=="production"&&o(i===lv,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}I.useEffect(()=>cb(r?.Modal),[r]);const n=I.useMemo(()=>Object.assign(Object.assign({},r),{exist:!0}),[r]);return I.createElement(eu.Provider,{value:n},t)};process.env.NODE_ENV!=="production"&&(uv.displayName="LocaleProvider");const cv={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"},zn=Object.assign(Object.assign({},cv),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
135
135
|
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
136
|
-
'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
|
|
136
|
+
'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 db(e,{generateColorPalettes:r,generateNeutralColorPalettes:t}){const{colorSuccess:i,colorWarning:n,colorError:o,colorInfo:a,colorPrimary:s,colorBgBase:c,colorTextBase:d}=e,f=r(s),l=r(i),u=r(n),h=r(o),p=r(a),m=t(c,d),v=e.colorLink||e.colorInfo,y=r(v),g=new et(h[1]).mix(new et(h[3]),50).toHexString();return Object.assign(Object.assign({},m),{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:l[1],colorSuccessBgHover:l[2],colorSuccessBorder:l[3],colorSuccessBorderHover:l[4],colorSuccessHover:l[4],colorSuccess:l[6],colorSuccessActive:l[7],colorSuccessTextHover:l[8],colorSuccessText:l[9],colorSuccessTextActive:l[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:g,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:u[1],colorWarningBgHover:u[2],colorWarningBorder:u[3],colorWarningBorderHover:u[4],colorWarningHover:u[4],colorWarning:u[6],colorWarningActive:u[7],colorWarningTextHover:u[8],colorWarningText:u[9],colorWarningTextActive:u[10],colorInfoBg:p[1],colorInfoBgHover:p[2],colorInfoBorder:p[3],colorInfoBorderHover:p[4],colorInfoHover:p[4],colorInfo:p[6],colorInfoActive:p[7],colorInfoTextHover:p[8],colorInfoText:p[9],colorInfoTextActive:p[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new et("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const hb=e=>{let r=e,t=e,i=e,n=e;return e<6&&e>=5?r=e+1:e<16&&e>=6?r=e+2:e>=16&&(r=16),e<7&&e>=5?t=4:e<8&&e>=7?t=5:e<14&&e>=8?t=6:e<16&&e>=14?t=7:e>=16&&(t=8),e<6&&e>=2?i=1:e>=6&&(i=2),e>4&&e<8?n=4:e>=8&&(n=6),{borderRadius:e,borderRadiusXS:i,borderRadiusSM:t,borderRadiusLG:r,borderRadiusOuter:n}};function vb(e){const{motionUnit:r,motionBase:t,borderRadius:i,lineWidth:n}=e;return Object.assign({motionDurationFast:`${(t+r).toFixed(1)}s`,motionDurationMid:`${(t+r*2).toFixed(1)}s`,motionDurationSlow:`${(t+r*3).toFixed(1)}s`,lineWidthBold:n+1},hb(i))}const pb=e=>{const{controlHeight:r}=e;return{controlHeightSM:r*.75,controlHeightXS:r*.5,controlHeightLG:r*1.25}};function gb(e){return(e+8)/e}function mb(e){const r=Array.from({length:10}).map((t,i)=>{const n=i-1,o=e*Math.pow(Math.E,n/5),a=i>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return r[1]=e,r.map(t=>({size:t,lineHeight:gb(t)}))}const yb=e=>{const r=mb(e),t=r.map(f=>f.size),i=r.map(f=>f.lineHeight),n=t[1],o=t[0],a=t[2],s=i[1],c=i[0],d=i[2];return{fontSizeSM:o,fontSize:n,fontSizeLG:a,fontSizeXL:t[3],fontSizeHeading1:t[6],fontSizeHeading2:t[5],fontSizeHeading3:t[4],fontSizeHeading4:t[3],fontSizeHeading5:t[2],lineHeight:s,lineHeightLG:d,lineHeightSM:c,fontHeight:Math.round(s*n),fontHeightLG:Math.round(d*a),fontHeightSM:Math.round(c*o),lineHeightHeading1:i[6],lineHeightHeading2:i[5],lineHeightHeading3:i[4],lineHeightHeading4:i[3],lineHeightHeading5:i[2]}};function bb(e){const{sizeUnit:r,sizeStep:t}=e;return{sizeXXL:r*(t+8),sizeXL:r*(t+4),sizeLG:r*(t+2),sizeMD:r*(t+1),sizeMS:r*t,size:r*t,sizeSM:r*(t-1),sizeXS:r*(t-2),sizeXXS:r*(t-3)}}const Ct=(e,r)=>new et(e).setA(r).toRgbString(),Cn=(e,r)=>new et(e).darken(r).toHexString(),xb=e=>{const r=Ln(e);return{1:r[0],2:r[1],3:r[2],4:r[3],5:r[4],6:r[5],7:r[6],8:r[4],9:r[5],10:r[6]}},wb=(e,r)=>{const t=e||"#fff",i=r||"#000";return{colorBgBase:t,colorTextBase:i,colorText:Ct(i,.88),colorTextSecondary:Ct(i,.65),colorTextTertiary:Ct(i,.45),colorTextQuaternary:Ct(i,.25),colorFill:Ct(i,.15),colorFillSecondary:Ct(i,.06),colorFillTertiary:Ct(i,.04),colorFillQuaternary:Ct(i,.02),colorBgSolid:Ct(i,1),colorBgSolidHover:Ct(i,.75),colorBgSolidActive:Ct(i,.95),colorBgLayout:Cn(t,4),colorBgContainer:Cn(t,0),colorBgElevated:Cn(t,0),colorBgSpotlight:Ct(i,.85),colorBgBlur:"transparent",colorBorder:Cn(t,15),colorBorderSecondary:Cn(t,6)}};function Eb(e){vs.pink=vs.magenta,ps.pink=ps.magenta;const r=Object.keys(cv).map(t=>{const i=e[t]===vs[t]?ps[t]:Ln(e[t]);return Array.from({length:10},()=>1).reduce((n,o,a)=>(n[`${t}-${a+1}`]=i[a],n[`${t}${a+1}`]=i[a],n),{})}).reduce((t,i)=>(t=Object.assign(Object.assign({},t),i),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),r),db(e,{generateColorPalettes:xb,generateNeutralColorPalettes:wb})),yb(e.fontSize)),bb(e)),pb(e)),vb(e))}const fv=al(Eb),dl={token:zn,override:{override:zn},hashed:!0},dv=U.createContext(dl),hl="ant",tu="anticon",_b=["outlined","borderless","filled","underlined"],Sb=(e,r)=>r||(e?`${hl}-${e}`:hl),Kt=I.createContext({getPrefixCls:Sb,iconPrefixCls:tu}),{Consumer:DE}=Kt,Gf={};function so(e){const r=I.useContext(Kt),{getPrefixCls:t,direction:i,getPopupContainer:n}=r,o=r[e];return Object.assign(Object.assign({classNames:Gf,styles:Gf},o),{getPrefixCls:t,direction:i,getPopupContainer:n})}const Cb=`-ant-${Date.now()}-${Math.random()}`;function Ob(e,r){const t={},i=(a,s)=>{let c=a.clone();return c=s?.(c)||c,c.toRgbString()},n=(a,s)=>{const c=new et(a),d=Ln(c.toRgbString());t[`${s}-color`]=i(c),t[`${s}-color-disabled`]=d[1],t[`${s}-color-hover`]=d[4],t[`${s}-color-active`]=d[6],t[`${s}-color-outline`]=c.clone().setA(.2).toRgbString(),t[`${s}-color-deprecated-bg`]=d[0],t[`${s}-color-deprecated-border`]=d[2]};if(r.primaryColor){n(r.primaryColor,"primary");const a=new et(r.primaryColor),s=Ln(a.toRgbString());s.forEach((d,f)=>{t[`primary-${f+1}`]=d}),t["primary-color-deprecated-l-35"]=i(a,d=>d.lighten(35)),t["primary-color-deprecated-l-20"]=i(a,d=>d.lighten(20)),t["primary-color-deprecated-t-20"]=i(a,d=>d.tint(20)),t["primary-color-deprecated-t-50"]=i(a,d=>d.tint(50)),t["primary-color-deprecated-f-12"]=i(a,d=>d.setA(d.a*.12));const c=new et(s[0]);t["primary-color-active-deprecated-f-30"]=i(c,d=>d.setA(d.a*.3)),t["primary-color-active-deprecated-d-02"]=i(c,d=>d.darken(2))}return r.successColor&&n(r.successColor,"success"),r.warningColor&&n(r.warningColor,"warning"),r.errorColor&&n(r.errorColor,"error"),r.infoColor&&n(r.infoColor,"info"),`
|
|
137
137
|
:root {
|
|
138
138
|
${Object.keys(t).map(a=>`--${e}-${a}: ${t[a]};`).join(`
|
|
139
139
|
`)}
|
|
140
140
|
}
|
|
141
|
-
`.trim()}function Ob(e,r){const t=Cb(e,r);pt()?rr(t,`${Sb}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Xn(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Un=I.createContext(!1),Rb=({children:e,disabled:r})=>{const t=I.useContext(Un);return I.createElement(Un.Provider,{value:r??t},e)},en=I.createContext(void 0),Ab=({children:e,size:r})=>{const t=I.useContext(en);return I.createElement(en.Provider,{value:r||t},e)};function Tb(){const e=U.useContext(Un),r=U.useContext(en);return{componentDisabled:e,componentSize:r}}var dv=at(function e(){ot(this,e)}),hv="CALC_UNIT",Pb=new RegExp(hv,"g");function xs(e){return typeof e=="number"?"".concat(e).concat(hv):e}var kb=(function(e){gr(t,e);var r=mr(t);function t(i,n){var o;ot(this,t),o=r.call(this),G(Oe(o),"result",""),G(Oe(o),"unitlessCssVar",void 0),G(Oe(o),"lowPriority",void 0);var a=Ee(i);return o.unitlessCssVar=n,i instanceof t?o.result="(".concat(i.result,")"):a==="number"?o.result=xs(i):a==="string"&&(o.result=i),o}return at(t,[{key:"add",value:function(n){return n instanceof t?this.result="".concat(this.result," + ").concat(n.getResult()):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," + ").concat(xs(n))),this.lowPriority=!0,this}},{key:"sub",value:function(n){return n instanceof t?this.result="".concat(this.result," - ").concat(n.getResult()):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," - ").concat(xs(n))),this.lowPriority=!0,this}},{key:"mul",value:function(n){return this.lowPriority&&(this.result="(".concat(this.result,")")),n instanceof t?this.result="".concat(this.result," * ").concat(n.getResult(!0)):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," * ").concat(n)),this.lowPriority=!1,this}},{key:"div",value:function(n){return this.lowPriority&&(this.result="(".concat(this.result,")")),n instanceof t?this.result="".concat(this.result," / ").concat(n.getResult(!0)):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," / ").concat(n)),this.lowPriority=!1,this}},{key:"getResult",value:function(n){return this.lowPriority||n?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(n){var o=this,a=n||{},s=a.unit,c=!0;return typeof s=="boolean"?c=s:Array.from(this.unitlessCssVar).some(function(d){return o.result.includes(d)})&&(c=!1),this.result=this.result.replace(Pb,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),t})(dv),jb=(function(e){gr(t,e);var r=mr(t);function t(i){var n;return ot(this,t),n=r.call(this),G(Oe(n),"result",0),i instanceof t?n.result=i.result:typeof i=="number"&&(n.result=i),n}return at(t,[{key:"add",value:function(n){return n instanceof t?this.result+=n.result:typeof n=="number"&&(this.result+=n),this}},{key:"sub",value:function(n){return n instanceof t?this.result-=n.result:typeof n=="number"&&(this.result-=n),this}},{key:"mul",value:function(n){return n instanceof t?this.result*=n.result:typeof n=="number"&&(this.result*=n),this}},{key:"div",value:function(n){return n instanceof t?this.result/=n.result:typeof n=="number"&&(this.result/=n),this}},{key:"equal",value:function(){return this.result}}]),t})(dv),Nb=function(r,t){var i=r==="css"?kb:jb;return function(n){return new i(n,t)}},Kf=function(r,t){return"".concat([t,r.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Gf(e,r,t,i){var n=J({},r[e]);if(i!=null&&i.deprecatedTokens){var o=i.deprecatedTokens;o.forEach(function(s){var c=le(s,2),d=c[0],f=c[1];if(process.env.NODE_ENV!=="production"&&ze(!(n!=null&&n[d]),"Component Token `".concat(String(d),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(f),"` instead.")),n!=null&&n[d]||n!=null&&n[f]){var l;(l=n[f])!==null&&l!==void 0||(n[f]=n?.[d])}})}var a=J(J({},t),n);return Object.keys(a).forEach(function(s){a[s]===r[s]&&delete a[s]}),a}var vv=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",hl=!0;function or(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(!vv)return Object.assign.apply(Object,[{}].concat(r));hl=!1;var i={};return r.forEach(function(n){if(Ee(n)==="object"){var o=Object.keys(n);o.forEach(function(a){Object.defineProperty(i,a,{configurable:!0,enumerable:!0,get:function(){return n[a]}})})}}),hl=!0,i}var Yf={};function Mb(){}var Ib=function(r){var t,i=r,n=Mb;return vv&&typeof Proxy<"u"&&(t=new Set,i=new Proxy(r,{get:function(a,s){if(hl){var c;(c=t)===null||c===void 0||c.add(s)}return a[s]}}),n=function(a,s){var c;Yf[a]={global:Array.from(t),component:J(J({},(c=Yf[a])===null||c===void 0?void 0:c.component),s)}}),{token:i,keys:t,flush:n}};function Xf(e,r,t){if(typeof t=="function"){var i;return t(or(r,(i=r[e])!==null&&i!==void 0?i:{}))}return t??{}}function Lb(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return"max(".concat(i.map(function(o){return Le(o)}).join(","),")")},min:function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return"min(".concat(i.map(function(o){return Le(o)}).join(","),")")}}}var $b=1e3*60*10,Fb=(function(){function e(){ot(this,e),G(this,"map",new Map),G(this,"objectIDMap",new WeakMap),G(this,"nextID",0),G(this,"lastAccessBeat",new Map),G(this,"accessBeat",0)}return at(e,[{key:"set",value:function(t,i){this.clear();var n=this.getCompositeKey(t);this.map.set(n,i),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(t){var i=this.getCompositeKey(t),n=this.map.get(i);return this.lastAccessBeat.set(i,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(t){var i=this,n=t.map(function(o){return o&&Ee(o)==="object"?"obj_".concat(i.getObjectID(o)):"".concat(Ee(o),"_").concat(o)});return n.join("|")}},{key:"getObjectID",value:function(t){if(this.objectIDMap.has(t))return this.objectIDMap.get(t);var i=this.nextID;return this.objectIDMap.set(t,i),this.nextID+=1,i}},{key:"clear",value:function(){var t=this;if(this.accessBeat>1e4){var i=Date.now();this.lastAccessBeat.forEach(function(n,o){i-n>$b&&(t.map.delete(o),t.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),Zf=new Fb;function Db(e,r){return U.useMemo(function(){var t=Zf.get(r);if(t)return t;var i=e();return Zf.set(r,i),i},r)}var qb=function(){return{}};function Bb(e){var r=e.useCSP,t=r===void 0?qb:r,i=e.useToken,n=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function c(u,h,p,m){var v=Array.isArray(u)?u[0]:u;function y(C){return"".concat(String(v)).concat(C.slice(0,1).toUpperCase()).concat(C.slice(1))}var g=m?.unitless||{},w=typeof s=="function"?s(u):{},b=J(J({},w),{},G({},y("zIndexPopup"),!0));Object.keys(g).forEach(function(C){b[y(C)]=g[C]});var x=J(J({},m),{},{unitless:b,prefixToken:y}),_=f(u,h,p,x),E=d(v,p,x);return function(C){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,O=_(C,P),S=le(O,2),R=S[1],T=E(P),k=le(T,2),L=k[0],F=k[1];return[L,R,F]}}function d(u,h,p){var m=p.unitless,v=p.injectStyle,y=v===void 0?!0:v,g=p.prefixToken,w=p.ignore,b=function(E){var C=E.rootCls,P=E.cssVar,O=P===void 0?{}:P,S=i(),R=S.realToken;return J0({path:[u],prefix:O.prefix,key:O.key,unitless:m,ignore:w,token:R,scope:C},function(){var T=Xf(u,R,h),k=Gf(u,R,T,{deprecatedTokens:p?.deprecatedTokens});return Object.keys(T).forEach(function(L){k[g(L)]=k[L],delete k[L]}),k}),null},x=function(E){var C=i(),P=C.cssVar;return[function(O){return y&&P?U.createElement(U.Fragment,null,U.createElement(b,{rootCls:E,cssVar:P,component:u}),O):O},P?.key]};return x}function f(u,h,p){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(u)?u:[u,u],y=le(v,1),g=y[0],w=v.join("-"),b=e.layer||{name:"antd"};return function(x){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x,E=i(),C=E.theme,P=E.realToken,O=E.hashId,S=E.token,R=E.cssVar,T=n(),k=T.rootPrefixCls,L=T.iconPrefixCls,F=t(),$=R?"css":"js",z=Db(function(){var q=new Set;return R&&Object.keys(m.unitless||{}).forEach(function(B){q.add(ki(B,R.prefix)),q.add(ki(B,Kf(g,R.prefix)))}),Nb($,q)},[$,g,R?.prefix]),H=Lb($),D=H.max,j=H.min,A={theme:C,token:S,hashId:O,nonce:function(){return F.nonce},clientOnly:m.clientOnly,layer:b,order:m.order||-999};typeof o=="function"&&cl(J(J({},A),{},{clientOnly:!1,path:["Shared",k]}),function(){return o(S,{prefix:{rootPrefixCls:k,iconPrefixCls:L},csp:F})});var M=cl(J(J({},A),{},{path:[w,x,L]}),function(){if(m.injectStyle===!1)return[];var q=Ib(S),B=q.token,N=q.flush,V=Xf(g,P,p),K=".".concat(x),W=Gf(g,P,V,{deprecatedTokens:m.deprecatedTokens});R&&V&&Ee(V)==="object"&&Object.keys(V).forEach(function(se){V[se]="var(".concat(ki(se,Kf(g,R.prefix)),")")});var X=or(B,{componentCls:K,prefixCls:x,iconCls:".".concat(L),antCls:".".concat(k),calc:z,max:D,min:j},R?V:W),re=h(X,{hashId:O,prefixCls:x,rootPrefixCls:k,iconPrefixCls:L});N(g,W);var oe=typeof a=="function"?a(X,x,_,m.resetFont):null;return[m.resetStyle===!1?null:oe,re]});return[M,O]}}function l(u,h,p){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=f(u,h,p,J({resetStyle:!1,order:-998},m)),y=function(w){var b=w.prefixCls,x=w.rootCls,_=x===void 0?b:x;return v(b,_),null};return process.env.NODE_ENV!=="production"&&(y.displayName="SubStyle_".concat(String(Array.isArray(u)?u.join("."):u))),y}return{genStyleHooks:c,genSubStyleComponent:l,genComponentStyleHook:f}}const Hi=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Vb="5.27.1";function ws(e){return e>=0&&e<=255}function bi(e,r){const{r:t,g:i,b:n,a:o}=new et(e).toRgb();if(o<1)return e;const{r:a,g:s,b:c}=new et(r).toRgb();for(let d=.01;d<=1;d+=.01){const f=Math.round((t-a*(1-d))/d),l=Math.round((i-s*(1-d))/d),u=Math.round((n-c*(1-d))/d);if(ws(f)&&ws(l)&&ws(u))return new et({r:f,g:l,b:u,a:Math.round(d*100)/100}).toRgbString()}return new et({r:t,g:i,b:n,a:1}).toRgbString()}var Hb=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};function pv(e){const{override:r}=e,t=Hb(e,["override"]),i=Object.assign({},r);Object.keys(zn).forEach(u=>{delete i[u]});const n=Object.assign(Object.assign({},t),i),o=480,a=576,s=768,c=992,d=1200,f=1600;return n.motion===!1&&(n.motionDurationFast="0s",n.motionDurationMid="0s",n.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},n),{colorFillContent:n.colorFillSecondary,colorFillContentHover:n.colorFill,colorFillAlter:n.colorFillQuaternary,colorBgContainerDisabled:n.colorFillTertiary,colorBorderBg:n.colorBgContainer,colorSplit:bi(n.colorBorderSecondary,n.colorBgContainer),colorTextPlaceholder:n.colorTextQuaternary,colorTextDisabled:n.colorTextQuaternary,colorTextHeading:n.colorText,colorTextLabel:n.colorTextSecondary,colorTextDescription:n.colorTextTertiary,colorTextLightSolid:n.colorWhite,colorHighlight:n.colorError,colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill,colorIcon:n.colorTextTertiary,colorIconHover:n.colorText,colorErrorOutline:bi(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:bi(n.colorWarningBg,n.colorBgContainer),fontSizeIcon:n.fontSizeSM,lineWidthFocus:n.lineWidth*3,lineWidth:n.lineWidth,controlOutlineWidth:n.lineWidth*2,controlInteractiveSize:n.controlHeight/2,controlItemBgHover:n.colorFillTertiary,controlItemBgActive:n.colorPrimaryBg,controlItemBgActiveHover:n.colorPrimaryBgHover,controlItemBgActiveDisabled:n.colorFill,controlTmpOutline:n.colorFillQuaternary,controlOutline:bi(n.colorPrimaryBg,n.colorBgContainer),lineType:n.lineType,borderRadius:n.borderRadius,borderRadiusXS:n.borderRadiusXS,borderRadiusSM:n.borderRadiusSM,borderRadiusLG:n.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:n.sizeXXS,paddingXS:n.sizeXS,paddingSM:n.sizeSM,padding:n.size,paddingMD:n.sizeMD,paddingLG:n.sizeLG,paddingXL:n.sizeXL,paddingContentHorizontalLG:n.sizeLG,paddingContentVerticalLG:n.sizeMS,paddingContentHorizontal:n.sizeMS,paddingContentVertical:n.sizeSM,paddingContentHorizontalSM:n.size,paddingContentVerticalSM:n.sizeXS,marginXXS:n.sizeXXS,marginXS:n.sizeXS,marginSM:n.sizeSM,margin:n.size,marginMD:n.sizeMD,marginLG:n.sizeLG,marginXL:n.sizeXL,marginXXL:n.sizeXXL,boxShadow:`
|
|
141
|
+
`.trim()}function Rb(e,r){const t=Ob(e,r);pt()?rr(t,`${Cb}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Xn(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Un=I.createContext(!1),Ab=({children:e,disabled:r})=>{const t=I.useContext(Un);return I.createElement(Un.Provider,{value:r??t},e)},en=I.createContext(void 0),Tb=({children:e,size:r})=>{const t=I.useContext(en);return I.createElement(en.Provider,{value:r||t},e)};function kb(){const e=U.useContext(Un),r=U.useContext(en);return{componentDisabled:e,componentSize:r}}var hv=at(function e(){ot(this,e)}),vv="CALC_UNIT",Pb=new RegExp(vv,"g");function ws(e){return typeof e=="number"?"".concat(e).concat(vv):e}var jb=(function(e){gr(t,e);var r=mr(t);function t(i,n){var o;ot(this,t),o=r.call(this),G(Oe(o),"result",""),G(Oe(o),"unitlessCssVar",void 0),G(Oe(o),"lowPriority",void 0);var a=Ee(i);return o.unitlessCssVar=n,i instanceof t?o.result="(".concat(i.result,")"):a==="number"?o.result=ws(i):a==="string"&&(o.result=i),o}return at(t,[{key:"add",value:function(n){return n instanceof t?this.result="".concat(this.result," + ").concat(n.getResult()):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," + ").concat(ws(n))),this.lowPriority=!0,this}},{key:"sub",value:function(n){return n instanceof t?this.result="".concat(this.result," - ").concat(n.getResult()):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," - ").concat(ws(n))),this.lowPriority=!0,this}},{key:"mul",value:function(n){return this.lowPriority&&(this.result="(".concat(this.result,")")),n instanceof t?this.result="".concat(this.result," * ").concat(n.getResult(!0)):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," * ").concat(n)),this.lowPriority=!1,this}},{key:"div",value:function(n){return this.lowPriority&&(this.result="(".concat(this.result,")")),n instanceof t?this.result="".concat(this.result," / ").concat(n.getResult(!0)):(typeof n=="number"||typeof n=="string")&&(this.result="".concat(this.result," / ").concat(n)),this.lowPriority=!1,this}},{key:"getResult",value:function(n){return this.lowPriority||n?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(n){var o=this,a=n||{},s=a.unit,c=!0;return typeof s=="boolean"?c=s:Array.from(this.unitlessCssVar).some(function(d){return o.result.includes(d)})&&(c=!1),this.result=this.result.replace(Pb,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),t})(hv),Nb=(function(e){gr(t,e);var r=mr(t);function t(i){var n;return ot(this,t),n=r.call(this),G(Oe(n),"result",0),i instanceof t?n.result=i.result:typeof i=="number"&&(n.result=i),n}return at(t,[{key:"add",value:function(n){return n instanceof t?this.result+=n.result:typeof n=="number"&&(this.result+=n),this}},{key:"sub",value:function(n){return n instanceof t?this.result-=n.result:typeof n=="number"&&(this.result-=n),this}},{key:"mul",value:function(n){return n instanceof t?this.result*=n.result:typeof n=="number"&&(this.result*=n),this}},{key:"div",value:function(n){return n instanceof t?this.result/=n.result:typeof n=="number"&&(this.result/=n),this}},{key:"equal",value:function(){return this.result}}]),t})(hv),Mb=function(r,t){var i=r==="css"?jb:Nb;return function(n){return new i(n,t)}},Yf=function(r,t){return"".concat([t,r.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Xf(e,r,t,i){var n=J({},r[e]);if(i!=null&&i.deprecatedTokens){var o=i.deprecatedTokens;o.forEach(function(s){var c=le(s,2),d=c[0],f=c[1];if(process.env.NODE_ENV!=="production"&&ze(!(n!=null&&n[d]),"Component Token `".concat(String(d),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(f),"` instead.")),n!=null&&n[d]||n!=null&&n[f]){var l;(l=n[f])!==null&&l!==void 0||(n[f]=n?.[d])}})}var a=J(J({},t),n);return Object.keys(a).forEach(function(s){a[s]===r[s]&&delete a[s]}),a}var pv=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u",vl=!0;function or(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(!pv)return Object.assign.apply(Object,[{}].concat(r));vl=!1;var i={};return r.forEach(function(n){if(Ee(n)==="object"){var o=Object.keys(n);o.forEach(function(a){Object.defineProperty(i,a,{configurable:!0,enumerable:!0,get:function(){return n[a]}})})}}),vl=!0,i}var Zf={};function Ib(){}var Lb=function(r){var t,i=r,n=Ib;return pv&&typeof Proxy<"u"&&(t=new Set,i=new Proxy(r,{get:function(a,s){if(vl){var c;(c=t)===null||c===void 0||c.add(s)}return a[s]}}),n=function(a,s){var c;Zf[a]={global:Array.from(t),component:J(J({},(c=Zf[a])===null||c===void 0?void 0:c.component),s)}}),{token:i,keys:t,flush:n}};function Qf(e,r,t){if(typeof t=="function"){var i;return t(or(r,(i=r[e])!==null&&i!==void 0?i:{}))}return t??{}}function $b(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return"max(".concat(i.map(function(o){return Le(o)}).join(","),")")},min:function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return"min(".concat(i.map(function(o){return Le(o)}).join(","),")")}}}var Fb=1e3*60*10,Db=(function(){function e(){ot(this,e),G(this,"map",new Map),G(this,"objectIDMap",new WeakMap),G(this,"nextID",0),G(this,"lastAccessBeat",new Map),G(this,"accessBeat",0)}return at(e,[{key:"set",value:function(t,i){this.clear();var n=this.getCompositeKey(t);this.map.set(n,i),this.lastAccessBeat.set(n,Date.now())}},{key:"get",value:function(t){var i=this.getCompositeKey(t),n=this.map.get(i);return this.lastAccessBeat.set(i,Date.now()),this.accessBeat+=1,n}},{key:"getCompositeKey",value:function(t){var i=this,n=t.map(function(o){return o&&Ee(o)==="object"?"obj_".concat(i.getObjectID(o)):"".concat(Ee(o),"_").concat(o)});return n.join("|")}},{key:"getObjectID",value:function(t){if(this.objectIDMap.has(t))return this.objectIDMap.get(t);var i=this.nextID;return this.objectIDMap.set(t,i),this.nextID+=1,i}},{key:"clear",value:function(){var t=this;if(this.accessBeat>1e4){var i=Date.now();this.lastAccessBeat.forEach(function(n,o){i-n>Fb&&(t.map.delete(o),t.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e})(),Jf=new Db;function qb(e,r){return U.useMemo(function(){var t=Jf.get(r);if(t)return t;var i=e();return Jf.set(r,i),i},r)}var Bb=function(){return{}};function Vb(e){var r=e.useCSP,t=r===void 0?Bb:r,i=e.useToken,n=e.usePrefix,o=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function c(u,h,p,m){var v=Array.isArray(u)?u[0]:u;function y(C){return"".concat(String(v)).concat(C.slice(0,1).toUpperCase()).concat(C.slice(1))}var g=m?.unitless||{},w=typeof s=="function"?s(u):{},b=J(J({},w),{},G({},y("zIndexPopup"),!0));Object.keys(g).forEach(function(C){b[y(C)]=g[C]});var x=J(J({},m),{},{unitless:b,prefixToken:y}),_=f(u,h,p,x),E=d(v,p,x);return function(C){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,O=_(C,k),S=le(O,2),R=S[1],T=E(k),P=le(T,2),L=P[0],F=P[1];return[L,R,F]}}function d(u,h,p){var m=p.unitless,v=p.injectStyle,y=v===void 0?!0:v,g=p.prefixToken,w=p.ignore,b=function(E){var C=E.rootCls,k=E.cssVar,O=k===void 0?{}:k,S=i(),R=S.realToken;return eb({path:[u],prefix:O.prefix,key:O.key,unitless:m,ignore:w,token:R,scope:C},function(){var T=Qf(u,R,h),P=Xf(u,R,T,{deprecatedTokens:p?.deprecatedTokens});return Object.keys(T).forEach(function(L){P[g(L)]=P[L],delete P[L]}),P}),null},x=function(E){var C=i(),k=C.cssVar;return[function(O){return y&&k?U.createElement(U.Fragment,null,U.createElement(b,{rootCls:E,cssVar:k,component:u}),O):O},k?.key]};return x}function f(u,h,p){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(u)?u:[u,u],y=le(v,1),g=y[0],w=v.join("-"),b=e.layer||{name:"antd"};return function(x){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:x,E=i(),C=E.theme,k=E.realToken,O=E.hashId,S=E.token,R=E.cssVar,T=n(),P=T.rootPrefixCls,L=T.iconPrefixCls,F=t(),$=R?"css":"js",z=qb(function(){var q=new Set;return R&&Object.keys(m.unitless||{}).forEach(function(B){q.add(Pi(B,R.prefix)),q.add(Pi(B,Yf(g,R.prefix)))}),Mb($,q)},[$,g,R?.prefix]),H=$b($),D=H.max,j=H.min,A={theme:C,token:S,hashId:O,nonce:function(){return F.nonce},clientOnly:m.clientOnly,layer:b,order:m.order||-999};typeof o=="function"&&fl(J(J({},A),{},{clientOnly:!1,path:["Shared",P]}),function(){return o(S,{prefix:{rootPrefixCls:P,iconPrefixCls:L},csp:F})});var M=fl(J(J({},A),{},{path:[w,x,L]}),function(){if(m.injectStyle===!1)return[];var q=Lb(S),B=q.token,N=q.flush,V=Qf(g,k,p),K=".".concat(x),W=Xf(g,k,V,{deprecatedTokens:m.deprecatedTokens});R&&V&&Ee(V)==="object"&&Object.keys(V).forEach(function(se){V[se]="var(".concat(Pi(se,Yf(g,R.prefix)),")")});var X=or(B,{componentCls:K,prefixCls:x,iconCls:".".concat(L),antCls:".".concat(P),calc:z,max:D,min:j},R?V:W),re=h(X,{hashId:O,prefixCls:x,rootPrefixCls:P,iconPrefixCls:L});N(g,W);var oe=typeof a=="function"?a(X,x,_,m.resetFont):null;return[m.resetStyle===!1?null:oe,re]});return[M,O]}}function l(u,h,p){var m=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=f(u,h,p,J({resetStyle:!1,order:-998},m)),y=function(w){var b=w.prefixCls,x=w.rootCls,_=x===void 0?b:x;return v(b,_),null};return process.env.NODE_ENV!=="production"&&(y.displayName="SubStyle_".concat(String(Array.isArray(u)?u.join("."):u))),y}return{genStyleHooks:c,genSubStyleComponent:l,genComponentStyleHook:f}}const Hi=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],Hb="5.27.1";function Es(e){return e>=0&&e<=255}function bi(e,r){const{r:t,g:i,b:n,a:o}=new et(e).toRgb();if(o<1)return e;const{r:a,g:s,b:c}=new et(r).toRgb();for(let d=.01;d<=1;d+=.01){const f=Math.round((t-a*(1-d))/d),l=Math.round((i-s*(1-d))/d),u=Math.round((n-c*(1-d))/d);if(Es(f)&&Es(l)&&Es(u))return new et({r:f,g:l,b:u,a:Math.round(d*100)/100}).toRgbString()}return new et({r:t,g:i,b:n,a:1}).toRgbString()}var zb=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};function gv(e){const{override:r}=e,t=zb(e,["override"]),i=Object.assign({},r);Object.keys(zn).forEach(u=>{delete i[u]});const n=Object.assign(Object.assign({},t),i),o=480,a=576,s=768,c=992,d=1200,f=1600;return n.motion===!1&&(n.motionDurationFast="0s",n.motionDurationMid="0s",n.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},n),{colorFillContent:n.colorFillSecondary,colorFillContentHover:n.colorFill,colorFillAlter:n.colorFillQuaternary,colorBgContainerDisabled:n.colorFillTertiary,colorBorderBg:n.colorBgContainer,colorSplit:bi(n.colorBorderSecondary,n.colorBgContainer),colorTextPlaceholder:n.colorTextQuaternary,colorTextDisabled:n.colorTextQuaternary,colorTextHeading:n.colorText,colorTextLabel:n.colorTextSecondary,colorTextDescription:n.colorTextTertiary,colorTextLightSolid:n.colorWhite,colorHighlight:n.colorError,colorBgTextHover:n.colorFillSecondary,colorBgTextActive:n.colorFill,colorIcon:n.colorTextTertiary,colorIconHover:n.colorText,colorErrorOutline:bi(n.colorErrorBg,n.colorBgContainer),colorWarningOutline:bi(n.colorWarningBg,n.colorBgContainer),fontSizeIcon:n.fontSizeSM,lineWidthFocus:n.lineWidth*3,lineWidth:n.lineWidth,controlOutlineWidth:n.lineWidth*2,controlInteractiveSize:n.controlHeight/2,controlItemBgHover:n.colorFillTertiary,controlItemBgActive:n.colorPrimaryBg,controlItemBgActiveHover:n.colorPrimaryBgHover,controlItemBgActiveDisabled:n.colorFill,controlTmpOutline:n.colorFillQuaternary,controlOutline:bi(n.colorPrimaryBg,n.colorBgContainer),lineType:n.lineType,borderRadius:n.borderRadius,borderRadiusXS:n.borderRadiusXS,borderRadiusSM:n.borderRadiusSM,borderRadiusLG:n.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:n.sizeXXS,paddingXS:n.sizeXS,paddingSM:n.sizeSM,padding:n.size,paddingMD:n.sizeMD,paddingLG:n.sizeLG,paddingXL:n.sizeXL,paddingContentHorizontalLG:n.sizeLG,paddingContentVerticalLG:n.sizeMS,paddingContentHorizontal:n.sizeMS,paddingContentVertical:n.sizeSM,paddingContentHorizontalSM:n.size,paddingContentVerticalSM:n.sizeXS,marginXXS:n.sizeXXS,marginXS:n.sizeXS,marginSM:n.sizeSM,margin:n.size,marginMD:n.sizeMD,marginLG:n.sizeLG,marginXL:n.sizeXL,marginXXL:n.sizeXXL,boxShadow:`
|
|
142
142
|
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
143
143
|
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
144
144
|
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
@@ -170,24 +170,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
170
170
|
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
171
171
|
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
172
172
|
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
173
|
-
`,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)"}),i)}var Qf=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};const gv={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},zb={motionBase:!0,motionUnit:!0},Ub={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},mv=(e,r,t)=>{const i=t.getDerivativeToken(e),{override:n}=r,o=Qf(r,["override"]);let a=Object.assign(Object.assign({},i),{override:n});return a=pv(a),o&&Object.entries(o).forEach(([s,c])=>{const{theme:d}=c,f=Qf(c,["theme"]);let l=f;d&&(l=mv(Object.assign(Object.assign({},a),f),{override:f},d)),a[s]=l}),a};function ln(){const{token:e,hashed:r,theme:t,override:i,cssVar:n}=U.useContext(fv),o=`${Vb}-${r||""}`,a=t||cv,[s,c,d]=S0(a,[zn,e],{salt:o,override:i,getComputedToken:mv,formatToken:pv,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:gv,ignore:zb,preserve:Ub}});return[a,d,r?c:"",s,n]}const eu=(e,r=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:r?"inherit":e.fontFamily}),Wb=()=>({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"}}),Kb=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Gb=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"}}}),Yb=(e,r,t,i)=>{const n=`[class^="${r}"], [class*=" ${r}"]`,o=t?`.${t}`:n,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return i!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[n]:a})}},Xb=(e,r)=>({outline:`${Le(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:r??1,transition:"outline-offset 0s, outline 0s"}),Zb=(e,r)=>({"&:focus-visible":Xb(e,r)}),yv=e=>({[`.${e}`]:Object.assign(Object.assign({},Wb()),{[`.${e} .${e}-icon`]:{display:"block"}})}),bv=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"},Zb(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Zn}=Bb({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:r}=U.useContext(Kt);return{rootPrefixCls:e(),iconPrefixCls:r}},useToken:()=>{const[e,r,t,i,n]=ln();return{theme:e,realToken:r,hashId:t,token:i,cssVar:n}},useCSP:()=>{const{csp:e}=U.useContext(Kt);return e??{}},getResetStyles:(e,r)=>{var t;const i=Gb(e);return[i,{"&":i},yv((t=r?.prefix.iconPrefixCls)!==null&&t!==void 0?t:Jl)]},getCommonStyle:Yb,getCompUnitless:()=>gv});function Qb(e,r){return Hi.reduce((t,i)=>{const n=e[`${i}1`],o=e[`${i}3`],a=e[`${i}6`],s=e[`${i}7`];return Object.assign(Object.assign({},t),r(i,{lightColor:n,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const Jb=(e,r)=>{const[t,i]=ln();return cl({token:i,hashId:"",path:["ant-design-icons",e],nonce:()=>r?.nonce,layer:{name:"antd"}},()=>yv(e))},e1=Object.assign({},I),{useId:Jf}=e1,t1=()=>"",r1=typeof Jf>"u"?t1:Jf;function n1(e,r,t){var i,n;const o=Wt("ConfigProvider"),a=e||{},s=a.inherit===!1||!r?Object.assign(Object.assign({},fl),{hashed:(i=r?.hashed)!==null&&i!==void 0?i:fl.hashed,cssVar:r?.cssVar}):r,c=r1();if(process.env.NODE_ENV!=="production"){const d=a.cssVar||s.cssVar,f=!!(typeof a.cssVar=="object"&&(!((n=a.cssVar)===null||n===void 0)&&n.key)||c);process.env.NODE_ENV!=="production"&&o(!d||f,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Hl(()=>{var d,f;if(!e)return r;const l=Object.assign({},s.components);Object.keys(e.components||{}).forEach(p=>{l[p]=Object.assign(Object.assign({},l[p]),e.components[p])});const u=`css-var-${c.replace(/:/g,"")}`,h=((d=a.cssVar)!==null&&d!==void 0?d:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:t?.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((f=a.cssVar)===null||f===void 0?void 0:f.key)||u});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:l,cssVar:h})},[a,s],(d,f)=>d.some((l,u)=>{const h=f[u];return!nl(l,h,!0)}))}var i1=["children"],xv=I.createContext({});function o1(e){var r=e.children,t=dt(e,i1);return I.createElement(xv.Provider,{value:t},r)}var a1=(function(e){gr(t,e);var r=mr(t);function t(){return ot(this,t),r.apply(this,arguments)}return at(t,[{key:"render",value:function(){return this.props.children}}]),t})(I.Component);function s1(e){var r=I.useReducer(function(s){return s+1},0),t=le(r,2),i=t[1],n=I.useRef(e),o=vt(function(){return n.current}),a=vt(function(s){n.current=typeof s=="function"?s(n.current):s,i()});return[o,a]}var dr="none",xi="appear",wi="enter",Ei="leave",ed="none",$t="prepare",Vr="start",Hr="active",tu="end",wv="prepared";function td(e,r){var t={};return t[e.toLowerCase()]=r.toLowerCase(),t["Webkit".concat(e)]="webkit".concat(r),t["Moz".concat(e)]="moz".concat(r),t["ms".concat(e)]="MS".concat(r),t["O".concat(e)]="o".concat(r.toLowerCase()),t}function l1(e,r){var t={animationend:td("Animation","AnimationEnd"),transitionend:td("Transition","TransitionEnd")};return e&&("AnimationEvent"in r||delete t.animationend.animation,"TransitionEvent"in r||delete t.transitionend.transition),t}var u1=l1(pt(),typeof window<"u"?window:{}),Ev={};if(pt()){var c1=document.createElement("div");Ev=c1.style}var _i={};function _v(e){if(_i[e])return _i[e];var r=u1[e];if(r)for(var t=Object.keys(r),i=t.length,n=0;n<i;n+=1){var o=t[n];if(Object.prototype.hasOwnProperty.call(r,o)&&o in Ev)return _i[e]=r[o],_i[e]}return""}var Sv=_v("animationend"),Cv=_v("transitionend"),Ov=!!(Sv&&Cv),rd=Sv||"animationend",nd=Cv||"transitionend";function id(e,r){if(!e)return null;if(Ee(e)==="object"){var t=r.replace(/-\w/g,function(i){return i[1].toUpperCase()});return e[t]}return"".concat(e,"-").concat(r)}const f1=(function(e){var r=U.useRef();function t(n){n&&(n.removeEventListener(nd,e),n.removeEventListener(rd,e))}function i(n){r.current&&r.current!==n&&t(r.current),n&&n!==r.current&&(n.addEventListener(nd,e),n.addEventListener(rd,e),r.current=n)}return I.useEffect(function(){return function(){t(r.current)}},[]),[i,t]});var Rv=pt()?U.useLayoutEffect:U.useEffect,Av=function(r){return+setTimeout(r,16)},Tv=function(r){return clearTimeout(r)};typeof window<"u"&&"requestAnimationFrame"in window&&(Av=function(r){return window.requestAnimationFrame(r)},Tv=function(r){return window.cancelAnimationFrame(r)});var od=0,so=new Map;function Pv(e){so.delete(e)}var tn=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;od+=1;var i=od;function n(o){if(o===0)Pv(i),r();else{var a=Av(function(){n(o-1)});so.set(i,a)}}return n(t),i};tn.cancel=function(e){var r=so.get(e);return Pv(e),Tv(r)};process.env.NODE_ENV!=="production"&&(tn.ids=function(){return so});const d1=(function(){var e=I.useRef(null);function r(){tn.cancel(e.current)}function t(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;r();var o=tn(function(){n<=1?i({isCanceled:function(){return o!==e.current}}):t(i,n-1)});e.current=o}return I.useEffect(function(){return function(){r()}},[]),[t,r]});var h1=[$t,Vr,Hr,tu],v1=[$t,wv],kv=!1,p1=!0;function jv(e){return e===Hr||e===tu}const g1=(function(e,r,t){var i=Bn(ed),n=le(i,2),o=n[0],a=n[1],s=d1(),c=le(s,2),d=c[0],f=c[1];function l(){a($t,!0)}var u=r?v1:h1;return Rv(function(){if(o!==ed&&o!==tu){var h=u.indexOf(o),p=u[h+1],m=t(o);m===kv?a(p,!0):p&&d(function(v){function y(){v.isCanceled()||a(p,!0)}m===!0?y():Promise.resolve(m).then(y)})}},[e,o]),I.useEffect(function(){return function(){f()}},[]),[l,o]});function m1(e,r,t,i){var n=i.motionEnter,o=n===void 0?!0:n,a=i.motionAppear,s=a===void 0?!0:a,c=i.motionLeave,d=c===void 0?!0:c,f=i.motionDeadline,l=i.motionLeaveImmediately,u=i.onAppearPrepare,h=i.onEnterPrepare,p=i.onLeavePrepare,m=i.onAppearStart,v=i.onEnterStart,y=i.onLeaveStart,g=i.onAppearActive,w=i.onEnterActive,b=i.onLeaveActive,x=i.onAppearEnd,_=i.onEnterEnd,E=i.onLeaveEnd,C=i.onVisibleChanged,P=Bn(),O=le(P,2),S=O[0],R=O[1],T=s1(dr),k=le(T,2),L=k[0],F=k[1],$=Bn(null),z=le($,2),H=z[0],D=z[1],j=L(),A=U.useRef(!1),M=U.useRef(null);function q(){return t()}var B=U.useRef(!1);function N(){F(dr),D(null,!0)}var V=vt(function(ie){var ee=L();if(ee!==dr){var ue=q();if(!(ie&&!ie.deadline&&ie.target!==ue)){var ne=B.current,de;ee===xi&&ne?de=x?.(ue,ie):ee===wi&&ne?de=_?.(ue,ie):ee===Ei&&ne&&(de=E?.(ue,ie)),ne&&de!==!1&&N()}}}),K=f1(V),W=le(K,1),X=W[0],re=function(ee){switch(ee){case xi:return G(G(G({},$t,u),Vr,m),Hr,g);case wi:return G(G(G({},$t,h),Vr,v),Hr,w);case Ei:return G(G(G({},$t,p),Vr,y),Hr,b);default:return{}}},oe=I.useMemo(function(){return re(j)},[j]),se=g1(j,!e,function(ie){if(ie===$t){var ee=oe[$t];return ee?ee(q()):kv}if(fe in oe){var ue;D(((ue=oe[fe])===null||ue===void 0?void 0:ue.call(oe,q(),null))||null)}return fe===Hr&&j!==dr&&(X(q()),f>0&&(clearTimeout(M.current),M.current=setTimeout(function(){V({deadline:!0})},f))),fe===wv&&N(),p1}),te=le(se,2),ce=te[0],fe=te[1],ve=jv(fe);B.current=ve;var Q=U.useRef(null);Rv(function(){if(!(A.current&&Q.current===r)){R(r);var ie=A.current;A.current=!0;var ee;!ie&&r&&s&&(ee=xi),ie&&r&&o&&(ee=wi),(ie&&!r&&d||!ie&&l&&!r&&d)&&(ee=Ei);var ue=re(ee);ee&&(e||ue[$t])?(F(ee),ce()):F(dr),Q.current=r}},[r]),U.useEffect(function(){(j===xi&&!s||j===wi&&!o||j===Ei&&!d)&&F(dr)},[s,o,d]),U.useEffect(function(){return function(){A.current=!1,clearTimeout(M.current)}},[]);var Z=I.useRef(!1);U.useEffect(function(){S&&(Z.current=!0),S!==void 0&&j===dr&&((Z.current||S)&&C?.(S),Z.current=!0)},[S,j]);var ae=H;return oe[$t]&&fe===Vr&&(ae=J({transition:"none"},ae)),[j,fe,ae,S??r]}function y1(e){var r=e;Ee(e)==="object"&&(r=e.transitionSupport);function t(n,o){return!!(n.motionName&&r&&o!==!1)}var i=I.forwardRef(function(n,o){var a=n.visible,s=a===void 0?!0:a,c=n.removeOnLeave,d=c===void 0?!0:c,f=n.forceRender,l=n.children,u=n.motionName,h=n.leavedClassName,p=n.eventProps,m=I.useContext(xv),v=m.motion,y=t(n,v),g=U.useRef(),w=U.useRef();function b(){try{return g.current instanceof HTMLElement?g.current:Pi(w.current)}catch{return null}}var x=m1(y,s,b,n),_=le(x,4),E=_[0],C=_[1],P=_[2],O=_[3],S=I.useRef(O);O&&(S.current=!0);var R=I.useCallback(function(z){g.current=z,zl(o,z)},[o]),T,k=J(J({},p),{},{visible:s});if(!l)T=null;else if(E===dr)O?T=l(J({},k),R):!d&&S.current&&h?T=l(J(J({},k),{},{className:h}),R):f||!d&&!h?T=l(J(J({},k),{},{style:{display:"none"}}),R):T=null;else{var L;C===$t?L="prepare":jv(C)?L="active":C===Vr&&(L="start");var F=id(u,"".concat(E,"-").concat(L));T=l(J(J({},k),{},{className:ye(id(u,E),G(G({},F,F&&L),u,typeof u=="string")),style:P}),R)}if(I.isValidElement(T)&&ro(T)){var $=Wl(T);$||(T=I.cloneElement(T,{ref:R}))}return I.createElement(a1,{ref:w},T)});return i.displayName="CSSMotion",i}const ru=y1(Ov);var vl="add",pl="keep",gl="remove",Es="removed";function b1(e){var r;return e&&Ee(e)==="object"&&"key"in e?r=e:r={key:e},J(J({},r),{},{key:String(r.key)})}function ml(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(b1)}function x1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=[],i=0,n=r.length,o=ml(e),a=ml(r);o.forEach(function(d){for(var f=!1,l=i;l<n;l+=1){var u=a[l];if(u.key===d.key){i<l&&(t=t.concat(a.slice(i,l).map(function(h){return J(J({},h),{},{status:vl})})),i=l),t.push(J(J({},u),{},{status:pl})),i+=1,f=!0;break}}f||t.push(J(J({},d),{},{status:gl}))}),i<n&&(t=t.concat(a.slice(i).map(function(d){return J(J({},d),{},{status:vl})})));var s={};t.forEach(function(d){var f=d.key;s[f]=(s[f]||0)+1});var c=Object.keys(s).filter(function(d){return s[d]>1});return c.forEach(function(d){t=t.filter(function(f){var l=f.key,u=f.status;return l!==d||u!==gl}),t.forEach(function(f){f.key===d&&(f.status=pl)})}),t}var w1=["component","children","onVisibleChanged","onAllRemoved"],E1=["status"],_1=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function S1(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ru,t=(function(i){gr(o,i);var n=mr(o);function o(){var a;ot(this,o);for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];return a=n.call.apply(n,[this].concat(c)),G(Oe(a),"state",{keyEntities:[]}),G(Oe(a),"removeKey",function(f){a.setState(function(l){var u=l.keyEntities.map(function(h){return h.key!==f?h:J(J({},h),{},{status:Es})});return{keyEntities:u}},function(){var l=a.state.keyEntities,u=l.filter(function(h){var p=h.status;return p!==Es}).length;u===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return at(o,[{key:"render",value:function(){var s=this,c=this.state.keyEntities,d=this.props,f=d.component,l=d.children,u=d.onVisibleChanged;d.onAllRemoved;var h=dt(d,w1),p=f||I.Fragment,m={};return _1.forEach(function(v){m[v]=h[v],delete h[v]}),delete h.keys,I.createElement(p,h,c.map(function(v,y){var g=v.status,w=dt(v,E1),b=g===vl||g===pl;return I.createElement(r,qe({},m,{key:w.key,visible:b,eventProps:w,onVisibleChanged:function(_){u?.(_,{key:w.key}),_||s.removeKey(w.key)}}),function(x,_){return l(J(J({},x),{},{index:y}),_)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,c){var d=s.keys,f=c.keyEntities,l=ml(d),u=x1(f,l);return{keyEntities:u.filter(function(h){var p=f.find(function(m){var v=m.key;return h.key===v});return!(p&&p.status===Es&&h.status===gl)})}}}]),o})(I.Component);return G(t,"defaultProps",{component:"div"}),t}S1(Ov);const yl=I.createContext(!0);process.env.NODE_ENV!=="production"&&(yl.displayName="MotionCacheContext");function C1(e){const r=I.useContext(yl),{children:t}=e,[,i]=ln(),{motion:n}=i,o=I.useRef(!1);return o.current||(o.current=r!==n),o.current?I.createElement(yl.Provider,{value:n},I.createElement(o1,{motion:n},t)):t}const Nv=I.memo(({dropdownMatchSelectWidth:e})=>(Wt("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Nv.displayName="PropWarning");const O1=process.env.NODE_ENV!=="production"?Nv:()=>null;var R1=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};let bl=!1;process.env.NODE_ENV;const A1=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Mv;function T1(){return Mv||dl}function P1(e){return Object.keys(e).some(r=>r.endsWith("Color"))}const k1=e=>{const{prefixCls:r,iconPrefixCls:t,theme:i,holderRender:n}=e;r!==void 0&&(Mv=r),i&&P1(i)&&(process.env.NODE_ENV!=="production"&&Xn(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Ob(T1(),i))},j1=e=>{const{children:r,csp:t,autoInsertSpaceInButton:i,alert:n,anchor:o,form:a,locale:s,componentSize:c,direction:d,space:f,splitter:l,virtual:u,dropdownMatchSelectWidth:h,popupMatchSelectWidth:p,popupOverflow:m,legacyLocale:v,parentContext:y,iconPrefixCls:g,theme:w,componentDisabled:b,segmented:x,statistic:_,spin:E,calendar:C,carousel:P,cascader:O,collapse:S,typography:R,checkbox:T,descriptions:k,divider:L,drawer:F,skeleton:$,steps:z,image:H,layout:D,list:j,mentions:A,modal:M,progress:q,result:B,slider:N,breadcrumb:V,menu:K,pagination:W,input:X,textArea:re,empty:oe,badge:se,radio:te,rate:ce,switch:fe,transfer:ve,avatar:Q,message:Z,tag:ae,table:ie,card:ee,tabs:ue,timeline:ne,timePicker:de,upload:Se,notification:Me,tree:be,colorPicker:De,datePicker:Ce,rangePicker:Re,flex:Pe,wave:Te,dropdown:_e,warning:Be,tour:ge,tooltip:xe,popover:Ge,popconfirm:Gt,floatButton:yr,floatButtonGroup:Ar,variant:cn,inputNumber:Tr,treeSelect:kt}=e,st=I.useCallback(($e,Xe)=>{const{prefixCls:ht}=e;if(Xe)return Xe;const ut=ht||y.getPrefixCls("");return $e?`${ut}-${$e}`:ut},[y.getPrefixCls,e.prefixCls]),Ye=g||y.iconPrefixCls||Jl,Yt=t||y.csp;Jb(Ye,Yt);const lt=n1(w,y.theme,{prefixCls:st("")});process.env.NODE_ENV!=="production"&&(bl=bl||!!lt);const Ie={csp:Yt,autoInsertSpaceInButton:i,alert:n,anchor:o,locale:s||v,direction:d,space:f,splitter:l,virtual:u,popupMatchSelectWidth:p??h,popupOverflow:m,getPrefixCls:st,iconPrefixCls:Ye,theme:lt,segmented:x,statistic:_,spin:E,calendar:C,carousel:P,cascader:O,collapse:S,typography:R,checkbox:T,descriptions:k,divider:L,drawer:F,skeleton:$,steps:z,image:H,input:X,textArea:re,layout:D,list:j,mentions:A,modal:M,progress:q,result:B,slider:N,breadcrumb:V,menu:K,pagination:W,empty:oe,badge:se,radio:te,rate:ce,switch:fe,transfer:ve,avatar:Q,message:Z,tag:ae,table:ie,card:ee,tabs:ue,timeline:ne,timePicker:de,upload:Se,notification:Me,tree:be,colorPicker:De,datePicker:Ce,rangePicker:Re,flex:Pe,wave:Te,dropdown:_e,warning:Be,tour:ge,tooltip:xe,popover:Ge,popconfirm:Gt,floatButton:yr,floatButtonGroup:Ar,variant:cn,inputNumber:Tr,treeSelect:kt};process.env.NODE_ENV!=="production"&&Wt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const ke=Object.assign({},y);Object.keys(Ie).forEach($e=>{Ie[$e]!==void 0&&(ke[$e]=Ie[$e])}),A1.forEach($e=>{const Xe=e[$e];Xe&&(ke[$e]=Xe)}),typeof i<"u"&&(ke.button=Object.assign({autoInsertSpace:i},ke.button));const rt=Hl(()=>ke,ke,($e,Xe)=>{const ht=Object.keys($e),ut=Object.keys(Xe);return ht.length!==ut.length||ht.some(Bt=>$e[Bt]!==Xe[Bt])}),{layer:qt}=I.useContext(Yn),gt=I.useMemo(()=>({prefixCls:Ye,csp:Yt,layer:qt?"antd":void 0}),[Ye,Yt,qt]);let We=I.createElement(I.Fragment,null,I.createElement(O1,{dropdownMatchSelectWidth:h}),r);const ar=I.useMemo(()=>{var $e,Xe,ht,ut;return Br((($e=Jr.Form)===null||$e===void 0?void 0:$e.defaultValidateMessages)||{},((ht=(Xe=rt.locale)===null||Xe===void 0?void 0:Xe.Form)===null||ht===void 0?void 0:ht.defaultValidateMessages)||{},((ut=rt.form)===null||ut===void 0?void 0:ut.validateMessages)||{},a?.validateMessages||{})},[rt,a?.validateMessages]);Object.keys(ar).length>0&&(We=I.createElement(ob.Provider,{value:ar},We)),s&&(We=I.createElement(lv,{locale:s,_ANT_MARK__:sv},We)),We=I.createElement(ql.Provider,{value:gt},We),c&&(We=I.createElement(Ab,{size:c},We)),We=I.createElement(C1,null,We);const Xt=I.useMemo(()=>{const $e=lt||{},{algorithm:Xe,token:ht,components:ut,cssVar:Bt}=$e,Pr=R1($e,["algorithm","token","components","cssVar"]),jt=Xe&&(!Array.isArray(Xe)||Xe.length>0)?ol(Xe):cv,Et={};Object.entries(ut||{}).forEach(([Nt,kr])=>{const Ve=Object.assign({},kr);"algorithm"in Ve&&(Ve.algorithm===!0?Ve.theme=jt:(Array.isArray(Ve.algorithm)||typeof Ve.algorithm=="function")&&(Ve.theme=ol(Ve.algorithm)),delete Ve.algorithm),Et[Nt]=Ve});const Vt=Object.assign(Object.assign({},zn),ht);return Object.assign(Object.assign({},Pr),{theme:jt,token:Vt,components:Et,override:Object.assign({override:Vt},Et),cssVar:Bt})},[lt]);return w&&(We=I.createElement(fv.Provider,{value:Xt},We)),rt.warning&&(We=I.createElement(ov.Provider,{value:rt.warning},We)),b!==void 0&&(We=I.createElement(Rb,{disabled:b},We)),I.createElement(Kt.Provider,{value:rt},We)},un=e=>{const r=I.useContext(Kt),t=I.useContext(Ql);return I.createElement(j1,Object.assign({parentContext:r,legacyLocale:t},e))};un.ConfigContext=Kt;un.SizeContext=en;un.config=k1;un.useConfig=Tb;Object.defineProperty(un,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Xn(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),en)});process.env.NODE_ENV!=="production"&&(un.displayName="ConfigProvider");function Iv(e){var r=e.children,t=e.prefixCls,i=e.id,n=e.overlayInnerStyle,o=e.bodyClassName,a=e.className,s=e.style;return I.createElement("div",{className:ye("".concat(t,"-content"),a),style:s},I.createElement("div",{className:ye("".concat(t,"-inner"),o),id:i,role:"tooltip",style:n},typeof r=="function"?r():r))}var Lv=I.createContext(null),ad=[];function N1(e,r){var t=I.useState(function(){if(!pt())return null;var p=document.createElement("div");return process.env.NODE_ENV!=="production"&&r&&p.setAttribute("data-debug",r),p}),i=le(t,1),n=i[0],o=I.useRef(!1),a=I.useContext(Lv),s=I.useState(ad),c=le(s,2),d=c[0],f=c[1],l=a||(o.current?void 0:function(p){f(function(m){var v=[p].concat(me(m));return v})});function u(){n.parentElement||document.body.appendChild(n),o.current=!0}function h(){var p;(p=n.parentElement)===null||p===void 0||p.removeChild(n),o.current=!1}return Ue(function(){return e?a?a(u):u():h(),h},[e]),Ue(function(){d.length&&(d.forEach(function(p){return p()}),f(ad))},[d]),[n,l]}function M1(e){var r="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),t=document.createElement("div");t.id=r;var i=t.style;i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll";var n,o;if(e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(s.width,10),d=parseInt(s.height,10);try{var f=c?"width: ".concat(s.width,";"):"",l=d?"height: ".concat(s.height,";"):"";rr(`
|
|
173
|
+
`,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)"}),i)}var ed=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};const mv={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},Ub={motionBase:!0,motionUnit:!0},Wb={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},yv=(e,r,t)=>{const i=t.getDerivativeToken(e),{override:n}=r,o=ed(r,["override"]);let a=Object.assign(Object.assign({},i),{override:n});return a=gv(a),o&&Object.entries(o).forEach(([s,c])=>{const{theme:d}=c,f=ed(c,["theme"]);let l=f;d&&(l=yv(Object.assign(Object.assign({},a),f),{override:f},d)),a[s]=l}),a};function ln(){const{token:e,hashed:r,theme:t,override:i,cssVar:n}=U.useContext(dv),o=`${Hb}-${r||""}`,a=t||fv,[s,c,d]=C0(a,[zn,e],{salt:o,override:i,getComputedToken:yv,formatToken:gv,cssVar:n&&{prefix:n.prefix,key:n.key,unitless:mv,ignore:Ub,preserve:Wb}});return[a,d,r?c:"",s,n]}const ru=(e,r=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:r?"inherit":e.fontFamily}),Kb=()=>({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"}}),Gb=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Yb=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"}}}),Xb=(e,r,t,i)=>{const n=`[class^="${r}"], [class*=" ${r}"]`,o=t?`.${t}`:n,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return i!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[o]:Object.assign(Object.assign(Object.assign({},s),a),{[n]:a})}},Zb=(e,r)=>({outline:`${Le(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:r??1,transition:"outline-offset 0s, outline 0s"}),Qb=(e,r)=>({"&:focus-visible":Zb(e,r)}),bv=e=>({[`.${e}`]:Object.assign(Object.assign({},Kb()),{[`.${e} .${e}-icon`]:{display:"block"}})}),xv=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"},Qb(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Zn}=Vb({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:r}=U.useContext(Kt);return{rootPrefixCls:e(),iconPrefixCls:r}},useToken:()=>{const[e,r,t,i,n]=ln();return{theme:e,realToken:r,hashId:t,token:i,cssVar:n}},useCSP:()=>{const{csp:e}=U.useContext(Kt);return e??{}},getResetStyles:(e,r)=>{var t;const i=Yb(e);return[i,{"&":i},bv((t=r?.prefix.iconPrefixCls)!==null&&t!==void 0?t:tu)]},getCommonStyle:Xb,getCompUnitless:()=>mv});function Jb(e,r){return Hi.reduce((t,i)=>{const n=e[`${i}1`],o=e[`${i}3`],a=e[`${i}6`],s=e[`${i}7`];return Object.assign(Object.assign({},t),r(i,{lightColor:n,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const e1=(e,r)=>{const[t,i]=ln();return fl({token:i,hashId:"",path:["ant-design-icons",e],nonce:()=>r?.nonce,layer:{name:"antd"}},()=>bv(e))},t1=Object.assign({},I),{useId:td}=t1,r1=()=>"",n1=typeof td>"u"?r1:td;function i1(e,r,t){var i,n;const o=Wt("ConfigProvider"),a=e||{},s=a.inherit===!1||!r?Object.assign(Object.assign({},dl),{hashed:(i=r?.hashed)!==null&&i!==void 0?i:dl.hashed,cssVar:r?.cssVar}):r,c=n1();if(process.env.NODE_ENV!=="production"){const d=a.cssVar||s.cssVar,f=!!(typeof a.cssVar=="object"&&(!((n=a.cssVar)===null||n===void 0)&&n.key)||c);process.env.NODE_ENV!=="production"&&o(!d||f,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return Ul(()=>{var d,f;if(!e)return r;const l=Object.assign({},s.components);Object.keys(e.components||{}).forEach(p=>{l[p]=Object.assign(Object.assign({},l[p]),e.components[p])});const u=`css-var-${c.replace(/:/g,"")}`,h=((d=a.cssVar)!==null&&d!==void 0?d:s.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:t?.prefixCls},typeof s.cssVar=="object"?s.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((f=a.cssVar)===null||f===void 0?void 0:f.key)||u});return Object.assign(Object.assign(Object.assign({},s),a),{token:Object.assign(Object.assign({},s.token),a.token),components:l,cssVar:h})},[a,s],(d,f)=>d.some((l,u)=>{const h=f[u];return!il(l,h,!0)}))}var o1=["children"],wv=I.createContext({});function a1(e){var r=e.children,t=dt(e,o1);return I.createElement(wv.Provider,{value:t},r)}var s1=(function(e){gr(t,e);var r=mr(t);function t(){return ot(this,t),r.apply(this,arguments)}return at(t,[{key:"render",value:function(){return this.props.children}}]),t})(I.Component);function l1(e){var r=I.useReducer(function(s){return s+1},0),t=le(r,2),i=t[1],n=I.useRef(e),o=vt(function(){return n.current}),a=vt(function(s){n.current=typeof s=="function"?s(n.current):s,i()});return[o,a]}var dr="none",xi="appear",wi="enter",Ei="leave",rd="none",$t="prepare",Vr="start",Hr="active",nu="end",Ev="prepared";function nd(e,r){var t={};return t[e.toLowerCase()]=r.toLowerCase(),t["Webkit".concat(e)]="webkit".concat(r),t["Moz".concat(e)]="moz".concat(r),t["ms".concat(e)]="MS".concat(r),t["O".concat(e)]="o".concat(r.toLowerCase()),t}function u1(e,r){var t={animationend:nd("Animation","AnimationEnd"),transitionend:nd("Transition","TransitionEnd")};return e&&("AnimationEvent"in r||delete t.animationend.animation,"TransitionEvent"in r||delete t.transitionend.transition),t}var c1=u1(pt(),typeof window<"u"?window:{}),_v={};if(pt()){var f1=document.createElement("div");_v=f1.style}var _i={};function Sv(e){if(_i[e])return _i[e];var r=c1[e];if(r)for(var t=Object.keys(r),i=t.length,n=0;n<i;n+=1){var o=t[n];if(Object.prototype.hasOwnProperty.call(r,o)&&o in _v)return _i[e]=r[o],_i[e]}return""}var Cv=Sv("animationend"),Ov=Sv("transitionend"),Rv=!!(Cv&&Ov),id=Cv||"animationend",od=Ov||"transitionend";function ad(e,r){if(!e)return null;if(Ee(e)==="object"){var t=r.replace(/-\w/g,function(i){return i[1].toUpperCase()});return e[t]}return"".concat(e,"-").concat(r)}const d1=(function(e){var r=U.useRef();function t(n){n&&(n.removeEventListener(od,e),n.removeEventListener(id,e))}function i(n){r.current&&r.current!==n&&t(r.current),n&&n!==r.current&&(n.addEventListener(od,e),n.addEventListener(id,e),r.current=n)}return I.useEffect(function(){return function(){t(r.current)}},[]),[i,t]});var Av=pt()?U.useLayoutEffect:U.useEffect,Tv=function(r){return+setTimeout(r,16)},kv=function(r){return clearTimeout(r)};typeof window<"u"&&"requestAnimationFrame"in window&&(Tv=function(r){return window.requestAnimationFrame(r)},kv=function(r){return window.cancelAnimationFrame(r)});var sd=0,lo=new Map;function Pv(e){lo.delete(e)}var tn=function(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;sd+=1;var i=sd;function n(o){if(o===0)Pv(i),r();else{var a=Tv(function(){n(o-1)});lo.set(i,a)}}return n(t),i};tn.cancel=function(e){var r=lo.get(e);return Pv(e),kv(r)};process.env.NODE_ENV!=="production"&&(tn.ids=function(){return lo});const h1=(function(){var e=I.useRef(null);function r(){tn.cancel(e.current)}function t(i){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;r();var o=tn(function(){n<=1?i({isCanceled:function(){return o!==e.current}}):t(i,n-1)});e.current=o}return I.useEffect(function(){return function(){r()}},[]),[t,r]});var v1=[$t,Vr,Hr,nu],p1=[$t,Ev],jv=!1,g1=!0;function Nv(e){return e===Hr||e===nu}const m1=(function(e,r,t){var i=Bn(rd),n=le(i,2),o=n[0],a=n[1],s=h1(),c=le(s,2),d=c[0],f=c[1];function l(){a($t,!0)}var u=r?p1:v1;return Av(function(){if(o!==rd&&o!==nu){var h=u.indexOf(o),p=u[h+1],m=t(o);m===jv?a(p,!0):p&&d(function(v){function y(){v.isCanceled()||a(p,!0)}m===!0?y():Promise.resolve(m).then(y)})}},[e,o]),I.useEffect(function(){return function(){f()}},[]),[l,o]});function y1(e,r,t,i){var n=i.motionEnter,o=n===void 0?!0:n,a=i.motionAppear,s=a===void 0?!0:a,c=i.motionLeave,d=c===void 0?!0:c,f=i.motionDeadline,l=i.motionLeaveImmediately,u=i.onAppearPrepare,h=i.onEnterPrepare,p=i.onLeavePrepare,m=i.onAppearStart,v=i.onEnterStart,y=i.onLeaveStart,g=i.onAppearActive,w=i.onEnterActive,b=i.onLeaveActive,x=i.onAppearEnd,_=i.onEnterEnd,E=i.onLeaveEnd,C=i.onVisibleChanged,k=Bn(),O=le(k,2),S=O[0],R=O[1],T=l1(dr),P=le(T,2),L=P[0],F=P[1],$=Bn(null),z=le($,2),H=z[0],D=z[1],j=L(),A=U.useRef(!1),M=U.useRef(null);function q(){return t()}var B=U.useRef(!1);function N(){F(dr),D(null,!0)}var V=vt(function(ie){var ee=L();if(ee!==dr){var ue=q();if(!(ie&&!ie.deadline&&ie.target!==ue)){var ne=B.current,he;ee===xi&&ne?he=x?.(ue,ie):ee===wi&&ne?he=_?.(ue,ie):ee===Ei&&ne&&(he=E?.(ue,ie)),ne&&he!==!1&&N()}}}),K=d1(V),W=le(K,1),X=W[0],re=function(ee){switch(ee){case xi:return G(G(G({},$t,u),Vr,m),Hr,g);case wi:return G(G(G({},$t,h),Vr,v),Hr,w);case Ei:return G(G(G({},$t,p),Vr,y),Hr,b);default:return{}}},oe=I.useMemo(function(){return re(j)},[j]),se=m1(j,!e,function(ie){if(ie===$t){var ee=oe[$t];return ee?ee(q()):jv}if(fe in oe){var ue;D(((ue=oe[fe])===null||ue===void 0?void 0:ue.call(oe,q(),null))||null)}return fe===Hr&&j!==dr&&(X(q()),f>0&&(clearTimeout(M.current),M.current=setTimeout(function(){V({deadline:!0})},f))),fe===Ev&&N(),g1}),te=le(se,2),ce=te[0],fe=te[1],ve=Nv(fe);B.current=ve;var Q=U.useRef(null);Av(function(){if(!(A.current&&Q.current===r)){R(r);var ie=A.current;A.current=!0;var ee;!ie&&r&&s&&(ee=xi),ie&&r&&o&&(ee=wi),(ie&&!r&&d||!ie&&l&&!r&&d)&&(ee=Ei);var ue=re(ee);ee&&(e||ue[$t])?(F(ee),ce()):F(dr),Q.current=r}},[r]),U.useEffect(function(){(j===xi&&!s||j===wi&&!o||j===Ei&&!d)&&F(dr)},[s,o,d]),U.useEffect(function(){return function(){A.current=!1,clearTimeout(M.current)}},[]);var Z=I.useRef(!1);U.useEffect(function(){S&&(Z.current=!0),S!==void 0&&j===dr&&((Z.current||S)&&C?.(S),Z.current=!0)},[S,j]);var ae=H;return oe[$t]&&fe===Vr&&(ae=J({transition:"none"},ae)),[j,fe,ae,S??r]}function b1(e){var r=e;Ee(e)==="object"&&(r=e.transitionSupport);function t(n,o){return!!(n.motionName&&r&&o!==!1)}var i=I.forwardRef(function(n,o){var a=n.visible,s=a===void 0?!0:a,c=n.removeOnLeave,d=c===void 0?!0:c,f=n.forceRender,l=n.children,u=n.motionName,h=n.leavedClassName,p=n.eventProps,m=I.useContext(wv),v=m.motion,y=t(n,v),g=U.useRef(),w=U.useRef();function b(){try{return g.current instanceof HTMLElement?g.current:ki(w.current)}catch{return null}}var x=y1(y,s,b,n),_=le(x,4),E=_[0],C=_[1],k=_[2],O=_[3],S=I.useRef(O);O&&(S.current=!0);var R=I.useCallback(function(z){g.current=z,Wl(o,z)},[o]),T,P=J(J({},p),{},{visible:s});if(!l)T=null;else if(E===dr)O?T=l(J({},P),R):!d&&S.current&&h?T=l(J(J({},P),{},{className:h}),R):f||!d&&!h?T=l(J(J({},P),{},{style:{display:"none"}}),R):T=null;else{var L;C===$t?L="prepare":Nv(C)?L="active":C===Vr&&(L="start");var F=ad(u,"".concat(E,"-").concat(L));T=l(J(J({},P),{},{className:ye(ad(u,E),G(G({},F,F&&L),u,typeof u=="string")),style:k}),R)}if(I.isValidElement(T)&&no(T)){var $=Gl(T);$||(T=I.cloneElement(T,{ref:R}))}return I.createElement(s1,{ref:w},T)});return i.displayName="CSSMotion",i}const iu=b1(Rv);var pl="add",gl="keep",ml="remove",_s="removed";function x1(e){var r;return e&&Ee(e)==="object"&&"key"in e?r=e:r={key:e},J(J({},r),{},{key:String(r.key)})}function yl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(x1)}function w1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=[],i=0,n=r.length,o=yl(e),a=yl(r);o.forEach(function(d){for(var f=!1,l=i;l<n;l+=1){var u=a[l];if(u.key===d.key){i<l&&(t=t.concat(a.slice(i,l).map(function(h){return J(J({},h),{},{status:pl})})),i=l),t.push(J(J({},u),{},{status:gl})),i+=1,f=!0;break}}f||t.push(J(J({},d),{},{status:ml}))}),i<n&&(t=t.concat(a.slice(i).map(function(d){return J(J({},d),{},{status:pl})})));var s={};t.forEach(function(d){var f=d.key;s[f]=(s[f]||0)+1});var c=Object.keys(s).filter(function(d){return s[d]>1});return c.forEach(function(d){t=t.filter(function(f){var l=f.key,u=f.status;return l!==d||u!==ml}),t.forEach(function(f){f.key===d&&(f.status=gl)})}),t}var E1=["component","children","onVisibleChanged","onAllRemoved"],_1=["status"],S1=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function C1(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:iu,t=(function(i){gr(o,i);var n=mr(o);function o(){var a;ot(this,o);for(var s=arguments.length,c=new Array(s),d=0;d<s;d++)c[d]=arguments[d];return a=n.call.apply(n,[this].concat(c)),G(Oe(a),"state",{keyEntities:[]}),G(Oe(a),"removeKey",function(f){a.setState(function(l){var u=l.keyEntities.map(function(h){return h.key!==f?h:J(J({},h),{},{status:_s})});return{keyEntities:u}},function(){var l=a.state.keyEntities,u=l.filter(function(h){var p=h.status;return p!==_s}).length;u===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return at(o,[{key:"render",value:function(){var s=this,c=this.state.keyEntities,d=this.props,f=d.component,l=d.children,u=d.onVisibleChanged;d.onAllRemoved;var h=dt(d,E1),p=f||I.Fragment,m={};return S1.forEach(function(v){m[v]=h[v],delete h[v]}),delete h.keys,I.createElement(p,h,c.map(function(v,y){var g=v.status,w=dt(v,_1),b=g===pl||g===gl;return I.createElement(r,qe({},m,{key:w.key,visible:b,eventProps:w,onVisibleChanged:function(_){u?.(_,{key:w.key}),_||s.removeKey(w.key)}}),function(x,_){return l(J(J({},x),{},{index:y}),_)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,c){var d=s.keys,f=c.keyEntities,l=yl(d),u=w1(f,l);return{keyEntities:u.filter(function(h){var p=f.find(function(m){var v=m.key;return h.key===v});return!(p&&p.status===_s&&h.status===ml)})}}}]),o})(I.Component);return G(t,"defaultProps",{component:"div"}),t}C1(Rv);const bl=I.createContext(!0);process.env.NODE_ENV!=="production"&&(bl.displayName="MotionCacheContext");function O1(e){const r=I.useContext(bl),{children:t}=e,[,i]=ln(),{motion:n}=i,o=I.useRef(!1);return o.current||(o.current=r!==n),o.current?I.createElement(bl.Provider,{value:n},I.createElement(a1,{motion:n},t)):t}const Mv=I.memo(({dropdownMatchSelectWidth:e})=>(Wt("ConfigProvider").deprecated(e===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null));process.env.NODE_ENV!=="production"&&(Mv.displayName="PropWarning");const R1=process.env.NODE_ENV!=="production"?Mv:()=>null;var A1=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};let xl=!1;process.env.NODE_ENV;const T1=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Iv;function k1(){return Iv||hl}function P1(e){return Object.keys(e).some(r=>r.endsWith("Color"))}const j1=e=>{const{prefixCls:r,iconPrefixCls:t,theme:i,holderRender:n}=e;r!==void 0&&(Iv=r),i&&P1(i)&&(process.env.NODE_ENV!=="production"&&Xn(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Rb(k1(),i))},N1=e=>{const{children:r,csp:t,autoInsertSpaceInButton:i,alert:n,anchor:o,form:a,locale:s,componentSize:c,direction:d,space:f,splitter:l,virtual:u,dropdownMatchSelectWidth:h,popupMatchSelectWidth:p,popupOverflow:m,legacyLocale:v,parentContext:y,iconPrefixCls:g,theme:w,componentDisabled:b,segmented:x,statistic:_,spin:E,calendar:C,carousel:k,cascader:O,collapse:S,typography:R,checkbox:T,descriptions:P,divider:L,drawer:F,skeleton:$,steps:z,image:H,layout:D,list:j,mentions:A,modal:M,progress:q,result:B,slider:N,breadcrumb:V,menu:K,pagination:W,input:X,textArea:re,empty:oe,badge:se,radio:te,rate:ce,switch:fe,transfer:ve,avatar:Q,message:Z,tag:ae,table:ie,card:ee,tabs:ue,timeline:ne,timePicker:he,upload:Se,notification:Me,tree:be,colorPicker:De,datePicker:Ce,rangePicker:Re,flex:ke,wave:Te,dropdown:_e,warning:Be,tour:ge,tooltip:xe,popover:Ge,popconfirm:Gt,floatButton:yr,floatButtonGroup:Ar,variant:cn,inputNumber:Tr,treeSelect:Pt}=e,st=I.useCallback(($e,Xe)=>{const{prefixCls:ht}=e;if(Xe)return Xe;const ut=ht||y.getPrefixCls("");return $e?`${ut}-${$e}`:ut},[y.getPrefixCls,e.prefixCls]),Ye=g||y.iconPrefixCls||tu,Yt=t||y.csp;e1(Ye,Yt);const lt=i1(w,y.theme,{prefixCls:st("")});process.env.NODE_ENV!=="production"&&(xl=xl||!!lt);const Ie={csp:Yt,autoInsertSpaceInButton:i,alert:n,anchor:o,locale:s||v,direction:d,space:f,splitter:l,virtual:u,popupMatchSelectWidth:p??h,popupOverflow:m,getPrefixCls:st,iconPrefixCls:Ye,theme:lt,segmented:x,statistic:_,spin:E,calendar:C,carousel:k,cascader:O,collapse:S,typography:R,checkbox:T,descriptions:P,divider:L,drawer:F,skeleton:$,steps:z,image:H,input:X,textArea:re,layout:D,list:j,mentions:A,modal:M,progress:q,result:B,slider:N,breadcrumb:V,menu:K,pagination:W,empty:oe,badge:se,radio:te,rate:ce,switch:fe,transfer:ve,avatar:Q,message:Z,tag:ae,table:ie,card:ee,tabs:ue,timeline:ne,timePicker:he,upload:Se,notification:Me,tree:be,colorPicker:De,datePicker:Ce,rangePicker:Re,flex:ke,wave:Te,dropdown:_e,warning:Be,tour:ge,tooltip:xe,popover:Ge,popconfirm:Gt,floatButton:yr,floatButtonGroup:Ar,variant:cn,inputNumber:Tr,treeSelect:Pt};process.env.NODE_ENV!=="production"&&Wt("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Pe=Object.assign({},y);Object.keys(Ie).forEach($e=>{Ie[$e]!==void 0&&(Pe[$e]=Ie[$e])}),T1.forEach($e=>{const Xe=e[$e];Xe&&(Pe[$e]=Xe)}),typeof i<"u"&&(Pe.button=Object.assign({autoInsertSpace:i},Pe.button));const rt=Ul(()=>Pe,Pe,($e,Xe)=>{const ht=Object.keys($e),ut=Object.keys(Xe);return ht.length!==ut.length||ht.some(Bt=>$e[Bt]!==Xe[Bt])}),{layer:qt}=I.useContext(Yn),gt=I.useMemo(()=>({prefixCls:Ye,csp:Yt,layer:qt?"antd":void 0}),[Ye,Yt,qt]);let We=I.createElement(I.Fragment,null,I.createElement(R1,{dropdownMatchSelectWidth:h}),r);const ar=I.useMemo(()=>{var $e,Xe,ht,ut;return Br((($e=Jr.Form)===null||$e===void 0?void 0:$e.defaultValidateMessages)||{},((ht=(Xe=rt.locale)===null||Xe===void 0?void 0:Xe.Form)===null||ht===void 0?void 0:ht.defaultValidateMessages)||{},((ut=rt.form)===null||ut===void 0?void 0:ut.validateMessages)||{},a?.validateMessages||{})},[rt,a?.validateMessages]);Object.keys(ar).length>0&&(We=I.createElement(ab.Provider,{value:ar},We)),s&&(We=I.createElement(uv,{locale:s,_ANT_MARK__:lv},We)),We=I.createElement(Vl.Provider,{value:gt},We),c&&(We=I.createElement(Tb,{size:c},We)),We=I.createElement(O1,null,We);const Xt=I.useMemo(()=>{const $e=lt||{},{algorithm:Xe,token:ht,components:ut,cssVar:Bt}=$e,kr=A1($e,["algorithm","token","components","cssVar"]),jt=Xe&&(!Array.isArray(Xe)||Xe.length>0)?al(Xe):fv,Et={};Object.entries(ut||{}).forEach(([Nt,Pr])=>{const Ve=Object.assign({},Pr);"algorithm"in Ve&&(Ve.algorithm===!0?Ve.theme=jt:(Array.isArray(Ve.algorithm)||typeof Ve.algorithm=="function")&&(Ve.theme=al(Ve.algorithm)),delete Ve.algorithm),Et[Nt]=Ve});const Vt=Object.assign(Object.assign({},zn),ht);return Object.assign(Object.assign({},kr),{theme:jt,token:Vt,components:Et,override:Object.assign({override:Vt},Et),cssVar:Bt})},[lt]);return w&&(We=I.createElement(dv.Provider,{value:Xt},We)),rt.warning&&(We=I.createElement(av.Provider,{value:rt.warning},We)),b!==void 0&&(We=I.createElement(Ab,{disabled:b},We)),I.createElement(Kt.Provider,{value:rt},We)},un=e=>{const r=I.useContext(Kt),t=I.useContext(eu);return I.createElement(N1,Object.assign({parentContext:r,legacyLocale:t},e))};un.ConfigContext=Kt;un.SizeContext=en;un.config=j1;un.useConfig=kb;Object.defineProperty(un,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Xn(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),en)});process.env.NODE_ENV!=="production"&&(un.displayName="ConfigProvider");function Lv(e){var r=e.children,t=e.prefixCls,i=e.id,n=e.overlayInnerStyle,o=e.bodyClassName,a=e.className,s=e.style;return I.createElement("div",{className:ye("".concat(t,"-content"),a),style:s},I.createElement("div",{className:ye("".concat(t,"-inner"),o),id:i,role:"tooltip",style:n},typeof r=="function"?r():r))}var $v=I.createContext(null),ld=[];function M1(e,r){var t=I.useState(function(){if(!pt())return null;var p=document.createElement("div");return process.env.NODE_ENV!=="production"&&r&&p.setAttribute("data-debug",r),p}),i=le(t,1),n=i[0],o=I.useRef(!1),a=I.useContext($v),s=I.useState(ld),c=le(s,2),d=c[0],f=c[1],l=a||(o.current?void 0:function(p){f(function(m){var v=[p].concat(me(m));return v})});function u(){n.parentElement||document.body.appendChild(n),o.current=!0}function h(){var p;(p=n.parentElement)===null||p===void 0||p.removeChild(n),o.current=!1}return Ue(function(){return e?a?a(u):u():h(),h},[e]),Ue(function(){d.length&&(d.forEach(function(p){return p()}),f(ld))},[d]),[n,l]}function I1(e){var r="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),t=document.createElement("div");t.id=r;var i=t.style;i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll";var n,o;if(e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(s.width,10),d=parseInt(s.height,10);try{var f=c?"width: ".concat(s.width,";"):"",l=d?"height: ".concat(s.height,";"):"";rr(`
|
|
174
174
|
#`.concat(r,`::-webkit-scrollbar {
|
|
175
175
|
`).concat(f,`
|
|
176
176
|
`).concat(l,`
|
|
177
|
-
}`),r)}catch(p){console.error(p),n=c,o=d}}document.body.appendChild(t);var u=e&&n&&!isNaN(n)?n:t.offsetWidth-t.clientWidth,h=e&&o&&!isNaN(o)?o:t.offsetHeight-t.clientHeight;return document.body.removeChild(t),$n(r),{width:u,height:h}}function
|
|
177
|
+
}`),r)}catch(p){console.error(p),n=c,o=d}}document.body.appendChild(t);var u=e&&n&&!isNaN(n)?n:t.offsetWidth-t.clientWidth,h=e&&o&&!isNaN(o)?o:t.offsetHeight-t.clientHeight;return document.body.removeChild(t),$n(r),{width:u,height:h}}function L1(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:I1(e)}function $1(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var F1="rc-util-locker-".concat(Date.now()),ud=0;function D1(e){var r=!!e,t=I.useState(function(){return ud+=1,"".concat(F1,"_").concat(ud)}),i=le(t,1),n=i[0];Ue(function(){if(r){var o=L1(document.body).width,a=$1();rr(`
|
|
178
178
|
html body {
|
|
179
179
|
overflow-y: hidden;
|
|
180
180
|
`.concat(a?"width: calc(100% - ".concat(o,"px);"):"",`
|
|
181
|
-
}`),n)}else $n(n);return function(){$n(n)}},[r,n])}var D1=!1;function q1(e){return D1}var ld=function(r){return r===!1?!1:!pt()||!r?null:typeof r=="string"?document.querySelector(r):typeof r=="function"?r():r},nu=I.forwardRef(function(e,r){var t=e.open,i=e.autoLock,n=e.getContainer,o=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,c=e.children,d=I.useState(t),f=le(d,2),l=f[0],u=f[1],h=l||t;process.env.NODE_ENV!=="production"&&ze(pt()||!t,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),I.useEffect(function(){(s||t)&&u(t)},[t,s]);var p=I.useState(function(){return ld(n)}),m=le(p,2),v=m[0],y=m[1];I.useEffect(function(){var R=ld(n);y(R??null)});var g=N1(h&&!v,o),w=le(g,2),b=w[0],x=w[1],_=v??b;F1(i&&t&&pt()&&(_===b||_===document.body));var E=null;if(c&&ro(c)&&r){var C=c;E=C.ref}var P=Ul(E,r);if(!h||!pt()||v===void 0)return null;var O=_===!1||q1(),S=c;return r&&(S=I.cloneElement(c,{ref:P})),I.createElement(Lv.Provider,{value:x},O?S:In.createPortal(S,_))});process.env.NODE_ENV!=="production"&&(nu.displayName="Portal");function B1(){var e=J({},I);return e.useId}var ud=0,cd=B1();const $v=cd?function(r){var t=cd();return r||(process.env.NODE_ENV==="test"?"test-id":t)}:function(r){var t=I.useState("ssr-id"),i=le(t,2),n=i[0],o=i[1];return I.useEffect(function(){var a=ud;ud+=1,o("rc_unique_".concat(a))},[]),r||(process.env.NODE_ENV==="test"?"test-id":n)},V1=(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 H1(e){var r=e.prefixCls,t=e.align,i=e.arrow,n=e.arrowPos,o=i||{},a=o.className,s=o.content,c=n.x,d=c===void 0?0:c,f=n.y,l=f===void 0?0:f,u=I.useRef();if(!t||!t.points)return null;var h={position:"absolute"};if(t.autoArrow!==!1){var p=t.points[0],m=t.points[1],v=p[0],y=p[1],g=m[0],w=m[1];v===g||!["t","b"].includes(v)?h.top=l:v==="t"?h.top=0:h.bottom=0,y===w||!["l","r"].includes(y)?h.left=d:y==="l"?h.left=0:h.right=0}return I.createElement("div",{ref:u,className:ye("".concat(r,"-arrow"),a),style:h},s)}function z1(e){var r=e.prefixCls,t=e.open,i=e.zIndex,n=e.mask,o=e.motion;return n?I.createElement(ru,qe({},o,{motionAppear:!0,visible:t,removeOnLeave:!0}),function(a){var s=a.className;return I.createElement("div",{style:{zIndex:i},className:ye("".concat(r,"-mask"),s)})}):null}var Fv=I.memo(function(e){var r=e.children;return r},function(e,r){return r.cache});process.env.NODE_ENV!=="production"&&(Fv.displayName="PopupContent");var Dv=I.forwardRef(function(e,r){var t=e.popup,i=e.className,n=e.prefixCls,o=e.style,a=e.target,s=e.onVisibleChanged,c=e.open,d=e.keepDom,f=e.fresh,l=e.onClick,u=e.mask,h=e.arrow,p=e.arrowPos,m=e.align,v=e.motion,y=e.maskMotion,g=e.forceRender,w=e.getPopupContainer,b=e.autoDestroy,x=e.portal,_=e.zIndex,E=e.onMouseEnter,C=e.onMouseLeave,P=e.onPointerEnter,O=e.onPointerDownCapture,S=e.ready,R=e.offsetX,T=e.offsetY,k=e.offsetR,L=e.offsetB,F=e.onAlign,$=e.onPrepare,z=e.stretch,H=e.targetWidth,D=e.targetHeight,j=typeof t=="function"?t():t,A=c||d,M=w?.length>0,q=I.useState(!w||!M),B=le(q,2),N=B[0],V=B[1];if(Ue(function(){!N&&M&&a&&V(!0)},[N,M,a]),!N)return null;var K="auto",W={left:"-1000vw",top:"-1000vh",right:K,bottom:K};if(S||!c){var X,re=m.points,oe=m.dynamicInset||((X=m._experimental)===null||X===void 0?void 0:X.dynamicInset),se=oe&&re[0][1]==="r",te=oe&&re[0][0]==="b";se?(W.right=k,W.left=K):(W.left=R,W.right=K),te?(W.bottom=L,W.top=K):(W.top=T,W.bottom=K)}var ce={};return z&&(z.includes("height")&&D?ce.height=D:z.includes("minHeight")&&D&&(ce.minHeight=D),z.includes("width")&&H?ce.width=H:z.includes("minWidth")&&H&&(ce.minWidth=H)),c||(ce.pointerEvents="none"),I.createElement(x,{open:g||A,getContainer:w&&function(){return w(a)},autoDestroy:b},I.createElement(z1,{prefixCls:n,open:c,zIndex:_,mask:u,motion:y}),I.createElement(an,{onResize:F,disabled:!c},function(fe){return I.createElement(ru,qe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:g,leavedClassName:"".concat(n,"-hidden")},v,{onAppearPrepare:$,onEnterPrepare:$,visible:c,onVisibleChanged:function(Q){var Z;v==null||(Z=v.onVisibleChanged)===null||Z===void 0||Z.call(v,Q),s(Q)}}),function(ve,Q){var Z=ve.className,ae=ve.style,ie=ye(n,Z,i);return I.createElement("div",{ref:Gn(fe,r,Q),className:ie,style:J(J(J(J({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},W),ce),ae),{},{boxSizing:"border-box",zIndex:_},o),onMouseEnter:E,onMouseLeave:C,onPointerEnter:P,onClick:l,onPointerDownCapture:O},h&&I.createElement(H1,{prefixCls:n,arrow:h,arrowPos:p,align:m}),I.createElement(Fv,{cache:!c&&!f},j))})}))});process.env.NODE_ENV!=="production"&&(Dv.displayName="Popup");var qv=I.forwardRef(function(e,r){var t=e.children,i=e.getTriggerDOMNode,n=ro(t),o=I.useCallback(function(s){zl(r,i?i(s):s)},[i]),a=Ul(o,Wl(t));return n?I.cloneElement(t,{ref:a}):t});process.env.NODE_ENV!=="production"&&(qv.displayName="TriggerWrapper");var fd=I.createContext(null);function dd(e){return e?Array.isArray(e)?e:[e]:[]}function U1(e,r,t,i){return I.useMemo(function(){var n=dd(t??r),o=dd(i??r),a=new Set(n),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,r,t,i])}const W1=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var r=e.getBBox(),t=r.width,i=r.height;if(t||i)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect(),o=n.width,a=n.height;if(o||a)return!0}}return!1});function K1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2?arguments[2]:void 0;return t?e[0]===r[0]:e[0]===r[0]&&e[1]===r[1]}function G1(e,r,t,i){for(var n=t.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s,c=o[a];if(K1((s=e[c])===null||s===void 0?void 0:s.points,n,i))return"".concat(r,"-placement-").concat(c)}return""}function hd(e,r,t,i){return r||(t?{motionName:"".concat(e,"-").concat(t)}:i?{motionName:i}:null)}function Qn(e){return e.ownerDocument.defaultView}function xl(e){for(var r=[],t=e?.parentElement,i=["hidden","scroll","clip","auto"];t;){var n=Qn(t).getComputedStyle(t),o=n.overflowX,a=n.overflowY,s=n.overflow;[o,a,s].some(function(c){return i.includes(c)})&&r.push(t),t=t.parentElement}return r}function Wn(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?r:e}function On(e){return Wn(parseFloat(e),0)}function vd(e,r){var t=J({},e);return(r||[]).forEach(function(i){if(!(i instanceof HTMLBodyElement||i instanceof HTMLHtmlElement)){var n=Qn(i).getComputedStyle(i),o=n.overflow,a=n.overflowClipMargin,s=n.borderTopWidth,c=n.borderBottomWidth,d=n.borderLeftWidth,f=n.borderRightWidth,l=i.getBoundingClientRect(),u=i.offsetHeight,h=i.clientHeight,p=i.offsetWidth,m=i.clientWidth,v=On(s),y=On(c),g=On(d),w=On(f),b=Wn(Math.round(l.width/p*1e3)/1e3),x=Wn(Math.round(l.height/u*1e3)/1e3),_=(p-m-g-w)*b,E=(u-h-v-y)*x,C=v*x,P=y*x,O=g*b,S=w*b,R=0,T=0;if(o==="clip"){var k=On(a);R=k*b,T=k*x}var L=l.x+O-R,F=l.y+C-T,$=L+l.width+2*R-O-S-_,z=F+l.height+2*T-C-P-E;t.left=Math.max(t.left,L),t.top=Math.max(t.top,F),t.right=Math.min(t.right,$),t.bottom=Math.min(t.bottom,z)}}),t}function pd(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t="".concat(r),i=t.match(/^(.*)\%$/);return i?e*(parseFloat(i[1])/100):parseFloat(t)}function gd(e,r){var t=r||[],i=le(t,2),n=i[0],o=i[1];return[pd(e.width,n),pd(e.height,o)]}function md(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Lr(e,r){var t=r[0],i=r[1],n,o;return t==="t"?o=e.y:t==="b"?o=e.y+e.height:o=e.y+e.height/2,i==="l"?n=e.x:i==="r"?n=e.x+e.width:n=e.x+e.width/2,{x:n,y:o}}function fr(e,r){var t={t:"b",b:"t",l:"r",r:"l"};return e.map(function(i,n){return n===r?t[i]||"c":i}).join("")}function Y1(e,r,t,i,n,o,a){var s=I.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:n[i]||{}}),c=le(s,2),d=c[0],f=c[1],l=I.useRef(0),u=I.useMemo(function(){return r?xl(r):[]},[r]),h=I.useRef({}),p=function(){h.current={}};e||p();var m=vt(function(){if(r&&t&&e){let _t=function(pn,Zt){var cr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:de,gn=A.x+pn,di=A.y+Zt,wo=gn+te,Eo=di+se,_o=Math.max(gn,cr.left),pe=Math.max(di,cr.top),we=Math.min(wo,cr.right),He=Math.min(Eo,cr.bottom);return Math.max(0,(we-_o)*(He-pe))},Nr=function(){jt=A.y+ke,Et=jt+se,Vt=A.x+Ie,Nt=Vt+te};var g,w,b,x,_=r,E=_.ownerDocument,C=Qn(_),P=C.getComputedStyle(_),O=P.position,S=_.style.left,R=_.style.top,T=_.style.right,k=_.style.bottom,L=_.style.overflow,F=J(J({},n[i]),o),$=E.createElement("div");(g=_.parentElement)===null||g===void 0||g.appendChild($),$.style.left="".concat(_.offsetLeft,"px"),$.style.top="".concat(_.offsetTop,"px"),$.style.position=O,$.style.height="".concat(_.offsetHeight,"px"),$.style.width="".concat(_.offsetWidth,"px"),_.style.left="0",_.style.top="0",_.style.right="auto",_.style.bottom="auto",_.style.overflow="hidden";var z;if(Array.isArray(t))z={x:t[0],y:t[1],width:0,height:0};else{var H,D,j=t.getBoundingClientRect();j.x=(H=j.x)!==null&&H!==void 0?H:j.left,j.y=(D=j.y)!==null&&D!==void 0?D:j.top,z={x:j.x,y:j.y,width:j.width,height:j.height}}var A=_.getBoundingClientRect(),M=C.getComputedStyle(_),q=M.height,B=M.width;A.x=(w=A.x)!==null&&w!==void 0?w:A.left,A.y=(b=A.y)!==null&&b!==void 0?b:A.top;var N=E.documentElement,V=N.clientWidth,K=N.clientHeight,W=N.scrollWidth,X=N.scrollHeight,re=N.scrollTop,oe=N.scrollLeft,se=A.height,te=A.width,ce=z.height,fe=z.width,ve={left:0,top:0,right:V,bottom:K},Q={left:-oe,top:-re,right:W-oe,bottom:X-re},Z=F.htmlRegion,ae="visible",ie="visibleFirst";Z!=="scroll"&&Z!==ie&&(Z=ae);var ee=Z===ie,ue=vd(Q,u),ne=vd(ve,u),de=Z===ae?ne:ue,Se=ee?ne:de;_.style.left="auto",_.style.top="auto",_.style.right="0",_.style.bottom="0";var Me=_.getBoundingClientRect();_.style.left=S,_.style.top=R,_.style.right=T,_.style.bottom=k,_.style.overflow=L,(x=_.parentElement)===null||x===void 0||x.removeChild($);var be=Wn(Math.round(te/parseFloat(B)*1e3)/1e3),De=Wn(Math.round(se/parseFloat(q)*1e3)/1e3);if(be===0||De===0||Fn(t)&&!W1(t))return;var Ce=F.offset,Re=F.targetOffset,Pe=gd(A,Ce),Te=le(Pe,2),_e=Te[0],Be=Te[1],ge=gd(z,Re),xe=le(ge,2),Ge=xe[0],Gt=xe[1];z.x-=Ge,z.y-=Gt;var yr=F.points||[],Ar=le(yr,2),cn=Ar[0],Tr=Ar[1],kt=md(Tr),st=md(cn),Ye=Lr(z,kt),Yt=Lr(A,st),lt=J({},F),Ie=Ye.x-Yt.x+_e,ke=Ye.y-Yt.y+Be,rt=_t(Ie,ke),qt=_t(Ie,ke,ne),gt=Lr(z,["t","l"]),We=Lr(A,["t","l"]),ar=Lr(z,["b","r"]),Xt=Lr(A,["b","r"]),$e=F.overflow||{},Xe=$e.adjustX,ht=$e.adjustY,ut=$e.shiftX,Bt=$e.shiftY,Pr=function(Zt){return typeof Zt=="boolean"?Zt:Zt>=0},jt,Et,Vt,Nt;Nr();var kr=Pr(ht),Ve=st[0]===kt[0];if(kr&&st[0]==="t"&&(Et>Se.bottom||h.current.bt)){var br=ke;Ve?br-=se-ce:br=gt.y-Xt.y-Be;var ni=_t(Ie,br),uo=_t(Ie,br,ne);ni>rt||ni===rt&&(!ee||uo>=qt)?(h.current.bt=!0,ke=br,Be=-Be,lt.points=[fr(st,0),fr(kt,0)]):h.current.bt=!1}if(kr&&st[0]==="b"&&(jt<Se.top||h.current.tb)){var xr=ke;Ve?xr+=se-ce:xr=ar.y-We.y-Be;var ii=_t(Ie,xr),co=_t(Ie,xr,ne);ii>rt||ii===rt&&(!ee||co>=qt)?(h.current.tb=!0,ke=xr,Be=-Be,lt.points=[fr(st,0),fr(kt,0)]):h.current.tb=!1}var oi=Pr(Xe),ai=st[1]===kt[1];if(oi&&st[1]==="l"&&(Nt>Se.right||h.current.rl)){var wr=Ie;ai?wr-=te-fe:wr=gt.x-Xt.x-_e;var Er=_t(wr,ke),fn=_t(wr,ke,ne);Er>rt||Er===rt&&(!ee||fn>=qt)?(h.current.rl=!0,Ie=wr,_e=-_e,lt.points=[fr(st,1),fr(kt,1)]):h.current.rl=!1}if(oi&&st[1]==="r"&&(Vt<Se.left||h.current.lr)){var _r=Ie;ai?_r+=te-fe:_r=ar.x-We.x-_e;var dn=_t(_r,ke),jr=_t(_r,ke,ne);dn>rt||dn===rt&&(!ee||jr>=qt)?(h.current.lr=!0,Ie=_r,_e=-_e,lt.points=[fr(st,1),fr(kt,1)]):h.current.lr=!1}Nr();var Mt=ut===!0?0:ut;typeof Mt=="number"&&(Vt<ne.left&&(Ie-=Vt-ne.left-_e,z.x+fe<ne.left+Mt&&(Ie+=z.x-ne.left+fe-Mt)),Nt>ne.right&&(Ie-=Nt-ne.right-_e,z.x>ne.right-Mt&&(Ie+=z.x-ne.right+Mt)));var sr=Bt===!0?0:Bt;typeof sr=="number"&&(jt<ne.top&&(ke-=jt-ne.top-Be,z.y+ce<ne.top+sr&&(ke+=z.y-ne.top+ce-sr)),Et>ne.bottom&&(ke-=Et-ne.bottom-Be,z.y>ne.bottom-sr&&(ke+=z.y-ne.bottom+sr)));var lr=A.x+Ie,ur=lr+te,hn=A.y+ke,fo=hn+se,si=z.x,li=si+fe,ui=z.y,ho=ui+ce,vo=Math.max(lr,si),ci=Math.min(ur,li),po=(vo+ci)/2,go=po-lr,fi=Math.max(hn,ui),mo=Math.min(fo,ho),yo=(fi+mo)/2,bo=yo-hn;a?.(r,lt);var Ht=Me.right-A.x-(Ie+A.width),vn=Me.bottom-A.y-(ke+A.height);be===1&&(Ie=Math.round(Ie),Ht=Math.round(Ht)),De===1&&(ke=Math.round(ke),vn=Math.round(vn));var xo={ready:!0,offsetX:Ie/be,offsetY:ke/De,offsetR:Ht/be,offsetB:vn/De,arrowX:go/be,arrowY:bo/De,scaleX:be,scaleY:De,align:lt};f(xo)}}),v=function(){l.current+=1;var w=l.current;Promise.resolve().then(function(){l.current===w&&m()})},y=function(){f(function(w){return J(J({},w),{},{ready:!1})})};return Ue(y,[i]),Ue(function(){e||y()},[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,v]}function X1(e,r,t,i,n){Ue(function(){if(e&&r&&t){let l=function(){i(),n()};var o=r,a=t,s=xl(o),c=xl(a),d=Qn(a),f=new Set([d].concat(me(s),me(c)));return f.forEach(function(u){u.addEventListener("scroll",l,{passive:!0})}),d.addEventListener("resize",l,{passive:!0}),i(),function(){f.forEach(function(u){u.removeEventListener("scroll",l),d.removeEventListener("resize",l)})}}},[e,r,t])}function Z1(e,r,t,i,n,o,a,s){var c=I.useRef(e);c.current=e;var d=I.useRef(!1);I.useEffect(function(){if(r&&i&&(!n||o)){var l=function(){d.current=!1},u=function(b){var x;c.current&&!a(((x=b.composedPath)===null||x===void 0||(x=x.call(b))===null||x===void 0?void 0:x[0])||b.target)&&!d.current&&s(!1)},h=Qn(i);h.addEventListener("pointerdown",l,!0),h.addEventListener("mousedown",u,!0),h.addEventListener("contextmenu",u,!0);var p=Di(t);if(p&&(p.addEventListener("mousedown",u,!0),p.addEventListener("contextmenu",u,!0)),process.env.NODE_ENV!=="production"){var m,v,y=t==null||(m=t.getRootNode)===null||m===void 0?void 0:m.call(t),g=(v=i.getRootNode)===null||v===void 0?void 0:v.call(i);Kr(y===g,"trigger element and popup element should in same shadow root.")}return function(){h.removeEventListener("pointerdown",l,!0),h.removeEventListener("mousedown",u,!0),h.removeEventListener("contextmenu",u,!0),p&&(p.removeEventListener("mousedown",u,!0),p.removeEventListener("contextmenu",u,!0))}}},[r,t,i,n,o]);function f(){d.current=!0}return f}var Q1=["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 J1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:nu,r=I.forwardRef(function(t,i){var n=t.prefixCls,o=n===void 0?"rc-trigger-popup":n,a=t.children,s=t.action,c=s===void 0?"hover":s,d=t.showAction,f=t.hideAction,l=t.popupVisible,u=t.defaultPopupVisible,h=t.onPopupVisibleChange,p=t.afterPopupVisibleChange,m=t.mouseEnterDelay,v=t.mouseLeaveDelay,y=v===void 0?.1:v,g=t.focusDelay,w=t.blurDelay,b=t.mask,x=t.maskClosable,_=x===void 0?!0:x,E=t.getPopupContainer,C=t.forceRender,P=t.autoDestroy,O=t.destroyPopupOnHide,S=t.popup,R=t.popupClassName,T=t.popupStyle,k=t.popupPlacement,L=t.builtinPlacements,F=L===void 0?{}:L,$=t.popupAlign,z=t.zIndex,H=t.stretch,D=t.getPopupClassNameFromAlign,j=t.fresh,A=t.alignPoint,M=t.onPopupClick,q=t.onPopupAlign,B=t.arrow,N=t.popupMotion,V=t.maskMotion,K=t.popupTransitionName,W=t.popupAnimation,X=t.maskTransitionName,re=t.maskAnimation,oe=t.className,se=t.getTriggerDOMNode,te=dt(t,Q1),ce=P||O||!1,fe=I.useState(!1),ve=le(fe,2),Q=ve[0],Z=ve[1];Ue(function(){Z(V1())},[]);var ae=I.useRef({}),ie=I.useContext(fd),ee=I.useMemo(function(){return{registerSubPopup:function(we,He){ae.current[we]=He,ie?.registerSubPopup(we,He)}}},[ie]),ue=$v(),ne=I.useState(null),de=le(ne,2),Se=de[0],Me=de[1],be=I.useRef(null),De=vt(function(pe){be.current=pe,Fn(pe)&&Se!==pe&&Me(pe),ie?.registerSubPopup(ue,pe)}),Ce=I.useState(null),Re=le(Ce,2),Pe=Re[0],Te=Re[1],_e=I.useRef(null),Be=vt(function(pe){Fn(pe)&&Pe!==pe&&(Te(pe),_e.current=pe)}),ge=I.Children.only(a),xe=ge?.props||{},Ge={},Gt=vt(function(pe){var we,He,Je=Pe;return Je?.contains(pe)||((we=Di(Je))===null||we===void 0?void 0:we.host)===pe||pe===Je||Se?.contains(pe)||((He=Di(Se))===null||He===void 0?void 0:He.host)===pe||pe===Se||Object.values(ae.current).some(function(Ke){return Ke?.contains(pe)||pe===Ke})}),yr=hd(o,N,W,K),Ar=hd(o,V,re,X),cn=I.useState(u||!1),Tr=le(cn,2),kt=Tr[0],st=Tr[1],Ye=l??kt,Yt=vt(function(pe){l===void 0&&st(pe)});Ue(function(){st(l||!1)},[l]);var lt=I.useRef(Ye);lt.current=Ye;var Ie=I.useRef([]);Ie.current=[];var ke=vt(function(pe){var we;Yt(pe),((we=Ie.current[Ie.current.length-1])!==null&&we!==void 0?we:Ye)!==pe&&(Ie.current.push(pe),h?.(pe))}),rt=I.useRef(),qt=function(){clearTimeout(rt.current)},gt=function(we){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;qt(),He===0?ke(we):rt.current=setTimeout(function(){ke(we)},He*1e3)};I.useEffect(function(){return qt},[]);var We=I.useState(!1),ar=le(We,2),Xt=ar[0],$e=ar[1];Ue(function(pe){(!pe||Ye)&&$e(!0)},[Ye]);var Xe=I.useState(null),ht=le(Xe,2),ut=ht[0],Bt=ht[1],Pr=I.useState(null),jt=le(Pr,2),Et=jt[0],Vt=jt[1],Nt=function(we){Vt([we.clientX,we.clientY])},kr=Y1(Ye,Se,A&&Et!==null?Et:Pe,k,F,$,q),Ve=le(kr,11),br=Ve[0],ni=Ve[1],uo=Ve[2],xr=Ve[3],ii=Ve[4],co=Ve[5],oi=Ve[6],ai=Ve[7],wr=Ve[8],Er=Ve[9],fn=Ve[10],_r=U1(Q,c,d,f),dn=le(_r,2),jr=dn[0],Mt=dn[1],sr=jr.has("click"),lr=Mt.has("click")||Mt.has("contextMenu"),ur=vt(function(){Xt||fn()}),hn=function(){lt.current&&A&&lr&>(!1)};X1(Ye,Pe,Se,ur,hn),Ue(function(){ur()},[Et,k]),Ue(function(){Ye&&!(F!=null&&F[k])&&ur()},[JSON.stringify($)]);var fo=I.useMemo(function(){var pe=G1(F,o,Er,A);return ye(pe,D?.(Er))},[Er,D,F,o,A]);I.useImperativeHandle(i,function(){return{nativeElement:_e.current,popupElement:be.current,forceAlign:ur}});var si=I.useState(0),li=le(si,2),ui=li[0],ho=li[1],vo=I.useState(0),ci=le(vo,2),po=ci[0],go=ci[1],fi=function(){if(H&&Pe){var we=Pe.getBoundingClientRect();ho(we.width),go(we.height)}},mo=function(){fi(),ur()},yo=function(we){$e(!1),fn(),p?.(we)},bo=function(){return new Promise(function(we){fi(),Bt(function(){return we})})};Ue(function(){ut&&(fn(),ut(),Bt(null))},[ut]);function Ht(pe,we,He,Je){Ge[pe]=function(Ke){var hi;Je?.(Ke),gt(we,He);for(var So=arguments.length,fu=new Array(So>1?So-1:0),vi=1;vi<So;vi++)fu[vi-1]=arguments[vi];(hi=xe[pe])===null||hi===void 0||hi.call.apply(hi,[xe,Ke].concat(fu))}}(sr||lr)&&(Ge.onClick=function(pe){var we;lt.current&&lr?gt(!1):!lt.current&&sr&&(Nt(pe),gt(!0));for(var He=arguments.length,Je=new Array(He>1?He-1:0),Ke=1;Ke<He;Ke++)Je[Ke-1]=arguments[Ke];(we=xe.onClick)===null||we===void 0||we.call.apply(we,[xe,pe].concat(Je))});var vn=Z1(Ye,lr,Pe,Se,b,_,Gt,gt),xo=jr.has("hover"),_t=Mt.has("hover"),Nr,pn;xo&&(Ht("onMouseEnter",!0,m,function(pe){Nt(pe)}),Ht("onPointerEnter",!0,m,function(pe){Nt(pe)}),Nr=function(we){(Ye||Xt)&&Se!==null&&Se!==void 0&&Se.contains(we.target)&>(!0,m)},A&&(Ge.onMouseMove=function(pe){var we;(we=xe.onMouseMove)===null||we===void 0||we.call(xe,pe)})),_t&&(Ht("onMouseLeave",!1,y),Ht("onPointerLeave",!1,y),pn=function(){gt(!1,y)}),jr.has("focus")&&Ht("onFocus",!0,g),Mt.has("focus")&&Ht("onBlur",!1,w),jr.has("contextMenu")&&(Ge.onContextMenu=function(pe){var we;lt.current&&Mt.has("contextMenu")?gt(!1):(Nt(pe),gt(!0)),pe.preventDefault();for(var He=arguments.length,Je=new Array(He>1?He-1:0),Ke=1;Ke<He;Ke++)Je[Ke-1]=arguments[Ke];(we=xe.onContextMenu)===null||we===void 0||we.call.apply(we,[xe,pe].concat(Je))}),oe&&(Ge.className=ye(xe.className,oe));var Zt=I.useRef(!1);Zt.current||(Zt.current=C||Ye||Xt);var cr=J(J({},xe),Ge),gn={},di=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];di.forEach(function(pe){te[pe]&&(gn[pe]=function(){for(var we,He=arguments.length,Je=new Array(He),Ke=0;Ke<He;Ke++)Je[Ke]=arguments[Ke];(we=cr[pe])===null||we===void 0||we.call.apply(we,[cr].concat(Je)),te[pe].apply(te,Je)})});var wo=I.cloneElement(ge,J(J({},cr),gn)),Eo={x:co,y:oi},_o=B?J({},B!==!0?B:{}):null;return I.createElement(I.Fragment,null,I.createElement(an,{disabled:!Ye,ref:Be,onResize:mo},I.createElement(qv,{getTriggerDOMNode:se},wo)),Zt.current&&I.createElement(fd.Provider,{value:ee},I.createElement(Dv,{portal:e,ref:De,prefixCls:o,popup:S,className:ye(R,fo),style:T,target:Pe,onMouseEnter:Nr,onMouseLeave:pn,onPointerEnter:Nr,zIndex:z,open:Ye,keepDom:Xt,fresh:j,onClick:M,onPointerDownCapture:vn,mask:b,motion:yr,maskMotion:Ar,onVisibleChanged:yo,onPrepare:bo,forceRender:C,autoDestroy:ce,getPopupContainer:E,align:Er,arrow:_o,arrowPos:Eo,ready:br,offsetX:ni,offsetY:uo,offsetR:xr,offsetB:ii,onAlign:ur,stretch:H,targetWidth:ui/ai,targetHeight:po/wr})))});return process.env.NODE_ENV!=="production"&&(r.displayName="Trigger"),r}const ex=J1(nu);var $r={shiftX:64,adjustY:1},Fr={adjustX:1,shiftY:!0},Ot=[0,0],tx={left:{points:["cr","cl"],overflow:Fr,offset:[-4,0],targetOffset:Ot},right:{points:["cl","cr"],overflow:Fr,offset:[4,0],targetOffset:Ot},top:{points:["bc","tc"],overflow:$r,offset:[0,-4],targetOffset:Ot},bottom:{points:["tc","bc"],overflow:$r,offset:[0,4],targetOffset:Ot},topLeft:{points:["bl","tl"],overflow:$r,offset:[0,-4],targetOffset:Ot},leftTop:{points:["tr","tl"],overflow:Fr,offset:[-4,0],targetOffset:Ot},topRight:{points:["br","tr"],overflow:$r,offset:[0,-4],targetOffset:Ot},rightTop:{points:["tl","tr"],overflow:Fr,offset:[4,0],targetOffset:Ot},bottomRight:{points:["tr","br"],overflow:$r,offset:[0,4],targetOffset:Ot},rightBottom:{points:["bl","br"],overflow:Fr,offset:[4,0],targetOffset:Ot},bottomLeft:{points:["tl","bl"],overflow:$r,offset:[0,4],targetOffset:Ot},leftBottom:{points:["br","bl"],overflow:Fr,offset:[-4,0],targetOffset:Ot}},rx=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],nx=function(r,t){var i=r.overlayClassName,n=r.trigger,o=n===void 0?["hover"]:n,a=r.mouseEnterDelay,s=a===void 0?0:a,c=r.mouseLeaveDelay,d=c===void 0?.1:c,f=r.overlayStyle,l=r.prefixCls,u=l===void 0?"rc-tooltip":l,h=r.children,p=r.onVisibleChange,m=r.afterVisibleChange,v=r.transitionName,y=r.animation,g=r.motion,w=r.placement,b=w===void 0?"right":w,x=r.align,_=x===void 0?{}:x,E=r.destroyTooltipOnHide,C=E===void 0?!1:E,P=r.defaultVisible,O=r.getTooltipContainer,S=r.overlayInnerStyle;r.arrowContent;var R=r.overlay,T=r.id,k=r.showArrow,L=k===void 0?!0:k,F=r.classNames,$=r.styles,z=dt(r,rx),H=$v(T),D=U.useRef(null);U.useImperativeHandle(t,function(){return D.current});var j=J({},z);"visible"in r&&(j.popupVisible=r.visible);var A=function(){return I.createElement(Iv,{key:"content",prefixCls:u,id:H,bodyClassName:F?.body,overlayInnerStyle:J(J({},S),$?.body)},R)},M=function(){var B=I.Children.only(h),N=B?.props||{},V=J(J({},N),{},{"aria-describedby":R?H:null});return I.cloneElement(h,V)};return I.createElement(ex,qe({popupClassName:ye(i,F?.root),prefixCls:u,popup:A,action:o,builtinPlacements:tx,popupPlacement:b,ref:D,popupAlign:_,getPopupContainer:O,onPopupVisibleChange:p,afterPopupVisibleChange:m,popupTransitionName:v,popupAnimation:y,popupMotion:g,defaultPopupVisible:P,autoDestroy:C,mouseLeaveDelay:d,popupStyle:J(J({},f),$?.root),mouseEnterDelay:s,arrow:L},j),M())};const ix=U.forwardRef(nx);function Bv(e,r){this.v=e,this.k=r}function ct(e,r,t,i){var n=Object.defineProperty;try{n({},"",{})}catch{n=0}ct=function(a,s,c,d){function f(l,u){ct(a,l,function(h){return this._invoke(l,u,h)})}s?n?n(a,s,{value:c,enumerable:!d,configurable:!d,writable:!d}):a[s]=c:(f("next",0),f("throw",1),f("return",2))},ct(e,r,t,i)}function iu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,r,t=typeof Symbol=="function"?Symbol:{},i=t.iterator||"@@iterator",n=t.toStringTag||"@@toStringTag";function o(h,p,m,v){var y=p&&p.prototype instanceof s?p:s,g=Object.create(y.prototype);return ct(g,"_invoke",(function(w,b,x){var _,E,C,P=0,O=x||[],S=!1,R={p:0,n:0,v:e,a:T,f:T.bind(e,4),d:function(L,F){return _=L,E=0,C=e,R.n=F,a}};function T(k,L){for(E=k,C=L,r=0;!S&&P&&!F&&r<O.length;r++){var F,$=O[r],z=R.p,H=$[2];k>3?(F=H===L)&&(C=$[(E=$[4])?5:(E=3,3)],$[4]=$[5]=e):$[0]<=z&&((F=k<2&&z<$[1])?(E=0,R.v=L,R.n=$[1]):z<H&&(F=k<3||$[0]>L||L>H)&&($[4]=k,$[5]=L,R.n=H,E=0))}if(F||k>1)return a;throw S=!0,L}return function(k,L,F){if(P>1)throw TypeError("Generator is already running");for(S&&L===1&&T(L,F),E=L,C=F;(r=E<2?e:C)||!S;){_||(E?E<3?(E>1&&(R.n=-1),T(E,C)):R.n=C:R.v=C);try{if(P=2,_){if(E||(k="next"),r=_[k]){if(!(r=r.call(_,C)))throw TypeError("iterator result is not an object");if(!r.done)return r;C=r.value,E<2&&(E=0)}else E===1&&(r=_.return)&&r.call(_),E<2&&(C=TypeError("The iterator does not provide a '"+k+"' method"),E=1);_=e}else if((r=(S=R.n<0)?C:w.call(b,R))!==a)break}catch($){_=e,E=1,C=$}finally{P=1}}return{value:r,done:S}}})(h,m,v),!0),g}var a={};function s(){}function c(){}function d(){}r=Object.getPrototypeOf;var f=[][i]?r(r([][i]())):(ct(r={},i,function(){return this}),r),l=d.prototype=s.prototype=Object.create(f);function u(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,d):(h.__proto__=d,ct(h,n,"GeneratorFunction")),h.prototype=Object.create(l),h}return c.prototype=d,ct(l,"constructor",d),ct(d,"constructor",c),c.displayName="GeneratorFunction",ct(d,n,"GeneratorFunction"),ct(l),ct(l,n,"Generator"),ct(l,i,function(){return this}),ct(l,"toString",function(){return"[object Generator]"}),(iu=function(){return{w:o,m:u}})()}function zi(e,r){function t(n,o,a,s){try{var c=e[n](o),d=c.value;return d instanceof Bv?r.resolve(d.v).then(function(f){t("next",f,a,s)},function(f){t("throw",f,a,s)}):r.resolve(d).then(function(f){c.value=f,a(c)},function(f){return t("throw",f,a,s)})}catch(f){s(f)}}var i;this.next||(ct(zi.prototype),ct(zi.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ct(this,"_invoke",function(n,o,a){function s(){return new r(function(c,d){t(n,a,c,d)})}return i=i?i.then(s,s):s()},!0)}function Vv(e,r,t,i,n){return new zi(iu().w(e,r,t,i),n||Promise)}function ox(e,r,t,i,n){var o=Vv(e,r,t,i,n);return o.next().then(function(a){return a.done?a.value:o.next()})}function ax(e){var r=Object(e),t=[];for(var i in r)t.unshift(i);return function n(){for(;t.length;)if((i=t.pop())in r)return n.value=i,n.done=!1,n;return n.done=!0,n}}function yd(e){if(e!=null){var r=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],t=0;if(r)return r.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}}throw new TypeError(Ee(e)+" is not iterable")}function Tt(){var e=iu(),r=e.m(Tt),t=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function i(a){var s=typeof a=="function"&&a.constructor;return!!s&&(s===t||(s.displayName||s.name)==="GeneratorFunction")}var n={throw:1,return:2,break:3,continue:3};function o(a){var s,c;return function(d){s||(s={stop:function(){return c(d.a,2)},catch:function(){return d.v},abrupt:function(l,u){return c(d.a,n[l],u)},delegateYield:function(l,u,h){return s.resultName=u,c(d.d,yd(l),h)},finish:function(l){return c(d.f,l)}},c=function(l,u,h){d.p=s.prev,d.n=s.next;try{return l(u,h)}finally{s.next=d.n}}),s.resultName&&(s[s.resultName]=d.v,s.resultName=void 0),s.sent=d.v,s.next=d.n;try{return a.call(this,s)}finally{d.p=s.prev,d.n=s.next}}}return(Tt=function(){return{wrap:function(c,d,f,l){return e.w(o(c),d,f,l&&l.reverse())},isGeneratorFunction:i,mark:e.m,awrap:function(c,d){return new Bv(c,d)},AsyncIterator:zi,async:function(c,d,f,l,u){return(i(d)?Vv:ox)(o(c),d,f,l,u)},keys:ax,values:yd}})()}function bd(e,r,t,i,n,o,a){try{var s=e[o](a),c=s.value}catch(d){return void t(d)}s.done?r(c):Promise.resolve(c).then(i,n)}function Jn(e){return function(){var r=this,t=arguments;return new Promise(function(i,n){var o=e.apply(r,t);function a(c){bd(o,i,n,a,s,"next",c)}function s(c){bd(o,i,n,a,s,"throw",c)}a(void 0)})}}var Cr="RC_FORM_INTERNAL_HOOKS",Fe=function(){ze(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},rn=I.createContext({getFieldValue:Fe,getFieldsValue:Fe,getFieldError:Fe,getFieldWarning:Fe,getFieldsError:Fe,isFieldsTouched:Fe,isFieldTouched:Fe,isFieldValidating:Fe,isFieldsValidating:Fe,resetFields:Fe,setFields:Fe,setFieldValue:Fe,setFieldsValue:Fe,validateFields:Fe,submit:Fe,getInternalHooks:function(){return Fe(),{dispatch:Fe,initEntityValue:Fe,registerField:Fe,useSubscribe:Fe,setInitialValues:Fe,destroyForm:Fe,setCallbacks:Fe,registerWatch:Fe,getFields:Fe,setValidateMessages:Fe,setPreserve:Fe,getInitialValue:Fe}}}),Ui=I.createContext(null);function wl(e){return e==null?[]:Array.isArray(e)?e:[e]}function sx(e){return e&&!!e._init}function El(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var r=JSON.parse(JSON.stringify(this));return r.clone=this.clone,r}}}var _l=El();function lx(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function ux(e,r,t){if(Kl())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,r);var n=new(e.bind.apply(e,i));return t&&Dn(n,t.prototype),n}function Sl(e){var r=typeof Map=="function"?new Map:void 0;return Sl=function(i){if(i===null||!lx(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(i))return r.get(i);r.set(i,n)}function n(){return ux(i,arguments,qn(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Dn(n,i)},Sl(e)}var cx=/%[sdj%]/g,Hv=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(Hv=function(r,t){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&t.every(function(i){return typeof i=="string"})&&console.warn(r,t)});function Cl(e){if(!e||!e.length)return null;var r={};return e.forEach(function(t){var i=t.field;r[i]=r[i]||[],r[i].push(t)}),r}function wt(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),i=1;i<r;i++)t[i-1]=arguments[i];var n=0,o=t.length;if(typeof e=="function")return e.apply(null,t);if(typeof e=="string"){var a=e.replace(cx,function(s){if(s==="%%")return"%";if(n>=o)return s;switch(s){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function fx(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function tt(e,r){return!!(e==null||r==="array"&&Array.isArray(e)&&!e.length||fx(r)&&typeof e=="string"&&!e)}function dx(e,r,t){var i=[],n=0,o=e.length;function a(s){i.push.apply(i,me(s||[])),n++,n===o&&t(i)}e.forEach(function(s){r(s,a)})}function xd(e,r,t){var i=0,n=e.length;function o(a){if(a&&a.length){t(a);return}var s=i;i=i+1,s<n?r(e[s],o):t([])}o([])}function hx(e){var r=[];return Object.keys(e).forEach(function(t){r.push.apply(r,me(e[t]||[]))}),r}var wd=(function(e){gr(t,e);var r=mr(t);function t(i,n){var o;return ot(this,t),o=r.call(this,"Async Validation Error"),G(Oe(o),"errors",void 0),G(Oe(o),"fields",void 0),o.errors=i,o.fields=n,o}return at(t)})(Sl(Error));function vx(e,r,t,i,n){if(r.first){var o=new Promise(function(u,h){var p=function(y){return i(y),y.length?h(new wd(y,Cl(y))):u(n)},m=hx(e);xd(m,t,p)});return o.catch(function(u){return u}),o}var a=r.firstFields===!0?Object.keys(e):r.firstFields||[],s=Object.keys(e),c=s.length,d=0,f=[],l=new Promise(function(u,h){var p=function(v){if(f.push.apply(f,v),d++,d===c)return i(f),f.length?h(new wd(f,Cl(f))):u(n)};s.length||(i(f),u(n)),s.forEach(function(m){var v=e[m];a.indexOf(m)!==-1?xd(v,t,p):dx(v,t,p)})});return l.catch(function(u){return u}),l}function px(e){return!!(e&&e.message!==void 0)}function gx(e,r){for(var t=e,i=0;i<r.length;i++){if(t==null)return t;t=t[r[i]]}return t}function Ed(e,r){return function(t){var i;return e.fullFields?i=gx(r,e.fullFields):i=r[t.field||e.fullField],px(t)?(t.field=t.field||e.fullField,t.fieldValue=i,t):{message:typeof t=="function"?t():t,fieldValue:i,field:t.field||e.fullField}}}function _d(e,r){if(r){for(var t in r)if(r.hasOwnProperty(t)){var i=r[t];Ee(i)==="object"&&Ee(e[t])==="object"?e[t]=J(J({},e[t]),i):e[t]=i}}return e}var Dr="enum",mx=function(r,t,i,n,o){r[Dr]=Array.isArray(r[Dr])?r[Dr]:[],r[Dr].indexOf(t)===-1&&n.push(wt(o.messages[Dr],r.fullField,r[Dr].join(", ")))},yx=function(r,t,i,n,o){if(r.pattern){if(r.pattern instanceof RegExp)r.pattern.lastIndex=0,r.pattern.test(t)||n.push(wt(o.messages.pattern.mismatch,r.fullField,t,r.pattern));else if(typeof r.pattern=="string"){var a=new RegExp(r.pattern);a.test(t)||n.push(wt(o.messages.pattern.mismatch,r.fullField,t,r.pattern))}}},bx=function(r,t,i,n,o){var a=typeof r.len=="number",s=typeof r.min=="number",c=typeof r.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=t,l=null,u=typeof t=="number",h=typeof t=="string",p=Array.isArray(t);if(u?l="number":h?l="string":p&&(l="array"),!l)return!1;p&&(f=t.length),h&&(f=t.replace(d,"_").length),a?f!==r.len&&n.push(wt(o.messages[l].len,r.fullField,r.len)):s&&!c&&f<r.min?n.push(wt(o.messages[l].min,r.fullField,r.min)):c&&!s&&f>r.max?n.push(wt(o.messages[l].max,r.fullField,r.max)):s&&c&&(f<r.min||f>r.max)&&n.push(wt(o.messages[l].range,r.fullField,r.min,r.max))},zv=function(r,t,i,n,o,a){r.required&&(!i.hasOwnProperty(r.field)||tt(t,a||r.type))&&n.push(wt(o.messages.required,r.fullField))},Si;const xx=(function(){if(Si)return Si;var e="[a-fA-F\\d:]",r=function(_){return _&&_.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},t="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",i="[a-fA-F\\d]{1,4}",n=["(?:".concat(i,":){7}(?:").concat(i,"|:)"),"(?:".concat(i,":){6}(?:").concat(t,"|:").concat(i,"|:)"),"(?:".concat(i,":){5}(?::").concat(t,"|(?::").concat(i,"){1,2}|:)"),"(?:".concat(i,":){4}(?:(?::").concat(i,"){0,1}:").concat(t,"|(?::").concat(i,"){1,3}|:)"),"(?:".concat(i,":){3}(?:(?::").concat(i,"){0,2}:").concat(t,"|(?::").concat(i,"){1,4}|:)"),"(?:".concat(i,":){2}(?:(?::").concat(i,"){0,3}:").concat(t,"|(?::").concat(i,"){1,5}|:)"),"(?:".concat(i,":){1}(?:(?::").concat(i,"){0,4}:").concat(t,"|(?::").concat(i,"){1,6}|:)"),"(?::(?:(?::".concat(i,"){0,5}:").concat(t,"|(?::").concat(i,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(n.join("|"),")").concat(o),s=new RegExp("(?:^".concat(t,"$)|(?:^").concat(a,"$)")),c=new RegExp("^".concat(t,"$")),d=new RegExp("^".concat(a,"$")),f=function(_){return _&&_.exact?s:new RegExp("(?:".concat(r(_)).concat(t).concat(r(_),")|(?:").concat(r(_)).concat(a).concat(r(_),")"),"g")};f.v4=function(x){return x&&x.exact?c:new RegExp("".concat(r(x)).concat(t).concat(r(x)),"g")},f.v6=function(x){return x&&x.exact?d:new RegExp("".concat(r(x)).concat(a).concat(r(x)),"g")};var l="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",h=f.v4().source,p=f.v6().source,m="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",w='(?:[/?#][^\\s"]*)?',b="(?:".concat(l,"|www\\.)").concat(u,"(?:localhost|").concat(h,"|").concat(p,"|").concat(m).concat(v).concat(y,")").concat(g).concat(w);return Si=new RegExp("(?:^".concat(b,"$)"),"i"),Si});var Sd={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Pn={integer:function(r){return Pn.number(r)&&parseInt(r,10)===r},float:function(r){return Pn.number(r)&&!Pn.integer(r)},array:function(r){return Array.isArray(r)},regexp:function(r){if(r instanceof RegExp)return!0;try{return!!new RegExp(r)}catch{return!1}},date:function(r){return typeof r.getTime=="function"&&typeof r.getMonth=="function"&&typeof r.getYear=="function"&&!isNaN(r.getTime())},number:function(r){return isNaN(r)?!1:typeof r=="number"},object:function(r){return Ee(r)==="object"&&!Pn.array(r)},method:function(r){return typeof r=="function"},email:function(r){return typeof r=="string"&&r.length<=320&&!!r.match(Sd.email)},url:function(r){return typeof r=="string"&&r.length<=2048&&!!r.match(xx())},hex:function(r){return typeof r=="string"&&!!r.match(Sd.hex)}},wx=function(r,t,i,n,o){if(r.required&&t===void 0){zv(r,t,i,n,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=r.type;a.indexOf(s)>-1?Pn[s](t)||n.push(wt(o.messages.types[s],r.fullField,r.type)):s&&Ee(t)!==r.type&&n.push(wt(o.messages.types[s],r.fullField,r.type))},Ex=function(r,t,i,n,o){(/^\s+$/.test(t)||t==="")&&n.push(wt(o.messages.whitespace,r.fullField))};const Ae={required:zv,whitespace:Ex,type:wx,range:bx,enum:mx,pattern:yx};var _x=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(tt(t)&&!r.required)return i();Ae.required(r,t,n,a,o)}i(a)},Sx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(t==null&&!r.required)return i();Ae.required(r,t,n,a,o,"array"),t!=null&&(Ae.type(r,t,n,a,o),Ae.range(r,t,n,a,o))}i(a)},Cx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(tt(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&Ae.type(r,t,n,a,o)}i(a)},Ox=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(tt(t,"date")&&!r.required)return i();if(Ae.required(r,t,n,a,o),!tt(t,"date")){var c;t instanceof Date?c=t:c=new Date(t),Ae.type(r,c,n,a,o),c&&Ae.range(r,c.getTime(),n,a,o)}}i(a)},Rx="enum",Ax=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(tt(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&Ae[Rx](r,t,n,a,o)}i(a)},Tx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(tt(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&(Ae.type(r,t,n,a,o),Ae.range(r,t,n,a,o))}i(a)},Px=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(tt(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&(Ae.type(r,t,n,a,o),Ae.range(r,t,n,a,o))}i(a)},kx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(tt(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&Ae.type(r,t,n,a,o)}i(a)},jx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(t===""&&(t=void 0),tt(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&(Ae.type(r,t,n,a,o),Ae.range(r,t,n,a,o))}i(a)},Nx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(tt(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&Ae.type(r,t,n,a,o)}i(a)},Mx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(tt(t,"string")&&!r.required)return i();Ae.required(r,t,n,a,o),tt(t,"string")||Ae.pattern(r,t,n,a,o)}i(a)},Ix=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(tt(t)&&!r.required)return i();Ae.required(r,t,n,a,o),tt(t)||Ae.type(r,t,n,a,o)}i(a)},Lx=function(r,t,i,n,o){var a=[],s=Array.isArray(t)?"array":Ee(t);Ae.required(r,t,n,a,o,s),i(a)},$x=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(tt(t,"string")&&!r.required)return i();Ae.required(r,t,n,a,o,"string"),tt(t,"string")||(Ae.type(r,t,n,a,o),Ae.range(r,t,n,a,o),Ae.pattern(r,t,n,a,o),r.whitespace===!0&&Ae.whitespace(r,t,n,a,o))}i(a)},_s=function(r,t,i,n,o){var a=r.type,s=[],c=r.required||!r.required&&n.hasOwnProperty(r.field);if(c){if(tt(t,a)&&!r.required)return i();Ae.required(r,t,n,s,o,a),tt(t,a)||Ae.type(r,t,n,s,o)}i(s)};const Mn={string:$x,method:kx,number:jx,boolean:Cx,regexp:Ix,integer:Px,float:Tx,array:Sx,object:Nx,enum:Ax,pattern:Mx,date:Ox,url:_s,hex:_s,email:_s,required:Lx,any:_x};var ei=(function(){function e(r){ot(this,e),G(this,"rules",null),G(this,"_messages",_l),this.define(r)}return at(e,[{key:"define",value:function(t){var i=this;if(!t)throw new Error("Cannot configure a schema with no rules");if(Ee(t)!=="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(function(n){var o=t[n];i.rules[n]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(t){return t&&(this._messages=_d(El(),t)),this._messages}},{key:"validate",value:function(t){var i=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=t,s=n,c=o;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,a),Promise.resolve(a);function d(p){var m=[],v={};function y(w){if(Array.isArray(w)){var b;m=(b=m).concat.apply(b,me(w))}else m.push(w)}for(var g=0;g<p.length;g++)y(p[g]);m.length?(v=Cl(m),c(m,v)):c(null,a)}if(s.messages){var f=this.messages();f===_l&&(f=El()),_d(f,s.messages),s.messages=f}else s.messages=this.messages();var l={},u=s.keys||Object.keys(this.rules);u.forEach(function(p){var m=i.rules[p],v=a[p];m.forEach(function(y){var g=y;typeof g.transform=="function"&&(a===t&&(a=J({},a)),v=a[p]=g.transform(v),v!=null&&(g.type=g.type||(Array.isArray(v)?"array":Ee(v)))),typeof g=="function"?g={validator:g}:g=J({},g),g.validator=i.getValidationMethod(g),g.validator&&(g.field=p,g.fullField=g.fullField||p,g.type=i.getType(g),l[p]=l[p]||[],l[p].push({rule:g,value:v,source:a,field:p}))})});var h={};return vx(l,s,function(p,m){var v=p.rule,y=(v.type==="object"||v.type==="array")&&(Ee(v.fields)==="object"||Ee(v.defaultField)==="object");y=y&&(v.required||!v.required&&p.value),v.field=p.field;function g(E,C){return J(J({},C),{},{fullField:"".concat(v.fullField,".").concat(E),fullFields:v.fullFields?[].concat(me(v.fullFields),[E]):[E]})}function w(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],C=Array.isArray(E)?E:[E];!s.suppressWarning&&C.length&&e.warning("async-validator:",C),C.length&&v.message!==void 0&&(C=[].concat(v.message));var P=C.map(Ed(v,a));if(s.first&&P.length)return h[v.field]=1,m(P);if(!y)m(P);else{if(v.required&&!p.value)return v.message!==void 0?P=[].concat(v.message).map(Ed(v,a)):s.error&&(P=[s.error(v,wt(s.messages.required,v.field))]),m(P);var O={};v.defaultField&&Object.keys(p.value).map(function(T){O[T]=v.defaultField}),O=J(J({},O),p.rule.fields);var S={};Object.keys(O).forEach(function(T){var k=O[T],L=Array.isArray(k)?k:[k];S[T]=L.map(g.bind(null,T))});var R=new e(S);R.messages(s.messages),p.rule.options&&(p.rule.options.messages=s.messages,p.rule.options.error=s.error),R.validate(p.value,p.rule.options||s,function(T){var k=[];P&&P.length&&k.push.apply(k,me(P)),T&&T.length&&k.push.apply(k,me(T)),m(k.length?k:null)})}}var b;if(v.asyncValidator)b=v.asyncValidator(v,p.value,w,p.source,s);else if(v.validator){try{b=v.validator(v,p.value,w,p.source,s)}catch(E){var x,_;(x=(_=console).error)===null||x===void 0||x.call(_,E),s.suppressValidatorError||setTimeout(function(){throw E},0),w(E.message)}b===!0?w():b===!1?w(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):b instanceof Array?w(b):b instanceof Error&&w(b.message)}b&&b.then&&b.then(function(){return w()},function(E){return w(E)})},function(p){d(p)},a)}},{key:"getType",value:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!Mn.hasOwnProperty(t.type))throw new Error(wt("Unknown rule type %s",t.type));return t.type||"string"}},{key:"getValidationMethod",value:function(t){if(typeof t.validator=="function")return t.validator;var i=Object.keys(t),n=i.indexOf("message");return n!==-1&&i.splice(n,1),i.length===1&&i[0]==="required"?Mn.required:Mn[this.getType(t)]||void 0}}]),e})();G(ei,"register",function(r,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");Mn[r]=t});G(ei,"warning",Hv);G(ei,"messages",_l);G(ei,"validators",Mn);var bt="'${name}' is not a valid ${type}",Uv={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:bt,method:bt,array:bt,object:bt,number:bt,date:bt,boolean:bt,integer:bt,float:bt,regexp:bt,email:bt,url:bt,hex:bt},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Cd=ei;function Fx(e,r){return e.replace(/\\?\$\{\w+\}/g,function(t){if(t.startsWith("\\"))return t.slice(1);var i=t.slice(2,-1);return r[i]})}var Od="CODE_LOGIC_ERROR";function Ol(e,r,t,i,n){return Rl.apply(this,arguments)}function Rl(){return Rl=Jn(Tt().mark(function e(r,t,i,n,o){var a,s,c,d,f,l,u,h,p;return Tt().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return a=J({},i),delete a.ruleIndex,Cd.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(Od)}}),c=null,a&&a.type==="array"&&a.defaultField&&(c=a.defaultField,delete a.defaultField),d=new Cd(G({},r,[a])),f=Br(Uv,n.validateMessages),d.messages(f),l=[],v.prev=10,v.next=13,Promise.resolve(d.validate(G({},r,t),J({},n)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(l=v.t0.errors.map(function(y,g){var w=y.message,b=w===Od?f.default:w;return I.isValidElement(b)?I.cloneElement(b,{key:"error_".concat(g)}):b}));case 18:if(!(!l.length&&c)){v.next=23;break}return v.next=21,Promise.all(t.map(function(y,g){return Ol("".concat(r,".").concat(g),y,c,n,o)}));case 21:return u=v.sent,v.abrupt("return",u.reduce(function(y,g){return[].concat(me(y),me(g))},[]));case 23:return h=J(J({},i),{},{name:r,enum:(i.enum||[]).join(", ")},o),p=l.map(function(y){return typeof y=="string"?Fx(y,h):y}),v.abrupt("return",p);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),Rl.apply(this,arguments)}function Dx(e,r,t,i,n,o){var a=e.join("."),s=t.map(function(f,l){var u=f.validator,h=J(J({},f),{},{ruleIndex:l});return u&&(h.validator=function(p,m,v){var y=!1,g=function(){for(var x=arguments.length,_=new Array(x),E=0;E<x;E++)_[E]=arguments[E];Promise.resolve().then(function(){ze(!y,"Your validator function has already return a promise. `callback` will be ignored."),y||v.apply(void 0,_)})},w=u(p,m,g);y=w&&typeof w.then=="function"&&typeof w.catch=="function",ze(y,"`callback` is deprecated. Please return a promise instead."),y&&w.then(function(){v()}).catch(function(b){v(b||" ")})}),h}).sort(function(f,l){var u=f.warningOnly,h=f.ruleIndex,p=l.warningOnly,m=l.ruleIndex;return!!u==!!p?h-m:u?1:-1}),c;if(n===!0)c=new Promise((function(){var f=Jn(Tt().mark(function l(u,h){var p,m,v;return Tt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:p=0;case 1:if(!(p<s.length)){g.next=12;break}return m=s[p],g.next=5,Ol(a,r,m,i,o);case 5:if(v=g.sent,!v.length){g.next=9;break}return h([{errors:v,rule:m}]),g.abrupt("return");case 9:p+=1,g.next=1;break;case 12:u([]);case 13:case"end":return g.stop()}},l)}));return function(l,u){return f.apply(this,arguments)}})());else{var d=s.map(function(f){return Ol(a,r,f,i,o).then(function(l){return{errors:l,rule:f}})});c=(n?Bx(d):qx(d)).then(function(f){return Promise.reject(f)})}return c.catch(function(f){return f}),c}function qx(e){return Al.apply(this,arguments)}function Al(){return Al=Jn(Tt().mark(function e(r){return Tt().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Promise.all(r).then(function(n){var o,a=(o=[]).concat.apply(o,me(n));return a}));case 1:case"end":return i.stop()}},e)})),Al.apply(this,arguments)}function Bx(e){return Tl.apply(this,arguments)}function Tl(){return Tl=Jn(Tt().mark(function e(r){var t;return Tt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t=0,n.abrupt("return",new Promise(function(o){r.forEach(function(a){a.then(function(s){s.errors.length&&o([s]),t+=1,t===r.length&&o([])})})}));case 2:case"end":return n.stop()}},e)})),Tl.apply(this,arguments)}function Ze(e){return wl(e)}function Rd(e,r){var t={};return r.forEach(function(i){var n=Ut(e,i);t=Lt(t,i,n)}),t}function Ur(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(i){return Wv(r,i,t)})}function Wv(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!r||!t&&e.length!==r.length?!1:r.every(function(i,n){return e[n]===i})}function Vx(e,r){if(e===r)return!0;if(!e&&r||e&&!r||!e||!r||Ee(e)!=="object"||Ee(r)!=="object")return!1;var t=Object.keys(e),i=Object.keys(r),n=new Set([].concat(t,i));return me(n).every(function(o){var a=e[o],s=r[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function Hx(e){var r=arguments.length<=1?void 0:arguments[1];return r&&r.target&&Ee(r.target)==="object"&&e in r.target?r.target[e]:r}function Ad(e,r,t){var i=e.length;if(r<0||r>=i||t<0||t>=i)return e;var n=e[r],o=r-t;return o>0?[].concat(me(e.slice(0,t)),[n],me(e.slice(t,r)),me(e.slice(r+1,i))):o<0?[].concat(me(e.slice(0,r)),me(e.slice(r+1,t+1)),[n],me(e.slice(t+1,i))):e}var zx=["name"],Rt=[];function Ss(e,r,t,i,n,o){return typeof e=="function"?e(r,t,"source"in o?{source:o.source}:{}):i!==n}var ou=(function(e){gr(t,e);var r=mr(t);function t(i){var n;if(ot(this,t),n=r.call(this,i),G(Oe(n),"state",{resetCount:0}),G(Oe(n),"cancelRegisterFunc",null),G(Oe(n),"mounted",!1),G(Oe(n),"touched",!1),G(Oe(n),"dirty",!1),G(Oe(n),"validatePromise",void 0),G(Oe(n),"prevValidating",void 0),G(Oe(n),"errors",Rt),G(Oe(n),"warnings",Rt),G(Oe(n),"cancelRegister",function(){var c=n.props,d=c.preserve,f=c.isListField,l=c.name;n.cancelRegisterFunc&&n.cancelRegisterFunc(f,d,Ze(l)),n.cancelRegisterFunc=null}),G(Oe(n),"getNamePath",function(){var c=n.props,d=c.name,f=c.fieldContext,l=f.prefixName,u=l===void 0?[]:l;return d!==void 0?[].concat(me(u),me(d)):[]}),G(Oe(n),"getRules",function(){var c=n.props,d=c.rules,f=d===void 0?[]:d,l=c.fieldContext;return f.map(function(u){return typeof u=="function"?u(l):u})}),G(Oe(n),"refresh",function(){n.mounted&&n.setState(function(c){var d=c.resetCount;return{resetCount:d+1}})}),G(Oe(n),"metaCache",null),G(Oe(n),"triggerMetaEvent",function(c){var d=n.props.onMetaChange;if(d){var f=J(J({},n.getMeta()),{},{destroy:c});nl(n.metaCache,f)||d(f),n.metaCache=f}else n.metaCache=null}),G(Oe(n),"onStoreChange",function(c,d,f){var l=n.props,u=l.shouldUpdate,h=l.dependencies,p=h===void 0?[]:h,m=l.onReset,v=f.store,y=n.getNamePath(),g=n.getValue(c),w=n.getValue(v),b=d&&Ur(d,y);switch(f.type==="valueUpdate"&&f.source==="external"&&!nl(g,w)&&(n.touched=!0,n.dirty=!0,n.validatePromise=null,n.errors=Rt,n.warnings=Rt,n.triggerMetaEvent()),f.type){case"reset":if(!d||b){n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.errors=Rt,n.warnings=Rt,n.triggerMetaEvent(),m?.(),n.refresh();return}break;case"remove":{if(u&&Ss(u,c,v,g,w,f)){n.reRender();return}break}case"setField":{var x=f.data;if(b){"touched"in x&&(n.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(n.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(n.errors=x.errors||Rt),"warnings"in x&&(n.warnings=x.warnings||Rt),n.dirty=!0,n.triggerMetaEvent(),n.reRender();return}else if("value"in x&&Ur(d,y,!0)){n.reRender();return}if(u&&!y.length&&Ss(u,c,v,g,w,f)){n.reRender();return}break}case"dependenciesUpdate":{var _=p.map(Ze);if(_.some(function(E){return Ur(f.relatedFields,E)})){n.reRender();return}break}default:if(b||(!p.length||y.length||u)&&Ss(u,c,v,g,w,f)){n.reRender();return}break}u===!0&&n.reRender()}),G(Oe(n),"validateRules",function(c){var d=n.getNamePath(),f=n.getValue(),l=c||{},u=l.triggerName,h=l.validateOnly,p=h===void 0?!1:h,m=Promise.resolve().then(Jn(Tt().mark(function v(){var y,g,w,b,x,_,E;return Tt().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(n.mounted){P.next=2;break}return P.abrupt("return",[]);case 2:if(y=n.props,g=y.validateFirst,w=g===void 0?!1:g,b=y.messageVariables,x=y.validateDebounce,_=n.getRules(),u&&(_=_.filter(function(O){return O}).filter(function(O){var S=O.validateTrigger;if(!S)return!0;var R=wl(S);return R.includes(u)})),!(x&&u)){P.next=10;break}return P.next=8,new Promise(function(O){setTimeout(O,x)});case 8:if(n.validatePromise===m){P.next=10;break}return P.abrupt("return",[]);case 10:return E=Dx(d,f,_,c,w,b),E.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rt;if(n.validatePromise===m){var S;n.validatePromise=null;var R=[],T=[];(S=O.forEach)===null||S===void 0||S.call(O,function(k){var L=k.rule.warningOnly,F=k.errors,$=F===void 0?Rt:F;L?T.push.apply(T,me($)):R.push.apply(R,me($))}),n.errors=R,n.warnings=T,n.triggerMetaEvent(),n.reRender()}}),P.abrupt("return",E);case 13:case"end":return P.stop()}},v)})));return p||(n.validatePromise=m,n.dirty=!0,n.errors=Rt,n.warnings=Rt,n.triggerMetaEvent(),n.reRender()),m}),G(Oe(n),"isFieldValidating",function(){return!!n.validatePromise}),G(Oe(n),"isFieldTouched",function(){return n.touched}),G(Oe(n),"isFieldDirty",function(){if(n.dirty||n.props.initialValue!==void 0)return!0;var c=n.props.fieldContext,d=c.getInternalHooks(Cr),f=d.getInitialValue;return f(n.getNamePath())!==void 0}),G(Oe(n),"getErrors",function(){return n.errors}),G(Oe(n),"getWarnings",function(){return n.warnings}),G(Oe(n),"isListField",function(){return n.props.isListField}),G(Oe(n),"isList",function(){return n.props.isList}),G(Oe(n),"isPreserve",function(){return n.props.preserve}),G(Oe(n),"getMeta",function(){n.prevValidating=n.isFieldValidating();var c={touched:n.isFieldTouched(),validating:n.prevValidating,errors:n.errors,warnings:n.warnings,name:n.getNamePath(),validated:n.validatePromise===null};return c}),G(Oe(n),"getOnlyChild",function(c){if(typeof c=="function"){var d=n.getMeta();return J(J({},n.getOnlyChild(c(n.getControlled(),d,n.props.fieldContext))),{},{isFunction:!0})}var f=Gr(c);return f.length!==1||!I.isValidElement(f[0])?{child:f,isFunction:!1}:{child:f[0],isFunction:!1}}),G(Oe(n),"getValue",function(c){var d=n.props.fieldContext.getFieldsValue,f=n.getNamePath();return Ut(c||d(!0),f)}),G(Oe(n),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=n.props,f=d.name,l=d.trigger,u=d.validateTrigger,h=d.getValueFromEvent,p=d.normalize,m=d.valuePropName,v=d.getValueProps,y=d.fieldContext,g=u!==void 0?u:y.validateTrigger,w=n.getNamePath(),b=y.getInternalHooks,x=y.getFieldsValue,_=b(Cr),E=_.dispatch,C=n.getValue(),P=v||function(k){return G({},m,k)},O=c[l],S=f!==void 0?P(C):{};process.env.NODE_ENV!=="production"&&S&&Object.keys(S).forEach(function(k){ze(typeof S[k]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(k,")"))});var R=J(J({},c),S);R[l]=function(){n.touched=!0,n.dirty=!0,n.triggerMetaEvent();for(var k,L=arguments.length,F=new Array(L),$=0;$<L;$++)F[$]=arguments[$];h?k=h.apply(void 0,F):k=Hx.apply(void 0,[m].concat(F)),p&&(k=p(k,C,x(!0))),k!==C&&E({type:"updateValue",namePath:w,value:k}),O&&O.apply(void 0,F)};var T=wl(g||[]);return T.forEach(function(k){var L=R[k];R[k]=function(){L&&L.apply(void 0,arguments);var F=n.props.rules;F&&F.length&&E({type:"validateField",namePath:w,triggerName:k})}}),R}),i.fieldContext){var o=i.fieldContext.getInternalHooks,a=o(Cr),s=a.initEntityValue;s(Oe(n))}return n}return at(t,[{key:"componentDidMount",value:function(){var n=this.props,o=n.shouldUpdate,a=n.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,c=s(Cr),d=c.registerField;this.cancelRegisterFunc=d(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var n=this.state.resetCount,o=this.props.children,a=this.getOnlyChild(o),s=a.child,c=a.isFunction,d;return c?d=s:I.isValidElement(s)?d=I.cloneElement(s,this.getControlled(s.props)):(ze(!s,"`children` of Field is not validate ReactElement."),d=s),I.createElement(I.Fragment,{key:n},d)}}]),t})(I.Component);G(ou,"contextType",rn);G(ou,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Kv(e){var r,t=e.name,i=dt(e,zx),n=I.useContext(rn),o=I.useContext(Ui),a=t!==void 0?Ze(t):void 0,s=(r=i.isListField)!==null&&r!==void 0?r:!!o,c="keep";return s||(c="_".concat((a||[]).join("_"))),process.env.NODE_ENV!=="production"&&i.preserve===!1&&s&&a.length<=1&&ze(!1,"`preserve` should not apply on Form.List fields."),I.createElement(ou,qe({key:c,name:a,isListField:s},i,{fieldContext:n}))}function Ux(e){var r=e.name,t=e.initialValue,i=e.children,n=e.rules,o=e.validateTrigger,a=e.isListField,s=I.useContext(rn),c=I.useContext(Ui),d=I.useRef({keys:[],id:0}),f=d.current,l=I.useMemo(function(){var m=Ze(s.prefixName)||[];return[].concat(me(m),me(Ze(r)))},[s.prefixName,r]),u=I.useMemo(function(){return J(J({},s),{},{prefixName:l})},[s,l]),h=I.useMemo(function(){return{getKey:function(v){var y=l.length,g=v[y];return[f.keys[g],v.slice(y+1)]}}},[l]);if(typeof i!="function")return ze(!1,"Form.List only accepts function as children."),null;var p=function(v,y,g){var w=g.source;return w==="internal"?!1:v!==y};return I.createElement(Ui.Provider,{value:h},I.createElement(rn.Provider,{value:u},I.createElement(Kv,{name:[],shouldUpdate:p,rules:n,validateTrigger:o,initialValue:t,isList:!0,isListField:a??!!c},function(m,v){var y=m.value,g=y===void 0?[]:y,w=m.onChange,b=s.getFieldValue,x=function(){var P=b(l||[]);return P||[]},_={add:function(P,O){var S=x();O>=0&&O<=S.length?(f.keys=[].concat(me(f.keys.slice(0,O)),[f.id],me(f.keys.slice(O))),w([].concat(me(S.slice(0,O)),[P],me(S.slice(O))))):(process.env.NODE_ENV!=="production"&&(O<0||O>S.length)&&ze(!1,"The second parameter of the add function should be a valid positive number."),f.keys=[].concat(me(f.keys),[f.id]),w([].concat(me(S),[P]))),f.id+=1},remove:function(P){var O=x(),S=new Set(Array.isArray(P)?P:[P]);S.size<=0||(f.keys=f.keys.filter(function(R,T){return!S.has(T)}),w(O.filter(function(R,T){return!S.has(T)})))},move:function(P,O){if(P!==O){var S=x();P<0||P>=S.length||O<0||O>=S.length||(f.keys=Ad(f.keys,P,O),w(Ad(S,P,O)))}}},E=g||[];return Array.isArray(E)||(E=[],process.env.NODE_ENV!=="production"&&ze(!1,"Current value of '".concat(l.join(" > "),"' is not an array type."))),i(E.map(function(C,P){var O=f.keys[P];return O===void 0&&(f.keys[P]=f.id,O=f.keys[P],f.id+=1),{name:P,key:O,isListField:!0}}),_,v)})))}function Wx(e){var r=!1,t=e.length,i=[];return e.length?new Promise(function(n,o){e.forEach(function(a,s){a.catch(function(c){return r=!0,c}).then(function(c){t-=1,i[s]=c,!(t>0)&&(r&&o(i),n(i))})})}):Promise.resolve([])}var Gv="__@field_split__";function Cs(e){return e.map(function(r){return"".concat(Ee(r),":").concat(r)}).join(Gv)}var qr=(function(){function e(){ot(this,e),G(this,"kvs",new Map)}return at(e,[{key:"set",value:function(t,i){this.kvs.set(Cs(t),i)}},{key:"get",value:function(t){return this.kvs.get(Cs(t))}},{key:"update",value:function(t,i){var n=this.get(t),o=i(n);o?this.set(t,o):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(Cs(t))}},{key:"map",value:function(t){return me(this.kvs.entries()).map(function(i){var n=le(i,2),o=n[0],a=n[1],s=o.split(Gv);return t({key:s.map(function(c){var d=c.match(/^([^:]*):(.*)$/),f=le(d,3),l=f[1],u=f[2];return l==="number"?Number(u):u}),value:a})})}},{key:"toJSON",value:function(){var t={};return this.map(function(i){var n=i.key,o=i.value;return t[n.join(".")]=o,null}),t}}]),e})(),Kx=["name"],Gx=at(function e(r){var t=this;ot(this,e),G(this,"formHooked",!1),G(this,"forceRootUpdate",void 0),G(this,"subscribable",!0),G(this,"store",{}),G(this,"fieldEntities",[]),G(this,"initialValues",{}),G(this,"callbacks",{}),G(this,"validateMessages",null),G(this,"preserve",null),G(this,"lastValidatePromise",null),G(this,"getForm",function(){return{getFieldValue:t.getFieldValue,getFieldsValue:t.getFieldsValue,getFieldError:t.getFieldError,getFieldWarning:t.getFieldWarning,getFieldsError:t.getFieldsError,isFieldsTouched:t.isFieldsTouched,isFieldTouched:t.isFieldTouched,isFieldValidating:t.isFieldValidating,isFieldsValidating:t.isFieldsValidating,resetFields:t.resetFields,setFields:t.setFields,setFieldValue:t.setFieldValue,setFieldsValue:t.setFieldsValue,validateFields:t.validateFields,submit:t.submit,_init:!0,getInternalHooks:t.getInternalHooks}}),G(this,"getInternalHooks",function(i){return i===Cr?(t.formHooked=!0,{dispatch:t.dispatch,initEntityValue:t.initEntityValue,registerField:t.registerField,useSubscribe:t.useSubscribe,setInitialValues:t.setInitialValues,destroyForm:t.destroyForm,setCallbacks:t.setCallbacks,setValidateMessages:t.setValidateMessages,getFields:t.getFields,setPreserve:t.setPreserve,getInitialValue:t.getInitialValue,registerWatch:t.registerWatch}):(ze(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),G(this,"useSubscribe",function(i){t.subscribable=i}),G(this,"prevWithoutPreserves",null),G(this,"setInitialValues",function(i,n){if(t.initialValues=i||{},n){var o,a=Br(i,t.store);(o=t.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var c=s.key;a=Lt(a,c,Ut(i,c))}),t.prevWithoutPreserves=null,t.updateStore(a)}}),G(this,"destroyForm",function(i){if(i)t.updateStore({});else{var n=new qr;t.getFieldEntities(!0).forEach(function(o){t.isMergedPreserve(o.isPreserve())||n.set(o.getNamePath(),!0)}),t.prevWithoutPreserves=n}}),G(this,"getInitialValue",function(i){var n=Ut(t.initialValues,i);return i.length?Br(n):n}),G(this,"setCallbacks",function(i){t.callbacks=i}),G(this,"setValidateMessages",function(i){t.validateMessages=i}),G(this,"setPreserve",function(i){t.preserve=i}),G(this,"watchList",[]),G(this,"registerWatch",function(i){return t.watchList.push(i),function(){t.watchList=t.watchList.filter(function(n){return n!==i})}}),G(this,"notifyWatch",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(t.watchList.length){var n=t.getFieldsValue(),o=t.getFieldsValue(!0);t.watchList.forEach(function(a){a(n,o,i)})}}),G(this,"timeoutId",null),G(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!t.timeoutId&&typeof window<"u"&&(t.timeoutId=setTimeout(function(){t.timeoutId=null,t.formHooked||ze(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),G(this,"updateStore",function(i){t.store=i}),G(this,"getFieldEntities",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return i?t.fieldEntities.filter(function(n){return n.getNamePath().length}):t.fieldEntities}),G(this,"getFieldsMap",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=new qr;return t.getFieldEntities(i).forEach(function(o){var a=o.getNamePath();n.set(a,o)}),n}),G(this,"getFieldEntitiesForNamePathList",function(i){if(!i)return t.getFieldEntities(!0);var n=t.getFieldsMap(!0);return i.map(function(o){var a=Ze(o);return n.get(a)||{INVALIDATE_NAME_PATH:Ze(o)}})}),G(this,"getFieldsValue",function(i,n){t.warningUnhooked();var o,a,s;if(i===!0||Array.isArray(i)?(o=i,a=n):i&&Ee(i)==="object"&&(s=i.strict,a=i.filter),o===!0&&!a)return t.store;var c=t.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),d=[];return c.forEach(function(f){var l,u,h="INVALIDATE_NAME_PATH"in f?f.INVALIDATE_NAME_PATH:f.getNamePath();if(s){var p,m;if((p=(m=f).isList)!==null&&p!==void 0&&p.call(m))return}else if(!o&&(l=(u=f).isListField)!==null&&l!==void 0&&l.call(u))return;if(!a)d.push(h);else{var v="getMeta"in f?f.getMeta():null;a(v)&&d.push(h)}}),Rd(t.store,d.map(Ze))}),G(this,"getFieldValue",function(i){t.warningUnhooked();var n=Ze(i);return Ut(t.store,n)}),G(this,"getFieldsError",function(i){t.warningUnhooked();var n=t.getFieldEntitiesForNamePathList(i);return n.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Ze(i[a]),errors:[],warnings:[]}})}),G(this,"getFieldError",function(i){t.warningUnhooked();var n=Ze(i),o=t.getFieldsError([n])[0];return o.errors}),G(this,"getFieldWarning",function(i){t.warningUnhooked();var n=Ze(i),o=t.getFieldsError([n])[0];return o.warnings}),G(this,"isFieldsTouched",function(){t.warningUnhooked();for(var i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];var a=n[0],s=n[1],c,d=!1;n.length===0?c=null:n.length===1?Array.isArray(a)?(c=a.map(Ze),d=!1):(c=null,d=a):(c=a.map(Ze),d=s);var f=t.getFieldEntities(!0),l=function(v){return v.isFieldTouched()};if(!c)return d?f.every(function(m){return l(m)||m.isList()}):f.some(l);var u=new qr;c.forEach(function(m){u.set(m,[])}),f.forEach(function(m){var v=m.getNamePath();c.forEach(function(y){y.every(function(g,w){return v[w]===g})&&u.update(y,function(g){return[].concat(me(g),[m])})})});var h=function(v){return v.some(l)},p=u.map(function(m){var v=m.value;return v});return d?p.every(h):p.some(h)}),G(this,"isFieldTouched",function(i){return t.warningUnhooked(),t.isFieldsTouched([i])}),G(this,"isFieldsValidating",function(i){t.warningUnhooked();var n=t.getFieldEntities();if(!i)return n.some(function(a){return a.isFieldValidating()});var o=i.map(Ze);return n.some(function(a){var s=a.getNamePath();return Ur(o,s)&&a.isFieldValidating()})}),G(this,"isFieldValidating",function(i){return t.warningUnhooked(),t.isFieldsValidating([i])}),G(this,"resetWithFieldInitialValue",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=new qr,o=t.getFieldEntities(!0);o.forEach(function(c){var d=c.props.initialValue,f=c.getNamePath();if(d!==void 0){var l=n.get(f)||new Set;l.add({entity:c,value:d}),n.set(f,l)}});var a=function(d){d.forEach(function(f){var l=f.props.initialValue;if(l!==void 0){var u=f.getNamePath(),h=t.getInitialValue(u);if(h!==void 0)ze(!1,"Form already set 'initialValues' with path '".concat(u.join("."),"'. Field can not overwrite it."));else{var p=n.get(u);if(p&&p.size>1)ze(!1,"Multiple Field with path '".concat(u.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var m=t.getFieldValue(u),v=f.isListField();!v&&(!i.skipExist||m===void 0)&&t.updateStore(Lt(t.store,u,me(p)[0].value))}}}})},s;i.entities?s=i.entities:i.namePathList?(s=[],i.namePathList.forEach(function(c){var d=n.get(c);if(d){var f;(f=s).push.apply(f,me(me(d).map(function(l){return l.entity})))}})):s=o,a(s)}),G(this,"resetFields",function(i){t.warningUnhooked();var n=t.store;if(!i){t.updateStore(Br(t.initialValues)),t.resetWithFieldInitialValue(),t.notifyObservers(n,null,{type:"reset"}),t.notifyWatch();return}var o=i.map(Ze);o.forEach(function(a){var s=t.getInitialValue(a);t.updateStore(Lt(t.store,a,s))}),t.resetWithFieldInitialValue({namePathList:o}),t.notifyObservers(n,o,{type:"reset"}),t.notifyWatch(o)}),G(this,"setFields",function(i){t.warningUnhooked();var n=t.store,o=[];i.forEach(function(a){var s=a.name,c=dt(a,Kx),d=Ze(s);o.push(d),"value"in c&&t.updateStore(Lt(t.store,d,c.value)),t.notifyObservers(n,[d],{type:"setField",data:a})}),t.notifyWatch(o)}),G(this,"getFields",function(){var i=t.getFieldEntities(!0),n=i.map(function(o){var a=o.getNamePath(),s=o.getMeta(),c=J(J({},s),{},{name:a,value:t.getFieldValue(a)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return n}),G(this,"initEntityValue",function(i){var n=i.props.initialValue;if(n!==void 0){var o=i.getNamePath(),a=Ut(t.store,o);a===void 0&&t.updateStore(Lt(t.store,o,n))}}),G(this,"isMergedPreserve",function(i){var n=i!==void 0?i:t.preserve;return n??!0}),G(this,"registerField",function(i){t.fieldEntities.push(i);var n=i.getNamePath();if(t.notifyWatch([n]),i.props.initialValue!==void 0){var o=t.store;t.resetWithFieldInitialValue({entities:[i],skipExist:!0}),t.notifyObservers(o,[i.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t.fieldEntities=t.fieldEntities.filter(function(l){return l!==i}),!t.isMergedPreserve(s)&&(!a||c.length>1)){var d=a?void 0:t.getInitialValue(n);if(n.length&&t.getFieldValue(n)!==d&&t.fieldEntities.every(function(l){return!Wv(l.getNamePath(),n)})){var f=t.store;t.updateStore(Lt(f,n,d,!0)),t.notifyObservers(f,[n],{type:"remove"}),t.triggerDependenciesUpdate(f,n)}}t.notifyWatch([n])}}),G(this,"dispatch",function(i){switch(i.type){case"updateValue":{var n=i.namePath,o=i.value;t.updateValue(n,o);break}case"validateField":{var a=i.namePath,s=i.triggerName;t.validateFields([a],{triggerName:s});break}}}),G(this,"notifyObservers",function(i,n,o){if(t.subscribable){var a=J(J({},o),{},{store:t.getFieldsValue(!0)});t.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(i,n,a)})}else t.forceRootUpdate()}),G(this,"triggerDependenciesUpdate",function(i,n){var o=t.getDependencyChildrenFields(n);return o.length&&t.validateFields(o),t.notifyObservers(i,o,{type:"dependenciesUpdate",relatedFields:[n].concat(me(o))}),o}),G(this,"updateValue",function(i,n){var o=Ze(i),a=t.store;t.updateStore(Lt(t.store,o,n)),t.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),t.notifyWatch([o]);var s=t.triggerDependenciesUpdate(a,o),c=t.callbacks.onValuesChange;if(c){var d=Rd(t.store,[o]);c(d,t.getFieldsValue())}t.triggerOnFieldsChange([o].concat(me(s)))}),G(this,"setFieldsValue",function(i){t.warningUnhooked();var n=t.store;if(i){var o=Br(t.store,i);t.updateStore(o)}t.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),t.notifyWatch()}),G(this,"setFieldValue",function(i,n){t.setFields([{name:i,value:n,errors:[],warnings:[]}])}),G(this,"getDependencyChildrenFields",function(i){var n=new Set,o=[],a=new qr;t.getFieldEntities().forEach(function(c){var d=c.props.dependencies;(d||[]).forEach(function(f){var l=Ze(f);a.update(l,function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return u.add(c),u})})});var s=function c(d){var f=a.get(d)||new Set;f.forEach(function(l){if(!n.has(l)){n.add(l);var u=l.getNamePath();l.isFieldDirty()&&u.length&&(o.push(u),c(u))}})};return s(i),o}),G(this,"triggerOnFieldsChange",function(i,n){var o=t.callbacks.onFieldsChange;if(o){var a=t.getFields();if(n){var s=new qr;n.forEach(function(d){var f=d.name,l=d.errors;s.set(f,l)}),a.forEach(function(d){d.errors=s.get(d.name)||d.errors})}var c=a.filter(function(d){var f=d.name;return Ur(i,f)});c.length&&o(c,a)}}),G(this,"validateFields",function(i,n){t.warningUnhooked();var o,a;Array.isArray(i)||typeof i=="string"||typeof n=="string"?(o=i,a=n):a=i;var s=!!o,c=s?o.map(Ze):[],d=[],f=String(Date.now()),l=new Set,u=a||{},h=u.recursive,p=u.dirty;t.getFieldEntities(!0).forEach(function(g){if(s||c.push(g.getNamePath()),!(!g.props.rules||!g.props.rules.length)&&!(p&&!g.isFieldDirty())){var w=g.getNamePath();if(l.add(w.join(f)),!s||Ur(c,w,h)){var b=g.validateRules(J({validateMessages:J(J({},Uv),t.validateMessages)},a));d.push(b.then(function(){return{name:w,errors:[],warnings:[]}}).catch(function(x){var _,E=[],C=[];return(_=x.forEach)===null||_===void 0||_.call(x,function(P){var O=P.rule.warningOnly,S=P.errors;O?C.push.apply(C,me(S)):E.push.apply(E,me(S))}),E.length?Promise.reject({name:w,errors:E,warnings:C}):{name:w,errors:E,warnings:C}}))}}});var m=Wx(d);t.lastValidatePromise=m,m.catch(function(g){return g}).then(function(g){var w=g.map(function(b){var x=b.name;return x});t.notifyObservers(t.store,w,{type:"validateFinish"}),t.triggerOnFieldsChange(w,g)});var v=m.then(function(){return t.lastValidatePromise===m?Promise.resolve(t.getFieldsValue(c)):Promise.reject([])}).catch(function(g){var w=g.filter(function(b){return b&&b.errors.length});return Promise.reject({values:t.getFieldsValue(c),errorFields:w,outOfDate:t.lastValidatePromise!==m})});v.catch(function(g){return g});var y=c.filter(function(g){return l.has(g.join(f))});return t.triggerOnFieldsChange(y),v}),G(this,"submit",function(){t.warningUnhooked(),t.validateFields().then(function(i){var n=t.callbacks.onFinish;if(n)try{n(i)}catch(o){console.error(o)}}).catch(function(i){var n=t.callbacks.onFinishFailed;n&&n(i)})}),this.forceRootUpdate=r});function Yv(e){var r=I.useRef(),t=I.useState({}),i=le(t,2),n=i[1];if(!r.current)if(e)r.current=e;else{var o=function(){n({})},a=new Gx(o);r.current=a.getForm()}return[r.current]}var Pl=I.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Yx=function(r){var t=r.validateMessages,i=r.onFormChange,n=r.onFormFinish,o=r.children,a=I.useContext(Pl),s=I.useRef({});return I.createElement(Pl.Provider,{value:J(J({},a),{},{validateMessages:J(J({},a.validateMessages),t),triggerFormChange:function(d,f){i&&i(d,{changedFields:f,forms:s.current}),a.triggerFormChange(d,f)},triggerFormFinish:function(d,f){n&&n(d,{values:f,forms:s.current}),a.triggerFormFinish(d,f)},registerForm:function(d,f){d&&(s.current=J(J({},s.current),{},G({},d,f))),a.registerForm(d,f)},unregisterForm:function(d){var f=J({},s.current);delete f[d],s.current=f,a.unregisterForm(d)}})},o)},Xx=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Zx=function(r,t){var i=r.name,n=r.initialValues,o=r.fields,a=r.form,s=r.preserve,c=r.children,d=r.component,f=d===void 0?"form":d,l=r.validateMessages,u=r.validateTrigger,h=u===void 0?"onChange":u,p=r.onValuesChange,m=r.onFieldsChange,v=r.onFinish,y=r.onFinishFailed,g=r.clearOnDestroy,w=dt(r,Xx),b=I.useRef(null),x=I.useContext(Pl),_=Yv(a),E=le(_,1),C=E[0],P=C.getInternalHooks(Cr),O=P.useSubscribe,S=P.setInitialValues,R=P.setCallbacks,T=P.setValidateMessages,k=P.setPreserve,L=P.destroyForm;I.useImperativeHandle(t,function(){return J(J({},C),{},{nativeElement:b.current})}),I.useEffect(function(){return x.registerForm(i,C),function(){x.unregisterForm(i)}},[x,C,i]),T(J(J({},x.validateMessages),l)),R({onValuesChange:p,onFieldsChange:function(q){if(x.triggerFormChange(i,q),m){for(var B=arguments.length,N=new Array(B>1?B-1:0),V=1;V<B;V++)N[V-1]=arguments[V];m.apply(void 0,[q].concat(N))}},onFinish:function(q){x.triggerFormFinish(i,q),v&&v(q)},onFinishFailed:y}),k(s);var F=I.useRef(null);S(n,!F.current),F.current||(F.current=!0),I.useEffect(function(){return function(){return L(g)}},[]);var $,z=typeof c=="function";if(z){var H=C.getFieldsValue(!0);$=c(H,C)}else $=c;O(!z);var D=I.useRef();I.useEffect(function(){Vx(D.current||[],o||[])||C.setFields(o||[]),D.current=o},[o,C]);var j=I.useMemo(function(){return J(J({},C),{},{validateTrigger:h})},[C,h]),A=I.createElement(Ui.Provider,{value:null},I.createElement(rn.Provider,{value:j},$));return f===!1?A:I.createElement(f,qe({},w,{ref:b,onSubmit:function(q){q.preventDefault(),q.stopPropagation(),C.submit()},onReset:function(q){var B;q.preventDefault(),C.resetFields(),(B=w.onReset)===null||B===void 0||B.call(w,q)}}),A)};function Td(e){try{return JSON.stringify(e)}catch{return Math.random()}}var Qx=process.env.NODE_ENV!=="production"?function(e){var r=e.join("__RC_FIELD_FORM_SPLIT__"),t=U.useRef(r);ze(t.current===r,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function Jx(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var i=r[0],n=r[1],o=n===void 0?{}:n,a=sx(o)?{form:o}:o,s=a.form,c=U.useState(),d=le(c,2),f=d[0],l=d[1],u=U.useMemo(function(){return Td(f)},[f]),h=U.useRef(u);h.current=u;var p=U.useContext(rn),m=s||p,v=m&&m._init;process.env.NODE_ENV!=="production"&&ze(r.length===2?s?v:!0:v,"useWatch requires a form instance since it can not auto detect from context.");var y=Ze(i),g=U.useRef(y);return g.current=y,Qx(y),U.useEffect(function(){if(v){var w=m.getFieldsValue,b=m.getInternalHooks,x=b(Cr),_=x.registerWatch,E=function(S,R){var T=a.preserve?R:S;return typeof i=="function"?i(T):Ut(T,g.current)},C=_(function(O,S){var R=E(O,S),T=Td(R);h.current!==T&&(h.current=T,l(R))}),P=E(w(),w(!0));return f!==P&&l(P),C}},[v]),f}var e2=I.forwardRef(Zx),ti=e2;ti.FormProvider=Yx;ti.Field=Kv;ti.List=Ux;ti.useForm=Yv;ti.useWatch=Jx;const Kn=I.createContext({});process.env.NODE_ENV!=="production"&&(Kn.displayName="FormItemInputContext");const t2=({children:e,status:r,override:t})=>{const i=I.useContext(Kn),n=I.useMemo(()=>{const o=Object.assign({},i);return t&&delete o.isFormItemInput,r&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[r,t,i]);return I.createElement(Kn.Provider,{value:n},e)},r2=I.createContext(void 0),Xv=e=>{const r=U.useContext(en);return U.useMemo(()=>e?typeof e=="string"?e??r:typeof e=="function"?e(r):r:r,[e,r])},Zv=I.createContext(null),Qv=(e,r)=>{const t=I.useContext(Zv),i=I.useMemo(()=>{if(!t)return"";const{compactDirection:n,isFirstItem:o,isLastItem:a}=t,s=n==="vertical"?"-vertical-":"-";return ye(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:r==="rtl"})},[e,r,t]);return{compactSize:t?.compactSize,compactDirection:t?.compactDirection,compactItemClassnames:i}},n2=e=>{const{children:r}=e;return I.createElement(Zv.Provider,{value:null},r)},kl=e=>{const{space:r,form:t,children:i}=e;if(i==null)return null;let n=i;return t&&(n=U.createElement(t2,{override:!0,status:!0},n)),r&&(n=U.createElement(n2,null,n)),n},au=U.createContext(void 0);process.env.NODE_ENV!=="production"&&(au.displayName="zIndexContext");const Jt=100,i2=10,o2=Jt*i2,a2=o2+Jt,Jv={Modal:Jt,Drawer:Jt,Popover:Jt,Popconfirm:Jt,Tooltip:Jt,Tour:Jt,FloatButton:Jt},s2={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function l2(e){return e in Jv}const u2=(e,r)=>{const[,t]=ln(),i=U.useContext(au),n=l2(e);let o;if(r!==void 0)o=[r,r];else{let a=i??0;n?a+=(i?0:t.zIndexPopupBase)+Jv[e]:a+=s2[e],o=[i===void 0?r:a,a]}if(process.env.NODE_ENV!=="production"){const a=Wt(e),s=t.zIndexPopupBase+a2,c=o[0]||0;process.env.NODE_ENV!=="production"&&a(r!==void 0||c<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return o},c2=(e,r,t)=>t!==void 0?t:`${e}-${r}`;function f2(e){const{sizePopupArrow:r,borderRadiusXS:t,borderRadiusOuter:i}=e,n=r/2,o=0,a=n,s=i*1/Math.sqrt(2),c=n-i*(1-1/Math.sqrt(2)),d=n-t*(1/Math.sqrt(2)),f=i*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),l=2*n-d,u=f,h=2*n-s,p=c,m=2*n-o,v=a,y=n*Math.sqrt(2)+i*(Math.sqrt(2)-2),g=i*(Math.sqrt(2)-1),w=`polygon(${g}px 100%, 50% ${g}px, ${2*n-g}px 100%, ${g}px 100%)`,b=`path('M ${o} ${a} A ${i} ${i} 0 0 0 ${s} ${c} L ${d} ${f} A ${t} ${t} 0 0 1 ${l} ${u} L ${h} ${p} A ${i} ${i} 0 0 0 ${m} ${v} Z')`;return{arrowShadowWidth:y,arrowPath:b,arrowPolygon:w}}const d2=(e,r,t)=>{const{sizePopupArrow:i,arrowPolygon:n,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:i,height:i,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:i,height:c(i).div(2).equal(),background:r,clipPath:{_multi_value_:!0,value:[n,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Le(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:t,zIndex:0,background:"transparent"}}},ep=8;function tp(e){const{contentRadius:r,limitVerticalRadius:t}=e,i=r>12?r+2:12;return{arrowOffsetHorizontal:i,arrowOffsetVertical:t?ep:i}}function Ci(e,r){return e?r:{}}function h2(e,r,t){const{componentCls:i,boxShadowPopoverArrow:n,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}={};return{[i]:Object.assign(Object.assign(Object.assign(Object.assign({[`${i}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},d2(e,r,n)),{"&:before":{background:r}})]},Ci(!!c.top,{[[`&-placement-top > ${i}-arrow`,`&-placement-topLeft > ${i}-arrow`,`&-placement-topRight > ${i}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Le(a)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Ci(!!c.bottom,{[[`&-placement-bottom > ${i}-arrow`,`&-placement-bottomLeft > ${i}-arrow`,`&-placement-bottomRight > ${i}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Le(a)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Ci(!!c.left,{[[`&-placement-left > ${i}-arrow`,`&-placement-leftTop > ${i}-arrow`,`&-placement-leftBottom > ${i}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${i}-arrow`]:{top:o},[`&-placement-leftBottom > ${i}-arrow`]:{bottom:o}})),Ci(!!c.right,{[[`&-placement-right > ${i}-arrow`,`&-placement-rightTop > ${i}-arrow`,`&-placement-rightBottom > ${i}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${i}-arrow`]:{top:o},[`&-placement-rightBottom > ${i}-arrow`]:{bottom:o}}))}}function v2(e,r,t,i){if(i===!1)return{adjustX:!1,adjustY:!1};const n=i&&typeof i=="object"?i:{},o={};switch(e){case"top":case"bottom":o.shiftX=r.arrowOffsetHorizontal*2+t,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=r.arrowOffsetVertical*2+t,o.shiftX=!0,o.adjustX=!0;break}const a=Object.assign(Object.assign({},o),n);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const Pd={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"]}},p2={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"]}},g2=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function m2(e){const{arrowWidth:r,autoAdjustOverflow:t,arrowPointAtCenter:i,offset:n,borderRadius:o}=e,a=r/2,s={},c=tp({contentRadius:o,limitVerticalRadius:!0});return Object.keys(Pd).forEach(d=>{const f=i&&p2[d]||Pd[d],l=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(s[d]=l,g2.has(d)&&(l.autoArrow=!1),d){case"top":case"topLeft":case"topRight":l.offset[1]=-a-n;break;case"bottom":case"bottomLeft":case"bottomRight":l.offset[1]=a+n;break;case"left":case"leftTop":case"leftBottom":l.offset[0]=-a-n;break;case"right":case"rightTop":case"rightBottom":l.offset[0]=a+n;break}if(i)switch(d){case"topLeft":case"bottomLeft":l.offset[0]=-c.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":l.offset[0]=c.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":l.offset[1]=-c.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":l.offset[1]=c.arrowOffsetHorizontal*2-a;break}l.overflow=v2(d,c,r,t),l.htmlRegion="visibleFirst"}),s}function y2(e){return e&&U.isValidElement(e)&&e.type===U.Fragment}const b2=(e,r,t)=>U.isValidElement(e)?U.cloneElement(e,typeof t=="function"?t(e.props||{}):t):r;function rp(e,r){return b2(e,e,r)}const x2=e=>({animationDuration:e,animationFillMode:"both"}),w2=e=>({animationDuration:e,animationFillMode:"both"}),E2=(e,r,t,i,n=!1)=>{const o=n?"&":"";return{[`
|
|
181
|
+
}`),n)}else $n(n);return function(){$n(n)}},[r,n])}var q1=!1;function B1(e){return q1}var cd=function(r){return r===!1?!1:!pt()||!r?null:typeof r=="string"?document.querySelector(r):typeof r=="function"?r():r},ou=I.forwardRef(function(e,r){var t=e.open,i=e.autoLock,n=e.getContainer,o=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,c=e.children,d=I.useState(t),f=le(d,2),l=f[0],u=f[1],h=l||t;process.env.NODE_ENV!=="production"&&ze(pt()||!t,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),I.useEffect(function(){(s||t)&&u(t)},[t,s]);var p=I.useState(function(){return cd(n)}),m=le(p,2),v=m[0],y=m[1];I.useEffect(function(){var R=cd(n);y(R??null)});var g=M1(h&&!v,o),w=le(g,2),b=w[0],x=w[1],_=v??b;D1(i&&t&&pt()&&(_===b||_===document.body));var E=null;if(c&&no(c)&&r){var C=c;E=C.ref}var k=Kl(E,r);if(!h||!pt()||v===void 0)return null;var O=_===!1||B1(),S=c;return r&&(S=I.cloneElement(c,{ref:k})),I.createElement($v.Provider,{value:x},O?S:In.createPortal(S,_))});process.env.NODE_ENV!=="production"&&(ou.displayName="Portal");function V1(){var e=J({},I);return e.useId}var fd=0,dd=V1();const Fv=dd?function(r){var t=dd();return r||(process.env.NODE_ENV==="test"?"test-id":t)}:function(r){var t=I.useState("ssr-id"),i=le(t,2),n=i[0],o=i[1];return I.useEffect(function(){var a=fd;fd+=1,o("rc_unique_".concat(a))},[]),r||(process.env.NODE_ENV==="test"?"test-id":n)},H1=(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 z1(e){var r=e.prefixCls,t=e.align,i=e.arrow,n=e.arrowPos,o=i||{},a=o.className,s=o.content,c=n.x,d=c===void 0?0:c,f=n.y,l=f===void 0?0:f,u=I.useRef();if(!t||!t.points)return null;var h={position:"absolute"};if(t.autoArrow!==!1){var p=t.points[0],m=t.points[1],v=p[0],y=p[1],g=m[0],w=m[1];v===g||!["t","b"].includes(v)?h.top=l:v==="t"?h.top=0:h.bottom=0,y===w||!["l","r"].includes(y)?h.left=d:y==="l"?h.left=0:h.right=0}return I.createElement("div",{ref:u,className:ye("".concat(r,"-arrow"),a),style:h},s)}function U1(e){var r=e.prefixCls,t=e.open,i=e.zIndex,n=e.mask,o=e.motion;return n?I.createElement(iu,qe({},o,{motionAppear:!0,visible:t,removeOnLeave:!0}),function(a){var s=a.className;return I.createElement("div",{style:{zIndex:i},className:ye("".concat(r,"-mask"),s)})}):null}var Dv=I.memo(function(e){var r=e.children;return r},function(e,r){return r.cache});process.env.NODE_ENV!=="production"&&(Dv.displayName="PopupContent");var qv=I.forwardRef(function(e,r){var t=e.popup,i=e.className,n=e.prefixCls,o=e.style,a=e.target,s=e.onVisibleChanged,c=e.open,d=e.keepDom,f=e.fresh,l=e.onClick,u=e.mask,h=e.arrow,p=e.arrowPos,m=e.align,v=e.motion,y=e.maskMotion,g=e.forceRender,w=e.getPopupContainer,b=e.autoDestroy,x=e.portal,_=e.zIndex,E=e.onMouseEnter,C=e.onMouseLeave,k=e.onPointerEnter,O=e.onPointerDownCapture,S=e.ready,R=e.offsetX,T=e.offsetY,P=e.offsetR,L=e.offsetB,F=e.onAlign,$=e.onPrepare,z=e.stretch,H=e.targetWidth,D=e.targetHeight,j=typeof t=="function"?t():t,A=c||d,M=w?.length>0,q=I.useState(!w||!M),B=le(q,2),N=B[0],V=B[1];if(Ue(function(){!N&&M&&a&&V(!0)},[N,M,a]),!N)return null;var K="auto",W={left:"-1000vw",top:"-1000vh",right:K,bottom:K};if(S||!c){var X,re=m.points,oe=m.dynamicInset||((X=m._experimental)===null||X===void 0?void 0:X.dynamicInset),se=oe&&re[0][1]==="r",te=oe&&re[0][0]==="b";se?(W.right=P,W.left=K):(W.left=R,W.right=K),te?(W.bottom=L,W.top=K):(W.top=T,W.bottom=K)}var ce={};return z&&(z.includes("height")&&D?ce.height=D:z.includes("minHeight")&&D&&(ce.minHeight=D),z.includes("width")&&H?ce.width=H:z.includes("minWidth")&&H&&(ce.minWidth=H)),c||(ce.pointerEvents="none"),I.createElement(x,{open:g||A,getContainer:w&&function(){return w(a)},autoDestroy:b},I.createElement(U1,{prefixCls:n,open:c,zIndex:_,mask:u,motion:y}),I.createElement(an,{onResize:F,disabled:!c},function(fe){return I.createElement(iu,qe({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:g,leavedClassName:"".concat(n,"-hidden")},v,{onAppearPrepare:$,onEnterPrepare:$,visible:c,onVisibleChanged:function(Q){var Z;v==null||(Z=v.onVisibleChanged)===null||Z===void 0||Z.call(v,Q),s(Q)}}),function(ve,Q){var Z=ve.className,ae=ve.style,ie=ye(n,Z,i);return I.createElement("div",{ref:Gn(fe,r,Q),className:ie,style:J(J(J(J({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},W),ce),ae),{},{boxSizing:"border-box",zIndex:_},o),onMouseEnter:E,onMouseLeave:C,onPointerEnter:k,onClick:l,onPointerDownCapture:O},h&&I.createElement(z1,{prefixCls:n,arrow:h,arrowPos:p,align:m}),I.createElement(Dv,{cache:!c&&!f},j))})}))});process.env.NODE_ENV!=="production"&&(qv.displayName="Popup");var Bv=I.forwardRef(function(e,r){var t=e.children,i=e.getTriggerDOMNode,n=no(t),o=I.useCallback(function(s){Wl(r,i?i(s):s)},[i]),a=Kl(o,Gl(t));return n?I.cloneElement(t,{ref:a}):t});process.env.NODE_ENV!=="production"&&(Bv.displayName="TriggerWrapper");var hd=I.createContext(null);function vd(e){return e?Array.isArray(e)?e:[e]:[]}function W1(e,r,t,i){return I.useMemo(function(){var n=vd(t??r),o=vd(i??r),a=new Set(n),s=new Set(o);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,r,t,i])}const K1=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var r=e.getBBox(),t=r.width,i=r.height;if(t||i)return!0}if(e.getBoundingClientRect){var n=e.getBoundingClientRect(),o=n.width,a=n.height;if(o||a)return!0}}return!1});function G1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2?arguments[2]:void 0;return t?e[0]===r[0]:e[0]===r[0]&&e[1]===r[1]}function Y1(e,r,t,i){for(var n=t.points,o=Object.keys(e),a=0;a<o.length;a+=1){var s,c=o[a];if(G1((s=e[c])===null||s===void 0?void 0:s.points,n,i))return"".concat(r,"-placement-").concat(c)}return""}function pd(e,r,t,i){return r||(t?{motionName:"".concat(e,"-").concat(t)}:i?{motionName:i}:null)}function Qn(e){return e.ownerDocument.defaultView}function wl(e){for(var r=[],t=e?.parentElement,i=["hidden","scroll","clip","auto"];t;){var n=Qn(t).getComputedStyle(t),o=n.overflowX,a=n.overflowY,s=n.overflow;[o,a,s].some(function(c){return i.includes(c)})&&r.push(t),t=t.parentElement}return r}function Wn(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?r:e}function On(e){return Wn(parseFloat(e),0)}function gd(e,r){var t=J({},e);return(r||[]).forEach(function(i){if(!(i instanceof HTMLBodyElement||i instanceof HTMLHtmlElement)){var n=Qn(i).getComputedStyle(i),o=n.overflow,a=n.overflowClipMargin,s=n.borderTopWidth,c=n.borderBottomWidth,d=n.borderLeftWidth,f=n.borderRightWidth,l=i.getBoundingClientRect(),u=i.offsetHeight,h=i.clientHeight,p=i.offsetWidth,m=i.clientWidth,v=On(s),y=On(c),g=On(d),w=On(f),b=Wn(Math.round(l.width/p*1e3)/1e3),x=Wn(Math.round(l.height/u*1e3)/1e3),_=(p-m-g-w)*b,E=(u-h-v-y)*x,C=v*x,k=y*x,O=g*b,S=w*b,R=0,T=0;if(o==="clip"){var P=On(a);R=P*b,T=P*x}var L=l.x+O-R,F=l.y+C-T,$=L+l.width+2*R-O-S-_,z=F+l.height+2*T-C-k-E;t.left=Math.max(t.left,L),t.top=Math.max(t.top,F),t.right=Math.min(t.right,$),t.bottom=Math.min(t.bottom,z)}}),t}function md(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t="".concat(r),i=t.match(/^(.*)\%$/);return i?e*(parseFloat(i[1])/100):parseFloat(t)}function yd(e,r){var t=r||[],i=le(t,2),n=i[0],o=i[1];return[md(e.width,n),md(e.height,o)]}function bd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Lr(e,r){var t=r[0],i=r[1],n,o;return t==="t"?o=e.y:t==="b"?o=e.y+e.height:o=e.y+e.height/2,i==="l"?n=e.x:i==="r"?n=e.x+e.width:n=e.x+e.width/2,{x:n,y:o}}function fr(e,r){var t={t:"b",b:"t",l:"r",r:"l"};return e.map(function(i,n){return n===r?t[i]||"c":i}).join("")}function X1(e,r,t,i,n,o,a){var s=I.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:n[i]||{}}),c=le(s,2),d=c[0],f=c[1],l=I.useRef(0),u=I.useMemo(function(){return r?wl(r):[]},[r]),h=I.useRef({}),p=function(){h.current={}};e||p();var m=vt(function(){if(r&&t&&e){let _t=function(pn,Zt){var cr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:he,gn=A.x+pn,di=A.y+Zt,Eo=gn+te,_o=di+se,So=Math.max(gn,cr.left),pe=Math.max(di,cr.top),we=Math.min(Eo,cr.right),He=Math.min(_o,cr.bottom);return Math.max(0,(we-So)*(He-pe))},Nr=function(){jt=A.y+Pe,Et=jt+se,Vt=A.x+Ie,Nt=Vt+te};var g,w,b,x,_=r,E=_.ownerDocument,C=Qn(_),k=C.getComputedStyle(_),O=k.position,S=_.style.left,R=_.style.top,T=_.style.right,P=_.style.bottom,L=_.style.overflow,F=J(J({},n[i]),o),$=E.createElement("div");(g=_.parentElement)===null||g===void 0||g.appendChild($),$.style.left="".concat(_.offsetLeft,"px"),$.style.top="".concat(_.offsetTop,"px"),$.style.position=O,$.style.height="".concat(_.offsetHeight,"px"),$.style.width="".concat(_.offsetWidth,"px"),_.style.left="0",_.style.top="0",_.style.right="auto",_.style.bottom="auto",_.style.overflow="hidden";var z;if(Array.isArray(t))z={x:t[0],y:t[1],width:0,height:0};else{var H,D,j=t.getBoundingClientRect();j.x=(H=j.x)!==null&&H!==void 0?H:j.left,j.y=(D=j.y)!==null&&D!==void 0?D:j.top,z={x:j.x,y:j.y,width:j.width,height:j.height}}var A=_.getBoundingClientRect(),M=C.getComputedStyle(_),q=M.height,B=M.width;A.x=(w=A.x)!==null&&w!==void 0?w:A.left,A.y=(b=A.y)!==null&&b!==void 0?b:A.top;var N=E.documentElement,V=N.clientWidth,K=N.clientHeight,W=N.scrollWidth,X=N.scrollHeight,re=N.scrollTop,oe=N.scrollLeft,se=A.height,te=A.width,ce=z.height,fe=z.width,ve={left:0,top:0,right:V,bottom:K},Q={left:-oe,top:-re,right:W-oe,bottom:X-re},Z=F.htmlRegion,ae="visible",ie="visibleFirst";Z!=="scroll"&&Z!==ie&&(Z=ae);var ee=Z===ie,ue=gd(Q,u),ne=gd(ve,u),he=Z===ae?ne:ue,Se=ee?ne:he;_.style.left="auto",_.style.top="auto",_.style.right="0",_.style.bottom="0";var Me=_.getBoundingClientRect();_.style.left=S,_.style.top=R,_.style.right=T,_.style.bottom=P,_.style.overflow=L,(x=_.parentElement)===null||x===void 0||x.removeChild($);var be=Wn(Math.round(te/parseFloat(B)*1e3)/1e3),De=Wn(Math.round(se/parseFloat(q)*1e3)/1e3);if(be===0||De===0||Fn(t)&&!K1(t))return;var Ce=F.offset,Re=F.targetOffset,ke=yd(A,Ce),Te=le(ke,2),_e=Te[0],Be=Te[1],ge=yd(z,Re),xe=le(ge,2),Ge=xe[0],Gt=xe[1];z.x-=Ge,z.y-=Gt;var yr=F.points||[],Ar=le(yr,2),cn=Ar[0],Tr=Ar[1],Pt=bd(Tr),st=bd(cn),Ye=Lr(z,Pt),Yt=Lr(A,st),lt=J({},F),Ie=Ye.x-Yt.x+_e,Pe=Ye.y-Yt.y+Be,rt=_t(Ie,Pe),qt=_t(Ie,Pe,ne),gt=Lr(z,["t","l"]),We=Lr(A,["t","l"]),ar=Lr(z,["b","r"]),Xt=Lr(A,["b","r"]),$e=F.overflow||{},Xe=$e.adjustX,ht=$e.adjustY,ut=$e.shiftX,Bt=$e.shiftY,kr=function(Zt){return typeof Zt=="boolean"?Zt:Zt>=0},jt,Et,Vt,Nt;Nr();var Pr=kr(ht),Ve=st[0]===Pt[0];if(Pr&&st[0]==="t"&&(Et>Se.bottom||h.current.bt)){var br=Pe;Ve?br-=se-ce:br=gt.y-Xt.y-Be;var ni=_t(Ie,br),co=_t(Ie,br,ne);ni>rt||ni===rt&&(!ee||co>=qt)?(h.current.bt=!0,Pe=br,Be=-Be,lt.points=[fr(st,0),fr(Pt,0)]):h.current.bt=!1}if(Pr&&st[0]==="b"&&(jt<Se.top||h.current.tb)){var xr=Pe;Ve?xr+=se-ce:xr=ar.y-We.y-Be;var ii=_t(Ie,xr),fo=_t(Ie,xr,ne);ii>rt||ii===rt&&(!ee||fo>=qt)?(h.current.tb=!0,Pe=xr,Be=-Be,lt.points=[fr(st,0),fr(Pt,0)]):h.current.tb=!1}var oi=kr(Xe),ai=st[1]===Pt[1];if(oi&&st[1]==="l"&&(Nt>Se.right||h.current.rl)){var wr=Ie;ai?wr-=te-fe:wr=gt.x-Xt.x-_e;var Er=_t(wr,Pe),fn=_t(wr,Pe,ne);Er>rt||Er===rt&&(!ee||fn>=qt)?(h.current.rl=!0,Ie=wr,_e=-_e,lt.points=[fr(st,1),fr(Pt,1)]):h.current.rl=!1}if(oi&&st[1]==="r"&&(Vt<Se.left||h.current.lr)){var _r=Ie;ai?_r+=te-fe:_r=ar.x-We.x-_e;var dn=_t(_r,Pe),jr=_t(_r,Pe,ne);dn>rt||dn===rt&&(!ee||jr>=qt)?(h.current.lr=!0,Ie=_r,_e=-_e,lt.points=[fr(st,1),fr(Pt,1)]):h.current.lr=!1}Nr();var Mt=ut===!0?0:ut;typeof Mt=="number"&&(Vt<ne.left&&(Ie-=Vt-ne.left-_e,z.x+fe<ne.left+Mt&&(Ie+=z.x-ne.left+fe-Mt)),Nt>ne.right&&(Ie-=Nt-ne.right-_e,z.x>ne.right-Mt&&(Ie+=z.x-ne.right+Mt)));var sr=Bt===!0?0:Bt;typeof sr=="number"&&(jt<ne.top&&(Pe-=jt-ne.top-Be,z.y+ce<ne.top+sr&&(Pe+=z.y-ne.top+ce-sr)),Et>ne.bottom&&(Pe-=Et-ne.bottom-Be,z.y>ne.bottom-sr&&(Pe+=z.y-ne.bottom+sr)));var lr=A.x+Ie,ur=lr+te,hn=A.y+Pe,ho=hn+se,si=z.x,li=si+fe,ui=z.y,vo=ui+ce,po=Math.max(lr,si),ci=Math.min(ur,li),go=(po+ci)/2,mo=go-lr,fi=Math.max(hn,ui),yo=Math.min(ho,vo),bo=(fi+yo)/2,xo=bo-hn;a?.(r,lt);var Ht=Me.right-A.x-(Ie+A.width),vn=Me.bottom-A.y-(Pe+A.height);be===1&&(Ie=Math.round(Ie),Ht=Math.round(Ht)),De===1&&(Pe=Math.round(Pe),vn=Math.round(vn));var wo={ready:!0,offsetX:Ie/be,offsetY:Pe/De,offsetR:Ht/be,offsetB:vn/De,arrowX:mo/be,arrowY:xo/De,scaleX:be,scaleY:De,align:lt};f(wo)}}),v=function(){l.current+=1;var w=l.current;Promise.resolve().then(function(){l.current===w&&m()})},y=function(){f(function(w){return J(J({},w),{},{ready:!1})})};return Ue(y,[i]),Ue(function(){e||y()},[e]),[d.ready,d.offsetX,d.offsetY,d.offsetR,d.offsetB,d.arrowX,d.arrowY,d.scaleX,d.scaleY,d.align,v]}function Z1(e,r,t,i,n){Ue(function(){if(e&&r&&t){let l=function(){i(),n()};var o=r,a=t,s=wl(o),c=wl(a),d=Qn(a),f=new Set([d].concat(me(s),me(c)));return f.forEach(function(u){u.addEventListener("scroll",l,{passive:!0})}),d.addEventListener("resize",l,{passive:!0}),i(),function(){f.forEach(function(u){u.removeEventListener("scroll",l),d.removeEventListener("resize",l)})}}},[e,r,t])}function Q1(e,r,t,i,n,o,a,s){var c=I.useRef(e);c.current=e;var d=I.useRef(!1);I.useEffect(function(){if(r&&i&&(!n||o)){var l=function(){d.current=!1},u=function(b){var x;c.current&&!a(((x=b.composedPath)===null||x===void 0||(x=x.call(b))===null||x===void 0?void 0:x[0])||b.target)&&!d.current&&s(!1)},h=Qn(i);h.addEventListener("pointerdown",l,!0),h.addEventListener("mousedown",u,!0),h.addEventListener("contextmenu",u,!0);var p=Di(t);if(p&&(p.addEventListener("mousedown",u,!0),p.addEventListener("contextmenu",u,!0)),process.env.NODE_ENV!=="production"){var m,v,y=t==null||(m=t.getRootNode)===null||m===void 0?void 0:m.call(t),g=(v=i.getRootNode)===null||v===void 0?void 0:v.call(i);Kr(y===g,"trigger element and popup element should in same shadow root.")}return function(){h.removeEventListener("pointerdown",l,!0),h.removeEventListener("mousedown",u,!0),h.removeEventListener("contextmenu",u,!0),p&&(p.removeEventListener("mousedown",u,!0),p.removeEventListener("contextmenu",u,!0))}}},[r,t,i,n,o]);function f(){d.current=!0}return f}var J1=["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 ex(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ou,r=I.forwardRef(function(t,i){var n=t.prefixCls,o=n===void 0?"rc-trigger-popup":n,a=t.children,s=t.action,c=s===void 0?"hover":s,d=t.showAction,f=t.hideAction,l=t.popupVisible,u=t.defaultPopupVisible,h=t.onPopupVisibleChange,p=t.afterPopupVisibleChange,m=t.mouseEnterDelay,v=t.mouseLeaveDelay,y=v===void 0?.1:v,g=t.focusDelay,w=t.blurDelay,b=t.mask,x=t.maskClosable,_=x===void 0?!0:x,E=t.getPopupContainer,C=t.forceRender,k=t.autoDestroy,O=t.destroyPopupOnHide,S=t.popup,R=t.popupClassName,T=t.popupStyle,P=t.popupPlacement,L=t.builtinPlacements,F=L===void 0?{}:L,$=t.popupAlign,z=t.zIndex,H=t.stretch,D=t.getPopupClassNameFromAlign,j=t.fresh,A=t.alignPoint,M=t.onPopupClick,q=t.onPopupAlign,B=t.arrow,N=t.popupMotion,V=t.maskMotion,K=t.popupTransitionName,W=t.popupAnimation,X=t.maskTransitionName,re=t.maskAnimation,oe=t.className,se=t.getTriggerDOMNode,te=dt(t,J1),ce=k||O||!1,fe=I.useState(!1),ve=le(fe,2),Q=ve[0],Z=ve[1];Ue(function(){Z(H1())},[]);var ae=I.useRef({}),ie=I.useContext(hd),ee=I.useMemo(function(){return{registerSubPopup:function(we,He){ae.current[we]=He,ie?.registerSubPopup(we,He)}}},[ie]),ue=Fv(),ne=I.useState(null),he=le(ne,2),Se=he[0],Me=he[1],be=I.useRef(null),De=vt(function(pe){be.current=pe,Fn(pe)&&Se!==pe&&Me(pe),ie?.registerSubPopup(ue,pe)}),Ce=I.useState(null),Re=le(Ce,2),ke=Re[0],Te=Re[1],_e=I.useRef(null),Be=vt(function(pe){Fn(pe)&&ke!==pe&&(Te(pe),_e.current=pe)}),ge=I.Children.only(a),xe=ge?.props||{},Ge={},Gt=vt(function(pe){var we,He,Je=ke;return Je?.contains(pe)||((we=Di(Je))===null||we===void 0?void 0:we.host)===pe||pe===Je||Se?.contains(pe)||((He=Di(Se))===null||He===void 0?void 0:He.host)===pe||pe===Se||Object.values(ae.current).some(function(Ke){return Ke?.contains(pe)||pe===Ke})}),yr=pd(o,N,W,K),Ar=pd(o,V,re,X),cn=I.useState(u||!1),Tr=le(cn,2),Pt=Tr[0],st=Tr[1],Ye=l??Pt,Yt=vt(function(pe){l===void 0&&st(pe)});Ue(function(){st(l||!1)},[l]);var lt=I.useRef(Ye);lt.current=Ye;var Ie=I.useRef([]);Ie.current=[];var Pe=vt(function(pe){var we;Yt(pe),((we=Ie.current[Ie.current.length-1])!==null&&we!==void 0?we:Ye)!==pe&&(Ie.current.push(pe),h?.(pe))}),rt=I.useRef(),qt=function(){clearTimeout(rt.current)},gt=function(we){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;qt(),He===0?Pe(we):rt.current=setTimeout(function(){Pe(we)},He*1e3)};I.useEffect(function(){return qt},[]);var We=I.useState(!1),ar=le(We,2),Xt=ar[0],$e=ar[1];Ue(function(pe){(!pe||Ye)&&$e(!0)},[Ye]);var Xe=I.useState(null),ht=le(Xe,2),ut=ht[0],Bt=ht[1],kr=I.useState(null),jt=le(kr,2),Et=jt[0],Vt=jt[1],Nt=function(we){Vt([we.clientX,we.clientY])},Pr=X1(Ye,Se,A&&Et!==null?Et:ke,P,F,$,q),Ve=le(Pr,11),br=Ve[0],ni=Ve[1],co=Ve[2],xr=Ve[3],ii=Ve[4],fo=Ve[5],oi=Ve[6],ai=Ve[7],wr=Ve[8],Er=Ve[9],fn=Ve[10],_r=W1(Q,c,d,f),dn=le(_r,2),jr=dn[0],Mt=dn[1],sr=jr.has("click"),lr=Mt.has("click")||Mt.has("contextMenu"),ur=vt(function(){Xt||fn()}),hn=function(){lt.current&&A&&lr&>(!1)};Z1(Ye,ke,Se,ur,hn),Ue(function(){ur()},[Et,P]),Ue(function(){Ye&&!(F!=null&&F[P])&&ur()},[JSON.stringify($)]);var ho=I.useMemo(function(){var pe=Y1(F,o,Er,A);return ye(pe,D?.(Er))},[Er,D,F,o,A]);I.useImperativeHandle(i,function(){return{nativeElement:_e.current,popupElement:be.current,forceAlign:ur}});var si=I.useState(0),li=le(si,2),ui=li[0],vo=li[1],po=I.useState(0),ci=le(po,2),go=ci[0],mo=ci[1],fi=function(){if(H&&ke){var we=ke.getBoundingClientRect();vo(we.width),mo(we.height)}},yo=function(){fi(),ur()},bo=function(we){$e(!1),fn(),p?.(we)},xo=function(){return new Promise(function(we){fi(),Bt(function(){return we})})};Ue(function(){ut&&(fn(),ut(),Bt(null))},[ut]);function Ht(pe,we,He,Je){Ge[pe]=function(Ke){var hi;Je?.(Ke),gt(we,He);for(var Co=arguments.length,hu=new Array(Co>1?Co-1:0),vi=1;vi<Co;vi++)hu[vi-1]=arguments[vi];(hi=xe[pe])===null||hi===void 0||hi.call.apply(hi,[xe,Ke].concat(hu))}}(sr||lr)&&(Ge.onClick=function(pe){var we;lt.current&&lr?gt(!1):!lt.current&&sr&&(Nt(pe),gt(!0));for(var He=arguments.length,Je=new Array(He>1?He-1:0),Ke=1;Ke<He;Ke++)Je[Ke-1]=arguments[Ke];(we=xe.onClick)===null||we===void 0||we.call.apply(we,[xe,pe].concat(Je))});var vn=Q1(Ye,lr,ke,Se,b,_,Gt,gt),wo=jr.has("hover"),_t=Mt.has("hover"),Nr,pn;wo&&(Ht("onMouseEnter",!0,m,function(pe){Nt(pe)}),Ht("onPointerEnter",!0,m,function(pe){Nt(pe)}),Nr=function(we){(Ye||Xt)&&Se!==null&&Se!==void 0&&Se.contains(we.target)&>(!0,m)},A&&(Ge.onMouseMove=function(pe){var we;(we=xe.onMouseMove)===null||we===void 0||we.call(xe,pe)})),_t&&(Ht("onMouseLeave",!1,y),Ht("onPointerLeave",!1,y),pn=function(){gt(!1,y)}),jr.has("focus")&&Ht("onFocus",!0,g),Mt.has("focus")&&Ht("onBlur",!1,w),jr.has("contextMenu")&&(Ge.onContextMenu=function(pe){var we;lt.current&&Mt.has("contextMenu")?gt(!1):(Nt(pe),gt(!0)),pe.preventDefault();for(var He=arguments.length,Je=new Array(He>1?He-1:0),Ke=1;Ke<He;Ke++)Je[Ke-1]=arguments[Ke];(we=xe.onContextMenu)===null||we===void 0||we.call.apply(we,[xe,pe].concat(Je))}),oe&&(Ge.className=ye(xe.className,oe));var Zt=I.useRef(!1);Zt.current||(Zt.current=C||Ye||Xt);var cr=J(J({},xe),Ge),gn={},di=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];di.forEach(function(pe){te[pe]&&(gn[pe]=function(){for(var we,He=arguments.length,Je=new Array(He),Ke=0;Ke<He;Ke++)Je[Ke]=arguments[Ke];(we=cr[pe])===null||we===void 0||we.call.apply(we,[cr].concat(Je)),te[pe].apply(te,Je)})});var Eo=I.cloneElement(ge,J(J({},cr),gn)),_o={x:fo,y:oi},So=B?J({},B!==!0?B:{}):null;return I.createElement(I.Fragment,null,I.createElement(an,{disabled:!Ye,ref:Be,onResize:yo},I.createElement(Bv,{getTriggerDOMNode:se},Eo)),Zt.current&&I.createElement(hd.Provider,{value:ee},I.createElement(qv,{portal:e,ref:De,prefixCls:o,popup:S,className:ye(R,ho),style:T,target:ke,onMouseEnter:Nr,onMouseLeave:pn,onPointerEnter:Nr,zIndex:z,open:Ye,keepDom:Xt,fresh:j,onClick:M,onPointerDownCapture:vn,mask:b,motion:yr,maskMotion:Ar,onVisibleChanged:bo,onPrepare:xo,forceRender:C,autoDestroy:ce,getPopupContainer:E,align:Er,arrow:So,arrowPos:_o,ready:br,offsetX:ni,offsetY:co,offsetR:xr,offsetB:ii,onAlign:ur,stretch:H,targetWidth:ui/ai,targetHeight:go/wr})))});return process.env.NODE_ENV!=="production"&&(r.displayName="Trigger"),r}const tx=ex(ou);var $r={shiftX:64,adjustY:1},Fr={adjustX:1,shiftY:!0},Ot=[0,0],rx={left:{points:["cr","cl"],overflow:Fr,offset:[-4,0],targetOffset:Ot},right:{points:["cl","cr"],overflow:Fr,offset:[4,0],targetOffset:Ot},top:{points:["bc","tc"],overflow:$r,offset:[0,-4],targetOffset:Ot},bottom:{points:["tc","bc"],overflow:$r,offset:[0,4],targetOffset:Ot},topLeft:{points:["bl","tl"],overflow:$r,offset:[0,-4],targetOffset:Ot},leftTop:{points:["tr","tl"],overflow:Fr,offset:[-4,0],targetOffset:Ot},topRight:{points:["br","tr"],overflow:$r,offset:[0,-4],targetOffset:Ot},rightTop:{points:["tl","tr"],overflow:Fr,offset:[4,0],targetOffset:Ot},bottomRight:{points:["tr","br"],overflow:$r,offset:[0,4],targetOffset:Ot},rightBottom:{points:["bl","br"],overflow:Fr,offset:[4,0],targetOffset:Ot},bottomLeft:{points:["tl","bl"],overflow:$r,offset:[0,4],targetOffset:Ot},leftBottom:{points:["br","bl"],overflow:Fr,offset:[-4,0],targetOffset:Ot}},nx=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],ix=function(r,t){var i=r.overlayClassName,n=r.trigger,o=n===void 0?["hover"]:n,a=r.mouseEnterDelay,s=a===void 0?0:a,c=r.mouseLeaveDelay,d=c===void 0?.1:c,f=r.overlayStyle,l=r.prefixCls,u=l===void 0?"rc-tooltip":l,h=r.children,p=r.onVisibleChange,m=r.afterVisibleChange,v=r.transitionName,y=r.animation,g=r.motion,w=r.placement,b=w===void 0?"right":w,x=r.align,_=x===void 0?{}:x,E=r.destroyTooltipOnHide,C=E===void 0?!1:E,k=r.defaultVisible,O=r.getTooltipContainer,S=r.overlayInnerStyle;r.arrowContent;var R=r.overlay,T=r.id,P=r.showArrow,L=P===void 0?!0:P,F=r.classNames,$=r.styles,z=dt(r,nx),H=Fv(T),D=U.useRef(null);U.useImperativeHandle(t,function(){return D.current});var j=J({},z);"visible"in r&&(j.popupVisible=r.visible);var A=function(){return I.createElement(Lv,{key:"content",prefixCls:u,id:H,bodyClassName:F?.body,overlayInnerStyle:J(J({},S),$?.body)},R)},M=function(){var B=I.Children.only(h),N=B?.props||{},V=J(J({},N),{},{"aria-describedby":R?H:null});return I.cloneElement(h,V)};return I.createElement(tx,qe({popupClassName:ye(i,F?.root),prefixCls:u,popup:A,action:o,builtinPlacements:rx,popupPlacement:b,ref:D,popupAlign:_,getPopupContainer:O,onPopupVisibleChange:p,afterPopupVisibleChange:m,popupTransitionName:v,popupAnimation:y,popupMotion:g,defaultPopupVisible:k,autoDestroy:C,mouseLeaveDelay:d,popupStyle:J(J({},f),$?.root),mouseEnterDelay:s,arrow:L},j),M())};const ox=U.forwardRef(ix);function Vv(e,r){this.v=e,this.k=r}function ct(e,r,t,i){var n=Object.defineProperty;try{n({},"",{})}catch{n=0}ct=function(a,s,c,d){function f(l,u){ct(a,l,function(h){return this._invoke(l,u,h)})}s?n?n(a,s,{value:c,enumerable:!d,configurable:!d,writable:!d}):a[s]=c:(f("next",0),f("throw",1),f("return",2))},ct(e,r,t,i)}function au(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,r,t=typeof Symbol=="function"?Symbol:{},i=t.iterator||"@@iterator",n=t.toStringTag||"@@toStringTag";function o(h,p,m,v){var y=p&&p.prototype instanceof s?p:s,g=Object.create(y.prototype);return ct(g,"_invoke",(function(w,b,x){var _,E,C,k=0,O=x||[],S=!1,R={p:0,n:0,v:e,a:T,f:T.bind(e,4),d:function(L,F){return _=L,E=0,C=e,R.n=F,a}};function T(P,L){for(E=P,C=L,r=0;!S&&k&&!F&&r<O.length;r++){var F,$=O[r],z=R.p,H=$[2];P>3?(F=H===L)&&(C=$[(E=$[4])?5:(E=3,3)],$[4]=$[5]=e):$[0]<=z&&((F=P<2&&z<$[1])?(E=0,R.v=L,R.n=$[1]):z<H&&(F=P<3||$[0]>L||L>H)&&($[4]=P,$[5]=L,R.n=H,E=0))}if(F||P>1)return a;throw S=!0,L}return function(P,L,F){if(k>1)throw TypeError("Generator is already running");for(S&&L===1&&T(L,F),E=L,C=F;(r=E<2?e:C)||!S;){_||(E?E<3?(E>1&&(R.n=-1),T(E,C)):R.n=C:R.v=C);try{if(k=2,_){if(E||(P="next"),r=_[P]){if(!(r=r.call(_,C)))throw TypeError("iterator result is not an object");if(!r.done)return r;C=r.value,E<2&&(E=0)}else E===1&&(r=_.return)&&r.call(_),E<2&&(C=TypeError("The iterator does not provide a '"+P+"' method"),E=1);_=e}else if((r=(S=R.n<0)?C:w.call(b,R))!==a)break}catch($){_=e,E=1,C=$}finally{k=1}}return{value:r,done:S}}})(h,m,v),!0),g}var a={};function s(){}function c(){}function d(){}r=Object.getPrototypeOf;var f=[][i]?r(r([][i]())):(ct(r={},i,function(){return this}),r),l=d.prototype=s.prototype=Object.create(f);function u(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,d):(h.__proto__=d,ct(h,n,"GeneratorFunction")),h.prototype=Object.create(l),h}return c.prototype=d,ct(l,"constructor",d),ct(d,"constructor",c),c.displayName="GeneratorFunction",ct(d,n,"GeneratorFunction"),ct(l),ct(l,n,"Generator"),ct(l,i,function(){return this}),ct(l,"toString",function(){return"[object Generator]"}),(au=function(){return{w:o,m:u}})()}function zi(e,r){function t(n,o,a,s){try{var c=e[n](o),d=c.value;return d instanceof Vv?r.resolve(d.v).then(function(f){t("next",f,a,s)},function(f){t("throw",f,a,s)}):r.resolve(d).then(function(f){c.value=f,a(c)},function(f){return t("throw",f,a,s)})}catch(f){s(f)}}var i;this.next||(ct(zi.prototype),ct(zi.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ct(this,"_invoke",function(n,o,a){function s(){return new r(function(c,d){t(n,a,c,d)})}return i=i?i.then(s,s):s()},!0)}function Hv(e,r,t,i,n){return new zi(au().w(e,r,t,i),n||Promise)}function ax(e,r,t,i,n){var o=Hv(e,r,t,i,n);return o.next().then(function(a){return a.done?a.value:o.next()})}function sx(e){var r=Object(e),t=[];for(var i in r)t.unshift(i);return function n(){for(;t.length;)if((i=t.pop())in r)return n.value=i,n.done=!1,n;return n.done=!0,n}}function xd(e){if(e!=null){var r=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],t=0;if(r)return r.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}}throw new TypeError(Ee(e)+" is not iterable")}function Tt(){var e=au(),r=e.m(Tt),t=(Object.getPrototypeOf?Object.getPrototypeOf(r):r.__proto__).constructor;function i(a){var s=typeof a=="function"&&a.constructor;return!!s&&(s===t||(s.displayName||s.name)==="GeneratorFunction")}var n={throw:1,return:2,break:3,continue:3};function o(a){var s,c;return function(d){s||(s={stop:function(){return c(d.a,2)},catch:function(){return d.v},abrupt:function(l,u){return c(d.a,n[l],u)},delegateYield:function(l,u,h){return s.resultName=u,c(d.d,xd(l),h)},finish:function(l){return c(d.f,l)}},c=function(l,u,h){d.p=s.prev,d.n=s.next;try{return l(u,h)}finally{s.next=d.n}}),s.resultName&&(s[s.resultName]=d.v,s.resultName=void 0),s.sent=d.v,s.next=d.n;try{return a.call(this,s)}finally{d.p=s.prev,d.n=s.next}}}return(Tt=function(){return{wrap:function(c,d,f,l){return e.w(o(c),d,f,l&&l.reverse())},isGeneratorFunction:i,mark:e.m,awrap:function(c,d){return new Vv(c,d)},AsyncIterator:zi,async:function(c,d,f,l,u){return(i(d)?Hv:ax)(o(c),d,f,l,u)},keys:sx,values:xd}})()}function wd(e,r,t,i,n,o,a){try{var s=e[o](a),c=s.value}catch(d){return void t(d)}s.done?r(c):Promise.resolve(c).then(i,n)}function Jn(e){return function(){var r=this,t=arguments;return new Promise(function(i,n){var o=e.apply(r,t);function a(c){wd(o,i,n,a,s,"next",c)}function s(c){wd(o,i,n,a,s,"throw",c)}a(void 0)})}}var Cr="RC_FORM_INTERNAL_HOOKS",Fe=function(){ze(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},rn=I.createContext({getFieldValue:Fe,getFieldsValue:Fe,getFieldError:Fe,getFieldWarning:Fe,getFieldsError:Fe,isFieldsTouched:Fe,isFieldTouched:Fe,isFieldValidating:Fe,isFieldsValidating:Fe,resetFields:Fe,setFields:Fe,setFieldValue:Fe,setFieldsValue:Fe,validateFields:Fe,submit:Fe,getInternalHooks:function(){return Fe(),{dispatch:Fe,initEntityValue:Fe,registerField:Fe,useSubscribe:Fe,setInitialValues:Fe,destroyForm:Fe,setCallbacks:Fe,registerWatch:Fe,getFields:Fe,setValidateMessages:Fe,setPreserve:Fe,getInitialValue:Fe}}}),Ui=I.createContext(null);function El(e){return e==null?[]:Array.isArray(e)?e:[e]}function lx(e){return e&&!!e._init}function _l(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var r=JSON.parse(JSON.stringify(this));return r.clone=this.clone,r}}}var Sl=_l();function ux(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function cx(e,r,t){if(Yl())return Reflect.construct.apply(null,arguments);var i=[null];i.push.apply(i,r);var n=new(e.bind.apply(e,i));return t&&Dn(n,t.prototype),n}function Cl(e){var r=typeof Map=="function"?new Map:void 0;return Cl=function(i){if(i===null||!ux(i))return i;if(typeof i!="function")throw new TypeError("Super expression must either be null or a function");if(r!==void 0){if(r.has(i))return r.get(i);r.set(i,n)}function n(){return cx(i,arguments,qn(this).constructor)}return n.prototype=Object.create(i.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Dn(n,i)},Cl(e)}var fx=/%[sdj%]/g,zv=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(zv=function(r,t){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&t.every(function(i){return typeof i=="string"})&&console.warn(r,t)});function Ol(e){if(!e||!e.length)return null;var r={};return e.forEach(function(t){var i=t.field;r[i]=r[i]||[],r[i].push(t)}),r}function wt(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),i=1;i<r;i++)t[i-1]=arguments[i];var n=0,o=t.length;if(typeof e=="function")return e.apply(null,t);if(typeof e=="string"){var a=e.replace(fx,function(s){if(s==="%%")return"%";if(n>=o)return s;switch(s){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch{return"[Circular]"}break;default:return s}});return a}return e}function dx(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function tt(e,r){return!!(e==null||r==="array"&&Array.isArray(e)&&!e.length||dx(r)&&typeof e=="string"&&!e)}function hx(e,r,t){var i=[],n=0,o=e.length;function a(s){i.push.apply(i,me(s||[])),n++,n===o&&t(i)}e.forEach(function(s){r(s,a)})}function Ed(e,r,t){var i=0,n=e.length;function o(a){if(a&&a.length){t(a);return}var s=i;i=i+1,s<n?r(e[s],o):t([])}o([])}function vx(e){var r=[];return Object.keys(e).forEach(function(t){r.push.apply(r,me(e[t]||[]))}),r}var _d=(function(e){gr(t,e);var r=mr(t);function t(i,n){var o;return ot(this,t),o=r.call(this,"Async Validation Error"),G(Oe(o),"errors",void 0),G(Oe(o),"fields",void 0),o.errors=i,o.fields=n,o}return at(t)})(Cl(Error));function px(e,r,t,i,n){if(r.first){var o=new Promise(function(u,h){var p=function(y){return i(y),y.length?h(new _d(y,Ol(y))):u(n)},m=vx(e);Ed(m,t,p)});return o.catch(function(u){return u}),o}var a=r.firstFields===!0?Object.keys(e):r.firstFields||[],s=Object.keys(e),c=s.length,d=0,f=[],l=new Promise(function(u,h){var p=function(v){if(f.push.apply(f,v),d++,d===c)return i(f),f.length?h(new _d(f,Ol(f))):u(n)};s.length||(i(f),u(n)),s.forEach(function(m){var v=e[m];a.indexOf(m)!==-1?Ed(v,t,p):hx(v,t,p)})});return l.catch(function(u){return u}),l}function gx(e){return!!(e&&e.message!==void 0)}function mx(e,r){for(var t=e,i=0;i<r.length;i++){if(t==null)return t;t=t[r[i]]}return t}function Sd(e,r){return function(t){var i;return e.fullFields?i=mx(r,e.fullFields):i=r[t.field||e.fullField],gx(t)?(t.field=t.field||e.fullField,t.fieldValue=i,t):{message:typeof t=="function"?t():t,fieldValue:i,field:t.field||e.fullField}}}function Cd(e,r){if(r){for(var t in r)if(r.hasOwnProperty(t)){var i=r[t];Ee(i)==="object"&&Ee(e[t])==="object"?e[t]=J(J({},e[t]),i):e[t]=i}}return e}var Dr="enum",yx=function(r,t,i,n,o){r[Dr]=Array.isArray(r[Dr])?r[Dr]:[],r[Dr].indexOf(t)===-1&&n.push(wt(o.messages[Dr],r.fullField,r[Dr].join(", ")))},bx=function(r,t,i,n,o){if(r.pattern){if(r.pattern instanceof RegExp)r.pattern.lastIndex=0,r.pattern.test(t)||n.push(wt(o.messages.pattern.mismatch,r.fullField,t,r.pattern));else if(typeof r.pattern=="string"){var a=new RegExp(r.pattern);a.test(t)||n.push(wt(o.messages.pattern.mismatch,r.fullField,t,r.pattern))}}},xx=function(r,t,i,n,o){var a=typeof r.len=="number",s=typeof r.min=="number",c=typeof r.max=="number",d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,f=t,l=null,u=typeof t=="number",h=typeof t=="string",p=Array.isArray(t);if(u?l="number":h?l="string":p&&(l="array"),!l)return!1;p&&(f=t.length),h&&(f=t.replace(d,"_").length),a?f!==r.len&&n.push(wt(o.messages[l].len,r.fullField,r.len)):s&&!c&&f<r.min?n.push(wt(o.messages[l].min,r.fullField,r.min)):c&&!s&&f>r.max?n.push(wt(o.messages[l].max,r.fullField,r.max)):s&&c&&(f<r.min||f>r.max)&&n.push(wt(o.messages[l].range,r.fullField,r.min,r.max))},Uv=function(r,t,i,n,o,a){r.required&&(!i.hasOwnProperty(r.field)||tt(t,a||r.type))&&n.push(wt(o.messages.required,r.fullField))},Si;const wx=(function(){if(Si)return Si;var e="[a-fA-F\\d:]",r=function(_){return _&&_.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},t="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",i="[a-fA-F\\d]{1,4}",n=["(?:".concat(i,":){7}(?:").concat(i,"|:)"),"(?:".concat(i,":){6}(?:").concat(t,"|:").concat(i,"|:)"),"(?:".concat(i,":){5}(?::").concat(t,"|(?::").concat(i,"){1,2}|:)"),"(?:".concat(i,":){4}(?:(?::").concat(i,"){0,1}:").concat(t,"|(?::").concat(i,"){1,3}|:)"),"(?:".concat(i,":){3}(?:(?::").concat(i,"){0,2}:").concat(t,"|(?::").concat(i,"){1,4}|:)"),"(?:".concat(i,":){2}(?:(?::").concat(i,"){0,3}:").concat(t,"|(?::").concat(i,"){1,5}|:)"),"(?:".concat(i,":){1}(?:(?::").concat(i,"){0,4}:").concat(t,"|(?::").concat(i,"){1,6}|:)"),"(?::(?:(?::".concat(i,"){0,5}:").concat(t,"|(?::").concat(i,"){1,7}|:))")],o="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(n.join("|"),")").concat(o),s=new RegExp("(?:^".concat(t,"$)|(?:^").concat(a,"$)")),c=new RegExp("^".concat(t,"$")),d=new RegExp("^".concat(a,"$")),f=function(_){return _&&_.exact?s:new RegExp("(?:".concat(r(_)).concat(t).concat(r(_),")|(?:").concat(r(_)).concat(a).concat(r(_),")"),"g")};f.v4=function(x){return x&&x.exact?c:new RegExp("".concat(r(x)).concat(t).concat(r(x)),"g")},f.v6=function(x){return x&&x.exact?d:new RegExp("".concat(r(x)).concat(a).concat(r(x)),"g")};var l="(?:(?:[a-z]+:)?//)",u="(?:\\S+(?::\\S*)?@)?",h=f.v4().source,p=f.v6().source,m="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",w='(?:[/?#][^\\s"]*)?',b="(?:".concat(l,"|www\\.)").concat(u,"(?:localhost|").concat(h,"|").concat(p,"|").concat(m).concat(v).concat(y,")").concat(g).concat(w);return Si=new RegExp("(?:^".concat(b,"$)"),"i"),Si});var Od={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},kn={integer:function(r){return kn.number(r)&&parseInt(r,10)===r},float:function(r){return kn.number(r)&&!kn.integer(r)},array:function(r){return Array.isArray(r)},regexp:function(r){if(r instanceof RegExp)return!0;try{return!!new RegExp(r)}catch{return!1}},date:function(r){return typeof r.getTime=="function"&&typeof r.getMonth=="function"&&typeof r.getYear=="function"&&!isNaN(r.getTime())},number:function(r){return isNaN(r)?!1:typeof r=="number"},object:function(r){return Ee(r)==="object"&&!kn.array(r)},method:function(r){return typeof r=="function"},email:function(r){return typeof r=="string"&&r.length<=320&&!!r.match(Od.email)},url:function(r){return typeof r=="string"&&r.length<=2048&&!!r.match(wx())},hex:function(r){return typeof r=="string"&&!!r.match(Od.hex)}},Ex=function(r,t,i,n,o){if(r.required&&t===void 0){Uv(r,t,i,n,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=r.type;a.indexOf(s)>-1?kn[s](t)||n.push(wt(o.messages.types[s],r.fullField,r.type)):s&&Ee(t)!==r.type&&n.push(wt(o.messages.types[s],r.fullField,r.type))},_x=function(r,t,i,n,o){(/^\s+$/.test(t)||t==="")&&n.push(wt(o.messages.whitespace,r.fullField))};const Ae={required:Uv,whitespace:_x,type:Ex,range:xx,enum:yx,pattern:bx};var Sx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(tt(t)&&!r.required)return i();Ae.required(r,t,n,a,o)}i(a)},Cx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(t==null&&!r.required)return i();Ae.required(r,t,n,a,o,"array"),t!=null&&(Ae.type(r,t,n,a,o),Ae.range(r,t,n,a,o))}i(a)},Ox=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(tt(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&Ae.type(r,t,n,a,o)}i(a)},Rx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(tt(t,"date")&&!r.required)return i();if(Ae.required(r,t,n,a,o),!tt(t,"date")){var c;t instanceof Date?c=t:c=new Date(t),Ae.type(r,c,n,a,o),c&&Ae.range(r,c.getTime(),n,a,o)}}i(a)},Ax="enum",Tx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(tt(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&Ae[Ax](r,t,n,a,o)}i(a)},kx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(tt(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&(Ae.type(r,t,n,a,o),Ae.range(r,t,n,a,o))}i(a)},Px=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(tt(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&(Ae.type(r,t,n,a,o),Ae.range(r,t,n,a,o))}i(a)},jx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(tt(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&Ae.type(r,t,n,a,o)}i(a)},Nx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(t===""&&(t=void 0),tt(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&(Ae.type(r,t,n,a,o),Ae.range(r,t,n,a,o))}i(a)},Mx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(tt(t)&&!r.required)return i();Ae.required(r,t,n,a,o),t!==void 0&&Ae.type(r,t,n,a,o)}i(a)},Ix=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(tt(t,"string")&&!r.required)return i();Ae.required(r,t,n,a,o),tt(t,"string")||Ae.pattern(r,t,n,a,o)}i(a)},Lx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(tt(t)&&!r.required)return i();Ae.required(r,t,n,a,o),tt(t)||Ae.type(r,t,n,a,o)}i(a)},$x=function(r,t,i,n,o){var a=[],s=Array.isArray(t)?"array":Ee(t);Ae.required(r,t,n,a,o,s),i(a)},Fx=function(r,t,i,n,o){var a=[],s=r.required||!r.required&&n.hasOwnProperty(r.field);if(s){if(tt(t,"string")&&!r.required)return i();Ae.required(r,t,n,a,o,"string"),tt(t,"string")||(Ae.type(r,t,n,a,o),Ae.range(r,t,n,a,o),Ae.pattern(r,t,n,a,o),r.whitespace===!0&&Ae.whitespace(r,t,n,a,o))}i(a)},Ss=function(r,t,i,n,o){var a=r.type,s=[],c=r.required||!r.required&&n.hasOwnProperty(r.field);if(c){if(tt(t,a)&&!r.required)return i();Ae.required(r,t,n,s,o,a),tt(t,a)||Ae.type(r,t,n,s,o)}i(s)};const Mn={string:Fx,method:jx,number:Nx,boolean:Ox,regexp:Lx,integer:Px,float:kx,array:Cx,object:Mx,enum:Tx,pattern:Ix,date:Rx,url:Ss,hex:Ss,email:Ss,required:$x,any:Sx};var ei=(function(){function e(r){ot(this,e),G(this,"rules",null),G(this,"_messages",Sl),this.define(r)}return at(e,[{key:"define",value:function(t){var i=this;if(!t)throw new Error("Cannot configure a schema with no rules");if(Ee(t)!=="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(function(n){var o=t[n];i.rules[n]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(t){return t&&(this._messages=Cd(_l(),t)),this._messages}},{key:"validate",value:function(t){var i=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=t,s=n,c=o;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,a),Promise.resolve(a);function d(p){var m=[],v={};function y(w){if(Array.isArray(w)){var b;m=(b=m).concat.apply(b,me(w))}else m.push(w)}for(var g=0;g<p.length;g++)y(p[g]);m.length?(v=Ol(m),c(m,v)):c(null,a)}if(s.messages){var f=this.messages();f===Sl&&(f=_l()),Cd(f,s.messages),s.messages=f}else s.messages=this.messages();var l={},u=s.keys||Object.keys(this.rules);u.forEach(function(p){var m=i.rules[p],v=a[p];m.forEach(function(y){var g=y;typeof g.transform=="function"&&(a===t&&(a=J({},a)),v=a[p]=g.transform(v),v!=null&&(g.type=g.type||(Array.isArray(v)?"array":Ee(v)))),typeof g=="function"?g={validator:g}:g=J({},g),g.validator=i.getValidationMethod(g),g.validator&&(g.field=p,g.fullField=g.fullField||p,g.type=i.getType(g),l[p]=l[p]||[],l[p].push({rule:g,value:v,source:a,field:p}))})});var h={};return px(l,s,function(p,m){var v=p.rule,y=(v.type==="object"||v.type==="array")&&(Ee(v.fields)==="object"||Ee(v.defaultField)==="object");y=y&&(v.required||!v.required&&p.value),v.field=p.field;function g(E,C){return J(J({},C),{},{fullField:"".concat(v.fullField,".").concat(E),fullFields:v.fullFields?[].concat(me(v.fullFields),[E]):[E]})}function w(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],C=Array.isArray(E)?E:[E];!s.suppressWarning&&C.length&&e.warning("async-validator:",C),C.length&&v.message!==void 0&&(C=[].concat(v.message));var k=C.map(Sd(v,a));if(s.first&&k.length)return h[v.field]=1,m(k);if(!y)m(k);else{if(v.required&&!p.value)return v.message!==void 0?k=[].concat(v.message).map(Sd(v,a)):s.error&&(k=[s.error(v,wt(s.messages.required,v.field))]),m(k);var O={};v.defaultField&&Object.keys(p.value).map(function(T){O[T]=v.defaultField}),O=J(J({},O),p.rule.fields);var S={};Object.keys(O).forEach(function(T){var P=O[T],L=Array.isArray(P)?P:[P];S[T]=L.map(g.bind(null,T))});var R=new e(S);R.messages(s.messages),p.rule.options&&(p.rule.options.messages=s.messages,p.rule.options.error=s.error),R.validate(p.value,p.rule.options||s,function(T){var P=[];k&&k.length&&P.push.apply(P,me(k)),T&&T.length&&P.push.apply(P,me(T)),m(P.length?P:null)})}}var b;if(v.asyncValidator)b=v.asyncValidator(v,p.value,w,p.source,s);else if(v.validator){try{b=v.validator(v,p.value,w,p.source,s)}catch(E){var x,_;(x=(_=console).error)===null||x===void 0||x.call(_,E),s.suppressValidatorError||setTimeout(function(){throw E},0),w(E.message)}b===!0?w():b===!1?w(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):b instanceof Array?w(b):b instanceof Error&&w(b.message)}b&&b.then&&b.then(function(){return w()},function(E){return w(E)})},function(p){d(p)},a)}},{key:"getType",value:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!Mn.hasOwnProperty(t.type))throw new Error(wt("Unknown rule type %s",t.type));return t.type||"string"}},{key:"getValidationMethod",value:function(t){if(typeof t.validator=="function")return t.validator;var i=Object.keys(t),n=i.indexOf("message");return n!==-1&&i.splice(n,1),i.length===1&&i[0]==="required"?Mn.required:Mn[this.getType(t)]||void 0}}]),e})();G(ei,"register",function(r,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");Mn[r]=t});G(ei,"warning",zv);G(ei,"messages",Sl);G(ei,"validators",Mn);var bt="'${name}' is not a valid ${type}",Wv={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:bt,method:bt,array:bt,object:bt,number:bt,date:bt,boolean:bt,integer:bt,float:bt,regexp:bt,email:bt,url:bt,hex:bt},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},Rd=ei;function Dx(e,r){return e.replace(/\\?\$\{\w+\}/g,function(t){if(t.startsWith("\\"))return t.slice(1);var i=t.slice(2,-1);return r[i]})}var Ad="CODE_LOGIC_ERROR";function Rl(e,r,t,i,n){return Al.apply(this,arguments)}function Al(){return Al=Jn(Tt().mark(function e(r,t,i,n,o){var a,s,c,d,f,l,u,h,p;return Tt().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return a=J({},i),delete a.ruleIndex,Rd.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(Ad)}}),c=null,a&&a.type==="array"&&a.defaultField&&(c=a.defaultField,delete a.defaultField),d=new Rd(G({},r,[a])),f=Br(Wv,n.validateMessages),d.messages(f),l=[],v.prev=10,v.next=13,Promise.resolve(d.validate(G({},r,t),J({},n)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(l=v.t0.errors.map(function(y,g){var w=y.message,b=w===Ad?f.default:w;return I.isValidElement(b)?I.cloneElement(b,{key:"error_".concat(g)}):b}));case 18:if(!(!l.length&&c)){v.next=23;break}return v.next=21,Promise.all(t.map(function(y,g){return Rl("".concat(r,".").concat(g),y,c,n,o)}));case 21:return u=v.sent,v.abrupt("return",u.reduce(function(y,g){return[].concat(me(y),me(g))},[]));case 23:return h=J(J({},i),{},{name:r,enum:(i.enum||[]).join(", ")},o),p=l.map(function(y){return typeof y=="string"?Dx(y,h):y}),v.abrupt("return",p);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),Al.apply(this,arguments)}function qx(e,r,t,i,n,o){var a=e.join("."),s=t.map(function(f,l){var u=f.validator,h=J(J({},f),{},{ruleIndex:l});return u&&(h.validator=function(p,m,v){var y=!1,g=function(){for(var x=arguments.length,_=new Array(x),E=0;E<x;E++)_[E]=arguments[E];Promise.resolve().then(function(){ze(!y,"Your validator function has already return a promise. `callback` will be ignored."),y||v.apply(void 0,_)})},w=u(p,m,g);y=w&&typeof w.then=="function"&&typeof w.catch=="function",ze(y,"`callback` is deprecated. Please return a promise instead."),y&&w.then(function(){v()}).catch(function(b){v(b||" ")})}),h}).sort(function(f,l){var u=f.warningOnly,h=f.ruleIndex,p=l.warningOnly,m=l.ruleIndex;return!!u==!!p?h-m:u?1:-1}),c;if(n===!0)c=new Promise((function(){var f=Jn(Tt().mark(function l(u,h){var p,m,v;return Tt().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:p=0;case 1:if(!(p<s.length)){g.next=12;break}return m=s[p],g.next=5,Rl(a,r,m,i,o);case 5:if(v=g.sent,!v.length){g.next=9;break}return h([{errors:v,rule:m}]),g.abrupt("return");case 9:p+=1,g.next=1;break;case 12:u([]);case 13:case"end":return g.stop()}},l)}));return function(l,u){return f.apply(this,arguments)}})());else{var d=s.map(function(f){return Rl(a,r,f,i,o).then(function(l){return{errors:l,rule:f}})});c=(n?Vx(d):Bx(d)).then(function(f){return Promise.reject(f)})}return c.catch(function(f){return f}),c}function Bx(e){return Tl.apply(this,arguments)}function Tl(){return Tl=Jn(Tt().mark(function e(r){return Tt().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.abrupt("return",Promise.all(r).then(function(n){var o,a=(o=[]).concat.apply(o,me(n));return a}));case 1:case"end":return i.stop()}},e)})),Tl.apply(this,arguments)}function Vx(e){return kl.apply(this,arguments)}function kl(){return kl=Jn(Tt().mark(function e(r){var t;return Tt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return t=0,n.abrupt("return",new Promise(function(o){r.forEach(function(a){a.then(function(s){s.errors.length&&o([s]),t+=1,t===r.length&&o([])})})}));case 2:case"end":return n.stop()}},e)})),kl.apply(this,arguments)}function Ze(e){return El(e)}function Td(e,r){var t={};return r.forEach(function(i){var n=Ut(e,i);t=Lt(t,i,n)}),t}function Ur(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(i){return Kv(r,i,t)})}function Kv(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!r||!t&&e.length!==r.length?!1:r.every(function(i,n){return e[n]===i})}function Hx(e,r){if(e===r)return!0;if(!e&&r||e&&!r||!e||!r||Ee(e)!=="object"||Ee(r)!=="object")return!1;var t=Object.keys(e),i=Object.keys(r),n=new Set([].concat(t,i));return me(n).every(function(o){var a=e[o],s=r[o];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function zx(e){var r=arguments.length<=1?void 0:arguments[1];return r&&r.target&&Ee(r.target)==="object"&&e in r.target?r.target[e]:r}function kd(e,r,t){var i=e.length;if(r<0||r>=i||t<0||t>=i)return e;var n=e[r],o=r-t;return o>0?[].concat(me(e.slice(0,t)),[n],me(e.slice(t,r)),me(e.slice(r+1,i))):o<0?[].concat(me(e.slice(0,r)),me(e.slice(r+1,t+1)),[n],me(e.slice(t+1,i))):e}var Ux=["name"],Rt=[];function Cs(e,r,t,i,n,o){return typeof e=="function"?e(r,t,"source"in o?{source:o.source}:{}):i!==n}var su=(function(e){gr(t,e);var r=mr(t);function t(i){var n;if(ot(this,t),n=r.call(this,i),G(Oe(n),"state",{resetCount:0}),G(Oe(n),"cancelRegisterFunc",null),G(Oe(n),"mounted",!1),G(Oe(n),"touched",!1),G(Oe(n),"dirty",!1),G(Oe(n),"validatePromise",void 0),G(Oe(n),"prevValidating",void 0),G(Oe(n),"errors",Rt),G(Oe(n),"warnings",Rt),G(Oe(n),"cancelRegister",function(){var c=n.props,d=c.preserve,f=c.isListField,l=c.name;n.cancelRegisterFunc&&n.cancelRegisterFunc(f,d,Ze(l)),n.cancelRegisterFunc=null}),G(Oe(n),"getNamePath",function(){var c=n.props,d=c.name,f=c.fieldContext,l=f.prefixName,u=l===void 0?[]:l;return d!==void 0?[].concat(me(u),me(d)):[]}),G(Oe(n),"getRules",function(){var c=n.props,d=c.rules,f=d===void 0?[]:d,l=c.fieldContext;return f.map(function(u){return typeof u=="function"?u(l):u})}),G(Oe(n),"refresh",function(){n.mounted&&n.setState(function(c){var d=c.resetCount;return{resetCount:d+1}})}),G(Oe(n),"metaCache",null),G(Oe(n),"triggerMetaEvent",function(c){var d=n.props.onMetaChange;if(d){var f=J(J({},n.getMeta()),{},{destroy:c});il(n.metaCache,f)||d(f),n.metaCache=f}else n.metaCache=null}),G(Oe(n),"onStoreChange",function(c,d,f){var l=n.props,u=l.shouldUpdate,h=l.dependencies,p=h===void 0?[]:h,m=l.onReset,v=f.store,y=n.getNamePath(),g=n.getValue(c),w=n.getValue(v),b=d&&Ur(d,y);switch(f.type==="valueUpdate"&&f.source==="external"&&!il(g,w)&&(n.touched=!0,n.dirty=!0,n.validatePromise=null,n.errors=Rt,n.warnings=Rt,n.triggerMetaEvent()),f.type){case"reset":if(!d||b){n.touched=!1,n.dirty=!1,n.validatePromise=void 0,n.errors=Rt,n.warnings=Rt,n.triggerMetaEvent(),m?.(),n.refresh();return}break;case"remove":{if(u&&Cs(u,c,v,g,w,f)){n.reRender();return}break}case"setField":{var x=f.data;if(b){"touched"in x&&(n.touched=x.touched),"validating"in x&&!("originRCField"in x)&&(n.validatePromise=x.validating?Promise.resolve([]):null),"errors"in x&&(n.errors=x.errors||Rt),"warnings"in x&&(n.warnings=x.warnings||Rt),n.dirty=!0,n.triggerMetaEvent(),n.reRender();return}else if("value"in x&&Ur(d,y,!0)){n.reRender();return}if(u&&!y.length&&Cs(u,c,v,g,w,f)){n.reRender();return}break}case"dependenciesUpdate":{var _=p.map(Ze);if(_.some(function(E){return Ur(f.relatedFields,E)})){n.reRender();return}break}default:if(b||(!p.length||y.length||u)&&Cs(u,c,v,g,w,f)){n.reRender();return}break}u===!0&&n.reRender()}),G(Oe(n),"validateRules",function(c){var d=n.getNamePath(),f=n.getValue(),l=c||{},u=l.triggerName,h=l.validateOnly,p=h===void 0?!1:h,m=Promise.resolve().then(Jn(Tt().mark(function v(){var y,g,w,b,x,_,E;return Tt().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(n.mounted){k.next=2;break}return k.abrupt("return",[]);case 2:if(y=n.props,g=y.validateFirst,w=g===void 0?!1:g,b=y.messageVariables,x=y.validateDebounce,_=n.getRules(),u&&(_=_.filter(function(O){return O}).filter(function(O){var S=O.validateTrigger;if(!S)return!0;var R=El(S);return R.includes(u)})),!(x&&u)){k.next=10;break}return k.next=8,new Promise(function(O){setTimeout(O,x)});case 8:if(n.validatePromise===m){k.next=10;break}return k.abrupt("return",[]);case 10:return E=qx(d,f,_,c,w,b),E.catch(function(O){return O}).then(function(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rt;if(n.validatePromise===m){var S;n.validatePromise=null;var R=[],T=[];(S=O.forEach)===null||S===void 0||S.call(O,function(P){var L=P.rule.warningOnly,F=P.errors,$=F===void 0?Rt:F;L?T.push.apply(T,me($)):R.push.apply(R,me($))}),n.errors=R,n.warnings=T,n.triggerMetaEvent(),n.reRender()}}),k.abrupt("return",E);case 13:case"end":return k.stop()}},v)})));return p||(n.validatePromise=m,n.dirty=!0,n.errors=Rt,n.warnings=Rt,n.triggerMetaEvent(),n.reRender()),m}),G(Oe(n),"isFieldValidating",function(){return!!n.validatePromise}),G(Oe(n),"isFieldTouched",function(){return n.touched}),G(Oe(n),"isFieldDirty",function(){if(n.dirty||n.props.initialValue!==void 0)return!0;var c=n.props.fieldContext,d=c.getInternalHooks(Cr),f=d.getInitialValue;return f(n.getNamePath())!==void 0}),G(Oe(n),"getErrors",function(){return n.errors}),G(Oe(n),"getWarnings",function(){return n.warnings}),G(Oe(n),"isListField",function(){return n.props.isListField}),G(Oe(n),"isList",function(){return n.props.isList}),G(Oe(n),"isPreserve",function(){return n.props.preserve}),G(Oe(n),"getMeta",function(){n.prevValidating=n.isFieldValidating();var c={touched:n.isFieldTouched(),validating:n.prevValidating,errors:n.errors,warnings:n.warnings,name:n.getNamePath(),validated:n.validatePromise===null};return c}),G(Oe(n),"getOnlyChild",function(c){if(typeof c=="function"){var d=n.getMeta();return J(J({},n.getOnlyChild(c(n.getControlled(),d,n.props.fieldContext))),{},{isFunction:!0})}var f=Gr(c);return f.length!==1||!I.isValidElement(f[0])?{child:f,isFunction:!1}:{child:f[0],isFunction:!1}}),G(Oe(n),"getValue",function(c){var d=n.props.fieldContext.getFieldsValue,f=n.getNamePath();return Ut(c||d(!0),f)}),G(Oe(n),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},d=n.props,f=d.name,l=d.trigger,u=d.validateTrigger,h=d.getValueFromEvent,p=d.normalize,m=d.valuePropName,v=d.getValueProps,y=d.fieldContext,g=u!==void 0?u:y.validateTrigger,w=n.getNamePath(),b=y.getInternalHooks,x=y.getFieldsValue,_=b(Cr),E=_.dispatch,C=n.getValue(),k=v||function(P){return G({},m,P)},O=c[l],S=f!==void 0?k(C):{};process.env.NODE_ENV!=="production"&&S&&Object.keys(S).forEach(function(P){ze(typeof S[P]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(P,")"))});var R=J(J({},c),S);R[l]=function(){n.touched=!0,n.dirty=!0,n.triggerMetaEvent();for(var P,L=arguments.length,F=new Array(L),$=0;$<L;$++)F[$]=arguments[$];h?P=h.apply(void 0,F):P=zx.apply(void 0,[m].concat(F)),p&&(P=p(P,C,x(!0))),P!==C&&E({type:"updateValue",namePath:w,value:P}),O&&O.apply(void 0,F)};var T=El(g||[]);return T.forEach(function(P){var L=R[P];R[P]=function(){L&&L.apply(void 0,arguments);var F=n.props.rules;F&&F.length&&E({type:"validateField",namePath:w,triggerName:P})}}),R}),i.fieldContext){var o=i.fieldContext.getInternalHooks,a=o(Cr),s=a.initEntityValue;s(Oe(n))}return n}return at(t,[{key:"componentDidMount",value:function(){var n=this.props,o=n.shouldUpdate,a=n.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,c=s(Cr),d=c.registerField;this.cancelRegisterFunc=d(this)}o===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var n=this.state.resetCount,o=this.props.children,a=this.getOnlyChild(o),s=a.child,c=a.isFunction,d;return c?d=s:I.isValidElement(s)?d=I.cloneElement(s,this.getControlled(s.props)):(ze(!s,"`children` of Field is not validate ReactElement."),d=s),I.createElement(I.Fragment,{key:n},d)}}]),t})(I.Component);G(su,"contextType",rn);G(su,"defaultProps",{trigger:"onChange",valuePropName:"value"});function Gv(e){var r,t=e.name,i=dt(e,Ux),n=I.useContext(rn),o=I.useContext(Ui),a=t!==void 0?Ze(t):void 0,s=(r=i.isListField)!==null&&r!==void 0?r:!!o,c="keep";return s||(c="_".concat((a||[]).join("_"))),process.env.NODE_ENV!=="production"&&i.preserve===!1&&s&&a.length<=1&&ze(!1,"`preserve` should not apply on Form.List fields."),I.createElement(su,qe({key:c,name:a,isListField:s},i,{fieldContext:n}))}function Wx(e){var r=e.name,t=e.initialValue,i=e.children,n=e.rules,o=e.validateTrigger,a=e.isListField,s=I.useContext(rn),c=I.useContext(Ui),d=I.useRef({keys:[],id:0}),f=d.current,l=I.useMemo(function(){var m=Ze(s.prefixName)||[];return[].concat(me(m),me(Ze(r)))},[s.prefixName,r]),u=I.useMemo(function(){return J(J({},s),{},{prefixName:l})},[s,l]),h=I.useMemo(function(){return{getKey:function(v){var y=l.length,g=v[y];return[f.keys[g],v.slice(y+1)]}}},[l]);if(typeof i!="function")return ze(!1,"Form.List only accepts function as children."),null;var p=function(v,y,g){var w=g.source;return w==="internal"?!1:v!==y};return I.createElement(Ui.Provider,{value:h},I.createElement(rn.Provider,{value:u},I.createElement(Gv,{name:[],shouldUpdate:p,rules:n,validateTrigger:o,initialValue:t,isList:!0,isListField:a??!!c},function(m,v){var y=m.value,g=y===void 0?[]:y,w=m.onChange,b=s.getFieldValue,x=function(){var k=b(l||[]);return k||[]},_={add:function(k,O){var S=x();O>=0&&O<=S.length?(f.keys=[].concat(me(f.keys.slice(0,O)),[f.id],me(f.keys.slice(O))),w([].concat(me(S.slice(0,O)),[k],me(S.slice(O))))):(process.env.NODE_ENV!=="production"&&(O<0||O>S.length)&&ze(!1,"The second parameter of the add function should be a valid positive number."),f.keys=[].concat(me(f.keys),[f.id]),w([].concat(me(S),[k]))),f.id+=1},remove:function(k){var O=x(),S=new Set(Array.isArray(k)?k:[k]);S.size<=0||(f.keys=f.keys.filter(function(R,T){return!S.has(T)}),w(O.filter(function(R,T){return!S.has(T)})))},move:function(k,O){if(k!==O){var S=x();k<0||k>=S.length||O<0||O>=S.length||(f.keys=kd(f.keys,k,O),w(kd(S,k,O)))}}},E=g||[];return Array.isArray(E)||(E=[],process.env.NODE_ENV!=="production"&&ze(!1,"Current value of '".concat(l.join(" > "),"' is not an array type."))),i(E.map(function(C,k){var O=f.keys[k];return O===void 0&&(f.keys[k]=f.id,O=f.keys[k],f.id+=1),{name:k,key:O,isListField:!0}}),_,v)})))}function Kx(e){var r=!1,t=e.length,i=[];return e.length?new Promise(function(n,o){e.forEach(function(a,s){a.catch(function(c){return r=!0,c}).then(function(c){t-=1,i[s]=c,!(t>0)&&(r&&o(i),n(i))})})}):Promise.resolve([])}var Yv="__@field_split__";function Os(e){return e.map(function(r){return"".concat(Ee(r),":").concat(r)}).join(Yv)}var qr=(function(){function e(){ot(this,e),G(this,"kvs",new Map)}return at(e,[{key:"set",value:function(t,i){this.kvs.set(Os(t),i)}},{key:"get",value:function(t){return this.kvs.get(Os(t))}},{key:"update",value:function(t,i){var n=this.get(t),o=i(n);o?this.set(t,o):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(Os(t))}},{key:"map",value:function(t){return me(this.kvs.entries()).map(function(i){var n=le(i,2),o=n[0],a=n[1],s=o.split(Yv);return t({key:s.map(function(c){var d=c.match(/^([^:]*):(.*)$/),f=le(d,3),l=f[1],u=f[2];return l==="number"?Number(u):u}),value:a})})}},{key:"toJSON",value:function(){var t={};return this.map(function(i){var n=i.key,o=i.value;return t[n.join(".")]=o,null}),t}}]),e})(),Gx=["name"],Yx=at(function e(r){var t=this;ot(this,e),G(this,"formHooked",!1),G(this,"forceRootUpdate",void 0),G(this,"subscribable",!0),G(this,"store",{}),G(this,"fieldEntities",[]),G(this,"initialValues",{}),G(this,"callbacks",{}),G(this,"validateMessages",null),G(this,"preserve",null),G(this,"lastValidatePromise",null),G(this,"getForm",function(){return{getFieldValue:t.getFieldValue,getFieldsValue:t.getFieldsValue,getFieldError:t.getFieldError,getFieldWarning:t.getFieldWarning,getFieldsError:t.getFieldsError,isFieldsTouched:t.isFieldsTouched,isFieldTouched:t.isFieldTouched,isFieldValidating:t.isFieldValidating,isFieldsValidating:t.isFieldsValidating,resetFields:t.resetFields,setFields:t.setFields,setFieldValue:t.setFieldValue,setFieldsValue:t.setFieldsValue,validateFields:t.validateFields,submit:t.submit,_init:!0,getInternalHooks:t.getInternalHooks}}),G(this,"getInternalHooks",function(i){return i===Cr?(t.formHooked=!0,{dispatch:t.dispatch,initEntityValue:t.initEntityValue,registerField:t.registerField,useSubscribe:t.useSubscribe,setInitialValues:t.setInitialValues,destroyForm:t.destroyForm,setCallbacks:t.setCallbacks,setValidateMessages:t.setValidateMessages,getFields:t.getFields,setPreserve:t.setPreserve,getInitialValue:t.getInitialValue,registerWatch:t.registerWatch}):(ze(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),G(this,"useSubscribe",function(i){t.subscribable=i}),G(this,"prevWithoutPreserves",null),G(this,"setInitialValues",function(i,n){if(t.initialValues=i||{},n){var o,a=Br(i,t.store);(o=t.prevWithoutPreserves)===null||o===void 0||o.map(function(s){var c=s.key;a=Lt(a,c,Ut(i,c))}),t.prevWithoutPreserves=null,t.updateStore(a)}}),G(this,"destroyForm",function(i){if(i)t.updateStore({});else{var n=new qr;t.getFieldEntities(!0).forEach(function(o){t.isMergedPreserve(o.isPreserve())||n.set(o.getNamePath(),!0)}),t.prevWithoutPreserves=n}}),G(this,"getInitialValue",function(i){var n=Ut(t.initialValues,i);return i.length?Br(n):n}),G(this,"setCallbacks",function(i){t.callbacks=i}),G(this,"setValidateMessages",function(i){t.validateMessages=i}),G(this,"setPreserve",function(i){t.preserve=i}),G(this,"watchList",[]),G(this,"registerWatch",function(i){return t.watchList.push(i),function(){t.watchList=t.watchList.filter(function(n){return n!==i})}}),G(this,"notifyWatch",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(t.watchList.length){var n=t.getFieldsValue(),o=t.getFieldsValue(!0);t.watchList.forEach(function(a){a(n,o,i)})}}),G(this,"timeoutId",null),G(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!t.timeoutId&&typeof window<"u"&&(t.timeoutId=setTimeout(function(){t.timeoutId=null,t.formHooked||ze(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),G(this,"updateStore",function(i){t.store=i}),G(this,"getFieldEntities",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return i?t.fieldEntities.filter(function(n){return n.getNamePath().length}):t.fieldEntities}),G(this,"getFieldsMap",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,n=new qr;return t.getFieldEntities(i).forEach(function(o){var a=o.getNamePath();n.set(a,o)}),n}),G(this,"getFieldEntitiesForNamePathList",function(i){if(!i)return t.getFieldEntities(!0);var n=t.getFieldsMap(!0);return i.map(function(o){var a=Ze(o);return n.get(a)||{INVALIDATE_NAME_PATH:Ze(o)}})}),G(this,"getFieldsValue",function(i,n){t.warningUnhooked();var o,a,s;if(i===!0||Array.isArray(i)?(o=i,a=n):i&&Ee(i)==="object"&&(s=i.strict,a=i.filter),o===!0&&!a)return t.store;var c=t.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),d=[];return c.forEach(function(f){var l,u,h="INVALIDATE_NAME_PATH"in f?f.INVALIDATE_NAME_PATH:f.getNamePath();if(s){var p,m;if((p=(m=f).isList)!==null&&p!==void 0&&p.call(m))return}else if(!o&&(l=(u=f).isListField)!==null&&l!==void 0&&l.call(u))return;if(!a)d.push(h);else{var v="getMeta"in f?f.getMeta():null;a(v)&&d.push(h)}}),Td(t.store,d.map(Ze))}),G(this,"getFieldValue",function(i){t.warningUnhooked();var n=Ze(i);return Ut(t.store,n)}),G(this,"getFieldsError",function(i){t.warningUnhooked();var n=t.getFieldEntitiesForNamePathList(i);return n.map(function(o,a){return o&&!("INVALIDATE_NAME_PATH"in o)?{name:o.getNamePath(),errors:o.getErrors(),warnings:o.getWarnings()}:{name:Ze(i[a]),errors:[],warnings:[]}})}),G(this,"getFieldError",function(i){t.warningUnhooked();var n=Ze(i),o=t.getFieldsError([n])[0];return o.errors}),G(this,"getFieldWarning",function(i){t.warningUnhooked();var n=Ze(i),o=t.getFieldsError([n])[0];return o.warnings}),G(this,"isFieldsTouched",function(){t.warningUnhooked();for(var i=arguments.length,n=new Array(i),o=0;o<i;o++)n[o]=arguments[o];var a=n[0],s=n[1],c,d=!1;n.length===0?c=null:n.length===1?Array.isArray(a)?(c=a.map(Ze),d=!1):(c=null,d=a):(c=a.map(Ze),d=s);var f=t.getFieldEntities(!0),l=function(v){return v.isFieldTouched()};if(!c)return d?f.every(function(m){return l(m)||m.isList()}):f.some(l);var u=new qr;c.forEach(function(m){u.set(m,[])}),f.forEach(function(m){var v=m.getNamePath();c.forEach(function(y){y.every(function(g,w){return v[w]===g})&&u.update(y,function(g){return[].concat(me(g),[m])})})});var h=function(v){return v.some(l)},p=u.map(function(m){var v=m.value;return v});return d?p.every(h):p.some(h)}),G(this,"isFieldTouched",function(i){return t.warningUnhooked(),t.isFieldsTouched([i])}),G(this,"isFieldsValidating",function(i){t.warningUnhooked();var n=t.getFieldEntities();if(!i)return n.some(function(a){return a.isFieldValidating()});var o=i.map(Ze);return n.some(function(a){var s=a.getNamePath();return Ur(o,s)&&a.isFieldValidating()})}),G(this,"isFieldValidating",function(i){return t.warningUnhooked(),t.isFieldsValidating([i])}),G(this,"resetWithFieldInitialValue",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=new qr,o=t.getFieldEntities(!0);o.forEach(function(c){var d=c.props.initialValue,f=c.getNamePath();if(d!==void 0){var l=n.get(f)||new Set;l.add({entity:c,value:d}),n.set(f,l)}});var a=function(d){d.forEach(function(f){var l=f.props.initialValue;if(l!==void 0){var u=f.getNamePath(),h=t.getInitialValue(u);if(h!==void 0)ze(!1,"Form already set 'initialValues' with path '".concat(u.join("."),"'. Field can not overwrite it."));else{var p=n.get(u);if(p&&p.size>1)ze(!1,"Multiple Field with path '".concat(u.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var m=t.getFieldValue(u),v=f.isListField();!v&&(!i.skipExist||m===void 0)&&t.updateStore(Lt(t.store,u,me(p)[0].value))}}}})},s;i.entities?s=i.entities:i.namePathList?(s=[],i.namePathList.forEach(function(c){var d=n.get(c);if(d){var f;(f=s).push.apply(f,me(me(d).map(function(l){return l.entity})))}})):s=o,a(s)}),G(this,"resetFields",function(i){t.warningUnhooked();var n=t.store;if(!i){t.updateStore(Br(t.initialValues)),t.resetWithFieldInitialValue(),t.notifyObservers(n,null,{type:"reset"}),t.notifyWatch();return}var o=i.map(Ze);o.forEach(function(a){var s=t.getInitialValue(a);t.updateStore(Lt(t.store,a,s))}),t.resetWithFieldInitialValue({namePathList:o}),t.notifyObservers(n,o,{type:"reset"}),t.notifyWatch(o)}),G(this,"setFields",function(i){t.warningUnhooked();var n=t.store,o=[];i.forEach(function(a){var s=a.name,c=dt(a,Gx),d=Ze(s);o.push(d),"value"in c&&t.updateStore(Lt(t.store,d,c.value)),t.notifyObservers(n,[d],{type:"setField",data:a})}),t.notifyWatch(o)}),G(this,"getFields",function(){var i=t.getFieldEntities(!0),n=i.map(function(o){var a=o.getNamePath(),s=o.getMeta(),c=J(J({},s),{},{name:a,value:t.getFieldValue(a)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return n}),G(this,"initEntityValue",function(i){var n=i.props.initialValue;if(n!==void 0){var o=i.getNamePath(),a=Ut(t.store,o);a===void 0&&t.updateStore(Lt(t.store,o,n))}}),G(this,"isMergedPreserve",function(i){var n=i!==void 0?i:t.preserve;return n??!0}),G(this,"registerField",function(i){t.fieldEntities.push(i);var n=i.getNamePath();if(t.notifyWatch([n]),i.props.initialValue!==void 0){var o=t.store;t.resetWithFieldInitialValue({entities:[i],skipExist:!0}),t.notifyObservers(o,[i.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t.fieldEntities=t.fieldEntities.filter(function(l){return l!==i}),!t.isMergedPreserve(s)&&(!a||c.length>1)){var d=a?void 0:t.getInitialValue(n);if(n.length&&t.getFieldValue(n)!==d&&t.fieldEntities.every(function(l){return!Kv(l.getNamePath(),n)})){var f=t.store;t.updateStore(Lt(f,n,d,!0)),t.notifyObservers(f,[n],{type:"remove"}),t.triggerDependenciesUpdate(f,n)}}t.notifyWatch([n])}}),G(this,"dispatch",function(i){switch(i.type){case"updateValue":{var n=i.namePath,o=i.value;t.updateValue(n,o);break}case"validateField":{var a=i.namePath,s=i.triggerName;t.validateFields([a],{triggerName:s});break}}}),G(this,"notifyObservers",function(i,n,o){if(t.subscribable){var a=J(J({},o),{},{store:t.getFieldsValue(!0)});t.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(i,n,a)})}else t.forceRootUpdate()}),G(this,"triggerDependenciesUpdate",function(i,n){var o=t.getDependencyChildrenFields(n);return o.length&&t.validateFields(o),t.notifyObservers(i,o,{type:"dependenciesUpdate",relatedFields:[n].concat(me(o))}),o}),G(this,"updateValue",function(i,n){var o=Ze(i),a=t.store;t.updateStore(Lt(t.store,o,n)),t.notifyObservers(a,[o],{type:"valueUpdate",source:"internal"}),t.notifyWatch([o]);var s=t.triggerDependenciesUpdate(a,o),c=t.callbacks.onValuesChange;if(c){var d=Td(t.store,[o]);c(d,t.getFieldsValue())}t.triggerOnFieldsChange([o].concat(me(s)))}),G(this,"setFieldsValue",function(i){t.warningUnhooked();var n=t.store;if(i){var o=Br(t.store,i);t.updateStore(o)}t.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),t.notifyWatch()}),G(this,"setFieldValue",function(i,n){t.setFields([{name:i,value:n,errors:[],warnings:[]}])}),G(this,"getDependencyChildrenFields",function(i){var n=new Set,o=[],a=new qr;t.getFieldEntities().forEach(function(c){var d=c.props.dependencies;(d||[]).forEach(function(f){var l=Ze(f);a.update(l,function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return u.add(c),u})})});var s=function c(d){var f=a.get(d)||new Set;f.forEach(function(l){if(!n.has(l)){n.add(l);var u=l.getNamePath();l.isFieldDirty()&&u.length&&(o.push(u),c(u))}})};return s(i),o}),G(this,"triggerOnFieldsChange",function(i,n){var o=t.callbacks.onFieldsChange;if(o){var a=t.getFields();if(n){var s=new qr;n.forEach(function(d){var f=d.name,l=d.errors;s.set(f,l)}),a.forEach(function(d){d.errors=s.get(d.name)||d.errors})}var c=a.filter(function(d){var f=d.name;return Ur(i,f)});c.length&&o(c,a)}}),G(this,"validateFields",function(i,n){t.warningUnhooked();var o,a;Array.isArray(i)||typeof i=="string"||typeof n=="string"?(o=i,a=n):a=i;var s=!!o,c=s?o.map(Ze):[],d=[],f=String(Date.now()),l=new Set,u=a||{},h=u.recursive,p=u.dirty;t.getFieldEntities(!0).forEach(function(g){if(s||c.push(g.getNamePath()),!(!g.props.rules||!g.props.rules.length)&&!(p&&!g.isFieldDirty())){var w=g.getNamePath();if(l.add(w.join(f)),!s||Ur(c,w,h)){var b=g.validateRules(J({validateMessages:J(J({},Wv),t.validateMessages)},a));d.push(b.then(function(){return{name:w,errors:[],warnings:[]}}).catch(function(x){var _,E=[],C=[];return(_=x.forEach)===null||_===void 0||_.call(x,function(k){var O=k.rule.warningOnly,S=k.errors;O?C.push.apply(C,me(S)):E.push.apply(E,me(S))}),E.length?Promise.reject({name:w,errors:E,warnings:C}):{name:w,errors:E,warnings:C}}))}}});var m=Kx(d);t.lastValidatePromise=m,m.catch(function(g){return g}).then(function(g){var w=g.map(function(b){var x=b.name;return x});t.notifyObservers(t.store,w,{type:"validateFinish"}),t.triggerOnFieldsChange(w,g)});var v=m.then(function(){return t.lastValidatePromise===m?Promise.resolve(t.getFieldsValue(c)):Promise.reject([])}).catch(function(g){var w=g.filter(function(b){return b&&b.errors.length});return Promise.reject({values:t.getFieldsValue(c),errorFields:w,outOfDate:t.lastValidatePromise!==m})});v.catch(function(g){return g});var y=c.filter(function(g){return l.has(g.join(f))});return t.triggerOnFieldsChange(y),v}),G(this,"submit",function(){t.warningUnhooked(),t.validateFields().then(function(i){var n=t.callbacks.onFinish;if(n)try{n(i)}catch(o){console.error(o)}}).catch(function(i){var n=t.callbacks.onFinishFailed;n&&n(i)})}),this.forceRootUpdate=r});function Xv(e){var r=I.useRef(),t=I.useState({}),i=le(t,2),n=i[1];if(!r.current)if(e)r.current=e;else{var o=function(){n({})},a=new Yx(o);r.current=a.getForm()}return[r.current]}var Pl=I.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),Xx=function(r){var t=r.validateMessages,i=r.onFormChange,n=r.onFormFinish,o=r.children,a=I.useContext(Pl),s=I.useRef({});return I.createElement(Pl.Provider,{value:J(J({},a),{},{validateMessages:J(J({},a.validateMessages),t),triggerFormChange:function(d,f){i&&i(d,{changedFields:f,forms:s.current}),a.triggerFormChange(d,f)},triggerFormFinish:function(d,f){n&&n(d,{values:f,forms:s.current}),a.triggerFormFinish(d,f)},registerForm:function(d,f){d&&(s.current=J(J({},s.current),{},G({},d,f))),a.registerForm(d,f)},unregisterForm:function(d){var f=J({},s.current);delete f[d],s.current=f,a.unregisterForm(d)}})},o)},Zx=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Qx=function(r,t){var i=r.name,n=r.initialValues,o=r.fields,a=r.form,s=r.preserve,c=r.children,d=r.component,f=d===void 0?"form":d,l=r.validateMessages,u=r.validateTrigger,h=u===void 0?"onChange":u,p=r.onValuesChange,m=r.onFieldsChange,v=r.onFinish,y=r.onFinishFailed,g=r.clearOnDestroy,w=dt(r,Zx),b=I.useRef(null),x=I.useContext(Pl),_=Xv(a),E=le(_,1),C=E[0],k=C.getInternalHooks(Cr),O=k.useSubscribe,S=k.setInitialValues,R=k.setCallbacks,T=k.setValidateMessages,P=k.setPreserve,L=k.destroyForm;I.useImperativeHandle(t,function(){return J(J({},C),{},{nativeElement:b.current})}),I.useEffect(function(){return x.registerForm(i,C),function(){x.unregisterForm(i)}},[x,C,i]),T(J(J({},x.validateMessages),l)),R({onValuesChange:p,onFieldsChange:function(q){if(x.triggerFormChange(i,q),m){for(var B=arguments.length,N=new Array(B>1?B-1:0),V=1;V<B;V++)N[V-1]=arguments[V];m.apply(void 0,[q].concat(N))}},onFinish:function(q){x.triggerFormFinish(i,q),v&&v(q)},onFinishFailed:y}),P(s);var F=I.useRef(null);S(n,!F.current),F.current||(F.current=!0),I.useEffect(function(){return function(){return L(g)}},[]);var $,z=typeof c=="function";if(z){var H=C.getFieldsValue(!0);$=c(H,C)}else $=c;O(!z);var D=I.useRef();I.useEffect(function(){Hx(D.current||[],o||[])||C.setFields(o||[]),D.current=o},[o,C]);var j=I.useMemo(function(){return J(J({},C),{},{validateTrigger:h})},[C,h]),A=I.createElement(Ui.Provider,{value:null},I.createElement(rn.Provider,{value:j},$));return f===!1?A:I.createElement(f,qe({},w,{ref:b,onSubmit:function(q){q.preventDefault(),q.stopPropagation(),C.submit()},onReset:function(q){var B;q.preventDefault(),C.resetFields(),(B=w.onReset)===null||B===void 0||B.call(w,q)}}),A)};function Pd(e){try{return JSON.stringify(e)}catch{return Math.random()}}var Jx=process.env.NODE_ENV!=="production"?function(e){var r=e.join("__RC_FIELD_FORM_SPLIT__"),t=U.useRef(r);ze(t.current===r,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function e2(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var i=r[0],n=r[1],o=n===void 0?{}:n,a=lx(o)?{form:o}:o,s=a.form,c=U.useState(),d=le(c,2),f=d[0],l=d[1],u=U.useMemo(function(){return Pd(f)},[f]),h=U.useRef(u);h.current=u;var p=U.useContext(rn),m=s||p,v=m&&m._init;process.env.NODE_ENV!=="production"&&ze(r.length===2?s?v:!0:v,"useWatch requires a form instance since it can not auto detect from context.");var y=Ze(i),g=U.useRef(y);return g.current=y,Jx(y),U.useEffect(function(){if(v){var w=m.getFieldsValue,b=m.getInternalHooks,x=b(Cr),_=x.registerWatch,E=function(S,R){var T=a.preserve?R:S;return typeof i=="function"?i(T):Ut(T,g.current)},C=_(function(O,S){var R=E(O,S),T=Pd(R);h.current!==T&&(h.current=T,l(R))}),k=E(w(),w(!0));return f!==k&&l(k),C}},[v]),f}var t2=I.forwardRef(Qx),ti=t2;ti.FormProvider=Xx;ti.Field=Gv;ti.List=Wx;ti.useForm=Xv;ti.useWatch=e2;const Kn=I.createContext({});process.env.NODE_ENV!=="production"&&(Kn.displayName="FormItemInputContext");const r2=({children:e,status:r,override:t})=>{const i=I.useContext(Kn),n=I.useMemo(()=>{const o=Object.assign({},i);return t&&delete o.isFormItemInput,r&&(delete o.status,delete o.hasFeedback,delete o.feedbackIcon),o},[r,t,i]);return I.createElement(Kn.Provider,{value:n},e)},n2=I.createContext(void 0),Zv=e=>{const r=U.useContext(en);return U.useMemo(()=>e?typeof e=="string"?e??r:typeof e=="function"?e(r):r:r,[e,r])},Qv=I.createContext(null),Jv=(e,r)=>{const t=I.useContext(Qv),i=I.useMemo(()=>{if(!t)return"";const{compactDirection:n,isFirstItem:o,isLastItem:a}=t,s=n==="vertical"?"-vertical-":"-";return ye(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:o,[`${e}-compact${s}last-item`]:a,[`${e}-compact${s}item-rtl`]:r==="rtl"})},[e,r,t]);return{compactSize:t?.compactSize,compactDirection:t?.compactDirection,compactItemClassnames:i}},i2=e=>{const{children:r}=e;return I.createElement(Qv.Provider,{value:null},r)},jl=e=>{const{space:r,form:t,children:i}=e;if(i==null)return null;let n=i;return t&&(n=U.createElement(r2,{override:!0,status:!0},n)),r&&(n=U.createElement(i2,null,n)),n},lu=U.createContext(void 0);process.env.NODE_ENV!=="production"&&(lu.displayName="zIndexContext");const Jt=100,o2=10,a2=Jt*o2,s2=a2+Jt,ep={Modal:Jt,Drawer:Jt,Popover:Jt,Popconfirm:Jt,Tooltip:Jt,Tour:Jt,FloatButton:Jt},l2={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function u2(e){return e in ep}const c2=(e,r)=>{const[,t]=ln(),i=U.useContext(lu),n=u2(e);let o;if(r!==void 0)o=[r,r];else{let a=i??0;n?a+=(i?0:t.zIndexPopupBase)+ep[e]:a+=l2[e],o=[i===void 0?r:a,a]}if(process.env.NODE_ENV!=="production"){const a=Wt(e),s=t.zIndexPopupBase+s2,c=o[0]||0;process.env.NODE_ENV!=="production"&&a(r!==void 0||c<=s,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return o},f2=(e,r,t)=>t!==void 0?t:`${e}-${r}`;function d2(e){const{sizePopupArrow:r,borderRadiusXS:t,borderRadiusOuter:i}=e,n=r/2,o=0,a=n,s=i*1/Math.sqrt(2),c=n-i*(1-1/Math.sqrt(2)),d=n-t*(1/Math.sqrt(2)),f=i*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),l=2*n-d,u=f,h=2*n-s,p=c,m=2*n-o,v=a,y=n*Math.sqrt(2)+i*(Math.sqrt(2)-2),g=i*(Math.sqrt(2)-1),w=`polygon(${g}px 100%, 50% ${g}px, ${2*n-g}px 100%, ${g}px 100%)`,b=`path('M ${o} ${a} A ${i} ${i} 0 0 0 ${s} ${c} L ${d} ${f} A ${t} ${t} 0 0 1 ${l} ${u} L ${h} ${p} A ${i} ${i} 0 0 0 ${m} ${v} Z')`;return{arrowShadowWidth:y,arrowPath:b,arrowPolygon:w}}const h2=(e,r,t)=>{const{sizePopupArrow:i,arrowPolygon:n,arrowPath:o,arrowShadowWidth:a,borderRadiusXS:s,calc:c}=e;return{pointerEvents:"none",width:i,height:i,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:i,height:c(i).div(2).equal(),background:r,clipPath:{_multi_value_:!0,value:[n,o]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Le(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:t,zIndex:0,background:"transparent"}}},tp=8;function rp(e){const{contentRadius:r,limitVerticalRadius:t}=e,i=r>12?r+2:12;return{arrowOffsetHorizontal:i,arrowOffsetVertical:t?tp:i}}function Ci(e,r){return e?r:{}}function v2(e,r,t){const{componentCls:i,boxShadowPopoverArrow:n,arrowOffsetVertical:o,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}={};return{[i]:Object.assign(Object.assign(Object.assign(Object.assign({[`${i}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},h2(e,r,n)),{"&:before":{background:r}})]},Ci(!!c.top,{[[`&-placement-top > ${i}-arrow`,`&-placement-topLeft > ${i}-arrow`,`&-placement-topRight > ${i}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Le(a)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Ci(!!c.bottom,{[[`&-placement-bottom > ${i}-arrow`,`&-placement-bottomLeft > ${i}-arrow`,`&-placement-bottomRight > ${i}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${i}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${i}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Le(a)})`,[`> ${i}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Ci(!!c.left,{[[`&-placement-left > ${i}-arrow`,`&-placement-leftTop > ${i}-arrow`,`&-placement-leftBottom > ${i}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${i}-arrow`]:{top:o},[`&-placement-leftBottom > ${i}-arrow`]:{bottom:o}})),Ci(!!c.right,{[[`&-placement-right > ${i}-arrow`,`&-placement-rightTop > ${i}-arrow`,`&-placement-rightBottom > ${i}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${i}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${i}-arrow`]:{top:o},[`&-placement-rightBottom > ${i}-arrow`]:{bottom:o}}))}}function p2(e,r,t,i){if(i===!1)return{adjustX:!1,adjustY:!1};const n=i&&typeof i=="object"?i:{},o={};switch(e){case"top":case"bottom":o.shiftX=r.arrowOffsetHorizontal*2+t,o.shiftY=!0,o.adjustY=!0;break;case"left":case"right":o.shiftY=r.arrowOffsetVertical*2+t,o.shiftX=!0,o.adjustX=!0;break}const a=Object.assign(Object.assign({},o),n);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const jd={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"]}},g2={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"]}},m2=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function y2(e){const{arrowWidth:r,autoAdjustOverflow:t,arrowPointAtCenter:i,offset:n,borderRadius:o}=e,a=r/2,s={},c=rp({contentRadius:o,limitVerticalRadius:!0});return Object.keys(jd).forEach(d=>{const f=i&&g2[d]||jd[d],l=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(s[d]=l,m2.has(d)&&(l.autoArrow=!1),d){case"top":case"topLeft":case"topRight":l.offset[1]=-a-n;break;case"bottom":case"bottomLeft":case"bottomRight":l.offset[1]=a+n;break;case"left":case"leftTop":case"leftBottom":l.offset[0]=-a-n;break;case"right":case"rightTop":case"rightBottom":l.offset[0]=a+n;break}if(i)switch(d){case"topLeft":case"bottomLeft":l.offset[0]=-c.arrowOffsetHorizontal-a;break;case"topRight":case"bottomRight":l.offset[0]=c.arrowOffsetHorizontal+a;break;case"leftTop":case"rightTop":l.offset[1]=-c.arrowOffsetHorizontal*2+a;break;case"leftBottom":case"rightBottom":l.offset[1]=c.arrowOffsetHorizontal*2-a;break}l.overflow=p2(d,c,r,t),l.htmlRegion="visibleFirst"}),s}function b2(e){return e&&U.isValidElement(e)&&e.type===U.Fragment}const x2=(e,r,t)=>U.isValidElement(e)?U.cloneElement(e,typeof t=="function"?t(e.props||{}):t):r;function np(e,r){return x2(e,e,r)}const w2=e=>({animationDuration:e,animationFillMode:"both"}),E2=e=>({animationDuration:e,animationFillMode:"both"}),_2=(e,r,t,i,n=!1)=>{const o=n?"&":"";return{[`
|
|
182
182
|
${o}${e}-enter,
|
|
183
183
|
${o}${e}-appear
|
|
184
|
-
`]:Object.assign(Object.assign({},
|
|
184
|
+
`]:Object.assign(Object.assign({},w2(i)),{animationPlayState:"paused"}),[`${o}${e}-leave`]:Object.assign(Object.assign({},E2(i)),{animationPlayState:"paused"}),[`
|
|
185
185
|
${o}${e}-enter${e}-enter-active,
|
|
186
186
|
${o}${e}-appear${e}-appear-active
|
|
187
|
-
`]:{animationName:r,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:t,animationPlayState:"running",pointerEvents:"none"}}},
|
|
187
|
+
`]:{animationName:r,animationPlayState:"running"},[`${o}${e}-leave${e}-leave-active`]:{animationName:t,animationPlayState:"running",pointerEvents:"none"}}},S2=new kt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),C2=new kt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),Nd=new kt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Md=new kt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),O2=new kt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),R2=new kt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),A2=new kt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),T2=new kt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),k2=new kt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),P2=new kt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),j2=new kt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),N2=new kt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),M2={zoom:{inKeyframes:S2,outKeyframes:C2},"zoom-big":{inKeyframes:Nd,outKeyframes:Md},"zoom-big-fast":{inKeyframes:Nd,outKeyframes:Md},"zoom-left":{inKeyframes:A2,outKeyframes:T2},"zoom-right":{inKeyframes:k2,outKeyframes:P2},"zoom-up":{inKeyframes:O2,outKeyframes:R2},"zoom-down":{inKeyframes:j2,outKeyframes:N2}},I2=(e,r)=>{const{antCls:t}=e,i=`${t}-${r}`,{inKeyframes:n,outKeyframes:o}=M2[r];return[_2(i,n,o,e.motionDurationFast),{[`
|
|
188
188
|
${i}-enter,
|
|
189
189
|
${i}-appear
|
|
190
|
-
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${i}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},I2=e=>{const{calc:r,componentCls:t,tooltipMaxWidth:i,tooltipColor:n,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:c,boxShadowSecondary:d,paddingSM:f,paddingXS:l,arrowOffsetHorizontal:u,sizePopupArrow:h}=e,p=r(a).add(h).add(u).equal(),m=r(a).mul(2).add(h).equal();return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},eu(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:i,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":o,[`${t}-inner`]:{minWidth:m,minHeight:c,padding:`${Le(e.calc(f).div(2).equal())} ${Le(l)}`,color:`var(--ant-tooltip-color, ${n})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:d,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:p},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(a,ep)}},[`${t}-content`]:{position:"relative"}}),Qb(e,(v,{darkColor:y})=>({[`&${t}-${v}`]:{[`${t}-inner`]:{backgroundColor:y},[`${t}-arrow`]:{"--antd-arrow-background-color":y}}}))),{"&-rtl":{direction:"rtl"}})},h2(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},L2=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},tp({contentRadius:e.borderRadius,limitVerticalRadius:!0})),f2(or(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),np=(e,r=!0)=>Zn("Tooltip",i=>{const{borderRadius:n,colorTextLightSolid:o,colorBgSpotlight:a}=i,s=or(i,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:n,tooltipBg:a});return[I2(s),M2(i,"zoom-big-fast")]},L2,{resetStyle:!1,injectStyle:r})(e),$2=Hi.map(e=>`${e}-inverse`);function F2(e,r=!0){return r?[].concat(me($2),me(Hi)).includes(e):Hi.includes(e)}const it=Math.round;function Os(e,r){const t=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],i=t.map(n=>parseFloat(n));for(let n=0;n<3;n+=1)i[n]=r(i[n]||0,t[n]||"",n);return t[3]?i[3]=t[3].includes("%")?i[3]/100:i[3]:i[3]=1,i}const Nd=(e,r,t)=>t===0?e:e/100;function Rn(e,r){const t=r||255;return e>t?t:e<0?0:e}class lo{constructor(r){G(this,"isValid",!0),G(this,"r",0),G(this,"g",0),G(this,"b",0),G(this,"a",1),G(this,"_h",void 0),G(this,"_s",void 0),G(this,"_l",void 0),G(this,"_v",void 0),G(this,"_max",void 0),G(this,"_min",void 0),G(this,"_brightness",void 0);function t(i){return i[0]in r&&i[1]in r&&i[2]in r}if(r)if(typeof r=="string"){let n=function(o){return i.startsWith(o)};const i=r.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):n("rgb")?this.fromRgbString(i):n("hsl")?this.fromHslString(i):(n("hsv")||n("hsb"))&&this.fromHsvString(i)}else if(r instanceof lo)this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this._h=r._h,this._s=r._s,this._l=r._l,this._v=r._v;else if(t("rgb"))this.r=Rn(r.r),this.g=Rn(r.g),this.b=Rn(r.b),this.a=typeof r.a=="number"?Rn(r.a,1):1;else if(t("hsl"))this.fromHsl(r);else if(t("hsv"))this.fromHsv(r);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(r))}setR(r){return this._sc("r",r)}setG(r){return this._sc("g",r)}setB(r){return this._sc("b",r)}setA(r){return this._sc("a",r,1)}setHue(r){const t=this.toHsv();return t.h=r,this._c(t)}getLuminance(){function r(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const t=r(this.r),i=r(this.g),n=r(this.b);return .2126*t+.7152*i+.0722*n}getHue(){if(typeof this._h>"u"){const r=this.getMax()-this.getMin();r===0?this._h=0:this._h=it(60*(this.r===this.getMax()?(this.g-this.b)/r+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/r+2:(this.r-this.g)/r+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const r=this.getMax()-this.getMin();r===0?this._s=0:this._s=r/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(r=10){const t=this.getHue(),i=this.getSaturation();let n=this.getLightness()-r/100;return n<0&&(n=0),this._c({h:t,s:i,l:n,a:this.a})}lighten(r=10){const t=this.getHue(),i=this.getSaturation();let n=this.getLightness()+r/100;return n>1&&(n=1),this._c({h:t,s:i,l:n,a:this.a})}mix(r,t=50){const i=this._c(r),n=t/100,o=s=>(i[s]-this[s])*n+this[s],a={r:it(o("r")),g:it(o("g")),b:it(o("b")),a:it(o("a")*100)/100};return this._c(a)}tint(r=10){return this.mix({r:255,g:255,b:255,a:1},r)}shade(r=10){return this.mix({r:0,g:0,b:0,a:1},r)}onBackground(r){const t=this._c(r),i=this.a+t.a*(1-this.a),n=o=>it((this[o]*this.a+t[o]*t.a*(1-this.a))/i);return this._c({r:n("r"),g:n("g"),b:n("b"),a:i})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(r){return this.r===r.r&&this.g===r.g&&this.b===r.b&&this.a===r.a}clone(){return this._c(this)}toHexString(){let r="#";const t=(this.r||0).toString(16);r+=t.length===2?t:"0"+t;const i=(this.g||0).toString(16);r+=i.length===2?i:"0"+i;const n=(this.b||0).toString(16);if(r+=n.length===2?n:"0"+n,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=it(this.a*255).toString(16);r+=o.length===2?o:"0"+o}return r}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const r=this.getHue(),t=it(this.getSaturation()*100),i=it(this.getLightness()*100);return this.a!==1?`hsla(${r},${t}%,${i}%,${this.a})`:`hsl(${r},${t}%,${i}%)`}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(r,t,i){const n=this.clone();return n[r]=Rn(t,i),n}_c(r){return new this.constructor(r)}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(r){const t=r.replace("#","");function i(n,o){return parseInt(t[n]+t[o||n],16)}t.length<6?(this.r=i(0),this.g=i(1),this.b=i(2),this.a=t[3]?i(3)/255:1):(this.r=i(0,1),this.g=i(2,3),this.b=i(4,5),this.a=t[6]?i(6,7)/255:1)}fromHsl({h:r,s:t,l:i,a:n}){if(this._h=r%360,this._s=t,this._l=i,this.a=typeof n=="number"?n:1,t<=0){const u=it(i*255);this.r=u,this.g=u,this.b=u}let o=0,a=0,s=0;const c=r/60,d=(1-Math.abs(2*i-1))*t,f=d*(1-Math.abs(c%2-1));c>=0&&c<1?(o=d,a=f):c>=1&&c<2?(o=f,a=d):c>=2&&c<3?(a=d,s=f):c>=3&&c<4?(a=f,s=d):c>=4&&c<5?(o=f,s=d):c>=5&&c<6&&(o=d,s=f);const l=i-d/2;this.r=it((o+l)*255),this.g=it((a+l)*255),this.b=it((s+l)*255)}fromHsv({h:r,s:t,v:i,a:n}){this._h=r%360,this._s=t,this._v=i,this.a=typeof n=="number"?n:1;const o=it(i*255);if(this.r=o,this.g=o,this.b=o,t<=0)return;const a=r/60,s=Math.floor(a),c=a-s,d=it(i*(1-t)*255),f=it(i*(1-t*c)*255),l=it(i*(1-t*(1-c))*255);switch(s){case 0:this.g=l,this.b=d;break;case 1:this.r=f,this.b=d;break;case 2:this.r=d,this.b=l;break;case 3:this.r=d,this.g=f;break;case 4:this.r=l,this.g=d;break;case 5:default:this.g=d,this.b=f;break}}fromHsvString(r){const t=Os(r,Nd);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(r){const t=Os(r,Nd);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(r){const t=Os(r,(i,n)=>n.includes("%")?it(i/100*255):i);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var D2=["b"],q2=["v"],Rs=function(r){return Math.round(Number(r||0))},B2=function(r){if(r instanceof lo)return r;if(r&&Ee(r)==="object"&&"h"in r&&"b"in r){var t=r,i=t.b,n=dt(t,D2);return J(J({},n),{},{v:i})}return typeof r=="string"&&/hsb/.test(r)?r.replace(/hsb/,"hsv"):r},pr=(function(e){gr(t,e);var r=mr(t);function t(i){return ot(this,t),r.call(this,B2(i))}return at(t,[{key:"toHsbString",value:function(){var n=this.toHsb(),o=Rs(n.s*100),a=Rs(n.b*100),s=Rs(n.h),c=n.a,d="hsb(".concat(s,", ").concat(o,"%, ").concat(a,"%)"),f="hsba(".concat(s,", ").concat(o,"%, ").concat(a,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?d:f}},{key:"toHsb",value:function(){var n=this.toHsv(),o=n.v,a=dt(n,q2);return J(J({},a),{},{b:o,a:this.a})}}]),t})(lo),V2="rc-color-picker",Wr=function(r){return r instanceof pr?r:new pr(r)},H2=Wr("#1677ff"),ip=function(r){var t=r.offset,i=r.targetRef,n=r.containerRef,o=r.color,a=r.type,s=n.current.getBoundingClientRect(),c=s.width,d=s.height,f=i.current.getBoundingClientRect(),l=f.width,u=f.height,h=l/2,p=u/2,m=(t.x+h)/c,v=1-(t.y+p)/d,y=o.toHsb(),g=m,w=(t.x+h)/c*360;if(a)switch(a){case"hue":return Wr(J(J({},y),{},{h:w<=0?0:w}));case"alpha":return Wr(J(J({},y),{},{a:g<=0?0:g}))}return Wr({h:y.h,s:m<=0?0:m,b:v>=1?1:v,a:y.a})},op=function(r,t){var i=r.toHsb();switch(t){case"hue":return{x:i.h/360*100,y:50};case"alpha":return{x:r.a*100,y:50};default:return{x:i.s*100,y:(1-i.b)*100}}},z2=function(r){var t=r.color,i=r.prefixCls,n=r.className,o=r.style,a=r.onClick,s="".concat(i,"-color-block");return U.createElement("div",{className:ye(s,n),style:o,onClick:a},U.createElement("div",{className:"".concat(s,"-inner"),style:{background:t}}))};function U2(e){var r="touches"in e?e.touches[0]:e,t=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,i=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:r.pageX-t,pageY:r.pageY-i}}function ap(e){var r=e.targetRef,t=e.containerRef,i=e.direction,n=e.onDragChange,o=e.onDragChangeComplete,a=e.calculate,s=e.color,c=e.disabledDrag,d=U.useState({x:0,y:0}),f=le(d,2),l=f[0],u=f[1],h=U.useRef(null),p=U.useRef(null);U.useEffect(function(){u(a())},[s]),U.useEffect(function(){return function(){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",p.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",p.current),h.current=null,p.current=null}},[]);var m=function(b){var x=U2(b),_=x.pageX,E=x.pageY,C=t.current.getBoundingClientRect(),P=C.x,O=C.y,S=C.width,R=C.height,T=r.current.getBoundingClientRect(),k=T.width,L=T.height,F=k/2,$=L/2,z=Math.max(0,Math.min(_-P,S))-F,H=Math.max(0,Math.min(E-O,R))-$,D={x:z,y:i==="x"?l.y:H};if(k===0&&L===0||k!==L)return!1;n?.(D)},v=function(b){b.preventDefault(),m(b)},y=function(b){b.preventDefault(),document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",p.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",p.current),h.current=null,p.current=null,o?.()},g=function(b){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",p.current),!c&&(m(b),document.addEventListener("mousemove",v),document.addEventListener("mouseup",y),document.addEventListener("touchmove",v),document.addEventListener("touchend",y),h.current=v,p.current=y)};return[l,g]}var sp=function(r){var t=r.size,i=t===void 0?"default":t,n=r.color,o=r.prefixCls;return U.createElement("div",{className:ye("".concat(o,"-handler"),G({},"".concat(o,"-handler-sm"),i==="small")),style:{backgroundColor:n}})},lp=function(r){var t=r.children,i=r.style,n=r.prefixCls;return U.createElement("div",{className:"".concat(n,"-palette"),style:J({position:"relative"},i)},t)},up=U.forwardRef(function(e,r){var t=e.children,i=e.x,n=e.y;return U.createElement("div",{ref:r,style:{position:"absolute",left:"".concat(i,"%"),top:"".concat(n,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},t)}),W2=function(r){var t=r.color,i=r.onChange,n=r.prefixCls,o=r.onChangeComplete,a=r.disabled,s=U.useRef(),c=U.useRef(),d=U.useRef(t),f=vt(function(m){var v=ip({offset:m,targetRef:c,containerRef:s,color:t});d.current=v,i(v)}),l=ap({color:t,containerRef:s,targetRef:c,calculate:function(){return op(t)},onDragChange:f,onDragChangeComplete:function(){return o?.(d.current)},disabledDrag:a}),u=le(l,2),h=u[0],p=u[1];return U.createElement("div",{ref:s,className:"".concat(n,"-select"),onMouseDown:p,onTouchStart:p},U.createElement(lp,{prefixCls:n},U.createElement(up,{x:h.x,y:h.y,ref:c},U.createElement(sp,{color:t.toRgbString(),prefixCls:n})),U.createElement("div",{className:"".concat(n,"-saturation"),style:{backgroundColor:"hsl(".concat(t.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},K2=function(r,t){var i=Rr(r,{value:t}),n=le(i,2),o=n[0],a=n[1],s=U.useMemo(function(){return Wr(o)},[o]);return[s,a]},G2=function(r){var t=r.colors,i=r.children,n=r.direction,o=n===void 0?"to right":n,a=r.type,s=r.prefixCls,c=U.useMemo(function(){return t.map(function(d,f){var l=Wr(d);return a==="alpha"&&f===t.length-1&&(l=new pr(l.setA(1))),l.toRgbString()}).join(",")},[t,a]);return U.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(o,", ").concat(c,")")}},i)},Y2=function(r){var t=r.prefixCls,i=r.colors,n=r.disabled,o=r.onChange,a=r.onChangeComplete,s=r.color,c=r.type,d=U.useRef(),f=U.useRef(),l=U.useRef(s),u=function(x){return c==="hue"?x.getHue():x.a*100},h=vt(function(b){var x=ip({offset:b,targetRef:f,containerRef:d,color:s,type:c});l.current=x,o(u(x))}),p=ap({color:s,targetRef:f,containerRef:d,calculate:function(){return op(s,c)},onDragChange:h,onDragChangeComplete:function(){a(u(l.current))},direction:"x",disabledDrag:n}),m=le(p,2),v=m[0],y=m[1],g=U.useMemo(function(){if(c==="hue"){var b=s.toHsb();b.s=1,b.b=1,b.a=1;var x=new pr(b);return x}return s},[s,c]),w=U.useMemo(function(){return i.map(function(b){return"".concat(b.color," ").concat(b.percent,"%")})},[i]);return U.createElement("div",{ref:d,className:ye("".concat(t,"-slider"),"".concat(t,"-slider-").concat(c)),onMouseDown:y,onTouchStart:y},U.createElement(lp,{prefixCls:t},U.createElement(up,{x:v.x,y:v.y,ref:f},U.createElement(sp,{size:"small",color:g.toHexString(),prefixCls:t})),U.createElement(G2,{colors:w,type:c,prefixCls:t})))};function X2(e){return I.useMemo(function(){var r=e||{},t=r.slider;return[t||Y2]},[e])}var Z2=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],Q2=U.forwardRef(function(e,r){var t=e.value,i=e.defaultValue,n=e.prefixCls,o=n===void 0?V2:n,a=e.onChange,s=e.onChangeComplete,c=e.className,d=e.style,f=e.panelRender,l=e.disabledAlpha,u=l===void 0?!1:l,h=e.disabled,p=h===void 0?!1:h,m=e.components,v=X2(m),y=le(v,1),g=y[0],w=K2(i||H2,t),b=le(w,2),x=b[0],_=b[1],E=U.useMemo(function(){return x.setA(1).toRgbString()},[x]),C=function(H,D){t||_(H),a?.(H,D)},P=function(H){return new pr(x.setHue(H))},O=function(H){return new pr(x.setA(H/100))},S=function(H){C(P(H),{type:"hue",value:H})},R=function(H){C(O(H),{type:"alpha",value:H})},T=function(H){s&&s(P(H))},k=function(H){s&&s(O(H))},L=ye("".concat(o,"-panel"),c,G({},"".concat(o,"-panel-disabled"),p)),F={prefixCls:o,disabled:p,color:x},$=U.createElement(U.Fragment,null,U.createElement(W2,qe({onChange:C},F,{onChangeComplete:s})),U.createElement("div",{className:"".concat(o,"-slider-container")},U.createElement("div",{className:ye("".concat(o,"-slider-group"),G({},"".concat(o,"-slider-group-disabled-alpha"),u))},U.createElement(g,qe({},F,{type:"hue",colors:Z2,min:0,max:359,value:x.getHue(),onChange:S,onChangeComplete:T})),!u&&U.createElement(g,qe({},F,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:E}],min:0,max:100,value:x.a*100,onChange:R,onChangeComplete:k}))),U.createElement(z2,{color:x.toRgbString(),prefixCls:o})));return U.createElement("div",{className:L,style:d,ref:r},typeof f=="function"?f($):$)});process.env.NODE_ENV!=="production"&&(Q2.displayName="ColorPicker");const J2=(e,r)=>e?.replace(/[^\w/]/g,"").slice(0,r?8:6)||"",ew=(e,r)=>e?J2(e,r):"";let Md=(function(){function e(r){ot(this,e);var t;if(this.cleared=!1,r instanceof e){this.metaColor=r.metaColor.clone(),this.colors=(t=r.colors)===null||t===void 0?void 0:t.map(n=>({color:new e(n.color),percent:n.percent})),this.cleared=r.cleared;return}const i=Array.isArray(r);i&&r.length?(this.colors=r.map(({color:n,percent:o})=>({color:new e(n),percent:o})),this.metaColor=new pr(this.colors[0].color.metaColor)):this.metaColor=new pr(i?"":r),(!r||i&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return at(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return ew(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:t}=this;return t?`linear-gradient(90deg, ${t.map(n=>`${n.color.toRgbString()} ${n.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(t){return!t||this.isGradient()!==t.isGradient()?!1:this.isGradient()?this.colors.length===t.colors.length&&this.colors.every((i,n)=>{const o=t.colors[n];return i.percent===o.percent&&i.color.equals(o.color)}):this.toHexString()===t.toHexString()}}])})();const tw=e=>e instanceof Md?e:new Md(e);function cp(e,r){const t=F2(r),i=ye({[`${e}-${r}`]:r&&t}),n={},o={},a=tw(r).toRgb(),c=(.299*a.r+.587*a.g+.114*a.b)/255<.5?"#FFF":"#000";return r&&!t&&(n.background=r,n["--ant-tooltip-color"]=c,o["--antd-arrow-background-color"]=r),{className:i,overlayStyle:n,arrowStyle:o}}const rw=e=>{const{prefixCls:r,className:t,placement:i="top",title:n,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=I.useContext(Kt),c=s("tooltip",r),[d,f,l]=np(c),u=cp(c,o),h=u.arrowStyle,p=Object.assign(Object.assign({},a),u.overlayStyle),m=ye(f,l,c,`${c}-pure`,`${c}-placement-${i}`,t,u.className);return d(I.createElement("div",{className:m,style:h},I.createElement("div",{className:`${c}-arrow`}),I.createElement(Iv,Object.assign({},e,{className:f,prefixCls:c,overlayInnerStyle:p}),n)))};var nw=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};const iw=I.forwardRef((e,r)=>{var t,i;const{prefixCls:n,openClassName:o,getTooltipContainer:a,color:s,overlayInnerStyle:c,children:d,afterOpenChange:f,afterVisibleChange:l,destroyTooltipOnHide:u,destroyOnHidden:h,arrow:p=!0,title:m,overlay:v,builtinPlacements:y,arrowPointAtCenter:g=!1,autoAdjustOverflow:w=!0,motion:b,getPopupContainer:x,placement:_="top",mouseEnterDelay:E=.1,mouseLeaveDelay:C=.1,overlayStyle:P,rootClassName:O,overlayClassName:S,styles:R,classNames:T}=e,k=nw(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"]),L=!!p,[,F]=ln(),{getPopupContainer:$,getPrefixCls:z,direction:H,className:D,style:j,classNames:A,styles:M}=ao("tooltip"),q=Wt("Tooltip"),B=I.useRef(null),N=()=>{var Re;(Re=B.current)===null||Re===void 0||Re.forceAlign()};I.useImperativeHandle(r,()=>{var Re,Pe;return{forceAlign:N,forcePopupAlign:()=>{q.deprecated(!1,"forcePopupAlign","forceAlign"),N()},nativeElement:(Re=B.current)===null||Re===void 0?void 0:Re.nativeElement,popupElement:(Pe=B.current)===null||Pe===void 0?void 0:Pe.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(([Re,Pe])=>{q.deprecated(!(Re in e),Re,Pe)}),process.env.NODE_ENV!=="production"&&q(!u||typeof u=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&q(!p||typeof p=="boolean"||!("arrowPointAtCenter"in p),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[V,K]=Rr(!1,{value:(t=e.open)!==null&&t!==void 0?t:e.visible,defaultValue:(i=e.defaultOpen)!==null&&i!==void 0?i:e.defaultVisible}),W=!m&&!v&&m!==0,X=Re=>{var Pe,Te;K(W?!1:Re),W||((Pe=e.onOpenChange)===null||Pe===void 0||Pe.call(e,Re),(Te=e.onVisibleChange)===null||Te===void 0||Te.call(e,Re))},re=I.useMemo(()=>{var Re,Pe;let Te=g;return typeof p=="object"&&(Te=(Pe=(Re=p.pointAtCenter)!==null&&Re!==void 0?Re:p.arrowPointAtCenter)!==null&&Pe!==void 0?Pe:g),y||m2({arrowPointAtCenter:Te,autoAdjustOverflow:w,arrowWidth:L?F.sizePopupArrow:0,borderRadius:F.borderRadius,offset:F.marginXXS})},[g,p,y,F]),oe=I.useMemo(()=>m===0?m:v||m||"",[v,m]),se=I.createElement(kl,{space:!0},typeof oe=="function"?oe():oe),te=z("tooltip",n),ce=z(),fe=e["data-popover-inject"];let ve=V;!("open"in e)&&!("visible"in e)&&W&&(ve=!1);const Q=I.isValidElement(d)&&!y2(d)?d:I.createElement("span",null,d),Z=Q.props,ae=!Z.className||typeof Z.className=="string"?ye(Z.className,o||`${te}-open`):Z.className,[ie,ee,ue]=np(te,!fe),ne=cp(te,s),de=ne.arrowStyle,Se=ye(S,{[`${te}-rtl`]:H==="rtl"},ne.className,O,ee,ue,D,A.root,T?.root),Me=ye(A.body,T?.body),[be,De]=u2("Tooltip",k.zIndex),Ce=I.createElement(ix,Object.assign({},k,{zIndex:be,showArrow:L,placement:_,mouseEnterDelay:E,mouseLeaveDelay:C,prefixCls:te,classNames:{root:Se,body:Me},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},de),M.root),j),P),R?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},M.body),c),R?.body),ne.overlayStyle)},getTooltipContainer:x||a||$,ref:B,builtinPlacements:re,overlay:se,visible:ve,onVisibleChange:X,afterVisibleChange:f??l,arrowContent:I.createElement("span",{className:`${te}-arrow-content`}),motion:{motionName:c2(ce,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:h??!!u}),ve?rp(Q,{className:ae}):Q);return ie(I.createElement(au.Provider,{value:De},Ce))}),ri=iw;process.env.NODE_ENV!=="production"&&(ri.displayName="Tooltip");ri._InternalPanelDoNotUseOrYouWillBeFired=rw;var ow={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"},aw=function(r,t){return I.createElement(ir,qe({},r,{ref:t,icon:ow}))},fp=I.forwardRef(aw);process.env.NODE_ENV!=="production"&&(fp.displayName="EnterOutlined");var Id={ENTER:13,ESC:27};function sw(e){return!!(e.addonBefore||e.addonAfter)}function lw(e){return!!(e.prefix||e.suffix||e.allowClear)}function Ld(e,r,t){var i=r.cloneNode(!0),n=Object.create(e,{target:{value:i},currentTarget:{value:i}});return i.value=t,typeof r.selectionStart=="number"&&typeof r.selectionEnd=="number"&&(i.selectionStart=r.selectionStart,i.selectionEnd=r.selectionEnd),i.setSelectionRange=function(){r.setSelectionRange.apply(r,arguments)},n}function Wi(e,r,t,i){if(t){var n=r;if(r.type==="click"){n=Ld(r,e,""),t(n);return}if(e.type!=="file"&&i!==void 0){n=Ld(r,e,i),t(n);return}t(n)}}function dp(e,r){if(e){e.focus(r);var t=r||{},i=t.cursor;if(i){var n=e.value.length;switch(i){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}}var hp=U.forwardRef(function(e,r){var t,i,n,o=e.inputElement,a=e.children,s=e.prefixCls,c=e.prefix,d=e.suffix,f=e.addonBefore,l=e.addonAfter,u=e.className,h=e.style,p=e.disabled,m=e.readOnly,v=e.focused,y=e.triggerFocus,g=e.allowClear,w=e.value,b=e.handleReset,x=e.hidden,_=e.classes,E=e.classNames,C=e.dataAttrs,P=e.styles,O=e.components,S=e.onClear,R=a??o,T=O?.affixWrapper||"span",k=O?.groupWrapper||"span",L=O?.wrapper||"span",F=O?.groupAddon||"span",$=U.useRef(null),z=function(ce){var fe;(fe=$.current)!==null&&fe!==void 0&&fe.contains(ce.target)&&y?.()},H=lw(e),D=U.cloneElement(R,{value:w,className:ye((t=R.props)===null||t===void 0?void 0:t.className,!H&&E?.variant)||null}),j=U.useRef(null);if(U.useImperativeHandle(r,function(){return{nativeElement:j.current||$.current}}),H){var A=null;if(g){var M=!p&&!m&&w,q="".concat(s,"-clear-icon"),B=Ee(g)==="object"&&g!==null&&g!==void 0&&g.clearIcon?g.clearIcon:"✖";A=U.createElement("button",{type:"button",tabIndex:-1,onClick:function(ce){b?.(ce),S?.()},onMouseDown:function(ce){return ce.preventDefault()},className:ye(q,G(G({},"".concat(q,"-hidden"),!M),"".concat(q,"-has-suffix"),!!d))},B)}var N="".concat(s,"-affix-wrapper"),V=ye(N,G(G(G(G(G({},"".concat(s,"-disabled"),p),"".concat(N,"-disabled"),p),"".concat(N,"-focused"),v),"".concat(N,"-readonly"),m),"".concat(N,"-input-with-clear-btn"),d&&g&&w),_?.affixWrapper,E?.affixWrapper,E?.variant),K=(d||g)&&U.createElement("span",{className:ye("".concat(s,"-suffix"),E?.suffix),style:P?.suffix},A,d);D=U.createElement(T,qe({className:V,style:P?.affixWrapper,onClick:z},C?.affixWrapper,{ref:$}),c&&U.createElement("span",{className:ye("".concat(s,"-prefix"),E?.prefix),style:P?.prefix},c),D,K)}if(sw(e)){var W="".concat(s,"-group"),X="".concat(W,"-addon"),re="".concat(W,"-wrapper"),oe=ye("".concat(s,"-wrapper"),W,_?.wrapper,E?.wrapper),se=ye(re,G({},"".concat(re,"-disabled"),p),_?.group,E?.groupWrapper);D=U.createElement(k,{className:se,ref:j},U.createElement(L,{className:oe},f&&U.createElement(F,{className:X},f),D,l&&U.createElement(F,{className:X},l)))}return U.cloneElement(D,{className:ye((i=D.props)===null||i===void 0?void 0:i.className,u)||null,style:J(J({},(n=D.props)===null||n===void 0?void 0:n.style),h),hidden:x})}),uw=["show"];function vp(e,r){return I.useMemo(function(){var t={};r&&(t.show=Ee(r)==="object"&&r.formatter?r.formatter:!!r),t=J(J({},t),e);var i=t,n=i.show,o=dt(i,uw);return J(J({},o),{},{show:!!n,showFormatter:typeof n=="function"?n:void 0,strategy:o.strategy||function(a){return a.length}})},[e,r])}var cw=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],fw=U.forwardRef(function(e,r){var t=e.autoComplete,i=e.onChange,n=e.onFocus,o=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,c=e.onKeyUp,d=e.prefixCls,f=d===void 0?"rc-input":d,l=e.disabled,u=e.htmlSize,h=e.className,p=e.maxLength,m=e.suffix,v=e.showCount,y=e.count,g=e.type,w=g===void 0?"text":g,b=e.classes,x=e.classNames,_=e.styles,E=e.onCompositionStart,C=e.onCompositionEnd,P=dt(e,cw),O=U.useState(!1),S=le(O,2),R=S[0],T=S[1],k=U.useRef(!1),L=U.useRef(!1),F=U.useRef(null),$=U.useRef(null),z=function(ne){F.current&&dp(F.current,ne)},H=Rr(e.defaultValue,{value:e.value}),D=le(H,2),j=D[0],A=D[1],M=j==null?"":String(j),q=U.useState(null),B=le(q,2),N=B[0],V=B[1],K=vp(y,v),W=K.max||p,X=K.strategy(M),re=!!W&&X>W;U.useImperativeHandle(r,function(){var ue;return{focus:z,blur:function(){var de;(de=F.current)===null||de===void 0||de.blur()},setSelectionRange:function(de,Se,Me){var be;(be=F.current)===null||be===void 0||be.setSelectionRange(de,Se,Me)},select:function(){var de;(de=F.current)===null||de===void 0||de.select()},input:F.current,nativeElement:((ue=$.current)===null||ue===void 0?void 0:ue.nativeElement)||F.current}}),U.useEffect(function(){L.current&&(L.current=!1),T(function(ue){return ue&&l?!1:ue})},[l]);var oe=function(ne,de,Se){var Me=de;if(!k.current&&K.exceedFormatter&&K.max&&K.strategy(de)>K.max){if(Me=K.exceedFormatter(de,{max:K.max}),de!==Me){var be,De;V([((be=F.current)===null||be===void 0?void 0:be.selectionStart)||0,((De=F.current)===null||De===void 0?void 0:De.selectionEnd)||0])}}else if(Se.source==="compositionEnd")return;A(Me),F.current&&Wi(F.current,ne,i,Me)};U.useEffect(function(){if(N){var ue;(ue=F.current)===null||ue===void 0||ue.setSelectionRange.apply(ue,me(N))}},[N]);var se=function(ne){oe(ne,ne.target.value,{source:"change"})},te=function(ne){k.current=!1,oe(ne,ne.currentTarget.value,{source:"compositionEnd"}),C?.(ne)},ce=function(ne){a&&ne.key==="Enter"&&!L.current&&(L.current=!0,a(ne)),s?.(ne)},fe=function(ne){ne.key==="Enter"&&(L.current=!1),c?.(ne)},ve=function(ne){T(!0),n?.(ne)},Q=function(ne){L.current&&(L.current=!1),T(!1),o?.(ne)},Z=function(ne){A(""),z(),F.current&&Wi(F.current,ne,i)},ae=re&&"".concat(f,"-out-of-range"),ie=function(){var ne=Fh(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return U.createElement("input",qe({autoComplete:t},ne,{onChange:se,onFocus:ve,onBlur:Q,onKeyDown:ce,onKeyUp:fe,className:ye(f,G({},"".concat(f,"-disabled"),l),x?.input),style:_?.input,ref:F,size:u,type:w,onCompositionStart:function(Se){k.current=!0,E?.(Se)},onCompositionEnd:te}))},ee=function(){var ne=Number(W)>0;if(m||K.show){var de=K.showFormatter?K.showFormatter({value:M,count:X,maxLength:W}):"".concat(X).concat(ne?" / ".concat(W):"");return U.createElement(U.Fragment,null,K.show&&U.createElement("span",{className:ye("".concat(f,"-show-count-suffix"),G({},"".concat(f,"-show-count-has-suffix"),!!m),x?.count),style:J({},_?.count)},de),m)}return null};return U.createElement(hp,qe({},P,{prefixCls:f,className:ye(h,ae),handleReset:Z,value:M,focused:R,triggerFocus:z,suffix:ee(),disabled:l,classes:b,classNames:x,styles:_,ref:$}),ie())}),dw=`
|
|
190
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${i}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},L2=e=>{const{calc:r,componentCls:t,tooltipMaxWidth:i,tooltipColor:n,tooltipBg:o,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:c,boxShadowSecondary:d,paddingSM:f,paddingXS:l,arrowOffsetHorizontal:u,sizePopupArrow:h}=e,p=r(a).add(h).add(u).equal(),m=r(a).mul(2).add(h).equal();return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},ru(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:i,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":o,[`${t}-inner`]:{minWidth:m,minHeight:c,padding:`${Le(e.calc(f).div(2).equal())} ${Le(l)}`,color:`var(--ant-tooltip-color, ${n})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:o,borderRadius:a,boxShadow:d,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:p},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(a,tp)}},[`${t}-content`]:{position:"relative"}}),Jb(e,(v,{darkColor:y})=>({[`&${t}-${v}`]:{[`${t}-inner`]:{backgroundColor:y},[`${t}-arrow`]:{"--antd-arrow-background-color":y}}}))),{"&-rtl":{direction:"rtl"}})},v2(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},$2=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},rp({contentRadius:e.borderRadius,limitVerticalRadius:!0})),d2(or(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),ip=(e,r=!0)=>Zn("Tooltip",i=>{const{borderRadius:n,colorTextLightSolid:o,colorBgSpotlight:a}=i,s=or(i,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:n,tooltipBg:a});return[L2(s),I2(i,"zoom-big-fast")]},$2,{resetStyle:!1,injectStyle:r})(e),F2=Hi.map(e=>`${e}-inverse`);function D2(e,r=!0){return r?[].concat(me(F2),me(Hi)).includes(e):Hi.includes(e)}const it=Math.round;function Rs(e,r){const t=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],i=t.map(n=>parseFloat(n));for(let n=0;n<3;n+=1)i[n]=r(i[n]||0,t[n]||"",n);return t[3]?i[3]=t[3].includes("%")?i[3]/100:i[3]:i[3]=1,i}const Id=(e,r,t)=>t===0?e:e/100;function Rn(e,r){const t=r||255;return e>t?t:e<0?0:e}class uo{constructor(r){G(this,"isValid",!0),G(this,"r",0),G(this,"g",0),G(this,"b",0),G(this,"a",1),G(this,"_h",void 0),G(this,"_s",void 0),G(this,"_l",void 0),G(this,"_v",void 0),G(this,"_max",void 0),G(this,"_min",void 0),G(this,"_brightness",void 0);function t(i){return i[0]in r&&i[1]in r&&i[2]in r}if(r)if(typeof r=="string"){let n=function(o){return i.startsWith(o)};const i=r.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):n("rgb")?this.fromRgbString(i):n("hsl")?this.fromHslString(i):(n("hsv")||n("hsb"))&&this.fromHsvString(i)}else if(r instanceof uo)this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this._h=r._h,this._s=r._s,this._l=r._l,this._v=r._v;else if(t("rgb"))this.r=Rn(r.r),this.g=Rn(r.g),this.b=Rn(r.b),this.a=typeof r.a=="number"?Rn(r.a,1):1;else if(t("hsl"))this.fromHsl(r);else if(t("hsv"))this.fromHsv(r);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(r))}setR(r){return this._sc("r",r)}setG(r){return this._sc("g",r)}setB(r){return this._sc("b",r)}setA(r){return this._sc("a",r,1)}setHue(r){const t=this.toHsv();return t.h=r,this._c(t)}getLuminance(){function r(o){const a=o/255;return a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4)}const t=r(this.r),i=r(this.g),n=r(this.b);return .2126*t+.7152*i+.0722*n}getHue(){if(typeof this._h>"u"){const r=this.getMax()-this.getMin();r===0?this._h=0:this._h=it(60*(this.r===this.getMax()?(this.g-this.b)/r+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/r+2:(this.r-this.g)/r+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const r=this.getMax()-this.getMin();r===0?this._s=0:this._s=r/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(r=10){const t=this.getHue(),i=this.getSaturation();let n=this.getLightness()-r/100;return n<0&&(n=0),this._c({h:t,s:i,l:n,a:this.a})}lighten(r=10){const t=this.getHue(),i=this.getSaturation();let n=this.getLightness()+r/100;return n>1&&(n=1),this._c({h:t,s:i,l:n,a:this.a})}mix(r,t=50){const i=this._c(r),n=t/100,o=s=>(i[s]-this[s])*n+this[s],a={r:it(o("r")),g:it(o("g")),b:it(o("b")),a:it(o("a")*100)/100};return this._c(a)}tint(r=10){return this.mix({r:255,g:255,b:255,a:1},r)}shade(r=10){return this.mix({r:0,g:0,b:0,a:1},r)}onBackground(r){const t=this._c(r),i=this.a+t.a*(1-this.a),n=o=>it((this[o]*this.a+t[o]*t.a*(1-this.a))/i);return this._c({r:n("r"),g:n("g"),b:n("b"),a:i})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(r){return this.r===r.r&&this.g===r.g&&this.b===r.b&&this.a===r.a}clone(){return this._c(this)}toHexString(){let r="#";const t=(this.r||0).toString(16);r+=t.length===2?t:"0"+t;const i=(this.g||0).toString(16);r+=i.length===2?i:"0"+i;const n=(this.b||0).toString(16);if(r+=n.length===2?n:"0"+n,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=it(this.a*255).toString(16);r+=o.length===2?o:"0"+o}return r}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const r=this.getHue(),t=it(this.getSaturation()*100),i=it(this.getLightness()*100);return this.a!==1?`hsla(${r},${t}%,${i}%,${this.a})`:`hsl(${r},${t}%,${i}%)`}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(r,t,i){const n=this.clone();return n[r]=Rn(t,i),n}_c(r){return new this.constructor(r)}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(r){const t=r.replace("#","");function i(n,o){return parseInt(t[n]+t[o||n],16)}t.length<6?(this.r=i(0),this.g=i(1),this.b=i(2),this.a=t[3]?i(3)/255:1):(this.r=i(0,1),this.g=i(2,3),this.b=i(4,5),this.a=t[6]?i(6,7)/255:1)}fromHsl({h:r,s:t,l:i,a:n}){if(this._h=r%360,this._s=t,this._l=i,this.a=typeof n=="number"?n:1,t<=0){const u=it(i*255);this.r=u,this.g=u,this.b=u}let o=0,a=0,s=0;const c=r/60,d=(1-Math.abs(2*i-1))*t,f=d*(1-Math.abs(c%2-1));c>=0&&c<1?(o=d,a=f):c>=1&&c<2?(o=f,a=d):c>=2&&c<3?(a=d,s=f):c>=3&&c<4?(a=f,s=d):c>=4&&c<5?(o=f,s=d):c>=5&&c<6&&(o=d,s=f);const l=i-d/2;this.r=it((o+l)*255),this.g=it((a+l)*255),this.b=it((s+l)*255)}fromHsv({h:r,s:t,v:i,a:n}){this._h=r%360,this._s=t,this._v=i,this.a=typeof n=="number"?n:1;const o=it(i*255);if(this.r=o,this.g=o,this.b=o,t<=0)return;const a=r/60,s=Math.floor(a),c=a-s,d=it(i*(1-t)*255),f=it(i*(1-t*c)*255),l=it(i*(1-t*(1-c))*255);switch(s){case 0:this.g=l,this.b=d;break;case 1:this.r=f,this.b=d;break;case 2:this.r=d,this.b=l;break;case 3:this.r=d,this.g=f;break;case 4:this.r=l,this.g=d;break;case 5:default:this.g=d,this.b=f;break}}fromHsvString(r){const t=Rs(r,Id);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(r){const t=Rs(r,Id);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(r){const t=Rs(r,(i,n)=>n.includes("%")?it(i/100*255):i);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var q2=["b"],B2=["v"],As=function(r){return Math.round(Number(r||0))},V2=function(r){if(r instanceof uo)return r;if(r&&Ee(r)==="object"&&"h"in r&&"b"in r){var t=r,i=t.b,n=dt(t,q2);return J(J({},n),{},{v:i})}return typeof r=="string"&&/hsb/.test(r)?r.replace(/hsb/,"hsv"):r},pr=(function(e){gr(t,e);var r=mr(t);function t(i){return ot(this,t),r.call(this,V2(i))}return at(t,[{key:"toHsbString",value:function(){var n=this.toHsb(),o=As(n.s*100),a=As(n.b*100),s=As(n.h),c=n.a,d="hsb(".concat(s,", ").concat(o,"%, ").concat(a,"%)"),f="hsba(".concat(s,", ").concat(o,"%, ").concat(a,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?d:f}},{key:"toHsb",value:function(){var n=this.toHsv(),o=n.v,a=dt(n,B2);return J(J({},a),{},{b:o,a:this.a})}}]),t})(uo),H2="rc-color-picker",Wr=function(r){return r instanceof pr?r:new pr(r)},z2=Wr("#1677ff"),op=function(r){var t=r.offset,i=r.targetRef,n=r.containerRef,o=r.color,a=r.type,s=n.current.getBoundingClientRect(),c=s.width,d=s.height,f=i.current.getBoundingClientRect(),l=f.width,u=f.height,h=l/2,p=u/2,m=(t.x+h)/c,v=1-(t.y+p)/d,y=o.toHsb(),g=m,w=(t.x+h)/c*360;if(a)switch(a){case"hue":return Wr(J(J({},y),{},{h:w<=0?0:w}));case"alpha":return Wr(J(J({},y),{},{a:g<=0?0:g}))}return Wr({h:y.h,s:m<=0?0:m,b:v>=1?1:v,a:y.a})},ap=function(r,t){var i=r.toHsb();switch(t){case"hue":return{x:i.h/360*100,y:50};case"alpha":return{x:r.a*100,y:50};default:return{x:i.s*100,y:(1-i.b)*100}}},U2=function(r){var t=r.color,i=r.prefixCls,n=r.className,o=r.style,a=r.onClick,s="".concat(i,"-color-block");return U.createElement("div",{className:ye(s,n),style:o,onClick:a},U.createElement("div",{className:"".concat(s,"-inner"),style:{background:t}}))};function W2(e){var r="touches"in e?e.touches[0]:e,t=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,i=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:r.pageX-t,pageY:r.pageY-i}}function sp(e){var r=e.targetRef,t=e.containerRef,i=e.direction,n=e.onDragChange,o=e.onDragChangeComplete,a=e.calculate,s=e.color,c=e.disabledDrag,d=U.useState({x:0,y:0}),f=le(d,2),l=f[0],u=f[1],h=U.useRef(null),p=U.useRef(null);U.useEffect(function(){u(a())},[s]),U.useEffect(function(){return function(){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",p.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",p.current),h.current=null,p.current=null}},[]);var m=function(b){var x=W2(b),_=x.pageX,E=x.pageY,C=t.current.getBoundingClientRect(),k=C.x,O=C.y,S=C.width,R=C.height,T=r.current.getBoundingClientRect(),P=T.width,L=T.height,F=P/2,$=L/2,z=Math.max(0,Math.min(_-k,S))-F,H=Math.max(0,Math.min(E-O,R))-$,D={x:z,y:i==="x"?l.y:H};if(P===0&&L===0||P!==L)return!1;n?.(D)},v=function(b){b.preventDefault(),m(b)},y=function(b){b.preventDefault(),document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",p.current),document.removeEventListener("touchmove",h.current),document.removeEventListener("touchend",p.current),h.current=null,p.current=null,o?.()},g=function(b){document.removeEventListener("mousemove",h.current),document.removeEventListener("mouseup",p.current),!c&&(m(b),document.addEventListener("mousemove",v),document.addEventListener("mouseup",y),document.addEventListener("touchmove",v),document.addEventListener("touchend",y),h.current=v,p.current=y)};return[l,g]}var lp=function(r){var t=r.size,i=t===void 0?"default":t,n=r.color,o=r.prefixCls;return U.createElement("div",{className:ye("".concat(o,"-handler"),G({},"".concat(o,"-handler-sm"),i==="small")),style:{backgroundColor:n}})},up=function(r){var t=r.children,i=r.style,n=r.prefixCls;return U.createElement("div",{className:"".concat(n,"-palette"),style:J({position:"relative"},i)},t)},cp=U.forwardRef(function(e,r){var t=e.children,i=e.x,n=e.y;return U.createElement("div",{ref:r,style:{position:"absolute",left:"".concat(i,"%"),top:"".concat(n,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},t)}),K2=function(r){var t=r.color,i=r.onChange,n=r.prefixCls,o=r.onChangeComplete,a=r.disabled,s=U.useRef(),c=U.useRef(),d=U.useRef(t),f=vt(function(m){var v=op({offset:m,targetRef:c,containerRef:s,color:t});d.current=v,i(v)}),l=sp({color:t,containerRef:s,targetRef:c,calculate:function(){return ap(t)},onDragChange:f,onDragChangeComplete:function(){return o?.(d.current)},disabledDrag:a}),u=le(l,2),h=u[0],p=u[1];return U.createElement("div",{ref:s,className:"".concat(n,"-select"),onMouseDown:p,onTouchStart:p},U.createElement(up,{prefixCls:n},U.createElement(cp,{x:h.x,y:h.y,ref:c},U.createElement(lp,{color:t.toRgbString(),prefixCls:n})),U.createElement("div",{className:"".concat(n,"-saturation"),style:{backgroundColor:"hsl(".concat(t.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},G2=function(r,t){var i=Rr(r,{value:t}),n=le(i,2),o=n[0],a=n[1],s=U.useMemo(function(){return Wr(o)},[o]);return[s,a]},Y2=function(r){var t=r.colors,i=r.children,n=r.direction,o=n===void 0?"to right":n,a=r.type,s=r.prefixCls,c=U.useMemo(function(){return t.map(function(d,f){var l=Wr(d);return a==="alpha"&&f===t.length-1&&(l=new pr(l.setA(1))),l.toRgbString()}).join(",")},[t,a]);return U.createElement("div",{className:"".concat(s,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(o,", ").concat(c,")")}},i)},X2=function(r){var t=r.prefixCls,i=r.colors,n=r.disabled,o=r.onChange,a=r.onChangeComplete,s=r.color,c=r.type,d=U.useRef(),f=U.useRef(),l=U.useRef(s),u=function(x){return c==="hue"?x.getHue():x.a*100},h=vt(function(b){var x=op({offset:b,targetRef:f,containerRef:d,color:s,type:c});l.current=x,o(u(x))}),p=sp({color:s,targetRef:f,containerRef:d,calculate:function(){return ap(s,c)},onDragChange:h,onDragChangeComplete:function(){a(u(l.current))},direction:"x",disabledDrag:n}),m=le(p,2),v=m[0],y=m[1],g=U.useMemo(function(){if(c==="hue"){var b=s.toHsb();b.s=1,b.b=1,b.a=1;var x=new pr(b);return x}return s},[s,c]),w=U.useMemo(function(){return i.map(function(b){return"".concat(b.color," ").concat(b.percent,"%")})},[i]);return U.createElement("div",{ref:d,className:ye("".concat(t,"-slider"),"".concat(t,"-slider-").concat(c)),onMouseDown:y,onTouchStart:y},U.createElement(up,{prefixCls:t},U.createElement(cp,{x:v.x,y:v.y,ref:f},U.createElement(lp,{size:"small",color:g.toHexString(),prefixCls:t})),U.createElement(Y2,{colors:w,type:c,prefixCls:t})))};function Z2(e){return I.useMemo(function(){var r=e||{},t=r.slider;return[t||X2]},[e])}var Q2=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],J2=U.forwardRef(function(e,r){var t=e.value,i=e.defaultValue,n=e.prefixCls,o=n===void 0?H2:n,a=e.onChange,s=e.onChangeComplete,c=e.className,d=e.style,f=e.panelRender,l=e.disabledAlpha,u=l===void 0?!1:l,h=e.disabled,p=h===void 0?!1:h,m=e.components,v=Z2(m),y=le(v,1),g=y[0],w=G2(i||z2,t),b=le(w,2),x=b[0],_=b[1],E=U.useMemo(function(){return x.setA(1).toRgbString()},[x]),C=function(H,D){t||_(H),a?.(H,D)},k=function(H){return new pr(x.setHue(H))},O=function(H){return new pr(x.setA(H/100))},S=function(H){C(k(H),{type:"hue",value:H})},R=function(H){C(O(H),{type:"alpha",value:H})},T=function(H){s&&s(k(H))},P=function(H){s&&s(O(H))},L=ye("".concat(o,"-panel"),c,G({},"".concat(o,"-panel-disabled"),p)),F={prefixCls:o,disabled:p,color:x},$=U.createElement(U.Fragment,null,U.createElement(K2,qe({onChange:C},F,{onChangeComplete:s})),U.createElement("div",{className:"".concat(o,"-slider-container")},U.createElement("div",{className:ye("".concat(o,"-slider-group"),G({},"".concat(o,"-slider-group-disabled-alpha"),u))},U.createElement(g,qe({},F,{type:"hue",colors:Q2,min:0,max:359,value:x.getHue(),onChange:S,onChangeComplete:T})),!u&&U.createElement(g,qe({},F,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:E}],min:0,max:100,value:x.a*100,onChange:R,onChangeComplete:P}))),U.createElement(U2,{color:x.toRgbString(),prefixCls:o})));return U.createElement("div",{className:L,style:d,ref:r},typeof f=="function"?f($):$)});process.env.NODE_ENV!=="production"&&(J2.displayName="ColorPicker");const ew=(e,r)=>e?.replace(/[^\w/]/g,"").slice(0,r?8:6)||"",tw=(e,r)=>e?ew(e,r):"";let Ld=(function(){function e(r){ot(this,e);var t;if(this.cleared=!1,r instanceof e){this.metaColor=r.metaColor.clone(),this.colors=(t=r.colors)===null||t===void 0?void 0:t.map(n=>({color:new e(n.color),percent:n.percent})),this.cleared=r.cleared;return}const i=Array.isArray(r);i&&r.length?(this.colors=r.map(({color:n,percent:o})=>({color:new e(n),percent:o})),this.metaColor=new pr(this.colors[0].color.metaColor)):this.metaColor=new pr(i?"":r),(!r||i&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return at(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return tw(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:t}=this;return t?`linear-gradient(90deg, ${t.map(n=>`${n.color.toRgbString()} ${n.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(t){return!t||this.isGradient()!==t.isGradient()?!1:this.isGradient()?this.colors.length===t.colors.length&&this.colors.every((i,n)=>{const o=t.colors[n];return i.percent===o.percent&&i.color.equals(o.color)}):this.toHexString()===t.toHexString()}}])})();const rw=e=>e instanceof Ld?e:new Ld(e);function fp(e,r){const t=D2(r),i=ye({[`${e}-${r}`]:r&&t}),n={},o={},a=rw(r).toRgb(),c=(.299*a.r+.587*a.g+.114*a.b)/255<.5?"#FFF":"#000";return r&&!t&&(n.background=r,n["--ant-tooltip-color"]=c,o["--antd-arrow-background-color"]=r),{className:i,overlayStyle:n,arrowStyle:o}}const nw=e=>{const{prefixCls:r,className:t,placement:i="top",title:n,color:o,overlayInnerStyle:a}=e,{getPrefixCls:s}=I.useContext(Kt),c=s("tooltip",r),[d,f,l]=ip(c),u=fp(c,o),h=u.arrowStyle,p=Object.assign(Object.assign({},a),u.overlayStyle),m=ye(f,l,c,`${c}-pure`,`${c}-placement-${i}`,t,u.className);return d(I.createElement("div",{className:m,style:h},I.createElement("div",{className:`${c}-arrow`}),I.createElement(Lv,Object.assign({},e,{className:f,prefixCls:c,overlayInnerStyle:p}),n)))};var iw=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};const ow=I.forwardRef((e,r)=>{var t,i;const{prefixCls:n,openClassName:o,getTooltipContainer:a,color:s,overlayInnerStyle:c,children:d,afterOpenChange:f,afterVisibleChange:l,destroyTooltipOnHide:u,destroyOnHidden:h,arrow:p=!0,title:m,overlay:v,builtinPlacements:y,arrowPointAtCenter:g=!1,autoAdjustOverflow:w=!0,motion:b,getPopupContainer:x,placement:_="top",mouseEnterDelay:E=.1,mouseLeaveDelay:C=.1,overlayStyle:k,rootClassName:O,overlayClassName:S,styles:R,classNames:T}=e,P=iw(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"]),L=!!p,[,F]=ln(),{getPopupContainer:$,getPrefixCls:z,direction:H,className:D,style:j,classNames:A,styles:M}=so("tooltip"),q=Wt("Tooltip"),B=I.useRef(null),N=()=>{var Re;(Re=B.current)===null||Re===void 0||Re.forceAlign()};I.useImperativeHandle(r,()=>{var Re,ke;return{forceAlign:N,forcePopupAlign:()=>{q.deprecated(!1,"forcePopupAlign","forceAlign"),N()},nativeElement:(Re=B.current)===null||Re===void 0?void 0:Re.nativeElement,popupElement:(ke=B.current)===null||ke===void 0?void 0:ke.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(([Re,ke])=>{q.deprecated(!(Re in e),Re,ke)}),process.env.NODE_ENV!=="production"&&q(!u||typeof u=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&q(!p||typeof p=="boolean"||!("arrowPointAtCenter"in p),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[V,K]=Rr(!1,{value:(t=e.open)!==null&&t!==void 0?t:e.visible,defaultValue:(i=e.defaultOpen)!==null&&i!==void 0?i:e.defaultVisible}),W=!m&&!v&&m!==0,X=Re=>{var ke,Te;K(W?!1:Re),W||((ke=e.onOpenChange)===null||ke===void 0||ke.call(e,Re),(Te=e.onVisibleChange)===null||Te===void 0||Te.call(e,Re))},re=I.useMemo(()=>{var Re,ke;let Te=g;return typeof p=="object"&&(Te=(ke=(Re=p.pointAtCenter)!==null&&Re!==void 0?Re:p.arrowPointAtCenter)!==null&&ke!==void 0?ke:g),y||y2({arrowPointAtCenter:Te,autoAdjustOverflow:w,arrowWidth:L?F.sizePopupArrow:0,borderRadius:F.borderRadius,offset:F.marginXXS})},[g,p,y,F]),oe=I.useMemo(()=>m===0?m:v||m||"",[v,m]),se=I.createElement(jl,{space:!0},typeof oe=="function"?oe():oe),te=z("tooltip",n),ce=z(),fe=e["data-popover-inject"];let ve=V;!("open"in e)&&!("visible"in e)&&W&&(ve=!1);const Q=I.isValidElement(d)&&!b2(d)?d:I.createElement("span",null,d),Z=Q.props,ae=!Z.className||typeof Z.className=="string"?ye(Z.className,o||`${te}-open`):Z.className,[ie,ee,ue]=ip(te,!fe),ne=fp(te,s),he=ne.arrowStyle,Se=ye(S,{[`${te}-rtl`]:H==="rtl"},ne.className,O,ee,ue,D,A.root,T?.root),Me=ye(A.body,T?.body),[be,De]=c2("Tooltip",P.zIndex),Ce=I.createElement(ox,Object.assign({},P,{zIndex:be,showArrow:L,placement:_,mouseEnterDelay:E,mouseLeaveDelay:C,prefixCls:te,classNames:{root:Se,body:Me},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},he),M.root),j),k),R?.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},M.body),c),R?.body),ne.overlayStyle)},getTooltipContainer:x||a||$,ref:B,builtinPlacements:re,overlay:se,visible:ve,onVisibleChange:X,afterVisibleChange:f??l,arrowContent:I.createElement("span",{className:`${te}-arrow-content`}),motion:{motionName:f2(ce,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:h??!!u}),ve?np(Q,{className:ae}):Q);return ie(I.createElement(lu.Provider,{value:De},Ce))}),ri=ow;process.env.NODE_ENV!=="production"&&(ri.displayName="Tooltip");ri._InternalPanelDoNotUseOrYouWillBeFired=nw;var aw={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"},sw=function(r,t){return I.createElement(ir,qe({},r,{ref:t,icon:aw}))},dp=I.forwardRef(sw);process.env.NODE_ENV!=="production"&&(dp.displayName="EnterOutlined");var $d={ENTER:13,ESC:27};function lw(e){return!!(e.addonBefore||e.addonAfter)}function uw(e){return!!(e.prefix||e.suffix||e.allowClear)}function Fd(e,r,t){var i=r.cloneNode(!0),n=Object.create(e,{target:{value:i},currentTarget:{value:i}});return i.value=t,typeof r.selectionStart=="number"&&typeof r.selectionEnd=="number"&&(i.selectionStart=r.selectionStart,i.selectionEnd=r.selectionEnd),i.setSelectionRange=function(){r.setSelectionRange.apply(r,arguments)},n}function Wi(e,r,t,i){if(t){var n=r;if(r.type==="click"){n=Fd(r,e,""),t(n);return}if(e.type!=="file"&&i!==void 0){n=Fd(r,e,i),t(n);return}t(n)}}function hp(e,r){if(e){e.focus(r);var t=r||{},i=t.cursor;if(i){var n=e.value.length;switch(i){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}}var vp=U.forwardRef(function(e,r){var t,i,n,o=e.inputElement,a=e.children,s=e.prefixCls,c=e.prefix,d=e.suffix,f=e.addonBefore,l=e.addonAfter,u=e.className,h=e.style,p=e.disabled,m=e.readOnly,v=e.focused,y=e.triggerFocus,g=e.allowClear,w=e.value,b=e.handleReset,x=e.hidden,_=e.classes,E=e.classNames,C=e.dataAttrs,k=e.styles,O=e.components,S=e.onClear,R=a??o,T=O?.affixWrapper||"span",P=O?.groupWrapper||"span",L=O?.wrapper||"span",F=O?.groupAddon||"span",$=U.useRef(null),z=function(ce){var fe;(fe=$.current)!==null&&fe!==void 0&&fe.contains(ce.target)&&y?.()},H=uw(e),D=U.cloneElement(R,{value:w,className:ye((t=R.props)===null||t===void 0?void 0:t.className,!H&&E?.variant)||null}),j=U.useRef(null);if(U.useImperativeHandle(r,function(){return{nativeElement:j.current||$.current}}),H){var A=null;if(g){var M=!p&&!m&&w,q="".concat(s,"-clear-icon"),B=Ee(g)==="object"&&g!==null&&g!==void 0&&g.clearIcon?g.clearIcon:"✖";A=U.createElement("button",{type:"button",tabIndex:-1,onClick:function(ce){b?.(ce),S?.()},onMouseDown:function(ce){return ce.preventDefault()},className:ye(q,G(G({},"".concat(q,"-hidden"),!M),"".concat(q,"-has-suffix"),!!d))},B)}var N="".concat(s,"-affix-wrapper"),V=ye(N,G(G(G(G(G({},"".concat(s,"-disabled"),p),"".concat(N,"-disabled"),p),"".concat(N,"-focused"),v),"".concat(N,"-readonly"),m),"".concat(N,"-input-with-clear-btn"),d&&g&&w),_?.affixWrapper,E?.affixWrapper,E?.variant),K=(d||g)&&U.createElement("span",{className:ye("".concat(s,"-suffix"),E?.suffix),style:k?.suffix},A,d);D=U.createElement(T,qe({className:V,style:k?.affixWrapper,onClick:z},C?.affixWrapper,{ref:$}),c&&U.createElement("span",{className:ye("".concat(s,"-prefix"),E?.prefix),style:k?.prefix},c),D,K)}if(lw(e)){var W="".concat(s,"-group"),X="".concat(W,"-addon"),re="".concat(W,"-wrapper"),oe=ye("".concat(s,"-wrapper"),W,_?.wrapper,E?.wrapper),se=ye(re,G({},"".concat(re,"-disabled"),p),_?.group,E?.groupWrapper);D=U.createElement(P,{className:se,ref:j},U.createElement(L,{className:oe},f&&U.createElement(F,{className:X},f),D,l&&U.createElement(F,{className:X},l)))}return U.cloneElement(D,{className:ye((i=D.props)===null||i===void 0?void 0:i.className,u)||null,style:J(J({},(n=D.props)===null||n===void 0?void 0:n.style),h),hidden:x})}),cw=["show"];function pp(e,r){return I.useMemo(function(){var t={};r&&(t.show=Ee(r)==="object"&&r.formatter?r.formatter:!!r),t=J(J({},t),e);var i=t,n=i.show,o=dt(i,cw);return J(J({},o),{},{show:!!n,showFormatter:typeof n=="function"?n:void 0,strategy:o.strategy||function(a){return a.length}})},[e,r])}var fw=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],dw=U.forwardRef(function(e,r){var t=e.autoComplete,i=e.onChange,n=e.onFocus,o=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,c=e.onKeyUp,d=e.prefixCls,f=d===void 0?"rc-input":d,l=e.disabled,u=e.htmlSize,h=e.className,p=e.maxLength,m=e.suffix,v=e.showCount,y=e.count,g=e.type,w=g===void 0?"text":g,b=e.classes,x=e.classNames,_=e.styles,E=e.onCompositionStart,C=e.onCompositionEnd,k=dt(e,fw),O=U.useState(!1),S=le(O,2),R=S[0],T=S[1],P=U.useRef(!1),L=U.useRef(!1),F=U.useRef(null),$=U.useRef(null),z=function(ne){F.current&&hp(F.current,ne)},H=Rr(e.defaultValue,{value:e.value}),D=le(H,2),j=D[0],A=D[1],M=j==null?"":String(j),q=U.useState(null),B=le(q,2),N=B[0],V=B[1],K=pp(y,v),W=K.max||p,X=K.strategy(M),re=!!W&&X>W;U.useImperativeHandle(r,function(){var ue;return{focus:z,blur:function(){var he;(he=F.current)===null||he===void 0||he.blur()},setSelectionRange:function(he,Se,Me){var be;(be=F.current)===null||be===void 0||be.setSelectionRange(he,Se,Me)},select:function(){var he;(he=F.current)===null||he===void 0||he.select()},input:F.current,nativeElement:((ue=$.current)===null||ue===void 0?void 0:ue.nativeElement)||F.current}}),U.useEffect(function(){L.current&&(L.current=!1),T(function(ue){return ue&&l?!1:ue})},[l]);var oe=function(ne,he,Se){var Me=he;if(!P.current&&K.exceedFormatter&&K.max&&K.strategy(he)>K.max){if(Me=K.exceedFormatter(he,{max:K.max}),he!==Me){var be,De;V([((be=F.current)===null||be===void 0?void 0:be.selectionStart)||0,((De=F.current)===null||De===void 0?void 0:De.selectionEnd)||0])}}else if(Se.source==="compositionEnd")return;A(Me),F.current&&Wi(F.current,ne,i,Me)};U.useEffect(function(){if(N){var ue;(ue=F.current)===null||ue===void 0||ue.setSelectionRange.apply(ue,me(N))}},[N]);var se=function(ne){oe(ne,ne.target.value,{source:"change"})},te=function(ne){P.current=!1,oe(ne,ne.currentTarget.value,{source:"compositionEnd"}),C?.(ne)},ce=function(ne){a&&ne.key==="Enter"&&!L.current&&(L.current=!0,a(ne)),s?.(ne)},fe=function(ne){ne.key==="Enter"&&(L.current=!1),c?.(ne)},ve=function(ne){T(!0),n?.(ne)},Q=function(ne){L.current&&(L.current=!1),T(!1),o?.(ne)},Z=function(ne){A(""),z(),F.current&&Wi(F.current,ne,i)},ae=re&&"".concat(f,"-out-of-range"),ie=function(){var ne=Dh(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return U.createElement("input",qe({autoComplete:t},ne,{onChange:se,onFocus:ve,onBlur:Q,onKeyDown:ce,onKeyUp:fe,className:ye(f,G({},"".concat(f,"-disabled"),l),x?.input),style:_?.input,ref:F,size:u,type:w,onCompositionStart:function(Se){P.current=!0,E?.(Se)},onCompositionEnd:te}))},ee=function(){var ne=Number(W)>0;if(m||K.show){var he=K.showFormatter?K.showFormatter({value:M,count:X,maxLength:W}):"".concat(X).concat(ne?" / ".concat(W):"");return U.createElement(U.Fragment,null,K.show&&U.createElement("span",{className:ye("".concat(f,"-show-count-suffix"),G({},"".concat(f,"-show-count-has-suffix"),!!m),x?.count),style:J({},_?.count)},he),m)}return null};return U.createElement(vp,qe({},k,{prefixCls:f,className:ye(h,ae),handleReset:Z,value:M,focused:R,triggerFocus:z,suffix:ee(),disabled:l,classes:b,classNames:x,styles:_,ref:$}),ie())}),hw=`
|
|
191
191
|
min-height:0 !important;
|
|
192
192
|
max-height:none !important;
|
|
193
193
|
height:0 !important;
|
|
@@ -198,7 +198,7 @@ html body {
|
|
|
198
198
|
top:0 !important;
|
|
199
199
|
right:0 !important;
|
|
200
200
|
pointer-events: none !important;
|
|
201
|
-
`,hw=["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"],As={},xt;function vw(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(r&&As[t])return As[t];var i=window.getComputedStyle(e),n=i.getPropertyValue("box-sizing")||i.getPropertyValue("-moz-box-sizing")||i.getPropertyValue("-webkit-box-sizing"),o=parseFloat(i.getPropertyValue("padding-bottom"))+parseFloat(i.getPropertyValue("padding-top")),a=parseFloat(i.getPropertyValue("border-bottom-width"))+parseFloat(i.getPropertyValue("border-top-width")),s=hw.map(function(d){return"".concat(d,":").concat(i.getPropertyValue(d))}).join(";"),c={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:n};return r&&t&&(As[t]=c),c}function pw(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;xt||(xt=document.createElement("textarea"),xt.setAttribute("tab-index","-1"),xt.setAttribute("aria-hidden","true"),xt.setAttribute("name","hiddenTextarea"),document.body.appendChild(xt)),e.getAttribute("wrap")?xt.setAttribute("wrap",e.getAttribute("wrap")):xt.removeAttribute("wrap");var n=vw(e,r),o=n.paddingSize,a=n.borderSize,s=n.boxSizing,c=n.sizingStyle;xt.setAttribute("style","".concat(c,";").concat(dw)),xt.value=e.value||e.placeholder||"";var d=void 0,f=void 0,l,u=xt.scrollHeight;if(s==="border-box"?u+=a:s==="content-box"&&(u-=o),t!==null||i!==null){xt.value=" ";var h=xt.scrollHeight-o;t!==null&&(d=h*t,s==="border-box"&&(d=d+o+a),u=Math.max(d,u)),i!==null&&(f=h*i,s==="border-box"&&(f=f+o+a),l=u>f?"":"hidden",u=Math.min(f,u))}var p={height:u,overflowY:l,resize:"none"};return d&&(p.minHeight=d),f&&(p.maxHeight=f),p}var gw=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ts=0,Ps=1,ks=2,mw=I.forwardRef(function(e,r){var t=e,i=t.prefixCls,n=t.defaultValue,o=t.value,a=t.autoSize,s=t.onResize,c=t.className,d=t.style,f=t.disabled,l=t.onChange,u=t.onInternalAutoSize,h=dt(t,gw),p=Rr(n,{value:o,postState:function(q){return q??""}}),m=le(p,2),v=m[0],y=m[1],g=function(q){y(q.target.value),l?.(q)},w=I.useRef();I.useImperativeHandle(r,function(){return{textArea:w.current}});var b=I.useMemo(function(){return a&&Ee(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),x=le(b,2),_=x[0],E=x[1],C=!!a,P=I.useState(ks),O=le(P,2),S=O[0],R=O[1],T=I.useState(),k=le(T,2),L=k[0],F=k[1],$=function(){R(Ts),process.env.NODE_ENV==="test"&&u?.()};Ue(function(){C&&$()},[o,_,E,C]),Ue(function(){if(S===Ts)R(Ps);else if(S===Ps){var M=pw(w.current,!1,_,E);R(ks),F(M)}},[S]);var z=I.useRef(),H=function(){tn.cancel(z.current)},D=function(q){S===ks&&(s?.(q),a&&(H(),z.current=tn(function(){$()})))};I.useEffect(function(){return H},[]);var j=C?L:null,A=J(J({},d),j);return(S===Ts||S===Ps)&&(A.overflowY="hidden",A.overflowX="hidden"),I.createElement(an,{onResize:D,disabled:!(a||s)},I.createElement("textarea",qe({},h,{ref:w,style:A,className:ye(i,c,G({},"".concat(i,"-disabled"),f)),disabled:f,value:v,onChange:g})))}),yw=["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"],bw=U.forwardRef(function(e,r){var t,i=e.defaultValue,n=e.value,o=e.onFocus,a=e.onBlur,s=e.onChange,c=e.allowClear,d=e.maxLength,f=e.onCompositionStart,l=e.onCompositionEnd,u=e.suffix,h=e.prefixCls,p=h===void 0?"rc-textarea":h,m=e.showCount,v=e.count,y=e.className,g=e.style,w=e.disabled,b=e.hidden,x=e.classNames,_=e.styles,E=e.onResize,C=e.onClear,P=e.onPressEnter,O=e.readOnly,S=e.autoSize,R=e.onKeyDown,T=dt(e,yw),k=Rr(i,{value:n,defaultValue:i}),L=le(k,2),F=L[0],$=L[1],z=F==null?"":String(F),H=U.useState(!1),D=le(H,2),j=D[0],A=D[1],M=U.useRef(!1),q=U.useState(null),B=le(q,2),N=B[0],V=B[1],K=U.useRef(null),W=U.useRef(null),X=function(){var _e;return(_e=W.current)===null||_e===void 0?void 0:_e.textArea},re=function(){X().focus()};U.useImperativeHandle(r,function(){var Te;return{resizableTextArea:W.current,focus:re,blur:function(){X().blur()},nativeElement:((Te=K.current)===null||Te===void 0?void 0:Te.nativeElement)||X()}}),U.useEffect(function(){A(function(Te){return!w&&Te})},[w]);var oe=U.useState(null),se=le(oe,2),te=se[0],ce=se[1];U.useEffect(function(){if(te){var Te;(Te=X()).setSelectionRange.apply(Te,me(te))}},[te]);var fe=vp(v,m),ve=(t=fe.max)!==null&&t!==void 0?t:d,Q=Number(ve)>0,Z=fe.strategy(z),ae=!!ve&&Z>ve,ie=function(_e,Be){var ge=Be;!M.current&&fe.exceedFormatter&&fe.max&&fe.strategy(Be)>fe.max&&(ge=fe.exceedFormatter(Be,{max:fe.max}),Be!==ge&&ce([X().selectionStart||0,X().selectionEnd||0])),$(ge),Wi(_e.currentTarget,_e,s,ge)},ee=function(_e){M.current=!0,f?.(_e)},ue=function(_e){M.current=!1,ie(_e,_e.currentTarget.value),l?.(_e)},ne=function(_e){ie(_e,_e.target.value)},de=function(_e){_e.key==="Enter"&&P&&P(_e),R?.(_e)},Se=function(_e){A(!0),o?.(_e)},Me=function(_e){A(!1),a?.(_e)},be=function(_e){$(""),re(),Wi(X(),_e,s)},De=u,Ce;fe.show&&(fe.showFormatter?Ce=fe.showFormatter({value:z,count:Z,maxLength:ve}):Ce="".concat(Z).concat(Q?" / ".concat(ve):""),De=U.createElement(U.Fragment,null,De,U.createElement("span",{className:ye("".concat(p,"-data-count"),x?.count),style:_?.count},Ce)));var Re=function(_e){var Be;E?.(_e),(Be=X())!==null&&Be!==void 0&&Be.style.height&&V(!0)},Pe=!S&&!m&&!c;return U.createElement(hp,{ref:K,value:z,allowClear:c,handleReset:be,suffix:De,prefixCls:p,classNames:J(J({},x),{},{affixWrapper:ye(x?.affixWrapper,G(G({},"".concat(p,"-show-count"),m),"".concat(p,"-textarea-allow-clear"),c))}),disabled:w,focused:j,className:ye(y,ae&&"".concat(p,"-out-of-range")),style:J(J({},g),N&&!Pe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ce=="string"?Ce:void 0}},hidden:b,readOnly:O,onClear:C},U.createElement(mw,qe({},T,{autoSize:S,maxLength:d,onKeyDown:de,onChange:ne,onFocus:Se,onBlur:Me,onCompositionStart:ee,onCompositionEnd:ue,className:ye(x?.textarea),style:J(J({},_?.textarea),{},{resize:g?.resize}),disabled:w,prefixCls:p,onResize:Re,ref:W,readOnly:O})))}),xw={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"},ww=function(r,t){return I.createElement(ir,qe({},r,{ref:t,icon:xw}))},pp=I.forwardRef(ww);process.env.NODE_ENV!=="production"&&(pp.displayName="CloseCircleFilled");const gp=e=>{let r;return typeof e=="object"&&e?.clearIcon?r=e:e&&(r={clearIcon:U.createElement(pp,null)}),r};function jl(e,r,t){return ye({[`${e}-status-success`]:r==="success",[`${e}-status-warning`]:r==="warning",[`${e}-status-error`]:r==="error",[`${e}-status-validating`]:r==="validating",[`${e}-has-feedback`]:t})}const mp=(e,r)=>r||e,yp=e=>{const[,,,,r]=ln();return r?`${e}-css-var`:""},bp=(e,r,t=void 0)=>{var i,n;const{variant:o,[e]:a}=I.useContext(Kt),s=I.useContext(r2),c=a?.variant;let d;typeof r<"u"?d=r:t===!1?d="borderless":d=(n=(i=s??c)!==null&&i!==void 0?i:o)!==null&&n!==void 0?n:"outlined";const f=Eb.includes(d);return[d,f]};function Ew(e,r){const t=U.useRef([]),i=()=>{t.current.push(setTimeout(()=>{var n,o,a,s;!((n=e.current)===null||n===void 0)&&n.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return U.useEffect(()=>(i(),()=>t.current.forEach(n=>{n&&clearTimeout(n)})),[]),i}function _w(e,r,t,i){const{focusElCls:n,focus:o,borderElCls:a}=t,s=a?"> *":"",c=["hover",o?"focus":null,"active"].filter(Boolean).map(d=>`&:${d} ${s}`).join(",");return{[`&-item:not(${r}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${i}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[c]:{zIndex:3}},n?{[`&${n}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function Sw(e,r,t){const{borderElCls:i}=t,n=i?`> ${i}`:"";return{[`&-item:not(${r}-first-item):not(${r}-last-item) ${n}`]:{borderRadius:0},[`&-item:not(${r}-last-item)${r}-first-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${r}-first-item)${r}-last-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Cw(e,r={focus:!0}){const{componentCls:t}=e,i=`${t}-compact`;return{[i]:Object.assign(Object.assign({},_w(e,i,r,t)),Sw(t,i,r))}}function su(e){return or(e,{inputAffixPadding:e.paddingXXS})}const lu=e=>{const{controlHeight:r,fontSize:t,lineHeight:i,lineWidth:n,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:c,paddingSM:d,controlPaddingHorizontalSM:f,controlPaddingHorizontal:l,colorFillAlter:u,colorPrimaryHover:h,colorPrimary:p,controlOutlineWidth:m,controlOutline:v,colorErrorOutline:y,colorWarningOutline:g,colorBgContainer:w,inputFontSize:b,inputFontSizeLG:x,inputFontSizeSM:_}=e,E=b||t,C=_||E,P=x||s,O=Math.round((r-E*i)/2*10)/10-n,S=Math.round((o-C*i)/2*10)/10-n,R=Math.ceil((a-P*c)/2*10)/10-n;return{paddingBlock:Math.max(O,0),paddingBlockSM:Math.max(S,0),paddingBlockLG:Math.max(R,0),paddingInline:d-n,paddingInlineSM:f-n,paddingInlineLG:l-n,addonBg:u,activeBorderColor:p,hoverBorderColor:h,activeShadow:`0 0 0 ${m}px ${v}`,errorActiveShadow:`0 0 0 ${m}px ${y}`,warningActiveShadow:`0 0 0 ${m}px ${g}`,hoverBg:w,activeBg:w,inputFontSize:E,inputFontSizeLG:P,inputFontSizeSM:C}},Ow=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),uu=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({},Ow(or(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),xp=(e,r)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:r.borderColor,"&:hover":{borderColor:r.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:r.activeBorderColor,boxShadow:r.activeShadow,outline:0,backgroundColor:e.activeBg}}),$d=(e,r)=>({[`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},xp(e,r)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:r.affixColor}}),[`&${e.componentCls}-status-${r.status}${e.componentCls}-disabled`]:{borderColor:r.borderColor}}),Rw=(e,r)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xp(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},uu(e))}),$d(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),$d(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),r)}),Fd=(e,r)=>({[`&${e.componentCls}-group-wrapper-status-${r.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:r.addonBorderColor,color:r.addonColor}}}),Aw=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Fd(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Fd(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},uu(e))}})}),Tw=(e,r)=>{const{componentCls:t}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${t}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${t}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${t}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},r)}},wp=(e,r)=>{var t;return{background:r.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(t=r?.inputColor)!==null&&t!==void 0?t:"unset"},"&:hover":{background:r.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:r.activeBorderColor,backgroundColor:e.activeBg}}},Dd=(e,r)=>({[`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},wp(e,r)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:r.affixColor}})}),Pw=(e,r)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wp(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},uu(e))}),Dd(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Dd(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),r)}),qd=(e,r)=>({[`&${e.componentCls}-group-wrapper-status-${r.status}`]:{[`${e.componentCls}-group-addon`]:{background:r.addonBg,color:r.addonColor}}}),kw=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},qd(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),qd(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:`${Le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Ep=(e,r)=>({background:e.colorBgContainer,borderWidth:`${Le(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${r.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${r.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${r.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),Bd=(e,r)=>({[`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Ep(e,r)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:r.affixColor}}),[`&${e.componentCls}-status-${r.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${r.borderColor} transparent`}}),jw=(e,r)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ep(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),Bd(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Bd(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),r)}),Nw=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),_p=e=>{const{paddingBlockLG:r,lineHeightLG:t,borderRadiusLG:i,paddingInlineLG:n}=e;return{padding:`${Le(r)} ${Le(n)}`,fontSize:e.inputFontSizeLG,lineHeight:t,borderRadius:i}},Sp=e=>({padding:`${Le(e.paddingBlockSM)} ${Le(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Cp=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Le(e.paddingBlock)} ${Le(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Nw(e.colorTextPlaceholder)),{"&-lg":Object.assign({},_p(e)),"&-sm":Object.assign({},Sp(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Mw=e=>{const{componentCls:r,antCls:t}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${r}, &-lg > ${r}-group-addon`]:Object.assign({},_p(e)),[`&-sm ${r}, &-sm > ${r}-group-addon`]:Object.assign({},Sp(e)),[`&-lg ${t}-select-single ${t}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${t}-select-single ${t}-select-selector`]:{height:e.controlHeightSM},[`> ${r}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${r}-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 ${Le(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${t}-select`]:{margin:`${Le(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Le(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${t}-select-single:not(${t}-select-customize-input):not(${t}-pagination-size-changer)`]:{[`${t}-select-selector`]:{backgroundColor:"inherit",border:`${Le(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${t}-cascader-picker`]:{margin:`-9px ${Le(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${t}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[r]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${r}-search-with-button &`]:{zIndex:0}}},[`> ${r}:first-child, ${r}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${r}-affix-wrapper`]:{[`&:not(:first-child) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${r}:last-child, ${r}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${r}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${r}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${r}-group-compact`]:Object.assign(Object.assign({display:"block"},Kb()),{[`${r}-group-addon, ${r}-group-wrap, > ${r}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
201
|
+
`,vw=["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"],Ts={},xt;function pw(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(r&&Ts[t])return Ts[t];var i=window.getComputedStyle(e),n=i.getPropertyValue("box-sizing")||i.getPropertyValue("-moz-box-sizing")||i.getPropertyValue("-webkit-box-sizing"),o=parseFloat(i.getPropertyValue("padding-bottom"))+parseFloat(i.getPropertyValue("padding-top")),a=parseFloat(i.getPropertyValue("border-bottom-width"))+parseFloat(i.getPropertyValue("border-top-width")),s=vw.map(function(d){return"".concat(d,":").concat(i.getPropertyValue(d))}).join(";"),c={sizingStyle:s,paddingSize:o,borderSize:a,boxSizing:n};return r&&t&&(Ts[t]=c),c}function gw(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;xt||(xt=document.createElement("textarea"),xt.setAttribute("tab-index","-1"),xt.setAttribute("aria-hidden","true"),xt.setAttribute("name","hiddenTextarea"),document.body.appendChild(xt)),e.getAttribute("wrap")?xt.setAttribute("wrap",e.getAttribute("wrap")):xt.removeAttribute("wrap");var n=pw(e,r),o=n.paddingSize,a=n.borderSize,s=n.boxSizing,c=n.sizingStyle;xt.setAttribute("style","".concat(c,";").concat(hw)),xt.value=e.value||e.placeholder||"";var d=void 0,f=void 0,l,u=xt.scrollHeight;if(s==="border-box"?u+=a:s==="content-box"&&(u-=o),t!==null||i!==null){xt.value=" ";var h=xt.scrollHeight-o;t!==null&&(d=h*t,s==="border-box"&&(d=d+o+a),u=Math.max(d,u)),i!==null&&(f=h*i,s==="border-box"&&(f=f+o+a),l=u>f?"":"hidden",u=Math.min(f,u))}var p={height:u,overflowY:l,resize:"none"};return d&&(p.minHeight=d),f&&(p.maxHeight=f),p}var mw=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],ks=0,Ps=1,js=2,yw=I.forwardRef(function(e,r){var t=e,i=t.prefixCls,n=t.defaultValue,o=t.value,a=t.autoSize,s=t.onResize,c=t.className,d=t.style,f=t.disabled,l=t.onChange,u=t.onInternalAutoSize,h=dt(t,mw),p=Rr(n,{value:o,postState:function(q){return q??""}}),m=le(p,2),v=m[0],y=m[1],g=function(q){y(q.target.value),l?.(q)},w=I.useRef();I.useImperativeHandle(r,function(){return{textArea:w.current}});var b=I.useMemo(function(){return a&&Ee(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),x=le(b,2),_=x[0],E=x[1],C=!!a,k=I.useState(js),O=le(k,2),S=O[0],R=O[1],T=I.useState(),P=le(T,2),L=P[0],F=P[1],$=function(){R(ks),process.env.NODE_ENV==="test"&&u?.()};Ue(function(){C&&$()},[o,_,E,C]),Ue(function(){if(S===ks)R(Ps);else if(S===Ps){var M=gw(w.current,!1,_,E);R(js),F(M)}},[S]);var z=I.useRef(),H=function(){tn.cancel(z.current)},D=function(q){S===js&&(s?.(q),a&&(H(),z.current=tn(function(){$()})))};I.useEffect(function(){return H},[]);var j=C?L:null,A=J(J({},d),j);return(S===ks||S===Ps)&&(A.overflowY="hidden",A.overflowX="hidden"),I.createElement(an,{onResize:D,disabled:!(a||s)},I.createElement("textarea",qe({},h,{ref:w,style:A,className:ye(i,c,G({},"".concat(i,"-disabled"),f)),disabled:f,value:v,onChange:g})))}),bw=["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"],xw=U.forwardRef(function(e,r){var t,i=e.defaultValue,n=e.value,o=e.onFocus,a=e.onBlur,s=e.onChange,c=e.allowClear,d=e.maxLength,f=e.onCompositionStart,l=e.onCompositionEnd,u=e.suffix,h=e.prefixCls,p=h===void 0?"rc-textarea":h,m=e.showCount,v=e.count,y=e.className,g=e.style,w=e.disabled,b=e.hidden,x=e.classNames,_=e.styles,E=e.onResize,C=e.onClear,k=e.onPressEnter,O=e.readOnly,S=e.autoSize,R=e.onKeyDown,T=dt(e,bw),P=Rr(i,{value:n,defaultValue:i}),L=le(P,2),F=L[0],$=L[1],z=F==null?"":String(F),H=U.useState(!1),D=le(H,2),j=D[0],A=D[1],M=U.useRef(!1),q=U.useState(null),B=le(q,2),N=B[0],V=B[1],K=U.useRef(null),W=U.useRef(null),X=function(){var _e;return(_e=W.current)===null||_e===void 0?void 0:_e.textArea},re=function(){X().focus()};U.useImperativeHandle(r,function(){var Te;return{resizableTextArea:W.current,focus:re,blur:function(){X().blur()},nativeElement:((Te=K.current)===null||Te===void 0?void 0:Te.nativeElement)||X()}}),U.useEffect(function(){A(function(Te){return!w&&Te})},[w]);var oe=U.useState(null),se=le(oe,2),te=se[0],ce=se[1];U.useEffect(function(){if(te){var Te;(Te=X()).setSelectionRange.apply(Te,me(te))}},[te]);var fe=pp(v,m),ve=(t=fe.max)!==null&&t!==void 0?t:d,Q=Number(ve)>0,Z=fe.strategy(z),ae=!!ve&&Z>ve,ie=function(_e,Be){var ge=Be;!M.current&&fe.exceedFormatter&&fe.max&&fe.strategy(Be)>fe.max&&(ge=fe.exceedFormatter(Be,{max:fe.max}),Be!==ge&&ce([X().selectionStart||0,X().selectionEnd||0])),$(ge),Wi(_e.currentTarget,_e,s,ge)},ee=function(_e){M.current=!0,f?.(_e)},ue=function(_e){M.current=!1,ie(_e,_e.currentTarget.value),l?.(_e)},ne=function(_e){ie(_e,_e.target.value)},he=function(_e){_e.key==="Enter"&&k&&k(_e),R?.(_e)},Se=function(_e){A(!0),o?.(_e)},Me=function(_e){A(!1),a?.(_e)},be=function(_e){$(""),re(),Wi(X(),_e,s)},De=u,Ce;fe.show&&(fe.showFormatter?Ce=fe.showFormatter({value:z,count:Z,maxLength:ve}):Ce="".concat(Z).concat(Q?" / ".concat(ve):""),De=U.createElement(U.Fragment,null,De,U.createElement("span",{className:ye("".concat(p,"-data-count"),x?.count),style:_?.count},Ce)));var Re=function(_e){var Be;E?.(_e),(Be=X())!==null&&Be!==void 0&&Be.style.height&&V(!0)},ke=!S&&!m&&!c;return U.createElement(vp,{ref:K,value:z,allowClear:c,handleReset:be,suffix:De,prefixCls:p,classNames:J(J({},x),{},{affixWrapper:ye(x?.affixWrapper,G(G({},"".concat(p,"-show-count"),m),"".concat(p,"-textarea-allow-clear"),c))}),disabled:w,focused:j,className:ye(y,ae&&"".concat(p,"-out-of-range")),style:J(J({},g),N&&!ke?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ce=="string"?Ce:void 0}},hidden:b,readOnly:O,onClear:C},U.createElement(yw,qe({},T,{autoSize:S,maxLength:d,onKeyDown:he,onChange:ne,onFocus:Se,onBlur:Me,onCompositionStart:ee,onCompositionEnd:ue,className:ye(x?.textarea),style:J(J({},_?.textarea),{},{resize:g?.resize}),disabled:w,prefixCls:p,onResize:Re,ref:W,readOnly:O})))}),ww={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"},Ew=function(r,t){return I.createElement(ir,qe({},r,{ref:t,icon:ww}))},gp=I.forwardRef(Ew);process.env.NODE_ENV!=="production"&&(gp.displayName="CloseCircleFilled");const mp=e=>{let r;return typeof e=="object"&&e?.clearIcon?r=e:e&&(r={clearIcon:U.createElement(gp,null)}),r};function Nl(e,r,t){return ye({[`${e}-status-success`]:r==="success",[`${e}-status-warning`]:r==="warning",[`${e}-status-error`]:r==="error",[`${e}-status-validating`]:r==="validating",[`${e}-has-feedback`]:t})}const yp=(e,r)=>r||e,bp=e=>{const[,,,,r]=ln();return r?`${e}-css-var`:""},xp=(e,r,t=void 0)=>{var i,n;const{variant:o,[e]:a}=I.useContext(Kt),s=I.useContext(n2),c=a?.variant;let d;typeof r<"u"?d=r:t===!1?d="borderless":d=(n=(i=s??c)!==null&&i!==void 0?i:o)!==null&&n!==void 0?n:"outlined";const f=_b.includes(d);return[d,f]};function _w(e,r){const t=U.useRef([]),i=()=>{t.current.push(setTimeout(()=>{var n,o,a,s;!((n=e.current)===null||n===void 0)&&n.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return U.useEffect(()=>(i(),()=>t.current.forEach(n=>{n&&clearTimeout(n)})),[]),i}function Sw(e,r,t,i){const{focusElCls:n,focus:o,borderElCls:a}=t,s=a?"> *":"",c=["hover",o?"focus":null,"active"].filter(Boolean).map(d=>`&:${d} ${s}`).join(",");return{[`&-item:not(${r}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${i}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[c]:{zIndex:3}},n?{[`&${n}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function Cw(e,r,t){const{borderElCls:i}=t,n=i?`> ${i}`:"";return{[`&-item:not(${r}-first-item):not(${r}-last-item) ${n}`]:{borderRadius:0},[`&-item:not(${r}-last-item)${r}-first-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${r}-first-item)${r}-last-item`]:{[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function Ow(e,r={focus:!0}){const{componentCls:t}=e,i=`${t}-compact`;return{[i]:Object.assign(Object.assign({},Sw(e,i,r,t)),Cw(t,i,r))}}function uu(e){return or(e,{inputAffixPadding:e.paddingXXS})}const cu=e=>{const{controlHeight:r,fontSize:t,lineHeight:i,lineWidth:n,controlHeightSM:o,controlHeightLG:a,fontSizeLG:s,lineHeightLG:c,paddingSM:d,controlPaddingHorizontalSM:f,controlPaddingHorizontal:l,colorFillAlter:u,colorPrimaryHover:h,colorPrimary:p,controlOutlineWidth:m,controlOutline:v,colorErrorOutline:y,colorWarningOutline:g,colorBgContainer:w,inputFontSize:b,inputFontSizeLG:x,inputFontSizeSM:_}=e,E=b||t,C=_||E,k=x||s,O=Math.round((r-E*i)/2*10)/10-n,S=Math.round((o-C*i)/2*10)/10-n,R=Math.ceil((a-k*c)/2*10)/10-n;return{paddingBlock:Math.max(O,0),paddingBlockSM:Math.max(S,0),paddingBlockLG:Math.max(R,0),paddingInline:d-n,paddingInlineSM:f-n,paddingInlineLG:l-n,addonBg:u,activeBorderColor:p,hoverBorderColor:h,activeShadow:`0 0 0 ${m}px ${v}`,errorActiveShadow:`0 0 0 ${m}px ${y}`,warningActiveShadow:`0 0 0 ${m}px ${g}`,hoverBg:w,activeBg:w,inputFontSize:E,inputFontSizeLG:k,inputFontSizeSM:C}},Rw=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),fu=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({},Rw(or(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),wp=(e,r)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:r.borderColor,"&:hover":{borderColor:r.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:r.activeBorderColor,boxShadow:r.activeShadow,outline:0,backgroundColor:e.activeBg}}),Dd=(e,r)=>({[`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},wp(e,r)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:r.affixColor}}),[`&${e.componentCls}-status-${r.status}${e.componentCls}-disabled`]:{borderColor:r.borderColor}}),Aw=(e,r)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wp(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},fu(e))}),Dd(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Dd(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),r)}),qd=(e,r)=>({[`&${e.componentCls}-group-wrapper-status-${r.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:r.addonBorderColor,color:r.addonColor}}}),Tw=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},qd(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),qd(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},fu(e))}})}),kw=(e,r)=>{const{componentCls:t}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${t}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${t}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${t}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},r)}},Ep=(e,r)=>{var t;return{background:r.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(t=r?.inputColor)!==null&&t!==void 0?t:"unset"},"&:hover":{background:r.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:r.activeBorderColor,backgroundColor:e.activeBg}}},Bd=(e,r)=>({[`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Ep(e,r)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:r.affixColor}})}),Pw=(e,r)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ep(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},fu(e))}),Bd(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Bd(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),r)}),Vd=(e,r)=>({[`&${e.componentCls}-group-wrapper-status-${r.status}`]:{[`${e.componentCls}-group-addon`]:{background:r.addonBg,color:r.addonColor}}}),jw=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},Vd(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Vd(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:`${Le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Le(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),_p=(e,r)=>({background:e.colorBgContainer,borderWidth:`${Le(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${r.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${r.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${r.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),Hd=(e,r)=>({[`&${e.componentCls}-status-${r.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},_p(e,r)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:r.affixColor}}),[`&${e.componentCls}-status-${r.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${r.borderColor} transparent`}}),Nw=(e,r)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_p(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),Hd(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Hd(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),r)}),Mw=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Sp=e=>{const{paddingBlockLG:r,lineHeightLG:t,borderRadiusLG:i,paddingInlineLG:n}=e;return{padding:`${Le(r)} ${Le(n)}`,fontSize:e.inputFontSizeLG,lineHeight:t,borderRadius:i}},Cp=e=>({padding:`${Le(e.paddingBlockSM)} ${Le(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Op=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Le(e.paddingBlock)} ${Le(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},Mw(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Sp(e)),"&-sm":Object.assign({},Cp(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Iw=e=>{const{componentCls:r,antCls:t}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${r}, &-lg > ${r}-group-addon`]:Object.assign({},Sp(e)),[`&-sm ${r}, &-sm > ${r}-group-addon`]:Object.assign({},Cp(e)),[`&-lg ${t}-select-single ${t}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${t}-select-single ${t}-select-selector`]:{height:e.controlHeightSM},[`> ${r}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${r}-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 ${Le(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${t}-select`]:{margin:`${Le(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Le(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${t}-select-single:not(${t}-select-customize-input):not(${t}-pagination-size-changer)`]:{[`${t}-select-selector`]:{backgroundColor:"inherit",border:`${Le(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${t}-cascader-picker`]:{margin:`-9px ${Le(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${t}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[r]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${r}-search-with-button &`]:{zIndex:0}}},[`> ${r}:first-child, ${r}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${r}-affix-wrapper`]:{[`&:not(:first-child) ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${r}:last-child, ${r}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${r}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${r}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${r}-group-compact`]:Object.assign(Object.assign({display:"block"},Gb()),{[`${r}-group-addon, ${r}-group-wrap, > ${r}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
202
202
|
& > ${r}-affix-wrapper,
|
|
203
203
|
& > ${r}-number-affix-wrapper,
|
|
204
204
|
& > ${t}-picker-range
|
|
@@ -211,26 +211,26 @@ html body {
|
|
|
211
211
|
& > ${t}-cascader-picker:first-child ${r}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
212
212
|
& > ${t}-select:last-child > ${t}-select-selector,
|
|
213
213
|
& > ${t}-cascader-picker:last-child ${r},
|
|
214
|
-
& > ${t}-cascader-picker-focused:last-child ${r}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${t}-select-auto-complete ${r}`]:{verticalAlign:"top"},[`${r}-group-wrapper + ${r}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${r}-affix-wrapper`]:{borderRadius:0}},[`${r}-group-wrapper:not(:last-child)`]:{[`&${r}-search > ${r}-group`]:{[`& > ${r}-group-addon > ${r}-search-button`]:{borderRadius:0},[`& > ${r}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},
|
|
214
|
+
& > ${t}-cascader-picker-focused:last-child ${r}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${t}-select-auto-complete ${r}`]:{verticalAlign:"top"},[`${r}-group-wrapper + ${r}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${r}-affix-wrapper`]:{borderRadius:0}},[`${r}-group-wrapper:not(:last-child)`]:{[`&${r}-search > ${r}-group`]:{[`& > ${r}-group-addon > ${r}-search-button`]:{borderRadius:0},[`& > ${r}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},Lw=e=>{const{componentCls:r,controlHeightSM:t,lineWidth:i,calc:n}=e,a=n(t).sub(n(i).mul(2)).sub(16).div(2).equal();return{[r]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ru(e)),Op(e)),Aw(e)),Pw(e)),kw(e)),Nw(e)),{'&[type="color"]':{height:e.controlHeight,[`&${r}-lg`]:{height:e.controlHeightLG},[`&${r}-sm`]:{height:t,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},$w=e=>{const{componentCls:r}=e;return{[`${r}-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 ${Le(e.inputAffixPadding)}`}}}},Fw=e=>{const{componentCls:r,inputAffixPadding:t,colorTextDescription:i,motionDurationSlow:n,colorIcon:o,colorIconHover:a,iconCls:s}=e,c=`${r}-affix-wrapper`,d=`${r}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},Op(e)),{display:"inline-flex",[`&:not(${r}-disabled):hover`]:{zIndex:1,[`${r}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${r}`]:{padding:0},[`> input${r}, > textarea${r}`]:{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"'},[r]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:i,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:t},"&-suffix":{marginInlineStart:t}}}),$w(e)),{[`${s}${r}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${n}`,"&:hover":{color:a}}}),[`${r}-underlined`]:{borderRadius:0},[d]:{[`${s}${r}-password-icon`]:{color:o,cursor:"not-allowed","&:hover":{color:o}}}}},Dw=e=>{const{componentCls:r,borderRadiusLG:t,borderRadiusSM:i}=e;return{[`${r}-group`]:Object.assign(Object.assign(Object.assign({},ru(e)),Iw(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${r}-group-addon`]:{borderRadius:t,fontSize:e.inputFontSizeLG}},"&-sm":{[`${r}-group-addon`]:{borderRadius:i}}},Tw(e)),jw(e)),{[`&:not(${r}-compact-first-item):not(${r}-compact-last-item)${r}-compact-item`]:{[`${r}, ${r}-group-addon`]:{borderRadius:0}},[`&:not(${r}-compact-last-item)${r}-compact-first-item`]:{[`${r}, ${r}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${r}-compact-first-item)${r}-compact-last-item`]:{[`${r}, ${r}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${r}-compact-last-item)${r}-compact-item`]:{[`${r}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${r}-compact-first-item)${r}-compact-item`]:{[`${r}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},qw=e=>{const{componentCls:r,antCls:t}=e,i=`${r}-search`;return{[i]:{[r]:{"&:hover, &:focus":{[`+ ${r}-group-addon ${i}-button:not(${t}-btn-color-primary):not(${t}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${r}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${r}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${r}-group`]:{[`> ${r}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${i}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${i}-button:not(${t}-btn-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${t}-btn-loading::before`]:{inset:0}}}},[`${i}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${r}-affix-wrapper, ${i}-button`]:{height:e.controlHeightLG}},"&-small":{[`${r}-affix-wrapper, ${i}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${r}-compact-item`]:{[`&:not(${r}-compact-last-item)`]:{[`${r}-group-addon`]:{[`${r}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${r}-compact-first-item)`]:{[`${r},${r}-affix-wrapper`]:{borderRadius:0}},[`> ${r}-group-addon ${r}-search-button,
|
|
215
215
|
> ${r},
|
|
216
|
-
${r}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${r}-affix-wrapper-focused`]:{zIndex:2}}}}},
|
|
216
|
+
${r}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${r}-affix-wrapper-focused`]:{zIndex:2}}}}},Bw=e=>{const{componentCls:r}=e;return{[`${r}-out-of-range`]:{[`&, & input, & textarea, ${r}-show-count-suffix, ${r}-data-count`]:{color:e.colorError}}}},Rp=Zn(["Input","Shared"],e=>{const r=or(e,uu(e));return[Lw(r),Fw(r)]},cu,{resetFont:!1}),Vw=Zn(["Input","Component"],e=>{const r=or(e,uu(e));return[Dw(r),qw(r),Bw(r),Ow(r)]},cu,{resetFont:!1});function Hw(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var zw=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};const Uw=U.forwardRef((e,r)=>{const{prefixCls:t,bordered:i=!0,status:n,size:o,disabled:a,onBlur:s,onFocus:c,suffix:d,allowClear:f,addonAfter:l,addonBefore:u,className:h,style:p,styles:m,rootClassName:v,onChange:y,classNames:g,variant:w}=e,b=zw(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:Z}=Wt("Input");Z(!("bordered"in e),"bordered","variant")}const{getPrefixCls:x,direction:_,allowClear:E,autoComplete:C,className:k,style:O,classNames:S,styles:R}=so("input"),T=x("input",t),P=U.useRef(null),L=bp(T),[F,$,z]=Rp(T,v),[H]=Vw(T,L),{compactSize:D,compactItemClassnames:j}=Jv(T,_),A=Zv(Z=>{var ae;return(ae=o??D)!==null&&ae!==void 0?ae:Z}),M=U.useContext(Un),q=a??M,{status:B,hasFeedback:N,feedbackIcon:V}=U.useContext(Kn),K=yp(B,n),W=Hw(e)||!!N,X=U.useRef(W);if(process.env.NODE_ENV!=="production"){const Z=Wt("Input");U.useEffect(()=>{var ae;W&&!X.current&&process.env.NODE_ENV!=="production"&&Z(document.activeElement===((ae=P.current)===null||ae===void 0?void 0:ae.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"),X.current=W},[W])}const re=_w(P),oe=Z=>{re(),s?.(Z)},se=Z=>{re(),c?.(Z)},te=Z=>{re(),y?.(Z)},ce=(N||d)&&U.createElement(U.Fragment,null,d,N&&V),fe=mp(f??E),[ve,Q]=xp("input",w,i);return F(H(U.createElement(dw,Object.assign({ref:Gn(r,P),prefixCls:T,autoComplete:C},b,{disabled:q,onBlur:oe,onFocus:se,style:Object.assign(Object.assign({},O),p),styles:Object.assign(Object.assign({},R),m),suffix:ce,allowClear:fe,className:ye(h,v,z,L,j,k),onChange:te,addonBefore:u&&U.createElement(jl,{form:!0,space:!0},u),addonAfter:l&&U.createElement(jl,{form:!0,space:!0},l),classNames:Object.assign(Object.assign(Object.assign({},g),S),{input:ye({[`${T}-sm`]:A==="small",[`${T}-lg`]:A==="large",[`${T}-rtl`]:_==="rtl"},g?.input,S.input,$),variant:ye({[`${T}-${ve}`]:Q},Nl(T,K)),affixWrapper:ye({[`${T}-affix-wrapper-sm`]:A==="small",[`${T}-affix-wrapper-lg`]:A==="large",[`${T}-affix-wrapper-rtl`]:_==="rtl"},$),wrapper:ye({[`${T}-group-rtl`]:_==="rtl"},$),groupWrapper:ye({[`${T}-group-wrapper-sm`]:A==="small",[`${T}-group-wrapper-lg`]:A==="large",[`${T}-group-wrapper-rtl`]:_==="rtl",[`${T}-group-wrapper-${ve}`]:Q},Nl(`${T}-group-wrapper`,K,N),$)})}))))});process.env.NODE_ENV!=="production"&&(Uw.displayName="Input");const Ww=e=>{const{componentCls:r,paddingLG:t}=e,i=`${r}-textarea`;return{[`textarea${r}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${r}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${r}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[i]:{position:"relative","&-show-count":{[`${r}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
217
217
|
&-allow-clear > ${r},
|
|
218
218
|
&-affix-wrapper${i}-has-feedback ${r}
|
|
219
|
-
`]:{paddingInlineEnd:t},[`&-affix-wrapper${r}-affix-wrapper`]:{padding:0,[`> textarea${r}`]:{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"}},[`${r}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${r}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${i}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${r}-affix-wrapper-rtl`]:{[`${r}-suffix`]:{[`${r}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${r}-affix-wrapper-sm`]:{[`${r}-suffix`]:{[`${r}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},
|
|
219
|
+
`]:{paddingInlineEnd:t},[`&-affix-wrapper${r}-affix-wrapper`]:{padding:0,[`> textarea${r}`]:{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"}},[`${r}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${r}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${i}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${r}-affix-wrapper-rtl`]:{[`${r}-suffix`]:{[`${r}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${r}-affix-wrapper-sm`]:{[`${r}-suffix`]:{[`${r}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Kw=Zn(["Input","TextArea"],e=>{const r=or(e,uu(e));return Ww(r)},cu,{resetFont:!1});var Gw=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};const Yw=U.forwardRef((e,r)=>{var t;const{prefixCls:i,bordered:n=!0,size:o,disabled:a,status:s,allowClear:c,classNames:d,rootClassName:f,className:l,style:u,styles:h,variant:p,showCount:m,onMouseDown:v,onResize:y}=e,g=Gw(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);if(process.env.NODE_ENV!=="production"){const{deprecated:fe}=Wt("TextArea");fe(!("bordered"in e),"bordered","variant")}const{getPrefixCls:w,direction:b,allowClear:x,autoComplete:_,className:E,style:C,classNames:k,styles:O}=so("textArea"),S=I.useContext(Un),R=a??S,{status:T,hasFeedback:P,feedbackIcon:L}=I.useContext(Kn),F=yp(T,s),$=I.useRef(null);I.useImperativeHandle(r,()=>{var fe;return{resizableTextArea:(fe=$.current)===null||fe===void 0?void 0:fe.resizableTextArea,focus:ve=>{var Q,Z;hp((Z=(Q=$.current)===null||Q===void 0?void 0:Q.resizableTextArea)===null||Z===void 0?void 0:Z.textArea,ve)},blur:()=>{var ve;return(ve=$.current)===null||ve===void 0?void 0:ve.blur()}}});const z=w("input",i),H=bp(z),[D,j,A]=Rp(z,f),[M]=Kw(z,H),{compactSize:q,compactItemClassnames:B}=Jv(z,b),N=Zv(fe=>{var ve;return(ve=o??q)!==null&&ve!==void 0?ve:fe}),[V,K]=xp("textArea",p,n),W=mp(c??x),[X,re]=I.useState(!1),[oe,se]=I.useState(!1),te=fe=>{re(!0),v?.(fe);const ve=()=>{re(!1),document.removeEventListener("mouseup",ve)};document.addEventListener("mouseup",ve)},ce=fe=>{var ve,Q;if(y?.(fe),X&&typeof getComputedStyle=="function"){const Z=(Q=(ve=$.current)===null||ve===void 0?void 0:ve.nativeElement)===null||Q===void 0?void 0:Q.querySelector("textarea");Z&&getComputedStyle(Z).resize==="both"&&se(!0)}};return D(M(I.createElement(xw,Object.assign({autoComplete:_},g,{style:Object.assign(Object.assign({},C),u),styles:Object.assign(Object.assign({},O),h),disabled:R,allowClear:W,className:ye(A,H,l,f,B,E,oe&&`${z}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},d),k),{textarea:ye({[`${z}-sm`]:N==="small",[`${z}-lg`]:N==="large"},j,d?.textarea,k.textarea,X&&`${z}-mouse-active`),variant:ye({[`${z}-${V}`]:K},Nl(z,F)),affixWrapper:ye(`${z}-textarea-affix-wrapper`,{[`${z}-affix-wrapper-rtl`]:b==="rtl",[`${z}-affix-wrapper-sm`]:N==="small",[`${z}-affix-wrapper-lg`]:N==="large",[`${z}-textarea-show-count`]:m||((t=e.count)===null||t===void 0?void 0:t.show)},j)}),prefixCls:z,suffix:P&&I.createElement("span",{className:`${z}-textarea-suffix`},L),showCount:m,ref:$,onResize:ce,onMouseDown:te}))))}),Xw=(e,r,t,i)=>{const{titleMarginBottom:n,fontWeightStrong:o}=i;return{marginBottom:n,color:t,fontWeight:o,fontSize:e,lineHeight:r}},Zw=e=>{const r=[1,2,3,4,5],t={};return r.forEach(i=>{t[`
|
|
220
220
|
h${i}&,
|
|
221
221
|
div&-h${i},
|
|
222
222
|
div&-h${i} > textarea,
|
|
223
223
|
h${i}
|
|
224
|
-
`]=
|
|
224
|
+
`]=Xw(e[`fontSizeHeading${i}`],e[`lineHeightHeading${i}`],e.colorTextHeading,e)}),t},Qw=e=>{const{componentCls:r}=e;return{"a&, a":Object.assign(Object.assign({},xv(e)),{userSelect:"text",[`&[disabled], &${r}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},Jw=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:$i[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}}),eE=e=>{const{componentCls:r,paddingSM:t}=e,i=t;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(i).mul(-1).equal(),marginBottom:`calc(1em - ${Le(i)})`},[`${r}-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"}}}},tE=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),rE=()=>({"\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"}}),nE=e=>{const{componentCls:r,titleMarginTop:t}=e;return{[r]: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,[`&${r}-secondary`]:{color:e.colorTextDescription},[`&${r}-success`]:{color:e.colorSuccessText},[`&${r}-warning`]:{color:e.colorWarningText},[`&${r}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${r}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},Zw(e)),{[`
|
|
225
225
|
& + h1${r},
|
|
226
226
|
& + h2${r},
|
|
227
227
|
& + h3${r},
|
|
228
228
|
& + h4${r},
|
|
229
229
|
& + h5${r}
|
|
230
|
-
`]:{marginTop:t},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:t}}}),
|
|
230
|
+
`]:{marginTop:t},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:t}}}),Jw(e)),Qw(e)),{[`
|
|
231
231
|
${r}-expand,
|
|
232
232
|
${r}-collapse,
|
|
233
233
|
${r}-edit,
|
|
234
234
|
${r}-copy
|
|
235
|
-
`]:Object.assign(Object.assign({},bv(e)),{marginInlineStart:e.marginXXS})}),Jw(e)),eE(e)),tE()),{"&-rtl":{direction:"rtl"}})}},nE=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Rp=Zn("Typography",rE,nE),iE=e=>{const{prefixCls:r,"aria-label":t,className:i,style:n,direction:o,maxLength:a,autoSize:s=!0,value:c,onSave:d,onCancel:f,onEnd:l,component:u,enterIcon:h=I.createElement(fp,null)}=e,p=I.useRef(null),m=I.useRef(!1),v=I.useRef(null),[y,g]=I.useState(c);I.useEffect(()=>{g(c)},[c]),I.useEffect(()=>{var k;if(!((k=p.current)===null||k===void 0)&&k.resizableTextArea){const{textArea:L}=p.current.resizableTextArea;L.focus();const{length:F}=L.value;L.setSelectionRange(F,F)}},[]);const w=({target:k})=>{g(k.value.replace(/[\n\r]/g,""))},b=()=>{m.current=!0},x=()=>{m.current=!1},_=({keyCode:k})=>{m.current||(v.current=k)},E=()=>{d(y.trim())},C=({keyCode:k,ctrlKey:L,altKey:F,metaKey:$,shiftKey:z})=>{v.current!==k||m.current||L||F||$||z||(k===Id.ENTER?(E(),l?.()):k===Id.ESC&&f())},P=()=>{E()},[O,S,R]=Rp(r),T=ye(r,`${r}-edit-content`,{[`${r}-rtl`]:o==="rtl",[`${r}-${u}`]:!!u},i,S,R);return O(I.createElement("div",{className:T,style:n},I.createElement(Gw,{ref:p,maxLength:a,value:y,onChange:w,onKeyDown:_,onKeyUp:C,onCompositionStart:b,onCompositionEnd:x,onBlur:P,"aria-label":t,rows:1,autoSize:s}),h!==null?rp(h,{className:`${r}-edit-content-confirm`}):null))};var js,Vd;function oE(){return Vd||(Vd=1,js=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var r=document.activeElement,t=[],i=0;i<e.rangeCount;i++)t.push(e.getRangeAt(i));switch(r.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":r.blur();break;default:r=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||t.forEach(function(n){e.addRange(n)}),r&&r.focus()}}),js}var Ns,Hd;function aE(){if(Hd)return Ns;Hd=1;var e=oE(),r={"text/plain":"Text","text/html":"Url",default:"Text"},t="Copy to clipboard: #{key}, Enter";function i(o){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,a)}function n(o,a){var s,c,d,f,l,u,h=!1;a||(a={}),s=a.debug||!1;try{d=e(),f=document.createRange(),l=document.getSelection(),u=document.createElement("span"),u.textContent=o,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(m){if(m.stopPropagation(),a.format)if(m.preventDefault(),typeof m.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var v=r[a.format]||r.default;window.clipboardData.setData(v,o)}else m.clipboardData.clearData(),m.clipboardData.setData(a.format,o);a.onCopy&&(m.preventDefault(),a.onCopy(m.clipboardData))}),document.body.appendChild(u),f.selectNodeContents(u),l.addRange(f);var p=document.execCommand("copy");if(!p)throw new Error("copy command was unsuccessful");h=!0}catch(m){s&&console.error("unable to copy using execCommand: ",m),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",o),a.onCopy&&a.onCopy(window.clipboardData),h=!0}catch(v){s&&console.error("unable to copy using clipboardData: ",v),s&&console.error("falling back to prompt"),c=i("message"in a?a.message:t),window.prompt(c,o)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(f):l.removeAllRanges()),u&&document.body.removeChild(u),d()}return h}return Ns=n,Ns}var sE=aE();const lE=er.getDefaultExportFromCjs(sE),uE=(e,r=!1)=>r&&e==null?[]:Array.isArray(e)?e:[e];var cE=function(e,r,t,i){function n(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(f){try{d(i.next(f))}catch(l){a(l)}}function c(f){try{d(i.throw(f))}catch(l){a(l)}}function d(f){f.done?o(f.value):n(f.value).then(s,c)}d((i=i.apply(e,r||[])).next())})};const fE=({copyConfig:e,children:r})=>{const[t,i]=I.useState(!1),[n,o]=I.useState(!1),a=I.useRef(null),s=()=>{a.current&&clearTimeout(a.current)},c={};e.format&&(c.format=e.format),I.useEffect(()=>s,[]);const d=vt(f=>cE(void 0,void 0,void 0,function*(){var l;f?.preventDefault(),f?.stopPropagation(),o(!0);try{const u=typeof e.text=="function"?yield e.text():e.text;lE(u||uE(r,!0).join("")||"",c),o(!1),i(!0),s(),a.current=setTimeout(()=>{i(!1)},3e3),(l=e.onCopy)===null||l===void 0||l.call(e,f)}catch(u){throw o(!1),u}}));return{copied:t,copyLoading:n,onClick:d}};function Ms(e,r){return I.useMemo(()=>{const t=!!e;return[t,Object.assign(Object.assign({},r),t&&typeof e=="object"?e:null)]},[e])}const dE=e=>{const r=U.useRef(void 0);return U.useEffect(()=>{r.current=e}),r.current},hE=(e,r,t)=>U.useMemo(()=>e===!0?{title:r??t}:U.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:r??t},e):{title:e},[e,r,t]);var vE=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};const Ap=I.forwardRef((e,r)=>{const{prefixCls:t,component:i="article",className:n,rootClassName:o,setContentRef:a,children:s,direction:c,style:d}=e,f=vE(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:l,direction:u,className:h,style:p}=ao("typography"),m=c??u,v=a?Gn(r,a):r,y=l("typography",t);process.env.NODE_ENV!=="production"&&Wt("Typography").deprecated(!a,"setContentRef","ref");const[g,w,b]=Rp(y),x=ye(y,h,{[`${y}-rtl`]:m==="rtl"},n,o,w,b),_=Object.assign(Object.assign({},p),d);return g(I.createElement(i,Object.assign({className:x,style:_,ref:v},f),s))});process.env.NODE_ENV!=="production"&&(Ap.displayName="Typography");var pE={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"},gE=function(r,t){return I.createElement(ir,qe({},r,{ref:t,icon:pE}))},Tp=I.forwardRef(gE);process.env.NODE_ENV!=="production"&&(Tp.displayName="CheckOutlined");var mE={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"},yE=function(r,t){return I.createElement(ir,qe({},r,{ref:t,icon:mE}))},Pp=I.forwardRef(yE);process.env.NODE_ENV!=="production"&&(Pp.displayName="CopyOutlined");var bE={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"},xE=function(r,t){return I.createElement(ir,qe({},r,{ref:t,icon:bE}))},kp=I.forwardRef(xE);process.env.NODE_ENV!=="production"&&(kp.displayName="LoadingOutlined");function zd(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Is(e,r,t){return e===!0||e===void 0?r:e||t&&r}function wE(e){const r=document.createElement("em");e.appendChild(r),process.env.NODE_ENV!=="production"&&(r.className="ant-typography-css-ellipsis-content-measure");const t=e.getBoundingClientRect(),i=r.getBoundingClientRect();return e.removeChild(r),t.left>i.left||i.right>t.right||t.top>i.top||i.bottom>t.bottom}const cu=e=>["string","number"].includes(typeof e),EE=({prefixCls:e,copied:r,locale:t,iconOnly:i,tooltips:n,icon:o,tabIndex:a,onCopy:s,loading:c})=>{const d=zd(n),f=zd(o),{copied:l,copy:u}=t??{},h=r?l:u,p=Is(d[r?1:0],h),m=typeof p=="string"?p:h;return I.createElement(ri,{title:p,getPopupContainer:v=>v.parentNode},I.createElement("button",{type:"button",className:ye(`${e}-copy`,{[`${e}-copy-success`]:r,[`${e}-copy-icon-only`]:i}),onClick:s,"aria-label":m,tabIndex:a},r?Is(f[1],I.createElement(Tp,null),!0):Is(f[0],c?I.createElement(kp,null):I.createElement(Pp,null),!0)))},Oi=I.forwardRef(({style:e,children:r},t)=>{const i=I.useRef(null);return I.useImperativeHandle(t,()=>({isExceed:()=>{const n=i.current;return n.scrollHeight>n.clientHeight},getHeight:()=>i.current.clientHeight})),I.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},r)}),_E=e=>e.reduce((r,t)=>r+(cu(t)?String(t).length:1),0);function Ud(e,r){let t=0;const i=[];for(let n=0;n<e.length;n+=1){if(t===r)return i;const o=e[n],s=cu(o)?String(o).length:1,c=t+s;if(c>r){const d=r-t;return i.push(String(o).slice(0,d)),i}i.push(o),t=c}return e}const Ls=0,$s=1,Fs=2,Ds=3,Wd=4,Ri={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function SE(e){const{enableMeasure:r,width:t,text:i,children:n,rows:o,expanded:a,miscDeps:s,onEllipsis:c}=e,d=I.useMemo(()=>Gr(i),[i]),f=I.useMemo(()=>_E(d),[i]),l=I.useMemo(()=>n(d,!1),[i]),[u,h]=I.useState(null),p=I.useRef(null),m=I.useRef(null),v=I.useRef(null),y=I.useRef(null),g=I.useRef(null),[w,b]=I.useState(!1),[x,_]=I.useState(Ls),[E,C]=I.useState(0),[P,O]=I.useState(null);Ue(()=>{_(r&&t&&f?$s:Ls)},[t,i,o,r,d]),Ue(()=>{var k,L,F,$;if(x===$s){_(Fs);const z=m.current&&getComputedStyle(m.current).whiteSpace;O(z)}else if(x===Fs){const z=!!(!((k=v.current)===null||k===void 0)&&k.isExceed());_(z?Ds:Wd),h(z?[0,f]:null),b(z);const H=((L=v.current)===null||L===void 0?void 0:L.getHeight())||0,D=o===1?0:((F=y.current)===null||F===void 0?void 0:F.getHeight())||0,j=(($=g.current)===null||$===void 0?void 0:$.getHeight())||0,A=Math.max(H,D+j);C(A+1),c(z)}},[x]);const S=u?Math.ceil((u[0]+u[1])/2):0;Ue(()=>{var k;const[L,F]=u||[0,0];if(L!==F){const z=(((k=p.current)===null||k===void 0?void 0:k.getHeight())||0)>E;let H=S;F-L===1&&(H=z?L:F),h(z?[L,H]:[H,F])}},[u,S]);const R=I.useMemo(()=>{if(!r)return n(d,!1);if(x!==Ds||!u||u[0]!==u[1]){const k=n(d,!1);return[Wd,Ls].includes(x)?k:I.createElement("span",{style:Object.assign(Object.assign({},Ri),{WebkitLineClamp:o})},k)}return n(a?d:Ud(d,u[0]),w)},[a,x,u,d].concat(me(s))),T={width:t,margin:0,padding:0,whiteSpace:P==="nowrap"?"normal":"inherit"};return I.createElement(I.Fragment,null,R,x===Fs&&I.createElement(I.Fragment,null,I.createElement(Oi,{style:Object.assign(Object.assign(Object.assign({},T),Ri),{WebkitLineClamp:o}),ref:v},l),I.createElement(Oi,{style:Object.assign(Object.assign(Object.assign({},T),Ri),{WebkitLineClamp:o-1}),ref:y},l),I.createElement(Oi,{style:Object.assign(Object.assign(Object.assign({},T),Ri),{WebkitLineClamp:1}),ref:g},n([],!0))),x===Ds&&u&&u[0]!==u[1]&&I.createElement(Oi,{style:Object.assign(Object.assign({},T),{top:400}),ref:p},n(Ud(d,S),!0)),x===$s&&I.createElement("span",{style:{whiteSpace:"inherit"},ref:m}))}const jp=({enableEllipsis:e,isEllipsis:r,children:t,tooltipProps:i})=>!i?.title||!e?t:I.createElement(ri,Object.assign({open:r?void 0:!1},i),t);process.env.NODE_ENV!=="production"&&(jp.displayName="EllipsisTooltip");var CE=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};function OE({mark:e,code:r,underline:t,delete:i,strong:n,keyboard:o,italic:a},s){let c=s;function d(f,l){l&&(c=I.createElement(f,{},c))}return d("strong",n),d("u",t),d("del",i),d("code",r),d("mark",e),d("kbd",o),d("i",a),c}const RE="...",Kd=["delete","mark","code","underline","strong","keyboard","italic"],AE=I.forwardRef((e,r)=>{var t;const{prefixCls:i,className:n,style:o,type:a,disabled:s,children:c,ellipsis:d,editable:f,copyable:l,component:u,title:h}=e,p=CE(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:m,direction:v}=I.useContext(Kt),[y]=cb("Text"),g=I.useRef(null),w=I.useRef(null),b=m("typography",i),x=Fh(p,Kd),[_,E]=Ms(f),[C,P]=Rr(!1,{value:E.editing}),{triggerType:O=["icon"]}=E,S=ge=>{var xe;ge&&((xe=E.onStart)===null||xe===void 0||xe.call(E)),P(ge)},R=dE(C);Ue(()=>{var ge;!C&&R&&((ge=w.current)===null||ge===void 0||ge.focus())},[C]);const T=ge=>{ge?.preventDefault(),S(!0)},k=ge=>{var xe;(xe=E.onChange)===null||xe===void 0||xe.call(E,ge),S(!1)},L=()=>{var ge;(ge=E.onCancel)===null||ge===void 0||ge.call(E),S(!1)},[F,$]=Ms(l),{copied:z,copyLoading:H,onClick:D}=fE({copyConfig:$,children:c}),[j,A]=I.useState(!1),[M,q]=I.useState(!1),[B,N]=I.useState(!1),[V,K]=I.useState(!1),[W,X]=I.useState(!0),[re,oe]=Ms(d,{expandable:!1,symbol:ge=>ge?y?.collapse:y?.expand}),[se,te]=Rr(oe.defaultExpanded||!1,{value:oe.expanded}),ce=re&&(!se||oe.expandable==="collapsible"),{rows:fe=1}=oe,ve=I.useMemo(()=>ce&&(oe.suffix!==void 0||oe.onEllipsis||oe.expandable||_||F),[ce,oe,_,F]);Ue(()=>{re&&!ve&&(A(Mf("webkitLineClamp")),q(Mf("textOverflow")))},[ve,re]);const[Q,Z]=I.useState(ce),ae=I.useMemo(()=>ve?!1:fe===1?M:j,[ve,M,j]);Ue(()=>{Z(ae&&ce)},[ae,ce]);const ie=ce&&(Q?V:B),ee=ce&&fe===1&&Q,ue=ce&&fe>1&&Q,ne=(ge,xe)=>{var Ge;te(xe.expanded),(Ge=oe.onExpand)===null||Ge===void 0||Ge.call(oe,ge,xe)},[de,Se]=I.useState(0),Me=({offsetWidth:ge})=>{Se(ge)},be=ge=>{var xe;N(ge),B!==ge&&((xe=oe.onEllipsis)===null||xe===void 0||xe.call(oe,ge))};I.useEffect(()=>{const ge=g.current;if(re&&Q&&ge){const xe=wE(ge);V!==xe&&K(xe)}},[re,Q,c,ue,W,de]),I.useEffect(()=>{const ge=g.current;if(typeof IntersectionObserver>"u"||!ge||!Q||!ce)return;const xe=new IntersectionObserver(()=>{X(!!ge.offsetParent)});return xe.observe(ge),()=>{xe.disconnect()}},[Q,ce]);const De=hE(oe.tooltip,E.text,c),Ce=I.useMemo(()=>{if(!(!re||Q))return[E.text,c,h,De.title].find(cu)},[re,Q,h,De.title,ie]);if(C)return I.createElement(iE,{value:(t=E.text)!==null&&t!==void 0?t:typeof c=="string"?c:"",onSave:k,onCancel:L,onEnd:E.onEnd,prefixCls:b,className:n,style:o,direction:v,component:u,maxLength:E.maxLength,autoSize:E.autoSize,enterIcon:E.enterIcon});const Re=()=>{const{expandable:ge,symbol:xe}=oe;return ge?I.createElement("button",{type:"button",key:"expand",className:`${b}-${se?"collapse":"expand"}`,onClick:Ge=>ne(Ge,{expanded:!se}),"aria-label":se?y.collapse:y?.expand},typeof xe=="function"?xe(se):xe):null},Pe=()=>{if(!_)return;const{icon:ge,tooltip:xe,tabIndex:Ge}=E,Gt=Gr(xe)[0]||y?.edit,yr=typeof Gt=="string"?Gt:"";return O.includes("icon")?I.createElement(ri,{key:"edit",title:xe===!1?"":Gt},I.createElement("button",{type:"button",ref:w,className:`${b}-edit`,onClick:T,"aria-label":yr,tabIndex:Ge},ge||I.createElement(Rh,{role:"button"}))):null},Te=()=>F?I.createElement(EE,Object.assign({key:"copy"},$,{prefixCls:b,copied:z,locale:y,onCopy:D,loading:H,iconOnly:c==null})):null,_e=ge=>[ge&&Re(),Pe(),Te()],Be=ge=>[ge&&!se&&I.createElement("span",{"aria-hidden":!0,key:"ellipsis"},RE),oe.suffix,_e(ge)];return I.createElement(an,{onResize:Me,disabled:!ce},ge=>I.createElement(jp,{tooltipProps:De,enableEllipsis:ce,isEllipsis:ie},I.createElement(Ap,Object.assign({className:ye({[`${b}-${a}`]:a,[`${b}-disabled`]:s,[`${b}-ellipsis`]:re,[`${b}-ellipsis-single-line`]:ee,[`${b}-ellipsis-multiple-line`]:ue},n),prefixCls:i,style:Object.assign(Object.assign({},o),{WebkitLineClamp:ue?fe:void 0}),component:u,ref:Gn(ge,g,r),direction:v,onClick:O.includes("text")?T:void 0,"aria-label":Ce?.toString(),title:h},x),I.createElement(SE,{enableMeasure:ce&&!Q,text:c,rows:fe,width:de,onEllipsis:be,expanded:se,miscDeps:[z,se,H,_,F,y].concat(me(Kd.map(xe=>e[xe])))},(xe,Ge)=>OE(e,I.createElement(I.Fragment,null,xe.length>0&&Ge&&!se&&Ce?I.createElement("span",{key:"show-content","aria-hidden":!0},xe):xe,Be(Ge)))))))}),TE=I.forwardRef((e,r)=>I.createElement(AE,Object.assign({ref:r},e,{component:"div"}))),PE=({reqRows:e,subRows:r})=>{const{searchBoxRef:t}=Nl.useSearchBox();return Y.jsxRuntimeExports.jsx(Il,{ref:t,reqRows:e,subRows:r})},kE=({children:e,searchBox:r,title:t,preRenderEvents:i=[],postRenderEvents:n=[],loading:o=!1,error:a=null,grantEvent:s={},customEvent:c={}})=>{const d=Nl.useServiceCodeValue("AUTH_BTNS"),{user:f,isLoggedIn:l}=mt.useUserStore(),{activeMenuItem:u}=mt.useMenuViewStore(),{isFavorite:h,addFavorite:p,removeFavorite:m}=Ip.useFavoriteStore(),{loading:v}=mt.useLoadingStore(),[y,g]=U.useState({isInitialized:!1,isReady:!1,error:null,loading:!0,preRenderComplete:!1,postRenderComplete:!1}),[w,b]=U.useState(null),[x,_]=U.useState([]),[E,C]=U.useState([]),P=async()=>{if(i.length===0){g($=>({...$,preRenderComplete:!0}));return}try{for(const $ of i)await $();g($=>({...$,preRenderComplete:!0}))}catch($){g(z=>({...z,error:$ instanceof Error?$.message:"사전 렌더링 실패",preRenderComplete:!0}))}},O=async()=>{if(n.length===0){g($=>({...$,postRenderComplete:!0}));return}try{for(const $ of n)await $();g($=>({...$,postRenderComplete:!0}))}catch($){g(z=>({...z,error:$ instanceof Error?$.message:"사후 렌더링 실패",postRenderComplete:!0}))}};U.useEffect(()=>{if(y.isInitialized)return;(async()=>{try{try{console.log("SCMSIGN00202 권한 서비스 호출 시작");const z=await mt.callService(d,{crprCd:f?.crprCd,userId:f?.userId,menuId:u?.menuId});if(console.log("SCMSIGN00202 권한 서비스 응답:",z),z?.data&&z.data.length>0){const H=z.data?.filter(j=>j.grpId?.toUpperCase()==="DEFAULT").map(j=>({id:j.btnId,label:j.btnNm,type:"default",disabled:!1,onClick:s[j.btnId]||void 0}))||[];_(H);const D=z.data?.filter(j=>j.grpId?.toUpperCase()==="CUSTOM").map(j=>({id:j.btnId,label:j.btnNm,type:"default",disabled:!1,onClick:c[j.btnId]||void 0}))||[];C(D)}else _([]),C([])}catch(z){console.error("SCMSIGN00202 권한 서비스 호출 실패:",z),_([]),C([])}await P(),g(z=>({...z,isInitialized:!0,loading:!1}))}catch(z){console.error("BwgView 초기화 실패:",z),g(H=>({...H,isInitialized:!0,loading:!1}))}})()},[]),U.useEffect(()=>{y.isInitialized&&y.preRenderComplete&&!y.isReady&&setTimeout(async()=>{await O(),g(z=>({...z,isReady:!0}))},100)},[y.isInitialized,y.preRenderComplete,y.isReady]),U.useEffect(()=>{a&&g($=>({...$,error:a}))},[a]);const S=()=>Y.jsxRuntimeExports.jsxs("div",{className:"bwgview-header-container",children:[Y.jsxRuntimeExports.jsxs("div",{className:"bwgview-header",children:[Y.jsxRuntimeExports.jsx("div",{className:"bwgview-header-left",children:F.LEFT}),Y.jsxRuntimeExports.jsx("div",{className:"bwgview-header-right",children:F.RIGHT})]}),r&&Y.jsxRuntimeExports.jsx(PE,{reqRows:r.reqRows,subRows:r.subRows})]});if(U.useEffect(()=>{},[f,u]),y.error||a)return Y.jsxRuntimeExports.jsx("div",{style:{padding:"24px"},children:Y.jsxRuntimeExports.jsx(he.Alert,{message:"오류 발생",description:y.error||a,type:"error",showIcon:!0})});const R=()=>Y.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:Y.jsxRuntimeExports.jsx("path",{d:"M9.9348 1.4645C10.2382 0.845167 10.7437 0.845167 11.0597 1.4645L13.0694 5.5344C13.3727 6.15374 14.1943 6.74779 14.8768 6.84891L19.3638 7.50616C20.0464 7.60727 20.2107 8.08757 19.7051 8.56787L16.4568 11.7277C15.9638 12.208 15.6478 13.1686 15.7616 13.8512L16.5326 18.3129C16.6464 18.9954 16.2419 19.2988 15.6226 18.9701L11.6159 16.8594C10.9965 16.5307 9.998 16.5307 9.37867 16.8594L5.37196 18.9701C4.75263 19.2988 4.34817 18.9954 4.46192 18.3129L5.23293 13.8512C5.34668 13.1686 5.04334 12.208 4.53776 11.7277L1.28942 8.56787C0.79648 8.08757 0.948154 7.60727 1.63068 7.50616L6.11769 6.84891C6.80022 6.74779 7.62179 6.15374 7.92513 5.5344L9.9348 1.4645Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10"})}),T=()=>Y.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:Y.jsxRuntimeExports.jsx("path",{d:"M9.9348 1.4645C10.2382 0.845167 10.7437 0.845167 11.0597 1.4645L13.0694 5.5344C13.3727 6.15374 14.1943 6.74779 14.8768 6.84891L19.3638 7.50616C20.0464 7.60727 20.2107 8.08757 19.7051 8.56787L16.4568 11.7277C15.9638 12.208 15.6478 13.1686 15.7616 13.8512L16.5326 18.3129C16.6464 18.9954 16.2419 19.2988 15.6226 18.9701L11.6159 16.8594C10.9965 16.5307 9.998 16.5307 9.37867 16.8594L5.37196 18.9701C4.75263 19.2988 4.34817 18.9954 4.46192 18.3129L5.23293 13.8512C5.34668 13.1686 5.04334 12.208 4.53776 11.7277L1.28942 8.56787C0.79648 8.08757 0.948154 7.60727 1.63068 7.50616L6.11769 6.84891C6.80022 6.74779 7.62178 6.15374 7.92513 5.5344L9.9348 1.4645Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",fill:"none"})}),k=$=>Y.jsxRuntimeExports.jsx(ft,{component:R,...$}),L=$=>Y.jsxRuntimeExports.jsx(ft,{component:T,...$}),F={LEFT:Y.jsxRuntimeExports.jsx("div",{className:"bwgview-header-left",children:Y.jsxRuntimeExports.jsxs(he.ConfigProvider,{theme:{components:{Tag:{controlHeight:28,controlHeightLG:28,controlHeightSM:28,controlHeightXS:28}}},children:[Y.jsxRuntimeExports.jsxs(he.Space,{children:[u&&(h(u.menuId)?Y.jsxRuntimeExports.jsx(k,{className:"bookmark-icon",style:{color:"#faad14"},onClick:async()=>{try{await m(u.menuId,f?.userId||"")}catch{}}}):Y.jsxRuntimeExports.jsx(L,{className:"bookmark-icon",onClick:async()=>{try{await p(u,f?.userId||"")}catch{}}})),Y.jsxRuntimeExports.jsxs(he.Space.Compact,{style:{alignItems:"center"},children:[Y.jsxRuntimeExports.jsx("span",{className:"pageMenuNm",children:(()=>{let $="";return t?.useMenuTitle&&u?$=u.menuNm:t?.text?$=t.text:u&&($=u.menuPrntId==="CM00"?u.menuNm.substring(u.menuNm.indexOf(" ")+1):u.menuNm),t?.prefix&&($=`${t.prefix} ${$}`),t?.suffix&&($=`${$} ${t.suffix}`),$})()}),u?.menuNo&&Y.jsxRuntimeExports.jsx(he.Tag,{className:"page-num-tag",children:u?.menuNo}),Y.jsxRuntimeExports.jsx(he.Tooltip,{title:"도움말",color:"geekblue",children:Y.jsxRuntimeExports.jsx(he.Button,{variant:"text",type:"text",className:"menu-help-btn",icon:Y.jsxRuntimeExports.jsx("span",{className:"bwgHelpIcon"})})})]})]}),u?.scrnId&&$p.isLocal&&Y.jsxRuntimeExports.jsx(he.Tag,{style:{marginLeft:8,fontSize:13,fontWeight:500,display:"flex"},children:Y.jsxRuntimeExports.jsx(TE,{copyable:!0,style:{display:"inherit",justifyContent:"center",alignItems:"center",marginBottom:0},children:u?.scrnId})})]})}),RIGHT:Y.jsxRuntimeExports.jsx("div",{className:"bwgview-header-right",children:Y.jsxRuntimeExports.jsx(he.ConfigProvider,{theme:{components:{Space:{padding:8}}},children:Y.jsxRuntimeExports.jsxs(he.Space,{children:[Y.jsxRuntimeExports.jsx(he.Flex,{gap:8,children:E.map($=>Y.jsxRuntimeExports.jsx(he.Button,{type:$.type,disabled:$.disabled,className:"bwg-btn",onClick:()=>{typeof $.onClick=="function"&&$.onClick()},children:$.label},$.id))}),Y.jsxRuntimeExports.jsx(he.ConfigProvider,{theme:{components:{Divider:{verticalMarginInline:0}}},children:Y.jsxRuntimeExports.jsx(he.Divider,{type:"vertical"})}),Y.jsxRuntimeExports.jsx(he.Flex,{gap:8,className:"permission-buttons",children:x.length>0?x.map($=>Y.jsxRuntimeExports.jsx(he.Button,{type:$.type,disabled:$.disabled,className:"bwg-btn",onClick:()=>{typeof $.onClick=="function"&&$.onClick()},children:$.label},$.id)):Y.jsxRuntimeExports.jsx(he.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})})]})})})};return Y.jsxRuntimeExports.jsxs("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:[S(),Y.jsxRuntimeExports.jsxs("div",{className:"bwgview-content",children:[Y.jsxRuntimeExports.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:e}),(y.loading||o||v)&&Y.jsxRuntimeExports.jsx(Lp.LoadingOverlay,{text:v?"처리 중...":"화면 로드 중..."})]})]})},Np=({width:e="100%",height:r="100%",boxAlign:t,display:i="show",overflow:n,style:o,className:a,border:s=!0,children:c,ref:d})=>Y.jsxRuntimeExports.jsx("div",{style:{width:e,height:r,display:i==="show"?"":i,overflowX:n?.x,overflowY:n?.y,...o},className:`bwgview-content-box ${t?`content-box-${t}`:""} ${a||""} ${s?"":"none-box-st"}`,ref:d,children:c}),jE=({children:e,customTheme:r,customComponentSize:t="middle"})=>{const i={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:he.theme.defaultAlgorithm},n={...i,...r,token:{...i.token,...r?.token}};return Y.jsxRuntimeExports.jsx(he.ConfigProvider,{locale:Qd,theme:n,componentSize:t,space:{size:t},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},children:e})},NE="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",ME="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",IE="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",LE=({children:e})=>{const[r,t]=U.useState({x:0,y:0}),[i,n]=U.useState(!1),[o,a]=U.useState({x:0,y:0}),[s,c]=U.useState(!1),[d,f]=U.useState(!0),l=U.useRef(null),u=[{id:"overtime",title:"시간 외 근무신청",icon:Y.jsxRuntimeExports.jsx("img",{src:NE,alt:"시간외근무신청",className:"quick-overtime"}),color:"#722ed1",onClick:()=>{console.log("시간 외 근무 신청 클릭")}},{id:"business-trip",title:"출장신청",icon:Y.jsxRuntimeExports.jsx("img",{src:ME,alt:"출장신청",className:"quick-business-trip"}),color:"#1890ff",onClick:()=>{console.log("출장 신청 클릭")}},{id:"vacation",title:"휴가신청",icon:Y.jsxRuntimeExports.jsx("img",{src:IE,alt:"휴가신청",className:"quick-holiday"}),color:"#eb2f96",onClick:()=>{console.log("휴가 신청 클릭")}},{id:"document",title:"문서신청",icon:Y.jsxRuntimeExports.jsx(ft.FileTextOutlined,{}),color:"#52c41a",onClick:()=>{console.log("문서 신청 클릭")}},{id:"profile",title:"인사정보",icon:Y.jsxRuntimeExports.jsx(ft.UserOutlined,{}),color:"#fa8c16",onClick:()=>{console.log("인사 정보 클릭")}},{id:"settings",title:"설정",icon:Y.jsxRuntimeExports.jsx(ft.SettingOutlined,{}),color:"#13c2c2",onClick:()=>{console.log("설정 클릭")}}];U.useEffect(()=>{const g=()=>{const w=window.innerHeight,x=Math.max(64,(w-300)/3);t({x:0,y:x});const _=w/2;f(x<_)};return g(),window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)},[]);const h=g=>{if(g.preventDefault(),g.stopPropagation(),l.current){const w=l.current.getBoundingClientRect();a({x:g.clientX-w.left,y:g.clientY-w.top}),n(!0)}},p=g=>{if(i){const w=g.clientY-o.y,b=window.innerHeight-24,_=Math.max(64,Math.min(b,w));t({x:r.x,y:_});const E=window.innerHeight/2;f(_<E)}},m=()=>{n(!1)},v=()=>{c(!s)},y=g=>{g.onClick&&g.onClick()};return U.useEffect(()=>{if(i)return document.addEventListener("mousemove",p),document.addEventListener("mouseup",m),()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",m)}},[i,o]),Y.jsxRuntimeExports.jsxs("div",{className:"quick-tab-container",ref:l,style:{position:"fixed",right:0,top:r.y,zIndex:1e3,userSelect:"none",touchAction:"none"},children:[Y.jsxRuntimeExports.jsxs("div",{className:"quick-tab",style:{position:"absolute",right:"40px",top:d?0:"auto",bottom:d?"auto":0,display:"flex",flexDirection:"column",gap:"15px",border:"1px solid #E0DEEF",borderRadius:"15px",padding:"8px",boxShadow:"0 0 10px rgba(0, 0, 0, 0.3)",minWidth:"88px",maxWidth:"88px",maxHeight:d?`calc(100vh - ${r.y+12}px)`:`${r.y-12}px`,transform:s?"translateX(0)":"translateX(calc(100% + 100px))",transition:"transform 0.3s ease",marginTop:d&&r.y<100?"32px":"0",marginBottom:!d&&r.y>window.innerHeight-100?"8px":"0"},children:[Y.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-wrap",style:{background:"#ffffff",borderRadius:"10px",flex:1,overflowY:"auto",maxHeight:d?`calc(100vh - ${r.y+120}px)`:`${r.y-60}px`,padding:"14px 0"},children:u.map(g=>Y.jsxRuntimeExports.jsx(he.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:()=>y(g),onMouseEnter:w=>{},onMouseLeave:w=>{},children:Y.jsxRuntimeExports.jsxs("div",{className:"quick-tab-item-inner",children:[Y.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-icon",style:{width:"44px",height:"44px",borderRadius:"8PX",fontSize:"24px",color:g.color,marginBottom:"5px"},children:g.icon}),Y.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-title",children:g.title})]})},g.id))}),Y.jsxRuntimeExports.jsx("div",{className:"quick-tab-add-btn",style:{height:"30px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease",flexShrink:0,marginBottom:"7px"},onMouseEnter:g=>{},onMouseLeave:g=>{},children:Y.jsxRuntimeExports.jsx(ft.PlusOutlined,{style:{color:"#CDC4FF",fontSize:"15px"}})})]}),Y.jsxRuntimeExports.jsx("div",{className:"quick-tab-drag-btn",style:{cursor:i?"grabbing":"grab",zIndex:1001},onMouseDown:h}),Y.jsxRuntimeExports.jsx(he.Button,{className:`quick-tab-toggle-btn ${s?"expanded":""}`,type:"default",style:{border:"0",backgroundColor:"transparent"},onClick:v})]})},$E=()=>{const{verifyWithToken:e}=Fp.useAuth(),r=hu.useNavigate(),t=hu.useLocation();return U.useEffect(()=>{const n=new URLSearchParams(t.search).get("token");if(!n){r("/login",{replace:!0});return}(async()=>{const o=await e(n);r(o?"/main":"/login",{replace:!0})})()},[t.search]),Y.jsxRuntimeExports.jsx("div",{style:{display:"grid",placeItems:"center",height:"100dvh"},children:Y.jsxRuntimeExports.jsx(he.Spin,{tip:"인증중..."})})};exports.BwgButtonGroup=Dp;exports.BwgCmptArea=qp;exports.BwgCol=Bp;exports.BwgConfigProvider=Jd;exports.BwgDetail=Jp;exports.BwgDrawer=eg;exports.BwgGrid=jm;exports.BwgInfoArea=Mm;exports.BwgPopup=Lm;exports.BwgRow=$m;exports.BwgTable=Fm;exports.BwgTabs=Dm;exports.BwgTitleBox=Ml;exports.BwgView=kE;exports.ContentBox=Np;exports.ContentLayOut=eo;exports.EditorBoxRef=_m;exports.GlobalConfigProvider=jE;exports.QuickServiceToggle=LE;exports.SSOHandler=$E;exports.SearchBox=Il;exports.createBwgGridRenderer=Nm;
|
|
236
|
-
//# sourceMappingURL=SSOHandler-
|
|
235
|
+
`]:Object.assign(Object.assign({},xv(e)),{marginInlineStart:e.marginXXS})}),eE(e)),tE(e)),rE()),{"&-rtl":{direction:"rtl"}})}},iE=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Ap=Zn("Typography",nE,iE),oE=e=>{const{prefixCls:r,"aria-label":t,className:i,style:n,direction:o,maxLength:a,autoSize:s=!0,value:c,onSave:d,onCancel:f,onEnd:l,component:u,enterIcon:h=I.createElement(dp,null)}=e,p=I.useRef(null),m=I.useRef(!1),v=I.useRef(null),[y,g]=I.useState(c);I.useEffect(()=>{g(c)},[c]),I.useEffect(()=>{var P;if(!((P=p.current)===null||P===void 0)&&P.resizableTextArea){const{textArea:L}=p.current.resizableTextArea;L.focus();const{length:F}=L.value;L.setSelectionRange(F,F)}},[]);const w=({target:P})=>{g(P.value.replace(/[\n\r]/g,""))},b=()=>{m.current=!0},x=()=>{m.current=!1},_=({keyCode:P})=>{m.current||(v.current=P)},E=()=>{d(y.trim())},C=({keyCode:P,ctrlKey:L,altKey:F,metaKey:$,shiftKey:z})=>{v.current!==P||m.current||L||F||$||z||(P===$d.ENTER?(E(),l?.()):P===$d.ESC&&f())},k=()=>{E()},[O,S,R]=Ap(r),T=ye(r,`${r}-edit-content`,{[`${r}-rtl`]:o==="rtl",[`${r}-${u}`]:!!u},i,S,R);return O(I.createElement("div",{className:T,style:n},I.createElement(Yw,{ref:p,maxLength:a,value:y,onChange:w,onKeyDown:_,onKeyUp:C,onCompositionStart:b,onCompositionEnd:x,onBlur:k,"aria-label":t,rows:1,autoSize:s}),h!==null?np(h,{className:`${r}-edit-content-confirm`}):null))};var Ns,zd;function aE(){return zd||(zd=1,Ns=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var r=document.activeElement,t=[],i=0;i<e.rangeCount;i++)t.push(e.getRangeAt(i));switch(r.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":r.blur();break;default:r=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||t.forEach(function(n){e.addRange(n)}),r&&r.focus()}}),Ns}var Ms,Ud;function sE(){if(Ud)return Ms;Ud=1;var e=aE(),r={"text/plain":"Text","text/html":"Url",default:"Text"},t="Copy to clipboard: #{key}, Enter";function i(o){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return o.replace(/#{\s*key\s*}/g,a)}function n(o,a){var s,c,d,f,l,u,h=!1;a||(a={}),s=a.debug||!1;try{d=e(),f=document.createRange(),l=document.getSelection(),u=document.createElement("span"),u.textContent=o,u.ariaHidden="true",u.style.all="unset",u.style.position="fixed",u.style.top=0,u.style.clip="rect(0, 0, 0, 0)",u.style.whiteSpace="pre",u.style.webkitUserSelect="text",u.style.MozUserSelect="text",u.style.msUserSelect="text",u.style.userSelect="text",u.addEventListener("copy",function(m){if(m.stopPropagation(),a.format)if(m.preventDefault(),typeof m.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var v=r[a.format]||r.default;window.clipboardData.setData(v,o)}else m.clipboardData.clearData(),m.clipboardData.setData(a.format,o);a.onCopy&&(m.preventDefault(),a.onCopy(m.clipboardData))}),document.body.appendChild(u),f.selectNodeContents(u),l.addRange(f);var p=document.execCommand("copy");if(!p)throw new Error("copy command was unsuccessful");h=!0}catch(m){s&&console.error("unable to copy using execCommand: ",m),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",o),a.onCopy&&a.onCopy(window.clipboardData),h=!0}catch(v){s&&console.error("unable to copy using clipboardData: ",v),s&&console.error("falling back to prompt"),c=i("message"in a?a.message:t),window.prompt(c,o)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(f):l.removeAllRanges()),u&&document.body.removeChild(u),d()}return h}return Ms=n,Ms}var lE=sE();const uE=er.getDefaultExportFromCjs(lE),cE=(e,r=!1)=>r&&e==null?[]:Array.isArray(e)?e:[e];var fE=function(e,r,t,i){function n(o){return o instanceof t?o:new t(function(a){a(o)})}return new(t||(t=Promise))(function(o,a){function s(f){try{d(i.next(f))}catch(l){a(l)}}function c(f){try{d(i.throw(f))}catch(l){a(l)}}function d(f){f.done?o(f.value):n(f.value).then(s,c)}d((i=i.apply(e,r||[])).next())})};const dE=({copyConfig:e,children:r})=>{const[t,i]=I.useState(!1),[n,o]=I.useState(!1),a=I.useRef(null),s=()=>{a.current&&clearTimeout(a.current)},c={};e.format&&(c.format=e.format),I.useEffect(()=>s,[]);const d=vt(f=>fE(void 0,void 0,void 0,function*(){var l;f?.preventDefault(),f?.stopPropagation(),o(!0);try{const u=typeof e.text=="function"?yield e.text():e.text;uE(u||cE(r,!0).join("")||"",c),o(!1),i(!0),s(),a.current=setTimeout(()=>{i(!1)},3e3),(l=e.onCopy)===null||l===void 0||l.call(e,f)}catch(u){throw o(!1),u}}));return{copied:t,copyLoading:n,onClick:d}};function Is(e,r){return I.useMemo(()=>{const t=!!e;return[t,Object.assign(Object.assign({},r),t&&typeof e=="object"?e:null)]},[e])}const hE=e=>{const r=U.useRef(void 0);return U.useEffect(()=>{r.current=e}),r.current},vE=(e,r,t)=>U.useMemo(()=>e===!0?{title:r??t}:U.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:r??t},e):{title:e},[e,r,t]);var pE=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};const Tp=I.forwardRef((e,r)=>{const{prefixCls:t,component:i="article",className:n,rootClassName:o,setContentRef:a,children:s,direction:c,style:d}=e,f=pE(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:l,direction:u,className:h,style:p}=so("typography"),m=c??u,v=a?Gn(r,a):r,y=l("typography",t);process.env.NODE_ENV!=="production"&&Wt("Typography").deprecated(!a,"setContentRef","ref");const[g,w,b]=Ap(y),x=ye(y,h,{[`${y}-rtl`]:m==="rtl"},n,o,w,b),_=Object.assign(Object.assign({},p),d);return g(I.createElement(i,Object.assign({className:x,style:_,ref:v},f),s))});process.env.NODE_ENV!=="production"&&(Tp.displayName="Typography");var gE={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"},mE=function(r,t){return I.createElement(ir,qe({},r,{ref:t,icon:gE}))},kp=I.forwardRef(mE);process.env.NODE_ENV!=="production"&&(kp.displayName="CheckOutlined");var yE={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"},bE=function(r,t){return I.createElement(ir,qe({},r,{ref:t,icon:yE}))},Pp=I.forwardRef(bE);process.env.NODE_ENV!=="production"&&(Pp.displayName="CopyOutlined");var xE={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"},wE=function(r,t){return I.createElement(ir,qe({},r,{ref:t,icon:xE}))},jp=I.forwardRef(wE);process.env.NODE_ENV!=="production"&&(jp.displayName="LoadingOutlined");function Wd(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Ls(e,r,t){return e===!0||e===void 0?r:e||t&&r}function EE(e){const r=document.createElement("em");e.appendChild(r),process.env.NODE_ENV!=="production"&&(r.className="ant-typography-css-ellipsis-content-measure");const t=e.getBoundingClientRect(),i=r.getBoundingClientRect();return e.removeChild(r),t.left>i.left||i.right>t.right||t.top>i.top||i.bottom>t.bottom}const du=e=>["string","number"].includes(typeof e),_E=({prefixCls:e,copied:r,locale:t,iconOnly:i,tooltips:n,icon:o,tabIndex:a,onCopy:s,loading:c})=>{const d=Wd(n),f=Wd(o),{copied:l,copy:u}=t??{},h=r?l:u,p=Ls(d[r?1:0],h),m=typeof p=="string"?p:h;return I.createElement(ri,{title:p,getPopupContainer:v=>v.parentNode},I.createElement("button",{type:"button",className:ye(`${e}-copy`,{[`${e}-copy-success`]:r,[`${e}-copy-icon-only`]:i}),onClick:s,"aria-label":m,tabIndex:a},r?Ls(f[1],I.createElement(kp,null),!0):Ls(f[0],c?I.createElement(jp,null):I.createElement(Pp,null),!0)))},Oi=I.forwardRef(({style:e,children:r},t)=>{const i=I.useRef(null);return I.useImperativeHandle(t,()=>({isExceed:()=>{const n=i.current;return n.scrollHeight>n.clientHeight},getHeight:()=>i.current.clientHeight})),I.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},r)}),SE=e=>e.reduce((r,t)=>r+(du(t)?String(t).length:1),0);function Kd(e,r){let t=0;const i=[];for(let n=0;n<e.length;n+=1){if(t===r)return i;const o=e[n],s=du(o)?String(o).length:1,c=t+s;if(c>r){const d=r-t;return i.push(String(o).slice(0,d)),i}i.push(o),t=c}return e}const $s=0,Fs=1,Ds=2,qs=3,Gd=4,Ri={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function CE(e){const{enableMeasure:r,width:t,text:i,children:n,rows:o,expanded:a,miscDeps:s,onEllipsis:c}=e,d=I.useMemo(()=>Gr(i),[i]),f=I.useMemo(()=>SE(d),[i]),l=I.useMemo(()=>n(d,!1),[i]),[u,h]=I.useState(null),p=I.useRef(null),m=I.useRef(null),v=I.useRef(null),y=I.useRef(null),g=I.useRef(null),[w,b]=I.useState(!1),[x,_]=I.useState($s),[E,C]=I.useState(0),[k,O]=I.useState(null);Ue(()=>{_(r&&t&&f?Fs:$s)},[t,i,o,r,d]),Ue(()=>{var P,L,F,$;if(x===Fs){_(Ds);const z=m.current&&getComputedStyle(m.current).whiteSpace;O(z)}else if(x===Ds){const z=!!(!((P=v.current)===null||P===void 0)&&P.isExceed());_(z?qs:Gd),h(z?[0,f]:null),b(z);const H=((L=v.current)===null||L===void 0?void 0:L.getHeight())||0,D=o===1?0:((F=y.current)===null||F===void 0?void 0:F.getHeight())||0,j=(($=g.current)===null||$===void 0?void 0:$.getHeight())||0,A=Math.max(H,D+j);C(A+1),c(z)}},[x]);const S=u?Math.ceil((u[0]+u[1])/2):0;Ue(()=>{var P;const[L,F]=u||[0,0];if(L!==F){const z=(((P=p.current)===null||P===void 0?void 0:P.getHeight())||0)>E;let H=S;F-L===1&&(H=z?L:F),h(z?[L,H]:[H,F])}},[u,S]);const R=I.useMemo(()=>{if(!r)return n(d,!1);if(x!==qs||!u||u[0]!==u[1]){const P=n(d,!1);return[Gd,$s].includes(x)?P:I.createElement("span",{style:Object.assign(Object.assign({},Ri),{WebkitLineClamp:o})},P)}return n(a?d:Kd(d,u[0]),w)},[a,x,u,d].concat(me(s))),T={width:t,margin:0,padding:0,whiteSpace:k==="nowrap"?"normal":"inherit"};return I.createElement(I.Fragment,null,R,x===Ds&&I.createElement(I.Fragment,null,I.createElement(Oi,{style:Object.assign(Object.assign(Object.assign({},T),Ri),{WebkitLineClamp:o}),ref:v},l),I.createElement(Oi,{style:Object.assign(Object.assign(Object.assign({},T),Ri),{WebkitLineClamp:o-1}),ref:y},l),I.createElement(Oi,{style:Object.assign(Object.assign(Object.assign({},T),Ri),{WebkitLineClamp:1}),ref:g},n([],!0))),x===qs&&u&&u[0]!==u[1]&&I.createElement(Oi,{style:Object.assign(Object.assign({},T),{top:400}),ref:p},n(Kd(d,S),!0)),x===Fs&&I.createElement("span",{style:{whiteSpace:"inherit"},ref:m}))}const Np=({enableEllipsis:e,isEllipsis:r,children:t,tooltipProps:i})=>!i?.title||!e?t:I.createElement(ri,Object.assign({open:r?void 0:!1},i),t);process.env.NODE_ENV!=="production"&&(Np.displayName="EllipsisTooltip");var OE=function(e,r){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&r.indexOf(i)<0&&(t[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)r.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]]);return t};function RE({mark:e,code:r,underline:t,delete:i,strong:n,keyboard:o,italic:a},s){let c=s;function d(f,l){l&&(c=I.createElement(f,{},c))}return d("strong",n),d("u",t),d("del",i),d("code",r),d("mark",e),d("kbd",o),d("i",a),c}const AE="...",Yd=["delete","mark","code","underline","strong","keyboard","italic"],TE=I.forwardRef((e,r)=>{var t;const{prefixCls:i,className:n,style:o,type:a,disabled:s,children:c,ellipsis:d,editable:f,copyable:l,component:u,title:h}=e,p=OE(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:m,direction:v}=I.useContext(Kt),[y]=fb("Text"),g=I.useRef(null),w=I.useRef(null),b=m("typography",i),x=Dh(p,Yd),[_,E]=Is(f),[C,k]=Rr(!1,{value:E.editing}),{triggerType:O=["icon"]}=E,S=ge=>{var xe;ge&&((xe=E.onStart)===null||xe===void 0||xe.call(E)),k(ge)},R=hE(C);Ue(()=>{var ge;!C&&R&&((ge=w.current)===null||ge===void 0||ge.focus())},[C]);const T=ge=>{ge?.preventDefault(),S(!0)},P=ge=>{var xe;(xe=E.onChange)===null||xe===void 0||xe.call(E,ge),S(!1)},L=()=>{var ge;(ge=E.onCancel)===null||ge===void 0||ge.call(E),S(!1)},[F,$]=Is(l),{copied:z,copyLoading:H,onClick:D}=dE({copyConfig:$,children:c}),[j,A]=I.useState(!1),[M,q]=I.useState(!1),[B,N]=I.useState(!1),[V,K]=I.useState(!1),[W,X]=I.useState(!0),[re,oe]=Is(d,{expandable:!1,symbol:ge=>ge?y?.collapse:y?.expand}),[se,te]=Rr(oe.defaultExpanded||!1,{value:oe.expanded}),ce=re&&(!se||oe.expandable==="collapsible"),{rows:fe=1}=oe,ve=I.useMemo(()=>ce&&(oe.suffix!==void 0||oe.onEllipsis||oe.expandable||_||F),[ce,oe,_,F]);Ue(()=>{re&&!ve&&(A(Lf("webkitLineClamp")),q(Lf("textOverflow")))},[ve,re]);const[Q,Z]=I.useState(ce),ae=I.useMemo(()=>ve?!1:fe===1?M:j,[ve,M,j]);Ue(()=>{Z(ae&&ce)},[ae,ce]);const ie=ce&&(Q?V:B),ee=ce&&fe===1&&Q,ue=ce&&fe>1&&Q,ne=(ge,xe)=>{var Ge;te(xe.expanded),(Ge=oe.onExpand)===null||Ge===void 0||Ge.call(oe,ge,xe)},[he,Se]=I.useState(0),Me=({offsetWidth:ge})=>{Se(ge)},be=ge=>{var xe;N(ge),B!==ge&&((xe=oe.onEllipsis)===null||xe===void 0||xe.call(oe,ge))};I.useEffect(()=>{const ge=g.current;if(re&&Q&&ge){const xe=EE(ge);V!==xe&&K(xe)}},[re,Q,c,ue,W,he]),I.useEffect(()=>{const ge=g.current;if(typeof IntersectionObserver>"u"||!ge||!Q||!ce)return;const xe=new IntersectionObserver(()=>{X(!!ge.offsetParent)});return xe.observe(ge),()=>{xe.disconnect()}},[Q,ce]);const De=vE(oe.tooltip,E.text,c),Ce=I.useMemo(()=>{if(!(!re||Q))return[E.text,c,h,De.title].find(du)},[re,Q,h,De.title,ie]);if(C)return I.createElement(oE,{value:(t=E.text)!==null&&t!==void 0?t:typeof c=="string"?c:"",onSave:P,onCancel:L,onEnd:E.onEnd,prefixCls:b,className:n,style:o,direction:v,component:u,maxLength:E.maxLength,autoSize:E.autoSize,enterIcon:E.enterIcon});const Re=()=>{const{expandable:ge,symbol:xe}=oe;return ge?I.createElement("button",{type:"button",key:"expand",className:`${b}-${se?"collapse":"expand"}`,onClick:Ge=>ne(Ge,{expanded:!se}),"aria-label":se?y.collapse:y?.expand},typeof xe=="function"?xe(se):xe):null},ke=()=>{if(!_)return;const{icon:ge,tooltip:xe,tabIndex:Ge}=E,Gt=Gr(xe)[0]||y?.edit,yr=typeof Gt=="string"?Gt:"";return O.includes("icon")?I.createElement(ri,{key:"edit",title:xe===!1?"":Gt},I.createElement("button",{type:"button",ref:w,className:`${b}-edit`,onClick:T,"aria-label":yr,tabIndex:Ge},ge||I.createElement(Ah,{role:"button"}))):null},Te=()=>F?I.createElement(_E,Object.assign({key:"copy"},$,{prefixCls:b,copied:z,locale:y,onCopy:D,loading:H,iconOnly:c==null})):null,_e=ge=>[ge&&Re(),ke(),Te()],Be=ge=>[ge&&!se&&I.createElement("span",{"aria-hidden":!0,key:"ellipsis"},AE),oe.suffix,_e(ge)];return I.createElement(an,{onResize:Me,disabled:!ce},ge=>I.createElement(Np,{tooltipProps:De,enableEllipsis:ce,isEllipsis:ie},I.createElement(Tp,Object.assign({className:ye({[`${b}-${a}`]:a,[`${b}-disabled`]:s,[`${b}-ellipsis`]:re,[`${b}-ellipsis-single-line`]:ee,[`${b}-ellipsis-multiple-line`]:ue},n),prefixCls:i,style:Object.assign(Object.assign({},o),{WebkitLineClamp:ue?fe:void 0}),component:u,ref:Gn(ge,g,r),direction:v,onClick:O.includes("text")?T:void 0,"aria-label":Ce?.toString(),title:h},x),I.createElement(CE,{enableMeasure:ce&&!Q,text:c,rows:fe,width:he,onEllipsis:be,expanded:se,miscDeps:[z,se,H,_,F,y].concat(me(Yd.map(xe=>e[xe])))},(xe,Ge)=>RE(e,I.createElement(I.Fragment,null,xe.length>0&&Ge&&!se&&Ce?I.createElement("span",{key:"show-content","aria-hidden":!0},xe):xe,Be(Ge)))))))}),kE=I.forwardRef((e,r)=>I.createElement(TE,Object.assign({ref:r},e,{component:"div"}))),PE=({reqRows:e,subRows:r})=>{const{searchBoxRef:t}=Ml.useSearchBox();return Y.jsxRuntimeExports.jsx(Il,{ref:t,reqRows:e,subRows:r})},jE=({children:e,searchBox:r,title:t,preRenderEvents:i=[],postRenderEvents:n=[],loading:o=!1,error:a=null,grantEvent:s={},customEvent:c={}})=>{const d=Ml.useServiceCodeValue("AUTH_BTNS"),{user:f,isLoggedIn:l}=mt.useUserStore(),{activeMenuItem:u}=mt.useMenuViewStore(),{isFavorite:h,addFavorite:p,removeFavorite:m}=Ip.useFavoriteStore(),{loading:v}=mt.useLoadingStore(),[y,g]=U.useState({isInitialized:!1,isReady:!1,error:null,loading:!0,preRenderComplete:!1,postRenderComplete:!1}),[w,b]=U.useState(null),[x,_]=U.useState([]),[E,C]=U.useState([]),k=async()=>{if(i.length===0){g($=>({...$,preRenderComplete:!0}));return}try{for(const $ of i)await $();g($=>({...$,preRenderComplete:!0}))}catch($){g(z=>({...z,error:$ instanceof Error?$.message:"사전 렌더링 실패",preRenderComplete:!0}))}},O=async()=>{if(n.length===0){g($=>({...$,postRenderComplete:!0}));return}try{for(const $ of n)await $();g($=>({...$,postRenderComplete:!0}))}catch($){g(z=>({...z,error:$ instanceof Error?$.message:"사후 렌더링 실패",postRenderComplete:!0}))}};U.useEffect(()=>{if(y.isInitialized)return;(async()=>{try{try{console.log("SCMSIGN00202 권한 서비스 호출 시작");const z=await mt.callService(d,{crprCd:f?.crprCd,userId:f?.userId,menuId:u?.menuId});if(console.log("SCMSIGN00202 권한 서비스 응답:",z),z?.data&&z.data.length>0){const H=z.data?.filter(j=>j.grpId?.toUpperCase()==="DEFAULT").map(j=>({id:j.btnId,label:j.btnNm,type:"default",disabled:!1,onClick:s[j.btnId]||void 0}))||[];_(H);const D=z.data?.filter(j=>j.grpId?.toUpperCase()==="CUSTOM").map(j=>({id:j.btnId,label:j.btnNm,type:"default",disabled:!1,onClick:c[j.btnId]||void 0}))||[];C(D)}else _([]),C([])}catch(z){console.error("SCMSIGN00202 권한 서비스 호출 실패:",z),_([]),C([])}await k(),g(z=>({...z,isInitialized:!0,loading:!1}))}catch(z){console.error("BwgView 초기화 실패:",z),g(H=>({...H,isInitialized:!0,loading:!1}))}})()},[]),U.useEffect(()=>{y.isInitialized&&y.preRenderComplete&&!y.isReady&&setTimeout(async()=>{await O(),g(z=>({...z,isReady:!0}))},100)},[y.isInitialized,y.preRenderComplete,y.isReady]),U.useEffect(()=>{a&&g($=>({...$,error:a}))},[a]);const S=()=>Y.jsxRuntimeExports.jsxs("div",{className:"bwgview-header-container",children:[Y.jsxRuntimeExports.jsxs("div",{className:"bwgview-header",children:[Y.jsxRuntimeExports.jsx("div",{className:"bwgview-header-left",children:F.LEFT}),Y.jsxRuntimeExports.jsx("div",{className:"bwgview-header-right",children:F.RIGHT})]}),r&&Y.jsxRuntimeExports.jsx(PE,{reqRows:r.reqRows,subRows:r.subRows})]});if(U.useEffect(()=>{},[f,u]),y.error||a)return Y.jsxRuntimeExports.jsx("div",{style:{padding:"24px"},children:Y.jsxRuntimeExports.jsx(de.Alert,{message:"오류 발생",description:y.error||a,type:"error",showIcon:!0})});const R=()=>Y.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:Y.jsxRuntimeExports.jsx("path",{d:"M9.9348 1.4645C10.2382 0.845167 10.7437 0.845167 11.0597 1.4645L13.0694 5.5344C13.3727 6.15374 14.1943 6.74779 14.8768 6.84891L19.3638 7.50616C20.0464 7.60727 20.2107 8.08757 19.7051 8.56787L16.4568 11.7277C15.9638 12.208 15.6478 13.1686 15.7616 13.8512L16.5326 18.3129C16.6464 18.9954 16.2419 19.2988 15.6226 18.9701L11.6159 16.8594C10.9965 16.5307 9.998 16.5307 9.37867 16.8594L5.37196 18.9701C4.75263 19.2988 4.34817 18.9954 4.46192 18.3129L5.23293 13.8512C5.34668 13.1686 5.04334 12.208 4.53776 11.7277L1.28942 8.56787C0.79648 8.08757 0.948154 7.60727 1.63068 7.50616L6.11769 6.84891C6.80022 6.74779 7.62179 6.15374 7.92513 5.5344L9.9348 1.4645Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10"})}),T=()=>Y.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 21 20",width:"1em",height:"1em",fill:"none",children:Y.jsxRuntimeExports.jsx("path",{d:"M9.9348 1.4645C10.2382 0.845167 10.7437 0.845167 11.0597 1.4645L13.0694 5.5344C13.3727 6.15374 14.1943 6.74779 14.8768 6.84891L19.3638 7.50616C20.0464 7.60727 20.2107 8.08757 19.7051 8.56787L16.4568 11.7277C15.9638 12.208 15.6478 13.1686 15.7616 13.8512L16.5326 18.3129C16.6464 18.9954 16.2419 19.2988 15.6226 18.9701L11.6159 16.8594C10.9965 16.5307 9.998 16.5307 9.37867 16.8594L5.37196 18.9701C4.75263 19.2988 4.34817 18.9954 4.46192 18.3129L5.23293 13.8512C5.34668 13.1686 5.04334 12.208 4.53776 11.7277L1.28942 8.56787C0.79648 8.08757 0.948154 7.60727 1.63068 7.50616L6.11769 6.84891C6.80022 6.74779 7.62178 6.15374 7.92513 5.5344L9.9348 1.4645Z",stroke:"currentColor",strokeWidth:"1.5",strokeMiterlimit:"10",fill:"none"})}),P=$=>Y.jsxRuntimeExports.jsx(ft,{component:R,...$}),L=$=>Y.jsxRuntimeExports.jsx(ft,{component:T,...$}),F={LEFT:Y.jsxRuntimeExports.jsx("div",{className:"bwgview-header-left",children:Y.jsxRuntimeExports.jsxs(de.ConfigProvider,{theme:{components:{Tag:{controlHeight:28,controlHeightLG:28,controlHeightSM:28,controlHeightXS:28}}},children:[Y.jsxRuntimeExports.jsxs(de.Space,{children:[u&&(h(u.menuId)?Y.jsxRuntimeExports.jsx(P,{className:"bookmark-icon",style:{color:"#faad14"},onClick:async()=>{try{await m(u.menuId,f?.userId||"")}catch{}}}):Y.jsxRuntimeExports.jsx(L,{className:"bookmark-icon",onClick:async()=>{try{await p(u,f?.userId||"")}catch{}}})),Y.jsxRuntimeExports.jsxs(de.Space.Compact,{style:{alignItems:"center"},children:[Y.jsxRuntimeExports.jsx("span",{className:"pageMenuNm",children:(()=>{let $="";return t?.useMenuTitle&&u?$=u.menuNm:t?.text?$=t.text:u&&($=u.menuPrntId==="CM00"?u.menuNm.substring(u.menuNm.indexOf(" ")+1):u.menuNm),t?.prefix&&($=`${t.prefix} ${$}`),t?.suffix&&($=`${$} ${t.suffix}`),$})()}),u?.menuNo&&Y.jsxRuntimeExports.jsx(de.Tag,{className:"page-num-tag",children:u?.menuNo}),Y.jsxRuntimeExports.jsx(de.Tooltip,{title:"도움말",color:"geekblue",children:Y.jsxRuntimeExports.jsx(de.Button,{variant:"text",type:"text",className:"menu-help-btn",icon:Y.jsxRuntimeExports.jsx("span",{className:"bwgHelpIcon"})})})]})]}),u?.scrnId&&$p.isLocal&&Y.jsxRuntimeExports.jsx(de.Tag,{style:{marginLeft:8,fontSize:13,fontWeight:500,display:"flex"},children:Y.jsxRuntimeExports.jsx(kE,{copyable:!0,style:{display:"inherit",justifyContent:"center",alignItems:"center",marginBottom:0},children:u?.scrnId})})]})}),RIGHT:Y.jsxRuntimeExports.jsx("div",{className:"bwgview-header-right",children:Y.jsxRuntimeExports.jsx(de.ConfigProvider,{theme:{components:{Space:{padding:8}}},children:Y.jsxRuntimeExports.jsxs(de.Space,{children:[Y.jsxRuntimeExports.jsx(de.Flex,{gap:8,children:E.map($=>Y.jsxRuntimeExports.jsx(de.Button,{type:$.type,disabled:$.disabled,className:"bwg-btn",onClick:()=>{typeof $.onClick=="function"&&$.onClick()},children:$.label},$.id))}),Y.jsxRuntimeExports.jsx(de.ConfigProvider,{theme:{components:{Divider:{verticalMarginInline:0}}},children:Y.jsxRuntimeExports.jsx(de.Divider,{type:"vertical"})}),Y.jsxRuntimeExports.jsx(de.Flex,{gap:8,className:"permission-buttons",children:x.length>0?x.map($=>Y.jsxRuntimeExports.jsx(de.Button,{type:$.type,disabled:$.disabled,className:"bwg-btn",onClick:()=>{typeof $.onClick=="function"&&$.onClick()},children:$.label},$.id)):Y.jsxRuntimeExports.jsx(de.Alert,{message:"부여된 권한이 없습니다",type:"warning",showIcon:!0,style:{height:"20px",display:"flex",alignItems:"center",margin:0,padding:"10px 10px"}})})]})})})};return Y.jsxRuntimeExports.jsxs("div",{className:"bwg-view main-view",style:{height:"100%",display:"flex",flexDirection:"column"},children:[S(),Y.jsxRuntimeExports.jsxs("div",{className:"bwgview-content",children:[Y.jsxRuntimeExports.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:e}),(y.loading||o||v)&&Y.jsxRuntimeExports.jsx(Lp.LoadingOverlay,{text:v?"처리 중...":"화면 로드 중..."})]})]})},NE=({children:e,customTheme:r,customComponentSize:t="middle"})=>{const i={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:de.theme.defaultAlgorithm},n={...i,...r,token:{...i.token,...r?.token}};return Y.jsxRuntimeExports.jsx(de.ConfigProvider,{locale:eh,theme:n,componentSize:t,space:{size:t},form:{validateMessages:{required:"${label}을(를) 입력해주세요.",types:{email:"${label}이(가) 유효한 이메일이 아닙니다.",number:"${label}이(가) 유효한 숫자가 아닙니다."},number:{range:"${label}은(는) ${min} ~ ${max} 사이의 값이어야 합니다."}}},pagination:{showSizeChanger:!0},children:e})},ME="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",IE="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",LE="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",$E=({children:e})=>{const[r,t]=U.useState({x:0,y:0}),[i,n]=U.useState(!1),[o,a]=U.useState({x:0,y:0}),[s,c]=U.useState(!1),[d,f]=U.useState(!0),l=U.useRef(null),u=[{id:"overtime",title:"시간 외 근무신청",icon:Y.jsxRuntimeExports.jsx("img",{src:ME,alt:"시간외근무신청",className:"quick-overtime"}),color:"#722ed1",onClick:()=>{console.log("시간 외 근무 신청 클릭")}},{id:"business-trip",title:"출장신청",icon:Y.jsxRuntimeExports.jsx("img",{src:IE,alt:"출장신청",className:"quick-business-trip"}),color:"#1890ff",onClick:()=>{console.log("출장 신청 클릭")}},{id:"vacation",title:"휴가신청",icon:Y.jsxRuntimeExports.jsx("img",{src:LE,alt:"휴가신청",className:"quick-holiday"}),color:"#eb2f96",onClick:()=>{console.log("휴가 신청 클릭")}},{id:"document",title:"문서신청",icon:Y.jsxRuntimeExports.jsx(ft.FileTextOutlined,{}),color:"#52c41a",onClick:()=>{console.log("문서 신청 클릭")}},{id:"profile",title:"인사정보",icon:Y.jsxRuntimeExports.jsx(ft.UserOutlined,{}),color:"#fa8c16",onClick:()=>{console.log("인사 정보 클릭")}},{id:"settings",title:"설정",icon:Y.jsxRuntimeExports.jsx(ft.SettingOutlined,{}),color:"#13c2c2",onClick:()=>{console.log("설정 클릭")}}];U.useEffect(()=>{const g=()=>{const w=window.innerHeight,x=Math.max(64,(w-300)/3);t({x:0,y:x});const _=w/2;f(x<_)};return g(),window.addEventListener("resize",g),()=>window.removeEventListener("resize",g)},[]);const h=g=>{if(g.preventDefault(),g.stopPropagation(),l.current){const w=l.current.getBoundingClientRect();a({x:g.clientX-w.left,y:g.clientY-w.top}),n(!0)}},p=g=>{if(i){const w=g.clientY-o.y,b=window.innerHeight-24,_=Math.max(64,Math.min(b,w));t({x:r.x,y:_});const E=window.innerHeight/2;f(_<E)}},m=()=>{n(!1)},v=()=>{c(!s)},y=g=>{g.onClick&&g.onClick()};return U.useEffect(()=>{if(i)return document.addEventListener("mousemove",p),document.addEventListener("mouseup",m),()=>{document.removeEventListener("mousemove",p),document.removeEventListener("mouseup",m)}},[i,o]),Y.jsxRuntimeExports.jsxs("div",{className:"quick-tab-container",ref:l,style:{position:"fixed",right:0,top:r.y,zIndex:1e3,userSelect:"none",touchAction:"none"},children:[Y.jsxRuntimeExports.jsxs("div",{className:"quick-tab",style:{position:"absolute",right:"40px",top:d?0:"auto",bottom:d?"auto":0,display:"flex",flexDirection:"column",gap:"15px",border:"1px solid #E0DEEF",borderRadius:"15px",padding:"8px",boxShadow:"0 0 10px rgba(0, 0, 0, 0.3)",minWidth:"88px",maxWidth:"88px",maxHeight:d?`calc(100vh - ${r.y+12}px)`:`${r.y-12}px`,transform:s?"translateX(0)":"translateX(calc(100% + 100px))",transition:"transform 0.3s ease",marginTop:d&&r.y<100?"32px":"0",marginBottom:!d&&r.y>window.innerHeight-100?"8px":"0"},children:[Y.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-wrap",style:{background:"#ffffff",borderRadius:"10px",flex:1,overflowY:"auto",maxHeight:d?`calc(100vh - ${r.y+120}px)`:`${r.y-60}px`,padding:"14px 0"},children:u.map(g=>Y.jsxRuntimeExports.jsx(de.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:()=>y(g),onMouseEnter:w=>{},onMouseLeave:w=>{},children:Y.jsxRuntimeExports.jsxs("div",{className:"quick-tab-item-inner",children:[Y.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-icon",style:{width:"44px",height:"44px",borderRadius:"8PX",fontSize:"24px",color:g.color,marginBottom:"5px"},children:g.icon}),Y.jsxRuntimeExports.jsx("div",{className:"quick-tab-items-title",children:g.title})]})},g.id))}),Y.jsxRuntimeExports.jsx("div",{className:"quick-tab-add-btn",style:{height:"30px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",transition:"all 0.2s ease",flexShrink:0,marginBottom:"7px"},onMouseEnter:g=>{},onMouseLeave:g=>{},children:Y.jsxRuntimeExports.jsx(ft.PlusOutlined,{style:{color:"#CDC4FF",fontSize:"15px"}})})]}),Y.jsxRuntimeExports.jsx("div",{className:"quick-tab-drag-btn",style:{cursor:i?"grabbing":"grab",zIndex:1001},onMouseDown:h}),Y.jsxRuntimeExports.jsx(de.Button,{className:`quick-tab-toggle-btn ${s?"expanded":""}`,type:"default",style:{border:"0",backgroundColor:"transparent"},onClick:v})]})},FE=()=>{const{verifyWithToken:e}=Fp.useAuth(),r=pu.useNavigate(),t=pu.useLocation();return U.useEffect(()=>{const n=new URLSearchParams(t.search).get("token");if(!n){r("/login",{replace:!0});return}(async()=>{const o=await e(n);r(o?"/main":"/login",{replace:!0})})()},[t.search]),Y.jsxRuntimeExports.jsx("div",{style:{display:"grid",placeItems:"center",height:"100dvh"},children:Y.jsxRuntimeExports.jsx(de.Spin,{tip:"인증중..."})})};exports.BwgButtonGroup=Dp;exports.BwgCmptArea=qp;exports.BwgCol=Bp;exports.BwgConfigProvider=th;exports.BwgDetail=Jp;exports.BwgDrawer=eg;exports.BwgEditor=Sm;exports.BwgGrid=Nm;exports.BwgInfoArea=Im;exports.BwgPopup=$m;exports.BwgRow=Fm;exports.BwgTable=Dm;exports.BwgTabs=qm;exports.BwgTitleBox=Gi;exports.BwgView=jE;exports.ContentBox=ql;exports.ContentLayOut=to;exports.GlobalConfigProvider=NE;exports.QuickServiceToggle=$E;exports.SSOHandler=FE;exports.SearchBox=Il;exports.createBwgGridRenderer=Mm;
|
|
236
|
+
//# sourceMappingURL=SSOHandler-DZeC8Xgh.cjs.map
|