{"version":3,"sources":["jsdelivr-header.js","/npm/es6-html-template@0.0.5/es6-html-template.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,CCLC,SAAU,EAAM,GACS,mBAAX,QAAyB,OAAO,IAEvC,OAAO,CAAC,qBAAsB,GACL,iBAAX,QAAuB,OAAO,QAI5C,OAAO,QAAU,IAGjB,EAAK,KAAO,GAEpB,CAbA,CAakB,oBAAT,KAAuB,KAAO,MAAM,WAoDzC,OApCA,SAAc,KAAoB,GAG9B,IAAI,EAAM,EAAgB,IAEtB,EAAS,GA4Bb,OA1BA,EAAO,SAAQ,CAAC,EAAO,KAGnB,IAAI,EAAM,EAAI,GAKV,MAAM,QAAQ,KACd,EAAQ,EAAM,KAAK,KAKnB,EAAI,SAAS,OACb,EAAmB,EA9BhB,QAAQ,KAAM,SACd,QAAQ,KAAM,QACd,QAAQ,KAAM,QACd,QAAQ,KAAM,UACd,QAAQ,KAAM,SACd,QAAQ,KAAM,SA0BjB,EAAM,EAAI,MAAM,GAAI,IAExB,GAAU,EACV,GAAU,CAAK,IAKnB,GAAU,EAAI,EAAI,OAAO,GAElB,CACX,CAGJ","file":"/npm/es6-html-template@0.0.5/es6-html-template.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/es6-html-template@0.0.5/es6-html-template.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","//UMD loader (https://github.com/umdjs/umd)\n(function (root, factory) {\n    if (typeof define === 'function' && define.amd) {\n        // AMD. Register as an anonymous module.\n        define(['es6-html-template'], factory);\n    } else if (typeof module === 'object' && module.exports) {\n        // Node. Does not work with strict CommonJS, but\n        // only CommonJS-like environments that support module.exports,\n        // like Node.\n        module.exports = factory();\n    } else {\n        // Browser globals\n        root.html = factory();\n    }\n}(typeof self !== 'undefined' ? self : this, function () {\n\n\n    /*\n        CODE STARTS HERE\n    */\n\n    function htmlEscape(str) {\n        return str.replace(/&/g, '&amp;') // first!\n                  .replace(/>/g, '&gt;')\n                  .replace(/</g, '&lt;')\n                  .replace(/\"/g, '&quot;')\n                  .replace(/'/g, '&#39;')\n                  .replace(/`/g, '&#96;');\n    }\n\n    function html(literalSections, ...substs) {\n        // Use raw literal sections: we don’t want\n        // backslashes (\\n etc.) to be interpreted\n        let raw = literalSections.raw;\n\n        let result = '';\n\n        substs.forEach((subst, i) => {\n            // Retrieve the literal section preceding\n            // the current substitution\n            let lit = raw[i];\n\n            // In the example, map() returns an array:\n            // If substitution is an array (and not a string),\n            // we turn it into a string\n            if (Array.isArray(subst)) {\n                subst = subst.join('');\n            }\n\n            // If the substitution is preceded by a dollar sign,\n            // we escape special characters in it\n            if (lit.endsWith('$')) {\n                subst = htmlEscape(subst);\n                lit = lit.slice(0, -1);\n            }\n            result += lit;\n            result += subst;\n        });\n        // Take care of last literal section\n        // (Never fails, because an empty template string\n        // produces one literal section, an empty string)\n        result += raw[raw.length-1]; // (A)\n\n        return result;\n    }\n\n    return html;\n}));"]}