"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("lodash-unified");function a(e,l,c){if(e==null)return;let r=t.isArray(e)?[]:{};return Object.keys(e).forEach(n=>{const o=e[n],s=l?.[n],f=t.isFunction(s)?s:s?.transformer,u=t.isFunction(s)?!0:s?.flat;if(t.isFunction(f)){const i=f(o,c?{getFieldsValue:c}:void 0);u?t.isArray(i)&&t.isArray(r)?r=[...r,...i]:t.isPlainObject(i)&&t.isPlainObject(r)?r={...r,...i}:r[n]=i:r[n]=i}else if(t.isPlainObject(o)||t.isArray(o)){const i=a(o,s,c);r[n]=i}else r[n]=o}),r}exports.transformValues=a;
