@networkpro/web
Version:
Locking Down Networks, Unlocking Confidence | Security, Networking, Privacy — Network Pro Strategies
1 lines • 7.72 kB
JavaScript
;(self.webpackChunk_networkpro_web=self.webpackChunk_networkpro_web||[]).push([[524],{42:(t,n,e)=>{var r=e(68);r.configure;globalThis.self},68:(t,n)=>{const{hasOwnProperty:e}=Object.prototype,r=g();r.configure=g,r.stringify=r,r.default=r,n.stringify=r,n.configure=g,t.exports=r;const i=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function o(t){return t.length<5e3&&!i.test(t)?`"${t}"`:JSON.stringify(t)}function u(t,n){if(t.length>200||n)return t.sort(n);for(let n=1;n<t.length;n++){const e=t[n];let r=n;for(;0!==r&&t[r-1]>e;)t[r]=t[r-1],r--;t[r]=e}return t}const l=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function f(t){return void 0!==l.call(t)&&0!==t.length}function c(t,n,e){t.length<e&&(e=t.length);const r=","===n?"":" ";let i=`"0":${r}${t[0]}`;for(let o=1;o<e;o++)i+=`${n}"${o}":${r}${t[o]}`;return i}function s(t,n){let r;if(e.call(t,n)){if(r=t[n],"number"!=typeof r)throw new TypeError(`The "${n}" argument must be of type number`);if(!Number.isInteger(r))throw new TypeError(`The "${n}" argument must be an integer`);if(r<1)throw new RangeError(`The "${n}" argument must be >= 1`)}return void 0===r?1/0:r}function a(t){return 1===t?"1 item":`${t} items`}function g(t){const n=function(t){if(e.call(t,"strict")){const n=t.strict;if("boolean"!=typeof n)throw new TypeError('The "strict" argument must be of type boolean');if(n)return t=>{let n="Object can not safely be stringified. Received type "+typeof t;throw"function"!=typeof t&&(n+=` (${t.toString()})`),new Error(n)}}}(t={...t});n&&(void 0===t.bigint&&(t.bigint=!1),"circularValue"in t||(t.circularValue=Error));const r=function(t){if(e.call(t,"circularValue")){const n=t.circularValue;if("string"==typeof n)return`"${n}"`;if(null==n)return n;if(n===Error||n===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}(t),i=function(t,n){let r;if(e.call(t,n)&&(r=t[n],"boolean"!=typeof r))throw new TypeError(`The "${n}" argument must be of type boolean`);return void 0===r||r}(t,"bigint"),l=function(t){let n;if(e.call(t,"deterministic")&&(n=t.deterministic,"boolean"!=typeof n&&"function"!=typeof n))throw new TypeError('The "deterministic" argument must be of type boolean or comparator function');return void 0===n||n}(t),g="function"==typeof l?l:void 0,h=s(t,"maximumDepth"),p=s(t,"maximumBreadth");function $(t,e,c,s,y,b){let d=e[t];switch("object"==typeof d&&null!==d&&"function"==typeof d.toJSON&&(d=d.toJSON(t)),d=s.call(e,t,d),typeof d){case"string":return o(d);case"object":{if(null===d)return"null";if(-1!==c.indexOf(d))return r;let t="",n=",";const e=b;if(Array.isArray(d)){if(0===d.length)return"[]";if(h<c.length+1)return'"[Array]"';c.push(d),""!==y&&(t+=`\n${b+=y}`,n=`,\n${b}`);const r=Math.min(d.length,p);let i=0;for(;i<r-1;i++){const e=$(String(i),d,c,s,y,b);t+=void 0!==e?e:"null",t+=n}const o=$(String(i),d,c,s,y,b);if(t+=void 0!==o?o:"null",d.length-1>p){t+=`${n}"... ${a(d.length-p-1)} not stringified"`}return""!==y&&(t+=`\n${e}`),c.pop(),`[${t}]`}let i=Object.keys(d);const m=i.length;if(0===m)return"{}";if(h<c.length+1)return'"[Object]"';let w="",S="";""!==y&&(n=`,\n${b+=y}`,w=" ");const O=Math.min(m,p);l&&!f(d)&&(i=u(i,g)),c.push(d);for(let e=0;e<O;e++){const r=i[e],u=$(r,d,c,s,y,b);void 0!==u&&(t+=`${S}${o(r)}:${w}${u}`,S=n)}if(m>p){t+=`${S}"...":${w}"${a(m-p)} not stringified"`,S=n}return""!==y&&S.length>1&&(t=`\n${b}${t}\n${e}`),c.pop(),`{${t}}`}case"number":return isFinite(d)?String(d):n?n(d):"null";case"boolean":return!0===d?"true":"false";case"undefined":return;case"bigint":if(i)return String(d);default:return n?n(d):void 0}}function y(t,e,u,l,f,c){switch("object"==typeof e&&null!==e&&"function"==typeof e.toJSON&&(e=e.toJSON(t)),typeof e){case"string":return o(e);case"object":{if(null===e)return"null";if(-1!==u.indexOf(e))return r;const t=c;let n="",i=",";if(Array.isArray(e)){if(0===e.length)return"[]";if(h<u.length+1)return'"[Array]"';u.push(e),""!==f&&(n+=`\n${c+=f}`,i=`,\n${c}`);const r=Math.min(e.length,p);let o=0;for(;o<r-1;o++){const t=y(String(o),e[o],u,l,f,c);n+=void 0!==t?t:"null",n+=i}const s=y(String(o),e[o],u,l,f,c);if(n+=void 0!==s?s:"null",e.length-1>p){n+=`${i}"... ${a(e.length-p-1)} not stringified"`}return""!==f&&(n+=`\n${t}`),u.pop(),`[${n}]`}u.push(e);let s="";""!==f&&(i=`,\n${c+=f}`,s=" ");let g="";for(const t of l){const r=y(t,e[t],u,l,f,c);void 0!==r&&(n+=`${g}${o(t)}:${s}${r}`,g=i)}return""!==f&&g.length>1&&(n=`\n${c}${n}\n${t}`),u.pop(),`{${n}}`}case"number":return isFinite(e)?String(e):n?n(e):"null";case"boolean":return!0===e?"true":"false";case"undefined":return;case"bigint":if(i)return String(e);default:return n?n(e):void 0}}function b(t,e,s,$,y){switch(typeof e){case"string":return o(e);case"object":{if(null===e)return"null";if("function"==typeof e.toJSON){if("object"!=typeof(e=e.toJSON(t)))return b(t,e,s,$,y);if(null===e)return"null"}if(-1!==s.indexOf(e))return r;const n=y;if(Array.isArray(e)){if(0===e.length)return"[]";if(h<s.length+1)return'"[Array]"';s.push(e);let t=`\n${y+=$}`;const r=`,\n${y}`,i=Math.min(e.length,p);let o=0;for(;o<i-1;o++){const n=b(String(o),e[o],s,$,y);t+=void 0!==n?n:"null",t+=r}const u=b(String(o),e[o],s,$,y);if(t+=void 0!==u?u:"null",e.length-1>p){t+=`${r}"... ${a(e.length-p-1)} not stringified"`}return t+=`\n${n}`,s.pop(),`[${t}]`}let i=Object.keys(e);const d=i.length;if(0===d)return"{}";if(h<s.length+1)return'"[Object]"';const m=`,\n${y+=$}`;let w="",S="",O=Math.min(d,p);f(e)&&(w+=c(e,m,p),i=i.slice(e.length),O-=e.length,S=m),l&&(i=u(i,g)),s.push(e);for(let t=0;t<O;t++){const n=i[t],r=b(n,e[n],s,$,y);void 0!==r&&(w+=`${S}${o(n)}: ${r}`,S=m)}if(d>p){w+=`${S}"...": "${a(d-p)} not stringified"`,S=m}return""!==S&&(w=`\n${y}${w}\n${n}`),s.pop(),`{${w}}`}case"number":return isFinite(e)?String(e):n?n(e):"null";case"boolean":return!0===e?"true":"false";case"undefined":return;case"bigint":if(i)return String(e);default:return n?n(e):void 0}}function d(t,e,s){switch(typeof e){case"string":return o(e);case"object":{if(null===e)return"null";if("function"==typeof e.toJSON){if("object"!=typeof(e=e.toJSON(t)))return d(t,e,s);if(null===e)return"null"}if(-1!==s.indexOf(e))return r;let n="";const i=void 0!==e.length;if(i&&Array.isArray(e)){if(0===e.length)return"[]";if(h<s.length+1)return'"[Array]"';s.push(e);const t=Math.min(e.length,p);let r=0;for(;r<t-1;r++){const t=d(String(r),e[r],s);n+=void 0!==t?t:"null",n+=","}const i=d(String(r),e[r],s);if(n+=void 0!==i?i:"null",e.length-1>p){n+=`,"... ${a(e.length-p-1)} not stringified"`}return s.pop(),`[${n}]`}let $=Object.keys(e);const y=$.length;if(0===y)return"{}";if(h<s.length+1)return'"[Object]"';let b="",m=Math.min(y,p);i&&f(e)&&(n+=c(e,",",p),$=$.slice(e.length),m-=e.length,b=","),l&&($=u($,g)),s.push(e);for(let t=0;t<m;t++){const r=$[t],i=d(r,e[r],s);void 0!==i&&(n+=`${b}${o(r)}:${i}`,b=",")}if(y>p){n+=`${b}"...":"${a(y-p)} not stringified"`}return s.pop(),`{${n}}`}case"number":return isFinite(e)?String(e):n?n(e):"null";case"boolean":return!0===e?"true":"false";case"undefined":return;case"bigint":if(i)return String(e);default:return n?n(e):void 0}}return function(t,n,e){if(arguments.length>1){let r="";if("number"==typeof e?r=" ".repeat(Math.min(e,10)):"string"==typeof e&&(r=e.slice(0,10)),null!=n){if("function"==typeof n)return $("",{"":t},[],n,r,"");if(Array.isArray(n))return y("",t,[],function(t){const n=new Set;for(const e of t)"string"!=typeof e&&"number"!=typeof e||n.add(String(e));return n}(n),r,"")}if(0!==r.length)return b("",t,[],r,"")}return d("",t,[])}}}},t=>{var n;n=42,t(t.s=n)}]);