import{k as r,m as e,U as t,j as n,h as o,n as a,o as c,i as u,S as i,p as s}from"./p-DNIqLXTL.js";import{b as f,a as j}from"./p-v6b303K5.js";import{k as b,b as v,g as p,a as m}from"./p-Bj622DVt.js";import{i as y,r as d,S as w}from"./p-BJQylLSL.js";import{i as l}from"./p-B8VKuhvH.js";import{i as A}from"./p-oiMYqRQ0.js";var x=Object.create,S=function(){function r(){}return function(e){if(!y(e))return{};if(x)return x(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();function g(r,e){var t=-1,n=r.length;for(e||(e=Array(n));++t<n;)e[t]=r[t];return e}function B(r,e){for(var t=-1,n=null==r?0:r.length;++t<n&&!1!==e(r[t],t,r););return r}function U(r,e,t){var n=!t;t||(t={});for(var o=-1,a=e.length;++o<a;){var c=e[o],u=void 0;void 0===u&&(u=r[c]),n?f(t,c,u):j(t,c,u)}return t}var h="object"==typeof exports&&exports&&!exports.nodeType&&exports,D=h&&"object"==typeof module&&module&&!module.nodeType&&module,F=D&&D.exports===h?d.Buffer:void 0,I=F?F.allocUnsafe:void 0;function L(r,e){if(e)return r.slice();var t=r.length,n=I?I(t):new r.constructor(t);return r.copy(n),n}var O=Object.prototype.hasOwnProperty;function M(r){var e=new r.constructor(r.byteLength);return new t(e).set(new t(r)),e}var V=/\w*$/,k=w?w.prototype:void 0,q=k?k.valueOf:void 0;function K(r,e){var t=e?M(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}function N(r){return"function"!=typeof r.constructor||n(r)?{}:S(p(r))}var Q=c&&c.isMap,R=Q?a(Q):function(r){return A(r)&&"[object Map]"==o(r)},C=c&&c.isSet,E=C?a(C):function(r){return A(r)&&"[object Set]"==o(r)},G="[object Arguments]",H="[object Function]",J="[object Object]",T={};function X(t,n,a,c,f,p){var d,w=1&n,A=2&n,x=4&n;if(a&&(d=f?a(t,c,f,p):a(t)),void 0!==d)return d;if(!y(t))return t;var S=l(t);if(S){if(d=function(r){var e=r.length,t=new r.constructor(e);return e&&"string"==typeof r[0]&&O.call(r,"index")&&(t.index=r.index,t.input=r.input),t}(t),!w)return g(t,d)}else{var h=o(t),D=h==H||"[object GeneratorFunction]"==h;if(u(t))return L(t,w);if(h==J||h==G||D&&!f){if(d=A||D?{}:N(t),!w)return A?function(r,e){return U(r,v(r),e)}(t,function(r,e){return r&&U(e,b(e),r)}(d,t)):function(r,t){return U(r,e(r),t)}(t,function(e,t){return e&&U(t,r(t),e)}(d,t))}else{if(!T[h])return f?t:{};d=function(r,e,t){var n,o,a=r.constructor;switch(e){case"[object ArrayBuffer]":return M(r);case"[object Boolean]":case"[object Date]":return new a(+r);case"[object DataView]":return function(r,e){var t=e?M(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}(r,t);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return K(r,t);case"[object Map]":case"[object Set]":return new a;case"[object Number]":case"[object String]":return new a(r);case"[object RegExp]":return(o=new(n=r).constructor(n.source,V.exec(n))).lastIndex=n.lastIndex,o;case"[object Symbol]":return q?Object(q.call(r)):{}}}(t,h,w)}}p||(p=new i);var F=p.get(t);if(F)return F;p.set(t,d),E(t)?t.forEach((function(r){d.add(X(r,n,a,r,t,p))})):R(t)&&t.forEach((function(r,e){d.set(e,X(r,n,a,e,t,p))}));var I=S?void 0:(x?A?m:s:A?b:r)(t);return B(I||t,(function(r,e){I&&(r=t[e=r]),j(d,e,X(r,n,a,e,t,p))})),d}function Y(r){return X(r,5)}T[G]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[J]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[H]=T["[object WeakMap]"]=!1;export{g as a,L as b,U as c,K as d,B as e,X as f,S as g,Y as h,N as i}