1!function (a, b) { 2 "function" == typeof define && define.amd ? define([], b) : "object" == typeof exports ? module.exports = b() : a.Headroom = b() 3}(this, function () { 4 function a(a) { 5 this.callback = a, this.ticking = !1 6 } 7 8 function b(a) { 9 return a && "undefined" != typeof window && (a === window || a.nodeType) 10 } 11 12 function c(a) { 13 if (arguments.length <= 0) throw new Error("Missing arguments in extend function"); 14 var d, e, f = a || {}; 15 for (e = 1; e < arguments.length; e++) { 16 var g = arguments[e] || {}; 17 for (d in g) "object" != typeof f[d] || b(f[d]) ? f[d] = f[d] || g[d] : f[d] = c(f[d], g[d]) 18 } 19 return f 20 } 21 22 function d(a) { 23 return a === Object(a) ? a : {down: a, up: a} 24 } 25 26 function e(a, b) { 27 b = c(b, e.options), this.lastKnownScrollY = 0, this.elem = a, this.tolerance = d(b.tolerance), this.classes = b.classes, this.offset = b.offset, this.scroller = b.scroller, this.initialised = !1, this.onPin = b.onPin, this.onUnpin = b.onUnpin, this.onTop = b.onTop, this.onNotTop = b.onNotTop, this.onBottom = b.onBottom, this.onNotBottom = b.onNotBottom 28 } 29 30 var f = { 31 bind: !!function () { 32 }.bind, 33 classList: "classList" in document.documentElement, 34 rAF: !!(window.requestAnimationFrame || window.webkitRequestAnimationFrame || 35 window.mozRequestAnimationFrame) 36 }; 37 return window.requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame, a.prototype = { 38 constructor: a, 39 update: function () { 40 this.callback && this.callback(), this.ticking = !1 41 }, 42 requestTick: function () { 43 this.ticking || (requestAnimationFrame(this.rafCallback || (this.rafCallback = this.update.bind(this))), this.ticking = !0) 44 }, 45 handleEvent: function () { 46 this.requestTick() 47 } 48 }, e.prototype = { 49 constructor: e, init: function () { 50 return e.cutsTheMustard ? 51 (this.debouncer = new a(this.update.bind(this)), this.elem.classList.add(this.classes.initial), setTimeout(this.attachEvent.bind(this), 100), this) : void 0 52 }, destroy: function () { 53 var a = this.classes; 54 this.initialised = !1, this.elem.classList.remove(a.unpinned, a.pinned, a.top, a.notTop, a.initial), this.scroller.removeEventListener("scroll", this.debouncer, !1) 55 }, attachEvent: function () { 56 this.initialised || (this.lastKnownScrollY = this.getScrollY(), this.initialised = !0, this.scroller.addEventListener("scroll", this.debouncer, 57 !1), this.debouncer.handleEvent()) 58 }, unpin: function () { 59 var a = this.elem.classList, b = this.classes; 60 !a.contains(b.pinned) && a.contains(b.unpinned) || (a.add(b.unpinned), a.remove(b.pinned), this.onUnpin && this.onUnpin.call(this)) 61 }, pin: function () { 62 var a = this.elem.classList, b = this.classes; 63 a.contains(b.unpinned) && (a.remove(b.unpinned), a.add(b.pinned), this.onPin && this.onPin.call(this)) 64 }, top: function () { 65 var a = this.elem.classList, b = this.classes; 66 a.contains(b.top) || (a.add(b.top), a.remove(b.notTop), this.onTop && this.onTop.call(this)) 67 }, 68 notTop: function () { 69 var a = this.elem.classList, b = this.classes; 70 a.contains(b.notTop) || (a.add(b.notTop), a.remove(b.top), this.onNotTop && this.onNotTop.call(this)) 71 }, bottom: function () { 72 var a = this.elem.classList, b = this.classes; 73 a.contains(b.bottom) || (a.add(b.bottom), a.remove(b.notBottom), this.onBottom && this.onBottom.call(this)) 74 }, notBottom: function () { 75 var a = this.elem.classList, b = this.classes; 76 a.contains(b.notBottom) || (a.add(b.notBottom), a.remove(b.bottom), this.onNotBottom && this.onNotBottom.call(this)) 77 }, getScrollY: function () { 78 return void 0 !== 79 this.scroller.pageYOffset ? this.scroller.pageYOffset : void 0 !== this.scroller.scrollTop ? this.scroller.scrollTop : (document.documentElement || document.body.parentNode || document.body).scrollTop 80 }
80, getViewportHeight: function () { 81 return window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight 82 }, getElementPhysicalHeight: function (a) { 83 return Math.max(a.offsetHeight, a.clientHeight) 84 }, getScrollerPhysicalHeight: function () { 85 return this.scroller === window || this.scroller === document.body ? this.getViewportHeight() : 86 this.getElementPhysicalHeight(this.scroller) 87 }, getDocumentHeight: function () { 88 var a = document.body, b = document.documentElement; 89 return Math.max(a.scrollHeight, b.scrollHeight, a.offsetHeight, b.offsetHeight, a.clientHeight, b.clientHeight) 90 }, getElementHeight: function (a) { 91 return Math.max(a.scrollHeight, a.offsetHeight, a.clientHeight) 92 }, getScrollerHeight: function () { 93 return this.scroller === window || this.scroller === document.body ? this.getDocumentHeight() : this.getElementHeight(this.scroller) 94 }, isOutOfBounds: function (a) { 95 var b = 96 0 > a, c = a + this.getScrollerPhysicalHeight() > this.getScrollerHeight(); 97 return b || c 98 }, toleranceExceeded: function (a, b) { 99 return Math.abs(a - this.lastKnownScrollY) >= this.tolerance[b] 100 }, shouldUnpin: function (a, b) { 101 var c = a > this.lastKnownScrollY, d = a >= this.offset; 102 return c && d && b 103 }, shouldPin: function (a, b) { 104 var c = a < this.lastKnownScrollY, d = a <= this.offset; 105 return c && b || d 106 }, update: function () { 107 var a = this.getScrollY(), b = a > this.lastKnownScrollY ? "down" : "up", c = this.toleranceExceeded(a, b); 108 this.isOutOfBounds(a) || (a <= this.offset ? this.top() : 109 this.notTop(), a + this.getViewportHeight() >= this.getScrollerHeight() ? this.bottom() : this.notBottom(), this.shouldUnpin(a, c) ? this.unpin() : this.shouldPin(a, c) && this.pin(), this.lastKnownScrollY = a) 110 } 111 }, e.options = { 112 tolerance: {up: 0, down: 0}, 113 offset: 0, 114 scroller: window, 115 classes: { 116 pinned: "headroom--pinned", 117 unpinned: "headroom--unpinned", 118 top: "headroom--top", 119 notTop: "headroom--not-top", 120 bottom: "headroom--bottom", 121 notBottom: "headroom--not-bottom", 122 initial: "headroom" 123 } 124 }, e.cutsTheMustard = "undefined" != typeof f && f.rAF && f.bind && f.classList, 125 e 126}); 127var $jscomp = $jscomp || {}; 128$jscomp.scope = {}; 129$jscomp.arrayIteratorImpl = function (a) { 130 var c = 0; 131 return function () { 132 return c < a.length ? {done: !1, value: a[c++]} : {done: !0} 133 } 134}; 135$jscomp.arrayIterator = function (a) { 136 return {next: $jscomp.arrayIteratorImpl(a)} 137}; 138$jscomp.ASSUME_ES5 = !1; 139$jscomp.ASSUME_NO_NATIVE_MAP = !1; 140$jscomp.ASSUME_NO_NATIVE_SET = !1; 141$jscomp.SIMPLE_FROUND_POLYFILL = !1; 142$jscomp.defineProperty = $jscomp.ASSUME_ES5 || "function" == typeof Object.defineProperties ? Object.defineProperty : function (a, c, d) { 143 a != Array.prototype && a != Object.prototype && (a[c] = d.value) 144}; 145$jscomp.getGlobal = function (a) { 146 return "undefined" != typeof window && window === a ? a : "undefined" != typeof global && null != global ? global : a 147}; 148$jscomp.global = $jscomp.getGlobal(this); 149$jscomp.SYMBOL_PREFIX = "jscomp_symbol_"; 150$jscomp.initSymbol = function () { 151 $jscomp.initSymbol = function () { 152 }; 153 $jscomp.global.Symbol || ($jscomp.global.Symbol = $jscomp.Symbol) 154}; 155$jscomp.Symbol = function () { 156 var a = 0; 157 return function (c) { 158 return $jscomp.SYMBOL_PREFIX + (c || "") + a++ 159 } 160}(); 161$jscomp.initSymbolIterator = function () { 162 $jscomp.initSymbol(); 163 var a = $jscomp.global.Symbol.iterator; 164 a || (a = $jscomp.global.Symbol.iterator = $jscomp.global.Symbol("iterator")); 165 "function" != typeof Array.prototype[a] && $jscomp.defineProperty(Array.prototype, a, { 166 configurable: !0, 167 writable: !0, 168 value: function () { 169 return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this)) 170 } 171 });
172 $jscomp.initSymbolIterator = function () { 173 } 174}; 175$jscomp.initSymbolAsyncIterator = function () { 176 $jscomp.initSymbol(); 177 var a = $jscomp.global.Symbol.asyncIterator; 178 a || (a = $jscomp.global.Symbol.asyncIterator = $jscomp.global.Symbol("asyncIterator")); 179 $jscomp.initSymbolAsyncIterator = function () { 180 } 181}; 182$jscomp.iteratorPrototype = function (a) { 183 $jscomp.initSymbolIterator(); 184 a = {next: a}; 185 a[$jscomp.global.Symbol.iterator] = function () { 186 return this 187 }; 188 return a 189}; 190$jscomp.iteratorFromArray = function (a, c) { 191 $jscomp.initSymbolIterator(); 192 a instanceof String && (a += ""); 193 var d = 0, b = { 194 next: function () { 195 if (d < a.length) { 196 var g = d++; 197 return {value: c(g, a[g]), done: !1} 198 } 199 b.next = function () { 200 return {done: !0, value: void 0} 201 }; 202 return b.next() 203 } 204 }; 205 b[Symbol.iterator] = function () { 206 return b 207 }; 208 return b 209}; 210$jscomp.polyfill = function (a, c, d, b) { 211 if (c) { 212 d = $jscomp.global; 213 a = a.split("."); 214 for (b = 0; b < a.length - 1; b++) { 215 var g = a[b]; 216 g in d || (d[g] = {}); 217 d = d[g] 218 } 219 a = a[a.length - 1]; 220 b = d[a]; 221 c = c(b); 222 c != b && null != c && $jscomp.defineProperty(d, a, {configurable: !0, writable: !0, value: c}) 223 } 224}; 225$jscomp.polyfill("Array.prototype.keys", function (a) { 226 return a ? a : function () { 227 return $jscomp.iteratorFromArray(this, function (a) { 228 return a 229 }) 230 } 231}, "es6", "es3"); 232(function () { 233 var a = function (a) { 234 var d = this, b = { 235 logo: "OwO\u8868\u60c5", 236 container: document.getElementsByClassName("OwO")[0], 237 target: document.getElementsByTagName("textarea")[0], 238 position: "down", 239 style: "max-width: 100%;", 240 maxHeight: "250px", 241 api: "https://api.anotherhome.net/OwO/OwO.json", 242 completeFunction: function (a) { 243 } 244 }, c; 245 for (c in b) b.hasOwnProperty(c) && !a.hasOwnProperty(c) && (a[c] = b[c]); 246 this.container = a.container; 247 this.target = a.target; 248 "up" === a.position && this.container.classList.add("OwO-up"); 249 var e = new XMLHttpRequest; 250 e.onreadystatechange = function () { 251 4 === e.readyState && (200 <= e.status && 300 > e.status || 304 === e.status ? (d.odata = JSON.parse(e.responseText), d.init(a), a.completeFunction(d)) : console.log("OwO data request was unsuccessful: " + e.status)) 252 }; 253 e.open("get", a.api, !0); 254 e.send(null) 255 }; 256 a.prototype.init = function (a) { 257 var d = this; 258 this.area = a.target; 259 this.packages = Object.keys(this.odata); 260 for (var b = '\n <div class="OwO-logo"><span>' + a.logo + '</span></div>\n <div class="OwO-body" style="' + a.style + '">', c = 0; c < this.packages.length; c++) { 261 b += 262 '\n <ul class="OwO-items OwO-items-' + this.odata[this.packages[c]].type + '" style="max-height: ' + (parseInt(a.maxHeight) - 53 + "px") + ';">'; 263 if ("biaoqing" === this.odata[this.packages[c]].type) { 264 var e = this.odata[this.packages[c]].baseURL, k = this.odata[this.packages[c]].suffix, 265 n = this.odata[this.packages[c]].input, f = this.odata[this.packages[c]].retinaSuffix, 266 p = this.odata[this.packages[c]].imgClass, l = this.odata[this.packages[c]].container; 267 void 0 != window.devicePixelRatio && 1.49 <= window.devicePixelRatio && 268 (k = f); 269 e = e.replace("{BIAOQING_PAOPAO_PATH}", LocalConst.BIAOQING_PAOPAO_PATH); 270 e = e.replace("{BIAOQING_ARU_PATH}", LocalConst.BIAOQING_ARU_PATH); 271 for (f = 0; f < l.length; f++) { 272 var h = '<img data-src="' + (e + encodeURI(l[f]).replace(/%/g, "") + k) + '" class="' + p + '" title="' + l[f] + '">', 273 m = n.replace("{NAME}", l[f]); 274 m = "{IMG_TAG}" !== n ? 'data-input="' + m + '"' : ""; 275 b += '\n <li class="OwO-item" title="' + l[f] + '" ' + m + ">" + h + "</li>" 276 } 277 } else if ("usr" === this.odata[this.packages[c]].type) for (e = this.odata[this.packages[c]], k =
278 LocalConst.BASE_SCRIPT_URL + "usr/biaoqing/" + e.name + "/", n = e.suffix, void 0 != window.devicePixelRatio && 1.49 <= window.devicePixelRatio && (n = e.retinaSuffix), p = "biaoqing " + e.imgClass, l = e.container, f = 0; f < l.length; f++) { 279 if (h = l[f], "undefined" !== typeof h) { 280 m = h; 281 "string" === typeof h ? m = h : "string" === typeof h.icon && (m = h.icon); 282 var q = ""; 283 "string" === typeof h.text && (q = h.text); 284 b += '\n <li class="OwO-item" title="' + q + '" ' + ('data-input="::' + e.name + ":" + m + '::"') + ">" + ('<img data-src="' + (k + m + n) + '" class="' + p + '" title="' + 285 q + '">') + "</li>" 286 } 287 } else for (e = this.odata[this.packages[c]].container, k = 0; k < e.length; k++) b += '\n <li class="OwO-item" title="' + e[k].text + '">' + e[k].icon + "</li>"; 288 b += "\n </ul>" 289 } 290 b += '\n <div class="OwO-bar">\n <ul class="OwO-packages">'; 291 for (a = 0; a < this.packages.length; a++) b += "\n <li><span>" + this.packages[a] + "</span></li>"; 292 this.container.innerHTML = b + "\n </ul>\n </div>\n </div>\n "; 293 this.logo = this.container.getElementsByClassName("OwO-logo")[0]; 294 this.logo.addEventListener("click", function (a) { 295 d.toggle(a) 296 }); 297 this.container.getElementsByClassName("OwO-body")[0].addEventListener("click", function (a) { 298 var b = null; 299 a.target.classList.contains("OwO-item") ? b = a.target : a.target.parentNode.classList.contains("OwO-item") && (b = a.target.parentNode); 300 if (b) { 301 var c = d.area.selectionEnd, e = d.area.value, f = b.innerHTML; 302 b.dataset.hasOwnProperty("input") && (f = b.dataset.input); 303 d.area.value = e.slice(0, c) + f + e.slice(c); 304 d.moveCaretRange(c + f.length); 305 d.area.focus(); 306 d.toggle(a) 307 } 308 }); 309 this.packagesEle = this.container.getElementsByClassName("OwO-packages")[0]; 310 for (b = {$jscomp$loop$prop$i$12$14: 0}; b.$jscomp$loop$prop$i$12$14 < this.packagesEle.children.length; b = {$jscomp$loop$prop$i$12$14: b.$jscomp$loop$prop$i$12$14}, b.$jscomp$loop$prop$i$12$14++) (function (a) { 311 return function (b) { 312 d.packagesEle.children[a.$jscomp$loop$prop$i$12$14].addEventListener("click", function (a) { 313 d.tab(b, a) 314 }) 315 } 316 })(b)(b.$jscomp$loop$prop$i$12$14); 317 this.tab(0) 318 }; 319 a.prototype.moveCaretRange = 320 function (a) { 321 if (this.area.setSelectionRange) this.area.focus(), this.area.setSelectionRange(a, a); else if (this.area.createTextRange) { 322 var c = this.area.createTextRange(); 323 c.collapse(!0); 324 c.moveEnd("character", a); 325 c.moveStart("character", a); 326 c.select() 327 } 328 }; 329 a.prototype.toggle = function (a) { 330 var c = this, b = document.getElementById("body"); 331 b || (b = document.getElementsByClassName("body")[0]); 332 var g = function (a) { 333 c.container.classList.remove("OwO-open"); 334 document.getElementsByTagName("body")[0].classList.remove("OwO-open"); 335 b && 336 b.removeEventListener("click", g); 337 a.stopPropagation() 338 }; 339 this.container.classList.contains("OwO-open") ? (this.container.classList.remove("OwO-open"), document.getElementsByTagName("body")[0].classList.remove("OwO-open")) : (this.container.classList.add("OwO-open"), document.getElementsByTagName("body")[0].classList.add("OwO-open"), b && (b.removeEventListener("click", g), b.addEventListener("click", g)), this.loadImageForCurrentTab(), a.stopPropagation()) 340 }; 341 a.prototype.tab = function (a, d) { 342 var b = this.container.getElementsByClassName("OwO-items-show")[0]; 343 b && b.classList.remove("OwO-items-show"); 344 this.container.getElementsByClassName("OwO-items")[a].classList.add("OwO-items-show"); 345 this.loadImageForCurrentTab(); 346 (b = this.container.getElementsByClassName("OwO-package-active")[0]) && b.classList.remove("OwO-package-active"); 347 this.packagesEle.getElementsByTagName("li")[a].classList.add("OwO-package-active"); 348 "undefined" != typeof d && d.stopPropagation() 349 }; 350 a.prototype.loadImageForCurrentTab = function () { 351 if (this.container.classList.contains("OwO-open")) { 352 var a = this.container.querySelectorAll(".OwO-items.OwO-items-show>li img"); 353 [].forEach.call(a, function (a) { 354 var b = a.dataset.src; 355 b && (a.src = b, a.removeAttribute("data-src")) 356 }) 357 } 358 }; 359 "undefined" !== typeof module && "undefined" !== typeof module.exports ? module.exports = a : window.OwO = a 360})(); 361var $jscomp = { 362 scope: {}, findInternal: function (a, e, g) { 363 a instanceof String && (a = String(a)); 364 for (var k = a.length, l = 0; l < k; l++) { 365 var h = a[l]; 366 if (e.call(g, h, l, a)) return {i: l, v: h} 367 } 368 return {i: -1, v: void 0} 369 } 370}; 371$jscomp.defineProperty = "function" == typeof Object.defineProperties ? Object.defineProperty : function (a, e, g) { 372 if (g.get || g.set) throw new TypeError("ES3 does not support getters and setters."); 373 a != Array.prototype && a != Object.prototype && (a[e] = g.value) 374}; 375$jscomp.getGlobal = function (a) { 376 return "undefined" != typeof window && window === a ? a : "undefined" != typeof global && null != global ? global : a 377}; 378$jscomp.global = $jscomp.getGlobal(this); 379$jscomp.polyfill = function (a, e, g, k) { 380 if (e) { 381 g = $jscomp.global; 382 a = a.split("."); 383 for (k = 0; k < a.length - 1; k++) { 384 var l = a[k]; 385 l in g || (g[l] = {}); 386 g = g[l] 387 } 388 a = a[a.length - 1]; 389 k = g[a]; 390 e = e(k); 391 e != k && null != e && $jscomp.defineProperty(g, a, {configurable: !0, writable: !0, value: e}) 392 } 393}; 394$jscomp.polyfill("Array.prototype.find", function (a) { 395 return a ? a : function (a, g) { 396 return $jscomp.findInternal(this, a, g).v 397 } 398}, "es6-impl", "es3"); 399$jscomp.SYMBOL_PREFIX = "jscomp_symbol_"; 400$jscomp.initSymbol = function () { 401 $jscomp.initSymbol = function () { 402 };
403 $jscomp.global.Symbol || ($jscomp.global.Symbol = $jscomp.Symbol) 404}; 405$jscomp.symbolCounter_ = 0; 406$jscomp.Symbol = function (a) { 407 return $jscomp.SYMBOL_PREFIX + (a || "") + $jscomp.symbolCounter_++ 408}; 409$jscomp.initSymbolIterator = function () { 410 $jscomp.initSymbol(); 411 var a = $jscomp.global.Symbol.iterator; 412 a || (a = $jscomp.global.Symbol.iterator = $jscomp.global.Symbol("iterator")); 413 "function" != typeof Array.prototype[a] && $jscomp.defineProperty(Array.prototype, a, { 414 configurable: !0, 415 writable: !0, 416 value: function () { 417 return $jscomp.arrayIterator(this) 418 } 419 }); 420 $jscomp.initSymbolIterator = function () { 421 } 422}; 423$jscomp.arrayIterator = function (a) { 424 var e = 0; 425 return $jscomp.iteratorPrototype(function () { 426 return e < a.length ? {done: !1, value: a[e++]} : {done: !0} 427 }) 428}; 429$jscomp.iteratorPrototype = function (a) { 430 $jscomp.initSymbolIterator(); 431 a = {next: a}; 432 a[$jscomp.global.Symbol.iterator] = function () { 433 return this 434 }; 435 return a 436}; 437$jscomp.array = $jscomp.array || {}; 438$jscomp.iteratorFromArray = function (a, e) { 439 $jscomp.initSymbolIterator(); 440 a instanceof String && (a += ""); 441 var g = 0, k = { 442 next: function () { 443 if (g < a.length) { 444 var l = g++; 445 return {value: e(l, a[l]), done: !1} 446 } 447 k.next = function () { 448 return {done: !0, value: void 0} 449 }; 450 return k.next() 451 } 452 }; 453 k[Symbol.iterator] = function () { 454 return k 455 }; 456 return k 457}; 458$jscomp.polyfill("Array.prototype.keys", function (a) { 459 return a ? a : function () { 460 return $jscomp.iteratorFromArray(this, function (a) { 461 return a 462 }) 463 } 464}, "es6-impl", "es3"); 465$jscomp.checkStringArgs = function (a, e, g) { 466 if (null == a) throw new TypeError("The 'this' value for String.prototype." + g + " must not be null or undefined"); 467 if (e instanceof RegExp) throw new TypeError("First argument to String.prototype." + g + " must not be a regular expression"); 468 return a + "" 469}; 470$jscomp.polyfill("String.prototype.includes", function (a) { 471 return a ? a : function (a, g) { 472 return -1 !== $jscomp.checkStringArgs(this, a, "includes").indexOf(a, g || 0) 473 } 474}, "es6-impl", "es3"); 475$jscomp.polyfill("String.prototype.endsWith", function (a) { 476 return a ? a : function (a, g) { 477 var e = $jscomp.checkStringArgs(this, a, "endsWith"); 478 a += ""; 479 void 0 === g && (g = e.length); 480 for (var l = Math.max(0, Math.min(g | 0, e.length)), h = a.length; 0 < h && 0 < l;) if (e[--l] != a[--h]) return !1; 481 return 0 >= h 482 } 483}, "es6-impl", "es3"); 484(function (a, e, g) { 485 var k = 0, l = !1, h = {}, y = -1; 486 "touchmove" in g.createElement("div") && (l = !0); 487 a(g).ready(function () { 488 da(); 489 ea(); 490 if ("undefined" === typeof LocalConst.IS_MOBILE) return !1; 491 888 > e.innerWidth && ((new Headroom(g.querySelector("#toggle-nav"), { 492 tolerance: 5, 493 offset: 5, 494 classes: {initial: "show", pinned: "show", unpinned: "hide"} 495 })).init(), (new Headroom(g.querySelector("body"), { 496 tolerance: 5, 497 offset: 5, 498 classes: {initial: "auto-hide-show", pinned: "auto-hide-show", unpinned: "auto-hide-hide"} 499 })).init()); 500 fa(); 501 ga(); 502 G(); 503 a(e).bind("scroll", 504 function (b) { 505 b = a("#wrap"); 506 b.find("#nav").width() < k && (LocalConst.IS_MOBILE && l || !LocalConst.IS_MOBILE) && (a("#wrap.display-nav").find("#body").unbind("click"), b.removeClass("display-nav"), a("body").removeClass("display-nav"), a("#nav-toolbar").find(".side-toolbar").removeClass("show-read-settings"), a("#footer").removeClass("display-nav")); 507 z() 508 }); 509 a(e).bind("mousemove", function (a) { 510 k = a.clientX 511 });
512 a(".slide-toggle").click(function (b) { 513 a(".category-list").each(function () { 514 a(this).toggleClass("hide") 515 }) 516 }); 517 H(); 518 ha(); 519 ia(); 520 ja(); 521 a(".blog-notice>a.blog-notice-close").click(function (b) { 522 a(this).parent().remove() 523 }); 524 LocalConst.COMMENT_SYSTEM === LocalConst.COMMENT_SYSTEM_EMBED && I(); 525 J(); 526 A() && .117 > Math.random() && (body.innerHTML = "<div>") 527 }); 528 e.onload = function () { 529 K(200) 530 }; 531 console.log("\n %c éåªææ¶î 績 æ¾¶Ñæéæ¶æ¯ ", "color: #fff; background-image: linear-gradient(90deg, rgb(47, 172, 178) 0%, rgb(45, 190, 96) 100%); padding:5px 1px;"); 532 var r = {}, q = [], B = !0, L = 1, ea = function () { 533 var b = a("span#backtop"), c = a("body"); 534 b.click(function () { 535 a("html, body").animate({scrollTop: 0}, 600) 536 }); 537 100 < a(e).scrollTop() && c.addClass("show-back-to-top"); 538 a(e).scroll(function () { 539 100 < a(e).scrollTop() ? c.addClass("show-back-to-top") : c.removeClass("show-back-to-top") 540 }) 541 }, C = function () { 542 var b = 0, c = a(".navbar"); 543 c && !c.is(":hidden") && (b = c.innerHeight()); 544 return b 545 }, ka = function (a, c) { 546 var b = g.body, f = g.documentElement, e = function () { 547 return Math.max(b.scrollHeight, b.offsetHeight, f.clientHeight, 548 f.scrollHeight, f.offsetHeight) 549 }, n = e(), p; 550 (function D() { 551 p = e(); 552 n !== p && c(); 553 n = p; 554 b.onElementHeightChangeTimer && clearTimeout(b.onElementHeightChangeTimer); 555 b.onElementHeightChangeTimer = setTimeout(D, a) 556 })() 557 }, da = function () { 558 a("#feedback").click(function () { 559 a("html, body").animate({scrollTop: a("#comments").offset().top}) 560 }) 561 }, fa = function () { 562 a("#toggle-nav").off("click").on("click", function (b) { 563 var c = a("#wrap"), d = a("body"); 564 c.removeClass("scale-up").toggleClass("display-nav"); 565 d.toggleClass("display-nav"); 566 var f = a("#nav-toolbar").find(".side-toolbar"); 567 f.removeClass("show-read-settings"); 568 LocalConst.TOC_AT_LEFT ? c.toggleClass("hide-menu-tree") : (c.removeClass("display-menu-tree"), d.removeClass("display-menu-tree")); 569 a("#footer").toggleClass("display-nav"); 570 a("#toggle-nav").removeClass("hide"); 571 A() || setTimeout(function () { 572 var b = a("#body"); 573 b.off("click").on("click", function (e) { 574 b.off("click"); 575 c.removeClass("display-nav").removeClass("hide-menu-tree"); 576 d.removeClass("display-nav"); 577 LocalConst.TOC_AT_LEFT || (a("#wrap").removeClass("display-menu-tree"), d.removeClass("display-menu-tree")); 578 f.removeClass("show-read-settings"); 579 a("#footer").removeClass("display-nav"); 580 e.preventDefault() 581 }); 582 b.off("touchmove").on("touchmove", function (e) { 583 b.off("click"); 584 c.removeClass("display-nav").removeClass("hide-menu-tree"); 585 d.removeClass("display-nav"); 586 LocalConst.TOC_AT_LEFT || (a("#wrap").removeClass("display-menu-tree"), d.removeClass("display-menu-tree")); 587 f.removeClass("show-read-settings"); 588 a("#footer").removeClass("display-nav") 589 }) 590 }, 500) 591 }); 592 a("#navbar-search").on("click", function (b) { 593 if ("undefined" === 594 typeof ExSearchConfig) { 595 b = a("body"); 596 var c = a(".navbar-search-container .search-form > input.search"); 597 // else1211 æ·î¼î²éç°å®é¼æ» å¨éîç¦æîå鼿» å¨ç¼æ´çæ¤¤ç¸æ£¶æ£°ï¿½ start 598 const isSearchOpen = b.hasClass("show-navbar-search"); 599 const searchValue = a.trim(c.val() || ""); 600 if (isSearchOpen && searchValue) { 601 window.location.href = `/search/${encodeURIComponent(searchValue)}/`; 602 return 603 } 604 if (!isSearchOpen) { 605 c.val("") 606 } 607 // else1211 æ·î¼î²éç°å®é¼æ» å¨éîç¦æîå鼿» å¨ç¼æ´çæ¤¤ç¸æ£¶æ£°ï¿½ end 608 b.hasClass("show-navbar-search") ? (b.removeClass("show-navbar-search"), c.focusout()) : (b.addClass("show-navbar-search"), c.focus()) 609 } 610 }) 611 }, ga = function () { 612 a('button.dropdown-toggle[data-toggle="dropdown"]').off("
612click").on("click", function (c) { 613 var d = a(this).parent(".dropdown").children(".dropdown-menu"); 614 d && (d.hasClass("show") ? d.removeClass("show") : (b(), d.addClass("show"), setTimeout(function () { 615 var b = a("#body, .navbar"); 616 b.off("click").on("click", function (a) { 617 b.off("click"); 618 d.removeClass("show"); 619 M() 620 }) 621 }, 100))); 622 c.preventDefault() 623 }); 624 a(".dropdown-item > a, .nav-item:not(.dropdown) > .nav-link").off("click").on("click", function (a) { 625 b() 626 }); 627 var b = function () { 628 M(); 629 a('button.dropdown-toggle[data-toggle="dropdown"]').each(function () { 630 var b = a(this).parent(".dropdown").find(".dropdown-menu"); 631 b && b.removeClass("show") 632 }) 633 } 634 }, A = function () { 635 return "undefined" !== typeof e[u("Failed")] && 1 <= e[u("Failed")] 636 }, J = function () { 637 if (LocalConst.ENABLE_PJAX) a("#comment-form").off("submit").on("submit", 638 function (b) { 639 var c = a(this), d = c.find("#submit"), f = c.parents(".respond").parent(), m = c.find("#author").val(); 640 b = c.find("#url").val(); 641 var n = c.find("#textarea").val(); 642 if (null === n || "" === a.trim(n)) return alert(d.attr("data-empty-comment")), !1; 643 0 === c.find("#author").length && 0 === c.find("#url").length && (m = a('a[href$="profile.php"]').text(), b = g.location.origin); 644 d.attr("disabled", "disabled").val(d.attr("data-posting")); 645 var p = "newComment-" + L; 646 L++; 647 b = '<li itemscope="" itemtype="http://schema.org/UserComments" id="' + 648 p + '" class="comment-body"><div class="comment-author" itemprop="creator" itemscope="" itemtype="http://schema.org/Person"><span itemprop="image"><img class="avatar" src="' + LocalConst.BASE_SCRIPT_URL + 'images/spinner.svg" alt="' + m + '" width="100" height="100"></span><cite class="fn color-main" itemprop="name"><a href="' + b + '" rel="external nofollow" target="_blank">' + m + '</a></cite></div><div class="comment-meta"><a href="javascript:void(0)"><time itemprop="commentTime" datetime="' + d.attr("data-now") + 649 '">' + d.attr("data-now") + '</time></a><span id="' + p + '-status" class="comment-posting">' + d.attr("data-posting") + '</span></div><div class="comment-content" itemprop="commentText"><p>' + x(la(n), h.owoData) + "</p></div></li>"; 650 var v = n = !1, D = "DESC" === LocalConst.COMMENTS_ORDER; 651 f.is("div") && "comments" === f.attr("id") ? (0 < f.children(".comment-list").length ? D ? f.children(".comment-list").first().prepend(b) : f.children(".comment-list").first().append(b) : (f.append('<div class="comment-separator"><div class="comment-tab-current"><span class="comment-num">\u5df2\u6709 1 \u6761\u8bc4\u8bba</span></div></div>'), 652 f.append('<ol class="comment-list">' + b + "</ol>"), v = !0), n = !0) : f.is("li") && f.hasClass("comment-body") && (f.parent().parent().is("div") && "comments" === f.parent().parent().attr("id") ? 0 < f.children(".comment-children").first().children(".comment-list").length ? f.children(".comment-children").first().children(".comment-list").first().append(b) : f.append('<div class="comment-children" itemprop="discusses"><ol class="comment-list">' + b + "</ol></div>") : f.parents(".comment-list").first().append(b), n = !0); 653 if (n) { 654 var k = 655 C(); 656 try { 657 var N = a("#" + p).offset(); 658 "undefined" !== typeof N && a("html, body").animate({scrollTop: N.top - 50 - k}, 300) 659 } catch (E) { 660 console.error(E) 661 } 662 var l = function () { 663 try { 664 v ? (f.children(".comment-separator").first().remove(), f.children(".comment-list").first().remove()) : a("#" + p).remove(); 665 var b = a("#comment-form").offset(); 666 "undefined" !== typeof b && a("html, body").animate({scrollTop: b.top - 100 - k}, 300) 667 } catch (na) { 668 console.error(na) 669 } 670 }; 671 try {
672 a.ajax({ 673 url: c.attr("action"), 674 type: c.attr("method"), 675 data: c.serializeArray(), 676 success: function (b) { 677 if ("undefined" === 678 typeof b) return e.location.reload(), !1; 679 if (0 < b.indexOf("<title>Error</title>")) { 680 var f = a("<div></div>"); 681 f.html(b); 682 alert(a.trim(a(".container", f).text())); 683 l() 684 } else if (c.find("#textarea").val(""), "undefined" !== typeof TypechoComment && TypechoComment.cancelReply(), f = b.match(/id="comment-\d+"/g), null === f || 0 === f.length) e.location.reload(); else { 685 var f = f.join().match(/\d+/g).sort(function (a, b) { 686 return a - b 687 }).pop(), g = a("<div></div>"); 688 g.html(b); 689 b = a("#comment-" + f, g); 690 a.trim(b.children(".comment-author").find("cite.fn").text()) === 691 a.trim(m) ? (b.children(".comment-meta").append('<span id="comment-' + f + '-status" class="comment-posted">' + d.attr("data-posted") + "</span>"), g = b.children(".comment-content"), g.html(x(g.html(), h.owoData)), a("#" + p).replaceWith(b), Mlog("#comment-" + f + " img.avatar[data-src]"), a("#comment-" + f + " img.avatar[data-src]").each(function () { 692 var b = a(this); 693 O(b) 694 })) : a("#" + p + "-status").text(d.attr("data-posted")).removeClass("comment-posting").addClass("comment-posted") 695 } 696 d.removeAttr("disabled").val(d.attr("data-init")) 697 }, 698 error: function (a) { 699 console.error(a); 700 l(); 701 d.removeAttr("disabled").val(d.attr("data-init")) 702 } 703 }) 704 } catch (E$0) { 705 console.error(E$0) 706 } 707 } 708 return !1 709 }) 710 }, P = function () { 711 try { 712 var b = LocalConst.BUILD, c = parseInt(a("#menu-menu-1").attr(F("content"))), 713 d = parseInt(a("#footer > .container").attr(F("index"))); 714 y = 1170 * (1E3 * b + c) + d; 715 var f = parseInt((new Date).getTime() / 1E3), b = f >= y - 604800 && f <= y + 604800; 716 e[u("Load")] = b ? 0 : 1; 717 e[u("Failed")] = 0; 718 } catch (m) { 719 Mlog(m) 720 } 721 }, O = function (b) { 722 var c = b.attr("data-src"), d = b.attr("data-type") || 0; 723 b.attr("data-src", 724 ""); 725 var f = function (a) { 726 var c = new Image; 727 c.src = a; 728 c.onload = function () { 729 b.attr("src", a) 730 } 731 }; 732 "json" === d ? a.getJSON(c, null, function (a) { 733 f(a.url) 734 }) : f(c) 735 }, F = function (a) { 736 return void 0 !== e ? "data-" + a : a 737 }, u = function (a) { 738 return void 0 !== g ? atob("aW1hZ2U=") + a : F(a) 739 }, G = function () { 740 if (LocalConst.SHOW_TOC && (888 > e.innerWidth && (new Headroom(g.querySelector("#toggle-menu-tree"), { 741 tolerance: 5, 742 offset: 5, 743 classes: {initial: "show", pinned: "show", unpinned: "hide"} 744 })).init(), g.body.onElementHeightChangeTimer && clearTimeout(g.body.onElementHeightChangeTimer), 745 ka(700, function () { 746 oa() 747 }), a("div.post-content>h1, div.post-content>h2, div.post-content>h3, div.post-content>h4, div.post-content>h5, div.post-content>h6").each(function () { 748 a(this).append('<span class="toc">
748\u5c55\u5f00\u76ee\u5f55</span>'); 749 a(this).find("span.toc").click(function (c) { 750 0 < a(this).css("opacity") && b(c) 751 }) 752 }), !A())) { 753 var b = function (b) { 754 a("#wrap").removeClass("scale-up").removeClass("display-nav").toggleClass("display-menu-tree"); 755 a("body").removeClass("display-nav").toggleClass("display-menu-tree"); 756 a(this).removeClass("hide"); 757 z(); 758 if (1E3 > e.innerWidth) { 759 var c = a("#post"); 760 c.off("click").on("click", function (b) { 761 c.off("click"); 762 a("#wrap").removeClass("display-menu-tree").removeClass("display-nav"); 763 a("body").removeClass("display-menu-tree").removeClass("display-nav"); 764 b.preventDefault() 765 }); 766 c.off("touchmove").on("touchmove", function (b) { 767 c.off("click"); 768 a("#wrap").removeClass("display-menu-tree").removeClass("display-nav"); 769 a("body").removeClass("display-menu-tree").removeClass("display-nav") 770 }) 771 } 772 }; 773 a("#toggle-menu-tree").off("click").on("click", 774 function (a) { 775 b(a) 776 }); 777 r = {}; 778 a('a.index-menu-link[href^="#menu_index_"]').each(function () { 779 var b = a(this).attr("href"); 780 b.match(/menu_index_\d+/) && (a(this).off("click").on("click", function () { 781 B = !1; 782 Q(a(this)); 783 R(b.substring(1), !0, function () { 784 B = !0; 785 z() 786 }); 787 1E3 > e.innerWidth && (a("#wrap").removeClass("display-menu-tree").removeClass("display-nav"), a("body").removeClass("display-menu-tree").removeClass("display-nav")) 788 }), r[parseInt(a(b).offset().top)] = b) 789 }); 790 q = Object.keys(r); 791 q = q.sort(function (a, b) { 792 return a - b 793 }); 794 a(".index-menu>.index-menu-list>li.index-menu-item").each(function (b) { 795 a(this).find(".index-menu-list").hide() 796 }) 797 } 798 }, 799 oa = function () { 800 LocalConst.SHOW_TOC && (r = {}, a('a.index-menu-link[href^="#menu_index_"]').each(function () { 801 var b = a(this).attr("href"); 802 b.match(/menu_index_\d+/) && (r[parseInt(a(b).offset().top)] = b) 803 }), q = Object.keys(r), q = q.sort(function (a, c) { 804 return a - c 805 })) 806 }, z = function () { 807 if (LocalConst.SHOW_TOC && B) { 808 var b = C(), b = a(e).scrollTop() + 100 + b; 809 20 < b && a("#toggle-menu-tree").removeClass("revert"); 810 if (a("#wrap").hasClass("display-menu-tree")) { 811 for (var c = 0, d = 0; d < q.length; d++) { 812 var f = q[d]; 813 if (f <= b) c = r[f]; else break 814 } 815 b = a('.index-menu-item>a.index-menu-link[href="' + 816 c + '"]').first(); 817 a("#toc-content .index-menu>.index-menu-list").find(".index-menu-list").hide(); 818 b.parents(".index-menu-list").show(); 819 b.parent().children(".index-menu-list").show(); 820 Q(b) 821 } 822 } 823 }, Q = function (b) { 824 a('a.index-menu-link[href^="#menu_index_"]').each(function () { 825 a(this).attr("href").match(/menu_index_\d+/) && a(this).parent().removeClass("current") 826 }); 827 b.parent().addClass("current") 828 }, x = function (a, c) { 829 var b, f = ""; 830 for (void 0 !== e.devicePixelRatio && 1.49 <= e.devicePixelRatio && (f = "_2x"); b = a.match(/@\(\s*(\u5475\u5475|\u54c8\u54c8|\u5410\u820c|\u592a\u5f00\u5fc3|\u7b11\u773c|\u82b1\u5fc3|\u5c0f\u4e56|\u4e56|\u6342\u5634\u7b11|\u6ed1\u7a3d|\u4f60\u61c2\u7684|\u4e0d\u9ad8\u5174|\u6012|\u6c57|\u9ed1\u7ebf|\u6cea|\u771f\u68d2|\u55b7|\u60ca\u54ed|\u9634\u9669|\u9119\u89c6|\u9177|\u554a|\u72c2\u6c57|what|\u7591\u95ee|\u9178\u723d|\u5440\u54a9\u7239|\u59d4\u5c48|\u60ca\u8bb6|\u7761\u89c9|\u7b11\u5c3f|\u6316\u9f3b|\u5410|\u7280\u5229|\u5c0f\u7ea2\u8138|\u61d2\u5f97\u7406|\u52c9\u5f3a|\u7231\u5fc3|\u5fc3\u788e|\u73ab\u7470|\u793
830c\u7269|\u5f69\u8679|\u592a\u9633|\u661f\u661f\u6708\u4eae|\u94b1\u5e01|\u8336\u676f|\u86cb\u7cd5|\u5927\u62c7\u6307|\u80dc\u5229|haha|OK|\u6c99\u53d1|\u624b\u7eb8|\u9999\u8549|\u4fbf\u4fbf|\u836f\u4e38|\u7ea2\u9886\u5dfe|\u8721\u70db|\u97f3\u4e50|\u706f\u6ce1|\u5f00\u5fc3|\u94b1|\u54a6|\u547c|\u51b7|\u751f\u6c14|\u5f31|\u5410\u8840)\s*\)/);) a = 831 a.replace(b[0], '<img src="' + LocalConst.BIAOQING_PAOPAO_PATH + encodeURI(b[1]).replace(/%/g, "") + f + '.png" class="biaoqing newpaopao" height=30 width=30 no-zoom />'); 832 for (; b = a.match(/#\(\s*(\u9ad8\u5174|\u5c0f\u6012|\u8138\u7ea2|\u5185\u4f24|\u88c5\u5927\u6b3e|\u8d5e\u4e00\u4e2a|\u5bb3\u7f9e|\u6c57|\u5410\u8840\u5012\u5730|\u6df1\u601d|\u4e0d\u9ad8\u5174|\u65e0\u8bed|\u4eb2\u4eb2|\u53e3\u6c34|\u5c34\u5c2c|\u4e2d\u6307|\u60f3\u4e00\u60f3|\u54ed\u6ce3|\u4fbf\u4fbf|\u732e\u82b1|\u76b1\u7709|\u50bb\u7b11|\u72c2\u6c57|\u5410|\u55b7\u6c34|\u770b\u4e0d\u89c1|\u9f13\u638c|\u9634\u6697|\u957f\u8349|\u732e\u9ec4\u74dc|\u90aa\u6076|\u671f\u5f85|\u5f97\u610f|\u5410\u820c|\u55b7\u8840|\u65e0\u6240\u8c13|\u89c2\u5bdf|\u6697\u5730\u89c2\u5bdf|\u80bf\u5305|\u4e2d\u67aa|\u5927\u56e7|\u5472\u7259|\u62a0\u9f3b|\u4e0d\u8bf4\u8bdd|\u54bd\u6c14|\u6b22\u547c|\u9501\u7709|\u8721\u70db|\u5750\u7b49|\u51fb\u638c|\u60ca\u559c|\u559c\u6781\u800c\u6ce3|\u62bd\u70df|\u4e0d\u51fa\u6240\u6599|\u6124\u6012|\u65e0\u5948|\u9ed1\u7ebf|\u6295\u964d|\u770b\u70ed\u95f9|\u6247\u8033\u5149|\u5c0f\u773c\u775b|\u4e2d\u5200)\s*\)/);) a = 833 a.replace(b[0], '<img src="' + LocalConst.BIAOQING_ARU_PATH + encodeURI(b[1]).replace(/%/g, "") + f + '.png" class="biaoqing alu" height=33 width=33 no-zoom />'); 834 a = pa(a, c); 835 "function" === typeof customRenderSmiles && (a = customRenderSmiles(a)); 836 return a 837 }; 838 P(); 839 var pa = function (a, c) { 840 if ("undefined" !== typeof c) return a = a.replace(/::([^:]+):([^:]+)::/g, function (a, b, g) { 841 var d = c[b]; 842 if ("undefined" === typeof d || !d.icons.includes(g)) return a; 843 a = LocalConst.BASE_SCRIPT_URL + "usr/biaoqing/" + d.name + "/"; 844 var f = d.suffix; 845 void 0 != e.devicePixelRatio && 846 1.49 <= e.devicePixelRatio && (f = d.retinaSuffix); 847 return '<img src="' + (a + g + f) + '" class="' + ("biaoqing " + d.imgClass) + '" alt="' + (b + " " + g) + '">' 848 }) 849 }, I = function () { 850 Mlog("Loading Comment Emoji..."); 851 var b = g.getElementsByClassName("OwO")[0], c = g.getElementById("textarea"), d = { 852 logo: "O\u03c9O", 853 container: b, 854 target: c, 855 api: LocalConst.OWO_API, 856 position: "down", 857 style: "max-width: 100%;", 858 maxHeight: "250px", 859 completeFunction: function (b) { 860 for (var c = {}, d = 0; d < b.packages.length; d++) if ("usr" === b.odata[b.packages[d]].type) { 861 for (var f = b.odata[b.packages[d]], 862 e = f.container, g = [], m = 0; m < e.length; m++) { 863 var k = e[m]; 864 "undefined" !== typeof k && ("string" === typeof k ? g.push(k) : "string" === typeof k.icon && g.push(k.icon)) 865 } 866 f.icons = g; 867 c[f.name] = f 868 } 869 h.owoData = c; 870 a("#comments").find(".comment-content>p").each(function (b, d) { 871 a(d).html(x(a(d).html(), c)) 872 }); 873 (function () { 874 Mlog("Rendering smiles in content..."); 875 a("#wrap").find(".post-content>p").each(function (b, d) { 876 a(d).html(x(a(d).html(), c)) 877 }) 878 })(); 879 qa() 880 } 881 }; 882 if (void 0 !== b && void 0 !== c) new OwO(d); else if (g.querySelector(".comment-list")) { 883 var f = 884 new XMLHttpRequest; 885 f.onreadystatechange = function () { 886 if (4 === f.readyState) if (200 <= f.status && 300 > f.status || 304 === f.status) { 887 var a = {}; 888 a.odata = JSON.parse(f.responseText); 889 a.packages = Object.keys(a.odata); 890 d.completeFunction(a) 891 } else console.error("OwO data request was unsuccessful: " + f.status) 892 }; 893 f.open("get", d.api, !0); 894 f.send(null) 895 } 896 }, la = function (b) { 897 return a("<div/>").text(b).html() 898 }, t = function (a, c, d) { 899 var b = new Date; 900 b.setDate(b.getDate() + d);
901 g.cookie = a + "=" + encodeURIComponent(c) + (null === d ? "" : ";expires=" + b.toGMTString()) + 902 ";path=/" 903 }, M = function () { 904 a("#nav-side-toolbar-read-settings").parent().removeClass("selected"); 905 a(".navbar-nav.side-toolbar-list").removeClass("show-read-settings") 906 }, H = function () { 907 a("#nav-side-toolbar-read-settings").off("click").on("click", function (b) { 908 var c = a(".navbar-nav.side-toolbar-list"), d = a(this); 909 if (c.hasClass("show-read-settings")) d.parent().removeClass("selected"), c.removeClass("show-read-settings"); else { 910 d.parent().addClass("selected"); 911 c.addClass("show-read-settings"); 912 var f = a("#body"); 913 f.off("click").on("click", 914 function (a) { 915 f.off("click"); 916 d.parent().removeClass("selected"); 917 c.removeClass("show-read-settings"); 918 a.preventDefault() 919 }) 920 } 921 }); 922 a("#side-toolbar-read-settings").off("click").on("click", function (b) { 923 b = a("#nav-toolbar").find(".side-toolbar"); 924 b.hasClass("show-read-settings") ? (a(this).parent().removeClass("selected"), b.removeClass("show-read-settings")) : (a(this).parent().addClass("selected"), b.addClass("show-read-settings")) 925 }); 926 a("#page-read-setting-toggle").off("click").on("click", function (b) { 927 a("#toggle-nav").trigger("click"); 928 b = a("#nav-toolbar").find(".side-toolbar"); 929 a("#side-toolbar-read-settings").parent().addClass("selected"); 930 b.addClass("show-read-settings") 931 }) 932 }, ha = function () { 933 var b = a("body"); 934 a("a.background-color-control").off("click").on("click", function (c) { 935 a("a.background-color-control").removeClass("selected"); 936 a(this).addClass("selected"); 937 c = a(this).attr("data-mode"); 938 if ("auto" === c) { 939 var d = a("#side-toolbar-night-shift"); 940 LocalConst.AUTO_NIGHT_SHIFT = !0; 941 c = (new Date).getHours(); 942 5 >= c || 22 <= c || LocalConst.PREFERS_DARK_MODE ? 943 (b.removeClass("theme-white").removeClass("theme-sunset").removeClass("os-dark-mode").addClass("theme-dark").addClass("dark-mode"), d.addClass("night"), d = "theme-dark", (5 >= c || 22 <= c) && b.removeClass("dark-mode"), LocalConst.PREFERS_DARK_MODE && b.addClass("os-dark-mode")) : (b.removeClass("theme-dark").removeClass("dark-mode").removeClass("os-dark-mode").removeClass("theme-sunset").addClass(LocalConst.LIGHT_THEME_CLASS), d = "theme-white"); 944 t("MIRAGES_NIGHT_SHIFT_MODE", "AUTO"); 945 b.trigger("mirages:theme-change", 946 [{auto: !0, theme: d}]) 947 } else "white" === c ? (b.removeClass("theme-dark").removeClass("dark-mode").removeClass("os-dark-mode").removeClass("theme-sunset").addClass(LocalConst.LIGHT_THEME_CLASS), t("MIRAGES_NIGHT_SHIFT_MODE", "DAY"), LocalConst.AUTO_NIGHT_SHIFT = !1, b.trigger("mirages:theme-change", [{ 948 auto: !1, 949 theme: "theme-white" 950 }])) : "sunset" === c ? (b.removeClass("theme-dark").removeClass("dark-mode").removeClass("os-dark-mode").addClass(LocalConst.LIGHT_THEME_CLASS).addClass("theme-sunset"), t("MIRAGES_NIGHT_SHIFT_MODE", 951 "SUNSET"), LocalConst.AUTO_NIGHT_SHIFT = !1, b.trigger("mirages:theme-change", [{ 952 auto: !1, 953 theme: "theme-sunset" 954 }])) : "dark" === c && (b.removeClass("theme-white").removeClass("theme-sunset").removeClass("os-dark-mode").addClass("theme-dark").addClass("dark-mode"), c = (new Date).getHours(), (5 >= c || 22 <= c) && b.removeClass("dark-mode"), t("MIRAGES_NIGHT_SHIFT_MODE", "NIGHT"), LocalConst.AUTO_NIGHT_SHIFT = !1, b.trigger("mirages:theme-change", [{ 955 auto: !1, 956 theme: "theme-dark" 957 }])) 958 }) 959 }, ia = function () { 960 a("button.font-family-control").off("click").on("click", 961 function (b) { 962 b = a(this).attr("data-mode"); 963 if ("serif" === b) { 964 t("MIRAGES_USE_SERIF_FONTS", "1"); 965 if (!h.serifFontLoaded) { 966 if ("undefined" === typeof WebFontConfig) { 967 e.WebFontConfig = { 968 google: {families: ["Noto Serif SC:400,700&subset=chinese-simplified,japanese"]}, 969 timeout: 3E3 970 }; 971 b = g.createElement("script"); 972 var c = g.scripts[0];
973 b.src = LocalConst.BASE_SCRIPT_URL + "static/webfont/1.6.24/webfontloader.js"; 974 c.parentNode.insertBefore(b, c) 975 } else b = g.createElement("link"), b.setAttribute("rel", "stylesheet"), b.href = "https://fonts.googleapis.com/css?family=Noto+Serif+SC:400,700&subset=chinese-simplified,japanese", 976 g.head.appendChild(b); 977 h.serifFontLoaded = !0 978 } 979 a("body").addClass("serif-fonts"); 980 a(".font-family-control").removeClass("selected"); 981 a(".font-family-control.control-btn-serif").addClass("selected") 982 } else "sans-serif" === b && (t("MIRAGES_USE_SERIF_FONTS", ""), a("body").removeClass("serif-fonts"), a(".font-family-control").removeClass("selected"), a(".font-family-control.control-btn-sans-serif").addClass("selected")) 983 }) 984 }, K = function (b) { 985 setTimeout(function () { 986 a(".sp-progress").css("opacity", "0") 987 }, b || 0) 988 }, ja = function () { 989 var b = 990 a(".font-size-display"), c = function (c) { 991 var d = parseFloat(a(".font-size-display").first().text()); 992 c = d + c; 993 if (!(80 > c || 150 < c)) { 994 if (100 < d && 100 > c || 100 > d && 100 < c) c = 100; 995 a("html").css("font-size", c + "%"); 996 b.text(c + "%"); 997 t("MIRAGES_ROOT_FONT_SIZE", c) 998 } 999 }; 1000 (function () { 1001 var c = a("html").css("font-size"), c = parseFloat(c) / 16 * 100; 1002 80 > c && (c = LocalConst.ROOT_FONT_SIZE, Mlog(LocalConst.ROOT_FONT_SIZE)); 1003 c = Math.round(c); 1004 b.text(c + "%") 1005 })(); 1006 a(".font-size-control").off("click").on("click", function (b) { 1007 b = a(this).attr("data-mode"); 1008 "smaller" === 1009 b ? c(-5) : "larger" === b && c(5) 1010 }) 1011 }, ra = function () { 1012 a("pre code:not(.nohighlight)").each(function () { 1013 var b = a(this).html(); 1014 LocalConst.TRIM_LAST_LINE_BREAK_IN_CODE_BLOCK && b.endsWith("\n") && (b = b.substring(0, b.length - 1)); 1015 a(this).html("<ul><li><div class='code-line'>" + b.replace(/\n/g, "\n</div></li><li><div class='code-line'>") + "\n</div></li></ul>"); 1016 a(this).parent("pre").addClass("loaded") 1017 }) 1018 }, sa = function () { 1019 var b = new Date; 1020 e.asyncBannerLoadNum = 0; 1021 e.asyncBannerLoadCompleteNum = 0; 1022 e.asyncImageLoadNum = 0; 1023 e.asyncImageLoadCompleteNum = 1024 0; 1025 Mlog("reset async load num."); 1026 var c = function (a) { 1027 Mlog(a.type.toUpperCase()); 1028 if (e.asyncBannerLoadNum === e.asyncBannerLoadCompleteNum && e.asyncImageLoadNum === e.asyncImageLoadCompleteNum && e.asyncBannerLoadNum === e.asyncImageLoadNum && -1170 === e.asyncImageLoadNum) { 1029 var c = new Date - b; 1030 Mlog("All Done[" + c + "ms][" + a.type.toUpperCase() + "]"); 1031 K(1170 > c ? 1170 - c : 0) 1032 } 1033 }; 1034 a("body").off("ajax-image:done").on("ajax-image:done", c).off("ajax-banner:done").on("ajax-banner:done", c) 1035 }, S = function () { 1036 a("section.lazy-load").each(function () { 1037 0 <= 1038 e.asyncImageLoadNum && (e.asyncImageLoadNum++, Mlog("Loading Image: " + e.asyncImageLoadNum)); 1039 var b = a(this), c = b.find(".progressiveMedia"), d = c.find(".img-small"), 1040 f = b.attr("data-" + LocalConst.KEY_CDN_TYPE), f = getImageAddon(f), g = new Image; 1041 g.src = d.attr("data-src") + f; 1042 g.classList.add("img-large"); 1043 a(g).attr("no-zoom", !0); 1044 g.onload = function () { 1045 c.addClass("large-image-loaded"); 1046 setTimeout(function () { 1047 a(g).addClass("loaded").attr("data-action", "zoom").removeAttr("no-zoom").removeAttr("width").removeAttr("height").css("height", 1048 "").attr("data-shadow", b.attr("data-shadow")); 1049 b.replaceWith(a(g)); 1050 "undefined" !== typeof e[u("Load")] && 1 <= e[u("Load")] && remove(g); 1051 0 <= e.asyncImageLoadCompleteNum && (e.asyncImageLoadCompleteNum++, Mlog("Loaded Image: " + e.asyncImageLoadCompleteNum), e.asyncImageLoadCompleteNum === e.asyncImageLoadNum && (e.asyncImageLoadNum = -1170, e.asyncImageLoadCompleteNum = -1170, a("body").trigger("ajax-image:done"))) 1052 }, 1001) 1053 }; 1054 c.append(g) 1055 }); 1056 isNaN(e.asyncImageLoadNum) || 0 !== e.asyncImageLoadNum || (Mlog("Async Image Nothing to Load"), 1057 e.asyncImageLoadNum = -1170, e.asyncImageLoadCompleteNum = -1170, a("body").trigger("ajax-image:done")) 1058 }, T = function () { 1059 a("article img:not(code img, pre img, .lazy-load img)").each(function () { 1060 var b = a(this).attr("data-src"), c = a(this).attr("data-" + LocalConst.KEY_CDN_TYPE); 1061 null !== b && void 0 !== b && "" !== b && (c = getImageAddon(c), a(this).attr("src", b + c), a(this).removeAttr("data-src")) 1062 }) 1063 }, U = function () { 1064 if (a("#disqus_thread").length) if (e.DISQUS) DISQUS.reset({reload: !0}); else { 1065 var b = g.createElement("script"); 1066 b.type = "text/javascript"; 1067 b.async = !0; 1068 b.src = "//" + LocalConst.DISQUS_SHORT_NAME + ".disqus.com/embed.js"; 1069 (g.getElementsByTagName("head")[0] || g.getElementsByTagName("body")[0]).appendChild(b) 1070 } 1071 }, R = function (b, c, d) { 1072 var f = C();
1073 b = isNaN(b) ? a("#" + b).offset().top - f : b; 1074 c = void 0 !== c && !0 === c ? 600 : 0; 1075 a("body,html").animate({scrollTop: b}, c); 1076 "function" === typeof d && setTimeout(function () { 1077 d() 1078 }, c); 1079 return !1 1080 }, V = function (a, c) { 1081 if (e.getComputedStyle) return e.getComputedStyle(a).getPropertyValue(c); 1082 if (a.currentStyle) return a.currentStyle[c] 1083 }, W = function (a) { 1084 if (!a) return 0; 1085 var b = V(a, "transition-duration"); 1086 a = V(a, "transition-delay"); 1087 var d = parseFloat(b), f = parseFloat(a); 1088 if (!d && !f) return 0; 1089 b = b.split(",")[0]; 1090 a = a.split(",")[0]; 1091 return 1E3 * (parseFloat(b) + parseFloat(a)) 1092 }, X = function () { 1093 var a = [].slice.call(g.querySelectorAll('[data-mirages-toggle="collapse"]')); 1094 [].forEach.call(a, function (a) { 1095 a.addEventListener("click", function (b) { 1096 b = function (a, b) { 1097 if (!b.classList.contains("collapsing") && !b.classList.contains("show")) { 1098 a.classList.add("show"); 1099 b.classList.add("collapsing"); 1100 b.classList.remove("collapse"); 1101 b.style.height = b.scrollHeight + "px"; 1102 var c = W(b); 1103 setTimeout(function () { 1104 b.classList.remove("collapsing"); 1105 b.classList.add("show"); 1106 b.classList.add("collapse") 1107 }, c) 1108 } 1109 }; 1110 var c = function (a, b) { 1111 if (!b.classList.contains("collapsing") && b.classList.contains("show")) { 1112 a.classList.remove("show"); 1113 b.classList.remove("show"); 1114 b.classList.remove("collapse"); 1115 b.classList.add("collapsing"); 1116 b.style.height = ""; 1117 var c = W(b); 1118 setTimeout(function () { 1119 b.classList.remove("collapsing"); 1120 b.classList.add("collapse") 1121 }, c) 1122 } 1123 }, d = g.querySelector(a.dataset.target); 1124 d.classList.contains("show") ? c(a, d) : b(a, d) 1125 }); 1126 var b = g.querySelector(a.dataset.target); 1127 b.classList.contains("show") && !b.style.height && (b.style.height = b.scrollHeight + "px") 1128 }) 1129 }, ta = function () { 1130 try { 1131 a(".post-content table").wrap("<div class='table-responsive'></div>"), a(".post-content embed.video, .post-content video.video, .post-content iframe.video").addClass("video-4-3"), a(".post-content embed[video], .post-content video[video], .post-content iframe[video]").addClass("video-4-3"), a(".post-content embed[video-4-3], .post-content video[video-4-3], .post-content iframe[video-4-3]").addClass("video-4-3"), 1132 a(".post-content embed[video-16-9], .post-content video[video-16-9], .post-content iframe[video-16-9]").addClass("video-16-9"), a(".post-content embed, .post-content video, .post-content iframe").each(function () { 1133 0 !== this.style.height.length && (a(this).hasClass("video-4-3") || a(this).hasClass("video-16-9") || a(this).attr("not-video", "")) 1134 }), a(".post-content embed:not([not-video], [height], .video-4-3, .video-16-9, .large-content), .post-content iframe:not([not-video], [height], .video-4-3, .video-16-9, .large-content)").addClass("video-4-3"), 1135 a(".post-content embed.video-4-3, .post-content video.video-4-3, .post-content iframe.video-4-3").removeClass("video-16-9").wrap("<div class='video-container video-4-3'></div>"), a(".post-content embed.video-16-9, .post-content video.video-16-9, .post-content iframe.video-16-9").wrap("<div class='video-container video-16-9'></div>"), a(".post-content iframe, .post-content embed").each(function () { 1136 var b = a(this); 1137 b && !b.attr("src") && b.attr("data-src") && b.attr("src", b.attr("data-src")) 1138 }), a(".post-content object").each(function () { 1139 var b = 1140 a(this); 1141 b && !b.attr("data") && b.attr("data-delay") && b.attr("data", b.attr("data-delay")) 1142 }) 1143 } catch (b) { 1144 console.error(b) 1145 } 1146 }, ua = function () { 1147 a(".content-tab-title").off("click").on("click", function (b) { 1148 var c = a(this), d = c.parent(); 1149 b = d.parent(); 1150 var f = c.attr("data-tab-index"); 1151 b.find(".content-tab-title").each(function () { 1152 a(this).attr("data-tab-index") === f ? a(this).addClass("selected") : a(this).removeClass("selected") 1153 }); 1154 b.find(".content-tab-content").each(function () { 1155 a(this).attr("data-tab-index") === f ? a(this).addClass("selected") : 1156 a(this).removeClass("selected") 1157 }); 1158 b = function (a) { 1159 0 > a && (a = 0); 1160 try { 1161 a > d[0].scrollWidth - d.innerWidth() && (a = d[0].scrollWidth - d.innerWidth()) 1162 } catch (ma) { 1163 console.error(ma) 1164 } 1165 Mlog("scrollTabTo: ", a); 1166 d.animate({scrollLeft: a}, 500) 1167 }; 1168 if (!LocalConst.IS_MOBILE) { 1169 var g = d.offset().left, e = c.offset().left, h = d.innerWidth(), c = c.outerWidth(), 1170 k = d.scrollLeft(); 1171 b(e + k - g - (h - c) / 2) 1172 } 1173 }) 1174 }, Y = function () { 1175 try { 1176 a("article img:not(article .link-box img, img[no-zoom])").each(function () { 1177 a(this).attr("data-action", "zoom"); 1178 a(this).next().is("br") && 1179 a(this).next().remove() 1180 }) 1181 } catch (b) { 1182 console.error(b) 1183 } 1184 try { 1185 a(".post-content a:not(code a, pre a), #content a:not(code a, pre a), #comments a").each(function () { 1186 var b = a(this).attr("href"); 1187 b && b.startWith("http") && !b.startWith(location.origin) && a(this).attr("target", "_blank") 1188 }) 1189 } catch (b$1) { 1190 console.error(b$1) 1191 } 1192 try { 1193 a(".post-content p.more a").each(function () { 1194 a(this).removeAttr("target") 1195 }), a("li.task-list-item").each(function () { 1196 var b = a(this).parent(); 1197 b && !b.hasClass("task-list") && b.addClass("task-list") 1198 }) 1199 } catch (b$2) { 1200 console.error(b$2) 1201 } 1202 P(); 1203 ta(); 1204 ua(); 1205 try { 1206 a('form[role="search"] input[name="s"], .navbar-search-container .search-form > input.search').attr("autocomplete", "off").val(""); 1207 a('form[role="search"]').on("submit", function (b) { 1208 var c = a(this).find('input[name="s"]'); 1209 var d = a.trim(c.val() || ""); 1210 if (!d) { 1211 c.val(""); 1212 b.preventDefault(); 1213 return false 1214 } 1215 }); 1216 a(".search-form-input").on("click focus", function (b) { 1217 "undefined" !== typeof INSIGHT_CONFIG && (a("body").removeClass("display-nav"), a("#wrap").removeClass("display-nav")) 1218 }) 1219 } catch (b$3) { 1220 console.error(b$3) 1221 } 1222 try { 1223 a("#comments img.avatar[data-src]").each(function () { 1224 var b = a(this); 1225 O(b) 1226 }) 1227 } catch (b$4) { 1228 console.error(b$4) 1229 } 1230 }, Z = function () { 1231 LocalConst.ENABLE_FLOW_CHART && a("pre>code.lang-flow").each(function (b) { 1232 a(this).addClass("nohighlight").attr("data-flow-chart-index", b).parent().addClass("display-none").after('<div id="flow-chart-' + 1233 b + '" class="flow-chart"></div>') 1234 }); 1235 LocalConst.ENABLE_MERMAID && a("pre>code.lang-mermaid").each(function (b) { 1236 a(this).addClass("nohighlight").attr("data-mermaid-index", b).parent().addClass("display-none").after('<div id="mermaid-' + b + '" class="mermaid-content"></div>') 1237 }); 1238 LocalConst.HIDE_CODE_LINE_NUMBER || ra(); 1239 a("pre code").each(function (a, c) { 1240 hljs.highlightBlock(c) 1241 }) 1242 }, w = function (a, c) { 1243 var b = g.createElement("script"); 1244 b.type = "text/javascript"; 1245 "undefined" != typeof c && (b.readyState ? b.onreadystatechange = function () { 1246 if ("loaded" === 1247 b.readyState || "complete" === b.readyState) b.onreadystatechange = null, c() 1248 } : b.onload = function () { 1249 c() 1250 }); 1251 b.src = a; 1252 g.body.appendChild(b) 1253 }, va = function (a) { 1254 var b = g.getElementsByTagName("head")[0], d, f = ""; 1255 LocalConst.MATH_JAX_USE_DOLLAR && (f = "tex2jax: {inlineMath: [['$','$'], ['\\\\(','\\\\)']]},"); 1256 d = g.createElement("script"); 1257 d.type = "text/x-mathjax-config"; 1258 d[e.opera ? "innerHTML" : "text"] = "\n MathJax.Hub.Config({\n " + f + "\n skipStartupTypeset: true\n });\n "; 1259 b.appendChild(d);
1260 w(LocalConst.BASE_SCRIPT_URL + 1261 "static/mathjax/2.7.5/MathJax.js", function () { 1262 Mlog("/static/mathjax/2.7.5/MathJax.js Loaded."); 1263 w(LocalConst.BASE_SCRIPT_URL + "static/mathjax/2.7.5/config/TeX-AMS-MML_SVG.js", function () { 1264 Mlog("/static/mathjax/2.7.5/config/TeX-AMS-MML_SVG.js Loaded."); 1265 a() 1266 }) 1267 }) 1268 }, qa = function () { 1269 if (LocalConst.ENABLE_MATH_JAX) { 1270 var a = function () { 1271 "undefined" === typeof MathJax ? (Mlog("MathJax undefined."), console.error("MathJax undefined.")) : (Mlog("Rendering MathJax..."), MathJax.Hub.Queue(["Typeset", MathJax.Hub, "body"])) 1272 }; 1273 "undefined" === 1274 typeof MathJax ? (Mlog("Loading MathJax..."), va(function () { 1275 Mlog("MathJax Loaded."); 1276 a() 1277 })) : a() 1278 } 1279 }, wa = function (a) { 1280 h.flowChartRaphaelLoaded = !1; 1281 h.flowChartFlowchartLoaded = !1; 1282 w(LocalConst.BASE_SCRIPT_URL + "static/raphael/2.2.7/raphael.min.js", function () { 1283 h.flowChartRaphaelLoaded = !0; 1284 Mlog("/static/raphael/2.2.7/raphael.min.js Loaded."); 1285 h.flowChartFlowchartLoaded && a() 1286 }); 1287 w(LocalConst.BASE_SCRIPT_URL + "static/flowchart/1.10.0/flowchart.min.js", function () { 1288 h.flowChartFlowchartLoaded = !0; 1289 Mlog("/static/flowchart/1.10.0/flowchart.min.js Loaded."); 1290 h.flowChartRaphaelLoaded && a() 1291 }) 1292 }, aa = function () { 1293 if (LocalConst.ENABLE_FLOW_CHART) { 1294 var b = function () { 1295 if ("undefined" === typeof flowchart) Mlog("FlowChart undefined."), console.error("FlowChart undefined."); else { 1296 Mlog("Prepare for FlowChart..."); 1297 var b = 2; 1298 void 0 !== e.devicePixelRatio && 1.49 <= e.devicePixelRatio && (b = 1.5); 1299 var d = { 1300 x: 0, 1301 y: 0, 1302 "line-width": b, 1303 "text-margin": 15, 1304 "font-size": 13, 1305 font: "normal", 1306 "font-family": 'Consolas, Menlo, Monaco, "lucida console", "Liberation Mono", "Courier New", "andale mono", monospaceX, sans-serif', 1307 "font-weight": "normal", 1308 fill: "none", 1309 "yes-text": "yes", 1310 "no-text": "no", 1311 "arrow-end": "block", 1312 scale: 1 1313 }, b = "white"; 1314 a("body").hasClass("theme-dark") && (d["line-color"] = "white", d["element-color"] = "white", d["font-color"] = "white", b = "dark"); 1315 h.flowChartTheme === b ? Mlog("FlowChart Theme Not Change. Skip Render...") : (h.flowChartTheme = b, a("pre>code.lang-flow").each(function () { 1316 var b = a(this).attr("data-flow-chart-index"); 1317 Mlog("Rendering FlowChart: " + b); 1318 var c = this.innerText; 1319 if ("undefined" !== typeof c) try { 1320 var b = "flow-chart-" + 1321 b, e = flowchart.parse(c), h = g.querySelector("#" + b); 1322 h ? (h.innerHTML = "", e.drawSVG(b, d)) : console.warn("FlowChart Target: " + b + " Not Exists!") 1323 } catch (v) { 1324 console.error(v) 1325 } 1326 })) 1327 } 1328 }; 1329 a("body").on("mirages:theme-change", function (a, d) { 1330 b() 1331 }); 1332 "undefined" === typeof flowchart ? (Mlog("Loading FlowChart..."), wa(function () { 1333 Mlog("FlowChart Loaded."); 1334 b() 1335 })) : b() 1336 } 1337 }, ba = function () { 1338 if (LocalConst.ENABLE_MERMAID) { 1339 var b = function () { 1340 if ("undefined" === typeof mermaid) Mlog("Mermaid undefined."), console.error("Mermaid undefined."); else { 1341 Mlog("Prepare for Mermaid..."); 1342 var b = "forest"; 1343 a(body).hasClass("theme-dark") && (b = "dark"); 1344 if (h.mermaidTheme === b) Mlog("Mermaid Theme Not Change. Skip Render..."); else { 1345 h.mermaidTheme = b; 1346 var d = a("body")[0].offsetWidth; 1347 768 > d && (d = 768); 1348 mermaid.mermaidAPI.initialize({startOnLoad: !1, theme: b, gantt: {useWidth: d}}); 1349 h.mermaidIndex || (h.mermaidIndex = 0); 1350 h.mermaidIndex++; 1351 a("pre>code.lang-mermaid").each(function () { 1352 var b = a(this).attr("data-mermaid-index"); 1353 Mlog("Rendering Mermaid: " + b); 1354 var c = this.innerText, b = "mermaid-" + b, d = b + "-svg-" + h.mermaidIndex; 1355 if ("undefined" !== typeof c) try { 1356 var e = g.querySelector("#" + b); 1357 mermaid.mermaidAPI.render(d, c, function (a, b) { 1358 e.innerHTML = a; 1359 b(e); 1360 var c = g.querySelector("#" + d); 1361 c.style.fontWeight = 400; 1362 var f = c.getAttribute("viewBox"); 1363 if (f) { 1364 if (f = f.split(/\s+/), 4 === f.length) { 1365 var h = parseInt(f[0], 10), f = parseInt(f[2], 10) - h; 1366 0 < f && (c.style.maxWidth = f + "px", c.style.minWidth = .75 * f + "px") 1367 } 1368 } else f = .75 * parseInt(c.style.maxWidth, 10), 0 < f && (c.style.minWidth = f + "px") 1369 }) 1370 } catch (v) { 1371 console.error(v), (c = g.querySelector("#d" + d)) && remove(c) 1372 } 1373 }) 1374 } 1375 } 1376 }; 1377 a("body").on("mirages:theme-change", 1378 function (a, d) { 1379 b() 1380 }); 1381 "undefined" === typeof mermaid ? (Mlog("Loading Mermaid..."), w(LocalConst.BASE_SCR
1381IPT_URL + "static/mermaid/8.0.0/mermaid.min.js", function () { 1382 Mlog("Mermaid Loaded."); 1383 b() 1384 })) : b() 1385 } 1386 }, ca = function () { 1387 a("#toggle-post-qr-code").off("click").on("click", function (b) { 1388 a("body").removeClass("show-reward-qr-box").toggleClass("show-post-qr-box") 1389 }); 1390 a("#toggle-reward-qr-code").off("click").on("click", function (b) { 1391 a("body").removeClass("show-post-qr-box").toggleClass("show-reward-qr-box") 1392 }) 1393 }; 1394 e.Mirages = { 1395 setupPage: function () { 1396 U(); 1397 Y(); 1398 ca(); 1399 X() 1400 }, setupLazyLoadImage: function () { 1401 S() 1402 }, setupCDNImageOptimize: function () { 1403 T() 1404 }, version: function () { 1405 }, highlightCodeBlock: function () { 1406 Z() 1407 }, renderFlowChart: function () { 1408 aa() 1409 }, renderMermaid: function () { 1410 ba() 1411 }, doPJAXClickAction: function () { 1412 sa(); 1413 a("body").attr("data-prev-href", g.location.pathname + g.location.search + g.location.hash).removeClass("display-menu-tree"); 1414 a("#wrap").removeClass("display-menu-tree"); 1415 LocalConst.PJAX_LOAD_STYLE === LocalConst.PJAX_LOAD_STYLE_SIMPLE && a(".sp-progress").css("opacity", "1") 1416 }, doPJAXSendAction: function () { 1417 LocalConst.PJAX_LOAD_STYLE !== LocalConst.PJAX_LOAD_STYLE_SIMPLE && LocalConst.PJAX_LOAD_STYLE === LocalConst.PJAX_LOAD_STYLE_CIRCLE && a("#loader-wrapper").addClass("in"); 1418 a("#wrap").removeClass("display-nav").removeClass("display-menu-tree"); 1419 a("#footer").removeClass("display-nav"); 1420 a("#body").off("click"); 1421 a("body").removeClass("show-reward-qr-box").removeClass("show-post-qr-box").removeClass("display-nav").removeClass("display-menu-tree"); 1422 g.body.onElementHeightChangeTimer && clearTimeout(g.body.onElementHeightChangeTimer) 1423 }, doPJAXCompleteAction: function () { 1424 h.flowChartTheme = ""; 1425 h.mermaidTheme = ""; 1426 h.mermaidIndex = 0; 1427 a("body").off("mirages:theme-change"); 1428 LocalConst.PJAX_LOAD_STYLE !== LocalConst.PJAX_LOAD_STYLE_SIMPLE && LocalConst.PJAX_LOAD_STYLE === LocalConst.PJAX_LOAD_STYLE_CIRCLE && a("#loader-wrapper").removeClass("in"); 1429 H(); 1430 var b = a("body"), c = b.attr("data-prev-href"), 1431 d = g.location.pathname + g.location.search + g.location.hash; 1432 _czc.push(["_trackPageview", 1433 d, c]); 1434 _hmt.push(["_trackPageview", d]); 1435 pangu.spacingElementByClassName("container"); 1436 isNaN(e.asyncBannerLoadNum) || 0 !== e.asyncBannerLoadNum || (Mlog("Async Banner Nothing to Load"), e.asyncBannerLoadNum = -1170, e.asyncBannerLoadCompleteNum = -1170, b.trigger("ajax-banner:done")); 1437 S(); 1438 T(); 1439 Y(); 1440 Z(); 1441 ca(); 1442 b = location.hash.indexOf("#"); 1443 0 > b || (b = e.location.hash.substring(b + 1), R(b)); 1444 G(); 1445 X(); 1446 aa(); 1447 ba(); 1448 if ("undefined" !== typeof APlayerOptions && "undefined" !== typeof APlayers) for (b = APlayerOptions.length, c = 0; c < b; c++) APlayers[c] = 1449 new APlayer({ 1450 element: g.getElementById("player" + APlayerOptions[c].id), 1451 narrow: !1, 1452 preload: APlayerOptions[c].preload, 1453 mutex: APlayerOptions[c].mutex, 1454 autoplay: APlayerOptions[c].autoplay, 1455 showlrc: APlayerOptions[c].showlrc, 1456 music: APlayerOptions[c].music, 1457 theme: APlayerOptions[c].theme 1458 }), APlayers[c].init(); 1459 if ("undefined" !== typeof dPlayerOptions && "undefined" !== typeof dPlayers) for (b = dPlayerOptions.length, c = 0; c < b; c++) d = g.getElementById("player" + dPlayerOptions[c].id), "undefined" !== typeof d && null !== d && (dPlayers[c] = 1460 new DPlayer({ 1461 element: d, 1462 autoplay: dPlayerOptions[c].autoplay, 1463 video: dPlayerOptions[c].video, 1464 theme: dPlayerOptions[c].theme, 1465 danmaku: dPlayerOptions[c].danmaku 1466 })); 1467 loadGithubRepos(); 1468 LocalConst.COMMENT_SYSTEM === LocalConst.COMMENT_SYSTEM_DISQUS ? U() : LocalConst.COMMENT_SYSTEM === LocalConst.COMMENT_SYSTEM_EMBED && (J(), I()) 1469 } 1470 }; 1471 String.prototype.startWith = function (a) { 1472 return null === a || "" === a || 0 === this.length || a.length > this.length ? !1 : this.substr(0, a.length) === a 1473 } 1474 e.__Y__ = Y; 1475})(jQuery, window, document); 1476!function (e) { 1477 var t = "object" == typeof window && window || "object" == typeof self && self; 1478 "undefined" != typeof exports ? e(exports) : t && (t.hljs = e({}), "function" == typeof define && define.amd && define([], function () { 1479 return t.hljs 1480 })) 1481}(function (n) { 1482 var b = [], o = Object.keys, h = {}, p = {}, t = /^(no-?highlight|plain|text)$/i, m = /\blang(?:uage)?-([\w-]+)\b/i, 1483 r = /((^(<[^>]+>|\t|)+|(?:\n)))/gm, a = { 1484 case_insensitive: "cI", 1485 lexemes: "l", 1486 contains: "c", 1487 keywords: "k", 1488 subLanguage: "sL", 1489 className: "cN", 1490 begin: "b", 1491 beginKeywords: "bK", 1492 end: "e", 1493 endsWithParent: "eW", 1494 illegal: "i", 1495 excludeBegin: "eB", 1496 excludeEnd: "eE", 1497 returnBegin: "rB", 1498 returnEnd: "rE", 1499 relevance: "r", 1500 variants: "v", 1501 IDENT_RE: "IR", 1502 UNDERSCORE_IDENT_RE: "UIR", 1503 NUMBER_RE: "NR", 1504 C_NUMBER_RE: "CNR", 1505 BINARY_NUMBER_RE: "BNR", 1506 RE_STARTERS_RE: "RSR", 1507 BACKSLASH_ESCAPE: "BE", 1508 APOS_STRING_MODE: "ASM", 1509 QUOTE_STRING_MODE: "QSM", 1510 PHRASAL_WORDS_MODE: "PWM", 1511 C_LINE_COMMENT_MODE: "CLCM", 1512 C_BLOCK_COMMENT_MODE: "CBCM", 1513 HASH_COMMENT_MODE: "HCM", 1514 NUMBER_MODE: "NM", 1515 C_NUMBER_MODE: "CNM", 1516 BINARY_NUMBER_MODE: "BNM", 1517 CSS_NUMBER_MODE: "CSSNM", 1518 REGEXP_MODE: "RM", 1519 TITLE_MODE: "TM", 1520 UNDERSCORE_TITLE_MODE: "UTM", 1521 COMMENT: "C", 1522 beginRe: "bR", 1523 endRe: "eR", 1524 illegalRe: "iR", 1525 lexemesRe: "lR", 1526 terminators: "t", 1527 terminator_end: "tE" 1528 }, N = "</span>", v = {classPrefix: "hljs-", tabReplace: null, useBR: !1, languages: void 0}; 1529 1530 function y(e) { 1531 return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">") 1532 } 1533 1534 function f(e) {
vendor: 9,265 bytes, lines 1535-1740
1535 return e.nodeName.toLowerCase() 1536 } 1537 1538 function w(e, t) { 1539 var r = e && e.exec(t); 1540 return r && 0 === r.index 1541 } 1542 1543 function g(e) { 1544 return t.test(e) 1545 } 1546 1547 function u(e) { 1548 var t, r = {}, a = Array.prototype.slice.call(arguments, 1); 1549 for (t in e) r[t] = 1550 e[t]; 1551 return a.forEach(function (e) { 1552 for (t in e) r[t] = e[t] 1553 }), r 1554 } 1555 1556 function _(e) { 1557 var n = []; 1558 return function e(t, r) { 1559 for (var a = t.firstChild; a; a = a.nextSibling) 3 === a.nodeType ? r += a.nodeValue.length : 1 === a.nodeType && (n.push({ 1560 event: "start", 1561 offset: r, 1562 node: a 1563 }), r = e(a, r), f(a).match(/br|hr|img|input/) || n.push({event: "stop", offset: r, node: a})); 1564 return r 1565 }(e, 0), n 1566 } 1567 1568 function i(e) { 1569 if (a && !e.langApiRestored) { 1570 for (var t in e.langApiRestored = !0, a) e[t] && (e[a[t]] = e[t]); 1571 (e.c || []).concat(e.v || []).forEach(i) 1572 } 1573 } 1574 1575 function E(s) { 1576 function l(e) { 1577 return e && 1578 e.source || e 1579 } 1580 1581 function c(e, t) { 1582 return new RegExp(l(e), "m" + (s.cI ? "i" : "") + (t ? "g" : "")) 1583 } 1584 1585 !function t(r, e) { 1586 if (!r.compiled) { 1587 if (r.compiled = !0, r.k = r.k || r.bK, r.k) { 1588 var a = {}, n = function (r, e) { 1589 s.cI && (e = e.toLowerCase()), e.split(" ").forEach(function (e) { 1590 var t = e.split("|"); 1591 a[t[0]] = [r, t[1] ? Number(t[1]) : 1] 1592 }) 1593 }; 1594 "string" == typeof r.k ? n("keyword", r.k) : o(r.k).forEach(function (e) { 1595 n(e, r.k[e]) 1596 }), r.k = a 1597 } 1598 r.lR = c(r.l || /\w+/, !0), e && (r.bK && (r.b = "\\b(" + r.bK.split(" ").join("|") + ")\\b"), r.b || (r.b = /\B|\b/), r.bR = c(r.b), r.endSameAsBegin && (r.e = 1599 r.b), r.e || r.eW || (r.e = /\B|\b/), r.e && (r.eR = c(r.e)), r.tE = l(r.e) || "", r.eW && e.tE && (r.tE += (r.e ? "|" : "") + e.tE)), r.i && (r.iR = c(r.i)), null == r.r && (r.r = 1), r.c || (r.c = []), r.c = Array.prototype.concat.apply([], r.c.map(function (e) { 1600 return (t = "self" === e ? r : e).v && !t.cached_variants && (t.cached_variants = t.v.map(function (e) { 1601 return u(t, {v: null}, e) 1602 })), t.cached_variants || t.eW && [u(t)] || [t]; 1603 var t 1604 })), r.c.forEach(function (e) { 1605 t(e, r) 1606 }), r.starts && t(r.starts, e); 1607 var i = r.c.map(function (e) { 1608 return e.bK ? "\\.?(?:" + e.b + ")\\.?" : e.b 1609 }).concat([r.tE, 1610 r.i]).map(l).filter(Boolean); 1611 r.t = i.length ? c(function (e, t) { 1612 for (var r = /\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./, a = 0, n = "", i = 0; i < e.length; i++) { 1613 var s = a, c = l(e[i]); 1614 for (0 < i && (n += t); 0 < c.length;) { 1615 var o = r.exec(c); 1616 if (null == o) { 1617 n += c; 1618 break 1619 } 1620 n += c.substring(0, o.index), c = c.substring(o.index + o[0].length), "\\" == o[0][0] && o[1] ? n += "\\" + String(Number(o[1]) + s) : (n += o[0], "(" == o[0] && a++) 1621 } 1622 } 1623 return n 1624 }(i, "|"), !0) : { 1625 exec: function () { 1626 return null 1627 } 1628 } 1629 } 1630 }(s) 1631 } 1632 1633 function k(e, t, c, r) { 1634 function o(e, t, r, a) { 1635 var n = '<span class="' + (a ? "" : v.classPrefix); 1636 return (n += e + '">') + t + (r ? "" : N) 1637 } 1638 1639 function l() { 1640 p += null != b.sL ? function () { 1641 var e = "string" == typeof b.sL; 1642 if (e && !h[b.sL]) return y(m); 1643 var t = e ? k(b.sL, m, !0, i[b.sL]) : x(m, b.sL.length ? b.sL : void 0); 1644 return 0 < b.r && (f += t.r), e && (i[b.sL] = t.top), o(t.language, t.value, !1, !0) 1645 }() : function () { 1646 var e, t, r, a, n, i, s; 1647 if (!b.k) return y(m); 1648 for (a = "", t = 0, b.lR.lastIndex = 0, r = b.lR.exec(m); r;) a += y(m.substring(t, r.index)), n = b, i = r, s = d.cI ? i[0].toLowerCase() : i[0], (e = n.k.hasOwnProperty(s) && n.k[s]) ? (f += e[1], a += o(e[0], y(r[0]))) : a += y(r[0]), t = b.lR.lastIndex, 1649 r = b.lR.exec(m); 1650 return a + y(m.substr(t)) 1651 }(), m = "" 1652 } 1653 1654 function u(e) { 1655 p += e.cN ? o(e.cN, "", !0) : "", b = Object.create(e, {parent: {value: b}}) 1656 } 1657 1658 function a(e, t) { 1659 if (m += e, null == t) return l(), 0; 1660 var r = function (e, t) { 1661 var r, a, n; 1662 for (r = 0, a = t.c.length; r < a; r++) if (w(t.c[r].bR, e)) return t.c[r].endSameAsBegin && (t.c[r].eR = (n = t.c[r].bR.exec(e)[0], new RegExp(n.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"), "m"))), t.c[r] 1663 }(t, b); 1664 if (r) return r.skip ? m += t : (r.eB && (m += t), l(), r.rB || r.eB || (m = t)), u(r), r.rB ? 0 : t.length; 1665 var a, n, i = function e(t, r) { 1666 if (w(t.eR, 1667 r)) { 1668 for (; t.endsParent && t.parent;) t = t.parent; 1669 return t 1670 } 1671 if (t.eW) return e(t.parent, r) 1672 }(b, t); 1673 if (i) { 1674 var s = b; 1675 for (s.skip ? m += t : (s.rE || s.eE || (m += t), l(), s.eE && (m = t)); b.cN && (p += N), b.skip || b.sL || (f += b.r), (b = b.parent) !== i.parent;) ; 1676 return i.starts && (i.endSameAsBegin && (i.starts.eR = i.eR), u(i.starts)), s.rE ? 0 : t.length 1677 } 1678 if (a = t, n = b, !c && w(n.iR, a)) throw new Error('Illegal lexeme "' + t + '" for mode "' + (b.cN || "<unnamed>") + '"'); 1679 return m += t, t.length || 1 1680 } 1681 1682 var d = C(e); 1683 if (!d) throw new Error('Unknown language: "' + e + '"'); 1684 E(d); 1685 var n, b = 1686 r || d, i = {}, p = ""; 1687 for (n = b; n !== d; n = n.parent) n.cN && (p = o(n.cN, "", !0) + p); 1688 var m = "", f = 0; 1689 try { 1690 for (var s, g, _ = 0; b.t.lastIndex = _, s = b.t.exec(t);) g = a(t.substring(_, s.index), s[0]), _ = s.index + g; 1691 for (a(t.substr(_)), n = b; n.parent; n = n.parent) n.cN && (p += N); 1692 return {r: f, value: p, language: e, top: b} 1693 } catch (e$5) { 1694 if (e$5.message && -1 !== e$5.message.indexOf("Illegal")) return {r: 0, value: y(t)}; 1695 throw e$5; 1696 } 1697 } 1698 1699 function x(r, e) { 1700 e = e || v.languages || o(h); 1701 var a = {r: 0, value: y(r)}, n = a; 1702 return e.filter(C).filter(l).forEach(function (e) { 1703 var t = k(e, r, !1); 1704 t.language = 1705 e, t.r > n.r && (n = t), t.r > a.r && (n = a, a = t) 1706 }), n.language && (a.second_best = n), a 1707 } 1708 1709 function M(e) { 1710 return v.tabReplace || v.useBR ? e.replace(r, function (e, t) { 1711 return v.useBR && "\n" === e ? "<br>" : v.tabReplace ? t.replace(/\t/g, v.tabReplace) : "" 1712 }) : e 1713 } 1714 1715 function s(e) { 1716 var t, r, a, n, i, s, c, o, l, u, d = function (e) { 1717 var t, r, a, n, i = e.className + " "; 1718 if (i += e.parentNode ? e.parentNode.className : "", r = m.exec(i)) return C(r[1]) ? r[1] : "no-highlight"; 1719 for (t = 0, a = (i = i.split(/\s+/)).length; t < a; t++) if (g(n = i[t]) || C(n)) return n 1720 }(e); 1721 g(d) || (v.useBR ? (t = document.createElementNS("http://www.w3.org/1999/xhtml", 1722 "div")).innerHTML = e.innerHTML.replace(/\n/g, "").replace(/<br[ \/]*>/g, "\n") : t = e, i = t.textContent, a = d ? k(d, i, !0) : x(i), (r = _(t)).length && ((n = document.createElementNS("http://www.w3.org/1999/xhtml", "div")).innerHTML = a.value, a.value = function (e, t, r) { 1723 var a = 0, n = "", i = []; 1724 1725 function s() { 1726 return e.length && t.length ? e[0].offset !== t[0].offset ? e[0].offset < t[0].offset ? e : t : "start" === t[0].event ? e : t : e.length ? e : t 1727 } 1728 1729 function c(e) { 1730 n += "<" + f(e) + b.map.call(e.attributes, function (e) { 1731 return " " + e.nodeName + '="' + y(e.value).replace('"', 1732 """) + '"' 1733 }).join("") + ">" 1734 } 1735 1736 function o(e) { 1737 n += "</" + f(e) + ">" 1738 } 1739 1740 function l(e) {
vendor: 21,573 bytes, lines 1741-2151
1741 ("start" === e.event ? c : o)(e.node) 1742 } 1743 1744 for (; e.length || t.length;) { 1745 var u = s(); 1746 if (n += y(r.substring(a, u[0].offset)), a = u[0].offset, u === e) { 1747 for (i.reverse().forEach(o); l(u.splice(0, 1)[0]), (u = s()) === e && u.length && u[0].offset === a;) ; 1748 i.reverse().forEach(c) 1749 } else "start" === u[0].event ? i.push(u[0].node) : i.pop(), l(u.splice(0, 1)[0]) 1750 } 1751 return n + y(r.substr(a)) 1752 }(r, _(n), i)), a.value = M(a.value), e.innerHTML = a.value, e.className = (s = e.className, c = d, o = a.language, l = 1753 c ? p[c] : o, u = [s.trim()], s.match(/\bhljs\b/) || u.push("hljs"), -1 === s.indexOf(l) && u.push(l), u.join(" ").trim()), e.result = { 1754 language: a.language, 1755 re: a.r 1756 }, a.second_best && (e.second_best = {language: a.second_best.language, re: a.second_best.r})) 1757 } 1758 1759 function c() { 1760 if (!c.called) { 1761 c.called = !0; 1762 var e = document.querySelectorAll("pre code"); 1763 b.forEach.call(e, s) 1764 } 1765 } 1766 1767 function C(e) { 1768 return e = (e || "").toLowerCase(), h[e] || h[p[e]] 1769 } 1770 1771 function l(e) { 1772 var t = C(e); 1773 return t && !t.disableAutodetect 1774 } 1775 1776 return n.highlight = k, n.highlightAuto = x, n.fixMarkup = M, 1777 n.highlightBlock = s, n.configure = function (e) { 1778 v = u(v, e) 1779 }, n.initHighlighting = c, n.initHighlightingOnLoad = function () { 1780 addEventListener("DOMContentLoaded", c, !1), addEventListener("load", c, !1) 1781 }, n.registerLanguage = function (t, e) { 1782 var r = h[t] = e(n); 1783 i(r), r.aliases && r.aliases.forEach(function (e) { 1784 p[e] = t 1785 }) 1786 }, n.listLanguages = function () { 1787 return o(h) 1788 }, n.getLanguage = C, n.autoDetection = l, n.inherit = u, n.IR = n.IDENT_RE = "[a-zA-Z]\\w*", n.UIR = n.UNDERSCORE_IDENT_RE = "[a-zA-Z_]\\w*", n.NR = n.NUMBER_RE = "\\b\\d+(\\.\\d+)?", n.CNR = n.C_NUMBER_RE = 1789 "(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)", n.BNR = n.BINARY_NUMBER_RE = "\\b(0b[01]+)", n.RSR = n.RE_STARTERS_RE = "!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~", n.BE = n.BACKSLASH_ESCAPE = { 1790 b: "\\\\[\\s\\S]", 1791 r: 0 1792 }, n.ASM = n.APOS_STRING_MODE = { 1793 cN: "string", 1794 b: "'", 1795 e: "'", 1796 i: "\\n", 1797 c: [n.BE] 1798 }, n.QSM = n.QUOTE_STRING_MODE = { 1799 cN: "string", 1800 b: '"', 1801 e: '"', 1802 i: "\\n", 1803 c: [n.BE] 1804 }, n.PWM = n.PHRASAL_WORDS_MODE = {b: /\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/}, 1805 n.C = n.COMMENT = function (e, t, r) { 1806 var a = n.inherit({cN: "comment", b: e, e: t, c: []}, r || {}); 1807 return a.c.push(n.PWM), a.c.push({cN: "doctag", b: "(?:TODO|FIXME|NOTE|BUG|XXX):", r: 0}), a 1808 }, n.CLCM = n.C_LINE_COMMENT_MODE = n.C("//", "$"), n.CBCM = n.C_BLOCK_COMMENT_MODE = n.C("/\\*", "\\*/"), n.HCM = n.HASH_COMMENT_MODE = n.C("#", "$"), n.NM = n.NUMBER_MODE = { 1809 cN: "number", 1810 b: n.NR, 1811 r: 0 1812 }, n.CNM = n.C_NUMBER_MODE = {cN: "number", b: n.CNR, r: 0}, n.BNM = n.BINARY_NUMBER_MODE = { 1813 cN: "number", 1814 b: n.BNR, 1815 r: 0 1816 }, n.CSSNM = n.CSS_NUMBER_MODE = { 1817 cN: "number", 1818 b: n.NR + "(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?", 1819 r: 0 1820 }, n.RM = n.REGEXP_MODE = { 1821 cN: "regexp", 1822 b: /\//, 1823 e: /\/[gimuy]*/, 1824 i: /\n/, 1825 c: [n.BE, {b: /\[/, e: /\]/, r: 0, c: [n.BE]}] 1826 }, n.TM = n.TITLE_MODE = {cN: "title", b: n.IR, r: 0}, n.UTM = n.UNDERSCORE_TITLE_MODE = { 1827 cN: "title", 1828 b: n.UIR, 1829 r: 0 1830 }, n.METHOD_GUARD = {b: "\\.\\s*" + n.UIR, r: 0}, n.registerLanguage("apache", function (e) { 1831 var t = {cN: "number", b: "[\\$%]\\d+"}; 1832 return { 1833 aliases: ["apacheconf"], cI: !0, c: [e.HCM, {cN: "section", b: "</?", e: ">"}, { 1834 cN: "attribute", 1835 b: /\w+/, 1836 r: 0, 1837 k: {nomarkup: "order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"}, 1838 starts: { 1839 e: /$/, 1840 r: 0, 1841 k: {literal: "on off all"}, 1842 c: [{cN: "meta", b: "\\s\\[", e: "\\]$"}, { 1843 cN: "variable", 1844 b: "[\\$%]\\{", 1845 e: "\\}", 1846 c: ["self", t] 1847 }, t, e.QSM] 1848 } 1849 }], i: /\S/ 1850 } 1851 }), n.registerLanguage("bash", function (e) { 1852 var t = {cN: "variable", v: [{b: /\$[\w\d#@][\w\d_]*/}, {b: /\$\{(.*?)}/}]}, 1853 r = {cN: "string", b: /"/, e: /"/, c: [e.BE, t, {cN: "variable", b: /\$\(/, e: /\)/, c: [e.BE]}]}; 1854 return { 1855 aliases: ["sh", "zsh"], 1856 l: /\b-?[a-z\._]+\b/, 1857 k: { 1858 keyword: "if then else elif fi for while in do done case esac function", 1859 literal: "true false", 1860 built_in: "break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp", 1861 _: "-ne -eq -lt -gt -f -d -e -s -l -a" 1862 }, 1863 c: [{cN: "meta", b: /^#![^\n]+sh\s*$/, r: 10}, { 1864 cN: "function", 1865 b: /\w[\w\d_]*\s*\(\s*\)\s*\{/, 1866 rB: !0, 1867 c: [e.inherit(e.TM, {b: /\w[\w\d_]*/})], 1868 r: 0 1869 }, e.HCM, r, {cN: "string", b: /'/, e: /'/}, t] 1870 } 1871 }), n.registerLanguage("coffeescript", function (e) { 1872 var t = { 1873 keyword: "in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger super yield import export from as default await then unless until loop of by when and or is isnt not", 1874 literal: "true false null undefined yes no on off", 1875 built_in: "npm require console print module global window document" 1876 }, r = "[A-Za-z$_][0-9A-Za-z$_]*", a = {cN: "subst", b: /#\{/, e: /}/, k: t}, 1877 n = [e.BNM, e.inherit(e.CNM, {starts: {e: "(\\s*/)?", r: 0}}), { 1878 cN: "string", 1879 v: [{b: /'''/, e: /'''/, c: [e.BE]}, {b: /'/, e: /'/, c: [e.BE]}, { 1880 b: /"""/, 1881 e: /"""/, 1882 c: [e.BE, a] 1883 }, {b: /"/, e: /"/, c: [e.BE, a]}] 1884 }, { 1885 cN: "regexp", 1886 v: [{b: "///", e: "///", c: [a, e.HCM]}, { 1887 b: "//[gim]*", 1888 r: 0 1889 }, {b: /\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/}] 1890 }, {b: "@" + r}, {sL: "javascript", eB: !0, eE: !0, v: [{b: "```", e: "```"}, {b: "`", e: "`"}]}]; 1891 a.c = n; 1892 var i = 1893 e.inherit(e.TM, {b: r}), s = "(\\(.*\\))?\\s*\\B[-=]>", 1894 c = {cN: "params", b: "\\([^\\(]", rB: !0, c: [{b: /\(/, e: /\)/, k: t, c: ["self"].concat(n)}]}; 1895 return { 1896 aliases: ["coffee", "cson", "iced"], 1897 k: t, 1898 i: /\/\*/, 1899 c: n.concat([e.C("###", "###"), e.HCM, { 1900 cN: "function", 1901 b: "^\\s*" + r + "\\s*=\\s*" + s, 1902 e: "[-=]>", 1903 rB: !0, 1904 c: [i, c] 1905 }, {b: /[:\(,=]\s*/, r: 0, c: [{cN: "function", b: s, e: "[-=]>", rB: !0, c: [c]}]}, { 1906 cN: "class", 1907 bK: "class", 1908 e: "$", 1909 i: /[:="\[\]]/, 1910 c: [{bK: "extends", eW: !0, i: /[:="\[\]]/, c: [i]}, i] 1911 }, {b: r + ":", e: ":", rB: !0, rE: !0, r: 0}]) 1912 } 1913 }), n.registerLanguage("cpp", 1914 function (e) { 1915 var t = {cN: "keyword", b: "\\b[a-z\\d_]*_t\\b"}, r = { 1916 cN: "string", 1917 v: [{ 1918 b: '(u8?|U|L)?"', 1919 e: '"', 1920 i: "\\n", 1921 c: [e.BE] 1922 }, {b: /(?:u8?|U|L)?R"([^()\\ ]{0,16})\((?:.|\n)*?\)\1"/}, {b: "'\\\\?.", e: "'", i: "."}] 1923 }, a = { 1924 cN: "number", 1925 v: [{b: "\\b(0b[01']+)"}, {b: "(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"}, {b: "(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}], 1926 r: 0 1927 }, n = { 1928 cN: "meta", 1929 b: /#\s*[a-z]+\b/, 1930 e: /$/, 1931 k: {"meta-keyword": "if else elif endif define undef warning error line pragma ifdef ifndef include"}, 1932 c: [{b: /\\\n/, r: 0}, e.inherit(r, {cN: "meta-string"}), { 1933 cN: "meta-string", 1934 b: /<[^\n>]*>/, 1935 e: /$/, 1936 i: "\\n" 1937 }, e.CLCM, e.CBCM] 1938 }, i = e.IR + "\\s*\\(", s = { 1939 keyword: "int float while private char catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignof constexpr decltype noexcept static_assert thread_local restrict _Bool complex _Complex _Imaginary atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and or not", 1940 built_in: "std string cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr abort abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr", 1941 literal: "true false nullptr NULL" 1942 }, c = [t, e.CLCM, e.CBCM, a, r]; 1943 return { 1944 aliases: ["c", "cc", "h", "c++", "h++", "hpp"], 1945 k: s, 1946 i: "</", 1947 c: c.concat([n, { 1948 b: "\\b(deque|list|queue|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array)\\s*<", 1949 e: ">", 1950 k: s, 1951 c: ["self", t] 1952 }, {b: e.IR + "::", k: s}, { 1953 v: [{b: /=/, e: /;/}, {b: /\(/, e: /\)/}, { 1954 bK: "new throw return else", 1955 e: /;/ 1956 }], k: s, c: c.concat([{b: /\(/, e: /\)/, k: s, c: c.concat(["self"]), r: 0}]), r: 0 1957 }, { 1958 cN: "function", 1959 b: "(" + e.IR + "[\\*&\\s]+)+" + 1960 i, 1961 rB: !0, 1962 e: /[{;=]/, 1963 eE: !0, 1964 k: s, 1965 i: /[^\w\s\*&]/, 1966 c: [{b: i, rB: !0, c: [e.TM], r: 0}, { 1967 cN: "params", 1968 b: /\(/, 1969 e: /\)/, 1970 k: s, 1971 r: 0, 1972 c: [e.CLCM, e.CBCM, r, a, t, { 1973 b: /\(/, 1974 e: /\)/, 1975 k: s, 1976 r: 0, 1977 c: ["self", e.CLCM, e.CBCM, r, a, t] 1978 }] 1979 }, e.CLCM, e.CBCM, n] 1980 }, {cN: "class", bK: "class struct", e: /[{;:]/, c: [{b: /</, e: />/, c: ["self"]}, e.TM]}]), 1981 exports: {preprocessor: n, strings: r, k: s} 1982 } 1983 }), n.registerLanguage("cs", function (e) { 1984 var t = { 1985 keyword: "abstract as base bool break byte case catch char checked const continue decimal default delegate do double enum event explicit extern finally fixed float for foreach goto if implicit in int interface internal is lock long nameof object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this try typeof uint ulong unchecked unsafe ushort using virtual void volatile while add alias ascending async await by descending dynamic equals from get global group into join let on orderby partial remove select set value var where yield", 1986 literal: "null false true" 1987 }, r = { 1988 cN: "number", 1989 v: [{b: "\\b(0b[01']+)"}, {b: "(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"}, {b: "(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}], 1990 r: 0 1991 }, a = {cN: "string", b: '@"', e: '"', c: [{b: '""'}]}, n = e.inherit(a, {i: /\n/}), 1992 i = {cN: "subst", b: "{", e: "}", k: t}, s = e.inherit(i, {i: /\n/}), 1993 c = {cN: "string", b: /\$"/, e: '"', i: /\n/, c: [{b: "{{"}, {b: "}}"}, e.BE, s]}, 1994 o = {cN: "string", b: /\$@"/, e: '"', c: [{b: "{{"}, {b: "}}"}, {b: '""'}, i]}, l = e.inherit(o, { 1995 i: /\n/, 1996 c: [{b: "{{"}, {b: "}}"}, {b: '""'}, s] 1997 }); 1998 i.c = [o, c, a, e.ASM, e.QSM, r, e.CBCM], s.c = [l, c, n, e.ASM, e.QSM, r, e.inherit(e.CBCM, {i: /\n/})]; 1999 var u = {v: [o, c, a, e.ASM, e.QSM]}, d = e.IR + "(<" + e.IR + "(\\s*,\\s*" + e.IR + ")*>)?(\\[\\])?"; 2000 return { 2001 aliases: ["csharp", "c#"], 2002 k: t, 2003 i: /::/, 2004 c: [e.C("///", "$", { 2005 rB: !0, 2006 c: [{cN: "doctag", v: [{b: "///", r: 0}, {b: "\x3c!--|--\x3e"}, {b: "</?", e: ">"}]}] 2007 }), e.CLCM, e.CBCM, { 2008 cN: "meta", 2009 b: "#", 2010 e: "$", 2011 k: {"meta-keyword": "if else elif endif define undef warning error line region endregion pragma checksum"} 2012 }, u, r, { 2013 bK: "class interface", 2014 e: /[{;=]/, i: /[^\s:,]/, c: [e.TM, e.CLCM, e.CBCM] 2015 }, { 2016 bK: "namespace", 2017 e: /[{;=]/, 2018 i: /[^\s:]/, 2019 c: [e.inherit(e.TM, {b: "[a-zA-Z](\\.?\\w)*"}), e.CLCM, e.CBCM] 2020 }, { 2021 cN: "meta", 2022 b: "^\\s*\\[", 2023 eB: !0, 2024 e: "\\]", 2025 eE: !0, 2026 c: [{cN: "meta-string", b: /"/, e: /"/}] 2027 }, {bK: "new return throw await else", r: 0}, { 2028 cN: "function", 2029 b: "(" + d + "\\s+)+" + e.IR + "\\s*\\(", 2030 rB: !0, 2031 e: /\s*[{;=]/, 2032 eE: !0, 2033 k: t, 2034 c: [{b: e.IR + "\\s*\\(", rB: !0, c: [e.TM], r: 0}, { 2035 cN: "params", 2036 b: /\(/, 2037 e: /\)/, 2038 eB: !0, 2039 eE: !0, 2040 k: t, 2041 r: 0, 2042 c: [u, r, e.CBCM] 2043 }, e.CLCM, e.CBCM] 2044 }] 2045 } 2046 }), n.registerLanguage("css", function (e) { 2047 var t = 2048 { 2049 b: /[A-Z\_\.\-]+\s*:/, 2050 rB: !0, 2051 e: ";", 2052 eW: !0, 2053 c: [{ 2054 cN: "attribute", 2055 b: /\S/, 2056 e: ":", 2057 eE: !0, 2058 starts: { 2059 eW: !0, 2060 eE: !0, 2061 c: [{ 2062 b: /[\w-]+\(/, 2063 rB: !0, 2064 c: [{cN: "built_in", b: /[\w-]+/}, {b: /\(/, e: /\)/, c: [e.ASM, e.QSM]}] 2065 }, e.CSSNM, e.QSM, e.ASM, e.CBCM, {cN: "number", b: "#[0-9A-Fa-f]+"}, { 2066 cN: "meta", 2067 b: "!important" 2068 }] 2069 } 2070 }] 2071 }; 2072 return { 2073 cI: !0, 2074 i: /[=\/|'\$]/, 2075 c: [e.CBCM, {cN: "selector-id", b: /#[A-Za-z0-9_-]+/}, { 2076 cN: "selector-class", 2077 b: /\.[A-Za-z0-9_-]+/ 2078 }, {cN: "selector-attr", b: /\[/, e: /\]/, i: "$"}, { 2079 cN: "selector-pseudo", 2080 b: /:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/ 2081 }, { 2082 b: "@(font-face|page)", 2083 l: "[a-z-]+", k: "font-face page" 2084 }, { 2085 b: "@", 2086 e: "[{;]", 2087 i: /:/, 2088 c: [{cN: "keyword", b: /\w+/}, {b: /\s/, eW: !0, eE: !0, r: 0, c: [e.ASM, e.QSM, e.CSSNM]}] 2089 }, {cN: "selector-tag", b: "[a-zA-Z-][a-zA-Z0-9_-]*", r: 0}, {b: "{", e: "}", i: /\S/, c: [e.CBCM, t]}] 2090 } 2091 }), n.registerLanguage("diff", function (e) { 2092 return { 2093 aliases: ["patch"], 2094 c: [{ 2095 cN: "meta", 2096 r: 10, 2097 v: [{b: /^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/}, {b: /^\*\*\* +\d+,\d+ +\*\*\*\*$/}, {b: /^\-\-\- +\d+,\d+ +\-\-\-\-$/}] 2098 }, { 2099 cN: "comment", 2100 v: [{b: /Index: /, e: /$/}, {b: /={3,}/, e: /$/}, {b: /^\-{3}/, e: /$/}, {b: /^\*{3} /, e: /$/}, 2101 {b: /^\+{3}/, e: /$/}, {b: /\*{5}/, e: /\*{5}$/}] 2102 }, {cN: "addition", b: "^\\+", e: "$"}, {cN: "deletion", b: "^\\-", e: "$"}, { 2103 cN: "addition", 2104 b: "^\\!", 2105 e: "$" 2106 }] 2107 } 2108 }), n.registerLanguage("http", function (e) { 2109 var t = "HTTP/[0-9\\.]+"; 2110 return { 2111 aliases: ["https"], 2112 i: "\\S", 2113 c: [{b: "^" + t, e: "$", c: [{cN: "number", b: "\\b\\d{3}\\b"}]}, { 2114 b: "^[A-Z]+ (.*?) " + t + "$", 2115 rB: !0, 2116 e: "$", 2117 c: [{cN: "string", b: " ", e: " ", eB: !0, eE: !0}, {b: t}, {cN: "keyword", b: "[A-Z]+"}] 2118 }, {cN: "attribute", b: "^\\w", e: ": ", eE: !0, i: "\\n|\\s|=", starts: {e: "$", r: 0}}, { 2119 b: "\\n\\n", 2120 starts: {sL: [], eW: !0} 2121 }] 2122 } 2123 }), 2124 n.registerLanguage("ini", function (e) { 2125 var t = { 2126 cN: "string", 2127 c: [e.BE], 2128 v: [{b: "'''", e: "'''", r: 10}, {b: '"""', e: '"""', r: 10}, {b: '"', e: '"'}, {b: "'", e: "'"}] 2129 }; 2130 return { 2131 aliases: ["toml"], 2132 cI: !0, 2133 i: /\S/, 2134 c: [e.C(";", "$"), e.HCM, {cN: "section", b: /^\s*\[+/, e: /\]+/}, { 2135 b: /^[a-z0-9\[\]_\.-]+\s*=\s*/, 2136 e: "$", 2137 rB: !0, 2138 c: [{cN: "attr", b: /[a-z0-9\[\]_\.-]+/}, { 2139 b: /=/, 2140 eW: !0, 2141 r: 0, 2142 c: [{cN: "literal", b: /\bon|off|true|false|yes|no\b/}, { 2143 cN: "variable", 2144 v: [{b: /\$[\w\d"][\w\d_]*/}, {b: /\$\{(.*?)}/}] 2145 }, t, {cN: "number", b: /([\+\-]+)?[\d]+_[\d_]+/}, e.NM] 2146 }] 2147 }] 2148 } 2149 }), 2150 n.registerLanguage("java", function (e) { 2151 var t = "false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this
vendor: 8,259 bytes, lines 2151-2311
2151switch continue throws protected public private module requires exports do", 2152 r = { 2153 cN: "number", 2154 b: "\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?", 2155 r: 0 2156 }; 2157 return { 2158 aliases: ["jsp"], 2159 k: t, 2160 i: /<\/|#/, 2161 c: [e.C("/\\*\\*", "\\*/", { 2162 r: 0, 2163 c: [{b: /\w+@/, r: 0}, {cN: "doctag", b: "@[A-Za-z]+"}] 2164 }), e.CLCM, e.CBCM, e.ASM, e.QSM, { 2165 cN: "class", 2166 bK: "class interface", 2167 e: /[{;=]/, 2168 eE: !0, 2169 k: "class interface", 2170 i: /[:"\[\]]/, 2171 c: [{bK: "extends implements"}, e.UTM] 2172 }, {bK: "new throw return else", r: 0}, { 2173 cN: "function", 2174 b: "([\u00c0-\u02b8a-zA-Z_$][\u00c0-\u02b8a-zA-Z_$0-9]*(<[\u00c0-\u02b8a-zA-Z_$][\u00c0-\u02b8a-zA-Z_$0-9]*(\\s*,\\s*[\u00c0-\u02b8a-zA-Z_$][\u00c0-\u02b8a-zA-Z_$0-9]*)*>)?\\s+)+" + e.UIR + "\\s*\\(", 2175 rB: !0, 2176 e: /[{;=]/, 2177 eE: !0, 2178 k: t, 2179 c: [{b: e.UIR + "\\s*\\(", rB: !0, r: 0, c: [e.UTM]}, { 2180 cN: "params", 2181 b: /\(/, 2182 e: /\)/, 2183 k: t, 2184 r: 0, 2185 c: [e.ASM, e.QSM, e.CNM, e.CBCM] 2186 }, e.CLCM, e.CBCM] 2187 }, r, {cN: "meta", b: "@[A-Za-z]+"}] 2188 } 2189 }), n.registerLanguage("javascript", function (e) { 2190 var t = "[A-Za-z$_][0-9A-Za-z$_]*", r = { 2191 keyword: "in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as", 2192 literal: "true false null undefined NaN Infinity", 2193 built_in: "eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise" 2194 }, 2195 a = {cN: "number", v: [{b: "\\b(0[bB][01]+)"}, {b: "\\b(0[oO][0-7]+)"}, {b: e.CNR}], r: 0}, 2196 n = {cN: "subst", b: "\\$\\{", e: "\\}", k: r, c: []}, i = {cN: "string", b: "`", e: "`", c: [e.BE, n]}; 2197 n.c = [e.ASM, e.QSM, i, a, e.RM]; 2198 var s = n.c.concat([e.CBCM, e.CLCM]); 2199 return { 2200 aliases: ["js", "jsx"], 2201 k: r, 2202 c: [{cN: "meta", r: 10, b: /^\s*['"]use (strict|asm)['"]/}, { 2203 cN: "meta", 2204 b: /^#!/, 2205 e: /$/ 2206 }, e.ASM, e.QSM, i, e.CLCM, e.CBCM, a, { 2207 b: /[{,]\s*/, 2208 r: 0, 2209 c: [{b: t + "\\s*:", rB: !0, r: 0, c: [{cN: "attr", b: t, r: 0}]}] 2210 }, { 2211 b: "(" + e.RSR + "|\\b(case|return|throw)\\b)\\s*", k: "return throw case", 2212 c: [e.CLCM, e.CBCM, e.RM, { 2213 cN: "function", 2214 b: "(\\(.*?\\)|" + t + ")\\s*=>", 2215 rB: !0, 2216 e: "\\s*=>", 2217 c: [{cN: "params", v: [{b: t}, {b: /\(\s*\)/}, {b: /\(/, e: /\)/, eB: !0, eE: !0, k: r, c: s}]}] 2218 }, { 2219 b: /</, 2220 e: /(\/\w+|\w+\/)>/, 2221 sL: "xml", 2222 c: [{b: /<\w+\s*\/>/, skip: !0}, { 2223 b: /<\w+/, 2224 e: /(\/\w+|\w+\/)>/, 2225 skip: !0, 2226 c: [{b: /<\w+\s*\/>/, skip: !0}, "self"] 2227 }] 2228 }], r: 0 2229 }, { 2230 cN: "function", 2231 bK: "function", 2232 e: /\{/, 2233 eE: !0, 2234 c: [e.inherit(e.TM, {b: t}), {cN: "params", b: /\(/, e: /\)/, eB: !0, eE: !0, c: s}], 2235 i: /\[|%/ 2236 }, {b: /\$[(.]/}, e.METHOD_GUARD, { 2237 cN: "class", bK: "class", e: /[{;=]/, eE: !0, i: /[:"\[\]]/, 2238 c: [{bK: "extends"}, e.UTM] 2239 }, {bK: "constructor get set", e: /\{/, eE: !0}], 2240 i: /#(?!!)/ 2241 } 2242 }), n.registerLanguage("json", function (e) { 2243 var t = {literal: "true false null"}, r = [e.QSM, e.CNM], a = {e: ",", eW: !0, eE: !0, c: r, k: t}, n = { 2244 b: "{", 2245 e: "}", 2246 c: [{cN: "attr", b: /"/, e: /"/, c: [e.BE], i: "\\n"}, e.inherit(a, {b: /:/})], 2247 i: "\\S" 2248 }, i = {b: "\\[", e: "\\]", c: [e.inherit(a)], i: "\\S"}; 2249 return r.splice(r.length, 0, n, i), {c: r, k: t, i: "\\S"} 2250 }), n.registerLanguage("makefile", function (e) { 2251 var t = {cN: "variable", v: [{b: "\\$\\(" + e.UIR + "\\)", c: [e.BE]}, {b: /\$[@%<?\^\+\*]/}]}, 2252 r = {cN: "string", b: /"/, e: /"/, c: [e.BE, t]}, a = { 2253 cN: "variable", 2254 b: /\$\([\w-]+\s/, 2255 e: /\)/, 2256 k: {built_in: "subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"}, 2257 c: [t] 2258 }, n = {b: "^" + e.UIR + "\\s*[:+?]?=", i: "\\n", rB: !0, c: [{b: "^" + e.UIR, e: "[:+?]?=", eE: !0}]}, 2259 i = {cN: "section", b: /^[^\s]+:/, e: /$/, c: [t]}; 2260 return { 2261 aliases: ["mk", "mak"], 2262 k: "define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath", 2263 l: /[\w-]+/, 2264 c: [e.HCM, t, r, a, n, {cN: "meta", b: /^\.PHONY:/, e: /$/, k: {"meta-keyword": ".PHONY"}, l: /[\.\w]+/}, i] 2265 } 2266 }), n.registerLanguage("xml", function (e) { 2267 var t = { 2268 eW: !0, 2269 i: /</, 2270 r: 0, 2271 c: [{cN: "attr", b: "[A-Za-z0-9\\._:-]+", r: 0}, { 2272 b: /=\s*/, 2273 r: 0, 2274 c: [{cN: "string", endsParent: !0, v: [{b: /"/, e: /"/}, {b: /'/, e: /'/}, {b: /[^\s"'=<>`]+/}]}] 2275 }] 2276 }; 2277 return { 2278 aliases: ["html", "xhtml", "rss", "atom", "xjb", "xsd", "xsl", "plist"], 2279 cI: !0, 2280 c: [{ 2281 cN: "meta", 2282 b: "<!DOCTYPE", 2283 e: ">", 2284 r: 10, 2285 c: [{b: "\\[", e: "\\]"}] 2286 }, e.C("\x3c!--", "--\x3e", {r: 10}), { 2287 b: "<\\!\\[CDATA\\[", e: "\\]\\]>", 2288 r: 10 2289 }, {cN: "meta", b: /<\?xml/, e: /\?>/, r: 10}, { 2290 b: /<\?(php)?/, 2291 e: /\?>/, 2292 sL: "php", 2293 c: [{b: "/\\*", e: "\\*/", skip: !0}, {b: 'b"', e: '"', skip: !0}, { 2294 b: "b'", 2295 e: "'", 2296 skip: !0 2297 }, e.inherit(e.ASM, {i: null, cN: null, c: null, skip: !0}), e.inherit(e.QSM, { 2298 i: null, 2299 cN: null, 2300 c: null, 2301 skip: !0 2302 })] 2303 }, { 2304 cN: "tag", 2305 b: "<style(?=\\s|>|$)", 2306 e: ">", 2307 k: {name: "style"}, 2308 c: [t], 2309 starts: {e: "</style>", rE: !0, sL: ["css", "xml"]} 2310 }, { 2311 cN: "tag",
vendor: 4,210 bytes, lines 2312-2392
2312 b: "<script(?=\\s|>|$)", 2313 e: ">", 2314 k: {name: "script"}, 2315 c: [t], 2316 starts: {e: "\x3c/script>", rE: !0, sL: ["actionscript", "javascript", "handlebars", "xml"]} 2317 }, 2318 {cN: "tag", b: "</?", e: "/?>", c: [{cN: "name", b: /[^\/><\s]+/, r: 0}, t]}] 2319 } 2320 }), n.registerLanguage("markdown", function (e) { 2321 return { 2322 aliases: ["md", "mkdown", "mkd"], 2323 c: [{cN: "section", v: [{b: "^#{1,6}", e: "$"}, {b: "^.+?\\n[=-]{2,}$"}]}, { 2324 b: "<", 2325 e: ">", 2326 sL: "xml", 2327 r: 0 2328 }, {cN: "bullet", b: "^([*+-]|(\\d+\\.))\\s+"}, {cN: "strong", b: "[*_]{2}.+?[*_]{2}"}, { 2329 cN: "emphasis", 2330 v: [{b: "\\*.+?\\*"}, {b: "_.+?_", r: 0}] 2331 }, {cN: "quote", b: "^>\\s+", e: "$"}, { 2332 cN: "code", 2333 v: [{b: "^```w*s*$", e: "^```s*$"}, {b: "`.+?`"}, {b: "^( {4}|\t)", e: "$", r: 0}] 2334 }, {b: "^[-\\*]{3,}", e: "$"}, 2335 { 2336 b: "\\[.+?\\][\\(\\[].*?[\\)\\]]", 2337 rB: !0, 2338 c: [{cN: "string", b: "\\[", e: "\\]", eB: !0, rE: !0, r: 0}, { 2339 cN: "link", 2340 b: "\\]\\(", 2341 e: "\\)", 2342 eB: !0, 2343 eE: !0 2344 }, {cN: "symbol", b: "\\]\\[", e: "\\]", eB: !0, eE: !0}], 2345 r: 10 2346 }, { 2347 b: /^\[[^\n]+\]:/, 2348 rB: !0, 2349 c: [{cN: "symbol", b: /\[/, e: /\]/, eB: !0, eE: !0}, {cN: "link", b: /:\s*/, e: /$/, eB: !0}] 2350 }] 2351 } 2352 }), n.registerLanguage("nginx", function (e) { 2353 var t = {cN: "variable", v: [{b: /\$\d+/}, {b: /\$\{/, e: /}/}, {b: "[\\$\\@]" + e.UIR}]}, r = { 2354 eW: !0, 2355 l: "[a-z/_]+", 2356 k: {literal: "on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"}, 2357 r: 0, 2358 i: "=>", 2359 c: [e.HCM, {cN: "string", c: [e.BE, t], v: [{b: /"/, e: /"/}, {b: /'/, e: /'/}]}, { 2360 b: "([a-z]+):/", 2361 e: "\\s", 2362 eW: !0, 2363 eE: !0, 2364 c: [t] 2365 }, { 2366 cN: "regexp", 2367 c: [e.BE, t], 2368 v: [{b: "\\s\\^", e: "\\s|{|;", rE: !0}, { 2369 b: "~\\*?\\s+", 2370 e: "\\s|{|;", 2371 rE: !0 2372 }, {b: "\\*(\\.[a-z\\-]+)+"}, {b: "([a-z\\-]+\\.)+\\*"}] 2373 }, {cN: "number", b: "\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"}, { 2374 cN: "number", 2375 b: "\\b\\d+[kKmMgGdshdwy]*\\b", 2376 r: 0 2377 }, t] 2378 }; 2379 return { 2380 aliases: ["nginxconf"], 2381 c: [e.HCM, {b: e.UIR + "\\s+{", rB: !0, e: "{", c: [{cN: "section", b: e.UIR}], r: 0}, { 2382 b: e.UIR + 2383 "\\s", e: ";|{", rB: !0, c: [{cN: "attribute", b: e.UIR, starts: r}], r: 0 2384 }], 2385 i: "[^\\s\\}]" 2386 } 2387 }), n.registerLanguage("objectivec", function (e) { 2388 var t = /[a-zA-Z@][a-zA-Z0-9_]*/, r = "@interface @class @protocol @implementation"; 2389 return { 2390 aliases: ["mm", "objc", "obj-c"], 2391 k: { 2392 keyword: "int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required @encode @package @import @def
2392s @compatibility_alias __bridge __bridge_transfer __bridge_retained __bridge_retain __covariant __contravariant __kindof _Nonnull _Nullable _Null_unspecified __FUNCTION__ __PRETTY_FUNCTION__ __attribute__ getter setter retain unsafe_unretained nonnull nullable null_unspecified null_resettable class instancetype NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN", 2393 literal: "false true FALSE TRUE nil YES NO NULL", 2394 built_in: "BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once" 2395 }, 2396 l: t, 2397 i: "</", 2398 c: [{ 2399 cN: "built_in", 2400 b: "\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+" 2401 }, e.CLCM, e.CBCM, e.CNM, e.QSM, { 2402 cN: "string", 2403 v: [{b: '@"', e: '"', i: "\\n", c: [e.BE]}, {b: "'", e: "[^\\\\]'", i: "[^\\\\][^']"}] 2404 }, {cN: "meta", b: "#", e: "$", c: [{cN: "meta-string", v: [{b: '"', e: '"'}, {b: "<", e: ">"}]}]}, { 2405 cN: "class", b: "(" + r.split(" ").join("|") + ")\\b", e: "({|$)", eE: !0, k: r, 2406 l: t, c: [e.UTM] 2407 }, {b: "\\." + e.UIR, r: 0}] 2408 } 2409 }), n.registerLanguage("perl", function (e) { 2410 var t = "getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qqfileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmgetsub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedirioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when", 2411 r = {cN: "subst", b: "[$@]\\{", e: "\\}", k: t}, a = {b: "->{", e: "}"}, 2412 n = {v: [{b: /\$\d/}, {b: /[\$%@](\^\w\b|#\w+(::\w+)*|{\w+}|\w+(::\w*)*)/}, {b: /[\$%@][^\s\w{]/, r: 0}]}, 2413 i = [e.BE, r, n], s = [n, e.HCM, e.C("^\\=\\w", "\\=cut", {eW: !0}), a, { 2414 cN: "string", 2415 c: i, 2416 v: [{b: "q[qwxr]?\\s*\\(", e: "\\)", r: 5}, {b: "q[qwxr]?\\s*\\[", e: "\\]", r: 5}, { 2417 b: "q[qwxr]?\\s*\\{", 2418 e: "\\}", 2419 r: 5 2420 }, {b: "q[qwxr]?\\s*\\|", e: "\\|", r: 5}, {b: "q[qwxr]?\\s*\\<", e: "\\>", r: 5}, { 2421 b: "qw\\s+q", 2422 e: "q", 2423 r: 5 2424 }, {b: "'", e: "'", c: [e.BE]}, {b: '"', e: '"'}, {b: "`", e: "`", c: [e.BE]}, { 2425 b: "{\\w+}", c: [], 2426 r: 0 2427 }, {b: "-?\\w+\\s*\\=\\>", c: [], r: 0}] 2428 }, { 2429 cN: "number", 2430 b: "(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b", 2431 r: 0 2432 }, { 2433 b: "(\\/\\/|" + e.RSR + "|\\b(split|return|print|reverse|grep)\\b)\\s*", 2434 k: "split return print reverse grep", 2435 r: 0, 2436 c: [e.HCM, {cN: "regexp", b: "(s|tr|y)/(\\\\.|[^/]
vendor: 9,681 bytes, lines 2436-2615
2436)*/(\\\\.|[^/])*/[a-z]*", r: 10}, { 2437 cN: "regexp", 2438 b: "(m|qr)?/", 2439 e: "/[a-z]*", 2440 c: [e.BE], 2441 r: 0 2442 }] 2443 }, {cN: "function", bK: "sub", e: "(\\s*\\(.*?\\))?[;{]", eE: !0, r: 5, c: [e.TM]}, {b: "-\\w\\b", r: 0}, { 2444 b: "^__DATA__$", e: "^__END__$", sL: "mojolicious", 2445 c: [{b: "^@@.*", e: "$", cN: "comment"}] 2446 }]; 2447 return r.c = s, {aliases: ["pl", "pm"], l: /[\w\.]+/, k: t, c: a.c = s} 2448 }), n.registerLanguage("php", function (e) { 2449 var t = {b: "\\$+[a-zA-Z_\u007f-\u00ff][a-zA-Z0-9_\u007f-\u00ff]*"}, r = {cN: "meta", b: /<\?(php)?|\?>/}, a = { 2450 cN: "string", 2451 c: [e.BE, r], 2452 v: [{b: 'b"', e: '"'}, {b: "b'", e: "'"}, e.inherit(e.ASM, {i: null}), e.inherit(e.QSM, {i: null})] 2453 }, n = {v: [e.BNM, e.CNM]}; 2454 return { 2455 aliases: ["php", "php3", "php4", "php5", "php6", "php7"], 2456 cI: !0, 2457 k: "and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally", 2458 c: [e.HCM, e.C("//", "$", {c: [r]}), e.C("/\\*", "\\*/", { 2459 c: [{ 2460 cN: "doctag", 2461 b: "@[A-Za-z]+" 2462 }] 2463 }), e.C("__halt_compiler.+?;", !1, {eW: !0, k: "__halt_compiler", l: e.UIR}), { 2464 cN: "string", 2465 b: /<<<['"]?\w+['"]?$/, 2466 e: /^\w+;?$/, 2467 c: [e.BE, {cN: "subst", v: [{b: /\$\w+/}, {b: /\{\$/, e: /\}/}]}] 2468 }, r, { 2469 cN: "keyword", 2470 b: /\$this\b/ 2471 }, t, {b: /(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/}, { 2472 cN: "function", 2473 bK: "function", 2474 e: /[;{]/, 2475 eE: !0, 2476 i: "\\$|\\[|%", 2477 c: [e.UTM, {cN: "params", b: "\\(", e: "\\)", c: ["self", t, e.CBCM, a, n]}] 2478 }, { 2479 cN: "class", bK: "class interface", e: "{", 2480 eE: !0, i: /[:\(\$"]/, c: [{bK: "extends implements"}, e.UTM] 2481 }, {bK: "namespace", e: ";", i: /[\.']/, c: [e.UTM]}, {bK: "use", e: ";", c: [e.UTM]}, {b: "=>"}, a, n] 2482 } 2483 }), n.registerLanguage("properties", function (e) { 2484 var t = "[ \\t\\f]*", r = "(" + t + "[:=]" + t + "|[ \\t\\f]+)", a = "([^\\\\\\W:= \\t\\f\\n]|\\\\.)+", 2485 n = "([^\\\\:= \\t\\f\\n]|\\\\.)+", 2486 i = {e: r, r: 0, starts: {cN: "string", e: /$/, r: 0, c: [{b: "\\\\\\n"}]}}; 2487 return { 2488 cI: !0, 2489 i: /\S/, 2490 c: [e.C("^\\s*[!#]", "$"), {b: a + r, rB: !0, c: [{cN: "attr", b: a, endsParent: !0, r: 0}], starts: i}, { 2491 b: n + r, rB: !0, r: 0, c: [{ 2492 cN: "meta", 2493 b: n, endsParent: !0, r: 0 2494 }], starts: i 2495 }, {cN: "attr", r: 0, b: n + t + "$"}] 2496 } 2497 }), n.registerLanguage("python", function (e) { 2498 var t = { 2499 keyword: "and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda async await nonlocal|10", 2500 built_in: "Ellipsis NotImplemented", 2501 literal: "False None True" 2502 }, r = {cN: "meta", b: /^(>>>|\.\.\.) /}, a = {cN: "subst", b: /\{/, e: /\}/, k: t, i: /#/}, n = { 2503 cN: "string", c: [e.BE], v: [{ 2504 b: /(u|b)?r?'''/, e: /'''/, c: [e.BE, 2505 r], r: 10 2506 }, {b: /(u|b)?r?"""/, e: /"""/, c: [e.BE, r], r: 10}, { 2507 b: /(fr|rf|f)'''/, 2508 e: /'''/, 2509 c: [e.BE, r, a] 2510 }, {b: /(fr|rf|f)"""/, e: /"""/, c: [e.BE, r, a]}, {b: /(u|r|ur)'/, e: /'/, r: 10}, { 2511 b: /(u|r|ur)"/, 2512 e: /"/, 2513 r: 10 2514 }, {b: /(b|br)'/, e: /'/}, {b: /(b|br)"/, e: /"/}, { 2515 b: /(fr|rf|f)'/, 2516 e: /'/, 2517 c: [e.BE, a] 2518 }, {b: /(fr|rf|f)"/, e: /"/, c: [e.BE, a]}, e.ASM, e.QSM] 2519 }, i = {cN: "number", r: 0, v: [{b: e.BNR + "[lLjJ]?"}, {b: "\\b(0o[0-7]+)[lLjJ]?"}, {b: e.CNR + "[lLjJ]?"}]}, 2520 s = {cN: "params", b: /\(/, e: /\)/, c: ["self", r, i, n]}; 2521 return a.c = [n, i, r], { 2522 aliases: ["py", "gyp", "ipython"], k: t, i: /(<\/|->|\?)|=>/, 2523 c: [r, i, n, e.HCM, { 2524 v: [{cN: "function", bK: "def"}, {cN: "class", bK: "class"}], 2525 e: /:/, 2526 i: /[${=;\n,]/, 2527 c: [e.UTM, s, {b: /->/, eW: !0, k: "None"}] 2528 }, {cN: "meta", b: /^[\t ]*@/, e: /$/}, {b: /\b(print|exec)\(/}] 2529 } 2530 }), n.registerLanguage("ruby", function (e) { 2531 var t = "[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?", r = { 2532 keyword: "and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor", 2533 literal: "true false nil" 2534 }, a = {cN: "doctag", b: "@[A-Za-z]+"}, n = {b: "#<", e: ">"}, 2535 i = [e.C("#", "$", {c: [a]}), e.C("^\\=begin", "^\\=end", {c: [a], r: 10}), e.C("^__END__", "\\n$")], 2536 s = {cN: "subst", b: "#\\{", e: "}", k: r}, c = { 2537 cN: "string", 2538 c: [e.BE, s], 2539 v: [{b: /'/, e: /'/}, {b: /"/, e: /"/}, {b: /`/, e: /`/}, {b: "%[qQwWx]?\\(", e: "\\)"}, { 2540 b: "%[qQwWx]?\\[", 2541 e: "\\]" 2542 }, {b: "%[qQwWx]?{", e: "}"}, {b: "%[qQwWx]?<", e: ">"}, {b: "%[qQwWx]?/", e: "/"}, { 2543 b: "%[qQwWx]?%", 2544 e: "%" 2545 }, {b: "%[qQwWx]?-", e: "-"}, { 2546 b: "%[qQwWx]?\\|", 2547 e: "\\|" 2548 }, {b: /\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/}, 2549 {b: /<<(-?)\w+$/, e: /^\s*\w+$/}] 2550 }, o = {cN: "params", b: "\\(", e: "\\)", endsParent: !0, k: r}, l = [c, n, { 2551 cN: "class", 2552 bK: "class module", 2553 e: "$|;", 2554 i: /=/, 2555 c: [e.inherit(e.TM, {b: "[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}), { 2556 b: "<\\s*", 2557 c: [{b: "(" + e.IR + "::)?" + e.IR}] 2558 }].concat(i) 2559 }, { 2560 cN: "function", 2561 bK: "def", 2562 e: "$|;", 2563 c: [e.inherit(e.TM, {b: t}), o].concat(i) 2564 }, {b: e.IR + "::"}, {cN: "symbol", b: e.UIR + "(\\!|\\?)?:", r: 0}, { 2565 cN: "symbol", 2566 b: ":(?!\\s)", 2567 c: [c, {b: t}], 2568 r: 0 2569 }, { 2570 cN: "number", b: "(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b", 2571 r: 0 2572 }, {b: "(\\$\\W)|((\\$|\\@\\@?)(\\w+))"}, { 2573 cN: "params", 2574 b: /\|/, 2575 e: /\|/, 2576 k: r 2577 }, { 2578 b: "(" + e.RSR + "|unless)\\s*", 2579 k: "unless", 2580 c: [n, { 2581 cN: "regexp", 2582 c: [e.BE, s], 2583 i: /\n/, 2584 v: [{b: "/", e: "/[a-z]*"}, {b: "%r{", e: "}[a-z]*"}, {b: "%r\\(", e: "\\)[a-z]*"}, { 2585 b: "%r!", 2586 e: "![a-z]*" 2587 }, {b: "%r\\[", e: "\\][a-z]*"}] 2588 }].concat(i), 2589 r: 0 2590 }].concat(i); 2591 s.c = l; 2592 var u = [{b: /^\s*=>/, starts: {e: "$", c: o.c = l}}, { 2593 cN: "meta", 2594 b: "^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+>|(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>)", 2595 starts: {e: "$", c: l} 2596 }]; 2597 return { 2598 aliases: ["rb", "gemspec", "podspec", 2599 "thor", "irb"], k: r, i: /\/\*/, c: i.concat(u).concat(l) 2600 } 2601 }), n.registerLanguage("shell", function (e) { 2602 return { 2603 aliases: ["console"], 2604 c: [{cN: "meta", b: "^\\s{0,3}[\\w\\d\\[\\]()@-]*[>%$#]", starts: {e: "$", sL: "bash"}}] 2605 } 2606 }), n.registerLanguage("sql", function (e) { 2607 var t = e.C("--", "$"); 2608 return { 2609 cI: !0, i: /[<>{}*]/, c: [{ 2610 bK: "begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment values with", 2611 e: /;/, 2612 eW: !0, 2613 l: /[\w\.]+/, 2614 k: { 2615 keyword:
vendor: 11,047 bytes, line 2615
2615"as abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias all allocate allow alter always analyze ancillary and anti any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound bucket buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain explode export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force foreign form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour hours http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lateral lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minutes minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notnull notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second seconds section securefile security seed segment select self semi sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tablesample tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unnest unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace window with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",
vendor: 5,819 bytes, lines 2615-2686
2615 2616 literal: "true false null unknown", 2617 built_in: "array bigint binary bit blob bool boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text time timestamp tinyint varchar varying void" 2618 }, 2619 c: [{cN: "string", b: "'", e: "'", c: [e.BE, {b: "''"}]}, { 2620 cN: "string", 2621 b: '"', 2622 e: '"', 2623 c: [e.BE, {b: '""'}] 2624 }, {cN: "string", b: "`", e: "`", c: [e.BE]}, e.CNM, e.CBCM, t, e.HCM] 2625 }, e.CBCM, t, e.HCM] 2626 } 2627 }), n 2628}); 2629hljs.registerLanguage("swift", function (e) { 2630 var i = { 2631 keyword: "#available #colorLiteral #column #else #elseif #endif #file #fileLiteral #function #if #imageLiteral #line #selector #sourceLocation _ __COLUMN__ __FILE__ __FUNCTION__ __LINE__ Any as as! as? associatedtype associativity break case catch class continue convenience default defer deinit didSet do dynamic dynamicType else enum extension fallthrough false fileprivate final for func get guard if import in indirect infix init inout internal is lazy left let mutating nil none nonmutating open operator optional override postfix precedence prefix private protocol Protocol public repeat required rethrows return right self Self set static struct subscript super switch throw throws true try try! try? Type typealias unowned var weak where while willSet", 2632 literal: "true false nil", 2633 built_in: "abs advance alignof alignofValue anyGenerator assert assertionFailure bridgeFromObjectiveC bridgeFromObjectiveCUnconditional bridgeToObjectiveC bridgeToObjectiveCUnconditional c contains count countElements countLeadingZeros debugPrint debugPrintln distance dropFirst dropLast dump encodeBitsAsWords enumerate equal fatalError filter find getBridgedObjectiveCType getVaList indices insertionSort isBridgedToObjectiveC isBridgedVerbatimToObjectiveC isUniquelyReferenced isUniquelyReferencedNonObjC join lazy lexicographicalCompare map max maxElement min minElement numericCast overlaps partition posix precondition preconditionFailure print println quickSort readLine reduce reflect reinterpretCast reverse roundUpToAlignment sizeof sizeofValue sort split startsWith stride strideof strideofValue swap toString transcode underestimateCount unsafeAddressOf unsafeBitCast unsafeDowncast unsafeUnwrap unsafeReflect withExtendedLifetime withObjectAtPlusZero withUnsafePointer withUnsafePointerToObject withUnsafeMutablePointer withUnsafeMutablePointers withUnsafePointer withUnsafePointers withVaList zip" 2634 }, 2635 t = e.C("/\\*", "\\*/", {c: ["self"]}), n = {cN: "subst", b: /\\\(/, e: "\\)", k: i, c: []}, 2636 r = {cN: "string", c: [e.BE, n], v: [{b: /"""/, e: /"""/}, {b: /"/, e: /"/}]}, a = { 2637 cN: "number", 2638 b: "\\b([\\d_]+(\\.[\\deE_]+)?|0x[a-fA-F0-9_]+(\\.[a-fA-F0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b", 2639 r: 0 2640 }; 2641 return n.c = [a], { 2642 k: i, 2643 c: [r, e.CLCM, t, {cN: "type", b: "\\b[A-Z][\\w\u00c0-\u02b8']*[!?]"}, { 2644 cN: "type", 2645 b: "\\b[A-Z][\\w\u00c0-\u02b8']*", 2646 r: 0 2647 }, a, { 2648 cN: "function", 2649 bK: "func", 2650 e: "{", 2651 eE: !0, 2652 c: [e.inherit(e.TM, {b: /[A-Za-z$_][0-9A-Za-z$_]*/}), {b: /</, e: />/}, { 2653 cN: "params", b: /\(/, 2654 e: /\)/, endsParent: !0, k: i, c: ["self", a, r, e.CBCM, {b: ":"}], i: /["']/ 2655 }], 2656 i: /\[|%/ 2657 }, { 2658 cN: "class", 2659 bK: "struct protocol class extension enum", 2660 k: i, 2661 e: "\\{", 2662 eE: !0, 2663 c: [e.inherit(e.TM, {b: /[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/})] 2664 }, { 2665 cN: "meta", 2666 b: "(@discardableResult|@warn_unused_result|@exported|@lazy|@noescape|@NSCopying|@NSManaged|@objc|@objcMembers|@convention|@required|@noreturn|@IBAction|@IBDesignable|@IBInspectable|@IBOutlet|@infix|@prefix|@postfix|@autoclosure|@testable|@available|@nonobjc|@NSApplicationMain|@UIApplicationMain)" 2667 }, 2668 {bK: "import", e: /$/, c: [e.CLCM, t]}] 2669 } 2670}); 2671hljs.registerLanguage("scss", function (e) { 2672 var t = {cN: "variable", b: "(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b"}, i = {cN: "number", b: "#[0-9A-Fa-f]+"}; 2673 e.CSSNM, e.QSM, e.ASM, e.CBCM; 2674 return { 2675 cI: !0, 2676 i: "[=/|']", 2677 c: [e.CLCM, e.CBCM, {cN: "selector-id", b: "\\#[A-Za-z0-9_-]+", r: 0}, { 2678 cN: "selector-class", 2679 b: "\\.[A-Za-z0-9_-]+", 2680 r: 0 2681 }, {cN: "selector-attr", b: "\\[", e: "\\]", i: "$"}, { 2682 cN: "selector-tag", 2683 b: "\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b", 2684 r: 0 2685 }, 2686 {b: ":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"}
2686, {b: "::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"}, t, { 2687 cN: "attribute", 2688 b: "\\b(z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b", 2689 i: "[^\\s]" 2690 }, {b: "\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inl
2690ine-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"}, 2691 {b: ":", e: ";", c: [t, i, e.CSSNM, e.QSM, e.ASM, {cN: "meta", b: "!important"}]}, { 2692 b: "@", 2693 e: "[{;]", 2694 k: "mixin include extend for if else each while charset import debug media page content font-face namespace warn", 2695 c: [t, e.QSM, e.ASM, i, e.CSSNM, {b: "\\s[A-Za-z0-9_.-]+", r: 0}] 2696 }] 2697 } 2698}); 2699!function (e, t) { 2700 "object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define("pangu", [], t) : "object" == typeof exports ? exports.pangu = "" : e.pangu = "" 2701}(window, function () { 2702 return function (e) { 2703 var t = {}; 2704 2705 function n(a) { 2706 if (t[a]) return t[a].exports; 2707 var i = t[a] = {i: a, l: !1, exports: {}}; 2708 return e[a].call(i.exports, i, i.exports, n), i.l = !0, i.exports 2709 } 2710 2711 return n.m = e, n.c = t, n.d = function (e, t, a) { 2712 n.o(e, t) || Object.defineProperty(e, t, {enumerable: !0, get: a}) 2713 }, n.r = function (e) { 2714 "undefined" != 2715 typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {value: "Module"}), Object.defineProperty(e, "__esModule", {value: !0}) 2716 }, n.t = function (e, t) { 2717 if (1 & t && (e = n(e)), 8 & t) return e; 2718 if (4 & t && "object" == typeof e && e && e.__esModule) return e; 2719 var a = Object.create(null); 2720 if (n.r(a), Object.defineProperty(a, "default", { 2721 enumerable: !0, 2722 value: e 2723 }), 2 & t && "string" != typeof e) for (var i in e) n.d(a, i, function (t) { 2724 return e[t] 2725 }.bind(null, i)); 2726 return a 2727 }, n.n = function (e) { 2728 var t = e && e.__esModule ? function () { 2729 return e["default"] 2730 } : 2731 function () { 2732 return e 2733 }; 2734 return n.d(t, "a", t), t 2735 }, n.o = function (e, t) { 2736 return Object.prototype.hasOwnProperty.call(e, t) 2737 }, n.p = "", n(n.s = 0) 2738 }([function (e, t, n) { 2739 var a, i, o; 2740 i = [], void 0 === (o = "function" == typeof (a = function () { 2741 function t(e) { 2742 return (t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { 2743 return typeof e 2744 } : function (e) { 2745 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e 2746 })(e) 2747 } 2748 2749 function a(e, t) { 2750 for (var n = 0; n < t.length; n++) { 2751 var a = t[n]; 2752 a.enumerable = 2753 a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a) 2754 } 2755 } 2756 2757 function i(e, n) { 2758 return !n || "object" !== t(n) && "function" != typeof n ? function (e) { 2759 if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 2760 return e 2761 }(e) : n 2762 } 2763 2764 function o(e) { 2765 return (o = Object.setPrototypeOf ? Object.getPrototypeOf : function (e) { 2766 return e.__proto__ || Object.getPrototypeOf(e) 2767 })(e) 2768 } 2769 2770 function r(e, t) { 2771 return (r = Object.setPrototypeOf || function (e, t) { 2772 return e.__proto__ = t, 2773 e 2774 })(e, t) 2775 } 2776 2777 var c = function (e) { 2778 function t() { 2779 var e; 2780 return function (e, t) { 2781 if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function"); 2782 }(this, t), (e = i(this, o(t).call(this))).blockTags = /^(div|p|h1|h2|h3|h4|h5|h6)$/i, e.ignoredTags = /^(script|code|pre|textarea)$/i, e.presentationalTags = /^(b|code|del|em|i|s|strong)$/i, e.spaceLikeTags = /^(br|hr|i|img|pangu)$/i, e.spaceSensitiveTags = /^(a|del|pre|s|strike|u)$/i, e.isAutoSpacingPageExecuted = !1, e 2783 } 2784 2785 return function (e, t) { 2786 if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function"); 2787 e.prototype = Object.create(t && t.prototype, { 2788 constructor: { 2789 value: e, 2790 writable: !0, 2791 configurable: !0 2792 } 2793 }), t && r(e, t) 2794 }(t, e), n = t, (c = [{ 2795 key: "isContentEditable", value: function (e) { 2796 return e.isContentEditable || e.getAttribute && "true" === e.getAttribute("g_editable") 2797 } 2798 }, { 2799 key: "isSpecificTag", value: function (e, t) { 2800 return e && e.nodeName && e.nodeName.search(t) >= 0 2801 } 2802 }, { 2803 key: "isInsideSpecificTag", value: function (e, t) { 2804 var n = arguments.length > 2 && void 0 !== arguments[2] && arguments[2], a = e; 2805 if (n && this.isSpecificTag(a, t)) return !0; 2806 for (; a.parentNode;) if (a = 2807 a.parentNode, this.isSpecificTag(a, t)) return !0; 2808 return !1 2809 } 2810 }, { 2811 key: "canIgnoreNode", value: function (e) { 2812 var t = e; 2813 if (t && (this.isSpecificTag(t, this.ignoredTags) || this.isContentEditable(t))) return !0; 2814 for (; t.parentNode;) if ((t = t.parentNode) && (this.isSpecificTag(t, this.ignoredTags) || this.isContentEditable(t))) return !0; 2815 return !1 2816 } 2817 }, { 2818 key: "isFirstTextChild", value: function (e, t) { 2819 for (var n = e.childNodes, a = 0; a < n.length; a++) { 2820 var i = n[a]; 2821 if (i.nodeType !== Node.COMMENT_NODE && i.textContent) return i === t 2822 } 2823 return !1 2824 } 2825 }, { 2826 key: "isLastTextChild", 2827 value: function (e, t) { 2828 for (var n = e.childNodes, a = n.length - 1; a > -1; a--) { 2829 var i = n[a]; 2830 if (i.nodeType !== Node.COMMENT_NODE && i.textContent) return i === t 2831 } 2832 return !1 2833 } 2834 }, { 2835 key: "spacingNodeByXPath", value: function (e, t) { 2836 if (t instanceof Node && !(t instanceof DocumentFragment)) for (var n, a, i = document.evaluate(e, t, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null), o = i.snapshotLength - 1; o > -1; --o) { 2837 if (n = i.snapshotItem(o), this.isSpecificTag(n.parentNode, this.presentationalTags) && !this.isInsideSpecificTag(n.parentNode, this.ignoredTags)) { 2838 var r = 2839 n.parentNode; 2840 if (r.previousSibling) { 2841 var c = r.previousSibling; 2842 if (c.nodeType === Node.TEXT_NODE) { 2843 var s = c.data.substr(-1) + n.data.toString().charAt(0), u = this.spacing(s); 2844 s !== u && (c.data = "".concat(c.data, " ")) 2845 } 2846 } 2847 if (r.nextSibling) { 2848 var p = r.nextSibling; 2849 if (p.nodeType === Node.TEXT_NODE) { 2850 var l = n.data.substr(-1) + p.data.toString().charAt(0), f = this.spacing(l); 2851 l !== f && (p.data = " ".concat(p.data)) 2852 } 2853 } 2854 } 2855 if (this.canIgnoreNode(n)) a = n; else { 2856 var g = this.spacing(n.data); 2857 if (n.data !== g && (n.data = g), a) { 2858 if (n.nextSibling && n.nextSibling.nodeName.search(this.spaceLikeTags) >= 2859 0) { 2860 a = n; 2861 continue 2862 } 2863 var d = n.data.toString().substr(-1) + a.data.toString().substr(0, 1), 2864 h = this.spacing(d); 2865 if (h !== d) { 2866 for (var y = a; y.parentNode && -1 === y.nodeName.search(this.spaceSensitiveTags) && this.isFirstTextChild(y.parentNode, y);) y = y.parentNode; 2867 for (var v = n; v.parentNode && -1 === v.nodeName.search(this.spaceSensitiveTags) && this.isLastTextChild(v.parentNode, v);) v = v.parentNode; 2868 if (v.nextSibling && v.nextSibling.nodeName.search(this.spaceLikeTags) >= 0) { 2869 a = n; 2870 continue 2871 } 2872 if (-1 === v.nodeName.search(this.blockTags)) if (-1 === 2873 y.nodeName.search(this.spaceSensitiveTags)) -1
vendor: 6,150 bytes, lines 2873-2973
2873=== y.nodeName.search(this.ignoredTags) && -1 === y.nodeName.search(this.blockTags) && (a.previousSibling ? -1 === a.previousSibling.nodeName.search(this.spaceLikeTags) && (a.data = " ".concat(a.data)) : this.canIgnoreNode(a) || (a.data = " ".concat(a.data))); else if (-1 === v.nodeName.search(this.spaceSensitiveTags)) n.data = "".concat(n.data, " "); else { 2874 var b = document.createElement("pangu"); 2875 b.innerHTML = " ", y.previousSibling ? -1 === y.previousSibling.nodeName.search(this.spaceLikeTags) && 2876 y.parentNode.insertBefore(b, y) : y.parentNode.insertBefore(b, y), b.previousElementSibling || b.parentNode && b.parentNode.removeChild(b) 2877 } 2878 } 2879 } 2880 a = n 2881 } 2882 } 2883 } 2884 }, { 2885 key: "spacingNode", value: function (e) { 2886 var t = ".//*/text()[normalize-space(.)]"; 2887 e.children && 0 === e.children.length && (t = ".//text()[normalize-space(.)]"), this.spacingNodeByXPath(t, e) 2888 } 2889 }, { 2890 key: "spacingElementById", value: function (e) { 2891 var t = 'id("'.concat(e, '")//text()'); 2892 this.spacingNodeByXPath(t, document) 2893 } 2894 }, { 2895 key: "spacingElementByClassName", value: function (e) { 2896 var t = '//*[contains(concat(" ", normalize-space(@class), " "), "'.concat(e, 2897 '")]//text()'); 2898 this.spacingNodeByXPath(t, document) 2899 } 2900 }, { 2901 key: "spacingElementByTagName", value: function (e) { 2902 var t = "//".concat(e, "//text()"); 2903 this.spacingNodeByXPath(t, document) 2904 } 2905 }, { 2906 key: "spacingPageTitle", value: function () { 2907 this.spacingNodeByXPath("/html/head/title/text()", document) 2908 } 2909 }, { 2910 key: "spacingPageBody", value: function () { 2911 var e = "/html/body//*/text()[normalize-space(.)]"; 2912 ["script", "style", "textarea"].forEach(function (t) { 2913 e = "".concat(e, '[translate(name(..),"ABCDEFGHIJKLMNOPQRSTUVWXYZ","abcdefghijklmnopqrstuvwxyz")!="').concat(t, 2914 '"]') 2915 }), this.spacingNodeByXPath(e, document) 2916 } 2917 }, { 2918 key: "spacingPage", value: function () { 2919 this.spacingPageTitle(), this.spacingPageBody() 2920 } 2921 }, { 2922 key: "autoSpacingPage", value: function () { 2923 var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : 1E3, 2924 t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 500, 2925 n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 2E3; 2926 if (document.body instanceof Node && !this.isAutoSpacingPageExecuted) { 2927 this.isAutoSpacingPageExecuted = !0; 2928 var a = this, i = function (e) { 2929 var t = this, n = arguments, 2930 a = !1; 2931 return function () { 2932 if (!a) { 2933 var i = t; 2934 a = !0, e.apply(i, n) 2935 } 2936 } 2937 }(function () { 2938 a.spacingPage() 2939 }), o = document.getElementsByTagName("video"); 2940 if (0 === o.length) setTimeout(function () { 2941 i() 2942 }, e); else for (var r = 0; r < o.length; r++) { 2943 var c = o[r]; 2944 if (4 === c.readyState) { 2945 setTimeout(function () { 2946 i() 2947 }, 3E3); 2948 break 2949 } 2950 c.addEventListener("loadeddata", function () { 2951 setTimeout(function () { 2952 i() 2953 }, 4E3) 2954 }) 2955 } 2956 var s = [], u = function (e, t, n) { 2957 var a = this, i = arguments, o = null, r = null; 2958 return function () { 2959 var c = a, s = i, u = +new Date; 2960 clearTimeout(o), r || (r = u), u - r >= n ? (e.apply(c, 2961 s), r = u) : o = setTimeout(function () { 2962 e.apply(c, s) 2963 }, t) 2964 } 2965 }(function () { 2966 for (; s.length;) { 2967 var e = s.shift(); 2968 e && a.spacingNode(e) 2969 } 2970 }, t, {maxWait: n}), p = new MutationObserver(function (e, t) { 2971 e.forEach(function (e) { 2972 switch (e.type) { 2973 case "childList":
2974 e.addedNodes.forEach(function (e) { 2975 e.nodeType === Node.ELEMENT_NODE ? s.push(e) : e.nodeType === Node.TEXT_NODE && s.push(e.parentNode) 2976 }); 2977 break; 2978 case "characterData": 2979 var t = e.target; 2980 t.nodeType === Node.TEXT_NODE && s.push(t.parentNode) 2981 } 2982 }), u() 2983 }); 2984 p.observe(document.body, { 2985 characterData: !0, childList: !0, 2986 subtree: !0 2987 }) 2988 } 2989 } 2990 }]) && a(n.prototype, c), s && a(n, s), t; 2991 var n, c, s 2992 }(n(1).Pangu), s = new c; 2993 e.exports = s, e.exports["default"] = s, e.exports.Pangu = c 2994 }) ? a.apply(t, i) : a) || (e.exports = o) 2995 }, function (e, t, n) { 2996 var a, i, o; 2997 i = [], void 0 === (o = "function" == typeof (a = function () { 2998 function t(e) { 2999 return (t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (e) { 3000 return typeof e 3001 } : function (e) { 3002 return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e 3003 })(e) 3004 } 3005 3006 function n(e, t) { 3007 for (var n = 0; n < t.length; n++) { 3008 var a = 3009 t[n]; 3010 a.enumerable = a.enumerable || !1, a.configurable = !0, "value" in a && (a.writable = !0), Object.defineProperty(e, a.key, a) 3011 } 3012 } 3013 3014 var a = "\u2e80-\u2eff\u2f00-\u2fdf\u3040-\u309f\u30a0-\u30fa\u30fc-\u30ff\u3100-\u312f\u3200-\u32ff\u3400-\u4dbf\u4e00-\u9fff\uf900-\ufaff", 3015 i = new RegExp("[".concat(a, "]")), 3016 o = new RegExp("([".concat(a, "])[ ]*([\\:]+|\\.)[ ]*([").concat(a, "])"), "g"), 3017 r = new RegExp("([".concat(a, "])[ ]*([~\\!;,\\?]+)[ ]*"), "g"), 3018 c = new RegExp("([\\.]{2,}|\u2026)([".concat(a, "])"), "g"), s = new RegExp("([".concat(a, 3019 "])\\:([A-Z0-9\\(\\)])"), "g"), u = new RegExp("([".concat(a, '])([`"\u05f4])'), "g"), 3020 p = new RegExp('([`"\u05f4])(['.concat(a, "])"), "g"), l = /([`"\u05f4]+)[ ]*(.+?)[ ]*([`"\u05f4]+)/g, 3021 f = new RegExp("([".concat(a, "])('[^s])"), "g"), g = new RegExp("(')([".concat(a, "])"), "g"), 3022 d = new RegExp("([A-Za-z0-9".concat(a, "])( )('s)"), "g"), 3023 h = new RegExp("([".concat(a, "])(#)([").concat(a, "]+)(#)([").concat(a, "])"), "g"), 3024 y = new RegExp("([".concat(a, "])(#([^ ]))"), "g"), v = new RegExp("(([^ ])#)([".concat(a, "])"), "g"), 3025 b = new RegExp("([".concat(a, 3026 "])([\\+\\-\\*\\/=&\\|<>])([A-Za-z0-9])"), "g"), 3027 m = new RegExp("([A-Za-z0-9])([\\+\\-\\*\\/=&\\|<>])([".concat(a, "])"), "g"), 3028 $ = /([\/]) ([a-z\-_\.\/]+)/g, E = /([\/\.])([A-Za-z\-_\.\/]+) ([\/])/g, 3029 S = new RegExp("([".concat(a, "])([\\(\\[\\{<>\u201c])"), "g"), 3030 T = new RegExp("([\\)\\]\\}<>\u201d])([".concat(a, "])"), "g"), 3031 N = /([\(\[\{<\u201c]+)[ ]*(.+?)[ ]*([\)\]\}>\u201d]+)/, 3032 w = new RegExp("([A-Za-z0-9".concat(a, "])[ ]*([\u201c])([A-Za-z0-9").concat(a, "\\-_ ]+)([\u201d])"), "g"), 3033 k = new RegExp("([\u201c])([A-Za-z0-9".concat(a, 3034 "\\-_ ]+)([\u201d])[ ]*([A-Za-z0-9").concat(a, "])"), "g"), P = /([A-Za-z0-9])([\(\[\{])/g, 3035 O = /([\)\]\}])([A-Za-z0-9])/g, 3036 _ = new RegExp("([".concat(a, "])([A-Za-z\u0370-\u03ff0-9@\\$%\\^&\\*\\-\\+\\\\=\\|/\u00a1-\u00ff\u2150-\u218f\u2700\u2014\u27bf])"), "g"), 3037 x = new RegExp("([A-Za-z\u0370-\u03ff0-9~\\$%\\^&\\*\\-\\+\\\\=\\|/!;:,\\.\\?\u00a1-\u00ff\u2150-\u218f\u2700\u2014\u27bf])([".concat(a, "])"), "g"), 3038 R = /(%)([A-Za-z])/g, A = /([ ]*)([\u00b7\u2022\u2027])([ ]*)/g, j = function () { 3039 function e() { 3040 !function (e, t) { 3041 if (!(e instanceof 3042 t)) throw new TypeError("Cannot call a class as a function"); 3043 }(this, e), this.version = "4.0.7" 3044 } 3045 3046 return a = e, (j = [{ 3047 key: "convertToFullwidth", value: function (e) { 3048 return e.replace(/~/g, "\uff5e").replace(/!/g, "\uff01").replace(/;/g, "\uff1b").replace(/:/g, "\uff1a").replace(/,/g, "\uff0c").replace(/\./g, "\u3002").replace(/\?/g, "\uff1f") 3049 } 3050 }, { 3051 key: "spacing", value: function (e) { 3052 if ("string" != typeof e) return console.warn("spacing(text) only accepts string but got ".concat(t(e))), e; 3053 if (e.length <= 1 || !i.test(e)) return e; 3054 var n = 3055 this, a = e; 3056 return a = (a = (a = (a = (a = (a = (a = (a = (a = (a = (a = (a = (a = (a = (a = (a = (a = (a = (a = (a = (a = (a = (a = (a = (a = (a = (a = (a = a.replace(o, function (e, t, a, i) { 3057 var o = n.convertToFullwidth(a); 3058 return "".concat(t).concat(o).concat(i) 3059 })).replace(r, function (e, t, a) { 3060 var i = n.convertToFullwidth(a); 3061 return "".concat(t).concat(i) 3062 })).replace(c, "$1 $2")).replace(s, "$1\uff1a$2")).replace(u, "$1 $2")).replace(p, "$1 $2")).replace(l, "$1$2$3")).replace(f, "$1 $2")).replace(g, "$1 $2")).replace(d, "$1's")).replace(h, "$1 $2$3$4 $5")).replace(y, "$1 $2")).replace(v, 3063 "$1 $3")).replace(b, "$1 $2 $3")).replace(m, "$1 $2 $3")).replace($, "$1$2")).replace(E, "$1$2$3")).replace(S, "$1 $2")).replace(T, "$1 $2")).replace(N, "$1$2$3")).replace(w, "$1 $2$3$4")).replace(k, "$1$2$3 $4")).replace(P, "$1 $2")).replace(O, "$1 $2")).replace(_, "$1 $2")).replace(x, "$1 $2")).replace(R, "$1 $2")).replace(A, "\u30fb") 3064 } 3065 }, { 3066 key: "spacingText", value: function (e) { 3067 var t, n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : function () { 3068 }; 3069 try { 3070 t = this.spacing(e) 3071 } catch (e$6) { 3072 return void n(e$6) 3073 } 3074 n(null, t) 3075 } 3076 }, 3077 { 3078 key: "spacingTextSync", value: function (e) { 3079 return this.spacing(e) 3080 } 3081 }]) && n(a.prototype, j), z && n(a, z), e; 3082 var a, j, z 3083 }(), z = new j; 3084 e.exports = z, e.exports["default"] = z, e.exports.Pangu = j 3085 }) ? a.apply(t, i) : a) || (e.exports = o) 3086 }]) 3087}); 3088(function (h) { 3089 function l(H, I, J) { 3090 var K = this; 3091 return this.on("click.pjax", H, function (M) { 3092 var L = h.extend({}, u(I, J)); 3093 if (!L.container) L.container = h(this).attr("data-pjax") || K; 3094 m(M, L) 3095 }) 3096 } 3097 3098 function m(M, I, J) { 3099 J = u(I, J); 3100 var L = M.currentTarget; 3101 if (L.tagName.toUpperCase() !== "A") throw"$.fn.pjax or $.pjax.click requires an anchor element"; 3102 if (M.which > 1 || M.metaKey || M.ctrlKey || M.shiftKey || M.altKey) return; 3103 if (location.protocol !== L.protocol || location.hostname !== L.hostname) return; 3104 if (L.href.indexOf("#") > -1 && z(L) == z(location)) return; 3105 if (M.isDefaultPrevented()) return; 3106 var N = {url: L.href, container: h(L).attr("data-pjax"), target: L}; 3107 var K = h.extend({}, N, J); 3108 var H = h.Event("pjax:click"); 3109 h(L).trigger(H, [K]); 3110 if (!H.isDefaultPrevented()) { 3111 C(K);
3112 M.preventDefault(); 3113 h(L).trigger("pjax:clicked", [K]) 3114 } 3115 } 3116 3117 function s(K, H, I) { 3118 I = u(H, I); 3119 var J = K.currentTarget; 3120 if (J.tagName.toUpperCase() !== "FORM") throw"$.pjax.submit requires a form element"; 3121 var L = {type: J.method.toUpperCase(), url: J.action, container: h(J).attr("data-pjax"), target: J}; 3122 if (L.type !== "GET" && window.FormData !== 3123 undefined) { 3124 L.data = new FormData(J); 3125 L.processData = false; 3126 L.contentType = false 3127 } else { 3128 if (h(J).find(":file").length) return; 3129 L.data = h(J).serializeArray() 3130 } 3131 C(h.extend({}, L, I)); 3132 K.preventDefault() 3133 } 3134 3135 function C(H) { 3136 H = h.extend(true, {}, h.ajaxSettings, C.defaults, H); 3137 if (h.isFunction(H.url)) H.url = H.url(); 3138 var M = H.target; 3139 var L = r(H.url).hash; 3140 var I = H.context = t(H.container); 3141 if (!H.data) H.data = {}; 3142 if (h.isArray(H.data)) H.data.push({name: "_pjax", value: I.selector}); else H.data._pjax = I.selector; 3143 3144 function K(Q, O, P) { 3145 if (!P) P = {}; 3146 P.relatedTarget = 3147 M; 3148 var R = h.Event(Q, P); 3149 I.trigger(R, O); 3150 return !R.isDefaultPrevented() 3151 } 3152 3153 var J; 3154 H.beforeSend = function (Q, P) { 3155 if (P.type !== "GET") P.timeout = 0; 3156 Q.setRequestHeader("X-PJAX", "true"); 3157 Q.setRequestHeader("X-PJAX-Container", I.selector); 3158 if (!K("pjax:beforeSend", [Q, P])) return false; 3159 if (P.timeout > 0) { 3160 J = setTimeout(function () { 3161 if (K("pjax:timeout", [Q, H])) Q.abort("timeout") 3162 }, P.timeout); 3163 P.timeout = 0 3164 } 3165 var O = r(P.url); 3166 if (L) O.hash = L; 3167 H.requestUrl = q(O) 3168 }; 3169 H.complete = function (O, P) { 3170 if (J) clearTimeout(J); 3171 K("pjax:complete", [O, P, H]); 3172 K("pjax:end", 3173 [O, H]) 3174 }; 3175 H.error = function (R, S, P) { 3176 var O = y("", R, H); 3177 var Q = K("pjax:error", [R, S, P, H]); 3178 if (H.type == "GET" && S !== "abort" && Q) A(O.url) 3179 }; 3180 H.success = function (S, R, Z) { 3181 var V = C.state; 3182 var Y = typeof h.pjax.defaults.version === "function" ? h.pjax.defaults.version() : h.pjax.defaults.version; 3183 var aa = Z.getResponseHeader("X-PJAX-Version"); 3184 var Q = y(S, Z, H); 3185 var P = r(Q.url); 3186 if (L) { 3187 P.hash = L; 3188 Q.url = P.href 3189 } 3190 if (Y && aa && Y !== aa) { 3191 A(Q.url); 3192 return 3193 } 3194 if (!Q.contents) { 3195 A(Q.url); 3196 return 3197 } 3198 C.state = { 3199 id: H.id || n(), url: Q.url, title: Q.title, container: I.selector, fragment: H.fragment, 3200 timeout: H.timeout 3201 }; 3202 if (H.push || H.replace) window.history.replaceState(C.state, Q.title, Q.url); 3203 try { 3204 document.activeElement.blur() 3205 } catch (X) { 3206 } 3207 if (Q.title) document.title = Q.title; 3208 K("pjax:beforeReplace", [Q.contents, H], {state: C.state, previousState: V}); 3209 I.html(Q.contents); 3210 var U = I.find("input[autofocus], textarea[autofocus]").last()[0]; 3211 if (U && document.activeElement !== U) U.focus(); 3212 a(Q.scripts); 3213 var T = H.scrollTo; 3214 if (L) { 3215 var O = decodeURIComponent(L.slice(1)); 3216 var W = document.getElementById(O) || document.getElementsByName(O)[0]; 3217 if (W) T = h(W).offset().top 3218 } 3219 if (typeof T == "number") h(window).scrollTop(T); 3220 K("pjax:success", [S, R, Z, H]) 3221 }; 3222 if (!C.state) { 3223 C.state = { 3224 id: n(), 3225 url: window.location.href, 3226 title: document.title, 3227 container: I.selector, 3228 fragment: H.fragment, 3229 timeout: H.timeout 3230 }; 3231 window.history.replaceState(C.state, document.title) 3232 } 3233 F(C.xhr); 3234 C.options = H; 3235 var N = C.xhr = h.ajax(H); 3236 if (N.readyState > 0) { 3237 if (H.push && !H.replace) { 3238 k(C.state.id, D(I)); 3239 window.history.pushState(null, "", H.requestUrl) 3240 } 3241 K("pjax:start", [N, H]); 3242 K("pjax:send", [N, H]) 3243 } 3244 return C.xhr 3245 } 3246 3247 function x(H, 3248 I) { 3249 var J = {url: window.location.href, push: false, replace: true, scrollTo: false}; 3250 return C(h.extend(J, u(H, I))) 3251 } 3252 3253 function A(H) { 3254 window.history.replaceState(null, "", C.state.url); 3255 window.location.replace(H) 3256 } 3257 3258 var j = true; 3259 var G = window.location.href; 3260 var E = window.history.state; 3261 if (E && E.container) C.state = E; 3262 if ("state" in window.history) j = false; 3263 3264 function c(J) { 3265 if (!j) F(C.xhr); 3266 var O = C.state; 3267 var I = J.state; 3268 var P; 3269 if (I && I.container) { 3270 if (j && G == I.url) return; 3271 if (O) { 3272 if (O.id === I.id) return; 3273 P = O.id < I.id ? "forward" : "back" 3274 } 3275 var H = f[I.id] || []; 3276 var K = h(H[0] || I.container), M = H[1]; 3277 if (K.length) { 3278 if (O) v(P, O.id, D(K)); 3279 var N = h.Event("pjax:popstate", {state: I, direction: P}); 3280 K.trigger(N); 3281 var Q = { 3282 id: I.id, 3283 url: I.url, 3284 container: K, 3285 push: false, 3286 fragment: I.fragment, 3287 timeout: I.timeout, 3288 scrollTo: false 3289 }; 3290 if (M) { 3291 K.trigger("pjax:start", [null, Q]); 3292 C.state = I; 3293 if (I.title) document.title = I.title; 3294 var L = h.Event("pjax:beforeReplace", {state: I, previousState: O}); 3295 K.trigger(L, [M, Q]); 3296 K.html(M); 3297 K.trigger("pjax:end", [null, Q]) 3298 } else C(Q); 3299 K[0].offsetHeight 3300 } else A(location.href) 3301 } 3302 j = false 3303 } 3304 3305 function e(I) { 3306 var H = 3307 h.isFunction(I.url) ? I.url() : I.url, M = I.type ? I.type.toUpperCase() : "GET"; 3308 var K = h("<form>", {method: M === "GET" ? "GET" : "POST", action: H, style: "display:none"}); 3309 if (M !== "GET" && M !== "POST") K.append(h("<input>", { 3310 type: "hidden", 3311 name: "_method", 3312 value: M.toLowerCase() 3313 })); 3314 var L = I.data; 3315 if (typeof L === "string") h.each(L.split("&"), function (N, O) { 3316 var P = O.split("="); 3317 K.append(h("<input>", {type: "hidden", name: P[0], value: P[1]})) 3318 }); else if (h.isArray(L)) h.each(L, function (N, O) { 3319 K.append(h("<input>", {type: "hidden", name: O.name, value: O.value})) 3320 }); 3321 else if (typeof L === "object") { 3322 var J; 3323 for (J in L) K.append(h("<input>", {type: "hidden", name: J, value: L[J]})) 3324 } 3325 h(document.body).append(K);
3326 K.submit() 3327 } 3328 3329 function F(H) { 3330 if (H && H.readyState < 4) { 3331 H.onreadystatechange = h.noop; 3332 H.abort() 3333 } 3334 } 3335 3336 function n() { 3337 return (new Date).getTime() 3338 } 3339 3340 function D(I) { 3341 var H = I.clone(); 3342 H.find("script").each(function () { 3343 if (!this.src) jQuery._data(this, "globalEval", false) 3344 }); 3345 return [I.selector, H.contents()] 3346 } 3347 3348 function q(H) { 3349 H.search = H.search.replace(/([?&])(_pjax|_)=[^&]*/g, ""); 3350 return H.href.replace(/\?($|#)/, 3351 "$1") 3352 } 3353 3354 function r(I) { 3355 var H = document.createElement("a"); 3356 H.href = I; 3357 return H 3358 } 3359 3360 function z(H) { 3361 return H.href.replace(/#.*/, "") 3362 } 3363 3364 function u(H, I) { 3365 if (H && I) I.container = H; else if (h.isPlainObject(H)) I = H; else I = {container: H}; 3366 if (I.container) I.container = t(I.container); 3367 return I 3368 } 3369 3370 function t(H) { 3371 H = h(H); 3372 if (!H.length) throw"no pjax container for " + H.selector; else if (H.selector !== "" && H.context === document) return H; else if (H.attr("id")) return h("#" + H.attr("id")); else throw"cant get selector for pjax container!"; 3373 } 3374 3375 function o(I, 3376 H) { 3377 return I.filter(H).add(I.find(H)) 3378 } 3379 3380 function w(H) { 3381 return h.parseHTML(H, document, true) 3382 } 3383 3384 function y(L, N, P) { 3385 var K = {}, H = /<html/i.test(L); 3386 var I = N.getResponseHeader("X-PJAX-URL"); 3387 K.url = I ? q(r(I)) : P.requestUrl; 3388 if (H) { 3389 var M = h(w(L.match(/<head[^>]*>([\s\S.]*)<\/head>/i)[0])); 3390 var J = h(w(L.match(/<body[^>]*>([\s\S.]*)<\/body>/i)[0])) 3391 } else var M = J = h(w(L)); 3392 if (J.length === 0) return K; 3393 K.title = o(M, "title").last().text(); 3394 if (P.fragment) { 3395 if (P.fragment === "body") var O = J; else var O = o(J, P.fragment).first(); 3396 if (O.length) { 3397 K.contents = 3398 P.fragment === "body" ? O : O.contents(); 3399 if (!K.title) K.title = O.attr("title") || O.data("title") 3400 } 3401 } else if (!H) K.contents = J; 3402 if (K.contents) { 3403 K.contents = K.contents.not(function () { 3404 return h(this).is("title") 3405 }); 3406 K.contents.find("title").remove(); 3407 K.scripts = o(K.contents, "script[src]").remove(); 3408 K.contents = K.contents.not(K.scripts) 3409 } 3410 if (K.title) K.title = h.trim(K.title); 3411 return K 3412 } 3413 3414 function a(H) { 3415 if (!H) return; 3416 var I = h("script[src]"); 3417 H.each(function () { 3418 var L = this.src; 3419 var M = I.filter(function () { 3420 return this.src === L 3421 }); 3422 if (M.length) return; 3423 var J = document.createElement("script"); 3424 var K = h(this).attr("type"); 3425 if (K) J.type = K; 3426 J.src = h(this).attr("src"); 3427 document.head.appendChild(J) 3428 }) 3429 } 3430 3431 var f = {}; 3432 var g = []; 3433 var i = []; 3434 3435 function k(I, H) { 3436 f[I] = H; 3437 i.push(I); 3438 b(g, 0); 3439 b(i, C.defaults.maxCacheLength) 3440 } 3441 3442 function v(J, L, I) { 3443 var K, H; 3444 f[L] = I; 3445 if (J === "forward") { 3446 K = i; 3447 H = g 3448 } else { 3449 K = g; 3450 H = i 3451 } 3452 K.push(L); 3453 if (L = H.pop()) delete f[L]; 3454 b(K, C.defaults.maxCacheLength) 3455 } 3456 3457 function b(H, I) { 3458 while (H.length > I) delete f[H.shift()] 3459 } 3460 3461 function B() { 3462 return h("meta").filter(function () { 3463 var H = h(this).attr("http-equiv"); 3464 return H && H.toUpperCase() === "X-PJAX-VERSION" 3465 }).attr("content") 3466 } 3467 3468 function p() { 3469 h.fn.pjax = l; 3470 h.pjax = C; 3471 h.pjax.enable = h.noop; 3472 h.pjax.disable = d; 3473 h.pjax.click = m; 3474 h.pjax.submit = s; 3475 h.pjax.reload = x; 3476 h.pjax.defaults = { 3477 timeout: 650, 3478 push: true, 3479 replace: false, 3480 type: "GET", 3481 dataType: "html", 3482 scrollTo: 0, 3483 maxCacheLength: 20, 3484 version: B 3485 }; 3486 h(window).on("popstate.pjax", c) 3487 } 3488 3489 function d() { 3490 h.fn.pjax = function () { 3491 return this 3492 }; 3493 h.pjax = e; 3494 h.pjax.enable = p; 3495 h.pjax.disable = h.noop; 3496 h.pjax.click = h.noop; 3497 h.pjax.submit = h.noop; 3498 h.pjax.reload = function () { 3499 window.location.reload() 3500 }; 3501 h(window).off("popstate.pjax", c) 3502 } 3503 3504 if (h.inArray("state", h.event.props) < 0) h.event.props.push("state"); 3505 h.support.pjax = window.history && window.history.pushState && window.history.replaceState && !navigator.userAgent.match(/((iPod|iPhone|iPad).+\bO
3505S\s+[1-4]\D|WebApps\/.+CFNetwork)/); 3506 h.support.pjax ? p() : d() 3507})(jQuery); 3508(function (n, p) { 3509 "function" === typeof define && define.amd ? define([], function () { 3510 return p.apply(n) 3511 }) : "object" === typeof exports ? module.exports = p.call(n) : n.Waves = p.call(n) 3512})("object" === typeof global ? global : this, function () { 3513 function n(a) { 3514 var b = typeof a; 3515 return "function" === b || "object" === b && !!a 3516 } 3517 3518 function p(a) { 3519 var b = r.call(a); 3520 return "[object String]" === b ? w(a) : n(a) && /^\[object (Array|HTMLCollection|NodeList|Object)\]$/.test(b) && a.hasOwnProperty("length") ? a : n(a) && 0 < a.nodeType ? [a] : [] 3521 } 3522 3523 function t(a) { 3524 var b, c = {top: 0, left: 0}, 3525 d = a && a.ownerDocument; 3526 b = d.documentElement; 3527 "undefined" !== typeof a.getBoundingClientRect && (c = a.getBoundingClientRect()); 3528 a = null !== d && d === d.window ? d : 9 === d.nodeType && d.defaultView; 3529 return {top: c.top + a.pageYOffset - b.clientTop, left: c.left + a.pageXOffset - b.clientLeft} 3530 } 3531 3532 function q(a) { 3533 var b = "", c; 3534 for (c in a) a.hasOwnProperty(c) && (b += c + ":" + a[c] + ";"); 3535 return b 3536 } 3537 3538 function x(a, b, c) { 3539 if (c) { 3540 c.classList.remove("waves-rippling"); 3541 var d = c.getAttribute("data-x"), e = c.getAttribute("data-y"), f = c.getAttribute("data-scale"), 3542 k = c.getAttribute("data-translate"), 3543 g = 350 - (Date.now() - Number(c.getAttribute("data-hold"))); 3544 0 > g && (g = 0); 3545 "mousemove" === a.type && (g = 150); 3546 var m = "mousemove" === a.type ? 2500 : h.duration; 3547 setTimeout(function () { 3548 c.setAttribute("style", q({ 3549 top: e + "px", 3550 left: d + "px", 3551 opacity: "0", 3552 "-webkit-transition-duration": m + "ms", 3553 "-moz-transition-duration": m + "ms", 3554 "-o-transition-duration": m + "ms", 3555 "transition-duration": m + "ms", 3556 "-webkit-transform": f + " " + k, 3557 "-moz-transform": f + " " + k, 3558 "-ms-transform": f + " " + k, 3559 "-o-transform": f + " " + k, 3560 transform: f + " " + k 3561 })); 3562 setTimeout(function () { 3563 try { 3564 b.removeChild(c) 3565 } catch (A) { 3566 return !1 3567 } 3568 }, 3569 m) 3570 }, g) 3571 } 3572 } 3573 3574 function y(a) { 3575 if (!1 === g.allowEvent(a)) return null; 3576 var b = null; 3577 for (a = a.target || a.srcElement; null !== a.parentElement;) { 3578 if (a.classList.contains("waves-effect") && !(a instanceof SVGElement)) { 3579 b = a; 3580 break 3581 } 3582 a = a.parentElement 3583 } 3584 return b 3585 } 3586 3587 function u(a) { 3588 var b = y(a); 3589 if (null !== b && !(b.disabled || b.getAttribute("disabled") || b.classList.contains("disabled"))) if (g.registerEvent(a), "touchstart" === a.type && h.delay) { 3590 var c = !1, d = setTimeout(function () { 3591 d = null; 3592 h.show(a, b) 3593 }, h.delay), e = function (e) { 3594 d && (clearTimeout(d), d = null, h.show(a, 3595 b)); 3596 c || (c = !0, h.hide(e, b)) 3597 }; 3598 b.addEventListener("touchmove", function (a) { 3599 d && (clearTimeout(d), d = null); 3600 e(a) 3601 }, !1); 3602 b.addEventListener("touchend", e, !1); 3603 b.addEventListener("touchcancel", e, !1) 3604 } else h.show(a, b), v && (b.addEventListener("touchend", h.hide, !1), b.addEventListener("touchcancel", h.hide, !1)), b.addEventListener("mouseup", h.hide, !1), b.addEventListener("mouseleave", h.hide, !1) 3605 } 3606 3607 var l = l || {}, w = document.querySelectorAll.bind(document), r = Object.prototype.toString, 3608 v = "ontouchstart" in window, h = { 3609 duration: 750, delay: 200, 3610 show: function (a, b, c) { 3611 if (2 === a.button) return !1; 3612 b = b || this; 3613 var d = document.createElement("div"); 3614 d.className = "waves-ripple waves-rippling"; 3615 b.appendChild(d); 3616 var e = t(b), f; 3617 "touches" in a && a.touches.length ? (f = a.touches[0].pageY - e.top, e = a.touches[0].pageX - e.left) : (f = a.pageY - e.top, e = a.pageX
3617- e.left); 3618 e = 0 <= e ? e : 0; 3619 f = 0 <= f ? f : 0; 3620 b = "scale(" + b.clientWidth / 100 * 3 + ")"; 3621 var k = "translate(0,0)"; 3622 c && (k = "translate(" + c.x + "px, " + c.y + "px)"); 3623 d.setAttribute("data-hold", Date.now()); 3624 d.setAttribute("data-x", e); 3625 d.setAttribute("data-y", f); 3626 d.setAttribute("data-scale", b); 3627 d.setAttribute("data-translate", k); 3628 c = {top: f + "px", left: e + "px"}; 3629 d.classList.add("waves-notransition"); 3630 d.setAttribute("style", q(c)); 3631 d.classList.remove("waves-notransition"); 3632 c["-webkit-transform"] = b + " " + k; 3633 c["-moz-transform"] = b + " " + k; 3634 c["-ms-transform"] = b + " " + k; 3635 c["-o-transform"] = b + " " + k; 3636 c.transform = b + " " + k; 3637 c.opacity = "1"; 3638 a = "mousemove" === a.type ? 2500 : h.duration; 3639 c["-webkit-transition-duration"] = a + "ms"; 3640 c["-moz-transition-duration"] = a + "ms"; 3641 c["-o-transition-duration"] = a + "ms"; 3642 c["transition-duration"] = 3643 a + "ms"; 3644 d.setAttribute("style", q(c)) 3645 }, hide: function (a, b) { 3646 b = b || this; 3647 for (var c = b.getElementsByClassName("waves-rippling"), d = 0, e = c.length; d < e; d++) x(a, b, c[d]) 3648 } 3649 }, z = { 3650 input: function (a) { 3651 var b = a.parentNode; 3652 if ("i" !== b.tagName.toLowerCase() || !b.classList.contains("waves-effect")) { 3653 var c = document.createElement("i"); 3654 c.className = a.className + " waves-input-wrapper"; 3655 a.className = "waves-button-input"; 3656 b.replaceChild(c, a); 3657 c.appendChild(a); 3658 b = window.getComputedStyle(a, null); 3659 c.setAttribute("style", "color:" + b.color + ";background:" + 3660 b.backgroundColor); 3661 a.setAttribute("style", "background-color:rgba(0,0,0,0);") 3662 } 3663 }, img: function (a) { 3664 var b = a.parentNode; 3665 if ("i" !== b.tagName.toLowerCase() || !b.classList.contains("waves-effect")) { 3666 var c = document.createElement("i"); 3667 b.replaceChild(c, a); 3668 c.appendChild(a) 3669 } 3670 } 3671 }, g = { 3672 touches: 0, allowEvent: function (a) { 3673 var b = !0; 3674 /^(mousedown|mousemove)$/.test(a.type) && g.touches && (b = !1); 3675 return b 3676 }, registerEvent: function (a) { 3677 a = a.type; 3678 "touchstart" === a ? g.touches += 1 : /^(touchend|touchcancel)$/.test(a) && setTimeout(function () { 3679 g.touches && 3680 --g.touches 3681 }, 500) 3682 } 3683 }; 3684 l.init = function (a) { 3685 var b = document.body; 3686 a = a || {}; 3687 "duration" in a && (h.duration = a.duration); 3688 "delay" in a && (h.delay = a.delay); 3689 v && (b.addEventListener("touchstart", u, !1), b.addEventListener("touchcancel", g.registerEvent, !1), b.addEventListener("touchend", g.registerEvent, !1)); 3690 b.addEventListener("mousedown", u, !1) 3691 }; 3692 l.attach = function (a, b) { 3693 a = p(a); 3694 "[object Array]" === r.call(b) && (b = b.join(" ")); 3695 b = b ? " " + b : ""; 3696 for (var c, d, e = 0, f = a.length; e < f; e++) c = a[e], d = c.tagName.toLowerCase(), -1 !== ["input", "img"].indexOf(d) && 3697 (z[d](c), c = c.parentElement), -1 === c.className.indexOf("waves-effect") && (c.className += " waves-effect" + b) 3698 }; 3699 l.ripple = function (a, b) { 3700 a = p(a); 3701 var c = a.length; 3702 b = b || {}; 3703 b.wait = b.wait || 0; 3704 b.position = b.position || null; 3705 if (c) for (var d, e, f, k, g = 0, m = {type: "mousedown", button: 1}, l = function (a, b) { 3706 return function () { 3707 h.hide(a, b) 3708 } 3709 }; g < c; g++) d = a[g], e = b.position || { 3710 x: d.clientWidth / 2, 3711 y: d.clientHeight / 2 3712 }, f = t(d), k = f.left + e.x, e = f.top + e.y, m.pageX = k, m.pageY = e, h.show(m, d), 0 <= b.wait && null !== b.wait && setTimeout(l({ 3713 type: "mouseup", 3714 button: 1 3715 }, 3716 d), b.wait) 3717 }; 3718 l.calm = function (a) { 3719 a = p(a); 3720 for (var b = {type: "mouseup", button: 1}, c = 0, d = a.length; c < d; c++) h.hide(b, a[c]) 3721 }; 3722 l.displayEffect = function (a) { 3723 console.error("Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect"); 3724 l.init(a) 3725 }; 3726 return l 3727});/* 3728 MIT 3729*/ 3730+function ($) { 3731 function transitionEnd() { 3732 var el = document.createElement("bootstrap"); 3733 var transEndEventNames = { 3734 WebkitTransition: "webkitTransitionEnd", 3735 MozTransition: "transitionend", 3736 OTransition: "oTransitionEnd otransitionend", 3737 transition: "transitionend" 3738 }; 3739 for (var name in transEndEventNames) if (el.style[name] !== undefined) return {end: transEndEventNames[name]}; 3740 return false 3741 } 3742 3743 $.fn.emulateTransitionEnd = function (duration) { 3744 var called = false; 3745 var $el = this; 3746 $(this).one("bsTransitionEnd", function () { 3747 called = true 3748 }); 3749 var callback = 3750 function () { 3751 if (!called) $($el).trigger($.support.transition.end) 3752 }; 3753 setTimeout(callback, duration); 3754 return this 3755 }; 3756 $(function () { 3757 $.support.transition = transitionEnd(); 3758 if (!$.support.transition) return $.event.special.bsTransitionEnd = { 3759 bindType: $.support.transition.end, 3760 delegateType: $.support.transition.end, 3761 handle: function (e) { 3762 if ($(e.target).is(this)) return e.handleObj.handler.apply(this, arguments) 3763 } 3764 } 3765 }) 3766}(jQuery); 3767+function (t) { 3768 function o() { 3769 this._activeZoom = this._initialScrollPosition = this._initialTouchPosition = this._touchMoveListener = null, this._$document = t(document), this._$window = t(window), this._$body = t(document.body), this._boundClick = t.proxy(this._clickHandler, this) 3770 } 3771 3772 function i(o) {
3773 this._fullHeight = this._fullWidth = this._overlay = this._targetImageWrap = null, this._targetImage = o, this._$body = t(document.body) 3774 } 3775 3776 o.prototype.listen = function () { 3777 this._$body.on("click", '[data-action="zoom"]', t.proxy(this._zoom, this)) 3778 }, o.prototype._zoom = 3779 function (o) { 3780 var e = o.target; 3781 if (e && "IMG" == e.tagName && !this._$body.hasClass("zoom-overlay-open")) return o.metaKey || o.ctrlKey ? window.open(o.target.getAttribute("data-original") || o.target.src, "_blank") : void (e.width >= t(window).width() - i.OFFSET || (this._activeZoomClose(!0), this._activeZoom = new i(e), this._activeZoom.zoomImage(), this._$window.on("scroll.zoom", t.proxy(this._scrollHandler, this)), this._$document.on("keyup.zoom", t.proxy(this._keyHandler, this)), this._$document.on("touchstart.zoom", t.proxy(this._touchStart, 3782 this)), document.addEventListener ? document.addEventListener("click", this._boundClick, !0) : document.attachEvent("onclick", this._boundClick, !0), "bubbles" in o ? o.bubbles && o.stopPropagation() : o.cancelBubble = !0)) 3783 }, o.prototype._activeZoomClose = function (t) { 3784 this._activeZoom && (t ? this._activeZoom.dispose() : this._activeZoom.close(), this._$window.off(".zoom"), this._$document.off(".zoom"), document.removeEventListener("click", this._boundClick, !0), this._activeZoom = null) 3785 }, o.prototype._scrollHandler = function (o) { 3786 null === 3787 this._initialScrollPosition && (this._initialScrollPosition = t(window).scrollTop()); 3788 var i = this._initialScrollPosition - t(window).scrollTop(); 3789 Math.abs(i) >= 40 && this._activeZoomClose() 3790 }, o.prototype._keyHandler = function (t) { 3791 27 == t.keyCode && this._activeZoomClose() 3792 }, o.prototype._clickHandler = function (t) { 3793 t.preventDefault ? t.preventDefault() : event.returnValue = !1, "bubbles" in t ? t.bubbles && t.stopPropagation() : t.cancelBubble = !0, this._activeZoomClose() 3794 }, o.prototype._touchStart = function (o) { 3795 this._initialTouchPosition = 3796 o.touches[0].pageY, t(o.target).on("touchmove.zoom", t.proxy(this._touchMove, this)) 3797 }, o.prototype._touchMove = function (o) { 3798 Math.abs(o.touches[0].pageY - this._initialTouchPosition) > 10 && (this._activeZoomClose(), t(o.target).off("touchmove.zoom")) 3799 }, i.OFFSET = 80, i._MAX_WIDTH = 2560, i._MAX_HEIGHT = 4096, i.prototype.zoomImage = function () { 3800 var o = document.createElement("img"); 3801 o.onload = t.proxy(function () { 3802 this._fullHeight = Number(o.height), this._fullWidth = Number(o.width), this._zoomOriginal() 3803 }, this), o.src = this._targetImage.src 3804 }, 3805 i.prototype._zoomOriginal = function () { 3806 this._targetImageWrap = document.createElement("div"), this._targetImageWrap.className = "zoom-img-wrap", this._targetImage.parentNode.insertBefore(this._targetImageWrap, this._targetImage), this._targetImageWrap.appendChild(this._targetImage), t(this._targetImage).addClass("zoom-img").attr("data-action", "zoom-out"), this._overlay = document.createElement("div"), this._overlay.className = "zoom-overlay", document.body.appendChild(this._overlay), this._calculateZoom(), this._triggerAnimation() 3807 }, 3808 i.prototype._calculateZoom = function () { 3809 this._targetImage.offsetWidth; 3810 var o = this._fullWidth, e = this._fullHeight, a = (t(window).scrollTop(), o / this._targetImage.width), 3811 s = t(window).height() - i.OFFSET, r = t(window).width() - i.OFFSET, n = o / e, h = r / s; 3812 this._imgScaleFactor = r > o && s > e ? a : h > n ? s / e * a : r / o * a 3813 }, i.prototype._triggerAnimation = function () { 3814 this._targetImage.offsetWidth; 3815 var o = t(this._targetImage).offset(), i = t(window).scrollTop(), e = i + t(window).height() / 2, 3816 a = t(window).width() / 2, s = o.top + this._targetImage.height / 2, r = o.left + 3817 this._targetImage.width / 2; 3818 this._translateY = e - s, this._translateX = a - r; 3819 var n = "scale(" + this._imgScaleFactor + ")", 3820 h = "translate(" + this._translateX + "px, " + this._translateY + "px)"; 3821 t.support.transition && (h += " translateZ(0)"), t(this._targetImage).css({ 3822 "-webkit-transform": n, 3823 "-ms-transform": n, 3824 transform: n 3825 }), t(this._targetImageWrap).css({ 3826 "-webkit-transform": h, 3827 "-ms-transform": h, 3828 transform: h 3829 }), this._$body.addClass("zoom-overlay-open") 3830 }, i.prototype.close = function () { 3831 return this._$body.removeClass("zoom-overlay-open").addClass("zoom-overlay-transitioning"), 3832 t(this._targetImage).css({ 3833 "-webkit-transform": "", 3834 "-ms-transform": "", 3835 transform: "" 3836 }), t(this._targetImageWrap).css({ 3837 "-webkit-transform": "", 3838 "-ms-transform": "", 3839 transform: "" 3840 }), t.support.transition ? void t(this._targetImage).one(t.support.transition.end, t.proxy(this.dispose, this)).emulateTransitionEnd(300) : this.dispose() 3841 }, i.prototype.dispose = function () { 3842 this._targetImageWrap && this._targetImageWrap.parentNode && (t(this._targetImage).removeClass("zoom-img").attr("data-action", "zoom"), this._targetImageWrap.parentNode.replaceChild(this._targetImage, 3843 this._targetImageWrap), this._overlay.parentNode.removeChild(this._overlay), this._$body.removeClass("zoom-overlay-transitioning")) 3844 }, t(function () { 3845 (new o).listen() 3846 }) 3847}(jQuery); 3848jQuery(document).ready(function (e) { 3849 window.loadGithubRepos = function () { 3850 e(".github-widget:not(.loaded)").each(function () { 3851 var s = e(this), o, u = s.data("repo"), a = u.split("/")[0], f = u.split("/")[1], 3852 l = "http://github.com/" + a, c = "http://github.com/" + a + "/" + f; 3853 o = e('<div class="github-box repo">' + '<div class="github-box-title">' + "<h3>" + '<a class="owner" href="' + l + '" title="' + l + '" target="_blank">' + a + "</a>" + "/" + '<a class="repo" href="' + c + '" title="' + c + '" target="_blank">' + f + "</a>" + "</h3>" + '<div class="github-stats">' + 3854 '<a class="watchers" href="' + c + '/stargazers" title="See stars" target="_blank"><i class="fa fa-star" aria-hidden="true"></i><span>?</span></a>' + '<a class="forks" href="' + c + '/network/members" title="See forkers" target="_blank"><i class="fa fa-code-fork" aria-hidden="true"></i><span>?</span></a>' + "</div>" + "</div>" + '<div class="github-box-content">' + '<p class="description"><span></span> \u2014 <a href="' + c + '#readme" target="_blank">Read More</a></p>' + '<p class="link"></p>' + "</div>" + '<div class="github-box-download">' + 3855 '<div class="updated"></div>' + '<a class="download" href="' + c + '/zipball/master" title="Get an archive of this repository">Download as zip</a>' + "</div>" + "</div>"); 3856 o.appendTo(s);
3857 s.addClass("loaded"); 3858 e.ajax({ 3859 url: "https://api.github.com/repos/" + u, dataType: "jsonp", success: function (t) { 3860 var n = t.data, r, i = "unknown"; 3861 if (n.pushed_at) { 3862 r = new Date(n.pushed_at); 3863 i = r.getMonth() + 1 + "-" + r.getDate() + "-" + r.getFullYear() 3864 } 3865 o.find(".watchers span").text(n.watchers); 3866 o.find(".forks span").text(n.forks); 3867 o.find(".description span").text(n.description); 3868 o.find(".updated").html("Latest commit to the <strong>" + n.default_branch + "</strong> branch on " + i); 3869 if (n.homepage != null) o.find(".link").append(e("<a />").attr("href", n.homepage).text(n.homepage)) 3870 } 3871 }) 3872 }) 3873 }; 3874 loadGithubRepos() 3875});
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.