1 line
2.5 KiB
Plaintext
1 line
2.5 KiB
Plaintext
{"version":3,"file":"b64u-lite.js","sources":["../index.mjs","../node_modules/b64-lite/dist/b64-lite.mjs"],"sourcesContent":["import { atob, btoa, toBase64, fromBase64, toBuffer as toBuffer64 } from 'b64-lite'\n\nexport function toBinaryString(b64u) {\n return atob(b64u\n .replace(/-/g, '+')\n .replace(/_/g, '/'))\n}\n\nexport function fromBinaryString(binaryString, padding) {\n return btoa(binaryString)\n .replace(/\\+/g, '-')\n .replace(/\\//g, '_')\n .replace(/=/g, padding ? '=' : '')\n}\n\nexport function toBase64Url(input, padding) {\n return toBase64(input)\n .replace(/\\+/g, '-')\n .replace(/\\//g, '_')\n .replace(/=/g, padding ? '=' : '')\n}\n\nexport function fromBase64Url(b64u) {\n return fromBase64(b64u\n .replace(/-/g, '+')\n .replace(/_/g, '/'))\n}\n\nexport function toBuffer(b64u) {\n return toBuffer64(b64u\n .replace(/-/g, '+')\n .replace(/_/g, '/'))\n}\n","function n(n){return window.atob(n)}function o(n){return window.btoa(n)}function t(n){if(\"string\"==typeof n)return window.btoa(unescape(encodeURIComponent(n)));for(var o=new Uint8Array(n),t=\"\",e=0;e<o.byteLength;e++)t+=String.fromCharCode(o[e]);return window.btoa(t)}function e(n){return decodeURIComponent(escape(window.atob(n)))}function r(n){for(var o=window.atob(n),t=new Uint8Array(o.length),e=0;e<o.length;e++)t[e]=o.charCodeAt(e);return t}export{n as atob,o as btoa,t as toBase64,e as fromBase64,r as toBuffer};\n//# sourceMappingURL=b64-lite.mjs.map\n"],"names":["b64u","n","window","atob","replace","binaryString","padding","btoa","input","unescape","encodeURIComponent","o","Uint8Array","t","e","byteLength","String","fromCharCode","toBase64","decodeURIComponent","escape","length","charCodeAt","toBuffer64"],"mappings":"uBAEO,SAAwBA,UCF/B,SAAWC,GAAG,OAAOC,OAAOC,KAAKF,GDGxBE,CAAKH,EACTI,QAAQ,KAAM,KACdA,QAAQ,KAAM,gCAGZ,SAA0BC,EAAcC,UCRAL,EDSjCI,ECT2CH,OAAOK,KAAKN,IDUhEG,QAAQ,MAAO,KACfA,QAAQ,MAAO,KACfA,QAAQ,KAAME,EAAU,IAAM,ICZC,IAAWL,uBDexC,SAAqBO,EAAOF,UCfqC,SAAWL,GAAG,GAAG,iBAAiBA,EAAE,OAAOC,OAAOK,KAAKE,SAASC,mBAAmBT,KAAK,IAAI,IAAIU,EAAE,IAAIC,WAAWX,GAAGY,EAAE,GAAGC,EAAE,EAAEA,EAAEH,EAAEI,WAAWD,IAAID,GAAGG,OAAOC,aAAaN,EAAEG,IAAI,OAAOZ,OAAOK,KAAKM,GDgB/PK,CAASV,GACbJ,QAAQ,MAAO,KACfA,QAAQ,MAAO,KACfA,QAAQ,KAAME,EAAU,IAAM,2BAG5B,SAAuBN,UCtBwPC,EDuBlQD,EACfI,QAAQ,KAAM,KACdA,QAAQ,KAAM,KCzB6Qe,mBAAmBC,OAAOlB,OAAOC,KAAKF,KAA3D,IAAWA,oBD4B/Q,SAAkBD,UC5BkT,SAAWC,GAAG,IAAI,IAAIU,EAAET,OAAOC,KAAKF,GAAGY,EAAE,IAAID,WAAWD,EAAEU,QAAQP,EAAE,EAAEA,EAAEH,EAAEU,OAAOP,IAAID,EAAEC,GAAGH,EAAEW,WAAWR,GAAG,OAAOD,ED6BnbU,CAAWvB,EACfI,QAAQ,KAAM,KACdA,QAAQ,KAAM"} |