{"version":3,"sources":["jsdelivr-header.js","/npm/dingbat-to-unicode@1.0.1/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,IAAI,gBAAmB,MAAQ,KAAK,iBAAoB,SAAU,GAC9D,OAAQ,GAAO,EAAI,WAAc,EAAM,CAAE,QAAW,EACxD,EACA,OAAO,eAAe,QAAS,aAAc,CAAE,OAAO,IACtD,QAAQ,IAAM,QAAQ,IAAM,QAAQ,eAAY,EAIhD,IAHA,IAAI,WAAa,gBAAgB,QAAQ,eACrC,oBAAsB,CAAC,EACvB,cAAgB,OAAO,cAAgB,OAAO,cAAgB,sBACzD,GAAK,EAAG,WAAa,WAAW,QAAS,GAAK,WAAW,OAAQ,KAAM,CAC5E,IAAI,QAAU,WAAW,IACrB,YAAc,SAAS,QAAQ,eAAgB,IAC/C,YAAc,CACd,UAAW,YACX,OAAQ,cAAc,cAE1B,oBAAoB,QAAQ,iBAAiB,cAAgB,IAAM,QAAQ,gBAAkB,WACjG,CACA,SAAS,UAAU,EAAU,GACzB,OAAO,oBAAoB,EAAS,cAAgB,IAAM,EAC9D,CAEA,SAAS,IAAI,EAAU,GACnB,OAAO,UAAU,EAAU,SAAS,EAAK,IAC7C,CAEA,SAAS,IAAI,EAAU,GACnB,OAAO,UAAU,EAAU,SAAS,EAAK,IAC7C,CAEA,SAAS,sBAAsB,GAC3B,GAAI,GAAa,MAEb,OAAO,OAAO,aAAa,GAK3B,IAAI,EAAgB,KAAK,OAAO,EAAY,OAAW,MAAS,MAC5D,GAAgB,EAAY,OAAW,KAAQ,MACnD,OAAO,OAAO,aAAa,EAAe,EAElD,CArBA,QAAQ,UAAY,UAIpB,QAAQ,IAAM,IAId,QAAQ,IAAM","file":"/npm/dingbat-to-unicode@1.0.1/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/dingbat-to-unicode@1.0.1/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n    return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.hex = exports.dec = exports.codePoint = void 0;\nvar dingbats_1 = __importDefault(require(\"./dingbats\"));\nvar dingbatsByCodePoint = {};\nvar fromCodePoint = String.fromCodePoint ? String.fromCodePoint : fromCodePointPolyfill;\nfor (var _i = 0, dingbats_2 = dingbats_1.default; _i < dingbats_2.length; _i++) {\n    var dingbat = dingbats_2[_i];\n    var codePoint_1 = parseInt(dingbat[\"Unicode dec\"], 10);\n    var scalarValue = {\n        codePoint: codePoint_1,\n        string: fromCodePoint(codePoint_1),\n    };\n    dingbatsByCodePoint[dingbat[\"Typeface name\"].toUpperCase() + \"_\" + dingbat[\"Dingbat dec\"]] = scalarValue;\n}\nfunction codePoint(typeface, codePoint) {\n    return dingbatsByCodePoint[typeface.toUpperCase() + \"_\" + codePoint];\n}\nexports.codePoint = codePoint;\nfunction dec(typeface, dec) {\n    return codePoint(typeface, parseInt(dec, 10));\n}\nexports.dec = dec;\nfunction hex(typeface, hex) {\n    return codePoint(typeface, parseInt(hex, 16));\n}\nexports.hex = hex;\nfunction fromCodePointPolyfill(codePoint) {\n    if (codePoint <= 0xFFFF) {\n        // BMP\n        return String.fromCharCode(codePoint);\n    }\n    else {\n        // Astral\n        // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae\n        var highSurrogate = Math.floor((codePoint - 0x10000) / 0x400) + 0xD800;\n        var lowSurrogate = (codePoint - 0x10000) % 0x400 + 0xDC00;\n        return String.fromCharCode(highSurrogate, lowSurrogate);\n    }\n}\n;\n"]}