19 lines
478 B
JavaScript
19 lines
478 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
function decodeText(array) {
|
|
if (typeof TextDecoder !== "undefined") {
|
|
return new TextDecoder().decode(array);
|
|
}
|
|
let s = "";
|
|
for (let i = 0, il = array.length; i < il; i++) {
|
|
s += String.fromCharCode(array[i]);
|
|
}
|
|
try {
|
|
return decodeURIComponent(escape(s));
|
|
} catch (e) {
|
|
return s;
|
|
}
|
|
}
|
|
exports.decodeText = decodeText;
|
|
//# sourceMappingURL=LoaderUtils.cjs.map
|