Module 232859

2,254 characters · in 52082.07941602b067c1b4.js
Dependencies
Required by (1)
Lazily required by (0)none
Requires (0)none
Lazily requires (0)none
Source Raw
function(t){t.exports=a,a.default=a,a.stable=p,a.stableStringify=p;var e="[...]",r="[Circular]",o=[],n=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(t,a,l,p){void 0===p&&(p=i()),function t(o,n,i,a,l,p,c){if(p+=1,"object"==typeof o&&null!==o){for(u=0;u<a.length;u++)if(a[u]===o)return void s(r,o,n,l);if(void 0!==c.depthLimit&&p>c.depthLimit||void 0!==c.edgesLimit&&i+1>c.edgesLimit)return void s(e,o,n,l);if(a.push(o),Array.isArray(o))for(u=0;u<o.length;u++)t(o[u],u,u,a,o,p,c);else{var u,f=Object.keys(o);for(u=0;u<f.length;u++){var y=f[u];t(o[y],y,u,a,o,p,c)}}a.pop()}}(t,"",0,[],void 0,0,p);try{u=0===n.length?JSON.stringify(t,a,l):JSON.stringify(t,c(a),l)}catch(t){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var u,f=o.pop();4===f.length?Object.defineProperty(f[0],f[1],f[3]):f[0][f[1]]=f[2]}}return u}function s(t,e,r,i){var a=Object.getOwnPropertyDescriptor(i,r);void 0!==a.get?a.configurable?(Object.defineProperty(i,r,{value:t}),o.push([i,r,e,a])):n.push([e,r,t]):(i[r]=t,o.push([i,r,e]))}function l(t,e){return t<e?-1:+(t>e)}function p(t,a,p,u){void 0===u&&(u=i());var f,y=function t(n,i,a,p,c,u,f){if(u+=1,"object"==typeof n&&null!==n){for(y=0;y<p.length;y++)if(p[y]===n)return void s(r,n,i,c);try{if("function"==typeof n.toJSON)return}catch(t){return}if(void 0!==f.depthLimit&&u>f.depthLimit||void 0!==f.edgesLimit&&a+1>f.edgesLimit)return void s(e,n,i,c);if(p.push(n),Array.isArray(n))for(y=0;y<n.length;y++)t(n[y],y,y,p,n,u,f);else{var y,h={},d=Object.keys(n).sort(l);for(y=0;y<d.length;y++){var m=d[y];t(n[m],m,y,p,n,u,f),h[m]=n[m]}if(void 0===c)return h;o.push([c,i,n]),c[i]=h}p.pop()}}(t,"",0,[],void 0,0,u)||t;try{f=0===n.length?JSON.stringify(y,a,p):JSON.stringify(y,c(a),p)}catch(t){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var h=o.pop();4===h.length?Object.defineProperty(h[0],h[1],h[3]):h[0][h[1]]=h[2]}}return f}function c(t){return t=void 0!==t?t:function(t,e){return e},function(e,r){if(n.length>0)for(var o=0;o<n.length;o++){var i=n[o];if(i[1]===e&&i[0]===r){r=i[2],n.splice(o,1);break}}return t.call(this,e,r)}}}