import{g as w}from"./emoji-picker-Coav-X6q.chunk.mjs";function k(e,t){for(var n=0;n<t.length;n++){const a=t[n];if(typeof a!="string"&&!Array.isArray(a)){for(const s in a)if(s!=="default"&&!(s in e)){const i=Object.getOwnPropertyDescriptor(a,s);i&&Object.defineProperty(e,s,i.get?i:{enumerable:!0,get:()=>a[s]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function M(e){const t=e.regex,n={$pattern:/[\w.\/]+/,built_in:["action","bindattr","collection","component","concat","debugger","each","each-in","get","hash","if","in","input","link-to","loc","log","lookup","mut","outlet","partial","query-params","render","template","textarea","unbound","unless","view","with","yield"]},a={$pattern:/[\w.\/]+/,literal:["true","false","undefined","null"]},s=/""|"[^"]+"/,i=/''|'[^']+'/,c=/\[\]|\[[^\]]+\]/,m=/[^\s!"#%&'()*+,.\/;<=>@\[\\\]^`{|}~]+/,h=/(\.|\/)/,d=t.either(s,i,c,m),f=t.concat(t.optional(/\.|\.\/|\//),d,t.anyNumberOfTimes(t.concat(h,d))),y=t.concat("(",c,"|",m,")(?==)"),r={begin:f},g=e.inherit(r,{keywords:a}),l={begin:/\(/,end:/\)/},O={className:"attr",begin:y,relevance:0,starts:{begin:/=/,end:/=/,starts:{contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,g,l]}}},_={begin:/as\s+\|/,keywords:{keyword:"as"},end:/\|/,contains:[{begin:/\w+/}]},o={contains:[e.NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,_,O,g,l],returnEnd:!0},E=e.inherit(r,{className:"name",keywords:n,starts:e.inherit(o,{end:/\)/})});l.contains=[E];const b=e.inherit(r,{keywords:n,className:"name",starts:e.inherit(o,{end:/\}\}/})}),u=e.inherit(r,{keywords:n,className:"name"}),p=e.inherit(r,{className:"name",keywords:n,starts:e.inherit(o,{end:/\}\}/})});return{name:"Handlebars",aliases:["hbs","html.hbs","html.handlebars","htmlbars"],case_insensitive:!0,subLanguage:"xml",contains:[{begin:/\\\{\{/,skip:!0},{begin:/\\\\(?=\{\{)/,skip:!0},e.COMMENT(/\{\{!--/,/--\}\}/),e.COMMENT(/\{\{!/,/\}\}/),{className:"template-tag",begin:/\{\{\{\{(?!\/)/,end:/\}\}\}\}/,contains:[b],starts:{end:/\{\{\{\{\//,returnEnd:!0,subLanguage:"xml"}},{className:"template-tag",begin:/\{\{\{\{\//,end:/\}\}\}\}/,contains:[u]},{className:"template-tag",begin:/\{\{#/,end:/\}\}/,contains:[b]},{className:"template-tag",begin:/\{\{(?=else\}\})/,end:/\}\}/,keywords:"else"},{className:"template-tag",begin:/\{\{(?=else if)/,end:/\}\}/,keywords:"else if"},{className:"template-tag",begin:/\{\{\//,end:/\}\}/,contains:[u]},{className:"template-variable",begin:/\{\{\{/,end:/\}\}\}/,contains:[p]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[p]}]}}var N=M;const T=w(N),v=k({__proto__:null,default:T},[N]);export{N as a,v as h};
