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