{"version":3,"sources":["jsdelivr-header.js","/npm/jquery-replace-text@1.0.2/jquery-replace-text.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,CCLA,WACE,IAAI,EAAY,GAAG,SAAW,SAAS,GAAQ,IAAK,IAAI,EAAI,EAAG,EAAI,KAAK,OAAQ,EAAI,EAAG,IAAO,GAAI,KAAK,MAAQ,KAAK,KAAO,EAAM,OAAO,EAAK,OAAQ,CAAG,EAExJ,EAAE,GAAG,WAAa,WAChB,IAAI,EAaJ,OAZA,EAAI,GACJ,KAAK,MAAK,WACR,IAAI,EAEJ,OADA,EAAK,UAAU,OACP,EAAE,MAAO,WAAW,MAAK,WAC/B,OAAsB,IAAlB,KAAK,SACA,EAAE,KAAK,MAEP,EAAG,MAAM,EAAE,MAEtB,GACF,IACO,EAAE,EACX,EAEA,EAAE,GAAG,aAAe,SAAS,EAAS,EAAa,GACjD,IAAI,EAKJ,OAJc,MAAV,IACF,GAAS,GAEX,EAAgB,EAAS,KAAO,GACzB,KAAK,aAAa,MAAK,SAAS,GACrC,IAAI,EASJ,IARK,EAAY,KAAK,UAAU,QAAQ,EAAS,MAAkB,KAAK,aACjE,GAAU,EAAU,KAAK,EAAW,MAAQ,GAC9C,EAAE,MAAO,OAAO,GACjB,EAAc,KAAK,OAEnB,KAAK,UAAY,IAGhB,GAAU,EAAc,OAAS,EACpC,OAAQ,EAAE,GAAgB,QAE9B,GACF,CAED,GAAE,KAAK","file":"/npm/jquery-replace-text@1.0.2/jquery-replace-text.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/jquery-replace-text@1.0.2/jquery-replace-text.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","// Generated by CoffeeScript 1.9.0\n(function() {\n  var __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };\n\n  $.fn.text_nodes = function() {\n    var R;\n    R = [];\n    this.each(function() {\n      var fn;\n      fn = arguments.callee;\n      return ($(this)).contents().each(function() {\n        if (this.nodeType === 3) {\n          return R.push(this);\n        } else {\n          return fn.apply($(this));\n        }\n      });\n    });\n    return $(R);\n  };\n\n  $.fn.replace_text = function(matcher, replacement, is_raw) {\n    var to_be_removed;\n    if (is_raw == null) {\n      is_raw = false;\n    }\n    to_be_removed = is_raw ? null : [];\n    return this.text_nodes().each(function(idx) {\n      var new_value;\n      if ((new_value = this.nodeValue.replace(matcher, replacement)) !== this.nodeValue) {\n        if (!is_raw && __indexOf.call(new_value, '<') >= 0) {\n          ($(this)).before(new_value);\n          to_be_removed.push(this);\n        } else {\n          this.nodeValue = new_value;\n        }\n      }\n      if (!is_raw && to_be_removed.length > 0) {\n        return ($(to_be_removed)).remove();\n      }\n    });\n  };\n\n}).call(this);\n"]}