import{M as n,j as r,b as t,k as u,e as i}from"./p-C6SEjICu.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{i as c,a as v}from"./p-BgPHaiMH.js";import{i as l}from"./p-CK4jS9_E.js";function s(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 j(n){if("string"==typeof n)return n;if(e(n))return s(n,j)+"";if(a(n))return d?d.call(n):"";var r=n+"";return"0"==r&&1/n==-1/0?"-0":r}var m=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,b=/^\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))||b.test(n)||!m.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,E,O=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,B=/\\(\\)?/g,C=(h=function(n){var r=[];return 46===n.charCodeAt(0)&&r.push(""),n.replace(O,(function(n,t,u,i){r.push(u?i.replace(B,"$1"):t||n)})),r},w=g(h,(function(n){return 500===E.size&&E.clear(),n})),E=w.cache,w);function S(n){return null==n?"":j(n)}function H(n,r){return e(n)?n:y(n,r)?[n]:C(S(n))}function $(n){if("string"==typeof n||a(n))return n;var r=n+"";return"0"==r&&1/n==-1/0?"-0":r}function k(n,r){for(var t=0,u=(r=H(r,n)).length;null!=n&&t<u;)n=n[$(r[t++])];return t&&t==u?n:void 0}function x(n,r,t){var u=null==n?void 0:k(n,r);return void 0===u?t:u}function K(n){return n==n&&!f(n)}function L(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 A(n,r,t){for(var u=-1,o=(r=H(r,n)).length,f=!1;++u<o;){var a=$(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)&&v(a,o)&&(e(n)||i(n))}function I(n){return"function"==typeof n?n:null==n?l:"object"==typeof n?e(n)?(a=n[1],y(f=n[0])&&K(a)?L($(f),a):function(n){var r=x(n,f);return void 0===r&&r===a?function(n,r){return null!=n&&A(n,r,M)}(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,K(o)]}return r}(i=n),1==o.length&&o[0][2]?L(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],v=e[1];if(e[2]){if(void 0===c&&!(a in n))return!1}else{var l=new r;if(!t(v,c,3,void 0,l))return!1}}return!0}(n,0,o)}):function(n){return y(n)?(r=$(n),function(n){return null==n?void 0:n[r]}):function(n){return function(r){return k(r,n)}}(n);var r}(n);var i,o,f,a}export{$ as a,I as b,H as c,k as d,s as e,x as g,A as h,S as t}