JSFiddle - React, Tailwind, and code Playground

JavaScript

function ULSqvN() {
    var o = new Object;
    o.ULSTeamName = "SharePoint Portal Server";
    o.ULSFileName = "SocialData.js";
    return o;
}
TagDialogOpener = function () {};
TagDialogOpener.Open = function (d, b, c) {
    ULSqvN: ;
    var a = PageUrlNormalizer.GetInstance();
    a.GetUrl(d, function (a) {
        ULSqvN: ;
        OpenTRC(a, b, c)
    })
};
PageUrlNormalizer = function () {
    ULSqvN: ;
    try {
        this._url = _normalizedPageUrlForSocialItem
    } catch (a) {
        this._url = ""
    }
};
PageUrlNormalizer._instance = null;
PageUrlNormalizer.GetInstance = function () {
    ULSqvN: ;
    if (PageUrlNormalizer._instance == null) PageUrlNormalizer._instance = new PageUrlNormalizer;
    return PageUrlNormalizer._instance
};
PageUrlNormalizer.prototype = {
    _url: "",
    _rawUrl: "",
    _scriptService: "_vti_bin/socialdatainternalservice.json",
    _serviceMethod: "GetNormalizedPageUrl",
    GetUrl: function (d, a) {
        ULSqvN: ;
        if (this._url != "") {
            a && a(this._url);
            return
        }
        this._rawUrl = d;
        var b = window._spPageContextInfo.webServerRelativeUrl,
            f = b.endsWith("/") ? "" : "/",
            e = b + f + this._scriptService;
        Sys.Net.WebRequestManager.add_invokingRequest(function (c, b) {
            ULSqvN: ;
            var a = $get("__REQUESTDIGEST");
            if (a) b.get_webRequest().get_headers()["X-RequestDigest"] = a.value
        });
        var c = {};
        c["pageUrl"] = d;
        Sys.Net.WebServiceProxy.invoke(encodeURI(e), this._serviceMethod, false, c, Function.createDelegate(this, this._onSuccess), Function.createDelegate(this, this._onFailure), a)
    },
    _onSuccess: function (b, a) {
        ULSqvN: ;
        this._url = b;
        typeof a == "function" && a(this._url)
    },
    _onFailure: function (c, a) {
        ULSqvN: ;
        typeof a == "function" && a(this._rawUrl)
    }
};

function OpenTRC(d, c, a) {
   ...