@jixo/cli 0.21.0 → 0.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,29 @@
1
+ var e=Object.defineProperty,t=e=>{throw TypeError(e)},n=(t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})},r=(e,n,r)=>n.has(e)||t(`Cannot `+r),i=(e,t,n)=>(r(e,t,`read from private field`),n?n.call(e):t.get(e)),a=(e,n,r)=>n.has(e)?t(`Cannot add the same private member more than once`):n instanceof WeakSet?n.add(e):n.set(e,r),o=(e,t,n,i)=>(r(e,t,`write to private field`),i?i.call(e,n):t.set(e,n),n),s={};n(s,{languages:()=>Gt,parsers:()=>Kt,printers:()=>ai});var c=(e,t,n,r)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},l=c,u=`string`,d=`array`,f=`cursor`,p=`indent`,m=`align`,h=`trim`,g=`group`,_=`fill`,v=`if-break`,y=`indent-if-break`,b=`line-suffix`,x=`line-suffix-boundary`,S=`line`,ee=`label`,C=`break-parent`,w=new Set([f,p,m,h,g,_,v,y,b,x,S,ee,C]),T=(e,t,n)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t==`string`?t[n<0?t.length+n:n]:t.at(n)},E=T;function te(e){if(typeof e==`string`)return u;if(Array.isArray(e))return d;if(!e)return;let{type:t}=e;if(w.has(t))return t}var D=te,ne=e=>new Intl.ListFormat(`en-US`,{type:`disjunction`}).format(e);function re(e){let t=e===null?`null`:typeof e;if(t!==`string`&&t!==`object`)return`Unexpected doc '${t}',
2
+ Expected it to be 'string' or 'object'.`;if(D(e))throw Error(`doc is valid.`);let n=Object.prototype.toString.call(e);if(n!==`[object Object]`)return`Unexpected doc '${n}'.`;let r=ne([...w].map(e=>`'${e}'`));return`Unexpected doc.type '${e.type}'.
3
+ Expected it to be ${r}.`}var ie=class extends Error{name=`InvalidDocError`;constructor(e){super(re(e)),this.doc=e}},ae=ie;function oe(e,t){if(typeof e==`string`)return t(e);let n=new Map;return r(e);function r(e){if(n.has(e))return n.get(e);let t=i(e);return n.set(e,t),t}function i(e){switch(D(e)){case d:return t(e.map(r));case _:return t({...e,parts:e.parts.map(r)});case v:return t({...e,breakContents:r(e.breakContents),flatContents:r(e.flatContents)});case g:{let{expandedStates:n,contents:i}=e;return n?(n=n.map(r),i=n[0]):i=r(i),t({...e,contents:i,expandedStates:n})}case m:case p:case y:case ee:case b:return t({...e,contents:r(e.contents)});case u:case f:case h:case x:case S:case C:return t(e);default:throw new ae(e)}}}function se(e,t=_e){return oe(e,e=>typeof e==`string`?ve(t,e.split(`
4
+ `)):e)}var O=()=>{},k=O,ce=O,le=O;function A(e){return k(e),{type:p,contents:e}}function ue(e,t){return k(t),{type:m,contents:t,n:e}}function j(e,t={}){return k(e),ce(t.expandedStates,!0),{type:g,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function de(e){return ue(-1,e)}function fe(e){return le(e),{type:_,parts:e}}function pe(e,t=``,n={}){return k(e),t!==``&&k(t),{type:v,breakContents:e,flatContents:t,groupId:n.groupId}}var me={type:C},he={type:S,hard:!0},ge={type:S,hard:!0,literal:!0},M={type:S},N={type:S,soft:!0},P=[he,me],_e=[ge,me];function ve(e,t){k(e),ce(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}var ye=`'`,be=`"`;function xe(e,t){let n=t===!0||t===ye?ye:be,r=n===ye?be:ye,i=0,a=0;for(let t of e)t===n?i++:t===r&&a++;return i>a?r:n}var Se=xe;function Ce(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}var F,we=class{constructor(e){a(this,F),o(this,F,new Set(e))}getLeadingWhitespaceCount(e){let t=i(this,F),n=0;for(let r=0;r<e.length&&t.has(e.charAt(r));r++)n++;return n}getTrailingWhitespaceCount(e){let t=i(this,F),n=0;for(let r=e.length-1;r>=0&&t.has(e.charAt(r));r--)n++;return n}getLeadingWhitespace(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(0,t)}getTrailingWhitespace(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(e.length-t)}hasLeadingWhitespace(e){return i(this,F).has(e.charAt(0))}hasTrailingWhitespace(e){return i(this,F).has(E(!1,e,-1))}trimStart(e){let t=this.getLeadingWhitespaceCount(e);return e.slice(t)}trimEnd(e){let t=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-t)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,t=!1){let n=`[${Ce([...i(this,F)].join(``))}]+`,r=new RegExp(t?`(${n})`:n,`u`);return e.split(r)}hasWhitespaceCharacter(e){let t=i(this,F);return Array.prototype.some.call(e,e=>t.has(e))}hasNonWhitespaceCharacter(e){let t=i(this,F);return Array.prototype.some.call(e,e=>!t.has(e))}isWhitespaceOnly(e){let t=i(this,F);return Array.prototype.every.call(e,e=>t.has(e))}};F=new WeakMap;var Te=we,Ee=[` `,`
5
+ `,`\f`,`\r`,` `],De=new Te(Ee),I=De;function Oe(e){return Array.isArray(e)&&e.length>0}var ke=Oe,Ae=class extends Error{name=`UnexpectedNodeError`;constructor(e,t,n=`type`){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},je=Ae;function Me(e,t,n){if(e.type===`TextNode`){let r=e.chars.trim();if(!r)return null;n.tag===`style`&&n.children.length===1&&n.children[0]===e?t.chars=``:t.chars=I.split(r).join(` `)}e.type===`ElementNode`&&(delete t.startTag,delete t.openTag,delete t.parts,delete t.endTag,delete t.closeTag,delete t.nameNode,delete t.body,delete t.blockParamNodes,delete t.params,delete t.path),e.type===`Block`&&(delete t.blockParamNodes,delete t.params),e.type===`AttrNode`&&e.name.toLowerCase()===`class`&&delete t.value,e.type===`PathExpression`&&(t.head=e.head.original)}Me.ignoredProperties=new Set([`loc`,`selfClosing`]);var Ne=Me;function Pe(e){let{node:t}=e;if(t.type!==`TextNode`)return;let{parent:n}=e;if(!(n.type===`ElementNode`&&n.tag===`style`&&n.children.length===1&&n.children[0]===t))return;let r=n.attributes.find(e=>e.type===`AttrNode`&&e.name===`lang`);if(!(r&&!(r.value.type===`TextNode`&&(r.value.chars===``||r.value.chars===`css`))))return async e=>{let n=await e(t.chars,{parser:`css`});return n?[P,n,de(N)]:[]}}var Fe=Pe,Ie=null;function Le(e){if(Ie!==null&&typeof Ie.property){let e=Ie;return Ie=Le.prototype=null,e}return Ie=Le.prototype=e??Object.create(null),new Le}var Re=10;for(let e=0;e<=Re;e++)Le();function ze(e){return Le(e)}function Be(e,t=`type`){ze(e);function n(n){let r=n[t],i=e[r];if(!Array.isArray(i))throw Object.assign(Error(`Missing visitor keys for '${r}'.`),{node:n});return i}return n}var Ve=Be,He={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`]},Ue=Ve(He),We=Ue;function Ge(e){return e.loc.start.offset}function Ke(e){return e.loc.end.offset}var qe=new Set([`area`,`base`,`br`,`col`,`command`,`embed`,`hr`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`]);function Je(e){return e.toUpperCase()===e}function Ye(e){return e.type===`ElementNode`&&typeof e.tag==`string`&&!e.tag.startsWith(`:`)&&(Je(e.tag[0])||e.tag.includes(`.`))}function Xe(e){return qe.has(e.toLowerCase())&&!Je(e[0])}function Ze(e){return e.selfClosing===!0||Xe(e.tag)||Ye(e)&&e.children.every(e=>Qe(e))}function Qe(e){return e.type===`TextNode`&&!/\S/u.test(e.chars)}function $e(e){return e?.type===`MustacheCommentStatement`&&typeof e.value==`string`&&e.value.trim()===`prettier-ignore`}function et(e){return $e(e.node)||e.isInArray&&(e.key===`children`||e.key===`body`||e.key===`parts`)&&$e(e.siblings[e.index-2])}var tt=2;function nt(e,t,n){var r,i,a,o,s,c,u,d,f;let{node:p}=e;switch(p.type){case`Block`:case`Program`:case`Template`:return j(e.map(n,`body`));case`ElementNode`:{let i=j(it(e,n)),a=t.htmlWhitespaceSensitivity===`ignore`&&(r=e.next)?.type===`ElementNode`?N:``;if(Ze(p))return[i,a];let o=[`</`,p.tag,`>`];return p.children.length===0?[i,A(o),a]:t.htmlWhitespaceSensitivity===`ignore`?[i,A(at(e,t,n)),P,A(o),a]:[i,A(j(at(e,t,n))),A(o),a]}case`BlockStatement`:return vt(e)?[yt(e,n),wt(e,t,n),Tt(e,t,n)]:[ht(e,n),j([wt(e,t,n),Tt(e,t,n),bt(e,t,n)])];case`ElementModifierStatement`:return j([`{{`,Ft(e,n),`}}`]);case`MustacheStatement`:return j([st(p),Ft(e,n),ct(p)]);case`SubExpression`:return j([`(`,Pt(e,n),N,`)`]);case`AttrNode`:{let{name:e,value:r}=p,i=r.type===`TextNode`;if(i&&r.chars===``&&Ge(r)===Ke(r))return e;let a=i?Se(r.chars,t.singleQuote):r.type===`ConcatStatement`?Se(r.parts.map(e=>e.type===`TextNode`?e.chars:``).join(``),t.singleQuote):``,o=n(`value`);return[e,`=`,a,e===`class`&&a?j(A(o)):o,a]}case`ConcatStatement`:return e.map(n,`parts`);case`Hash`:return ve(M,e.map(n,`pairs`));case`HashPair`:return[p.key,`=`,n(`value`)];case`TextNode`:{if(e.parent.tag===`pre`||e.parent.tag===`style`)return p.chars;let n=l(!1,p.chars,`{{`,String.raw`\{{`),r=Dt(e);if(r){if(r===`class`){let t=n.trim().split(/\s+/u).join(` `),r=!1,o=!1;return e.parent.type===`ConcatStatement`&&((i=e.previous)?.type===`MustacheStatement`&&/^\s/u.test(n)&&(r=!0),(a=e.next)?.type===`MustacheStatement`&&/\s$/u.test(n)&&t!==``&&(o=!0)),[r?M:``,t,o?M:``]}return se(n)}let m=I.isWhitespaceOnly(n),{isFirst:h,isLast:g}=e;if(t.htmlWhitespaceSensitivity!==`ignore`){let t=g&&e.parent.type===`Template`,r=h&&e.parent.type===`Template`;if(m){if(r||t)return``;let e=[M],i=Ot(n);return i&&(e=jt(i)),g&&(e=e.map(e=>de(e))),e}let i=I.getLeadingWhitespace(n),a=[];if(i){a=[M];let e=Ot(i);e&&(a=jt(e)),n=n.slice(i.length)}let o=I.getTrailingWhitespace(n),s=[];if(o){if(!t){s=[M];let e=Ot(o);e&&(s=jt(e)),g&&(s=s.map(e=>de(e)))}n=n.slice(0,-o.length)}return[...a,fe(Et(n)),...s]}let _=Ot(n),v=kt(n),y=At(n);if((h||g)&&m&&(e.parent.type===`Block`||e.parent.type===`ElementNode`||e.parent.type===`Template`))return``;m&&_?(v=Math.min(_,tt),y=0):(((o=e.next)?.type===`BlockStatement`||(s=e.next)?.type===`ElementNode`)&&(y=Math.max(y,1)),((c=e.previous)?.type===`BlockStatement`||(u=e.previous)?.type===`ElementNode`)&&(v=Math.max(v,1)));let b=``,x=``;return y===0&&(d=e.next)?.type===`MustacheStatement`&&(x=` `),v===0&&(f=e.previous)?.type===`MustacheStatement`&&(b=` `),h&&(v=0,b=``),g&&(y=0,x=``),I.hasLeadingWhitespace(n)&&(n=b+I.trimStart(n)),I.hasTrailingWhitespace(n)&&(n=I.trimEnd(n)+x),[...jt(v),fe(Et(n)),...jt(y)]}case`MustacheCommentStatement`:{let e=Ge(p),n=Ke(p),r=t.originalText.charAt(e+2)===`~`,i=t.originalText.charAt(n-3)===`~`,a=p.value.includes(`}}`)?`--`:``;return[`{{`,r?`~`:``,`!`,a,p.value,a,i?`~`:``,`}}`]}case`PathExpression`:return Ht(p);case`BooleanLiteral`:return String(p.value);case`CommentStatement`:return[`<!--`,p.value,`-->`];case`StringLiteral`:return Mt(e,t);case`NumberLiteral`:return String(p.value);case`UndefinedLiteral`:return`undefined`;case`NullLiteral`:return`null`;case`AtHead`:case`VarHead`:case`ThisHead`:default:throw new je(p,`Handlebars`)}}function rt(e,t){return Ge(e)-Ge(t)}function it(e,t){let{node:n}=e,r=[`attributes`,`modifiers`,`comments`].filter(e=>ke(n[e])),i=r.flatMap(e=>n[e]).sort(rt);for(let n of r)e.each(({node:e})=>{let n=i.indexOf(e);i.splice(n,1,[M,t()])},n);return ke(n.blockParams)&&i.push(M,Rt(n)),[`<`,n.tag,A(i),ot(n)]}function at(e,t,n){let{node:r}=e,i=r.children.every(e=>Qe(e));return t.htmlWhitespaceSensitivity===`ignore`&&i?``:e.map(({isFirst:e})=>{let r=n();return e&&t.htmlWhitespaceSensitivity===`ignore`?[N,r]:r},`children`)}function ot(e){return Ze(e)?pe([N,`/>`],[` />`,N]):pe([N,`>`],`>`)}function st(e){var t;let n=e.trusting?`{{{`:`{{`,r=(t=e.strip)!=null&&t.open?`~`:``;return[n,r]}function ct(e){var t;let n=e.trusting?`}}}`:`}}`;return[(t=e.strip)!=null&&t.close?`~`:``,n]}function lt(e){let t=st(e),n=e.openStrip.open?`~`:``;return[t,n,`#`]}function ut(e){let t=ct(e);return[e.openStrip.close?`~`:``,t]}function dt(e){let t=st(e),n=e.closeStrip.open?`~`:``;return[t,n,`/`]}function ft(e){let t=ct(e);return[e.closeStrip.close?`~`:``,t]}function pt(e){let t=st(e),n=e.inverseStrip.open?`~`:``;return[t,n]}function mt(e){let t=ct(e);return[e.inverseStrip.close?`~`:``,t]}function ht(e,t){let{node:n}=e,r=[],i=Lt(e,t);return i&&r.push(j(i)),ke(n.program.blockParams)&&r.push(Rt(n.program)),j([lt(n),It(e,t),r.length>0?A([M,ve(M,r)]):``,N,ut(n)])}function gt(e,t){return[t.htmlWhitespaceSensitivity===`ignore`?P:``,pt(e),`else`,mt(e)]}var _t=(e,t)=>e.head.type===`VarHead`&&t.head.type===`VarHead`&&e.head.name===t.head.name;function vt(e){var t;let{grandparent:n,node:r}=e;return(t=n?.inverse)?.body.length===1&&n.inverse.body[0]===r&&_t(n.inverse.body[0].path,n.path)}function yt(e,t){let{node:n,grandparent:r}=e;return j([pt(r),[`else`,` `,r.inverse.body[0].path.head.name],A([M,j(Lt(e,t)),...ke(n.program.blockParams)?[M,Rt(n.program)]:[]]),N,mt(r)])}function bt(e,t,n){let{node:r}=e;return t.htmlWhitespaceSensitivity===`ignore`?[xt(r)?N:P,dt(r),n(`path`),ft(r)]:[dt(r),n(`path`),ft(r)]}function xt(e){return e.type===`BlockStatement`&&e.program.body.every(e=>Qe(e))}function St(e){return Ct(e)&&e.inverse.body.length===1&&e.inverse.body[0].type===`BlockStatement`&&_t(e.inverse.body[0].path,e.path)}function Ct(e){return e.type===`BlockStatement`&&e.inverse}function wt(e,t,n){let{node:r}=e;if(xt(r))return``;let i=n(`program`);return t.htmlWhitespaceSensitivity===`ignore`?A([P,i]):A(i)}function Tt(e,t,n){let{node:r}=e,i=n(`inverse`),a=t.htmlWhitespaceSensitivity===`ignore`?[P,i]:i;return St(r)?a:Ct(r)?[gt(r,t),A(a)]:``}function Et(e){return ve(M,I.split(e))}function Dt(e){for(let t=0;t<2;t++){let n=e.getParentNode(t);if(n?.type===`AttrNode`)return n.name.toLowerCase()}}function Ot(e){return e=typeof e==`string`?e:``,e.split(`
6
+ `).length-1}function kt(e){e=typeof e==`string`?e:``;let t=(e.match(/^([^\S\n\r]*[\n\r])+/gu)||[])[0]||``;return Ot(t)}function At(e){e=typeof e==`string`?e:``;let t=(e.match(/([\n\r][^\S\n\r]*)+$/gu)||[])[0]||``;return Ot(t)}function jt(e=0){return Array.from({length:Math.min(e,tt)}).fill(P)}function Mt(e,t){let{node:{value:n}}=e,r=Se(n,Nt(e)?!t.singleQuote:t.singleQuote);return[r,l(!1,n,r,`\\${r}`),r]}function Nt(e){let{ancestors:t}=e,n=t.findIndex(e=>e.type!==`SubExpression`);return n!==-1&&t[n+1].type===`ConcatStatement`&&t[n+2].type===`AttrNode`}function Pt(e,t){let n=It(e,t),r=Lt(e,t);return r?A([n,M,j(r)]):n}function Ft(e,t){let n=It(e,t),r=Lt(e,t);return r?[A([n,M,r]),N]:n}function It(e,t){return t(`path`)}function Lt(e,t){var n;let{node:r}=e,i=[];return r.params.length>0&&i.push(...e.map(t,`params`)),(n=r.hash)?.pairs.length>0&&i.push(t(`hash`)),i.length===0?``:ve(M,i)}function Rt(e){return[`as |`,e.blockParams.join(` `),`|`]}var zt=new Set(`!"#%&'()*+,./;<=>@[\\]^\`{|}~`),Bt=new Set([`true`,`false`,`null`,`undefined`]),Vt=(e,t)=>t===0&&e.startsWith(`@`)?!1:t!==0&&Bt.has(e)||/\s/u.test(e)||/^\d/u.test(e)||Array.prototype.some.call(e,e=>zt.has(e));function Ht(e){return e.tail.length===0&&e.original.includes(`/`)?e.original:[e.head.original,...e.tail].map((e,t)=>Vt(e,t)?`[${e}]`:e).join(`.`)}var Ut={print:nt,massageAstNode:Ne,hasPrettierIgnore:et,getVisitorKeys:We,embed:Fe},Wt=Ut,Gt=[{name:`Handlebars`,type:`markup`,extensions:[`.handlebars`,`.hbs`],tmScope:`text.html.handlebars`,aceMode:`handlebars`,aliases:[`hbs`,`htmlbars`],parsers:[`glimmer`],vscodeLanguageIds:[`handlebars`],linguistLanguageId:155}],Kt={};n(Kt,{glimmer:()=>ii});var qt=Object.freeze([]);function Jt(){return qt}Jt(),Jt();var Yt=Object.assign,Xt=console;function Zt(e,t=`unexpected unreachable branch`){throw Xt.log(`unreachable`,e),Xt.log(`${t} :: ${JSON.stringify(e)} (${e})`),Error(`code reached unreachable`)}var Qt=function(){var e=function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},t=[2,44],n=[1,20],r=[5,14,15,19,29,34,39,44,47,48,52,56,60],i=[1,35],a=[1,38],o=[1,30],s=[1,31],c=[1,32],l=[1,33],u=[1,34],d=[1,37],f=[14,15,19,29,34,39,44,47,48,52,56,60],p=[14,15,19,29,34,44,47,48,52,56,60],m=[15,18],h=[14,15,19,29,34,47,48,52,56,60],g=[33,64,71,79,80,81,82,83,84],_=[23,33,55,64,67,71,74,79,80,81,82,83,84],v=[1,51],y=[23,33,55,64,67,71,74,79,80,81,82,83,84,86],b=[2,43],x=[55,64,71,79,80,81,82,83,84],S=[1,58],ee=[1,59],C=[1,66],w=[33,64,71,74,79,80,81,82,83,84],T=[23,64,71,79,80,81,82,83,84],E=[1,76],te=[64,67,71,79,80,81,82,83,84],D=[33,74],ne=[23,33,55,67,71,74],re=[1,106],ie=[1,118],ae=[71,76],oe={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(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=r.prepareProgram(a[s]);break;case 3:case 4:case 5:case 6:case 7:case 8:case 20:case 27:case 28:case 33:case 34:this.$=a[s];break;case 9:this.$={type:`CommentStatement`,value:r.stripComment(a[s]),strip:r.stripFlags(a[s],a[s]),loc:r.locInfo(this._$)};break;case 10:this.$={type:`ContentStatement`,original:a[s],value:a[s],loc:r.locInfo(this._$)};break;case 11:this.$=r.prepareRawBlock(a[s-2],a[s-1],a[s],this._$);break;case 12:this.$={path:a[s-3],params:a[s-2],hash:a[s-1]};break;case 13:this.$=r.prepareBlock(a[s-3],a[s-2],a[s-1],a[s],!1,this._$);break;case 14:this.$=r.prepareBlock(a[s-3],a[s-2],a[s-1],a[s],!0,this._$);break;case 15:this.$={open:a[s-5],path:a[s-4],params:a[s-3],hash:a[s-2],blockParams:a[s-1],strip:r.stripFlags(a[s-5],a[s])};break;case 16:case 17:this.$={path:a[s-4],params:a[s-3],hash:a[s-2],blockParams:a[s-1],strip:r.stripFlags(a[s-5],a[s])};break;case 18:this.$={strip:r.stripFlags(a[s-1],a[s-1]),program:a[s]};break;case 19:var c=r.prepareBlock(a[s-2],a[s-1],a[s],a[s],!1,this._$),l=r.prepareProgram([c],a[s-1].loc);l.chained=!0,this.$={strip:a[s-2].strip,program:l,chain:!0};break;case 21:this.$={path:a[s-1],strip:r.stripFlags(a[s-2],a[s])};break;case 22:case 23:this.$=r.prepareMustache(a[s-3],a[s-2],a[s-1],a[s-4],r.stripFlags(a[s-4],a[s]),this._$);break;case 24:this.$={type:`PartialStatement`,name:a[s-3],params:a[s-2],hash:a[s-1],indent:``,strip:r.stripFlags(a[s-4],a[s]),loc:r.locInfo(this._$)};break;case 25:this.$=r.preparePartialBlock(a[s-2],a[s-1],a[s],this._$);break;case 26:this.$={path:a[s-3],params:a[s-2],hash:a[s-1],strip:r.stripFlags(a[s-4],a[s])};break;case 29:this.$={type:`SubExpression`,path:a[s-3],params:a[s-2],hash:a[s-1],loc:r.locInfo(this._$)};break;case 30:this.$={type:`Hash`,pairs:a[s],loc:r.locInfo(this._$)};break;case 31:this.$={type:`HashPair`,key:r.id(a[s-2]),value:a[s],loc:r.locInfo(this._$)};break;case 32:this.$=r.id(a[s-1]);break;case 35:this.$={type:`StringLiteral`,value:a[s],original:a[s],loc:r.locInfo(this._$)};break;case 36:this.$={type:`NumberLiteral`,value:Number(a[s]),original:Number(a[s]),loc:r.locInfo(this._$)};break;case 37:this.$={type:`BooleanLiteral`,value:a[s]===`true`,original:a[s]===`true`,loc:r.locInfo(this._$)};break;case 38:this.$={type:`UndefinedLiteral`,original:void 0,value:void 0,loc:r.locInfo(this._$)};break;case 39:this.$={type:`NullLiteral`,original:null,value:null,loc:r.locInfo(this._$)};break;case 40:this.$=r.preparePath(!0,a[s],this._$);break;case 41:this.$=r.preparePath(!1,a[s],this._$);break;case 42:a[s-2].push({part:r.id(a[s]),original:a[s],separator:a[s-1]}),this.$=a[s-2];break;case 43:this.$=[{part:r.id(a[s]),original:a[s]}];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:a[s-1].push(a[s]);break;case 96:case 98:this.$=[a[s]];break}},table:[e([5,14,15,19,29,34,48,52,56,60],t,{3:1,4:2,6:3}),{1:[3]},{5:[1,4]},e([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:n,19:[1,23],29:[1,21],34:[1,22],48:[1,13],52:[1,14],56:[1,18],60:[1,24]}),{1:[2,1]},e(r,[2,45]),e(r,[2,3]),e(r,[2,4]),e(r,[2,5]),e(r,[2,6]),e(r,[2,7]),e(r,[2,8]),e(r,[2,9]),{20:26,49:25,63:27,64:i,71:a,77:28,78:29,79:o,80:s,81:c,82:l,83:u,84:d,85:36},{20:26,49:39,63:27,64:i,71:a,77:28,78:29,79:o,80:s,81:c,82:l,83:u,84:d,85:36},e(f,t,{6:3,4:40}),e(p,t,{6:3,4:41}),e(m,[2,46],{17:42}),{20:26,49:43,63:27,64:i,71:a,77:28,78:29,79:o,80:s,81:c,82:l,83:u,84:d,85:36},e(h,t,{6:3,4:44}),e([5,14,15,18,19,29,34,39,44,47,48,52,56,60],[2,10]),{20:45,71:a,77:28,78:29,79:o,80:s,81:c,82:l,83:u,84:d,85:36},{20:46,71:a,77:28,78:29,79:o,80:s,81:c,82:l,83:u,84:d,85:36},{20:47,71:a,77:28,78:29,79:o,80:s,81:c,82:l,83:u,84:d,85:36},{20:26,49:48,63:27,64:i,71:a,77:28,78:29,79:o,80:s,81:c,82:l,83:u,84:d,85:36},e(g,[2,76],{50:49}),e(_,[2,27]),e(_,[2,28]),e(_,[2,33]),e(_,[2,34]),e(_,[2,35]),e(_,[2,36]),e(_,[2,37]),e(_,[2,38]),e(_,[2,39]),{20:26,49:50,63:27,64:i,71:a,77:28,78:29,79:o,80:s,81:c,82:l,83:u,84:d,85:36},e(_,[2,41],{86:v}),{71:a,85:52},e(y,b),e(x,[2,80],{53:53}),{25:54,38:56,39:S,43:57,44:ee,45:55,47:[2,52]},{28:60,43:61,44:ee,47:[2,54]},{13:63,15:n,18:[1,62]},e(g,[2,84],{57:64}),{26:65,47:C},e(w,[2,56],{30:67}),e(w,[2,62],{35:68}),e(T,[2,48],{21:69}),e(g,[2,88],{61:70}),{20:26,33:[2,78],49:72,51:71,63:27,64:i,68:73,69:74,70:75,71:E,77:28,78:29,79:o,80:s,81:c,82:l,83:u,84:d,85:36},e(te,[2,92],{65:77}),{71:[1,78]},e(_,[2,40],{86:v}),{20:26,49:80,54:79,55:[2,82],63:27,64:i,68:81,69:74,70:75,71:E,77:28,78:29,79:o,80:s,81:c,82:l,83:u,84:d,85:36},{26:82,47:C},{47:[2,53]},e(f,t,{6:3,4:83}),{47:[2,20]},{20:84,71:a,77:28,78:29,79:o,80:s,81:c,82:l,83:u,84:d,85:36},e(h,t,{6:3,4:85}),{26:86,47:C},{47:[2,55]},e(r,[2,11]),e(m,[2,47]),{20:26,33:[2,86],49:88,58:87,63:27,64:i,68:89,69:74,70:75,71:E,77:28,78:29,79:o,80:s,81:c,82:l,83:u,84:d,85:36},e(r,[2,25]),{20:90,71:a,77:28,78:29,79:o,80:s,81:c,82:l,83:u,84:d,85:36},e(D,[2,58],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,31:91,49:92,68:93,64:i,71:E,79:o,80:s,81:c,82:l,83:u,84:d}),e(D,[2,64],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,36:94,49:95,68:96,64:i,71:E,79:o,80:s,81:c,82:l,83:u,84:d}),{20:26,22:97,23:[2,50],49:98,63:27,64:i,68:99,69:74,70:75,71:E,77:28,78:29,79:o,80:s,81:c,82:l,83:u,84:d,85:36},{20:26,33:[2,90],49:101,62:100,63:27,64:i,68:102,69:74,70:75,71:E,77:28,78:29,79:o,80:s,81:c,82:l,83:u,84:d,85:36},{33:[1,103]},e(g,[2,77]),{33:[2,79]},e([23,33,55,67,74],[2,30],{70:104,71:[1,105]}),e(ne,[2,96]),e(y,b,{72:re}),{20:26,49:108,63:27,64:i,66:107,67:[2,94],68:109,69:74,70:75,71:E,77:28,78:29,79:o,80:s,81:c,82:l,83:u,84:d,85:36},e(y,[2,42]),{55:[1,110]},e(x,[2,81]),{55:[2,83]},e(r,[2,13]),{38:56,39:S,43:57,44:ee,45:112,46:111,47:[2,74]},e(w,[2,68],{40:113}),{47:[2,18]},e(r,[2,14]),{33:[1,114]},e(g,[2,85]),{33:[2,87]},{33:[1,115]},{32:116,33:[2,60],73:117,74:ie},e(w,[2,57]),e(D,[2,59]),{33:[2,66],37:119,73:120,74:ie},e(w,[2,63]),e(D,[2,65]),{23:[1,121]},e(T,[2,49]),{23:[2,51]},{33:[1,122]},e(g,[2,89]),{33:[2,91]},e(r,[2,22]),e(ne,[2,97]),{72:re},{20:26,49:123,63:27,64:i,71:a,77:28,78:29,79:o,80:s,81:c,82:l,83:u,84:d,85:36},{67:[1,124]},e(te,[2,93]),{67:[2,95]},e(r,[2,23]),{47:[2,19]},{47:[2,75]},e(D,[2,70],{20:26,63:27,77:28,78:29,85:36,69:74,70:75,41:125,49:126,68:127,64:i,71:E,79:o,80:s,81:c,82:l,83:u,84:d}),e(r,[2,24]),e(r,[2,21]),{33:[1,128]},{33:[2,61]},{71:[1,130],75:129},{33:[1,131]},{33:[2,67]},e(m,[2,12]),e(h,[2,26]),e(ne,[2,31]),e(_,[2,29]),{33:[2,72],42:132,73:133,74:ie},e(w,[2,69]),e(D,[2,71]),e(f,[2,15]),{71:[1,135],76:[1,134]},e(ae,[2,98]),e(p,[2,16]),{33:[1,136]},{33:[2,73]},{33:[2,32]},e(ae,[2,99]),e(f,[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(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},parse:function(e){var t=this,n=[0],r=[null],i=[],a=this.table,o=``,s=0,c=0,l=0,u=2,d=1,f=i.slice.call(arguments,1),p=Object.create(this.lexer),m={yy:{}};for(var h in this.yy)Object.prototype.hasOwnProperty.call(this.yy,h)&&(m.yy[h]=this.yy[h]);p.setInput(e,m.yy),m.yy.lexer=p,m.yy.parser=this,typeof p.yylloc>`u`&&(p.yylloc={});var g=p.yylloc;i.push(g);var _=p.options&&p.options.ranges;typeof m.yy.parseError==`function`?this.parseError=m.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var v=function(){var e;return e=p.lex()||d,typeof e!=`number`&&(e=t.symbols_[e]||e),e},y,b,x,S,ee,C,w={},T,E,te,D;;){if(x=n[n.length-1],this.defaultActions[x]?S=this.defaultActions[x]:((y===null||typeof y>`u`)&&(y=v()),S=a[x]&&a[x][y]),typeof S>`u`||!S.length||!S[0]){var ne=``;for(T in D=[],a[x])this.terminals_[T]&&T>u&&D.push(`'`+this.terminals_[T]+`'`);ne=p.showPosition?`Parse error on line `+(s+1)+`:
7
+ `+p.showPosition()+`
8
+ Expecting `+D.join(`, `)+`, got '`+(this.terminals_[y]||y)+`'`:`Parse error on line `+(s+1)+`: Unexpected `+(y==d?`end of input`:`'`+(this.terminals_[y]||y)+`'`),this.parseError(ne,{text:p.match,token:this.terminals_[y]||y,line:p.yylineno,loc:g,expected:D})}if(S[0]instanceof Array&&S.length>1)throw Error(`Parse Error: multiple actions possible at state: `+x+`, token: `+y);switch(S[0]){case 1:n.push(y),r.push(p.yytext),i.push(p.yylloc),n.push(S[1]),y=null,b?(y=b,b=null):(c=p.yyleng,o=p.yytext,s=p.yylineno,g=p.yylloc,l>0&&l--);break;case 2:if(E=this.productions_[S[1]][1],w.$=r[r.length-E],w._$={first_line:i[i.length-(E||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(E||1)].first_column,last_column:i[i.length-1].last_column},_&&(w._$.range=[i[i.length-(E||1)].range[0],i[i.length-1].range[1]]),C=this.performAction.apply(w,[o,c,s,m.yy,S[1],r,i].concat(f)),typeof C<`u`)return C;E&&(n=n.slice(0,-1*E*2),r=r.slice(0,-1*E),i=i.slice(0,-1*E)),n.push(this.productions_[S[1]][0]),r.push(w.$),i.push(w._$),te=a[n[n.length-2]][n[n.length-1]],n.push(te);break;case 3:return!0}}return!0}},se=function(){var e={EOF:1,parseError:function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,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 e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=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),n.length-1&&(this.yylineno-=n.length-1);var i=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:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),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
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},showPosition:function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
10
+ `+t+`^`},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),r=e[0].match(/(?:\r\n?|\n).*/g),r&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r;this._more||(this.yytext=``,this.match=``);for(var i=this._currentRules(),a=0;a<i.length;a++)if(n=this._input.match(this.rules[i[a]]),n&&(!t||n[0].length>t[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(e=this.test_match(n,i[a]),e!==!1)return e;if(this._backtrack){t=!1;continue}else return!1}else if(!this.options.flex)break}return t?(e=this.test_match(t,i[r]),e===!1?!1:e):this._input===``?this.EOF:this.parseError(`Lexical error on line `+(this.yylineno+1)+`. Unrecognized text.
11
+ `+this.showPosition(),{text:``,token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){var e=this.conditionStack.length-1;return e>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return e=this.conditionStack.length-1-Math.abs(e||0),e>=0?this.conditionStack[e]:`INITIAL`},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){function i(e,n){return t.yytext=t.yytext.substring(e,t.yyleng-n+e)}switch(n){case 0:if(t.yytext.slice(-2)===`\\\\`?(i(0,1),this.begin(`mu`)):t.yytext.slice(-1)===`\\`?(i(0,1),this.begin(`emu`)):this.begin(`mu`),t.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin(`raw`),15;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]===`raw`?15:(i(5,9),18);case 5:return 15;case 6:return this.popState(),14;case 7:return 64;case 8:return 67;case 9:return 19;case 10:return this.popState(),this.begin(`raw`),23;case 11:return 56;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 52;case 20:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin(`com`);break;case 22:return this.popState(),14;case 23:return 48;case 24:return 72;case 25:return 71;case 26:return 71;case 27:return 86;case 28:break;case 29:return this.popState(),55;case 30:return this.popState(),33;case 31:return t.yytext=i(1,2).replace(/\\"/g,`"`),79;case 32:return t.yytext=i(1,2).replace(/\\'/g,`'`),79;case 33:return 84;case 34:return 81;case 35:return 81;case 36:return 82;case 37:return 83;case 38:return 80;case 39:return 74;case 40:return 76;case 41:return 71;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,`$1`),71;case 43:return`INVALID`;case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return e}();oe.lexer=se;function O(){this.yy={}}return O.prototype=oe,oe.Parser=O,new O}(),$t=Qt,en=[`description`,`fileName`,`lineNumber`,`endLineNumber`,`message`,`name`,`number`,`stack`];function tn(e,t){var n=t&&t.loc,r,i,a,o;n&&(r=n.start.line,i=n.end.line,a=n.start.column,o=n.end.column,e+=` - `+r+`:`+a);for(var s=Error.prototype.constructor.call(this,e),c=0;c<en.length;c++)this[en[c]]=s[en[c]];Error.captureStackTrace&&Error.captureStackTrace(this,tn);try{n&&(this.lineNumber=r,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,`column`,{value:a,enumerable:!0}),Object.defineProperty(this,`endColumn`,{value:o,enumerable:!0})):(this.column=a,this.endColumn=o))}catch{}}tn.prototype=Error();var L=tn;function nn(){this.parents=[]}nn.prototype={constructor:nn,mutating:!1,acceptKey:function(e,t){var n=this.accept(e[t]);if(this.mutating){if(n&&!nn.prototype[n.type])throw new L(`Unexpected node type "`+n.type+`" found when accepting `+t+` on `+e.type);e[t]=n}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new L(e.type+` requires `+t)},acceptArray:function(e){for(var t=0,n=e.length;t<n;t++)this.acceptKey(e,t),e[t]||(e.splice(t,1),t--,n--)},accept:function(e){if(e){if(!this[e.type])throw new L(`Unknown type: `+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||t)return t;if(t!==!1)return e}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:rn,Decorator:rn,BlockStatement:an,DecoratorBlock:an,PartialStatement:on,PartialBlockStatement:function(e){on.call(this,e),this.acceptKey(e,`program`)},ContentStatement:function(){},CommentStatement:function(){},SubExpression:rn,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,`value`)}};function rn(e){this.acceptRequired(e,`path`),this.acceptArray(e.params),this.acceptKey(e,`hash`)}function an(e){rn.call(this,e),this.acceptKey(e,`program`),this.acceptKey(e,`inverse`)}function on(e){this.acceptRequired(e,`name`),this.acceptArray(e.params),this.acceptKey(e,`hash`)}var sn=nn;function R(e){e===void 0&&(e={}),this.options=e}R.prototype=new sn,R.prototype.Program=function(e){var t=!this.options.ignoreStandalone,n=!this.isRootSeen;this.isRootSeen=!0;for(var r=e.body,i=0,a=r.length;i<a;i++){var o=r[i],s=this.accept(o);if(s){var c=cn(r,i,n),l=ln(r,i,n),u=s.openStandalone&&c,d=s.closeStandalone&&l,f=s.inlineStandalone&&c&&l;s.close&&z(r,i,!0),s.open&&B(r,i,!0),t&&f&&(z(r,i),B(r,i)&&o.type===`PartialStatement`&&(o.indent=/([ \t]+$)/.exec(r[i-1].original)[1])),t&&u&&(z((o.program||o.inverse).body),B(r,i)),t&&d&&(z(r,i),B((o.inverse||o.program).body))}}return e},R.prototype.BlockStatement=R.prototype.DecoratorBlock=R.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,n=e.program&&e.inverse,r=n,i=n;if(n&&n.chained)for(r=n.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var a={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:ln(t.body),closeStandalone:cn((r||t).body)};if(e.openStrip.close&&z(t.body,null,!0),n){var o=e.inverseStrip;o.open&&B(t.body,null,!0),o.close&&z(r.body,null,!0),e.closeStrip.open&&B(i.body,null,!0),!this.options.ignoreStandalone&&cn(t.body)&&ln(r.body)&&(B(t.body),z(r.body))}else e.closeStrip.open&&B(t.body,null,!0);return a},R.prototype.Decorator=R.prototype.MustacheStatement=function(e){return e.strip},R.prototype.PartialStatement=R.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}};function cn(e,t,n){t===void 0&&(t=e.length);var r=e[t-1],i=e[t-2];if(!r)return n;if(r.type===`ContentStatement`)return(i||!n?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(r.original)}function ln(e,t,n){t===void 0&&(t=-1);var r=e[t+1],i=e[t+2];if(!r)return n;if(r.type===`ContentStatement`)return(i||!n?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(r.original)}function z(e,t,n){var r=e[t==null?0:t+1];if(!(!r||r.type!==`ContentStatement`||!n&&r.rightStripped)){var i=r.value;r.value=r.value.replace(n?/^\s+/:/^[ \t]*\r?\n?/,``),r.rightStripped=r.value!==i}}function B(e,t,n){var r=e[t==null?e.length-1:t-1];if(!(!r||r.type!==`ContentStatement`||!n&&r.leftStripped)){var i=r.value;return r.value=r.value.replace(n?/\s+$/:/[ \t]+$/,``),r.leftStripped=r.value!==i,r.leftStripped}}var un=R,dn={};n(dn,{SourceLocation:()=>pn,id:()=>mn,prepareBlock:()=>bn,prepareMustache:()=>vn,preparePartialBlock:()=>Sn,preparePath:()=>_n,prepareProgram:()=>xn,prepareRawBlock:()=>yn,stripComment:()=>gn,stripFlags:()=>hn});function fn(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new L(e.path.original+` doesn't match `+t,n)}}function pn(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}function mn(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e}function hn(e,t){return{open:e.charAt(2)===`~`,close:t.charAt(t.length-3)===`~`}}function gn(e){return e.replace(/^\{\{~?!-?-?/,``).replace(/-?-?~?\}\}$/,``)}function _n(e,t,n){n=this.locInfo(n);for(var r=e?`@`:``,i=[],a=0,o=0,s=t.length;o<s;o++){var c=t[o].part,l=t[o].original!==c;if(r+=(t[o].separator||``)+c,!l&&(c===`..`||c===`.`||c===`this`)){if(i.length>0)throw new L(`Invalid path: `+r,{loc:n});c===`..`&&a++}else i.push(c)}return{type:`PathExpression`,data:e,depth:a,parts:i,original:r,loc:n}}function vn(e,t,n,r,i,a){var o=r.charAt(3)||r.charAt(2),s=o!==`{`&&o!==`&`,c=/\*/.test(r);return{type:c?`Decorator`:`MustacheStatement`,path:e,params:t,hash:n,escaped:s,strip:i,loc:this.locInfo(a)}}function yn(e,t,n,r){fn(e,n),r=this.locInfo(r);var i={type:`Program`,body:t,strip:{},loc:r};return{type:`BlockStatement`,path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}}function bn(e,t,n,r,i,a){r&&r.path&&fn(e,r);var o=/\*/.test(e.open);t.blockParams=e.blockParams;var s,c;if(n){if(o)throw new L(`Unexpected inverse block on decorator`,n);n.chain&&(n.program.body[0].closeStrip=r.strip),c=n.strip,s=n.program}return i&&(i=s,s=t,t=i),{type:o?`DecoratorBlock`:`BlockStatement`,path:e.path,params:e.params,hash:e.hash,program:t,inverse:s,openStrip:e.strip,inverseStrip:c,closeStrip:r&&r.strip,loc:this.locInfo(a)}}function xn(e,t){if(!t&&e.length){var n=e[0].loc,r=e[e.length-1].loc;n&&r&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:`Program`,body:e,strip:{},loc:t}}function Sn(e,t,n,r){return fn(e,n),{type:`PartialBlockStatement`,name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:n&&n.strip,loc:this.locInfo(r)}}var Cn={};for(wn in dn)Object.prototype.hasOwnProperty.call(dn,wn)&&(Cn[wn]=dn[wn]);var wn;function Tn(e,t){if(e.type===`Program`)return e;$t.yy=Cn,$t.yy.locInfo=function(e){return new pn(t&&t.srcName,e)};var n=$t.parse(e);return n}function En(e,t){var n=Tn(e,t),r=new un(t);return r.accept(n)}var Dn={Aacute:`Á`,aacute:`á`,Abreve:`Ă`,abreve:`ă`,ac:`∾`,acd:`∿`,acE:`∾̳`,Acirc:`Â`,acirc:`â`,acute:`´`,Acy:`А`,acy:`а`,AElig:`Æ`,aelig:`æ`,af:`⁡`,Afr:`𝔄`,afr:`𝔞`,Agrave:`À`,agrave:`à`,alefsym:`ℵ`,aleph:`ℵ`,Alpha:`Α`,alpha:`α`,Amacr:`Ā`,amacr:`ā`,amalg:`⨿`,amp:`&`,AMP:`&`,andand:`⩕`,And:`⩓`,and:`∧`,andd:`⩜`,andslope:`⩘`,andv:`⩚`,ang:`∠`,ange:`⦤`,angle:`∠`,angmsdaa:`⦨`,angmsdab:`⦩`,angmsdac:`⦪`,angmsdad:`⦫`,angmsdae:`⦬`,angmsdaf:`⦭`,angmsdag:`⦮`,angmsdah:`⦯`,angmsd:`∡`,angrt:`∟`,angrtvb:`⊾`,angrtvbd:`⦝`,angsph:`∢`,angst:`Å`,angzarr:`⍼`,Aogon:`Ą`,aogon:`ą`,Aopf:`𝔸`,aopf:`𝕒`,apacir:`⩯`,ap:`≈`,apE:`⩰`,ape:`≊`,apid:`≋`,apos:`'`,ApplyFunction:`⁡`,approx:`≈`,approxeq:`≊`,Aring:`Å`,aring:`å`,Ascr:`𝒜`,ascr:`𝒶`,Assign:`≔`,ast:`*`,asymp:`≈`,asympeq:`≍`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,awconint:`∳`,awint:`⨑`,backcong:`≌`,backepsilon:`϶`,backprime:`‵`,backsim:`∽`,backsimeq:`⋍`,Backslash:`∖`,Barv:`⫧`,barvee:`⊽`,barwed:`⌅`,Barwed:`⌆`,barwedge:`⌅`,bbrk:`⎵`,bbrktbrk:`⎶`,bcong:`≌`,Bcy:`Б`,bcy:`б`,bdquo:`„`,becaus:`∵`,because:`∵`,Because:`∵`,bemptyv:`⦰`,bepsi:`϶`,bernou:`ℬ`,Bernoullis:`ℬ`,Beta:`Β`,beta:`β`,beth:`ℶ`,between:`≬`,Bfr:`𝔅`,bfr:`𝔟`,bigcap:`⋂`,bigcirc:`◯`,bigcup:`⋃`,bigodot:`⨀`,bigoplus:`⨁`,bigotimes:`⨂`,bigsqcup:`⨆`,bigstar:`★`,bigtriangledown:`▽`,bigtriangleup:`△`,biguplus:`⨄`,bigvee:`⋁`,bigwedge:`⋀`,bkarow:`⤍`,blacklozenge:`⧫`,blacksquare:`▪`,blacktriangle:`▴`,blacktriangledown:`▾`,blacktriangleleft:`◂`,blacktriangleright:`▸`,blank:`␣`,blk12:`▒`,blk14:`░`,blk34:`▓`,block:`█`,bne:`=⃥`,bnequiv:`≡⃥`,bNot:`⫭`,bnot:`⌐`,Bopf:`𝔹`,bopf:`𝕓`,bot:`⊥`,bottom:`⊥`,bowtie:`⋈`,boxbox:`⧉`,boxdl:`┐`,boxdL:`╕`,boxDl:`╖`,boxDL:`╗`,boxdr:`┌`,boxdR:`╒`,boxDr:`╓`,boxDR:`╔`,boxh:`─`,boxH:`═`,boxhd:`┬`,boxHd:`╤`,boxhD:`╥`,boxHD:`╦`,boxhu:`┴`,boxHu:`╧`,boxhU:`╨`,boxHU:`╩`,boxminus:`⊟`,boxplus:`⊞`,boxtimes:`⊠`,boxul:`┘`,boxuL:`╛`,boxUl:`╜`,boxUL:`╝`,boxur:`└`,boxuR:`╘`,boxUr:`╙`,boxUR:`╚`,boxv:`│`,boxV:`║`,boxvh:`┼`,boxvH:`╪`,boxVh:`╫`,boxVH:`╬`,boxvl:`┤`,boxvL:`╡`,boxVl:`╢`,boxVL:`╣`,boxvr:`├`,boxvR:`╞`,boxVr:`╟`,boxVR:`╠`,bprime:`‵`,breve:`˘`,Breve:`˘`,brvbar:`¦`,bscr:`𝒷`,Bscr:`ℬ`,bsemi:`⁏`,bsim:`∽`,bsime:`⋍`,bsolb:`⧅`,bsol:`\\`,bsolhsub:`⟈`,bull:`•`,bullet:`•`,bump:`≎`,bumpE:`⪮`,bumpe:`≏`,Bumpeq:`≎`,bumpeq:`≏`,Cacute:`Ć`,cacute:`ć`,capand:`⩄`,capbrcup:`⩉`,capcap:`⩋`,cap:`∩`,Cap:`⋒`,capcup:`⩇`,capdot:`⩀`,CapitalDifferentialD:`ⅅ`,caps:`∩︀`,caret:`⁁`,caron:`ˇ`,Cayleys:`ℭ`,ccaps:`⩍`,Ccaron:`Č`,ccaron:`č`,Ccedil:`Ç`,ccedil:`ç`,Ccirc:`Ĉ`,ccirc:`ĉ`,Cconint:`∰`,ccups:`⩌`,ccupssm:`⩐`,Cdot:`Ċ`,cdot:`ċ`,cedil:`¸`,Cedilla:`¸`,cemptyv:`⦲`,cent:`¢`,centerdot:`·`,CenterDot:`·`,cfr:`𝔠`,Cfr:`ℭ`,CHcy:`Ч`,chcy:`ч`,check:`✓`,checkmark:`✓`,Chi:`Χ`,chi:`χ`,circ:`ˆ`,circeq:`≗`,circlearrowleft:`↺`,circlearrowright:`↻`,circledast:`⊛`,circledcirc:`⊚`,circleddash:`⊝`,CircleDot:`⊙`,circledR:`®`,circledS:`Ⓢ`,CircleMinus:`⊖`,CirclePlus:`⊕`,CircleTimes:`⊗`,cir:`○`,cirE:`⧃`,cire:`≗`,cirfnint:`⨐`,cirmid:`⫯`,cirscir:`⧂`,ClockwiseContourIntegral:`∲`,CloseCurlyDoubleQuote:`”`,CloseCurlyQuote:`’`,clubs:`♣`,clubsuit:`♣`,colon:`:`,Colon:`∷`,Colone:`⩴`,colone:`≔`,coloneq:`≔`,comma:`,`,commat:`@`,comp:`∁`,compfn:`∘`,complement:`∁`,complexes:`ℂ`,cong:`≅`,congdot:`⩭`,Congruent:`≡`,conint:`∮`,Conint:`∯`,ContourIntegral:`∮`,copf:`𝕔`,Copf:`ℂ`,coprod:`∐`,Coproduct:`∐`,copy:`©`,COPY:`©`,copysr:`℗`,CounterClockwiseContourIntegral:`∳`,crarr:`↵`,cross:`✗`,Cross:`⨯`,Cscr:`𝒞`,cscr:`𝒸`,csub:`⫏`,csube:`⫑`,csup:`⫐`,csupe:`⫒`,ctdot:`⋯`,cudarrl:`⤸`,cudarrr:`⤵`,cuepr:`⋞`,cuesc:`⋟`,cularr:`↶`,cularrp:`⤽`,cupbrcap:`⩈`,cupcap:`⩆`,CupCap:`≍`,cup:`∪`,Cup:`⋓`,cupcup:`⩊`,cupdot:`⊍`,cupor:`⩅`,cups:`∪︀`,curarr:`↷`,curarrm:`⤼`,curlyeqprec:`⋞`,curlyeqsucc:`⋟`,curlyvee:`⋎`,curlywedge:`⋏`,curren:`¤`,curvearrowleft:`↶`,curvearrowright:`↷`,cuvee:`⋎`,cuwed:`⋏`,cwconint:`∲`,cwint:`∱`,cylcty:`⌭`,dagger:`†`,Dagger:`‡`,daleth:`ℸ`,darr:`↓`,Darr:`↡`,dArr:`⇓`,dash:`‐`,Dashv:`⫤`,dashv:`⊣`,dbkarow:`⤏`,dblac:`˝`,Dcaron:`Ď`,dcaron:`ď`,Dcy:`Д`,dcy:`д`,ddagger:`‡`,ddarr:`⇊`,DD:`ⅅ`,dd:`ⅆ`,DDotrahd:`⤑`,ddotseq:`⩷`,deg:`°`,Del:`∇`,Delta:`Δ`,delta:`δ`,demptyv:`⦱`,dfisht:`⥿`,Dfr:`𝔇`,dfr:`𝔡`,dHar:`⥥`,dharl:`⇃`,dharr:`⇂`,DiacriticalAcute:`´`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,DiacriticalGrave:"`",DiacriticalTilde:`˜`,diam:`⋄`,diamond:`⋄`,Diamond:`⋄`,diamondsuit:`♦`,diams:`♦`,die:`¨`,DifferentialD:`ⅆ`,digamma:`ϝ`,disin:`⋲`,div:`÷`,divide:`÷`,divideontimes:`⋇`,divonx:`⋇`,DJcy:`Ђ`,djcy:`ђ`,dlcorn:`⌞`,dlcrop:`⌍`,dollar:`$`,Dopf:`𝔻`,dopf:`𝕕`,Dot:`¨`,dot:`˙`,DotDot:`⃜`,doteq:`≐`,doteqdot:`≑`,DotEqual:`≐`,dotminus:`∸`,dotplus:`∔`,dotsquare:`⊡`,doublebarwedge:`⌆`,DoubleContourIntegral:`∯`,DoubleDot:`¨`,DoubleDownArrow:`⇓`,DoubleLeftArrow:`⇐`,DoubleLeftRightArrow:`⇔`,DoubleLeftTee:`⫤`,DoubleLongLeftArrow:`⟸`,DoubleLongLeftRightArrow:`⟺`,DoubleLongRightArrow:`⟹`,DoubleRightArrow:`⇒`,DoubleRightTee:`⊨`,DoubleUpArrow:`⇑`,DoubleUpDownArrow:`⇕`,DoubleVerticalBar:`∥`,DownArrowBar:`⤓`,downarrow:`↓`,DownArrow:`↓`,Downarrow:`⇓`,DownArrowUpArrow:`⇵`,DownBreve:`̑`,downdownarrows:`⇊`,downharpoonleft:`⇃`,downharpoonright:`⇂`,DownLeftRightVector:`⥐`,DownLeftTeeVector:`⥞`,DownLeftVectorBar:`⥖`,DownLeftVector:`↽`,DownRightTeeVector:`⥟`,DownRightVectorBar:`⥗`,DownRightVector:`⇁`,DownTeeArrow:`↧`,DownTee:`⊤`,drbkarow:`⤐`,drcorn:`⌟`,drcrop:`⌌`,Dscr:`𝒟`,dscr:`𝒹`,DScy:`Ѕ`,dscy:`ѕ`,dsol:`⧶`,Dstrok:`Đ`,dstrok:`đ`,dtdot:`⋱`,dtri:`▿`,dtrif:`▾`,duarr:`⇵`,duhar:`⥯`,dwangle:`⦦`,DZcy:`Џ`,dzcy:`џ`,dzigrarr:`⟿`,Eacute:`É`,eacute:`é`,easter:`⩮`,Ecaron:`Ě`,ecaron:`ě`,Ecirc:`Ê`,ecirc:`ê`,ecir:`≖`,ecolon:`≕`,Ecy:`Э`,ecy:`э`,eDDot:`⩷`,Edot:`Ė`,edot:`ė`,eDot:`≑`,ee:`ⅇ`,efDot:`≒`,Efr:`𝔈`,efr:`𝔢`,eg:`⪚`,Egrave:`È`,egrave:`è`,egs:`⪖`,egsdot:`⪘`,el:`⪙`,Element:`∈`,elinters:`⏧`,ell:`ℓ`,els:`⪕`,elsdot:`⪗`,Emacr:`Ē`,emacr:`ē`,empty:`∅`,emptyset:`∅`,EmptySmallSquare:`◻`,emptyv:`∅`,EmptyVerySmallSquare:`▫`,emsp13:` `,emsp14:` `,emsp:` `,ENG:`Ŋ`,eng:`ŋ`,ensp:` `,Eogon:`Ę`,eogon:`ę`,Eopf:`𝔼`,eopf:`𝕖`,epar:`⋕`,eparsl:`⧣`,eplus:`⩱`,epsi:`ε`,Epsilon:`Ε`,epsilon:`ε`,epsiv:`ϵ`,eqcirc:`≖`,eqcolon:`≕`,eqsim:`≂`,eqslantgtr:`⪖`,eqslantless:`⪕`,Equal:`⩵`,equals:`=`,EqualTilde:`≂`,equest:`≟`,Equilibrium:`⇌`,equiv:`≡`,equivDD:`⩸`,eqvparsl:`⧥`,erarr:`⥱`,erDot:`≓`,escr:`ℯ`,Escr:`ℰ`,esdot:`≐`,Esim:`⩳`,esim:`≂`,Eta:`Η`,eta:`η`,ETH:`Ð`,eth:`ð`,Euml:`Ë`,euml:`ë`,euro:`€`,excl:`!`,exist:`∃`,Exists:`∃`,expectation:`ℰ`,exponentiale:`ⅇ`,ExponentialE:`ⅇ`,fallingdotseq:`≒`,Fcy:`Ф`,fcy:`ф`,female:`♀`,ffilig:`ffi`,fflig:`ff`,ffllig:`ffl`,Ffr:`𝔉`,ffr:`𝔣`,filig:`fi`,FilledSmallSquare:`◼`,FilledVerySmallSquare:`▪`,fjlig:`fj`,flat:`♭`,fllig:`fl`,fltns:`▱`,fnof:`ƒ`,Fopf:`𝔽`,fopf:`𝕗`,forall:`∀`,ForAll:`∀`,fork:`⋔`,forkv:`⫙`,Fouriertrf:`ℱ`,fpartint:`⨍`,frac12:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`,frown:`⌢`,fscr:`𝒻`,Fscr:`ℱ`,gacute:`ǵ`,Gamma:`Γ`,gamma:`γ`,Gammad:`Ϝ`,gammad:`ϝ`,gap:`⪆`,Gbreve:`Ğ`,gbreve:`ğ`,Gcedil:`Ģ`,Gcirc:`Ĝ`,gcirc:`ĝ`,Gcy:`Г`,gcy:`г`,Gdot:`Ġ`,gdot:`ġ`,ge:`≥`,gE:`≧`,gEl:`⪌`,gel:`⋛`,geq:`≥`,geqq:`≧`,geqslant:`⩾`,gescc:`⪩`,ges:`⩾`,gesdot:`⪀`,gesdoto:`⪂`,gesdotol:`⪄`,gesl:`⋛︀`,gesles:`⪔`,Gfr:`𝔊`,gfr:`𝔤`,gg:`≫`,Gg:`⋙`,ggg:`⋙`,gimel:`ℷ`,GJcy:`Ѓ`,gjcy:`ѓ`,gla:`⪥`,gl:`≷`,glE:`⪒`,glj:`⪤`,gnap:`⪊`,gnapprox:`⪊`,gne:`⪈`,gnE:`≩`,gneq:`⪈`,gneqq:`≩`,gnsim:`⋧`,Gopf:`𝔾`,gopf:`𝕘`,grave:"`",GreaterEqual:`≥`,GreaterEqualLess:`⋛`,GreaterFullEqual:`≧`,GreaterGreater:`⪢`,GreaterLess:`≷`,GreaterSlantEqual:`⩾`,GreaterTilde:`≳`,Gscr:`𝒢`,gscr:`ℊ`,gsim:`≳`,gsime:`⪎`,gsiml:`⪐`,gtcc:`⪧`,gtcir:`⩺`,gt:`>`,GT:`>`,Gt:`≫`,gtdot:`⋗`,gtlPar:`⦕`,gtquest:`⩼`,gtrapprox:`⪆`,gtrarr:`⥸`,gtrdot:`⋗`,gtreqless:`⋛`,gtreqqless:`⪌`,gtrless:`≷`,gtrsim:`≳`,gvertneqq:`≩︀`,gvnE:`≩︀`,Hacek:`ˇ`,hairsp:` `,half:`½`,hamilt:`ℋ`,HARDcy:`Ъ`,hardcy:`ъ`,harrcir:`⥈`,harr:`↔`,hArr:`⇔`,harrw:`↭`,Hat:`^`,hbar:`ℏ`,Hcirc:`Ĥ`,hcirc:`ĥ`,hearts:`♥`,heartsuit:`♥`,hellip:`…`,hercon:`⊹`,hfr:`𝔥`,Hfr:`ℌ`,HilbertSpace:`ℋ`,hksearow:`⤥`,hkswarow:`⤦`,hoarr:`⇿`,homtht:`∻`,hookleftarrow:`↩`,hookrightarrow:`↪`,hopf:`𝕙`,Hopf:`ℍ`,horbar:`―`,HorizontalLine:`─`,hscr:`𝒽`,Hscr:`ℋ`,hslash:`ℏ`,Hstrok:`Ħ`,hstrok:`ħ`,HumpDownHump:`≎`,HumpEqual:`≏`,hybull:`⁃`,hyphen:`‐`,Iacute:`Í`,iacute:`í`,ic:`⁣`,Icirc:`Î`,icirc:`î`,Icy:`И`,icy:`и`,Idot:`İ`,IEcy:`Е`,iecy:`е`,iexcl:`¡`,iff:`⇔`,ifr:`𝔦`,Ifr:`ℑ`,Igrave:`Ì`,igrave:`ì`,ii:`ⅈ`,iiiint:`⨌`,iiint:`∭`,iinfin:`⧜`,iiota:`℩`,IJlig:`IJ`,ijlig:`ij`,Imacr:`Ī`,imacr:`ī`,image:`ℑ`,ImaginaryI:`ⅈ`,imagline:`ℐ`,imagpart:`ℑ`,imath:`ı`,Im:`ℑ`,imof:`⊷`,imped:`Ƶ`,Implies:`⇒`,incare:`℅`,in:`∈`,infin:`∞`,infintie:`⧝`,inodot:`ı`,intcal:`⊺`,int:`∫`,Int:`∬`,integers:`ℤ`,Integral:`∫`,intercal:`⊺`,Intersection:`⋂`,intlarhk:`⨗`,intprod:`⨼`,InvisibleComma:`⁣`,InvisibleTimes:`⁢`,IOcy:`Ё`,iocy:`ё`,Iogon:`Į`,iogon:`į`,Iopf:`𝕀`,iopf:`𝕚`,Iota:`Ι`,iota:`ι`,iprod:`⨼`,iquest:`¿`,iscr:`𝒾`,Iscr:`ℐ`,isin:`∈`,isindot:`⋵`,isinE:`⋹`,isins:`⋴`,isinsv:`⋳`,isinv:`∈`,it:`⁢`,Itilde:`Ĩ`,itilde:`ĩ`,Iukcy:`І`,iukcy:`і`,Iuml:`Ï`,iuml:`ï`,Jcirc:`Ĵ`,jcirc:`ĵ`,Jcy:`Й`,jcy:`й`,Jfr:`𝔍`,jfr:`𝔧`,jmath:`ȷ`,Jopf:`𝕁`,jopf:`𝕛`,Jscr:`𝒥`,jscr:`𝒿`,Jsercy:`Ј`,jsercy:`ј`,Jukcy:`Є`,jukcy:`є`,Kappa:`Κ`,kappa:`κ`,kappav:`ϰ`,Kcedil:`Ķ`,kcedil:`ķ`,Kcy:`К`,kcy:`к`,Kfr:`𝔎`,kfr:`𝔨`,kgreen:`ĸ`,KHcy:`Х`,khcy:`х`,KJcy:`Ќ`,kjcy:`ќ`,Kopf:`𝕂`,kopf:`𝕜`,Kscr:`𝒦`,kscr:`𝓀`,lAarr:`⇚`,Lacute:`Ĺ`,lacute:`ĺ`,laemptyv:`⦴`,lagran:`ℒ`,Lambda:`Λ`,lambda:`λ`,lang:`⟨`,Lang:`⟪`,langd:`⦑`,langle:`⟨`,lap:`⪅`,Laplacetrf:`ℒ`,laquo:`«`,larrb:`⇤`,larrbfs:`⤟`,larr:`←`,Larr:`↞`,lArr:`⇐`,larrfs:`⤝`,larrhk:`↩`,larrlp:`↫`,larrpl:`⤹`,larrsim:`⥳`,larrtl:`↢`,latail:`⤙`,lAtail:`⤛`,lat:`⪫`,late:`⪭`,lates:`⪭︀`,lbarr:`⤌`,lBarr:`⤎`,lbbrk:`❲`,lbrace:`{`,lbrack:`[`,lbrke:`⦋`,lbrksld:`⦏`,lbrkslu:`⦍`,Lcaron:`Ľ`,lcaron:`ľ`,Lcedil:`Ļ`,lcedil:`ļ`,lceil:`⌈`,lcub:`{`,Lcy:`Л`,lcy:`л`,ldca:`⤶`,ldquo:`“`,ldquor:`„`,ldrdhar:`⥧`,ldrushar:`⥋`,ldsh:`↲`,le:`≤`,lE:`≦`,LeftAngleBracket:`⟨`,LeftArrowBar:`⇤`,leftarrow:`←`,LeftArrow:`←`,Leftarrow:`⇐`,LeftArrowRightArrow:`⇆`,leftarrowtail:`↢`,LeftCeiling:`⌈`,LeftDoubleBracket:`⟦`,LeftDownTeeVector:`⥡`,LeftDownVectorBar:`⥙`,LeftDownVector:`⇃`,LeftFloor:`⌊`,leftharpoondown:`↽`,leftharpoonup:`↼`,leftleftarrows:`⇇`,leftrightarrow:`↔`,LeftRightArrow:`↔`,Leftrightarrow:`⇔`,leftrightarrows:`⇆`,leftrightharpoons:`⇋`,leftrightsquigarrow:`↭`,LeftRightVector:`⥎`,LeftTeeArrow:`↤`,LeftTee:`⊣`,LeftTeeVector:`⥚`,leftthreetimes:`⋋`,LeftTriangleBar:`⧏`,LeftTriangle:`⊲`,LeftTriangleEqual:`⊴`,LeftUpDownVector:`⥑`,LeftUpTeeVector:`⥠`,LeftUpVectorBar:`⥘`,LeftUpVector:`↿`,LeftVectorBar:`⥒`,LeftVector:`↼`,lEg:`⪋`,leg:`⋚`,leq:`≤`,leqq:`≦`,leqslant:`⩽`,lescc:`⪨`,les:`⩽`,lesdot:`⩿`,lesdoto:`⪁`,lesdotor:`⪃`,lesg:`⋚︀`,lesges:`⪓`,lessapprox:`⪅`,lessdot:`⋖`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,LessEqualGreater:`⋚`,LessFullEqual:`≦`,LessGreater:`≶`,lessgtr:`≶`,LessLess:`⪡`,lesssim:`≲`,LessSlantEqual:`⩽`,LessTilde:`≲`,lfisht:`⥼`,lfloor:`⌊`,Lfr:`𝔏`,lfr:`𝔩`,lg:`≶`,lgE:`⪑`,lHar:`⥢`,lhard:`↽`,lharu:`↼`,lharul:`⥪`,lhblk:`▄`,LJcy:`Љ`,ljcy:`љ`,llarr:`⇇`,ll:`≪`,Ll:`⋘`,llcorner:`⌞`,Lleftarrow:`⇚`,llhard:`⥫`,lltri:`◺`,Lmidot:`Ŀ`,lmidot:`ŀ`,lmoustache:`⎰`,lmoust:`⎰`,lnap:`⪉`,lnapprox:`⪉`,lne:`⪇`,lnE:`≨`,lneq:`⪇`,lneqq:`≨`,lnsim:`⋦`,loang:`⟬`,loarr:`⇽`,lobrk:`⟦`,longleftarrow:`⟵`,LongLeftArrow:`⟵`,Longleftarrow:`⟸`,longleftrightarrow:`⟷`,LongLeftRightArrow:`⟷`,Longleftrightarrow:`⟺`,longmapsto:`⟼`,longrightarrow:`⟶`,LongRightArrow:`⟶`,Longrightarrow:`⟹`,looparrowleft:`↫`,looparrowright:`↬`,lopar:`⦅`,Lopf:`𝕃`,lopf:`𝕝`,loplus:`⨭`,lotimes:`⨴`,lowast:`∗`,lowbar:`_`,LowerLeftArrow:`↙`,LowerRightArrow:`↘`,loz:`◊`,lozenge:`◊`,lozf:`⧫`,lpar:`(`,lparlt:`⦓`,lrarr:`⇆`,lrcorner:`⌟`,lrhar:`⇋`,lrhard:`⥭`,lrm:`‎`,lrtri:`⊿`,lsaquo:`‹`,lscr:`𝓁`,Lscr:`ℒ`,lsh:`↰`,Lsh:`↰`,lsim:`≲`,lsime:`⪍`,lsimg:`⪏`,lsqb:`[`,lsquo:`‘`,lsquor:`‚`,Lstrok:`Ł`,lstrok:`ł`,ltcc:`⪦`,ltcir:`⩹`,lt:`<`,LT:`<`,Lt:`≪`,ltdot:`⋖`,lthree:`⋋`,ltimes:`⋉`,ltlarr:`⥶`,ltquest:`⩻`,ltri:`◃`,ltrie:`⊴`,ltrif:`◂`,ltrPar:`⦖`,lurdshar:`⥊`,luruhar:`⥦`,lvertneqq:`≨︀`,lvnE:`≨︀`,macr:`¯`,male:`♂`,malt:`✠`,maltese:`✠`,Map:`⤅`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,mapstoleft:`↤`,mapstoup:`↥`,marker:`▮`,mcomma:`⨩`,Mcy:`М`,mcy:`м`,mdash:`—`,mDDot:`∺`,measuredangle:`∡`,MediumSpace:` `,Mellintrf:`ℳ`,Mfr:`𝔐`,mfr:`𝔪`,mho:`℧`,micro:`µ`,midast:`*`,midcir:`⫰`,mid:`∣`,middot:`·`,minusb:`⊟`,minus:`−`,minusd:`∸`,minusdu:`⨪`,MinusPlus:`∓`,mlcp:`⫛`,mldr:`…`,mnplus:`∓`,models:`⊧`,Mopf:`𝕄`,mopf:`𝕞`,mp:`∓`,mscr:`𝓂`,Mscr:`ℳ`,mstpos:`∾`,Mu:`Μ`,mu:`μ`,multimap:`⊸`,mumap:`⊸`,nabla:`∇`,Nacute:`Ń`,nacute:`ń`,nang:`∠⃒`,nap:`≉`,napE:`⩰̸`,napid:`≋̸`,napos:`ʼn`,napprox:`≉`,natural:`♮`,naturals:`ℕ`,natur:`♮`,nbsp:`\xA0`,nbump:`≎̸`,nbumpe:`≏̸`,ncap:`⩃`,Ncaron:`Ň`,ncaron:`ň`,Ncedil:`Ņ`,ncedil:`ņ`,ncong:`≇`,ncongdot:`⩭̸`,ncup:`⩂`,Ncy:`Н`,ncy:`н`,ndash:`–`,nearhk:`⤤`,nearr:`↗`,neArr:`⇗`,nearrow:`↗`,ne:`≠`,nedot:`≐̸`,NegativeMediumSpace:`​`,NegativeThickSpace:`​`,NegativeThinSpace:`​`,NegativeVeryThinSpace:`​`,nequiv:`≢`,nesear:`⤨`,nesim:`≂̸`,NestedGreaterGreater:`≫`,NestedLessLess:`≪`,NewLine:`
12
+ `,nexist:`∄`,nexists:`∄`,Nfr:`𝔑`,nfr:`𝔫`,ngE:`≧̸`,nge:`≱`,ngeq:`≱`,ngeqq:`≧̸`,ngeqslant:`⩾̸`,nges:`⩾̸`,nGg:`⋙̸`,ngsim:`≵`,nGt:`≫⃒`,ngt:`≯`,ngtr:`≯`,nGtv:`≫̸`,nharr:`↮`,nhArr:`⇎`,nhpar:`⫲`,ni:`∋`,nis:`⋼`,nisd:`⋺`,niv:`∋`,NJcy:`Њ`,njcy:`њ`,nlarr:`↚`,nlArr:`⇍`,nldr:`‥`,nlE:`≦̸`,nle:`≰`,nleftarrow:`↚`,nLeftarrow:`⇍`,nleftrightarrow:`↮`,nLeftrightarrow:`⇎`,nleq:`≰`,nleqq:`≦̸`,nleqslant:`⩽̸`,nles:`⩽̸`,nless:`≮`,nLl:`⋘̸`,nlsim:`≴`,nLt:`≪⃒`,nlt:`≮`,nltri:`⋪`,nltrie:`⋬`,nLtv:`≪̸`,nmid:`∤`,NoBreak:`⁠`,NonBreakingSpace:`\xA0`,nopf:`𝕟`,Nopf:`ℕ`,Not:`⫬`,not:`¬`,NotCongruent:`≢`,NotCupCap:`≭`,NotDoubleVerticalBar:`∦`,NotElement:`∉`,NotEqual:`≠`,NotEqualTilde:`≂̸`,NotExists:`∄`,NotGreater:`≯`,NotGreaterEqual:`≱`,NotGreaterFullEqual:`≧̸`,NotGreaterGreater:`≫̸`,NotGreaterLess:`≹`,NotGreaterSlantEqual:`⩾̸`,NotGreaterTilde:`≵`,NotHumpDownHump:`≎̸`,NotHumpEqual:`≏̸`,notin:`∉`,notindot:`⋵̸`,notinE:`⋹̸`,notinva:`∉`,notinvb:`⋷`,notinvc:`⋶`,NotLeftTriangleBar:`⧏̸`,NotLeftTriangle:`⋪`,NotLeftTriangleEqual:`⋬`,NotLess:`≮`,NotLessEqual:`≰`,NotLessGreater:`≸`,NotLessLess:`≪̸`,NotLessSlantEqual:`⩽̸`,NotLessTilde:`≴`,NotNestedGreaterGreater:`⪢̸`,NotNestedLessLess:`⪡̸`,notni:`∌`,notniva:`∌`,notnivb:`⋾`,notnivc:`⋽`,NotPrecedes:`⊀`,NotPrecedesEqual:`⪯̸`,NotPrecedesSlantEqual:`⋠`,NotReverseElement:`∌`,NotRightTriangleBar:`⧐̸`,NotRightTriangle:`⋫`,NotRightTriangleEqual:`⋭`,NotSquareSubset:`⊏̸`,NotSquareSubsetEqual:`⋢`,NotSquareSuperset:`⊐̸`,NotSquareSupersetEqual:`⋣`,NotSubset:`⊂⃒`,NotSubsetEqual:`⊈`,NotSucceeds:`⊁`,NotSucceedsEqual:`⪰̸`,NotSucceedsSlantEqual:`⋡`,NotSucceedsTilde:`≿̸`,NotSuperset:`⊃⃒`,NotSupersetEqual:`⊉`,NotTilde:`≁`,NotTildeEqual:`≄`,NotTildeFullEqual:`≇`,NotTildeTilde:`≉`,NotVerticalBar:`∤`,nparallel:`∦`,npar:`∦`,nparsl:`⫽⃥`,npart:`∂̸`,npolint:`⨔`,npr:`⊀`,nprcue:`⋠`,nprec:`⊀`,npreceq:`⪯̸`,npre:`⪯̸`,nrarrc:`⤳̸`,nrarr:`↛`,nrArr:`⇏`,nrarrw:`↝̸`,nrightarrow:`↛`,nRightarrow:`⇏`,nrtri:`⋫`,nrtrie:`⋭`,nsc:`⊁`,nsccue:`⋡`,nsce:`⪰̸`,Nscr:`𝒩`,nscr:`𝓃`,nshortmid:`∤`,nshortparallel:`∦`,nsim:`≁`,nsime:`≄`,nsimeq:`≄`,nsmid:`∤`,nspar:`∦`,nsqsube:`⋢`,nsqsupe:`⋣`,nsub:`⊄`,nsubE:`⫅̸`,nsube:`⊈`,nsubset:`⊂⃒`,nsubseteq:`⊈`,nsubseteqq:`⫅̸`,nsucc:`⊁`,nsucceq:`⪰̸`,nsup:`⊅`,nsupE:`⫆̸`,nsupe:`⊉`,nsupset:`⊃⃒`,nsupseteq:`⊉`,nsupseteqq:`⫆̸`,ntgl:`≹`,Ntilde:`Ñ`,ntilde:`ñ`,ntlg:`≸`,ntriangleleft:`⋪`,ntrianglelefteq:`⋬`,ntriangleright:`⋫`,ntrianglerighteq:`⋭`,Nu:`Ν`,nu:`ν`,num:`#`,numero:`№`,numsp:` `,nvap:`≍⃒`,nvdash:`⊬`,nvDash:`⊭`,nVdash:`⊮`,nVDash:`⊯`,nvge:`≥⃒`,nvgt:`>⃒`,nvHarr:`⤄`,nvinfin:`⧞`,nvlArr:`⤂`,nvle:`≤⃒`,nvlt:`<⃒`,nvltrie:`⊴⃒`,nvrArr:`⤃`,nvrtrie:`⊵⃒`,nvsim:`∼⃒`,nwarhk:`⤣`,nwarr:`↖`,nwArr:`⇖`,nwarrow:`↖`,nwnear:`⤧`,Oacute:`Ó`,oacute:`ó`,oast:`⊛`,Ocirc:`Ô`,ocirc:`ô`,ocir:`⊚`,Ocy:`О`,ocy:`о`,odash:`⊝`,Odblac:`Ő`,odblac:`ő`,odiv:`⨸`,odot:`⊙`,odsold:`⦼`,OElig:`Œ`,oelig:`œ`,ofcir:`⦿`,Ofr:`𝔒`,ofr:`𝔬`,ogon:`˛`,Ograve:`Ò`,ograve:`ò`,ogt:`⧁`,ohbar:`⦵`,ohm:`Ω`,oint:`∮`,olarr:`↺`,olcir:`⦾`,olcross:`⦻`,oline:`‾`,olt:`⧀`,Omacr:`Ō`,omacr:`ō`,Omega:`Ω`,omega:`ω`,Omicron:`Ο`,omicron:`ο`,omid:`⦶`,ominus:`⊖`,Oopf:`𝕆`,oopf:`𝕠`,opar:`⦷`,OpenCurlyDoubleQuote:`“`,OpenCurlyQuote:`‘`,operp:`⦹`,oplus:`⊕`,orarr:`↻`,Or:`⩔`,or:`∨`,ord:`⩝`,order:`ℴ`,orderof:`ℴ`,ordf:`ª`,ordm:`º`,origof:`⊶`,oror:`⩖`,orslope:`⩗`,orv:`⩛`,oS:`Ⓢ`,Oscr:`𝒪`,oscr:`ℴ`,Oslash:`Ø`,oslash:`ø`,osol:`⊘`,Otilde:`Õ`,otilde:`õ`,otimesas:`⨶`,Otimes:`⨷`,otimes:`⊗`,Ouml:`Ö`,ouml:`ö`,ovbar:`⌽`,OverBar:`‾`,OverBrace:`⏞`,OverBracket:`⎴`,OverParenthesis:`⏜`,para:`¶`,parallel:`∥`,par:`∥`,parsim:`⫳`,parsl:`⫽`,part:`∂`,PartialD:`∂`,Pcy:`П`,pcy:`п`,percnt:`%`,period:`.`,permil:`‰`,perp:`⊥`,pertenk:`‱`,Pfr:`𝔓`,pfr:`𝔭`,Phi:`Φ`,phi:`φ`,phiv:`ϕ`,phmmat:`ℳ`,phone:`☎`,Pi:`Π`,pi:`π`,pitchfork:`⋔`,piv:`ϖ`,planck:`ℏ`,planckh:`ℎ`,plankv:`ℏ`,plusacir:`⨣`,plusb:`⊞`,pluscir:`⨢`,plus:`+`,plusdo:`∔`,plusdu:`⨥`,pluse:`⩲`,PlusMinus:`±`,plusmn:`±`,plussim:`⨦`,plustwo:`⨧`,pm:`±`,Poincareplane:`ℌ`,pointint:`⨕`,popf:`𝕡`,Popf:`ℙ`,pound:`£`,prap:`⪷`,Pr:`⪻`,pr:`≺`,prcue:`≼`,precapprox:`⪷`,prec:`≺`,preccurlyeq:`≼`,Precedes:`≺`,PrecedesEqual:`⪯`,PrecedesSlantEqual:`≼`,PrecedesTilde:`≾`,preceq:`⪯`,precnapprox:`⪹`,precneqq:`⪵`,precnsim:`⋨`,pre:`⪯`,prE:`⪳`,precsim:`≾`,prime:`′`,Prime:`″`,primes:`ℙ`,prnap:`⪹`,prnE:`⪵`,prnsim:`⋨`,prod:`∏`,Product:`∏`,profalar:`⌮`,profline:`⌒`,profsurf:`⌓`,prop:`∝`,Proportional:`∝`,Proportion:`∷`,propto:`∝`,prsim:`≾`,prurel:`⊰`,Pscr:`𝒫`,pscr:`𝓅`,Psi:`Ψ`,psi:`ψ`,puncsp:` `,Qfr:`𝔔`,qfr:`𝔮`,qint:`⨌`,qopf:`𝕢`,Qopf:`ℚ`,qprime:`⁗`,Qscr:`𝒬`,qscr:`𝓆`,quaternions:`ℍ`,quatint:`⨖`,quest:`?`,questeq:`≟`,quot:`"`,QUOT:`"`,rAarr:`⇛`,race:`∽̱`,Racute:`Ŕ`,racute:`ŕ`,radic:`√`,raemptyv:`⦳`,rang:`⟩`,Rang:`⟫`,rangd:`⦒`,range:`⦥`,rangle:`⟩`,raquo:`»`,rarrap:`⥵`,rarrb:`⇥`,rarrbfs:`⤠`,rarrc:`⤳`,rarr:`→`,Rarr:`↠`,rArr:`⇒`,rarrfs:`⤞`,rarrhk:`↪`,rarrlp:`↬`,rarrpl:`⥅`,rarrsim:`⥴`,Rarrtl:`⤖`,rarrtl:`↣`,rarrw:`↝`,ratail:`⤚`,rAtail:`⤜`,ratio:`∶`,rationals:`ℚ`,rbarr:`⤍`,rBarr:`⤏`,RBarr:`⤐`,rbbrk:`❳`,rbrace:`}`,rbrack:`]`,rbrke:`⦌`,rbrksld:`⦎`,rbrkslu:`⦐`,Rcaron:`Ř`,rcaron:`ř`,Rcedil:`Ŗ`,rcedil:`ŗ`,rceil:`⌉`,rcub:`}`,Rcy:`Р`,rcy:`р`,rdca:`⤷`,rdldhar:`⥩`,rdquo:`”`,rdquor:`”`,rdsh:`↳`,real:`ℜ`,realine:`ℛ`,realpart:`ℜ`,reals:`ℝ`,Re:`ℜ`,rect:`▭`,reg:`®`,REG:`®`,ReverseElement:`∋`,ReverseEquilibrium:`⇋`,ReverseUpEquilibrium:`⥯`,rfisht:`⥽`,rfloor:`⌋`,rfr:`𝔯`,Rfr:`ℜ`,rHar:`⥤`,rhard:`⇁`,rharu:`⇀`,rharul:`⥬`,Rho:`Ρ`,rho:`ρ`,rhov:`ϱ`,RightAngleBracket:`⟩`,RightArrowBar:`⇥`,rightarrow:`→`,RightArrow:`→`,Rightarrow:`⇒`,RightArrowLeftArrow:`⇄`,rightarrowtail:`↣`,RightCeiling:`⌉`,RightDoubleBracket:`⟧`,RightDownTeeVector:`⥝`,RightDownVectorBar:`⥕`,RightDownVector:`⇂`,RightFloor:`⌋`,rightharpoondown:`⇁`,rightharpoonup:`⇀`,rightleftarrows:`⇄`,rightleftharpoons:`⇌`,rightrightarrows:`⇉`,rightsquigarrow:`↝`,RightTeeArrow:`↦`,RightTee:`⊢`,RightTeeVector:`⥛`,rightthreetimes:`⋌`,RightTriangleBar:`⧐`,RightTriangle:`⊳`,RightTriangleEqual:`⊵`,RightUpDownVector:`⥏`,RightUpTeeVector:`⥜`,RightUpVectorBar:`⥔`,RightUpVector:`↾`,RightVectorBar:`⥓`,RightVector:`⇀`,ring:`˚`,risingdotseq:`≓`,rlarr:`⇄`,rlhar:`⇌`,rlm:`‏`,rmoustache:`⎱`,rmoust:`⎱`,rnmid:`⫮`,roang:`⟭`,roarr:`⇾`,robrk:`⟧`,ropar:`⦆`,ropf:`𝕣`,Ropf:`ℝ`,roplus:`⨮`,rotimes:`⨵`,RoundImplies:`⥰`,rpar:`)`,rpargt:`⦔`,rppolint:`⨒`,rrarr:`⇉`,Rrightarrow:`⇛`,rsaquo:`›`,rscr:`𝓇`,Rscr:`ℛ`,rsh:`↱`,Rsh:`↱`,rsqb:`]`,rsquo:`’`,rsquor:`’`,rthree:`⋌`,rtimes:`⋊`,rtri:`▹`,rtrie:`⊵`,rtrif:`▸`,rtriltri:`⧎`,RuleDelayed:`⧴`,ruluhar:`⥨`,rx:`℞`,Sacute:`Ś`,sacute:`ś`,sbquo:`‚`,scap:`⪸`,Scaron:`Š`,scaron:`š`,Sc:`⪼`,sc:`≻`,sccue:`≽`,sce:`⪰`,scE:`⪴`,Scedil:`Ş`,scedil:`ş`,Scirc:`Ŝ`,scirc:`ŝ`,scnap:`⪺`,scnE:`⪶`,scnsim:`⋩`,scpolint:`⨓`,scsim:`≿`,Scy:`С`,scy:`с`,sdotb:`⊡`,sdot:`⋅`,sdote:`⩦`,searhk:`⤥`,searr:`↘`,seArr:`⇘`,searrow:`↘`,sect:`§`,semi:`;`,seswar:`⤩`,setminus:`∖`,setmn:`∖`,sext:`✶`,Sfr:`𝔖`,sfr:`𝔰`,sfrown:`⌢`,sharp:`♯`,SHCHcy:`Щ`,shchcy:`щ`,SHcy:`Ш`,shcy:`ш`,ShortDownArrow:`↓`,ShortLeftArrow:`←`,shortmid:`∣`,shortparallel:`∥`,ShortRightArrow:`→`,ShortUpArrow:`↑`,shy:`­`,Sigma:`Σ`,sigma:`σ`,sigmaf:`ς`,sigmav:`ς`,sim:`∼`,simdot:`⩪`,sime:`≃`,simeq:`≃`,simg:`⪞`,simgE:`⪠`,siml:`⪝`,simlE:`⪟`,simne:`≆`,simplus:`⨤`,simrarr:`⥲`,slarr:`←`,SmallCircle:`∘`,smallsetminus:`∖`,smashp:`⨳`,smeparsl:`⧤`,smid:`∣`,smile:`⌣`,smt:`⪪`,smte:`⪬`,smtes:`⪬︀`,SOFTcy:`Ь`,softcy:`ь`,solbar:`⌿`,solb:`⧄`,sol:`/`,Sopf:`𝕊`,sopf:`𝕤`,spades:`♠`,spadesuit:`♠`,spar:`∥`,sqcap:`⊓`,sqcaps:`⊓︀`,sqcup:`⊔`,sqcups:`⊔︀`,Sqrt:`√`,sqsub:`⊏`,sqsube:`⊑`,sqsubset:`⊏`,sqsubseteq:`⊑`,sqsup:`⊐`,sqsupe:`⊒`,sqsupset:`⊐`,sqsupseteq:`⊒`,square:`□`,Square:`□`,SquareIntersection:`⊓`,SquareSubset:`⊏`,SquareSubsetEqual:`⊑`,SquareSuperset:`⊐`,SquareSupersetEqual:`⊒`,SquareUnion:`⊔`,squarf:`▪`,squ:`□`,squf:`▪`,srarr:`→`,Sscr:`𝒮`,sscr:`𝓈`,ssetmn:`∖`,ssmile:`⌣`,sstarf:`⋆`,Star:`⋆`,star:`☆`,starf:`★`,straightepsilon:`ϵ`,straightphi:`ϕ`,strns:`¯`,sub:`⊂`,Sub:`⋐`,subdot:`⪽`,subE:`⫅`,sube:`⊆`,subedot:`⫃`,submult:`⫁`,subnE:`⫋`,subne:`⊊`,subplus:`⪿`,subrarr:`⥹`,subset:`⊂`,Subset:`⋐`,subseteq:`⊆`,subseteqq:`⫅`,SubsetEqual:`⊆`,subsetneq:`⊊`,subsetneqq:`⫋`,subsim:`⫇`,subsub:`⫕`,subsup:`⫓`,succapprox:`⪸`,succ:`≻`,succcurlyeq:`≽`,Succeeds:`≻`,SucceedsEqual:`⪰`,SucceedsSlantEqual:`≽`,SucceedsTilde:`≿`,succeq:`⪰`,succnapprox:`⪺`,succneqq:`⪶`,succnsim:`⋩`,succsim:`≿`,SuchThat:`∋`,sum:`∑`,Sum:`∑`,sung:`♪`,sup1:`¹`,sup2:`²`,sup3:`³`,sup:`⊃`,Sup:`⋑`,supdot:`⪾`,supdsub:`⫘`,supE:`⫆`,supe:`⊇`,supedot:`⫄`,Superset:`⊃`,SupersetEqual:`⊇`,suphsol:`⟉`,suphsub:`⫗`,suplarr:`⥻`,supmult:`⫂`,supnE:`⫌`,supne:`⊋`,supplus:`⫀`,supset:`⊃`,Supset:`⋑`,supseteq:`⊇`,supseteqq:`⫆`,supsetneq:`⊋`,supsetneqq:`⫌`,supsim:`⫈`,supsub:`⫔`,supsup:`⫖`,swarhk:`⤦`,swarr:`↙`,swArr:`⇙`,swarrow:`↙`,swnwar:`⤪`,szlig:`ß`,Tab:` `,target:`⌖`,Tau:`Τ`,tau:`τ`,tbrk:`⎴`,Tcaron:`Ť`,tcaron:`ť`,Tcedil:`Ţ`,tcedil:`ţ`,Tcy:`Т`,tcy:`т`,tdot:`⃛`,telrec:`⌕`,Tfr:`𝔗`,tfr:`𝔱`,there4:`∴`,therefore:`∴`,Therefore:`∴`,Theta:`Θ`,theta:`θ`,thetasym:`ϑ`,thetav:`ϑ`,thickapprox:`≈`,thicksim:`∼`,ThickSpace:`  `,ThinSpace:` `,thinsp:` `,thkap:`≈`,thksim:`∼`,THORN:`Þ`,thorn:`þ`,tilde:`˜`,Tilde:`∼`,TildeEqual:`≃`,TildeFullEqual:`≅`,TildeTilde:`≈`,timesbar:`⨱`,timesb:`⊠`,times:`×`,timesd:`⨰`,tint:`∭`,toea:`⤨`,topbot:`⌶`,topcir:`⫱`,top:`⊤`,Topf:`𝕋`,topf:`𝕥`,topfork:`⫚`,tosa:`⤩`,tprime:`‴`,trade:`™`,TRADE:`™`,triangle:`▵`,triangledown:`▿`,triangleleft:`◃`,trianglelefteq:`⊴`,triangleq:`≜`,triangleright:`▹`,trianglerighteq:`⊵`,tridot:`◬`,trie:`≜`,triminus:`⨺`,TripleDot:`⃛`,triplus:`⨹`,trisb:`⧍`,tritime:`⨻`,trpezium:`⏢`,Tscr:`𝒯`,tscr:`𝓉`,TScy:`Ц`,tscy:`ц`,TSHcy:`Ћ`,tshcy:`ћ`,Tstrok:`Ŧ`,tstrok:`ŧ`,twixt:`≬`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Uacute:`Ú`,uacute:`ú`,uarr:`↑`,Uarr:`↟`,uArr:`⇑`,Uarrocir:`⥉`,Ubrcy:`Ў`,ubrcy:`ў`,Ubreve:`Ŭ`,ubreve:`ŭ`,Ucirc:`Û`,ucirc:`û`,Ucy:`У`,ucy:`у`,udarr:`⇅`,Udblac:`Ű`,udblac:`ű`,udhar:`⥮`,ufisht:`⥾`,Ufr:`𝔘`,ufr:`𝔲`,Ugrave:`Ù`,ugrave:`ù`,uHar:`⥣`,uharl:`↿`,uharr:`↾`,uhblk:`▀`,ulcorn:`⌜`,ulcorner:`⌜`,ulcrop:`⌏`,ultri:`◸`,Umacr:`Ū`,umacr:`ū`,uml:`¨`,UnderBar:`_`,UnderBrace:`⏟`,UnderBracket:`⎵`,UnderParenthesis:`⏝`,Union:`⋃`,UnionPlus:`⊎`,Uogon:`Ų`,uogon:`ų`,Uopf:`𝕌`,uopf:`𝕦`,UpArrowBar:`⤒`,uparrow:`↑`,UpArrow:`↑`,Uparrow:`⇑`,UpArrowDownArrow:`⇅`,updownarrow:`↕`,UpDownArrow:`↕`,Updownarrow:`⇕`,UpEquilibrium:`⥮`,upharpoonleft:`↿`,upharpoonright:`↾`,uplus:`⊎`,UpperLeftArrow:`↖`,UpperRightArrow:`↗`,upsi:`υ`,Upsi:`ϒ`,upsih:`ϒ`,Upsilon:`Υ`,upsilon:`υ`,UpTeeArrow:`↥`,UpTee:`⊥`,upuparrows:`⇈`,urcorn:`⌝`,urcorner:`⌝`,urcrop:`⌎`,Uring:`Ů`,uring:`ů`,urtri:`◹`,Uscr:`𝒰`,uscr:`𝓊`,utdot:`⋰`,Utilde:`Ũ`,utilde:`ũ`,utri:`▵`,utrif:`▴`,uuarr:`⇈`,Uuml:`Ü`,uuml:`ü`,uwangle:`⦧`,vangrt:`⦜`,varepsilon:`ϵ`,varkappa:`ϰ`,varnothing:`∅`,varphi:`ϕ`,varpi:`ϖ`,varpropto:`∝`,varr:`↕`,vArr:`⇕`,varrho:`ϱ`,varsigma:`ς`,varsubsetneq:`⊊︀`,varsubsetneqq:`⫋︀`,varsupsetneq:`⊋︀`,varsupsetneqq:`⫌︀`,vartheta:`ϑ`,vartriangleleft:`⊲`,vartriangleright:`⊳`,vBar:`⫨`,Vbar:`⫫`,vBarv:`⫩`,Vcy:`В`,vcy:`в`,vdash:`⊢`,vDash:`⊨`,Vdash:`⊩`,VDash:`⊫`,Vdashl:`⫦`,veebar:`⊻`,vee:`∨`,Vee:`⋁`,veeeq:`≚`,vellip:`⋮`,verbar:`|`,Verbar:`‖`,vert:`|`,Vert:`‖`,VerticalBar:`∣`,VerticalLine:`|`,VerticalSeparator:`❘`,VerticalTilde:`≀`,VeryThinSpace:` `,Vfr:`𝔙`,vfr:`𝔳`,vltri:`⊲`,vnsub:`⊂⃒`,vnsup:`⊃⃒`,Vopf:`𝕍`,vopf:`𝕧`,vprop:`∝`,vrtri:`⊳`,Vscr:`𝒱`,vscr:`𝓋`,vsubnE:`⫋︀`,vsubne:`⊊︀`,vsupnE:`⫌︀`,vsupne:`⊋︀`,Vvdash:`⊪`,vzigzag:`⦚`,Wcirc:`Ŵ`,wcirc:`ŵ`,wedbar:`⩟`,wedge:`∧`,Wedge:`⋀`,wedgeq:`≙`,weierp:`℘`,Wfr:`𝔚`,wfr:`𝔴`,Wopf:`𝕎`,wopf:`𝕨`,wp:`℘`,wr:`≀`,wreath:`≀`,Wscr:`𝒲`,wscr:`𝓌`,xcap:`⋂`,xcirc:`◯`,xcup:`⋃`,xdtri:`▽`,Xfr:`𝔛`,xfr:`𝔵`,xharr:`⟷`,xhArr:`⟺`,Xi:`Ξ`,xi:`ξ`,xlarr:`⟵`,xlArr:`⟸`,xmap:`⟼`,xnis:`⋻`,xodot:`⨀`,Xopf:`𝕏`,xopf:`𝕩`,xoplus:`⨁`,xotime:`⨂`,xrarr:`⟶`,xrArr:`⟹`,Xscr:`𝒳`,xscr:`𝓍`,xsqcup:`⨆`,xuplus:`⨄`,xutri:`△`,xvee:`⋁`,xwedge:`⋀`,Yacute:`Ý`,yacute:`ý`,YAcy:`Я`,yacy:`я`,Ycirc:`Ŷ`,ycirc:`ŷ`,Ycy:`Ы`,ycy:`ы`,yen:`¥`,Yfr:`𝔜`,yfr:`𝔶`,YIcy:`Ї`,yicy:`ї`,Yopf:`𝕐`,yopf:`𝕪`,Yscr:`𝒴`,yscr:`𝓎`,YUcy:`Ю`,yucy:`ю`,yuml:`ÿ`,Yuml:`Ÿ`,Zacute:`Ź`,zacute:`ź`,Zcaron:`Ž`,zcaron:`ž`,Zcy:`З`,zcy:`з`,Zdot:`Ż`,zdot:`ż`,zeetrf:`ℨ`,ZeroWidthSpace:`​`,Zeta:`Ζ`,zeta:`ζ`,zfr:`𝔷`,Zfr:`ℨ`,ZHcy:`Ж`,zhcy:`ж`,zigrarr:`⇝`,zopf:`𝕫`,Zopf:`ℤ`,Zscr:`𝒵`,zscr:`𝓏`,zwj:`‍`,zwnj:`‌`},On=/^#[xX]([A-Fa-f0-9]+)$/,kn=/^#([0-9]+)$/,An=/^([A-Za-z0-9]+)$/,jn=function(){function e(e){this.named=e}return e.prototype.parse=function(e){if(e){var t=e.match(On);if(t)return String.fromCharCode(parseInt(t[1],16));if(t=e.match(kn),t)return String.fromCharCode(parseInt(t[1],10));if(t=e.match(An),t)return this.named[t[1]]}},e}(),Mn=/[\t\n\f ]/,Nn=/[A-Za-z]/,Pn=/\r\n?/g;function V(e){return Mn.test(e)}function Fn(e){return Nn.test(e)}function In(e){return e.replace(Pn,`
13
+ `)}var Ln=function(){function e(e,t,n){n===void 0&&(n=`precompile`),this.delegate=e,this.entityParser=t,this.mode=n,this.state=`beforeData`,this.line=-1,this.column=-1,this.input=``,this.index=-1,this.tagNameBuffer=``,this.states={beforeData:function(){var e=this.peek();if(e===`<`&&!this.isIgnoredEndTag())this.transitionTo(`tagOpen`),this.markTagStart(),this.consume();else{if(this.mode===`precompile`&&e===`
14
+ `){var t=this.tagNameBuffer.toLowerCase();(t===`pre`||t===`textarea`)&&this.consume()}this.transitionTo(`data`),this.delegate.beginData()}},data:function(){var e=this.peek(),t=this.tagNameBuffer;e===`<`&&!this.isIgnoredEndTag()?(this.delegate.finishData(),this.transitionTo(`tagOpen`),this.markTagStart(),this.consume()):e===`&`&&t!==`script`&&t!==`style`?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||`&`)):(this.consume(),this.delegate.appendToData(e))},tagOpen:function(){var e=this.consume();e===`!`?this.transitionTo(`markupDeclarationOpen`):e===`/`?this.transitionTo(`endTagOpen`):(e===`@`||e===`:`||Fn(e))&&(this.transitionTo(`tagName`),this.tagNameBuffer=``,this.delegate.beginStartTag(),this.appendToTagName(e))},markupDeclarationOpen:function(){var e=this.consume();if(e===`-`&&this.peek()===`-`)this.consume(),this.transitionTo(`commentStart`),this.delegate.beginComment();else{var t=e.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase();t===`DOCTYPE`&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo(`doctype`),this.delegate.beginDoctype&&this.delegate.beginDoctype())}},doctype:function(){var e=this.consume();V(e)&&this.transitionTo(`beforeDoctypeName`)},beforeDoctypeName:function(){var e=this.consume();V(e)||(this.transitionTo(`doctypeName`),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase()))},doctypeName:function(){var e=this.consume();V(e)?this.transitionTo(`afterDoctypeName`):e===`>`?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo(`beforeData`)):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(e.toLowerCase())},afterDoctypeName:function(){var e=this.consume();if(!V(e))if(e===`>`)this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo(`beforeData`);else{var t=e.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),n=t.toUpperCase()===`PUBLIC`,r=t.toUpperCase()===`SYSTEM`;(n||r)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),n?this.transitionTo(`afterDoctypePublicKeyword`):r&&this.transitionTo(`afterDoctypeSystemKeyword`)}},afterDoctypePublicKeyword:function(){var e=this.peek();V(e)?(this.transitionTo(`beforeDoctypePublicIdentifier`),this.consume()):e===`"`?(this.transitionTo(`doctypePublicIdentifierDoubleQuoted`),this.consume()):e===`'`?(this.transitionTo(`doctypePublicIdentifierSingleQuoted`),this.consume()):e===`>`&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo(`beforeData`))},doctypePublicIdentifierDoubleQuoted:function(){var e=this.consume();e===`"`?this.transitionTo(`afterDoctypePublicIdentifier`):e===`>`?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo(`beforeData`)):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},doctypePublicIdentifierSingleQuoted:function(){var e=this.consume();e===`'`?this.transitionTo(`afterDoctypePublicIdentifier`):e===`>`?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo(`beforeData`)):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(e)},afterDoctypePublicIdentifier:function(){var e=this.consume();V(e)?this.transitionTo(`betweenDoctypePublicAndSystemIdentifiers`):e===`>`?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo(`beforeData`)):e===`"`?this.transitionTo(`doctypeSystemIdentifierDoubleQuoted`):e===`'`&&this.transitionTo(`doctypeSystemIdentifierSingleQuoted`)},betweenDoctypePublicAndSystemIdentifiers:function(){var e=this.consume();V(e)||(e===`>`?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo(`beforeData`)):e===`"`?this.transitionTo(`doctypeSystemIdentifierDoubleQuoted`):e===`'`&&this.transitionTo(`doctypeSystemIdentifierSingleQuoted`))},doctypeSystemIdentifierDoubleQuoted:function(){var e=this.consume();e===`"`?this.transitionTo(`afterDoctypeSystemIdentifier`):e===`>`?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo(`beforeData`)):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},doctypeSystemIdentifierSingleQuoted:function(){var e=this.consume();e===`'`?this.transitionTo(`afterDoctypeSystemIdentifier`):e===`>`?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo(`beforeData`)):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(e)},afterDoctypeSystemIdentifier:function(){var e=this.consume();V(e)||e===`>`&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo(`beforeData`))},commentStart:function(){var e=this.consume();e===`-`?this.transitionTo(`commentStartDash`):e===`>`?(this.delegate.finishComment(),this.transitionTo(`beforeData`)):(this.delegate.appendToCommentData(e),this.transitionTo(`comment`))},commentStartDash:function(){var e=this.consume();e===`-`?this.transitionTo(`commentEnd`):e===`>`?(this.delegate.finishComment(),this.transitionTo(`beforeData`)):(this.delegate.appendToCommentData(`-`),this.transitionTo(`comment`))},comment:function(){var e=this.consume();e===`-`?this.transitionTo(`commentEndDash`):this.delegate.appendToCommentData(e)},commentEndDash:function(){var e=this.consume();e===`-`?this.transitionTo(`commentEnd`):(this.delegate.appendToCommentData(`-`+e),this.transitionTo(`comment`))},commentEnd:function(){var e=this.consume();e===`>`?(this.delegate.finishComment(),this.transitionTo(`beforeData`)):(this.delegate.appendToCommentData(`--`+e),this.transitionTo(`comment`))},tagName:function(){var e=this.consume();V(e)?this.transitionTo(`beforeAttributeName`):e===`/`?this.transitionTo(`selfClosingStartTag`):e===`>`?(this.delegate.finishTag(),this.transitionTo(`beforeData`)):this.appendToTagName(e)},endTagName:function(){var e=this.consume();V(e)?(this.transitionTo(`beforeAttributeName`),this.tagNameBuffer=``):e===`/`?(this.transitionTo(`selfClosingStartTag`),this.tagNameBuffer=``):e===`>`?(this.delegate.finishTag(),this.transitionTo(`beforeData`),this.tagNameBuffer=``):this.appendToTagName(e)},beforeAttributeName:function(){var e=this.peek();if(V(e)){this.consume();return}else e===`/`?(this.transitionTo(`selfClosingStartTag`),this.consume()):e===`>`?(this.consume(),this.delegate.finishTag(),this.transitionTo(`beforeData`)):e===`=`?(this.delegate.reportSyntaxError(`attribute name cannot start with equals sign`),this.transitionTo(`attributeName`),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e)):(this.transitionTo(`attributeName`),this.delegate.beginAttribute())},attributeName:function(){var e=this.peek();V(e)?(this.transitionTo(`afterAttributeName`),this.consume()):e===`/`?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo(`selfClosingStartTag`)):e===`=`?(this.transitionTo(`beforeAttributeValue`),this.consume()):e===`>`?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo(`beforeData`)):e===`"`||e===`'`||e===`<`?(this.delegate.reportSyntaxError(e+` is not a valid character within attribute names`),this.consume(),this.delegate.appendToAttributeName(e)):(this.consume(),this.delegate.appendToAttributeName(e))},afterAttributeName:function(){var e=this.peek();if(V(e)){this.consume();return}else e===`/`?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo(`selfClosingStartTag`)):e===`=`?(this.consume(),this.transitionTo(`beforeAttributeValue`)):e===`>`?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo(`beforeData`)):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo(`attributeName`),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(e))},beforeAttributeValue:function(){var e=this.peek();V(e)?this.consume():e===`"`?(this.transitionTo(`attributeValueDoubleQuoted`),this.delegate.beginAttributeValue(!0),this.consume()):e===`'`?(this.transitionTo(`attributeValueSingleQuoted`),this.delegate.beginAttributeValue(!0),this.consume()):e===`>`?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo(`beforeData`)):(this.transitionTo(`attributeValueUnquoted`),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(e))},attributeValueDoubleQuoted:function(){var e=this.consume();e===`"`?(this.delegate.finishAttributeValue(),this.transitionTo(`afterAttributeValueQuoted`)):e===`&`?this.delegate.appendToAttributeValue(this.consumeCharRef()||`&`):this.delegate.appendToAttributeValue(e)},attributeValueSingleQuoted:function(){var e=this.consume();e===`'`?(this.delegate.finishAttributeValue(),this.transitionTo(`afterAttributeValueQuoted`)):e===`&`?this.delegate.appendToAttributeValue(this.consumeCharRef()||`&`):this.delegate.appendToAttributeValue(e)},attributeValueUnquoted:function(){var e=this.peek();V(e)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo(`beforeAttributeName`)):e===`/`?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo(`selfClosingStartTag`)):e===`&`?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||`&`)):e===`>`?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo(`beforeData`)):(this.consume(),this.delegate.appendToAttributeValue(e))},afterAttributeValueQuoted:function(){var e=this.peek();V(e)?(this.consume(),this.transitionTo(`beforeAttributeName`)):e===`/`?(this.consume(),this.transitionTo(`selfClosingStartTag`)):e===`>`?(this.consume(),this.delegate.finishTag(),this.transitionTo(`beforeData`)):this.transitionTo(`beforeAttributeName`)},selfClosingStartTag:function(){var e=this.peek();e===`>`?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo(`beforeData`)):this.transitionTo(`beforeAttributeName`)},endTagOpen:function(){var e=this.consume();(e===`@`||e===`:`||Fn(e))&&(this.transitionTo(`endTagName`),this.tagNameBuffer=``,this.delegate.beginEndTag(),this.appendToTagName(e))}},this.reset()}return e.prototype.reset=function(){this.transitionTo(`beforeData`),this.input=``,this.tagNameBuffer=``,this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(e){this.state=e},e.prototype.tokenize=function(e){this.reset(),this.tokenizePart(e),this.tokenizeEOF()},e.prototype.tokenizePart=function(e){for(this.input+=In(e);this.index<this.input.length;){var t=this.states[this.state];if(t!==void 0)t.call(this);else throw Error(`unhandled state `+this.state)}},e.prototype.tokenizeEOF=function(){this.flushData()},e.prototype.flushData=function(){this.state===`data`&&(this.delegate.finishData(),this.transitionTo(`beforeData`))},e.prototype.peek=function(){return this.input.charAt(this.index)},e.prototype.consume=function(){var e=this.peek();return this.index++,e===`
15
+ `?(this.line++,this.column=0):this.column++,e},e.prototype.consumeCharRef=function(){var e=this.input.indexOf(`;`,this.index);if(e!==-1){var t=this.input.slice(this.index,e),n=this.entityParser.parse(t);if(n){for(var r=t.length;r;)this.consume(),r--;return this.consume(),n}}},e.prototype.markTagStart=function(){this.delegate.tagOpen()},e.prototype.appendToTagName=function(e){this.tagNameBuffer+=e,this.delegate.appendToTagName(e)},e.prototype.isIgnoredEndTag=function(){var e=this.tagNameBuffer;return e===`title`&&this.input.substring(this.index,this.index+8)!==`</title>`||e===`style`&&this.input.substring(this.index,this.index+8)!==`</style>`||e===`script`&&this.input.substring(this.index,this.index+9)!==`<\/script>`},e}();(function(){function e(e,t){t===void 0&&(t={}),this.options=t,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new Ln(this,e,t.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(e){return this.tokens=[],this.tokenizer.tokenize(e),this.tokens},e.prototype.tokenizePart=function(e){return this.tokens=[],this.tokenizer.tokenizePart(e),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var e=this.token;if(e===null)throw Error(`token was unexpectedly null`);if(arguments.length===0)return e;for(var t=0;t<arguments.length;t++)if(e.type===arguments[t])return e;throw Error(`token type was unexpectedly `+e.type)},e.prototype.push=function(e){this.token=e,this.tokens.push(e)},e.prototype.currentAttribute=function(){return this._currentAttribute},e.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},e.prototype.beginDoctype=function(){this.push({type:`Doctype`,name:``})},e.prototype.appendToDoctypeName=function(e){this.current(`Doctype`).name+=e},e.prototype.appendToDoctypePublicIdentifier=function(e){var t=this.current(`Doctype`);t.publicIdentifier===void 0?t.publicIdentifier=e:t.publicIdentifier+=e},e.prototype.appendToDoctypeSystemIdentifier=function(e){var t=this.current(`Doctype`);t.systemIdentifier===void 0?t.systemIdentifier=e:t.systemIdentifier+=e},e.prototype.endDoctype=function(){this.addLocInfo()},e.prototype.beginData=function(){this.push({type:`Chars`,chars:``})},e.prototype.appendToData=function(e){this.current(`Chars`).chars+=e},e.prototype.finishData=function(){this.addLocInfo()},e.prototype.beginComment=function(){this.push({type:`Comment`,chars:``})},e.prototype.appendToCommentData=function(e){this.current(`Comment`).chars+=e},e.prototype.finishComment=function(){this.addLocInfo()},e.prototype.tagOpen=function(){},e.prototype.beginStartTag=function(){this.push({type:`StartTag`,tagName:``,attributes:[],selfClosing:!1})},e.prototype.beginEndTag=function(){this.push({type:`EndTag`,tagName:``})},e.prototype.finishTag=function(){this.addLocInfo()},e.prototype.markTagAsSelfClosing=function(){this.current(`StartTag`).selfClosing=!0},e.prototype.appendToTagName=function(e){this.current(`StartTag`,`EndTag`).tagName+=e},e.prototype.beginAttribute=function(){this._currentAttribute=[``,``,!1]},e.prototype.appendToAttributeName=function(e){this.currentAttribute()[0]+=e},e.prototype.beginAttributeValue=function(e){this.currentAttribute()[2]=e},e.prototype.appendToAttributeValue=function(e){this.currentAttribute()[1]+=e},e.prototype.finishAttributeValue=function(){this.current(`StartTag`).attributes.push(this._currentAttribute)},e.prototype.reportSyntaxError=function(e){this.current().syntaxError=e},e})();var Rn={Append:1,TrustingAppend:2,Comment:3,Modifier:4,StrictModifier:5,Block:6,StrictBlock:7,Component:8,OpenElement:10,OpenElementWithSplat:11,FlushElement:12,CloseElement:13,StaticAttr:14,DynamicAttr:15,ComponentAttr:16,AttrSplat:17,Yield:18,DynamicArg:20,StaticArg:21,TrustingDynamicAttr:22,TrustingComponentAttr:23,StaticComponentAttr:24,Debugger:26,Undefined:27,Call:28,Concat:29,GetSymbol:30,GetLexicalSymbol:32,GetStrictKeyword:31,GetFreeAsComponentOrHelperHead:35,GetFreeAsHelperHead:37,GetFreeAsModifierHead:38,GetFreeAsComponentHead:39,InElement:40,If:41,Each:42,Let:44,WithDynamicVars:45,InvokeComponent:46,HasBlock:48,HasBlockParams:49,Curry:50,Not:51,IfInline:52,GetDynamicVar:53,Log:54};function zn(e){return function(t){return Array.isArray(t)&&t[0]===e}}zn(Rn.FlushElement),zn(Rn.GetSymbol);var Bn=!1,Vn=/["\x26\xa0]/u;new RegExp(Vn.source,`gu`);var Hn=/[&<>\xa0]/u;new RegExp(Hn.source,`gu`);var Un=new Set([`area`,`base`,`br`,`col`,`command`,`embed`,`hr`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`]);function Wn(e){var t;return Un.has(e.toLowerCase())&&(t=e[0])?.toLowerCase()===e[0]}function Gn(e){return!!e&&e.length>0}function Kn(e){return e.length===0?void 0:e[e.length-1]}function qn(e){return e.length===0?void 0:e[0]}var H=Object.freeze({line:1,column:0}),Jn=Object.freeze({source:`(synthetic)`,start:H,end:H}),Yn=Object.freeze({source:`(nonexistent)`,start:H,end:H}),U=Object.freeze({source:`(broken)`,start:H,end:H}),Xn=class{constructor(e){this._whens=e}first(e){for(let t of this._whens){let n=t.match(e);if(Gn(n))return n[0]}return null}},Zn=class{get(e,t){let n=this._map.get(e);return n||(n=t(),this._map.set(e,n),n)}add(e,t){this._map.set(e,t)}match(e){let t=function(e){switch(e){case`Broken`:case`InternalsSynthetic`:case`NonExistent`:return`IS_INVISIBLE`;default:return e}}(e),n=[],r=this._map.get(t),i=this._map.get(`MATCH_ANY`);return r&&n.push(r),i&&n.push(i),n}constructor(){this._map=new Map}};function Qn(e){return e(new $n).validate()}var $n=class{validate(){return(e,t)=>this.matchFor(e.kind,t.kind)(e,t)}matchFor(e,t){let n=this._whens.match(e);return Gn(n),new Xn(n).first(t)}when(e,t,n){return this._whens.get(e,()=>new Zn).add(t,n),this}constructor(){this._whens=new Zn}},er=class e{static synthetic(t){let n=W.synthetic(t);return new e({loc:n,chars:t})}static load(t,n){return new e({loc:W.load(t,n[1]),chars:n[0]})}constructor(e){this.loc=e.loc,this.chars=e.chars}getString(){return this.chars}serialize(){return[this.chars,this.loc.serialize()]}},W=class e{static get NON_EXISTENT(){return new q(`NonExistent`,Yn).wrap()}static load(t,n){return typeof n==`number`?e.forCharPositions(t,n,n):typeof n==`string`?e.synthetic(n):Array.isArray(n)?e.forCharPositions(t,n[0],n[1]):n===`NonExistent`?e.NON_EXISTENT:n===`Broken`?e.broken(U):void Zt(n)}static forHbsLoc(e,t){let n=new or(e,t.start),r=new or(e,t.end);return new rr(e,{start:n,end:r},t).wrap()}static forCharPositions(e,t,n){let r=new ar(e,t),i=new ar(e,n);return new nr(e,{start:r,end:i}).wrap()}static synthetic(e){return new q(`InternalsSynthetic`,Yn,e).wrap()}static broken(e=U){return new q(`Broken`,e).wrap()}constructor(e){var t;this.data=e,this.isInvisible=(t=e.kind)!==`CharPosition`&&t!==`HbsPosition`}getStart(){return this.data.getStart().wrap()}getEnd(){return this.data.getEnd().wrap()}get loc(){let e=this.data.toHbsSpan();return e===null?U:e.toHbsLoc()}get module(){return this.data.getModule()}get startPosition(){return this.loc.start}get endPosition(){return this.loc.end}toJSON(){return this.loc}withStart(e){return J(e.data,this.data.getEnd())}withEnd(e){return J(this.data.getStart(),e.data)}asString(){return this.data.asString()}toSlice(e){let t=this.data.asString();return JSON.stringify(t),JSON.stringify(e),new er({loc:this,chars:e||t})}get start(){return this.loc.start}set start(e){this.data.locDidUpdate({start:e})}get end(){return this.loc.end}set end(e){this.data.locDidUpdate({end:e})}get source(){return this.module}collapse(e){switch(e){case`start`:return this.getStart().collapsed();case`end`:return this.getEnd().collapsed()}}extend(e){return J(this.data.getStart(),e.data.getEnd())}serialize(){return this.data.serialize()}slice({skipStart:e=0,skipEnd:t=0}){return J(this.getStart().move(e).data,this.getEnd().move(-t).data)}sliceStartChars({skipStart:e=0,chars:t}){return J(this.getStart().move(e).data,this.getStart().move(e+t).data)}sliceEndChars({skipEnd:e=0,chars:t}){return J(this.getEnd().move(e-t).data,this.getStart().move(-e).data)}},tr,nr=class{constructor(e,t){a(this,tr),this.source=e,this.charPositions=t,this.kind=`CharPosition`,o(this,tr,null)}wrap(){return new W(this)}asString(){return this.source.slice(this.charPositions.start.charPos,this.charPositions.end.charPos)}getModule(){return this.source.module}getStart(){return this.charPositions.start}getEnd(){return this.charPositions.end}locDidUpdate(){}toHbsSpan(){let e=i(this,tr);if(e===null){let t=this.charPositions.start.toHbsPos(),n=this.charPositions.end.toHbsPos();e=o(this,tr,t===null||n===null?Y:new rr(this.source,{start:t,end:n}))}return e===Y?null:e}serialize(){let{start:{charPos:e},end:{charPos:t}}=this.charPositions;return e===t?e:[e,t]}toCharPosSpan(){return this}};tr=new WeakMap;var G,K,rr=class{constructor(e,t,n=null){a(this,G),a(this,K),this.source=e,this.hbsPositions=t,this.kind=`HbsPosition`,o(this,G,null),o(this,K,n)}serialize(){let e=this.toCharPosSpan();return e===null?`Broken`:e.wrap().serialize()}wrap(){return new W(this)}updateProvided(e,t){i(this,K)&&(i(this,K)[t]=e),o(this,G,null),o(this,K,{start:e,end:e})}locDidUpdate({start:e,end:t}){e!==void 0&&(this.updateProvided(e,`start`),this.hbsPositions.start=new or(this.source,e,null)),t!==void 0&&(this.updateProvided(t,`end`),this.hbsPositions.end=new or(this.source,t,null))}asString(){let e=this.toCharPosSpan();return e===null?``:e.asString()}getModule(){return this.source.module}getStart(){return this.hbsPositions.start}getEnd(){return this.hbsPositions.end}toHbsLoc(){return{start:this.hbsPositions.start.hbsPos,end:this.hbsPositions.end.hbsPos}}toHbsSpan(){return this}toCharPosSpan(){let e=i(this,G);if(e===null){let t=this.hbsPositions.start.toCharPos(),n=this.hbsPositions.end.toCharPos();if(!t||!n)return e=o(this,G,Y),null;e=o(this,G,new nr(this.source,{start:t,end:n}))}return e===Y?null:e}};G=new WeakMap,K=new WeakMap;var q=class{constructor(e,t,n=null){this.kind=e,this.loc=t,this.string=n}serialize(){switch(this.kind){case`Broken`:case`NonExistent`:return this.kind;case`InternalsSynthetic`:return this.string||``}}wrap(){return new W(this)}asString(){return this.string||``}locDidUpdate({start:e,end:t}){e!==void 0&&(this.loc.start=e),t!==void 0&&(this.loc.end=t)}getModule(){return`an unknown module`}getStart(){return new sr(this.kind,this.loc.start)}getEnd(){return new sr(this.kind,this.loc.end)}toCharPosSpan(){return this}toHbsSpan(){return null}toHbsLoc(){return U}},J=Qn(e=>e.when(`HbsPosition`,`HbsPosition`,(e,t)=>new rr(e.source,{start:e,end:t}).wrap()).when(`CharPosition`,`CharPosition`,(e,t)=>new nr(e.source,{start:e,end:t}).wrap()).when(`CharPosition`,`HbsPosition`,(e,t)=>{let n=t.toCharPos();return n===null?new q(`Broken`,U).wrap():J(e,n)}).when(`HbsPosition`,`CharPosition`,(e,t)=>{let n=e.toCharPos();return n===null?new q(`Broken`,U).wrap():J(n,t)}).when(`IS_INVISIBLE`,`MATCH_ANY`,e=>new q(e.kind,U).wrap()).when(`MATCH_ANY`,`IS_INVISIBLE`,(e,t)=>new q(t.kind,U).wrap())),Y=`BROKEN`,ir=class e{static forHbsPos(e,t){return new or(e,t,null).wrap()}static broken(e=H){return new sr(`Broken`,e).wrap()}constructor(e){this.data=e}get offset(){let e=this.data.toCharPos();return e===null?null:e.offset}eql(e){return cr(this.data,e.data)}until(e){return J(this.data,e.data)}move(t){let n=this.data.toCharPos();if(n===null)return e.broken();{let r=n.offset+t;return n.source.validate(r)?new ar(n.source,r).wrap():e.broken()}}collapsed(){return J(this.data,this.data)}toJSON(){return this.data.toJSON()}},ar=class{constructor(e,t){this.source=e,this.charPos=t,this.kind=`CharPosition`,this._locPos=null}toCharPos(){return this}toJSON(){let e=this.toHbsPos();return e===null?H:e.toJSON()}wrap(){return new ir(this)}get offset(){return this.charPos}toHbsPos(){let e=this._locPos;if(e===null){let t=this.source.hbsPosFor(this.charPos);this._locPos=e=t===null?Y:new or(this.source,t,this.charPos)}return e===Y?null:e}},or=class{constructor(e,t,n=null){this.source=e,this.hbsPos=t,this.kind=`HbsPosition`,this._charPos=n===null?null:new ar(e,n)}toCharPos(){let e=this._charPos;if(e===null){let t=this.source.charPosFor(this.hbsPos);this._charPos=e=t===null?Y:new ar(this.source,t)}return e===Y?null:e}toJSON(){return this.hbsPos}wrap(){return new ir(this)}toHbsPos(){return this}},sr=class{constructor(e,t){this.kind=e,this.pos=t}toCharPos(){return null}toJSON(){return this.pos}wrap(){return new ir(this)}get offset(){return null}},cr=Qn(e=>e.when(`HbsPosition`,`HbsPosition`,({hbsPos:e},{hbsPos:t})=>e.column===t.column&&e.line===t.line).when(`CharPosition`,`CharPosition`,({charPos:e},{charPos:t})=>e===t).when(`CharPosition`,`HbsPosition`,({offset:e},t)=>{var n;return e===(n=t.toCharPos())?.offset}).when(`HbsPosition`,`CharPosition`,(e,{offset:t})=>{var n;return(n=e.toCharPos())?.offset===t}).when(`MATCH_ANY`,`MATCH_ANY`,()=>!1)),lr=class e{static from(t,n={}){var r;return new e(t,(r=n.meta)?.moduleName)}constructor(e,t=`an unknown module`){this.source=e,this.module=t}validate(e){return e>=0&&e<=this.source.length}slice(e,t){return this.source.slice(e,t)}offsetFor(e,t){return ir.forHbsPos(this,{line:e,column:t})}spanFor({start:e,end:t}){return W.forHbsLoc(this,{start:{line:e.line,column:e.column},end:{line:t.line,column:t.column}})}hbsPosFor(e){let t=0,n=0;if(e>this.source.length)return null;for(;;){let r=this.source.indexOf(`
16
+ `,n);if(e<=r||r===-1)return{line:t+1,column:e-n};t+=1,n=r+1}}charPosFor(e){let{line:t,column:n}=e,r=this.source.length,i=0,a=0;for(;a<r;){let e=this.source.indexOf(`
17
+ `,a);if(e===-1&&(e=this.source.length),i===t-1){if(a+n>e)return e;if(Bn){let e=this.hbsPosFor(a+n);e.line,e.column}return a+n}if(e===-1)return 0;i+=1,a=e+1}return r}};function X(e,t){let{module:n,loc:r}=t,{line:i,column:a}=r.start,o=t.asString(),s=o?`
18
+
19
+ |
20
+ | ${o.split(`
21
+ `).join(`
22
+ | `)}
23
+ |
24
+
25
+ `:``,c=Error(`${e}: ${s}(error occurred in '${n}' @ line ${i} : column ${a})`);return c.name=`SyntaxError`,c.location=t,c.code=o,c}var ur={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`]},dr=function(){function e(e,t,n,r){let i=Error.call(this,e);this.key=r,this.message=e,this.node=t,this.parent=n,i.stack&&(this.stack=i.stack)}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}();function fr(e,t,n){return new dr(`Cannot remove a node unless it is part of an array`,e,t,n)}function pr(e,t,n){return new dr(`Cannot replace a node with multiple nodes unless it is part of an array`,e,t,n)}function mr(e,t){return new dr(`Replacing and removing in key handlers is not yet supported.`,e,null,t)}var hr=class{constructor(e,t=null,n=null){this.node=e,this.parent=t,this.parentKey=n}get parentNode(){return this.parent?this.parent.node:null}parents(){return{[Symbol.iterator]:()=>new gr(this)}}},gr=class{constructor(e){this.path=e}next(){return this.path.parent?(this.path=this.path.parent,{done:!1,value:this.path}):{done:!0,value:null}}};function _r(e){return typeof e==`function`?e:e.enter}function vr(e){return typeof e==`function`?void 0:e.exit}function yr(e,t){let n,r,i,{node:a,parent:o,parentKey:s}=t,c=function(e,t){if(e.Program&&(t===`Template`&&!e.Template||t===`Block`&&!e.Block))return e.Program;let n=e[t];return n===void 0?e.All:n}(e,a.type);if(c!==void 0&&(n=_r(c),r=vr(c)),n!==void 0&&(i=n(a,t)),i!=null){if(JSON.stringify(a)!==JSON.stringify(i))return Array.isArray(i)?(Sr(e,i,o,s),i):yr(e,new hr(i,o,s))||i;i=void 0}if(i===void 0){let n=ur[a.type];for(let r=0;r<n.length;r++)xr(e,c,t,n[r]);r!==void 0&&(i=r(a,t))}return i}function br(e,t,n){e[t]=n}function xr(e,t,n,r){let i,a,{node:o}=n,s=function(e,t){return e[t]}(o,r);if(s){if(t!==void 0){let e=function(e,t){let n=typeof e==`function`?void 0:e.keys;if(n===void 0)return;let r=n[t];return r===void 0?n.All:r}(t,r);e!==void 0&&(i=_r(e),a=vr(e))}if(i!==void 0&&i(o,r)!==void 0)throw mr(o,r);if(Array.isArray(s))Sr(e,s,n,r);else{let t=yr(e,new hr(s,n,r));t!==void 0&&function(e,t,n,r){if(r===null)throw fr(n,e,t);if(Array.isArray(r)){if(r.length!==1)throw r.length===0?fr(n,e,t):pr(n,e,t);br(e,t,r[0])}else br(e,t,r)}(o,r,s,t)}if(a!==void 0&&a(o,r)!==void 0)throw mr(o,r)}}function Sr(e,t,n,r){for(let i=0;i<t.length;i++){let a=t[i],o=yr(e,new hr(a,n,r));o!==void 0&&(i+=Cr(t,i,o)-1)}}function Cr(e,t,n){return n===null?(e.splice(t,1),0):Array.isArray(n)?(e.splice(t,1,...n),n.length):(e.splice(t,1,n),1)}function wr(e,t){yr(t,new hr(e))}function Tr(e,t){(function(e){switch(e.type){case`Block`:case`Template`:return e.body;case`ElementNode`:return e.children}})(e).push(t)}function Er(e){return e.type===`StringLiteral`||e.type===`BooleanLiteral`||e.type===`NumberLiteral`||e.type===`NullLiteral`||e.type===`UndefinedLiteral`}var Dr;function Or(){return Dr||=new lr(``,`(synthetic)`),Dr}function kr(e,t){return $.var({name:e,loc:Q(t||null)})}function Z(e,t){let n=Q(t||null);if(typeof e!=`string`){if(`type`in e)return e;{e.head.indexOf(`.`);let{head:r,tail:i}=e;return $.path({head:$.head({original:r,loc:n.sliceStartChars({chars:r.length})}),tail:i,loc:Q(t||null)})}}let{head:r,tail:i}=function(e,t){let[n,...r]=e.split(`.`),i=$.head({original:n,loc:Q(t||null)});return $.path({head:i,tail:r,loc:Q(t||null)})}(e,n);return $.path({head:r,tail:i,loc:n})}function Ar(e,t,n){return $.literal({type:e,value:t,loc:Q(n||null)})}function jr(e=[],t){return $.hash({pairs:e,loc:Q(t||null)})}function Mr(e){return e.map(e=>typeof e==`string`?$.var({name:e,loc:W.synthetic(e)}):e)}function Nr(e=[],t=[],n=!1,r){return $.blockItself({body:e,params:Mr(t),chained:n,loc:Q(r||null)})}function Pr(e=[],t=[],n){return $.template({body:e,blockParams:t,loc:Q(n||null)})}function Q(...e){if(e.length===1){let t=e[0];return t&&typeof t==`object`?W.forHbsLoc(Or(),t):W.forHbsLoc(Or(),Jn)}{let[t,n,r,i,a]=e,o=a?new lr(``,a):Or();return W.forHbsLoc(o,{start:{line:t,column:n},end:{line:r||t,column:i||n}})}}var Fr={mustache:function(e,t=[],n=jr([]),r=!1,i,a){return $.mustache({path:Z(e),params:t,hash:n,trusting:r,strip:a,loc:Q(i||null)})},block:function(e,t,n,r,i=null,a,o,s,c){let l,u=null;return l=r.type===`Template`?$.blockItself({params:Mr(r.blockParams),body:r.body,loc:r.loc}):r,i?.type===`Template`?(i.blockParams.length,u=$.blockItself({params:[],body:i.body,loc:i.loc})):u=i,$.block({path:Z(e),params:t||[],hash:n||jr([]),defaultBlock:l,elseBlock:u,loc:Q(a||null),openStrip:o,inverseStrip:s,closeStrip:c})},comment:function(e,t){return $.comment({value:e,loc:Q(t||null)})},mustacheComment:function(e,t){return $.mustacheComment({value:e,loc:Q(t||null)})},element:function(e,t={}){let n,r,{attrs:i,blockParams:a,modifiers:o,comments:s,children:c,openTag:l,closeTag:u,loc:d}=t;typeof e==`string`?e.endsWith(`/`)?(n=Z(e.slice(0,-1)),r=!0):n=Z(e):`type`in e?(e.type,e.type,n=e):`path`in e?(e.path.type,e.path.type,n=e.path,r=e.selfClosing):(n=Z(e.name),r=e.selfClosing);let f=a?.map(e=>typeof e==`string`?kr(e):e),p=null;return u?p=Q(u):u===void 0&&(p=r||Wn(n.original)?null:Q(null)),$.element({path:n,selfClosing:r||!1,attributes:i||[],params:f||[],modifiers:o||[],comments:s||[],children:c||[],openTag:Q(l||null),closeTag:p,loc:Q(d||null)})},elementModifier:function(e,t,n,r){return $.elementModifier({path:Z(e),params:t||[],hash:n||jr([]),loc:Q(r||null)})},attr:function(e,t,n){return $.attr({name:e,value:t,loc:Q(n||null)})},text:function(e=``,t){return $.text({chars:e,loc:Q(t||null)})},sexpr:function(e,t=[],n=jr([]),r){return $.sexpr({path:Z(e),params:t,hash:n,loc:Q(r||null)})},concat:function(e,t){if(!Gn(e))throw Error(`b.concat requires at least one part`);return $.concat({parts:e,loc:Q(t||null)})},hash:jr,pair:function(e,t,n){return $.pair({key:e,value:t,loc:Q(n||null)})},literal:Ar,program:function(e,t,n){return t&&t.length?Nr(e,t,!1,n):Pr(e,[],n)},blockItself:Nr,template:Pr,loc:Q,pos:function(e,t){return $.pos({line:e,column:t})},path:Z,fullPath:function(e,t=[],n){return $.path({head:e,tail:t,loc:Q(n||null)})},head:function(e,t){return $.head({original:e,loc:Q(t||null)})},at:function(e,t){return $.atName({name:e,loc:Q(t||null)})},var:kr,this:function(e){return $.this({loc:Q(e||null)})},string:Ir(`StringLiteral`),boolean:Ir(`BooleanLiteral`),number:Ir(`NumberLiteral`),undefined:()=>Ar(`UndefinedLiteral`,void 0),null:()=>Ar(`NullLiteral`,null)};function Ir(e){return function(t,n){return Ar(e,t,n)}}var Lr={close:!1,open:!1},$=new class{pos({line:e,column:t}){return{line:e,column:t}}blockItself({body:e,params:t,chained:n=!1,loc:r}){return{type:`Block`,body:e,params:t,get blockParams(){return this.params.map(e=>e.name)},set blockParams(e){this.params=e.map(e=>$.var({name:e,loc:W.synthetic(e)}))},chained:n,loc:r}}template({body:e,blockParams:t,loc:n}){return{type:`Template`,body:e,blockParams:t,loc:n}}mustache({path:e,params:t,hash:n,trusting:r,loc:i,strip:a=Lr}){return function({path:e,params:t,hash:n,trusting:r,strip:i,loc:a}){let o={type:`MustacheStatement`,path:e,params:t,hash:n,trusting:r,strip:i,loc:a};return Object.defineProperty(o,`escaped`,{enumerable:!1,get(){return!this.trusting},set(e){this.trusting=!e}}),o}({path:e,params:t,hash:n,trusting:r,strip:a,loc:i})}block({path:e,params:t,hash:n,defaultBlock:r,elseBlock:i=null,loc:a,openStrip:o=Lr,inverseStrip:s=Lr,closeStrip:c=Lr}){return{type:`BlockStatement`,path:e,params:t,hash:n,program:r,inverse:i,loc:a,openStrip:o,inverseStrip:s,closeStrip:c}}comment({value:e,loc:t}){return{type:`CommentStatement`,value:e,loc:t}}mustacheComment({value:e,loc:t}){return{type:`MustacheCommentStatement`,value:e,loc:t}}concat({parts:e,loc:t}){return{type:`ConcatStatement`,parts:e,loc:t}}element({path:e,selfClosing:t,attributes:n,modifiers:r,params:i,comments:a,children:o,openTag:s,closeTag:c,loc:l}){let u=t;return{type:`ElementNode`,path:e,attributes:n,modifiers:r,params:i,comments:a,children:o,openTag:s,closeTag:c,loc:l,get tag(){return this.path.original},set tag(e){this.path.original=e},get blockParams(){return this.params.map(e=>e.name)},set blockParams(e){this.params=e.map(e=>$.var({name:e,loc:W.synthetic(e)}))},get selfClosing(){return u},set selfClosing(e){u=e,this.closeTag=e?null:W.synthetic(`</${this.tag}>`)}}}elementModifier({path:e,params:t,hash:n,loc:r}){return{type:`ElementModifierStatement`,path:e,params:t,hash:n,loc:r}}attr({name:e,value:t,loc:n}){return{type:`AttrNode`,name:e,value:t,loc:n}}text({chars:e,loc:t}){return{type:`TextNode`,chars:e,loc:t}}sexpr({path:e,params:t,hash:n,loc:r}){return{type:`SubExpression`,path:e,params:t,hash:n,loc:r}}path({head:e,tail:t,loc:n}){return function({head:e,tail:t,loc:n}){let r={type:`PathExpression`,head:e,tail:t,get original(){return[this.head.original,...this.tail].join(`.`)},set original(e){let[t,...n]=e.split(`.`);this.head=Fr.head(t,this.head.loc),this.tail=n},loc:n};return Object.defineProperty(r,`parts`,{enumerable:!1,get(){let e=this.original.split(`.`);return e[0]===`this`?e.shift():e[0].startsWith(`@`)&&(e[0]=e[0].slice(1)),Object.freeze(e)},set(e){var t;let n=[...e];n[0]===`this`||(t=n[0])!=null&&t.startsWith(`@`)||(this.head.type===`ThisHead`?n.unshift(`this`):this.head.type===`AtHead`&&(n[0]=`@${n[0]}`)),this.original=n.join(`.`)}}),Object.defineProperty(r,`this`,{enumerable:!1,get(){return this.head.type===`ThisHead`}}),Object.defineProperty(r,`data`,{enumerable:!1,get(){return this.head.type===`AtHead`}}),r}({head:e,tail:t,loc:n})}head({original:e,loc:t}){return e===`this`?this.this({loc:t}):e[0]===`@`?this.atName({name:e,loc:t}):this.var({name:e,loc:t})}this({loc:e}){return{type:`ThisHead`,get original(){return`this`},loc:e}}atName({name:e,loc:t}){let n=``,r={type:`AtHead`,get name(){return n},set name(e){e[0],e.indexOf(`.`),n=e},get original(){return this.name},set original(e){this.name=e},loc:t};return r.name=e,r}var({name:e,loc:t}){let n=``,r={type:`VarHead`,get name(){return n},set name(e){e[0],e.indexOf(`.`),n=e},get original(){return this.name},set original(e){this.name=e},loc:t};return r.name=e,r}hash({pairs:e,loc:t}){return{type:`Hash`,pairs:e,loc:t}}pair({key:e,value:t,loc:n}){return{type:`HashPair`,key:e,value:t,loc:n}}literal({type:e,value:t,loc:n}){return function({type:e,value:t,loc:n}){let r={type:e,value:t,loc:n};return Object.defineProperty(r,`original`,{enumerable:!1,get(){return this.value},set(e){this.value=e}}),r}({type:e,value:t,loc:n})}},Rr=class{constructor(e,t=new jn(Dn),n=`precompile`){this.elementStack=[],this.currentAttribute=null,this.currentNode=null,this.source=e,this.lines=e.source.split(/\r\n?|\n/u),this.tokenizer=new Ln(this,t,n)}offset(){let{line:e,column:t}=this.tokenizer;return this.source.offsetFor(e,t)}pos({line:e,column:t}){return this.source.offsetFor(e,t)}finish(e){return Yt({},e,{loc:e.start.until(this.offset())})}get currentAttr(){return this.currentAttribute}get currentTag(){let e=this.currentNode;return e&&(e.type===`StartTag`||e.type),e}get currentStartTag(){let e=this.currentNode;return e&&e.type,e}get currentEndTag(){let e=this.currentNode;return e&&e.type,e}get currentComment(){let e=this.currentNode;return e&&e.type,e}get currentData(){let e=this.currentNode;return e&&e.type,e}acceptNode(e){return this[e.type](e)}currentElement(){return Kn(this.elementStack)}sourceForNode(e,t){let n,r,i,a=e.loc.start.line-1,o=a-1,s=e.loc.start.column,c=[];for(t?(r=t.loc.end.line-1,i=t.loc.end.column):(r=e.loc.end.line-1,i=e.loc.end.column);o<r;)o++,n=this.lines[o],o===a?a===r?c.push(n.slice(s,i)):c.push(n.slice(s)):o===r?c.push(n.slice(0,i)):c.push(n);return c.join(`
26
+ `)}},zr=class extends Rr{parse(e,t){var n;e.loc;let r=$.template({body:[],blockParams:t,loc:this.source.spanFor(e.loc)}),i=this.parseProgram(r,e);return(n=this.pendingError)==null||n.eof(i.loc.getEnd()),i}Program(e,t){e.loc;let n=$.blockItself({body:[],params:t,chained:e.chained,loc:this.source.spanFor(e.loc)});return this.parseProgram(n,e)}parseProgram(e,t){if(t.body.length===0)return e;let n;try{this.elementStack.push(e);for(let e of t.body)this.acceptNode(e)}finally{n=this.elementStack.pop()}if(e!==n){if(n?.type===`ElementNode`)throw X(`Unclosed element \`${n.tag}\``,n.loc);e.type}return e}BlockStatement(e){var t;if(this.tokenizer.state===`comment`)return e.loc,void this.appendToCommentData(this.sourceForNode(e));if(this.tokenizer.state!==`data`&&this.tokenizer.state!==`beforeData`)throw X(`A block may only be used inside an HTML element or another block.`,this.source.spanFor(e.loc));let{path:n,params:r,hash:i}=Br(this,e),a=this.source.spanFor(e.loc),o,s=[];if((t=e.program.blockParams)!=null&&t.length){let t=i.loc.collapse(`end`);t=e.program.loc?t.withEnd(this.source.spanFor(e.program.loc).getStart()):e.program.body[0]?t.withEnd(this.source.spanFor(e.program.body[0].loc).getStart()):t.withEnd(a.getEnd()),o=Hr(this.source,e,t);let n=t.asString(),r=n.indexOf(`|`)+1,c=n.indexOf(`|`,r);for(let i of e.program.blockParams){let e,a;e=r>=c?-1:n.indexOf(i,r),e===-1||e+i.length>c?(r=c,a=this.source.spanFor(Yn)):(r=e,a=t.sliceStartChars({skipStart:r,chars:i.length}),r+=i.length),s.push($.var({name:i,loc:a}))}}else o=Hr(this.source,e,a);let c=this.Program(o.program,s),l=o.inverse?this.Program(o.inverse,[]):null,u=$.block({path:n,params:r,hash:i,defaultBlock:c,elseBlock:l,loc:this.source.spanFor(e.loc),openStrip:e.openStrip,inverseStrip:e.inverseStrip,closeStrip:e.closeStrip});Tr(this.currentElement(),u)}MustacheStatement(e){var t;(t=this.pendingError)==null||t.mustache(this.source.spanFor(e.loc));let{tokenizer:n}=this;if(n.state===`comment`)return void this.appendToCommentData(this.sourceForNode(e));let r,{escaped:i,loc:a,strip:o}=e;if(`original`in e.path&&e.path.original===`...attributes`)throw X(`Illegal use of ...attributes`,this.source.spanFor(e.loc));if(Er(e.path))r=$.mustache({path:this.acceptNode(e.path),params:[],hash:$.hash({pairs:[],loc:this.source.spanFor(e.path.loc).collapse(`end`)}),trusting:!i,loc:this.source.spanFor(a),strip:o});else{let{path:t,params:n,hash:s}=Br(this,e);r=$.mustache({path:t,params:n,hash:s,trusting:!i,loc:this.source.spanFor(a),strip:o})}switch(n.state){case`tagOpen`:case`tagName`:throw X(`Cannot use mustaches in an elements tagname`,r.loc);case`beforeAttributeName`:Vr(this.currentStartTag,r);break;case`attributeName`:case`afterAttributeName`:this.beginAttributeValue(!1),this.finishAttributeValue(),Vr(this.currentStartTag,r),n.transitionTo(`beforeAttributeName`);break;case`afterAttributeValueQuoted`:Vr(this.currentStartTag,r),n.transitionTo(`beforeAttributeName`);break;case`beforeAttributeValue`:this.beginAttributeValue(!1),this.appendDynamicAttributeValuePart(r),n.transitionTo(`attributeValueUnquoted`);break;case`attributeValueDoubleQuoted`:case`attributeValueSingleQuoted`:case`attributeValueUnquoted`:this.appendDynamicAttributeValuePart(r);break;default:Tr(this.currentElement(),r)}return r}appendDynamicAttributeValuePart(e){this.finalizeTextPart();let t=this.currentAttr;t.isDynamic=!0,t.parts.push(e)}finalizeTextPart(){let e=this.currentAttr.currentPart;e!==null&&(this.currentAttr.parts.push(e),this.startTextPart())}startTextPart(){this.currentAttr.currentPart=null}ContentStatement(e){(function(e,t){let n=t.loc.start.line,r=t.loc.start.column,i=function(e,t){if(t===``)return{lines:e.split(`
27
+ `).length-1,columns:0};let[n]=e.split(t),r=n.split(/\n/u),i=r.length-1;return{lines:i,columns:r[i].length}}(t.original,t.value);n+=i.lines,i.lines?r=i.columns:r+=i.columns,e.line=n,e.column=r})(this.tokenizer,e),this.tokenizer.tokenizePart(e.value),this.tokenizer.flushData()}CommentStatement(e){let{tokenizer:t}=this;if(t.state===`comment`)return this.appendToCommentData(this.sourceForNode(e)),null;let{value:n,loc:r}=e,i=$.mustacheComment({value:n,loc:this.source.spanFor(r)});switch(t.state){case`beforeAttributeName`:case`afterAttributeName`:this.currentStartTag.comments.push(i);break;case`beforeData`:case`data`:Tr(this.currentElement(),i);break;default:throw X(`Using a Handlebars comment when in the \`${t.state}\` state is not supported`,this.source.spanFor(e.loc))}return i}PartialStatement(e){throw X(`Handlebars partials are not supported`,this.source.spanFor(e.loc))}PartialBlockStatement(e){throw X(`Handlebars partial blocks are not supported`,this.source.spanFor(e.loc))}Decorator(e){throw X(`Handlebars decorators are not supported`,this.source.spanFor(e.loc))}DecoratorBlock(e){throw X(`Handlebars decorator blocks are not supported`,this.source.spanFor(e.loc))}SubExpression(e){let{path:t,params:n,hash:r}=Br(this,e);return $.sexpr({path:t,params:n,hash:r,loc:this.source.spanFor(e.loc)})}PathExpression(e){let{original:t}=e,n;if(t.indexOf(`/`)!==-1){if(t.slice(0,2)===`./`)throw X(`Using "./" is not supported in Glimmer and unnecessary`,this.source.spanFor(e.loc));if(t.slice(0,3)===`../`)throw X(`Changing context using "../" is not supported in Glimmer`,this.source.spanFor(e.loc));if(t.indexOf(`.`)!==-1)throw X(`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(t===`.`)throw X(`'.' is not a supported path in Glimmer; check for a path with a trailing '.'`,this.source.spanFor(e.loc));n=e.parts}let r,i=!1;if(/^this(?:\..+)?$/u.test(t)&&(i=!0),i)r=$.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 t=n.shift();if(t===void 0)throw X(`Attempted to parse a path expression, but it was not valid. Paths beginning with @ must start with a-z.`,this.source.spanFor(e.loc));r=$.atName({name:`@${t}`,loc:this.source.spanFor({start:e.loc.start,end:{line:e.loc.start.line,column:e.loc.start.column+t.length+1}})})}else{let t=n.shift();if(t===void 0)throw X(`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));r=$.var({name:t,loc:this.source.spanFor({start:e.loc.start,end:{line:e.loc.start.line,column:e.loc.start.column+t.length}})})}return $.path({head:r,tail:n,loc:this.source.spanFor(e.loc)})}Hash(e){let t=e.pairs.map(e=>$.pair({key:e.key,value:this.acceptNode(e.value),loc:this.source.spanFor(e.loc)}));return $.hash({pairs:t,loc:this.source.spanFor(e.loc)})}StringLiteral(e){return $.literal({type:`StringLiteral`,value:e.value,loc:this.source.spanFor(e.loc)})}BooleanLiteral(e){return $.literal({type:`BooleanLiteral`,value:e.value,loc:this.source.spanFor(e.loc)})}NumberLiteral(e){return $.literal({type:`NumberLiteral`,value:e.value,loc:this.source.spanFor(e.loc)})}UndefinedLiteral(e){return $.literal({type:`UndefinedLiteral`,value:void 0,loc:this.source.spanFor(e.loc)})}NullLiteral(e){return $.literal({type:`NullLiteral`,value:null,loc:this.source.spanFor(e.loc)})}constructor(...e){super(...e),this.pendingError=null}};function Br(e,t){let n;switch(t.path.type){case`PathExpression`:n=e.PathExpression(t.path);break;case`SubExpression`:n=e.SubExpression(t.path);break;case`StringLiteral`:case`UndefinedLiteral`:case`NullLiteral`:case`NumberLiteral`:case`BooleanLiteral`:{let n;throw n=t.path.type===`BooleanLiteral`?t.path.original.toString():t.path.type===`StringLiteral`?`"${t.path.original}"`:t.path.type===`NullLiteral`?`null`:t.path.type===`NumberLiteral`?t.path.value.toString():`undefined`,X(`${t.path.type} "${t.path.type===`StringLiteral`?t.path.original:n}" cannot be called as a sub-expression, replace (${n}) with ${n}`,e.source.spanFor(t.path.loc))}}let r=t.params.map(t=>e.acceptNode(t)),i=Gn(r)?Kn(r).loc:n.loc;return{path:n,params:r,hash:t.hash?e.Hash(t.hash):$.hash({pairs:[],loc:e.source.spanFor(i).collapse(`end`)})}}function Vr(e,t){let{path:n,params:r,hash:i,loc:a}=t;if(Er(n)){let r=`{{${function(e){return e.type===`UndefinedLiteral`?`undefined`:JSON.stringify(e.value)}(n)}}}`;throw X(`In <${e.name} ... ${r} ..., ${r} is not a valid modifier`,t.loc)}let o=$.elementModifier({path:n,params:r,hash:i,loc:a});e.modifiers.push(o)}function Hr(e,t,n){if(!t.program.loc){let r=E(!1,t.program.body,0),i=E(!1,t.program.body,-1);if(r&&i)t.program.loc={...r.loc,end:i.loc.end};else{let r=e.spanFor(t.loc);t.program.loc=n.withEnd(r.getEnd())}}let r=e.spanFor(t.program.loc).getEnd();return t.inverse&&!t.inverse.loc&&(t.inverse.loc=r.collapsed()),t}function Ur(e){return/[\t\n\f ]/u.test(e)}var Wr=class extends zr{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(){Tr(this.currentElement(),$.comment(this.finish(this.currentComment)))}beginData(){this.currentNode={type:`TextNode`,chars:``,start:this.offset()}}appendToData(e){this.currentData.chars+=e}finishData(){Tr(this.currentElement(),$.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 X(`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()}));(Un.has(e.name)||e.selfClosing)&&this.finishEndTag(!0)}else e.type,e.type,this.finishEndTag(!1)}finishStartTag(){let{name:e,nameStart:t,nameEnd:n}=this.currentStartTag,r=t.until(n),[i,...a]=e.split(`.`),o=$.path({head:$.head({original:i,loc:r.sliceStartChars({chars:i.length})}),tail:a,loc:r}),{attributes:s,modifiers:c,comments:l,params:u,selfClosing:d,loc:f}=this.finish(this.currentStartTag),p=$.element({path:o,selfClosing:d,attributes:s,modifiers:c,comments:l,params:u,children:[],openTag:f,closeTag:d?null:W.broken(),loc:f});this.elementStack.push(p)}finishEndTag(e){let{start:t}=this.currentTag,n=this.finish(this.currentTag),r=this.elementStack.pop();this.validateEndTag(n,r,e);let i=this.currentElement();e?r.closeTag=null:r.selfClosing?r.closeTag:r.closeTag=t.until(this.offset()),r.loc=r.loc.withEnd(this.offset()),Tr(i,$.element(r))}markTagAsSelfClosing(){let e=this.currentTag;if(e.type!==`StartTag`)throw X(`Invalid end tag: closing tag must not be self-closing`,this.source.spanFor({start:e.start.toJSON(),end:this.offset().toJSON()}));e.selfClosing=!0}appendToTagName(e){let t=this.currentTag;if(t.name+=e,t.type===`StartTag`){let e=this.offset();t.nameStart===null&&(t.nameEnd,t.nameStart=e.move(-1)),t.nameEnd=e}}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 t=this.currentAttr.parts,n=t[t.length-1],r=this.currentAttr.currentPart;if(r)r.chars+=e,r.loc=r.loc.withEnd(this.offset());else{let t=this.offset();t=e===`
28
+ `?n?n.loc.getEnd():this.currentAttr.valueSpan.getStart():t.move(-1),this.currentAttr.currentPart=$.text({chars:e,loc:t.collapsed()})}}finishAttributeValue(){this.finalizeTextPart();let e=this.currentTag,t=this.offset();if(e.type===`EndTag`)throw X(`Invalid end tag: closing tag must not have attributes`,this.source.spanFor({start:e.start.toJSON(),end:t.toJSON()}));let{name:n,parts:r,start:i,isQuoted:a,isDynamic:o,valueSpan:s}=this.currentAttr;if(n.startsWith(`|`)&&r.length===0&&!a&&!o)throw X("Invalid block parameters syntax: block parameters must be preceded by the `as` keyword",i.until(i.move(n.length)));let c=this.assembleAttributeValue(r,a,o,i.until(t));c.loc=s.withEnd(t);let l=$.attr({name:n,value:c,loc:i.until(t)});this.currentStartTag.attributes.push(l)}parsePossibleBlockParams(){let e=/[!"#%&'()*+./;<=>@[\\\]^`{|}~]/u;this.tokenizer.state;let t=this.currentStartTag,n=this.currentAttr,r={state:`PossibleAs`},i={PossibleAs:e=>{if(r.state,Ur(e))r={state:`BeforeStartPipe`},this.tokenizer.transitionTo(`afterAttributeName`),this.tokenizer.consume();else{if(e===`|`)throw X(`Invalid block parameters syntax: expecting at least one space character between "as" and "|"`,n.start.until(this.offset().move(1)));r={state:`Done`}}},BeforeStartPipe:e=>{r.state,Ur(e)?this.tokenizer.consume():e===`|`?(r={state:`BeforeBlockParamName`},this.tokenizer.transitionTo(`beforeAttributeName`),this.tokenizer.consume()):r={state:`Done`}},BeforeBlockParamName:e=>{if(r.state,Ur(e))this.tokenizer.consume();else if(e===``)r={state:`Done`},this.pendingError={mustache(e){throw X(`Invalid block parameters syntax: mustaches cannot be used inside parameters list`,e)},eof(e){throw X(`Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list`,n.start.until(e))}};else if(e===`|`){if(t.params.length===0)throw X(`Invalid block parameters syntax: empty parameters list, expecting at least one identifier`,n.start.until(this.offset().move(1)));r={state:`AfterEndPipe`},this.tokenizer.consume()}else{if(e===`>`||e===`/`)throw X(`Invalid block parameters syntax: incomplete parameters list, expecting "|" but the tag was closed prematurely`,n.start.until(this.offset().move(1)));r={state:`BlockParamName`,name:e,start:this.offset()},this.tokenizer.consume()}},BlockParamName:i=>{if(r.state,i===``)r={state:`Done`},this.pendingError={mustache(e){throw X(`Invalid block parameters syntax: mustaches cannot be used inside parameters list`,e)},eof(e){throw X(`Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list`,n.start.until(e))}};else if(i===`|`||Ur(i)){let n=r.start.until(this.offset());if(r.name===`this`||e.test(r.name))throw X(`Invalid block parameters syntax: invalid identifier name \`${r.name}\``,n);t.params.push($.var({name:r.name,loc:n})),r=i===`|`?{state:`AfterEndPipe`}:{state:`BeforeBlockParamName`},this.tokenizer.consume()}else{if(i===`>`||i===`/`)throw X(`Invalid block parameters syntax: expecting "|" but the tag was closed prematurely`,n.start.until(this.offset().move(1)));r.name+=i,this.tokenizer.consume()}},AfterEndPipe:e=>{r.state,Ur(e)?this.tokenizer.consume():e===``?(r={state:`Done`},this.pendingError={mustache(e){throw X(`Invalid block parameters syntax: modifiers cannot follow parameters list`,e)},eof(e){throw X(`Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list`,n.start.until(e))}}):e===`>`||e===`/`?r={state:`Done`}:(r={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:e=>{if(r.state,e===``||e===`/`||e===`>`||Ur(e))throw X(r.message,r.start.until(this.offset()));this.tokenizer.consume()},Done:()=>{}},a;do a=this.tokenizer.peek(),i[r.state](a);while(r.state!==`Done`&&a!==``);r.state}reportSyntaxError(e){throw X(e,this.offset().collapsed())}assembleConcatenatedValue(e){let t=qn(e),n=Kn(e);return $.concat({parts:e,loc:this.source.spanFor(t.loc).extend(this.source.spanFor(n.loc))})}validateEndTag(e,t,n){if(Un.has(e.name)&&!n)throw X(`<${e.name}> elements do not need end tags. You should remove it`,e.loc);if(t.type!==`ElementNode`)throw X(`Closing tag </${e.name}> without an open tag`,e.loc);if(t.tag!==e.name)throw X(`Closing tag </${e.name}> did not match last open tag <${t.tag}> (on line ${t.loc.startPosition.line})`,e.loc)}assembleAttributeValue(e,t,n,r){if(n){if(t)return this.assembleConcatenatedValue(e);{let[t,n]=e;if(n===void 0||n.type===`TextNode`&&n.chars===`/`)return t;throw X(`An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'`,r)}}return Gn(e)?e[0]:$.text({chars:``,loc:r})}constructor(...e){super(...e),this.tagOpenLine=0,this.tagOpenColumn=0}},Gr={},Kr=class extends jn{constructor(){super({})}parse(){}};function qr(e,t={}){var n,r,i;let a,o,s,c=t.mode||`precompile`;typeof e==`string`?(a=new lr(e,(n=t.meta)?.moduleName),o=c===`codemod`?Tn(e,t.parseOptions):En(e,t.parseOptions)):e instanceof lr?(a=e,o=c===`codemod`?Tn(e.source,t.parseOptions):En(e.source,t.parseOptions)):(a=new lr(``,(r=t.meta)?.moduleName),o=e),c===`codemod`&&(s=new Kr);let l=W.forCharPositions(a,0,a.source.length);o.loc={source:`(program)`,start:l.startPosition,end:l.endPosition};let u=new Wr(a,s,c).parse(o,t.locals??[]);if((i=t.plugins)!=null&&i.ast)for(let e of t.plugins.ast)wr(u,e(Yt({},t,{syntax:Gr},{plugins:void 0})).visitor);return u}var Jr={resolution:()=>Rn.GetStrictKeyword,serialize:()=>`Strict`,isAngleBracket:!1};({...Jr});function Yr(e,t){let n=SyntaxError(e+` (`+t.loc.start.line+`:`+t.loc.start.column+`)`);return Object.assign(n,t)}var Xr=Yr;function Zr(e){let t=e.children??e.body;if(t)for(let e=0;e<t.length-1;e++)t[e].type===`TextNode`&&t[e+1].type===`MustacheStatement`&&(t[e].chars=t[e].chars.replace(/\\$/u,`\\\\`))}var Qr=e=>{let{start:t,end:n}=e.loc;t.offset=e.loc.getStart().offset,n.offset=e.loc.getEnd().offset},$r=()=>({name:`glimmerPrettierParsePlugin`,visitor:{All(e){Qr(e),Zr(e)}}}),ei={mode:`codemod`,plugins:{ast:[$r]}};function ti(e){let t;try{t=qr(e,ei)}catch(e){let t=ri(e);if(t){let n=ni(e);throw Xr(n,{loc:t,cause:e})}throw e}return t}function ni(e){let{message:t}=e,n=t.split(`
29
+ `);return n.length>=4&&/^Parse error on line \d+:$/u.test(n[0])&&/^-*\^$/u.test(E(!1,n,-2))?E(!1,n,-1):n.length>=4&&/:\s?$/u.test(n[0])&&/^\(error occurred in '.*?' @ line \d+ : column \d+\)$/u.test(E(!1,n,-1))&&n[1]===``&&E(!1,n,-2)===``&&n.slice(2,-2).every(e=>e.startsWith(`|`))?n[0].trim().slice(0,-1):t}function ri(e){let{location:t,hash:n}=e;if(t){let{start:e,end:n}=t;return typeof n.line==`number`?t:{start:e}}if(n){let{loc:{last_line:e,last_column:t}}=n;return{start:{line:e,column:t+1}}}}var ii={parse:ti,astFormat:`glimmer`,locStart:Ge,locEnd:Ke},ai={glimmer:Wt},oi=s;export{oi as default,Gt as languages,Kt as parsers,ai as printers};
@@ -0,0 +1,29 @@
1
+ var e=Object.defineProperty,t=(t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})},n={};t(n,{languages:()=>Be,options:()=>Ue,parsers:()=>N,printers:()=>Pt});var r=(e,t,n,r)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,r):n.global?t.replace(n,r):t.split(n).join(r)},i=r,a=`indent`,o=`group`,s=`if-break`,c=`line`,l=`break-parent`,u=()=>{},d=u,f=u;function p(e){return d(e),{type:a,contents:e}}function m(e,t={}){return d(e),f(t.expandedStates,!0),{type:o,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function h(e,t=``,n={}){return d(e),t!==``&&d(t),{type:s,breakContents:e,flatContents:t,groupId:n.groupId}}var ee={type:l},te={type:c,hard:!0},g={type:c},_={type:c,soft:!0},v=[te,ee];function y(e,t){d(e),f(t);let n=[];for(let r=0;r<t.length;r++)r!==0&&n.push(e),n.push(t[r]);return n}function b(e){return(t,n,r)=>{let i=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:a}=t,o=n;for(;o>=0&&o<a;){let n=t.charAt(o);if(e instanceof RegExp){if(!e.test(n))return o}else if(!e.includes(n))return o;i?o--:o++}return o===-1||o===a?o:!1}}b(/\s/u);var x=b(` `),ne=b(`,; `),re=b(/[^\n\r]/u);function ie(e,t,n){let r=!!(n!=null&&n.backwards);if(t===!1)return!1;let i=e.charAt(t);if(r){if(e.charAt(t-1)===`\r`&&i===`
2
+ `)return t-2;if(i===`
3
+ `||i===`\r`||i===`\u2028`||i===`\u2029`)return t-1}else{if(i===`\r`&&e.charAt(t+1)===`
4
+ `)return t+2;if(i===`
5
+ `||i===`\r`||i===`\u2028`||i===`\u2029`)return t+1}return t}var S=ie;function ae(e,t,n={}){let r=x(e,n.backwards?t-1:t,n),i=S(e,r,n);return r!==i}var oe=ae;function se(e,t){if(t===!1)return!1;if(e.charAt(t)===`/`&&e.charAt(t+1)===`*`){for(let n=t+2;n<e.length;++n)if(e.charAt(n)===`*`&&e.charAt(n+1)===`/`)return n+2}return t}var ce=se;function le(e,t){return t===!1?!1:e.charAt(t)===`/`&&e.charAt(t+1)===`/`?re(e,t):t}var ue=le;function de(e,t){let n=null,r=t;for(;r!==n;)n=r,r=ne(e,r),r=ce(e,r),r=x(e,r);return r=ue(e,r),r=S(e,r),r!==!1&&oe(e,r)}var fe=de;function pe(e){return Array.isArray(e)&&e.length>0}var me=pe,he=class extends Error{name=`UnexpectedNodeError`;constructor(e,t,n=`type`){super(`Unexpected ${t} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},ge=he,C=null;function w(e){if(C!==null&&typeof C.property){let e=C;return C=w.prototype=null,e}return C=w.prototype=e??Object.create(null),new w}var _e=10;for(let e=0;e<=_e;e++)w();function ve(e){return w(e)}function ye(e,t=`type`){ve(e);function n(n){let r=n[t],i=e[r];if(!Array.isArray(i))throw Object.assign(Error(`Missing visitor keys for '${r}'.`),{node:n});return i}return n}var be=ye,xe=class{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return`Location`}toJSON(){return{start:this.start,end:this.end}}},T=class{constructor(e,t,n,r,i,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return`Token`}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},Se={Name:[],Document:[`definitions`],OperationDefinition:[`name`,`variableDefinitions`,`directives`,`selectionSet`],VariableDefinition:[`variable`,`type`,`defaultValue`,`directives`],Variable:[`name`],SelectionSet:[`selections`],Field:[`alias`,`name`,`arguments`,`directives`,`selectionSet`],Argument:[`name`,`value`],FragmentSpread:[`name`,`directives`],InlineFragment:[`typeCondition`,`directives`,`selectionSet`],FragmentDefinition:[`name`,`variableDefinitions`,`typeCondition`,`directives`,`selectionSet`],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:[`values`],ObjectValue:[`fields`],ObjectField:[`name`,`value`],Directive:[`name`,`arguments`],NamedType:[`name`],ListType:[`type`],NonNullType:[`type`],SchemaDefinition:[`description`,`directives`,`operationTypes`],OperationTypeDefinition:[`type`],ScalarTypeDefinition:[`description`,`name`,`directives`],ObjectTypeDefinition:[`description`,`name`,`interfaces`,`directives`,`fields`],FieldDefinition:[`description`,`name`,`arguments`,`type`,`directives`],InputValueDefinition:[`description`,`name`,`type`,`defaultValue`,`directives`],InterfaceTypeDefinition:[`description`,`name`,`interfaces`,`directives`,`fields`],UnionTypeDefinition:[`description`,`name`,`directives`,`types`],EnumTypeDefinition:[`description`,`name`,`directives`,`values`],EnumValueDefinition:[`description`,`name`,`directives`],InputObjectTypeDefinition:[`description`,`name`,`directives`,`fields`],DirectiveDefinition:[`description`,`name`,`arguments`,`locations`],SchemaExtension:[`directives`,`operationTypes`],ScalarTypeExtension:[`name`,`directives`],ObjectTypeExtension:[`name`,`interfaces`,`directives`,`fields`],InterfaceTypeExtension:[`name`,`interfaces`,`directives`,`fields`],UnionTypeExtension:[`name`,`directives`,`types`],EnumTypeExtension:[`name`,`directives`,`values`],InputObjectTypeExtension:[`name`,`directives`,`fields`]};new Set(Object.keys(Se));var E;(function(e){e.QUERY=`query`,e.MUTATION=`mutation`,e.SUBSCRIPTION=`subscription`})(E||={});var Ce=be(Se,`kind`),we=Ce;function Te(e){return e.loc.start}function D(e){return e.loc.end}var Ee=`format`,De=/^\s*#[^\S\n]*@(?:noformat|noprettier)\s*(?:\n|$)/u,Oe=/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/u;function ke(e){return Oe.test(e)}function Ae(e){return De.test(e)}function je(e){return`# @${Ee}
6
+
7
+ ${e}`}function Me(e,t,n){let{node:r}=e;if(!r.description)return``;let i=[n(`description`)];return r.kind===`InputValueDefinition`&&!r.description.block?i.push(g):i.push(v),i}var O=Me;function Ne(e,t,n){let{node:r}=e;switch(r.kind){case`Document`:return[...y(v,A(e,t,n,`definitions`)),v];case`OperationDefinition`:{let i=t.originalText[Te(r)]!==`{`,a=!!r.name;return[i?r.operation:``,i&&a?[` `,n(`name`)]:``,i&&!a&&me(r.variableDefinitions)?` `:``,j(e,n),k(e,n,r),!i&&!a?``:` `,n(`selectionSet`)]}case`FragmentDefinition`:return[`fragment `,n(`name`),j(e,n),` on `,n(`typeCondition`),k(e,n,r),` `,n(`selectionSet`)];case`SelectionSet`:return[`{`,p([v,y(v,A(e,t,n,`selections`))]),v,`}`];case`Field`:return m([r.alias?[n(`alias`),`: `]:``,n(`name`),r.arguments.length>0?m([`(`,p([_,y([h(``,`, `),_],A(e,t,n,`arguments`))]),_,`)`]):``,k(e,n,r),r.selectionSet?` `:``,n(`selectionSet`)]);case`Name`:return r.value;case`StringValue`:if(r.block){let e=i(!1,r.value,`"""`,String.raw`\"""`).split(`
8
+ `);return e.length===1&&(e[0]=e[0].trim()),e.every(e=>e===``)&&(e.length=0),y(v,[`"""`,...e,`"""`])}return[`"`,i(!1,i(!1,r.value,/["\\]/gu,String.raw`\$&`),`
9
+ `,String.raw`\n`),`"`];case`IntValue`:case`FloatValue`:case`EnumValue`:return r.value;case`BooleanValue`:return r.value?`true`:`false`;case`NullValue`:return`null`;case`Variable`:return[`$`,n(`name`)];case`ListValue`:return m([`[`,p([_,y([h(``,`, `),_],e.map(n,`values`))]),_,`]`]);case`ObjectValue`:{let i=t.bracketSpacing&&r.fields.length>0?` `:``;return m([`{`,i,p([_,y([h(``,`, `),_],e.map(n,`fields`))]),_,h(``,i),`}`])}case`ObjectField`:case`Argument`:return[n(`name`),`: `,n(`value`)];case`Directive`:return[`@`,n(`name`),r.arguments.length>0?m([`(`,p([_,y([h(``,`, `),_],A(e,t,n,`arguments`))]),_,`)`]):``];case`NamedType`:return n(`name`);case`VariableDefinition`:return[n(`variable`),`: `,n(`type`),r.defaultValue?[` = `,n(`defaultValue`)]:``,k(e,n,r)];case`ObjectTypeExtension`:case`ObjectTypeDefinition`:case`InputObjectTypeExtension`:case`InputObjectTypeDefinition`:case`InterfaceTypeExtension`:case`InterfaceTypeDefinition`:{let{kind:i}=r,a=[];return i.endsWith(`TypeDefinition`)?a.push(O(e,t,n)):a.push(`extend `),i.startsWith(`ObjectType`)?a.push(`type`):i.startsWith(`InputObjectType`)?a.push(`input`):a.push(`interface`),a.push(` `,n(`name`)),!i.startsWith(`InputObjectType`)&&r.interfaces.length>0&&a.push(` implements `,...Ie(e,t,n)),a.push(k(e,n,r)),r.fields.length>0&&a.push([` {`,p([v,y(v,A(e,t,n,`fields`))]),v,`}`]),a}case`FieldDefinition`:return[O(e,t,n),n(`name`),r.arguments.length>0?m([`(`,p([_,y([h(``,`, `),_],A(e,t,n,`arguments`))]),_,`)`]):``,`: `,n(`type`),k(e,n,r)];case`DirectiveDefinition`:return[O(e,t,n),`directive `,`@`,n(`name`),r.arguments.length>0?m([`(`,p([_,y([h(``,`, `),_],A(e,t,n,`arguments`))]),_,`)`]):``,r.repeatable?` repeatable`:``,` on `,...y(` | `,e.map(n,`locations`))];case`EnumTypeExtension`:case`EnumTypeDefinition`:return[O(e,t,n),r.kind===`EnumTypeExtension`?`extend `:``,`enum `,n(`name`),k(e,n,r),r.values.length>0?[` {`,p([v,y(v,A(e,t,n,`values`))]),v,`}`]:``];case`EnumValueDefinition`:return[O(e,t,n),n(`name`),k(e,n,r)];case`InputValueDefinition`:return[O(e,t,n),n(`name`),`: `,n(`type`),r.defaultValue?[` = `,n(`defaultValue`)]:``,k(e,n,r)];case`SchemaExtension`:return[`extend schema`,k(e,n,r),...r.operationTypes.length>0?[` {`,p([v,y(v,A(e,t,n,`operationTypes`))]),v,`}`]:[]];case`SchemaDefinition`:return[O(e,t,n),`schema`,k(e,n,r),` {`,r.operationTypes.length>0?p([v,y(v,A(e,t,n,`operationTypes`))]):``,v,`}`];case`OperationTypeDefinition`:return[r.operation,`: `,n(`type`)];case`FragmentSpread`:return[`...`,n(`name`),k(e,n,r)];case`InlineFragment`:return[`...`,r.typeCondition?[` on `,n(`typeCondition`)]:``,k(e,n,r),` `,n(`selectionSet`)];case`UnionTypeExtension`:case`UnionTypeDefinition`:return m([O(e,t,n),m([r.kind===`UnionTypeExtension`?`extend `:``,`union `,n(`name`),k(e,n,r),r.types.length>0?[` =`,h(``,` `),p([h([g,`| `]),y([g,`| `],e.map(n,`types`))])]:``])]);case`ScalarTypeExtension`:case`ScalarTypeDefinition`:return[O(e,t,n),r.kind===`ScalarTypeExtension`?`extend `:``,`scalar `,n(`name`),k(e,n,r)];case`NonNullType`:return[n(`type`),`!`];case`ListType`:return[`[`,n(`type`),`]`];default:throw new ge(r,`Graphql`,`kind`)}}function k(e,t,n){if(n.directives.length===0)return``;let r=y(g,e.map(t,`directives`));return n.kind===`FragmentDefinition`||n.kind===`OperationDefinition`?m([g,r]):[` `,m(p([_,r]))]}function A(e,t,n,r){return e.map(({isLast:e,node:r})=>{let i=n();return!e&&fe(t.originalText,D(r))?[i,v]:i},r)}function Pe(e){return e.kind!==`Comment`}function Fe(e){let t=e.node;if(t.kind===`Comment`)return`#`+t.value.trimEnd();throw Error(`Not a comment: `+JSON.stringify(t))}function Ie(e,t,n){let{node:r}=e,i=[],{interfaces:a}=r,o=e.map(n,`interfaces`);for(let e=0;e<a.length;e++){let n=a[e];i.push(o[e]);let r=a[e+1];if(r){let e=t.originalText.slice(n.loc.end,r.loc.start).includes(`#`);i.push(` &`,e?g:` `)}}return i}function j(e,t){let{node:n}=e;return me(n.variableDefinitions)?m([`(`,p([_,y([h(``,`, `),_],e.map(t,`variableDefinitions`))]),_,`)`]):``}function M(e,t){e.kind===`StringValue`&&e.block&&!e.value.includes(`
10
+ `)&&(t.value=e.value.trim())}M.ignoredProperties=new Set([`loc`,`comments`]);function Le(e){var t;let{node:n}=e;return(t=n?.comments)?.some(e=>e.value.trim()===`prettier-ignore`)}var Re={print:Ne,massageAstNode:M,hasPrettierIgnore:Le,insertPragma:je,printComment:Fe,canAttachComment:Pe,getVisitorKeys:we},ze=Re,Be=[{name:`GraphQL`,type:`data`,extensions:[`.graphql`,`.gql`,`.graphqls`],tmScope:`source.graphql`,aceMode:`text`,parsers:[`graphql`],vscodeLanguageIds:[`graphql`],linguistLanguageId:139}],Ve={bracketSpacing:{category:`Common`,type:`boolean`,default:!0,description:`Print spaces between brackets.`,oppositeDescription:`Do not print spaces between brackets.`},objectWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap object literals.`,choices:[{value:`preserve`,description:`Keep as multi-line, if there is a newline between the opening brace and first property.`},{value:`collapse`,description:`Fit to a single line when possible.`}]},singleQuote:{category:`Common`,type:`boolean`,default:!1,description:`Use single quotes instead of double quotes.`},proseWrap:{category:`Common`,type:`choice`,default:`preserve`,description:`How to wrap prose.`,choices:[{value:`always`,description:`Wrap prose if it exceeds the print width.`},{value:`never`,description:`Do not wrap prose.`},{value:`preserve`,description:`Wrap prose as-is.`}]},bracketSameLine:{category:`Common`,type:`boolean`,default:!1,description:`Put > of opening tags on the last line instead of on a new line.`},singleAttributePerLine:{category:`Common`,type:`boolean`,default:!1,description:`Enforce single attribute per line in HTML, Vue and JSX.`}},He={bracketSpacing:Ve.bracketSpacing},Ue=He,N={};t(N,{graphql:()=>Nt});function We(e){return typeof e==`object`&&!!e}function Ge(e,t){if(!e)throw Error(t??`Unexpected invariant triggered.`)}var Ke=/\r\n|[\n\r]/g;function P(e,t){let n=0,r=1;for(let i of e.body.matchAll(Ke)){if(typeof i.index==`number`||Ge(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function qe(e){return Je(e.source,P(e.source,e.start))}function Je(e,t){let n=e.locationOffset.column-1,r=``.padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,o=t.line+a,s=t.line===1?n:0,c=t.column+s,l=`${e.name}:${o}:${c}
11
+ `,u=r.split(/\r\n|[\n\r]/g),d=u[i];if(d.length>120){let e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<d.length;e+=80)n.push(d.slice(e,e+80));return l+Ye([[`${o} |`,n[0]],...n.slice(1,e+1).map(e=>[`|`,e]),[`|`,`^`.padStart(t)],[`|`,n[e+1]]])}return l+Ye([[`${o-1} |`,u[i-1]],[`${o} |`,d],[`|`,`^`.padStart(c)],[`${o+1} |`,u[i+1]]])}function Ye(e){let t=e.filter(([e,t])=>t!==void 0),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?` `+t:``)).join(`
12
+ `)}function Xe(e){let t=e[0];return t==null||`kind`in t||`length`in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var Ze=class e extends Error{constructor(t,...n){var r,i,a;let{nodes:o,source:s,positions:c,path:l,originalError:u,extensions:d}=Xe(n);super(t),this.name=`GraphQLError`,this.path=l??void 0,this.originalError=u??void 0,this.nodes=Qe(Array.isArray(o)?o:o?[o]:void 0);let f=Qe((r=this.nodes)?.map(e=>e.loc).filter(e=>e!=null));this.source=s??(f==null||(i=f[0])==null?void 0:i.source),this.positions=c??f?.map(e=>e.start),this.locations=c&&s?c.map(e=>P(s,e)):f?.map(e=>P(e.source,e.start));let p=We(u?.extensions)?u?.extensions:void 0;this.extensions=(a=d??p)??Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),u!=null&&u.stack?Object.defineProperty(this,`stack`,{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,`stack`,{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return`GraphQLError`}toString(){let e=this.message;if(this.nodes)for(let t of this.nodes)t.loc&&(e+=`
13
+
14
+ `+qe(t.loc));else if(this.source&&this.locations)for(let t of this.locations)e+=`
15
+
16
+ `+Je(this.source,t);return e}toJSON(){let e={message:this.message};return this.locations!=null&&(e.locations=this.locations),this.path!=null&&(e.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}};function Qe(e){return e===void 0||e.length===0?void 0:e}function F(e,t,n){return new Ze(`Syntax Error: ${n}`,{source:e,positions:[t]})}var I;(function(e){e.QUERY=`QUERY`,e.MUTATION=`MUTATION`,e.SUBSCRIPTION=`SUBSCRIPTION`,e.FIELD=`FIELD`,e.FRAGMENT_DEFINITION=`FRAGMENT_DEFINITION`,e.FRAGMENT_SPREAD=`FRAGMENT_SPREAD`,e.INLINE_FRAGMENT=`INLINE_FRAGMENT`,e.VARIABLE_DEFINITION=`VARIABLE_DEFINITION`,e.SCHEMA=`SCHEMA`,e.SCALAR=`SCALAR`,e.OBJECT=`OBJECT`,e.FIELD_DEFINITION=`FIELD_DEFINITION`,e.ARGUMENT_DEFINITION=`ARGUMENT_DEFINITION`,e.INTERFACE=`INTERFACE`,e.UNION=`UNION`,e.ENUM=`ENUM`,e.ENUM_VALUE=`ENUM_VALUE`,e.INPUT_OBJECT=`INPUT_OBJECT`,e.INPUT_FIELD_DEFINITION=`INPUT_FIELD_DEFINITION`})(I||={});var L;(function(e){e.NAME=`Name`,e.DOCUMENT=`Document`,e.OPERATION_DEFINITION=`OperationDefinition`,e.VARIABLE_DEFINITION=`VariableDefinition`,e.SELECTION_SET=`SelectionSet`,e.FIELD=`Field`,e.ARGUMENT=`Argument`,e.FRAGMENT_SPREAD=`FragmentSpread`,e.INLINE_FRAGMENT=`InlineFragment`,e.FRAGMENT_DEFINITION=`FragmentDefinition`,e.VARIABLE=`Variable`,e.INT=`IntValue`,e.FLOAT=`FloatValue`,e.STRING=`StringValue`,e.BOOLEAN=`BooleanValue`,e.NULL=`NullValue`,e.ENUM=`EnumValue`,e.LIST=`ListValue`,e.OBJECT=`ObjectValue`,e.OBJECT_FIELD=`ObjectField`,e.DIRECTIVE=`Directive`,e.NAMED_TYPE=`NamedType`,e.LIST_TYPE=`ListType`,e.NON_NULL_TYPE=`NonNullType`,e.SCHEMA_DEFINITION=`SchemaDefinition`,e.OPERATION_TYPE_DEFINITION=`OperationTypeDefinition`,e.SCALAR_TYPE_DEFINITION=`ScalarTypeDefinition`,e.OBJECT_TYPE_DEFINITION=`ObjectTypeDefinition`,e.FIELD_DEFINITION=`FieldDefinition`,e.INPUT_VALUE_DEFINITION=`InputValueDefinition`,e.INTERFACE_TYPE_DEFINITION=`InterfaceTypeDefinition`,e.UNION_TYPE_DEFINITION=`UnionTypeDefinition`,e.ENUM_TYPE_DEFINITION=`EnumTypeDefinition`,e.ENUM_VALUE_DEFINITION=`EnumValueDefinition`,e.INPUT_OBJECT_TYPE_DEFINITION=`InputObjectTypeDefinition`,e.DIRECTIVE_DEFINITION=`DirectiveDefinition`,e.SCHEMA_EXTENSION=`SchemaExtension`,e.SCALAR_TYPE_EXTENSION=`ScalarTypeExtension`,e.OBJECT_TYPE_EXTENSION=`ObjectTypeExtension`,e.INTERFACE_TYPE_EXTENSION=`InterfaceTypeExtension`,e.UNION_TYPE_EXTENSION=`UnionTypeExtension`,e.ENUM_TYPE_EXTENSION=`EnumTypeExtension`,e.INPUT_OBJECT_TYPE_EXTENSION=`InputObjectTypeExtension`})(L||={});function $e(e){return e===9||e===32}function R(e){return e>=48&&e<=57}function z(e){return e>=97&&e<=122||e>=65&&e<=90}function B(e){return z(e)||e===95}function et(e){return z(e)||R(e)||e===95}function tt(e){var t;let n=2**53-1,r=null,i=-1;for(let t=0;t<e.length;++t){var a;let o=e[t],s=nt(o);s!==o.length&&(r=(a=r)??t,i=t,t!==0&&s<n&&(n=s))}return e.map((e,t)=>t===0?e:e.slice(n)).slice((t=r)??0,i+1)}function nt(e){let t=0;for(;t<e.length&&$e(e.charCodeAt(t));)++t;return t}var V;(function(e){e.SOF=`<SOF>`,e.EOF=`<EOF>`,e.BANG=`!`,e.DOLLAR=`$`,e.AMP=`&`,e.PAREN_L=`(`,e.PAREN_R=`)`,e.SPREAD=`...`,e.COLON=`:`,e.EQUALS=`=`,e.AT=`@`,e.BRACKET_L=`[`,e.BRACKET_R=`]`,e.BRACE_L=`{`,e.PIPE=`|`,e.BRACE_R=`}`,e.NAME=`Name`,e.INT=`Int`,e.FLOAT=`Float`,e.STRING=`String`,e.BLOCK_STRING=`BlockString`,e.COMMENT=`Comment`})(V||={});var rt=class{constructor(e){let t=new T(V.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return`Lexer`}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==V.EOF)do if(e.next)e=e.next;else{let t=at(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===V.COMMENT);return e}};function it(e){return e===V.BANG||e===V.DOLLAR||e===V.AMP||e===V.PAREN_L||e===V.PAREN_R||e===V.SPREAD||e===V.COLON||e===V.EQUALS||e===V.AT||e===V.BRACKET_L||e===V.BRACKET_R||e===V.BRACE_L||e===V.PIPE||e===V.BRACE_R}function H(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function U(e,t){return W(e.charCodeAt(t))&&G(e.charCodeAt(t+1))}function W(e){return e>=55296&&e<=56319}function G(e){return e>=56320&&e<=57343}function K(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return V.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return e===`"`?`'"'`:`"${e}"`}return`U+`+n.toString(16).toUpperCase().padStart(4,`0`)}function q(e,t,n,r,i){let a=e.line,o=1+n-e.lineStart;return new T(t,n,r,a,o,i)}function at(e,t){let n=e.source.body,r=n.length,i=t;for(;i<r;){let t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:n.charCodeAt(i+1)===10?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return ot(e,i);case 33:return q(e,V.BANG,i,i+1);case 36:return q(e,V.DOLLAR,i,i+1);case 38:return q(e,V.AMP,i,i+1);case 40:return q(e,V.PAREN_L,i,i+1);case 41:return q(e,V.PAREN_R,i,i+1);case 46:if(n.charCodeAt(i+1)===46&&n.charCodeAt(i+2)===46)return q(e,V.SPREAD,i,i+3);break;case 58:return q(e,V.COLON,i,i+1);case 61:return q(e,V.EQUALS,i,i+1);case 64:return q(e,V.AT,i,i+1);case 91:return q(e,V.BRACKET_L,i,i+1);case 93:return q(e,V.BRACKET_R,i,i+1);case 123:return q(e,V.BRACE_L,i,i+1);case 124:return q(e,V.PIPE,i,i+1);case 125:return q(e,V.BRACE_R,i,i+1);case 34:return n.charCodeAt(i+1)===34&&n.charCodeAt(i+2)===34?pt(e,i):ct(e,i)}if(R(t)||t===45)return st(e,i,t);if(B(t))return mt(e,i);throw F(e.source,i,t===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:H(t)||U(n,i)?`Unexpected character: ${K(e,i)}.`:`Invalid character: ${K(e,i)}.`)}return q(e,V.EOF,r,r)}function ot(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if(e===10||e===13)break;if(H(e))++i;else if(U(n,i))i+=2;else break}return q(e,V.COMMENT,t,i,n.slice(t+1,i))}function st(e,t,n){let r=e.source.body,i=t,a=n,o=!1;if(a===45&&(a=r.charCodeAt(++i)),a===48){if(a=r.charCodeAt(++i),R(a))throw F(e.source,i,`Invalid number, unexpected digit after 0: ${K(e,i)}.`)}else i=J(e,i,a),a=r.charCodeAt(i);if(a===46&&(o=!0,a=r.charCodeAt(++i),i=J(e,i,a),a=r.charCodeAt(i)),(a===69||a===101)&&(o=!0,a=r.charCodeAt(++i),(a===43||a===45)&&(a=r.charCodeAt(++i)),i=J(e,i,a),a=r.charCodeAt(i)),a===46||B(a))throw F(e.source,i,`Invalid number, expected digit but got: ${K(e,i)}.`);return q(e,o?V.FLOAT:V.INT,t,i,r.slice(t,i))}function J(e,t,n){if(!R(n))throw F(e.source,t,`Invalid number, expected digit but got: ${K(e,t)}.`);let r=e.source.body,i=t+1;for(;R(r.charCodeAt(i));)++i;return i}function ct(e,t){let n=e.source.body,r=n.length,i=t+1,a=i,o=``;for(;i<r;){let r=n.charCodeAt(i);if(r===34)return o+=n.slice(a,i),q(e,V.STRING,t,i+1,o);if(r===92){o+=n.slice(a,i);let t=n.charCodeAt(i+1)===117?n.charCodeAt(i+2)===123?lt(e,i):ut(e,i):ft(e,i);o+=t.value,i+=t.size,a=i;continue}if(r===10||r===13)break;if(H(r))++i;else if(U(n,i))i+=2;else throw F(e.source,i,`Invalid character within String: ${K(e,i)}.`)}throw F(e.source,i,`Unterminated string.`)}function lt(e,t){let n=e.source.body,r=0,i=3;for(;i<12;){let e=n.charCodeAt(t+ i++);if(e===125){if(i<5||!H(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|Y(e),r<0)break}throw F(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}function ut(e,t){let n=e.source.body,r=dt(n,t+2);if(H(r))return{value:String.fromCodePoint(r),size:6};if(W(r)&&n.charCodeAt(t+6)===92&&n.charCodeAt(t+7)===117){let e=dt(n,t+8);if(G(e))return{value:String.fromCodePoint(r,e),size:12}}throw F(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}function dt(e,t){return Y(e.charCodeAt(t))<<12|Y(e.charCodeAt(t+1))<<8|Y(e.charCodeAt(t+2))<<4|Y(e.charCodeAt(t+3))}function Y(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function ft(e,t){let n=e.source.body;switch(n.charCodeAt(t+1)){case 34:return{value:`"`,size:2};case 92:return{value:`\\`,size:2};case 47:return{value:`/`,size:2};case 98:return{value:`\b`,size:2};case 102:return{value:`\f`,size:2};case 110:return{value:`
17
+ `,size:2};case 114:return{value:`\r`,size:2};case 116:return{value:` `,size:2}}throw F(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function pt(e,t){let n=e.source.body,r=n.length,i=e.lineStart,a=t+3,o=a,s=``,c=[];for(;a<r;){let r=n.charCodeAt(a);if(r===34&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34){s+=n.slice(o,a),c.push(s);let r=q(e,V.BLOCK_STRING,t,a+3,tt(c).join(`
18
+ `));return e.line+=c.length-1,e.lineStart=i,r}if(r===92&&n.charCodeAt(a+1)===34&&n.charCodeAt(a+2)===34&&n.charCodeAt(a+3)===34){s+=n.slice(o,a),o=a+1,a+=4;continue}if(r===10||r===13){s+=n.slice(o,a),c.push(s),r===13&&n.charCodeAt(a+1)===10?a+=2:++a,s=``,o=a,i=a;continue}if(H(r))++a;else if(U(n,a))a+=2;else throw F(e.source,a,`Invalid character within String: ${K(e,a)}.`)}throw F(e.source,a,`Unterminated string.`)}function mt(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if(et(e))++i;else break}return q(e,V.NAME,t,i,n.slice(t,i))}function X(e,t){if(!e)throw Error(t)}function ht(e){return Z(e,[])}function Z(e,t){switch(typeof e){case`string`:return JSON.stringify(e);case`function`:return e.name?`[function ${e.name}]`:`[function]`;case`object`:return gt(e,t);default:return String(e)}}function gt(e,t){if(e===null)return`null`;if(t.includes(e))return`[Circular]`;let n=[...t,e];if(_t(e)){let t=e.toJSON();if(t!==e)return typeof t==`string`?t:Z(t,n)}else if(Array.isArray(e))return yt(e,n);return vt(e,n)}function _t(e){return typeof e.toJSON==`function`}function vt(e,t){let n=Object.entries(e);return n.length===0?`{}`:t.length>2?`[`+bt(e)+`]`:`{ `+n.map(([e,n])=>e+`: `+Z(n,t)).join(`, `)+` }`}function yt(e,t){if(e.length===0)return`[]`;if(t.length>2)return`[Array]`;let n=Math.min(10,e.length),r=e.length-n,i=[];for(let r=0;r<n;++r)i.push(Z(e[r],t));return r===1?i.push(`... 1 more item`):r>1&&i.push(`... ${r} more items`),`[`+i.join(`, `)+`]`}function bt(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,``).replace(/]$/,``);if(t===`Object`&&typeof e.constructor==`function`){let t=e.constructor.name;if(typeof t==`string`&&t!==``)return t}return t}var xt=globalThis.process&&!0,St=xt?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if(typeof e==`object`&&e){var n;let r=t.prototype[Symbol.toStringTag],i=Symbol.toStringTag in e?e[Symbol.toStringTag]:(n=e.constructor)?.name;if(r===i){let t=ht(e);throw Error(`Cannot use ${r} "${t}" from another module or realm.
19
+
20
+ Ensure that there is only one instance of "graphql" in the node_modules
21
+ directory. If different versions of "graphql" are the dependencies of other
22
+ relied on modules, use "resolutions" to ensure only one version is installed.
23
+
24
+ https://yarnpkg.com/en/docs/selective-version-resolutions
25
+
26
+ Duplicate "graphql" modules cannot be used at the same time since different
27
+ versions may have different capabilities and behavior. The data from one
28
+ version used in the function from another could produce confusing and
29
+ spurious results.`)}}return!1},Ct=class{constructor(e,t=`GraphQL request`,n={line:1,column:1}){typeof e==`string`||X(!1,`Body must be a string. Received: ${ht(e)}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||X(!1,`line in locationOffset is 1-indexed and must be positive.`),this.locationOffset.column>0||X(!1,`column in locationOffset is 1-indexed and must be positive.`)}get[Symbol.toStringTag](){return`Source`}};function wt(e){return St(e,Ct)}function Tt(e,t){let n=new Et(e,t),r=n.parseDocument();return Object.defineProperty(r,`tokenCount`,{enumerable:!1,value:n.tokenCount}),r}var Et=class{constructor(e,t={}){let n=wt(e)?e:new Ct(e);this._lexer=new rt(n),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(V.NAME);return this.node(e,{kind:L.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:L.DOCUMENT,definitions:this.many(V.SOF,this.parseDefinition,V.EOF)})}parseDefinition(){if(this.peek(V.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===V.NAME){switch(t.value){case`schema`:return this.parseSchemaDefinition();case`scalar`:return this.parseScalarTypeDefinition();case`type`:return this.parseObjectTypeDefinition();case`interface`:return this.parseInterfaceTypeDefinition();case`union`:return this.parseUnionTypeDefinition();case`enum`:return this.parseEnumTypeDefinition();case`input`:return this.parseInputObjectTypeDefinition();case`directive`:return this.parseDirectiveDefinition()}if(e)throw F(this._lexer.source,this._lexer.token.start,`Unexpected description, descriptions are supported only on type definitions.`);switch(t.value){case`query`:case`mutation`:case`subscription`:return this.parseOperationDefinition();case`fragment`:return this.parseFragmentDefinition();case`extend`:return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e=this._lexer.token;if(this.peek(V.BRACE_L))return this.node(e,{kind:L.OPERATION_DEFINITION,operation:E.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let t=this.parseOperationType(),n;return this.peek(V.NAME)&&(n=this.parseName()),this.node(e,{kind:L.OPERATION_DEFINITION,operation:t,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(V.NAME);switch(e.value){case`query`:return E.QUERY;case`mutation`:return E.MUTATION;case`subscription`:return E.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(V.PAREN_L,this.parseVariableDefinition,V.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:L.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(V.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(V.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(V.DOLLAR),this.node(e,{kind:L.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:L.SELECTION_SET,selections:this.many(V.BRACE_L,this.parseSelection,V.BRACE_R)})}parseSelection(){return this.peek(V.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e=this._lexer.token,t=this.parseName(),n,r;return this.expectOptionalToken(V.COLON)?(n=t,r=this.parseName()):r=t,this.node(e,{kind:L.FIELD,alias:n,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(V.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(V.PAREN_L,t,V.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(V.COLON),this.node(t,{kind:L.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(V.SPREAD);let t=this.expectOptionalKeyword(`on`);return!t&&this.peek(V.NAME)?this.node(e,{kind:L.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:L.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return this.expectKeyword(`fragment`),this._options.allowLegacyFragmentVariables===!0?this.node(e,{kind:L.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword(`on`),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:L.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword(`on`),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value===`on`)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case V.BRACKET_L:return this.parseList(e);case V.BRACE_L:return this.parseObject(e);case V.INT:return this.advanceLexer(),this.node(t,{kind:L.INT,value:t.value});case V.FLOAT:return this.advanceLexer(),this.node(t,{kind:L.FLOAT,value:t.value});case V.STRING:case V.BLOCK_STRING:return this.parseStringLiteral();case V.NAME:switch(this.advanceLexer(),t.value){case`true`:return this.node(t,{kind:L.BOOLEAN,value:!0});case`false`:return this.node(t,{kind:L.BOOLEAN,value:!1});case`null`:return this.node(t,{kind:L.NULL});default:return this.node(t,{kind:L.ENUM,value:t.value})}case V.DOLLAR:if(e)if(this.expectToken(V.DOLLAR),this._lexer.token.kind===V.NAME){let e=this._lexer.token.value;throw F(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}else throw this.unexpected(t);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:L.STRING,value:e.value,block:e.kind===V.BLOCK_STRING})}parseList(e){let t=()=>this.parseValueLiteral(e);return this.node(this._lexer.token,{kind:L.LIST,values:this.any(V.BRACKET_L,t,V.BRACKET_R)})}parseObject(e){let t=()=>this.parseObjectField(e);return this.node(this._lexer.token,{kind:L.OBJECT,fields:this.any(V.BRACE_L,t,V.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(V.COLON),this.node(t,{kind:L.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(V.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(V.AT),this.node(t,{kind:L.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e=this._lexer.token,t;if(this.expectOptionalToken(V.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(V.BRACKET_R),t=this.node(e,{kind:L.LIST_TYPE,type:n})}else t=this.parseNamedType();return this.expectOptionalToken(V.BANG)?this.node(e,{kind:L.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:L.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(V.STRING)||this.peek(V.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`schema`);let n=this.parseConstDirectives(),r=this.many(V.BRACE_L,this.parseOperationTypeDefinition,V.BRACE_R);return this.node(e,{kind:L.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(V.COLON);let n=this.parseNamedType();return this.node(e,{kind:L.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`scalar`);let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:L.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`type`);let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:L.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}parseImplementsInterfaces(){return this.expectOptionalKeyword(`implements`)?this.delimitedMany(V.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(V.BRACE_L,this.parseFieldDefinition,V.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(V.COLON);let i=this.parseTypeReference(),a=this.parseConstDirectives();return this.node(e,{kind:L.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:a})}parseArgumentDefs(){return this.optionalMany(V.PAREN_L,this.parseInputValueDef,V.PAREN_R)}parseInputValueDef(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName();this.expectToken(V.COLON);let r=this.parseTypeReference(),i;this.expectOptionalToken(V.EQUALS)&&(i=this.parseConstValueLiteral());let a=this.parseConstDirectives();return this.node(e,{kind:L.INPUT_VALUE_DEFINITION,description:t,name:n,type:r,defaultValue:i,directives:a})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`interface`);let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),a=this.parseFieldsDefinition();return this.node(e,{kind:L.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:a})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`union`);let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:L.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(V.EQUALS)?this.delimitedMany(V.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`enum`);let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:L.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(V.BRACE_L,this.parseEnumValueDefinition,V.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:L.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if(this._lexer.token.value===`true`||this._lexer.token.value===`false`||this._lexer.token.value===`null`)throw F(this._lexer.source,this._lexer.token.start,`${Q(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`input`);let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:L.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(V.BRACE_L,this.parseInputValueDef,V.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===V.NAME)switch(e.value){case`schema`:return this.parseSchemaExtension();case`scalar`:return this.parseScalarTypeExtension();case`type`:return this.parseObjectTypeExtension();case`interface`:return this.parseInterfaceTypeExtension();case`union`:return this.parseUnionTypeExtension();case`enum`:return this.parseEnumTypeExtension();case`input`:return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`schema`);let t=this.parseConstDirectives(),n=this.optionalMany(V.BRACE_L,this.parseOperationTypeDefinition,V.BRACE_R);if(t.length===0&&n.length===0)throw this.unexpected();return this.node(e,{kind:L.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`scalar`);let t=this.parseName(),n=this.parseConstDirectives();if(n.length===0)throw this.unexpected();return this.node(e,{kind:L.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`type`);let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&r.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:L.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`interface`);let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(n.length===0&&r.length===0&&i.length===0)throw this.unexpected();return this.node(e,{kind:L.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`union`);let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:L.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`enum`);let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:L.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword(`extend`),this.expectKeyword(`input`);let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(n.length===0&&r.length===0)throw this.unexpected();return this.node(e,{kind:L.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword(`directive`),this.expectToken(V.AT);let n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword(`repeatable`);this.expectKeyword(`on`);let a=this.parseDirectiveLocations();return this.node(e,{kind:L.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:a})}parseDirectiveLocations(){return this.delimitedMany(V.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(I,t.value))return t;throw this.unexpected(e)}node(e,t){return this._options.noLocation!==!0&&(t.loc=new xe(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw F(this._lexer.source,t.start,`Expected ${$(e)}, found ${Q(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e?(this.advanceLexer(),!0):!1}expectKeyword(e){let t=this._lexer.token;if(t.kind===V.NAME&&t.value===e)this.advanceLexer();else throw F(this._lexer.source,t.start,`Expected "${e}", found ${Q(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===V.NAME&&t.value===e?(this.advanceLexer(),!0):!1}unexpected(e){let t=e??this._lexer.token;return F(this._lexer.source,t.start,`Unexpected ${Q(t)}.`)}any(e,t,n){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==V.EOF&&(++this._tokenCounter,e!==void 0&&this._tokenCounter>e))throw F(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}};function Q(e){let t=e.value;return $(e.kind)+(t==null?``:` "${t}"`)}function $(e){return it(e)?`"${e}"`:e}function Dt(e,t){let n=SyntaxError(e+` (`+t.loc.start.line+`:`+t.loc.start.column+`)`);return Object.assign(n,t)}var Ot=Dt;function kt(e){let t=[],{startToken:n,endToken:r}=e.loc;for(let e=n;e!==r;e=e.next)e.kind===`Comment`&&t.push({...e,loc:{start:e.start,end:e.end}});return t}var At={allowLegacyFragmentVariables:!0};function jt(e){if(e?.name===`GraphQLError`){let{message:t,locations:[n]}=e;return Ot(t,{loc:{start:n},cause:e})}return e}function Mt(e){let t;try{t=Tt(e,At)}catch(e){throw jt(e)}return t.comments=kt(t),t}var Nt={parse:Mt,astFormat:`graphql`,hasPragma:ke,hasIgnorePragma:Ae,locStart:Te,locEnd:D},Pt={graphql:ze},Ft=n;export{Ft as default,Be as languages,Ue as options,N as parsers,Pt as printers};