Houjie
2025-07-24 1bc8f80935add7215fa98de1ab8b375b222a2046
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var getGlobalScope_1 = require("../helper/getGlobalScope");
var _encodingIndexes;
function checkForEncodingIndexes() {
    if (typeof TextEncodingIndexes !== 'undefined')
        return TextEncodingIndexes.encodingIndexes;
    var glo = getGlobalScope_1.getGlobalScope();
    if (!glo)
        return null;
    if ('TextEncodingIndexes' in glo)
        return global['TextEncodingIndexes']['encodingIndexes'];
    if ('encoding-indexes' in glo)
        return global['encodingIndexes'];
    return null;
}
function getEncodingIndexes() {
    if (_encodingIndexes) {
        return _encodingIndexes;
    }
    var indexes = checkForEncodingIndexes();
    if (!indexes) {
        return null;
    }
    _encodingIndexes = indexes;
    return indexes;
}
exports.getEncodingIndexes = getEncodingIndexes;
//# sourceMappingURL=encoding-indexes-provider.js.map