const e=require("./typeUtil.js"),t=require("../../vc-util/get.js"),n=require("../../vc-util/set.js");function r(t){return e.toArray(t)}function i(e,n){return t.default(e,n)}function a(e,t,r,i=!1){return n.default(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)}exports.cloneByNamePathList=u,exports.containsNamePath=o,exports.getNamePath=r,exports.getValue=i,exports.matchNamePath=d,exports.setValue=a,exports.setValues=l;