"use strict";

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
        return typeof obj;
    } : function(obj) {
        if (obj && typeof Symbol === "function" && obj.constructor === Symbol) {
            return "symbol";
        } else {
            return typeof obj;
        }
    };

var _ = require("./..js");

var _data = require("./data.js");

var _data2 = _interopRequireDefault(_data);

function _interopRequireDefault(obj) {
    if (obj && obj.__esModule) {
        return obj;
    } else {
        return {
            "default": obj
        };
    }
}

_.transliterate.setCodemap(_data2.default);

if (typeof define === "function" && define.amd) {
    define("transliterate", function() {
        return _.transliterate;
    });
    define("slugify", function() {
        return _.slugify;
    });
} else {
    if (typeof window !== "undefined" && _typeof(window.document) === "object") {
        window.transl = _.transliterate;
        window.slugify = _.slugify;
        _.transliterate.noConflict = function() {
            var tr = _.transliterate;
            delete window.transl;
            return tr;
        };
        _.slugify.noConflict = function() {
            var sl = _.slugify;
            delete window.slugify;
            return sl;
        };
    }
}

if (typeof module !== "undefined" && module.exports) {
    module.exports = _.transliterate;
}