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