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