immosquare-cleaner 0.1.40 → 0.1.41

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/lib/immosquare-cleaner/version.rb +1 -1
  3. data/node_modules/@eslint/config-array/README.md +9 -3
  4. data/node_modules/@eslint/config-array/dist/cjs/index.cjs +1 -0
  5. data/node_modules/@eslint/config-array/dist/esm/index.js +1 -0
  6. data/node_modules/@eslint/config-array/package.json +2 -2
  7. data/node_modules/@eslint/eslintrc/node_modules/espree/LICENSE +25 -0
  8. data/node_modules/@eslint/eslintrc/node_modules/espree/README.md +244 -0
  9. data/node_modules/@eslint/eslintrc/node_modules/espree/dist/espree.cjs +883 -0
  10. data/node_modules/@eslint/eslintrc/node_modules/espree/espree.js +177 -0
  11. data/node_modules/@eslint/eslintrc/node_modules/espree/lib/espree.js +349 -0
  12. data/node_modules/@eslint/eslintrc/node_modules/espree/lib/features.js +27 -0
  13. data/node_modules/@eslint/eslintrc/node_modules/espree/lib/options.js +123 -0
  14. data/node_modules/@eslint/eslintrc/node_modules/espree/lib/token-translator.js +263 -0
  15. data/node_modules/@eslint/eslintrc/node_modules/espree/lib/version.js +3 -0
  16. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/CHANGELOG.md +880 -0
  17. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/LICENSE +21 -0
  18. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/README.md +283 -0
  19. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/bin/acorn +4 -0
  20. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/acorn.d.mts +857 -0
  21. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/acorn.d.ts +857 -0
  22. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/acorn.js +6002 -0
  23. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/acorn.mjs +5973 -0
  24. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/dist/bin.js +90 -0
  25. data/node_modules/@eslint/eslintrc/node_modules/espree/node_modules/acorn/package.json +50 -0
  26. data/node_modules/@eslint/eslintrc/node_modules/espree/package.json +86 -0
  27. data/node_modules/@eslint/js/package.json +1 -1
  28. data/node_modules/@eslint-community/regexpp/index.d.ts +19 -5
  29. data/node_modules/@eslint-community/regexpp/index.js +138 -17
  30. data/node_modules/@eslint-community/regexpp/index.js.map +1 -1
  31. data/node_modules/@eslint-community/regexpp/index.mjs +138 -17
  32. data/node_modules/@eslint-community/regexpp/index.mjs.map +1 -1
  33. data/node_modules/@eslint-community/regexpp/package.json +1 -3
  34. data/node_modules/acorn/CHANGELOG.md +24 -0
  35. data/node_modules/acorn/README.md +5 -6
  36. data/node_modules/acorn/dist/acorn.d.mts +8 -9
  37. data/node_modules/acorn/dist/acorn.d.ts +8 -9
  38. data/node_modules/acorn/dist/acorn.js +92 -29
  39. data/node_modules/acorn/dist/acorn.mjs +92 -29
  40. data/node_modules/acorn/package.json +3 -3
  41. data/node_modules/eslint/README.md +7 -8
  42. data/node_modules/eslint/conf/ecma-version.js +1 -1
  43. data/node_modules/eslint/conf/globals.js +6 -1
  44. data/node_modules/eslint/lib/cli.js +23 -2
  45. data/node_modules/eslint/lib/eslint/eslint-helpers.js +5 -0
  46. data/node_modules/eslint/lib/eslint/eslint.js +16 -2
  47. data/node_modules/eslint/lib/eslint/legacy-eslint.js +14 -0
  48. data/node_modules/eslint/lib/languages/js/index.js +10 -5
  49. data/node_modules/eslint/lib/languages/js/source-code/source-code.js +16 -6
  50. data/node_modules/eslint/lib/linter/apply-disable-directives.js +6 -3
  51. data/node_modules/eslint/lib/linter/config-comment-parser.js +3 -16
  52. data/node_modules/eslint/lib/linter/linter.js +194 -149
  53. data/node_modules/eslint/lib/linter/node-event-generator.js +2 -4
  54. data/node_modules/eslint/lib/linter/vfile.js +7 -0
  55. data/node_modules/eslint/lib/options.js +13 -1
  56. data/node_modules/eslint/lib/rules/no-restricted-imports.js +12 -5
  57. data/node_modules/eslint/lib/rules/no-unused-vars.js +34 -32
  58. data/node_modules/eslint/lib/rules/no-useless-backreference.js +81 -31
  59. data/node_modules/eslint/lib/rules/utils/regular-expressions.js +1 -1
  60. data/node_modules/eslint/lib/shared/flags.js +26 -0
  61. data/node_modules/eslint/lib/shared/logging.js +10 -1
  62. data/node_modules/eslint/lib/shared/types.js +1 -1
  63. data/node_modules/eslint/package.json +9 -13
  64. data/node_modules/eslint-scope/dist/eslint-scope.cjs +2 -2
  65. data/node_modules/eslint-scope/lib/referencer.js +1 -1
  66. data/node_modules/eslint-scope/lib/version.js +1 -1
  67. data/node_modules/eslint-scope/package.json +2 -2
  68. data/node_modules/espree/README.md +5 -5
  69. data/node_modules/espree/dist/espree.cjs +62 -6
  70. data/node_modules/espree/espree.js +1 -4
  71. data/node_modules/espree/lib/options.js +3 -2
  72. data/node_modules/espree/lib/token-translator.js +1 -1
  73. data/node_modules/espree/lib/version.js +1 -1
  74. data/node_modules/espree/package.json +7 -7
  75. data/node_modules/js-tokens/CHANGELOG.md +17 -0
  76. data/node_modules/js-tokens/LICENSE +1 -1
  77. data/node_modules/js-tokens/README.md +25 -7
  78. data/node_modules/js-tokens/index.js +3 -3
  79. data/node_modules/js-tokens/package.json +5 -5
  80. data/node_modules/jscodeshift/CHANGELOG.md +5 -0
  81. data/node_modules/jscodeshift/bin/jscodeshift.js +1 -1
  82. data/node_modules/jscodeshift/package.json +1 -2
  83. data/node_modules/jscodeshift/website/index.htm +9 -0
  84. data/node_modules/prettier/LICENSE +35 -34
  85. data/node_modules/prettier/doc.js +2 -2
  86. data/node_modules/prettier/doc.mjs +2 -2
  87. data/node_modules/prettier/index.cjs +8 -8
  88. data/node_modules/prettier/index.d.ts +1 -2
  89. data/node_modules/prettier/index.mjs +636 -704
  90. data/node_modules/prettier/internal/cli.mjs +4 -4
  91. data/node_modules/prettier/package.json +1 -1
  92. data/node_modules/prettier/plugins/acorn.js +14 -12
  93. data/node_modules/prettier/plugins/acorn.mjs +14 -12
  94. data/node_modules/prettier/plugins/angular.js +1 -1
  95. data/node_modules/prettier/plugins/angular.mjs +1 -1
  96. data/node_modules/prettier/plugins/babel.js +10 -11
  97. data/node_modules/prettier/plugins/babel.mjs +10 -11
  98. data/node_modules/prettier/plugins/estree.js +27 -27
  99. data/node_modules/prettier/plugins/estree.mjs +27 -27
  100. data/node_modules/prettier/plugins/flow.js +15 -16
  101. data/node_modules/prettier/plugins/flow.mjs +15 -16
  102. data/node_modules/prettier/plugins/glimmer.js +5 -5
  103. data/node_modules/prettier/plugins/glimmer.mjs +5 -5
  104. data/node_modules/prettier/plugins/graphql.js +8 -8
  105. data/node_modules/prettier/plugins/graphql.mjs +8 -8
  106. data/node_modules/prettier/plugins/html.js +17 -17
  107. data/node_modules/prettier/plugins/html.mjs +17 -17
  108. data/node_modules/prettier/plugins/markdown.js +44 -44
  109. data/node_modules/prettier/plugins/markdown.mjs +44 -44
  110. data/node_modules/prettier/plugins/meriyah.js +4 -5
  111. data/node_modules/prettier/plugins/meriyah.mjs +4 -5
  112. data/node_modules/prettier/plugins/postcss.js +26 -26
  113. data/node_modules/prettier/plugins/postcss.mjs +26 -26
  114. data/node_modules/prettier/plugins/typescript.js +15 -20
  115. data/node_modules/prettier/plugins/typescript.mjs +15 -20
  116. data/node_modules/prettier/plugins/yaml.js +6 -6
  117. data/node_modules/prettier/plugins/yaml.mjs +6 -6
  118. data/node_modules/prettier/standalone.js +31 -30
  119. data/node_modules/prettier/standalone.mjs +28 -27
  120. data/package.json +4 -4
  121. metadata +24 -2
@@ -1,9 +1,9 @@
1
1
  (function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.glimmer=e()}})(function(){"use strict";var zt=Object.defineProperty;var rs=Object.getOwnPropertyDescriptor;var ns=Object.getOwnPropertyNames;var ss=Object.prototype.hasOwnProperty;var Fr=t=>{throw TypeError(t)};var Gt=(t,e)=>{for(var r in e)zt(t,r,{get:e[r],enumerable:!0})},is=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of ns(e))!ss.call(t,s)&&s!==r&&zt(t,s,{get:()=>e[s],enumerable:!(n=rs(e,s))||n.enumerable});return t};var as=t=>is(zt({},"__esModule",{value:!0}),t);var Mr=(t,e,r)=>e.has(t)||Fr("Cannot "+r);var $=(t,e,r)=>(Mr(t,e,"read from private field"),r?r.call(t):e.get(t)),Yt=(t,e,r)=>e.has(t)?Fr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Kt=(t,e,r,n)=>(Mr(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var ba={};Gt(ba,{languages:()=>Sn,parsers:()=>Rr,printers:()=>ga});var os=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},Wt=os;var ze="string",Ge="array",Ye="cursor",Le="indent",_e="align",Ke="trim",De="group",Oe="fill",Be="if-break",We="indent-if-break",$e="line-suffix",je="line-suffix-boundary",ee="line",Qe="label",Ie="break-parent",ft=new Set([Ye,Le,_e,Ke,De,Oe,Be,We,$e,je,ee,Qe,Ie]);function ls(t){if(typeof t=="string")return ze;if(Array.isArray(t))return Ge;if(!t)return;let{type:e}=t;if(ft.has(e))return e}var Xe=ls;var cs=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function us(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
2
2
  Expected it to be 'string' or 'object'.`;if(Xe(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=cs([...ft].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'.
3
3
  Expected it to be ${n}.`}var $t=class extends Error{name="InvalidDocError";constructor(e){super(us(e)),this.doc=e}},jt=$t;var zr=()=>{},be=zr,dt=zr;function R(t){return be(t),{type:Le,contents:t}}function hs(t,e){return be(e),{type:_e,contents:e,n:t}}function q(t,e={}){return be(t),dt(e.expandedStates,!0),{type:De,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function Qt(t){return hs(-1,t)}function Xt(t){return dt(t),{type:Oe,parts:t}}function Jt(t,e="",r={}){return be(t),e!==""&&be(e),{type:Be,breakContents:t,flatContents:e,groupId:r.groupId}}var Gr={type:Ie};var ps={type:ee,hard:!0},fs={type:ee,hard:!0,literal:!0},D={type:ee},Y={type:ee,soft:!0},ye=[ps,Gr],Yr=[fs,Gr];function Ee(t,e){be(t),dt(e);let r=[];for(let n=0;n<e.length;n++)n!==0&&r.push(t),r.push(e[n]);return r}var ds=(t,e,r)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},oe=ds;function ms(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(i){if(r.has(i))return r.get(i);let a=s(i);return r.set(i,a),a}function s(i){switch(Xe(i)){case Ge:return e(i.map(n));case Oe:return e({...i,parts:i.parts.map(n)});case Be:return e({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case De:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(n),o=a[0]):o=n(o),e({...i,contents:o,expandedStates:a})}case _e:case Le:case We:case Qe:case $e:return e({...i,contents:n(i.contents)});case ze:case Ye:case Ke:case je:case ee:case Ie:return e(i);default:throw new jt(i)}}}function Kr(t,e=Yr){return ms(t,r=>typeof r=="string"?Ee(e,r.split(`
4
- `)):r)}var mt="'",Wr='"';function gs(t,e){let r=e===!0||e===mt?mt:Wr,n=r===mt?Wr:mt,s=0,i=0;for(let a of t)a===r?s++:a===n&&i++;return s>i?n:r}var gt=gs;function Zt(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var G,er=class{constructor(e){Yt(this,G);Kt(this,G,new Set(e))}getLeadingWhitespaceCount(e){let r=$(this,G),n=0;for(let s=0;s<e.length&&r.has(e.charAt(s));s++)n++;return n}getTrailingWhitespaceCount(e){let r=$(this,G),n=0;for(let s=e.length-1;s>=0&&r.has(e.charAt(s));s--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return $(this,G).has(e.charAt(0))}hasTrailingWhitespace(e){return $(this,G).has(oe(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${Zt([...$(this,G)].join(""))}]+`,s=new RegExp(r?`(${n})`:n);return e.split(s)}hasWhitespaceCharacter(e){let r=$(this,G);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=$(this,G);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=$(this,G);return Array.prototype.every.call(e,n=>r.has(n))}};G=new WeakMap;var $r=er;var bs=[" ",`
5
- `,"\f","\r"," "],ys=new $r(bs),K=ys;function Es(t){return Array.isArray(t)&&t.length>0}var Je=Es;var tr=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},jr=tr;function Qr(t,e){if(t.type==="TextNode"){let r=t.chars.trim();if(!r)return null;e.chars=K.split(r).join(" ")}t.type==="ElementNode"&&(delete e.startTag,delete e.openTag,delete e.parts,delete e.endTag,delete e.closeTag,delete e.nameNode,delete e.body,delete e.blockParamNodes,delete e.params,delete e.path),t.type==="Block"&&(delete e.blockParamNodes,delete e.params),t.type==="AttrNode"&&t.name.toLowerCase()==="class"&&delete e.value,t.type==="PathExpression"&&(e.head=t.head.original)}Qr.ignoredProperties=new Set(["loc","selfClosing"]);var Xr=Qr;var Ze=null;function et(t){if(Ze!==null&&typeof Ze.property){let e=Ze;return Ze=et.prototype=null,e}return Ze=et.prototype=t??Object.create(null),new et}var Ss=10;for(let t=0;t<=Ss;t++)et();function rr(t){return et(t)}function ws(t,e="type"){rr(t);function r(n){let s=n[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var Jr=ws;var Zr={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]};var ks=Jr(Zr),en=ks;function Se(t){return t.loc.start.offset}function tt(t){return t.loc.end.offset}var tn=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function nn(t){return t.toUpperCase()===t}function Ts(t){return t.type==="ElementNode"&&typeof t.tag=="string"&&!t.tag.startsWith(":")&&(nn(t.tag[0])||t.tag.includes("."))}function Ns(t){return tn.has(t.toLowerCase())&&!nn(t[0])}function nr(t){return t.selfClosing===!0||Ns(t.tag)||Ts(t)&&t.children.every(e=>bt(e))}function bt(t){return t.type==="TextNode"&&!/\S/.test(t.chars)}function rn(t){return(t==null?void 0:t.type)==="MustacheCommentStatement"&&typeof t.value=="string"&&t.value.trim()==="prettier-ignore"}function sn(t){return rn(t.node)||t.isInArray&&(t.key==="children"||t.key==="body"||t.key==="parts")&&rn(t.siblings[t.index-2])}var fn=2;function vs(t,e,r){var s,i,a,o,c,p,h,d,N;let{node:n}=t;switch(n.type){case"Block":case"Program":case"Template":return q(t.map(r,"body"));case"ElementNode":{let g=q(Ps(t,r)),T=e.htmlWhitespaceSensitivity==="ignore"&&((s=t.next)==null?void 0:s.type)==="ElementNode"?Y:"";if(nr(n))return[g,T];let x=["</",n.tag,">"];return n.children.length===0?[g,R(x),T]:e.htmlWhitespaceSensitivity==="ignore"?[g,R(an(t,e,r)),ye,R(x),T]:[g,R(q(an(t,e,r))),R(x),T]}case"BlockStatement":return Os(t)?[Bs(t,r),cn(t,r,e),un(t,r,e)]:[_s(t,r),q([cn(t,r,e),un(t,r,e),Is(t,r,e)])];case"ElementModifierStatement":return q(["{{",pn(t,r),"}}"]);case"MustacheStatement":return q([yt(n),pn(t,r),Et(n)]);case"SubExpression":return q(["(",Ms(t,r),Y,")"]);case"AttrNode":{let{name:g,value:T}=n,x=T.type==="TextNode";if(x&&T.chars===""&&Se(T)===tt(T))return g;let v=x?gt(T.chars,e.singleQuote):T.type==="ConcatStatement"?gt(T.parts.map(H=>H.type==="TextNode"?H.chars:"").join(""),e.singleQuote):"",M=r("value");return[g,"=",v,g==="class"&&v?q(R(M)):M,v]}case"ConcatStatement":return t.map(r,"parts");case"Hash":return Ee(D,t.map(r,"pairs"));case"HashPair":return[n.key,"=",r("value")];case"TextNode":{let g=Wt(!1,n.chars,"{{",String.raw`\{{`),T=qs(t);if(T){if(T==="class"){let J=g.trim().split(/\s+/).join(" "),re=!1,V=!1;return t.parent.type==="ConcatStatement"&&(((i=t.previous)==null?void 0:i.type)==="MustacheStatement"&&/^\s/.test(g)&&(re=!0),((a=t.next)==null?void 0:a.type)==="MustacheStatement"&&/\s$/.test(g)&&J!==""&&(V=!0)),[re?D:"",J,V?D:""]}return Kr(g)}let x=K.isWhitespaceOnly(g),{isFirst:C,isLast:v}=t;if(e.htmlWhitespaceSensitivity!=="ignore"){let J=v&&t.parent.type==="Template",re=C&&t.parent.type==="Template";if(x){if(re||J)return"";let _=[D],se=Re(g);return se&&(_=rt(se)),v&&(_=_.map(ut=>Qt(ut))),_}let V=K.getLeadingWhitespace(g),Pe=[];if(V){Pe=[D];let _=Re(V);_&&(Pe=rt(_)),g=g.slice(V.length)}let U=K.getTrailingWhitespace(g),ne=[];if(U){if(!J){ne=[D];let _=Re(U);_&&(ne=rt(_)),v&&(ne=ne.map(se=>Qt(se)))}g=g.slice(0,-U.length)}return[...Pe,Xt(hn(g)),...ne]}let M=Re(g),H=Hs(g),X=Vs(g);if((C||v)&&x&&(t.parent.type==="Block"||t.parent.type==="ElementNode"||t.parent.type==="Template"))return"";x&&M?(H=Math.min(M,fn),X=0):((((o=t.next)==null?void 0:o.type)==="BlockStatement"||((c=t.next)==null?void 0:c.type)==="ElementNode")&&(X=Math.max(X,1)),(((p=t.previous)==null?void 0:p.type)==="BlockStatement"||((h=t.previous)==null?void 0:h.type)==="ElementNode")&&(H=Math.max(H,1)));let ve="",Ae="";return X===0&&((d=t.next)==null?void 0:d.type)==="MustacheStatement"&&(Ae=" "),H===0&&((N=t.previous)==null?void 0:N.type)==="MustacheStatement"&&(ve=" "),C&&(H=0,ve=""),v&&(X=0,Ae=""),K.hasLeadingWhitespace(g)&&(g=ve+K.trimStart(g)),K.hasTrailingWhitespace(g)&&(g=K.trimEnd(g)+Ae),[...rt(H),Xt(hn(g)),...rt(X)]}case"MustacheCommentStatement":{let g=Se(n),T=tt(n),x=e.originalText.charAt(g+2)==="~",C=e.originalText.charAt(T-3)==="~",v=n.value.includes("}}")?"--":"";return["{{",x?"~":"","!",v,n.value,v,C?"~":"","}}"]}case"PathExpression":return Ks(n);case"BooleanLiteral":return String(n.value);case"CommentStatement":return["<!--",n.value,"-->"];case"StringLiteral":return Us(t,e);case"NumberLiteral":return String(n.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";case"AtHead":case"VarHead":case"ThisHead":default:throw new jr(n,"Handlebars")}}function As(t,e){return Se(t)-Se(e)}function Ps(t,e){let{node:r}=t,n=["attributes","modifiers","comments"].filter(i=>Je(r[i])),s=n.flatMap(i=>r[i]).sort(As);for(let i of n)t.each(({node:a})=>{let o=s.indexOf(a);s.splice(o,1,[D,e()])},i);return Je(r.blockParams)&&s.push(D,ir(r)),["<",r.tag,R(s),xs(r)]}function an(t,e,r){let{node:n}=t,s=n.children.every(i=>bt(i));return e.htmlWhitespaceSensitivity==="ignore"&&s?"":t.map(({isFirst:i})=>{let a=r();return i&&e.htmlWhitespaceSensitivity==="ignore"?[Y,a]:a},"children")}function xs(t){return nr(t)?Jt([Y,"/>"],[" />",Y]):Jt([Y,">"],">")}function yt(t){var n;let e=t.trusting?"{{{":"{{",r=(n=t.strip)!=null&&n.open?"~":"";return[e,r]}function Et(t){var n;let e=t.trusting?"}}}":"}}";return[(n=t.strip)!=null&&n.close?"~":"",e]}function Cs(t){let e=yt(t),r=t.openStrip.open?"~":"";return[e,r,"#"]}function Ls(t){let e=Et(t);return[t.openStrip.close?"~":"",e]}function on(t){let e=yt(t),r=t.closeStrip.open?"~":"";return[e,r,"/"]}function ln(t){let e=Et(t);return[t.closeStrip.close?"~":"",e]}function dn(t){let e=yt(t),r=t.inverseStrip.open?"~":"";return[e,r]}function mn(t){let e=Et(t);return[t.inverseStrip.close?"~":"",e]}function _s(t,e){let{node:r}=t,n=[],s=St(t,e);return s&&n.push(q(s)),Je(r.program.blockParams)&&n.push(ir(r.program)),q([Cs(r),sr(t,e),n.length>0?R([D,Ee(D,n)]):"",Y,Ls(r)])}function Ds(t,e){return[e.htmlWhitespaceSensitivity==="ignore"?ye:"",dn(t),"else",mn(t)]}var gn=(t,e)=>t.head.type==="VarHead"&&e.head.type==="VarHead"&&t.head.name===e.head.name;function Os(t){var n;let{grandparent:e,node:r}=t;return((n=e==null?void 0:e.inverse)==null?void 0:n.body.length)===1&&e.inverse.body[0]===r&&gn(e.inverse.body[0].path,e.path)}function Bs(t,e){let{node:r,grandparent:n}=t;return q([dn(n),["else"," ",n.inverse.body[0].path.head.name],R([D,q(St(t,e)),...Je(r.program.blockParams)?[D,ir(r.program)]:[]]),Y,mn(n)])}function Is(t,e,r){let{node:n}=t;return r.htmlWhitespaceSensitivity==="ignore"?[bn(n)?Y:ye,on(n),e("path"),ln(n)]:[on(n),e("path"),ln(n)]}function bn(t){return t.type==="BlockStatement"&&t.program.body.every(e=>bt(e))}function Rs(t){return yn(t)&&t.inverse.body.length===1&&t.inverse.body[0].type==="BlockStatement"&&gn(t.inverse.body[0].path,t.path)}function yn(t){return t.type==="BlockStatement"&&t.inverse}function cn(t,e,r){let{node:n}=t;if(bn(n))return"";let s=e("program");return r.htmlWhitespaceSensitivity==="ignore"?R([ye,s]):R(s)}function un(t,e,r){let{node:n}=t,s=e("inverse"),i=r.htmlWhitespaceSensitivity==="ignore"?[ye,s]:s;return Rs(n)?i:yn(n)?[Ds(n,r),R(i)]:""}function hn(t){return Ee(D,K.split(t))}function qs(t){for(let e=0;e<2;e++){let r=t.getParentNode(e);if((r==null?void 0:r.type)==="AttrNode")return r.name.toLowerCase()}}function Re(t){return t=typeof t=="string"?t:"",t.split(`
6
- `).length-1}function Hs(t){t=typeof t=="string"?t:"";let e=(t.match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"";return Re(e)}function Vs(t){t=typeof t=="string"?t:"";let e=(t.match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"";return Re(e)}function rt(t=0){return Array.from({length:Math.min(t,fn)}).fill(ye)}function Us(t,e){let{node:{value:r}}=t,n=gt(r,Fs(t)?!e.singleQuote:e.singleQuote);return[n,Wt(!1,r,n,`\\${n}`),n]}function Fs(t){let{ancestors:e}=t,r=e.findIndex(n=>n.type!=="SubExpression");return r!==-1&&e[r+1].type==="ConcatStatement"&&e[r+2].type==="AttrNode"}function Ms(t,e){let r=sr(t,e),n=St(t,e);return n?R([r,D,q(n)]):r}function pn(t,e){let r=sr(t,e),n=St(t,e);return n?[R([r,D,n]),Y]:r}function sr(t,e){return e("path")}function St(t,e){var s;let{node:r}=t,n=[];return r.params.length>0&&n.push(...t.map(e,"params")),((s=r.hash)==null?void 0:s.pairs.length)>0&&n.push(e("hash")),n.length===0?"":Ee(D,n)}function ir(t){return["as |",t.blockParams.join(" "),"|"]}var zs=new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~"),Gs=new Set(["true","false","null","undefined"]),Ys=(t,e)=>e===0&&t.startsWith("@")?!1:e!==0&&Gs.has(t)||/\s/.test(t)||/^\d/.test(t)||Array.prototype.some.call(t,r=>zs.has(r));function Ks(t){return t.tail.length===0&&t.original.includes("/")?t.original:[t.head.original,...t.tail].map((r,n)=>Ys(r,n)?`[${r}]`:r).join(".")}var Ws={print:vs,massageAstNode:Xr,hasPrettierIgnore:sn,getVisitorKeys:en},En=Ws;var Sn=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}];var Rr={};Gt(Rr,{glimmer:()=>ma});var $s=Object.freeze([]);function kn(){return $s}var Do=kn(),Oo=kn();function w(t,e){if(!t)throw new Error(e||"assertion failure")}function F(t){ri.warn(`DEPRECATION: ${t}`)}function kt(t){if(t==null)throw new Error("Expected value to be present");return t}function Tn(t,e){if(t==null)throw new Error(e);return t}function we(t){return t.length>0}function Tt(t,e="unexpected empty list"){if(!we(t))throw new Error(e)}function qe(t,e="unexpected empty list"){return Tt(t,e),t}function Nt(t){return t.length===0?void 0:t[t.length-1]}function Nn(t){return t.length===0?void 0:t[0]}var js;if(!1){let t=n=>{let s=n.name;if(s===void 0){let i=/function (\w+)\s*\(/u.exec(String(n));s=i&&i[1]||""}return s.replace(/^bound /u,"")},e=n=>{let s,i;return n.constructor&&typeof n.constructor=="function"&&(i=t(n.constructor)),"toString"in n&&n.toString!==Object.prototype.toString&&n.toString!==Function.prototype.toString&&(s=n.toString()),s&&/<.*:ember\d+>/u.test(s)&&i&&i[0]!=="_"&&i.length>2&&i!=="Class"?s.replace(/<.*:/u,`<${i}:`):s||i},r=n=>String(n);js=n=>typeof n=="function"?t(n)||"(unknown function)":typeof n=="object"&&n!==null?e(n)||"(unknown object)":r(n)}var ar=function(t){return t[t.MAX_SMI=1073741823]="MAX_SMI",t[t.MIN_SMI=-1073741824]="MIN_SMI",t[t.SIGN_BIT=-536870913]="SIGN_BIT",t[t.MAX_INT=536870911]="MAX_INT",t[t.MIN_INT=-536870912]="MIN_INT",t[t.FALSE_HANDLE=0]="FALSE_HANDLE",t[t.TRUE_HANDLE=1]="TRUE_HANDLE",t[t.NULL_HANDLE=2]="NULL_HANDLE",t[t.UNDEFINED_HANDLE=3]="UNDEFINED_HANDLE",t[t.ENCODED_FALSE_HANDLE=0]="ENCODED_FALSE_HANDLE",t[t.ENCODED_TRUE_HANDLE=1]="ENCODED_TRUE_HANDLE",t[t.ENCODED_NULL_HANDLE=2]="ENCODED_NULL_HANDLE",t[t.ENCODED_UNDEFINED_HANDLE=3]="ENCODED_UNDEFINED_HANDLE",t}({});function Qs(t){return t&ar.SIGN_BIT}function Xs(t){return t|~ar.SIGN_BIT}function Js(t){return~t}function Zs(t){return~t}function ei(t){return t|=0,t<0?Qs(t):Js(t)}function ti(t){return t|=0,t>ar.SIGN_BIT?Zs(t):Xs(t)}[1,-1].forEach(t=>ti(ei(t)));var or=Object.assign;var ri=console,wn=console;function vn(t,e="unexpected unreachable branch"){throw wn.log("unreachable",t),wn.log(`${e} :: ${JSON.stringify(t)} (${t})`),new Error("code reached unreachable")}var ni=function(){var t=function(ie,m,E,b){for(E=E||{},b=ie.length;b--;E[ie[b]]=m);return E},e=[2,44],r=[1,20],n=[5,14,15,19,29,34,39,44,47,48,52,56,60],s=[1,35],i=[1,38],a=[1,30],o=[1,31],c=[1,32],p=[1,33],h=[1,34],d=[1,37],N=[14,15,19,29,34,39,44,47,48,52,56,60],g=[14,15,19,29,34,44,47,48,52,56,60],T=[15,18],x=[14,15,19,29,34,47,48,52,56,60],C=[33,64,71,79,80,81,82,83,84],v=[23,33,55,64,67,71,74,79,80,81,82,83,84],M=[1,51],H=[23,33,55,64,67,71,74,79,80,81,82,83,84,86],X=[2,43],ve=[55,64,71,79,80,81,82,83,84],Ae=[1,58],J=[1,59],re=[1,66],V=[33,64,71,74,79,80,81,82,83,84],Pe=[23,64,71,79,80,81,82,83,84],U=[1,76],ne=[64,67,71,79,80,81,82,83,84],_=[33,74],se=[23,33,55,67,71,74],ut=[1,106],It=[1,118],qr=[71,76],Rt={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,expr:49,mustache_repetition0:50,mustache_option0:51,OPEN_UNESCAPED:52,mustache_repetition1:53,mustache_option1:54,CLOSE_UNESCAPED:55,OPEN_PARTIAL:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,sexpr:63,OPEN_SEXPR:64,sexpr_repetition0:65,sexpr_option0:66,CLOSE_SEXPR:67,hash:68,hash_repetition_plus0:69,hashSegment:70,ID:71,EQUALS:72,blockParams:73,OPEN_BLOCK_PARAMS:74,blockParams_repetition_plus0:75,CLOSE_BLOCK_PARAMS:76,path:77,dataName:78,STRING:79,NUMBER:80,BOOLEAN:81,UNDEFINED:82,NULL:83,DATA:84,pathSegments:85,SEP:86,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",52:"OPEN_UNESCAPED",55:"CLOSE_UNESCAPED",56:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",64:"OPEN_SEXPR",67:"CLOSE_SEXPR",71:"ID",72:"EQUALS",74:"OPEN_BLOCK_PARAMS",76:"CLOSE_BLOCK_PARAMS",79:"STRING",80:"NUMBER",81:"BOOLEAN",82:"UNDEFINED",83:"NULL",84:"DATA",86:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[49,1],[49,1],[63,5],[68,1],[70,3],[73,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[78,2],[77,1],[85,3],[85,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[50,0],[50,2],[51,0],[51,1],[53,0],[53,2],[54,0],[54,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[65,0],[65,2],[66,0],[66,1],[69,1],[69,2],[75,1],[75,2]],performAction:function(m,E,b,y,P,l,xe){var u=l.length-1;switch(P){case 1:return l[u-1];case 2:this.$=y.prepareProgram(l[u]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:this.$=l[u];break;case 9:this.$={type:"CommentStatement",value:y.stripComment(l[u]),strip:y.stripFlags(l[u],l[u]),loc:y.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[u],value:l[u],loc:y.locInfo(this._$)};break;case 11:this.$=y.prepareRawBlock(l[u-2],l[u-1],l[u],this._$);break;case 12:this.$={path:l[u-3],params:l[u-2],hash:l[u-1]};break;case 13:this.$=y.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!1,this._$);break;case 14:this.$=y.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!0,this._$);break;case 15:this.$={open:l[u-5],path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:y.stripFlags(l[u-5],l[u])};break;case 16:case 17:this.$={path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:y.stripFlags(l[u-5],l[u])};break;case 18:this.$={strip:y.stripFlags(l[u-1],l[u-1]),program:l[u]};break;case 19:var ae=y.prepareBlock(l[u-2],l[u-1],l[u],l[u],!1,this._$),Me=y.prepareProgram([ae],l[u-1].loc);Me.chained=!0,this.$={strip:l[u-2].strip,program:Me,chain:!0};break;case 21:this.$={path:l[u-1],strip:y.stripFlags(l[u-2],l[u])};break;case 22:case 23:this.$=y.prepareMustache(l[u-3],l[u-2],l[u-1],l[u-4],y.stripFlags(l[u-4],l[u]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[u-3],params:l[u-2],hash:l[u-1],indent:"",strip:y.stripFlags(l[u-4],l[u]),loc:y.locInfo(this._$)};break;case 25:this.$=y.preparePartialBlock(l[u-2],l[u-1],l[u],this._$);break;case 26:this.$={path:l[u-3],params:l[u-2],hash:l[u-1],strip:y.stripFlags(l[u-4],l[u])};break;case 29:this.$={type:"SubExpression",path:l[u-3],params:l[u-2],hash:l[u-1],loc:y.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[u],loc:y.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:y.id(l[u-2]),value:l[u],loc:y.locInfo(this._$)};break;case 32:this.$=y.id(l[u-1]);break;case 35:this.$={type:"StringLiteral",value:l[u],original:l[u],loc:y.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[u]),original:Number(l[u]),loc:y.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[u]==="true",original:l[u]==="true",loc:y.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:y.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:y.locInfo(this._$)};break;case 40:this.$=y.preparePath(!0,l[u],this._$);break;case 41:this.$=y.preparePath(!1,l[u],this._$);break;case 42:l[u-2].push({part:y.id(l[u]),original:l[u],separator:l[u-1]}),this.$=l[u-2];break;case 43:this.$=[{part:y.id(l[u]),original:l[u]}];break;case 44:case 46:case 48:case 56:case 62:case 68:case 76:case 80:case 84:case 88:case 92:this.$=[];break;case 45:case 47:case 49:case 57:case 63:case 69:case 77:case 81:case 85:case 89:case 93:case 97:case 99:l[u-1].push(l[u]);break;case 96:case 98:this.$=[l[u]];break}},table:[t([5,14,15,19,29,34,48,52,56,60],e,{3:1,4:2,6:3}),{1:[3]},{5:[1,4]},t([5,39,44,47],[2,2],{7:5,8:6,9:7,10:8,11:9,12:10,13:11,24:15,27:16,16:17,59:19,14:[1,12],15:r,19:[1,23],29:[1,21],34:[1,22],48:[1,13],52:[1,14],56:[1,18],60:[1,24]}),{1:[2,1]},t(n,[2,45]),t(n,[2,3]),t(n,[2,4]),t(n,[2,5]),t(n,[2,6]),t(n,[2,7]),t(n,[2,8]),t(n,[2,9]),{20:26,49:25,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:26,49:39,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(N,e,{6:3,4:40}),t(g,e,{6:3,4:41}),t(T,[2,46],{17:42}),{20:26,49:43,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(x,e,{6:3,4:44}),t([5,14,15,18,19,29,34,39,44,47,48,52,56,60],[2,10]),{20:45,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:46,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:47,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:26,49:48,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(C,[2,76],{50:49}),t(v,[2,27]),t(v,[2,28]),t(v,[2,33]),t(v,[2,34]),t(v,[2,35]),t(v,[2,36]),t(v,[2,37]),t(v,[2,38]),t(v,[2,39]),{20:26,49:50,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(v,[2,41],{86:M}),{71:i,85:52},t(H,X),t(ve,[2,80],{53:53}),{25:54,38:56,39:Ae,43:57,44:J,45:55,47:[2,52]},{28:60,43:61,44:J,47:[2,54]},{13:63,15:r,18:[1,62]},t(C,[2,84],{57:64}),{26:65,47:re},t(V,[2,56],{30:67}),t(V,[2,62],{35:68}),t(Pe,[2,48],{21:69}),t(C,[2,88],{61:70}),{20:26,33:[2,78],49:72,51:71,63:27,64:s,68:73,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(ne,[2,92],{65:77}),{71:[1,78]},t(v,[2,40],{86:M}),{20:26,49:80,54:79,55:[2,82],63:27,64:s,68:81,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{26:82,47:re},{47:[2,53]},t(N,e,{6:3,4:83}),{47:[2,20]},{20:84,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(x,e,{6:3,4:85}),{26:86,47:re},{47:[2,55]},t(n,[2,11]),t(T,[2,47]),{20:26,33:[2,86],49:88,58:87,63:27,64:s,68:89,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(n,[2,25]),{20:90,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(_,[2,58],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,31:91,49:92,68:93,64:s,71:U,79:a,80:o,81:c,82:p,83:h,84:d}),t(_,[2,64],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,36:94,49:95,68:96,64:s,71:U,79:a,80:o,81:c,82:p,83:h,84:d}),{20:26,22:97,23:[2,50],49:98,63:27,64:s,68:99,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:26,33:[2,90],49:101,62:100,63:27,64:s,68:102,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{33:[1,103]},t(C,[2,77]),{33:[2,79]},t([23,33,55,67,74],[2,30],{70:104,71:[1,105]}),t(se,[2,96]),t(H,X,{72:ut}),{20:26,49:108,63:27,64:s,66:107,67:[2,94],68:109,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(H,[2,42]),{55:[1,110]},t(ve,[2,81]),{55:[2,83]},t(n,[2,13]),{38:56,39:Ae,43:57,44:J,45:112,46:111,47:[2,74]},t(V,[2,68],{40:113}),{47:[2,18]},t(n,[2,14]),{33:[1,114]},t(C,[2,85]),{33:[2,87]},{33:[1,115]},{32:116,33:[2,60],73:117,74:It},t(V,[2,57]),t(_,[2,59]),{33:[2,66],37:119,73:120,74:It},t(V,[2,63]),t(_,[2,65]),{23:[1,121]},t(Pe,[2,49]),{23:[2,51]},{33:[1,122]},t(C,[2,89]),{33:[2,91]},t(n,[2,22]),t(se,[2,97]),{72:ut},{20:26,49:123,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{67:[1,124]},t(ne,[2,93]),{67:[2,95]},t(n,[2,23]),{47:[2,19]},{47:[2,75]},t(_,[2,70],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,41:125,49:126,68:127,64:s,71:U,79:a,80:o,81:c,82:p,83:h,84:d}),t(n,[2,24]),t(n,[2,21]),{33:[1,128]},{33:[2,61]},{71:[1,130],75:129},{33:[1,131]},{33:[2,67]},t(T,[2,12]),t(x,[2,26]),t(se,[2,31]),t(v,[2,29]),{33:[2,72],42:132,73:133,74:It},t(V,[2,69]),t(_,[2,71]),t(N,[2,15]),{71:[1,135],76:[1,134]},t(qr,[2,98]),t(g,[2,16]),{33:[1,136]},{33:[2,73]},{33:[2,32]},t(qr,[2,99]),t(N,[2,17])],defaultActions:{4:[2,1],55:[2,53],57:[2,20],61:[2,55],73:[2,79],81:[2,83],85:[2,18],89:[2,87],99:[2,51],102:[2,91],109:[2,95],111:[2,19],112:[2,75],117:[2,61],120:[2,67],133:[2,73],134:[2,32]},parseError:function(m,E){if(E.recoverable)this.trace(m);else{var b=new Error(m);throw b.hash=E,b}},parse:function(m){var E=this,b=[0],y=[],P=[null],l=[],xe=this.table,u="",ae=0,Me=0,Hr=0,Jn=2,Vr=1,Zn=l.slice.call(arguments,1),L=Object.create(this.lexer),me={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(me.yy[Ht]=this.yy[Ht]);L.setInput(m,me.yy),me.yy.lexer=L,me.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var Vt=L.yylloc;l.push(Vt);var es=L.options&&L.options.ranges;typeof me.yy.parseError=="function"?this.parseError=me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ya(W){b.length=b.length-2*W,P.length=P.length-W,l.length=l.length-W}for(var ts=function(){var W;return W=L.lex()||Vr,typeof W!="number"&&(W=E.symbols_[W]||W),W},I,Ut,ge,z,Ea,Ft,Ce={},ht,Z,Ur,pt;;){if(ge=b[b.length-1],this.defaultActions[ge]?z=this.defaultActions[ge]:((I===null||typeof I>"u")&&(I=ts()),z=xe[ge]&&xe[ge][I]),typeof z>"u"||!z.length||!z[0]){var Mt="";pt=[];for(ht in xe[ge])this.terminals_[ht]&&ht>Jn&&pt.push("'"+this.terminals_[ht]+"'");L.showPosition?Mt="Parse error on line "+(ae+1)+`:
4
+ `)):r)}var mt="'",Wr='"';function gs(t,e){let r=e===!0||e===mt?mt:Wr,n=r===mt?Wr:mt,s=0,i=0;for(let a of t)a===r?s++:a===n&&i++;return s>i?n:r}var gt=gs;function Zt(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var G,er=class{constructor(e){Yt(this,G);Kt(this,G,new Set(e))}getLeadingWhitespaceCount(e){let r=$(this,G),n=0;for(let s=0;s<e.length&&r.has(e.charAt(s));s++)n++;return n}getTrailingWhitespaceCount(e){let r=$(this,G),n=0;for(let s=e.length-1;s>=0&&r.has(e.charAt(s));s--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return $(this,G).has(e.charAt(0))}hasTrailingWhitespace(e){return $(this,G).has(oe(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${Zt([...$(this,G)].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return e.split(s)}hasWhitespaceCharacter(e){let r=$(this,G);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=$(this,G);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=$(this,G);return Array.prototype.every.call(e,n=>r.has(n))}};G=new WeakMap;var $r=er;var bs=[" ",`
5
+ `,"\f","\r"," "],ys=new $r(bs),K=ys;function Es(t){return Array.isArray(t)&&t.length>0}var Je=Es;var tr=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},jr=tr;function Qr(t,e){if(t.type==="TextNode"){let r=t.chars.trim();if(!r)return null;e.chars=K.split(r).join(" ")}t.type==="ElementNode"&&(delete e.startTag,delete e.openTag,delete e.parts,delete e.endTag,delete e.closeTag,delete e.nameNode,delete e.body,delete e.blockParamNodes,delete e.params,delete e.path),t.type==="Block"&&(delete e.blockParamNodes,delete e.params),t.type==="AttrNode"&&t.name.toLowerCase()==="class"&&delete e.value,t.type==="PathExpression"&&(e.head=t.head.original)}Qr.ignoredProperties=new Set(["loc","selfClosing"]);var Xr=Qr;var Ze=null;function et(t){if(Ze!==null&&typeof Ze.property){let e=Ze;return Ze=et.prototype=null,e}return Ze=et.prototype=t??Object.create(null),new et}var Ss=10;for(let t=0;t<=Ss;t++)et();function rr(t){return et(t)}function ws(t,e="type"){rr(t);function r(n){let s=n[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var Jr=ws;var Zr={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]};var ks=Jr(Zr),en=ks;function Se(t){return t.loc.start.offset}function tt(t){return t.loc.end.offset}var tn=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function nn(t){return t.toUpperCase()===t}function Ts(t){return t.type==="ElementNode"&&typeof t.tag=="string"&&!t.tag.startsWith(":")&&(nn(t.tag[0])||t.tag.includes("."))}function Ns(t){return tn.has(t.toLowerCase())&&!nn(t[0])}function nr(t){return t.selfClosing===!0||Ns(t.tag)||Ts(t)&&t.children.every(e=>bt(e))}function bt(t){return t.type==="TextNode"&&!/\S/u.test(t.chars)}function rn(t){return(t==null?void 0:t.type)==="MustacheCommentStatement"&&typeof t.value=="string"&&t.value.trim()==="prettier-ignore"}function sn(t){return rn(t.node)||t.isInArray&&(t.key==="children"||t.key==="body"||t.key==="parts")&&rn(t.siblings[t.index-2])}var fn=2;function vs(t,e,r){var s,i,a,o,c,p,h,d,N;let{node:n}=t;switch(n.type){case"Block":case"Program":case"Template":return q(t.map(r,"body"));case"ElementNode":{let g=q(Ps(t,r)),T=e.htmlWhitespaceSensitivity==="ignore"&&((s=t.next)==null?void 0:s.type)==="ElementNode"?Y:"";if(nr(n))return[g,T];let x=["</",n.tag,">"];return n.children.length===0?[g,R(x),T]:e.htmlWhitespaceSensitivity==="ignore"?[g,R(an(t,e,r)),ye,R(x),T]:[g,R(q(an(t,e,r))),R(x),T]}case"BlockStatement":return Os(t)?[Bs(t,r),cn(t,r,e),un(t,r,e)]:[_s(t,r),q([cn(t,r,e),un(t,r,e),Is(t,r,e)])];case"ElementModifierStatement":return q(["{{",pn(t,r),"}}"]);case"MustacheStatement":return q([yt(n),pn(t,r),Et(n)]);case"SubExpression":return q(["(",Ms(t,r),Y,")"]);case"AttrNode":{let{name:g,value:T}=n,x=T.type==="TextNode";if(x&&T.chars===""&&Se(T)===tt(T))return g;let v=x?gt(T.chars,e.singleQuote):T.type==="ConcatStatement"?gt(T.parts.map(H=>H.type==="TextNode"?H.chars:"").join(""),e.singleQuote):"",M=r("value");return[g,"=",v,g==="class"&&v?q(R(M)):M,v]}case"ConcatStatement":return t.map(r,"parts");case"Hash":return Ee(D,t.map(r,"pairs"));case"HashPair":return[n.key,"=",r("value")];case"TextNode":{let g=Wt(!1,n.chars,"{{",String.raw`\{{`),T=qs(t);if(T){if(T==="class"){let J=g.trim().split(/\s+/u).join(" "),re=!1,V=!1;return t.parent.type==="ConcatStatement"&&(((i=t.previous)==null?void 0:i.type)==="MustacheStatement"&&/^\s/u.test(g)&&(re=!0),((a=t.next)==null?void 0:a.type)==="MustacheStatement"&&/\s$/u.test(g)&&J!==""&&(V=!0)),[re?D:"",J,V?D:""]}return Kr(g)}let x=K.isWhitespaceOnly(g),{isFirst:C,isLast:v}=t;if(e.htmlWhitespaceSensitivity!=="ignore"){let J=v&&t.parent.type==="Template",re=C&&t.parent.type==="Template";if(x){if(re||J)return"";let _=[D],se=Re(g);return se&&(_=rt(se)),v&&(_=_.map(ut=>Qt(ut))),_}let V=K.getLeadingWhitespace(g),Pe=[];if(V){Pe=[D];let _=Re(V);_&&(Pe=rt(_)),g=g.slice(V.length)}let U=K.getTrailingWhitespace(g),ne=[];if(U){if(!J){ne=[D];let _=Re(U);_&&(ne=rt(_)),v&&(ne=ne.map(se=>Qt(se)))}g=g.slice(0,-U.length)}return[...Pe,Xt(hn(g)),...ne]}let M=Re(g),H=Hs(g),X=Vs(g);if((C||v)&&x&&(t.parent.type==="Block"||t.parent.type==="ElementNode"||t.parent.type==="Template"))return"";x&&M?(H=Math.min(M,fn),X=0):((((o=t.next)==null?void 0:o.type)==="BlockStatement"||((c=t.next)==null?void 0:c.type)==="ElementNode")&&(X=Math.max(X,1)),(((p=t.previous)==null?void 0:p.type)==="BlockStatement"||((h=t.previous)==null?void 0:h.type)==="ElementNode")&&(H=Math.max(H,1)));let ve="",Ae="";return X===0&&((d=t.next)==null?void 0:d.type)==="MustacheStatement"&&(Ae=" "),H===0&&((N=t.previous)==null?void 0:N.type)==="MustacheStatement"&&(ve=" "),C&&(H=0,ve=""),v&&(X=0,Ae=""),K.hasLeadingWhitespace(g)&&(g=ve+K.trimStart(g)),K.hasTrailingWhitespace(g)&&(g=K.trimEnd(g)+Ae),[...rt(H),Xt(hn(g)),...rt(X)]}case"MustacheCommentStatement":{let g=Se(n),T=tt(n),x=e.originalText.charAt(g+2)==="~",C=e.originalText.charAt(T-3)==="~",v=n.value.includes("}}")?"--":"";return["{{",x?"~":"","!",v,n.value,v,C?"~":"","}}"]}case"PathExpression":return Ks(n);case"BooleanLiteral":return String(n.value);case"CommentStatement":return["<!--",n.value,"-->"];case"StringLiteral":return Us(t,e);case"NumberLiteral":return String(n.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";case"AtHead":case"VarHead":case"ThisHead":default:throw new jr(n,"Handlebars")}}function As(t,e){return Se(t)-Se(e)}function Ps(t,e){let{node:r}=t,n=["attributes","modifiers","comments"].filter(i=>Je(r[i])),s=n.flatMap(i=>r[i]).sort(As);for(let i of n)t.each(({node:a})=>{let o=s.indexOf(a);s.splice(o,1,[D,e()])},i);return Je(r.blockParams)&&s.push(D,ir(r)),["<",r.tag,R(s),xs(r)]}function an(t,e,r){let{node:n}=t,s=n.children.every(i=>bt(i));return e.htmlWhitespaceSensitivity==="ignore"&&s?"":t.map(({isFirst:i})=>{let a=r();return i&&e.htmlWhitespaceSensitivity==="ignore"?[Y,a]:a},"children")}function xs(t){return nr(t)?Jt([Y,"/>"],[" />",Y]):Jt([Y,">"],">")}function yt(t){var n;let e=t.trusting?"{{{":"{{",r=(n=t.strip)!=null&&n.open?"~":"";return[e,r]}function Et(t){var n;let e=t.trusting?"}}}":"}}";return[(n=t.strip)!=null&&n.close?"~":"",e]}function Cs(t){let e=yt(t),r=t.openStrip.open?"~":"";return[e,r,"#"]}function Ls(t){let e=Et(t);return[t.openStrip.close?"~":"",e]}function on(t){let e=yt(t),r=t.closeStrip.open?"~":"";return[e,r,"/"]}function ln(t){let e=Et(t);return[t.closeStrip.close?"~":"",e]}function dn(t){let e=yt(t),r=t.inverseStrip.open?"~":"";return[e,r]}function mn(t){let e=Et(t);return[t.inverseStrip.close?"~":"",e]}function _s(t,e){let{node:r}=t,n=[],s=St(t,e);return s&&n.push(q(s)),Je(r.program.blockParams)&&n.push(ir(r.program)),q([Cs(r),sr(t,e),n.length>0?R([D,Ee(D,n)]):"",Y,Ls(r)])}function Ds(t,e){return[e.htmlWhitespaceSensitivity==="ignore"?ye:"",dn(t),"else",mn(t)]}var gn=(t,e)=>t.head.type==="VarHead"&&e.head.type==="VarHead"&&t.head.name===e.head.name;function Os(t){var n;let{grandparent:e,node:r}=t;return((n=e==null?void 0:e.inverse)==null?void 0:n.body.length)===1&&e.inverse.body[0]===r&&gn(e.inverse.body[0].path,e.path)}function Bs(t,e){let{node:r,grandparent:n}=t;return q([dn(n),["else"," ",n.inverse.body[0].path.head.name],R([D,q(St(t,e)),...Je(r.program.blockParams)?[D,ir(r.program)]:[]]),Y,mn(n)])}function Is(t,e,r){let{node:n}=t;return r.htmlWhitespaceSensitivity==="ignore"?[bn(n)?Y:ye,on(n),e("path"),ln(n)]:[on(n),e("path"),ln(n)]}function bn(t){return t.type==="BlockStatement"&&t.program.body.every(e=>bt(e))}function Rs(t){return yn(t)&&t.inverse.body.length===1&&t.inverse.body[0].type==="BlockStatement"&&gn(t.inverse.body[0].path,t.path)}function yn(t){return t.type==="BlockStatement"&&t.inverse}function cn(t,e,r){let{node:n}=t;if(bn(n))return"";let s=e("program");return r.htmlWhitespaceSensitivity==="ignore"?R([ye,s]):R(s)}function un(t,e,r){let{node:n}=t,s=e("inverse"),i=r.htmlWhitespaceSensitivity==="ignore"?[ye,s]:s;return Rs(n)?i:yn(n)?[Ds(n,r),R(i)]:""}function hn(t){return Ee(D,K.split(t))}function qs(t){for(let e=0;e<2;e++){let r=t.getParentNode(e);if((r==null?void 0:r.type)==="AttrNode")return r.name.toLowerCase()}}function Re(t){return t=typeof t=="string"?t:"",t.split(`
6
+ `).length-1}function Hs(t){t=typeof t=="string"?t:"";let e=(t.match(/^([^\S\n\r]*[\n\r])+/gu)||[])[0]||"";return Re(e)}function Vs(t){t=typeof t=="string"?t:"";let e=(t.match(/([\n\r][^\S\n\r]*)+$/gu)||[])[0]||"";return Re(e)}function rt(t=0){return Array.from({length:Math.min(t,fn)}).fill(ye)}function Us(t,e){let{node:{value:r}}=t,n=gt(r,Fs(t)?!e.singleQuote:e.singleQuote);return[n,Wt(!1,r,n,`\\${n}`),n]}function Fs(t){let{ancestors:e}=t,r=e.findIndex(n=>n.type!=="SubExpression");return r!==-1&&e[r+1].type==="ConcatStatement"&&e[r+2].type==="AttrNode"}function Ms(t,e){let r=sr(t,e),n=St(t,e);return n?R([r,D,q(n)]):r}function pn(t,e){let r=sr(t,e),n=St(t,e);return n?[R([r,D,n]),Y]:r}function sr(t,e){return e("path")}function St(t,e){var s;let{node:r}=t,n=[];return r.params.length>0&&n.push(...t.map(e,"params")),((s=r.hash)==null?void 0:s.pairs.length)>0&&n.push(e("hash")),n.length===0?"":Ee(D,n)}function ir(t){return["as |",t.blockParams.join(" "),"|"]}var zs=new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~"),Gs=new Set(["true","false","null","undefined"]),Ys=(t,e)=>e===0&&t.startsWith("@")?!1:e!==0&&Gs.has(t)||/\s/u.test(t)||/^\d/u.test(t)||Array.prototype.some.call(t,r=>zs.has(r));function Ks(t){return t.tail.length===0&&t.original.includes("/")?t.original:[t.head.original,...t.tail].map((r,n)=>Ys(r,n)?`[${r}]`:r).join(".")}var Ws={print:vs,massageAstNode:Xr,hasPrettierIgnore:sn,getVisitorKeys:en},En=Ws;var Sn=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}];var Rr={};Gt(Rr,{glimmer:()=>ma});var $s=Object.freeze([]);function kn(){return $s}var Do=kn(),Oo=kn();function w(t,e){if(!t)throw new Error(e||"assertion failure")}function F(t){ri.warn(`DEPRECATION: ${t}`)}function kt(t){if(t==null)throw new Error("Expected value to be present");return t}function Tn(t,e){if(t==null)throw new Error(e);return t}function we(t){return t.length>0}function Tt(t,e="unexpected empty list"){if(!we(t))throw new Error(e)}function qe(t,e="unexpected empty list"){return Tt(t,e),t}function Nt(t){return t.length===0?void 0:t[t.length-1]}function Nn(t){return t.length===0?void 0:t[0]}var js;if(!1){let t=n=>{let s=n.name;if(s===void 0){let i=/function (\w+)\s*\(/u.exec(String(n));s=i&&i[1]||""}return s.replace(/^bound /u,"")},e=n=>{let s,i;return n.constructor&&typeof n.constructor=="function"&&(i=t(n.constructor)),"toString"in n&&n.toString!==Object.prototype.toString&&n.toString!==Function.prototype.toString&&(s=n.toString()),s&&/<.*:ember\d+>/u.test(s)&&i&&i[0]!=="_"&&i.length>2&&i!=="Class"?s.replace(/<.*:/u,`<${i}:`):s||i},r=n=>String(n);js=n=>typeof n=="function"?t(n)||"(unknown function)":typeof n=="object"&&n!==null?e(n)||"(unknown object)":r(n)}var ar=function(t){return t[t.MAX_SMI=1073741823]="MAX_SMI",t[t.MIN_SMI=-1073741824]="MIN_SMI",t[t.SIGN_BIT=-536870913]="SIGN_BIT",t[t.MAX_INT=536870911]="MAX_INT",t[t.MIN_INT=-536870912]="MIN_INT",t[t.FALSE_HANDLE=0]="FALSE_HANDLE",t[t.TRUE_HANDLE=1]="TRUE_HANDLE",t[t.NULL_HANDLE=2]="NULL_HANDLE",t[t.UNDEFINED_HANDLE=3]="UNDEFINED_HANDLE",t[t.ENCODED_FALSE_HANDLE=0]="ENCODED_FALSE_HANDLE",t[t.ENCODED_TRUE_HANDLE=1]="ENCODED_TRUE_HANDLE",t[t.ENCODED_NULL_HANDLE=2]="ENCODED_NULL_HANDLE",t[t.ENCODED_UNDEFINED_HANDLE=3]="ENCODED_UNDEFINED_HANDLE",t}({});function Qs(t){return t&ar.SIGN_BIT}function Xs(t){return t|~ar.SIGN_BIT}function Js(t){return~t}function Zs(t){return~t}function ei(t){return t|=0,t<0?Qs(t):Js(t)}function ti(t){return t|=0,t>ar.SIGN_BIT?Zs(t):Xs(t)}[1,-1].forEach(t=>ti(ei(t)));var or=Object.assign;var ri=console,wn=console;function vn(t,e="unexpected unreachable branch"){throw wn.log("unreachable",t),wn.log(`${e} :: ${JSON.stringify(t)} (${t})`),new Error("code reached unreachable")}var ni=function(){var t=function(ie,m,E,b){for(E=E||{},b=ie.length;b--;E[ie[b]]=m);return E},e=[2,44],r=[1,20],n=[5,14,15,19,29,34,39,44,47,48,52,56,60],s=[1,35],i=[1,38],a=[1,30],o=[1,31],c=[1,32],p=[1,33],h=[1,34],d=[1,37],N=[14,15,19,29,34,39,44,47,48,52,56,60],g=[14,15,19,29,34,44,47,48,52,56,60],T=[15,18],x=[14,15,19,29,34,47,48,52,56,60],C=[33,64,71,79,80,81,82,83,84],v=[23,33,55,64,67,71,74,79,80,81,82,83,84],M=[1,51],H=[23,33,55,64,67,71,74,79,80,81,82,83,84,86],X=[2,43],ve=[55,64,71,79,80,81,82,83,84],Ae=[1,58],J=[1,59],re=[1,66],V=[33,64,71,74,79,80,81,82,83,84],Pe=[23,64,71,79,80,81,82,83,84],U=[1,76],ne=[64,67,71,79,80,81,82,83,84],_=[33,74],se=[23,33,55,67,71,74],ut=[1,106],It=[1,118],qr=[71,76],Rt={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,expr:49,mustache_repetition0:50,mustache_option0:51,OPEN_UNESCAPED:52,mustache_repetition1:53,mustache_option1:54,CLOSE_UNESCAPED:55,OPEN_PARTIAL:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,sexpr:63,OPEN_SEXPR:64,sexpr_repetition0:65,sexpr_option0:66,CLOSE_SEXPR:67,hash:68,hash_repetition_plus0:69,hashSegment:70,ID:71,EQUALS:72,blockParams:73,OPEN_BLOCK_PARAMS:74,blockParams_repetition_plus0:75,CLOSE_BLOCK_PARAMS:76,path:77,dataName:78,STRING:79,NUMBER:80,BOOLEAN:81,UNDEFINED:82,NULL:83,DATA:84,pathSegments:85,SEP:86,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",52:"OPEN_UNESCAPED",55:"CLOSE_UNESCAPED",56:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",64:"OPEN_SEXPR",67:"CLOSE_SEXPR",71:"ID",72:"EQUALS",74:"OPEN_BLOCK_PARAMS",76:"CLOSE_BLOCK_PARAMS",79:"STRING",80:"NUMBER",81:"BOOLEAN",82:"UNDEFINED",83:"NULL",84:"DATA",86:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[49,1],[49,1],[63,5],[68,1],[70,3],[73,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[78,2],[77,1],[85,3],[85,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[50,0],[50,2],[51,0],[51,1],[53,0],[53,2],[54,0],[54,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[65,0],[65,2],[66,0],[66,1],[69,1],[69,2],[75,1],[75,2]],performAction:function(m,E,b,y,P,l,xe){var u=l.length-1;switch(P){case 1:return l[u-1];case 2:this.$=y.prepareProgram(l[u]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:this.$=l[u];break;case 9:this.$={type:"CommentStatement",value:y.stripComment(l[u]),strip:y.stripFlags(l[u],l[u]),loc:y.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[u],value:l[u],loc:y.locInfo(this._$)};break;case 11:this.$=y.prepareRawBlock(l[u-2],l[u-1],l[u],this._$);break;case 12:this.$={path:l[u-3],params:l[u-2],hash:l[u-1]};break;case 13:this.$=y.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!1,this._$);break;case 14:this.$=y.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!0,this._$);break;case 15:this.$={open:l[u-5],path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:y.stripFlags(l[u-5],l[u])};break;case 16:case 17:this.$={path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:y.stripFlags(l[u-5],l[u])};break;case 18:this.$={strip:y.stripFlags(l[u-1],l[u-1]),program:l[u]};break;case 19:var ae=y.prepareBlock(l[u-2],l[u-1],l[u],l[u],!1,this._$),Me=y.prepareProgram([ae],l[u-1].loc);Me.chained=!0,this.$={strip:l[u-2].strip,program:Me,chain:!0};break;case 21:this.$={path:l[u-1],strip:y.stripFlags(l[u-2],l[u])};break;case 22:case 23:this.$=y.prepareMustache(l[u-3],l[u-2],l[u-1],l[u-4],y.stripFlags(l[u-4],l[u]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[u-3],params:l[u-2],hash:l[u-1],indent:"",strip:y.stripFlags(l[u-4],l[u]),loc:y.locInfo(this._$)};break;case 25:this.$=y.preparePartialBlock(l[u-2],l[u-1],l[u],this._$);break;case 26:this.$={path:l[u-3],params:l[u-2],hash:l[u-1],strip:y.stripFlags(l[u-4],l[u])};break;case 29:this.$={type:"SubExpression",path:l[u-3],params:l[u-2],hash:l[u-1],loc:y.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[u],loc:y.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:y.id(l[u-2]),value:l[u],loc:y.locInfo(this._$)};break;case 32:this.$=y.id(l[u-1]);break;case 35:this.$={type:"StringLiteral",value:l[u],original:l[u],loc:y.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[u]),original:Number(l[u]),loc:y.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[u]==="true",original:l[u]==="true",loc:y.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:y.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:y.locInfo(this._$)};break;case 40:this.$=y.preparePath(!0,l[u],this._$);break;case 41:this.$=y.preparePath(!1,l[u],this._$);break;case 42:l[u-2].push({part:y.id(l[u]),original:l[u],separator:l[u-1]}),this.$=l[u-2];break;case 43:this.$=[{part:y.id(l[u]),original:l[u]}];break;case 44:case 46:case 48:case 56:case 62:case 68:case 76:case 80:case 84:case 88:case 92:this.$=[];break;case 45:case 47:case 49:case 57:case 63:case 69:case 77:case 81:case 85:case 89:case 93:case 97:case 99:l[u-1].push(l[u]);break;case 96:case 98:this.$=[l[u]];break}},table:[t([5,14,15,19,29,34,48,52,56,60],e,{3:1,4:2,6:3}),{1:[3]},{5:[1,4]},t([5,39,44,47],[2,2],{7:5,8:6,9:7,10:8,11:9,12:10,13:11,24:15,27:16,16:17,59:19,14:[1,12],15:r,19:[1,23],29:[1,21],34:[1,22],48:[1,13],52:[1,14],56:[1,18],60:[1,24]}),{1:[2,1]},t(n,[2,45]),t(n,[2,3]),t(n,[2,4]),t(n,[2,5]),t(n,[2,6]),t(n,[2,7]),t(n,[2,8]),t(n,[2,9]),{20:26,49:25,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:26,49:39,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(N,e,{6:3,4:40}),t(g,e,{6:3,4:41}),t(T,[2,46],{17:42}),{20:26,49:43,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(x,e,{6:3,4:44}),t([5,14,15,18,19,29,34,39,44,47,48,52,56,60],[2,10]),{20:45,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:46,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:47,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:26,49:48,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(C,[2,76],{50:49}),t(v,[2,27]),t(v,[2,28]),t(v,[2,33]),t(v,[2,34]),t(v,[2,35]),t(v,[2,36]),t(v,[2,37]),t(v,[2,38]),t(v,[2,39]),{20:26,49:50,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(v,[2,41],{86:M}),{71:i,85:52},t(H,X),t(ve,[2,80],{53:53}),{25:54,38:56,39:Ae,43:57,44:J,45:55,47:[2,52]},{28:60,43:61,44:J,47:[2,54]},{13:63,15:r,18:[1,62]},t(C,[2,84],{57:64}),{26:65,47:re},t(V,[2,56],{30:67}),t(V,[2,62],{35:68}),t(Pe,[2,48],{21:69}),t(C,[2,88],{61:70}),{20:26,33:[2,78],49:72,51:71,63:27,64:s,68:73,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(ne,[2,92],{65:77}),{71:[1,78]},t(v,[2,40],{86:M}),{20:26,49:80,54:79,55:[2,82],63:27,64:s,68:81,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{26:82,47:re},{47:[2,53]},t(N,e,{6:3,4:83}),{47:[2,20]},{20:84,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(x,e,{6:3,4:85}),{26:86,47:re},{47:[2,55]},t(n,[2,11]),t(T,[2,47]),{20:26,33:[2,86],49:88,58:87,63:27,64:s,68:89,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(n,[2,25]),{20:90,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(_,[2,58],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,31:91,49:92,68:93,64:s,71:U,79:a,80:o,81:c,82:p,83:h,84:d}),t(_,[2,64],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,36:94,49:95,68:96,64:s,71:U,79:a,80:o,81:c,82:p,83:h,84:d}),{20:26,22:97,23:[2,50],49:98,63:27,64:s,68:99,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:26,33:[2,90],49:101,62:100,63:27,64:s,68:102,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{33:[1,103]},t(C,[2,77]),{33:[2,79]},t([23,33,55,67,74],[2,30],{70:104,71:[1,105]}),t(se,[2,96]),t(H,X,{72:ut}),{20:26,49:108,63:27,64:s,66:107,67:[2,94],68:109,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(H,[2,42]),{55:[1,110]},t(ve,[2,81]),{55:[2,83]},t(n,[2,13]),{38:56,39:Ae,43:57,44:J,45:112,46:111,47:[2,74]},t(V,[2,68],{40:113}),{47:[2,18]},t(n,[2,14]),{33:[1,114]},t(C,[2,85]),{33:[2,87]},{33:[1,115]},{32:116,33:[2,60],73:117,74:It},t(V,[2,57]),t(_,[2,59]),{33:[2,66],37:119,73:120,74:It},t(V,[2,63]),t(_,[2,65]),{23:[1,121]},t(Pe,[2,49]),{23:[2,51]},{33:[1,122]},t(C,[2,89]),{33:[2,91]},t(n,[2,22]),t(se,[2,97]),{72:ut},{20:26,49:123,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{67:[1,124]},t(ne,[2,93]),{67:[2,95]},t(n,[2,23]),{47:[2,19]},{47:[2,75]},t(_,[2,70],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,41:125,49:126,68:127,64:s,71:U,79:a,80:o,81:c,82:p,83:h,84:d}),t(n,[2,24]),t(n,[2,21]),{33:[1,128]},{33:[2,61]},{71:[1,130],75:129},{33:[1,131]},{33:[2,67]},t(T,[2,12]),t(x,[2,26]),t(se,[2,31]),t(v,[2,29]),{33:[2,72],42:132,73:133,74:It},t(V,[2,69]),t(_,[2,71]),t(N,[2,15]),{71:[1,135],76:[1,134]},t(qr,[2,98]),t(g,[2,16]),{33:[1,136]},{33:[2,73]},{33:[2,32]},t(qr,[2,99]),t(N,[2,17])],defaultActions:{4:[2,1],55:[2,53],57:[2,20],61:[2,55],73:[2,79],81:[2,83],85:[2,18],89:[2,87],99:[2,51],102:[2,91],109:[2,95],111:[2,19],112:[2,75],117:[2,61],120:[2,67],133:[2,73],134:[2,32]},parseError:function(m,E){if(E.recoverable)this.trace(m);else{var b=new Error(m);throw b.hash=E,b}},parse:function(m){var E=this,b=[0],y=[],P=[null],l=[],xe=this.table,u="",ae=0,Me=0,Hr=0,Jn=2,Vr=1,Zn=l.slice.call(arguments,1),L=Object.create(this.lexer),me={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(me.yy[Ht]=this.yy[Ht]);L.setInput(m,me.yy),me.yy.lexer=L,me.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var Vt=L.yylloc;l.push(Vt);var es=L.options&&L.options.ranges;typeof me.yy.parseError=="function"?this.parseError=me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ya(W){b.length=b.length-2*W,P.length=P.length-W,l.length=l.length-W}for(var ts=function(){var W;return W=L.lex()||Vr,typeof W!="number"&&(W=E.symbols_[W]||W),W},I,Ut,ge,z,Ea,Ft,Ce={},ht,Z,Ur,pt;;){if(ge=b[b.length-1],this.defaultActions[ge]?z=this.defaultActions[ge]:((I===null||typeof I>"u")&&(I=ts()),z=xe[ge]&&xe[ge][I]),typeof z>"u"||!z.length||!z[0]){var Mt="";pt=[];for(ht in xe[ge])this.terminals_[ht]&&ht>Jn&&pt.push("'"+this.terminals_[ht]+"'");L.showPosition?Mt="Parse error on line "+(ae+1)+`:
7
7
  `+L.showPosition()+`
8
8
  Expecting `+pt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Mt="Parse error on line "+(ae+1)+": Unexpected "+(I==Vr?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Mt,{text:L.match,token:this.terminals_[I]||I,line:L.yylineno,loc:Vt,expected:pt})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ge+", token: "+I);switch(z[0]){case 1:b.push(I),P.push(L.yytext),l.push(L.yylloc),b.push(z[1]),I=null,Ut?(I=Ut,Ut=null):(Me=L.yyleng,u=L.yytext,ae=L.yylineno,Vt=L.yylloc,Hr>0&&Hr--);break;case 2:if(Z=this.productions_[z[1]][1],Ce.$=P[P.length-Z],Ce._$={first_line:l[l.length-(Z||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(Z||1)].first_column,last_column:l[l.length-1].last_column},es&&(Ce._$.range=[l[l.length-(Z||1)].range[0],l[l.length-1].range[1]]),Ft=this.performAction.apply(Ce,[u,Me,ae,me.yy,z[1],P,l].concat(Zn)),typeof Ft<"u")return Ft;Z&&(b=b.slice(0,-1*Z*2),P=P.slice(0,-1*Z),l=l.slice(0,-1*Z)),b.push(this.productions_[z[1]][0]),P.push(Ce.$),l.push(Ce._$),Ur=xe[b[b.length-2]][b[b.length-1]],b.push(Ur);break;case 3:return!0}}return!0}},Xn=function(){var ie={EOF:1,parseError:function(E,b){if(this.yy.parser)this.yy.parser.parseError(E,b);else throw new Error(E)},setInput:function(m,E){return this.yy=E||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var E=m.match(/(?:\r\n?|\n).*/g);return E?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},unput:function(m){var E=m.length,b=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-E),this.offset-=E;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),b.length-1&&(this.yylineno-=b.length-1);var P=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:b?(b.length===y.length?this.yylloc.first_column:0)+y[y.length-b.length].length-b[0].length:this.yylloc.first_column-E},this.options.ranges&&(this.yylloc.range=[P[0],P[0]+this.yyleng-E]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
9
9
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(m){this.unput(this.match.slice(m))},pastInput:function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var m=this.pastInput(),E=new Array(m.length+1).join("-");return m+this.upcomingInput()+`
@@ -26,5 +26,5 @@ Expecting `+pt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Mt="Parse error
26
26
  `)}},qn="beforeAttributeName",ia="attributeValueUnquoted",_r=class extends Lr{pendingError=null;parse(e,r){var i;let n=f.template({body:[],blockParams:r,loc:this.source.spanFor(e.loc)}),s=this.parseProgram(n,e);return(i=this.pendingError)==null||i.eof(s.loc.getEnd()),s}Program(e,r){w(Array.isArray(r),"[BUG] Program in parser unexpectedly called without block params");let n=f.blockItself({body:[],params:r,chained:e.chained,loc:this.source.spanFor(e.loc)});return this.parseProgram(n,e)}parseProgram(e,r){if(r.body.length===0)return e;let n;try{this.elementStack.push(e);for(let s of r.body)this.acceptNode(s)}finally{n=this.elementStack.pop()}if(e!==n){if((n==null?void 0:n.type)==="ElementNode")throw S(`Unclosed element \`${n.tag}\``,n.loc);w(n!==void 0,"[BUG] empty parser elementStack"),w(!1,`[BUG] mismatched parser elementStack node: ${e.type}`)}return e}BlockStatement(e){var d;if(this.tokenizer.state==="comment"){this.appendToCommentData(this.sourceForNode(e));return}if(this.tokenizer.state!=="data"&&this.tokenizer.state!=="beforeData")throw S("A block may only be used inside an HTML element or another block.",this.source.spanFor(e.loc));let{path:r,params:n,hash:s}=wr(this,e),i=this.source.spanFor(e.loc),a=[];if((d=e.program.blockParams)!=null&&d.length){let N=s.loc.collapse("end");e.program.loc?N=N.withEnd(this.source.spanFor(e.program.loc).getStart()):e.program.body[0]?N=N.withEnd(this.source.spanFor(e.program.body[0].loc).getStart()):N=N.withEnd(i.getEnd());let g=N.asString(),T=g.indexOf("|")+1,x=g.indexOf("|",T);for(let C of e.program.blockParams){let v,M;T>=x?v=-1:v=g.indexOf(C,T),v===-1||v+C.length>x?(T=x,M=this.source.spanFor(st)):(T=v,M=N.sliceStartChars({skipStart:T,chars:C.length}),T+=C.length),a.push(f.var({name:C,loc:M}))}}e.program.loc||(e.program.loc=st),e.inverse&&!e.inverse.loc&&(e.inverse.loc=st);let o=this.Program(e.program,a),c=e.inverse?this.Program(e.inverse,[]):null,p=f.block({path:r,params:n,hash:s,defaultBlock:o,elseBlock:c,loc:this.source.spanFor(e.loc),openStrip:e.openStrip,inverseStrip:e.inverseStrip,closeStrip:e.closeStrip}),h=this.currentElement();Ve(h,p)}MustacheStatement(e){var o;(o=this.pendingError)==null||o.mustache(this.source.spanFor(e.loc));let{tokenizer:r}=this;if(r.state==="comment"){this.appendToCommentData(this.sourceForNode(e));return}let n,{escaped:s,loc:i,strip:a}=e;if("original"in e.path&&e.path.original==="...attributes")throw S("Illegal use of ...attributes",this.source.spanFor(e.loc));if(Mn(e.path))n=f.mustache({path:this.acceptNode(e.path),params:[],hash:f.hash({pairs:[],loc:this.source.spanFor(e.path.loc).collapse("end")}),trusting:!s,loc:this.source.spanFor(i),strip:a});else{let{path:c,params:p,hash:h}=wr(this,e);n=f.mustache({path:c,params:p,hash:h,trusting:!s,loc:this.source.spanFor(i),strip:a})}switch(r.state){case"tagOpen":case"tagName":throw S("Cannot use mustaches in an elements tagname",n.loc);case"beforeAttributeName":kr(this.currentStartTag,n);break;case"attributeName":case"afterAttributeName":this.beginAttributeValue(!1),this.finishAttributeValue(),kr(this.currentStartTag,n),r.transitionTo(qn);break;case"afterAttributeValueQuoted":kr(this.currentStartTag,n),r.transitionTo(qn);break;case"beforeAttributeValue":this.beginAttributeValue(!1),this.appendDynamicAttributeValuePart(n),r.transitionTo(ia);break;case"attributeValueDoubleQuoted":case"attributeValueSingleQuoted":case"attributeValueUnquoted":this.appendDynamicAttributeValuePart(n);break;default:Ve(this.currentElement(),n)}return n}appendDynamicAttributeValuePart(e){this.finalizeTextPart();let r=this.currentAttr;r.isDynamic=!0,r.parts.push(e)}finalizeTextPart(){let r=this.currentAttr.currentPart;r!==null&&(this.currentAttr.parts.push(r),this.startTextPart())}startTextPart(){this.currentAttr.currentPart=null}ContentStatement(e){oa(this.tokenizer,e),this.tokenizer.tokenizePart(e.value),this.tokenizer.flushData()}CommentStatement(e){let{tokenizer:r}=this;if(r.state==="comment")return this.appendToCommentData(this.sourceForNode(e)),null;let{value:n,loc:s}=e,i=f.mustacheComment({value:n,loc:this.source.spanFor(s)});switch(r.state){case"beforeAttributeName":case"afterAttributeName":this.currentStartTag.comments.push(i);break;case"beforeData":case"data":Ve(this.currentElement(),i);break;default:throw S(`Using a Handlebars comment when in the \`${r.state}\` state is not supported`,this.source.spanFor(e.loc))}return i}PartialStatement(e){throw S("Handlebars partials are not supported",this.source.spanFor(e.loc))}PartialBlockStatement(e){throw S("Handlebars partial blocks are not supported",this.source.spanFor(e.loc))}Decorator(e){throw S("Handlebars decorators are not supported",this.source.spanFor(e.loc))}DecoratorBlock(e){throw S("Handlebars decorator blocks are not supported",this.source.spanFor(e.loc))}SubExpression(e){let{path:r,params:n,hash:s}=wr(this,e);return f.sexpr({path:r,params:n,hash:s,loc:this.source.spanFor(e.loc)})}PathExpression(e){let{original:r}=e,n;if(r.indexOf("/")!==-1){if(r.slice(0,2)==="./")throw S('Using "./" is not supported in Glimmer and unnecessary',this.source.spanFor(e.loc));if(r.slice(0,3)==="../")throw S('Changing context using "../" is not supported in Glimmer',this.source.spanFor(e.loc));if(r.indexOf(".")!==-1)throw S("Mixing '.' and '/' in paths is not supported in Glimmer; use only '.' to separate property paths",this.source.spanFor(e.loc));n=[e.parts.join("/")]}else{if(r===".")throw S("'.' is not a supported path in Glimmer; check for a path with a trailing '.'",this.source.spanFor(e.loc));n=e.parts}let s=!1;/^this(?:\..+)?$/u.test(r)&&(s=!0);let i;if(s)i=f.this({loc:this.source.spanFor({start:e.loc.start,end:{line:e.loc.start.line,column:e.loc.start.column+4}})});else if(e.data){let a=n.shift();if(a===void 0)throw S("Attempted to parse a path expression, but it was not valid. Paths beginning with @ must start with a-z.",this.source.spanFor(e.loc));i=f.atName({name:`@${a}`,loc:this.source.spanFor({start:e.loc.start,end:{line:e.loc.start.line,column:e.loc.start.column+a.length+1}})})}else{let a=n.shift();if(a===void 0)throw S("Attempted to parse a path expression, but it was not valid. Paths must start with a-z or A-Z.",this.source.spanFor(e.loc));i=f.var({name:a,loc:this.source.spanFor({start:e.loc.start,end:{line:e.loc.start.line,column:e.loc.start.column+a.length}})})}return f.path({head:i,tail:n,loc:this.source.spanFor(e.loc)})}Hash(e){let r=e.pairs.map(n=>f.pair({key:n.key,value:this.acceptNode(n.value),loc:this.source.spanFor(n.loc)}));return f.hash({pairs:r,loc:this.source.spanFor(e.loc)})}StringLiteral(e){return f.literal({type:"StringLiteral",value:e.value,loc:this.source.spanFor(e.loc)})}BooleanLiteral(e){return f.literal({type:"BooleanLiteral",value:e.value,loc:this.source.spanFor(e.loc)})}NumberLiteral(e){return f.literal({type:"NumberLiteral",value:e.value,loc:this.source.spanFor(e.loc)})}UndefinedLiteral(e){return f.literal({type:"UndefinedLiteral",value:void 0,loc:this.source.spanFor(e.loc)})}NullLiteral(e){return f.literal({type:"NullLiteral",value:null,loc:this.source.spanFor(e.loc)})}};function aa(t,e){if(e==="")return{lines:t.split(`
27
27
  `).length-1,columns:0};let[r]=t.split(e),n=r.split(/\n/u),s=n.length-1;return{lines:s,columns:kt(n[s]).length}}function oa(t,e){let r=e.loc.start.line,n=e.loc.start.column,s=aa(e.original,e.value);r=r+s.lines,s.lines?n=s.columns:n=n+s.columns,t.line=r,t.column=n}function wr(t,e){let r;switch(e.path.type){case"PathExpression":r=t.PathExpression(e.path);break;case"SubExpression":r=t.SubExpression(e.path);break;case"StringLiteral":case"UndefinedLiteral":case"NullLiteral":case"NumberLiteral":case"BooleanLiteral":{let a;throw e.path.type==="BooleanLiteral"?a=e.path.original.toString():e.path.type==="StringLiteral"?a=`"${e.path.original}"`:e.path.type==="NullLiteral"?a="null":e.path.type==="NumberLiteral"?a=e.path.value.toString():a="undefined",S(`${e.path.type} "${e.path.type==="StringLiteral"?e.path.original:a}" cannot be called as a sub-expression, replace (${a}) with ${a}`,t.source.spanFor(e.path.loc))}}let n=e.params?e.params.map(a=>t.acceptNode(a)):[],s=we(n)?Nt(n).loc:r.loc,i=e.hash?t.Hash(e.hash):f.hash({pairs:[],loc:t.source.spanFor(s).collapse("end")});return{path:r,params:n,hash:i}}function kr(t,e){let{path:r,params:n,hash:s,loc:i}=e;if(Mn(r)){let o=`{{${Ri(r)}}}`,c=`<${t.name} ... ${o} ...`;throw S(`In ${c}, ${o} is not a valid modifier`,e.loc)}let a=f.elementModifier({path:r,params:n,hash:s,loc:i});t.modifiers.push(a)}function He(t){return/[\t\n\f ]/u.test(t)}var Dr=class extends _r{tagOpenLine=0;tagOpenColumn=0;reset(){this.currentNode=null}beginComment(){this.currentNode={type:"CommentStatement",value:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}appendToCommentData(e){this.currentComment.value+=e}finishComment(){Ve(this.currentElement(),f.comment(this.finish(this.currentComment)))}beginData(){this.currentNode={type:"TextNode",chars:"",start:this.offset()}}appendToData(e){this.currentData.chars+=e}finishData(){Ve(this.currentElement(),f.text(this.finish(this.currentData)))}tagOpen(){this.tagOpenLine=this.tokenizer.line,this.tagOpenColumn=this.tokenizer.column}beginStartTag(){this.currentNode={type:"StartTag",name:"",nameStart:null,nameEnd:null,attributes:[],modifiers:[],comments:[],params:[],selfClosing:!1,start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}beginEndTag(){this.currentNode={type:"EndTag",name:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}finishTag(){let e=this.finish(this.currentTag);if(e.type==="StartTag"){if(this.finishStartTag(),e.name===":")throw S("Invalid named block named detected, you may have created a named block without a name, or you may have began your name with a number. Named blocks must have names that are at least one character long, and begin with a lower case letter",this.source.spanFor({start:this.currentTag.start.toJSON(),end:this.offset().toJSON()}));(Tr.has(e.name)||e.selfClosing)&&this.finishEndTag(!0)}else e.type==="EndTag"&&this.finishEndTag(!1)}finishStartTag(){let{name:e,nameStart:r,nameEnd:n}=this.currentStartTag;w(e!=="","tag name cannot be empty"),w(r!==null,"nameStart unexpectedly null"),w(n!==null,"nameEnd unexpectedly null");let s=r.until(n),[i,...a]=qe(e.split(".")),o=f.path({head:f.head({original:i,loc:s.sliceStartChars({chars:i.length})}),tail:a,loc:s}),{attributes:c,modifiers:p,comments:h,params:d,selfClosing:N,loc:g}=this.finish(this.currentStartTag),T=f.element({path:o,selfClosing:N,attributes:c,modifiers:p,comments:h,params:d,children:[],openTag:g,closeTag:N?null:O.broken(),loc:g});this.elementStack.push(T)}finishEndTag(e){let{start:r}=this.currentTag,n=this.finish(this.currentTag),s=this.elementStack.pop();this.validateEndTag(n,s,e);let i=this.currentElement();e?s.closeTag=null:s.selfClosing?w(s.closeTag===null,"element.closeTag unexpectedly present"):s.closeTag=r.until(this.offset()),s.loc=s.loc.withEnd(this.offset()),Ve(i,f.element(s))}markTagAsSelfClosing(){let e=this.currentTag;if(e.type==="StartTag")e.selfClosing=!0;else throw S("Invalid end tag: closing tag must not be self-closing",this.source.spanFor({start:e.start.toJSON(),end:this.offset().toJSON()}))}appendToTagName(e){let r=this.currentTag;if(r.name+=e,r.type==="StartTag"){let n=this.offset();r.nameStart===null&&(w(r.nameEnd===null,"nameStart and nameEnd must both be null"),r.nameStart=n.move(-1)),r.nameEnd=n}}beginAttribute(){let e=this.offset();this.currentAttribute={name:"",parts:[],currentPart:null,isQuoted:!1,isDynamic:!1,start:e,valueSpan:e.collapsed()}}appendToAttributeName(e){this.currentAttr.name+=e,this.currentAttr.name==="as"&&this.parsePossibleBlockParams()}beginAttributeValue(e){this.currentAttr.isQuoted=e,this.startTextPart(),this.currentAttr.valueSpan=this.offset().collapsed()}appendToAttributeValue(e){let r=this.currentAttr.parts,n=r[r.length-1],s=this.currentAttr.currentPart;if(s)s.chars+=e,s.loc=s.loc.withEnd(this.offset());else{let i=this.offset();e===`
28
28
  `?i=n?n.loc.getEnd():this.currentAttr.valueSpan.getStart():i=i.move(-1),this.currentAttr.currentPart=f.text({chars:e,loc:i.collapsed()})}}finishAttributeValue(){this.finalizeTextPart();let e=this.currentTag,r=this.offset();if(e.type==="EndTag")throw S("Invalid end tag: closing tag must not have attributes",this.source.spanFor({start:e.start.toJSON(),end:r.toJSON()}));let{name:n,parts:s,start:i,isQuoted:a,isDynamic:o,valueSpan:c}=this.currentAttr;if(n.startsWith("|")&&s.length===0&&!a&&!o)throw S("Invalid block parameters syntax: block parameters must be preceded by the `as` keyword",i.until(i.move(n.length)));let p=this.assembleAttributeValue(s,a,o,i.until(r));p.loc=c.withEnd(r);let h=f.attr({name:n,value:p,loc:i.until(r)});this.currentStartTag.attributes.push(h)}parsePossibleBlockParams(){let e="beforeAttributeName",r="attributeName",n="afterAttributeName",s=/[!"#%&'()*+./;<=>@[\\\]^`{|}~]/u;w(this.tokenizer.state===r,"must be in TokenizerState.attributeName");let i=this.currentStartTag,a=this.currentAttr,o={state:"PossibleAs"},c={PossibleAs:h=>{if(w(o.state==="PossibleAs","bug in block params parser"),He(h))o={state:"BeforeStartPipe"},this.tokenizer.transitionTo(n),this.tokenizer.consume();else{if(h==="|")throw S('Invalid block parameters syntax: expecting at least one space character between "as" and "|"',a.start.until(this.offset().move(1)));o={state:"Done"}}},BeforeStartPipe:h=>{w(o.state==="BeforeStartPipe","bug in block params parser"),He(h)?this.tokenizer.consume():h==="|"?(o={state:"BeforeBlockParamName"},this.tokenizer.transitionTo(e),this.tokenizer.consume()):o={state:"Done"}},BeforeBlockParamName:h=>{if(w(o.state==="BeforeBlockParamName","bug in block params parser"),He(h))this.tokenizer.consume();else if(h==="")o={state:"Done"},this.pendingError={mustache(d){throw S("Invalid block parameters syntax: mustaches cannot be used inside parameters list",d)},eof(d){throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',a.start.until(d))}};else if(h==="|"){if(i.params.length===0)throw S("Invalid block parameters syntax: empty parameters list, expecting at least one identifier",a.start.until(this.offset().move(1)));o={state:"AfterEndPipe"},this.tokenizer.consume()}else{if(h===">"||h==="/")throw S('Invalid block parameters syntax: incomplete parameters list, expecting "|" but the tag was closed prematurely',a.start.until(this.offset().move(1)));o={state:"BlockParamName",name:h,start:this.offset()},this.tokenizer.consume()}},BlockParamName:h=>{if(w(o.state==="BlockParamName","bug in block params parser"),h==="")o={state:"Done"},this.pendingError={mustache(d){throw S("Invalid block parameters syntax: mustaches cannot be used inside parameters list",d)},eof(d){throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',a.start.until(d))}};else if(h==="|"||He(h)){let d=o.start.until(this.offset());if(o.name==="this"||s.test(o.name))throw S(`Invalid block parameters syntax: invalid identifier name \`${o.name}\``,d);i.params.push(f.var({name:o.name,loc:d})),o=h==="|"?{state:"AfterEndPipe"}:{state:"BeforeBlockParamName"},this.tokenizer.consume()}else{if(h===">"||h==="/")throw S('Invalid block parameters syntax: expecting "|" but the tag was closed prematurely',a.start.until(this.offset().move(1)));o.name+=h,this.tokenizer.consume()}},AfterEndPipe:h=>{w(o.state==="AfterEndPipe","bug in block params parser"),He(h)?this.tokenizer.consume():h===""?(o={state:"Done"},this.pendingError={mustache(d){throw S("Invalid block parameters syntax: modifiers cannot follow parameters list",d)},eof(d){throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',a.start.until(d))}}):h===">"||h==="/"?o={state:"Done"}:(o={state:"Error",message:'Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',start:this.offset()},this.tokenizer.consume())},Error:h=>{if(w(o.state==="Error","bug in block params parser"),h===""||h==="/"||h===">"||He(h))throw S(o.message,o.start.until(this.offset()));this.tokenizer.consume()},Done:()=>{w(!1,"This should never be called")}},p;do p=this.tokenizer.peek(),c[o.state](p);while(o.state!=="Done"&&p!=="");w(o.state==="Done","bug in block params parser")}reportSyntaxError(e){throw S(e,this.offset().collapsed())}assembleConcatenatedValue(e){for(let s of e)if(s.type!=="MustacheStatement"&&s.type!=="TextNode")throw S(`Unsupported node in quoted attribute value: ${s.type}`,s.loc);Tt(e,"the concatenation parts of an element should not be empty");let r=Nn(e),n=Nt(e);return f.concat({parts:e,loc:this.source.spanFor(r.loc).extend(this.source.spanFor(n.loc))})}validateEndTag(e,r,n){if(Tr.has(e.name)&&!n)throw S(`<${e.name}> elements do not need end tags. You should remove it`,e.loc);if(r.tag===void 0)throw S(`Closing tag </${e.name}> without an open tag`,e.loc);if(r.tag!==e.name)throw S(`Closing tag </${e.name}> did not match last open tag <${r.tag}> (on line ${r.loc.startPosition.line})`,e.loc)}assembleAttributeValue(e,r,n,s){if(n){if(r)return this.assembleConcatenatedValue(e);{Tt(e);let[i,a]=e;if(a===void 0||a.type==="TextNode"&&a.chars==="/")return i;throw S("An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'",s)}}else return we(e)?e[0]:f.text({chars:"",loc:s})}},la={},Or=class extends mr{constructor(){super({})}parse(){}};function Wn(t,e={}){var c,p,h;let r=e.mode||"precompile",n,s;typeof t=="string"?(n=new Te(t,(c=e.meta)==null?void 0:c.moduleName),r==="codemod"?s=Ct(t,e.parseOptions):s=dr(t,e.parseOptions)):t instanceof Te?(n=t,r==="codemod"?s=Ct(t.source,e.parseOptions):s=dr(t.source,e.parseOptions)):(n=new Te("",(p=e.meta)==null?void 0:p.moduleName),s=t);let i;r==="codemod"&&(i=new Or);let a=O.forCharPositions(n,0,n.source.length);s.loc={source:"(program)",start:a.startPosition,end:a.endPosition};let o=new Dr(n,i,r).parse(s,e.locals??[]);if((h=e==null?void 0:e.plugins)!=null&&h.ast)for(let d of e.plugins.ast){let N=or({},e,{syntax:la},{plugins:void 0}),g=d(N);Bi(o,g.visitor)}return o}var Ir=function(t){return t.Helper="Helper",t.Modifier="Modifier",t.Component="Component",t}({}),al=Ir.Helper,ol=Ir.Modifier,ll=Ir.Component;var Bt=`
29
- `,$n="\r",jn=function(){function t(e){this.length=e.length;for(var r=[0],n=0;n<e.length;)switch(e[n]){case Bt:n+=Bt.length,r.push(n);break;case $n:n+=$n.length,e[n]===Bt&&(n+=Bt.length),r.push(n);break;default:n++;break}this.offsets=r}return t.prototype.locationForIndex=function(e){if(e<0||e>this.length)return null;for(var r=0,n=this.offsets;n[r+1]<=e;)r++;var s=e-n[r];return{line:r,column:s}},t.prototype.indexForLocation=function(e){var r=e.line,n=e.column;return r<0||r>=this.offsets.length||n<0||n>this.lengthOfLine(r)?null:this.offsets[r]+n},t.prototype.lengthOfLine=function(e){var r=this.offsets[e],n=e===this.offsets.length-1?this.length:this.offsets[e+1];return n-r},t}();function ca(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var Qn=ca;function ua(t){let e=t.children??t.body;if(e)for(let r=0;r<e.length-1;r++)e[r].type==="TextNode"&&e[r+1].type==="MustacheStatement"&&(e[r].chars=e[r].chars.replace(/\\$/,"\\\\"))}function ha(t){let e=new jn(t),r=({line:s,column:i})=>e.indexForLocation({line:s-1,column:i}),n=s=>{let{start:i,end:a}=s.loc;i.offset=r(i),a.offset=r(a)};return()=>({name:"prettierParsePlugin",visitor:{All(s){n(s),ua(s)}}})}function pa(t){let e;try{e=Wn(t,{mode:"codemod",plugins:{ast:[ha(t)]}})}catch(r){let n=da(r);if(n){let s=fa(r);throw Qn(s,{loc:n,cause:r})}throw r}return e}function fa(t){let{message:e}=t,r=e.split(`
30
- `);return r.length>=4&&/^Parse error on line \d+:$/.test(r[0])&&/^-*\^$/.test(oe(!1,r,-2))?oe(!1,r,-1):r.length>=4&&/:\s?$/.test(r[0])&&/^\(error occurred in '.*?' @ line \d+ : column \d+\)$/.test(oe(!1,r,-1))&&r[1]===""&&oe(!1,r,-2)===""&&r.slice(2,-2).every(n=>n.startsWith("|"))?r[0].trim().slice(0,-1):e}function da(t){let{location:e,hash:r}=t;if(e){let{start:n,end:s}=e;return typeof s.line!="number"?{start:n}:e}if(r){let{loc:{last_line:n,last_column:s}}=r;return{start:{line:n,column:s+1}}}}var ma={parse:pa,astFormat:"glimmer",locStart:Se,locEnd:tt};var ga={glimmer:En};return as(ba);});
29
+ `,$n="\r",jn=function(){function t(e){this.length=e.length;for(var r=[0],n=0;n<e.length;)switch(e[n]){case Bt:n+=Bt.length,r.push(n);break;case $n:n+=$n.length,e[n]===Bt&&(n+=Bt.length),r.push(n);break;default:n++;break}this.offsets=r}return t.prototype.locationForIndex=function(e){if(e<0||e>this.length)return null;for(var r=0,n=this.offsets;n[r+1]<=e;)r++;var s=e-n[r];return{line:r,column:s}},t.prototype.indexForLocation=function(e){var r=e.line,n=e.column;return r<0||r>=this.offsets.length||n<0||n>this.lengthOfLine(r)?null:this.offsets[r]+n},t.prototype.lengthOfLine=function(e){var r=this.offsets[e],n=e===this.offsets.length-1?this.length:this.offsets[e+1];return n-r},t}();function ca(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var Qn=ca;function ua(t){let e=t.children??t.body;if(e)for(let r=0;r<e.length-1;r++)e[r].type==="TextNode"&&e[r+1].type==="MustacheStatement"&&(e[r].chars=e[r].chars.replace(/\\$/u,"\\\\"))}function ha(t){let e=new jn(t),r=({line:s,column:i})=>e.indexForLocation({line:s-1,column:i}),n=s=>{let{start:i,end:a}=s.loc;i.offset=r(i),a.offset=r(a)};return()=>({name:"prettierParsePlugin",visitor:{All(s){n(s),ua(s)}}})}function pa(t){let e;try{e=Wn(t,{mode:"codemod",plugins:{ast:[ha(t)]}})}catch(r){let n=da(r);if(n){let s=fa(r);throw Qn(s,{loc:n,cause:r})}throw r}return e}function fa(t){let{message:e}=t,r=e.split(`
30
+ `);return r.length>=4&&/^Parse error on line \d+:$/u.test(r[0])&&/^-*\^$/u.test(oe(!1,r,-2))?oe(!1,r,-1):r.length>=4&&/:\s?$/u.test(r[0])&&/^\(error occurred in '.*?' @ line \d+ : column \d+\)$/u.test(oe(!1,r,-1))&&r[1]===""&&oe(!1,r,-2)===""&&r.slice(2,-2).every(n=>n.startsWith("|"))?r[0].trim().slice(0,-1):e}function da(t){let{location:e,hash:r}=t;if(e){let{start:n,end:s}=e;return typeof s.line!="number"?{start:n}:e}if(r){let{loc:{last_line:n,last_column:s}}=r;return{start:{line:n,column:s+1}}}}var ma={parse:pa,astFormat:"glimmer",locStart:Se,locEnd:tt};var ga={glimmer:En};return as(ba);});
@@ -1,9 +1,9 @@
1
1
  var rs=Object.defineProperty;var Fr=t=>{throw TypeError(t)};var zt=(t,e)=>{for(var r in e)rs(t,r,{get:e[r],enumerable:!0})};var Mr=(t,e,r)=>e.has(t)||Fr("Cannot "+r);var $=(t,e,r)=>(Mr(t,e,"read from private field"),r?r.call(t):e.get(t)),Gt=(t,e,r)=>e.has(t)?Fr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Yt=(t,e,r,n)=>(Mr(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var Rr={};zt(Rr,{languages:()=>Sn,parsers:()=>Ir,printers:()=>pa});var ns=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},Kt=ns;var ze="string",Ge="array",Ye="cursor",Le="indent",_e="align",Ke="trim",De="group",Oe="fill",Be="if-break",We="indent-if-break",$e="line-suffix",je="line-suffix-boundary",ee="line",Qe="label",Ie="break-parent",ft=new Set([Ye,Le,_e,Ke,De,Oe,Be,We,$e,je,ee,Qe,Ie]);function ss(t){if(typeof t=="string")return ze;if(Array.isArray(t))return Ge;if(!t)return;let{type:e}=t;if(ft.has(e))return e}var Xe=ss;var is=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function as(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
2
2
  Expected it to be 'string' or 'object'.`;if(Xe(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=is([...ft].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'.
3
3
  Expected it to be ${n}.`}var Wt=class extends Error{name="InvalidDocError";constructor(e){super(as(e)),this.doc=e}},$t=Wt;var zr=()=>{},be=zr,dt=zr;function R(t){return be(t),{type:Le,contents:t}}function os(t,e){return be(e),{type:_e,contents:e,n:t}}function q(t,e={}){return be(t),dt(e.expandedStates,!0),{type:De,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function jt(t){return os(-1,t)}function Qt(t){return dt(t),{type:Oe,parts:t}}function Xt(t,e="",r={}){return be(t),e!==""&&be(e),{type:Be,breakContents:t,flatContents:e,groupId:r.groupId}}var Gr={type:Ie};var ls={type:ee,hard:!0},cs={type:ee,hard:!0,literal:!0},D={type:ee},Y={type:ee,soft:!0},ye=[ls,Gr],Yr=[cs,Gr];function Ee(t,e){be(t),dt(e);let r=[];for(let n=0;n<e.length;n++)n!==0&&r.push(t),r.push(e[n]);return r}var us=(t,e,r)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},oe=us;function hs(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(i){if(r.has(i))return r.get(i);let a=s(i);return r.set(i,a),a}function s(i){switch(Xe(i)){case Ge:return e(i.map(n));case Oe:return e({...i,parts:i.parts.map(n)});case Be:return e({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case De:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(n),o=a[0]):o=n(o),e({...i,contents:o,expandedStates:a})}case _e:case Le:case We:case Qe:case $e:return e({...i,contents:n(i.contents)});case ze:case Ye:case Ke:case je:case ee:case Ie:return e(i);default:throw new $t(i)}}}function Kr(t,e=Yr){return hs(t,r=>typeof r=="string"?Ee(e,r.split(`
4
- `)):r)}var mt="'",Wr='"';function ps(t,e){let r=e===!0||e===mt?mt:Wr,n=r===mt?Wr:mt,s=0,i=0;for(let a of t)a===r?s++:a===n&&i++;return s>i?n:r}var gt=ps;function Jt(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var G,Zt=class{constructor(e){Gt(this,G);Yt(this,G,new Set(e))}getLeadingWhitespaceCount(e){let r=$(this,G),n=0;for(let s=0;s<e.length&&r.has(e.charAt(s));s++)n++;return n}getTrailingWhitespaceCount(e){let r=$(this,G),n=0;for(let s=e.length-1;s>=0&&r.has(e.charAt(s));s--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return $(this,G).has(e.charAt(0))}hasTrailingWhitespace(e){return $(this,G).has(oe(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${Jt([...$(this,G)].join(""))}]+`,s=new RegExp(r?`(${n})`:n);return e.split(s)}hasWhitespaceCharacter(e){let r=$(this,G);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=$(this,G);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=$(this,G);return Array.prototype.every.call(e,n=>r.has(n))}};G=new WeakMap;var $r=Zt;var fs=[" ",`
5
- `,"\f","\r"," "],ds=new $r(fs),K=ds;function ms(t){return Array.isArray(t)&&t.length>0}var Je=ms;var er=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},jr=er;function Qr(t,e){if(t.type==="TextNode"){let r=t.chars.trim();if(!r)return null;e.chars=K.split(r).join(" ")}t.type==="ElementNode"&&(delete e.startTag,delete e.openTag,delete e.parts,delete e.endTag,delete e.closeTag,delete e.nameNode,delete e.body,delete e.blockParamNodes,delete e.params,delete e.path),t.type==="Block"&&(delete e.blockParamNodes,delete e.params),t.type==="AttrNode"&&t.name.toLowerCase()==="class"&&delete e.value,t.type==="PathExpression"&&(e.head=t.head.original)}Qr.ignoredProperties=new Set(["loc","selfClosing"]);var Xr=Qr;var Ze=null;function et(t){if(Ze!==null&&typeof Ze.property){let e=Ze;return Ze=et.prototype=null,e}return Ze=et.prototype=t??Object.create(null),new et}var gs=10;for(let t=0;t<=gs;t++)et();function tr(t){return et(t)}function bs(t,e="type"){tr(t);function r(n){let s=n[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var Jr=bs;var Zr={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]};var ys=Jr(Zr),en=ys;function Se(t){return t.loc.start.offset}function tt(t){return t.loc.end.offset}var tn=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function nn(t){return t.toUpperCase()===t}function Es(t){return t.type==="ElementNode"&&typeof t.tag=="string"&&!t.tag.startsWith(":")&&(nn(t.tag[0])||t.tag.includes("."))}function Ss(t){return tn.has(t.toLowerCase())&&!nn(t[0])}function rr(t){return t.selfClosing===!0||Ss(t.tag)||Es(t)&&t.children.every(e=>bt(e))}function bt(t){return t.type==="TextNode"&&!/\S/.test(t.chars)}function rn(t){return(t==null?void 0:t.type)==="MustacheCommentStatement"&&typeof t.value=="string"&&t.value.trim()==="prettier-ignore"}function sn(t){return rn(t.node)||t.isInArray&&(t.key==="children"||t.key==="body"||t.key==="parts")&&rn(t.siblings[t.index-2])}var fn=2;function ws(t,e,r){var s,i,a,o,c,p,h,d,N;let{node:n}=t;switch(n.type){case"Block":case"Program":case"Template":return q(t.map(r,"body"));case"ElementNode":{let g=q(Ts(t,r)),T=e.htmlWhitespaceSensitivity==="ignore"&&((s=t.next)==null?void 0:s.type)==="ElementNode"?Y:"";if(rr(n))return[g,T];let x=["</",n.tag,">"];return n.children.length===0?[g,R(x),T]:e.htmlWhitespaceSensitivity==="ignore"?[g,R(an(t,e,r)),ye,R(x),T]:[g,R(q(an(t,e,r))),R(x),T]}case"BlockStatement":return Cs(t)?[Ls(t,r),cn(t,r,e),un(t,r,e)]:[Ps(t,r),q([cn(t,r,e),un(t,r,e),_s(t,r,e)])];case"ElementModifierStatement":return q(["{{",pn(t,r),"}}"]);case"MustacheStatement":return q([yt(n),pn(t,r),Et(n)]);case"SubExpression":return q(["(",Hs(t,r),Y,")"]);case"AttrNode":{let{name:g,value:T}=n,x=T.type==="TextNode";if(x&&T.chars===""&&Se(T)===tt(T))return g;let v=x?gt(T.chars,e.singleQuote):T.type==="ConcatStatement"?gt(T.parts.map(H=>H.type==="TextNode"?H.chars:"").join(""),e.singleQuote):"",M=r("value");return[g,"=",v,g==="class"&&v?q(R(M)):M,v]}case"ConcatStatement":return t.map(r,"parts");case"Hash":return Ee(D,t.map(r,"pairs"));case"HashPair":return[n.key,"=",r("value")];case"TextNode":{let g=Kt(!1,n.chars,"{{",String.raw`\{{`),T=Os(t);if(T){if(T==="class"){let J=g.trim().split(/\s+/).join(" "),re=!1,V=!1;return t.parent.type==="ConcatStatement"&&(((i=t.previous)==null?void 0:i.type)==="MustacheStatement"&&/^\s/.test(g)&&(re=!0),((a=t.next)==null?void 0:a.type)==="MustacheStatement"&&/\s$/.test(g)&&J!==""&&(V=!0)),[re?D:"",J,V?D:""]}return Kr(g)}let x=K.isWhitespaceOnly(g),{isFirst:C,isLast:v}=t;if(e.htmlWhitespaceSensitivity!=="ignore"){let J=v&&t.parent.type==="Template",re=C&&t.parent.type==="Template";if(x){if(re||J)return"";let _=[D],se=Re(g);return se&&(_=rt(se)),v&&(_=_.map(ut=>jt(ut))),_}let V=K.getLeadingWhitespace(g),Pe=[];if(V){Pe=[D];let _=Re(V);_&&(Pe=rt(_)),g=g.slice(V.length)}let U=K.getTrailingWhitespace(g),ne=[];if(U){if(!J){ne=[D];let _=Re(U);_&&(ne=rt(_)),v&&(ne=ne.map(se=>jt(se)))}g=g.slice(0,-U.length)}return[...Pe,Qt(hn(g)),...ne]}let M=Re(g),H=Bs(g),X=Is(g);if((C||v)&&x&&(t.parent.type==="Block"||t.parent.type==="ElementNode"||t.parent.type==="Template"))return"";x&&M?(H=Math.min(M,fn),X=0):((((o=t.next)==null?void 0:o.type)==="BlockStatement"||((c=t.next)==null?void 0:c.type)==="ElementNode")&&(X=Math.max(X,1)),(((p=t.previous)==null?void 0:p.type)==="BlockStatement"||((h=t.previous)==null?void 0:h.type)==="ElementNode")&&(H=Math.max(H,1)));let ve="",Ae="";return X===0&&((d=t.next)==null?void 0:d.type)==="MustacheStatement"&&(Ae=" "),H===0&&((N=t.previous)==null?void 0:N.type)==="MustacheStatement"&&(ve=" "),C&&(H=0,ve=""),v&&(X=0,Ae=""),K.hasLeadingWhitespace(g)&&(g=ve+K.trimStart(g)),K.hasTrailingWhitespace(g)&&(g=K.trimEnd(g)+Ae),[...rt(H),Qt(hn(g)),...rt(X)]}case"MustacheCommentStatement":{let g=Se(n),T=tt(n),x=e.originalText.charAt(g+2)==="~",C=e.originalText.charAt(T-3)==="~",v=n.value.includes("}}")?"--":"";return["{{",x?"~":"","!",v,n.value,v,C?"~":"","}}"]}case"PathExpression":return Ms(n);case"BooleanLiteral":return String(n.value);case"CommentStatement":return["<!--",n.value,"-->"];case"StringLiteral":return Rs(t,e);case"NumberLiteral":return String(n.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";case"AtHead":case"VarHead":case"ThisHead":default:throw new jr(n,"Handlebars")}}function ks(t,e){return Se(t)-Se(e)}function Ts(t,e){let{node:r}=t,n=["attributes","modifiers","comments"].filter(i=>Je(r[i])),s=n.flatMap(i=>r[i]).sort(ks);for(let i of n)t.each(({node:a})=>{let o=s.indexOf(a);s.splice(o,1,[D,e()])},i);return Je(r.blockParams)&&s.push(D,sr(r)),["<",r.tag,R(s),Ns(r)]}function an(t,e,r){let{node:n}=t,s=n.children.every(i=>bt(i));return e.htmlWhitespaceSensitivity==="ignore"&&s?"":t.map(({isFirst:i})=>{let a=r();return i&&e.htmlWhitespaceSensitivity==="ignore"?[Y,a]:a},"children")}function Ns(t){return rr(t)?Xt([Y,"/>"],[" />",Y]):Xt([Y,">"],">")}function yt(t){var n;let e=t.trusting?"{{{":"{{",r=(n=t.strip)!=null&&n.open?"~":"";return[e,r]}function Et(t){var n;let e=t.trusting?"}}}":"}}";return[(n=t.strip)!=null&&n.close?"~":"",e]}function vs(t){let e=yt(t),r=t.openStrip.open?"~":"";return[e,r,"#"]}function As(t){let e=Et(t);return[t.openStrip.close?"~":"",e]}function on(t){let e=yt(t),r=t.closeStrip.open?"~":"";return[e,r,"/"]}function ln(t){let e=Et(t);return[t.closeStrip.close?"~":"",e]}function dn(t){let e=yt(t),r=t.inverseStrip.open?"~":"";return[e,r]}function mn(t){let e=Et(t);return[t.inverseStrip.close?"~":"",e]}function Ps(t,e){let{node:r}=t,n=[],s=St(t,e);return s&&n.push(q(s)),Je(r.program.blockParams)&&n.push(sr(r.program)),q([vs(r),nr(t,e),n.length>0?R([D,Ee(D,n)]):"",Y,As(r)])}function xs(t,e){return[e.htmlWhitespaceSensitivity==="ignore"?ye:"",dn(t),"else",mn(t)]}var gn=(t,e)=>t.head.type==="VarHead"&&e.head.type==="VarHead"&&t.head.name===e.head.name;function Cs(t){var n;let{grandparent:e,node:r}=t;return((n=e==null?void 0:e.inverse)==null?void 0:n.body.length)===1&&e.inverse.body[0]===r&&gn(e.inverse.body[0].path,e.path)}function Ls(t,e){let{node:r,grandparent:n}=t;return q([dn(n),["else"," ",n.inverse.body[0].path.head.name],R([D,q(St(t,e)),...Je(r.program.blockParams)?[D,sr(r.program)]:[]]),Y,mn(n)])}function _s(t,e,r){let{node:n}=t;return r.htmlWhitespaceSensitivity==="ignore"?[bn(n)?Y:ye,on(n),e("path"),ln(n)]:[on(n),e("path"),ln(n)]}function bn(t){return t.type==="BlockStatement"&&t.program.body.every(e=>bt(e))}function Ds(t){return yn(t)&&t.inverse.body.length===1&&t.inverse.body[0].type==="BlockStatement"&&gn(t.inverse.body[0].path,t.path)}function yn(t){return t.type==="BlockStatement"&&t.inverse}function cn(t,e,r){let{node:n}=t;if(bn(n))return"";let s=e("program");return r.htmlWhitespaceSensitivity==="ignore"?R([ye,s]):R(s)}function un(t,e,r){let{node:n}=t,s=e("inverse"),i=r.htmlWhitespaceSensitivity==="ignore"?[ye,s]:s;return Ds(n)?i:yn(n)?[xs(n,r),R(i)]:""}function hn(t){return Ee(D,K.split(t))}function Os(t){for(let e=0;e<2;e++){let r=t.getParentNode(e);if((r==null?void 0:r.type)==="AttrNode")return r.name.toLowerCase()}}function Re(t){return t=typeof t=="string"?t:"",t.split(`
6
- `).length-1}function Bs(t){t=typeof t=="string"?t:"";let e=(t.match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"";return Re(e)}function Is(t){t=typeof t=="string"?t:"";let e=(t.match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"";return Re(e)}function rt(t=0){return Array.from({length:Math.min(t,fn)}).fill(ye)}function Rs(t,e){let{node:{value:r}}=t,n=gt(r,qs(t)?!e.singleQuote:e.singleQuote);return[n,Kt(!1,r,n,`\\${n}`),n]}function qs(t){let{ancestors:e}=t,r=e.findIndex(n=>n.type!=="SubExpression");return r!==-1&&e[r+1].type==="ConcatStatement"&&e[r+2].type==="AttrNode"}function Hs(t,e){let r=nr(t,e),n=St(t,e);return n?R([r,D,q(n)]):r}function pn(t,e){let r=nr(t,e),n=St(t,e);return n?[R([r,D,n]),Y]:r}function nr(t,e){return e("path")}function St(t,e){var s;let{node:r}=t,n=[];return r.params.length>0&&n.push(...t.map(e,"params")),((s=r.hash)==null?void 0:s.pairs.length)>0&&n.push(e("hash")),n.length===0?"":Ee(D,n)}function sr(t){return["as |",t.blockParams.join(" "),"|"]}var Vs=new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~"),Us=new Set(["true","false","null","undefined"]),Fs=(t,e)=>e===0&&t.startsWith("@")?!1:e!==0&&Us.has(t)||/\s/.test(t)||/^\d/.test(t)||Array.prototype.some.call(t,r=>Vs.has(r));function Ms(t){return t.tail.length===0&&t.original.includes("/")?t.original:[t.head.original,...t.tail].map((r,n)=>Fs(r,n)?`[${r}]`:r).join(".")}var zs={print:ws,massageAstNode:Xr,hasPrettierIgnore:sn,getVisitorKeys:en},En=zs;var Sn=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}];var Ir={};zt(Ir,{glimmer:()=>ha});var Gs=Object.freeze([]);function kn(){return Gs}var Po=kn(),xo=kn();function w(t,e){if(!t)throw new Error(e||"assertion failure")}function F(t){Js.warn(`DEPRECATION: ${t}`)}function kt(t){if(t==null)throw new Error("Expected value to be present");return t}function Tn(t,e){if(t==null)throw new Error(e);return t}function we(t){return t.length>0}function Tt(t,e="unexpected empty list"){if(!we(t))throw new Error(e)}function qe(t,e="unexpected empty list"){return Tt(t,e),t}function Nt(t){return t.length===0?void 0:t[t.length-1]}function Nn(t){return t.length===0?void 0:t[0]}var Ys;if(!1){let t=n=>{let s=n.name;if(s===void 0){let i=/function (\w+)\s*\(/u.exec(String(n));s=i&&i[1]||""}return s.replace(/^bound /u,"")},e=n=>{let s,i;return n.constructor&&typeof n.constructor=="function"&&(i=t(n.constructor)),"toString"in n&&n.toString!==Object.prototype.toString&&n.toString!==Function.prototype.toString&&(s=n.toString()),s&&/<.*:ember\d+>/u.test(s)&&i&&i[0]!=="_"&&i.length>2&&i!=="Class"?s.replace(/<.*:/u,`<${i}:`):s||i},r=n=>String(n);Ys=n=>typeof n=="function"?t(n)||"(unknown function)":typeof n=="object"&&n!==null?e(n)||"(unknown object)":r(n)}var ir=function(t){return t[t.MAX_SMI=1073741823]="MAX_SMI",t[t.MIN_SMI=-1073741824]="MIN_SMI",t[t.SIGN_BIT=-536870913]="SIGN_BIT",t[t.MAX_INT=536870911]="MAX_INT",t[t.MIN_INT=-536870912]="MIN_INT",t[t.FALSE_HANDLE=0]="FALSE_HANDLE",t[t.TRUE_HANDLE=1]="TRUE_HANDLE",t[t.NULL_HANDLE=2]="NULL_HANDLE",t[t.UNDEFINED_HANDLE=3]="UNDEFINED_HANDLE",t[t.ENCODED_FALSE_HANDLE=0]="ENCODED_FALSE_HANDLE",t[t.ENCODED_TRUE_HANDLE=1]="ENCODED_TRUE_HANDLE",t[t.ENCODED_NULL_HANDLE=2]="ENCODED_NULL_HANDLE",t[t.ENCODED_UNDEFINED_HANDLE=3]="ENCODED_UNDEFINED_HANDLE",t}({});function Ks(t){return t&ir.SIGN_BIT}function Ws(t){return t|~ir.SIGN_BIT}function $s(t){return~t}function js(t){return~t}function Qs(t){return t|=0,t<0?Ks(t):$s(t)}function Xs(t){return t|=0,t>ir.SIGN_BIT?js(t):Ws(t)}[1,-1].forEach(t=>Xs(Qs(t)));var ar=Object.assign;var Js=console,wn=console;function vn(t,e="unexpected unreachable branch"){throw wn.log("unreachable",t),wn.log(`${e} :: ${JSON.stringify(t)} (${t})`),new Error("code reached unreachable")}var Zs=function(){var t=function(ie,m,E,b){for(E=E||{},b=ie.length;b--;E[ie[b]]=m);return E},e=[2,44],r=[1,20],n=[5,14,15,19,29,34,39,44,47,48,52,56,60],s=[1,35],i=[1,38],a=[1,30],o=[1,31],c=[1,32],p=[1,33],h=[1,34],d=[1,37],N=[14,15,19,29,34,39,44,47,48,52,56,60],g=[14,15,19,29,34,44,47,48,52,56,60],T=[15,18],x=[14,15,19,29,34,47,48,52,56,60],C=[33,64,71,79,80,81,82,83,84],v=[23,33,55,64,67,71,74,79,80,81,82,83,84],M=[1,51],H=[23,33,55,64,67,71,74,79,80,81,82,83,84,86],X=[2,43],ve=[55,64,71,79,80,81,82,83,84],Ae=[1,58],J=[1,59],re=[1,66],V=[33,64,71,74,79,80,81,82,83,84],Pe=[23,64,71,79,80,81,82,83,84],U=[1,76],ne=[64,67,71,79,80,81,82,83,84],_=[33,74],se=[23,33,55,67,71,74],ut=[1,106],It=[1,118],qr=[71,76],Rt={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,expr:49,mustache_repetition0:50,mustache_option0:51,OPEN_UNESCAPED:52,mustache_repetition1:53,mustache_option1:54,CLOSE_UNESCAPED:55,OPEN_PARTIAL:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,sexpr:63,OPEN_SEXPR:64,sexpr_repetition0:65,sexpr_option0:66,CLOSE_SEXPR:67,hash:68,hash_repetition_plus0:69,hashSegment:70,ID:71,EQUALS:72,blockParams:73,OPEN_BLOCK_PARAMS:74,blockParams_repetition_plus0:75,CLOSE_BLOCK_PARAMS:76,path:77,dataName:78,STRING:79,NUMBER:80,BOOLEAN:81,UNDEFINED:82,NULL:83,DATA:84,pathSegments:85,SEP:86,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",52:"OPEN_UNESCAPED",55:"CLOSE_UNESCAPED",56:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",64:"OPEN_SEXPR",67:"CLOSE_SEXPR",71:"ID",72:"EQUALS",74:"OPEN_BLOCK_PARAMS",76:"CLOSE_BLOCK_PARAMS",79:"STRING",80:"NUMBER",81:"BOOLEAN",82:"UNDEFINED",83:"NULL",84:"DATA",86:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[49,1],[49,1],[63,5],[68,1],[70,3],[73,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[78,2],[77,1],[85,3],[85,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[50,0],[50,2],[51,0],[51,1],[53,0],[53,2],[54,0],[54,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[65,0],[65,2],[66,0],[66,1],[69,1],[69,2],[75,1],[75,2]],performAction:function(m,E,b,y,P,l,xe){var u=l.length-1;switch(P){case 1:return l[u-1];case 2:this.$=y.prepareProgram(l[u]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:this.$=l[u];break;case 9:this.$={type:"CommentStatement",value:y.stripComment(l[u]),strip:y.stripFlags(l[u],l[u]),loc:y.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[u],value:l[u],loc:y.locInfo(this._$)};break;case 11:this.$=y.prepareRawBlock(l[u-2],l[u-1],l[u],this._$);break;case 12:this.$={path:l[u-3],params:l[u-2],hash:l[u-1]};break;case 13:this.$=y.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!1,this._$);break;case 14:this.$=y.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!0,this._$);break;case 15:this.$={open:l[u-5],path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:y.stripFlags(l[u-5],l[u])};break;case 16:case 17:this.$={path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:y.stripFlags(l[u-5],l[u])};break;case 18:this.$={strip:y.stripFlags(l[u-1],l[u-1]),program:l[u]};break;case 19:var ae=y.prepareBlock(l[u-2],l[u-1],l[u],l[u],!1,this._$),Me=y.prepareProgram([ae],l[u-1].loc);Me.chained=!0,this.$={strip:l[u-2].strip,program:Me,chain:!0};break;case 21:this.$={path:l[u-1],strip:y.stripFlags(l[u-2],l[u])};break;case 22:case 23:this.$=y.prepareMustache(l[u-3],l[u-2],l[u-1],l[u-4],y.stripFlags(l[u-4],l[u]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[u-3],params:l[u-2],hash:l[u-1],indent:"",strip:y.stripFlags(l[u-4],l[u]),loc:y.locInfo(this._$)};break;case 25:this.$=y.preparePartialBlock(l[u-2],l[u-1],l[u],this._$);break;case 26:this.$={path:l[u-3],params:l[u-2],hash:l[u-1],strip:y.stripFlags(l[u-4],l[u])};break;case 29:this.$={type:"SubExpression",path:l[u-3],params:l[u-2],hash:l[u-1],loc:y.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[u],loc:y.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:y.id(l[u-2]),value:l[u],loc:y.locInfo(this._$)};break;case 32:this.$=y.id(l[u-1]);break;case 35:this.$={type:"StringLiteral",value:l[u],original:l[u],loc:y.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[u]),original:Number(l[u]),loc:y.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[u]==="true",original:l[u]==="true",loc:y.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:y.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:y.locInfo(this._$)};break;case 40:this.$=y.preparePath(!0,l[u],this._$);break;case 41:this.$=y.preparePath(!1,l[u],this._$);break;case 42:l[u-2].push({part:y.id(l[u]),original:l[u],separator:l[u-1]}),this.$=l[u-2];break;case 43:this.$=[{part:y.id(l[u]),original:l[u]}];break;case 44:case 46:case 48:case 56:case 62:case 68:case 76:case 80:case 84:case 88:case 92:this.$=[];break;case 45:case 47:case 49:case 57:case 63:case 69:case 77:case 81:case 85:case 89:case 93:case 97:case 99:l[u-1].push(l[u]);break;case 96:case 98:this.$=[l[u]];break}},table:[t([5,14,15,19,29,34,48,52,56,60],e,{3:1,4:2,6:3}),{1:[3]},{5:[1,4]},t([5,39,44,47],[2,2],{7:5,8:6,9:7,10:8,11:9,12:10,13:11,24:15,27:16,16:17,59:19,14:[1,12],15:r,19:[1,23],29:[1,21],34:[1,22],48:[1,13],52:[1,14],56:[1,18],60:[1,24]}),{1:[2,1]},t(n,[2,45]),t(n,[2,3]),t(n,[2,4]),t(n,[2,5]),t(n,[2,6]),t(n,[2,7]),t(n,[2,8]),t(n,[2,9]),{20:26,49:25,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:26,49:39,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(N,e,{6:3,4:40}),t(g,e,{6:3,4:41}),t(T,[2,46],{17:42}),{20:26,49:43,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(x,e,{6:3,4:44}),t([5,14,15,18,19,29,34,39,44,47,48,52,56,60],[2,10]),{20:45,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:46,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:47,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:26,49:48,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(C,[2,76],{50:49}),t(v,[2,27]),t(v,[2,28]),t(v,[2,33]),t(v,[2,34]),t(v,[2,35]),t(v,[2,36]),t(v,[2,37]),t(v,[2,38]),t(v,[2,39]),{20:26,49:50,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(v,[2,41],{86:M}),{71:i,85:52},t(H,X),t(ve,[2,80],{53:53}),{25:54,38:56,39:Ae,43:57,44:J,45:55,47:[2,52]},{28:60,43:61,44:J,47:[2,54]},{13:63,15:r,18:[1,62]},t(C,[2,84],{57:64}),{26:65,47:re},t(V,[2,56],{30:67}),t(V,[2,62],{35:68}),t(Pe,[2,48],{21:69}),t(C,[2,88],{61:70}),{20:26,33:[2,78],49:72,51:71,63:27,64:s,68:73,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(ne,[2,92],{65:77}),{71:[1,78]},t(v,[2,40],{86:M}),{20:26,49:80,54:79,55:[2,82],63:27,64:s,68:81,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{26:82,47:re},{47:[2,53]},t(N,e,{6:3,4:83}),{47:[2,20]},{20:84,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(x,e,{6:3,4:85}),{26:86,47:re},{47:[2,55]},t(n,[2,11]),t(T,[2,47]),{20:26,33:[2,86],49:88,58:87,63:27,64:s,68:89,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(n,[2,25]),{20:90,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(_,[2,58],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,31:91,49:92,68:93,64:s,71:U,79:a,80:o,81:c,82:p,83:h,84:d}),t(_,[2,64],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,36:94,49:95,68:96,64:s,71:U,79:a,80:o,81:c,82:p,83:h,84:d}),{20:26,22:97,23:[2,50],49:98,63:27,64:s,68:99,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:26,33:[2,90],49:101,62:100,63:27,64:s,68:102,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{33:[1,103]},t(C,[2,77]),{33:[2,79]},t([23,33,55,67,74],[2,30],{70:104,71:[1,105]}),t(se,[2,96]),t(H,X,{72:ut}),{20:26,49:108,63:27,64:s,66:107,67:[2,94],68:109,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(H,[2,42]),{55:[1,110]},t(ve,[2,81]),{55:[2,83]},t(n,[2,13]),{38:56,39:Ae,43:57,44:J,45:112,46:111,47:[2,74]},t(V,[2,68],{40:113}),{47:[2,18]},t(n,[2,14]),{33:[1,114]},t(C,[2,85]),{33:[2,87]},{33:[1,115]},{32:116,33:[2,60],73:117,74:It},t(V,[2,57]),t(_,[2,59]),{33:[2,66],37:119,73:120,74:It},t(V,[2,63]),t(_,[2,65]),{23:[1,121]},t(Pe,[2,49]),{23:[2,51]},{33:[1,122]},t(C,[2,89]),{33:[2,91]},t(n,[2,22]),t(se,[2,97]),{72:ut},{20:26,49:123,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{67:[1,124]},t(ne,[2,93]),{67:[2,95]},t(n,[2,23]),{47:[2,19]},{47:[2,75]},t(_,[2,70],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,41:125,49:126,68:127,64:s,71:U,79:a,80:o,81:c,82:p,83:h,84:d}),t(n,[2,24]),t(n,[2,21]),{33:[1,128]},{33:[2,61]},{71:[1,130],75:129},{33:[1,131]},{33:[2,67]},t(T,[2,12]),t(x,[2,26]),t(se,[2,31]),t(v,[2,29]),{33:[2,72],42:132,73:133,74:It},t(V,[2,69]),t(_,[2,71]),t(N,[2,15]),{71:[1,135],76:[1,134]},t(qr,[2,98]),t(g,[2,16]),{33:[1,136]},{33:[2,73]},{33:[2,32]},t(qr,[2,99]),t(N,[2,17])],defaultActions:{4:[2,1],55:[2,53],57:[2,20],61:[2,55],73:[2,79],81:[2,83],85:[2,18],89:[2,87],99:[2,51],102:[2,91],109:[2,95],111:[2,19],112:[2,75],117:[2,61],120:[2,67],133:[2,73],134:[2,32]},parseError:function(m,E){if(E.recoverable)this.trace(m);else{var b=new Error(m);throw b.hash=E,b}},parse:function(m){var E=this,b=[0],y=[],P=[null],l=[],xe=this.table,u="",ae=0,Me=0,Hr=0,Jn=2,Vr=1,Zn=l.slice.call(arguments,1),L=Object.create(this.lexer),me={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(me.yy[Ht]=this.yy[Ht]);L.setInput(m,me.yy),me.yy.lexer=L,me.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var Vt=L.yylloc;l.push(Vt);var es=L.options&&L.options.ranges;typeof me.yy.parseError=="function"?this.parseError=me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fa(W){b.length=b.length-2*W,P.length=P.length-W,l.length=l.length-W}for(var ts=function(){var W;return W=L.lex()||Vr,typeof W!="number"&&(W=E.symbols_[W]||W),W},I,Ut,ge,z,da,Ft,Ce={},ht,Z,Ur,pt;;){if(ge=b[b.length-1],this.defaultActions[ge]?z=this.defaultActions[ge]:((I===null||typeof I>"u")&&(I=ts()),z=xe[ge]&&xe[ge][I]),typeof z>"u"||!z.length||!z[0]){var Mt="";pt=[];for(ht in xe[ge])this.terminals_[ht]&&ht>Jn&&pt.push("'"+this.terminals_[ht]+"'");L.showPosition?Mt="Parse error on line "+(ae+1)+`:
4
+ `)):r)}var mt="'",Wr='"';function ps(t,e){let r=e===!0||e===mt?mt:Wr,n=r===mt?Wr:mt,s=0,i=0;for(let a of t)a===r?s++:a===n&&i++;return s>i?n:r}var gt=ps;function Jt(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var G,Zt=class{constructor(e){Gt(this,G);Yt(this,G,new Set(e))}getLeadingWhitespaceCount(e){let r=$(this,G),n=0;for(let s=0;s<e.length&&r.has(e.charAt(s));s++)n++;return n}getTrailingWhitespaceCount(e){let r=$(this,G),n=0;for(let s=e.length-1;s>=0&&r.has(e.charAt(s));s--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return $(this,G).has(e.charAt(0))}hasTrailingWhitespace(e){return $(this,G).has(oe(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${Jt([...$(this,G)].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return e.split(s)}hasWhitespaceCharacter(e){let r=$(this,G);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=$(this,G);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=$(this,G);return Array.prototype.every.call(e,n=>r.has(n))}};G=new WeakMap;var $r=Zt;var fs=[" ",`
5
+ `,"\f","\r"," "],ds=new $r(fs),K=ds;function ms(t){return Array.isArray(t)&&t.length>0}var Je=ms;var er=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},jr=er;function Qr(t,e){if(t.type==="TextNode"){let r=t.chars.trim();if(!r)return null;e.chars=K.split(r).join(" ")}t.type==="ElementNode"&&(delete e.startTag,delete e.openTag,delete e.parts,delete e.endTag,delete e.closeTag,delete e.nameNode,delete e.body,delete e.blockParamNodes,delete e.params,delete e.path),t.type==="Block"&&(delete e.blockParamNodes,delete e.params),t.type==="AttrNode"&&t.name.toLowerCase()==="class"&&delete e.value,t.type==="PathExpression"&&(e.head=t.head.original)}Qr.ignoredProperties=new Set(["loc","selfClosing"]);var Xr=Qr;var Ze=null;function et(t){if(Ze!==null&&typeof Ze.property){let e=Ze;return Ze=et.prototype=null,e}return Ze=et.prototype=t??Object.create(null),new et}var gs=10;for(let t=0;t<=gs;t++)et();function tr(t){return et(t)}function bs(t,e="type"){tr(t);function r(n){let s=n[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var Jr=bs;var Zr={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]};var ys=Jr(Zr),en=ys;function Se(t){return t.loc.start.offset}function tt(t){return t.loc.end.offset}var tn=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function nn(t){return t.toUpperCase()===t}function Es(t){return t.type==="ElementNode"&&typeof t.tag=="string"&&!t.tag.startsWith(":")&&(nn(t.tag[0])||t.tag.includes("."))}function Ss(t){return tn.has(t.toLowerCase())&&!nn(t[0])}function rr(t){return t.selfClosing===!0||Ss(t.tag)||Es(t)&&t.children.every(e=>bt(e))}function bt(t){return t.type==="TextNode"&&!/\S/u.test(t.chars)}function rn(t){return(t==null?void 0:t.type)==="MustacheCommentStatement"&&typeof t.value=="string"&&t.value.trim()==="prettier-ignore"}function sn(t){return rn(t.node)||t.isInArray&&(t.key==="children"||t.key==="body"||t.key==="parts")&&rn(t.siblings[t.index-2])}var fn=2;function ws(t,e,r){var s,i,a,o,c,p,h,d,N;let{node:n}=t;switch(n.type){case"Block":case"Program":case"Template":return q(t.map(r,"body"));case"ElementNode":{let g=q(Ts(t,r)),T=e.htmlWhitespaceSensitivity==="ignore"&&((s=t.next)==null?void 0:s.type)==="ElementNode"?Y:"";if(rr(n))return[g,T];let x=["</",n.tag,">"];return n.children.length===0?[g,R(x),T]:e.htmlWhitespaceSensitivity==="ignore"?[g,R(an(t,e,r)),ye,R(x),T]:[g,R(q(an(t,e,r))),R(x),T]}case"BlockStatement":return Cs(t)?[Ls(t,r),cn(t,r,e),un(t,r,e)]:[Ps(t,r),q([cn(t,r,e),un(t,r,e),_s(t,r,e)])];case"ElementModifierStatement":return q(["{{",pn(t,r),"}}"]);case"MustacheStatement":return q([yt(n),pn(t,r),Et(n)]);case"SubExpression":return q(["(",Hs(t,r),Y,")"]);case"AttrNode":{let{name:g,value:T}=n,x=T.type==="TextNode";if(x&&T.chars===""&&Se(T)===tt(T))return g;let v=x?gt(T.chars,e.singleQuote):T.type==="ConcatStatement"?gt(T.parts.map(H=>H.type==="TextNode"?H.chars:"").join(""),e.singleQuote):"",M=r("value");return[g,"=",v,g==="class"&&v?q(R(M)):M,v]}case"ConcatStatement":return t.map(r,"parts");case"Hash":return Ee(D,t.map(r,"pairs"));case"HashPair":return[n.key,"=",r("value")];case"TextNode":{let g=Kt(!1,n.chars,"{{",String.raw`\{{`),T=Os(t);if(T){if(T==="class"){let J=g.trim().split(/\s+/u).join(" "),re=!1,V=!1;return t.parent.type==="ConcatStatement"&&(((i=t.previous)==null?void 0:i.type)==="MustacheStatement"&&/^\s/u.test(g)&&(re=!0),((a=t.next)==null?void 0:a.type)==="MustacheStatement"&&/\s$/u.test(g)&&J!==""&&(V=!0)),[re?D:"",J,V?D:""]}return Kr(g)}let x=K.isWhitespaceOnly(g),{isFirst:C,isLast:v}=t;if(e.htmlWhitespaceSensitivity!=="ignore"){let J=v&&t.parent.type==="Template",re=C&&t.parent.type==="Template";if(x){if(re||J)return"";let _=[D],se=Re(g);return se&&(_=rt(se)),v&&(_=_.map(ut=>jt(ut))),_}let V=K.getLeadingWhitespace(g),Pe=[];if(V){Pe=[D];let _=Re(V);_&&(Pe=rt(_)),g=g.slice(V.length)}let U=K.getTrailingWhitespace(g),ne=[];if(U){if(!J){ne=[D];let _=Re(U);_&&(ne=rt(_)),v&&(ne=ne.map(se=>jt(se)))}g=g.slice(0,-U.length)}return[...Pe,Qt(hn(g)),...ne]}let M=Re(g),H=Bs(g),X=Is(g);if((C||v)&&x&&(t.parent.type==="Block"||t.parent.type==="ElementNode"||t.parent.type==="Template"))return"";x&&M?(H=Math.min(M,fn),X=0):((((o=t.next)==null?void 0:o.type)==="BlockStatement"||((c=t.next)==null?void 0:c.type)==="ElementNode")&&(X=Math.max(X,1)),(((p=t.previous)==null?void 0:p.type)==="BlockStatement"||((h=t.previous)==null?void 0:h.type)==="ElementNode")&&(H=Math.max(H,1)));let ve="",Ae="";return X===0&&((d=t.next)==null?void 0:d.type)==="MustacheStatement"&&(Ae=" "),H===0&&((N=t.previous)==null?void 0:N.type)==="MustacheStatement"&&(ve=" "),C&&(H=0,ve=""),v&&(X=0,Ae=""),K.hasLeadingWhitespace(g)&&(g=ve+K.trimStart(g)),K.hasTrailingWhitespace(g)&&(g=K.trimEnd(g)+Ae),[...rt(H),Qt(hn(g)),...rt(X)]}case"MustacheCommentStatement":{let g=Se(n),T=tt(n),x=e.originalText.charAt(g+2)==="~",C=e.originalText.charAt(T-3)==="~",v=n.value.includes("}}")?"--":"";return["{{",x?"~":"","!",v,n.value,v,C?"~":"","}}"]}case"PathExpression":return Ms(n);case"BooleanLiteral":return String(n.value);case"CommentStatement":return["<!--",n.value,"-->"];case"StringLiteral":return Rs(t,e);case"NumberLiteral":return String(n.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";case"AtHead":case"VarHead":case"ThisHead":default:throw new jr(n,"Handlebars")}}function ks(t,e){return Se(t)-Se(e)}function Ts(t,e){let{node:r}=t,n=["attributes","modifiers","comments"].filter(i=>Je(r[i])),s=n.flatMap(i=>r[i]).sort(ks);for(let i of n)t.each(({node:a})=>{let o=s.indexOf(a);s.splice(o,1,[D,e()])},i);return Je(r.blockParams)&&s.push(D,sr(r)),["<",r.tag,R(s),Ns(r)]}function an(t,e,r){let{node:n}=t,s=n.children.every(i=>bt(i));return e.htmlWhitespaceSensitivity==="ignore"&&s?"":t.map(({isFirst:i})=>{let a=r();return i&&e.htmlWhitespaceSensitivity==="ignore"?[Y,a]:a},"children")}function Ns(t){return rr(t)?Xt([Y,"/>"],[" />",Y]):Xt([Y,">"],">")}function yt(t){var n;let e=t.trusting?"{{{":"{{",r=(n=t.strip)!=null&&n.open?"~":"";return[e,r]}function Et(t){var n;let e=t.trusting?"}}}":"}}";return[(n=t.strip)!=null&&n.close?"~":"",e]}function vs(t){let e=yt(t),r=t.openStrip.open?"~":"";return[e,r,"#"]}function As(t){let e=Et(t);return[t.openStrip.close?"~":"",e]}function on(t){let e=yt(t),r=t.closeStrip.open?"~":"";return[e,r,"/"]}function ln(t){let e=Et(t);return[t.closeStrip.close?"~":"",e]}function dn(t){let e=yt(t),r=t.inverseStrip.open?"~":"";return[e,r]}function mn(t){let e=Et(t);return[t.inverseStrip.close?"~":"",e]}function Ps(t,e){let{node:r}=t,n=[],s=St(t,e);return s&&n.push(q(s)),Je(r.program.blockParams)&&n.push(sr(r.program)),q([vs(r),nr(t,e),n.length>0?R([D,Ee(D,n)]):"",Y,As(r)])}function xs(t,e){return[e.htmlWhitespaceSensitivity==="ignore"?ye:"",dn(t),"else",mn(t)]}var gn=(t,e)=>t.head.type==="VarHead"&&e.head.type==="VarHead"&&t.head.name===e.head.name;function Cs(t){var n;let{grandparent:e,node:r}=t;return((n=e==null?void 0:e.inverse)==null?void 0:n.body.length)===1&&e.inverse.body[0]===r&&gn(e.inverse.body[0].path,e.path)}function Ls(t,e){let{node:r,grandparent:n}=t;return q([dn(n),["else"," ",n.inverse.body[0].path.head.name],R([D,q(St(t,e)),...Je(r.program.blockParams)?[D,sr(r.program)]:[]]),Y,mn(n)])}function _s(t,e,r){let{node:n}=t;return r.htmlWhitespaceSensitivity==="ignore"?[bn(n)?Y:ye,on(n),e("path"),ln(n)]:[on(n),e("path"),ln(n)]}function bn(t){return t.type==="BlockStatement"&&t.program.body.every(e=>bt(e))}function Ds(t){return yn(t)&&t.inverse.body.length===1&&t.inverse.body[0].type==="BlockStatement"&&gn(t.inverse.body[0].path,t.path)}function yn(t){return t.type==="BlockStatement"&&t.inverse}function cn(t,e,r){let{node:n}=t;if(bn(n))return"";let s=e("program");return r.htmlWhitespaceSensitivity==="ignore"?R([ye,s]):R(s)}function un(t,e,r){let{node:n}=t,s=e("inverse"),i=r.htmlWhitespaceSensitivity==="ignore"?[ye,s]:s;return Ds(n)?i:yn(n)?[xs(n,r),R(i)]:""}function hn(t){return Ee(D,K.split(t))}function Os(t){for(let e=0;e<2;e++){let r=t.getParentNode(e);if((r==null?void 0:r.type)==="AttrNode")return r.name.toLowerCase()}}function Re(t){return t=typeof t=="string"?t:"",t.split(`
6
+ `).length-1}function Bs(t){t=typeof t=="string"?t:"";let e=(t.match(/^([^\S\n\r]*[\n\r])+/gu)||[])[0]||"";return Re(e)}function Is(t){t=typeof t=="string"?t:"";let e=(t.match(/([\n\r][^\S\n\r]*)+$/gu)||[])[0]||"";return Re(e)}function rt(t=0){return Array.from({length:Math.min(t,fn)}).fill(ye)}function Rs(t,e){let{node:{value:r}}=t,n=gt(r,qs(t)?!e.singleQuote:e.singleQuote);return[n,Kt(!1,r,n,`\\${n}`),n]}function qs(t){let{ancestors:e}=t,r=e.findIndex(n=>n.type!=="SubExpression");return r!==-1&&e[r+1].type==="ConcatStatement"&&e[r+2].type==="AttrNode"}function Hs(t,e){let r=nr(t,e),n=St(t,e);return n?R([r,D,q(n)]):r}function pn(t,e){let r=nr(t,e),n=St(t,e);return n?[R([r,D,n]),Y]:r}function nr(t,e){return e("path")}function St(t,e){var s;let{node:r}=t,n=[];return r.params.length>0&&n.push(...t.map(e,"params")),((s=r.hash)==null?void 0:s.pairs.length)>0&&n.push(e("hash")),n.length===0?"":Ee(D,n)}function sr(t){return["as |",t.blockParams.join(" "),"|"]}var Vs=new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~"),Us=new Set(["true","false","null","undefined"]),Fs=(t,e)=>e===0&&t.startsWith("@")?!1:e!==0&&Us.has(t)||/\s/u.test(t)||/^\d/u.test(t)||Array.prototype.some.call(t,r=>Vs.has(r));function Ms(t){return t.tail.length===0&&t.original.includes("/")?t.original:[t.head.original,...t.tail].map((r,n)=>Fs(r,n)?`[${r}]`:r).join(".")}var zs={print:ws,massageAstNode:Xr,hasPrettierIgnore:sn,getVisitorKeys:en},En=zs;var Sn=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}];var Ir={};zt(Ir,{glimmer:()=>ha});var Gs=Object.freeze([]);function kn(){return Gs}var Po=kn(),xo=kn();function w(t,e){if(!t)throw new Error(e||"assertion failure")}function F(t){Js.warn(`DEPRECATION: ${t}`)}function kt(t){if(t==null)throw new Error("Expected value to be present");return t}function Tn(t,e){if(t==null)throw new Error(e);return t}function we(t){return t.length>0}function Tt(t,e="unexpected empty list"){if(!we(t))throw new Error(e)}function qe(t,e="unexpected empty list"){return Tt(t,e),t}function Nt(t){return t.length===0?void 0:t[t.length-1]}function Nn(t){return t.length===0?void 0:t[0]}var Ys;if(!1){let t=n=>{let s=n.name;if(s===void 0){let i=/function (\w+)\s*\(/u.exec(String(n));s=i&&i[1]||""}return s.replace(/^bound /u,"")},e=n=>{let s,i;return n.constructor&&typeof n.constructor=="function"&&(i=t(n.constructor)),"toString"in n&&n.toString!==Object.prototype.toString&&n.toString!==Function.prototype.toString&&(s=n.toString()),s&&/<.*:ember\d+>/u.test(s)&&i&&i[0]!=="_"&&i.length>2&&i!=="Class"?s.replace(/<.*:/u,`<${i}:`):s||i},r=n=>String(n);Ys=n=>typeof n=="function"?t(n)||"(unknown function)":typeof n=="object"&&n!==null?e(n)||"(unknown object)":r(n)}var ir=function(t){return t[t.MAX_SMI=1073741823]="MAX_SMI",t[t.MIN_SMI=-1073741824]="MIN_SMI",t[t.SIGN_BIT=-536870913]="SIGN_BIT",t[t.MAX_INT=536870911]="MAX_INT",t[t.MIN_INT=-536870912]="MIN_INT",t[t.FALSE_HANDLE=0]="FALSE_HANDLE",t[t.TRUE_HANDLE=1]="TRUE_HANDLE",t[t.NULL_HANDLE=2]="NULL_HANDLE",t[t.UNDEFINED_HANDLE=3]="UNDEFINED_HANDLE",t[t.ENCODED_FALSE_HANDLE=0]="ENCODED_FALSE_HANDLE",t[t.ENCODED_TRUE_HANDLE=1]="ENCODED_TRUE_HANDLE",t[t.ENCODED_NULL_HANDLE=2]="ENCODED_NULL_HANDLE",t[t.ENCODED_UNDEFINED_HANDLE=3]="ENCODED_UNDEFINED_HANDLE",t}({});function Ks(t){return t&ir.SIGN_BIT}function Ws(t){return t|~ir.SIGN_BIT}function $s(t){return~t}function js(t){return~t}function Qs(t){return t|=0,t<0?Ks(t):$s(t)}function Xs(t){return t|=0,t>ir.SIGN_BIT?js(t):Ws(t)}[1,-1].forEach(t=>Xs(Qs(t)));var ar=Object.assign;var Js=console,wn=console;function vn(t,e="unexpected unreachable branch"){throw wn.log("unreachable",t),wn.log(`${e} :: ${JSON.stringify(t)} (${t})`),new Error("code reached unreachable")}var Zs=function(){var t=function(ie,m,E,b){for(E=E||{},b=ie.length;b--;E[ie[b]]=m);return E},e=[2,44],r=[1,20],n=[5,14,15,19,29,34,39,44,47,48,52,56,60],s=[1,35],i=[1,38],a=[1,30],o=[1,31],c=[1,32],p=[1,33],h=[1,34],d=[1,37],N=[14,15,19,29,34,39,44,47,48,52,56,60],g=[14,15,19,29,34,44,47,48,52,56,60],T=[15,18],x=[14,15,19,29,34,47,48,52,56,60],C=[33,64,71,79,80,81,82,83,84],v=[23,33,55,64,67,71,74,79,80,81,82,83,84],M=[1,51],H=[23,33,55,64,67,71,74,79,80,81,82,83,84,86],X=[2,43],ve=[55,64,71,79,80,81,82,83,84],Ae=[1,58],J=[1,59],re=[1,66],V=[33,64,71,74,79,80,81,82,83,84],Pe=[23,64,71,79,80,81,82,83,84],U=[1,76],ne=[64,67,71,79,80,81,82,83,84],_=[33,74],se=[23,33,55,67,71,74],ut=[1,106],It=[1,118],qr=[71,76],Rt={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,expr:49,mustache_repetition0:50,mustache_option0:51,OPEN_UNESCAPED:52,mustache_repetition1:53,mustache_option1:54,CLOSE_UNESCAPED:55,OPEN_PARTIAL:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,sexpr:63,OPEN_SEXPR:64,sexpr_repetition0:65,sexpr_option0:66,CLOSE_SEXPR:67,hash:68,hash_repetition_plus0:69,hashSegment:70,ID:71,EQUALS:72,blockParams:73,OPEN_BLOCK_PARAMS:74,blockParams_repetition_plus0:75,CLOSE_BLOCK_PARAMS:76,path:77,dataName:78,STRING:79,NUMBER:80,BOOLEAN:81,UNDEFINED:82,NULL:83,DATA:84,pathSegments:85,SEP:86,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",52:"OPEN_UNESCAPED",55:"CLOSE_UNESCAPED",56:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",64:"OPEN_SEXPR",67:"CLOSE_SEXPR",71:"ID",72:"EQUALS",74:"OPEN_BLOCK_PARAMS",76:"CLOSE_BLOCK_PARAMS",79:"STRING",80:"NUMBER",81:"BOOLEAN",82:"UNDEFINED",83:"NULL",84:"DATA",86:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[49,1],[49,1],[63,5],[68,1],[70,3],[73,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[78,2],[77,1],[85,3],[85,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[50,0],[50,2],[51,0],[51,1],[53,0],[53,2],[54,0],[54,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[65,0],[65,2],[66,0],[66,1],[69,1],[69,2],[75,1],[75,2]],performAction:function(m,E,b,y,P,l,xe){var u=l.length-1;switch(P){case 1:return l[u-1];case 2:this.$=y.prepareProgram(l[u]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:this.$=l[u];break;case 9:this.$={type:"CommentStatement",value:y.stripComment(l[u]),strip:y.stripFlags(l[u],l[u]),loc:y.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[u],value:l[u],loc:y.locInfo(this._$)};break;case 11:this.$=y.prepareRawBlock(l[u-2],l[u-1],l[u],this._$);break;case 12:this.$={path:l[u-3],params:l[u-2],hash:l[u-1]};break;case 13:this.$=y.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!1,this._$);break;case 14:this.$=y.prepareBlock(l[u-3],l[u-2],l[u-1],l[u],!0,this._$);break;case 15:this.$={open:l[u-5],path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:y.stripFlags(l[u-5],l[u])};break;case 16:case 17:this.$={path:l[u-4],params:l[u-3],hash:l[u-2],blockParams:l[u-1],strip:y.stripFlags(l[u-5],l[u])};break;case 18:this.$={strip:y.stripFlags(l[u-1],l[u-1]),program:l[u]};break;case 19:var ae=y.prepareBlock(l[u-2],l[u-1],l[u],l[u],!1,this._$),Me=y.prepareProgram([ae],l[u-1].loc);Me.chained=!0,this.$={strip:l[u-2].strip,program:Me,chain:!0};break;case 21:this.$={path:l[u-1],strip:y.stripFlags(l[u-2],l[u])};break;case 22:case 23:this.$=y.prepareMustache(l[u-3],l[u-2],l[u-1],l[u-4],y.stripFlags(l[u-4],l[u]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[u-3],params:l[u-2],hash:l[u-1],indent:"",strip:y.stripFlags(l[u-4],l[u]),loc:y.locInfo(this._$)};break;case 25:this.$=y.preparePartialBlock(l[u-2],l[u-1],l[u],this._$);break;case 26:this.$={path:l[u-3],params:l[u-2],hash:l[u-1],strip:y.stripFlags(l[u-4],l[u])};break;case 29:this.$={type:"SubExpression",path:l[u-3],params:l[u-2],hash:l[u-1],loc:y.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[u],loc:y.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:y.id(l[u-2]),value:l[u],loc:y.locInfo(this._$)};break;case 32:this.$=y.id(l[u-1]);break;case 35:this.$={type:"StringLiteral",value:l[u],original:l[u],loc:y.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[u]),original:Number(l[u]),loc:y.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[u]==="true",original:l[u]==="true",loc:y.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:y.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:y.locInfo(this._$)};break;case 40:this.$=y.preparePath(!0,l[u],this._$);break;case 41:this.$=y.preparePath(!1,l[u],this._$);break;case 42:l[u-2].push({part:y.id(l[u]),original:l[u],separator:l[u-1]}),this.$=l[u-2];break;case 43:this.$=[{part:y.id(l[u]),original:l[u]}];break;case 44:case 46:case 48:case 56:case 62:case 68:case 76:case 80:case 84:case 88:case 92:this.$=[];break;case 45:case 47:case 49:case 57:case 63:case 69:case 77:case 81:case 85:case 89:case 93:case 97:case 99:l[u-1].push(l[u]);break;case 96:case 98:this.$=[l[u]];break}},table:[t([5,14,15,19,29,34,48,52,56,60],e,{3:1,4:2,6:3}),{1:[3]},{5:[1,4]},t([5,39,44,47],[2,2],{7:5,8:6,9:7,10:8,11:9,12:10,13:11,24:15,27:16,16:17,59:19,14:[1,12],15:r,19:[1,23],29:[1,21],34:[1,22],48:[1,13],52:[1,14],56:[1,18],60:[1,24]}),{1:[2,1]},t(n,[2,45]),t(n,[2,3]),t(n,[2,4]),t(n,[2,5]),t(n,[2,6]),t(n,[2,7]),t(n,[2,8]),t(n,[2,9]),{20:26,49:25,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:26,49:39,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(N,e,{6:3,4:40}),t(g,e,{6:3,4:41}),t(T,[2,46],{17:42}),{20:26,49:43,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(x,e,{6:3,4:44}),t([5,14,15,18,19,29,34,39,44,47,48,52,56,60],[2,10]),{20:45,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:46,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:47,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:26,49:48,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(C,[2,76],{50:49}),t(v,[2,27]),t(v,[2,28]),t(v,[2,33]),t(v,[2,34]),t(v,[2,35]),t(v,[2,36]),t(v,[2,37]),t(v,[2,38]),t(v,[2,39]),{20:26,49:50,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(v,[2,41],{86:M}),{71:i,85:52},t(H,X),t(ve,[2,80],{53:53}),{25:54,38:56,39:Ae,43:57,44:J,45:55,47:[2,52]},{28:60,43:61,44:J,47:[2,54]},{13:63,15:r,18:[1,62]},t(C,[2,84],{57:64}),{26:65,47:re},t(V,[2,56],{30:67}),t(V,[2,62],{35:68}),t(Pe,[2,48],{21:69}),t(C,[2,88],{61:70}),{20:26,33:[2,78],49:72,51:71,63:27,64:s,68:73,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(ne,[2,92],{65:77}),{71:[1,78]},t(v,[2,40],{86:M}),{20:26,49:80,54:79,55:[2,82],63:27,64:s,68:81,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{26:82,47:re},{47:[2,53]},t(N,e,{6:3,4:83}),{47:[2,20]},{20:84,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(x,e,{6:3,4:85}),{26:86,47:re},{47:[2,55]},t(n,[2,11]),t(T,[2,47]),{20:26,33:[2,86],49:88,58:87,63:27,64:s,68:89,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(n,[2,25]),{20:90,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(_,[2,58],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,31:91,49:92,68:93,64:s,71:U,79:a,80:o,81:c,82:p,83:h,84:d}),t(_,[2,64],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,36:94,49:95,68:96,64:s,71:U,79:a,80:o,81:c,82:p,83:h,84:d}),{20:26,22:97,23:[2,50],49:98,63:27,64:s,68:99,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{20:26,33:[2,90],49:101,62:100,63:27,64:s,68:102,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{33:[1,103]},t(C,[2,77]),{33:[2,79]},t([23,33,55,67,74],[2,30],{70:104,71:[1,105]}),t(se,[2,96]),t(H,X,{72:ut}),{20:26,49:108,63:27,64:s,66:107,67:[2,94],68:109,69:74,70:75,71:U,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},t(H,[2,42]),{55:[1,110]},t(ve,[2,81]),{55:[2,83]},t(n,[2,13]),{38:56,39:Ae,43:57,44:J,45:112,46:111,47:[2,74]},t(V,[2,68],{40:113}),{47:[2,18]},t(n,[2,14]),{33:[1,114]},t(C,[2,85]),{33:[2,87]},{33:[1,115]},{32:116,33:[2,60],73:117,74:It},t(V,[2,57]),t(_,[2,59]),{33:[2,66],37:119,73:120,74:It},t(V,[2,63]),t(_,[2,65]),{23:[1,121]},t(Pe,[2,49]),{23:[2,51]},{33:[1,122]},t(C,[2,89]),{33:[2,91]},t(n,[2,22]),t(se,[2,97]),{72:ut},{20:26,49:123,63:27,64:s,71:i,77:28,78:29,79:a,80:o,81:c,82:p,83:h,84:d,85:36},{67:[1,124]},t(ne,[2,93]),{67:[2,95]},t(n,[2,23]),{47:[2,19]},{47:[2,75]},t(_,[2,70],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,41:125,49:126,68:127,64:s,71:U,79:a,80:o,81:c,82:p,83:h,84:d}),t(n,[2,24]),t(n,[2,21]),{33:[1,128]},{33:[2,61]},{71:[1,130],75:129},{33:[1,131]},{33:[2,67]},t(T,[2,12]),t(x,[2,26]),t(se,[2,31]),t(v,[2,29]),{33:[2,72],42:132,73:133,74:It},t(V,[2,69]),t(_,[2,71]),t(N,[2,15]),{71:[1,135],76:[1,134]},t(qr,[2,98]),t(g,[2,16]),{33:[1,136]},{33:[2,73]},{33:[2,32]},t(qr,[2,99]),t(N,[2,17])],defaultActions:{4:[2,1],55:[2,53],57:[2,20],61:[2,55],73:[2,79],81:[2,83],85:[2,18],89:[2,87],99:[2,51],102:[2,91],109:[2,95],111:[2,19],112:[2,75],117:[2,61],120:[2,67],133:[2,73],134:[2,32]},parseError:function(m,E){if(E.recoverable)this.trace(m);else{var b=new Error(m);throw b.hash=E,b}},parse:function(m){var E=this,b=[0],y=[],P=[null],l=[],xe=this.table,u="",ae=0,Me=0,Hr=0,Jn=2,Vr=1,Zn=l.slice.call(arguments,1),L=Object.create(this.lexer),me={yy:{}};for(var Ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ht)&&(me.yy[Ht]=this.yy[Ht]);L.setInput(m,me.yy),me.yy.lexer=L,me.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var Vt=L.yylloc;l.push(Vt);var es=L.options&&L.options.ranges;typeof me.yy.parseError=="function"?this.parseError=me.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function fa(W){b.length=b.length-2*W,P.length=P.length-W,l.length=l.length-W}for(var ts=function(){var W;return W=L.lex()||Vr,typeof W!="number"&&(W=E.symbols_[W]||W),W},I,Ut,ge,z,da,Ft,Ce={},ht,Z,Ur,pt;;){if(ge=b[b.length-1],this.defaultActions[ge]?z=this.defaultActions[ge]:((I===null||typeof I>"u")&&(I=ts()),z=xe[ge]&&xe[ge][I]),typeof z>"u"||!z.length||!z[0]){var Mt="";pt=[];for(ht in xe[ge])this.terminals_[ht]&&ht>Jn&&pt.push("'"+this.terminals_[ht]+"'");L.showPosition?Mt="Parse error on line "+(ae+1)+`:
7
7
  `+L.showPosition()+`
8
8
  Expecting `+pt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Mt="Parse error on line "+(ae+1)+": Unexpected "+(I==Vr?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Mt,{text:L.match,token:this.terminals_[I]||I,line:L.yylineno,loc:Vt,expected:pt})}if(z[0]instanceof Array&&z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+ge+", token: "+I);switch(z[0]){case 1:b.push(I),P.push(L.yytext),l.push(L.yylloc),b.push(z[1]),I=null,Ut?(I=Ut,Ut=null):(Me=L.yyleng,u=L.yytext,ae=L.yylineno,Vt=L.yylloc,Hr>0&&Hr--);break;case 2:if(Z=this.productions_[z[1]][1],Ce.$=P[P.length-Z],Ce._$={first_line:l[l.length-(Z||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(Z||1)].first_column,last_column:l[l.length-1].last_column},es&&(Ce._$.range=[l[l.length-(Z||1)].range[0],l[l.length-1].range[1]]),Ft=this.performAction.apply(Ce,[u,Me,ae,me.yy,z[1],P,l].concat(Zn)),typeof Ft<"u")return Ft;Z&&(b=b.slice(0,-1*Z*2),P=P.slice(0,-1*Z),l=l.slice(0,-1*Z)),b.push(this.productions_[z[1]][0]),P.push(Ce.$),l.push(Ce._$),Ur=xe[b[b.length-2]][b[b.length-1]],b.push(Ur);break;case 3:return!0}}return!0}},Xn=function(){var ie={EOF:1,parseError:function(E,b){if(this.yy.parser)this.yy.parser.parseError(E,b);else throw new Error(E)},setInput:function(m,E){return this.yy=E||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var E=m.match(/(?:\r\n?|\n).*/g);return E?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},unput:function(m){var E=m.length,b=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-E),this.offset-=E;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),b.length-1&&(this.yylineno-=b.length-1);var P=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:b?(b.length===y.length?this.yylloc.first_column:0)+y[y.length-b.length].length-b[0].length:this.yylloc.first_column-E},this.options.ranges&&(this.yylloc.range=[P[0],P[0]+this.yyleng-E]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
9
9
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(m){this.unput(this.match.slice(m))},pastInput:function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var m=this.pastInput(),E=new Array(m.length+1).join("-");return m+this.upcomingInput()+`
@@ -26,5 +26,5 @@ Expecting `+pt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Mt="Parse error
26
26
  `)}},qn="beforeAttributeName",ta="attributeValueUnquoted",Lr=class extends Cr{pendingError=null;parse(e,r){var i;let n=f.template({body:[],blockParams:r,loc:this.source.spanFor(e.loc)}),s=this.parseProgram(n,e);return(i=this.pendingError)==null||i.eof(s.loc.getEnd()),s}Program(e,r){w(Array.isArray(r),"[BUG] Program in parser unexpectedly called without block params");let n=f.blockItself({body:[],params:r,chained:e.chained,loc:this.source.spanFor(e.loc)});return this.parseProgram(n,e)}parseProgram(e,r){if(r.body.length===0)return e;let n;try{this.elementStack.push(e);for(let s of r.body)this.acceptNode(s)}finally{n=this.elementStack.pop()}if(e!==n){if((n==null?void 0:n.type)==="ElementNode")throw S(`Unclosed element \`${n.tag}\``,n.loc);w(n!==void 0,"[BUG] empty parser elementStack"),w(!1,`[BUG] mismatched parser elementStack node: ${e.type}`)}return e}BlockStatement(e){var d;if(this.tokenizer.state==="comment"){this.appendToCommentData(this.sourceForNode(e));return}if(this.tokenizer.state!=="data"&&this.tokenizer.state!=="beforeData")throw S("A block may only be used inside an HTML element or another block.",this.source.spanFor(e.loc));let{path:r,params:n,hash:s}=Sr(this,e),i=this.source.spanFor(e.loc),a=[];if((d=e.program.blockParams)!=null&&d.length){let N=s.loc.collapse("end");e.program.loc?N=N.withEnd(this.source.spanFor(e.program.loc).getStart()):e.program.body[0]?N=N.withEnd(this.source.spanFor(e.program.body[0].loc).getStart()):N=N.withEnd(i.getEnd());let g=N.asString(),T=g.indexOf("|")+1,x=g.indexOf("|",T);for(let C of e.program.blockParams){let v,M;T>=x?v=-1:v=g.indexOf(C,T),v===-1||v+C.length>x?(T=x,M=this.source.spanFor(st)):(T=v,M=N.sliceStartChars({skipStart:T,chars:C.length}),T+=C.length),a.push(f.var({name:C,loc:M}))}}e.program.loc||(e.program.loc=st),e.inverse&&!e.inverse.loc&&(e.inverse.loc=st);let o=this.Program(e.program,a),c=e.inverse?this.Program(e.inverse,[]):null,p=f.block({path:r,params:n,hash:s,defaultBlock:o,elseBlock:c,loc:this.source.spanFor(e.loc),openStrip:e.openStrip,inverseStrip:e.inverseStrip,closeStrip:e.closeStrip}),h=this.currentElement();Ve(h,p)}MustacheStatement(e){var o;(o=this.pendingError)==null||o.mustache(this.source.spanFor(e.loc));let{tokenizer:r}=this;if(r.state==="comment"){this.appendToCommentData(this.sourceForNode(e));return}let n,{escaped:s,loc:i,strip:a}=e;if("original"in e.path&&e.path.original==="...attributes")throw S("Illegal use of ...attributes",this.source.spanFor(e.loc));if(Mn(e.path))n=f.mustache({path:this.acceptNode(e.path),params:[],hash:f.hash({pairs:[],loc:this.source.spanFor(e.path.loc).collapse("end")}),trusting:!s,loc:this.source.spanFor(i),strip:a});else{let{path:c,params:p,hash:h}=Sr(this,e);n=f.mustache({path:c,params:p,hash:h,trusting:!s,loc:this.source.spanFor(i),strip:a})}switch(r.state){case"tagOpen":case"tagName":throw S("Cannot use mustaches in an elements tagname",n.loc);case"beforeAttributeName":wr(this.currentStartTag,n);break;case"attributeName":case"afterAttributeName":this.beginAttributeValue(!1),this.finishAttributeValue(),wr(this.currentStartTag,n),r.transitionTo(qn);break;case"afterAttributeValueQuoted":wr(this.currentStartTag,n),r.transitionTo(qn);break;case"beforeAttributeValue":this.beginAttributeValue(!1),this.appendDynamicAttributeValuePart(n),r.transitionTo(ta);break;case"attributeValueDoubleQuoted":case"attributeValueSingleQuoted":case"attributeValueUnquoted":this.appendDynamicAttributeValuePart(n);break;default:Ve(this.currentElement(),n)}return n}appendDynamicAttributeValuePart(e){this.finalizeTextPart();let r=this.currentAttr;r.isDynamic=!0,r.parts.push(e)}finalizeTextPart(){let r=this.currentAttr.currentPart;r!==null&&(this.currentAttr.parts.push(r),this.startTextPart())}startTextPart(){this.currentAttr.currentPart=null}ContentStatement(e){na(this.tokenizer,e),this.tokenizer.tokenizePart(e.value),this.tokenizer.flushData()}CommentStatement(e){let{tokenizer:r}=this;if(r.state==="comment")return this.appendToCommentData(this.sourceForNode(e)),null;let{value:n,loc:s}=e,i=f.mustacheComment({value:n,loc:this.source.spanFor(s)});switch(r.state){case"beforeAttributeName":case"afterAttributeName":this.currentStartTag.comments.push(i);break;case"beforeData":case"data":Ve(this.currentElement(),i);break;default:throw S(`Using a Handlebars comment when in the \`${r.state}\` state is not supported`,this.source.spanFor(e.loc))}return i}PartialStatement(e){throw S("Handlebars partials are not supported",this.source.spanFor(e.loc))}PartialBlockStatement(e){throw S("Handlebars partial blocks are not supported",this.source.spanFor(e.loc))}Decorator(e){throw S("Handlebars decorators are not supported",this.source.spanFor(e.loc))}DecoratorBlock(e){throw S("Handlebars decorator blocks are not supported",this.source.spanFor(e.loc))}SubExpression(e){let{path:r,params:n,hash:s}=Sr(this,e);return f.sexpr({path:r,params:n,hash:s,loc:this.source.spanFor(e.loc)})}PathExpression(e){let{original:r}=e,n;if(r.indexOf("/")!==-1){if(r.slice(0,2)==="./")throw S('Using "./" is not supported in Glimmer and unnecessary',this.source.spanFor(e.loc));if(r.slice(0,3)==="../")throw S('Changing context using "../" is not supported in Glimmer',this.source.spanFor(e.loc));if(r.indexOf(".")!==-1)throw S("Mixing '.' and '/' in paths is not supported in Glimmer; use only '.' to separate property paths",this.source.spanFor(e.loc));n=[e.parts.join("/")]}else{if(r===".")throw S("'.' is not a supported path in Glimmer; check for a path with a trailing '.'",this.source.spanFor(e.loc));n=e.parts}let s=!1;/^this(?:\..+)?$/u.test(r)&&(s=!0);let i;if(s)i=f.this({loc:this.source.spanFor({start:e.loc.start,end:{line:e.loc.start.line,column:e.loc.start.column+4}})});else if(e.data){let a=n.shift();if(a===void 0)throw S("Attempted to parse a path expression, but it was not valid. Paths beginning with @ must start with a-z.",this.source.spanFor(e.loc));i=f.atName({name:`@${a}`,loc:this.source.spanFor({start:e.loc.start,end:{line:e.loc.start.line,column:e.loc.start.column+a.length+1}})})}else{let a=n.shift();if(a===void 0)throw S("Attempted to parse a path expression, but it was not valid. Paths must start with a-z or A-Z.",this.source.spanFor(e.loc));i=f.var({name:a,loc:this.source.spanFor({start:e.loc.start,end:{line:e.loc.start.line,column:e.loc.start.column+a.length}})})}return f.path({head:i,tail:n,loc:this.source.spanFor(e.loc)})}Hash(e){let r=e.pairs.map(n=>f.pair({key:n.key,value:this.acceptNode(n.value),loc:this.source.spanFor(n.loc)}));return f.hash({pairs:r,loc:this.source.spanFor(e.loc)})}StringLiteral(e){return f.literal({type:"StringLiteral",value:e.value,loc:this.source.spanFor(e.loc)})}BooleanLiteral(e){return f.literal({type:"BooleanLiteral",value:e.value,loc:this.source.spanFor(e.loc)})}NumberLiteral(e){return f.literal({type:"NumberLiteral",value:e.value,loc:this.source.spanFor(e.loc)})}UndefinedLiteral(e){return f.literal({type:"UndefinedLiteral",value:void 0,loc:this.source.spanFor(e.loc)})}NullLiteral(e){return f.literal({type:"NullLiteral",value:null,loc:this.source.spanFor(e.loc)})}};function ra(t,e){if(e==="")return{lines:t.split(`
27
27
  `).length-1,columns:0};let[r]=t.split(e),n=r.split(/\n/u),s=n.length-1;return{lines:s,columns:kt(n[s]).length}}function na(t,e){let r=e.loc.start.line,n=e.loc.start.column,s=ra(e.original,e.value);r=r+s.lines,s.lines?n=s.columns:n=n+s.columns,t.line=r,t.column=n}function Sr(t,e){let r;switch(e.path.type){case"PathExpression":r=t.PathExpression(e.path);break;case"SubExpression":r=t.SubExpression(e.path);break;case"StringLiteral":case"UndefinedLiteral":case"NullLiteral":case"NumberLiteral":case"BooleanLiteral":{let a;throw e.path.type==="BooleanLiteral"?a=e.path.original.toString():e.path.type==="StringLiteral"?a=`"${e.path.original}"`:e.path.type==="NullLiteral"?a="null":e.path.type==="NumberLiteral"?a=e.path.value.toString():a="undefined",S(`${e.path.type} "${e.path.type==="StringLiteral"?e.path.original:a}" cannot be called as a sub-expression, replace (${a}) with ${a}`,t.source.spanFor(e.path.loc))}}let n=e.params?e.params.map(a=>t.acceptNode(a)):[],s=we(n)?Nt(n).loc:r.loc,i=e.hash?t.Hash(e.hash):f.hash({pairs:[],loc:t.source.spanFor(s).collapse("end")});return{path:r,params:n,hash:i}}function wr(t,e){let{path:r,params:n,hash:s,loc:i}=e;if(Mn(r)){let o=`{{${Di(r)}}}`,c=`<${t.name} ... ${o} ...`;throw S(`In ${c}, ${o} is not a valid modifier`,e.loc)}let a=f.elementModifier({path:r,params:n,hash:s,loc:i});t.modifiers.push(a)}function He(t){return/[\t\n\f ]/u.test(t)}var _r=class extends Lr{tagOpenLine=0;tagOpenColumn=0;reset(){this.currentNode=null}beginComment(){this.currentNode={type:"CommentStatement",value:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}appendToCommentData(e){this.currentComment.value+=e}finishComment(){Ve(this.currentElement(),f.comment(this.finish(this.currentComment)))}beginData(){this.currentNode={type:"TextNode",chars:"",start:this.offset()}}appendToData(e){this.currentData.chars+=e}finishData(){Ve(this.currentElement(),f.text(this.finish(this.currentData)))}tagOpen(){this.tagOpenLine=this.tokenizer.line,this.tagOpenColumn=this.tokenizer.column}beginStartTag(){this.currentNode={type:"StartTag",name:"",nameStart:null,nameEnd:null,attributes:[],modifiers:[],comments:[],params:[],selfClosing:!1,start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}beginEndTag(){this.currentNode={type:"EndTag",name:"",start:this.source.offsetFor(this.tagOpenLine,this.tagOpenColumn)}}finishTag(){let e=this.finish(this.currentTag);if(e.type==="StartTag"){if(this.finishStartTag(),e.name===":")throw S("Invalid named block named detected, you may have created a named block without a name, or you may have began your name with a number. Named blocks must have names that are at least one character long, and begin with a lower case letter",this.source.spanFor({start:this.currentTag.start.toJSON(),end:this.offset().toJSON()}));(kr.has(e.name)||e.selfClosing)&&this.finishEndTag(!0)}else e.type==="EndTag"&&this.finishEndTag(!1)}finishStartTag(){let{name:e,nameStart:r,nameEnd:n}=this.currentStartTag;w(e!=="","tag name cannot be empty"),w(r!==null,"nameStart unexpectedly null"),w(n!==null,"nameEnd unexpectedly null");let s=r.until(n),[i,...a]=qe(e.split(".")),o=f.path({head:f.head({original:i,loc:s.sliceStartChars({chars:i.length})}),tail:a,loc:s}),{attributes:c,modifiers:p,comments:h,params:d,selfClosing:N,loc:g}=this.finish(this.currentStartTag),T=f.element({path:o,selfClosing:N,attributes:c,modifiers:p,comments:h,params:d,children:[],openTag:g,closeTag:N?null:O.broken(),loc:g});this.elementStack.push(T)}finishEndTag(e){let{start:r}=this.currentTag,n=this.finish(this.currentTag),s=this.elementStack.pop();this.validateEndTag(n,s,e);let i=this.currentElement();e?s.closeTag=null:s.selfClosing?w(s.closeTag===null,"element.closeTag unexpectedly present"):s.closeTag=r.until(this.offset()),s.loc=s.loc.withEnd(this.offset()),Ve(i,f.element(s))}markTagAsSelfClosing(){let e=this.currentTag;if(e.type==="StartTag")e.selfClosing=!0;else throw S("Invalid end tag: closing tag must not be self-closing",this.source.spanFor({start:e.start.toJSON(),end:this.offset().toJSON()}))}appendToTagName(e){let r=this.currentTag;if(r.name+=e,r.type==="StartTag"){let n=this.offset();r.nameStart===null&&(w(r.nameEnd===null,"nameStart and nameEnd must both be null"),r.nameStart=n.move(-1)),r.nameEnd=n}}beginAttribute(){let e=this.offset();this.currentAttribute={name:"",parts:[],currentPart:null,isQuoted:!1,isDynamic:!1,start:e,valueSpan:e.collapsed()}}appendToAttributeName(e){this.currentAttr.name+=e,this.currentAttr.name==="as"&&this.parsePossibleBlockParams()}beginAttributeValue(e){this.currentAttr.isQuoted=e,this.startTextPart(),this.currentAttr.valueSpan=this.offset().collapsed()}appendToAttributeValue(e){let r=this.currentAttr.parts,n=r[r.length-1],s=this.currentAttr.currentPart;if(s)s.chars+=e,s.loc=s.loc.withEnd(this.offset());else{let i=this.offset();e===`
28
28
  `?i=n?n.loc.getEnd():this.currentAttr.valueSpan.getStart():i=i.move(-1),this.currentAttr.currentPart=f.text({chars:e,loc:i.collapsed()})}}finishAttributeValue(){this.finalizeTextPart();let e=this.currentTag,r=this.offset();if(e.type==="EndTag")throw S("Invalid end tag: closing tag must not have attributes",this.source.spanFor({start:e.start.toJSON(),end:r.toJSON()}));let{name:n,parts:s,start:i,isQuoted:a,isDynamic:o,valueSpan:c}=this.currentAttr;if(n.startsWith("|")&&s.length===0&&!a&&!o)throw S("Invalid block parameters syntax: block parameters must be preceded by the `as` keyword",i.until(i.move(n.length)));let p=this.assembleAttributeValue(s,a,o,i.until(r));p.loc=c.withEnd(r);let h=f.attr({name:n,value:p,loc:i.until(r)});this.currentStartTag.attributes.push(h)}parsePossibleBlockParams(){let e="beforeAttributeName",r="attributeName",n="afterAttributeName",s=/[!"#%&'()*+./;<=>@[\\\]^`{|}~]/u;w(this.tokenizer.state===r,"must be in TokenizerState.attributeName");let i=this.currentStartTag,a=this.currentAttr,o={state:"PossibleAs"},c={PossibleAs:h=>{if(w(o.state==="PossibleAs","bug in block params parser"),He(h))o={state:"BeforeStartPipe"},this.tokenizer.transitionTo(n),this.tokenizer.consume();else{if(h==="|")throw S('Invalid block parameters syntax: expecting at least one space character between "as" and "|"',a.start.until(this.offset().move(1)));o={state:"Done"}}},BeforeStartPipe:h=>{w(o.state==="BeforeStartPipe","bug in block params parser"),He(h)?this.tokenizer.consume():h==="|"?(o={state:"BeforeBlockParamName"},this.tokenizer.transitionTo(e),this.tokenizer.consume()):o={state:"Done"}},BeforeBlockParamName:h=>{if(w(o.state==="BeforeBlockParamName","bug in block params parser"),He(h))this.tokenizer.consume();else if(h==="")o={state:"Done"},this.pendingError={mustache(d){throw S("Invalid block parameters syntax: mustaches cannot be used inside parameters list",d)},eof(d){throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',a.start.until(d))}};else if(h==="|"){if(i.params.length===0)throw S("Invalid block parameters syntax: empty parameters list, expecting at least one identifier",a.start.until(this.offset().move(1)));o={state:"AfterEndPipe"},this.tokenizer.consume()}else{if(h===">"||h==="/")throw S('Invalid block parameters syntax: incomplete parameters list, expecting "|" but the tag was closed prematurely',a.start.until(this.offset().move(1)));o={state:"BlockParamName",name:h,start:this.offset()},this.tokenizer.consume()}},BlockParamName:h=>{if(w(o.state==="BlockParamName","bug in block params parser"),h==="")o={state:"Done"},this.pendingError={mustache(d){throw S("Invalid block parameters syntax: mustaches cannot be used inside parameters list",d)},eof(d){throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',a.start.until(d))}};else if(h==="|"||He(h)){let d=o.start.until(this.offset());if(o.name==="this"||s.test(o.name))throw S(`Invalid block parameters syntax: invalid identifier name \`${o.name}\``,d);i.params.push(f.var({name:o.name,loc:d})),o=h==="|"?{state:"AfterEndPipe"}:{state:"BeforeBlockParamName"},this.tokenizer.consume()}else{if(h===">"||h==="/")throw S('Invalid block parameters syntax: expecting "|" but the tag was closed prematurely',a.start.until(this.offset().move(1)));o.name+=h,this.tokenizer.consume()}},AfterEndPipe:h=>{w(o.state==="AfterEndPipe","bug in block params parser"),He(h)?this.tokenizer.consume():h===""?(o={state:"Done"},this.pendingError={mustache(d){throw S("Invalid block parameters syntax: modifiers cannot follow parameters list",d)},eof(d){throw S('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',a.start.until(d))}}):h===">"||h==="/"?o={state:"Done"}:(o={state:"Error",message:'Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',start:this.offset()},this.tokenizer.consume())},Error:h=>{if(w(o.state==="Error","bug in block params parser"),h===""||h==="/"||h===">"||He(h))throw S(o.message,o.start.until(this.offset()));this.tokenizer.consume()},Done:()=>{w(!1,"This should never be called")}},p;do p=this.tokenizer.peek(),c[o.state](p);while(o.state!=="Done"&&p!=="");w(o.state==="Done","bug in block params parser")}reportSyntaxError(e){throw S(e,this.offset().collapsed())}assembleConcatenatedValue(e){for(let s of e)if(s.type!=="MustacheStatement"&&s.type!=="TextNode")throw S(`Unsupported node in quoted attribute value: ${s.type}`,s.loc);Tt(e,"the concatenation parts of an element should not be empty");let r=Nn(e),n=Nt(e);return f.concat({parts:e,loc:this.source.spanFor(r.loc).extend(this.source.spanFor(n.loc))})}validateEndTag(e,r,n){if(kr.has(e.name)&&!n)throw S(`<${e.name}> elements do not need end tags. You should remove it`,e.loc);if(r.tag===void 0)throw S(`Closing tag </${e.name}> without an open tag`,e.loc);if(r.tag!==e.name)throw S(`Closing tag </${e.name}> did not match last open tag <${r.tag}> (on line ${r.loc.startPosition.line})`,e.loc)}assembleAttributeValue(e,r,n,s){if(n){if(r)return this.assembleConcatenatedValue(e);{Tt(e);let[i,a]=e;if(a===void 0||a.type==="TextNode"&&a.chars==="/")return i;throw S("An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'",s)}}else return we(e)?e[0]:f.text({chars:"",loc:s})}},sa={},Dr=class extends dr{constructor(){super({})}parse(){}};function Wn(t,e={}){var c,p,h;let r=e.mode||"precompile",n,s;typeof t=="string"?(n=new Te(t,(c=e.meta)==null?void 0:c.moduleName),r==="codemod"?s=Ct(t,e.parseOptions):s=fr(t,e.parseOptions)):t instanceof Te?(n=t,r==="codemod"?s=Ct(t.source,e.parseOptions):s=fr(t.source,e.parseOptions)):(n=new Te("",(p=e.meta)==null?void 0:p.moduleName),s=t);let i;r==="codemod"&&(i=new Dr);let a=O.forCharPositions(n,0,n.source.length);s.loc={source:"(program)",start:a.startPosition,end:a.endPosition};let o=new _r(n,i,r).parse(s,e.locals??[]);if((h=e==null?void 0:e.plugins)!=null&&h.ast)for(let d of e.plugins.ast){let N=ar({},e,{syntax:sa},{plugins:void 0}),g=d(N);Li(o,g.visitor)}return o}var Br=function(t){return t.Helper="Helper",t.Modifier="Modifier",t.Component="Component",t}({}),tl=Br.Helper,rl=Br.Modifier,nl=Br.Component;var Bt=`
29
- `,$n="\r",jn=function(){function t(e){this.length=e.length;for(var r=[0],n=0;n<e.length;)switch(e[n]){case Bt:n+=Bt.length,r.push(n);break;case $n:n+=$n.length,e[n]===Bt&&(n+=Bt.length),r.push(n);break;default:n++;break}this.offsets=r}return t.prototype.locationForIndex=function(e){if(e<0||e>this.length)return null;for(var r=0,n=this.offsets;n[r+1]<=e;)r++;var s=e-n[r];return{line:r,column:s}},t.prototype.indexForLocation=function(e){var r=e.line,n=e.column;return r<0||r>=this.offsets.length||n<0||n>this.lengthOfLine(r)?null:this.offsets[r]+n},t.prototype.lengthOfLine=function(e){var r=this.offsets[e],n=e===this.offsets.length-1?this.length:this.offsets[e+1];return n-r},t}();function ia(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var Qn=ia;function aa(t){let e=t.children??t.body;if(e)for(let r=0;r<e.length-1;r++)e[r].type==="TextNode"&&e[r+1].type==="MustacheStatement"&&(e[r].chars=e[r].chars.replace(/\\$/,"\\\\"))}function oa(t){let e=new jn(t),r=({line:s,column:i})=>e.indexForLocation({line:s-1,column:i}),n=s=>{let{start:i,end:a}=s.loc;i.offset=r(i),a.offset=r(a)};return()=>({name:"prettierParsePlugin",visitor:{All(s){n(s),aa(s)}}})}function la(t){let e;try{e=Wn(t,{mode:"codemod",plugins:{ast:[oa(t)]}})}catch(r){let n=ua(r);if(n){let s=ca(r);throw Qn(s,{loc:n,cause:r})}throw r}return e}function ca(t){let{message:e}=t,r=e.split(`
30
- `);return r.length>=4&&/^Parse error on line \d+:$/.test(r[0])&&/^-*\^$/.test(oe(!1,r,-2))?oe(!1,r,-1):r.length>=4&&/:\s?$/.test(r[0])&&/^\(error occurred in '.*?' @ line \d+ : column \d+\)$/.test(oe(!1,r,-1))&&r[1]===""&&oe(!1,r,-2)===""&&r.slice(2,-2).every(n=>n.startsWith("|"))?r[0].trim().slice(0,-1):e}function ua(t){let{location:e,hash:r}=t;if(e){let{start:n,end:s}=e;return typeof s.line!="number"?{start:n}:e}if(r){let{loc:{last_line:n,last_column:s}}=r;return{start:{line:n,column:s+1}}}}var ha={parse:la,astFormat:"glimmer",locStart:Se,locEnd:tt};var pa={glimmer:En};var bl=Rr;export{bl as default,Sn as languages,Ir as parsers,pa as printers};
29
+ `,$n="\r",jn=function(){function t(e){this.length=e.length;for(var r=[0],n=0;n<e.length;)switch(e[n]){case Bt:n+=Bt.length,r.push(n);break;case $n:n+=$n.length,e[n]===Bt&&(n+=Bt.length),r.push(n);break;default:n++;break}this.offsets=r}return t.prototype.locationForIndex=function(e){if(e<0||e>this.length)return null;for(var r=0,n=this.offsets;n[r+1]<=e;)r++;var s=e-n[r];return{line:r,column:s}},t.prototype.indexForLocation=function(e){var r=e.line,n=e.column;return r<0||r>=this.offsets.length||n<0||n>this.lengthOfLine(r)?null:this.offsets[r]+n},t.prototype.lengthOfLine=function(e){var r=this.offsets[e],n=e===this.offsets.length-1?this.length:this.offsets[e+1];return n-r},t}();function ia(t,e){let r=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(r,e)}var Qn=ia;function aa(t){let e=t.children??t.body;if(e)for(let r=0;r<e.length-1;r++)e[r].type==="TextNode"&&e[r+1].type==="MustacheStatement"&&(e[r].chars=e[r].chars.replace(/\\$/u,"\\\\"))}function oa(t){let e=new jn(t),r=({line:s,column:i})=>e.indexForLocation({line:s-1,column:i}),n=s=>{let{start:i,end:a}=s.loc;i.offset=r(i),a.offset=r(a)};return()=>({name:"prettierParsePlugin",visitor:{All(s){n(s),aa(s)}}})}function la(t){let e;try{e=Wn(t,{mode:"codemod",plugins:{ast:[oa(t)]}})}catch(r){let n=ua(r);if(n){let s=ca(r);throw Qn(s,{loc:n,cause:r})}throw r}return e}function ca(t){let{message:e}=t,r=e.split(`
30
+ `);return r.length>=4&&/^Parse error on line \d+:$/u.test(r[0])&&/^-*\^$/u.test(oe(!1,r,-2))?oe(!1,r,-1):r.length>=4&&/:\s?$/u.test(r[0])&&/^\(error occurred in '.*?' @ line \d+ : column \d+\)$/u.test(oe(!1,r,-1))&&r[1]===""&&oe(!1,r,-2)===""&&r.slice(2,-2).every(n=>n.startsWith("|"))?r[0].trim().slice(0,-1):e}function ua(t){let{location:e,hash:r}=t;if(e){let{start:n,end:s}=e;return typeof s.line!="number"?{start:n}:e}if(r){let{loc:{last_line:n,last_column:s}}=r;return{start:{line:n,column:s+1}}}}var ha={parse:la,astFormat:"glimmer",locStart:Se,locEnd:tt};var pa={glimmer:En};var bl=Rr;export{bl as default,Sn as languages,Ir as parsers,pa as printers};