!function(t,e){"object"==typeofexports&&"undefined"!=typeofmodule?module.exports=e():"function"==typeofdefine&&define.amd?define(e):((t="undefined"!=typeofglobalThis?globalThis:t||self).prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.glimmer=e())}(this,(function(){"use strict";vart=function(t,e,r){returnt(r={path:e,exports:{},require:function(t,e){returnfunction(){thrownewError("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&r.path)}},r.exports),r.exports}((function(t,e){varr="\n",n=function(){functiont(t){this.string=t;for(vare=[0],n=0;n<t.length;)switch(t[n]){caser:n+=r.length,e.push(n);break;case"\r":t[n+="\r".length]===r&&(n+=r.length),e.push(n);break;default:n++}this.offsets=e}returnt.prototype.locationForIndex=function(t){if(t<0||t>this.string.length)returnnull;for(vare=0,r=this.offsets;r[e+1]<=t;)e++;return{line:e,column:t-r[e]}},t.prototype.indexForLocation=function(t){vare=t.line,r=t.column;returne<0||e>=this.offsets.length||r<0||r>this.lengthOfLine(e)?null:this.offsets[e]+r},t.prototype.lengthOfLine=function(t){vare=this.offsets[t];return(t===this.offsets.length-1?this.string.length:this.offsets[t+1])-e},t}();e.__esModule=!0,e.default=n}));vare=function(t,e){constr=newSyntaxError(t+" ("+e.start.line+":"+e.start.column+")");returnr.loc=e,r};varr={locStart:function(t){returnt.loc.start.offset},locEnd:function(t){returnt.loc.end.offset}};Object.freeze([]);functionn(){returnObject.create(null)}const{keys:s}=Object;functiona(t){for(lete=1;e<arguments.length;e++){letr=arguments[e];if(null===r||"object"!=typeofr)continue;letn=s(r);for(lete=0;e<n.length;e++){lets=n[e];t[s]=r[s]}}returnt}consti=(...t)=>t;functiono(t){returnt.length>0}functionl(t,e="unexpected empty list"){if(!o(t))thrownewError(e)}constc=console;consth=Object.freeze({line:1,column:0}),u=Object.freeze({source:"(synthetic)",start:h,end:h}),p=(Object.freeze({source:"(temporary)",start:h,end:h}),Object.freeze({source:"(nonexistent)",start:h,end:h})),d=Object.freeze({source:"(broken)",start:h,end:h});classm{constructor(t){this.loc=t.loc,this.chars=t.chars}staticsynthetic(t){lete=M.synthetic(t);returnnewm({loc:e,chars:t})}staticload(t,e){returnnewm({loc:M.load(t,e[1]),chars:e[0]})}getString(){returnthis.chars}serialize(){return[this.chars,this.loc.serialize()]}}varf,g,b,y=function(t,e,r){if(!e.has(t))thrownewTypeError("attempted to set private field on non-instance");returne.set(t,r),r},k=function(t,e){if(!e.has(t))thrownewTypeError("attempted to get private field on non-instance");returne.get(t)};constv="MATCH_ANY",w="IS_INVISIBLE";classS{constructor(t){f.set(this,void0),y(this,f,t)}first(t){for(leteofk(this,f)){letr=e.match(t);if(o(r))returnr[0]}returnnull}}f=newWeakMap;classE{constructor(){g.set(this,newMap)}get(t,e){letr=k(this,g).get(t);returnr||(r=e(),k(this,g).set(t,r),r)}add(t,e){k(this,g).set(t,e)}match(t){lete=function(t){switch(t){case"Broken":case"InternalsSynthetic":case"NonExistent":returnw;default:returnt}}(t),r=[],n=k(this,g).get(e),s=k(this,g).get(v);returnn&&r.push(n),s&&r.push(s),r}}functionx(t){returnt(newN).check()}g=newWeakMap;classN{constructor(){b.set(this,newE)}check(){return(t,e)=>this.matchFor(t.kind,e.kind)(t,e)}matchFor(t,e){letr=k(this,b).match(t);returnnewS(r).first(e)}when(t,e,r){returnk(this,b).get(t,(()=>newE)).add(e,r),this}}b=newWeakMap;varT,P,A=function(t,e){if(!e.has(t))thrownewTypeError("attempted to get private field on non-instance");returne.get(t)},C=function(t,e,r){if(!e.has(t))thrownewTypeError("attempted to set private field on non-instance");returne.set(t,r),r};constL="BROKEN";classB{constructor(t){this.data=t}staticforHbsPos(t,e){returnnewO(t,e,null).wrap()}staticbroken(t=h){returnnew_("Broken",t).wrap()}getoffset(){lett=this.data.toCharPos();returnnull===t?null:t.offset}eql(t){returnD(this.data,t.data)}until(t){returnj(this.data,t.data)}move(t){lete=this.data.toCharPos();if(null===e)returnB.broken();{letr=e.offset+t;returne.source.check(r)?newq(e.source,