@amstfn/td-design-system 0.3.0

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/index.cjs ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react/jsx-runtime"),C=require("antd"),u=require("react"),le=require("./spacing-BkZfHpT0.cjs"),kr=require("antd/locale/en_US"),Dr=require("antd/locale/fa_IR"),Mr=require("antd-jalali-v5");require("dayjs/locale/fa");const Xt={success:"success",info:"info",warning:"warning",error:"error"},qt={filled:"filled"},Ar=u.memo(function({type:r=Xt.success,variant:t=qt.filled,showIcon:i=!0,...a}){return v.jsx(C.Alert,{...a,type:r,variant:t,showIcon:i})}),ye={brand:"brand",neutral:"neutral",danger:"danger"},ge={contained:"contained",outlined:"outlined",tinted:"tinted",text:"text",link:"link"},Ie={small:"small",medium:"medium",large:"large"},zr={[ye.brand]:"primary",[ye.neutral]:"default",[ye.danger]:"danger"},Hr={[ge.contained]:"solid",[ge.outlined]:"outlined",[ge.tinted]:"filled",[ge.text]:"text",[ge.link]:"link"},Er={[Ie.small]:"small",[Ie.medium]:"middle",[Ie.large]:"large"};function Pr(e,r){return e===ye.neutral&&r===ge.link?{type:"link"}:{color:zr[e],variant:Hr[r]}}const wr=u.memo(function({fullWidth:r,tone:t=ye.brand,variant:i=ge.contained,size:a=Ie.medium,style:n,...d}){return v.jsx(C.Button,{...d,...Pr(t,i),size:Er[a],style:{width:r?"100%":void 0,...n}})}),_e={horizontal:"horizontal",vertical:"vertical"},Vr={[_e.horizontal]:"row",[_e.vertical]:"column"},_r=u.memo(function({direction:r=_e.horizontal,style:t,children:i,...a}){return v.jsx(C.Checkbox.Group,{style:{display:"flex",flexDirection:Vr[r],gap:le.TdSpacing.sm,...t},...a,children:i})}),Lr=u.memo(function({label:r,help:t,required:i,status:a,style:n,styles:d,"aria-label":c,...y}){const B=r!=null&&r!==!1&&r!=="";return v.jsx(C.Form.Item,{help:t?v.jsx("span",{role:a==="error"?"alert":void 0,children:t}):void 0,required:i,validateStatus:a,style:{marginBottom:le.TdSpacing.sm},children:v.jsx(C.Checkbox,{"aria-invalid":a==="error"?!0:void 0,"aria-required":i?!0:void 0,"aria-label":c,style:n,styles:B?d:E=>{const p=typeof d=="function"?d(E):d;return{...p,root:{...p?.root,lineHeight:1}}},...y,children:r})})}),Ge=Lr;Object.assign(Ge,{Group:_r});const Rr=u.memo(function({borderless:r=!1,ghost:t=!1,...i}){return v.jsx(C.Collapse,{...i,bordered:!r,ghost:t})}),Wr=u.memo(function({label:r,help:t,required:i,status:a,style:n,...d}){return v.jsx(C.Form.Item,{help:t?v.jsx("span",{role:a==="error"?"alert":void 0,children:t}):void 0,required:i,validateStatus:a,style:{marginBottom:le.TdSpacing.sm},children:v.jsx(C.Radio,{"aria-invalid":a==="error"?!0:void 0,"aria-required":i?!0:void 0,style:n,...d,children:r})})}),Gr=u.memo(function({label:r,help:t,required:i,status:a,style:n,optionType:d,buttonStyle:c,size:y,vertical:B,options:E,children:p,...x}){const b=u.useId();return v.jsx(C.Form.Item,{label:r?v.jsx("span",{id:b,children:r}):void 0,help:t?v.jsx("span",{role:a==="error"?"alert":void 0,children:t}):void 0,required:i,validateStatus:a,style:{marginBottom:le.TdSpacing.sm},children:v.jsx(C.Radio.Group,{"aria-invalid":a==="error"?!0:void 0,"aria-required":i?!0:void 0,"aria-labelledby":r?b:void 0,style:n,optionType:d,buttonStyle:c,size:y,vertical:B,options:E,...x,children:p})})}),Or=u.memo(function(r){return v.jsx(C.Radio.Button,{...r})}),ot=u.memo(function({label:r,help:t,required:i,fullWidth:a=!0,status:n,style:d,id:c,...y}){const B=u.useId(),E=c??B;return v.jsx(C.Form.Item,{label:r,htmlFor:E,help:t?v.jsx("span",{role:n==="error"?"alert":void 0,children:t}):void 0,required:i,validateStatus:n==="error"?"error":void 0,style:{marginBottom:le.TdSpacing.sm,width:a?"100%":void 0},children:v.jsx(C.DatePicker,{id:E,status:n,style:{width:a?"100%":void 0,...d},...y})})}),D={colorPrimaryBg:"#EDF7F1",colorPrimaryBgHover:"#C5E6D3",colorPrimaryBorder:"#98D2B1",colorPrimaryBorderHover:"#70C193",colorPrimaryHover:"#47AF74",colorPrimaryBase:"#1F9E56",colorPrimaryActive:"#1A8548",colorPrimaryTextHover:"#47AF74",colorPrimaryText:"#1F9E56",colorPrimaryTextActive:"#1A8548",colorSuccessBg:"#F4F9F1",colorSuccessBgHover:"#D7E8CF",colorSuccessBorder:"#B9D7AA",colorSuccessBorderHover:"#9CC787",colorSuccessHover:"#9CC787",colorSuccessBase:"#5FA43D",colorSuccessActive:"#4C8331",colorSuccessTextHover:"#7FB664",colorSuccessText:"#5FA43D",colorSuccessTextActive:"#4C8331",colorWarningBg:"#FFF6EC",colorWarningBgHover:"#FFE4C2",colorWarningBorder:"#FFD198",colorWarningBorderHover:"#FEBE70",colorWarningHover:"#FEBE70",colorWarningBase:"#FF9717",colorWarningActive:"#D07A12",colorWarningTextHover:"#FEA840",colorWarningText:"#FF9717",colorWarningTextActive:"#D07A12",colorErrorBg:"#FFF1F0",colorErrorBgHover:"#FFF1F0",colorErrorBorder:"#FFCCC7",colorErrorBorderHover:"#FFA39E",colorErrorHover:"#FF7875",colorErrorBase:"#FF4D4F",colorErrorActive:"#CF1322",colorErrorTextHover:"#FF7875",colorErrorText:"#FF4D4F",colorErrorTextActive:"#CF1322",colorInfoBg:"#F0FAFF",colorInfoBgHover:"#D6EFFF",colorInfoBorder:"#ADDDFF",colorInfoBorderHover:"#85C8FF",colorInfoHover:"#85C8FF",colorInfoBase:"#3496FF",colorInfoActive:"#2173D9",colorInfoTextHover:"#5CB0FF",colorInfoText:"#3496FF",colorInfoTextActive:"#2173D9",colorText:"rgba(0, 0, 0, 0.88)",colorTextSecondary:"rgba(0, 0, 0, 0.65)",colorTextTertiary:"rgba(0, 0, 0, 0.45)",colorTextQuaternary:"rgba(0, 0, 0, 0.25)",colorBorder:"#D9D9D9",colorBorderSecondary:"#F0F0F0",colorBorderDisabled:"#D9D9D9",colorFill:"rgba(0, 0, 0, 0.15)",colorFillSecondary:"rgba(0, 0, 0, 0.06)",colorFillTertiary:"rgba(0, 0, 0, 0.04)",colorFillQuaternary:"rgba(0, 0, 0, 0.02)",colorBgLayout:"#F5F5F5",colorBgContainer:"#FFFFFF",colorBgElevated:"#FFFFFF",colorBgSpotlight:"rgba(0, 0, 0, 0.85)",colorBgMask:"rgba(0, 0, 0, 0.45)",sizeXXL:48,sizeXL:32,sizeLG:24,sizeMD:20,sizeMS:16,size:16,sizeSM:12,sizeXS:8,sizeXXS:4,controlHeightLG:40,controlHeightSM:24,controlHeightXS:16,borderRadiusXS:2,borderRadiusSM:4,borderRadiusLG:8,borderRadiusXL:12,borderRadiusXXL:16,borderRadiusOuter:4,colorWhite:"#FFFFFF",colorBlack:"#000000",fontSizeXL:20,fontSizeLG:16,fontSizeSM:12,fontSizeXS:11,fontSizeXXS:10,fontSizeHeading1:38,fontSizeHeading2:30,fontSizeHeading3:24,fontSizeHeading4:20,fontSizeHeading5:16,lineHeight:1.571,lineHeightLG:1.5,lineHeightSM:1.6666666666666667,lineHeightHeading1:1.211,lineHeightHeading2:1.267,lineHeightHeading3:1.333,lineHeightHeading4:1.4,lineHeightHeading5:1.5,lineWidthBold:2,borderRadiusFull:9999,colorFillContrast:"rgba(0, 0, 0, 0.3)",colorBgBlur:"rgba(255, 255, 255, 0)",transparent:"rgba(255, 255, 255, 0)",colorBgSolid:"#000000",colorBgSolidHover:"rgba(0, 0, 0, 0.75)",colorBgSolidActive:"rgba(0, 0, 0, 0.95)",colorErrorBgFilledHover:"#FFDFDC",colorErrorBgActive:"#FFCCC7"},O={brand:{1:"#EDF7F1",2:"#C5E6D3",3:"#98D2B1",4:"#70C193",5:"#47AF74",6:"#1F9E56",7:"#1A8548",8:"#146839",9:"#10512C",10:"#0A331C"},error:{1:"#FFF1F0",2:"#FFCCC7",3:"#FFA39E",4:"#FF7875",5:"#FF4D4F",6:"#F5222D",7:"#CF1322",8:"#A8071A",9:"#820014",10:"#5C0011"},warning:{1:"#FFF6EC",2:"#FFE4C2",3:"#FFD198",4:"#FEBE70",5:"#FEA840",6:"#FF9717",7:"#D07A12",8:"#A5610E",9:"#75450A",10:"#3F2505"},info:{1:"#EEF5FD",2:"#C9E1FA",3:"#A6CEF6",4:"#7CB8F2",5:"#4C9DEE",6:"#2588EA",7:"#1E6EBE",8:"#185898",9:"#124373",10:"#0B2744"},success:{1:"#F4F9F1",2:"#D7E8CF",3:"#B9D7AA",4:"#9CC787",5:"#7FB664",6:"#5FA43D",7:"#4C8331",8:"#3C6726",9:"#2B4A1B",10:"#192C10"},gray:{1:"#FFFFFF",2:"#FAFAFA",3:"#F5F5F5",4:"#F0F0F0",5:"#D9D9D9",6:"#BFBFBF",7:"#8C8C8C",8:"#595959",9:"#434343",10:"#262626"}},$={colorPrimary:"#1F9E56",colorSuccess:"#5FA43D",colorWarning:"#FF9717",colorError:"#FF4D4F",colorInfo:"#3496FF",colorTextBase:"#000000",colorBgBase:"#FFFFFF",sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,opacityImage:100,fontFamily:"IRANSansX",fontFamilyCode:"IRANSansX",fontSize:14,lineWidth:1,borderRadius:6,zIndexPopupBase:1e3,lineType:"solid",motion:!0,motionBase:0,motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",motionUnit:.1,wireframe:!1},$t={primary:{main:$.colorPrimary,light:O.brand[5],dark:O.brand[7],contrastText:D.colorWhite},secondary:{main:"#7B1FA2",light:"#BA68C8",dark:"#4A148C",contrastText:"#FFFFFF"},success:{main:$.colorSuccess,light:O.success[5],dark:O.success[7],contrastText:D.colorWhite},warning:{main:$.colorWarning,light:O.warning[5],dark:O.warning[7],contrastText:D.colorWhite},error:{main:$.colorError,light:O.error[4],dark:O.error[7],contrastText:D.colorWhite},info:{main:$.colorInfo,light:D.colorInfoTextHover,dark:D.colorInfoActive,contrastText:D.colorWhite},neutral:{white:O.gray[1],black:D.colorBlack,gray50:O.gray[2],gray100:O.gray[3],gray200:O.gray[4],gray300:O.gray[5],gray400:O.gray[6],gray500:O.gray[7],gray600:O.gray[8],gray700:O.gray[9],gray800:O.gray[10],gray900:D.colorBlack},text:{primary:D.colorText,secondary:D.colorTextSecondary,disabled:D.colorTextQuaternary,inverse:D.colorWhite},background:{default:D.colorBgLayout,paper:D.colorBgContainer,elevated:D.colorBgElevated},border:{default:D.colorBorder,focus:$.colorPrimary,error:$.colorError}},Nr={...$t,text:{primary:"#FFFFFF",secondary:"#B0BEC5",disabled:"#78909C",inverse:"#212121"},background:{default:"#121212",paper:"#1E1E1E",elevated:"#2C2C2C"},border:{default:"#424242",focus:O.brand[5],error:O.error[4]}},ve={fontStyle:{reqularItalic:"Reqular Italic",semiboldItalic:"Semibold Italic",regularItalic:"Regular Italic",mediumItalic:"Medium Italic"},layout:{sidebarWidthMD:256,sidebarWidthSm:180,sidebarWidthLG:360,sidebarCollapsedWidth:48,colorBgSidebar:"#FBFBFB",headerHeight:44,footerHeight:34},opacity:{0:0,1:2,2:4,3:6,4:8,5:10,6:12,7:16,8:20,9:25,10:30,11:35,12:40,13:45,14:50,15:55,16:60,17:65,18:70,19:75,20:80,21:85,22:90,23:95},colorLink:"#1677FF",colorSplit:"#EEEFF1",fontSizeIcon:12,controlInteractiveSize:16,paddingXL:32,paddingLG:24,paddingMD:20,padding:16,paddingSM:12,paddingXS:8,paddingXXS:4,marginXXL:48,marginXL:32,marginLG:24,marginMD:20,margin:16,marginSM:12,marginXS:8,marginXXS:4,controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingContentHorizontalLG:24,paddingContentVerticalLG:16,paddingContentHorizontal:16,paddingContentVertical:12,paddingContentHorizontalSM:16,paddingContentVerticalSM:8,colorLinkHover:"#69B1FF",colorLinkActive:"#0958D9",colorFillContent:"rgba(0, 0, 0, 0.06)",colorFillContentHover:"rgba(0, 0, 0, 0.15)",colorFillAlter:"rgba(0, 0, 0, 0.02)",colorBgContainerDisabled:"rgba(0, 0, 0, 0.04)",colorBorderBg:"#FFFFFF",colorTextPlaceholder:"rgba(0, 0, 0, 0.25)",colorTextDisabled:"rgba(0, 0, 0, 0.25)",colorTextHeading:"rgba(0, 0, 0, 0.88)",colorTextLabel:"rgba(0, 0, 0, 0.65)",colorTextDescription:"rgba(0, 0, 0, 0.45)",colorTextLightSolid:"#FFFFFF",colorHighlight:"#FFA39E",colorBgTextHover:"rgba(0, 0, 0, 0.06)",colorBgTextActive:"rgba(0, 0, 0, 0.15)",colorIcon:"rgba(0, 0, 0, 0.45)",colorIconHover:"rgba(0, 0, 0, 0.88)",colorErrorOutline:"rgba(255, 77, 79, 0.1)",colorWarningOutline:"rgba(250, 173, 20, 0.1)",controlItemBgHover:"rgba(0, 0, 0, 0.04)",controlItemBgActive:"#EDF7F1",controlItemBgActiveHover:"#C5E6D3",controlItemBgActiveDisabled:"rgba(0, 0, 0, 0.15)",controlTmpOutline:"rgba(0, 0, 0, 0.02)",controlOutline:"rgba(5, 145, 255, 0.1)",controlOutlineWidth:2,opacityLoading:65,screenXS:320,screenSM:576,screenMD:768,screenLG:992,screenXL:1200,screenXXL:1600,screenXSMin:320,screenXSMax:575,screenSMMin:576,screenSMMax:767,screenMDMin:768,screenMDMax:991,screenLGMin:992,screenLGMax:1199,screenXLMin:1200,screenXLMax:1599,screenXXLMin:1600,lineWidthFocus:3,linkDecoration:"none",linkFocusDecoration:"none",linkHoverDecoration:"none",fontWeightStrong:700,fontWeightNormal:400,drawerWidth:378,drawerWidthMD:520,drawerWidthLG:736},Kt={Button:{borderColorDisabled:"#D9D9D9",contentFontSize:14,contentFontSizeLG:14,contentFontSizeSM:14,contentLineHeight:1.571,contentLineHeightLG:1.5,contentLineHeightSM:1.6666666666666667,dangerColor:"#FFFFFF",dangerShadow:"0 2px 0 rgba(255,38,5,0.06)",defaultActiveBg:"#FFFFFF",defaultActiveBorderColor:"#1A8548",defaultActiveColor:"#1A8548",defaultBg:"#FFFFFF",defaultBorderColor:"#D9D9D9",defaultColor:"rgba(0, 0, 0, 0.88)",defaultGhostBorderColor:"#FFFFFF",defaultGhostColor:"#FFFFFF",defaultHoverBg:"#FFFFFF",defaultHoverBorderColor:"#47AF74",defaultHoverColor:"#47AF74",defaultShadow:"0 2px 0 rgba(0,0,0,0.02)",fontWeight:400,ghostBg:"rgba(255, 255, 255, 0)",groupBorderColor:"#47AF74",iconGap:8,linkHoverBg:"rgba(255, 255, 255, 0)",onlyIconSize:14,onlyIconSizeLG:16,onlyIconSizeSM:12,paddingBlock:4,paddingBlockLG:7,paddingBlockSM:0,paddingInline:15,paddingInlineLG:15,paddingInlineSM:7,primaryColor:"#FFFFFF",primaryShadow:"0 2px 0 rgba(5,145,255,0.1)",solidTextColor:"#FFFFFF",textHoverBg:"rgba(0, 0, 0, 0.04)",textTextActiveColor:"rgba(0, 0, 0, 0.88)",textTextColor:"rgba(0, 0, 0, 0.88)",textTextHoverColor:"rgba(0, 0, 0, 0.88)",dashedBgDisabled:"rgba(0, 0, 0, 0.04)",defaultBgDisabled:"rgba(0, 0, 0, 0.04)"},Typography:{titleMarginBottom:0,titleMarginTop:0},Divider:{orientationMargin:.05,textPaddingInline:14,verticalMarginInline:8},Layout:{bodyBg:"#F5F5F5",footerBg:"#F5F5F5",footerPadding:"24px 50px",headerBg:"#001529",headerColor:"rgba(0, 0, 0, 0.88)",headerHeight:64,headerPadding:"0 50px",lightSiderBg:"#FFFFFF",lightTriggerBg:"#FFFFFF",lightTriggerColor:"rgba(0, 0, 0, 0.88)",siderBg:"#001529",triggerBg:"#002140",triggerColor:"#FFFFFF",triggerHeight:48,zeroTriggerHeight:40,zeroTriggerWidth:40},Splitter:{splitBarDraggableSize:20,splitBarSize:2,splitTriggerSize:6},Anchor:{linkPaddingBlock:4,linkPaddingInlineStart:16},Breadcrumb:{iconFontSize:14,itemColor:"rgba(0, 0, 0, 0.45)",lastItemColor:"rgba(0, 0, 0, 0.88)",linkColor:"rgba(0, 0, 0, 0.45)",linkHoverColor:"rgba(0, 0, 0, 0.88)",separatorColor:"rgba(0, 0, 0, 0.45)",separatorMargin:8},Dropdown:{paddingBlock:5,zIndexPopup:1050},Menu:{activeBarBorderWidth:1,activeBarHeight:2,activeBarWidth:0,collapsedIconSize:16,collapsedWidth:80,dangerItemActiveBg:"#FFF1F0",dangerItemColor:"#FF4D4F",dangerItemHoverColor:"#FF4D4F",dangerItemSelectedBg:"#FFF1F0",dangerItemSelectedColor:"#FF4D4F",darkDangerItemActiveBg:"#FF4D4F",darkDangerItemColor:"#FF4D4F",darkDangerItemHoverColor:"#FF7875",darkDangerItemSelectedBg:"#FF4D4F",darkDangerItemSelectedColor:"#FFFFFF",darkGroupTitleColor:"rgba(255, 255, 255, 0.65)",darkItemBg:"#001529",darkItemColor:"rgba(255, 255, 255, 0.65)",darkItemDisabledColor:"rgba(255, 255, 255, 0.25)",darkItemHoverBg:"rgba(255, 255, 255, 0)",darkItemHoverColor:"#FFFFFF",darkItemSelectedBg:"#1F9E56",darkItemSelectedColor:"#FFFFFF",darkPopupBg:"#001529",darkSubMenuItemBg:"#000C17",dropdownWidth:160,groupTitleColor:"rgba(0, 0, 0, 0.45)",groupTitleFontSize:14,groupTitleLineHeight:1.5714285714285714,horizontalItemBorderRadius:0,horizontalItemHoverBg:"rgba(255, 255, 255, 0)",horizontalItemHoverColor:"#1F9E56",horizontalItemSelectedBg:"rgba(255, 255, 255, 0)",horizontalItemSelectedColor:"#1F9E56",horizontalLineHeight:46,iconMarginInlineEnd:10,iconSize:14,itemActiveBg:"#EDF7F1",itemBg:"#FFFFFF",itemBorderRadius:8,itemColor:"rgba(0, 0, 0, 0.88)",itemDisabledColor:"rgba(0, 0, 0, 0.25)",itemHeight:40,itemHoverBg:"rgba(0, 0, 0, 0.06)",itemHoverColor:"rgba(0, 0, 0, 0.88)",itemMarginBlock:4,itemMarginInline:4,itemPaddingInline:16,itemSelectedBg:"#EDF7F1",itemSelectedColor:"#1F9E56",popupBg:"#FFFFFF",subMenuItemBg:"rgba(0, 0, 0, 0.02)",subMenuItemBorderRadius:4,subMenuItemSelectedColor:"#1F9E56",zIndexPopup:1050},Pagination:{itemActiveBg:"#FFFFFF",itemActiveBgDisabled:"rgba(0, 0, 0, 0.15)",itemActiveColor:"#1F9E56",itemActiveColorDisabled:"rgba(0, 0, 0, 0.25)",itemActiveColorHover:"#47AF74",itemBg:"#FFFFFF",itemInputBg:"#FFFFFF",itemLinkBg:"#FFFFFF",itemSize:32,itemSizeSM:24,miniOptionsSizeChangerTop:0},Steps:{customIconFontSize:24,customIconSize:24,customIconTop:24,descriptionMaxWidth:140,dotCurrentSize:10,dotSize:8,iconFontSize:14,iconSize:32,iconSizeSM:24,iconTop:-.5,navArrowColor:"rgba(0, 0, 0, 0.25)",navContentMaxWidth:"unset",titleLineHeight:32},Tabs:{cardBg:"rgba(0, 0, 0, 0.02)",cardGutter:2,cardHeight:40,cardHeightLG:48,cardHeightSM:32,cardPadding:"8px 16px",cardPaddingLG:"11px 16px",cardPaddingSM:"4px 8px",horizontalItemGutter:32,horizontalItemMargin:" ",horizontalItemMarginRTL:" ",horizontalItemPadding:"12px 0",horizontalItemPaddingLG:"16px 0",horizontalItemPaddingSM:"8px 0",horizontalMargin:"0 0 16px 0",inkBarColor:"#1F9E56",itemActiveColor:"#1A8548",itemColor:"rgba(0, 0, 0, 0.88)",itemHoverColor:"#47AF74",itemSelectedColor:"#1F9E56",titleFontSize:14,titleFontSizeLG:16,titleFontSizeSM:12,verticalItemMargin:"16px 0 0 0",verticalItemPadding:"8px 24px",zIndexPopup:1050},AutoComplete:{activeBorderColor:"#1F9E56",activeOutlineColor:"rgba(5, 145, 255, 0.1)",clearBg:"#FFFFFF",hoverBorderColor:"#47AF74",multipleItemBg:"rgba(0, 0, 0, 0.06)",multipleItemBorderColor:"rgba(255, 255, 255, 0)",multipleItemBorderColorDisabled:"rgba(255, 255, 255, 0)",multipleItemColorDisabled:"rgba(0, 0, 0, 0.25)",multipleItemHeight:24,multipleItemHeightLG:32,multipleItemHeightSM:16,multipleSelectorBgDisabled:"rgba(0, 0, 0, 0.04)",optionActiveBg:"rgba(0, 0, 0, 0.04)",optionFontSize:14,optionHeight:32,optionLineHeight:1.5714285714285714,optionPadding:"5px 12px",optionSelectedBg:"#EDF7F1",optionSelectedColor:"rgba(0, 0, 0, 0.88)",optionSelectedFontWeight:700,selectorBg:"#FFFFFF",showArrowPaddingInlineEnd:18,singleItemHeightLG:40,zIndexPopup:1050},Cascader:{controlItemWidth:111,controlWidth:184,dropdownHeight:180,menuPadding:4,optionPadding:"5px 12px",optionSelectedBg:"#EDF7F1",optionSelectedColor:"rgba(0, 0, 0, 0.88)",optionSelectedFontWeight:700},Input:{activeBg:"#FFFFFF",activeBorderColor:"#1F9E56",activeShadow:"0 0 0 2px rgba(5,145,255,0.1)",addonBg:"rgba(0, 0, 0, 0.02)",errorActiveShadow:"0 0 0 2px rgba(255,38,5,0.06)",hoverBg:"#FFFFFF",hoverBorderColor:"#47AF74",inputFontSize:14,inputFontSizeLG:16,inputFontSizeSM:14,paddingBlock:4,paddingBlockLG:7,paddingBlockSM:0,paddingInline:11,paddingInlineLG:11,paddingInlineSM:7,warningActiveShadow:"0 0 0 2px rgba(255,215,5,0.1)"},DatePicker:{activeBg:"#FFFFFF",activeBorderColor:"#1F9E56",activeShadow:"0 0 0 2px rgba(5,145,255,0.1)",addonBg:"rgba(0, 0, 0, 0.02)",cellActiveWithRangeBg:"#EDF7F1",cellBgDisabled:"rgba(0, 0, 0, 0.04)",cellHeight:24,cellHoverBg:"rgba(0, 0, 0, 0.04)",cellHoverWithRangeBg:"#CBE0FD",cellRangeBorderColor:"#82B4F9",cellWidth:36,errorActiveShadow:"0 0 0 2px rgba(255,38,5,0.06)",hoverBg:"#FFFFFF",hoverBorderColor:"#47AF74",inputFontSize:14,inputFontSizeLG:16,inputFontSizeSM:14,multipleItemBg:"rgba(0, 0, 0, 0.06)",multipleItemBorderColor:"rgba(255, 255, 255, 0)",multipleItemBorderColorDisabled:"rgba(255, 255, 255, 0)",multipleItemColorDisabled:"rgba(0, 0, 0, 0.25)",multipleItemHeight:24,multipleItemHeightLG:32,multipleItemHeightSM:16,multipleSelectorBgDisabled:"rgba(0, 0, 0, 0.04)",paddingBlock:4,paddingBlockLG:7,paddingBlockSM:0,paddingInline:11,paddingInlineLG:11,paddingInlineSM:7,presetsMaxWidth:200,presetsWidth:120,textHeight:40,timeCellHeight:28,timeColumnHeight:224,timeColumnWidth:56,warningActiveShadow:"0 0 0 2px rgba(255,215,5,0.1)",withoutTimeCellHeight:66,zIndexPopup:1050},Form:{inlineItemMarginBottom:0,itemMarginBottom:24,labelColonMarginInlineEnd:8,labelColonMarginInlineStart:2,labelColor:"rgba(0, 0, 0, 0.88)",labelFontSize:14,labelHeight:32,labelRequiredMarkColor:"#FF4D4F",verticalLabelMargin:0,verticalLabelPadding:"0 0 8px"},InputNumber:{activeBg:"#FFFFFF",activeBorderColor:"#1F9E56",activeShadow:"0 0 0 2px rgba(5,145,255,0.1)",addonBg:"rgba(0, 0, 0, 0.02)",controlWidth:90,errorActiveShadow:"0 0 0 2px rgba(255,38,5,0.06)",filledHandleBg:"#F0F0F0",handleActiveBg:"rgba(0, 0, 0, 0.02)",handleBg:"#FFFFFF",handleBorderColor:"#D9D9D9",handleFontSize:7,handleHoverColor:"#1F9E56",handleVisible:"auto",handleWidth:22,hoverBg:"#FFFFFF",hoverBorderColor:"#47AF74",inputFontSize:14,inputFontSizeLG:16,inputFontSizeSM:14,paddingBlock:4,paddingBlockLG:7,paddingBlockSM:0,paddingInline:11,paddingInlineLG:11,paddingInlineSM:7,warningActiveShadow:"0 0 0 2px rgba(255,215,5,0.1)"},Mentions:{activeBg:"#FFFFFF",activeBorderColor:"#1F9E56",activeShadow:"0 0 0 2px rgba(5,145,255,0.1)",addonBg:"rgba(0, 0, 0, 0.02)",controlItemWidth:100,dropdownHeight:250,errorActiveShadow:"0 0 0 2px rgba(255,38,5,0.06)",hoverBg:"#FFFFFF",hoverBorderColor:"#47AF74",inputFontSize:14,inputFontSizeLG:16,inputFontSizeSM:14,paddingBlock:4,paddingBlockLG:7,paddingBlockSM:0,paddingInline:11,paddingInlineLG:11,paddingInlineSM:7,warningActiveShadow:"0 0 0 2px rgba(255,215,5,0.1)",zIndexPopup:1050},Radio:{buttonBg:"#FFFFFF",buttonCheckedBg:"#FFFFFF",buttonCheckedBgDisabled:"rgba(0, 0, 0, 0.15)",buttonCheckedColorDisabled:"rgba(0, 0, 0, 0.25)",buttonColor:"rgba(0, 0, 0, 0.88)",buttonPaddingInline:15,buttonSolidCheckedActiveBg:"#1A8548",buttonSolidCheckedBg:"#1F9E56",buttonSolidCheckedColor:"#FFFFFF",buttonSolidCheckedHoverBg:"#47AF74",dotColorDisabled:"rgba(0, 0, 0, 0.25)",dotSize:8,radioSize:16,wrapperMarginInlineEnd:8},Rate:{starBg:"rgba(0, 0, 0, 0.06)",starColor:"#FADB14",starHoverScale:"scale(1.1)",starSize:20,starSizeLG:25,starSizeSM:15},Select:{activeBorderColor:"#1F9E56",activeOutlineColor:"rgba(5, 145, 255, 0.1)",clearBg:"#FFFFFF",hoverBorderColor:"#47AF74",multipleItemBg:"rgba(0, 0, 0, 0.06)",multipleItemBorderColor:"rgba(255, 255, 255, 0)",multipleItemBorderColorDisabled:"rgba(255, 255, 255, 0)",multipleItemColorDisabled:"rgba(0, 0, 0, 0.25)",multipleItemHeight:24,multipleItemHeightLG:32,multipleItemHeightSM:16,multipleSelectorBgDisabled:"rgba(0, 0, 0, 0.04)",optionActiveBg:"rgba(0, 0, 0, 0.04)",optionFontSize:14,optionHeight:32,optionLineHeight:1.5714285714285714,optionPadding:"5px 12px",optionSelectedBg:"#EDF7F1",optionSelectedColor:"rgba(0, 0, 0, 0.88)",optionSelectedFontWeight:700,selectorBg:"#FFFFFF",showArrowPaddingInlineEnd:18,singleItemHeightLG:40,zIndexPopup:1050},Slider:{controlSize:10,dotActiveBorderColor:"#98D2B1",dotBorderColor:"#F0F0F0",dotSize:8,handleActiveColor:"#1F9E56",handleActiveOutlineColor:"#C5E6D3",handleColor:"#98D2B1",handleColorDisabled:"#BFBFBF",handleLineWidth:2,handleLineWidthHover:2.5,handleSize:10,handleSizeHover:12,railBg:"rgba(0, 0, 0, 0.04)",railHoverBg:"rgba(0, 0, 0, 0.06)",railSize:4,trackBg:"#98D2B1",trackBgDisabled:"rgba(0, 0, 0, 0.04)",trackHoverBg:"#70C193"},Switch:{handleBg:"#FFFFFF",handleShadow:"0 2px 4px 0 rgba(0,35,11,0.2)",handleSize:18,handleSizeSM:12,innerMaxMargin:24,innerMaxMarginSM:18,innerMinMargin:9,innerMinMarginSM:6,trackHeight:22,trackHeightSM:16,trackMinWidth:44,trackMinWidthSM:28,trackPadding:2},TimePicker:{activeBg:"#FFFFFF",activeBorderColor:"#1F9E56",activeShadow:"0 0 0 2px rgba(5,145,255,0.1)",addonBg:"rgba(0, 0, 0, 0.02)",cellActiveWithRangeBg:"#EDF7F1",cellBgDisabled:"rgba(0, 0, 0, 0.04)",cellHeight:24,cellHoverBg:"rgba(0, 0, 0, 0.04)",cellHoverWithRangeBg:"#CBE0FD",cellRangeBorderColor:"#82B4F9",cellWidth:36,errorActiveShadow:"0 0 0 2px rgba(255,38,5,0.06)",hoverBg:"#FFFFFF",hoverBorderColor:"#47AF74",inputFontSize:14,inputFontSizeLG:16,inputFontSizeSM:14,multipleItemBg:"rgba(0, 0, 0, 0.06)",multipleItemBorderColor:"rgba(255, 255, 255, 0)",multipleItemBorderColorDisabled:"rgba(255, 255, 255, 0)",multipleItemColorDisabled:"rgba(0, 0, 0, 0.25)",multipleItemHeight:24,multipleItemHeightLG:32,multipleItemHeightSM:16,multipleSelectorBgDisabled:"rgba(0, 0, 0, 0.04)",paddingBlock:4,paddingBlockLG:7,paddingBlockSM:0,paddingInline:11,paddingInlineLG:11,paddingInlineSM:7,presetsMaxWidth:200,presetsWidth:120,textHeight:40,timeCellHeight:28,timeColumnHeight:224,timeColumnWidth:56,warningActiveShadow:"0 0 0 2px rgba(255,215,5,0.1)",withoutTimeCellHeight:66,zIndexPopup:1050},Transfer:{headerHeight:40,itemHeight:32,itemPaddingBlock:5,listHeight:200,listWidth:180,listWidthLG:250},TreeSelect:{indentSize:24,nodeHoverBg:"rgba(0, 0, 0, 0.04)",nodeHoverColor:"rgba(0, 0, 0, 0.88)",nodeSelectedBg:"#EDF7F1",nodeSelectedColor:"rgba(0, 0, 0, 0.88)",titleHeight:24},Upload:{actionsColor:"rgba(0, 0, 0, 0.45)",pictureCardSize:102},Avatar:{containerSize:32,containerSizeLG:40,containerSizeSM:24,groupBorderColor:"#FFFFFF",groupOverlapping:-8,groupSpace:4,iconFontSize:18,iconFontSizeLG:24,iconFontSizeSM:14,textFontSize:14,textFontSizeLG:14,textFontSizeSM:14},Badge:{dotSize:6,indicatorHeight:20,indicatorHeightSM:14,indicatorZIndex:"auto",statusSize:6,textFontSize:12,textFontSizeSM:12,textFontWeight:400},Calendar:{fullBg:"#FFFFFF",fullPanelBg:"#FFFFFF",itemActiveBg:"#EDF7F1",miniContentHeight:256,monthControlWidth:70,yearControlWidth:80},Card:{actionsBg:"#FFFFFF",actionsLiMargin:"12px 0",bodyPadding:24,bodyPaddingSM:12,extraColor:"rgba(0, 0, 0, 0.88)",headerBg:"rgba(255, 255, 255, 0)",headerFontSize:16,headerFontSizeSM:14,headerHeight:56,headerHeightSM:38,headerPadding:24,headerPaddingSM:12,tabsMarginBottom:-17},Carousel:{arrowOffset:8,arrowSize:16,dotActiveWidth:24,dotGap:4,dotHeight:3,dotOffset:12,dotWidth:16},Descriptions:{colonMarginLeft:2,colonMarginRight:8,contentColor:"rgba(0, 0, 0, 0.88)",extraColor:"rgba(0, 0, 0, 0.88)",itemPaddingBottom:16,itemPaddingEnd:16,labelBg:"rgba(0, 0, 0, 0.02)",labelColor:"rgba(0, 0, 0, 0.45)",titleColor:"rgba(0, 0, 0, 0.88)",titleMarginBottom:20},Image:{previewOperationColor:"rgba(255, 255, 255, 0.65)",previewOperationColorDisabled:"rgba(255, 255, 255, 0.25)",previewOperationHoverColor:"rgba(255, 255, 255, 0.85)",previewOperationSize:18,zIndexPopup:1080},List:{avatarMarginRight:16,contentWidth:220,descriptionFontSize:14,emptyTextPadding:16,footerBg:"rgba(255, 255, 255, 0)",headerBg:"rgba(255, 255, 255, 0)",itemPadding:"12px 0",itemPaddingLG:"16px 24px",itemPaddingSM:"8px 16px",metaMarginBottom:16,titleMarginBottom:12},Popover:{titleMinWidth:177,zIndexPopup:1030},Segmented:{itemActiveBg:"rgba(0, 0, 0, 0.15)",itemColor:"rgba(0, 0, 0, 0.65)",itemHoverBg:"rgba(0, 0, 0, 0.06)",itemHoverColor:"rgba(0, 0, 0, 0.88)",itemSelectedBg:"#FFFFFF",itemSelectedColor:"rgba(0, 0, 0, 0.88)",trackBg:"#F5F5F5",trackPadding:2},Statistic:{contentFontSize:24,titleFontSize:14},Table:{bodySortBg:"#FAFAFA",borderColor:"#F0F0F0",cellFontSize:14,cellFontSizeMD:14,cellFontSizeSM:14,cellPaddingBlock:16,cellPaddingBlockMD:12,cellPaddingBlockSM:8,cellPaddingInline:16,cellPaddingInlineMD:8,cellPaddingInlineSM:8,expandIconBg:"#FFFFFF",filterDropdownBg:"#FFFFFF",filterDropdownMenuBg:"#FFFFFF",fixedHeaderSortActiveBg:"#F0F0F0",footerBg:"#FAFAFA",footerColor:"rgba(0, 0, 0, 0.88)",headerBg:"#FAFAFA",headerBorderRadius:8,headerColor:"rgba(0, 0, 0, 0.88)",headerFilterHoverBg:"rgba(0, 0, 0, 0.06)",headerSortActiveBg:"#F0F0F0",headerSortHoverBg:"#F0F0F0",headerSplitColor:"#F0F0F0",rowExpandedBg:"rgba(0, 0, 0, 0.02)",rowHoverBg:"#FAFAFA",rowSelectedBg:"#EDF7F1",rowSelectedHoverBg:"#C5E6D3",selectionColumnWidth:32,stickyScrollBarBg:"rgba(0, 0, 0, 0.25)",stickyScrollBarBorderRadius:100},Tag:{defaultBg:"#FAFAFA",defaultColor:"rgba(0, 0, 0, 0.88)",solidTextColor:"#FFFFFF"},Timeline:{dotBg:"#FFFFFF",dotBorderWidth:2,itemPaddingBottom:20,tailColor:"#EEEFF1",tailWidth:2},Tooltip:{zIndexPopup:1070},Tour:{closeBtnSize:0,primaryNextBtnHoverBg:"#F0F0F0",primaryPrevBtnBg:"rgba(255, 255, 255, 0.15)",zIndexPopup:1070},Tree:{directoryNodeSelectedBg:"#1F9E56",directoryNodeSelectedColor:"#FFFFFF",indentSize:24,nodeHoverBg:"rgba(0, 0, 0, 0.04)",nodeHoverColor:"rgba(0, 0, 0, 0.88)",nodeSelectedBg:"#EDF7F1",nodeSelectedColor:"rgba(0, 0, 0, 0.88)",titleHeight:24},Alert:{defaultPadding:"8px 12px",withDescriptionIconSize:24,withDescriptionPadding:"20px 24px"},Drawer:{draggerSize:4,footerPaddingBlock:8,footerPaddingInline:16,zIndexPopup:1e3},Message:{contentBg:"#FFFFFF",contentPadding:"9px 12px",zIndexPopup:2010},Modal:{contentBg:"#FFFFFF",footerBg:"rgba(255, 255, 255, 0)",headerBg:"#FFFFFF",titleColor:"rgba(0, 0, 0, 0.88)",titleFontSize:16,titleLineHeight:1.5},Notification:{colorErrorBg:"rgba(255, 255, 255, 0)",colorInfoBg:"rgba(255, 255, 255, 0)",colorSuccessBg:"rgba(255, 255, 255, 0)",colorWarningBg:"rgba(255, 255, 255, 0)",width:384,zIndexPopup:2050},Popconfirm:{zIndexPopup:1060},Progress:{"circleTextFontSize 2":"1.1666666666666667em",circleTextColor:"rgba(0, 0, 0, 0.88)",circleTextFontSize:"1em",defaultColor:"#3496FF",lineBorderRadius:100,remainingColor:"rgba(0, 0, 0, 0.06)"},Result:{extraMargin:"24px 0 0 0",iconFontSize:72,subtitleFontSize:14,titleFontSize:24},Skeleton:{blockRadius:4,gradientFromColor:"rgba(0, 0, 0, 0.06)",gradientToColor:"rgba(0, 0, 0, 0.15)",paragraphLiHeight:16,paragraphMarginTop:28,titleHeight:28},Spin:{contentHeight:400,dotSize:20,dotSizeLG:32,dotSizeSM:14},Collapse:{borderlessContentBg:"rgba(255, 255, 255, 0)",borderlessContentPadding:"4px 16px 16px",contentBg:"#FFFFFF",contentPadding:"16px 16px",headerBg:"rgba(0, 0, 0, 0.02)",headerPadding:"12px 16px"},Listy:{itemPaddingBlock:12,itemPaddingInline:16}},jr={device:{Mobile:480,Tablet:768,"Desktop SM":1024,Desktop:1440},deviceMin:{Mobile:320,Tablet:768,"Desktop SM":992,Desktop:1200},deviceMax:{Mobile:767,Tablet:991,"Desktop SM":1199,Desktop:1599},hideOnDesktop:{Mobile:!0,Tablet:!0,"Desktop SM":!0,Desktop:!1},hideOnDesktopSM:{Mobile:!0,Tablet:!0,"Desktop SM":!1,Desktop:!0},hideOnTablet:{Mobile:!0,Tablet:!1,"Desktop SM":!0,Desktop:!0},hideOnMobile:{Mobile:!1,Tablet:!0,"Desktop SM":!0,Desktop:!0},onlyDesktop:{Mobile:!1,Tablet:!1,"Desktop SM":!1,Desktop:!0},onlyDesktopSM:{Mobile:!1,Tablet:!1,"Desktop SM":!0,Desktop:!1},onlyTablet:{Mobile:!1,Tablet:!0,"Desktop SM":!1,Desktop:!1},onlyMobile:{Mobile:!0,Tablet:!1,"Desktop SM":!1,Desktop:!1},gutter:{Mobile:8,Tablet:12,"Desktop SM":16,Desktop:16},pageOffset:{Mobile:16,Tablet:16,"Desktop SM":24,Desktop:24}},it={tooltipVerticalPadding:6,buttonPaddingHorizontal:15,buttonPaddingHorizontalSM:7,buttonIconOnlyFontSize:16,buttonIconOnlyFontSizeLG:18,buttonIconOnlyFontSizeSM:14,borderRadiusRound:16,borderRadiusRoundSM:12,borderRadiusRoundLG:20,buttonRoundPaddingHorizontal:16,buttonRoundPaddingHorizontalLG:20,buttonRoundPaddingHorizontalSM:12,tagPaddingHorizontal:7,tagIconSize:10,iconMarginInline:3,alertPaddingHorizontal:12,alertIconSizeLG:24,alertCloseIcon:12,alertIcon:14,messageContentHorizontal:9,messageIcon:16,switchHeight:22,switchHeightSM:16,switchPadding:2,switchPinSize:18,switchPinSizeActive:22,switchPinSizeSM:12,switchPinSizeSMActive:14,switchWidth:44,switchWidthSM:28,switchInnerMarginMin:9,switchInnerMarginMinSM:6,switchLoadingIconColor:"rgba(0, 0, 0, 0.65)",borderRadiusSwitch:100,borderRadiusMax:100,borderRadiusSwitchHandle:9,switchIconSizeSM:12,switchIconSize:14,iconSize:14,codeBg:"rgba(150, 150, 150, 0.1)",codeBorder:"rgba(100, 100, 100, 0.2)",keyboardBg:"rgba(150, 150, 150, 0.06)",keyboardBorder:"rgba(100, 100, 100, 0.2)",codeAndKeyboardHorizontalMargin:2,codeAndKeyboardHorizontalPadding:4,codeAndKeyboardTopPadding:2,codeKeyboardRadius:3,codeAndKeyboardBottomPadding:1,badgeShadowColor:"#FFFFFF",badgeShadowSize:1,badgeHeight:20,badgeHeightSM:14,badgeDotSize:6,badgeStatusSize:6,borderRadiusBadge:10,borderRadiusBadgeSM:7,spinDotSize:20,spinDotItemSize:6.75,spinDotItemSizeSM:4.5,spinDotItemSizeLG:11.25,spinDotSizeSM:14,spinDotSizeLG:32,notificationCloseButtonSize:22,notificationCloseIconSize:14,notificationNoticeIconSize:24,resultIconSize:72,resultVerticalPadding:48,resultContentHorizontalPadding:40,popConfirmIconSize:14,tourCloseSize:22,tourCoverVerticalPadding:46,tourIndicatorSize:6,tourMaskBg:"rgba(0, 0, 0, 0.5)",avatarFontSizeBase:18,avatarFontSizeSM:14,avatarFontSizeLG:24,emptyImgHeight:100,emptyImgHeightMD:40,emptyImgHeightSM:35,QRCodeMaskBackgroundColor:"rgba(255, 255, 255, 0.96)",QRCodeExpiredTextColor:"rgba(0, 0, 0, 0.88)",carouselDotWidth:16,carouselDotHeight:3,carouselDotWidthActive:24,carouselArrowSize:20,carouselDotOffset:12,carouselArrowOffset:25,modalHeaderHeight:56,modalCloseBtnSize:22,modalCloseIconSize:16,modalConfirmIconSize:22,modalCloseButtonPosition:17,drawerCloseIcon:24,segmentedPaddingHorizontal:11,segmentedPaddingHorizontalSM:7,segmentedPadding:2,segmentedLabelMinHeight:28,segmentedLabelMinHeightLG:36,segmentedLabelMinHeightSM:20,segmentedItemGap:6,segmentedIcon:14,segmentedIconLG:16,radioSize:16,radioDotSize:6,radioDotPadding:4,radioButtonPaddingInline:15,radioButtonPaddingInlineSM:7,radioRadius:8,radioDotDisabledSize:8,radioButtonGroupPadding:1,radioButtonHeight:30,radioButtonHeightSM:22,radioButtonHeightLG:38,borderRadiusRadioButton:5,borderRadiusRadioButtonSM:3,borderRadiusRadioButtonLG:7,checkboxSize:16,checkboxIndeterminateSize:8,rateStarSize:20,timelineItemHeadSize:10,timelineItemPaddingBottom:20,itemTailHorizontalPadding:4,itemTailVerticalPadding:10,collapseExpandIconHeight:22,collapseExpandIconHeightLG:24,collapseExpandIconHeightSM:20,collapseExpandIconPaddingHorizontalStart:4,collapseExpandIconPaddingHorizontalStartSM:4,collapseExpandIconPaddingHorizontalStartLG:8,selectInputPaddingHorizontalBase:11,selectInputPaddingHorizontalSM:7,selectionItemPadding:18,selectionItemPaddingLG:20,selectionItemPaddingSM:18,selectTagItemEnd:4,selectDropdownItemVertical:5,selectDropdownItemGroupHorizontal:24,inputPaddingHorizontal:11,inputPaddingHorizontalSM:7,inputPaddingHorizontalLG:11,inputPaddingVertical:4,inputPaddingVerticalSM:0,inputPaddingVerticalLG:7,transparent:"rgba(0, 0, 0, 0)",radiusNone:0,inputNumberHandleWidth:22,skeletonButtonWidth:64,skeletonInputWidth:160,skeletonButtonWidthLG:80,skeletonInputWidthLG:200,skeletonButtonWidthSM:48,skeletonInputWidthSM:120,colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerSliderHeight:8,colorPickerPreviewSize:28,paddingNone:0,colorPickerPresetColorSize:18,paginationItemPaddingInline:6,floatButtonBodyVerticalPadding:2,floatButtonBodyHorizontalPadding:4,floatButtonIconSize:18,marginNone:0,tabHorizontalSM:6,tabVerticalLG:6,tabCardGap:2,darkBtnTextHover:"rgba(255, 255, 255, 0.08)",darkBtnFilled:"rgba(255, 255, 255, 0.08)",darkBtnFilledHover:"rgba(255, 255, 255, 0.12)",tooltipVerticalPaddingSM:2,colorTextLightSolidPrimary:"#FFFFFF",emptyImageColor1:"#D9D9D9",emptyImageColor2:"#F5F5F5",emptyImageColor3:"#BFBFBF",emptyImageColor4:"#FFFFFF",emptyImageColor5:"#F0F0F0",emptyImageColor6:"#FAFAFA","test-will-be-removed-in-the-next-update":"#FF0000"},Ur={...it,emptyImageColor1:"#3E3E3E",emptyImageColor2:"#272727",emptyImageColor3:"#4F4F4F",emptyImageColor4:"#141414",emptyImageColor5:"#303030",emptyImageColor6:"#1D1D1D","test-will-be-removed-in-the-next-update":"#FFFFFF"},Xr={none:0,xs:D.borderRadiusXS,sm:D.borderRadiusSM,md:$.borderRadius,lg:D.borderRadiusLG,xl:D.borderRadiusXL,full:D.borderRadiusFull},qr={none:"none",xs:"0px 1px 2px rgba(0, 0, 0, 0.05)",sm:"0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06)",md:"0px 4px 6px rgba(0, 0, 0, 0.07), 0px 2px 4px rgba(0, 0, 0, 0.06)",lg:"0px 10px 15px rgba(0, 0, 0, 0.1), 0px 4px 6px rgba(0, 0, 0, 0.05)",xl:"0px 20px 25px rgba(0, 0, 0, 0.1), 0px 10px 10px rgba(0, 0, 0, 0.04)",modal:"0px 24px 48px rgba(0, 0, 0, 0.16)"},$r={fontFamily:{primary:`"${$.fontFamily}", sans-serif`,mono:`"${$.fontFamilyCode}", monospace`},fontWeight:{regular:ve.fontWeightNormal,medium:500,semibold:600,bold:ve.fontWeightStrong},fontSize:{xs:D.fontSizeXS,sm:D.fontSizeSM,md:$.fontSize,lg:D.fontSizeLG,xl:D.fontSizeXL,xxl:D.fontSizeHeading3,xxxl:D.fontSizeHeading1},lineHeight:{tight:D.lineHeightHeading1,normal:D.lineHeight,relaxed:D.lineHeightSM},letterSpacing:{tight:"-0.01em",normal:"0",wide:"0.02em"}},Kr={base:0,dropdown:1e3,sticky:1100,fixed:1200,modalBackdrop:1300,modal:1400,popover:1500,tooltip:1600,toast:1700},ce={default:"default",primary:"primary"},De={circle:"circle",square:"square"},Le={none:"none",count:"count",dot:"dot"},Qt={[ce.default]:"default",[ce.primary]:"primary"},we="rgba(5, 5, 5, 0.06)";function Qr(e,r){return e!==ce.default?r:Object.assign({},{"--ant-btn-border-color":we,"--ant-btn-border-color-hover":we,"--ant-btn-border-color-active":we,"--ant-btn-bg-color-hover":ve.colorFillContent,"--ant-btn-bg-color-active":ve.colorFillContent,"--ant-btn-text-color-hover":"var(--ant-btn-text-color)","--ant-btn-text-color-active":"var(--ant-btn-text-color)"},r)}const Yr=v.jsx(u.Fragment,{});function Zr(e){return e!=null&&e!==!1&&e!==""}function Jr(e,r){if(e)return e;if(!Zr(r))return Yr}function eo(e,r){if(e===Le.count)return{count:r};if(e===Le.dot)return{dot:!0}}const Yt=u.memo(function({tone:r=ce.default,shape:t=De.circle,badge:i=Le.none,badgeCount:a,content:n,children:d,description:c,icon:y,style:B,...E}){const p=eo(i,a),x=n??d??c,b=Jr(y,x);return v.jsx(C.FloatButton,{...E,...p?{badge:p}:{},...b!==void 0?{icon:b}:{},type:Qt[r],shape:t,content:x,style:Qr(r,B)})});function Zt(e){const r=[];return u.Children.forEach(e,t=>{if(u.isValidElement(t)&&t.type===u.Fragment){r.push(...Zt(t.props.children));return}r.push(t)}),r}function to(e,r,t){if(r!==ce.primary)return e;const i=Zt(e),a=i.length-1;return i.map((n,d)=>{const c=t===De.square||d===a?ce.primary:ce.default;if(!u.isValidElement(n))return n;const y=t===De.square?Object.assign({"--ant-btn-compact-connect-border-color":we},n.props.style):n.props.style;return u.cloneElement(n,{tone:c,style:y})})}const ro=u.memo(function({tone:r=ce.default,shape:t=De.circle,open:i=!1,onOpenChange:a,onClick:n,icon:d,style:c,className:y,classNames:B,styles:E,placement:p,children:x,...b}){if(!i){const N={...b,tone:r,shape:t,icon:d,className:y,style:c,onClick:V=>{n?.(V),a?.(!0)}};return v.jsx(Yt,{...N})}return v.jsx(C.FloatButton.Group,{...b,className:y,classNames:B,styles:E,placement:p,type:Qt[r],shape:t,icon:d,style:c,onClick:n,children:to(x,r,t)})}),Jt=u.memo(function({label:r,help:t,required:i,fullWidth:a=!0,status:n,ref:d,style:c,id:y,...B}){const E=u.useId(),p=y??E;return v.jsx(C.Form.Item,{label:r,htmlFor:p,help:t?v.jsx("span",{role:n==="error"?"alert":void 0,children:t}):void 0,required:i,validateStatus:n==="error"?"error":void 0,style:{marginBottom:le.TdSpacing.sm,width:a?"100%":void 0},children:v.jsx(C.Input,{id:p,ref:d,status:n,"aria-invalid":n==="error"?!0:void 0,"aria-required":i?!0:void 0,style:{width:a?"100%":void 0,...c},...B})})});function oo({label:e,help:r,required:t,fullWidth:i=!0,status:a,style:n,id:d,...c}){const y=u.useId(),B=d??y;return v.jsx(C.Form.Item,{label:e,htmlFor:B,help:r?v.jsx("span",{role:a==="error"?"alert":void 0,children:r}):void 0,required:t,validateStatus:a==="error"?"error":void 0,style:{marginBottom:le.TdSpacing.sm,width:i?"100%":void 0},children:v.jsx(C.AutoComplete,{id:B,status:a,style:{width:i?"100%":void 0,...n},...c})})}const nt=u.memo(oo);function io({label:e,help:r,required:t,fullWidth:i=!0,status:a,style:n,id:d,...c}){const y=u.useId(),B=d??y;return v.jsx(C.Form.Item,{label:e,htmlFor:B,help:r?v.jsx("span",{role:a==="error"?"alert":void 0,children:r}):void 0,required:t,validateStatus:a==="error"?"error":void 0,style:{marginBottom:le.TdSpacing.sm,width:i?"100%":void 0},children:v.jsx(C.Select,{id:B,status:a,"aria-required":t?!0:void 0,style:{width:i?"100%":void 0,...n},...c})})}const at=u.memo(io),no=u.memo(function(r){return v.jsx(C.Modal,{...r})}),ao=u.memo(function({children:r,align:t="end"}){return v.jsx(C.Flex,{gap:le.TdSpacing.sm,justify:t==="start"?"flex-start":t==="center"?"center":"flex-end",style:{width:"100%"},children:r})}),he={small:"small",default:"default",large:"large"},lt={default:"default",square:"square",round:"round",circle:"circle"},er={circle:"circle",square:"square"},st={[he.small]:"small",[he.default]:"medium",[he.large]:"large"};function lo(e,r){return e!==lt.square?r:{borderRadius:it.radiusNone,...r}}const so=u.memo(function(r){return v.jsx(C.Skeleton,{...r})}),co=u.memo(function({size:r=he.default,shape:t=lt.default,active:i=!1,style:a,...n}){return v.jsx(C.Skeleton.Button,{...n,active:i,size:st[r],shape:t,style:lo(t,a)})}),uo=u.memo(function({size:r=he.default,shape:t=er.circle,active:i=!1,...a}){return v.jsx(C.Skeleton.Avatar,{...a,active:i,size:st[r],shape:t})}),go=u.memo(function({size:r=he.default,active:t=!1,...i}){return v.jsx(C.Skeleton.Input,{...i,active:t,size:st[r]})}),Fo=u.memo(function({active:r=!1,...t}){return v.jsx(C.Skeleton.Image,{...t,active:r})}),fo=u.memo(function({active:r=!1,...t}){return v.jsx(C.Skeleton.Node,{...t,active:r})}),tr={filled:"filled",outlined:"outlined",solid:"solid"},dt={default:"default",red:"red",volcano:"volcano",orange:"orange",gold:"gold",yellow:"yellow",lime:"lime",green:"green",cyan:"cyan",blue:"blue",geekblue:"geekblue",purple:"purple",magenta:"magenta"},ct={default:"default",success:"success",processing:"processing",error:"error",warning:"warning"};function mo(e,r){if(r!==ct.default)return r;if(e!==dt.default)return e}const ho=u.memo(function({variant:r=tr.filled,color:t=dt.default,status:i=ct.default,...a}){return v.jsx(C.Tag,{...a,color:mo(t,i),variant:r})});var Me=e=>e.type==="checkbox",me=e=>e instanceof Date,K=e=>e==null;const rr=e=>typeof e=="object";var _=e=>!K(e)&&!Array.isArray(e)&&rr(e)&&!me(e),Ze=e=>_(e)&&e.target?Me(e.target)?e.target.checked:e.target.value:e,or=(e,r)=>r.split(".").some((t,i,a)=>!isNaN(Number(t))&&e.has(a.slice(0,i).join("."))),ir=e=>{const r=e.constructor&&e.constructor.prototype;return _(r)&&r.hasOwnProperty("isPrototypeOf")},Oe=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function G(e){if(e instanceof Date)return new Date(e);const r=typeof FileList<"u"&&e instanceof FileList;if(Oe&&(e instanceof Blob||r))return e;const t=Array.isArray(e);if(!t&&!(_(e)&&ir(e)))return e;const i=t?[]:Object.create(Object.getPrototypeOf(e));for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(i[a]=G(e[a]));return i}const ue={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},ne={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ie={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Qe="form",nr="root",ar=["__proto__","constructor","prototype"];var Ae=e=>/^\w*$/.test(e),w=e=>e===void 0,Ne=e=>e.split(/[.[\]'"]/g).filter(Boolean),f=(e,r,t)=>{if(!r||!_(e))return t;const i=Ae(r)?[r]:Ne(r);if(i.some(n=>ar.includes(n)))return t;const a=i.reduce((n,d)=>K(n)?void 0:n[d],e);return w(a)||a===e?w(e[r])?t:e[r]:a},Z=e=>typeof e=="boolean",Q=e=>typeof e=="function",P=(e,r,t)=>{let i=-1;const a=Ae(r)?[r]:Ne(r),n=a.length,d=n-1;for(;++i<n;){const c=a[i];let y=t;if(i!==d){const B=e[c];y=_(B)||Array.isArray(B)?B:isNaN(+a[i+1])?{}:[]}if(ar.includes(c))return;e[c]=y,e=e[c]}};const ut=u.createContext(null);ut.displayName="HookFormControlContext";const gt=()=>u.useContext(ut);var lr=(e,r,t,i=!0)=>{const a={};for(const n in e)Object.defineProperty(a,n,{get:()=>{const d=n;return r._proxyFormState[d]!==ne.all&&(r._proxyFormState[d]=!i||ne.all),t&&(t[d]=!0),e[d]}});return a};const Ft=Oe?u.useLayoutEffect:u.useEffect;function po(e){const r=gt(),{control:t=r,disabled:i,name:a,exact:n}=e||{},[d,c]=u.useState(()=>({...t._formState,defaultValues:t._defaultValues})),y=u.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Ft(()=>t._subscribe({name:a,formState:y.current,exact:n,callback:B=>{!i&&c({...t._formState,...B,defaultValues:t._defaultValues})}}),[a,i,n]),u.useEffect(()=>{y.current.isValid&&t._setValid(!0)},[t]),u.useMemo(()=>lr(d,t,y.current,!1),[d,t])}var Y=e=>typeof e=="string",Je=(e,r,t,i,a)=>Y(e)?(i&&r.watch.add(e),f(t,e,a)):Array.isArray(e)?e.map(n=>(i&&r.watch.add(n),f(t,n))):(i&&(r.watchAll=!0),t),et=e=>K(e)||!rr(e);const zt=(e,r)=>r.length===0&&!Array.isArray(e)&&!ir(e);function J(e,r,t=new WeakSet){if(e===r)return!0;if(et(e)||et(r))return Object.is(e,r);if(me(e)&&me(r))return Object.is(e.getTime(),r.getTime());const i=Object.keys(e),a=Object.keys(r);if(i.length!==a.length)return!1;if(zt(e,i)||zt(r,a))return Object.is(e,r);if(t.has(e)||t.has(r))return!0;t.add(e),t.add(r);for(const n of i){const d=e[n];if(!(n in r))return!1;if(n!=="ref"){const c=r[n];if(me(d)&&me(c)||(_(d)||Array.isArray(d))&&(_(c)||Array.isArray(c))?!J(d,c,t):!Object.is(d,c))return!1}}return!0}function bo(e){const r=gt(),{control:t=r,name:i,defaultValue:a,disabled:n,exact:d,compute:c}=e||{},y=u.useRef(a),B=u.useRef(c),E=u.useRef(void 0),p=u.useRef(t),x=u.useRef(i);B.current=c;const[b,N]=u.useState(()=>{const H=t._getWatch(i,y.current);return B.current?B.current(H):H}),V=u.useCallback(H=>{const M=Je(i,t._names,H||t._formValues,!1,y.current);return B.current?B.current(M):M},[t._formValues,t._names,i]),L=u.useCallback(H=>{if(!n){const M=Je(i,t._names,H||t._formValues,!1,y.current);if(B.current){const ae=B.current(M);J(ae,E.current)||(N(ae),E.current=ae)}else N(M)}},[t._formValues,t._names,n,i]);Ft(()=>((p.current!==t||!J(x.current,i))&&(p.current=t,x.current=i,L()),t._subscribe({name:i,formState:{values:!0},exact:d,callback:H=>{L(H.values)}})),[t,d,i,L]),u.useEffect(()=>t._removeUnmounted());const R=p.current!==t,T=x.current,z=u.useMemo(()=>{if(n)return null;const H=!R&&!J(T,i);return R||H?V():null},[n,R,i,T,V]);return z!==null?z:b}function So(e){const r=gt(),{name:t,disabled:i,control:a=r,shouldUnregister:n,defaultValue:d,exact:c=!0}=e,y=or(a._names.array,t),B=u.useMemo(()=>f(a._formValues,t,f(a._defaultValues,t,d)),[a,t,d]),E=bo({control:a,name:t,defaultValue:B,exact:c}),p=po({control:a,name:t,exact:c}),x=u.useRef(e),b=u.useRef(a.register(t,{...e.rules,value:E,...Z(e.disabled)?{disabled:e.disabled}:{}}));x.current=e;const N=u.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!f(p.errors,t)},isDirty:{enumerable:!0,get:()=>!!f(p.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!f(p.touchedFields,t)},isValidating:{enumerable:!0,get:()=>!!f(p.validatingFields,t)},error:{enumerable:!0,get:()=>f(p.errors,t)}}),[p,t]),V=u.useCallback(z=>{const H=Ze(z);f(a._fields,t)||(b.current=a.register(t,{...x.current.rules,value:H})),b.current.onChange({target:{value:Ze(z),name:t},type:ue.CHANGE})},[t,a]),L=u.useCallback(()=>b.current.onBlur({target:{value:f(a._formValues,t),name:t},type:ue.BLUR}),[t,a._formValues]),R=u.useCallback(z=>{const H=f(a._fields,t);H&&H._f&&z&&(H._f.ref={focus:()=>Q(z.focus)&&z.focus(),select:()=>Q(z.select)&&z.select(),setCustomValidity:M=>Q(z.setCustomValidity)&&z.setCustomValidity(M),reportValidity:()=>Q(z.reportValidity)&&z.reportValidity()})},[a._fields,t]),T=u.useMemo(()=>({name:t,value:E,...Z(i)||p.disabled?{disabled:p.disabled||i}:{},onChange:V,onBlur:L,ref:R}),[t,i,p.disabled,V,L,R,E]);return u.useEffect(()=>{const z=a._options.shouldUnregister||n;a.register(t,{...x.current.rules,...Z(x.current.disabled)?{disabled:x.current.disabled}:{}});const H=(M,ae)=>{const se=f(a._fields,M);se&&se._f&&(se._f.mount=ae)};if(H(t,!0),z){const M=G(f(n?a._defaultValues:a._options.values||a._defaultValues,t,f(a._options.defaultValues,t,x.current.defaultValue)));P(a._defaultValues,t,M),w(f(a._formValues,t))&&P(a._formValues,t,M)}return!y&&a.register(t),()=>{(y?z&&!a._state.action:z)?a.unregister(t):H(t,!1)}},[t,a,y,n]),u.useEffect(()=>{a._setDisabledField({disabled:i,name:t})},[i,t,a]),u.useMemo(()=>({field:T,formState:p,fieldState:N}),[T,p,N])}const yo=e=>e.render(So(e)),ft=u.createContext(null);ft.displayName="HookFormContext";const vo=()=>u.useContext(ft),Bo=({children:e,watch:r,getValues:t,getFieldState:i,setError:a,clearErrors:n,setValue:d,setValues:c,trigger:y,formState:B,resetField:E,reset:p,handleSubmit:x,unregister:b,control:N,register:V,setFocus:L,subscribe:R})=>{const T=u.useMemo(()=>({watch:r,getValues:t,getFieldState:i,setError:a,clearErrors:n,setValue:d,setValues:c,trigger:y,formState:B,resetField:E,reset:p,handleSubmit:x,unregister:b,control:N,register:V,setFocus:L,subscribe:R}),[n,N,B,i,t,x,V,p,E,a,L,d,c,R,y,b,r]);return u.createElement(ft.Provider,{value:T},u.createElement(ut.Provider,{value:T.control},e))};var xo=(e,r,t,i,a)=>r?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[i]:a||!0}}:{},sr=e=>Array.isArray(e)?e.filter(Boolean):[],Ve=e=>Array.isArray(e)?e:[e],Ht=()=>{let e=[];return{get observers(){return e},next:a=>{for(const n of e)n.next&&n.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(n=>n!==a)}}),unsubscribe:()=>{e=[]}}};function dr(e,r){const t={};for(const i in e)if(e.hasOwnProperty(i)){const a=e[i],n=r[i];if(a&&_(a)&&n){const d=dr(a,n);_(d)&&(t[i]=d)}else e[i]&&(t[i]=n)}return t}var q=e=>_(e)&&!Object.keys(e).length,mt=e=>e.type==="file",Re=e=>{if(!Oe)return!1;const r=e?e.ownerDocument:0;return e instanceof(r&&r.defaultView?r.defaultView.HTMLElement:HTMLElement)},cr=e=>e.type==="select-multiple",ht=e=>e.type==="radio",To=e=>ht(e)||Me(e),Ye=e=>Re(e)&&e.isConnected;function Co(e,r){const t=r.slice(0,-1).length;let i=0;for(;i<t;){if(K(e)){e=void 0;break}e=e[r[i]],i++}return e}function Io(e){for(const r in e)if(e.hasOwnProperty(r)&&!w(e[r]))return!1;return!0}function U(e,r){if(Y(r)&&Object.prototype.hasOwnProperty.call(e,r))return delete e[r],e;const t=Array.isArray(r)?r:Ae(r)?[r]:Ne(r),i=t.length===1?e:Co(e,t),a=t.length-1,n=t[a];return i&&delete i[n],a!==0&&(_(i)&&q(i)||Array.isArray(i)&&Io(i))&&U(e,t.slice(0,-1)),e}var ko=e=>{for(const r in e)if(Q(e[r]))return!0;return!1};function ur(e){return Array.isArray(e)||_(e)&&!ko(e)}function tt(e,r={}){for(const t in e){const i=e[t];ur(i)?(r[t]=Array.isArray(i)?[]:{},tt(i,r[t])):w(i)||(r[t]=!0)}return r}function rt(e){if(e!==!1){if(e===!0)return!0;if(Array.isArray(e)){const r=e.map(t=>rt(t));return r.some(t=>t!==void 0)?r:void 0}if(_(e)){const r={};for(const t in e){const i=rt(e[t]);w(i)||(r[t]=i)}return Object.keys(r).length?r:void 0}}}function fe(e,r,t){t||(t=tt(r));for(const i in e){const a=e[i];if(ur(a))w(r)||et(t[i])?t[i]=tt(a,Array.isArray(a)?[]:{}):fe(a,K(r)?{}:r[i],t[i]);else{const n=r[i];t[i]=!J(a,n)}}return rt(t)||{}}const Et={value:!1,isValid:!1},Pt={value:!0,isValid:!0};var gr=e=>{if(Array.isArray(e)){if(e.length>1){const r=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:r,isValid:!!r.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!w(e[0].attributes.value)?w(e[0].value)||e[0].value===""?Pt:{value:e[0].value,isValid:!0}:Pt:Et}return Et},Fr=(e,{valueAsNumber:r,valueAsDate:t,setValueAs:i})=>w(e)?e:r?e===""?NaN:e&&+e:t&&Y(e)?new Date(e):i?i(e):e;const wt={isValid:!1,value:null};var fr=e=>Array.isArray(e)?e.reduce((r,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:r,wt):wt;function Vt(e){const r=e.ref;return mt(r)?r.files:ht(r)?fr(e.refs).value:cr(r)?[...r.selectedOptions].map(({value:t})=>t):Me(r)?gr(e.refs).value:Fr(w(r.value)?e.ref.value:r.value,e)}var Do=(e,r,t,i)=>{const a={};for(const n of e){const d=f(r,n);d&&P(a,n,d._f)}return{criteriaMode:t,names:[...e],fields:a,shouldUseNativeValidation:i}},We=e=>e instanceof RegExp,Ce=e=>w(e)?e:We(e)?e.source:_(e)?We(e.value)?e.value.source:e.value:e,_t=e=>({isOnSubmit:!e||e===ne.onSubmit,isOnBlur:e===ne.onBlur,isOnChange:e===ne.onChange,isOnAll:e===ne.all,isOnTouch:e===ne.onTouched});const Lt="AsyncFunction";var Mo=e=>!!e&&!!e.validate&&!!(Q(e.validate)&&e.validate.constructor.name===Lt||_(e.validate)&&Object.values(e.validate).find(r=>r.constructor.name===Lt)),Ao=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),Rt=(e,r,t)=>!t&&(r.watchAll||r.watch.has(e)||[...r.watch].some(i=>e.startsWith(`${i}.`)));const ke=(e,r,t,i)=>{for(const a of t||Object.keys(e)){const n=f(e,a);if(n){const{_f:d,...c}=n;if(d){if(d.refs&&d.refs[0]&&r(d.refs[0],a)&&!i)return!0;if(d.ref&&r(d.ref,d.name)&&!i)return!0;if(ke(c,r))break}else if(_(c)&&ke(c,r))break}}};function Wt(e,r,t){const i=f(e,t);if(i||Ae(t))return{error:i,name:t};const a=t.split(".");for(;a.length;){const n=a.join("."),d=f(r,n),c=f(e,n);if(d&&!Array.isArray(d)&&t!==n)return{name:t};if(c&&c.type)return{name:n,error:c};if(c&&c.root&&c.root.type)return{name:`${n}.root`,error:c.root};a.pop()}return{name:t}}var zo=(e,r,t,i)=>{t(e);const{name:a,...n}=e;return q(n)||i&&Object.keys(n).length>=Object.keys(r).length||Object.keys(n).find(d=>r[d]===(!i||ne.all))},Ho=(e,r,t)=>!e||!r||e===r||Ve(e).some(i=>i&&(t?i===r:i.startsWith(r)||r.startsWith(i))),Eo=(e,r,t,i,a)=>a.isOnAll?!1:!t&&a.isOnTouch?!(r||e):(t?i.isOnBlur:a.isOnBlur)?!e:(t?i.isOnChange:a.isOnChange)?e:!0,Po=(e,r)=>!sr(f(e,r)).length&&U(e,r),Gt=(e,r,t)=>{const i=f(e,t),a=Array.isArray(i)?i:[];return P(a,nr,r[t]),P(e,t,a),e};function Ot(e,r,t="validate"){if(Y(e)||Array.isArray(e)&&e.every(Y)||Z(e)&&!e)return{type:t,message:Y(e)?e:"",ref:r}}var Se=e=>_(e)&&!We(e)?e:{value:e,message:""},Nt=async(e,r,t,i,a,n)=>{const{ref:d,refs:c,required:y,maxLength:B,minLength:E,min:p,max:x,pattern:b,validate:N,name:V,valueAsNumber:L,mount:R}=e._f,T=f(t,V);if(!R||r.has(V))return{};const z=c?c[0]:d,H=A=>{a&&z.reportValidity&&(z.setCustomValidity(Z(A)?"":A||""),z.reportValidity())},M={},ae=ht(d),se=Me(d),ze=ae||se,pe=(L||mt(d))&&w(d.value)&&w(T)||Re(d)&&d.value===""||T===""||Array.isArray(T)&&!T.length,re=xo.bind(null,V,i,M),He=(A,k,X,W=ie.maxLength,ee=ie.minLength)=>{const de=A?k:X;M[V]={type:A?W:ee,message:de,ref:d,...re(A?W:ee,de)}};if(n?!Array.isArray(T)||!T.length:y&&(!ze&&(pe||K(T))||Z(T)&&!T||se&&!gr(c).isValid||ae&&!fr(c).isValid)){const{value:A,message:k}=Y(y)?{value:!!y,message:y}:Se(y);if(A&&(M[V]={type:ie.required,message:k,ref:z,...re(ie.required,k)},!i))return H(k),M}if(!pe&&(!K(p)||!K(x))){let A,k;const X=Se(x),W=Se(p);if(!K(T)&&!isNaN(T)){const ee=d.valueAsNumber||T&&+T;K(X.value)||(A=ee>X.value),K(W.value)||(k=ee<W.value)}else{const ee=d.valueAsDate||new Date(T),de=Ee=>new Date(new Date().toDateString()+" "+Ee),be=d.type=="time",Be=d.type=="week";Y(X.value)&&T&&(A=be?de(T)>de(X.value):Be?T>X.value:ee>new Date(X.value)),Y(W.value)&&T&&(k=be?de(T)<de(W.value):Be?T<W.value:ee<new Date(W.value))}if((A||k)&&(He(!!A,X.message,W.message,ie.max,ie.min),!i))return H(M[V].message),M}if((B||E)&&!pe&&(Y(T)||n&&Array.isArray(T))){const A=Se(B),k=Se(E),X=!K(A.value)&&T.length>+A.value,W=!K(k.value)&&T.length<+k.value;if((X||W)&&(He(X,A.message,k.message),!i))return H(M[V].message),M}if(b&&!pe&&Y(T)){const{value:A,message:k}=Se(b);if(We(A)&&!T.match(A)&&(M[V]={type:ie.pattern,message:k,ref:d,...re(ie.pattern,k)},!i))return H(k),M}if(N){if(Q(N)){const A=await N(T,t),k=Ot(A,z);if(k&&(M[V]={...k,...re(ie.validate,k.message)},!i))return H(k.message),M}else if(_(N)){let A={};for(const k in N){if(!q(A)&&!i)break;const X=Ot(await N[k](T,t),z,k);X&&(A={...X,...re(k,X.message)},H(X.message),i&&(M[V]=A))}if(!q(A)&&(M[V]={ref:z,...A},!i))return M}}return H(!0),M};const wo={mode:ne.onSubmit,reValidateMode:ne.onChange,shouldFocusError:!0},mr={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function Vo(e={}){let r={...wo,...e},t={...G(mr),isLoading:Q(r.defaultValues),errors:r.errors||{},disabled:r.disabled||!1},i={},a=_(r.defaultValues)||_(r.values)?G(r.defaultValues||r.values)||{}:{},n=r.shouldUnregister?{}:G(a),d={action:!1,mount:!1,watch:!1,keepIsValid:!1},c={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},y,B=0;const E={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},p={...E};let x={...p};const b={array:Ht(),state:Ht()},N=r.criteriaMode===ne.all,V=o=>l=>{clearTimeout(B),B=setTimeout(o,l)},L=async o=>{if(!d.keepIsValid&&!r.disabled&&(p.isValid||x.isValid||o)){let l;r.resolver?(l=q((await re()).errors),R()):l=await k({fields:i,onlyCheckValid:!0,eventType:ue.VALID}),l!==t.isValid&&b.state.next({isValid:l})}},R=(o,l)=>{!r.disabled&&(p.isValidating||p.validatingFields||x.isValidating||x.validatingFields)&&((o||Array.from(c.mount)).forEach(s=>{s&&(l?P(t.validatingFields,s,l):U(t.validatingFields,s))}),b.state.next({validatingFields:t.validatingFields,isValidating:!q(t.validatingFields)}))},T=()=>{t.dirtyFields=fe(a,n)},z=(o,l=[],s,g,m=!0,h=!0)=>{if(g&&s&&!r.disabled){if(d.action=!0,h&&Array.isArray(f(i,o))){const F=s(f(i,o),g.argA,g.argB);m&&P(i,o,F)}if(h&&Array.isArray(f(t.errors,o))){const F=s(f(t.errors,o),g.argA,g.argB);m&&P(t.errors,o,F),Po(t.errors,o)}if((p.touchedFields||x.touchedFields)&&h&&Array.isArray(f(t.touchedFields,o))){const F=s(f(t.touchedFields,o),g.argA,g.argB);m&&P(t.touchedFields,o,F)}(p.dirtyFields||x.dirtyFields)&&T(),b.state.next({name:o,isDirty:W(o,l),dirtyFields:t.dirtyFields,errors:t.errors,isValid:t.isValid})}else P(n,o,l)},H=(o,l)=>{P(t.errors,o,l),b.state.next({errors:t.errors})},M=o=>{t.errors=o,b.state.next({errors:t.errors,isValid:!1})},ae=o=>{const l=Ae(o)?[o]:Ne(o);let s=n,g=a;for(let m=0;m<l.length-1;m++){const h=l[m];if(s=K(s)?s:s[h],g=K(g)?g:g[h],s===null&&g!==null)return!0}return!1},se=(o,l,s,g)=>{const m=f(i,o);if(m){if(ae(o))return;const h=w(f(n,o)),F=f(n,o,w(s)?f(a,o):s);w(F)||g&&g.defaultChecked||l?P(n,o,l?F:Vt(m._f)):be(o,F),d.mount&&!d.action&&(L(),h&&t.isDirty&&(p.isDirty||x.isDirty)&&(W()||(t.isDirty=!1,b.state.next({...t}))))}},ze=(o,l,s,g,m)=>{let h=!1,F=!1;const S={name:o};if(!r.disabled){if(!s||g){(p.isDirty||x.isDirty)&&(F=t.isDirty,t.isDirty=S.isDirty=W(),h=F!==S.isDirty);const I=J(f(a,o),l);F=!!f(t.dirtyFields,o),I!==t.isDirty?t.dirtyFields=fe(a,n):I?U(t.dirtyFields,o):P(t.dirtyFields,o,!0),S.dirtyFields=t.dirtyFields,h=h||(p.dirtyFields||x.dirtyFields)&&F!==!I}if(s){const I=f(t.touchedFields,o);I||(P(t.touchedFields,o,s),S.touchedFields=t.touchedFields,h=h||(p.touchedFields||x.touchedFields)&&I!==s)}h&&m&&b.state.next(S)}return h?S:{}},pe=(o,l,s,g)=>{const m=f(t.errors,o),h=(p.isValid||x.isValid)&&Z(l)&&t.isValid!==l;if(r.delayError&&s?(y=V(()=>H(o,s)),y(r.delayError)):(clearTimeout(B),y=null,s?P(t.errors,o,s):U(t.errors,o)),(s?!J(m,s):m)||!q(g)||h){const F={...g,...h&&Z(l)?{isValid:l}:{},errors:t.errors,name:o};t={...t,...F},b.state.next(F)}},re=async o=>(R(o,!0),await r.resolver(n,r.context,Do(o||c.mount,i,r.criteriaMode,r.shouldUseNativeValidation))),He=async o=>{const{errors:l}=await re(o);if(R(o),o)for(const s of o){const g=f(l,s);g?c.array.has(s)&&_(g)&&!Object.keys(g).some(m=>!Number.isNaN(Number(m)))?Gt(t.errors,{[s]:g},s):P(t.errors,s,g):U(t.errors,s)}else t.errors=l;return l},A=async({name:o,eventType:l})=>{if(e.validate){const s=await e.validate({formValues:n,formState:t,name:o,eventType:l});if(_(s))for(const g in s){const m=s[g];m&&Pe(`${Qe}.${g}`,{message:Y(m.message)?m.message:"",type:m.type||ie.validate})}else Y(s)||!s?Pe(Qe,{message:s||"",type:ie.validate}):Bt(Qe);return s}return!0},k=async({fields:o,onlyCheckValid:l,name:s,eventType:g,context:m={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(m.runRootValidation=!0,!await A({name:s,eventType:g})&&(m.valid=!1,l)))return m.valid;for(const h in o){const F=o[h];if(F){const{_f:S,...I}=F;if(S){const j=c.array.has(S.name),te=F._f&&Mo(F._f),oe=p.validatingFields||p.isValidating||x.validatingFields||x.isValidating;te&&oe&&R([S.name],!0);const Fe=await Nt(F,c.disabled,n,N,r.shouldUseNativeValidation&&!l,j);if(te&&oe&&R([S.name]),Fe[S.name]&&(m.valid=!1,l)||(!l&&(f(Fe,S.name)?j?Gt(t.errors,Fe,S.name):P(t.errors,S.name,Fe[S.name]):U(t.errors,S.name)),e.shouldUseNativeValidation&&Fe[S.name]))break}!q(I)&&await k({context:m,onlyCheckValid:l,fields:I,name:h,eventType:g})}}return m.valid},X=()=>{for(const o of c.unMount){const l=f(i,o);l&&(l._f.refs?l._f.refs.every(s=>!Ye(s)):!Ye(l._f.ref))&&Xe(o)}c.unMount=new Set},W=(o,l)=>!r.disabled&&(o&&l&&P(n,o,l),!J(yt(),a)),ee=(o,l,s)=>Je(o,c,{...d.mount?n:w(l)?a:Y(o)?{[o]:l}:l},s,l),de=o=>sr(f(d.mount?n:a,o,r.shouldUnregister?f(a,o,[]):[])),be=(o,l,s={},g=!1)=>{const m=f(i,o);let h=l;if(m){const F=m._f;F&&(!F.disabled&&P(n,o,Fr(l,F)),h=Re(F.ref)&&K(l)?"":l,cr(F.ref)?[...F.ref.options].forEach(S=>S.selected=h.includes(S.value)):F.refs?Me(F.ref)?F.refs.forEach(S=>{(!S.defaultChecked||!S.disabled)&&(Array.isArray(h)?S.checked=!!h.find(I=>I===S.value):S.checked=h===S.value||!!h)}):F.refs.forEach(S=>S.checked=S.value===h):mt(F.ref)?F.ref.value="":(F.ref.value=h,F.ref.type||b.state.next({name:o,values:g?n:G(n)})))}(s.shouldDirty||s.shouldTouch)&&ze(o,h,s.shouldTouch,s.shouldDirty,!0),s.shouldValidate&&Ue(o)},Be=(o,l,s,g=!1)=>{for(const m in l){if(!l.hasOwnProperty(m))return;const h=l[m],F=o+"."+m,S=f(i,F);(c.array.has(o)||_(h)||S&&!S._f)&&!me(h)?Be(F,h,s,g):be(F,h,s,g)}},Ee=(o,l,s,g)=>{const m=f(i,o),h=c.array.has(o),F=g?l:G(l),S=f(n,o),I=J(S,F);if(I||P(n,o,F),h)b.array.next({name:o,values:g?n:G(n)}),(p.isDirty||p.dirtyFields||x.isDirty||x.dirtyFields)&&s.shouldDirty&&(T(),b.state.next({name:o,dirtyFields:t.dirtyFields,isDirty:W(o,F)}));else{const j=Array.isArray(F)&&!F.length||q(F);!m||m._f||K(F)||j?be(o,F,s,g):Be(o,F,s,g)}if(!I){const j=Rt(o,c),te=g?n:G(n);b.state.next({...j&&t,name:d.mount||j?o:void 0,values:te})}},xe=(o,l,s={})=>Ee(o,l,s,!1),br=(o,l={})=>{const s=Q(o)?o(n):o;if(!J(n,s)){n={...n,...s};for(const g of c.mount)Ee(g,f(s,g),l,!0);b.state.next({...t,name:void 0,type:void 0,values:n}),l.shouldValidate&&L()}},bt=async o=>{d.mount=!0;const l=o.target;let s=l.name,g=!0;const m=f(i,s),h=I=>{g=Number.isNaN(I)||me(I)&&isNaN(I.getTime())||J(I,f(n,s,I))},F=_t(r.mode),S=_t(r.reValidateMode);if(m){let I,j;const te=l.type?Vt(m._f):Ze(o),oe=o.type===ue.BLUR||o.type===ue.FOCUS_OUT,Fe=!Ao(m._f)&&!e.validate&&!r.resolver&&!f(t.errors,s)&&!m._f.deps||Eo(oe,f(t.touchedFields,s),t.isSubmitted,S,F),Ke=Rt(s,c,oe);P(n,s,te),oe?(!l||!l.readOnly)&&(m._f.onBlur&&m._f.onBlur(o),y&&y(0)):m._f.onChange&&m._f.onChange(o);const Te=ze(s,te,oe),Cr=!q(Te)||Ke;if(!oe&&b.state.next({name:s,type:o.type,values:G(n)}),Fe)return(p.isValid||x.isValid)&&(r.mode==="onBlur"?oe&&L():oe||L()),Cr&&b.state.next({name:s,...Ke?{}:Te});if(!r.resolver&&e.validate&&await A({name:s,eventType:o.type}),!oe&&Ke&&b.state.next({...t}),r.resolver){const{errors:Mt}=await re([s]);if(R([s]),h(te),!g){!q(Te)&&b.state.next(Te);return}const Ir=Wt(t.errors,i,s),At=Wt(Mt,i,Ir.name||s);I=At.error,s=At.name,j=q(Mt)}else R([s],!0),I=(await Nt(m,c.disabled,n,N,r.shouldUseNativeValidation))[s],R([s]),h(te),g&&(I?j=!1:(p.isValid||x.isValid)&&(j=await k({fields:i,onlyCheckValid:!0,name:s,eventType:o.type})));g&&(m._f.deps&&(!Array.isArray(m._f.deps)||m._f.deps.length>0)&&Ue(m._f.deps),pe(s,j,I,Te))}},St=(o,l)=>{if(f(t.errors,l)&&o.focus)return o.focus(),1},Ue=async(o,l={})=>{let s,g;const m=Ve(o);if(r.resolver){const h=await He(w(o)?o:m);s=q(h),g=o?!m.some(F=>f(h,F)):s}else o?(g=(await Promise.all(m.map(async h=>{const F=f(i,h);return await k({fields:F&&F._f?{[h]:F}:F,eventType:ue.TRIGGER})}))).every(Boolean),!(!g&&!t.isValid)&&L()):g=s=await k({fields:i,name:o,eventType:ue.TRIGGER});return b.state.next({...!Y(o)||(p.isValid||x.isValid)&&s!==t.isValid?{}:{name:o},...r.resolver||!o?{isValid:s}:{},errors:t.errors}),l.shouldFocus&&!g&&ke(i,St,o?m:c.mount),g},yt=(o,l)=>{let s={...d.mount?n:a};return l&&(s=dr(l.dirtyFields?t.dirtyFields:t.touchedFields,s)),w(o)?s:Y(o)?f(s,o):o.map(g=>f(s,g))},vt=(o,l)=>({invalid:!!f((l||t).errors,o),isDirty:!!f((l||t).dirtyFields,o),error:f((l||t).errors,o),isValidating:!!f(t.validatingFields,o),isTouched:!!f((l||t).touchedFields,o)}),Bt=o=>{const l=o?Ve(o):void 0;l?.forEach(s=>U(t.errors,s)),l?l.forEach(s=>{b.state.next({name:s,errors:t.errors})}):b.state.next({errors:{}})},Pe=(o,l,s)=>{const g=(f(i,o,{_f:{}})._f||{}).ref,m=f(t.errors,o)||{},{ref:h,message:F,type:S,...I}=m;P(t.errors,o,{...I,...l,ref:g}),b.state.next({name:o,errors:t.errors,isValid:!1}),s&&s.shouldFocus&&g&&g.focus&&g.focus()},Sr=(o,l)=>Q(o)?b.state.subscribe({next:s=>"values"in s&&o(s.values||ee(void 0,l),s)}):ee(o,l,!0),xt=o=>b.state.subscribe({next:l=>{if(Ho(o.name,l.name,o.exact)&&zo(l,o.formState||p,Tr,o.reRenderRoot)){const s={...n};o.callback({values:s,...t,...l,defaultValues:a})}}}).unsubscribe,yr=o=>(d.mount=!0,x={...x,...o.formState},xt({...o,formState:{...E,...o.formState}})),Xe=(o,l={})=>{for(const s of o?Ve(o):c.mount)c.mount.delete(s),c.array.delete(s),l.keepValue||(U(i,s),U(n,s)),!l.keepError&&U(t.errors,s),!l.keepDirty&&U(t.dirtyFields,s),!l.keepTouched&&U(t.touchedFields,s),!l.keepIsValidating&&U(t.validatingFields,s),!r.shouldUnregister&&!l.keepDefaultValue&&U(a,s);b.state.next({values:G(n)}),b.state.next({...t,...l.keepDirty?{isDirty:W()}:{}}),!l.keepIsValid&&L()},Tt=({disabled:o,name:l})=>{if(Z(o)&&d.mount||o||c.disabled.has(l)){const m=c.disabled.has(l)!==!!o;o?c.disabled.add(l):c.disabled.delete(l),m&&d.mount&&!d.action&&L()}},qe=(o,l={})=>{let s=f(i,o);const g=Z(l.disabled)||Z(r.disabled),m=!c.registerName.has(o)&&s&&s._f&&!s._f.mount;return P(i,o,{...s||{},_f:{...s&&s._f?s._f:{ref:{name:o}},name:o,mount:!0,...l}}),c.mount.add(o),s&&!m?Tt({disabled:Z(l.disabled)?l.disabled:r.disabled,name:o}):se(o,!0,l.value),{...g?{disabled:l.disabled||r.disabled}:{},...r.progressive?{required:!!l.required,min:Ce(l.min),max:Ce(l.max),minLength:Ce(l.minLength),maxLength:Ce(l.maxLength),pattern:Ce(l.pattern)}:{},name:o,onChange:bt,onBlur:bt,ref:h=>{if(h){c.registerName.add(o),qe(o,l),c.registerName.delete(o),s=f(i,o);const F=w(h.value)&&h.querySelectorAll&&h.querySelectorAll("input,select,textarea")[0]||h,S=To(F),I=s._f.refs||[];if(S?I.find(j=>j===F):F===s._f.ref)return;P(i,o,{_f:{...s._f,...S?{refs:[...I.filter(Ye),F,...Array.isArray(f(a,o))?[{}]:[]],ref:{type:F.type,name:o}}:{ref:F}}}),se(o,!1,void 0,F)}else s=f(i,o,{}),s._f&&(s._f.mount=!1),(r.shouldUnregister||l.shouldUnregister)&&!(or(c.array,o)&&d.action)&&c.unMount.add(o)}}},$e=()=>r.shouldFocusError&&!r.shouldUseNativeValidation&&ke(i,St,c.mount),vr=o=>{Z(o)&&(b.state.next({disabled:o}),ke(i,(l,s)=>{const g=f(i,s);g&&(l.disabled=g._f.disabled||o,Array.isArray(g._f.refs)&&g._f.refs.forEach(m=>{m.disabled=g._f.disabled||o}))},0,!1))},Ct=(o,l)=>async s=>{let g;s&&(s.preventDefault&&s.preventDefault(),s.persist&&s.persist());let m=G(n);if(b.state.next({isSubmitting:!0}),r.resolver){const{errors:h,values:F}=await re();R(),t.errors=h,m=G(F)}else await k({fields:i,eventType:ue.SUBMIT});if(c.disabled.size)for(const h of c.disabled)U(m,h);if(U(t.errors,nr),q(t.errors)){b.state.next({errors:{}});try{await o(m,s)}catch(h){g=h}}else l&&await l({...t.errors},s),$e(),setTimeout($e);if(b.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:q(t.errors)&&!g,submitCount:t.submitCount+1,errors:t.errors}),g)throw g},Br=(o,l={})=>{f(i,o)&&(w(l.defaultValue)?xe(o,G(f(a,o))):(xe(o,l.defaultValue),P(a,o,G(l.defaultValue))),l.keepTouched||U(t.touchedFields,o),l.keepDirty||(U(t.dirtyFields,o),t.isDirty=l.defaultValue?W(o,G(f(a,o))):W()),l.keepError||(U(t.errors,o),p.isValid&&L()),b.state.next({...t}))},It=(o,l={})=>{const s=o?G(o):a,g=G(s),m=q(o),h=g;if(l.keepDefaultValues||(a=s),!l.keepValues){if(l.keepDirtyValues){const F=new Set([...c.mount,...Object.keys(fe(a,n))]);for(const S of Array.from(F)){const I=f(t.dirtyFields,S),j=f(n,S),te=f(h,S);I&&!w(j)?P(h,S,j):!I&&!w(te)&&xe(S,te)}}else{if(Oe&&w(o))for(const F of c.mount){const S=f(i,F);if(S&&S._f){const I=Array.isArray(S._f.refs)?S._f.refs[0]:S._f.ref;if(Re(I)){const j=I.closest("form");if(j){j.reset();break}}}}if(l.keepFieldsRef)for(const F of c.mount)xe(F,f(h,F));else i={}}if(r.shouldUnregister){if(n=l.keepDefaultValues?G(a):{},l.keepFieldsRef)for(const F of c.mount)P(n,F,f(h,F))}else n=G(h);b.array.next({values:{...h}}),b.state.next({values:{...h}})}c={mount:l.keepDirtyValues?c.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},d.mount=!p.isValid||!!l.keepIsValid||!!l.keepDirtyValues||!r.shouldUnregister&&!q(h),d.watch=!!r.shouldUnregister,d.keepIsValid=!!l.keepIsValid,d.action=!1,l.keepErrors||(t.errors={}),b.state.next({submitCount:l.keepSubmitCount?t.submitCount:0,isDirty:m?!1:l.keepDirty?t.isDirty:l.keepValues?W():!!(l.keepDefaultValues&&!J(o,a)),isSubmitted:l.keepIsSubmitted?t.isSubmitted:!1,dirtyFields:m?{}:l.keepDirtyValues?l.keepDefaultValues&&n?fe(a,n):t.dirtyFields:l.keepDefaultValues&&o?fe(a,o):l.keepDirty?t.dirtyFields:{},touchedFields:l.keepTouched?t.touchedFields:{},errors:l.keepErrors?t.errors:{},isSubmitSuccessful:l.keepIsSubmitSuccessful?t.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:a})},kt=(o,l)=>It(Q(o)?o(n):o,{...r.resetOptions,...l}),xr=(o,l={})=>{const s=f(i,o),g=s&&s._f;if(g){const m=g.refs?g.refs[0]:g.ref;m.focus&&setTimeout(()=>{m.focus(),l.shouldSelect&&Q(m.select)&&m.select()})}},Tr=o=>{t={...t,...o}},Dt={control:{register:qe,unregister:Xe,getFieldState:vt,handleSubmit:Ct,setError:Pe,_subscribe:xt,_runSchema:re,_updateIsValidating:R,_focusError:$e,_getWatch:ee,_getDirty:W,_setValid:L,_setFieldArray:z,_setDisabledField:Tt,_setErrors:M,_getFieldArray:de,_reset:It,_resetDefaultValues:()=>Q(r.defaultValues)&&r.defaultValues().then(o=>{kt(o,r.resetOptions),b.state.next({isLoading:!1})}),_removeUnmounted:X,_disableForm:vr,_subjects:b,_proxyFormState:p,get _fields(){return i},get _formValues(){return n},get _state(){return d},set _state(o){d=o},get _defaultValues(){return a},get _names(){return c},set _names(o){c=o},get _formState(){return t},get _options(){return r},set _options(o){r={...r,...o}}},subscribe:yr,trigger:Ue,register:qe,handleSubmit:Ct,watch:Sr,setValue:xe,setValues:br,getValues:yt,reset:kt,resetField:Br,resetDefaultValues:(o,l={})=>{if(a=G(o),!l.keepDirty){const s=fe(a,n);t.dirtyFields=s,t.isDirty=!q(s)}l.keepIsValid||L(),b.state.next({...t,defaultValues:a})},clearErrors:Bt,unregister:Xe,setError:Pe,setFocus:xr,getFieldState:vt};return{...Dt,formControl:Dt}}function _o(e={}){const r=u.useRef(void 0),t=u.useRef(void 0),[i,a]=u.useState(()=>({...G(mr),isLoading:Q(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Q(e.defaultValues)?void 0:e.defaultValues}));if(!r.current)if(e.formControl)r.current={...e.formControl,formState:i},e.defaultValues&&!Q(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:d,...c}=Vo(e);r.current={...c,formState:i}}const n=r.current.control;return n._options=e,Ft(()=>{const d=n._subscribe({formState:n._proxyFormState,callback:()=>a({...n._formState,defaultValues:n._defaultValues}),reRenderRoot:!0});return a(c=>({...c,isReady:!0})),n._formState.isReady=!0,d},[n]),u.useEffect(()=>n._disableForm(e.disabled),[n,e.disabled]),u.useEffect(()=>{e.mode&&(n._options.mode=e.mode),e.reValidateMode&&(n._options.reValidateMode=e.reValidateMode)},[n,e.mode,e.reValidateMode]),u.useEffect(()=>{e.errors&&(n._setErrors(e.errors),n._focusError())},[n,e.errors]),u.useEffect(()=>{e.shouldUnregister&&n._subjects.state.next({values:n._getWatch()})},[n,e.shouldUnregister]),u.useEffect(()=>{if(n._proxyFormState.isDirty){const d=n._getDirty();d!==i.isDirty&&n._subjects.state.next({isDirty:d})}},[n,i.isDirty]),u.useEffect(()=>{var d;e.values&&!J(e.values,t.current)?(n._reset(e.values,{keepFieldsRef:!0,...n._options.resetOptions}),!((d=n._options.resetOptions)===null||d===void 0)&&d.keepIsValid||n._setValid(),t.current=e.values,a(c=>({...c}))):n._resetDefaultValues()},[n,e.values]),u.useEffect(()=>{n._state.mount||(n._setValid(),n._state.mount=!0),n._state.watch&&(n._state.watch=!1,n._subjects.state.next({...n._formState})),n._removeUnmounted()}),r.current.formState=u.useMemo(()=>lr(i,n),[n,i]),r.current}function Lo({onSubmit:e,defaultValues:r,children:t,id:i,className:a,mode:n="onSubmit",reValidateMode:d="onChange"}){const c=_o({defaultValues:r,mode:n,reValidateMode:d});return v.jsx(Bo,{...c,children:v.jsx("form",{id:i,className:a,onSubmit:y=>{c.handleSubmit(async B=>{await e(B)})(y)},noValidate:!0,children:t})})}const Ro=u.memo(Lo);function Wo(e){if(e)return{required:e.required,min:e.min,max:e.max,minLength:e.minLength,maxLength:e.maxLength,pattern:e.pattern,validate:e.validate}}const Go=new Set([Jt,at,Ge,ot,nt]);function Oo(e){return Go.has(e)}function No(e,r,t){const i=t.error?.message,a=!!t.error,n=e.props;return e.type===at?u.cloneElement(e,{...n,name:r.name,value:r.value,onChange:d=>{r.onChange(d)},onBlur:r.onBlur,status:a?"error":void 0,help:i}):e.type===nt?u.cloneElement(e,{...n,name:r.name,value:r.value,onChange:d=>{r.onChange(d)},onBlur:r.onBlur,status:a?"error":void 0,help:i}):e.type===Ge?u.cloneElement(e,{...n,name:r.name,checked:!!r.value,onChange:d=>{r.onChange(d.target.checked)},onBlur:r.onBlur,status:a?"error":void 0,help:i}):e.type===ot?u.cloneElement(e,{...n,name:r.name,value:r.value??null,onChange:d=>{r.onChange(d)},onBlur:r.onBlur,status:a?"error":void 0,help:i}):u.cloneElement(e,{...n,name:r.name,value:r.value??"",onChange:d=>{r.onChange(d.target.value)},onBlur:r.onBlur,status:a?"error":void 0,help:i,ref:r.ref})}function jo({name:e,rules:r,children:t,defaultValue:i}){const{control:a}=vo();if(!u.isValidElement(t))return null;if(!Oo(t.type))throw new Error("TdFormField children must be TdInput, TdSelect, TdAutocomplete, TdCheckbox, or TdDatePicker");return v.jsx(yo,{name:e,control:a,rules:Wo(r),defaultValue:i,render:({field:n,fieldState:d})=>No(t,n,d)})}const Uo=u.memo(jo),Xo=u.memo(function(r){return v.jsx(C.Typography.Link,{...r})}),qo=u.memo(function(r){return v.jsx(C.Typography.Paragraph,{...r})}),$o=u.memo(function(r){return v.jsx(C.Typography.Text,{...r})}),Ko=u.memo(function(r){return v.jsx(C.Typography.Title,{...r})}),pt=u.createContext(null);function hr(){const e=u.useContext(pt);if(!e)throw new Error("useTdTheme must be used within a TdThemeProvider");return e}function Qo(){return u.useContext(pt)}function Yo(){const{mode:e,direction:r}=hr();return u.useMemo(()=>({mode:e,direction:r}),[e,r])}const{fontStyle:li,layout:si,opacity:di,...Zo}=ve,jt={...$,opacityImage:$.opacityImage>1?$.opacityImage/100:$.opacityImage,fontFamily:`"${$.fontFamily}", sans-serif`,fontFamilyCode:`"${$.fontFamilyCode}", monospace`},Jo={...D,...Zo},ei=e=>({algorithm:e==="dark"?C.theme.darkAlgorithm:C.theme.defaultAlgorithm,token:e==="light"?{...jt,...Jo}:jt,components:e==="light"?Kt:void 0}),je=(e="light",r="ltr",t)=>{const i=ei(e);return{...i,...t,token:{...i.token,...t?.token},components:{...i.components,...t?.components}}},ti=je("light"),ri=je("dark");function pr(e){const r=e?.toLowerCase()??"";return r==="fa"||r==="fa-ir"||r.startsWith("fa-")}function oi(e){return e?.calendar?e.calendar:pr(e?.locale)?"jalali":"gregorian"}const Ut={locale:"en-US"};function ii({children:e,mode:r="light",direction:t="ltr",locale:i=Ut,themeOptions:a}){const n=u.useMemo(()=>je(r,t,a),[r,t,a]),d=u.useMemo(()=>({...Ut,...i}),[i]),c=u.useMemo(()=>({mode:r,direction:t,locale:d,theme:n}),[r,t,d,n]),y=oi(d),B=pr(d.locale)?Dr:kr;return v.jsx(pt.Provider,{value:c,children:v.jsxs(C.ConfigProvider,{theme:n,direction:t,locale:B,children:[y==="jalali"?v.jsx(Mr,{}):null,e]})})}exports.TdSpacing=le.TdSpacing;exports.TdAlert=Ar;exports.TdAlertTypes=Xt;exports.TdAlertVariants=qt;exports.TdAlias=ve;exports.TdAutocomplete=nt;exports.TdButton=wr;exports.TdButtonSizes=Ie;exports.TdButtonTones=ye;exports.TdButtonVariants=ge;exports.TdCheckbox=Ge;exports.TdCheckboxDirections=_e;exports.TdCollapse=Rr;exports.TdColors=$t;exports.TdComponentTokens=Kt;exports.TdDarkColors=Nr;exports.TdDatePicker=ot;exports.TdFloatButton=Yt;exports.TdFloatButtonBadges=Le;exports.TdFloatButtonGroup=ro;exports.TdFloatButtonShapes=De;exports.TdFloatButtonTones=ce;exports.TdForm=Ro;exports.TdFormField=Uo;exports.TdInput=Jt;exports.TdLink=Xo;exports.TdMap=D;exports.TdModal=no;exports.TdModalActions=ao;exports.TdPalette=O;exports.TdParagraph=qo;exports.TdRadio=Wr;exports.TdRadioButton=Or;exports.TdRadioGroup=Gr;exports.TdRadius=Xr;exports.TdResponsive=jr;exports.TdSeed=$;exports.TdSelect=at;exports.TdShadows=qr;exports.TdSkeleton=so;exports.TdSkeletonAvatar=uo;exports.TdSkeletonAvatarShapes=er;exports.TdSkeletonButton=co;exports.TdSkeletonButtonShapes=lt;exports.TdSkeletonImage=Fo;exports.TdSkeletonInput=go;exports.TdSkeletonNode=fo;exports.TdSkeletonSizes=he;exports.TdStaticDarkTokens=Ur;exports.TdStaticTokens=it;exports.TdTag=ho;exports.TdTagColors=dt;exports.TdTagStatuses=ct;exports.TdTagVariants=tr;exports.TdText=$o;exports.TdThemeProvider=ii;exports.TdTitle=Ko;exports.TdTypography=$r;exports.TdZIndex=Kr;exports.createTdTheme=je;exports.tdDarkTheme=ri;exports.tdLightTheme=ti;exports.useTdTheme=hr;exports.useTdThemeContext=Qo;exports.useTdThemeMode=Yo;
2
+ //# sourceMappingURL=index.cjs.map