1!(function (t) { 2 var e = {}; 3 function n(o) { 4 if (e[o]) return e[o].exports; 5 var i = (e[o] = { i: o, l: !1, exports: {} }); 6 return t[o].call(i.exports, i, i.exports, n), (i.l = !0), i.exports; 7 } 8 (n.m = t), 9 (n.c = e), 10 (n.d = function (t, e, o) { 11 n.o(t, e) || Object.defineProperty(t, e, { configurable: !1, enumerable: !0, get: o }); 12 }), 13 (n.n = function (t) { 14 var e = 15 t && t.__esModule 16 ? function () { 17 return t.default; 18 } 19 : function () { 20 return t; 21 }; 22 return n.d(e, "a", e), e; 23 }), 24 (n.o = function (t, e) { 25 return Object.prototype.hasOwnProperty.call(t, e); 26 }), 27 (n.p = ""), 28 n((n.s = 18)); 29})({ 30 18: function (t, e, n) { 31 t.exports = n(19); 32 }, 33 19: function (t, e, n) { 34 "use strict"; 35 n(20); 36 }, 37 20: function (t, e, n) { 38 const o = n(21); 39 $(document).ready(function () { 40 let t = $("input[name=googleInputKeyCode]").val(), 41 e = new XMLHttpRequest(), 42 n = !1; 43 t || 44 ((t = "ne-t-i0-und"), 45 console.error('Google Input Key Code not defined. So defaulting to Nepali (ne-t-i0-und). Please specify hidden input: <input type="hidden" name="googleInputKeyCode" value="inputKeyCode(ne-t-i0-und)">')), 46 $("#input_tool").on("keydown", function (t) { 47 (function (t) { 48 if (71 === t.which && t.ctrlKey) return t.preventDefault(), !0; 49 return !1; 50 })(t) && (n = !n); 51 }); 52 var i = {}; 53 $("#input_tool").on("keyup", function (t) { 54 8 == t.which && 55 ($("#input_tool_helper").empty(), n ? $("#input_tool_helper").append("<em>English mode enabled. Press (CTRL + G) to switch back.</em>") : $("#input_tool_helper").append("<em>Suggestion Word Appears Here!</em>")); 56 }), 57 $("#input_tool").click(function (n) { 58 for (var l = [" ", "\n", "\r", "\t"], u = $(this).val(), p = $(this)[0].selectionStart, r = $(this)[0].selectionEnd; p > 0 && -1 == l.indexOf(u[p]); ) --p; 59 for (++p; r < u.length && -1 == l.indexOf(u[r]); ) ++r; 60 var s = u.substr(p, r - p); 61 if (s) { 62 var c = i[s]; 63 void 0 === c && (c = s), 64 o(e, c, t, 4).then(function (t) { 65 t.push(c); 66 let e = ""; 67 t.forEach(function (t) { 68 e += '<button class="btn">' + t + "</button>"; 69 }), 70 $("#input_tool_helper").empty(), 71 $("#input_tool_helper").append(e), 72 $(".btn").on("click", function (t) { 73 let e = $(this).html(); 74 i[e] = c; 75 var n = u.slice(0, p) + e + u.slice(r); 76 $("#input_tool").val(n); 77 }); 78 }); 79 } 80 }), 81 $("#input_tool").on("keyup", function (l) { 82 if (n) return $("#input_tool_helper").empty(), void $("#input_tool_helper").append("<em>English mode enabled. Press (CTRL + G) to switch back.</em>"); 83 if (32 == l.which || 229 == l.which) { 84 let n = $(this).val().split(" "), 85 l = n[n.length - 2]; 86 if (void 0 === l) return; 87 o(e, l, t, 4).then(function (t) { 88 t.push(l); 89 let e = "", 90 o = 0; 91 t.forEach(function (t) { 92 e += '<button class="btn ' + (1 == ++o ? "btn-success" : "") + '">' + t + "</button>"; 93 }), 94 $("#input_tool_helper").empty(), 95 $("#input_tool_helper").append(e), 96 $(".btn").on("click", function (t) { 97 let e = $(this).html(); 98 i[e] = l; 99 let n = $("#input_tool").val().split(" "); 100 (n[n.length - 2] = e), (n = n.join(" ")), $("#input_tool").val(n), $(".btn").removeClass("btn-success"), $(this).addClass("btn-success"); 101 }), 102 (n[n.length - 2] = t[0]), 103 (n = n.join(" ")), 104 (i[t[0]] = l), 105 $("#input_tool").val(n); 106 }); 107 } else $("#input_tool_helper").empty(), n ? $("#input_tool_helper").append("<em>English mode enabled. Press (CTRL + G) to switch back.</em>") : $("#input_tool_helper").append("<em>Suggestion Word Appears Here!</em>"); 108 }); 109 }); 110 }, 111 21: function (t, e, n) { 112 "use strict"; 113 t.exports = function (t, e, n, o) { 114 return new Promise(function (i, l) { 115 let u = encodeURI("https://inputtools.google.com/request?text=" + e + "&itc=" + n + "&num=" + o + "&cp=0&cs=1&ie=utf-8&oe=utf-8&app=demopage"); 116 t.open("GET", u), 117 (t.onreadystatechange = function () { 118 if (t.readyState == t.DONE) 119 if (200 == t.status) { 120 let t = JSON.parse(this.responseText); 121 i(t[1][0][1]); 122 } else l("Rejected status code: " + t.status); 123 }), 124 (t.onerror = function () { 125 l(Error("Network Error")); 126 }), 127 t.send(); 128 }); 129 }; 130 }, 131}); 132 133function replacePeriodWithDanda(textarea) { 134 const inputValue = textarea.value; 135 const convertedValue = inputValue.replace(/\./g,'।'); 136 textarea.value = convertedValue; 137} 138 139 140 141 142 143function clearContent() 144{ 145 document.getElementById("input_tool").value=''; 146 document.getElementById("input_tool").value=''; 147} 148 149 150 151 function copyUnicode(event){ 152 var copyText = document.getElementById("input_tool"); 153 doCopying(copyText,event); 154 } 155 function doCopying(copyText,event){ 156 copyText.select(); 157 copyText.setSelectionRange(0, 99999); 158 document.execCommand("copy"); 159 160 //debugger; 161 event.target.innerHTML="Copied ✓" 162 setTimeout(function(){ 163 event.target.innerHTML="Copy"; 164 },3000); 165 } 166 167 168
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.