import{P as y,Q as p,S as $,G as F,R as b,T as h,j as D,V as N,b as R,F as v,a as K,W}from"./helpers.2a6f0df7.js";import{a as Q}from"./_arrayEach.6af5abac.js";import{k as x,d as C,s as V,a as Y,e as q,g as T,c as H}from"./_getTag.325cf680.js";import{ah as J,ai as E,aj as X,ak as Z,al as z}from"./index.ed1fc0db.js";function k(r,t){return r&&y(t,x(t),r)}function rr(r,t){return r&&y(t,p(t),r)}function tr(r,t){return y(r,C(r),t)}var er=Object.getOwnPropertySymbols,L=er?function(r){for(var t=[];r;)Y(t,C(r)),r=J(r);return t}:V;function nr(r,t){return y(r,L(r),t)}function ar(r){return q(r,p,L)}var or=Object.prototype,sr=or.hasOwnProperty;function cr(r){var t=r.length,a=new r.constructor(t);return t&&typeof r[0]=="string"&&sr.call(r,"index")&&(a.index=r.index,a.input=r.input),a}function ir(r,t){var a=t?E(r.buffer):r.buffer;return new r.constructor(a,r.byteOffset,r.byteLength)}var fr=/\w*$/;function ur(r){var t=new r.constructor(r.source,fr.exec(r));return t.lastIndex=r.lastIndex,t}var O=$?$.prototype:void 0,_=O?O.valueOf:void 0;function gr(r){return _?Object(_.call(r)):{}}var br="[object Boolean]",yr="[object Date]",lr="[object Map]",pr="[object Number]",Tr="[object RegExp]",jr="[object Set]",Ar="[object String]",mr="[object Symbol]",dr="[object ArrayBuffer]",Sr="[object DataView]",$r="[object Float32Array]",Or="[object Float64Array]",_r="[object Int8Array]",Ir="[object Int16Array]",wr="[object Int32Array]",Fr="[object Uint8Array]",hr="[object Uint8ClampedArray]",xr="[object Uint16Array]",Cr="[object Uint32Array]";function Er(r,t,a){var f=r.constructor;switch(t){case dr:return E(r);case br:case yr:return new f(+r);case Sr:return ir(r,a);case $r:case Or:case _r:case Ir:case wr:case Fr:case hr:case xr:case Cr:return X(r,a);case lr:return new f;case pr:case Ar:return new f(r);case Tr:return ur(r);case jr:return new f;case mr:return gr(r)}}var Lr="[object Map]";function Br(r){return F(r)&&T(r)==Lr}var I=b&&b.isMap,Ur=I?h(I):Br,Mr="[object Set]";function Pr(r){return F(r)&&T(r)==Mr}var w=b&&b.isSet,Gr=w?h(w):Pr,Dr=1,Nr=2,Rr=4,B="[object Arguments]",vr="[object Array]",Kr="[object Boolean]",Wr="[object Date]",Qr="[object Error]",U="[object Function]",Vr="[object GeneratorFunction]",Yr="[object Map]",qr="[object Number]",M="[object Object]",Hr="[object RegExp]",Jr="[object Set]",Xr="[object String]",Zr="[object Symbol]",zr="[object WeakMap]",kr="[object ArrayBuffer]",rt="[object DataView]",tt="[object Float32Array]",et="[object Float64Array]",nt="[object Int8Array]",at="[object Int16Array]",ot="[object Int32Array]",st="[object Uint8Array]",ct="[object Uint8ClampedArray]",it="[object Uint16Array]",ft="[object Uint32Array]",e={};e[B]=e[vr]=e[kr]=e[rt]=e[Kr]=e[Wr]=e[tt]=e[et]=e[nt]=e[at]=e[ot]=e[Yr]=e[qr]=e[M]=e[Hr]=e[Jr]=e[Xr]=e[Zr]=e[st]=e[ct]=e[it]=e[ft]=!0;e[Qr]=e[U]=e[zr]=!1;function l(r,t,a,f,j,s){var n,u=t&Dr,g=t&Nr,P=t&Rr;if(n!==void 0)return n;if(!D(r))return r;var A=K(r);if(A){if(n=cr(r),!u)return N(r,n)}else{var i=T(r),m=i==U||i==Vr;if(R(r))return Z(r,u);if(i==M||i==B||m&&!j){if(n=g||m?{}:z(r),!u)return g?nr(r,rr(n,r)):tr(r,k(n,r))}else{if(!e[i])return j?r:{};n=Er(r,i,u)}}s||(s=new v);var d=s.get(r);if(d)return d;s.set(r,n),Gr(r)?r.forEach(function(o){n.add(l(o,t,a,o,r,s))}):Ur(r)&&r.forEach(function(o,c){n.set(c,l(o,t,a,c,r,s))});var G=P?g?ar:H:g?p:x,S=A?void 0:G(r);return Q(S||r,function(o,c){S&&(c=o,o=r[c]),W(n,c,l(o,t,a,c,r,s))}),n}export{l as b};
