1 line
4.9 KiB
JavaScript
1 line
4.9 KiB
JavaScript
(()=>{var e={462:function(e){(function(r,t){true?e.exports=t():0})(this,(function(){"use strict";var e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$";var r=/[<>\b\f\n\r\t\0\u2028\u2029]/g;var t=/^(?:do|if|in|for|int|let|new|try|var|byte|case|char|else|enum|goto|long|this|void|with|await|break|catch|class|const|final|float|short|super|throw|while|yield|delete|double|export|import|native|return|switch|throws|typeof|boolean|default|extends|finally|package|private|abstract|continue|debugger|function|volatile|interface|protected|transient|implements|instanceof|synchronized)$/;var n={"<":"\\u003C",">":"\\u003E","/":"\\u002F","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};var i=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function devalue(e){var r=new Map;function walk(e){if(typeof e==="function"){throw new Error("Cannot stringify a function")}if(r.has(e)){r.set(e,r.get(e)+1);return}r.set(e,1);if(!isPrimitive(e)){var t=getType(e);switch(t){case"Number":case"String":case"Boolean":case"Date":case"RegExp":return;case"Array":e.forEach(walk);break;case"Set":case"Map":Array.from(e).forEach(walk);break;default:var n=Object.getPrototypeOf(e);if(n!==Object.prototype&&n!==null&&Object.getOwnPropertyNames(n).sort().join("\0")!==i){throw new Error("Cannot stringify arbitrary non-POJOs")}if(Object.getOwnPropertySymbols(e).length>0){throw new Error("Cannot stringify POJOs with symbolic keys")}Object.keys(e).forEach((function(r){return walk(e[r])}))}}}walk(e);var t=new Map;Array.from(r).filter((function(e){return e[1]>1})).sort((function(e,r){return r[1]-e[1]})).forEach((function(e,r){t.set(e[0],getName(r))}));function stringify(e){if(t.has(e)){return t.get(e)}if(isPrimitive(e)){return stringifyPrimitive(e)}var r=getType(e);switch(r){case"Number":case"String":case"Boolean":return"Object("+stringify(e.valueOf())+")";case"RegExp":return"new RegExp("+stringifyString(e.source)+', "'+e.flags+'")';case"Date":return"new Date("+e.getTime()+")";case"Array":var n=e.map((function(r,t){return t in e?stringify(r):""}));var i=e.length===0||e.length-1 in e?"":",";return"["+n.join(",")+i+"]";case"Set":case"Map":return"new "+r+"(["+Array.from(e).map(stringify).join(",")+"])";default:var a="{"+Object.keys(e).map((function(r){return safeKey(r)+":"+stringify(e[r])})).join(",")+"}";var s=Object.getPrototypeOf(e);if(s===null){return Object.keys(e).length>0?"Object.assign(Object.create(null),"+a+")":"Object.create(null)"}return a}}var n=stringify(e);if(t.size){var a=[];var s=[];var o=[];t.forEach((function(e,r){a.push(e);if(isPrimitive(r)){o.push(stringifyPrimitive(r));return}var t=getType(r);switch(t){case"Number":case"String":case"Boolean":o.push("Object("+stringify(r.valueOf())+")");break;case"RegExp":o.push(r.toString());break;case"Date":o.push("new Date("+r.getTime()+")");break;case"Array":o.push("Array("+r.length+")");r.forEach((function(r,t){s.push(e+"["+t+"]="+stringify(r))}));break;case"Set":o.push("new Set");s.push(e+"."+Array.from(r).map((function(e){return"add("+stringify(e)+")"})).join("."));break;case"Map":o.push("new Map");s.push(e+"."+Array.from(r).map((function(e){var r=e[0],t=e[1];return"set("+stringify(r)+", "+stringify(t)+")"})).join("."));break;default:o.push(Object.getPrototypeOf(r)===null?"Object.create(null)":"{}");Object.keys(r).forEach((function(t){s.push(""+e+safeProp(t)+"="+stringify(r[t]))}))}}));s.push("return "+n);return"(function("+a.join(",")+"){"+s.join(";")+"}("+o.join(",")+"))"}else{return n}}function getName(r){var n="";do{n=e[r%e.length]+n;r=~~(r/e.length)-1}while(r>=0);return t.test(n)?n+"_":n}function isPrimitive(e){return Object(e)!==e}function stringifyPrimitive(e){if(typeof e==="string")return stringifyString(e);if(e===void 0)return"void 0";if(e===0&&1/e<0)return"-0";var r=String(e);if(typeof e==="number")return r.replace(/^(-)?0\./,"$1.");return r}function getType(e){return Object.prototype.toString.call(e).slice(8,-1)}function escapeUnsafeChar(e){return n[e]||e}function escapeUnsafeChars(e){return e.replace(r,escapeUnsafeChar)}function safeKey(e){return/^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(e)?e:escapeUnsafeChars(JSON.stringify(e))}function safeProp(e){return/^[_$a-zA-Z][_$a-zA-Z0-9]*$/.test(e)?"."+e:"["+escapeUnsafeChars(JSON.stringify(e))+"]"}function stringifyString(e){var r='"';for(var t=0;t<e.length;t+=1){var i=e.charAt(t);var a=i.charCodeAt(0);if(i==='"'){r+='\\"'}else if(i in n){r+=n[i]}else if(a>=55296&&a<=57343){var s=e.charCodeAt(t+1);if(a<=56319&&(s>=56320&&s<=57343)){r+=i+e[++t]}else{r+="\\u"+a.toString(16).toUpperCase()}}else{r+=i}}r+='"';return r}return devalue}))}};var r={};function __nccwpck_require__(t){var n=r[t];if(n!==undefined){return n.exports}var i=r[t]={exports:{}};var a=true;try{e[t].call(i.exports,i,i.exports,__nccwpck_require__);a=false}finally{if(a)delete r[t]}return i.exports}if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=__dirname+"/";var t=__nccwpck_require__(462);module.exports=t})(); |