xph-crud 0.0.4 → 0.0.5

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.
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var It;function cn(){if(It)return Re;It=1;var e=d,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(i,c,u){var f,h={},g=null,C=null;u!==void 0&&(g=""+u),c.key!==void 0&&(g=""+c.key),c.ref!==void 0&&(C=c.ref);for(f in c)n.call(c,f)&&!s.hasOwnProperty(f)&&(h[f]=c[f]);if(i&&i.defaultProps)for(f in c=i.defaultProps,c)h[f]===void 0&&(h[f]=c[f]);return{$$typeof:t,type:i,key:g,ref:C,props:h,_owner:o.current}}return Re.Fragment=r,Re.jsx=a,Re.jsxs=a,Re}var Ie={};/**
9
+ */var It;function cn(){if(It)return Re;It=1;var e=d,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function a(i,c,u){var f,g={},p=null,C=null;u!==void 0&&(p=""+u),c.key!==void 0&&(p=""+c.key),c.ref!==void 0&&(C=c.ref);for(f in c)n.call(c,f)&&!s.hasOwnProperty(f)&&(g[f]=c[f]);if(i&&i.defaultProps)for(f in c=i.defaultProps,c)g[f]===void 0&&(g[f]=c[f]);return{$$typeof:t,type:i,key:p,ref:C,props:g,_owner:o.current}}return Re.Fragment=r,Re.jsx=a,Re.jsxs=a,Re}var Ie={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,12 +14,12 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var zt;function un(){return zt||(zt=1,process.env.NODE_ENV!=="production"&&function(){var e=d,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),p=Symbol.iterator,w="@@iterator";function $(l){if(l===null||typeof l!="object")return null;var v=p&&l[p]||l[w];return typeof v=="function"?v:null}var z=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function A(l){{for(var v=arguments.length,P=new Array(v>1?v-1:0),L=1;L<v;L++)P[L-1]=arguments[L];V("error",l,P)}}function V(l,v,P){{var L=z.ReactDebugCurrentFrame,X=L.getStackAddendum();X!==""&&(v+="%s",P=P.concat([X]));var Z=P.map(function(Y){return String(Y)});Z.unshift("Warning: "+v),Function.prototype.apply.call(console[l],console,Z)}}var J=!1,G=!1,Q=!1,N=!1,_=!1,E;E=Symbol.for("react.module.reference");function D(l){return!!(typeof l=="string"||typeof l=="function"||l===n||l===s||_||l===o||l===u||l===f||N||l===C||J||G||Q||typeof l=="object"&&l!==null&&(l.$$typeof===g||l.$$typeof===h||l.$$typeof===a||l.$$typeof===i||l.$$typeof===c||l.$$typeof===E||l.getModuleId!==void 0))}function S(l,v,P){var L=l.displayName;if(L)return L;var X=v.displayName||v.name||"";return X!==""?P+"("+X+")":P}function k(l){return l.displayName||"Context"}function W(l){if(l==null)return null;if(typeof l.tag=="number"&&A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case n:return"Fragment";case r:return"Portal";case s:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case i:var v=l;return k(v)+".Consumer";case a:var P=l;return k(P._context)+".Provider";case c:return S(l,l.render,"ForwardRef");case h:var L=l.displayName||null;return L!==null?L:W(l.type)||"Memo";case g:{var X=l,Z=X._payload,Y=X._init;try{return W(Y(Z))}catch{return null}}}return null}var T=Object.assign,b=0,y,j,x,R,M,O,I;function H(){}H.__reactDisabledLog=!0;function B(){{if(b===0){y=console.log,j=console.info,x=console.warn,R=console.error,M=console.group,O=console.groupCollapsed,I=console.groupEnd;var l={configurable:!0,enumerable:!0,value:H,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}b++}}function oe(){{if(b--,b===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},l,{value:y}),info:T({},l,{value:j}),warn:T({},l,{value:x}),error:T({},l,{value:R}),group:T({},l,{value:M}),groupCollapsed:T({},l,{value:O}),groupEnd:T({},l,{value:I})})}b<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var me=z.ReactCurrentDispatcher,ie;function de(l,v,P){{if(ie===void 0)try{throw Error()}catch(X){var L=X.stack.trim().match(/\n( *(at )?)/);ie=L&&L[1]||""}return`
18
- `+ie+l}}var ue=!1,te;{var pe=typeof WeakMap=="function"?WeakMap:Map;te=new pe}function ye(l,v){if(!l||ue)return"";{var P=te.get(l);if(P!==void 0)return P}var L;ue=!0;var X=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Z;Z=me.current,me.current=null,B();try{if(v){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(Se){L=Se}Reflect.construct(l,[],Y)}else{try{Y.call()}catch(Se){L=Se}l.call(Y.prototype)}}else{try{throw Error()}catch(Se){L=Se}l()}}catch(Se){if(Se&&L&&typeof Se.stack=="string"){for(var U=Se.stack.split(`
17
+ */var zt;function un(){return zt||(zt=1,process.env.NODE_ENV!=="production"&&function(){var e=d,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),h=Symbol.iterator,w="@@iterator";function $(l){if(l===null||typeof l!="object")return null;var v=h&&l[h]||l[w];return typeof v=="function"?v:null}var z=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function A(l){{for(var v=arguments.length,P=new Array(v>1?v-1:0),L=1;L<v;L++)P[L-1]=arguments[L];V("error",l,P)}}function V(l,v,P){{var L=z.ReactDebugCurrentFrame,X=L.getStackAddendum();X!==""&&(v+="%s",P=P.concat([X]));var Z=P.map(function(Y){return String(Y)});Z.unshift("Warning: "+v),Function.prototype.apply.call(console[l],console,Z)}}var J=!1,G=!1,Q=!1,N=!1,y=!1,E;E=Symbol.for("react.module.reference");function D(l){return!!(typeof l=="string"||typeof l=="function"||l===n||l===s||y||l===o||l===u||l===f||N||l===C||J||G||Q||typeof l=="object"&&l!==null&&(l.$$typeof===p||l.$$typeof===g||l.$$typeof===a||l.$$typeof===i||l.$$typeof===c||l.$$typeof===E||l.getModuleId!==void 0))}function S(l,v,P){var L=l.displayName;if(L)return L;var X=v.displayName||v.name||"";return X!==""?P+"("+X+")":P}function k(l){return l.displayName||"Context"}function W(l){if(l==null)return null;if(typeof l.tag=="number"&&A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case n:return"Fragment";case r:return"Portal";case s:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case f:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case i:var v=l;return k(v)+".Consumer";case a:var P=l;return k(P._context)+".Provider";case c:return S(l,l.render,"ForwardRef");case g:var L=l.displayName||null;return L!==null?L:W(l.type)||"Memo";case p:{var X=l,Z=X._payload,Y=X._init;try{return W(Y(Z))}catch{return null}}}return null}var T=Object.assign,b=0,_,j,x,R,M,O,I;function H(){}H.__reactDisabledLog=!0;function B(){{if(b===0){_=console.log,j=console.info,x=console.warn,R=console.error,M=console.group,O=console.groupCollapsed,I=console.groupEnd;var l={configurable:!0,enumerable:!0,value:H,writable:!0};Object.defineProperties(console,{info:l,log:l,warn:l,error:l,group:l,groupCollapsed:l,groupEnd:l})}b++}}function oe(){{if(b--,b===0){var l={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:T({},l,{value:_}),info:T({},l,{value:j}),warn:T({},l,{value:x}),error:T({},l,{value:R}),group:T({},l,{value:M}),groupCollapsed:T({},l,{value:O}),groupEnd:T({},l,{value:I})})}b<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var me=z.ReactCurrentDispatcher,ie;function de(l,v,P){{if(ie===void 0)try{throw Error()}catch(X){var L=X.stack.trim().match(/\n( *(at )?)/);ie=L&&L[1]||""}return`
18
+ `+ie+l}}var ue=!1,te;{var pe=typeof WeakMap=="function"?WeakMap:Map;te=new pe}function _e(l,v){if(!l||ue)return"";{var P=te.get(l);if(P!==void 0)return P}var L;ue=!0;var X=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Z;Z=me.current,me.current=null,B();try{if(v){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(Se){L=Se}Reflect.construct(l,[],Y)}else{try{Y.call()}catch(Se){L=Se}l.call(Y.prototype)}}else{try{throw Error()}catch(Se){L=Se}l()}}catch(Se){if(Se&&L&&typeof Se.stack=="string"){for(var U=Se.stack.split(`
19
19
  `),ae=L.stack.split(`
20
20
  `),re=U.length-1,ne=ae.length-1;re>=1&&ne>=0&&U[re]!==ae[ne];)ne--;for(;re>=1&&ne>=0;re--,ne--)if(U[re]!==ae[ne]){if(re!==1||ne!==1)do if(re--,ne--,ne<0||U[re]!==ae[ne]){var he=`
21
- `+U[re].replace(" at new "," at ");return l.displayName&&he.includes("<anonymous>")&&(he=he.replace("<anonymous>",l.displayName)),typeof l=="function"&&te.set(l,he),he}while(re>=1&&ne>=0);break}}}finally{ue=!1,me.current=Z,oe(),Error.prepareStackTrace=X}var Me=l?l.displayName||l.name:"",on=Me?de(Me):"";return typeof l=="function"&&te.set(l,on),on}function je(l,v,P){return ye(l,!1)}function Dl(l){var v=l.prototype;return!!(v&&v.isReactComponent)}function ot(l,v,P){if(l==null)return"";if(typeof l=="function")return ye(l,Dl(l));if(typeof l=="string")return de(l);switch(l){case u:return de("Suspense");case f:return de("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case c:return je(l.render);case h:return ot(l.type,v,P);case g:{var L=l,X=L._payload,Z=L._init;try{return ot(Z(X),v,P)}catch{}}}return""}var st=Object.prototype.hasOwnProperty,Yr={},qr=z.ReactDebugCurrentFrame;function it(l){if(l){var v=l._owner,P=ot(l.type,l._source,v?v.type:null);qr.setExtraStackFrame(P)}else qr.setExtraStackFrame(null)}function $l(l,v,P,L,X){{var Z=Function.call.bind(st);for(var Y in l)if(Z(l,Y)){var U=void 0;try{if(typeof l[Y]!="function"){var ae=Error((L||"React class")+": "+P+" type `"+Y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[Y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ae.name="Invariant Violation",ae}U=l[Y](v,Y,L,P,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(re){U=re}U&&!(U instanceof Error)&&(it(X),A("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",L||"React class",P,Y,typeof U),it(null)),U instanceof Error&&!(U.message in Yr)&&(Yr[U.message]=!0,it(X),A("Failed %s type: %s",P,U.message),it(null))}}}var jl=Array.isArray;function Ft(l){return jl(l)}function El(l){{var v=typeof Symbol=="function"&&Symbol.toStringTag,P=v&&l[Symbol.toStringTag]||l.constructor.name||"Object";return P}}function Fl(l){try{return Gr(l),!1}catch{return!0}}function Gr(l){return""+l}function Xr(l){if(Fl(l))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",El(l)),Gr(l)}var Be=z.ReactCurrentOwner,Ol={key:!0,ref:!0,__self:!0,__source:!0},Kr,Jr,Ot;Ot={};function Al(l){if(st.call(l,"ref")){var v=Object.getOwnPropertyDescriptor(l,"ref").get;if(v&&v.isReactWarning)return!1}return l.ref!==void 0}function Ml(l){if(st.call(l,"key")){var v=Object.getOwnPropertyDescriptor(l,"key").get;if(v&&v.isReactWarning)return!1}return l.key!==void 0}function Rl(l,v){if(typeof l.ref=="string"&&Be.current&&v&&Be.current.stateNode!==v){var P=W(Be.current.type);Ot[P]||(A('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',W(Be.current.type),l.ref),Ot[P]=!0)}}function Il(l,v){{var P=function(){Kr||(Kr=!0,A("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",v))};P.isReactWarning=!0,Object.defineProperty(l,"key",{get:P,configurable:!0})}}function zl(l,v){{var P=function(){Jr||(Jr=!0,A("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",v))};P.isReactWarning=!0,Object.defineProperty(l,"ref",{get:P,configurable:!0})}}var kl=function(l,v,P,L,X,Z,Y){var U={$$typeof:t,type:l,key:v,ref:P,props:Y,_owner:Z};return U._store={},Object.defineProperty(U._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(U,"_self",{configurable:!1,enumerable:!1,writable:!1,value:L}),Object.defineProperty(U,"_source",{configurable:!1,enumerable:!1,writable:!1,value:X}),Object.freeze&&(Object.freeze(U.props),Object.freeze(U)),U};function Ll(l,v,P,L,X){{var Z,Y={},U=null,ae=null;P!==void 0&&(Xr(P),U=""+P),Ml(v)&&(Xr(v.key),U=""+v.key),Al(v)&&(ae=v.ref,Rl(v,X));for(Z in v)st.call(v,Z)&&!Ol.hasOwnProperty(Z)&&(Y[Z]=v[Z]);if(l&&l.defaultProps){var re=l.defaultProps;for(Z in re)Y[Z]===void 0&&(Y[Z]=re[Z])}if(U||ae){var ne=typeof l=="function"?l.displayName||l.name||"Unknown":l;U&&Il(Y,ne),ae&&zl(Y,ne)}return kl(l,U,ae,X,L,Be.current,Y)}}var At=z.ReactCurrentOwner,Zr=z.ReactDebugCurrentFrame;function Ae(l){if(l){var v=l._owner,P=ot(l.type,l._source,v?v.type:null);Zr.setExtraStackFrame(P)}else Zr.setExtraStackFrame(null)}var Mt;Mt=!1;function Rt(l){return typeof l=="object"&&l!==null&&l.$$typeof===t}function Qr(){{if(At.current){var l=W(At.current.type);if(l)return`
21
+ `+U[re].replace(" at new "," at ");return l.displayName&&he.includes("<anonymous>")&&(he=he.replace("<anonymous>",l.displayName)),typeof l=="function"&&te.set(l,he),he}while(re>=1&&ne>=0);break}}}finally{ue=!1,me.current=Z,oe(),Error.prepareStackTrace=X}var Me=l?l.displayName||l.name:"",on=Me?de(Me):"";return typeof l=="function"&&te.set(l,on),on}function je(l,v,P){return _e(l,!1)}function Dl(l){var v=l.prototype;return!!(v&&v.isReactComponent)}function ot(l,v,P){if(l==null)return"";if(typeof l=="function")return _e(l,Dl(l));if(typeof l=="string")return de(l);switch(l){case u:return de("Suspense");case f:return de("SuspenseList")}if(typeof l=="object")switch(l.$$typeof){case c:return je(l.render);case g:return ot(l.type,v,P);case p:{var L=l,X=L._payload,Z=L._init;try{return ot(Z(X),v,P)}catch{}}}return""}var st=Object.prototype.hasOwnProperty,Yr={},qr=z.ReactDebugCurrentFrame;function it(l){if(l){var v=l._owner,P=ot(l.type,l._source,v?v.type:null);qr.setExtraStackFrame(P)}else qr.setExtraStackFrame(null)}function $l(l,v,P,L,X){{var Z=Function.call.bind(st);for(var Y in l)if(Z(l,Y)){var U=void 0;try{if(typeof l[Y]!="function"){var ae=Error((L||"React class")+": "+P+" type `"+Y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof l[Y]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ae.name="Invariant Violation",ae}U=l[Y](v,Y,L,P,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(re){U=re}U&&!(U instanceof Error)&&(it(X),A("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",L||"React class",P,Y,typeof U),it(null)),U instanceof Error&&!(U.message in Yr)&&(Yr[U.message]=!0,it(X),A("Failed %s type: %s",P,U.message),it(null))}}}var jl=Array.isArray;function Ft(l){return jl(l)}function El(l){{var v=typeof Symbol=="function"&&Symbol.toStringTag,P=v&&l[Symbol.toStringTag]||l.constructor.name||"Object";return P}}function Fl(l){try{return Gr(l),!1}catch{return!0}}function Gr(l){return""+l}function Xr(l){if(Fl(l))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",El(l)),Gr(l)}var Be=z.ReactCurrentOwner,Ol={key:!0,ref:!0,__self:!0,__source:!0},Kr,Jr,Ot;Ot={};function Al(l){if(st.call(l,"ref")){var v=Object.getOwnPropertyDescriptor(l,"ref").get;if(v&&v.isReactWarning)return!1}return l.ref!==void 0}function Ml(l){if(st.call(l,"key")){var v=Object.getOwnPropertyDescriptor(l,"key").get;if(v&&v.isReactWarning)return!1}return l.key!==void 0}function Rl(l,v){if(typeof l.ref=="string"&&Be.current&&v&&Be.current.stateNode!==v){var P=W(Be.current.type);Ot[P]||(A('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',W(Be.current.type),l.ref),Ot[P]=!0)}}function Il(l,v){{var P=function(){Kr||(Kr=!0,A("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",v))};P.isReactWarning=!0,Object.defineProperty(l,"key",{get:P,configurable:!0})}}function zl(l,v){{var P=function(){Jr||(Jr=!0,A("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",v))};P.isReactWarning=!0,Object.defineProperty(l,"ref",{get:P,configurable:!0})}}var kl=function(l,v,P,L,X,Z,Y){var U={$$typeof:t,type:l,key:v,ref:P,props:Y,_owner:Z};return U._store={},Object.defineProperty(U._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(U,"_self",{configurable:!1,enumerable:!1,writable:!1,value:L}),Object.defineProperty(U,"_source",{configurable:!1,enumerable:!1,writable:!1,value:X}),Object.freeze&&(Object.freeze(U.props),Object.freeze(U)),U};function Ll(l,v,P,L,X){{var Z,Y={},U=null,ae=null;P!==void 0&&(Xr(P),U=""+P),Ml(v)&&(Xr(v.key),U=""+v.key),Al(v)&&(ae=v.ref,Rl(v,X));for(Z in v)st.call(v,Z)&&!Ol.hasOwnProperty(Z)&&(Y[Z]=v[Z]);if(l&&l.defaultProps){var re=l.defaultProps;for(Z in re)Y[Z]===void 0&&(Y[Z]=re[Z])}if(U||ae){var ne=typeof l=="function"?l.displayName||l.name||"Unknown":l;U&&Il(Y,ne),ae&&zl(Y,ne)}return kl(l,U,ae,X,L,Be.current,Y)}}var At=z.ReactCurrentOwner,Zr=z.ReactDebugCurrentFrame;function Ae(l){if(l){var v=l._owner,P=ot(l.type,l._source,v?v.type:null);Zr.setExtraStackFrame(P)}else Zr.setExtraStackFrame(null)}var Mt;Mt=!1;function Rt(l){return typeof l=="object"&&l!==null&&l.$$typeof===t}function Qr(){{if(At.current){var l=W(At.current.type);if(l)return`
22
22
 
23
23
  Check the render method of \``+l+"`."}return""}}function Nl(l){return""}var en={};function Wl(l){{var v=Qr();if(!v){var P=typeof l=="string"?l:l.displayName||l.name;P&&(v=`
24
24
 
25
- Check the top-level render call using <`+P+">.")}return v}}function tn(l,v){{if(!l._store||l._store.validated||l.key!=null)return;l._store.validated=!0;var P=Wl(v);if(en[P])return;en[P]=!0;var L="";l&&l._owner&&l._owner!==At.current&&(L=" It was passed a child from "+W(l._owner.type)+"."),Ae(l),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',P,L),Ae(null)}}function rn(l,v){{if(typeof l!="object")return;if(Ft(l))for(var P=0;P<l.length;P++){var L=l[P];Rt(L)&&tn(L,v)}else if(Rt(l))l._store&&(l._store.validated=!0);else if(l){var X=$(l);if(typeof X=="function"&&X!==l.entries)for(var Z=X.call(l),Y;!(Y=Z.next()).done;)Rt(Y.value)&&tn(Y.value,v)}}}function Hl(l){{var v=l.type;if(v==null||typeof v=="string")return;var P;if(typeof v=="function")P=v.propTypes;else if(typeof v=="object"&&(v.$$typeof===c||v.$$typeof===h))P=v.propTypes;else return;if(P){var L=W(v);$l(P,l.props,"prop",L,l)}else if(v.PropTypes!==void 0&&!Mt){Mt=!0;var X=W(v);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",X||"Unknown")}typeof v.getDefaultProps=="function"&&!v.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Bl(l){{for(var v=Object.keys(l.props),P=0;P<v.length;P++){var L=v[P];if(L!=="children"&&L!=="key"){Ae(l),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",L),Ae(null);break}}l.ref!==null&&(Ae(l),A("Invalid attribute `ref` supplied to `React.Fragment`."),Ae(null))}}function nn(l,v,P,L,X,Z){{var Y=D(l);if(!Y){var U="";(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&(U+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ae=Nl();ae?U+=ae:U+=Qr();var re;l===null?re="null":Ft(l)?re="array":l!==void 0&&l.$$typeof===t?(re="<"+(W(l.type)||"Unknown")+" />",U=" Did you accidentally export a JSX literal instead of a component?"):re=typeof l,A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",re,U)}var ne=Ll(l,v,P,X,Z);if(ne==null)return ne;if(Y){var he=v.children;if(he!==void 0)if(L)if(Ft(he)){for(var Me=0;Me<he.length;Me++)rn(he[Me],l);Object.freeze&&Object.freeze(he)}else A("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else rn(he,l)}return l===n?Bl(ne):Hl(ne),ne}}function Ul(l,v,P){return nn(l,v,P,!0)}function Vl(l,v,P){return nn(l,v,P,!1)}var Yl=Vl,ql=Ul;Ie.Fragment=n,Ie.jsx=Yl,Ie.jsxs=ql}()),Ie}process.env.NODE_ENV==="production"?ct.exports=cn():ct.exports=un();var m=ct.exports,kt=typeof global=="object"&&global&&global.Object===Object&&global,fn=typeof self=="object"&&self&&self.Object===Object&&self,be=kt||fn||Function("return this")(),Pe=be.Symbol,Lt=Object.prototype,dn=Lt.hasOwnProperty,pn=Lt.toString,ze=Pe?Pe.toStringTag:void 0;function hn(e){var t=dn.call(e,ze),r=e[ze];try{e[ze]=void 0;var n=!0}catch{}var o=pn.call(e);return n&&(t?e[ze]=r:delete e[ze]),o}var gn=Object.prototype,mn=gn.toString;function vn(e){return mn.call(e)}var bn="[object Null]",_n="[object Undefined]",Nt=Pe?Pe.toStringTag:void 0;function _e(e){return e==null?e===void 0?_n:bn:Nt&&Nt in Object(e)?hn(e):vn(e)}function ge(e){return e!=null&&typeof e=="object"}var yn="[object Symbol]";function ut(e){return typeof e=="symbol"||ge(e)&&_e(e)==yn}function wn(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var ce=Array.isArray,Cn=1/0,Wt=Pe?Pe.prototype:void 0,Ht=Wt?Wt.toString:void 0;function Bt(e){if(typeof e=="string")return e;if(ce(e))return wn(e,Bt)+"";if(ut(e))return Ht?Ht.call(e):"";var t=e+"";return t=="0"&&1/e==-Cn?"-0":t}function fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ut(e){return e}var xn="[object AsyncFunction]",Tn="[object Function]",Sn="[object GeneratorFunction]",Pn="[object Proxy]";function se(e){if(!fe(e))return!1;var t=_e(e);return t==Tn||t==Sn||t==xn||t==Pn}var ft=be["__core-js_shared__"],Vt=function(){var e=/[^.]+$/.exec(ft&&ft.keys&&ft.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Dn(e){return!!Vt&&Vt in e}var $n=Function.prototype,jn=$n.toString;function Ee(e){if(e!=null){try{return jn.call(e)}catch{}try{return e+""}catch{}}return""}var En=/[\\^$.*+?()[\]{}|]/g,Fn=/^\[object .+?Constructor\]$/,On=Function.prototype,An=Object.prototype,Mn=On.toString,Rn=An.hasOwnProperty,In=RegExp("^"+Mn.call(Rn).replace(En,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zn(e){if(!fe(e)||Dn(e))return!1;var t=se(e)?In:Fn;return t.test(Ee(e))}function kn(e,t){return e==null?void 0:e[t]}function Fe(e,t){var r=kn(e,t);return zn(r)?r:void 0}var dt=Fe(be,"WeakMap"),Yt=Object.create,Ln=function(){function e(){}return function(t){if(!fe(t))return{};if(Yt)return Yt(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Nn(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Wn(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Hn=800,Bn=16,Un=Date.now;function Vn(e){var t=0,r=0;return function(){var n=Un(),o=Bn-(n-r);if(r=n,o>0){if(++t>=Hn)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Yn(e){return function(){return e}}var Ue=function(){try{var e=Fe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),qn=Ue?function(e,t){return Ue(e,"toString",{configurable:!0,enumerable:!1,value:Yn(t),writable:!0})}:Ut,Gn=Vn(qn),Xn=9007199254740991,Kn=/^(?:0|[1-9]\d*)$/;function pt(e,t){var r=typeof e;return t=t??Xn,!!t&&(r=="number"||r!="symbol"&&Kn.test(e))&&e>-1&&e%1==0&&e<t}function ht(e,t,r){t=="__proto__"&&Ue?Ue(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ke(e,t){return e===t||e!==e&&t!==t}var Jn=Object.prototype,Zn=Jn.hasOwnProperty;function qt(e,t,r){var n=e[t];(!(Zn.call(e,t)&&ke(n,r))||r===void 0&&!(t in e))&&ht(e,t,r)}function Qn(e,t,r,n){var o=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var i=t[s],c=void 0;c===void 0&&(c=e[i]),o?ht(r,i,c):qt(r,i,c)}return r}var Gt=Math.max;function eo(e,t,r){return t=Gt(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,s=Gt(n.length-t,0),a=Array(s);++o<s;)a[o]=n[t+o];o=-1;for(var i=Array(t+1);++o<t;)i[o]=n[o];return i[t]=r(a),Nn(e,this,i)}}function to(e,t){return Gn(eo(e,t,Ut),e+"")}var ro=9007199254740991;function Xt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ro}function Ve(e){return e!=null&&Xt(e.length)&&!se(e)}function no(e,t,r){if(!fe(r))return!1;var n=typeof t;return(n=="number"?Ve(r)&&pt(t,r.length):n=="string"&&t in r)?ke(r[t],e):!1}function oo(e){return to(function(t,r){var n=-1,o=r.length,s=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(o--,s):void 0,a&&no(r[0],r[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++n<o;){var i=r[n];i&&e(t,i,n,s)}return t})}var so=Object.prototype;function gt(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||so;return e===r}function io(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var ao="[object Arguments]";function Kt(e){return ge(e)&&_e(e)==ao}var Jt=Object.prototype,lo=Jt.hasOwnProperty,co=Jt.propertyIsEnumerable,mt=Kt(function(){return arguments}())?Kt:function(e){return ge(e)&&lo.call(e,"callee")&&!co.call(e,"callee")};function uo(){return!1}var Zt=typeof q=="object"&&q&&!q.nodeType&&q,Qt=Zt&&typeof module=="object"&&module&&!module.nodeType&&module,fo=Qt&&Qt.exports===Zt,er=fo?be.Buffer:void 0,po=er?er.isBuffer:void 0,Ye=po||uo,ho="[object Arguments]",go="[object Array]",mo="[object Boolean]",vo="[object Date]",bo="[object Error]",_o="[object Function]",yo="[object Map]",wo="[object Number]",Co="[object Object]",xo="[object RegExp]",To="[object Set]",So="[object String]",Po="[object WeakMap]",Do="[object ArrayBuffer]",$o="[object DataView]",jo="[object Float32Array]",Eo="[object Float64Array]",Fo="[object Int8Array]",Oo="[object Int16Array]",Ao="[object Int32Array]",Mo="[object Uint8Array]",Ro="[object Uint8ClampedArray]",Io="[object Uint16Array]",zo="[object Uint32Array]",ee={};ee[jo]=ee[Eo]=ee[Fo]=ee[Oo]=ee[Ao]=ee[Mo]=ee[Ro]=ee[Io]=ee[zo]=!0,ee[ho]=ee[go]=ee[Do]=ee[mo]=ee[$o]=ee[vo]=ee[bo]=ee[_o]=ee[yo]=ee[wo]=ee[Co]=ee[xo]=ee[To]=ee[So]=ee[Po]=!1;function ko(e){return ge(e)&&Xt(e.length)&&!!ee[_e(e)]}function Lo(e){return function(t){return e(t)}}var tr=typeof q=="object"&&q&&!q.nodeType&&q,Le=tr&&typeof module=="object"&&module&&!module.nodeType&&module,No=Le&&Le.exports===tr,vt=No&&kt.process,rr=function(){try{var e=Le&&Le.require&&Le.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch{}}(),nr=rr&&rr.isTypedArray,bt=nr?Lo(nr):ko,Wo=Object.prototype,Ho=Wo.hasOwnProperty;function or(e,t){var r=ce(e),n=!r&&mt(e),o=!r&&!n&&Ye(e),s=!r&&!n&&!o&&bt(e),a=r||n||o||s,i=a?io(e.length,String):[],c=i.length;for(var u in e)(t||Ho.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||pt(u,c)))&&i.push(u);return i}function sr(e,t){return function(r){return e(t(r))}}var Bo=sr(Object.keys,Object),Uo=Object.prototype,Vo=Uo.hasOwnProperty;function Yo(e){if(!gt(e))return Bo(e);var t=[];for(var r in Object(e))Vo.call(e,r)&&r!="constructor"&&t.push(r);return t}function qo(e){return Ve(e)?or(e):Yo(e)}function Go(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Xo=Object.prototype,Ko=Xo.hasOwnProperty;function Jo(e){if(!fe(e))return Go(e);var t=gt(e),r=[];for(var n in e)n=="constructor"&&(t||!Ko.call(e,n))||r.push(n);return r}function ir(e){return Ve(e)?or(e,!0):Jo(e)}var Zo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qo=/^\w*$/;function es(e,t){if(ce(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ut(e)?!0:Qo.test(e)||!Zo.test(e)||t!=null&&e in Object(t)}var Ne=Fe(Object,"create");function ts(){this.__data__=Ne?Ne(null):{},this.size=0}function rs(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ns="__lodash_hash_undefined__",os=Object.prototype,ss=os.hasOwnProperty;function is(e){var t=this.__data__;if(Ne){var r=t[e];return r===ns?void 0:r}return ss.call(t,e)?t[e]:void 0}var as=Object.prototype,ls=as.hasOwnProperty;function cs(e){var t=this.__data__;return Ne?t[e]!==void 0:ls.call(t,e)}var us="__lodash_hash_undefined__";function fs(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ne&&t===void 0?us:t,this}function Oe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Oe.prototype.clear=ts,Oe.prototype.delete=rs,Oe.prototype.get=is,Oe.prototype.has=cs,Oe.prototype.set=fs;function ds(){this.__data__=[],this.size=0}function qe(e,t){for(var r=e.length;r--;)if(ke(e[r][0],t))return r;return-1}var ps=Array.prototype,hs=ps.splice;function gs(e){var t=this.__data__,r=qe(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():hs.call(t,r,1),--this.size,!0}function ms(e){var t=this.__data__,r=qe(t,e);return r<0?void 0:t[r][1]}function vs(e){return qe(this.__data__,e)>-1}function bs(e,t){var r=this.__data__,n=qe(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function we(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}we.prototype.clear=ds,we.prototype.delete=gs,we.prototype.get=ms,we.prototype.has=vs,we.prototype.set=bs;var We=Fe(be,"Map");function _s(){this.size=0,this.__data__={hash:new Oe,map:new(We||we),string:new Oe}}function ys(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ge(e,t){var r=e.__data__;return ys(t)?r[typeof t=="string"?"string":"hash"]:r.map}function ws(e){var t=Ge(this,e).delete(e);return this.size-=t?1:0,t}function Cs(e){return Ge(this,e).get(e)}function xs(e){return Ge(this,e).has(e)}function Ts(e,t){var r=Ge(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ce(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ce.prototype.clear=_s,Ce.prototype.delete=ws,Ce.prototype.get=Cs,Ce.prototype.has=xs,Ce.prototype.set=Ts;var Ss="Expected a function";function _t(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ss);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],s=r.cache;if(s.has(o))return s.get(o);var a=e.apply(this,n);return r.cache=s.set(o,a)||s,a};return r.cache=new(_t.Cache||Ce),r}_t.Cache=Ce;var Ps=500;function Ds(e){var t=_t(e,function(n){return r.size===Ps&&r.clear(),n}),r=t.cache;return t}var $s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,js=/\\(\\)?/g,Es=Ds(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace($s,function(r,n,o,s){t.push(o?s.replace(js,"$1"):n||r)}),t});function Fs(e){return e==null?"":Bt(e)}function Os(e,t){return ce(e)?e:es(e,t)?[e]:Es(Fs(e))}var As=1/0;function Ms(e){if(typeof e=="string"||ut(e))return e;var t=e+"";return t=="0"&&1/e==-As?"-0":t}function Rs(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var ar=sr(Object.getPrototypeOf,Object),Is="[object Object]",zs=Function.prototype,ks=Object.prototype,lr=zs.toString,Ls=ks.hasOwnProperty,Ns=lr.call(Object);function Ws(e){if(!ge(e)||_e(e)!=Is)return!1;var t=ar(e);if(t===null)return!0;var r=Ls.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&lr.call(r)==Ns}function Hs(){this.__data__=new we,this.size=0}function Bs(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Us(e){return this.__data__.get(e)}function Vs(e){return this.__data__.has(e)}var Ys=200;function qs(e,t){var r=this.__data__;if(r instanceof we){var n=r.__data__;if(!We||n.length<Ys-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ce(n)}return r.set(e,t),this.size=r.size,this}function xe(e){var t=this.__data__=new we(e);this.size=t.size}xe.prototype.clear=Hs,xe.prototype.delete=Bs,xe.prototype.get=Us,xe.prototype.has=Vs,xe.prototype.set=qs;var cr=typeof q=="object"&&q&&!q.nodeType&&q,ur=cr&&typeof module=="object"&&module&&!module.nodeType&&module,Gs=ur&&ur.exports===cr,fr=Gs?be.Buffer:void 0;fr&&fr.allocUnsafe;function Xs(e,t){return e.slice()}function Ks(e,t){for(var r=-1,n=e==null?0:e.length,o=0,s=[];++r<n;){var a=e[r];t(a,r,e)&&(s[o++]=a)}return s}function Js(){return[]}var Zs=Object.prototype,Qs=Zs.propertyIsEnumerable,dr=Object.getOwnPropertySymbols,ei=dr?function(e){return e==null?[]:(e=Object(e),Ks(dr(e),function(t){return Qs.call(e,t)}))}:Js;function ti(e,t,r){var n=t(e);return ce(e)?n:Rs(n,r(e))}function pr(e){return ti(e,qo,ei)}var yt=Fe(be,"DataView"),wt=Fe(be,"Promise"),Ct=Fe(be,"Set"),hr="[object Map]",ri="[object Object]",gr="[object Promise]",mr="[object Set]",vr="[object WeakMap]",br="[object DataView]",ni=Ee(yt),oi=Ee(We),si=Ee(wt),ii=Ee(Ct),ai=Ee(dt),De=_e;(yt&&De(new yt(new ArrayBuffer(1)))!=br||We&&De(new We)!=hr||wt&&De(wt.resolve())!=gr||Ct&&De(new Ct)!=mr||dt&&De(new dt)!=vr)&&(De=function(e){var t=_e(e),r=t==ri?e.constructor:void 0,n=r?Ee(r):"";if(n)switch(n){case ni:return br;case oi:return hr;case si:return gr;case ii:return mr;case ai:return vr}return t});var Xe=be.Uint8Array;function li(e){var t=new e.constructor(e.byteLength);return new Xe(t).set(new Xe(e)),t}function ci(e,t){var r=li(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}function ui(e){return typeof e.constructor=="function"&&!gt(e)?Ln(ar(e)):{}}var fi="__lodash_hash_undefined__";function di(e){return this.__data__.set(e,fi),this}function pi(e){return this.__data__.has(e)}function Ke(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ce;++t<r;)this.add(e[t])}Ke.prototype.add=Ke.prototype.push=di,Ke.prototype.has=pi;function hi(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function gi(e,t){return e.has(t)}var mi=1,vi=2;function _r(e,t,r,n,o,s){var a=r&mi,i=e.length,c=t.length;if(i!=c&&!(a&&c>i))return!1;var u=s.get(e),f=s.get(t);if(u&&f)return u==t&&f==e;var h=-1,g=!0,C=r&vi?new Ke:void 0;for(s.set(e,t),s.set(t,e);++h<i;){var p=e[h],w=t[h];if(n)var $=a?n(w,p,h,t,e,s):n(p,w,h,e,t,s);if($!==void 0){if($)continue;g=!1;break}if(C){if(!hi(t,function(z,A){if(!gi(C,A)&&(p===z||o(p,z,r,n,s)))return C.push(A)})){g=!1;break}}else if(!(p===w||o(p,w,r,n,s))){g=!1;break}}return s.delete(e),s.delete(t),g}function bi(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function _i(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var yi=1,wi=2,Ci="[object Boolean]",xi="[object Date]",Ti="[object Error]",Si="[object Map]",Pi="[object Number]",Di="[object RegExp]",$i="[object Set]",ji="[object String]",Ei="[object Symbol]",Fi="[object ArrayBuffer]",Oi="[object DataView]",yr=Pe?Pe.prototype:void 0,xt=yr?yr.valueOf:void 0;function Ai(e,t,r,n,o,s,a){switch(r){case Oi:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Fi:return!(e.byteLength!=t.byteLength||!s(new Xe(e),new Xe(t)));case Ci:case xi:case Pi:return ke(+e,+t);case Ti:return e.name==t.name&&e.message==t.message;case Di:case ji:return e==t+"";case Si:var i=bi;case $i:var c=n&yi;if(i||(i=_i),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;n|=wi,a.set(e,t);var f=_r(i(e),i(t),n,o,s,a);return a.delete(e),f;case Ei:if(xt)return xt.call(e)==xt.call(t)}return!1}var Mi=1,Ri=Object.prototype,Ii=Ri.hasOwnProperty;function zi(e,t,r,n,o,s){var a=r&Mi,i=pr(e),c=i.length,u=pr(t),f=u.length;if(c!=f&&!a)return!1;for(var h=c;h--;){var g=i[h];if(!(a?g in t:Ii.call(t,g)))return!1}var C=s.get(e),p=s.get(t);if(C&&p)return C==t&&p==e;var w=!0;s.set(e,t),s.set(t,e);for(var $=a;++h<c;){g=i[h];var z=e[g],A=t[g];if(n)var V=a?n(A,z,g,t,e,s):n(z,A,g,e,t,s);if(!(V===void 0?z===A||o(z,A,r,n,s):V)){w=!1;break}$||($=g=="constructor")}if(w&&!$){var J=e.constructor,G=t.constructor;J!=G&&"constructor"in e&&"constructor"in t&&!(typeof J=="function"&&J instanceof J&&typeof G=="function"&&G instanceof G)&&(w=!1)}return s.delete(e),s.delete(t),w}var ki=1,wr="[object Arguments]",Cr="[object Array]",Je="[object Object]",Li=Object.prototype,xr=Li.hasOwnProperty;function Ni(e,t,r,n,o,s){var a=ce(e),i=ce(t),c=a?Cr:De(e),u=i?Cr:De(t);c=c==wr?Je:c,u=u==wr?Je:u;var f=c==Je,h=u==Je,g=c==u;if(g&&Ye(e)){if(!Ye(t))return!1;a=!0,f=!1}if(g&&!f)return s||(s=new xe),a||bt(e)?_r(e,t,r,n,o,s):Ai(e,t,c,r,n,o,s);if(!(r&ki)){var C=f&&xr.call(e,"__wrapped__"),p=h&&xr.call(t,"__wrapped__");if(C||p){var w=C?e.value():e,$=p?t.value():t;return s||(s=new xe),o(w,$,r,n,s)}}return g?(s||(s=new xe),zi(e,t,r,n,o,s)):!1}function Tr(e,t,r,n,o){return e===t?!0:e==null||t==null||!ge(e)&&!ge(t)?e!==e&&t!==t:Ni(e,t,r,n,Tr,o)}function Wi(e){return function(t,r,n){for(var o=-1,s=Object(t),a=n(t),i=a.length;i--;){var c=a[++o];if(r(s[c],c,s)===!1)break}return t}}var Hi=Wi();function Tt(e,t,r){(r!==void 0&&!ke(e[t],r)||r===void 0&&!(t in e))&&ht(e,t,r)}function Bi(e){return ge(e)&&Ve(e)}function St(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Ui(e){return Qn(e,ir(e))}function Vi(e,t,r,n,o,s,a){var i=St(e,r),c=St(t,r),u=a.get(c);if(u){Tt(e,r,u);return}var f=s?s(i,c,r+"",e,t,a):void 0,h=f===void 0;if(h){var g=ce(c),C=!g&&Ye(c),p=!g&&!C&&bt(c);f=c,g||C||p?ce(i)?f=i:Bi(i)?f=Wn(i):C?(h=!1,f=Xs(c)):p?(h=!1,f=ci(c)):f=[]:Ws(c)||mt(c)?(f=i,mt(i)?f=Ui(i):(!fe(i)||se(i))&&(f=ui(c))):h=!1}h&&(a.set(c,f),o(f,c,n,s,a),a.delete(c)),Tt(e,r,f)}function Sr(e,t,r,n,o){e!==t&&Hi(t,function(s,a){if(o||(o=new xe),fe(s))Vi(e,t,a,r,Sr,n,o);else{var i=n?n(St(e,a),s,a+"",e,t,o):void 0;i===void 0&&(i=s),Tt(e,a,i)}},ir)}var Yi="[object String]";function Pr(e){return typeof e=="string"||!ce(e)&&ge(e)&&_e(e)==Yi}var qi="[object Boolean]";function Pt(e){return e===!0||e===!1||ge(e)&&_e(e)==qi}function Ze(e,t){return Tr(e,t)}var Gi="[object Number]";function Xi(e){return typeof e=="number"||ge(e)&&_e(e)==Gi}function Dr(e){return e==null}function Ki(e){return e===null}var $e=oo(function(e,t,r){Sr(e,t,r)});function Ji(e,t,r,n){if(!fe(e))return e;t=Os(t,e);for(var o=-1,s=t.length,a=s-1,i=e;i!=null&&++o<s;){var c=Ms(t[o]),u=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(o!=a){var f=i[c];u=void 0,u===void 0&&(u=fe(f)?f:pt(t[o+1])?[]:{})}qt(i,c,u),i=i[c]}return e}function $r(e,t,r){return e==null?e:Ji(e,t,r)}function Zi(e){const{inherit:t=!0}=e,{extendActionsProps:r}=Or();return{actionsProps:{...$e($e({items:[],max:10},t?r:{}),e)}}}function jr(e){return"component"in e}function Qi(e){return"render"in e}function ea(e){const{type:t,disabled:r,items:n,max:o}=e,s=n.map(i=>{const c={...i};return jr(c)&&(c.componentProps={type:t,disabled:r,...c.componentProps}),c}),a=Xi(o)&&o>=0;return{showActionItems:s.slice(0,a?o:s.length),ellipsisActionItems:s.slice(a?o:s.length)}}const ta=e=>{const{componentProps:t}=e,r=()=>{const{...n}=t;return n};return m.jsx(F.Button,{...r()})},ra=e=>{const{componentProps:t}=e,n=(()=>{const{dropDownItems:o,onClick:s,...a}=t;return a})();return m.jsx(F.Dropdown,{disabled:n.disabled,menu:{items:(t==null?void 0:t.dropDownItems)||[],onClick:t==null?void 0:t.onClick},trigger:["click"],children:m.jsx("div",{children:m.jsxs(F.Button,{...n,children:[n.children,m.jsx(ve.CaretDownOutlined,{})]})})})},Qe=new Map;Qe.set("Button",ta),Qe.set("Dropdown",ra);function Er(){const{setExtendActionsComp:e}=Or();return e(Qe),{renderContent:d.useCallback((r,n)=>{const o=jr(r),s=Qi(r);if(o){const a=Qe.get(r.component);return m.jsx(a,{...r},n)}return s?m.jsx("div",{children:r.render},n):null},[])}}const Fr=d.createContext({}),na=e=>{const{extendProps:t,extendComp:r}=e.value;return m.jsx(Fr.Provider,{value:{extendProps:t,extendComp:r},children:e.children})},He=()=>d.useContext(Fr),Or=()=>{const{extendProps:e,extendComp:t}=He(),r=n=>{const o=t==null?void 0:t.actions;o&&Object.keys(o).forEach(s=>{n.set(s,o[s])})};return{extendActionsProps:e==null?void 0:e.actions,setExtendActionsComp:r}},{useToken:oa}=F.theme,sa=({items:e,actionsProps:t})=>{const{type:r,disabled:n}=t,{renderContent:o}=Er(),{token:s}=oa(),a={backgroundColor:s.colorBgElevated,borderRadius:s.borderRadiusLG,boxShadow:s.boxShadowSecondary},i=()=>m.jsx("div",{style:a,children:m.jsx(F.Space,{style:{padding:8},children:e==null?void 0:e.map((c,u)=>o(c,u))})});return m.jsx(F.Dropdown,{disabled:n,menu:{items:[]},dropdownRender:i,trigger:["click"],children:m.jsxs(F.Button,{type:r,children:["更多",m.jsx(ve.CaretDownOutlined,{})]})})},et=e=>{const{actionsProps:t}=Zi(e),{showActionItems:r,ellipsisActionItems:n}=ea(t),{renderContent:o}=Er();return t!=null&&t.render?t.render:m.jsxs(d.Fragment,{children:[r==null?void 0:r.map((s,a)=>o(s,a)),n!=null&&n.length?m.jsx(sa,{actionsProps:t,items:n}):null]})};function ia(e){const{okText:t,cancelText:r,onCancel:n,onOk:o,okProps:s,cancelProps:a}=e;return{footerActions:{max:2,items:[{component:"Button",componentProps:{...a,children:r,onClick:n}},{component:"Button",componentProps:{type:"primary",...s,children:t,onClick:o}}]}}}const aa=e=>{const{extendDialogProps:t}=la(),r={width:700,okText:"确定",cancelText:"取消",getPopperContainer:()=>document.body};return{dialogProps:{...$e($e(r,t),e)},baseDialogProps:r}},la=()=>{const{extendProps:e}=He();return{extendDialogProps:e==null?void 0:e.dialog}},ca=(e,t)=>{const{onOpen:r,onClose:n}=e;return{open:()=>{t(!0),r&&r()},close:()=>{t(!1),n&&n()}}},ua=(e,t,r,n)=>{const{width:o,height:s}=t,{width:a,height:i}=r,c=a||o,u=i||s,{clientWidth:f,clientHeight:h}=e,g=c?c>f?f:c:0,C=u?u>h?h:u:"unset",p=d.useRef(g),w=d.useRef(C),[$,z]=d.useState(p.current),[A,V]=d.useState(w.current);return{dialogWidth:$,dialogHeight:A,initWidth:p,initHeight:w,curPropsWidth:g,curPropsHeight:C,setDialogSize:({width:G,height:Q})=>{n({width:$,height:A}),G!==void 0&&z(G),Q!==void 0&&V(Q)}}},fa=({container:e,setDialogChangeRecord:t})=>{const{clientWidth:r,clientHeight:n}=e,o=Math.floor(r/2),s=Math.floor(n/2),[a,i]=d.useState(o),[c,u]=d.useState(s);return{dialogLeft:a,dialogTop:c,setDialogPosition:({left:h,top:g})=>{t({left:a,top:c}),h!==void 0&&i(h),g!==void 0&&u(g)}}},Ar=({container:e,dialogHeaderRef:t,dialogRef:r,setDialogPosition:n})=>{const o=d.useRef(0),s=d.useRef(0),a=f=>{const h=f.getBoundingClientRect(),g=h.width,C=h.height,p=-.5*g,w=-.5*C;return{translateX:p,translateY:w}},i=d.useCallback(f=>{const{offsetLeft:h,offsetTop:g}=r.current;o.current=f.clientX-h,s.current=f.clientY-g,document.addEventListener("mousemove",c),document.addEventListener("mouseup",u)},[]),c=d.useCallback(f=>{const h=r.current,{translateX:g,translateY:C}=a(h);let p=f.clientX-o.current,w=f.clientY-s.current;const $=-g,z=-C,A=e.scrollWidth-h.offsetWidth-g,V=e.scrollHeight-h.offsetHeight-C;p<$&&(p=$),p>A&&(p=A),w<z&&(w=z),w>V&&(w=V),n({left:p,top:w})},[]),u=d.useCallback(()=>{document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",u)},[]);return d.useEffect(()=>{const f=t.current;return f.addEventListener("mousedown",i),()=>{f.removeEventListener("mousedown",i)}},[]),{}},da=({container:e,dialogChangeRecord:t,close:r,setDialogSize:n,setDialogPosition:o})=>{const[s,a]=d.useState(!1),[i,c]=d.useState(!1);return{minimizeVisible:s,maximizeVisible:i,onMinimize:()=>{a(!0)},onMaximize:C=>{if(C==="minimize"&&a(!1),C==="maximize"){const{scrollWidth:p,scrollHeight:w}=e,$=Math.floor(p),z=Math.floor(w),A=Math.floor(p/2),V=Math.floor(w/2);n({width:$,height:z}),o({top:V,left:A}),c(!0)}},onRecovery:()=>{const{top:C,left:p,width:w,height:$}=t.current;n({width:w,height:$}),o({top:C,left:p}),c(!1)},onClose:()=>{a(!1),c(!1),r()}}},pa=({visible:e,container:t,dialogHeight:r,dialogRef:n,dialogHeaderRef:o,dialogFooterRef:s})=>{const[a,i]=d.useState("unset");return d.useEffect(()=>{var c,u,f;if(e){const{clientHeight:C}=t,p=(c=o.current)==null?void 0:c.offsetHeight,w=(u=s.current)==null?void 0:u.offsetHeight;let z=((f=n.current)==null?void 0:f.getBoundingClientRect().height)-p-w-0;const A=C-p-w-0;z>A&&(z=A),i(z)}},[e,r]),{contentMaxHeight:a,setContentMaxHeight:i}},ha=()=>{const[e,t]=d.useState(160),[r,n]=d.useState(60),o=d.useRef(null);return{minimizeTop:r,minimizeLeft:e,minimizeRef:o,setMinimizePosition:({left:a,top:i})=>{a!==void 0&&t(a),i!==void 0&&n(i)}}},ga=({visible:e,dialogRef:t,minimizeRef:r,container:n})=>{const o={xphDialog:"xph--dialog",xphDialogWrapper:"xph--dialog--wrapper",xphMinimizeDialog:"xph--dialog--minimize"},s=(i,c)=>{console.log("触发插入"),i.querySelector(`.${o.xphDialogWrapper}`).style.opacity="unset",i.querySelector(`.${o.xphMinimizeDialog}`).style.opacity="unset",c.querySelector(`.${o.xphDialogWrapper}`).style.opacity=.7,c.querySelector(`.${o.xphMinimizeDialog}`).style.opacity=.7;const u=document.createElement("div");u.style.visibility="hidden",c.parentNode.insertBefore(u,c.nextSibling),c.parentNode.insertBefore(i,u),c.parentNode.removeChild(u)},a=i=>{var f,h;const c=n.querySelectorAll(`.${o.xphDialog}`),u=c[c.length-1];if(((f=t.current)==null?void 0:f.parentNode)!==u&&(s((h=t.current)==null?void 0:h.parentNode,u),i)){const g=i.target;g.tagName==="INPUT"&&g.focus&&g.focus()}};return d.useEffect(()=>{var i,c;return(i=t.current)==null||i.addEventListener("mousedown",a,!1),(c=r.current)==null||c.addEventListener("mousedown",a,!1),()=>{var u,f;(u=t.current)==null||u.removeEventListener("mousedown",a,!1),(f=r.current)==null||f.removeEventListener("mousedown",a,!1)}},[]),d.useEffect(()=>{if(e)a();else{const i=Array.from(n.querySelectorAll(`.${o.xphDialog}`)),u=i.map(f=>f.querySelector(`.${o.xphDialogWrapper}`)).filter(f=>f!==null).filter(f=>f.style.display==="flex");u.length&&s(u[u.length-1].parentNode,i[i.length-1])}},[e]),{dialogTopShowClassConfig:o}},ma=({visible:e,container:t,initWidth:r,initHeight:n,curPropsWidth:o,curPropsHeight:s,setDialogSize:a,setDialogPosition:i})=>{const{clientWidth:c,clientHeight:u}=t,f=Math.floor(c/2),h=Math.floor(u/2);d.useEffect(()=>{o!==r.current&&(console.log("重新设置了宽度"),a({width:o})),s!==n.current&&(console.log("重新设置了高度"),a({height:s}))},[o,s]),d.useEffect(()=>{o!==r.current&&(console.log("重新设置了左边位置"),i({left:f})),s!==n.current&&(console.log("重新设置了上边位置"),i({top:h}))},[o,s]),d.useEffect(()=>{e||(a({width:r.current,height:n.current}),i({left:f,top:h}))},[e])},va=()=>{const e=d.useRef({left:0,top:0,width:0,height:0});return{dialogChangeRecord:e,setDialogChangeRecord:({left:r,top:n,width:o,height:s})=>{const{left:a,top:i,width:c,height:u}=e.current;e.current={left:r??a,top:n??i,width:o??c,height:s??u}}}},ba=({visible:e,container:t,dialogRef:r,setDialogSize:n,setDialogPosition:o})=>{const s=d.useCallback(()=>m.jsx("div",{ref:i,style:{position:"absolute",border:"4px dashed #ccc",display:"none"}}),[]),a=d.useRef(null);d.useEffect(()=>{if(e){const _=r.current.offsetWidth,E=r.current.offsetHeight;a.current={width:_,height:E}}else a.current=null},[e]);const i=d.useRef(null),c=d.useRef(),u=d.useRef(!1),[f,h]=d.useState(!1),g=d.useRef(0),C=d.useRef(0),p=(_,E)=>{u.current=!0,h(!0),c.current=E;const{clientX:D,clientY:S}=_;g.current=D,C.current=S;const k=parseFloat(r.current.style.left),W=parseFloat(r.current.style.top),T=r.current.offsetWidth,b=r.current.offsetHeight;i.current.style.display="block",i.current.style.left=`${k-.5*T}px`,i.current.style.top=`${W-.5*b}px`,i.current.style.width=`${T}px`,i.current.style.height=`${b}px`},w=_=>{if(u.current){const{clientX:E,clientY:D}=_,S=E-g.current,k=D-C.current,W=parseFloat(i.current.style.left),T=parseFloat(i.current.style.top),b=i.current.offsetWidth,y=i.current.offsetHeight,j=a.current.width,x=a.current.height,R=t.scrollWidth,M=t.scrollHeight;let O=b,I=y,H=W,B=T;switch(c.current){case"lt":{O=O-S,I=I-k,B=B+k,H=H+S,O<j&&(O=b,H=W),I<x&&(I=y,B=T),H<0&&(H=0,O=b),B<0&&(B=0,I=y);break}case"rt":{O=O+S,I=I-k,B=B+k,H=W,O<j&&(O=b),I<x&&(I=y,B=T),O>R-H&&(O=R-H),B<0&&(B=0,I=y);break}case"rb":{O=O+S,I=I+k,B=T,H=W,O<j&&(O=b),I<x&&(I=y),O>R-H&&(O=R-H),I>M-B&&(I=M-B);break}case"lb":{O=O-S,I=I+k,B=T,H=H+S,O<j&&(O=b,H=W),I<x&&(I=y),H<0&&(H=0,O=b),I>M-B&&(I=M-B);break}}i.current.style.left=`${H}px`,i.current.style.top=`${B}px`,i.current.style.width=`${O}px`,i.current.style.height=`${I}px`,g.current=E,C.current=D}},$=()=>{if(u.current){u.current=!1,h(!1),i.current.style.display="none";const{left:_,top:E,width:D,height:S}=i.current.style,k=parseFloat(_)+.5*parseFloat(D),W=parseFloat(E)+.5*parseFloat(S),T=parseFloat(D),b=parseFloat(S);console.log(k,W,T,b),o({left:k,top:W}),n({width:T,height:b})}},z=_=>p(_,"lt"),A=_=>p(_,"rt"),V=_=>p(_,"rb"),J=_=>p(_,"lb"),G=d.useCallback(_=>{w(_)},[]),Q=d.useCallback(()=>{$()},[]),N=d.useCallback(()=>{$()},[]);return d.useEffect(()=>(document.body.addEventListener("mousemove",G),document.body.addEventListener("mouseup",Q),document.body.addEventListener("mouseleave",N),()=>{document.body.removeEventListener("mousemove",G),document.body.removeEventListener("mouseup",Q),document.body.removeEventListener("mouseleave",N)}),[]),{resizingState:f,DashedBox:s,onMousedownResizeLt:z,onMousedownResizeRt:A,onMousedownResizeRb:V,onMousedownResizeLb:J}},Dt={"minimize-windows":"_minimize-windows_1q5z9_1","minimize-windows-title":"_minimize-windows-title_1q5z9_43","minimize-windows-operate":"_minimize-windows-operate_1q5z9_55"},_a=({onClick:e})=>m.jsx(F.Button,{type:"link",onClick:e,icon:m.jsx(ve.ShrinkOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),Mr=({onClick:e})=>m.jsx(F.Button,{type:"link",onClick:e,icon:m.jsx(ve.FullscreenOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),ya=({onClick:e})=>m.jsx(F.Button,{type:"link",onClick:e,icon:m.jsx(ve.FullscreenExitOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),Rr=({onClick:e})=>m.jsx(F.Button,{type:"link",onClick:e,icon:m.jsx(ve.CloseOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),wa=d.forwardRef(({title:e,left:t,top:r,visible:n,onMaximize:o,onClosesquare:s,className:a},i)=>m.jsxs("div",{style:{display:n?"flex":"none",left:t,top:r},className:`${Dt["minimize-windows"]} ${a}`,ref:i,children:[m.jsx("div",{className:Dt["minimize-windows-title"],title:e,children:e}),m.jsxs("div",{className:Dt["minimize-windows-operate"],children:[m.jsx(Mr,{onClick:o}),m.jsx(Rr,{onClick:s})]})]})),le={"xph-dialog-mask":"_xph-dialog-mask_1pw42_1","xph-dialog-wrapper":"_xph-dialog-wrapper_1pw42_23",dialog__header:"_dialog__header_1pw42_49","dialog__header-btns":"_dialog__header-btns_1pw42_65",dialog__main:"_dialog__main_1pw42_73",dialog__footer:"_dialog__footer_1pw42_87",dialog__resize:"_dialog__resize_1pw42_101","dialog__resize-lt":"_dialog__resize-lt_1pw42_115","dialog__resize-rt":"_dialog__resize-rt_1pw42_127","dialog__resize-rb":"_dialog__resize-rb_1pw42_139","dialog__resize-lb":"_dialog__resize-lb_1pw42_151"},Ca=d.forwardRef((e,t)=>{console.log("render Dialog==============================================");const{children:r,baseDialogProps:n,mask:o}=e,[s,a]=d.useState(!1),{footerActions:i}=ia(e),{title:c,renderFooter:u,renderTitle:f,getPopperContainer:h}=e,{open:g,close:C}=ca(e,a),p=h(),w=d.useRef(null),$=d.useRef(null),z=d.useRef(null),A=d.useRef(null),{dialogChangeRecord:V,setDialogChangeRecord:J}=va(),{initWidth:G,initHeight:Q,curPropsWidth:N,curPropsHeight:_,dialogWidth:E,dialogHeight:D,setDialogSize:S}=ua(p,n,e,J),{dialogLeft:k,dialogTop:W,setDialogPosition:T}=fa({container:p,setDialogChangeRecord:J}),{contentMaxHeight:b}=pa({visible:s,container:p,dialogHeight:D,dialogRef:w,dialogHeaderRef:$,dialogFooterRef:A}),{minimizeLeft:y,minimizeTop:j,minimizeRef:x,setMinimizePosition:R}=ha(),{minimizeVisible:M,maximizeVisible:O,onMaximize:I,onMinimize:H,onRecovery:B,onClose:oe}=da({container:p,dialogChangeRecord:V,close:C,setDialogSize:S,setDialogPosition:T});ma({visible:s,container:p,initWidth:G,initHeight:Q,curPropsWidth:N,curPropsHeight:_,setDialogSize:S,setDialogPosition:T}),Ar({container:p,dialogHeaderRef:$,dialogRef:w,setDialogPosition:T}),Ar({container:p,dialogHeaderRef:x,dialogRef:x,setDialogPosition:R});const{dialogTopShowClassConfig:ie}=ga({visible:s,container:p,dialogRef:w,minimizeRef:x}),{resizingState:de,DashedBox:ue,onMousedownResizeLt:te,onMousedownResizeRt:pe,onMousedownResizeRb:ye,onMousedownResizeLb:je}=ba({visible:s,container:p,dialogRef:w,setDialogSize:S,setDialogPosition:T});return d.useImperativeHandle(t,()=>({open:g,close:oe})),m.jsxs("div",{className:ie.xphDialog,children:[o?m.jsx("div",{className:le["xph-dialog-mask"],style:{display:s?"block":"none",width:p.scrollWidth,height:p.scrollHeight}}):null,m.jsx(wa,{visible:M,className:`${ie.xphMinimizeDialog}`,ref:x,left:y,top:j,title:c,onMaximize:()=>I("minimize"),onClosesquare:oe}),m.jsxs("div",{ref:w,className:`${le["xph-dialog-wrapper"]} ${ie.xphDialogWrapper}`,style:{display:s&&!M?"flex":"none",left:k,top:W,width:E,height:D,opacity:de?.2:"unset"},children:[m.jsxs("div",{ref:$,className:le.dialog__header,children:[m.jsx("div",{children:f?f():c}),m.jsxs("div",{className:le["dialog__header-btns"],children:[m.jsx(_a,{onClick:H}),O?m.jsx(ya,{onClick:B}):m.jsx(Mr,{onClick:()=>I("maximize")}),m.jsx(Rr,{onClick:oe})]})]}),m.jsx("div",{ref:z,className:le.dialog__main,style:{maxHeight:b},children:s?r:null}),u?m.jsx("div",{ref:A,children:u()}):m.jsx("div",{ref:A,className:le.dialog__footer,children:m.jsx(et,{...i})}),m.jsx("div",{className:`${le.dialog__resize} ${le["dialog__resize-lt"]}`,onMouseDown:te}),m.jsx("div",{className:`${le.dialog__resize} ${le["dialog__resize-rt"]}`,onMouseDown:pe}),m.jsx("div",{className:`${le.dialog__resize} ${le["dialog__resize-rb"]}`,onMouseDown:ye}),m.jsx("div",{className:`${le.dialog__resize} ${le["dialog__resize-lb"]}`,onMouseDown:je})]}),m.jsx(ue,{})]})}),xa=(e,t)=>{const{children:r,...n}=e,{baseDialogProps:o,dialogProps:s}=aa(n),{getPopperContainer:a}=s;return console.log("render XphDialog=============================================="),m.jsx(zr,{getPopperContainer:a,children:m.jsx(Ca,{...s,baseDialogProps:o,ref:t,children:r})})},Ir=d.forwardRef(xa),zr=({children:e,getPopperContainer:t})=>{const[r,n]=d.useState(null);return d.useEffect(()=>{const o=t();n(o)},[]),r?sn.createPortal(e,r):null};function $t(e){return"component"in e}function jt(e){return"render"in e}function Ta(e){return e.includes("Input")||e.includes("Complete")?"请输入":e.includes("Picker")||e.includes("Select")||e.includes("Cascader")||e.includes("Checkbox")||e.includes("Radio")||e.includes("Switch")?"请选择":""}function Sa(e,t,r){["DatePicker","MonthPicker","WeekPicker","TimePicker"].includes(t)?e.type=r?"string":"object":["RangePicker","Upload","CheckboxGroup","TimePicker"].includes(t)?e.type="array":["InputNumber"].includes(t)&&(e.type="number")}const Pa=["DatePicker","MonthPicker","RangePicker","WeekPicker","TimePicker"],Da=e=>{const{show:t,ifShow:r,required:n,disabled:o,componentProps:s}=e;return!!(se(t)||se(r)||se(n)||se(o)||se(s)||jt(e))},$a=e=>["application/json","application/javascript","text/plain","text/html","text/css"].includes(e)?`${e}; charset=utf-8`:e,ja=(e,t,r)=>{const n=d.useRef(null),o=d.useRef(null),{handleCollapseChangeFalse:s}=r.current||{},{show:a,ifShow:i}=e;let c=!0,u=!0;if(Pt(a)&&(c=a),Pt(i)&&(u=i),se(a)){c=a({model:t});const f=Dr(n.current)?c:n.current;d.useEffect(()=>{Ze(c,f)||s&&s()},[t])}if(se(i)){u=i({model:t});const f=Dr(o.current)?u:o.current;d.useEffect(()=>{Ze(u,f)||s&&s()},[t])}return n.current=c,o.current=u,{isShow:c,isIfShow:u}},Ea=(e,t)=>{const{collapsible:r,collapseNum:n}=e,[o,s]=d.useState(!!(r&&t>=n));return{itemCollapse:o,setItemCollapse:s}},Fa=({item:e,model:t,isShow:r,componentProps:n})=>{const{rules:o=[],label:s,required:a}=e;let i=o;const c=$t(e),u=c?Ta(e.component)+s:"";function f(p,w){const $=p.message||u;return w===void 0||Ki(w)||Array.isArray(w)&&w.length===0||typeof w=="string"&&w.trim()===""||typeof w=="object"&&Reflect.has(w,"checked")&&Reflect.has(w,"halfChecked")&&Array.isArray(w.checked)&&Array.isArray(w.halfChecked)&&w.checked.length===0&&w.halfChecked.length===0?Promise.reject($):Promise.resolve()}const h=se(a)?a({model:t}):a;h&&(!i||i.length===0?i=[{required:h,validator:f}]:i.findIndex(w=>Reflect.has(w,"required"))===-1&&i.push({required:h,validator:f}));const g=i.findIndex(p=>Reflect.has(p,"required")&&!Reflect.has(p,"validator"));if(g!==-1){const p=i[g];if(r||(p.required=!1),c){const{component:w}=e;Reflect.has(p,"type")||(p.type=w==="InputNumber"?"number":"string"),p.message=p.message||u,(w.includes("Input")||w.includes("Textarea"))&&(p.whitespace=!0);const $=n.valueFormat;Sa(p,w,$)}}const C=i.findIndex(p=>p.max);return C!==-1&&!i[C].validator&&(i[C].message=i[C].message||`字符数应小于${i[C].max}位`),{rules:i}},Oa=(e,t,r)=>{const{disabled:n}=e;let o=!1;const{disabled:s}=t;return se(s)&&(o=s({model:r})),Pt(s)&&(o=s),{disabled:Reflect.has(t,"disabled")?o:n}},Aa=(e,t)=>{const r={},{componentProps:n={}}=e;return se(n)&&Object.assign(r,n({model:t})),Object.assign(r,n),{componentProps:r}},Ma=(e,t)=>{const{colProps:r={}}=e,{colProps:n={span:24}}=t;return{colProps:{...n,...r}}},Ra=({formProps:e})=>{const{items:t}=e;return{formItems:t.map(n=>({...n}))}},Ia=(e,t)=>{const r=i=>(Object.keys(i).forEach(c=>{Object.defineProperty(i,c,{value:i[c],writable:!1,enumerable:!0,configurable:!1})}),i),n={};e.items.forEach(i=>{n[i.name]=i.initialValue});const o=Da(t),s=o?F.Form.useWatch(i=>r(i)):null;return{rewritingModel:d.useMemo(()=>s||r(n),[s]),isusewatch:o}},za=()=>{const e=d.useRef(null);function t(n){e.current=n}const r={getFieldsValue:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.getFieldsValue(...n)},setFieldsValue:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.setFieldsValue(...n)},resetFields:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.resetFields(...n)},validator:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.validator(...n)},scrollToField:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.scrollToField(...n)}};return d.useEffect(()=>(console.log("ParentComponent is mounted====================================="),()=>{console.log("ParentComponent is unmounted===================================="),e.current=null}),[]),[t,r]};var kr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(an,function(){var r=1e3,n=6e4,o=36e5,s="millisecond",a="second",i="minute",c="hour",u="day",f="week",h="month",g="quarter",C="year",p="date",w="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,z=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var b=["th","st","nd","rd"],y=T%100;return"["+T+(b[(y-20)%10]||b[y]||b[0])+"]"}},V=function(T,b,y){var j=String(T);return!j||j.length>=b?T:""+Array(b+1-j.length).join(y)+T},J={s:V,z:function(T){var b=-T.utcOffset(),y=Math.abs(b),j=Math.floor(y/60),x=y%60;return(b<=0?"+":"-")+V(j,2,"0")+":"+V(x,2,"0")},m:function T(b,y){if(b.date()<y.date())return-T(y,b);var j=12*(y.year()-b.year())+(y.month()-b.month()),x=b.clone().add(j,h),R=y-x<0,M=b.clone().add(j+(R?-1:1),h);return+(-(j+(y-x)/(R?x-M:M-x))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:h,y:C,w:f,d:u,D:p,h:c,m:i,s:a,ms:s,Q:g}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},G="en",Q={};Q[G]=A;var N="$isDayjsObject",_=function(T){return T instanceof k||!(!T||!T[N])},E=function T(b,y,j){var x;if(!b)return G;if(typeof b=="string"){var R=b.toLowerCase();Q[R]&&(x=R),y&&(Q[R]=y,x=R);var M=b.split("-");if(!x&&M.length>1)return T(M[0])}else{var O=b.name;Q[O]=b,x=O}return!j&&x&&(G=x),x||!j&&G},D=function(T,b){if(_(T))return T.clone();var y=typeof b=="object"?b:{};return y.date=T,y.args=arguments,new k(y)},S=J;S.l=E,S.i=_,S.w=function(T,b){return D(T,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var k=function(){function T(y){this.$L=E(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[N]=!0}var b=T.prototype;return b.parse=function(y){this.$d=function(j){var x=j.date,R=j.utc;if(x===null)return new Date(NaN);if(S.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var M=x.match($);if(M){var O=M[2]-1||0,I=(M[7]||"0").substring(0,3);return R?new Date(Date.UTC(M[1],O,M[3]||1,M[4]||0,M[5]||0,M[6]||0,I)):new Date(M[1],O,M[3]||1,M[4]||0,M[5]||0,M[6]||0,I)}}return new Date(x)}(y),this.init()},b.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},b.$utils=function(){return S},b.isValid=function(){return this.$d.toString()!==w},b.isSame=function(y,j){var x=D(y);return this.startOf(j)<=x&&x<=this.endOf(j)},b.isAfter=function(y,j){return D(y)<this.startOf(j)},b.isBefore=function(y,j){return this.endOf(j)<D(y)},b.$g=function(y,j,x){return S.u(y)?this[j]:this.set(x,y)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(y,j){var x=this,R=!!S.u(j)||j,M=S.p(y),O=function(ue,te){var pe=S.w(x.$u?Date.UTC(x.$y,te,ue):new Date(x.$y,te,ue),x);return R?pe:pe.endOf(u)},I=function(ue,te){return S.w(x.toDate()[ue].apply(x.toDate("s"),(R?[0,0,0,0]:[23,59,59,999]).slice(te)),x)},H=this.$W,B=this.$M,oe=this.$D,me="set"+(this.$u?"UTC":"");switch(M){case C:return R?O(1,0):O(31,11);case h:return R?O(1,B):O(0,B+1);case f:var ie=this.$locale().weekStart||0,de=(H<ie?H+7:H)-ie;return O(R?oe-de:oe+(6-de),B);case u:case p:return I(me+"Hours",0);case c:return I(me+"Minutes",1);case i:return I(me+"Seconds",2);case a:return I(me+"Milliseconds",3);default:return this.clone()}},b.endOf=function(y){return this.startOf(y,!1)},b.$set=function(y,j){var x,R=S.p(y),M="set"+(this.$u?"UTC":""),O=(x={},x[u]=M+"Date",x[p]=M+"Date",x[h]=M+"Month",x[C]=M+"FullYear",x[c]=M+"Hours",x[i]=M+"Minutes",x[a]=M+"Seconds",x[s]=M+"Milliseconds",x)[R],I=R===u?this.$D+(j-this.$W):j;if(R===h||R===C){var H=this.clone().set(p,1);H.$d[O](I),H.init(),this.$d=H.set(p,Math.min(this.$D,H.daysInMonth())).$d}else O&&this.$d[O](I);return this.init(),this},b.set=function(y,j){return this.clone().$set(y,j)},b.get=function(y){return this[S.p(y)]()},b.add=function(y,j){var x,R=this;y=Number(y);var M=S.p(j),O=function(B){var oe=D(R);return S.w(oe.date(oe.date()+Math.round(B*y)),R)};if(M===h)return this.set(h,this.$M+y);if(M===C)return this.set(C,this.$y+y);if(M===u)return O(1);if(M===f)return O(7);var I=(x={},x[i]=n,x[c]=o,x[a]=r,x)[M]||1,H=this.$d.getTime()+y*I;return S.w(H,this)},b.subtract=function(y,j){return this.add(-1*y,j)},b.format=function(y){var j=this,x=this.$locale();if(!this.isValid())return x.invalidDate||w;var R=y||"YYYY-MM-DDTHH:mm:ssZ",M=S.z(this),O=this.$H,I=this.$m,H=this.$M,B=x.weekdays,oe=x.months,me=x.meridiem,ie=function(te,pe,ye,je){return te&&(te[pe]||te(j,R))||ye[pe].slice(0,je)},de=function(te){return S.s(O%12||12,te,"0")},ue=me||function(te,pe,ye){var je=te<12?"AM":"PM";return ye?je.toLowerCase():je};return R.replace(z,function(te,pe){return pe||function(ye){switch(ye){case"YY":return String(j.$y).slice(-2);case"YYYY":return S.s(j.$y,4,"0");case"M":return H+1;case"MM":return S.s(H+1,2,"0");case"MMM":return ie(x.monthsShort,H,oe,3);case"MMMM":return ie(oe,H);case"D":return j.$D;case"DD":return S.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return ie(x.weekdaysMin,j.$W,B,2);case"ddd":return ie(x.weekdaysShort,j.$W,B,3);case"dddd":return B[j.$W];case"H":return String(O);case"HH":return S.s(O,2,"0");case"h":return de(1);case"hh":return de(2);case"a":return ue(O,I,!0);case"A":return ue(O,I,!1);case"m":return String(I);case"mm":return S.s(I,2,"0");case"s":return String(j.$s);case"ss":return S.s(j.$s,2,"0");case"SSS":return S.s(j.$ms,3,"0");case"Z":return M}return null}(te)||M.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(y,j,x){var R,M=this,O=S.p(j),I=D(y),H=(I.utcOffset()-this.utcOffset())*n,B=this-I,oe=function(){return S.m(M,I)};switch(O){case C:R=oe()/12;break;case h:R=oe();break;case g:R=oe()/3;break;case f:R=(B-H)/6048e5;break;case u:R=(B-H)/864e5;break;case c:R=B/o;break;case i:R=B/n;break;case a:R=B/r;break;default:R=B}return x?R:S.a(R)},b.daysInMonth=function(){return this.endOf(h).$D},b.$locale=function(){return Q[this.$L]},b.locale=function(y,j){if(!y)return this.$L;var x=this.clone(),R=E(y,j,!0);return R&&(x.$L=R),x},b.clone=function(){return S.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},T}(),W=k.prototype;return D.prototype=W,[["$ms",s],["$s",a],["$m",i],["$H",c],["$W",u],["$M",h],["$y",C],["$D",p]].forEach(function(T){W[T[1]]=function(b){return this.$g(b,T[0],T[1])}}),D.extend=function(T,b){return T.$i||(T(b,k,D),T.$i=!0),D},D.locale=E,D.isDayjs=_,D.unix=function(T){return D(1e3*T)},D.en=Q[G],D.Ls=Q,D.p={},D})})(kr);var ka=kr.exports;const tt=ln(ka);function La(e,t={}){const r=/^\[(.+)\]$/;if(r.test(e)){const n=e.match(r);if(n&&n[1]){const o=n[1].split(",");if(!o.length)return;const s=[];return o.forEach((a,i)=>{$r(s,i,t[a.trim()])}),s.filter(Boolean).length?s:void 0}}}function Na(e,t={}){const r=/^\{(.+)\}$/;if(r.test(e)){const n=e.match(r);if(n&&n[1]){const o=n[1].split(",");if(!o.length)return;const s={};return o.forEach(a=>{$r(s,a.trim(),t[a.trim()])}),Object.values(s).filter(Boolean).length?s:void 0}}}function Wa(e,t){const r=t.fieldMapToTime;if(!r||!Array.isArray(r))return e;for(const[n,[o,s],a="YYYY-MM-DD"]of r){if(!n||!o||!s)continue;if(!e[n]){Reflect.deleteProperty(e,n);continue}const[i,c]=e[n],[u,f]=Array.isArray(a)?a:[a,a];e[o]=tt(i).format(u),e[s]=tt(c).format(f),Reflect.deleteProperty(e,n)}return e}const Ha=(e,t,r)=>{const n=e.filter(a=>a.name);return{handleFormatRenderValues:a=>{const i={},c=[];return n.forEach(u=>{const f=Reflect.has(a,u.name),h=La(u.name,a)||Na(u.name,a);if(f||h){const g=h||a[u.name];if($t(u))if(Pa.includes(u.component)){if(ce(g)){const C=[];for(const p of g)C.push(p?tt(p):null);i[u.name]=C}else i[u.name]=g?tt(g):null;c.push(u.name)}else i[u.name]=g,c.push(u.name);jt(u)&&(i[u.name]=g,c.push(u.name))}}),{renderValues:i,validKeys:c}},handleFormatReturnValues:a=>{var c,u,f,h,g;if(!fe(a))return{};const i={};for(const C of Object.entries(a)){let[,p]=C;const[w]=C;if(!w||ce(p)&&p.length===0||se(p))continue;const{transformDateFunc:$}=t,z=(f=(u=(c=r.current)==null?void 0:c.get(w))==null?void 0:u.current)==null?void 0:f.componentProps,A=z==null?void 0:z.valueFormat;if(fe(p)){const V=p;V.format&&(p=$==null?void 0:$(V,A))}ce(p)&&((h=p[0])!=null&&h.format)&&((g=p[1])!=null&&g.format)&&(p=p.map(V=>$==null?void 0:$(V,A))),Pr(p)&&(p===""?p=void 0:p=p.trim()),i[w]=p}return Wa(i,t)}}},Ba=(e,t,r)=>({getFieldsValue:(...c)=>r(e.getFieldsValue(...c)),setFieldsValue:c=>{const{renderValues:u,validKeys:f}=t(c);e.setFieldsValue(u),e.validateFields(f)},resetFields:async()=>e.resetFields(),validator:async c=>e.validateFields(c).then(u=>r(u)),scrollToField:async(c,u)=>e.scrollToField(c,u)}),Ua=e=>{const{extendFormProps:t}=Lr();return{formProps:{...$e($e({collapseNum:5,colon:!1,items:[],labelWrap:!0,transformDateFunc:(o,s)=>{var a;return((a=o==null?void 0:o.format)==null?void 0:a.call(o,s||"YYYY-MM-DD HH:mm:ss"))??o},fieldMapToTime:[]},t),e)}}},rt=e=>{const{immediate:t=!0,params:r,api:n,apiCallback:o,isUseWatch:s}=e,a=d.useRef(!0),i=d.useRef(r),c=()=>{n&&se(n)&&(r?n(r).then(o):n().then(o),i.current=r)};return d.useEffect(()=>{a.current&&(t&&c(),a.current=!1),!a.current&&s&&(Ze(r,i.current)||t&&c())},[r]),{getApiData:c}},Va=(e,t)=>{const{collapsible:r,collapseNum:n}=e,o=d.useRef();return{collapsible:r,collapseNum:n,collapseRef:o,onClickCollapseToTrue:()=>{var i;(i=t.current)==null||i.forEach(c=>{if(c.current){const{itemIndex:u}=c.current;u>=n&&r&&c.current.setItemCollapse(!0)}})},onClickCollapseToFalse:()=>{var i;(i=t.current)==null||i.forEach(c=>{if(c.current){const{itemCollapse:u}=c.current;u&&c.current.setItemCollapse(!1)}})}}},Lr=()=>{const{extendProps:e,extendComp:t}=He(),r=n=>{const o=t==null?void 0:t.form;o&&Object.keys(o).forEach(s=>{n.set(s,o[s])})};return{extendFormProps:e==null?void 0:e.form,setExtendFormComp:r}},Ya=e=>{console.log("render ApiSelect");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:s}=e,a=o==="true",[i,c]=d.useState([]),{getApiData:u}=rt({api:t,immediate:n,params:r,apiCallback:c,isUseWatch:a}),f=g=>{g&&!n&&u(),s&&s(g)},h=()=>{const{api:g,params:C,immediate:p,isusewatch:w,...$}=e;return $};return m.jsx(F.Select,{...h(),options:i,onDropdownVisibleChange:f})},qa=e=>{console.log("render ApiTreeSelect");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:s}=e,a=o==="true",[i,c]=d.useState([]),{getApiData:u}=rt({api:t,immediate:n,params:r,apiCallback:c,isUseWatch:a}),f=g=>{g&&!n&&u(),s&&s(g)},h=()=>{const{api:g,params:C,immediate:p,isusewatch:w,...$}=e;return $};return m.jsx(F.TreeSelect,{...h(),treeData:i,onDropdownVisibleChange:f})},Ga=e=>{console.log("render ApiTransfer");const{api:t,params:r,isusewatch:n}=e,o=n==="true",[s,a]=d.useState([]);rt({api:t,params:r,apiCallback:a,isUseWatch:o});const i=()=>{const{api:c,params:u,isusewatch:f,...h}=e;return h};return m.jsx(F.Transfer,{...i(),dataSource:s})},Xa=e=>{console.log("render ApiAutoComplete");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:s}=e,a=o==="true",[i,c]=d.useState([]),{getApiData:u}=rt({api:t,immediate:n,params:r,apiCallback:c,isUseWatch:a}),f=g=>{g&&!n&&u(),s&&s(g)},h=()=>{const{api:g,params:C,immediate:p,isusewatch:w,...$}=e;return $};return m.jsx(F.AutoComplete,{...h(),options:i,onDropdownVisibleChange:f})},Te={String:"String","String[]":"String[]","File[]":"File[]",FileList:"FileList"},Ka=e=>{console.log("render AutoUpload"),console.log(lt());const t="",{api:r,maxCount:n=1,maxSize:o=2,listType:s="picture-card",openCrop:a=!1,data:i,returnType:c=Te.String,value:u=t,onChange:f}=e,h=d.useRef(!0),g=d.useRef(0),C=d.useRef([]),[p,w]=d.useState([]),$=_=>{C.current=_,w([..._])},z=()=>{const{api:_,maxCount:E,maxSize:D,openCrop:S,beforeUpload:k,fileList:W,returnType:T,...b}=e;return b},A=_=>{const E=_.size/1024/1024<o;E||F.message.error(`文件大小超过:${o}M, 请重试`);const D=C.current.length+g.current<n;return D||F.message.error(`文件数量不能超过${n}个`),E&&D&&g.current++,E&&D&&V(_),F.Upload.LIST_IGNORE},V=_=>{a?(F.message.error("暂时不支持裁剪功能,后续兼容。。。。"),J({file:_})):J({file:_})},J=_=>{r?r({file:_.file,...i}).then(E=>{$([...C.current,...E])}).finally(()=>{g.current--}):(Object.assign(_.file,{status:"done",url:URL.createObjectURL(new Blob([_.file],{type:$a(_.file.type)}))}),$([...C.current,_.file]),g.current--)},G=_=>{const{file:E,fileList:D}=_,{status:S}=E;switch(S){case"removed":{$([...D]);break}}},Q=_=>{const E=S=>{const k=S.split("/"),W=k[k.length-1],[T]=W.split("?");return T};return{uid:(S=>{const k=C.current.find(W=>W.url===S);return k?k.uid:lt()})(_),name:E(_),url:_,status:"done"}},N=()=>{switch(c){case Te.String:return p.map(_=>_.url).join(",");case Te["String[]"]:return p.map(_=>_.url);case Te["File[]"]:return[...p];case Te.FileList:return[...p]}};return d.useEffect(()=>{const _=N();if(Ze(_,u))return;let E=[];switch(c){case Te.String:{E=(u||"").split(",").filter(D=>D).map(D=>Q(D));break}case Te["String[]"]:{E=(u||[]).map(D=>Q(D));break}case Te["File[]"]:{E=(u||[]).map(D=>D);break}case Te.FileList:{E=(u||[]).map(D=>D);break}}$(E)},[u]),d.useEffect(()=>{if(h.current){h.current=!1;return}const _=N();f==null||f(_)},[p]),m.jsx(F.Upload,{listType:s,...z(),fileList:p,beforeUpload:A,onChange:G,children:"上传"})},K=new Map;K.set("Input",F.Input),K.set("ApiSelect",Ya),K.set("Select",F.Select),K.set("InputNumber",F.InputNumber),K.set("ApiTreeSelect",qa),K.set("TreeSelect",F.TreeSelect),K.set("ApiTransfer",Ga),K.set("Transfer",F.Transfer),K.set("Switch",F.Switch),K.set("Button",F.Button),K.set("Radio",F.Radio),K.set("RadioGroup",F.Radio.Group),K.set("Checkbox",F.Checkbox),K.set("CheckboxGroup",F.Checkbox.Group),K.set("Cascader",F.Cascader),K.set("TimePicker",F.TimePicker),K.set("DatePicker",F.DatePicker),K.set("MonthPicker",F.DatePicker.MonthPicker),K.set("WeekPicker",F.DatePicker.WeekPicker),K.set("RangePicker",F.DatePicker.RangePicker),K.set("InputPassword",F.Input.Password),K.set("InputTextArea",F.Input.TextArea),K.set("ApiAutoComplete",Xa),K.set("AutoComplete",F.AutoComplete),K.set("Upload",F.Upload),K.set("AutoUpload",Ka);const Nr={"form-item-force":"_form-item-force_1hsf3_1","form-item-hidden":"_form-item-hidden_1hsf3_9"},Ja=d.forwardRef(({itemIndex:e,itemProps:t,methods:r,formProps:n,collapseRef:o},s)=>{console.log("render FormItem",t.name);const{rewritingModel:a,isusewatch:i}=Ia(n,t),{isIfShow:c,isShow:u}=ja(t,a,o),{colProps:f}=Ma(t,n),{componentProps:h}=Aa(t,a),{rules:g}=Fa({item:t,model:a,isShow:u,componentProps:h}),{disabled:C}=Oa(n,t,a),{itemCollapse:p,setItemCollapse:w}=Ea(n,e),{name:$,label:z,wrapperCol:A,labelCol:V,valuePropName:J,initialValue:G,forceRow:Q}=t;d.useImperativeHandle(s,()=>({itemIndex:e,componentProps:h,itemCollapse:p,setItemCollapse:w}));const N=()=>({name:$,label:z,rules:g,wrapperCol:A,labelCol:V,valuePropName:J,initialValue:G}),{setExtendFormComp:_}=Lr();_(K);const E=$t(t),D=jt(t),S=()=>{if(E){const k=K.get(t.component);return m.jsx(k,{...h,disabled:C,isusewatch:i.toString()})}return D?t.render({model:a,name:$,disabled:C,methods:r,componentProps:h}):null};return m.jsxs(d.Fragment,{children:[Q?m.jsx("div",{className:Nr["form-item-force"]}):null,c?m.jsx(F.Col,{...f,className:u&&!p?void 0:Nr["form-item-hidden"],children:m.jsx(F.Form.Item,{...N(),children:S()})}):null]})}),Za={"collapse-wrapper":"_collapse-wrapper_ylm01_1"},Qa=d.forwardRef(({collapsible:e,onClickExpand:t,onClickFold:r},n)=>{const[o,s]=d.useState(e),a=d.useMemo(()=>o,[o]),i=()=>{r(),s(!0)},c=()=>{t(),s(!1)};return d.useImperativeHandle(n,()=>({handleCollapseChangeFalse:c})),m.jsx("div",{className:Za["collapse-wrapper"],children:a?m.jsx(F.Button,{onClick:c,type:"link",icon:m.jsx(ve.DownOutlined,{}),children:"展开"}):m.jsx(F.Button,{onClick:i,type:"link",icon:m.jsx(ve.UpOutlined,{}),children:"折叠"})})}),el={"group-wrapper":"_group-wrapper_g8zqi_1"},tl=({formProps:e})=>{const{renderActions:t}=e;return m.jsx("div",{className:el["group-wrapper"],children:t==null?void 0:t()})},rl={"xph-form-action":"_xph-form-action_8ws73_1"},nl=(e,t)=>{console.log("render Form");const[r]=F.Form.useForm(),{formProps:n}=Ua(e),{formItems:o}=Ra({formProps:n}),s=d.useRef(new Map),{collapsible:a,collapseNum:i,collapseRef:c,onClickCollapseToFalse:u,onClickCollapseToTrue:f}=Va(n,s),{handleFormatRenderValues:h,handleFormatReturnValues:g}=Ha(o,n,s),{setFieldsValue:C,getFieldsValue:p,resetFields:w,validator:$,scrollToField:z}=Ba(r,h,g),A=()=>{const{layout:J,wrapperCol:G,labelCol:Q,colon:N,disabled:_,labelWrap:E,labelAlign:D,scrollToFirstError:S,size:k}=n;return{layout:J,wrapperCol:G,labelCol:Q,colon:N,disabled:_,labelWrap:E,labelAlign:D,scrollToFirstError:S,size:k}},V={setFieldsValue:C,getFieldsValue:p,resetFields:w,validator:$,scrollToField:z};return d.useImperativeHandle(t,()=>({...V})),d.useEffect(()=>(console.log("Form is mounted======================="),n.register&&n.register(V),()=>{console.log("Form is unmounted========================="),s.current.clear()}),[]),m.jsxs(F.Form,{form:r,...A(),children:[m.jsx(F.Row,{children:o.map((J,G)=>(s.current.has(J.name)||s.current.set(J.name,d.createRef()),m.jsx(Ja,{ref:s.current.get(J.name),itemIndex:G,itemProps:J,formProps:n,methods:V,collapseRef:c},G)))}),m.jsxs("div",{className:rl["xph-form-action"],children:[m.jsx(tl,{formProps:n}),a?m.jsx(Qa,{ref:c,collapsible:o.length>i,onClickExpand:u,onClickFold:f}):null]})]})},Et=d.forwardRef(nl),ol=d.memo(Et),sl=d.forwardRef((e,t)=>{const{renderActions:r,showSearch:n,tableRef:o}=e,[s,a]=d.useState(!1),i=d.useRef(null),c=()=>{const{reloadData:g}=o.current;g()},u=()=>{const{resetData:g}=o.current;g()},f=d.useCallback(()=>m.jsxs("div",{style:{width:"100%",display:"flex"},children:[m.jsx("div",{style:{flex:1,width:0},children:r==null?void 0:r()}),n&&m.jsxs("div",{style:{display:"flex",gap:"8px"},children:[m.jsx(F.Button,{type:"primary",icon:m.jsx(ve.SearchOutlined,{}),onClick:c,children:"搜索"}),m.jsx(F.Button,{icon:m.jsx(ve.ReloadOutlined,{}),onClick:u,children:"重置"})]})]}),[n,r]),h=()=>{const{renderActions:g,...C}=e;return{...C,renderActions:f}};return d.useImperativeHandle(t,()=>({setFormLoading:a,...i.current})),m.jsx(F.Spin,{spinning:s,children:m.jsx(ol,{ref:i,...h()})})}),il=d.memo(Et),al=(e,t)=>{const r=d.useRef(null),n=d.useRef(null),{formProps:o}=e,s=()=>{const{formProps:a,...i}=e;return i};return d.useImperativeHandle(t,()=>({open:(...a)=>{var i;return(i=r.current)==null?void 0:i.open(...a)},close:(...a)=>{var i;return(i=r.current)==null?void 0:i.close(...a)},getFieldsValue:(...a)=>n.current.getFieldsValue(...a),setFieldsValue:(...a)=>n.current.setFieldsValue(...a),resetFields:(...a)=>n.current.resetFields(...a),validator:(...a)=>n.current.validator(...a),scrollToField:(...a)=>n.current.scrollToField(...a)})),m.jsx(Ir,{...s(),ref:r,children:m.jsx(il,{...o,ref:n})})},Wr=d.forwardRef(al);function ll({searchForm:e}){return{searchFormRef:d.useRef(null),searchFormProps:e}}function cl(e){return"cellFunc"in e}function ul(e){return"children"in e}const{useToken:fl}=F.theme,dl=(e,t,r)=>{const{curComponentProps:n,cellFuncProps:o}=t,{url:s,onClick:a}=n,{token:i}=fl(),c={color:i.colorLink,cursor:"pointer"},u=()=>{if(r.mainClick&&r.mainClick(),a){a();return}if(s){window.open(s,"_blank");return}};return m.jsx(e,{...r,mainClick:u,mainStyle:Object.assign(c,(r==null?void 0:r.mainStyle)||{})})},pl={"cellfunc-actions":"_cellfunc-actions_14drt_1"},Hr={link:{Comp:dl},actions:{Comp:(e,t,r)=>{const{curComponentProps:n,cellFuncProps:o}=t;return m.jsx("div",{className:pl["cellfunc-actions"],children:m.jsx(et,{...n})})}}},hl=(e,t)=>{const{renderPrams:{text:r}}=e;return m.jsx("span",{onClick:t==null?void 0:t.mainClick,style:t==null?void 0:t.mainStyle,children:r})},gl=e=>{const{setExtendTableCellComp:t}=Ur();t(Hr);const{dslConfig:r}=e;let n=hl.bind(null,e),o=0;for(;o<r.length;){const s=o++,a=Hr[r[s].component];a&&(n=a.Comp.bind(null,n,{curComponentProps:r[s].componentProps||{},cellFuncProps:e}))}return m.jsx(n,{})};function Br(e){return e.map(t=>{let r={...t};if(cl(r)){const{cellFunc:n,...o}=r;r={...o,render:(...s)=>{const a=se(n),[i,c,u]=s,f={text:i,record:c,index:u},h=a?n(f):n;return m.jsx(gl,{dslConfig:h,renderPrams:f})}}}return ul(r)&&r.children&&Array.isArray(r.children)&&(r.children=Br(r.children)),r})}function ml(e){const{columns:t}=e.table,r=Br(t);return console.log(r),{columns:r}}const vl=e=>{const{extendTableProps:t}=Ur();return{tableProps:{...$e($e({table:{columns:[],fullHeight:!1,autoRequest:!0,pagination:{pageSize:20,total:0,showTotal:o=>`共:${o} 条`,current:1,pageSizeOptions:[10,20,50,100],showSizeChanger:!0,showQuickJumper:!0}},crudFormDialog:void 0,searchForm:{showSearch:!0,items:[]}},t),e)}}};function bl(e){const{pagination:t,autoPagination:r}=e.table,[n,o]=d.useState(t),s=d.useRef(t),a=d.useMemo(()=>n&&(r===!0||r===void 0)||!1,[n]);return{pagination:{model:n,update:c=>{if(!s.current)return;const u={...s.current,...c};o(u),s.current=u},show:a},lastPaginationState:s}}function _l(e,t){const{api:r,formatDataSource:n,autoPagination:o,onChange:s}=e.table,a=e.onPaginationChange,{pagination:i,lastPaginationState:c}=bl(e),[u,f]=d.useState({loading:!1,dataSource:[],selection:[],backupsDataSource:[]}),h=d.useRef({loading:!1,dataSource:[],selection:[],backupsDataSource:[]}),g={model:u,update:N=>{var E;const _={...h.current,...N};f(_),h.current=_,(E=t.current)==null||E.setFormLoading(_.loading)}},C=async()=>{d.useEffect(()=>{const{autoRequest:N}=e.table,{validator:_}=t.current;N&&_().then(E=>{z({searchFormParams:E})})},[])},p=async({searchFormParams:N,paginationParams:_})=>{const E={...N,current:c.current.current,pageSize:c.current.pageSize,..._};return r(E).then(D=>{const{data:S,current:k,total:W}=D;g.update({dataSource:n?n(S):S}),i.update({total:W,current:k})}).finally(()=>{g.update({loading:!1})})},w=async({searchFormParams:N,paginationParams:_})=>{const E={...N};return r(E).then(D=>{const S=n?n(D):D;g.update({selection:[],dataSource:S}),i.update({current:1,total:D.length})}).finally(()=>{g.update({loading:!1})})},$=async({searchFormParams:N,paginationParams:_})=>{var D;const E={...N};if(_){const{current:S,pageSize:k}=_;i.update({current:S,pageSize:k});const W=(S-1)*k,T=W+k,b=(D=h.current.backupsDataSource)==null?void 0:D.slice(W,T);return g.update({loading:!1,selection:[],dataSource:b})}else return r(E).then(S=>{let k=n?n(S):S;const W=[...k],T=0,b=T+c.current.pageSize;k=k.slice(T,b),g.update({selection:[],dataSource:k,backupsDataSource:W}),i.update({current:1,total:S.length})}).finally(()=>{g.update({loading:!1})})},z=async({searchFormParams:N,paginationParams:_})=>{if(g.update({loading:!0,selection:[]}),r)switch(!!c.current){case!0:return o===!0?$({searchFormParams:N,paginationParams:_}):o===!1?w({searchFormParams:N,paginationParams:_}):p({searchFormParams:N,paginationParams:_});case!1:return w({searchFormParams:N,paginationParams:_})}return g.update({loading:!1})};return{table:g,pagination:i,firstGetTableData:C,onPaginationChange:(N,_)=>{const{validator:E}=t.current;E().then(D=>{z({searchFormParams:D,paginationParams:{current:N,pageSize:_}})}),a&&a(N,_)},onAllChange:async(...N)=>{const[_,E,D,S]=N,k=[];for(let W=0;W<k.length&&!k[W]();W++);s&&s(E,D,S)},resetData:async()=>{const{resetFields:N,validator:_}=t.current;return N().then(async()=>{const E=await _();return z({searchFormParams:E})})},resetAllData:async()=>{const{resetFields:N,validator:_}=t.current;return N().then(async()=>{const E={};if(c.current){const{pageSize:D}=c.current;o===void 0&&(E.paginationParams={current:1,pageSize:D})}return E.searchFormParams=await _(),z(E)})},reloadData:async()=>{const{validator:N}=t.current;return N().then(_=>z({searchFormParams:_}))}}}const yl=(e,t)=>{const{onRowSelectionChange:r}=e,{rowSelection:n}=e.table,o=()=>{if(Pr(n))return{type:n,onChange:(s,a,i)=>{t.update({selection:a}),r&&r(s,a)}};if(fe(n)){const{onChange:s}=n;return{...n,onChange:(a,i,c)=>{t.update({selection:i}),s&&s(a,i,c),r&&r(a,i)}}}return n};return{rowSelection:o(),getNewRowSelection:o}};function wl(e,t){const{scroll:r,virtual:n}=e.table,o=d.useRef(null),[s,a]=d.useState(0),[i,c]=d.useState(0);d.useEffect(()=>{const f=()=>{o.current&&(a(o.current.offsetWidth),c(o.current.offsetHeight))};f();const h=new ResizeObserver(f);return o.current&&h.observe(o.current),()=>{h&&o.current&&h.unobserve(o.current)}},[]);const u=d.useMemo(()=>t?n?{x:s,y:i-70,...r}:{x:"max-content",y:i-70,...r}:{x:"max-content",...r},[i]);return{divRef:o,scroll:u}}function Cl(e,t){const{toolbar:r}=e.table;return{getTopToolbarBindProps:()=>{if(se(r)){const o=r({loading:t.model.loading,selection:t.model.selection});return{...o,disabled:t.model.loading||o.disabled}}return{...r,disabled:t.model.loading||(r==null?void 0:r.disabled)}}}}const Ur=()=>{const{extendProps:e,extendComp:t}=He(),r=n=>{const o=t==null?void 0:t.tableCellFunc;o&&Object.keys(o).forEach(s=>{const a=o[s];n[s]={Comp:a}})};return{extendTableProps:e==null?void 0:e.table,setExtendTableCellComp:r}},xl=({crudFormDialog:e})=>({crudFormDialogRef:d.useRef(null),crudFormProps:e}),nt={"main-container":"_main-container_1yx5k_1",container__toolbar:"_container__toolbar_1yx5k_13",container__table:"_container__table_1yx5k_27",container__pagination:"_container__pagination_1yx5k_35"},Tl=d.forwardRef(({tableProps:e,searchFormRef:t,fullHeight:r},n)=>{const{columns:o}=ml(e),s=d.useRef(null),{table:a,pagination:i,firstGetTableData:c,onPaginationChange:u,onAllChange:f,resetData:h,resetAllData:g,reloadData:C}=_l(e,t),{rowSelection:p}=yl(e,a),{divRef:w,scroll:$}=wl(e,r),{getTopToolbarBindProps:z}=Cl(e,a),A=()=>{const{autoRequest:V,api:J,formatDataSource:G,autoPagination:Q,columns:N,scroll:_,pagination:E,rowSelection:D,onChange:S,...k}=e.table;return k};return c(),d.useImperativeHandle(n,()=>({resetData:h,resetAllData:g,reloadData:C,...s.current})),console.log("render Table"),m.jsxs("div",{className:r?nt["main-container"]:void 0,children:[m.jsx("div",{className:nt.container__toolbar,children:m.jsx(et,{...z()})}),m.jsx("div",{ref:w,className:r?nt.container__table:void 0,children:m.jsx(F.Table,{ref:s,...A(),loading:a.model.loading,columns:o,dataSource:a.model.dataSource,pagination:!1,rowSelection:p,scroll:$,onChange:f})}),i.show?m.jsx("div",{className:nt.container__pagination,children:m.jsx(F.Pagination,{disabled:a.model.loading,...i.model,onChange:u})}):null]})}),Vr={"xph-table-full-wrapper":"_xph-table-full-wrapper_mdv0g_1","full-wrapper__table":"_full-wrapper__table_mdv0g_13"},Sl=(e,t)=>{const{tableProps:r}=vl(e),n=d.useRef(null),{searchFormRef:o,searchFormProps:s}=ll(r),{crudFormDialogRef:a,crudFormProps:i}=xl(r);let{fullHeight:c}=r.table;const{virtual:u}=r.table;return u&&(c=!0),d.useImperativeHandle(t,()=>({...n.current,...a.current})),m.jsxs("div",{className:c?Vr["xph-table-full-wrapper"]:void 0,children:[m.jsx("div",{children:m.jsx(sl,{ref:o,tableRef:n,...s})}),m.jsx("div",{className:c?Vr["full-wrapper__table"]:void 0,children:m.jsx(Tl,{ref:n,searchFormRef:o,fullHeight:c,tableProps:r})}),i?m.jsx(Wr,{ref:a,...i}):null]})},Pl=d.forwardRef(Sl);q.XphActions=et,q.XphCrudFormDialog=Wr,q.XphDialog=Ir,q.XphExtendCompPropsProvider=na,q.XphForm=Et,q.XphPortal=zr,q.XphTable=Pl,q.buildUUID=lt,q.useXphExtendCompProps=He,q.useXphForm=za,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})});
25
+ Check the top-level render call using <`+P+">.")}return v}}function tn(l,v){{if(!l._store||l._store.validated||l.key!=null)return;l._store.validated=!0;var P=Wl(v);if(en[P])return;en[P]=!0;var L="";l&&l._owner&&l._owner!==At.current&&(L=" It was passed a child from "+W(l._owner.type)+"."),Ae(l),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',P,L),Ae(null)}}function rn(l,v){{if(typeof l!="object")return;if(Ft(l))for(var P=0;P<l.length;P++){var L=l[P];Rt(L)&&tn(L,v)}else if(Rt(l))l._store&&(l._store.validated=!0);else if(l){var X=$(l);if(typeof X=="function"&&X!==l.entries)for(var Z=X.call(l),Y;!(Y=Z.next()).done;)Rt(Y.value)&&tn(Y.value,v)}}}function Hl(l){{var v=l.type;if(v==null||typeof v=="string")return;var P;if(typeof v=="function")P=v.propTypes;else if(typeof v=="object"&&(v.$$typeof===c||v.$$typeof===g))P=v.propTypes;else return;if(P){var L=W(v);$l(P,l.props,"prop",L,l)}else if(v.PropTypes!==void 0&&!Mt){Mt=!0;var X=W(v);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",X||"Unknown")}typeof v.getDefaultProps=="function"&&!v.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Bl(l){{for(var v=Object.keys(l.props),P=0;P<v.length;P++){var L=v[P];if(L!=="children"&&L!=="key"){Ae(l),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",L),Ae(null);break}}l.ref!==null&&(Ae(l),A("Invalid attribute `ref` supplied to `React.Fragment`."),Ae(null))}}function nn(l,v,P,L,X,Z){{var Y=D(l);if(!Y){var U="";(l===void 0||typeof l=="object"&&l!==null&&Object.keys(l).length===0)&&(U+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var ae=Nl();ae?U+=ae:U+=Qr();var re;l===null?re="null":Ft(l)?re="array":l!==void 0&&l.$$typeof===t?(re="<"+(W(l.type)||"Unknown")+" />",U=" Did you accidentally export a JSX literal instead of a component?"):re=typeof l,A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",re,U)}var ne=Ll(l,v,P,X,Z);if(ne==null)return ne;if(Y){var he=v.children;if(he!==void 0)if(L)if(Ft(he)){for(var Me=0;Me<he.length;Me++)rn(he[Me],l);Object.freeze&&Object.freeze(he)}else A("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else rn(he,l)}return l===n?Bl(ne):Hl(ne),ne}}function Ul(l,v,P){return nn(l,v,P,!0)}function Vl(l,v,P){return nn(l,v,P,!1)}var Yl=Vl,ql=Ul;Ie.Fragment=n,Ie.jsx=Yl,Ie.jsxs=ql}()),Ie}process.env.NODE_ENV==="production"?ct.exports=cn():ct.exports=un();var m=ct.exports,kt=typeof global=="object"&&global&&global.Object===Object&&global,fn=typeof self=="object"&&self&&self.Object===Object&&self,be=kt||fn||Function("return this")(),Pe=be.Symbol,Lt=Object.prototype,dn=Lt.hasOwnProperty,pn=Lt.toString,ze=Pe?Pe.toStringTag:void 0;function hn(e){var t=dn.call(e,ze),r=e[ze];try{e[ze]=void 0;var n=!0}catch{}var o=pn.call(e);return n&&(t?e[ze]=r:delete e[ze]),o}var gn=Object.prototype,mn=gn.toString;function vn(e){return mn.call(e)}var bn="[object Null]",yn="[object Undefined]",Nt=Pe?Pe.toStringTag:void 0;function ye(e){return e==null?e===void 0?yn:bn:Nt&&Nt in Object(e)?hn(e):vn(e)}function ge(e){return e!=null&&typeof e=="object"}var _n="[object Symbol]";function ut(e){return typeof e=="symbol"||ge(e)&&ye(e)==_n}function wn(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var ce=Array.isArray,Cn=1/0,Wt=Pe?Pe.prototype:void 0,Ht=Wt?Wt.toString:void 0;function Bt(e){if(typeof e=="string")return e;if(ce(e))return wn(e,Bt)+"";if(ut(e))return Ht?Ht.call(e):"";var t=e+"";return t=="0"&&1/e==-Cn?"-0":t}function fe(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ut(e){return e}var xn="[object AsyncFunction]",Tn="[object Function]",Sn="[object GeneratorFunction]",Pn="[object Proxy]";function se(e){if(!fe(e))return!1;var t=ye(e);return t==Tn||t==Sn||t==xn||t==Pn}var ft=be["__core-js_shared__"],Vt=function(){var e=/[^.]+$/.exec(ft&&ft.keys&&ft.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Dn(e){return!!Vt&&Vt in e}var $n=Function.prototype,jn=$n.toString;function Ee(e){if(e!=null){try{return jn.call(e)}catch{}try{return e+""}catch{}}return""}var En=/[\\^$.*+?()[\]{}|]/g,Fn=/^\[object .+?Constructor\]$/,On=Function.prototype,An=Object.prototype,Mn=On.toString,Rn=An.hasOwnProperty,In=RegExp("^"+Mn.call(Rn).replace(En,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function zn(e){if(!fe(e)||Dn(e))return!1;var t=se(e)?In:Fn;return t.test(Ee(e))}function kn(e,t){return e==null?void 0:e[t]}function Fe(e,t){var r=kn(e,t);return zn(r)?r:void 0}var dt=Fe(be,"WeakMap"),Yt=Object.create,Ln=function(){function e(){}return function(t){if(!fe(t))return{};if(Yt)return Yt(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Nn(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Wn(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var Hn=800,Bn=16,Un=Date.now;function Vn(e){var t=0,r=0;return function(){var n=Un(),o=Bn-(n-r);if(r=n,o>0){if(++t>=Hn)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Yn(e){return function(){return e}}var Ue=function(){try{var e=Fe(Object,"defineProperty");return e({},"",{}),e}catch{}}(),qn=Ue?function(e,t){return Ue(e,"toString",{configurable:!0,enumerable:!1,value:Yn(t),writable:!0})}:Ut,Gn=Vn(qn),Xn=9007199254740991,Kn=/^(?:0|[1-9]\d*)$/;function pt(e,t){var r=typeof e;return t=t??Xn,!!t&&(r=="number"||r!="symbol"&&Kn.test(e))&&e>-1&&e%1==0&&e<t}function ht(e,t,r){t=="__proto__"&&Ue?Ue(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function ke(e,t){return e===t||e!==e&&t!==t}var Jn=Object.prototype,Zn=Jn.hasOwnProperty;function qt(e,t,r){var n=e[t];(!(Zn.call(e,t)&&ke(n,r))||r===void 0&&!(t in e))&&ht(e,t,r)}function Qn(e,t,r,n){var o=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var i=t[s],c=void 0;c===void 0&&(c=e[i]),o?ht(r,i,c):qt(r,i,c)}return r}var Gt=Math.max;function eo(e,t,r){return t=Gt(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,s=Gt(n.length-t,0),a=Array(s);++o<s;)a[o]=n[t+o];o=-1;for(var i=Array(t+1);++o<t;)i[o]=n[o];return i[t]=r(a),Nn(e,this,i)}}function to(e,t){return Gn(eo(e,t,Ut),e+"")}var ro=9007199254740991;function Xt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ro}function Ve(e){return e!=null&&Xt(e.length)&&!se(e)}function no(e,t,r){if(!fe(r))return!1;var n=typeof t;return(n=="number"?Ve(r)&&pt(t,r.length):n=="string"&&t in r)?ke(r[t],e):!1}function oo(e){return to(function(t,r){var n=-1,o=r.length,s=o>1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(s=e.length>3&&typeof s=="function"?(o--,s):void 0,a&&no(r[0],r[1],a)&&(s=o<3?void 0:s,o=1),t=Object(t);++n<o;){var i=r[n];i&&e(t,i,n,s)}return t})}var so=Object.prototype;function gt(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||so;return e===r}function io(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var ao="[object Arguments]";function Kt(e){return ge(e)&&ye(e)==ao}var Jt=Object.prototype,lo=Jt.hasOwnProperty,co=Jt.propertyIsEnumerable,mt=Kt(function(){return arguments}())?Kt:function(e){return ge(e)&&lo.call(e,"callee")&&!co.call(e,"callee")};function uo(){return!1}var Zt=typeof q=="object"&&q&&!q.nodeType&&q,Qt=Zt&&typeof module=="object"&&module&&!module.nodeType&&module,fo=Qt&&Qt.exports===Zt,er=fo?be.Buffer:void 0,po=er?er.isBuffer:void 0,Ye=po||uo,ho="[object Arguments]",go="[object Array]",mo="[object Boolean]",vo="[object Date]",bo="[object Error]",yo="[object Function]",_o="[object Map]",wo="[object Number]",Co="[object Object]",xo="[object RegExp]",To="[object Set]",So="[object String]",Po="[object WeakMap]",Do="[object ArrayBuffer]",$o="[object DataView]",jo="[object Float32Array]",Eo="[object Float64Array]",Fo="[object Int8Array]",Oo="[object Int16Array]",Ao="[object Int32Array]",Mo="[object Uint8Array]",Ro="[object Uint8ClampedArray]",Io="[object Uint16Array]",zo="[object Uint32Array]",ee={};ee[jo]=ee[Eo]=ee[Fo]=ee[Oo]=ee[Ao]=ee[Mo]=ee[Ro]=ee[Io]=ee[zo]=!0,ee[ho]=ee[go]=ee[Do]=ee[mo]=ee[$o]=ee[vo]=ee[bo]=ee[yo]=ee[_o]=ee[wo]=ee[Co]=ee[xo]=ee[To]=ee[So]=ee[Po]=!1;function ko(e){return ge(e)&&Xt(e.length)&&!!ee[ye(e)]}function Lo(e){return function(t){return e(t)}}var tr=typeof q=="object"&&q&&!q.nodeType&&q,Le=tr&&typeof module=="object"&&module&&!module.nodeType&&module,No=Le&&Le.exports===tr,vt=No&&kt.process,rr=function(){try{var e=Le&&Le.require&&Le.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch{}}(),nr=rr&&rr.isTypedArray,bt=nr?Lo(nr):ko,Wo=Object.prototype,Ho=Wo.hasOwnProperty;function or(e,t){var r=ce(e),n=!r&&mt(e),o=!r&&!n&&Ye(e),s=!r&&!n&&!o&&bt(e),a=r||n||o||s,i=a?io(e.length,String):[],c=i.length;for(var u in e)(t||Ho.call(e,u))&&!(a&&(u=="length"||o&&(u=="offset"||u=="parent")||s&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||pt(u,c)))&&i.push(u);return i}function sr(e,t){return function(r){return e(t(r))}}var Bo=sr(Object.keys,Object),Uo=Object.prototype,Vo=Uo.hasOwnProperty;function Yo(e){if(!gt(e))return Bo(e);var t=[];for(var r in Object(e))Vo.call(e,r)&&r!="constructor"&&t.push(r);return t}function qo(e){return Ve(e)?or(e):Yo(e)}function Go(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var Xo=Object.prototype,Ko=Xo.hasOwnProperty;function Jo(e){if(!fe(e))return Go(e);var t=gt(e),r=[];for(var n in e)n=="constructor"&&(t||!Ko.call(e,n))||r.push(n);return r}function ir(e){return Ve(e)?or(e,!0):Jo(e)}var Zo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qo=/^\w*$/;function es(e,t){if(ce(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||ut(e)?!0:Qo.test(e)||!Zo.test(e)||t!=null&&e in Object(t)}var Ne=Fe(Object,"create");function ts(){this.__data__=Ne?Ne(null):{},this.size=0}function rs(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var ns="__lodash_hash_undefined__",os=Object.prototype,ss=os.hasOwnProperty;function is(e){var t=this.__data__;if(Ne){var r=t[e];return r===ns?void 0:r}return ss.call(t,e)?t[e]:void 0}var as=Object.prototype,ls=as.hasOwnProperty;function cs(e){var t=this.__data__;return Ne?t[e]!==void 0:ls.call(t,e)}var us="__lodash_hash_undefined__";function fs(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Ne&&t===void 0?us:t,this}function Oe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Oe.prototype.clear=ts,Oe.prototype.delete=rs,Oe.prototype.get=is,Oe.prototype.has=cs,Oe.prototype.set=fs;function ds(){this.__data__=[],this.size=0}function qe(e,t){for(var r=e.length;r--;)if(ke(e[r][0],t))return r;return-1}var ps=Array.prototype,hs=ps.splice;function gs(e){var t=this.__data__,r=qe(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():hs.call(t,r,1),--this.size,!0}function ms(e){var t=this.__data__,r=qe(t,e);return r<0?void 0:t[r][1]}function vs(e){return qe(this.__data__,e)>-1}function bs(e,t){var r=this.__data__,n=qe(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function we(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}we.prototype.clear=ds,we.prototype.delete=gs,we.prototype.get=ms,we.prototype.has=vs,we.prototype.set=bs;var We=Fe(be,"Map");function ys(){this.size=0,this.__data__={hash:new Oe,map:new(We||we),string:new Oe}}function _s(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Ge(e,t){var r=e.__data__;return _s(t)?r[typeof t=="string"?"string":"hash"]:r.map}function ws(e){var t=Ge(this,e).delete(e);return this.size-=t?1:0,t}function Cs(e){return Ge(this,e).get(e)}function xs(e){return Ge(this,e).has(e)}function Ts(e,t){var r=Ge(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function Ce(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ce.prototype.clear=ys,Ce.prototype.delete=ws,Ce.prototype.get=Cs,Ce.prototype.has=xs,Ce.prototype.set=Ts;var Ss="Expected a function";function yt(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ss);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],s=r.cache;if(s.has(o))return s.get(o);var a=e.apply(this,n);return r.cache=s.set(o,a)||s,a};return r.cache=new(yt.Cache||Ce),r}yt.Cache=Ce;var Ps=500;function Ds(e){var t=yt(e,function(n){return r.size===Ps&&r.clear(),n}),r=t.cache;return t}var $s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,js=/\\(\\)?/g,Es=Ds(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace($s,function(r,n,o,s){t.push(o?s.replace(js,"$1"):n||r)}),t});function Fs(e){return e==null?"":Bt(e)}function Os(e,t){return ce(e)?e:es(e,t)?[e]:Es(Fs(e))}var As=1/0;function Ms(e){if(typeof e=="string"||ut(e))return e;var t=e+"";return t=="0"&&1/e==-As?"-0":t}function Rs(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var ar=sr(Object.getPrototypeOf,Object),Is="[object Object]",zs=Function.prototype,ks=Object.prototype,lr=zs.toString,Ls=ks.hasOwnProperty,Ns=lr.call(Object);function Ws(e){if(!ge(e)||ye(e)!=Is)return!1;var t=ar(e);if(t===null)return!0;var r=Ls.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&lr.call(r)==Ns}function Hs(){this.__data__=new we,this.size=0}function Bs(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Us(e){return this.__data__.get(e)}function Vs(e){return this.__data__.has(e)}var Ys=200;function qs(e,t){var r=this.__data__;if(r instanceof we){var n=r.__data__;if(!We||n.length<Ys-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ce(n)}return r.set(e,t),this.size=r.size,this}function xe(e){var t=this.__data__=new we(e);this.size=t.size}xe.prototype.clear=Hs,xe.prototype.delete=Bs,xe.prototype.get=Us,xe.prototype.has=Vs,xe.prototype.set=qs;var cr=typeof q=="object"&&q&&!q.nodeType&&q,ur=cr&&typeof module=="object"&&module&&!module.nodeType&&module,Gs=ur&&ur.exports===cr,fr=Gs?be.Buffer:void 0;fr&&fr.allocUnsafe;function Xs(e,t){return e.slice()}function Ks(e,t){for(var r=-1,n=e==null?0:e.length,o=0,s=[];++r<n;){var a=e[r];t(a,r,e)&&(s[o++]=a)}return s}function Js(){return[]}var Zs=Object.prototype,Qs=Zs.propertyIsEnumerable,dr=Object.getOwnPropertySymbols,ei=dr?function(e){return e==null?[]:(e=Object(e),Ks(dr(e),function(t){return Qs.call(e,t)}))}:Js;function ti(e,t,r){var n=t(e);return ce(e)?n:Rs(n,r(e))}function pr(e){return ti(e,qo,ei)}var _t=Fe(be,"DataView"),wt=Fe(be,"Promise"),Ct=Fe(be,"Set"),hr="[object Map]",ri="[object Object]",gr="[object Promise]",mr="[object Set]",vr="[object WeakMap]",br="[object DataView]",ni=Ee(_t),oi=Ee(We),si=Ee(wt),ii=Ee(Ct),ai=Ee(dt),De=ye;(_t&&De(new _t(new ArrayBuffer(1)))!=br||We&&De(new We)!=hr||wt&&De(wt.resolve())!=gr||Ct&&De(new Ct)!=mr||dt&&De(new dt)!=vr)&&(De=function(e){var t=ye(e),r=t==ri?e.constructor:void 0,n=r?Ee(r):"";if(n)switch(n){case ni:return br;case oi:return hr;case si:return gr;case ii:return mr;case ai:return vr}return t});var Xe=be.Uint8Array;function li(e){var t=new e.constructor(e.byteLength);return new Xe(t).set(new Xe(e)),t}function ci(e,t){var r=li(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}function ui(e){return typeof e.constructor=="function"&&!gt(e)?Ln(ar(e)):{}}var fi="__lodash_hash_undefined__";function di(e){return this.__data__.set(e,fi),this}function pi(e){return this.__data__.has(e)}function Ke(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ce;++t<r;)this.add(e[t])}Ke.prototype.add=Ke.prototype.push=di,Ke.prototype.has=pi;function hi(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function gi(e,t){return e.has(t)}var mi=1,vi=2;function yr(e,t,r,n,o,s){var a=r&mi,i=e.length,c=t.length;if(i!=c&&!(a&&c>i))return!1;var u=s.get(e),f=s.get(t);if(u&&f)return u==t&&f==e;var g=-1,p=!0,C=r&vi?new Ke:void 0;for(s.set(e,t),s.set(t,e);++g<i;){var h=e[g],w=t[g];if(n)var $=a?n(w,h,g,t,e,s):n(h,w,g,e,t,s);if($!==void 0){if($)continue;p=!1;break}if(C){if(!hi(t,function(z,A){if(!gi(C,A)&&(h===z||o(h,z,r,n,s)))return C.push(A)})){p=!1;break}}else if(!(h===w||o(h,w,r,n,s))){p=!1;break}}return s.delete(e),s.delete(t),p}function bi(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function yi(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var _i=1,wi=2,Ci="[object Boolean]",xi="[object Date]",Ti="[object Error]",Si="[object Map]",Pi="[object Number]",Di="[object RegExp]",$i="[object Set]",ji="[object String]",Ei="[object Symbol]",Fi="[object ArrayBuffer]",Oi="[object DataView]",_r=Pe?Pe.prototype:void 0,xt=_r?_r.valueOf:void 0;function Ai(e,t,r,n,o,s,a){switch(r){case Oi:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Fi:return!(e.byteLength!=t.byteLength||!s(new Xe(e),new Xe(t)));case Ci:case xi:case Pi:return ke(+e,+t);case Ti:return e.name==t.name&&e.message==t.message;case Di:case ji:return e==t+"";case Si:var i=bi;case $i:var c=n&_i;if(i||(i=yi),e.size!=t.size&&!c)return!1;var u=a.get(e);if(u)return u==t;n|=wi,a.set(e,t);var f=yr(i(e),i(t),n,o,s,a);return a.delete(e),f;case Ei:if(xt)return xt.call(e)==xt.call(t)}return!1}var Mi=1,Ri=Object.prototype,Ii=Ri.hasOwnProperty;function zi(e,t,r,n,o,s){var a=r&Mi,i=pr(e),c=i.length,u=pr(t),f=u.length;if(c!=f&&!a)return!1;for(var g=c;g--;){var p=i[g];if(!(a?p in t:Ii.call(t,p)))return!1}var C=s.get(e),h=s.get(t);if(C&&h)return C==t&&h==e;var w=!0;s.set(e,t),s.set(t,e);for(var $=a;++g<c;){p=i[g];var z=e[p],A=t[p];if(n)var V=a?n(A,z,p,t,e,s):n(z,A,p,e,t,s);if(!(V===void 0?z===A||o(z,A,r,n,s):V)){w=!1;break}$||($=p=="constructor")}if(w&&!$){var J=e.constructor,G=t.constructor;J!=G&&"constructor"in e&&"constructor"in t&&!(typeof J=="function"&&J instanceof J&&typeof G=="function"&&G instanceof G)&&(w=!1)}return s.delete(e),s.delete(t),w}var ki=1,wr="[object Arguments]",Cr="[object Array]",Je="[object Object]",Li=Object.prototype,xr=Li.hasOwnProperty;function Ni(e,t,r,n,o,s){var a=ce(e),i=ce(t),c=a?Cr:De(e),u=i?Cr:De(t);c=c==wr?Je:c,u=u==wr?Je:u;var f=c==Je,g=u==Je,p=c==u;if(p&&Ye(e)){if(!Ye(t))return!1;a=!0,f=!1}if(p&&!f)return s||(s=new xe),a||bt(e)?yr(e,t,r,n,o,s):Ai(e,t,c,r,n,o,s);if(!(r&ki)){var C=f&&xr.call(e,"__wrapped__"),h=g&&xr.call(t,"__wrapped__");if(C||h){var w=C?e.value():e,$=h?t.value():t;return s||(s=new xe),o(w,$,r,n,s)}}return p?(s||(s=new xe),zi(e,t,r,n,o,s)):!1}function Tr(e,t,r,n,o){return e===t?!0:e==null||t==null||!ge(e)&&!ge(t)?e!==e&&t!==t:Ni(e,t,r,n,Tr,o)}function Wi(e){return function(t,r,n){for(var o=-1,s=Object(t),a=n(t),i=a.length;i--;){var c=a[++o];if(r(s[c],c,s)===!1)break}return t}}var Hi=Wi();function Tt(e,t,r){(r!==void 0&&!ke(e[t],r)||r===void 0&&!(t in e))&&ht(e,t,r)}function Bi(e){return ge(e)&&Ve(e)}function St(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Ui(e){return Qn(e,ir(e))}function Vi(e,t,r,n,o,s,a){var i=St(e,r),c=St(t,r),u=a.get(c);if(u){Tt(e,r,u);return}var f=s?s(i,c,r+"",e,t,a):void 0,g=f===void 0;if(g){var p=ce(c),C=!p&&Ye(c),h=!p&&!C&&bt(c);f=c,p||C||h?ce(i)?f=i:Bi(i)?f=Wn(i):C?(g=!1,f=Xs(c)):h?(g=!1,f=ci(c)):f=[]:Ws(c)||mt(c)?(f=i,mt(i)?f=Ui(i):(!fe(i)||se(i))&&(f=ui(c))):g=!1}g&&(a.set(c,f),o(f,c,n,s,a),a.delete(c)),Tt(e,r,f)}function Sr(e,t,r,n,o){e!==t&&Hi(t,function(s,a){if(o||(o=new xe),fe(s))Vi(e,t,a,r,Sr,n,o);else{var i=n?n(St(e,a),s,a+"",e,t,o):void 0;i===void 0&&(i=s),Tt(e,a,i)}},ir)}var Yi="[object String]";function Pr(e){return typeof e=="string"||!ce(e)&&ge(e)&&ye(e)==Yi}var qi="[object Boolean]";function Pt(e){return e===!0||e===!1||ge(e)&&ye(e)==qi}function Ze(e,t){return Tr(e,t)}var Gi="[object Number]";function Xi(e){return typeof e=="number"||ge(e)&&ye(e)==Gi}function Dr(e){return e==null}function Ki(e){return e===null}var $e=oo(function(e,t,r){Sr(e,t,r)});function Ji(e,t,r,n){if(!fe(e))return e;t=Os(t,e);for(var o=-1,s=t.length,a=s-1,i=e;i!=null&&++o<s;){var c=Ms(t[o]),u=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return e;if(o!=a){var f=i[c];u=void 0,u===void 0&&(u=fe(f)?f:pt(t[o+1])?[]:{})}qt(i,c,u),i=i[c]}return e}function $r(e,t,r){return e==null?e:Ji(e,t,r)}function Zi(e){const{inherit:t=!0}=e,{extendActionsProps:r}=Or();return{actionsProps:{...$e($e({items:[],max:10},t?r:{}),e)}}}function jr(e){return"component"in e}function Qi(e){return"render"in e}function ea(e){const{type:t,disabled:r,items:n,max:o}=e,s=n.map(i=>{const c={...i};return jr(c)&&(c.componentProps={type:t,disabled:r,...c.componentProps}),c}),a=Xi(o)&&o>=0;return{showActionItems:s.slice(0,a?o:s.length),ellipsisActionItems:s.slice(a?o:s.length)}}const ta=e=>{const{componentProps:t}=e,r=()=>{const{...n}=t;return n};return m.jsx(F.Button,{...r()})},ra=e=>{const{componentProps:t}=e,n=(()=>{const{dropDownItems:o,onClick:s,...a}=t;return a})();return m.jsx(F.Dropdown,{disabled:n.disabled,menu:{items:(t==null?void 0:t.dropDownItems)||[],onClick:t==null?void 0:t.onClick},trigger:["click"],children:m.jsx("div",{children:m.jsxs(F.Button,{...n,children:[n.children,m.jsx(ve.CaretDownOutlined,{})]})})})},Qe=new Map;Qe.set("Button",ta),Qe.set("Dropdown",ra);function Er(){const{setExtendActionsComp:e}=Or();return e(Qe),{renderContent:d.useCallback((r,n)=>{const o=jr(r),s=Qi(r);if(o){const a=Qe.get(r.component);return m.jsx(a,{...r},n)}return s?m.jsx("div",{children:r.render},n):null},[])}}const Fr=d.createContext({}),na=e=>{const{extendProps:t,extendComp:r}=e.value;return m.jsx(Fr.Provider,{value:{extendProps:t,extendComp:r},children:e.children})},He=()=>d.useContext(Fr),Or=()=>{const{extendProps:e,extendComp:t}=He(),r=n=>{const o=t==null?void 0:t.actions;o&&Object.keys(o).forEach(s=>{n.set(s,o[s])})};return{extendActionsProps:e==null?void 0:e.actions,setExtendActionsComp:r}},{useToken:oa}=F.theme,sa=({items:e,actionsProps:t})=>{const{type:r,disabled:n}=t,{renderContent:o}=Er(),{token:s}=oa(),a={backgroundColor:s.colorBgElevated,borderRadius:s.borderRadiusLG,boxShadow:s.boxShadowSecondary},i=()=>m.jsx("div",{style:a,children:m.jsx(F.Space,{style:{padding:8},children:e==null?void 0:e.map((c,u)=>o(c,u))})});return m.jsx(F.Dropdown,{disabled:n,menu:{items:[]},dropdownRender:i,trigger:["click"],children:m.jsxs(F.Button,{type:r,children:["更多",m.jsx(ve.CaretDownOutlined,{})]})})},et=e=>{const{actionsProps:t}=Zi(e),{showActionItems:r,ellipsisActionItems:n}=ea(t),{renderContent:o}=Er();return t!=null&&t.render?t.render:m.jsxs(d.Fragment,{children:[r==null?void 0:r.map((s,a)=>o(s,a)),n!=null&&n.length?m.jsx(sa,{actionsProps:t,items:n}):null]})};function ia(e){const{okText:t,cancelText:r,onCancel:n,onOk:o,okProps:s,cancelProps:a}=e;return{footerActions:{max:2,items:[{component:"Button",componentProps:{...a,children:r,onClick:n}},{component:"Button",componentProps:{type:"primary",...s,children:t,onClick:o}}]}}}const aa=e=>{const{extendDialogProps:t}=la(),r={width:700,okText:"确定",cancelText:"取消",getPopperContainer:()=>document.body};return{dialogProps:{...$e($e(r,t),e)},baseDialogProps:r}},la=()=>{const{extendProps:e}=He();return{extendDialogProps:e==null?void 0:e.dialog}},ca=(e,t)=>{const{onOpen:r,onClose:n}=e;return{open:()=>{t(!0),r&&r()},close:()=>{t(!1),n&&n()}}},ua=(e,t,r,n)=>{const{width:o,height:s}=t,{width:a,height:i}=r,c=a||o,u=i||s,{clientWidth:f,clientHeight:g}=e,p=c?c>f?f:c:0,C=u?u>g?g:u:"unset",h=d.useRef(p),w=d.useRef(C),[$,z]=d.useState(h.current),[A,V]=d.useState(w.current);return{dialogWidth:$,dialogHeight:A,initWidth:h,initHeight:w,curPropsWidth:p,curPropsHeight:C,setDialogSize:({width:G,height:Q})=>{n({width:$,height:A}),G!==void 0&&z(G),Q!==void 0&&V(Q)}}},fa=({container:e,setDialogChangeRecord:t})=>{const{clientWidth:r,clientHeight:n}=e,o=Math.floor(r/2),s=Math.floor(n/2),[a,i]=d.useState(o),[c,u]=d.useState(s);return{dialogLeft:a,dialogTop:c,setDialogPosition:({left:g,top:p})=>{t({left:a,top:c}),g!==void 0&&i(g),p!==void 0&&u(p)}}},Ar=({container:e,dialogHeaderRef:t,dialogRef:r,setDialogPosition:n})=>{const o=d.useRef(0),s=d.useRef(0),a=f=>{const g=f.getBoundingClientRect(),p=g.width,C=g.height,h=-.5*p,w=-.5*C;return{translateX:h,translateY:w}},i=d.useCallback(f=>{const{offsetLeft:g,offsetTop:p}=r.current;o.current=f.clientX-g,s.current=f.clientY-p,document.addEventListener("mousemove",c),document.addEventListener("mouseup",u)},[]),c=d.useCallback(f=>{const g=r.current,{translateX:p,translateY:C}=a(g);let h=f.clientX-o.current,w=f.clientY-s.current;const $=-p,z=-C,A=e.scrollWidth-g.offsetWidth-p,V=e.scrollHeight-g.offsetHeight-C;h<$&&(h=$),h>A&&(h=A),w<z&&(w=z),w>V&&(w=V),n({left:h,top:w})},[]),u=d.useCallback(()=>{document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",u)},[]);return d.useEffect(()=>{const f=t.current;return f.addEventListener("mousedown",i),()=>{f.removeEventListener("mousedown",i)}},[]),{}},da=({container:e,dialogChangeRecord:t,close:r,setDialogSize:n,setDialogPosition:o})=>{const[s,a]=d.useState(!1),[i,c]=d.useState(!1);return{minimizeVisible:s,maximizeVisible:i,onMinimize:()=>{a(!0)},onMaximize:C=>{if(C==="minimize"&&a(!1),C==="maximize"){const{scrollWidth:h,scrollHeight:w}=e,$=Math.floor(h),z=Math.floor(w),A=Math.floor(h/2),V=Math.floor(w/2);n({width:$,height:z}),o({top:V,left:A}),c(!0)}},onRecovery:()=>{const{top:C,left:h,width:w,height:$}=t.current;n({width:w,height:$}),o({top:C,left:h}),c(!1)},onClose:()=>{a(!1),c(!1),r()}}},pa=({visible:e,container:t,dialogHeight:r,dialogRef:n,dialogHeaderRef:o,dialogFooterRef:s})=>{const[a,i]=d.useState("unset");return d.useEffect(()=>{var c,u,f;if(e){const{clientHeight:C}=t,h=(c=o.current)==null?void 0:c.offsetHeight,w=(u=s.current)==null?void 0:u.offsetHeight;let z=((f=n.current)==null?void 0:f.getBoundingClientRect().height)-h-w-0;const A=C-h-w-0;z>A&&(z=A),i(z)}},[e,r]),{contentMaxHeight:a,setContentMaxHeight:i}},ha=()=>{const[e,t]=d.useState(160),[r,n]=d.useState(60),o=d.useRef(null);return{minimizeTop:r,minimizeLeft:e,minimizeRef:o,setMinimizePosition:({left:a,top:i})=>{a!==void 0&&t(a),i!==void 0&&n(i)}}},ga=({visible:e,dialogRef:t,minimizeRef:r,container:n})=>{const o={xphDialog:"xph--dialog",xphDialogWrapper:"xph--dialog--wrapper",xphMinimizeDialog:"xph--dialog--minimize"},s=(i,c)=>{console.log("触发插入"),i.querySelector(`.${o.xphDialogWrapper}`).style.opacity="unset",i.querySelector(`.${o.xphMinimizeDialog}`).style.opacity="unset",c.querySelector(`.${o.xphDialogWrapper}`).style.opacity=.7,c.querySelector(`.${o.xphMinimizeDialog}`).style.opacity=.7;const u=document.createElement("div");u.style.visibility="hidden",c.parentNode.insertBefore(u,c.nextSibling),c.parentNode.insertBefore(i,u),c.parentNode.removeChild(u)},a=i=>{var f,g;const c=n.querySelectorAll(`.${o.xphDialog}`),u=c[c.length-1];if(((f=t.current)==null?void 0:f.parentNode)!==u&&(s((g=t.current)==null?void 0:g.parentNode,u),i)){const p=i.target;p.tagName==="INPUT"&&p.focus&&p.focus()}};return d.useEffect(()=>{var i,c;return(i=t.current)==null||i.addEventListener("mousedown",a,!1),(c=r.current)==null||c.addEventListener("mousedown",a,!1),()=>{var u,f;(u=t.current)==null||u.removeEventListener("mousedown",a,!1),(f=r.current)==null||f.removeEventListener("mousedown",a,!1)}},[]),d.useEffect(()=>{if(e)a();else{const i=Array.from(n.querySelectorAll(`.${o.xphDialog}`)),c=i.map(p=>p.querySelector(`.${o.xphDialogWrapper}`)).filter(p=>p!==null),u=i.map(p=>p.querySelector(`.${o.xphMinimizeDialog}`)).filter(p=>p!==null),f=c.filter(p=>p.style.display==="flex"),g=u.filter(p=>p.style.display==="flex");if(f.length){s(f[f.length-1].parentNode,i[i.length-1]);return}if(g.length){s(g[g.length-1].parentNode,i[i.length-1]);return}}},[e]),{dialogTopShowClassConfig:o}},ma=({visible:e,container:t,initWidth:r,initHeight:n,curPropsWidth:o,curPropsHeight:s,setDialogSize:a,setDialogPosition:i})=>{const{clientWidth:c,clientHeight:u}=t,f=Math.floor(c/2),g=Math.floor(u/2);d.useEffect(()=>{o!==r.current&&(console.log("重新设置了宽度"),a({width:o})),s!==n.current&&(console.log("重新设置了高度"),a({height:s}))},[o,s]),d.useEffect(()=>{o!==r.current&&(console.log("重新设置了左边位置"),i({left:f})),s!==n.current&&(console.log("重新设置了上边位置"),i({top:g}))},[o,s]),d.useEffect(()=>{e||(a({width:r.current,height:n.current}),i({left:f,top:g}))},[e])},va=()=>{const e=d.useRef({left:0,top:0,width:0,height:0});return{dialogChangeRecord:e,setDialogChangeRecord:({left:r,top:n,width:o,height:s})=>{const{left:a,top:i,width:c,height:u}=e.current;e.current={left:r??a,top:n??i,width:o??c,height:s??u}}}},ba=({visible:e,container:t,dialogRef:r,setDialogSize:n,setDialogPosition:o})=>{const s=d.useCallback(()=>m.jsx("div",{ref:i,style:{position:"absolute",border:"4px dashed #ccc",display:"none"}}),[]),a=d.useRef(null);d.useEffect(()=>{if(e){const y=r.current.offsetWidth,E=r.current.offsetHeight;a.current={width:y,height:E}}else a.current=null},[e]);const i=d.useRef(null),c=d.useRef(),u=d.useRef(!1),[f,g]=d.useState(!1),p=d.useRef(0),C=d.useRef(0),h=(y,E)=>{u.current=!0,g(!0),c.current=E;const{clientX:D,clientY:S}=y;p.current=D,C.current=S;const k=parseFloat(r.current.style.left),W=parseFloat(r.current.style.top),T=r.current.offsetWidth,b=r.current.offsetHeight;i.current.style.display="block",i.current.style.left=`${k-.5*T}px`,i.current.style.top=`${W-.5*b}px`,i.current.style.width=`${T}px`,i.current.style.height=`${b}px`},w=y=>{if(u.current){const{clientX:E,clientY:D}=y,S=E-p.current,k=D-C.current,W=parseFloat(i.current.style.left),T=parseFloat(i.current.style.top),b=i.current.offsetWidth,_=i.current.offsetHeight,j=a.current.width,x=a.current.height,R=t.scrollWidth,M=t.scrollHeight;let O=b,I=_,H=W,B=T;switch(c.current){case"lt":{O=O-S,I=I-k,B=B+k,H=H+S,O<j&&(O=b,H=W),I<x&&(I=_,B=T),H<0&&(H=0,O=b),B<0&&(B=0,I=_);break}case"rt":{O=O+S,I=I-k,B=B+k,H=W,O<j&&(O=b),I<x&&(I=_,B=T),O>R-H&&(O=R-H),B<0&&(B=0,I=_);break}case"rb":{O=O+S,I=I+k,B=T,H=W,O<j&&(O=b),I<x&&(I=_),O>R-H&&(O=R-H),I>M-B&&(I=M-B);break}case"lb":{O=O-S,I=I+k,B=T,H=H+S,O<j&&(O=b,H=W),I<x&&(I=_),H<0&&(H=0,O=b),I>M-B&&(I=M-B);break}}i.current.style.left=`${H}px`,i.current.style.top=`${B}px`,i.current.style.width=`${O}px`,i.current.style.height=`${I}px`,p.current=E,C.current=D}},$=()=>{if(u.current){u.current=!1,g(!1),i.current.style.display="none";const{left:y,top:E,width:D,height:S}=i.current.style,k=parseFloat(y)+.5*parseFloat(D),W=parseFloat(E)+.5*parseFloat(S),T=parseFloat(D),b=parseFloat(S);console.log(k,W,T,b),o({left:k,top:W}),n({width:T,height:b})}},z=y=>h(y,"lt"),A=y=>h(y,"rt"),V=y=>h(y,"rb"),J=y=>h(y,"lb"),G=d.useCallback(y=>{w(y)},[]),Q=d.useCallback(()=>{$()},[]),N=d.useCallback(()=>{$()},[]);return d.useEffect(()=>(document.body.addEventListener("mousemove",G),document.body.addEventListener("mouseup",Q),document.body.addEventListener("mouseleave",N),()=>{document.body.removeEventListener("mousemove",G),document.body.removeEventListener("mouseup",Q),document.body.removeEventListener("mouseleave",N)}),[]),{resizingState:f,DashedBox:s,onMousedownResizeLt:z,onMousedownResizeRt:A,onMousedownResizeRb:V,onMousedownResizeLb:J}},Dt={"minimize-windows":"_minimize-windows_1q5z9_1","minimize-windows-title":"_minimize-windows-title_1q5z9_43","minimize-windows-operate":"_minimize-windows-operate_1q5z9_55"},ya=({onClick:e})=>m.jsx(F.Button,{type:"link",onClick:e,icon:m.jsx(ve.ShrinkOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),Mr=({onClick:e})=>m.jsx(F.Button,{type:"link",onClick:e,icon:m.jsx(ve.FullscreenOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),_a=({onClick:e})=>m.jsx(F.Button,{type:"link",onClick:e,icon:m.jsx(ve.FullscreenExitOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),Rr=({onClick:e})=>m.jsx(F.Button,{type:"link",onClick:e,icon:m.jsx(ve.CloseOutlined,{style:{fontSize:"22px",cursor:"pointer"}})}),wa=d.forwardRef(({title:e,left:t,top:r,visible:n,onMaximize:o,onClosesquare:s,className:a},i)=>m.jsxs("div",{style:{display:n?"flex":"none",left:t,top:r},className:`${Dt["minimize-windows"]} ${a}`,ref:i,children:[m.jsx("div",{className:Dt["minimize-windows-title"],title:e,children:e}),m.jsxs("div",{className:Dt["minimize-windows-operate"],children:[m.jsx(Mr,{onClick:o}),m.jsx(Rr,{onClick:s})]})]})),le={"xph-dialog-mask":"_xph-dialog-mask_1pw42_1","xph-dialog-wrapper":"_xph-dialog-wrapper_1pw42_23",dialog__header:"_dialog__header_1pw42_49","dialog__header-btns":"_dialog__header-btns_1pw42_65",dialog__main:"_dialog__main_1pw42_73",dialog__footer:"_dialog__footer_1pw42_87",dialog__resize:"_dialog__resize_1pw42_101","dialog__resize-lt":"_dialog__resize-lt_1pw42_115","dialog__resize-rt":"_dialog__resize-rt_1pw42_127","dialog__resize-rb":"_dialog__resize-rb_1pw42_139","dialog__resize-lb":"_dialog__resize-lb_1pw42_151"},Ca=d.forwardRef((e,t)=>{console.log("render Dialog==============================================");const{children:r,baseDialogProps:n,mask:o}=e,[s,a]=d.useState(!1),{footerActions:i}=ia(e),{title:c,renderFooter:u,renderTitle:f,getPopperContainer:g}=e,{open:p,close:C}=ca(e,a),h=g(),w=d.useRef(null),$=d.useRef(null),z=d.useRef(null),A=d.useRef(null),{dialogChangeRecord:V,setDialogChangeRecord:J}=va(),{initWidth:G,initHeight:Q,curPropsWidth:N,curPropsHeight:y,dialogWidth:E,dialogHeight:D,setDialogSize:S}=ua(h,n,e,J),{dialogLeft:k,dialogTop:W,setDialogPosition:T}=fa({container:h,setDialogChangeRecord:J}),{contentMaxHeight:b}=pa({visible:s,container:h,dialogHeight:D,dialogRef:w,dialogHeaderRef:$,dialogFooterRef:A}),{minimizeLeft:_,minimizeTop:j,minimizeRef:x,setMinimizePosition:R}=ha(),{minimizeVisible:M,maximizeVisible:O,onMaximize:I,onMinimize:H,onRecovery:B,onClose:oe}=da({container:h,dialogChangeRecord:V,close:C,setDialogSize:S,setDialogPosition:T});ma({visible:s,container:h,initWidth:G,initHeight:Q,curPropsWidth:N,curPropsHeight:y,setDialogSize:S,setDialogPosition:T}),Ar({container:h,dialogHeaderRef:$,dialogRef:w,setDialogPosition:T}),Ar({container:h,dialogHeaderRef:x,dialogRef:x,setDialogPosition:R});const{dialogTopShowClassConfig:ie}=ga({visible:s,container:h,dialogRef:w,minimizeRef:x}),{resizingState:de,DashedBox:ue,onMousedownResizeLt:te,onMousedownResizeRt:pe,onMousedownResizeRb:_e,onMousedownResizeLb:je}=ba({visible:s,container:h,dialogRef:w,setDialogSize:S,setDialogPosition:T});return d.useImperativeHandle(t,()=>({open:p,close:oe})),m.jsxs("div",{className:ie.xphDialog,children:[o?m.jsx("div",{className:le["xph-dialog-mask"],style:{display:s?"block":"none",width:h.scrollWidth,height:h.scrollHeight}}):null,m.jsx(wa,{visible:M,className:`${ie.xphMinimizeDialog}`,ref:x,left:_,top:j,title:c,onMaximize:()=>I("minimize"),onClosesquare:oe}),m.jsxs("div",{ref:w,className:`${le["xph-dialog-wrapper"]} ${ie.xphDialogWrapper}`,style:{display:s&&!M?"flex":"none",left:k,top:W,width:E,height:D,opacity:de?.2:"unset"},children:[m.jsxs("div",{ref:$,className:le.dialog__header,children:[m.jsx("div",{children:f?f():c}),m.jsxs("div",{className:le["dialog__header-btns"],children:[m.jsx(ya,{onClick:H}),O?m.jsx(_a,{onClick:B}):m.jsx(Mr,{onClick:()=>I("maximize")}),m.jsx(Rr,{onClick:oe})]})]}),m.jsx("div",{ref:z,className:le.dialog__main,style:{maxHeight:b},children:s?r:null}),u?m.jsx("div",{ref:A,children:u()}):m.jsx("div",{ref:A,className:le.dialog__footer,children:m.jsx(et,{...i})}),m.jsx("div",{className:`${le.dialog__resize} ${le["dialog__resize-lt"]}`,onMouseDown:te}),m.jsx("div",{className:`${le.dialog__resize} ${le["dialog__resize-rt"]}`,onMouseDown:pe}),m.jsx("div",{className:`${le.dialog__resize} ${le["dialog__resize-rb"]}`,onMouseDown:_e}),m.jsx("div",{className:`${le.dialog__resize} ${le["dialog__resize-lb"]}`,onMouseDown:je})]}),m.jsx(ue,{})]})}),xa=(e,t)=>{const{children:r,...n}=e,{baseDialogProps:o,dialogProps:s}=aa(n),{getPopperContainer:a}=s;return console.log("render XphDialog=============================================="),m.jsx(zr,{getPopperContainer:a,children:m.jsx(Ca,{...s,baseDialogProps:o,ref:t,children:r})})},Ir=d.forwardRef(xa),zr=({children:e,getPopperContainer:t})=>{const[r,n]=d.useState(null);return d.useEffect(()=>{const o=t();n(o)},[]),r?sn.createPortal(e,r):null};function $t(e){return"component"in e}function jt(e){return"render"in e}function Ta(e){return e.includes("Input")||e.includes("Complete")?"请输入":e.includes("Picker")||e.includes("Select")||e.includes("Cascader")||e.includes("Checkbox")||e.includes("Radio")||e.includes("Switch")?"请选择":""}function Sa(e,t,r){["DatePicker","MonthPicker","WeekPicker","TimePicker"].includes(t)?e.type=r?"string":"object":["RangePicker","Upload","CheckboxGroup","TimePicker"].includes(t)?e.type="array":["InputNumber"].includes(t)&&(e.type="number")}const Pa=["DatePicker","MonthPicker","RangePicker","WeekPicker","TimePicker"],Da=e=>{const{show:t,ifShow:r,required:n,disabled:o,componentProps:s}=e;return!!(se(t)||se(r)||se(n)||se(o)||se(s)||jt(e))},$a=e=>["application/json","application/javascript","text/plain","text/html","text/css"].includes(e)?`${e}; charset=utf-8`:e,ja=(e,t,r)=>{const n=d.useRef(null),o=d.useRef(null),{handleCollapseChangeFalse:s}=r.current||{},{show:a,ifShow:i}=e;let c=!0,u=!0;if(Pt(a)&&(c=a),Pt(i)&&(u=i),se(a)){c=a({model:t});const f=Dr(n.current)?c:n.current;d.useEffect(()=>{Ze(c,f)||s&&s()},[t])}if(se(i)){u=i({model:t});const f=Dr(o.current)?u:o.current;d.useEffect(()=>{Ze(u,f)||s&&s()},[t])}return n.current=c,o.current=u,{isShow:c,isIfShow:u}},Ea=(e,t)=>{const{collapsible:r,collapseNum:n}=e,[o,s]=d.useState(!!(r&&t>=n));return{itemCollapse:o,setItemCollapse:s}},Fa=({item:e,model:t,isShow:r,componentProps:n})=>{const{rules:o=[],label:s,required:a}=e;let i=o;const c=$t(e),u=c?Ta(e.component)+s:"";function f(h,w){const $=h.message||u;return w===void 0||Ki(w)||Array.isArray(w)&&w.length===0||typeof w=="string"&&w.trim()===""||typeof w=="object"&&Reflect.has(w,"checked")&&Reflect.has(w,"halfChecked")&&Array.isArray(w.checked)&&Array.isArray(w.halfChecked)&&w.checked.length===0&&w.halfChecked.length===0?Promise.reject($):Promise.resolve()}const g=se(a)?a({model:t}):a;g&&(!i||i.length===0?i=[{required:g,validator:f}]:i.findIndex(w=>Reflect.has(w,"required"))===-1&&i.push({required:g,validator:f}));const p=i.findIndex(h=>Reflect.has(h,"required")&&!Reflect.has(h,"validator"));if(p!==-1){const h=i[p];if(r||(h.required=!1),c){const{component:w}=e;Reflect.has(h,"type")||(h.type=w==="InputNumber"?"number":"string"),h.message=h.message||u,(w.includes("Input")||w.includes("Textarea"))&&(h.whitespace=!0);const $=n.valueFormat;Sa(h,w,$)}}const C=i.findIndex(h=>h.max);return C!==-1&&!i[C].validator&&(i[C].message=i[C].message||`字符数应小于${i[C].max}位`),{rules:i}},Oa=(e,t,r)=>{const{disabled:n}=e;let o=!1;const{disabled:s}=t;return se(s)&&(o=s({model:r})),Pt(s)&&(o=s),{disabled:Reflect.has(t,"disabled")?o:n}},Aa=(e,t)=>{const r={},{componentProps:n={}}=e;return se(n)&&Object.assign(r,n({model:t})),Object.assign(r,n),{componentProps:r}},Ma=(e,t)=>{const{colProps:r={}}=e,{colProps:n={span:24}}=t;return{colProps:{...n,...r}}},Ra=({formProps:e})=>{const{items:t}=e;return{formItems:t.map(n=>({...n}))}},Ia=(e,t)=>{const r=i=>(Object.keys(i).forEach(c=>{Object.defineProperty(i,c,{value:i[c],writable:!1,enumerable:!0,configurable:!1})}),i),n={};e.items.forEach(i=>{n[i.name]=i.initialValue});const o=Da(t),s=o?F.Form.useWatch(i=>r(i)):null;return{rewritingModel:d.useMemo(()=>s||r(n),[s]),isusewatch:o}},za=()=>{const e=d.useRef(null);function t(n){e.current=n}const r={getFieldsValue:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.getFieldsValue(...n)},setFieldsValue:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.setFieldsValue(...n)},resetFields:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.resetFields(...n)},validator:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.validator(...n)},scrollToField:(...n)=>{if(!e.current)throw new Error("表单还没初始化完成");return e.current.scrollToField(...n)}};return d.useEffect(()=>(console.log("ParentComponent is mounted====================================="),()=>{console.log("ParentComponent is unmounted===================================="),e.current=null}),[]),[t,r]};var kr={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(an,function(){var r=1e3,n=6e4,o=36e5,s="millisecond",a="second",i="minute",c="hour",u="day",f="week",g="month",p="quarter",C="year",h="date",w="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,z=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,A={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var b=["th","st","nd","rd"],_=T%100;return"["+T+(b[(_-20)%10]||b[_]||b[0])+"]"}},V=function(T,b,_){var j=String(T);return!j||j.length>=b?T:""+Array(b+1-j.length).join(_)+T},J={s:V,z:function(T){var b=-T.utcOffset(),_=Math.abs(b),j=Math.floor(_/60),x=_%60;return(b<=0?"+":"-")+V(j,2,"0")+":"+V(x,2,"0")},m:function T(b,_){if(b.date()<_.date())return-T(_,b);var j=12*(_.year()-b.year())+(_.month()-b.month()),x=b.clone().add(j,g),R=_-x<0,M=b.clone().add(j+(R?-1:1),g);return+(-(j+(_-x)/(R?x-M:M-x))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:g,y:C,w:f,d:u,D:h,h:c,m:i,s:a,ms:s,Q:p}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},G="en",Q={};Q[G]=A;var N="$isDayjsObject",y=function(T){return T instanceof k||!(!T||!T[N])},E=function T(b,_,j){var x;if(!b)return G;if(typeof b=="string"){var R=b.toLowerCase();Q[R]&&(x=R),_&&(Q[R]=_,x=R);var M=b.split("-");if(!x&&M.length>1)return T(M[0])}else{var O=b.name;Q[O]=b,x=O}return!j&&x&&(G=x),x||!j&&G},D=function(T,b){if(y(T))return T.clone();var _=typeof b=="object"?b:{};return _.date=T,_.args=arguments,new k(_)},S=J;S.l=E,S.i=y,S.w=function(T,b){return D(T,{locale:b.$L,utc:b.$u,x:b.$x,$offset:b.$offset})};var k=function(){function T(_){this.$L=E(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[N]=!0}var b=T.prototype;return b.parse=function(_){this.$d=function(j){var x=j.date,R=j.utc;if(x===null)return new Date(NaN);if(S.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var M=x.match($);if(M){var O=M[2]-1||0,I=(M[7]||"0").substring(0,3);return R?new Date(Date.UTC(M[1],O,M[3]||1,M[4]||0,M[5]||0,M[6]||0,I)):new Date(M[1],O,M[3]||1,M[4]||0,M[5]||0,M[6]||0,I)}}return new Date(x)}(_),this.init()},b.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},b.$utils=function(){return S},b.isValid=function(){return this.$d.toString()!==w},b.isSame=function(_,j){var x=D(_);return this.startOf(j)<=x&&x<=this.endOf(j)},b.isAfter=function(_,j){return D(_)<this.startOf(j)},b.isBefore=function(_,j){return this.endOf(j)<D(_)},b.$g=function(_,j,x){return S.u(_)?this[j]:this.set(x,_)},b.unix=function(){return Math.floor(this.valueOf()/1e3)},b.valueOf=function(){return this.$d.getTime()},b.startOf=function(_,j){var x=this,R=!!S.u(j)||j,M=S.p(_),O=function(ue,te){var pe=S.w(x.$u?Date.UTC(x.$y,te,ue):new Date(x.$y,te,ue),x);return R?pe:pe.endOf(u)},I=function(ue,te){return S.w(x.toDate()[ue].apply(x.toDate("s"),(R?[0,0,0,0]:[23,59,59,999]).slice(te)),x)},H=this.$W,B=this.$M,oe=this.$D,me="set"+(this.$u?"UTC":"");switch(M){case C:return R?O(1,0):O(31,11);case g:return R?O(1,B):O(0,B+1);case f:var ie=this.$locale().weekStart||0,de=(H<ie?H+7:H)-ie;return O(R?oe-de:oe+(6-de),B);case u:case h:return I(me+"Hours",0);case c:return I(me+"Minutes",1);case i:return I(me+"Seconds",2);case a:return I(me+"Milliseconds",3);default:return this.clone()}},b.endOf=function(_){return this.startOf(_,!1)},b.$set=function(_,j){var x,R=S.p(_),M="set"+(this.$u?"UTC":""),O=(x={},x[u]=M+"Date",x[h]=M+"Date",x[g]=M+"Month",x[C]=M+"FullYear",x[c]=M+"Hours",x[i]=M+"Minutes",x[a]=M+"Seconds",x[s]=M+"Milliseconds",x)[R],I=R===u?this.$D+(j-this.$W):j;if(R===g||R===C){var H=this.clone().set(h,1);H.$d[O](I),H.init(),this.$d=H.set(h,Math.min(this.$D,H.daysInMonth())).$d}else O&&this.$d[O](I);return this.init(),this},b.set=function(_,j){return this.clone().$set(_,j)},b.get=function(_){return this[S.p(_)]()},b.add=function(_,j){var x,R=this;_=Number(_);var M=S.p(j),O=function(B){var oe=D(R);return S.w(oe.date(oe.date()+Math.round(B*_)),R)};if(M===g)return this.set(g,this.$M+_);if(M===C)return this.set(C,this.$y+_);if(M===u)return O(1);if(M===f)return O(7);var I=(x={},x[i]=n,x[c]=o,x[a]=r,x)[M]||1,H=this.$d.getTime()+_*I;return S.w(H,this)},b.subtract=function(_,j){return this.add(-1*_,j)},b.format=function(_){var j=this,x=this.$locale();if(!this.isValid())return x.invalidDate||w;var R=_||"YYYY-MM-DDTHH:mm:ssZ",M=S.z(this),O=this.$H,I=this.$m,H=this.$M,B=x.weekdays,oe=x.months,me=x.meridiem,ie=function(te,pe,_e,je){return te&&(te[pe]||te(j,R))||_e[pe].slice(0,je)},de=function(te){return S.s(O%12||12,te,"0")},ue=me||function(te,pe,_e){var je=te<12?"AM":"PM";return _e?je.toLowerCase():je};return R.replace(z,function(te,pe){return pe||function(_e){switch(_e){case"YY":return String(j.$y).slice(-2);case"YYYY":return S.s(j.$y,4,"0");case"M":return H+1;case"MM":return S.s(H+1,2,"0");case"MMM":return ie(x.monthsShort,H,oe,3);case"MMMM":return ie(oe,H);case"D":return j.$D;case"DD":return S.s(j.$D,2,"0");case"d":return String(j.$W);case"dd":return ie(x.weekdaysMin,j.$W,B,2);case"ddd":return ie(x.weekdaysShort,j.$W,B,3);case"dddd":return B[j.$W];case"H":return String(O);case"HH":return S.s(O,2,"0");case"h":return de(1);case"hh":return de(2);case"a":return ue(O,I,!0);case"A":return ue(O,I,!1);case"m":return String(I);case"mm":return S.s(I,2,"0");case"s":return String(j.$s);case"ss":return S.s(j.$s,2,"0");case"SSS":return S.s(j.$ms,3,"0");case"Z":return M}return null}(te)||M.replace(":","")})},b.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},b.diff=function(_,j,x){var R,M=this,O=S.p(j),I=D(_),H=(I.utcOffset()-this.utcOffset())*n,B=this-I,oe=function(){return S.m(M,I)};switch(O){case C:R=oe()/12;break;case g:R=oe();break;case p:R=oe()/3;break;case f:R=(B-H)/6048e5;break;case u:R=(B-H)/864e5;break;case c:R=B/o;break;case i:R=B/n;break;case a:R=B/r;break;default:R=B}return x?R:S.a(R)},b.daysInMonth=function(){return this.endOf(g).$D},b.$locale=function(){return Q[this.$L]},b.locale=function(_,j){if(!_)return this.$L;var x=this.clone(),R=E(_,j,!0);return R&&(x.$L=R),x},b.clone=function(){return S.w(this.$d,this)},b.toDate=function(){return new Date(this.valueOf())},b.toJSON=function(){return this.isValid()?this.toISOString():null},b.toISOString=function(){return this.$d.toISOString()},b.toString=function(){return this.$d.toUTCString()},T}(),W=k.prototype;return D.prototype=W,[["$ms",s],["$s",a],["$m",i],["$H",c],["$W",u],["$M",g],["$y",C],["$D",h]].forEach(function(T){W[T[1]]=function(b){return this.$g(b,T[0],T[1])}}),D.extend=function(T,b){return T.$i||(T(b,k,D),T.$i=!0),D},D.locale=E,D.isDayjs=y,D.unix=function(T){return D(1e3*T)},D.en=Q[G],D.Ls=Q,D.p={},D})})(kr);var ka=kr.exports;const tt=ln(ka);function La(e,t={}){const r=/^\[(.+)\]$/;if(r.test(e)){const n=e.match(r);if(n&&n[1]){const o=n[1].split(",");if(!o.length)return;const s=[];return o.forEach((a,i)=>{$r(s,i,t[a.trim()])}),s.filter(Boolean).length?s:void 0}}}function Na(e,t={}){const r=/^\{(.+)\}$/;if(r.test(e)){const n=e.match(r);if(n&&n[1]){const o=n[1].split(",");if(!o.length)return;const s={};return o.forEach(a=>{$r(s,a.trim(),t[a.trim()])}),Object.values(s).filter(Boolean).length?s:void 0}}}function Wa(e,t){const r=t.fieldMapToTime;if(!r||!Array.isArray(r))return e;for(const[n,[o,s],a="YYYY-MM-DD"]of r){if(!n||!o||!s)continue;if(!e[n]){Reflect.deleteProperty(e,n);continue}const[i,c]=e[n],[u,f]=Array.isArray(a)?a:[a,a];e[o]=tt(i).format(u),e[s]=tt(c).format(f),Reflect.deleteProperty(e,n)}return e}const Ha=(e,t,r)=>{const n=e.filter(a=>a.name);return{handleFormatRenderValues:a=>{const i={},c=[];return n.forEach(u=>{const f=Reflect.has(a,u.name),g=La(u.name,a)||Na(u.name,a);if(f||g){const p=g||a[u.name];if($t(u))if(Pa.includes(u.component)){if(ce(p)){const C=[];for(const h of p)C.push(h?tt(h):null);i[u.name]=C}else i[u.name]=p?tt(p):null;c.push(u.name)}else i[u.name]=p,c.push(u.name);jt(u)&&(i[u.name]=p,c.push(u.name))}}),{renderValues:i,validKeys:c}},handleFormatReturnValues:a=>{var c,u,f,g,p;if(!fe(a))return{};const i={};for(const C of Object.entries(a)){let[,h]=C;const[w]=C;if(!w||ce(h)&&h.length===0||se(h))continue;const{transformDateFunc:$}=t,z=(f=(u=(c=r.current)==null?void 0:c.get(w))==null?void 0:u.current)==null?void 0:f.componentProps,A=z==null?void 0:z.valueFormat;if(fe(h)){const V=h;V.format&&(h=$==null?void 0:$(V,A))}ce(h)&&((g=h[0])!=null&&g.format)&&((p=h[1])!=null&&p.format)&&(h=h.map(V=>$==null?void 0:$(V,A))),Pr(h)&&(h===""?h=void 0:h=h.trim()),i[w]=h}return Wa(i,t)}}},Ba=(e,t,r)=>({getFieldsValue:(...c)=>r(e.getFieldsValue(...c)),setFieldsValue:c=>{const{renderValues:u,validKeys:f}=t(c);e.setFieldsValue(u),e.validateFields(f)},resetFields:async()=>e.resetFields(),validator:async c=>e.validateFields(c).then(u=>r(u)),scrollToField:async(c,u)=>e.scrollToField(c,u)}),Ua=e=>{const{extendFormProps:t}=Lr();return{formProps:{...$e($e({collapseNum:5,colon:!1,items:[],labelWrap:!0,transformDateFunc:(o,s)=>{var a;return((a=o==null?void 0:o.format)==null?void 0:a.call(o,s||"YYYY-MM-DD HH:mm:ss"))??o},fieldMapToTime:[]},t),e)}}},rt=e=>{const{immediate:t=!0,params:r,api:n,apiCallback:o,isUseWatch:s}=e,a=d.useRef(!0),i=d.useRef(r),c=()=>{n&&se(n)&&(r?n(r).then(o):n().then(o),i.current=r)};return d.useEffect(()=>{a.current&&(t&&c(),a.current=!1),!a.current&&s&&(Ze(r,i.current)||t&&c())},[r]),{getApiData:c}},Va=(e,t)=>{const{collapsible:r,collapseNum:n}=e,o=d.useRef();return{collapsible:r,collapseNum:n,collapseRef:o,onClickCollapseToTrue:()=>{var i;(i=t.current)==null||i.forEach(c=>{if(c.current){const{itemIndex:u}=c.current;u>=n&&r&&c.current.setItemCollapse(!0)}})},onClickCollapseToFalse:()=>{var i;(i=t.current)==null||i.forEach(c=>{if(c.current){const{itemCollapse:u}=c.current;u&&c.current.setItemCollapse(!1)}})}}},Lr=()=>{const{extendProps:e,extendComp:t}=He(),r=n=>{const o=t==null?void 0:t.form;o&&Object.keys(o).forEach(s=>{n.set(s,o[s])})};return{extendFormProps:e==null?void 0:e.form,setExtendFormComp:r}},Ya=e=>{console.log("render ApiSelect");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:s}=e,a=o==="true",[i,c]=d.useState([]),{getApiData:u}=rt({api:t,immediate:n,params:r,apiCallback:c,isUseWatch:a}),f=p=>{p&&!n&&u(),s&&s(p)},g=()=>{const{api:p,params:C,immediate:h,isusewatch:w,...$}=e;return $};return m.jsx(F.Select,{...g(),options:i,onDropdownVisibleChange:f})},qa=e=>{console.log("render ApiTreeSelect");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:s}=e,a=o==="true",[i,c]=d.useState([]),{getApiData:u}=rt({api:t,immediate:n,params:r,apiCallback:c,isUseWatch:a}),f=p=>{p&&!n&&u(),s&&s(p)},g=()=>{const{api:p,params:C,immediate:h,isusewatch:w,...$}=e;return $};return m.jsx(F.TreeSelect,{...g(),treeData:i,onDropdownVisibleChange:f})},Ga=e=>{console.log("render ApiTransfer");const{api:t,params:r,isusewatch:n}=e,o=n==="true",[s,a]=d.useState([]);rt({api:t,params:r,apiCallback:a,isUseWatch:o});const i=()=>{const{api:c,params:u,isusewatch:f,...g}=e;return g};return m.jsx(F.Transfer,{...i(),dataSource:s})},Xa=e=>{console.log("render ApiAutoComplete");const{api:t,params:r,immediate:n=!0,isusewatch:o,onDropdownVisibleChange:s}=e,a=o==="true",[i,c]=d.useState([]),{getApiData:u}=rt({api:t,immediate:n,params:r,apiCallback:c,isUseWatch:a}),f=p=>{p&&!n&&u(),s&&s(p)},g=()=>{const{api:p,params:C,immediate:h,isusewatch:w,...$}=e;return $};return m.jsx(F.AutoComplete,{...g(),options:i,onDropdownVisibleChange:f})},Te={String:"String","String[]":"String[]","File[]":"File[]",FileList:"FileList"},Ka=e=>{console.log("render AutoUpload"),console.log(lt());const t="",{api:r,maxCount:n=1,maxSize:o=2,listType:s="picture-card",openCrop:a=!1,data:i,returnType:c=Te.String,value:u=t,onChange:f}=e,g=d.useRef(!0),p=d.useRef(0),C=d.useRef([]),[h,w]=d.useState([]),$=y=>{C.current=y,w([...y])},z=()=>{const{api:y,maxCount:E,maxSize:D,openCrop:S,beforeUpload:k,fileList:W,returnType:T,...b}=e;return b},A=y=>{const E=y.size/1024/1024<o;E||F.message.error(`文件大小超过:${o}M, 请重试`);const D=C.current.length+p.current<n;return D||F.message.error(`文件数量不能超过${n}个`),E&&D&&p.current++,E&&D&&V(y),F.Upload.LIST_IGNORE},V=y=>{a?(F.message.error("暂时不支持裁剪功能,后续兼容。。。。"),J({file:y})):J({file:y})},J=y=>{r?r({file:y.file,...i}).then(E=>{$([...C.current,...E])}).finally(()=>{p.current--}):(Object.assign(y.file,{status:"done",url:URL.createObjectURL(new Blob([y.file],{type:$a(y.file.type)}))}),$([...C.current,y.file]),p.current--)},G=y=>{const{file:E,fileList:D}=y,{status:S}=E;switch(S){case"removed":{$([...D]);break}}},Q=y=>{const E=S=>{const k=S.split("/"),W=k[k.length-1],[T]=W.split("?");return T};return{uid:(S=>{const k=C.current.find(W=>W.url===S);return k?k.uid:lt()})(y),name:E(y),url:y,status:"done"}},N=()=>{switch(c){case Te.String:return h.map(y=>y.url).join(",");case Te["String[]"]:return h.map(y=>y.url);case Te["File[]"]:return[...h];case Te.FileList:return[...h]}};return d.useEffect(()=>{const y=N();if(Ze(y,u))return;let E=[];switch(c){case Te.String:{E=(u||"").split(",").filter(D=>D).map(D=>Q(D));break}case Te["String[]"]:{E=(u||[]).map(D=>Q(D));break}case Te["File[]"]:{E=(u||[]).map(D=>D);break}case Te.FileList:{E=(u||[]).map(D=>D);break}}$(E)},[u]),d.useEffect(()=>{if(g.current){g.current=!1;return}const y=N();f==null||f(y)},[h]),m.jsx(F.Upload,{listType:s,...z(),fileList:h,beforeUpload:A,onChange:G,children:"上传"})},K=new Map;K.set("Input",F.Input),K.set("ApiSelect",Ya),K.set("Select",F.Select),K.set("InputNumber",F.InputNumber),K.set("ApiTreeSelect",qa),K.set("TreeSelect",F.TreeSelect),K.set("ApiTransfer",Ga),K.set("Transfer",F.Transfer),K.set("Switch",F.Switch),K.set("Button",F.Button),K.set("Radio",F.Radio),K.set("RadioGroup",F.Radio.Group),K.set("Checkbox",F.Checkbox),K.set("CheckboxGroup",F.Checkbox.Group),K.set("Cascader",F.Cascader),K.set("TimePicker",F.TimePicker),K.set("DatePicker",F.DatePicker),K.set("MonthPicker",F.DatePicker.MonthPicker),K.set("WeekPicker",F.DatePicker.WeekPicker),K.set("RangePicker",F.DatePicker.RangePicker),K.set("InputPassword",F.Input.Password),K.set("InputTextArea",F.Input.TextArea),K.set("ApiAutoComplete",Xa),K.set("AutoComplete",F.AutoComplete),K.set("Upload",F.Upload),K.set("AutoUpload",Ka);const Nr={"form-item-force":"_form-item-force_1hsf3_1","form-item-hidden":"_form-item-hidden_1hsf3_9"},Ja=d.forwardRef(({itemIndex:e,itemProps:t,methods:r,formProps:n,collapseRef:o},s)=>{console.log("render FormItem",t.name);const{rewritingModel:a,isusewatch:i}=Ia(n,t),{isIfShow:c,isShow:u}=ja(t,a,o),{colProps:f}=Ma(t,n),{componentProps:g}=Aa(t,a),{rules:p}=Fa({item:t,model:a,isShow:u,componentProps:g}),{disabled:C}=Oa(n,t,a),{itemCollapse:h,setItemCollapse:w}=Ea(n,e),{name:$,label:z,wrapperCol:A,labelCol:V,valuePropName:J,initialValue:G,forceRow:Q}=t;d.useImperativeHandle(s,()=>({itemIndex:e,componentProps:g,itemCollapse:h,setItemCollapse:w}));const N=()=>({name:$,label:z,rules:p,wrapperCol:A,labelCol:V,valuePropName:J,initialValue:G}),{setExtendFormComp:y}=Lr();y(K);const E=$t(t),D=jt(t),S=()=>{if(E){const k=K.get(t.component);return m.jsx(k,{...g,disabled:C,isusewatch:i.toString()})}return D?t.render({model:a,name:$,disabled:C,methods:r,componentProps:g}):null};return m.jsxs(d.Fragment,{children:[Q?m.jsx("div",{className:Nr["form-item-force"]}):null,c?m.jsx(F.Col,{...f,className:u&&!h?void 0:Nr["form-item-hidden"],children:m.jsx(F.Form.Item,{...N(),children:S()})}):null]})}),Za={"collapse-wrapper":"_collapse-wrapper_ylm01_1"},Qa=d.forwardRef(({collapsible:e,onClickExpand:t,onClickFold:r},n)=>{const[o,s]=d.useState(e),a=d.useMemo(()=>o,[o]),i=()=>{r(),s(!0)},c=()=>{t(),s(!1)};return d.useImperativeHandle(n,()=>({handleCollapseChangeFalse:c})),m.jsx("div",{className:Za["collapse-wrapper"],children:a?m.jsx(F.Button,{onClick:c,type:"link",icon:m.jsx(ve.DownOutlined,{}),children:"展开"}):m.jsx(F.Button,{onClick:i,type:"link",icon:m.jsx(ve.UpOutlined,{}),children:"折叠"})})}),el={"group-wrapper":"_group-wrapper_g8zqi_1"},tl=({formProps:e})=>{const{renderActions:t}=e;return m.jsx("div",{className:el["group-wrapper"],children:t==null?void 0:t()})},rl={"xph-form-action":"_xph-form-action_8ws73_1"},nl=(e,t)=>{console.log("render Form");const[r]=F.Form.useForm(),{formProps:n}=Ua(e),{formItems:o}=Ra({formProps:n}),s=d.useRef(new Map),{collapsible:a,collapseNum:i,collapseRef:c,onClickCollapseToFalse:u,onClickCollapseToTrue:f}=Va(n,s),{handleFormatRenderValues:g,handleFormatReturnValues:p}=Ha(o,n,s),{setFieldsValue:C,getFieldsValue:h,resetFields:w,validator:$,scrollToField:z}=Ba(r,g,p),A=()=>{const{layout:J,wrapperCol:G,labelCol:Q,colon:N,disabled:y,labelWrap:E,labelAlign:D,scrollToFirstError:S,size:k}=n;return{layout:J,wrapperCol:G,labelCol:Q,colon:N,disabled:y,labelWrap:E,labelAlign:D,scrollToFirstError:S,size:k}},V={setFieldsValue:C,getFieldsValue:h,resetFields:w,validator:$,scrollToField:z};return d.useImperativeHandle(t,()=>({...V})),d.useEffect(()=>(console.log("Form is mounted======================="),n.register&&n.register(V),()=>{console.log("Form is unmounted========================="),s.current.clear()}),[]),m.jsxs(F.Form,{form:r,...A(),children:[m.jsx(F.Row,{children:o.map((J,G)=>(s.current.has(J.name)||s.current.set(J.name,d.createRef()),m.jsx(Ja,{ref:s.current.get(J.name),itemIndex:G,itemProps:J,formProps:n,methods:V,collapseRef:c},G)))}),m.jsxs("div",{className:rl["xph-form-action"],children:[m.jsx(tl,{formProps:n}),a?m.jsx(Qa,{ref:c,collapsible:o.length>i,onClickExpand:u,onClickFold:f}):null]})]})},Et=d.forwardRef(nl),ol=d.memo(Et),sl=d.forwardRef((e,t)=>{const{renderActions:r,showSearch:n,tableRef:o}=e,[s,a]=d.useState(!1),i=d.useRef(null),c=()=>{const{reloadData:p}=o.current;p()},u=()=>{const{resetData:p}=o.current;p()},f=d.useCallback(()=>m.jsxs("div",{style:{width:"100%",display:"flex"},children:[m.jsx("div",{style:{flex:1,width:0},children:r==null?void 0:r()}),n&&m.jsxs("div",{style:{display:"flex",gap:"8px"},children:[m.jsx(F.Button,{type:"primary",icon:m.jsx(ve.SearchOutlined,{}),onClick:c,children:"搜索"}),m.jsx(F.Button,{icon:m.jsx(ve.ReloadOutlined,{}),onClick:u,children:"重置"})]})]}),[n,r]),g=()=>{const{renderActions:p,...C}=e;return{...C,renderActions:f}};return d.useImperativeHandle(t,()=>({setFormLoading:a,...i.current})),m.jsx(F.Spin,{spinning:s,children:m.jsx(ol,{ref:i,...g()})})}),il=d.memo(Et),al=(e,t)=>{const r=d.useRef(null),n=d.useRef(null),{formProps:o}=e,s=()=>{const{formProps:a,...i}=e;return i};return d.useImperativeHandle(t,()=>({open:(...a)=>{var i;return(i=r.current)==null?void 0:i.open(...a)},close:(...a)=>{var i;return(i=r.current)==null?void 0:i.close(...a)},getFieldsValue:(...a)=>n.current.getFieldsValue(...a),setFieldsValue:(...a)=>n.current.setFieldsValue(...a),resetFields:(...a)=>n.current.resetFields(...a),validator:(...a)=>n.current.validator(...a),scrollToField:(...a)=>n.current.scrollToField(...a)})),m.jsx(Ir,{...s(),ref:r,children:m.jsx(il,{...o,ref:n})})},Wr=d.forwardRef(al);function ll({searchForm:e}){return{searchFormRef:d.useRef(null),searchFormProps:e}}function cl(e){return"cellFunc"in e}function ul(e){return"children"in e}const{useToken:fl}=F.theme,dl=(e,t,r)=>{const{curComponentProps:n,cellFuncProps:o}=t,{url:s,onClick:a}=n,{token:i}=fl(),c={color:i.colorLink,cursor:"pointer"},u=()=>{if(r.mainClick&&r.mainClick(),a){a();return}if(s){window.open(s,"_blank");return}};return m.jsx(e,{...r,mainClick:u,mainStyle:Object.assign(c,(r==null?void 0:r.mainStyle)||{})})},pl={"cellfunc-actions":"_cellfunc-actions_14drt_1"},Hr={link:{Comp:dl},actions:{Comp:(e,t,r)=>{const{curComponentProps:n,cellFuncProps:o}=t;return m.jsx("div",{className:pl["cellfunc-actions"],children:m.jsx(et,{...n})})}}},hl=(e,t)=>{const{renderPrams:{text:r}}=e;return m.jsx("span",{onClick:t==null?void 0:t.mainClick,style:t==null?void 0:t.mainStyle,children:r})},gl=e=>{const{setExtendTableCellComp:t}=Ur();t(Hr);const{dslConfig:r}=e;let n=hl.bind(null,e),o=0;for(;o<r.length;){const s=o++,a=Hr[r[s].component];a&&(n=a.Comp.bind(null,n,{curComponentProps:r[s].componentProps||{},cellFuncProps:e}))}return m.jsx(n,{})};function Br(e){return e.map(t=>{let r={...t};if(cl(r)){const{cellFunc:n,...o}=r;r={...o,render:(...s)=>{const a=se(n),[i,c,u]=s,f={text:i,record:c,index:u},g=a?n(f):n;return m.jsx(gl,{dslConfig:g,renderPrams:f})}}}return ul(r)&&r.children&&Array.isArray(r.children)&&(r.children=Br(r.children)),r})}function ml(e){const{columns:t}=e.table,r=Br(t);return console.log(r),{columns:r}}const vl=e=>{const{extendTableProps:t}=Ur();return{tableProps:{...$e($e({table:{columns:[],fullHeight:!1,autoRequest:!0,pagination:{pageSize:20,total:0,showTotal:o=>`共:${o} 条`,current:1,pageSizeOptions:[10,20,50,100],showSizeChanger:!0,showQuickJumper:!0}},crudFormDialog:void 0,searchForm:{showSearch:!0,items:[]}},t),e)}}};function bl(e){const{pagination:t,autoPagination:r}=e.table,[n,o]=d.useState(t),s=d.useRef(t),a=d.useMemo(()=>n&&(r===!0||r===void 0)||!1,[n]);return{pagination:{model:n,update:c=>{if(!s.current)return;const u={...s.current,...c};o(u),s.current=u},show:a},lastPaginationState:s}}function yl(e,t){const{api:r,formatDataSource:n,autoPagination:o,onChange:s}=e.table,a=e.onPaginationChange,{pagination:i,lastPaginationState:c}=bl(e),[u,f]=d.useState({loading:!1,dataSource:[],selection:[],backupsDataSource:[]}),g=d.useRef({loading:!1,dataSource:[],selection:[],backupsDataSource:[]}),p={model:u,update:N=>{var E;const y={...g.current,...N};f(y),g.current=y,(E=t.current)==null||E.setFormLoading(y.loading)}},C=async()=>{d.useEffect(()=>{const{autoRequest:N}=e.table,{validator:y}=t.current;N&&y().then(E=>{z({searchFormParams:E})})},[])},h=async({searchFormParams:N,paginationParams:y})=>{const E={...N,current:c.current.current,pageSize:c.current.pageSize,...y};return r(E).then(D=>{const{data:S,current:k,total:W}=D;p.update({dataSource:n?n(S):S}),i.update({total:W,current:k})}).finally(()=>{p.update({loading:!1})})},w=async({searchFormParams:N,paginationParams:y})=>{const E={...N};return r(E).then(D=>{const S=n?n(D):D;p.update({selection:[],dataSource:S}),i.update({current:1,total:D.length})}).finally(()=>{p.update({loading:!1})})},$=async({searchFormParams:N,paginationParams:y})=>{var D;const E={...N};if(y){const{current:S,pageSize:k}=y;i.update({current:S,pageSize:k});const W=(S-1)*k,T=W+k,b=(D=g.current.backupsDataSource)==null?void 0:D.slice(W,T);return p.update({loading:!1,selection:[],dataSource:b})}else return r(E).then(S=>{let k=n?n(S):S;const W=[...k],T=0,b=T+c.current.pageSize;k=k.slice(T,b),p.update({selection:[],dataSource:k,backupsDataSource:W}),i.update({current:1,total:S.length})}).finally(()=>{p.update({loading:!1})})},z=async({searchFormParams:N,paginationParams:y})=>{if(p.update({loading:!0,selection:[]}),r)switch(!!c.current){case!0:return o===!0?$({searchFormParams:N,paginationParams:y}):o===!1?w({searchFormParams:N,paginationParams:y}):h({searchFormParams:N,paginationParams:y});case!1:return w({searchFormParams:N,paginationParams:y})}return p.update({loading:!1})};return{table:p,pagination:i,firstGetTableData:C,onPaginationChange:(N,y)=>{const{validator:E}=t.current;E().then(D=>{z({searchFormParams:D,paginationParams:{current:N,pageSize:y}})}),a&&a(N,y)},onAllChange:async(...N)=>{const[y,E,D,S]=N,k=[];for(let W=0;W<k.length&&!k[W]();W++);s&&s(E,D,S)},resetData:async()=>{const{resetFields:N,validator:y}=t.current;return N().then(async()=>{const E=await y();return z({searchFormParams:E})})},resetAllData:async()=>{const{resetFields:N,validator:y}=t.current;return N().then(async()=>{const E={};if(c.current){const{pageSize:D}=c.current;o===void 0&&(E.paginationParams={current:1,pageSize:D})}return E.searchFormParams=await y(),z(E)})},reloadData:async()=>{const{validator:N}=t.current;return N().then(y=>z({searchFormParams:y}))}}}const _l=(e,t)=>{const{onRowSelectionChange:r}=e,{rowSelection:n}=e.table,o=()=>{if(Pr(n))return{type:n,onChange:(s,a,i)=>{t.update({selection:a}),r&&r(s,a)}};if(fe(n)){const{onChange:s}=n;return{...n,onChange:(a,i,c)=>{t.update({selection:i}),s&&s(a,i,c),r&&r(a,i)}}}return n};return{rowSelection:o(),getNewRowSelection:o}};function wl(e,t){const{scroll:r,virtual:n}=e.table,o=d.useRef(null),[s,a]=d.useState(0),[i,c]=d.useState(0);d.useEffect(()=>{const f=()=>{o.current&&(a(o.current.offsetWidth),c(o.current.offsetHeight))};f();const g=new ResizeObserver(f);return o.current&&g.observe(o.current),()=>{g&&o.current&&g.unobserve(o.current)}},[]);const u=d.useMemo(()=>t?n?{x:s,y:i-70,...r}:{x:"max-content",y:i-70,...r}:{x:"max-content",...r},[i]);return{divRef:o,scroll:u}}function Cl(e,t){const{toolbar:r}=e.table;return{getTopToolbarBindProps:()=>{if(se(r)){const o=r({loading:t.model.loading,selection:t.model.selection});return{...o,disabled:t.model.loading||o.disabled}}return{...r,disabled:t.model.loading||(r==null?void 0:r.disabled)}}}}const Ur=()=>{const{extendProps:e,extendComp:t}=He(),r=n=>{const o=t==null?void 0:t.tableCellFunc;o&&Object.keys(o).forEach(s=>{const a=o[s];n[s]={Comp:a}})};return{extendTableProps:e==null?void 0:e.table,setExtendTableCellComp:r}},xl=({crudFormDialog:e})=>({crudFormDialogRef:d.useRef(null),crudFormProps:e}),nt={"main-container":"_main-container_1yx5k_1",container__toolbar:"_container__toolbar_1yx5k_13",container__table:"_container__table_1yx5k_27",container__pagination:"_container__pagination_1yx5k_35"},Tl=d.forwardRef(({tableProps:e,searchFormRef:t,fullHeight:r},n)=>{const{columns:o}=ml(e),s=d.useRef(null),{table:a,pagination:i,firstGetTableData:c,onPaginationChange:u,onAllChange:f,resetData:g,resetAllData:p,reloadData:C}=yl(e,t),{rowSelection:h}=_l(e,a),{divRef:w,scroll:$}=wl(e,r),{getTopToolbarBindProps:z}=Cl(e,a),A=()=>{const{autoRequest:V,api:J,formatDataSource:G,autoPagination:Q,columns:N,scroll:y,pagination:E,rowSelection:D,onChange:S,...k}=e.table;return k};return c(),d.useImperativeHandle(n,()=>({resetData:g,resetAllData:p,reloadData:C,...s.current})),console.log("render Table"),m.jsxs("div",{className:r?nt["main-container"]:void 0,children:[m.jsx("div",{className:nt.container__toolbar,children:m.jsx(et,{...z()})}),m.jsx("div",{ref:w,className:r?nt.container__table:void 0,children:m.jsx(F.Table,{ref:s,...A(),loading:a.model.loading,columns:o,dataSource:a.model.dataSource,pagination:!1,rowSelection:h,scroll:$,onChange:f})}),i.show?m.jsx("div",{className:nt.container__pagination,children:m.jsx(F.Pagination,{disabled:a.model.loading,...i.model,onChange:u})}):null]})}),Vr={"xph-table-full-wrapper":"_xph-table-full-wrapper_mdv0g_1","full-wrapper__table":"_full-wrapper__table_mdv0g_13"},Sl=(e,t)=>{const{tableProps:r}=vl(e),n=d.useRef(null),{searchFormRef:o,searchFormProps:s}=ll(r),{crudFormDialogRef:a,crudFormProps:i}=xl(r);let{fullHeight:c}=r.table;const{virtual:u}=r.table;return u&&(c=!0),d.useImperativeHandle(t,()=>({...n.current,...a.current})),m.jsxs("div",{className:c?Vr["xph-table-full-wrapper"]:void 0,children:[m.jsx("div",{children:m.jsx(sl,{ref:o,tableRef:n,...s})}),m.jsx("div",{className:c?Vr["full-wrapper__table"]:void 0,children:m.jsx(Tl,{ref:n,searchFormRef:o,fullHeight:c,tableProps:r})}),i?m.jsx(Wr,{ref:a,...i}):null]})},Pl=d.forwardRef(Sl);q.XphActions=et,q.XphCrudFormDialog=Wr,q.XphDialog=Ir,q.XphExtendCompPropsProvider=na,q.XphForm=Et,q.XphPortal=zr,q.XphTable=Pl,q.buildUUID=lt,q.useXphExtendCompProps=He,q.useXphForm=za,Object.defineProperty(q,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xph-crud",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/types/index.d.ts",