Build 589089stable
Module 315646
8,888 characters · in 52082.07941602b067c1b4.jsDependencies
Source Raw
function(t,e,r){var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,p=s&&l&&"function"==typeof l.get?l.get:null,c=s&&Set.prototype.forEach,u="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,d=Object.prototype.toString,m=Function.prototype.toString,b=String.prototype.match,g=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,S=String.prototype.toLowerCase,_=RegExp.prototype.test,A=Array.prototype.concat,O=Array.prototype.join,E=Array.prototype.slice,j=Math.floor,x="function"==typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,T="function"==typeof Symbol&&"object"==typeof Symbol.iterator,I="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===T?"object":"symbol")?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,N=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function D(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||_.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var o=t<0?-j(-t):j(t);if(o!==t){var n=String(o),i=g.call(e,n.length+1);return v.call(n,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(e,r,"$&_")}var F=r(234629),M=F.custom,C=q(M)?M:null,L={__proto__:null,double:'"',single:"'"},U={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function B(t,e,r){var o=L[r.quoteStyle||e];return o+t+o}function W(t){return!I||!("object"==typeof t&&(I in t||void 0!==t[I]))}function $(t){return"[object Array]"===G(t)&&W(t)}function z(t){return"[object RegExp]"===G(t)&&W(t)}function q(t){if(T)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!k)return!1;try{return k.call(t),!0}catch(t){}return!1}t.exports=function t(e,o,n,s){var l,d,w,_,j,P=o||{};if(K(P,"quoteStyle")&&!K(L,P.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(K(P,"maxStringLength")&&("number"==typeof P.maxStringLength?P.maxStringLength<0&&P.maxStringLength!==1/0:null!==P.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var M=!K(P,"customInspect")||P.customInspect;if("boolean"!=typeof M&&"symbol"!==M)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(K(P,"indent")&&null!==P.indent&&" "!==P.indent&&!(parseInt(P.indent,10)===P.indent&&P.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(K(P,"numericSeparator")&&"boolean"!=typeof P.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var H=P.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function t(e,r){if(e.length>r.maxStringLength){var o=e.length-r.maxStringLength;return t(g.call(e,0,r.maxStringLength),r)+("... "+o)+" more character"+(o>1?"s":"")}var n=U[r.quoteStyle||"single"];return n.lastIndex=0,B(v.call(v.call(e,n,"\\$1"),/[\x00-\x1f]/g,Q),"single",r)}(e,P);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var te=String(e);return H?D(e,te):te}if("bigint"==typeof e){var tr=String(e)+"n";return H?D(e,tr):tr}var to=void 0===P.depth?5:P.depth;if(void 0===n&&(n=0),n>=to&&to>0&&"object"==typeof e)return $(e)?"[Array]":"[Object]";var tn=function(t,e){var r;if(" "===t.indent)r=" ";else{if("number"!=typeof t.indent||!(t.indent>0))return null;r=O.call(Array(t.indent+1)," ")}return{base:r,prev:O.call(Array(e+1),r)}}(P,n);if(void 0===s)s=[];else if(J(s,e)>=0)return"[Circular]";function ti(e,r,o){if(r&&(s=E.call(s)).push(r),o){var i={depth:P.depth};return K(P,"quoteStyle")&&(i.quoteStyle=P.quoteStyle),t(e,i,n+1,s)}return t(e,P,n+1,s)}if("function"==typeof e&&!z(e)){var ta=function(t){if(t.name)return t.name;var e=b.call(m.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),ts=tt(e,ti);return"[Function"+(ta?": "+ta:" (anonymous)")+"]"+(ts.length>0?" { "+O.call(ts,", ")+" }":"")}if(q(e)){var tl=T?v.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(e);return"object"!=typeof e||T?tl:V(tl)}if((tp=e)&&"object"==typeof tp&&("u">typeof HTMLElement&&tp instanceof HTMLElement||"string"==typeof tp.nodeName&&"function"==typeof tp.getAttribute)){for(var tp,tc,tu="<"+S.call(String(e.nodeName)),tf=e.attributes||[],ty=0;ty<tf.length;ty++){tu+=" "+tf[ty].name+"="+B((tc=tf[ty].value,v.call(String(tc),/"/g,""")),"double",P)}return tu+=">",e.childNodes&&e.childNodes.length&&(tu+="..."),tu+="</"+S.call(String(e.nodeName))+">"}if($(e)){if(0===e.length)return"[]";var th=tt(e,ti);return tn&&!function(t){for(var e=0;e<t.length;e++)if(J(t[e],"\n")>=0)return!1;return!0}(th)?"["+Z(th,tn)+"]":"[ "+O.call(th,", ")+" ]"}if("[object Error]"===G(l=e)&&W(l)){var td=tt(e,ti);return"cause"in Error.prototype||!("cause"in e)||R.call(e,"cause")?0===td.length?"["+String(e)+"]":"{ ["+String(e)+"] "+O.call(td,", ")+" }":"{ ["+String(e)+"] "+O.call(A.call("[cause]: "+ti(e.cause),td),", ")+" }"}if("object"==typeof e&&M){if(C&&"function"==typeof e[C]&&F)return F(e,{depth:to-n});else if("symbol"!==M&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{p.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var tm=[];return a&&a.call(e,function(t,r){tm.push(ti(r,e,!0)+" => "+ti(t,e))}),Y("Map",i.call(e),tm,tn)}if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var tb=[];return c&&c.call(e,function(t){tb.push(ti(t,e))}),Y("Set",p.call(e),tb,tn)}if(function(t){if(!u||!t||"object"!=typeof t)return!1;try{u.call(t,u);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return X("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{u.call(t,u)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return X("WeakSet");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{return y.call(t),!0}catch(t){}return!1}(e))return X("WeakRef");if("[object Number]"===G(d=e)&&W(d))return V(ti(Number(e)));if(function(t){if(!t||"object"!=typeof t||!x)return!1;try{return x.call(t),!0}catch(t){}return!1}(e))return V(ti(x.call(e)));if("[object Boolean]"===G(w=e)&&W(w))return V(h.call(e));if("[object String]"===G(_=e)&&W(_))return V(ti(String(e)));if("u">typeof window&&e===window)return"{ [object Window] }";if("u">typeof globalThis&&e===globalThis||void 0!==r.g&&e===r.g)return"{ [object globalThis] }";if(!("[object Date]"===G(j=e)&&W(j))&&!z(e)){var tg=tt(e,ti),tv=N?N(e)===Object.prototype:e instanceof Object||e.constructor===Object,tw=e instanceof Object?"":"null prototype",tS=!tv&&I&&Object(e)===e&&I in e?g.call(G(e),8,-1):tw?"Object":"",t_=(tv||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(tS||tw?"["+O.call(A.call([],tS||[],tw||[]),": ")+"] ":"");return 0===tg.length?t_+"{}":tn?t_+"{"+Z(tg,tn)+"}":t_+"{ "+O.call(tg,", ")+" }"}return String(e)};var H=Object.prototype.hasOwnProperty||function(t){return t in this};function K(t,e){return H.call(t,e)}function G(t){return d.call(t)}function J(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return -1}function Q(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+w.call(e.toString(16))}function V(t){return"Object("+t+")"}function X(t){return t+" { ? }"}function Y(t,e,r,o){return t+" ("+e+") {"+(o?Z(r,o):O.call(r,", "))+"}"}function Z(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+O.call(t,","+r)+"\n"+e.prev}function tt(t,e){var r,o=$(t),n=[];if(o){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=K(t,i)?e(t[i],t):""}var a="function"==typeof P?P(t):[];if(T){r={};for(var s=0;s<a.length;s++)r["$"+a[s]]=a[s]}for(var l in t)if(K(t,l)&&(!o||String(Number(l))!==l||!(l<t.length)))if(T&&r["$"+l]instanceof Symbol)continue;else _.call(/[^\w$]/,l)?n.push(e(l,t)+": "+e(t[l],t)):n.push(l+": "+e(t[l],t));if("function"==typeof P)for(var p=0;p<a.length;p++)R.call(t,a[p])&&n.push("["+e(a[p])+"]: "+e(t[a[p]],t));return n}}