import{M as n,S as r,g as t,k as u,b as i}from"./p-DNIqLXTL.js";import{S as o,i as f}from"./p-BJQylLSL.js";import{i as e}from"./p-B8VKuhvH.js";import{i as a}from"./p-BOEi1C7r.js";import{a as c,b as s}from"./p-D_uMnX5g.js";import{i as v}from"./p-CK4jS9_E.js";function l(n,r){for(var t=-1,u=null==n?0:n.length,i=Array(u);++t<u;)i[t]=r(n[t],t,n);return i}var p=o?o.prototype:void 0,d=p?p.toString:void 0;function m(n){if("string"==typeof n)return n;if(e(n))return l(n,m)+"";if(a(n))return d?d.call(n):"";var r=n+"";return"0"==r&&1/n==-1/0?"-0":r}var b=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,j=/^\w*$/;function y(n,r){if(e(n))return!1;var t=typeof n;return!("number"!=t&&"symbol"!=t&&"boolean"!=t&&null!=n&&!a(n))||j.test(n)||!b.test(n)||null!=r&&n in Object(r)}function g(r,t){if("function"!=typeof r||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var u=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=u.cache;if(o.has(i))return o.get(i);var f=r.apply(this,n);return u.cache=o.set(i,f)||o,f};return u.cache=new(g.Cache||n),u}g.Cache=n;var h,w,O,E=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,L=/\\(\\)?/g,S=(h=function(n){var r=[];return 46===n.charCodeAt(0)&&r.push(""),n.replace(E,(function(n,t,u,i){r.push(u?i.replace(L,"$1"):t||n)})),r},w=g(h,(function(n){return 500===O.size&&O.clear(),n})),O=w.cache,w);function B(n){return null==n?"":m(n)}function $(n,r){return e(n)?n:y(n,r)?[n]:S(B(n))}function k(n){if("string"==typeof n||a(n))return n;var r=n+"";return"0"==r&&1/n==-1/0?"-0":r}function x(n,r){for(var t=0,u=(r=$(r,n)).length;null!=n&&t<u;)n=n[k(r[t++])];return t&&t==u?n:void 0}function C(n,r,t){var u=null==n?void 0:x(n,r);return void 0===u?t:u}function D(n){return n==n&&!f(n)}function K(n,r){return function(t){return null!=t&&t[n]===r&&(void 0!==r||n in Object(t))}}function M(n,r){return null!=n&&r in Object(n)}function T(n,r,t){for(var u=-1,o=(r=$(r,n)).length,f=!1;++u<o;){var a=k(r[u]);if(!(f=null!=n&&t(n,a)))break;n=n[a]}return f||++u!=o?f:!!(o=null==n?0:n.length)&&c(o)&&s(a,o)&&(e(n)||i(n))}function X(n,r){return null!=n&&T(n,r,M)}function _(n){return"function"==typeof n?n:null==n?v:"object"==typeof n?e(n)?(a=n[1],y(f=n[0])&&D(a)?K(k(f),a):function(n){var r=C(n,f);return void 0===r&&r===a?X(n,f):t(a,r,3)}):(o=function(n){for(var r=u(n),t=r.length;t--;){var i=r[t],o=n[i];r[t]=[i,o,D(o)]}return r}(i=n),1==o.length&&o[0][2]?K(o[0][0],o[0][1]):function(n){return n===i||function(n,u,i){var o=i.length,f=o;if(null==n)return!f;for(n=Object(n);o--;){var e=i[o];if(e[2]?e[1]!==n[e[0]]:!(e[0]in n))return!1}for(;++o<f;){var a=(e=i[o])[0],c=n[a],s=e[1];if(e[2]){if(void 0===c&&!(a in n))return!1}else{var v=new r;if(!t(s,c,3,void 0,v))return!1}}return!0}(n,0,o)}):function(n){return y(n)?(r=k(n),function(n){return null==n?void 0:n[r]}):function(n){return function(r){return x(r,n)}}(n);var r}(n);var i,o,f,a}export{l as a,x as b,_ as c,$ as d,k as e,T as f,C as g,X as h,S as s,B as t}