lu-lowcode-package-form 0.9.22 → 0.9.23
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.js
CHANGED
|
@@ -394,7 +394,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
394
394
|
transform: rotate(360deg);
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
|
-
`,useInsertStyles=function(){var kh=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iconStyles,x_=React.useContext(IconContext),$_=x_.csp;React.useEffect(function(){updateCSS(kh,"@ant-design-icons",{prepend:!0,csp:$_})},[])},_excluded$1=["icon","className","onClick","style","primaryColor","secondaryColor"],twoToneColorPalette={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors(Ff){var kh=Ff.primaryColor,x_=Ff.secondaryColor;twoToneColorPalette.primaryColor=kh,twoToneColorPalette.secondaryColor=x_||getSecondaryColor(kh),twoToneColorPalette.calculated=!!x_}function getTwoToneColors(){return _objectSpread2({},twoToneColorPalette)}var IconBase=function(kh){var x_=kh.icon,$_=kh.className,B_=kh.onClick,$P=kh.style,zP=kh.primaryColor,eme=kh.secondaryColor,tme=_objectWithoutProperties(kh,_excluded$1),nme=twoToneColorPalette;if(zP&&(nme={primaryColor:zP,secondaryColor:eme||getSecondaryColor(zP)}),useInsertStyles(),warning(isIconDefinition(x_),"icon should be icon definiton, but got ".concat(x_)),!isIconDefinition(x_))return null;var rme=x_;return rme&&typeof rme.icon=="function"&&(rme=_objectSpread2(_objectSpread2({},rme),{},{icon:rme.icon(nme.primaryColor,nme.secondaryColor)})),generate(rme.icon,"svg-".concat(rme.name),_objectSpread2({className:$_,onClick:B_,style:$P,"data-icon":rme.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},tme))};IconBase.displayName="IconReact";IconBase.getTwoToneColors=getTwoToneColors;IconBase.setTwoToneColors=setTwoToneColors;function setTwoToneColor(Ff){var kh=normalizeTwoToneColors(Ff),x_=_slicedToArray(kh,2),$_=x_[0],B_=x_[1];return IconBase.setTwoToneColors({primaryColor:$_,secondaryColor:B_})}function getTwoToneColor(){var Ff=IconBase.getTwoToneColors();return Ff.calculated?[Ff.primaryColor,Ff.secondaryColor]:Ff.primaryColor}var _excluded=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];setTwoToneColor("#1890ff");var Icon=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.className,$_=Ff.icon,B_=Ff.spin,$P=Ff.rotate,zP=Ff.tabIndex,eme=Ff.onClick,tme=Ff.twoToneColor,nme=_objectWithoutProperties(Ff,_excluded),rme=React__namespace.useContext(IconContext),ame=rme.prefixCls,ome=ame===void 0?"anticon":ame,ime=rme.rootClassName,cme=classNames(ime,ome,_defineProperty(_defineProperty({},"".concat(ome,"-").concat($_.name),!!$_.name),"".concat(ome,"-spin"),!!B_||$_.name==="loading"),x_),ume=zP;ume===void 0&&eme&&(ume=-1);var sme=$P?{msTransform:"rotate(".concat($P,"deg)"),transform:"rotate(".concat($P,"deg)")}:void 0,fme=normalizeTwoToneColors(tme),lme=_slicedToArray(fme,2),hme=lme[0],pme=lme[1];return React__namespace.createElement("span",_objectSpread2(_objectSpread2({role:"img","aria-label":$_.name},nme),{},{ref:kh,tabIndex:ume,onClick:eme,className:cme}),React__namespace.createElement(IconBase,{icon:$_,primaryColor:hme,secondaryColor:pme,style:sme}))});Icon.displayName="AntdIcon";Icon.getTwoToneColor=getTwoToneColor;Icon.setTwoToneColor=setTwoToneColor;var DeleteOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:DeleteOutlined$2}))},RefIcon$3=React__namespace.forwardRef(DeleteOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$3.displayName="DeleteOutlined");var EyeOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:EyeOutlined$2}))},RefIcon$2=React__namespace.forwardRef(EyeOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$2.displayName="EyeOutlined");var PlusOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:PlusOutlined$1}))},RefIcon$1=React__namespace.forwardRef(PlusOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$1.displayName="PlusOutlined");var UploadOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},UploadOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:UploadOutlined$1}))},RefIcon=React__namespace.forwardRef(UploadOutlined);process.env.NODE_ENV!=="production"&&(RefIcon.displayName="UploadOutlined");function handleTree(Ff){let kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"id",x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"title",$_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"parentId",B_=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"children",$P=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,zP=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0;return constructTree(Ff,kh,x_,$_,B_,$P,eme=>({value:eme[kh],title:eme[x_],key:eme[kh],disabled:eme[kh]===zP}))}function constructTree(Ff,kh,x_,$_,B_,$P,zP){if(!Array.isArray(Ff)||Ff.length===0)return[];const eme=Ff.map(tme=>({...tme,...zP(tme)}));return eme.filter(tme=>{const nme=eme.filter(rme=>tme[kh]===rme[$_]);return tme[B_]=nme.length>0?nme:[],tme[$_]===$P})}const TreeSelect=Ff=>{let{request:kh,title:x_,disabledValue:$_,callError:B_,...$P}=Ff;const[zP,eme]=React.useState(!1),[tme,nme]=React.useState([]);React.useEffect(()=>{rme()},[]);const rme=async()=>{if(kh&&typeof kh=="function"){var ame;const ome=await kh();if(ome.code>0){B_&&typeof B_=="function"&&B_(ome.message);return}let ime=handleTree(((ame=ome.data)===null||ame===void 0?void 0:ame.list)||ome.data||[],"id",x_||"title",$P.parentId||"parentId","children",0,$_);ime=[{value:0,title:"根节点",children:ime}],$P.treeData=ime,nme(ime)}$P.treeData&&nme($P.treeData),eme(!0)};return jsxRuntimeExports.jsx(BaseWrapper,{...$P,children:zP&&jsxRuntimeExports.jsx(TreeSelect$1,{...$P,treeData:tme,treeDefaultExpandAll:!0,style:{width:"100%"}})})},Select=Ff=>{let{request:kh,option_label:x_="label",option_value:$_="id",disabledValue:B_,callError:$P,options:zP,addWrapper:eme=!0,...tme}=Ff;const[nme,rme]=React.useState([]);React.useEffect(()=>{ame()},[]);const ame=async()=>{if(kh&&typeof kh=="function"){var ome;const ime=await kh();if(ime.code>0){$P&&typeof $P=="function"&&$P(ime.message);return}let cme=((ome=ime.data)===null||ome===void 0?void 0:ome.list)||ime.data;Array.isArray(cme)&&cme.length>0&&rme(cme.map(ume=>({label:ume[x_],value:ume[$_]})))}zP&&zP.length>0&&rme(zP)};return eme?jsxRuntimeExports.jsx(BaseWrapper,{...tme,children:jsxRuntimeExports.jsx(Select$1,{...tme,options:nme,style:{width:"100%"}})}):jsxRuntimeExports.jsx(Select$1,{...tme,options:nme,style:{width:"100%"}})},SingleSelect=Ff=>{let{...kh}=Ff;return jsxRuntimeExports.jsx(Select,{...kh,mode:"single"})},MultipleSelect=Ff=>{let{onChange:kh,value:x_,...$_}=Ff;const[B_,$P]=React.useState([]);return React.useEffect(()=>{if(x_&&typeof x_=="string")try{x_=JSON.parse(x_),kh(x_)}catch{}x_&&$P(x_)},[x_]),jsxRuntimeExports.jsx(Select,{...$_,onChange:kh,mode:"multiple",value:B_})},WithSingleSelect=Ff=>{let{onChange:kh,value:x_,...$_}=Ff;const[B_,$P]=React.useState("");React.useEffect(()=>{if(x_&&typeof x_=="string")try{x_=JSON.parse(x_),kh(x_)}catch{}x_&&$P(x_)},[x_]);const zP=(eme,tme)=>{kh&&typeof kh=="function"&&kh(tme),$P(tme.label)};return jsxRuntimeExports.jsx(Select,{...$_,onChange:zP,value:B_,mode:"single"})},WithMultipleSelect=Ff=>{let{onChange:kh,value:x_,...$_}=Ff;const[B_,$P]=React.useState([]);React.useEffect(()=>{if(x_&&typeof x_=="string")try{x_=JSON.parse(x_),kh(x_)}catch{}Array.isArray(x_)&&$P(x_)},[x_]);const zP=(eme,tme)=>{kh&&typeof kh=="function"&&kh(tme),tme.map(nme=>nme.label),$P(tme)};return jsxRuntimeExports.jsx(Select,{...$_,onChange:zP,value:B_,mode:"multiple"})},SearchSelect=Ff=>{let{addWrapper:kh=!0,value:x_,type:$_,defaultValue:B_,onChange:$P,option_label:zP,option_value:eme,option_search:tme,options:nme,request:rme,requestParams:ame,callError:ome,...ime}=Ff;const[cme,ume]=React.useState([]),[sme,fme]=React.useState(!1);React.useEffect(()=>{lme(ame)},[ame]);const lme=async yme=>{let mme=null;if(rme&&typeof rme=="function"){const bme=await pme(yme);bme&&Array.isArray(bme)&&(mme=x_?bme.find(Sme=>Sme.value==x_):null)}nme&&nme.length>0&&(mme=x_?nme.find(bme=>bme.value==x_):null,ume(nme)),mme&&$P(mme)},hme=lodashExports.debounce(async yme=>{const mme={...ame};mme[tme]=yme,await pme(mme)},200),pme=async yme=>{try{var mme;fme(!0);const bme=await rme(yme);if(bme.code>0){ome&&typeof ome=="function"&&ome(bme.message);return}let Sme=((mme=bme.data)===null||mme===void 0?void 0:mme.list)||bme.data;return Array.isArray(Sme)?(Sme=Sme.map(_me=>({..._me,label:_me[zP],value:_me[eme]})),ume(Sme)):ume([]),Sme}catch(bme){console.error("fetchOptions",bme)}finally{fme(!1)}},gme=yme=>{const mme=cme.find(bme=>bme.value===yme);$P(mme)};return kh?jsxRuntimeExports.jsx(BaseWrapper,{...ime,children:jsxRuntimeExports.jsx(Select$1,{notFoundContent:sme?jsxRuntimeExports.jsx(Spin,{size:"small"}):null,value:x_,...ime,disabled:!1,filterOption:!1,showSearch:!!(rme&&tme),onSearch:rme&&tme?hme:null,onChange:gme,style:{width:"100%"},mode:"single",children:cme.map((yme,mme)=>jsxRuntimeExports.jsx(Select$1.Option,{value:yme.value,disabled:!1,children:yme.label},mme))})}):jsxRuntimeExports.jsx(Select$1,{notFoundContent:sme?jsxRuntimeExports.jsx(Spin,{size:"small"}):null,value:x_,...ime,disabled:!1,filterOption:!1,showSearch:!!(rme&&tme),onSearch:rme&&tme?hme:null,onChange:gme,style:{width:"100%"},mode:"single",children:cme.map((yme,mme)=>jsxRuntimeExports.jsx(Select$1.Option,{value:yme.value,disabled:!1,children:yme.label},mme))})},Custom=React.forwardRef((Ff,kh)=>{let{value:x_,onChange:$_,...B_}=Ff;const $P=React.useRef(0),zP=()=>{$P.current++,$_($P.current)};return jsxRuntimeExports.jsxs(BaseWrapper,{...B_,children:[jsxRuntimeExports.jsxs("div",{ref:kh,children:["form-set-value:",x_]}),jsxRuntimeExports.jsx(Button$1,{onClick:zP,children:"test"})]})}),evalFormula=formula=>{let result="";try{result=eval(formula.join(""))}catch(Ff){console.error("formula error",Ff)}return result.toString()},LayoutFormRow=Ff=>{let{children:kh,layout:x_}=Ff;x_=x_||"1";const $_=zP=>{const eme=zP.split(",").map(Number),tme=24;return eme.map(nme=>nme/eme.reduce((rme,ame)=>rme+ame)*tme)},B_=React.useMemo(()=>$_(x_),[x_]);console.log("colSpans",B_);const $P=React.useMemo(()=>React.Children.toArray(kh).map((zP,eme)=>{const tme=zP.props,nme=(tme==null?void 0:tme.componentId)||(tme==null?void 0:tme.__id);return nme?(B_==null?void 0:B_[eme])&&jsxRuntimeExports.jsx(Col,{span:B_[eme],children:jsxRuntimeExports.jsx(Form.Item,{style:{marginBottom:0},label:"",name:nme,rules:[{required:tme.isRequired,message:"".concat(tme.title,"不能为空!")}],children:zP},"".concat(nme,"-form-item"))},eme):(B_==null?void 0:B_[eme])&&jsxRuntimeExports.jsx(Col,{span:B_[eme],children:zP},eme)}),[kh,B_]);return jsxRuntimeExports.jsx(Row,{gutter:24,children:$P})},FormGroupTitle=Ff=>{let{title:kh}=Ff;return kh?jsxRuntimeExports.jsx("div",{className:"fh-11 fflex fitems-center ftext-lg ffont-medium ",children:jsxRuntimeExports.jsx("span",{className:"fborder-l-4 fborder-slate-300 fpl-2 ",children:kh})}):null};function batchElements(Ff,kh){const x_=[];let $_=[];const B_=(zP,eme)=>{const tme=zP-eme.length;eme.push(...new Array(tme).fill(React.createElement("div")))};for(const zP of Ff){var $P;const{_componentName:eme}=(zP==null?void 0:zP.props)||{},tme=(($P=zP.type)===null||$P===void 0?void 0:$P.displayName)||eme;tme&&tme.startsWith("Layout.")?($_.length>0&&(B_(kh,$_),x_.push($_),$_=[]),x_.push([zP])):($_.push(zP),$_.length===kh&&(x_.push($_),$_=[]))}return $_.length>0&&(B_(kh,$_),x_.push($_)),x_}const FormContainer=React.forwardRef((Ff,kh)=>{let{cols:x_=1,children:$_}=Ff;const[B_]=Form.useForm(),[$P,zP]=React.useState(null),eme=React.useRef(null);React.useImperativeHandle(kh,()=>({formRef:B_,initializeFieldVisibility:nme}),[]),React.useEffect(()=>{tme(),zP(ume())},[$_,x_]);const tme=()=>{const sme=[];function fme(hme){var pme,gme,yme=((pme=hme.type)===null||pme===void 0?void 0:pme.displayName)||((gme=hme.props)===null||gme===void 0?void 0:gme._componentName);const{props:mme}=hme;yme&&yme.startsWith("Field.")&&sme.push(hme),mme!=null&&mme.children&&React.Children.toArray(mme==null?void 0:mme.children).forEach(Sme=>fme(Sme))}eme.current=new Map;const lme=React.Children.toArray($_);for(let hme=0;hme<lme.length;hme++){const pme=lme[hme];fme(pme)}sme.forEach(hme=>{const{componentId:pme,__id:gme,...yme}=hme==null?void 0:hme.props,mme=pme||gme;eme.current.set(mme,{children:lme.filter(bme=>{var Sme;return bme.props.withId===mme||((Sme=bme.props.withIds)===null||Sme===void 0?void 0:Sme.some(_me=>mme==_me||_me.startsWith(mme+".")))}),show:!0})}),console.log("dependencyMap",eme.current),nme()},nme=function(){let sme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const fme=B_.getFieldsValue();for(let lme of eme.current.keys())rme(lme,fme);sme&&zP(ume())},rme=(sme,fme)=>{let lme=!1;return eme.current.has(sme)&&eme.current.get(sme).children.forEach(pme=>{pme.props.withFunc&&typeof pme.props.withFunc=="function"&&(lme=ame(fme,pme)),pme.props.withFill&&ome(fme,pme)}),lme},ame=(sme,fme)=>{let lme=!1;const hme=fme.props.withFunc(sme),pme=fme.props.componentId||fme.props.__id;if(eme.current.has(pme)){const gme=eme.current.get(pme);gme.show!==hme&&(gme.show=hme,eme.current.set(pme,gme),lme=!0)}return lme},ome=async(sme,fme)=>{const lme=fme.props.withFill,hme=fme.props.withDataFetch;console.log("withFill",lme),console.log("fieldValues",sme),console.log("child",fme);let pme=[];if(lme!=null&&lme.withData&&(lme==null?void 0:lme.withData.length)>0&&hme&&typeof hme=="function")for(let yme=0;yme<(lme==null?void 0:lme.withData.length);yme++){const mme=lme==null?void 0:lme.withData[yme];let bme={};bme.tableName=mme.withTable.table_name,bme.filter={};for(let _me=0;_me<mme.withCondition.length;_me++){const{value:Cme,column:Eme}=mme.withCondition[_me];bme.filter[Eme.column_name]=ime(Cme.group_key,Cme.field_key,sme,pme)}const Sme=await hme(bme);Sme.code===0&&Sme.data.list&&pme.push({id:mme.id,data:Sme.data.list})}let gme;if(lme.value&&lme.value.length>0&&(gme=lme.value.map(yme=>{let mme="";const{insert:bme,attributes:Sme}=yme;return typeof bme!="string"?bme!=null&&bme.span&&Sme&&Sme.tagKey&&Sme.id&&(mme=ime(Sme.tagKey,Sme.id,sme,pme),Array.isArray(mme)?mme=JSON.stringify(mme):mme&&(mme='"'.concat(mme,'"'))):mme=bme,mme})),console.log("formula",gme),gme&&gme.length>0){const yme=fme.props.componentId||fme.props.__id;B_.setFieldValue(yme,evalFormula(gme))}},ime=(sme,fme,lme,hme)=>{let pme="";if(sme=="fieldsValue")if(fme.indexOf(".")>=0){const[yme,mme]=fme.split("."),bme=(lme==null?void 0:lme[yme])||[];Array.isArray(bme)?pme=bme.map(Sme=>(Sme==null?void 0:Sme[mme])||""):pme=(bme==null?void 0:bme[mme])||""}else pme=(lme==null?void 0:lme[fme])||"";else{let yme=hme.find(mme=>mme.id===sme);if(yme&&yme.data&&yme.data.length>0){var gme;pme=((gme=yme.data[0])===null||gme===void 0?void 0:gme[fme])||""}}return pme},cme=lodashExports.debounce((sme,fme)=>{const lme=B_.getFieldsValue();let hme=!1;sme.forEach(pme=>{pme.name&&pme.name.length>0&&(hme=rme(pme.name[0],lme))}),hme&&zP(ume())},200),ume=()=>{const sme=React.Children.toArray($_);return batchElements(sme.filter(lme=>{const hme=lme.props.componentId||lme.props.__id;return eme.current.has(hme)&&eme.current.get(hme).show}),x_).map((lme,hme)=>jsxRuntimeExports.jsx(Row,{gutter:[24,24],children:lme.map((pme,gme)=>{var yme;const{componentId:mme,__id:bme,_componentName:Sme,..._me}=pme.props,Cme=((yme=pme.type)===null||yme===void 0?void 0:yme.displayName)||Sme,Eme=mme||bme,Tme=Cme&&Cme.startsWith("Layout.");return jsxRuntimeExports.jsx(Col,{span:Tme?24:24/lme.length,style:{marginBottom:0},children:Tme?pme:jsxRuntimeExports.jsx(Form.Item,{style:{marginBottom:0},label:"",name:Eme,rules:[{required:_me.isRequired,message:"".concat(_me.title,"不能为空!")}],children:pme})},Eme||"col-".concat(gme))})},"row-".concat(hme)))};return jsxRuntimeExports.jsx(Form,{form:B_,className:"form-container fp-0 fw-full fh-full box-border overflow-auto",onFieldsChange:cme,children:$P})});function withWrap(Ff){return React.forwardRef((kh,x_)=>jsxRuntimeExports.jsx(Ff,{...kh,ref:x_,forwardedRef:x_}))}class FormContainerClass extends React.PureComponent{render(){const{forwardedRef:kh,...x_}=this.props;return jsxRuntimeExports.jsx(FormContainer,{...x_,ref:kh})}}const FormContainerWrapper=withWrap(Ff=>{let{forwardedRef:kh,...x_}=Ff;return jsxRuntimeExports.jsx(FormContainer,{...x_,ref:kh})}),CheckboxTree=Ff=>{let{request:kh,value:x_,onChange:$_,callError:B_,disabledValue:$P,addRoot:zP=!0,title:eme,...tme}=Ff;const[nme,rme]=React.useState(!1),[ame,ome]=React.useState([]);React.useEffect(()=>{ime()},[]),React.useEffect(()=>{if(console.log("CheckboxTree value ",x_),typeof x_=="string")try{x_=JSON.parse(x_),$_(x_)}catch{}Array.isArray(x_)&&fme(x_)},[x_]);const ime=async()=>{if(kh&&typeof kh=="function"){var Sme;const _me=await kh();if(_me.code>0){B_&&typeof B_=="function"&&B_(_me.message);return}let Cme=handleTree(((Sme=_me.data)===null||Sme===void 0?void 0:Sme.list)||_me.data||[],"id",eme||"title",(tme==null?void 0:tme.parentId)||"parentId","children",0,$P);zP&&(Cme=[{value:0,title:"根节点",children:Cme}]),tme.treeData=Cme,console.log("treeData",Cme),ome(Cme)}tme.treeData&&ome(tme.treeData),rme(!0)},[cme,ume]=React.useState([]),[sme,fme]=React.useState([]),[lme,hme]=React.useState([]),[pme,gme]=React.useState(!0),yme=Sme=>{console.log("onExpand",Sme),ume(Sme),gme(!1)},mme=Sme=>{console.log("onCheck",Sme),fme(Sme),$_(Sme)},bme=(Sme,_me)=>{console.log("onSelect",_me),hme(Sme)};return jsxRuntimeExports.jsx(BaseWrapper,{...tme,children:jsxRuntimeExports.jsx(Tree,{checkable:!0,onExpand:yme,onCheck:mme,onSelect:bme,expandedKeys:cme,autoExpandParent:pme,checkedKeys:sme,selectedKeys:lme,treeData:ame})})},Checkbox=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(Checkbox$1,{...Ff})}),CheckboxGroup=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(Checkbox$1.Group,{...Ff})}),RadioGroup=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(Radio.Group,{...Ff})}),UploadFile=Ff=>{let{value:kh,maxCount:x_,onChange:$_,...B_}=Ff;React.useEffect(()=>{if(kh){if(typeof kh=="string")try{kh=JSON.parse(kh),$_(kh)}catch{}console.log("value",kh),Array.isArray(kh)&&zP(kh)}},[kh]),x_=x_||9;const[$P,zP]=React.useState([]),eme=tme=>{let{fileList:nme}=tme;console.log("newFileList",nme),nme=nme.map(rme=>(rme.status=="done"&&rme.response&&(rme.url=rme.response),rme)),$_(nme.map(rme=>({uid:rme.uid,name:rme.name,status:rme.status,url:rme.url||rme.response||"",error:rme.error}))),zP(nme)};return jsxRuntimeExports.jsx(BaseWrapper,{...B_,children:jsxRuntimeExports.jsx(Upload,{...B_,listType:"text",maxCount:x_,onChange:eme,fileList:$P,children:!(B_!=null&&B_.disabled)&&jsxRuntimeExports.jsxs("div",{className:" fmin-w-36 fgap-1 frounded fborder-gray-300 fborder hover:fborder-[#3e92f8] hover:ftext-[#3e92f8] fcursor-pointer fh-8 fflex fitems-center fbg-white fjustify-center ",children:[jsxRuntimeExports.jsx(RefIcon,{}),"点击上传文件"]})})})},UploadImage=Ff=>{let{maxCount:kh,value:x_,onChange:$_,...B_}=Ff;React.useEffect(()=>{if(x_){if(console.log("value",x_),typeof x_=="string")try{x_=JSON.parse(x_),$_(x_)}catch{}let pme=[];if(Array.isArray(x_))for(let gme=0;gme<x_.length;gme++){let yme=x_[gme];var hme=ime.current.find(mme=>mme.uid===yme.uid);!hme||(hme.version||0)<(yme.version||0)?pme.push(yme):pme.push(hme)}zP(pme)}},[x_]),kh=kh||9;const[$P,zP]=React.useState([]),[eme,tme]=React.useState(""),[nme,rme]=React.useState(0),[ame,ome]=React.useState(!1),ime=React.useRef([]),cme=hme=>new Promise((pme,gme)=>{const yme=new FileReader;yme.readAsDataURL(hme),yme.onload=()=>pme(yme.result),yme.onerror=mme=>gme(mme)}),ume=async(hme,pme)=>{!hme.url&&!hme.preview&&(hme.preview=await cme(hme.originFileObj)),tme(hme.url||hme.preview),rme(pme),ome(!0)},sme=async(hme,pme)=>{B_!=null&&B_.disabled||zP($P.filter((gme,yme)=>yme!==pme))},fme=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"fw-full fh-full fflex fflex-col fitems-center fjustify-center fborder fborder-dashed fcursor-pointer frounded",children:[jsxRuntimeExports.jsx(RefIcon$1,{}),jsxRuntimeExports.jsx("div",{className:"fmt-2",children:"点击上传"})]})}),lme=hme=>{let{fileList:pme}=hme,gme=[];for(let bme=0;bme<pme.length;bme++){var yme=pme[bme];yme.version=new Date().getTime();var mme=ime.current.find(Sme=>Sme.uid===yme.uid);console.log("oldfile",JSON.parse(JSON.stringify(mme||{}))),mme&&mme.status!="uploading"?gme.push(mme):(yme.status=="done"&&yme.response&&(yme.url=yme.response),gme.push(yme))}ime.current=gme,zP(gme),$_(gme.map(bme=>({uid:bme.uid,name:bme.name,status:bme.status,url:bme.url||bme.response||"",error:bme.error,version:bme.version||0})))};return jsxRuntimeExports.jsxs(BaseWrapper,{...B_,children:[jsxRuntimeExports.jsx("div",{className:"fflex fgap-3 fflex-wrap",children:jsxRuntimeExports.jsx(Upload,{...B_,itemRender:(hme,pme,gme)=>{console.log("file",pme);let yme=gme.findIndex(mme=>mme.uid===pme.uid);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"fgroup fw-full fh-full fbg-transparent fborder frounded fflex fitems-center fjustify-center foverflow-hidden fcursor-pointer frelative"+(pme.status=="error"?" fborder-red-500":""),children:[jsxRuntimeExports.jsxs("div",{className:" fhidden fabsolute fw-full fh-full fbg-gray-900 fbg-opacity-50 fitems-center fjustify-center fz-10 group-hover:fflex ftext-white ftext-lg fgap-2",children:[pme.status=="done"&&jsxRuntimeExports.jsx(RefIcon$2,{onClick:()=>{ume(pme,yme)},className:"hover:ftext-gray-200"}),!(B_!=null&&B_.disabled)&&jsxRuntimeExports.jsx(RefIcon$3,{onClick:()=>{sme(pme,yme)},className:"hover:ftext-gray-200"})]}),pme.status=="uploading"&&jsxRuntimeExports.jsx("div",{className:" fw-full fh-full fflex fitems-center fjustify-center fabsolute ftop-0 fleft-0 ",children:jsxRuntimeExports.jsx(Spin,{})}),jsxRuntimeExports.jsx("img",{src:pme.url||pme.thumbUrl,alt:"Example Image",class:"fmax-w-full fmax-h-full fobject-contain "})]},"file-".concat(pme.uid))})},listType:"picture-card",fileList:$P,maxCount:kh,onPreview:ume,onChange:lme,children:$P.length>=kh||B_!=null&&B_.disabled?null:fme})}),eme&&jsxRuntimeExports.jsx(Image$1.PreviewGroup,{preview:{visible:ame,current:nme,onVisibleChange:hme=>ome(hme),onChange:hme=>{rme(hme)}},children:$P.map((hme,pme)=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Image$1,{wrapperStyle:{display:"none"},src:hme.url})}))})]})},Switch=Ff=>{let{value:kh,...x_}=Ff;const[$_,B_]=React.useState(!1);return React.useEffect(()=>{let $P=!1;typeof kh=="boolean"?$P=kh:typeof kh=="string"?$P=kh=="1"||kh=="true":typeof kh=="number"&&($P=kh==1),B_($P),x_==null||x_.onChange($P)},[kh]),jsxRuntimeExports.jsx(BaseWrapper,{...x_,children:jsxRuntimeExports.jsx(Switch$1,{...x_,value:$_})})};var zhCn={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_(requireDayjs_min())})(commonjsGlobal,function(x_){function $_(zP){return zP&&typeof zP=="object"&&"default"in zP?zP:{default:zP}}var B_=$_(x_),$P={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(zP,eme){return eme==="W"?zP+"周":zP+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(zP,eme){var tme=100*zP+eme;return tme<600?"凌晨":tme<900?"早上":tme<1100?"上午":tme<1300?"中午":tme<1800?"下午":"晚上"}};return B_.default.locale($P,null,!0),$P})})(zhCn);var locale$2={locale:"zh_CN",yearFormat:"YYYY年",cellDateFormat:"D",cellMeridiemFormat:"A",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};const locale$1={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},locale={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},locale$2),timePickerLocale:Object.assign({},locale$1)};locale.lang.ok="确定";var updateLocale$1={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_()})(commonjsGlobal,function(){return function(x_,$_,B_){B_.updateLocale=function($P,zP){var eme=B_.Ls[$P];if(eme)return(zP?Object.keys(zP):[]).forEach(function(tme){eme[tme]=zP[tme]}),eme}}})})(updateLocale$1);var updateLocaleExports=updateLocale$1.exports;const updateLocale=getDefaultExportFromCjs(updateLocaleExports);dayjs.extend(updateLocale);dayjs.updateLocale("zh-cn",{weekStart:0});const DatePicker=Ff=>{let{datetype:kh,value:x_,onChange:$_,...B_}=Ff;kh=kh||"date";const[$P,zP]=React.useState(B_==null?void 0:B_.picker),[eme,tme]=React.useState(B_==null?void 0:B_.format),[nme,rme]=React.useState(null),[ame,ome]=React.useState(!1),[ime,cme]=React.useState(!1);React.useEffect(()=>{if(x_){const sme=dayjs(x_);rme(sme)}},[x_,eme,$P]);const ume=(sme,fme)=>{$_(fme)};return React.useEffect(()=>{switch(zP("date"),ome(!1),kh){case"date":zP("date"),tme("YYYY-MM-DD"),cme(!1);break;case"datetime":ome(!0),zP("datetime"),tme("YYYY-MM-DD HH:mm:ss"),cme(!0);break;case"month":zP("month"),cme(!1);break;case"year":zP("year"),cme(!1);break}},[kh]),jsxRuntimeExports.jsx(BaseWrapper,{...B_,children:jsxRuntimeExports.jsx(DatePicker$1,{locale,...B_,picker:$P,format:eme,style:{width:"100%"},onChange:ume,value:nme,showTime:ame,needConfirm:ime})})},TableCol=Ff=>{let{children:kh,width:x_,...$_}=Ff;const[B_,$P]=React.useState(0);return React.useEffect(()=>{$P(x_)},[x_]),jsxRuntimeExports.jsx("div",{className:"fflex-1",style:{minWidth:"".concat(B_,"px")},...$_,children:kh})},TableAction=Ff=>{let{label:kh,subTableIndex:x_,children:$_,...B_}=Ff;return jsxRuntimeExports.jsx("div",{className:"fw-16",children:jsxRuntimeExports.jsxs("div",{className:"frelative fw-full fh-full fflex fflex-col",children:[kh&&x_===0&&jsxRuntimeExports.jsx("div",{className:"fh-12 ffont-semibold fbg-gray-100 ftext-sm fflex fjustify-between fitems-center fpx-2 fborder-b",children:kh}),jsxRuntimeExports.jsx("div",{className:"fw-full fflex-1 fflex fitems-center fjustify-center fp-2 ",children:$_})]})})},Table=Ff=>{let{children:kh,value:x_,onChange:$_,...B_}=Ff;const[$P,zP]=React.useState([{}]),eme=React.useRef($P),tme=React.useRef(new Map),[nme,rme]=React.useState({}),ame=B_.componentId||B_.__id,ome=mme=>{zP(mme),eme.current=mme};React.useEffect(()=>{if(console.log("value useEffect ",JSON.stringify(x_)),x_&&typeof x_=="string")try{x_=JSON.parse(x_),$_(x_)}catch{}x_&&Array.isArray(x_)&&!lodashExports.isEqual(eme.current,x_)&&(console.log("useEffect setRows"),ome(x_))},[x_]),React.useEffect(()=>{console.log("children useEffect ",kh),ime()},[kh]);const ime=React.useCallback(()=>{tme.current.clear();const mme=React.Children.toArray(kh);mme.forEach(bme=>{const{componentId:Sme,__id:_me,...Cme}=bme.props,Eme="".concat(ame,".").concat(Sme||_me);tme.current.set(Eme,{children:mme.filter(Tme=>{var Rme;return Tme.props.withId===Eme||((Rme=Tme.props.withIds)===null||Rme===void 0?void 0:Rme.includes(Eme))}),show:!0})}),ume()},[kh,ame]),cme=React.useCallback(mme=>{const bme={};for(let Sme in mme)bme["".concat(ame,".").concat(Sme)]=mme[Sme]||"";return bme},[ame]),ume=React.useCallback(()=>{$P.forEach((mme,bme)=>{const Sme=cme(mme);for(let _me of tme.current.keys())sme(_me,Sme,bme)})},[$P,cme]),sme=React.useCallback((mme,bme,Sme)=>{let _me=!1;const Cme="".concat(ame,".").concat(mme);return tme.current.has(Cme)&&tme.current.get(Cme).children.forEach(Tme=>{Tme.props.withFunc&&typeof Tme.props.withFunc=="function"&&(_me=fme(bme,Tme)),Tme.props.withFill&&lme(bme,Tme,Sme)}),_me},[ame,$P]),fme=React.useCallback((mme,bme)=>{let Sme=!1;const _me=bme.props.withFunc(mme),Cme=bme.props.componentId||bme.props.__id;if(tme.current.has(Cme)){const Eme=tme.current.get(Cme);Eme.show!==_me&&(Eme.show=_me,tme.current.set(Cme,Eme),Sme=!0)}return Sme},[]),lme=React.useCallback(async(mme,bme,Sme)=>{const _me=bme.props.withFill,Cme=bme.props.withDataFetch;let Eme=[];if(_me!=null&&_me.withData&&(_me==null?void 0:_me.withData.length)>0&&Cme&&typeof Cme=="function")for(let Rme=0;Rme<(_me==null?void 0:_me.withData.length);Rme++){const Pme=_me==null?void 0:_me.withData[Rme];let $me={};$me.tableName=Pme.withTable.table_name,$me.filter={};for(let Mme=0;Mme<Pme.withCondition.length;Mme++){const{value:Nme,column:Ime}=Pme.withCondition[Mme];$me.filter[Ime.column_name]=hme(Nme.group_key,Nme.field_key,mme,Eme)}const Dme=await Cme($me);Dme.code===0&&Dme.data.list&&Eme.push({id:Pme.id,data:Dme.data.list})}let Tme;if(_me.value&&_me.value.length>0&&(Tme=_me.value.map(Rme=>{let Pme="";const{insert:$me,attributes:Dme}=Rme;return typeof $me!="string"?$me!=null&&$me.span&&Dme&&Dme.tagKey&&Dme.id&&(Pme=hme(Dme.tagKey,Dme.id,mme,Eme),Pme&&(Pme='"'.concat(Pme,'"'))):Pme=$me,Pme})),console.log("formula",Tme),Tme&&Tme.length>0){const Rme=bme.props.componentId||bme.props.__id,Pme=evalFormula(Tme);console.log("formulaResult",Pme),console.log("handleFieldsWithFill setRows");const $me=[...$P];$me[Sme][Rme]=Pme,ome($me)}},[$P]),hme=React.useCallback((mme,bme,Sme,_me)=>{let Cme="";if(mme==="fieldsValue")Cme=(Sme==null?void 0:Sme[bme])||"";else{let Tme=_me.find(Rme=>Rme.id===mme);if(Tme&&Tme.data&&Tme.data.length>0){var Eme;Cme=((Eme=Tme.data[0])===null||Eme===void 0?void 0:Eme[bme])||""}}return Cme},[]),pme=React.useCallback((mme,bme,Sme)=>{var _me;const Cme=[...$P];Cme[mme]={...Cme[mme],[bme]:(Sme==null||(_me=Sme.target)===null||_me===void 0?void 0:_me.value)||""},console.log("handleInputChange setRows"),ome(Cme),rme({rowIndex:mme,identifier:bme,value:cme(Cme[mme])})},[$P,sme,cme,$_]),gme=mme=>{const bme=[...$P];bme.splice(mme,1),console.log("handleDeleteRow setRows"),ome(bme)},yme=()=>{console.log("addRow setRows"),ome([...$P,{}])};return React.useEffect(()=>{console.log("rows changed rows",JSON.stringify(eme.current)),console.log("rows changed value",JSON.stringify(x_)),!lodashExports.isEqual(eme.current,x_)&&(console.log("noreq"),typeof $_=="function"&&$_(eme.current))},[$P]),React.useEffect(()=>{nme&&nme.identifier&&sme(nme.identifier,nme.value,nme.rowIndex)},[nme]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"fw-full fmin-h-20 foverflow-x-auto",children:$P.map((mme,bme)=>jsxRuntimeExports.jsxs("div",{className:"fborder-b finline-flex fflex-wrap fmin-w-full",style:{width:"max-content"},children:[React.Children.map(kh,(Sme,_me)=>{var Cme;const Eme=(Sme==null||(Cme=Sme.props)===null||Cme===void 0?void 0:Cme.__id)||_me;return(mme==null?void 0:mme[Eme])===void 0&&(mme[Eme]=""),jsxRuntimeExports.jsx(TableCol,{width:100,children:React.cloneElement(Sme,{key:"row_".concat(bme,"_child_").concat(_me),subTable:!0,subTableIndex:bme,value:mme[Eme]||"",onChange:Tme=>pme(bme,Eme,Tme)})},"row_".concat(bme,"_col_").concat(_me))}),jsxRuntimeExports.jsx(TableAction,{subTable:!0,subTableIndex:bme,label:"操作",children:jsxRuntimeExports.jsx(RefIcon$3,{className:"fcursor-pointer",onClick:()=>gme(bme)})},"row_".concat(bme,"_action"))]},bme))}),jsxRuntimeExports.jsx(Button$1,{onClick:yme,className:"fmy-2",children:"新增一行"})]})},OptionSetter=Ff=>jsxRuntimeExports.jsx("div",{children:"sdfsdfsdf"});function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$3(Ff,kh){return Ff===kh||Ff!==Ff&&kh!==kh}var eq_1=eq$3,eq$2=eq_1;function assocIndexOf$4(Ff,kh){for(var x_=Ff.length;x_--;)if(eq$2(Ff[x_][0],kh))return x_;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(Ff){var kh=this.__data__,x_=assocIndexOf$3(kh,Ff);if(x_<0)return!1;var $_=kh.length-1;return x_==$_?kh.pop():splice.call(kh,x_,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(Ff){var kh=this.__data__,x_=assocIndexOf$2(kh,Ff);return x_<0?void 0:kh[x_][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(Ff){return assocIndexOf$1(this.__data__,Ff)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(Ff,kh){var x_=this.__data__,$_=assocIndexOf(x_,Ff);return $_<0?(++this.size,x_.push([Ff,kh])):x_[$_][1]=kh,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.clear();++kh<x_;){var $_=Ff[kh];this.set($_[0],$_[1])}}ListCache$4.prototype.clear=listCacheClear;ListCache$4.prototype.delete=listCacheDelete;ListCache$4.prototype.get=listCacheGet;ListCache$4.prototype.has=listCacheHas;ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,ListCache$3=_ListCache;function stackClear$1(){this.__data__=new ListCache$3,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(Ff){var kh=this.__data__,x_=kh.delete(Ff);return this.size=kh.size,x_}var _stackDelete=stackDelete$1;function stackGet$1(Ff){return this.__data__.get(Ff)}var _stackGet=stackGet$1;function stackHas$1(Ff){return this.__data__.has(Ff)}var _stackHas=stackHas$1;function isObject$2(Ff){var kh=typeof Ff;return Ff!=null&&(kh=="object"||kh=="function")}var isObject_1=isObject$2,baseGetTag$3=_baseGetTag,isObject$1=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(Ff){if(!isObject$1(Ff))return!1;var kh=baseGetTag$3(Ff);return kh==funcTag$1||kh==genTag||kh==asyncTag||kh==proxyTag}var isFunction_1=isFunction$2,root$6=_root,coreJsData$1=root$6["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var Ff=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return Ff?"Symbol(src)_1."+Ff:""}();function isMasked$1(Ff){return!!maskSrcKey&&maskSrcKey in Ff}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(Ff){if(Ff!=null){try{return funcToString$1.call(Ff)}catch{}try{return Ff+""}catch{}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$9=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$8=objectProto$9.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$8).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(Ff){if(!isObject(Ff)||isMasked(Ff))return!1;var kh=isFunction$1(Ff)?reIsNative:reIsHostCtor;return kh.test(toSource$1(Ff))}var _baseIsNative=baseIsNative$1;function getValue$1(Ff,kh){return Ff==null?void 0:Ff[kh]}var _getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue;function getNative$6(Ff,kh){var x_=getValue(Ff,kh);return baseIsNative(x_)?x_:void 0}var _getNative=getNative$6,getNative$5=_getNative,root$5=_root,Map$4=getNative$5(root$5,"Map"),_Map=Map$4,getNative$4=_getNative,nativeCreate$4=getNative$4(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(Ff){var kh=this.has(Ff)&&delete this.__data__[Ff];return this.size-=kh?1:0,kh}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty;function hashGet$1(Ff){var kh=this.__data__;if(nativeCreate$2){var x_=kh[Ff];return x_===HASH_UNDEFINED$2?void 0:x_}return hasOwnProperty$7.call(kh,Ff)?kh[Ff]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function hashHas$1(Ff){var kh=this.__data__;return nativeCreate$1?kh[Ff]!==void 0:hasOwnProperty$6.call(kh,Ff)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(Ff,kh){var x_=this.__data__;return this.size+=this.has(Ff)?0:1,x_[Ff]=nativeCreate&&kh===void 0?HASH_UNDEFINED$1:kh,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.clear();++kh<x_;){var $_=Ff[kh];this.set($_[0],$_[1])}}Hash$1.prototype.clear=hashClear;Hash$1.prototype.delete=hashDelete;Hash$1.prototype.get=hashGet;Hash$1.prototype.has=hashHas;Hash$1.prototype.set=hashSet;var _Hash=Hash$1,Hash=_Hash,ListCache$2=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$2),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(Ff){var kh=typeof Ff;return kh=="string"||kh=="number"||kh=="symbol"||kh=="boolean"?Ff!=="__proto__":Ff===null}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(Ff,kh){var x_=Ff.__data__;return isKeyable(kh)?x_[typeof kh=="string"?"string":"hash"]:x_.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(Ff){var kh=getMapData$3(this,Ff).delete(Ff);return this.size-=kh?1:0,kh}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(Ff){return getMapData$2(this,Ff).get(Ff)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(Ff){return getMapData$1(this,Ff).has(Ff)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(Ff,kh){var x_=getMapData(this,Ff),$_=x_.size;return x_.set(Ff,kh),this.size+=x_.size==$_?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$2(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.clear();++kh<x_;){var $_=Ff[kh];this.set($_[0],$_[1])}}MapCache$2.prototype.clear=mapCacheClear;MapCache$2.prototype.delete=mapCacheDelete;MapCache$2.prototype.get=mapCacheGet;MapCache$2.prototype.has=mapCacheHas;MapCache$2.prototype.set=mapCacheSet;var _MapCache=MapCache$2,ListCache$1=_ListCache,Map$2=_Map,MapCache$1=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(Ff,kh){var x_=this.__data__;if(x_ instanceof ListCache$1){var $_=x_.__data__;if(!Map$2||$_.length<LARGE_ARRAY_SIZE-1)return $_.push([Ff,kh]),this.size=++x_.size,this;x_=this.__data__=new MapCache$1($_)}return x_.set(Ff,kh),this.size=x_.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$1(Ff){var kh=this.__data__=new ListCache(Ff);this.size=kh.size}Stack$1.prototype.clear=stackClear;Stack$1.prototype.delete=stackDelete;Stack$1.prototype.get=stackGet;Stack$1.prototype.has=stackHas;Stack$1.prototype.set=stackSet;var _Stack=Stack$1,HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(Ff){return this.__data__.set(Ff,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(Ff){return this.__data__.has(Ff)}var _setCacheHas=setCacheHas$1,MapCache=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.__data__=new MapCache;++kh<x_;)this.add(Ff[kh])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd;SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(Ff,kh){for(var x_=-1,$_=Ff==null?0:Ff.length;++x_<$_;)if(kh(Ff[x_],x_,Ff))return!0;return!1}var _arraySome=arraySome$1;function cacheHas$1(Ff,kh){return Ff.has(kh)}var _cacheHas=cacheHas$1,SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas,COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays$2(Ff,kh,x_,$_,B_,$P){var zP=x_&COMPARE_PARTIAL_FLAG$3,eme=Ff.length,tme=kh.length;if(eme!=tme&&!(zP&&tme>eme))return!1;var nme=$P.get(Ff),rme=$P.get(kh);if(nme&&rme)return nme==kh&&rme==Ff;var ame=-1,ome=!0,ime=x_&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for($P.set(Ff,kh),$P.set(kh,Ff);++ame<eme;){var cme=Ff[ame],ume=kh[ame];if($_)var sme=zP?$_(ume,cme,ame,kh,Ff,$P):$_(cme,ume,ame,Ff,kh,$P);if(sme!==void 0){if(sme)continue;ome=!1;break}if(ime){if(!arraySome(kh,function(fme,lme){if(!cacheHas(ime,lme)&&(cme===fme||B_(cme,fme,x_,$_,$P)))return ime.push(lme)})){ome=!1;break}}else if(!(cme===ume||B_(cme,ume,x_,$_,$P))){ome=!1;break}}return $P.delete(Ff),$P.delete(kh),ome}var _equalArrays=equalArrays$2,root$4=_root,Uint8Array$2=root$4.Uint8Array,_Uint8Array=Uint8Array$2;function mapToArray$1(Ff){var kh=-1,x_=Array(Ff.size);return Ff.forEach(function($_,B_){x_[++kh]=[B_,$_]}),x_}var _mapToArray=mapToArray$1;function setToArray$1(Ff){var kh=-1,x_=Array(Ff.size);return Ff.forEach(function($_){x_[++kh]=$_}),x_}var _setToArray=setToArray$1,Symbol$1=_Symbol,Uint8Array$1=_Uint8Array,eq$1=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray,COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag$1(Ff,kh,x_,$_,B_,$P,zP){switch(x_){case dataViewTag$2:if(Ff.byteLength!=kh.byteLength||Ff.byteOffset!=kh.byteOffset)return!1;Ff=Ff.buffer,kh=kh.buffer;case arrayBufferTag$1:return!(Ff.byteLength!=kh.byteLength||!$P(new Uint8Array$1(Ff),new Uint8Array$1(kh)));case boolTag$1:case dateTag$1:case numberTag$1:return eq$1(+Ff,+kh);case errorTag$1:return Ff.name==kh.name&&Ff.message==kh.message;case regexpTag$1:case stringTag$1:return Ff==kh+"";case mapTag$2:var eme=mapToArray;case setTag$2:var tme=$_&COMPARE_PARTIAL_FLAG$2;if(eme||(eme=setToArray),Ff.size!=kh.size&&!tme)return!1;var nme=zP.get(Ff);if(nme)return nme==kh;$_|=COMPARE_UNORDERED_FLAG,zP.set(Ff,kh);var rme=equalArrays$1(eme(Ff),eme(kh),$_,B_,$P,zP);return zP.delete(Ff),rme;case symbolTag:if(symbolValueOf)return symbolValueOf.call(Ff)==symbolValueOf.call(kh)}return!1}var _equalByTag=equalByTag$1;function arrayPush$1(Ff,kh){for(var x_=-1,$_=kh.length,B_=Ff.length;++x_<$_;)Ff[B_+x_]=kh[x_];return Ff}var _arrayPush=arrayPush$1,arrayPush=_arrayPush,isArray$2=isArray_1;function baseGetAllKeys$1(Ff,kh,x_){var $_=kh(Ff);return isArray$2(Ff)?$_:arrayPush($_,x_(Ff))}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(Ff,kh){for(var x_=-1,$_=Ff==null?0:Ff.length,B_=0,$P=[];++x_<$_;){var zP=Ff[x_];kh(zP,x_,Ff)&&($P[B_++]=zP)}return $P}var _arrayFilter=arrayFilter$1;function stubArray$1(){return[]}var stubArray_1=stubArray$1,arrayFilter=_arrayFilter,stubArray=stubArray_1,objectProto$6=Object.prototype,propertyIsEnumerable$1=objectProto$6.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols$1=nativeGetSymbols?function(Ff){return Ff==null?[]:(Ff=Object(Ff),arrayFilter(nativeGetSymbols(Ff),function(kh){return propertyIsEnumerable$1.call(Ff,kh)}))}:stubArray,_getSymbols=getSymbols$1;function baseTimes$1(Ff,kh){for(var x_=-1,$_=Array(Ff);++x_<Ff;)$_[x_]=kh(x_);return $_}var _baseTimes=baseTimes$1,baseGetTag$2=_baseGetTag,isObjectLike$3=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(Ff){return isObjectLike$3(Ff)&&baseGetTag$2(Ff)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$2=isObjectLike_1,objectProto$5=Object.prototype,hasOwnProperty$5=objectProto$5.hasOwnProperty,propertyIsEnumerable=objectProto$5.propertyIsEnumerable,isArguments$1=baseIsArguments(function(){return arguments}())?baseIsArguments:function(Ff){return isObjectLike$2(Ff)&&hasOwnProperty$5.call(Ff,"callee")&&!propertyIsEnumerable.call(Ff,"callee")},isArguments_1=isArguments$1,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;isBuffer$2.exports;(function(Ff,kh){var x_=_root,$_=stubFalse_1,B_=kh&&!kh.nodeType&&kh,$P=B_&&!0&&Ff&&!Ff.nodeType&&Ff,zP=$P&&$P.exports===B_,eme=zP?x_.Buffer:void 0,tme=eme?eme.isBuffer:void 0,nme=tme||$_;Ff.exports=nme})(isBuffer$2,isBuffer$2.exports);var isBufferExports=isBuffer$2.exports,MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$1(Ff,kh){var x_=typeof Ff;return kh=kh??MAX_SAFE_INTEGER$1,!!kh&&(x_=="number"||x_!="symbol"&&reIsUint.test(Ff))&&Ff>-1&&Ff%1==0&&Ff<kh}var _isIndex=isIndex$1,MAX_SAFE_INTEGER=9007199254740991;function isLength$2(Ff){return typeof Ff=="number"&&Ff>-1&&Ff%1==0&&Ff<=MAX_SAFE_INTEGER}var isLength_1=isLength$2,baseGetTag$1=_baseGetTag,isLength$1=isLength_1,isObjectLike$1=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag$1="[object Map]",numberTag="[object Number]",objectTag$2="[object Object]",regexpTag="[object RegExp]",setTag$1="[object Set]",stringTag="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag$1]=typedArrayTags[numberTag]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag]=typedArrayTags[setTag$1]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag$1]=!1;function baseIsTypedArray$1(Ff){return isObjectLike$1(Ff)&&isLength$1(Ff.length)&&!!typedArrayTags[baseGetTag$1(Ff)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(Ff){return function(kh){return Ff(kh)}}var _baseUnary=baseUnary$1,_nodeUtil={exports:{}};_nodeUtil.exports;(function(Ff,kh){var x_=_freeGlobal,$_=kh&&!kh.nodeType&&kh,B_=$_&&!0&&Ff&&!Ff.nodeType&&Ff,$P=B_&&B_.exports===$_,zP=$P&&x_.process,eme=function(){try{var tme=B_&&B_.require&&B_.require("util").types;return tme||zP&&zP.binding&&zP.binding("util")}catch{}}();Ff.exports=eme})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$2,baseTimes=_baseTimes,isArguments=isArguments_1,isArray$1=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$4=Object.prototype,hasOwnProperty$4=objectProto$4.hasOwnProperty;function arrayLikeKeys$1(Ff,kh){var x_=isArray$1(Ff),$_=!x_&&isArguments(Ff),B_=!x_&&!$_&&isBuffer$1(Ff),$P=!x_&&!$_&&!B_&&isTypedArray$1(Ff),zP=x_||$_||B_||$P,eme=zP?baseTimes(Ff.length,String):[],tme=eme.length;for(var nme in Ff)(kh||hasOwnProperty$4.call(Ff,nme))&&!(zP&&(nme=="length"||B_&&(nme=="offset"||nme=="parent")||$P&&(nme=="buffer"||nme=="byteLength"||nme=="byteOffset")||isIndex(nme,tme)))&&eme.push(nme);return eme}var _arrayLikeKeys=arrayLikeKeys$1,objectProto$3=Object.prototype;function isPrototype$1(Ff){var kh=Ff&&Ff.constructor,x_=typeof kh=="function"&&kh.prototype||objectProto$3;return Ff===x_}var _isPrototype=isPrototype$1;function overArg$1(Ff,kh){return function(x_){return Ff(kh(x_))}}var _overArg=overArg$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype=_isPrototype,nativeKeys=_nativeKeys,objectProto$2=Object.prototype,hasOwnProperty$3=objectProto$2.hasOwnProperty;function baseKeys$1(Ff){if(!isPrototype(Ff))return nativeKeys(Ff);var kh=[];for(var x_ in Object(Ff))hasOwnProperty$3.call(Ff,x_)&&x_!="constructor"&&kh.push(x_);return kh}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength=isLength_1;function isArrayLike$1(Ff){return Ff!=null&&isLength(Ff.length)&&!isFunction(Ff)}var isArrayLike_1=isArrayLike$1,arrayLikeKeys=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike=isArrayLike_1;function keys$1(Ff){return isArrayLike(Ff)?arrayLikeKeys(Ff):baseKeys(Ff)}var keys_1=keys$1,baseGetAllKeys=_baseGetAllKeys,getSymbols=_getSymbols,keys=keys_1;function getAllKeys$1(Ff){return baseGetAllKeys(Ff,keys,getSymbols)}var _getAllKeys=getAllKeys$1,getAllKeys=_getAllKeys,COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function equalObjects$1(Ff,kh,x_,$_,B_,$P){var zP=x_&COMPARE_PARTIAL_FLAG$1,eme=getAllKeys(Ff),tme=eme.length,nme=getAllKeys(kh),rme=nme.length;if(tme!=rme&&!zP)return!1;for(var ame=tme;ame--;){var ome=eme[ame];if(!(zP?ome in kh:hasOwnProperty$2.call(kh,ome)))return!1}var ime=$P.get(Ff),cme=$P.get(kh);if(ime&&cme)return ime==kh&&cme==Ff;var ume=!0;$P.set(Ff,kh),$P.set(kh,Ff);for(var sme=zP;++ame<tme;){ome=eme[ame];var fme=Ff[ome],lme=kh[ome];if($_)var hme=zP?$_(lme,fme,ome,kh,Ff,$P):$_(fme,lme,ome,Ff,kh,$P);if(!(hme===void 0?fme===lme||B_(fme,lme,x_,$_,$P):hme)){ume=!1;break}sme||(sme=ome=="constructor")}if(ume&&!sme){var pme=Ff.constructor,gme=kh.constructor;pme!=gme&&"constructor"in Ff&&"constructor"in kh&&!(typeof pme=="function"&&pme instanceof pme&&typeof gme=="function"&&gme instanceof gme)&&(ume=!1)}return $P.delete(Ff),$P.delete(kh),ume}var _equalObjects=equalObjects$1,getNative$3=_getNative,root$3=_root,DataView$1=getNative$3(root$3,"DataView"),_DataView=DataView$1,getNative$2=_getNative,root$2=_root,Promise$2=getNative$2(root$2,"Promise"),_Promise=Promise$2,getNative$1=_getNative,root$1=_root,Set$2=getNative$1(root$1,"Set"),_Set=Set$2,getNative=_getNative,root=_root,WeakMap$2=getNative(root,"WeakMap"),_WeakMap=WeakMap$2,DataView=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=_WeakMap,baseGetTag=_baseGetTag,toSource=_toSource,mapTag="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$1=baseGetTag;(DataView&&getTag$1(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map$1&&getTag$1(new Map$1)!=mapTag||Promise$1&&getTag$1(Promise$1.resolve())!=promiseTag||Set$1&&getTag$1(new Set$1)!=setTag||WeakMap$1&&getTag$1(new WeakMap$1)!=weakMapTag)&&(getTag$1=function(Ff){var kh=baseGetTag(Ff),x_=kh==objectTag$1?Ff.constructor:void 0,$_=x_?toSource(x_):"";if($_)switch($_){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}return kh});var _getTag=getTag$1,Stack=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag=_getTag,isArray=isArray_1,isBuffer=isBufferExports,isTypedArray=isTypedArray_1,COMPARE_PARTIAL_FLAG=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty$1=objectProto.hasOwnProperty;function baseIsEqualDeep$1(Ff,kh,x_,$_,B_,$P){var zP=isArray(Ff),eme=isArray(kh),tme=zP?arrayTag:getTag(Ff),nme=eme?arrayTag:getTag(kh);tme=tme==argsTag?objectTag:tme,nme=nme==argsTag?objectTag:nme;var rme=tme==objectTag,ame=nme==objectTag,ome=tme==nme;if(ome&&isBuffer(Ff)){if(!isBuffer(kh))return!1;zP=!0,rme=!1}if(ome&&!rme)return $P||($P=new Stack),zP||isTypedArray(Ff)?equalArrays(Ff,kh,x_,$_,B_,$P):equalByTag(Ff,kh,tme,x_,$_,B_,$P);if(!(x_&COMPARE_PARTIAL_FLAG)){var ime=rme&&hasOwnProperty$1.call(Ff,"__wrapped__"),cme=ame&&hasOwnProperty$1.call(kh,"__wrapped__");if(ime||cme){var ume=ime?Ff.value():Ff,sme=cme?kh.value():kh;return $P||($P=new Stack),B_(ume,sme,x_,$_,$P)}}return ome?($P||($P=new Stack),equalObjects(Ff,kh,x_,$_,B_,$P)):!1}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike=isObjectLike_1;function baseIsEqual$1(Ff,kh,x_,$_,B_){return Ff===kh?!0:Ff==null||kh==null||!isObjectLike(Ff)&&!isObjectLike(kh)?Ff!==Ff&&kh!==kh:baseIsEqualDeep(Ff,kh,x_,$_,baseIsEqual$1,B_)}var _baseIsEqual=baseIsEqual$1,baseIsEqual=_baseIsEqual;function isEqual(Ff,kh){return baseIsEqual(Ff,kh)}var isEqual_1$1=isEqual,quill={exports:{}};/*!
|
|
397
|
+
`,useInsertStyles=function(){var kh=arguments.length>0&&arguments[0]!==void 0?arguments[0]:iconStyles,x_=React.useContext(IconContext),$_=x_.csp;React.useEffect(function(){updateCSS(kh,"@ant-design-icons",{prepend:!0,csp:$_})},[])},_excluded$1=["icon","className","onClick","style","primaryColor","secondaryColor"],twoToneColorPalette={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function setTwoToneColors(Ff){var kh=Ff.primaryColor,x_=Ff.secondaryColor;twoToneColorPalette.primaryColor=kh,twoToneColorPalette.secondaryColor=x_||getSecondaryColor(kh),twoToneColorPalette.calculated=!!x_}function getTwoToneColors(){return _objectSpread2({},twoToneColorPalette)}var IconBase=function(kh){var x_=kh.icon,$_=kh.className,B_=kh.onClick,$P=kh.style,zP=kh.primaryColor,eme=kh.secondaryColor,tme=_objectWithoutProperties(kh,_excluded$1),nme=twoToneColorPalette;if(zP&&(nme={primaryColor:zP,secondaryColor:eme||getSecondaryColor(zP)}),useInsertStyles(),warning(isIconDefinition(x_),"icon should be icon definiton, but got ".concat(x_)),!isIconDefinition(x_))return null;var rme=x_;return rme&&typeof rme.icon=="function"&&(rme=_objectSpread2(_objectSpread2({},rme),{},{icon:rme.icon(nme.primaryColor,nme.secondaryColor)})),generate(rme.icon,"svg-".concat(rme.name),_objectSpread2({className:$_,onClick:B_,style:$P,"data-icon":rme.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},tme))};IconBase.displayName="IconReact";IconBase.getTwoToneColors=getTwoToneColors;IconBase.setTwoToneColors=setTwoToneColors;function setTwoToneColor(Ff){var kh=normalizeTwoToneColors(Ff),x_=_slicedToArray(kh,2),$_=x_[0],B_=x_[1];return IconBase.setTwoToneColors({primaryColor:$_,secondaryColor:B_})}function getTwoToneColor(){var Ff=IconBase.getTwoToneColors();return Ff.calculated?[Ff.primaryColor,Ff.secondaryColor]:Ff.primaryColor}var _excluded=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];setTwoToneColor("#1890ff");var Icon=React__namespace.forwardRef(function(Ff,kh){var x_=Ff.className,$_=Ff.icon,B_=Ff.spin,$P=Ff.rotate,zP=Ff.tabIndex,eme=Ff.onClick,tme=Ff.twoToneColor,nme=_objectWithoutProperties(Ff,_excluded),rme=React__namespace.useContext(IconContext),ame=rme.prefixCls,ome=ame===void 0?"anticon":ame,ime=rme.rootClassName,cme=classNames(ime,ome,_defineProperty(_defineProperty({},"".concat(ome,"-").concat($_.name),!!$_.name),"".concat(ome,"-spin"),!!B_||$_.name==="loading"),x_),ume=zP;ume===void 0&&eme&&(ume=-1);var sme=$P?{msTransform:"rotate(".concat($P,"deg)"),transform:"rotate(".concat($P,"deg)")}:void 0,fme=normalizeTwoToneColors(tme),lme=_slicedToArray(fme,2),hme=lme[0],pme=lme[1];return React__namespace.createElement("span",_objectSpread2(_objectSpread2({role:"img","aria-label":$_.name},nme),{},{ref:kh,tabIndex:ume,onClick:eme,className:cme}),React__namespace.createElement(IconBase,{icon:$_,primaryColor:hme,secondaryColor:pme,style:sme}))});Icon.displayName="AntdIcon";Icon.getTwoToneColor=getTwoToneColor;Icon.setTwoToneColor=setTwoToneColor;var DeleteOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:DeleteOutlined$2}))},RefIcon$3=React__namespace.forwardRef(DeleteOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$3.displayName="DeleteOutlined");var EyeOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:EyeOutlined$2}))},RefIcon$2=React__namespace.forwardRef(EyeOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$2.displayName="EyeOutlined");var PlusOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:PlusOutlined$1}))},RefIcon$1=React__namespace.forwardRef(PlusOutlined);process.env.NODE_ENV!=="production"&&(RefIcon$1.displayName="PlusOutlined");var UploadOutlined$1={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},UploadOutlined=function(kh,x_){return React__namespace.createElement(Icon,_objectSpread2(_objectSpread2({},kh),{},{ref:x_,icon:UploadOutlined$1}))},RefIcon=React__namespace.forwardRef(UploadOutlined);process.env.NODE_ENV!=="production"&&(RefIcon.displayName="UploadOutlined");function handleTree(Ff){let kh=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"id",x_=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"title",$_=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"parentId",B_=arguments.length>4&&arguments[4]!==void 0?arguments[4]:"children",$P=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,zP=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0;return constructTree(Ff,kh,x_,$_,B_,$P,eme=>({value:eme[kh],title:eme[x_],key:eme[kh],disabled:eme[kh]===zP}))}function constructTree(Ff,kh,x_,$_,B_,$P,zP){if(!Array.isArray(Ff)||Ff.length===0)return[];const eme=Ff.map(tme=>({...tme,...zP(tme)}));return eme.filter(tme=>{const nme=eme.filter(rme=>tme[kh]===rme[$_]);return tme[B_]=nme.length>0?nme:[],tme[$_]===$P})}const TreeSelect=Ff=>{let{request:kh,title:x_,disabledValue:$_,callError:B_,...$P}=Ff;const[zP,eme]=React.useState(!1),[tme,nme]=React.useState([]);React.useEffect(()=>{rme()},[]);const rme=async()=>{if(kh&&typeof kh=="function"){var ame;const ome=await kh();if(ome.code>0){B_&&typeof B_=="function"&&B_(ome.message);return}let ime=handleTree(((ame=ome.data)===null||ame===void 0?void 0:ame.list)||ome.data||[],"id",x_||"title",$P.parentId||"parentId","children",0,$_);ime=[{value:0,title:"根节点",children:ime}],$P.treeData=ime,nme(ime)}$P.treeData&&nme($P.treeData),eme(!0)};return jsxRuntimeExports.jsx(BaseWrapper,{...$P,children:zP&&jsxRuntimeExports.jsx(TreeSelect$1,{...$P,treeData:tme,treeDefaultExpandAll:!0,style:{width:"100%"}})})},Select=Ff=>{let{request:kh,option_label:x_="label",option_value:$_="id",disabledValue:B_,callError:$P,options:zP,addWrapper:eme=!0,...tme}=Ff;const[nme,rme]=React.useState([]);React.useEffect(()=>{ame()},[]);const ame=async()=>{if(kh&&typeof kh=="function"){var ome;const ime=await kh();if(ime.code>0){$P&&typeof $P=="function"&&$P(ime.message);return}let cme=((ome=ime.data)===null||ome===void 0?void 0:ome.list)||ime.data;Array.isArray(cme)&&cme.length>0&&rme(cme.map(ume=>({label:ume[x_],value:ume[$_]})))}zP&&zP.length>0&&rme(zP)};return eme?jsxRuntimeExports.jsx(BaseWrapper,{...tme,children:jsxRuntimeExports.jsx(Select$1,{...tme,options:nme,style:{width:"100%"}})}):jsxRuntimeExports.jsx(Select$1,{...tme,options:nme,style:{width:"100%"}})},SingleSelect=Ff=>{let{...kh}=Ff;return jsxRuntimeExports.jsx(Select,{...kh,mode:"single"})},MultipleSelect=Ff=>{let{onChange:kh,value:x_,...$_}=Ff;const[B_,$P]=React.useState([]);return React.useEffect(()=>{if(x_&&typeof x_=="string")try{x_=JSON.parse(x_),kh(x_)}catch{}x_&&$P(x_)},[x_]),jsxRuntimeExports.jsx(Select,{...$_,onChange:kh,mode:"multiple",value:B_})},WithSingleSelect=Ff=>{let{onChange:kh,value:x_,...$_}=Ff;const[B_,$P]=React.useState("");React.useEffect(()=>{if(x_&&typeof x_=="string")try{x_=JSON.parse(x_),kh(x_)}catch{}x_&&$P(x_)},[x_]);const zP=(eme,tme)=>{kh&&typeof kh=="function"&&kh(tme),$P(tme.label)};return jsxRuntimeExports.jsx(Select,{...$_,onChange:zP,value:B_,mode:"single"})},WithMultipleSelect=Ff=>{let{onChange:kh,value:x_,...$_}=Ff;const[B_,$P]=React.useState([]);React.useEffect(()=>{if(x_&&typeof x_=="string")try{x_=JSON.parse(x_),kh(x_)}catch{}Array.isArray(x_)&&$P(x_)},[x_]);const zP=(eme,tme)=>{kh&&typeof kh=="function"&&kh(tme),tme.map(nme=>nme.label),$P(tme)};return jsxRuntimeExports.jsx(Select,{...$_,onChange:zP,value:B_,mode:"multiple"})},SearchSelect=Ff=>{let{addWrapper:kh=!0,value:x_,type:$_,defaultValue:B_,onChange:$P,option_label:zP,option_value:eme,option_search:tme,options:nme,request:rme,requestParams:ame,callError:ome,...ime}=Ff;const[cme,ume]=React.useState([]),[sme,fme]=React.useState(!1);React.useEffect(()=>{lme(ame)},[ame]);const lme=async yme=>{let mme=null;if(rme&&typeof rme=="function"){const bme=await pme(yme);bme&&Array.isArray(bme)&&(mme=x_?bme.find(Sme=>Sme.value==x_):null)}nme&&nme.length>0&&(mme=x_?nme.find(bme=>bme.value==x_):null,ume(nme)),mme&&$P(mme)},hme=lodashExports.debounce(async yme=>{const mme={...ame};mme[tme]=yme,await pme(mme)},200),pme=async yme=>{try{var mme;fme(!0);const bme=await rme(yme);if(bme.code>0){ome&&typeof ome=="function"&&ome(bme.message);return}let Sme=((mme=bme.data)===null||mme===void 0?void 0:mme.list)||bme.data;return Array.isArray(Sme)?(Sme=Sme.map(_me=>({..._me,label:_me[zP],value:_me[eme]})),ume(Sme)):ume([]),Sme}catch(bme){console.error("fetchOptions",bme)}finally{fme(!1)}},gme=yme=>{const mme=cme.find(bme=>bme.value===yme);$P(mme)};return kh?jsxRuntimeExports.jsx(BaseWrapper,{...ime,children:jsxRuntimeExports.jsx(Select$1,{notFoundContent:sme?jsxRuntimeExports.jsx(Spin,{size:"small"}):null,value:x_,...ime,disabled:!1,filterOption:!1,showSearch:!!(rme&&tme),onSearch:rme&&tme?hme:null,onChange:gme,style:{width:"100%"},mode:"single",children:cme.map((yme,mme)=>jsxRuntimeExports.jsx(Select$1.Option,{value:yme.value,disabled:!1,children:yme.label},mme))})}):jsxRuntimeExports.jsx(Select$1,{notFoundContent:sme?jsxRuntimeExports.jsx(Spin,{size:"small"}):null,value:x_,...ime,disabled:!1,filterOption:!1,showSearch:!!(rme&&tme),onSearch:rme&&tme?hme:null,onChange:gme,style:{width:"100%"},mode:"single",children:cme.map((yme,mme)=>jsxRuntimeExports.jsx(Select$1.Option,{value:yme.value,disabled:!1,children:yme.label},mme))})},Custom=React.forwardRef((Ff,kh)=>{let{value:x_,onChange:$_,...B_}=Ff;const $P=React.useRef(0),zP=()=>{$P.current++,$_($P.current)};return jsxRuntimeExports.jsxs(BaseWrapper,{...B_,children:[jsxRuntimeExports.jsxs("div",{ref:kh,children:["form-set-value:",x_]}),jsxRuntimeExports.jsx(Button$1,{onClick:zP,children:"test"})]})}),evalFormula=formula=>{let result="";try{result=eval(formula.join(""))}catch(Ff){console.error("formula error",Ff)}return result.toString()},LayoutFormRow=Ff=>{let{children:kh,layout:x_}=Ff;x_=x_||"1";const $_=zP=>{const eme=zP.split(",").map(Number),tme=24;return eme.map(nme=>nme/eme.reduce((rme,ame)=>rme+ame)*tme)},B_=React.useMemo(()=>$_(x_),[x_]);console.log("colSpans",B_);const $P=React.useMemo(()=>React.Children.toArray(kh).map((zP,eme)=>{const tme=zP.props,nme=(tme==null?void 0:tme.componentId)||(tme==null?void 0:tme.__id);return nme?(B_==null?void 0:B_[eme])&&jsxRuntimeExports.jsx(Col,{span:B_[eme],children:jsxRuntimeExports.jsx(Form.Item,{style:{marginBottom:0},label:"",name:nme,rules:[{required:tme.isRequired,message:"".concat(tme.title,"不能为空!")}],children:zP},"".concat(nme,"-form-item"))},eme):(B_==null?void 0:B_[eme])&&jsxRuntimeExports.jsx(Col,{span:B_[eme],children:zP},eme)}),[kh,B_]);return jsxRuntimeExports.jsx(Row,{gutter:24,children:$P})},FormGroupTitle=Ff=>{let{title:kh}=Ff;return kh?jsxRuntimeExports.jsx("div",{className:"fh-11 fflex fitems-center ftext-lg ffont-medium ",children:jsxRuntimeExports.jsx("span",{className:"fborder-l-4 fborder-slate-300 fpl-2 ",children:kh})}):null};function batchElements(Ff,kh){const x_=[];let $_=[];const B_=(zP,eme)=>{const tme=zP-eme.length;eme.push(...new Array(tme).fill(React.createElement("div")))};for(const zP of Ff){var $P;const{_componentName:eme}=(zP==null?void 0:zP.props)||{},tme=(($P=zP.type)===null||$P===void 0?void 0:$P.displayName)||eme;tme&&tme.startsWith("Layout.")?($_.length>0&&(B_(kh,$_),x_.push($_),$_=[]),x_.push([zP])):($_.push(zP),$_.length===kh&&(x_.push($_),$_=[]))}return $_.length>0&&(B_(kh,$_),x_.push($_)),x_}const FormContainer=React.forwardRef((Ff,kh)=>{let{cols:x_=1,children:$_}=Ff;const[B_]=Form.useForm(),[$P,zP]=React.useState(null),eme=React.useRef(null);React.useImperativeHandle(kh,()=>({formRef:B_,initializeFieldVisibility:nme}),[]),React.useEffect(()=>{tme(),zP(ume())},[$_,x_]);const tme=()=>{const sme=[];function fme(hme){var pme,gme,yme=((pme=hme.type)===null||pme===void 0?void 0:pme.displayName)||((gme=hme.props)===null||gme===void 0?void 0:gme._componentName);const{props:mme}=hme;yme&&yme.startsWith("Field.")&&sme.push(hme),mme!=null&&mme.children&&React.Children.toArray(mme==null?void 0:mme.children).forEach(Sme=>fme(Sme))}eme.current=new Map;const lme=React.Children.toArray($_);for(let hme=0;hme<lme.length;hme++){const pme=lme[hme];fme(pme)}sme.forEach(hme=>{const{componentId:pme,__id:gme,...yme}=hme==null?void 0:hme.props,mme=pme||gme;eme.current.set(mme,{children:lme.filter(bme=>{var Sme;return bme.props.withId===mme||((Sme=bme.props.withIds)===null||Sme===void 0?void 0:Sme.some(_me=>mme==_me||_me.startsWith(mme+".")))}),show:!0})}),console.log("dependencyMap",eme.current),nme()},nme=function(){let sme=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const fme=B_.getFieldsValue();for(let lme of eme.current.keys())rme(lme,fme);sme&&zP(ume())},rme=(sme,fme)=>{let lme=!1;return eme.current.has(sme)&&eme.current.get(sme).children.forEach(pme=>{pme.props.withFunc&&typeof pme.props.withFunc=="function"&&(lme=ame(fme,pme)),pme.props.withFill&&ome(fme,pme)}),lme},ame=(sme,fme)=>{let lme=!1;const hme=fme.props.withFunc(sme),pme=fme.props.componentId||fme.props.__id;if(eme.current.has(pme)){const gme=eme.current.get(pme);gme.show!==hme&&(gme.show=hme,eme.current.set(pme,gme),lme=!0)}return lme},ome=async(sme,fme)=>{const lme=fme.props.withFill,hme=fme.props.withDataFetch;console.log("withFill",lme),console.log("fieldValues",sme),console.log("child",fme);let pme=[];if(lme!=null&&lme.withData&&(lme==null?void 0:lme.withData.length)>0&&hme&&typeof hme=="function")for(let yme=0;yme<(lme==null?void 0:lme.withData.length);yme++){const mme=lme==null?void 0:lme.withData[yme];let bme={};bme.tableName=mme.withTable.table_name,bme.filter={};for(let _me=0;_me<mme.withCondition.length;_me++){const{value:Cme,column:Eme}=mme.withCondition[_me];bme.filter[Eme.column_name]=ime(Cme.group_key,Cme.field_key,sme,pme)}const Sme=await hme(bme);Sme.code===0&&Sme.data.list&&pme.push({id:mme.id,data:Sme.data.list})}let gme;if(lme.value&&lme.value.length>0&&(gme=lme.value.map(yme=>{let mme="";const{insert:bme,attributes:Sme}=yme;return typeof bme!="string"?bme!=null&&bme.span&&Sme&&Sme.tagKey&&Sme.id&&(mme=ime(Sme.tagKey,Sme.id,sme,pme),Array.isArray(mme)?mme=JSON.stringify(mme):mme&&(mme='"'.concat(mme,'"'))):mme=bme,mme})),console.log("formula",gme),gme&&gme.length>0){const yme=fme.props.componentId||fme.props.__id;B_.setFieldValue(yme,evalFormula(gme))}},ime=(sme,fme,lme,hme)=>{let pme="";if(sme=="fieldsValue")if(fme.indexOf(".")>=0){const[yme,mme]=fme.split("."),bme=(lme==null?void 0:lme[yme])||[];Array.isArray(bme)?pme=bme.map(Sme=>(Sme==null?void 0:Sme[mme])||""):pme=(bme==null?void 0:bme[mme])||""}else pme=(lme==null?void 0:lme[fme])||"";else{let yme=hme.find(mme=>mme.id===sme);if(yme&&yme.data&&yme.data.length>0){var gme;pme=((gme=yme.data[0])===null||gme===void 0?void 0:gme[fme])||""}}return pme},cme=lodashExports.debounce((sme,fme)=>{const lme=B_.getFieldsValue();let hme=!1;sme.forEach(pme=>{pme.name&&pme.name.length>0&&(hme=rme(pme.name[0],lme))}),hme&&zP(ume())},200),ume=()=>{const sme=React.Children.toArray($_);return batchElements(sme.filter(lme=>{const hme=lme.props.componentId||lme.props.__id;return eme.current.has(hme)&&eme.current.get(hme).show}),x_).map((lme,hme)=>jsxRuntimeExports.jsx(Row,{gutter:[24,24],children:lme.map((pme,gme)=>{var yme;const{componentId:mme,__id:bme,_componentName:Sme,..._me}=pme.props,Cme=((yme=pme.type)===null||yme===void 0?void 0:yme.displayName)||Sme,Eme=mme||bme,Tme=Cme&&Cme.startsWith("Layout.");return jsxRuntimeExports.jsx(Col,{span:Tme?24:24/lme.length,style:{marginBottom:0},children:Tme?pme:jsxRuntimeExports.jsx(Form.Item,{style:{marginBottom:0},label:"",name:Eme,rules:[{required:_me.isRequired,message:"".concat(_me.title,"不能为空!")}],children:pme})},Eme||"col-".concat(gme))})},"row-".concat(hme)))};return jsxRuntimeExports.jsx(Form,{form:B_,className:"form-container fp-0 fw-full fh-full box-border",onFieldsChange:cme,children:$P})});function withWrap(Ff){return React.forwardRef((kh,x_)=>jsxRuntimeExports.jsx(Ff,{...kh,ref:x_,forwardedRef:x_}))}class FormContainerClass extends React.PureComponent{render(){const{forwardedRef:kh,...x_}=this.props;return jsxRuntimeExports.jsx(FormContainer,{...x_,ref:kh})}}const FormContainerWrapper=withWrap(Ff=>{let{forwardedRef:kh,...x_}=Ff;return jsxRuntimeExports.jsx(FormContainer,{...x_,ref:kh})}),CheckboxTree=Ff=>{let{request:kh,value:x_,onChange:$_,callError:B_,disabledValue:$P,addRoot:zP=!0,title:eme,...tme}=Ff;const[nme,rme]=React.useState(!1),[ame,ome]=React.useState([]);React.useEffect(()=>{ime()},[]),React.useEffect(()=>{if(console.log("CheckboxTree value ",x_),typeof x_=="string")try{x_=JSON.parse(x_),$_(x_)}catch{}Array.isArray(x_)&&fme(x_)},[x_]);const ime=async()=>{if(kh&&typeof kh=="function"){var Sme;const _me=await kh();if(_me.code>0){B_&&typeof B_=="function"&&B_(_me.message);return}let Cme=handleTree(((Sme=_me.data)===null||Sme===void 0?void 0:Sme.list)||_me.data||[],"id",eme||"title",(tme==null?void 0:tme.parentId)||"parentId","children",0,$P);zP&&(Cme=[{value:0,title:"根节点",children:Cme}]),tme.treeData=Cme,console.log("treeData",Cme),ome(Cme)}tme.treeData&&ome(tme.treeData),rme(!0)},[cme,ume]=React.useState([]),[sme,fme]=React.useState([]),[lme,hme]=React.useState([]),[pme,gme]=React.useState(!0),yme=Sme=>{console.log("onExpand",Sme),ume(Sme),gme(!1)},mme=Sme=>{console.log("onCheck",Sme),fme(Sme),$_(Sme)},bme=(Sme,_me)=>{console.log("onSelect",_me),hme(Sme)};return jsxRuntimeExports.jsx(BaseWrapper,{...tme,children:jsxRuntimeExports.jsx(Tree,{checkable:!0,onExpand:yme,onCheck:mme,onSelect:bme,expandedKeys:cme,autoExpandParent:pme,checkedKeys:sme,selectedKeys:lme,treeData:ame})})},Checkbox=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(Checkbox$1,{...Ff})}),CheckboxGroup=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(Checkbox$1.Group,{...Ff})}),RadioGroup=Ff=>jsxRuntimeExports.jsx(BaseWrapper,{...Ff,children:jsxRuntimeExports.jsx(Radio.Group,{...Ff})}),UploadFile=Ff=>{let{value:kh,maxCount:x_,onChange:$_,...B_}=Ff;React.useEffect(()=>{if(kh){if(typeof kh=="string")try{kh=JSON.parse(kh),$_(kh)}catch{}console.log("value",kh),Array.isArray(kh)&&zP(kh)}},[kh]),x_=x_||9;const[$P,zP]=React.useState([]),eme=tme=>{let{fileList:nme}=tme;console.log("newFileList",nme),nme=nme.map(rme=>(rme.status=="done"&&rme.response&&(rme.url=rme.response),rme)),$_(nme.map(rme=>({uid:rme.uid,name:rme.name,status:rme.status,url:rme.url||rme.response||"",error:rme.error}))),zP(nme)};return jsxRuntimeExports.jsx(BaseWrapper,{...B_,children:jsxRuntimeExports.jsx(Upload,{...B_,listType:"text",maxCount:x_,onChange:eme,fileList:$P,children:!(B_!=null&&B_.disabled)&&jsxRuntimeExports.jsxs("div",{className:" fmin-w-36 fgap-1 frounded fborder-gray-300 fborder hover:fborder-[#3e92f8] hover:ftext-[#3e92f8] fcursor-pointer fh-8 fflex fitems-center fbg-white fjustify-center ",children:[jsxRuntimeExports.jsx(RefIcon,{}),"点击上传文件"]})})})},UploadImage=Ff=>{let{maxCount:kh,value:x_,onChange:$_,...B_}=Ff;React.useEffect(()=>{if(x_){if(console.log("value",x_),typeof x_=="string")try{x_=JSON.parse(x_),$_(x_)}catch{}let pme=[];if(Array.isArray(x_))for(let gme=0;gme<x_.length;gme++){let yme=x_[gme];var hme=ime.current.find(mme=>mme.uid===yme.uid);!hme||(hme.version||0)<(yme.version||0)?pme.push(yme):pme.push(hme)}zP(pme)}},[x_]),kh=kh||9;const[$P,zP]=React.useState([]),[eme,tme]=React.useState(""),[nme,rme]=React.useState(0),[ame,ome]=React.useState(!1),ime=React.useRef([]),cme=hme=>new Promise((pme,gme)=>{const yme=new FileReader;yme.readAsDataURL(hme),yme.onload=()=>pme(yme.result),yme.onerror=mme=>gme(mme)}),ume=async(hme,pme)=>{!hme.url&&!hme.preview&&(hme.preview=await cme(hme.originFileObj)),tme(hme.url||hme.preview),rme(pme),ome(!0)},sme=async(hme,pme)=>{B_!=null&&B_.disabled||zP($P.filter((gme,yme)=>yme!==pme))},fme=jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"fw-full fh-full fflex fflex-col fitems-center fjustify-center fborder fborder-dashed fcursor-pointer frounded",children:[jsxRuntimeExports.jsx(RefIcon$1,{}),jsxRuntimeExports.jsx("div",{className:"fmt-2",children:"点击上传"})]})}),lme=hme=>{let{fileList:pme}=hme,gme=[];for(let bme=0;bme<pme.length;bme++){var yme=pme[bme];yme.version=new Date().getTime();var mme=ime.current.find(Sme=>Sme.uid===yme.uid);console.log("oldfile",JSON.parse(JSON.stringify(mme||{}))),mme&&mme.status!="uploading"?gme.push(mme):(yme.status=="done"&&yme.response&&(yme.url=yme.response),gme.push(yme))}ime.current=gme,zP(gme),$_(gme.map(bme=>({uid:bme.uid,name:bme.name,status:bme.status,url:bme.url||bme.response||"",error:bme.error,version:bme.version||0})))};return jsxRuntimeExports.jsxs(BaseWrapper,{...B_,children:[jsxRuntimeExports.jsx("div",{className:"fflex fgap-3 fflex-wrap",children:jsxRuntimeExports.jsx(Upload,{...B_,itemRender:(hme,pme,gme)=>{console.log("file",pme);let yme=gme.findIndex(mme=>mme.uid===pme.uid);return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsxs("div",{className:"fgroup fw-full fh-full fbg-transparent fborder frounded fflex fitems-center fjustify-center foverflow-hidden fcursor-pointer frelative"+(pme.status=="error"?" fborder-red-500":""),children:[jsxRuntimeExports.jsxs("div",{className:" fhidden fabsolute fw-full fh-full fbg-gray-900 fbg-opacity-50 fitems-center fjustify-center fz-10 group-hover:fflex ftext-white ftext-lg fgap-2",children:[pme.status=="done"&&jsxRuntimeExports.jsx(RefIcon$2,{onClick:()=>{ume(pme,yme)},className:"hover:ftext-gray-200"}),!(B_!=null&&B_.disabled)&&jsxRuntimeExports.jsx(RefIcon$3,{onClick:()=>{sme(pme,yme)},className:"hover:ftext-gray-200"})]}),pme.status=="uploading"&&jsxRuntimeExports.jsx("div",{className:" fw-full fh-full fflex fitems-center fjustify-center fabsolute ftop-0 fleft-0 ",children:jsxRuntimeExports.jsx(Spin,{})}),jsxRuntimeExports.jsx("img",{src:pme.url||pme.thumbUrl,alt:"Example Image",class:"fmax-w-full fmax-h-full fobject-contain "})]},"file-".concat(pme.uid))})},listType:"picture-card",fileList:$P,maxCount:kh,onPreview:ume,onChange:lme,children:$P.length>=kh||B_!=null&&B_.disabled?null:fme})}),eme&&jsxRuntimeExports.jsx(Image$1.PreviewGroup,{preview:{visible:ame,current:nme,onVisibleChange:hme=>ome(hme),onChange:hme=>{rme(hme)}},children:$P.map((hme,pme)=>jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Image$1,{wrapperStyle:{display:"none"},src:hme.url})}))})]})},Switch=Ff=>{let{value:kh,...x_}=Ff;const[$_,B_]=React.useState(!1);return React.useEffect(()=>{let $P=!1;typeof kh=="boolean"?$P=kh:typeof kh=="string"?$P=kh=="1"||kh=="true":typeof kh=="number"&&($P=kh==1),B_($P),x_==null||x_.onChange($P)},[kh]),jsxRuntimeExports.jsx(BaseWrapper,{...x_,children:jsxRuntimeExports.jsx(Switch$1,{...x_,value:$_})})};var zhCn={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_(requireDayjs_min())})(commonjsGlobal,function(x_){function $_(zP){return zP&&typeof zP=="object"&&"default"in zP?zP:{default:zP}}var B_=$_(x_),$P={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(zP,eme){return eme==="W"?zP+"周":zP+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(zP,eme){var tme=100*zP+eme;return tme<600?"凌晨":tme<900?"早上":tme<1100?"上午":tme<1300?"中午":tme<1800?"下午":"晚上"}};return B_.default.locale($P,null,!0),$P})})(zhCn);var locale$2={locale:"zh_CN",yearFormat:"YYYY年",cellDateFormat:"D",cellMeridiemFormat:"A",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪"};const locale$1={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]},locale={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},locale$2),timePickerLocale:Object.assign({},locale$1)};locale.lang.ok="确定";var updateLocale$1={exports:{}};(function(Ff,kh){(function(x_,$_){Ff.exports=$_()})(commonjsGlobal,function(){return function(x_,$_,B_){B_.updateLocale=function($P,zP){var eme=B_.Ls[$P];if(eme)return(zP?Object.keys(zP):[]).forEach(function(tme){eme[tme]=zP[tme]}),eme}}})})(updateLocale$1);var updateLocaleExports=updateLocale$1.exports;const updateLocale=getDefaultExportFromCjs(updateLocaleExports);dayjs.extend(updateLocale);dayjs.updateLocale("zh-cn",{weekStart:0});const DatePicker=Ff=>{let{datetype:kh,value:x_,onChange:$_,...B_}=Ff;kh=kh||"date";const[$P,zP]=React.useState(B_==null?void 0:B_.picker),[eme,tme]=React.useState(B_==null?void 0:B_.format),[nme,rme]=React.useState(null),[ame,ome]=React.useState(!1),[ime,cme]=React.useState(!1);React.useEffect(()=>{if(x_){const sme=dayjs(x_);rme(sme)}},[x_,eme,$P]);const ume=(sme,fme)=>{$_(fme)};return React.useEffect(()=>{switch(zP("date"),ome(!1),kh){case"date":zP("date"),tme("YYYY-MM-DD"),cme(!1);break;case"datetime":ome(!0),zP("datetime"),tme("YYYY-MM-DD HH:mm:ss"),cme(!0);break;case"month":zP("month"),cme(!1);break;case"year":zP("year"),cme(!1);break}},[kh]),jsxRuntimeExports.jsx(BaseWrapper,{...B_,children:jsxRuntimeExports.jsx(DatePicker$1,{locale,...B_,picker:$P,format:eme,style:{width:"100%"},onChange:ume,value:nme,showTime:ame,needConfirm:ime})})},TableCol=Ff=>{let{children:kh,width:x_,...$_}=Ff;const[B_,$P]=React.useState(0);return React.useEffect(()=>{$P(x_)},[x_]),jsxRuntimeExports.jsx("div",{className:"fflex-1",style:{minWidth:"".concat(B_,"px")},...$_,children:kh})},TableAction=Ff=>{let{label:kh,subTableIndex:x_,children:$_,...B_}=Ff;return jsxRuntimeExports.jsx("div",{className:"fw-16",children:jsxRuntimeExports.jsxs("div",{className:"frelative fw-full fh-full fflex fflex-col",children:[kh&&x_===0&&jsxRuntimeExports.jsx("div",{className:"fh-12 ffont-semibold fbg-gray-100 ftext-sm fflex fjustify-between fitems-center fpx-2 fborder-b",children:kh}),jsxRuntimeExports.jsx("div",{className:"fw-full fflex-1 fflex fitems-center fjustify-center fp-2 ",children:$_})]})})},Table=Ff=>{let{children:kh,value:x_,onChange:$_,...B_}=Ff;const[$P,zP]=React.useState([{}]),eme=React.useRef($P),tme=React.useRef(new Map),[nme,rme]=React.useState({}),ame=B_.componentId||B_.__id,ome=mme=>{zP(mme),eme.current=mme};React.useEffect(()=>{if(console.log("value useEffect ",JSON.stringify(x_)),x_&&typeof x_=="string")try{x_=JSON.parse(x_),$_(x_)}catch{}x_&&Array.isArray(x_)&&!lodashExports.isEqual(eme.current,x_)&&(console.log("useEffect setRows"),ome(x_))},[x_]),React.useEffect(()=>{console.log("children useEffect ",kh),ime()},[kh]);const ime=React.useCallback(()=>{tme.current.clear();const mme=React.Children.toArray(kh);mme.forEach(bme=>{const{componentId:Sme,__id:_me,...Cme}=bme.props,Eme="".concat(ame,".").concat(Sme||_me);tme.current.set(Eme,{children:mme.filter(Tme=>{var Rme;return Tme.props.withId===Eme||((Rme=Tme.props.withIds)===null||Rme===void 0?void 0:Rme.includes(Eme))}),show:!0})}),ume()},[kh,ame]),cme=React.useCallback(mme=>{const bme={};for(let Sme in mme)bme["".concat(ame,".").concat(Sme)]=mme[Sme]||"";return bme},[ame]),ume=React.useCallback(()=>{$P.forEach((mme,bme)=>{const Sme=cme(mme);for(let _me of tme.current.keys())sme(_me,Sme,bme)})},[$P,cme]),sme=React.useCallback((mme,bme,Sme)=>{let _me=!1;const Cme="".concat(ame,".").concat(mme);return tme.current.has(Cme)&&tme.current.get(Cme).children.forEach(Tme=>{Tme.props.withFunc&&typeof Tme.props.withFunc=="function"&&(_me=fme(bme,Tme)),Tme.props.withFill&&lme(bme,Tme,Sme)}),_me},[ame,$P]),fme=React.useCallback((mme,bme)=>{let Sme=!1;const _me=bme.props.withFunc(mme),Cme=bme.props.componentId||bme.props.__id;if(tme.current.has(Cme)){const Eme=tme.current.get(Cme);Eme.show!==_me&&(Eme.show=_me,tme.current.set(Cme,Eme),Sme=!0)}return Sme},[]),lme=React.useCallback(async(mme,bme,Sme)=>{const _me=bme.props.withFill,Cme=bme.props.withDataFetch;let Eme=[];if(_me!=null&&_me.withData&&(_me==null?void 0:_me.withData.length)>0&&Cme&&typeof Cme=="function")for(let Rme=0;Rme<(_me==null?void 0:_me.withData.length);Rme++){const Pme=_me==null?void 0:_me.withData[Rme];let $me={};$me.tableName=Pme.withTable.table_name,$me.filter={};for(let Mme=0;Mme<Pme.withCondition.length;Mme++){const{value:Nme,column:Ime}=Pme.withCondition[Mme];$me.filter[Ime.column_name]=hme(Nme.group_key,Nme.field_key,mme,Eme)}const Dme=await Cme($me);Dme.code===0&&Dme.data.list&&Eme.push({id:Pme.id,data:Dme.data.list})}let Tme;if(_me.value&&_me.value.length>0&&(Tme=_me.value.map(Rme=>{let Pme="";const{insert:$me,attributes:Dme}=Rme;return typeof $me!="string"?$me!=null&&$me.span&&Dme&&Dme.tagKey&&Dme.id&&(Pme=hme(Dme.tagKey,Dme.id,mme,Eme),Pme&&(Pme='"'.concat(Pme,'"'))):Pme=$me,Pme})),console.log("formula",Tme),Tme&&Tme.length>0){const Rme=bme.props.componentId||bme.props.__id,Pme=evalFormula(Tme);console.log("formulaResult",Pme),console.log("handleFieldsWithFill setRows");const $me=[...$P];$me[Sme][Rme]=Pme,ome($me)}},[$P]),hme=React.useCallback((mme,bme,Sme,_me)=>{let Cme="";if(mme==="fieldsValue")Cme=(Sme==null?void 0:Sme[bme])||"";else{let Tme=_me.find(Rme=>Rme.id===mme);if(Tme&&Tme.data&&Tme.data.length>0){var Eme;Cme=((Eme=Tme.data[0])===null||Eme===void 0?void 0:Eme[bme])||""}}return Cme},[]),pme=React.useCallback((mme,bme,Sme)=>{var _me;const Cme=[...$P];Cme[mme]={...Cme[mme],[bme]:(Sme==null||(_me=Sme.target)===null||_me===void 0?void 0:_me.value)||""},console.log("handleInputChange setRows"),ome(Cme),rme({rowIndex:mme,identifier:bme,value:cme(Cme[mme])})},[$P,sme,cme,$_]),gme=mme=>{const bme=[...$P];bme.splice(mme,1),console.log("handleDeleteRow setRows"),ome(bme)},yme=()=>{console.log("addRow setRows"),ome([...$P,{}])};return React.useEffect(()=>{console.log("rows changed rows",JSON.stringify(eme.current)),console.log("rows changed value",JSON.stringify(x_)),!lodashExports.isEqual(eme.current,x_)&&(console.log("noreq"),typeof $_=="function"&&$_(eme.current))},[$P]),React.useEffect(()=>{nme&&nme.identifier&&sme(nme.identifier,nme.value,nme.rowIndex)},[nme]),jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx("div",{className:"fw-full fmin-h-20 foverflow-x-auto",children:$P.map((mme,bme)=>jsxRuntimeExports.jsxs("div",{className:"fborder-b finline-flex fflex-wrap fmin-w-full",style:{width:"max-content"},children:[React.Children.map(kh,(Sme,_me)=>{var Cme;const Eme=(Sme==null||(Cme=Sme.props)===null||Cme===void 0?void 0:Cme.__id)||_me;return(mme==null?void 0:mme[Eme])===void 0&&(mme[Eme]=""),jsxRuntimeExports.jsx(TableCol,{width:100,children:React.cloneElement(Sme,{key:"row_".concat(bme,"_child_").concat(_me),subTable:!0,subTableIndex:bme,value:mme[Eme]||"",onChange:Tme=>pme(bme,Eme,Tme)})},"row_".concat(bme,"_col_").concat(_me))}),jsxRuntimeExports.jsx(TableAction,{subTable:!0,subTableIndex:bme,label:"操作",children:jsxRuntimeExports.jsx(RefIcon$3,{className:"fcursor-pointer",onClick:()=>gme(bme)})},"row_".concat(bme,"_action"))]},bme))}),jsxRuntimeExports.jsx(Button$1,{onClick:yme,className:"fmy-2",children:"新增一行"})]})},OptionSetter=Ff=>jsxRuntimeExports.jsx("div",{children:"sdfsdfsdf"});function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$3(Ff,kh){return Ff===kh||Ff!==Ff&&kh!==kh}var eq_1=eq$3,eq$2=eq_1;function assocIndexOf$4(Ff,kh){for(var x_=Ff.length;x_--;)if(eq$2(Ff[x_][0],kh))return x_;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(Ff){var kh=this.__data__,x_=assocIndexOf$3(kh,Ff);if(x_<0)return!1;var $_=kh.length-1;return x_==$_?kh.pop():splice.call(kh,x_,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(Ff){var kh=this.__data__,x_=assocIndexOf$2(kh,Ff);return x_<0?void 0:kh[x_][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(Ff){return assocIndexOf$1(this.__data__,Ff)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(Ff,kh){var x_=this.__data__,$_=assocIndexOf(x_,Ff);return $_<0?(++this.size,x_.push([Ff,kh])):x_[$_][1]=kh,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.clear();++kh<x_;){var $_=Ff[kh];this.set($_[0],$_[1])}}ListCache$4.prototype.clear=listCacheClear;ListCache$4.prototype.delete=listCacheDelete;ListCache$4.prototype.get=listCacheGet;ListCache$4.prototype.has=listCacheHas;ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,ListCache$3=_ListCache;function stackClear$1(){this.__data__=new ListCache$3,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(Ff){var kh=this.__data__,x_=kh.delete(Ff);return this.size=kh.size,x_}var _stackDelete=stackDelete$1;function stackGet$1(Ff){return this.__data__.get(Ff)}var _stackGet=stackGet$1;function stackHas$1(Ff){return this.__data__.has(Ff)}var _stackHas=stackHas$1;function isObject$2(Ff){var kh=typeof Ff;return Ff!=null&&(kh=="object"||kh=="function")}var isObject_1=isObject$2,baseGetTag$3=_baseGetTag,isObject$1=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(Ff){if(!isObject$1(Ff))return!1;var kh=baseGetTag$3(Ff);return kh==funcTag$1||kh==genTag||kh==asyncTag||kh==proxyTag}var isFunction_1=isFunction$2,root$6=_root,coreJsData$1=root$6["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var Ff=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return Ff?"Symbol(src)_1."+Ff:""}();function isMasked$1(Ff){return!!maskSrcKey&&maskSrcKey in Ff}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(Ff){if(Ff!=null){try{return funcToString$1.call(Ff)}catch{}try{return Ff+""}catch{}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$9=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$8=objectProto$9.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$8).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(Ff){if(!isObject(Ff)||isMasked(Ff))return!1;var kh=isFunction$1(Ff)?reIsNative:reIsHostCtor;return kh.test(toSource$1(Ff))}var _baseIsNative=baseIsNative$1;function getValue$1(Ff,kh){return Ff==null?void 0:Ff[kh]}var _getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue;function getNative$6(Ff,kh){var x_=getValue(Ff,kh);return baseIsNative(x_)?x_:void 0}var _getNative=getNative$6,getNative$5=_getNative,root$5=_root,Map$4=getNative$5(root$5,"Map"),_Map=Map$4,getNative$4=_getNative,nativeCreate$4=getNative$4(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(Ff){var kh=this.has(Ff)&&delete this.__data__[Ff];return this.size-=kh?1:0,kh}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty;function hashGet$1(Ff){var kh=this.__data__;if(nativeCreate$2){var x_=kh[Ff];return x_===HASH_UNDEFINED$2?void 0:x_}return hasOwnProperty$7.call(kh,Ff)?kh[Ff]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function hashHas$1(Ff){var kh=this.__data__;return nativeCreate$1?kh[Ff]!==void 0:hasOwnProperty$6.call(kh,Ff)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(Ff,kh){var x_=this.__data__;return this.size+=this.has(Ff)?0:1,x_[Ff]=nativeCreate&&kh===void 0?HASH_UNDEFINED$1:kh,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.clear();++kh<x_;){var $_=Ff[kh];this.set($_[0],$_[1])}}Hash$1.prototype.clear=hashClear;Hash$1.prototype.delete=hashDelete;Hash$1.prototype.get=hashGet;Hash$1.prototype.has=hashHas;Hash$1.prototype.set=hashSet;var _Hash=Hash$1,Hash=_Hash,ListCache$2=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$2),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(Ff){var kh=typeof Ff;return kh=="string"||kh=="number"||kh=="symbol"||kh=="boolean"?Ff!=="__proto__":Ff===null}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(Ff,kh){var x_=Ff.__data__;return isKeyable(kh)?x_[typeof kh=="string"?"string":"hash"]:x_.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(Ff){var kh=getMapData$3(this,Ff).delete(Ff);return this.size-=kh?1:0,kh}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(Ff){return getMapData$2(this,Ff).get(Ff)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(Ff){return getMapData$1(this,Ff).has(Ff)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(Ff,kh){var x_=getMapData(this,Ff),$_=x_.size;return x_.set(Ff,kh),this.size+=x_.size==$_?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$2(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.clear();++kh<x_;){var $_=Ff[kh];this.set($_[0],$_[1])}}MapCache$2.prototype.clear=mapCacheClear;MapCache$2.prototype.delete=mapCacheDelete;MapCache$2.prototype.get=mapCacheGet;MapCache$2.prototype.has=mapCacheHas;MapCache$2.prototype.set=mapCacheSet;var _MapCache=MapCache$2,ListCache$1=_ListCache,Map$2=_Map,MapCache$1=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(Ff,kh){var x_=this.__data__;if(x_ instanceof ListCache$1){var $_=x_.__data__;if(!Map$2||$_.length<LARGE_ARRAY_SIZE-1)return $_.push([Ff,kh]),this.size=++x_.size,this;x_=this.__data__=new MapCache$1($_)}return x_.set(Ff,kh),this.size=x_.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$1(Ff){var kh=this.__data__=new ListCache(Ff);this.size=kh.size}Stack$1.prototype.clear=stackClear;Stack$1.prototype.delete=stackDelete;Stack$1.prototype.get=stackGet;Stack$1.prototype.has=stackHas;Stack$1.prototype.set=stackSet;var _Stack=Stack$1,HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(Ff){return this.__data__.set(Ff,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(Ff){return this.__data__.has(Ff)}var _setCacheHas=setCacheHas$1,MapCache=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(Ff){var kh=-1,x_=Ff==null?0:Ff.length;for(this.__data__=new MapCache;++kh<x_;)this.add(Ff[kh])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd;SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(Ff,kh){for(var x_=-1,$_=Ff==null?0:Ff.length;++x_<$_;)if(kh(Ff[x_],x_,Ff))return!0;return!1}var _arraySome=arraySome$1;function cacheHas$1(Ff,kh){return Ff.has(kh)}var _cacheHas=cacheHas$1,SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas,COMPARE_PARTIAL_FLAG$3=1,COMPARE_UNORDERED_FLAG$1=2;function equalArrays$2(Ff,kh,x_,$_,B_,$P){var zP=x_&COMPARE_PARTIAL_FLAG$3,eme=Ff.length,tme=kh.length;if(eme!=tme&&!(zP&&tme>eme))return!1;var nme=$P.get(Ff),rme=$P.get(kh);if(nme&&rme)return nme==kh&&rme==Ff;var ame=-1,ome=!0,ime=x_&COMPARE_UNORDERED_FLAG$1?new SetCache:void 0;for($P.set(Ff,kh),$P.set(kh,Ff);++ame<eme;){var cme=Ff[ame],ume=kh[ame];if($_)var sme=zP?$_(ume,cme,ame,kh,Ff,$P):$_(cme,ume,ame,Ff,kh,$P);if(sme!==void 0){if(sme)continue;ome=!1;break}if(ime){if(!arraySome(kh,function(fme,lme){if(!cacheHas(ime,lme)&&(cme===fme||B_(cme,fme,x_,$_,$P)))return ime.push(lme)})){ome=!1;break}}else if(!(cme===ume||B_(cme,ume,x_,$_,$P))){ome=!1;break}}return $P.delete(Ff),$P.delete(kh),ome}var _equalArrays=equalArrays$2,root$4=_root,Uint8Array$2=root$4.Uint8Array,_Uint8Array=Uint8Array$2;function mapToArray$1(Ff){var kh=-1,x_=Array(Ff.size);return Ff.forEach(function($_,B_){x_[++kh]=[B_,$_]}),x_}var _mapToArray=mapToArray$1;function setToArray$1(Ff){var kh=-1,x_=Array(Ff.size);return Ff.forEach(function($_){x_[++kh]=$_}),x_}var _setToArray=setToArray$1,Symbol$1=_Symbol,Uint8Array$1=_Uint8Array,eq$1=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray,COMPARE_PARTIAL_FLAG$2=1,COMPARE_UNORDERED_FLAG=2,boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag$1(Ff,kh,x_,$_,B_,$P,zP){switch(x_){case dataViewTag$2:if(Ff.byteLength!=kh.byteLength||Ff.byteOffset!=kh.byteOffset)return!1;Ff=Ff.buffer,kh=kh.buffer;case arrayBufferTag$1:return!(Ff.byteLength!=kh.byteLength||!$P(new Uint8Array$1(Ff),new Uint8Array$1(kh)));case boolTag$1:case dateTag$1:case numberTag$1:return eq$1(+Ff,+kh);case errorTag$1:return Ff.name==kh.name&&Ff.message==kh.message;case regexpTag$1:case stringTag$1:return Ff==kh+"";case mapTag$2:var eme=mapToArray;case setTag$2:var tme=$_&COMPARE_PARTIAL_FLAG$2;if(eme||(eme=setToArray),Ff.size!=kh.size&&!tme)return!1;var nme=zP.get(Ff);if(nme)return nme==kh;$_|=COMPARE_UNORDERED_FLAG,zP.set(Ff,kh);var rme=equalArrays$1(eme(Ff),eme(kh),$_,B_,$P,zP);return zP.delete(Ff),rme;case symbolTag:if(symbolValueOf)return symbolValueOf.call(Ff)==symbolValueOf.call(kh)}return!1}var _equalByTag=equalByTag$1;function arrayPush$1(Ff,kh){for(var x_=-1,$_=kh.length,B_=Ff.length;++x_<$_;)Ff[B_+x_]=kh[x_];return Ff}var _arrayPush=arrayPush$1,arrayPush=_arrayPush,isArray$2=isArray_1;function baseGetAllKeys$1(Ff,kh,x_){var $_=kh(Ff);return isArray$2(Ff)?$_:arrayPush($_,x_(Ff))}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(Ff,kh){for(var x_=-1,$_=Ff==null?0:Ff.length,B_=0,$P=[];++x_<$_;){var zP=Ff[x_];kh(zP,x_,Ff)&&($P[B_++]=zP)}return $P}var _arrayFilter=arrayFilter$1;function stubArray$1(){return[]}var stubArray_1=stubArray$1,arrayFilter=_arrayFilter,stubArray=stubArray_1,objectProto$6=Object.prototype,propertyIsEnumerable$1=objectProto$6.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols$1=nativeGetSymbols?function(Ff){return Ff==null?[]:(Ff=Object(Ff),arrayFilter(nativeGetSymbols(Ff),function(kh){return propertyIsEnumerable$1.call(Ff,kh)}))}:stubArray,_getSymbols=getSymbols$1;function baseTimes$1(Ff,kh){for(var x_=-1,$_=Array(Ff);++x_<Ff;)$_[x_]=kh(x_);return $_}var _baseTimes=baseTimes$1,baseGetTag$2=_baseGetTag,isObjectLike$3=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(Ff){return isObjectLike$3(Ff)&&baseGetTag$2(Ff)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$2=isObjectLike_1,objectProto$5=Object.prototype,hasOwnProperty$5=objectProto$5.hasOwnProperty,propertyIsEnumerable=objectProto$5.propertyIsEnumerable,isArguments$1=baseIsArguments(function(){return arguments}())?baseIsArguments:function(Ff){return isObjectLike$2(Ff)&&hasOwnProperty$5.call(Ff,"callee")&&!propertyIsEnumerable.call(Ff,"callee")},isArguments_1=isArguments$1,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;isBuffer$2.exports;(function(Ff,kh){var x_=_root,$_=stubFalse_1,B_=kh&&!kh.nodeType&&kh,$P=B_&&!0&&Ff&&!Ff.nodeType&&Ff,zP=$P&&$P.exports===B_,eme=zP?x_.Buffer:void 0,tme=eme?eme.isBuffer:void 0,nme=tme||$_;Ff.exports=nme})(isBuffer$2,isBuffer$2.exports);var isBufferExports=isBuffer$2.exports,MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$1(Ff,kh){var x_=typeof Ff;return kh=kh??MAX_SAFE_INTEGER$1,!!kh&&(x_=="number"||x_!="symbol"&&reIsUint.test(Ff))&&Ff>-1&&Ff%1==0&&Ff<kh}var _isIndex=isIndex$1,MAX_SAFE_INTEGER=9007199254740991;function isLength$2(Ff){return typeof Ff=="number"&&Ff>-1&&Ff%1==0&&Ff<=MAX_SAFE_INTEGER}var isLength_1=isLength$2,baseGetTag$1=_baseGetTag,isLength$1=isLength_1,isObjectLike$1=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag$1="[object Map]",numberTag="[object Number]",objectTag$2="[object Object]",regexpTag="[object RegExp]",setTag$1="[object Set]",stringTag="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag$1]=typedArrayTags[numberTag]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag]=typedArrayTags[setTag$1]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag$1]=!1;function baseIsTypedArray$1(Ff){return isObjectLike$1(Ff)&&isLength$1(Ff.length)&&!!typedArrayTags[baseGetTag$1(Ff)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(Ff){return function(kh){return Ff(kh)}}var _baseUnary=baseUnary$1,_nodeUtil={exports:{}};_nodeUtil.exports;(function(Ff,kh){var x_=_freeGlobal,$_=kh&&!kh.nodeType&&kh,B_=$_&&!0&&Ff&&!Ff.nodeType&&Ff,$P=B_&&B_.exports===$_,zP=$P&&x_.process,eme=function(){try{var tme=B_&&B_.require&&B_.require("util").types;return tme||zP&&zP.binding&&zP.binding("util")}catch{}}();Ff.exports=eme})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$2,baseTimes=_baseTimes,isArguments=isArguments_1,isArray$1=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$4=Object.prototype,hasOwnProperty$4=objectProto$4.hasOwnProperty;function arrayLikeKeys$1(Ff,kh){var x_=isArray$1(Ff),$_=!x_&&isArguments(Ff),B_=!x_&&!$_&&isBuffer$1(Ff),$P=!x_&&!$_&&!B_&&isTypedArray$1(Ff),zP=x_||$_||B_||$P,eme=zP?baseTimes(Ff.length,String):[],tme=eme.length;for(var nme in Ff)(kh||hasOwnProperty$4.call(Ff,nme))&&!(zP&&(nme=="length"||B_&&(nme=="offset"||nme=="parent")||$P&&(nme=="buffer"||nme=="byteLength"||nme=="byteOffset")||isIndex(nme,tme)))&&eme.push(nme);return eme}var _arrayLikeKeys=arrayLikeKeys$1,objectProto$3=Object.prototype;function isPrototype$1(Ff){var kh=Ff&&Ff.constructor,x_=typeof kh=="function"&&kh.prototype||objectProto$3;return Ff===x_}var _isPrototype=isPrototype$1;function overArg$1(Ff,kh){return function(x_){return Ff(kh(x_))}}var _overArg=overArg$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype=_isPrototype,nativeKeys=_nativeKeys,objectProto$2=Object.prototype,hasOwnProperty$3=objectProto$2.hasOwnProperty;function baseKeys$1(Ff){if(!isPrototype(Ff))return nativeKeys(Ff);var kh=[];for(var x_ in Object(Ff))hasOwnProperty$3.call(Ff,x_)&&x_!="constructor"&&kh.push(x_);return kh}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength=isLength_1;function isArrayLike$1(Ff){return Ff!=null&&isLength(Ff.length)&&!isFunction(Ff)}var isArrayLike_1=isArrayLike$1,arrayLikeKeys=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike=isArrayLike_1;function keys$1(Ff){return isArrayLike(Ff)?arrayLikeKeys(Ff):baseKeys(Ff)}var keys_1=keys$1,baseGetAllKeys=_baseGetAllKeys,getSymbols=_getSymbols,keys=keys_1;function getAllKeys$1(Ff){return baseGetAllKeys(Ff,keys,getSymbols)}var _getAllKeys=getAllKeys$1,getAllKeys=_getAllKeys,COMPARE_PARTIAL_FLAG$1=1,objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function equalObjects$1(Ff,kh,x_,$_,B_,$P){var zP=x_&COMPARE_PARTIAL_FLAG$1,eme=getAllKeys(Ff),tme=eme.length,nme=getAllKeys(kh),rme=nme.length;if(tme!=rme&&!zP)return!1;for(var ame=tme;ame--;){var ome=eme[ame];if(!(zP?ome in kh:hasOwnProperty$2.call(kh,ome)))return!1}var ime=$P.get(Ff),cme=$P.get(kh);if(ime&&cme)return ime==kh&&cme==Ff;var ume=!0;$P.set(Ff,kh),$P.set(kh,Ff);for(var sme=zP;++ame<tme;){ome=eme[ame];var fme=Ff[ome],lme=kh[ome];if($_)var hme=zP?$_(lme,fme,ome,kh,Ff,$P):$_(fme,lme,ome,Ff,kh,$P);if(!(hme===void 0?fme===lme||B_(fme,lme,x_,$_,$P):hme)){ume=!1;break}sme||(sme=ome=="constructor")}if(ume&&!sme){var pme=Ff.constructor,gme=kh.constructor;pme!=gme&&"constructor"in Ff&&"constructor"in kh&&!(typeof pme=="function"&&pme instanceof pme&&typeof gme=="function"&&gme instanceof gme)&&(ume=!1)}return $P.delete(Ff),$P.delete(kh),ume}var _equalObjects=equalObjects$1,getNative$3=_getNative,root$3=_root,DataView$1=getNative$3(root$3,"DataView"),_DataView=DataView$1,getNative$2=_getNative,root$2=_root,Promise$2=getNative$2(root$2,"Promise"),_Promise=Promise$2,getNative$1=_getNative,root$1=_root,Set$2=getNative$1(root$1,"Set"),_Set=Set$2,getNative=_getNative,root=_root,WeakMap$2=getNative(root,"WeakMap"),_WeakMap=WeakMap$2,DataView=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=_WeakMap,baseGetTag=_baseGetTag,toSource=_toSource,mapTag="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$1=baseGetTag;(DataView&&getTag$1(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map$1&&getTag$1(new Map$1)!=mapTag||Promise$1&&getTag$1(Promise$1.resolve())!=promiseTag||Set$1&&getTag$1(new Set$1)!=setTag||WeakMap$1&&getTag$1(new WeakMap$1)!=weakMapTag)&&(getTag$1=function(Ff){var kh=baseGetTag(Ff),x_=kh==objectTag$1?Ff.constructor:void 0,$_=x_?toSource(x_):"";if($_)switch($_){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}return kh});var _getTag=getTag$1,Stack=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag=_getTag,isArray=isArray_1,isBuffer=isBufferExports,isTypedArray=isTypedArray_1,COMPARE_PARTIAL_FLAG=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty$1=objectProto.hasOwnProperty;function baseIsEqualDeep$1(Ff,kh,x_,$_,B_,$P){var zP=isArray(Ff),eme=isArray(kh),tme=zP?arrayTag:getTag(Ff),nme=eme?arrayTag:getTag(kh);tme=tme==argsTag?objectTag:tme,nme=nme==argsTag?objectTag:nme;var rme=tme==objectTag,ame=nme==objectTag,ome=tme==nme;if(ome&&isBuffer(Ff)){if(!isBuffer(kh))return!1;zP=!0,rme=!1}if(ome&&!rme)return $P||($P=new Stack),zP||isTypedArray(Ff)?equalArrays(Ff,kh,x_,$_,B_,$P):equalByTag(Ff,kh,tme,x_,$_,B_,$P);if(!(x_&COMPARE_PARTIAL_FLAG)){var ime=rme&&hasOwnProperty$1.call(Ff,"__wrapped__"),cme=ame&&hasOwnProperty$1.call(kh,"__wrapped__");if(ime||cme){var ume=ime?Ff.value():Ff,sme=cme?kh.value():kh;return $P||($P=new Stack),B_(ume,sme,x_,$_,$P)}}return ome?($P||($P=new Stack),equalObjects(Ff,kh,x_,$_,B_,$P)):!1}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike=isObjectLike_1;function baseIsEqual$1(Ff,kh,x_,$_,B_){return Ff===kh?!0:Ff==null||kh==null||!isObjectLike(Ff)&&!isObjectLike(kh)?Ff!==Ff&&kh!==kh:baseIsEqualDeep(Ff,kh,x_,$_,baseIsEqual$1,B_)}var _baseIsEqual=baseIsEqual$1,baseIsEqual=_baseIsEqual;function isEqual(Ff,kh){return baseIsEqual(Ff,kh)}var isEqual_1$1=isEqual,quill={exports:{}};/*!
|
|
398
398
|
* Quill Editor v1.3.7
|
|
399
399
|
* https://quilljs.com/
|
|
400
400
|
* Copyright (c) 2014, Jason Chen
|
package/dist/index.es.js
CHANGED
|
@@ -39451,7 +39451,7 @@ const FormContainer = /* @__PURE__ */ forwardRef((Ff, kh) => {
|
|
|
39451
39451
|
};
|
|
39452
39452
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(Form, {
|
|
39453
39453
|
form: B_,
|
|
39454
|
-
className: "form-container fp-0 fw-full fh-full box-border
|
|
39454
|
+
className: "form-container fp-0 fw-full fh-full box-border",
|
|
39455
39455
|
onFieldsChange: cme,
|
|
39456
39456
|
children: $P
|
|
39457
39457
|
});
|
package/package.json
CHANGED
|
@@ -270,7 +270,7 @@ const FormContainer = forwardRef(({ cols = 1, children }, ref) => {
|
|
|
270
270
|
};
|
|
271
271
|
|
|
272
272
|
return (
|
|
273
|
-
<Form form={form} className="form-container fp-0 fw-full fh-full box-border
|
|
273
|
+
<Form form={form} className="form-container fp-0 fw-full fh-full box-border" onFieldsChange={handleFieldsChange}>
|
|
274
274
|
{formContent}
|
|
275
275
|
</Form>
|
|
276
276
|
);
|