import{a as u,z as c}from"./isArrayLikeObject.22a096cb.js";import{i as f,t as p}from"./toString.0891eb3e.js";var l=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,m=/^\w*$/;function y(n,r){if(u(n))return!1;var t=typeof n;return t=="number"||t=="symbol"||t=="boolean"||n==null||f(n)?!0:m.test(n)||!l.test(n)||r!=null&&n in Object(r)}var h="Expected a function";function o(n,r){if(typeof n!="function"||r!=null&&typeof r!="function")throw new TypeError(h);var t=function(){var e=arguments,i=r?r.apply(this,e):e[0],a=t.cache;if(a.has(i))return a.get(i);var s=n.apply(this,e);return t.cache=a.set(i,s)||a,s};return t.cache=new(o.Cache||c),t}o.Cache=c;var g=500;function _(n){var r=o(n,function(e){return t.size===g&&t.clear(),e}),t=r.cache;return r}var d=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,E=/\\(\\)?/g,P=_(function(n){var r=[];return n.charCodeAt(0)===46&&r.push(""),n.replace(d,function(t,e,i,a){r.push(i?a.replace(E,"$1"):e||t)}),r});const C=P;function I(n,r){return u(n)?n:y(n,r)?[n]:C(p(n))}var x=1/0;function A(n){if(typeof n=="string"||f(n))return n;var r=n+"";return r=="0"&&1/n==-x?"-0":r}function T(n,r){r=I(r,n);for(var t=0,e=r.length;n!=null&&t<e;)n=n[A(r[t++])];return t&&t==e?n:void 0}function M(n,r,t){var e=n==null?void 0:T(n,r);return e===void 0?t:e}export{T as b,I as c,M as g,y as i,o as m,A as t};
