!function(e,t){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=t():"function"==typeofdefine&&define.amd?define(t):((e="undefined"!=typeofglobalThis?globalThis:e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.markdown=t())}(this,(function(){"use strict";vare=function(){for(vare={},r=0;r<arguments.length;r++){varn=arguments[r];for(varuinn)t.call(n,u)&&(e[u]=n[u])}returne},t=Object.prototype.hasOwnProperty;varr="undefined"!=typeofglobalThis?globalThis:"undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:{};functionn(e){returne&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}functionu(e){vart={exports:{}};returne(t,t.exports),t.exports}vari=void0!==i?i:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:{},o=[],a=[],s="undefined"!=typeofUint8Array?Uint8Array:Array,c=!1;functionl(){c=!0;for(vare="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)o[t]=e[t],a[e.charCodeAt(t)]=t;a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63}functionf(e){returno[e>>18&63]+o[e>>12&63]+o[e>>6&63]+o[63&e]}functionD(e,t,r){for(varn,u=[],i=t;i<r;i+=3)n=(e[i]<<16)+(e[i+1]<<8)+e[i+2],u.push(f(n));returnu.join("")}functionp(e){vart;c||l();for(varr=e.length,n=r%3,u="",i=[],a=16383,s=0,f=r-n;s<f;s+=a)i.push(D(e,s,s+a>f?f:s+a));return1===n?(t=e[r-1],u+=o[t>>2],u+=o[t<<4&63],u+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],u+=o[t>>10],u+=o[t>>4&63],u+=o[t<<2&63],u+="="),i.push(u),i.join("")}functionh(e,t,r,n,u){vari,o,a=8*u-n-1,s=(1<<a)-1,c=s>>1,l=-7,f=r?u-1:0,D=r?-1:1,p=e[t+f];for(f+=D,i=p&(1<<-l)-1,p>>=-l,l+=a;l>0;i=256*i+e[t+f],f+=D,l-=8);for(o=i&(1<<-l)-1,i>>=-l,l+=n;l>0;o=256*o+e[t+f],f+=D,l-=8);if(0===i)i=1-c;else{if(i===s)returno?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),i-=c}return(p?-1:1)*o*Math.pow(2,i-n)}functiond(e,t,r,n,u,i){varo,a,s,c=8*i-u-1,l=(1<<c)-1,f=l>>1,D=23===u?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,h=n?1:-1,d=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-o))<1&&(o--,s*=2),(t+=o+f>=1?D/s:D*Math.pow(2,1-f))*s>=2&&(o++,s/=2),o+f>=l?(a=0,o=l):o+f>=1?(a=(t*s-1)*Math.pow(2,u),o+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,u),o=0));u>=8;e[r+p]=255&a,p+=h,a/=256,u-=8);for(o=o<<u|a,c+=u;c>0;e[r+p]=255&o,p+=h,o/=256,c-=8);e[r+p-h]|=128*d}varg={}.toString,m=Array.isArray||function(e){return"[object Array]"==g.call(e)};functionE(){returnv.TYPED_ARRAY_SUPPORT?2147483647:1073741823}functiony(e,t){if(E()<t)thrownewRangeError("Invalid typed array length");returnv.TYPED_ARRAY_SUPPORT?(e=newUint8Array(t)).__proto__=v.prototype:(null===e&&(e=newv(t)),e.length=t),e}functionv(e,t,r){if(!(v.TYPED_ARRAY_SUPPORT||thisinstanceofv))returnnewv(e,t,r);if("number"==typeofe){if("string"==typeoft)thrownewError("If encoding is specified then the first argument must be a string");returnA(this,e)}returnb(this,e,t,r)}functionb(e,t,r,n){if("number"==typeoft)thrownewTypeError('"value" argument must not be a number');return"undefined"!=typeofArrayBuffer&&tinstanceofArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)thrownewRangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))thrownewRangeError("'length' is out of bounds");t=void0===r&&void0===n?newUint8Array(t):void0===n?newUint8Array(t,r):newUint8Array(t,r,n);v.TYPED_ARRAY_SUPPORT?(e=t).__proto__=v.prototype:e=w(e,t);returne}(e,t,r,n):"string"==typeoft?function(e,t,r){"string"==typeofr&&""!==r||(r="utf8");if(!v.isEncoding(r))thrownewTypeError('"encoding" must be a valid string encoding');varn=0|O(t,r),u=(e=y(e,n)).write(t,r);u!==n&&(e=e.slice(0,u));returne}(e,t,r):function(e,t){if(k(t)){varr=0|F(t.length);return0===(e=y(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeofArrayBuffer&&t.bufferinstanceofArrayBuffer||"length"int)return"number"!=typeoft.length||(n=t.length)!=n?y(e,0):w(e,t);if("Buffer"===t.type&&m(t.data))returnw(e,t.data)}varn;thrownewTypeError("First argument must be a string
*/;var$u=function(e){returnnull!=e&&null!=e.constructor&&"function"==typeofe.constructor.isBuffer&&e.constructor.isBuffer(e)},Mu=Object.prototype.hasOwnProperty,zu=Object.prototype.toString,Gu=Object.defineProperty,Vu=Object.getOwnPropertyDescriptor,Yu=function(e){return"function"==typeofArray.isArray?Array.isArray(e):"[object Array]"===zu.call(e)},Hu=function(e){if(!e||"[object Object]"!==zu.call(e))return!1;vart,r=Mu.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Mu.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(tine);returnvoid0===t||Mu.call(e,t)},Xu=function(e,t){Gu&&"__proto__"===t.name?Gu(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},Wu=function(e,t){if("__proto__"===t){if(!Mu.call(e,t))return;if(Vu)returnVu(e,t).value}returne[t]},Zu=functione(){vart,r,n,u,i,o,a=arguments[0],s=1,c=arguments.length,l=!1;for("boolean"==typeofa&&(l=a,a=arguments[1]||{},s=2),(null==a||"object"!=typeofa&&"function"!=typeofa)&&(a={});s<c;++s)if(null!=(t=arguments[s]))for(rint)n=Wu(a,r),a!==(u=Wu(t,r))&&(l&&u&&(Hu(u)||(i=Yu(u)))?(i?(i=!1,o=n&&Yu(n)?n:[]):o=n&&Hu(n)?n:{},Xu(a,{name:r,newValue:e(l,o,u)})):void0!==u&&Xu(a,{name:r,newValue:u}));returna},Ju=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;constt=Object.getPrototypeOf(e);returnnull===t||t===Object.prototype},Ku=[].slice,Qu=function(e,t){varr;returnfunction(){vart,i=Ku.call(arguments,0),o=e.length>i.length;o&&i.push(n);try{t=e.apply(null,i)}catch(e){if(o&&r)throwe;returnn(e)}o||(t&&"function"==typeoft.then?t.then(u,n):tinstanceofError?n(t):u(t))};functionn(){r||(r=!0,t.apply(null,arguments))}functionu(e){n(null,e)}};varei=ri;ri.wrap=Qu;varti=[].slice;functionri(){vare=[],t={run:function(){vart=-1,r=ti.call(arguments,0,-1),n=arguments[arguments.length-1];if("function"!=typeofn)thrownewError("Expected function as last argument, not "+n);functionu(i){varo=e[++t],a=ti.call(arguments,0),s=a.slice(1),c=r.length,l=-1;if(i)n(i);else{for(;++l<c;)null!==s[l]&&void0!==s[l]||(s[l]=r[l]);r=s,o?Qu(o,u).apply(null,r):n.apply(null,[null].concat(r))}}u.apply(null,[null].concat(r))},use:function(r){if("function"!=typeofr)thrownewError("Expected `fn` to be a function, not "+r);returne.push(r),t}};returnt}varni={}.hasOwnProperty,ui=function(e){if(!e||"object"!=typeofe)return"";if(ni.call(e,"position")||ni.call(e,"type"))returnoi(e.position);if(ni.call(e,"start")||ni.call(e,"end"))returnoi(e);if(ni.call(e,"line")||ni.call(e,"column"))returnii(e);return""};functionii(e){returne&&"object"==typeofe||(e={}),ai(e.line)+":"+ai(e.column)}functionoi(e){returne&&"object"==typeofe||(e={}),ii(e.start)+"-"+ii(e.end)}functionai(e){returne&&"number"==typeofe?e:1}varsi=fi;functionci(){}ci.prototype=Error.prototype,fi.prototype=newci;varli=fi.prototype;functionfi(e,t,r){varn,u,i;"string"==typeoft&&(r=t,t=null),n=function(e){vart,r=[null,null];"string"==typeofe&&(-1===(t=e.indexOf(":"))?r[1]=e:(r[0]=e.slice(0,t),r[1]=e.slice(t+1)));returnr}(r),u=ui(t)||"1:1",i={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(i=t,t=t.start):i.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=u,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=i,this.source=n[0],this.ruleId=n[1]}functionDi(e,t){for(varr=0,n=e.length-1;n>=0;n--){varu=e[n];"."===u?e.splice(n,1):".."===u?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");returne}li.file="",li.name="",li.reason="",li.message="",li.stack="",li.fatal=null,li.column=null,li.line=null;varpi=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,hi=function(e){returnpi.exec(e).slice(1)};functiondi(){for(vare="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){varn=r>=0?arguments[r]:"/";if("string"!=typeofn)thrownewTypeError("Arguments to path.resolve must be strings");n&&(e=n+"/"+e,t="/"===n.charAt(0))}return(t?"/":"")+(e=Di(wi(e.split("/"),(function(e)
`,cliCategory:vc},endOfLine:{since:"1.15.0",category:Cc,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:Ec`
Maintainexisting
(mixedvalueswithinonefilearenormalisedbylookingatwhat's used after the first line)
`}]},filepath:{since:"1.4.0",category:Ac,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:bc,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:Ac,type:"boolean",default:!1,description:"Insert @format pragma into file'sfirstdocblockcomment.",cliCategory:bc},parser:{since:"0.0.10",category:Cc,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Whichparsertouse.",exception:e=>"string"==typeof e||"function"==typeof e,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:"LightningWebComponents"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:Cc,description:"Addaplugin.Multiplepluginscanbepassedasseparate`--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:yc},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:Cc,description:Ec`
Custom directory that contains prettier plugins in node_modules subdirectory.
Overrides default behavior when plugins are searched relatively to the location of Prettier.