UNPKG

@haxtheweb/haxcms-nodejs

Version:

HAXcms single and multisite nodejs server, api, and administration

6 lines 957 B
import{html as t,svg as a,mathml as e}from"./lit-html.js"; /** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const r=Symbol.for(""),o=t=>{if(t?.r===r)return t?._$litStatic$},s=t=>({_$litStatic$:t,r}),i=(t,...a)=>({_$litStatic$:a.reduce(((a,e,r)=>a+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[r+1]),t[0]),r}),l=new Map,n=t=>(a,...e)=>{const r=e.length;let u,c;const $=[],h=[];let m,f=0,p=!1;for(;f<r;){for(m=a[f];f<r&&void 0!==(c=e[f],u=o(c));)m+=u+a[++f],p=!0;f!==r&&h.push(c),$.push(m),f++}if(f===r&&$.push(a[r]),p){const t=$.join("$$lit$$");void 0===(a=l.get(t))&&($.raw=$,l.set(t,a=$)),e=h}return t(a,...e)},u=n(t),c=n(a),$=n(e);export{u as html,i as literal,$ as mathml,c as svg,s as unsafeStatic,n as withStatic};