import l from"../../vc-util/get.mjs";import s from"../../vc-util/set.mjs";import{toArray as a}from"./typeUtil.mjs";function V(t){return a(t)}function p(t,e){return l(t,e)}function y(t,e,r,n=!1){return s(t,e,r,n)}function g(t,e){return t&&t.some(r=>m(r,e))}function c(t){return typeof t=="object"&&t!==null&&Object.getPrototypeOf(t)===Object.prototype}function f(t,e){const r=Array.isArray(t)?[...t]:{...t};return e&&Object.keys(e).forEach(n=>{const o=r[n],u=e[n],i=c(o)&&c(u);r[n]=i?f(o,u||{}):u}),r}function w(t,...e){return e.reduce((r,n)=>f(r,n),t)}function b(t,e){let r={};return e.forEach(n=>{const o=p(t,n);r=y(r,n,o)}),r}function m(t,e){return!t||!e||t.length!==e.length?!1:t.every((r,n)=>e[n]===r)}export{b as cloneByNamePathList,g as containsNamePath,V as getNamePath,p as getValue,m as matchNamePath,y as setValue,w as setValues};
