forked from kevin.shehu/GGD
2 lines
243 KiB
JavaScript
2 lines
243 KiB
JavaScript
|
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t=function(e,u){const t=new SyntaxError(e+" ("+u.start.line+":"+u.start.column+")");return t.loc=u,t};var n,r=function(){let e;for(var u=arguments.length,t=new Array(u),n=0;n<u;n++)t[n]=arguments[n];for(const[u,n]of t.entries())try{return{result:n()}}catch(t){0===u&&(e=t)}return{error:e}},o={},i=void 0!==i?i:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function s(){if(void 0===n){var e=new ArrayBuffer(2),u=new Uint8Array(e),t=new Uint16Array(e);if(u[0]=1,u[1]=2,258===t[0])n="BE";else{if(513!==t[0])throw new Error("unable to figure out endianess");n="LE"}}return n}function a(){return void 0!==i.location?i.location.hostname:""}function c(){return[]}function D(){return 0}function l(){return Number.MAX_VALUE}function p(){return Number.MAX_VALUE}function f(){return[]}function d(){return"Browser"}function F(){return void 0!==i.navigator?i.navigator.appVersion:""}function E(){}function C(){}function A(){return"javascript"}function g(){return"browser"}function m(){return"/tmp"}var h=m,y={EOL:"\n",arch:A,platform:g,tmpdir:h,tmpDir:m,networkInterfaces:E,getNetworkInterfaces:C,release:F,type:d,cpus:f,totalmem:p,freemem:l,uptime:D,loadavg:c,hostname:a,endianness:s},B=u(Object.freeze({__proto__:null,endianness:s,hostname:a,loadavg:c,uptime:D,freemem:l,totalmem:p,cpus:f,type:d,release:F,networkInterfaces:E,getNetworkInterfaces:C,arch:A,platform:g,tmpDir:m,tmpdir:h,EOL:"\n",default:y})),b={exports:{}};const k=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");const u=e.match(/(?:\r?\n)/g)||[];if(0===u.length)return;const t=u.filter((e=>"\r\n"===e)).length;return t>u.length-t?"\r\n":"\n"};function x(){const e=B;return x=function(){return e},e}function P(){const e=(u=b.exports)&&u.__esModule?u:{default:u};var u;return P=function(){return e},e}b.exports=k,b.exports.graceful=e=>"string"==typeof e&&k(e)||"\n",Object.defineProperty(o,"__esModule",{value:!0}),o.extract=function(e){const u=e.match(S);return u?u[0].trimLeft():""},o.strip=function(e){const u=e.match(S);return u&&u[0]?e.substring(u[0].length):e},o.parse=function(e){return q(e).pragmas},o.parseWithComments=q,o.print=function(e){let{comments:u="",pragmas:t={}}=e;const n=(0,P().default)(u)||x().EOL,r=" *",o=Object.keys(t),i=o.map((e=>j(e,t[e]))).reduce(((e,u)=>e.concat(u)),[]).map((e=>" * "+e+n)).join("");if(!u){if(0===o.length)return"";if(1===o.length&&!Array.isArray(t[o[0]])){const e=t[o[0]];return"".concat("/**"," ").concat(j(o[0],e)[0]).concat(" */")}}const s=u.split(n).map((e=>"".concat(r," ").concat(e))).join(n)+n;return"/**"+n+(u?s:"")+(u&&o.length?r+n:"")+i+" */"};const v=/\*\/$/,w=/^\/\*\*/,S=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,T=/(^|\s+)\/\/([^\r\n]*)/g,N=/^(\r?\n)+/,I=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,L=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,O=/(\r?\n|^) *\* ?/g,R=[];function q(e){const u=(0,P().default)(e)||x().EOL;e=e.replace(w,"").replace(v,"").replace(O,"$1");let t="";for(;t!==e;)t=e,e=e.replace(I,"".concat(u,"$1 $2").concat(u));e=e.replace(N,"").trimRight();const n=Object.create(null),r=e.replace(L,"").replace(N,"").trimRight();let o;for(;o=L.exec(e);){const e=o[2].replace(T,"");"string"==typeof n[o[1]]||Array.isArray(n[o[1]])?n[o[1]]=R.concat(n[o[1]],e):n[o[1]]=e}return{comments:r,pragmas:n}}function j(e,u){return R.concat(u).map((u=>"@".concat(e," ").concat(u).trim()))}var V={exports:{}};const M=function(){let{onlyFirst:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const u=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(u,e?void 0:"g")};var U={exports:{}};const G=e=>!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<
|