Son CV dans un terminal web en Javascript! https://terminal-cv.gregandev.fr
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
3.0 MiB

!function(r,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):((r="undefined"!=typeof globalThis?globalThis:r||self).prettierPlugins=r.prettierPlugins||{},r.prettierPlugins.flow=e())}(this,(function(){"use strict";var r,e=function(r,e){const n=new SyntaxError(r+" ("+e.start.line+":"+e.start.column+")");return n.loc=e,n},n=void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function t(){if(void 0===r){var e=new ArrayBuffer(2),n=new Uint8Array(e),t=new Uint16Array(e);if(n[0]=1,n[1]=2,258===t[0])r="BE";else{if(513!==t[0])throw new Error("unable to figure out endianess");r="LE"}}return r}function u(){return void 0!==n.location?n.location.hostname:""}function a(){return[]}function i(){return 0}function c(){return Number.MAX_VALUE}function f(){return Number.MAX_VALUE}function o(){return[]}function s(){return"Browser"}function l(){return void 0!==n.navigator?n.navigator.appVersion:""}function v(){}function D(){}function b(){return"javascript"}function p(){return"browser"}function E(){return"/tmp"}var F=E,m={EOL:"\n",arch:b,platform:p,tmpdir:F,tmpDir:E,networkInterfaces:v,getNetworkInterfaces:D,release:l,type:s,cpus:o,totalmem:f,freemem:c,uptime:i,loadavg:a,hostname:u,endianness:t},k=Object.freeze({__proto__:null,endianness:t,hostname:u,loadavg:a,uptime:i,freemem:c,totalmem:f,cpus:o,type:s,release:l,networkInterfaces:v,getNetworkInterfaces:D,arch:b,platform:p,tmpDir:E,tmpdir:F,EOL:"\n",default:m});const d=r=>{if("string"!=typeof r)throw new TypeError("Expected a string");const e=r.match(/(?:\r?\n)/g)||[];if(0===e.length)return;const n=e.filter((r=>"\r\n"===r)).length;return n>e.length-n?"\r\n":"\n"};var h=d;h.graceful=r=>"string"==typeof r&&d(r)||"\n";var y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function _(r){return r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function A(r){var e={exports:{}};return r(e,e.exports),e.exports}var C=_(k),w=function(r){const e=r.match(L);return e?e[0].trimLeft():""},S=function(r){const e=r.match(L);return e&&e[0]?r.substring(e[0].length):r},g=function(r){return H(r).pragmas},B=H,T=function({comments:r="",pragmas:e={}}){const n=(0,O().default)(r)||I().EOL,t=" *",u=Object.keys(e),a=u.map((r=>X(r,e[r]))).reduce(((r,e)=>r.concat(e)),[]).map((r=>" * "+r+n)).join("");if(!r){if(0===u.length)return"";if(1===u.length&&!Array.isArray(e[u[0]])){const r=e[u[0]];return`/** ${X(u[0],r)[0]} */`}}const i=r.split(n).map((r=>` * ${r}`)).join(n)+n;return"/**"+n+(r?i:"")+(r&&u.length?t+n:"")+a+" */"};function I(){const r=C;return I=function(){return r},r}function O(){const r=(e=h)&&e.__esModule?e:{default:e};var e;return O=function(){return r},r}const N=/\*\/$/,x=/^\/\*\*/,L=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,P=/(^|\s+)\/\/([^\r\n]*)/g,R=/^(\r?\n)+/,M=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,G=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,U=/(\r?\n|^) *\* ?/g,j=[];function H(r){const e=(0,O().default)(r)||I().EOL;r=r.replace(x,"").replace(N,"").replace(U,"$1");let n="";for(;n!==r;)n=r,r=r.replace(M,`${e}$1 $2${e}`);r=r.replace(R,"").trimRight();const t=Object.create(null),u=r.replace(G,"").replace(R,"").trimRight();let a;for(;a=G.exec(r);){const r=a[2].replace(P,"");"string"==typeof t[a[1]]||Array.isArray(t[a[1]])?t[a[1]]=j.concat(t[a[1]],r):t[a[1]]=r}return{comments:u,pragmas:t}}function X(r,e){return j.concat(e).map((e=>`@${r} ${e}`.trim()))}var $=Object.defineProperty({extract:w,strip:S,parse:g,parseWithComments:B,print:T},"__esModule",{value:!0}),Y=r=>"string"==typeof r?r.replace((({onlyFirst:r=!1}={})=>{const e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,r?void 0:"g")})(),""):r;const V=r=>!Number.isNaN(r)&&(r>=4352&&(r<=4447||9001===r||9002===r||11904<=r&&r<=12871&&12351!==r||12880<=r&&r<=19903||19968<=r&&r<=42182||43360<=
Print (to stderr) where a cursor at the given position would move to after formatting.
This option cannot be used with --range-start and --range-end.
`,cliCategory:dt},endOfLine:{since:"1.15.0",category:yt,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:mt`
Maintain existing
(mixed values within one file are normalised by looking at what's used after the first line)
`}]},filepath:{since:"1.4.0",category:_t,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:ht,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:_t,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:ht},parser:{since:"0.0.10",category:yt,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:r=>"string"==typeof r||"function"==typeof r,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:yt,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:r=>"string"==typeof r||"object"==typeof r,cliName:"plugin",cliCategory:kt},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:yt,description:mt`
Custom directory that contains prettier plugins in node_modules subdirectory.
Overrides default behavior when plugins are searched relatively to the location of Prettier.
Multiple values are accepted.
`,exception:r=>"string"==typeof r||"object"==typeof r,cliName:"plugin-search-dir",cliCategory:kt},printWidth:{since:"0.0.0",category:yt,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:_t,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:mt`
Format code ending at a given character offset (exclusive).
The range will extend forwards to the end of the selected statement.
This option cannot be used with --cursor-offset.
`,cliCategory:dt},rangeStart:{since:"1.4.0",category:_t,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:mt`
Format code starting at a given character offset.
The range will extend backwards to the start of the first line containing the selected statement.
This option cannot be used with --cursor-offset.
`,cliCategory:dt},requirePragma:{since:"1.7.0",category:_t,type:"boolean",default:!1,description:mt`
Require either '@prettier' or '@format' to be present in the file's first docblock comment
in order for it to be formatted.
`,cliCategory:ht},tabWidth:{type:"int",category:yt,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:yt,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:yt,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};const Ct=["cliName","cliCategory","cliDescription"],wt={compare:bt,lt:pt,gte:Et},St="2.4.1",gt={CATEGORY_CONFIG:kt,CATEGORY_EDITOR:dt,CATEGORY_FORMAT:"Format",CATEGORY_OTHER:ht,CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:yt,CATEGORY_SPECIAL:_t,options:At}.options;var Bt={getSupportInfo:function({plugins:r=[],showUnreleased:e=!1,showDeprecated:n=!1,showInternal:t=!1}={}){const u=St.split("-",1)[0],a=r.flatMap((r=>r.languages||[])).filter(o),i=(c=Object.assign({},...r.map((({options:r})=>r)),gt),f="name",Object.entries(c).map((([r,e])=>Object.assign({[f]:r},e)))).filter((r=>o(r)&&s(r))).sort(((r,e)=>r.name===e.name?0:r.name<e.name?-1:1)).map((function(r){if(t)return r;return rr(r,Ct)})).map((e=>{e=Object.assign({},e),Array.isArray(e.default)&&(e.default=1===e.default.length?e.default[0].value:e.default.filter(o).sort(((r,e)=>wt.compare(e.since,r.since)))[0].value),Array.isArray(e.choices)&&(e.choices=e.choices.filter((r=>o(r)&&s(r))),"parser"===e.name&&function(r,e,n){const t=new Set(r.choices.map((r=>r.value)));for(const u of e)if(u.parsers)for(const e of u.parsers)if(!t.has(e)){t.add(e);const a=n.find((r=>r.parsers&&r.parsers[e]));let i=u.name;a&&a.name&&(i+=` (plugin: ${a.name})`),r.choices.push({value:e,description:i})}}(e,a,r));const n=Object.fromEntries(r.filter((r=>r.defaultOptions&&void 0!==r.defaultOptions[e.name])).map((r=>[r.name,r.defaultOptions[e.name]])));return Object.assign(Object.assign({},e),{},{pluginDefaults:n})}));var c,f;return{languages:a,options:i};function o(r){return e||!("since"in r)||r.since&&wt.gte(u,r.since)}function s(r){return n||!("deprecated"in r)||r.deprecated&&wt.lt(u,r.deprecated)}}};const{getSupportInfo:Tt}=Bt,It=/[^\x20-\x7F]/;function Ot(r){return(e,n,t)=>{const u=t&&t.backwards;if(!1===n)return!1;const{length:a}=e;let i=n;for(;i>=0&&i<a;){const n=e.charAt(i);if(r instanceof RegExp){if(!r.test(n))return i}else if(!r.includes(n))return i;u?i--:i++}return(-1===i||i===a)&&i}}const Nt=Ot(/\s/),xt=Ot(" \t"),Lt=Ot(",; \t"),Pt=Ot(/[^\n\r]/);function Rt(r,e){if(!1===e)return!1;if("/"===r.charAt(e)&&"*"===r.charAt(e+1))for(let n=e+2;n<r.length;++n)if("*"===r.charAt(n)&&"/"===r.charAt(n+1))return n+2;return e}function Mt(r,e){return!1!==e&&("/"===r.charAt(e)&&"/"===r.charAt(e+1)?Pt(r,e):e)}function Gt(r,e,n){const t=n&&n.backwards;if(!1===e)return!1;const u=r.charAt(e);if(t){if("\r"===r.charAt(e-1)&&"\n"===u)return e-2;if("\n"===u||"\r"===u||"\u2028"===u||"\u2029"===u)return e-1}else{if("\r"===u&&"\n"===r.charAt(e+1))return e+2;if("\n"===u||"\r"===u||"\u2028"===u||"\u2029"===u)return e+1}return e}function Ut(r,e,n={}){const t=xt(r,n.backwards?e-1:e,n);return t!==Gt(r,t,n)}function jt(r,e){let n=null,t=e;for(;t!==n;)n=t,t=Lt(r,t),t=Rt(r,t),t=xt(r,t);return t=Mt(r,t),t=Gt(r,t),!1!==t&&Ut(r,t)}function Ht(r,e){let n=null,t=e;for(;t!==n;)n=t,t=xt(r,t),t=Rt(r,t),t=Mt(r,t),t=Gt(r,t);return t}function Xt(r,e,n){return Ht(r,n(e))}function $t(r,e,n=0){let t=0;for(let u=n;u<r.length;++u)"\t"===r[u]?t=t+e-t%e:t++;return t}function Yt(r,e){const n=r.slice(1,-1),t={quote:'"',regex:/"/g},u={quote:"'",regex:/'/g},a="'"===e?u:t,i=a===u?t:u;let c=a.quote;if(n.includes(a.quote)||n.includes(i.quote)){c=(n.match(a.regex)||[]).length>(n.match(i.regex)||[]).length?i.quote:a.quote}return c}function Vt(r,e,n){const t='"'===e?"'":'"',u=r.replace(/\\(.)|(["'])/gs,((r,u,a)=>u===t?u:a===e?"\\"+a:a||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(u)?u:"\\"+u)));return e+u+e}function Kt(r,e){(r