import{s as A,e as L,r as _,t as N,U as $,a as m,i as E,u as G,l as U,f as g,q as I,v as b,h as R,j as V,g as q,b as K}from"./_Uint8Array-BxbSsmXd.js";function W(e,t){for(var n=-1,a=e==null?0:e.length;++n<a&&t(e[n],n,e)!==!1;);return e}function Y(e,t,n){t=="__proto__"&&A?A(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var H=Object.prototype,J=H.hasOwnProperty;function Q(e,t,n){var a=e[t];(!(J.call(e,t)&&L(a,n))||n===void 0&&!(t in e))&&Y(e,t,n)}var P=typeof exports=="object"&&exports&&!exports.nodeType&&exports,w=P&&typeof module=="object"&&module&&!module.nodeType&&module,X=w&&w.exports===P,O=X?_.Buffer:void 0;O&&O.allocUnsafe;function Z(e,t){return e.slice()}var z=N(Object.getPrototypeOf,Object),k=Object.prototype,ee=k.hasOwnProperty;function te(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&ee.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function l(e){var t=new e.constructor(e.byteLength);return new $(t).set(new $(e)),t}function re(e,t){var n=l(e.buffer);return new e.constructor(n,e.byteOffset,e.byteLength)}var ne=/\w*$/;function oe(e){var t=new e.constructor(e.source,ne.exec(e));return t.lastIndex=e.lastIndex,t}var v=m?m.prototype:void 0,h=v?v.valueOf:void 0;function ae(e){return h?Object(h.call(e)):{}}function ce(e,t){var n=l(e.buffer);return new e.constructor(n,e.byteOffset,e.length)}var ie="[object Boolean]",se="[object Date]",fe="[object Map]",ue="[object Number]",be="[object RegExp]",ge="[object Set]",le="[object String]",pe="[object Symbol]",Te="[object ArrayBuffer]",je="[object DataView]",ye="[object Float32Array]",de="[object Float64Array]",Ae="[object Int8Array]",$e="[object Int16Array]",me="[object Int32Array]",we="[object Uint8Array]",Oe="[object Uint8ClampedArray]",ve="[object Uint16Array]",he="[object Uint32Array]";function xe(e,t,n){var a=e.constructor;switch(t){case Te:return l(e);case ie:case se:return new a(+e);case je:return re(e);case ye:case de:case Ae:case $e:case me:case we:case Oe:case ve:case he:return ce(e);case fe:return new a;case ue:case le:return new a(e);case be:return oe(e);case ge:return new a;case pe:return ae(e)}}var x=Object.create,Se=function(){function e(){}return function(t){if(!E(t))return{};if(x)return x(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function Ce(e){return typeof e.constructor=="function"&&!G(e)?Se(z(e)):{}}var Ee="[object Map]";function Ue(e){return U(e)&&g(e)==Ee}var S=b&&b.isMap,Ie=S?I(S):Ue,Pe="[object Set]";function Be(e){return U(e)&&g(e)==Pe}var C=b&&b.isSet,De=C?I(C):Be,B="[object Arguments]",Me="[object Array]",Fe="[object Boolean]",Le="[object Date]",_e="[object Error]",D="[object Function]",Ne="[object GeneratorFunction]",Ge="[object Map]",Re="[object Number]",M="[object Object]",Ve="[object RegExp]",qe="[object Set]",Ke="[object String]",We="[object Symbol]",Ye="[object WeakMap]",He="[object ArrayBuffer]",Je="[object DataView]",Qe="[object Float32Array]",Xe="[object Float64Array]",Ze="[object Int8Array]",ze="[object Int16Array]",ke="[object Int32Array]",et="[object Uint8Array]",tt="[object Uint8ClampedArray]",rt="[object Uint16Array]",nt="[object Uint32Array]",r={};r[B]=r[Me]=r[He]=r[Je]=r[Fe]=r[Le]=r[Qe]=r[Xe]=r[Ze]=r[ze]=r[ke]=r[Ge]=r[Re]=r[M]=r[Ve]=r[qe]=r[Ke]=r[We]=r[et]=r[tt]=r[rt]=r[nt]=!0;r[_e]=r[D]=r[Ye]=!1;function u(e,t,n,a,p,i){var o;if(o!==void 0)return o;if(!E(e))return e;var T=K(e);if(T)o=te(e);else{var f=g(e),j=f==D||f==Ne;if(R(e))return Z(e);if(f==M||f==B||j&&!p)o=j?{}:Ce(e);else{if(!r[f])return p?e:{};o=xe(e,f)}}i||(i=new V);var y=i.get(e);if(y)return y;i.set(e,o),De(e)?e.forEach(function(c){o.add(u(c,t,n,c,e,i))}):Ie(e)&&e.forEach(function(c,s){o.set(s,u(c,t,n,s,e,i))});var F=q,d=T?void 0:F(e);return W(d||e,function(c,s){d&&(s=c,c=e[s]),Q(o,s,u(c,t,n,s,e,i))}),o}var ot=1,at=4;function it(e){return u(e,ot|at)}export{Q as a,it as c};
