1/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */ !(function (a) { 2 "function" == typeof define && define.amd 3 ? define(["jquery"], a) 4 : a("object" == typeof exports ? require("jquery") : jQuery) 5})(function (a) { 6 var b = (function () { 7 if (a && a.fn && a.fn.mselect2 && a.fn.mselect2.amd) var b = a.fn.mselect2.amd 8 var b 9 return ( 10 (function () { 11 if (!b || !b.requirejs) { 12 b ? (c = b) : (b = {}) 13 var a, c, d 14 !(function (b) { 15 function e(a, b) { 16 return u.call(a, b) 17 } 18 function f(a, b) { 19 var c, 20 d, 21 e, 22 f, 23 g, 24 h, 25 i, 26 j, 27 k, 28 l, 29 m, 30 n = b && b.split("/"), 31 o = s.map, 32 p = (o && o["*"]) || {} 33 if (a && "." === a.charAt(0)) 34 if (b) { 35 for ( 36 a = a.split("/"), 37 g = a.length - 1, 38 s.nodeIdCompat && w.test(a[g]) && (a[g] = a[g].replace(w, "")), 39 a = n.slice(0, n.length - 1).concat(a), 40 k = 0; 41 k < a.length; 42 k += 1 43 ) 44 if (((m = a[k]), "." === m)) a.splice(k, 1), (k -= 1) 45 else if (".." === m) { 46 if (1 === k && (".." === a[2] || ".." === a[0])) break 47 k > 0 && (a.splice(k - 1, 2), (k -= 2)) 48 } 49 a = a.join("/") 50 } else 0 === a.indexOf("./") && (a = a.substring(2)) 51 if ((n || p) && o) { 52 for (c = a.split("/"), k = c.length; k > 0; k -= 1) { 53 if (((d = c.slice(0, k).join("/")), n)) 54 for (l = n.length; l > 0; l -= 1) 55 if (((e = o[n.slice(0, l).join("/")]), e && (e = e[d]))) { 56 ;(f = e), (h = k) 57 break 58 } 59 if (f) break 60 !i && p && p[d] && ((i = p[d]), (j = k)) 61 } 62 !f && i && ((f = i), (h = j)), f && (c.splice(0, h, f), (a = c.join("/"))) 63 } 64 return a 65 } 66 function g(a, c) { 67 return function () { 68 var d = v.call(arguments, 0) 69 return ( 70 "string" != typeof d[0] && 1 === d.length && d.push(null), 71 n.apply(b, d.concat([a, c])) 72 ) 73 } 74 } 75 function h(a) { 76 return function (b) { 77 return f(b, a) 78 } 79 } 80 function i(a) { 81 return function (b) { 82 q[a] = b 83 } 84 } 85 function j(a) { 86 if (e(r, a)) { 87 var c = r[a] 88 delete r[a], (t[a] = !0), m.apply(b, c) 89 } 90 if (!e(q, a) && !e(t, a)) throw new Error("No " + a) 91 return q[a] 92 } 93 function k(a) { 94 var b, 95 c = a ? a.indexOf("!") : -1 96 return ( 97 c > -1 && ((b = a.substring(0, c)), (a = a.substring(c + 1, a.length))), [b, a] 98 ) 99 } 100 function l(a) { 101 return function () { 102 return (s && s.config && s.config[a]) || {} 103 } 104 } 105 var m, 106 n, 107 o, 108 p, 109 q = {}, 110 r = {}, 111 s = {}, 112 t = {}, 113 u = Object.prototype.hasOwnProperty, 114 v = [].slice, 115 w = /\.js$/ 116 ;
116(o = function (a, b) { 117 var c, 118 d = k(a), 119 e = d[0] 120 return ( 121 (a = d[1]), 122 e && ((e = f(e, b)), (c = j(e))), 123 e 124 ? (a = c && c.normalize ? c.normalize(a, h(b)) : f(a, b)) 125 : ((a = f(a, b)), (d = k(a)), (e = d[0]), (a = d[1]), e && (c = j(e))), 126 { f: e ? e + "!" + a : a, n: a, pr: e, p: c } 127 ) 128 }), 129 (p = { 130 require: function (a) { 131 return g(a) 132 }, 133 exports: function (a) { 134 var b = q[a] 135 return "undefined" != typeof b ? b : (q[a] = {}) 136 }, 137 module: function (a) { 138 return { id: a, uri: "", exports: q[a], config: l(a) } 139 }, 140 }), 141 (m = function (a, c, d, f) { 142 var h, 143 k, 144 l, 145 m, 146 n, 147 s, 148 u = [], 149 v = typeof d 150 if (((f = f || a), "undefined" === v || "function" === v)) { 151 for ( 152 c = !c.length && d.length ? ["require", "exports", "module"] : c, n = 0; 153 n < c.length; 154 n += 1 155 ) 156 if (((m = o(c[n], f)), (k = m.f), "require" === k)) u[n] = p.require(a) 157 else if ("exports" === k) (u[n] = p.exports(a)), (s = !0) 158 else if ("module" === k) h = u[n] = p.module(a) 159 else if (e(q, k) || e(r, k) || e(t, k)) u[n] = j(k) 160 else { 161 if (!m.p) throw new Error(a + " missing " + k) 162 m.p.load(m.n, g(f, !0), i(k), {}), (u[n] = q[k]) 163 } 164 ;(l = d ? d.apply(q[a], u) : void 0), 165 a && 166 (h && h.exports !== b && h.exports !== q[a]
167 ? (q[a] = h.exports) 168 : (l === b && s) || (q[a] = l)) 169 } else a && (q[a] = d) 170 }), 171 (a = 172 c = 173 n = 174 function (a, c, d, e, f) { 175 if ("string" == typeof a) return p[a] ? p[a](c) : j(o(a, c).f) 176 if (!a.splice) { 177 if (((s = a), s.deps && n(s.deps, s.callback), !c)) return 178 c.splice ? ((a = c), (c = d), (d = null)) : (a = b) 179 } 180 return ( 181 (c = c || function () {}), 182 "function" == typeof d && ((d = e), (e = f)), 183 e 184 ? m(b, a, c, d) 185 : setTimeout(function () { 186 m(b, a, c, d) 187 }, 4), 188 n 189 ) 190 }), 191 (n.config = function (a) { 192 return n(a) 193 }), 194 (a._defined = q), 195 (d = function (a, b, c) { 196 if ("string" != typeof a) 197 throw new Error("See almond README: incorrect module build, no module name") 198 b.splice || ((c = b), (b = [])), e(q, a) || e(r, a) || (r[a] = [a, b, c]) 199 }), 200 (d.amd = { jQuery: !0 }) 201 })(), 202 (b.requirejs = a), 203 (b.require = c), 204 (b.define = d) 205 } 206 })(), 207 b.define("almond", function () {}), 208 b.define("jquery", [], function () { 209 var b = a || $ 210 return ( 211 null == b && 212 console && 213 console.error && 214 console.error( 215 "Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page.", 216 ), 217 b 218 ) 219 }), 220 b.define("select2/utils", ["jquery"], function (a) { 221 function b(a) { 222 var b = a.prototype, 223 c = [] 224 for (var d in b) { 225 var e = b[d] 226 "function" == typeof e && "constructor" !== d && c.push(d) 227 } 228 return c 229 } 230 var c = {} 231 ;(c.Extend = function (a, b) { 232 function c() { 233 this.constructor = a 234 } 235 var d = {}.hasOwnProperty 236 for (var e in b) d.call(b, e) && (a[e] = b[e]) 237 return ( 238 (c.prototype = b.prototype), (a.prototype = new c()), (a.__super__ = b.prototype), a 239 ) 240 }), 241 (c.Decorate = function (a, c) { 242 function d() { 243 var b = Array.prototype.unshift, 244 d = c.prototype.constructor.length, 245 e = a.prototype.constructor 246 d > 0 && 247 (b.call(arguments, a.prototype.constructor), (e = c.prototype.constructor)), 248 e.apply(this, arguments) 249 } 250 function e() { 251 this.constructor = d 252 } 253 var f = b(c), 254 g = b(a) 255 ;(c.displayName = a.displayName), (d.prototype = new e()) 256 for (var h = 0; h < g.length; h++) { 257 var i = g[h] 258 d.prototype[i] = a.prototype[i] 259 } 260 for ( 261 var j = function (a) { 262 var b = function () {} 263 ;(a in d.prototype) && (b = d.prototype[a]) 264 var e = c.prototype[a] 265 return function () { 266 var a = Array.prototype.unshift 267 return a.call(arguments, b), e.apply(this, arguments) 268 } 269 }, 270 k = 0; 271 k < f.length; 272 k++ 273 ) { 274 var l = f[k] 275 d.prototype[l] = j(l) 276 } 277 return d 278 }) 279 var d = function () { 280 this.listeners = {} 281 } 282 return ( 283 (d.prototype.on = function (a, b) { 284 ;(this.listeners = this.listeners || {}), 285 a in this.listeners ? this.listeners[a].push(b) : (this.listeners[a] = [b]) 286 }), 287 (d.prototype.trigger = function (a) { 288 var b = Array.prototype.slice, 289 c = b.call(arguments, 1) 290 ;(this.listeners = this.listeners || {}), 291 null == c && (c = []), 292 0 === c.length && c.push({}), 293 (c[0]._type = a), 294 a in this.listeners && this.invoke(this.listeners[a], b.call(arguments, 1)), 295 "*" in this.listeners && this.invoke(this.listeners["*"], arguments) 296 }), 297 (d.prototype.invoke = function (a, b) { 298 for (var c = 0, d = a.length; d > c; c++) a[c].apply(this, b) 299 }), 300 (c.Observable = d), 301 (c.generateChars = function (a) { 302 for (var b = "", c = 0; a > c; c++) { 303 var d = Math.floor(36 * Math.random()) 304 b += d.toString(36) 305 } 306 return b 307 }), 308 (c.bind = function (a, b) { 309 return function () { 310 a.apply(b, arguments) 311 } 312 }), 313 (c._convertData = function (a) { 314 for (var b in a) { 315 var c = b.split("-"), 316 d = a 317 if (1 !== c.length) { 318 for (var e = 0; e < c.length; e++) { 319 var f = c[e] 320 ;(f = f.substring(0, 1).toLowerCase() + f.substring(1)), 321 f in d || (d[f] = {}), 322 e == c.length - 1 && (d[f] = a[b]), 323 (d = d[f]) 324 } 325 delete a[b] 326 } 327 } 328 return a 329 }), 330 (c.hasScroll = function (b, c) { 331 var d = a(c), 332 e = c.style.overflowX, 333 f = c.style.overflowY 334 return e !== f || ("hidden" !== f && "visible" !== f) 335 ? "scroll" === e || "scroll" === f 336 ? !0 337 : d.innerHeight() < c.scrollHeight || d.innerWidth() < c.scrollWidth 338 : !1 339 }), 340 (c.escapeMarkup = function (a) { 341 var b = { 342 "\\": "\", 343 "&": "&", 344 "<": "<", 345 ">": ">", 346 '"': """, 347 "'": "'", 348 "/": "/", 349 } 350 return "string" != typeof a 351 ? a 352 : String(a).replace(/[&<>"'\/\\]/g, function (a) { 353 return b[a] 354 }) 355 }), 356 (c.appendMany = function (b, c) { 357 if ("1.7" === a.fn.jquery.substr(0, 3)) { 358 var d = a() 359 a.map(c, function (a) { 360 d = d.add(a) 361 }), 362 (c = d) 363 } 364 b.append(c) 365 }), 366 c 367 ) 368 }), 369 b.define("select2/results", ["jquery", "./utils"], function (a, b) { 370 function c(a, b, d) { 371 ;(this.$element = a), 372 (this.data = d), 373 (this.options = b), 374 c.__super__.constructor.call(this) 375 } 376 return ( 377 b.Extend(c, b.Observable), 378 (c.prototype.render = function () { 379 var b = a('<ul class="select2-results__options" role="tree"></ul>') 380 return ( 381 this.options.get("multiple") && b.attr("aria-multiselectable", "true"), 382 (this.$results = b), 383 b 384 ) 385 }), 386 (c.prototype.clear = function () { 387 this.$results.empty() 388 }), 389 (c.prototype.displayMessage = function (b) { 390 var c = this.options.get("escapeMarkup") 391 this.clear(), this.hideLoading() 392 var d = a( 393 '<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>', 394 ), 395 e = this.options.get("translations").get(b.message) 396 d.append(c(e(b.args))), 397 (d[0].className += " select2-results__message"), 398 this.$results.append(d) 399 }), 400 (c.prototype.hideMessages = function () { 401 this.$results.find(".select2-results__message").remove() 402 }), 403 (c.prototype.append = function (a) { 404 this.hideLoading() 405 var b = [] 406 if (null == a.results || 0 === a.results.length) 407 return void ( 408 0 === this.$results.children().length && 409 this.trigger("results:message", { message: "noResults" }) 410 ) 411 a.results = this.sort(a.results) 412 for (var c = 0; c < a.results.length; c++) { 413 var d = a.results[c], 414 e = this.option(d) 415 b.push(e) 416 } 417 this.$results.append(b) 418 }), 419 (c.prototype.position = function (a, b) { 420 var c = b.find(".select2-results") 421 c.append(a) 422 }), 423 (c.prototype.sort = function (a) { 424 var b = this.options.get("sorter") 425 return b(a) 426 }), 427 (c.prototype.highlightFirstItem = function () { 428 var a = this.$results.find(".select2-results__option[aria-selected]"), 429 b = a.filter("[aria-selected=true]") 430 b.length > 0 ? b.first().trigger("mouseenter") : a.first().trigger("mouseenter"), 431 this.ensureHighlightVisible() 432 }), 433 (c.prototype.setClasses = function () { 434 var b = this 435 this.data.current(function (c) { 436 var d = a.map(c, function (a) { 437 return a.id.toString() 438 }), 439 e = b.$results.find(".select2-results__option[aria-selected]") 440 e.each(function () { 441 var b = a(this), 442 c = a.data(this, "data"), 443 e = "" + c.id 444 ;(null != c.element && c.element.selected) || 445 (null == c.element && a.inArray(e, d) > -1) 446 ? b.attr("aria-selected", "true") 447 : b.attr("aria-selected", "false") 448 }) 449 }) 450 }), 451 (c.prototype.showLoading = function (a) { 452 this.hideLoading() 453 var b = this.options.get("translations").get("searching"), 454 c = { disabled: !0, loading: !0, text: b(a) }, 455 d = this.option(c) 456 ;(d.className += " loading-results"), this.$results.prepend(d) 457 }), 458 (c.prototype.hideLoading = function () { 459 this.$results.find(".loading-results").remove() 460 }), 461 (c.prototype.option = function (b) { 462 var c = document.createElement("li") 463 c.className = "select2-results__option" 464 var d = { role: "treeitem", "aria-selected": "false" } 465 b.disabled && (delete d["aria-selected"], (d["aria-disabled"] = "true")), 466 null == b.id && delete d["aria-selected"], 467 null != b._resultId && (c.id = b._resultId), 468 b.title && (c.title = b.title), 469 b.children && 470 ((d.role = "group"), (d["aria-label"] = b.text), delete d["aria-selected"]) 471 for (var e in d) { 472 var f = d[e] 473 c.setAttribute(e, f) 474 } 475 if (b.children) { 476 var g = a(c), 477 h = document.createElement("strong") 478 h.className = "select2-results__group" 479 a(h) 480 this.template(b, h) 481 for (var i = [], j = 0; j < b.children.length; j++) { 482 var k = b.children[j], 483 l = this.option(k) 484 i.push(l) 485 } 486 var m = a("<ul></ul>", { 487 class: "select2-results__options select2-results__options--nested", 488 }) 489 m.append(i), g.append(h), g.append(m) 490 } else this.template(b, c) 491 return a.data(c, "data", b), c 492 }), 493 (c.prototype.bind = function (b, c) { 494 var d = this, 495 e = b.id + "-results" 496 this.$results.attr("id", e), 497 b.on("results:all", function (a) { 498 d.clear(), 499 d.append(a.data), 500 b.isOpen() && (d.setClasses(), d.highlightFirstItem()) 501 }), 502 b.on("results:append", function (a) { 503 d.append(a.data), b.isOpen() && d.setClasses() 504 }), 505 b.on("query", function (a) { 506 d.hideMessages(), d.showLoading(a) 507 }), 508 b.on("select", function () { 509 b.isOpen() && (d.setClasses(), d.highlightFirstItem()) 510 }), 511 b.on("unselect", function () { 512 b.isOpen() && (d.setClasses(), d.highlightFirstItem()) 513 }), 514 b.on("open", function () { 515 d.$results.attr("aria-expanded", "true"), 516 d.$results.attr("aria-hidden", "false"), 517 d.setClasses(), 518 d.ensureHighlightVisible() 519 }), 520 b.on("close", function () { 521 d.$results.attr("aria-expanded", "false"), 522 d.$results.attr("aria-hidden", "true"), 523 d.$results.removeAttr("aria-activedescendant") 524 }), 525 b.on("results:toggle", function () { 526 var a = d.getHighlightedResults() 527 0 !== a.length && a.trigger("mouseup") 528 }), 529 b.on("results:select", function () { 530 var a = d.getHighlightedResults() 531 if (0 !== a.length) { 532 var b = a.data("data") 533 "true" == a.attr("aria-selected") 534 ? d.trigger("close", {}) 535 : d.trigger("select", { data: b }) 536 } 537 }), 538 b.on("results:previous", function () { 539 var a = d.getHighlightedResults(), 540 b = d.$results.find("[aria-selected]"), 541 c = b.index(a) 542 if (0 !== c) { 543 var e = c - 1 544 0 === a.length && (e = 0) 545 var f = b.eq(e) 546 f.trigger("mouseenter") 547 var g = d.$results.offset().top, 548 h = f.offset().top, 549 i = d.$results.scrollTop() + (h - g) 550 0 === e ? d.$results.scrollTop(0) : 0 > h - g && d.$results.scrollTop(i) 551 } 552 }), 553 b.on("results:next", function () { 554 var a = d.getHighlightedResults(), 555 b = d.$results.find("[aria-selected]"), 556 c = b.index(a), 557 e = c + 1 558 if (!(e >= b.length)) { 559 var f = b.eq(e) 560 f.trigger("mouseenter") 561 var g = d.$results.offset().top + d.$results.outerHeight(!1), 562 h = f.offset().top + f.outerHeight(!1), 563 i = d.$results.scrollTop() + h - g 564 0 === e ? d.$results.scrollTop(0) : h > g && d.$results.scrollTop(i) 565 } 566 }), 567 b.on("results:focus", function (a) { 568 a.element.addClass("select2-results__option--highlighted") 569 }), 570 b.on("results:message", function (a) { 571 d.displayMessage(a) 572
572 }), 573 a.fn.mousewheel && 574 this.$results.on("mousewheel", function (a) { 575 var b = d.$results.scrollTop(), 576 c = d.$results.get(0).scrollHeight - b + a.deltaY, 577 e = a.deltaY > 0 && b - a.deltaY <= 0, 578 f = a.deltaY < 0 && c <= d.$results.height() 579 e 580 ? (d.$results.scrollTop(0), a.preventDefault(), a.stopPropagation()) 581 : f && 582 (d.$results.scrollTop(d.$results.get(0).scrollHeight - d.$results.height()), 583 a.preventDefault(), 584 a.stopPropagation()) 585 }), 586 this.$results.on( 587 "mouseup", 588 ".select2-results__option[aria-selected]", 589 function (b) { 590 var c = a(this), 591 e = c.data("data") 592 return "true" === c.attr("aria-selected") 593 ? void (d.options.get("multiple") 594 ? d.trigger("unselect", { 595 originalEvent: b, 596 data: e, 597 }) 598 : d.trigger("close", {})) 599 : void d.trigger("select", { 600 originalEvent: b, 601 data: e, 602 }) 603 }, 604 ), 605 this.$results.on( 606 "mouseenter", 607 ".select2-results__option[aria-selected]", 608 function (b) { 609 var c = a(this).data("data") 610 d.getHighlightedResults().removeClass("select2-results__option--highlighted"), 611 d.trigger("results:focus", { 612 data: c, 613 element: a(this), 614 }) 615 }, 616 ) 617 }), 618 (c.prototype.getHighlightedResults = function () { 619 var a = this.$results.find(".select2-results__option--highlighted") 620 return a 621 }), 622 (c.prototype.destroy = function () { 623 this.$results.remove() 624 }), 625 (c.prototype.ensureHighlightVisible = function () { 626 var a = this.getHighlightedResults() 627 if (0 !== a.length) { 628 var b = this.$results.find("[aria-selected]"), 629 c = b.index(a), 630 d = this.$results.offset().top, 631 e = a.offset().top, 632 f = this.$results.scrollTop() + (e - d), 633 g = e - d 634 ;(f -= 2 * a.outerHeight(!1)), 635 2 >= c 636 ? this.$results.scrollTop(0) 637 : (g > this.$results.outerHeight() || 0 > g) && this.$results.scrollTop(f) 638 } 639 }), 640 (c.prototype.template = function (b, c) { 641 var d = this.options.get("templateResult"), 642 e = this.options.get("escapeMarkup"), 643 f = d(b, c) 644 null == f 645 ? (c.style.display = "none") 646 : "string" == typeof f 647 ? (c.innerHTML = e(f)) 648 : a(c).append(f) 649 }), 650 c 651 ) 652 }), 653 b.define("select2/keys", [], function () { 654 var a = { 655 BACKSPACE: 8, 656 TAB: 9, 657 ENTER: 13, 658 SHIFT: 16, 659 CTRL: 17, 660 ALT: 18, 661 ESC: 27, 662 SPACE: 32, 663 PAGE_UP: 33, 664 PAGE_DOWN: 34, 665 END: 35, 666 HOME: 36, 667 LEFT: 37, 668 UP: 38, 669 RIGHT: 39, 670 DOWN: 40, 671 DELETE: 46, 672 } 673 return a 674 }), 675 b.define("select2/selection/base", ["jquery", "../utils", "../keys"], function (a, b, c) { 676 function d(a, b) { 677 ;(this.$element = a), (this.options = b), d.__super__.constructor.call(this) 678 } 679 return ( 680 b.Extend(d, b.Observable), 681 (d.prototype.render = function () { 682 var b = a( 683 '<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>', 684 ) 685 return ( 686 (this._tabindex = 0), 687 null != this.$element.data("old-tabindex") 688 ? (this._tabindex = this.$element.data("old-tabindex")) 689 : null != this.$element.attr("tabindex") && 690 (this._tabindex = this.$element.attr("tabindex")), 691 b.attr("title", this.$element.attr("title")), 692 b.attr("tabindex", this._tabindex), 693 (this.$selection = b), 694 b 695 ) 696 }), 697 (d.prototype.bind = function (a, b) { 698 var d = this, 699 e = (a.id + "-container", a.id + "-results") 700 ;(this.container = a), 701 this.$selection.on("focus", function (a) { 702 d.trigger("focus", a) 703 }), 704 this.$selection.on("blur", function (a) { 705 d._handleBlur(a) 706 }), 707 this.$selection.on("keydown", function (a) { 708 d.trigger("keypress", a), a.which === c.SPACE && a.preventDefault() 709 }), 710 a.on("results:focus", function (a) { 711 d.$selection.attr("aria-activedescendant", a.data._resultId) 712 }), 713 a.on("selection:update", function (a) { 714 d.update(a.data) 715 }), 716 a.on("open", function () { 717 d.$selection.attr("aria-expanded", "true"), 718 d.$selection.attr("aria-owns", e), 719 d._attachCloseHandler(a) 720 }), 721 a.on("close", function () { 722 d.$selection.attr("aria-expanded", "false"), 723 d.$selection.removeAttr("aria-activedescendant"), 724 d.$selection.removeAttr("aria-owns"), 725 d.$selection.focus(), 726 d._detachCloseHandler(a) 727 }), 728 a.on("enable", function () { 729 d.$selection.attr("tabindex", d._tabindex) 730 }), 731 a.on("disable", function () { 732 d.$selection.attr("tabindex", "-1") 733 }) 734 }), 735 (d.prototype._handleBlur = function (b) { 736 var c = this 737 window.setTimeout(function () { 738 document.activeElement == c.$selection[0] || 739 a.contains(c.$selection[0], document.activeElement) || 740 c.trigger("blur", b) 741 }, 1) 742 }), 743 (d.prototype._attachCloseHandler = function (b) { 744 a(document.body).on("mousedown.select2." + b.id, function (b) { 745 var c = a(b.target), 746 d = c.closest(".select2"), 747 e = a(".select2.select2-container--open") 748 e.each(function () { 749 var b = a(this) 750 if (this != d[0]) { 751 var c = b.data("element") 752 c.mselect2("close") 753 } 754 }) 755 }) 756 }), 757 (d.prototype._detachCloseHandler = function (b) { 758 a(document.body).off("mousedown.select2." + b.id) 759 }), 760 (d.prototype.position = function (a, b) { 761 var c = b.find(".selection") 762 c.append(a) 763 }), 764 (d.prototype.destroy = function () { 765 this._detachCloseHandler(this.container) 766 }), 767 (d.prototype.update = function (a) { 768 throw new Error("The `update` method must be defined in child classes.") 769 }), 770 d 771 ) 772 }), 773 b.define( 774 "select2/selection/single", 775 ["jquery", "./base", "../utils", "../keys"], 776 function (a, b, c, d) { 777 function e() { 778 e.__super__.constructor.apply(this, arguments) 779 } 780 return ( 781 c.Extend(e, b), 782 (e.prototype.render = function () { 783 var a = e.__super__.render.call(this) 784 return ( 785 a.addClass("select2-selection--single"), 786 a.html( 787 '<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>', 788 ), 789 a 790 ) 791 }), 792 (e.prototype.bind = function (a, b) { 793 var c = this 794 e.__super__.bind.apply(this, arguments) 795 var d = a.id + "-container" 796 this.$selection.find(".select2-selection__rendered").attr("id", d), 797 this.$selection.attr("aria-labelledby", d), 798 this.$selection.on("mousedown", function (a) { 799 1 === a.which && c.trigger("toggle", { originalEvent: a }) 800 }), 801 this.$selection.on("focus", function (a) {}), 802 this.$selection.on("blur", function (a) {}), 803 a.on("focus", function (b) { 804 a.isOpen() || c.$selection.focus() 805 }), 806 a.on("selection:update", function (a) { 807 c.update(a.data) 808 }) 809 }), 810 (e.prototype.clear = function () { 811 this.$selection.find(".select2-selection__rendered").empty() 812 }), 813 (e.prototype.display = function (a, b) { 814 var c = this.options.get("templateSelection"), 815 d = this.options.get("escapeMarkup") 816 return d(c(a, b)) 817 }), 818 (e.prototype.selectionContainer = function () { 819 return a("<span></span>") 820 }), 821 (e.prototype.update = function (a) { 822 if (0 === a.length) return void this.clear() 823 var b = a[0], 824 c = this.$selection.find(".select2-selection__rendered"), 825 d = this.display(b, c) 826 c.empty().append(d), c.prop("title", b.title || b.text) 827 }), 828 e 829 ) 830 }, 831 ), 832 b.define( 833 "select2/selection/multiple", 834 ["jquery", "./base", "../utils"], 835 function (a, b, c) { 836 function d(a, b) { 837 d.__super__.constructor.apply(this, arguments) 838 } 839 return ( 840 c.Extend(d, b), 841 (d.prototype.render = function () { 842 var a = d.__super__.render.call(this) 843 return ( 844 a.addClass("select2-selection--multiple"), 845 a.html('<ul class="select2-selection__rendered"></ul>'), 846 a 847 ) 848 }), 849 (d.prototype.bind = function (b, c) { 850 var e = this 851 d.__super__.bind.apply(this, arguments), 852 this.$selection.on("click", function (a) { 853 e.trigger("toggle", { originalEvent: a }) 854 }), 855 this.$selection.on("click", ".select2-selection__choice__remove", function (b) { 856 if (!e.options.get("disabled")) { 857 var c = a(this), 858 d = c.parent(), 859 f = d.data("data") 860 e.trigger("unselect", { 861 originalEvent: b, 862 data: f, 863 }) 864 } 865 }) 866 }), 867 (d.prototype.clear = function () { 868 this.$selection.find(".select2-selection__rendered").empty() 869 }), 870 (d.prototype.display = function (a, b) { 871 var c = this.options.get("templateSelection"), 872 d = this.options.get("escapeMarkup") 873 return d(c(a, b)) 874 }), 875 (d.prototype.selectionContainer = function () { 876 var b = a( 877 '<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>', 878 ) 879 return b 880 }), 881 (d.prototype.update = function (a) { 882 if ((this.clear(), 0 !== a.length)) { 883 for (var b = [], d = 0; d < a.length; d++) { 884 var e = a[d], 885 f = this.selectionContainer(), 886 g = this.display(e, f) 887 f.append(g), f.prop("title", e.title || e.text), f.data("data", e), b.pu
887sh(f) 888 } 889 var h = this.$selection.find(".select2-selection__rendered") 890 c.appendMany(h, b) 891 } 892 }), 893 d 894 ) 895 }, 896 ), 897 b.define("select2/selection/placeholder", ["../utils"], function (a) { 898 function b(a, b, c) { 899 ;(this.placeholder = this.normalizePlaceholder(c.get("placeholder"))), 900 a.call(this, b, c) 901 } 902 return ( 903 (b.prototype.normalizePlaceholder = function (a, b) { 904 return "string" == typeof b && (b = { id: "", text: b }), b 905 }), 906 (b.prototype.createPlaceholder = function (a, b) { 907 var c = this.selectionContainer() 908 return ( 909 c.html(this.display(b)), 910 c 911 .addClass("select2-selection__placeholder") 912 .removeClass("select2-selection__choice"), 913 c 914 ) 915 }), 916 (b.prototype.update = function (a, b) { 917 var c = 1 == b.length && b[0].id != this.placeholder.id, 918 d = b.length > 1 919 if (d || c) return a.call(this, b) 920 this.clear() 921 var e = this.createPlaceholder(this.placeholder) 922 this.$selection.find(".select2-selection__rendered").append(e) 923 }), 924 b 925 ) 926 }), 927 b.define("select2/selection/allowClear", ["jquery", "../keys"], function (a, b) { 928 function c() {} 929 return ( 930 (c.prototype.bind = function (a, b, c) { 931 var d = this 932 a.call(this, b, c), 933 null == this.placeholder && 934 this.options.get("debug") && 935 window.console && 936 console.error && 937 console.error( 938 "Select2: The `allowClear` option should be used in combination with the `placeholder` option.", 939 ), 940 this.$selection.on("mousedown", ".select2-selection__clear", function (a) { 941 d._handleClear(a) 942 }), 943 b.on("keypress", function (a) { 944 d._handleKeyboardClear(a, b) 945 }) 946 }), 947 (c.prototype._handleClear = function (a, b) { 948 if (!this.options.get("disabled")) { 949 var c = this.$selection.find(".select2-selection__clear") 950 if (0 !== c.length) { 951 b.stopPropagation() 952 for (var d = c.data("data"), e = 0; e < d.length; e++) { 953 var f = { data: d[e] } 954 if ((this.trigger("unselect", f), f.prevented)) return 955 } 956 this.$element.val(this.placeholder.id).trigger("change"), 957 this.trigger("toggle", {}) 958 } 959 } 960 }), 961 (c.prototype._handleKeyboardClear = function (a, c, d) { 962 d.isOpen() || 963 ((c.which == b.DELETE || c.which == b.BACKSPACE) && this._handleClear(c)) 964 }), 965 (c.prototype.update = function (b, c) { 966 if ( 967 (b.call(this, c), 968 !( 969 this.$selection.find(".select2-selection__placeholder").length > 0 || 970 0 === c.length 971 )) 972 ) { 973 var d = a('<span class="select2-selection__clear">×</span>') 974 d.data("data", c), this.$selection.find(".select2-selection__rendered").prepend(d) 975 } 976 }), 977 c 978 ) 979 }), 980 b.define("select2/selection/search", ["jquery", "../utils", "../keys"], function (a, b, c) { 981 function d(a, b, c) { 982 a.call(this, b, c) 983 } 984 return ( 985 (d.prototype.render = function (b) { 986 var c = a( 987 '<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>', 988 ) 989 ;(this.$searchContainer = c), (this.$search = c.find("input")) 990 var d = b.call(this) 991 return this._transferTabIndex(), d 992 }), 993 (d.prototype.bind = function (a, b, d) { 994 var e = this 995 a.call(this, b, d), 996 b.on("open", function () { 997 e.$search.trigger("focus") 998 }), 999 b.on("close", function () { 1000 e.$search.val(""), 1001 e.$search.removeAttr("aria-activedescendant"), 1002 e.$search.trigger("focus") 1003 }), 1004 b.on("enable", function () { 1005 e.$search.prop("disabled", !1), e._transferTabIndex() 1006 }), 1007 b.on("disable", function () { 1008 e.$search.prop("disabled", !0) 1009 }), 1010 b.on("focus", function (a) { 1011 e.$search.trigger("focus") 1012 }), 1013 b.on("results:focus", function (a) { 1014 e.$search.attr("aria-activedescendant", a.id) 1015 }), 1016 this.$selection.on("focusin", ".select2-search--inline", function (a) { 1017 e.trigger("focus", a) 1018 }), 1019 this.$selection.on("focusout", ".select2-search--inline", function (a) { 1020 e._handleBlur(a) 1021 }), 1022 this.$selection.on("keydown", ".select2-search--inline", function (a) { 1023 a.stopPropagation(), 1024 e.trigger("keypress", a), 1025 (e._keyUpPrevented = a.isDefaultPrevented()) 1026 var b = a.which 1027 if (b === c.BACKSPACE && "" === e.$search.val()) { 1028 var d = e.$searchContainer.prev(".select2-selection__choice") 1029 if (d.length > 0) { 1030 var f = d.data("data") 1031 e.searchRemoveChoice(f), a.preventDefault() 1032 } 1033 } 1034 }) 1035 var f = document.documentMode, 1036 g = f && 11 >= f 1037 this.$selection.on("input.searchcheck", ".select2-search--inline", function (a) { 1038 return g 1039 ? void e.$selection.off("input.search input.searchcheck") 1040 : void e.$selection.off("keyup.search") 1041 }), 1042 this.$selection.on( 1043 "keyup.search input.search", 1044 ".select2-search--inline", 1045 function (a) { 1046 if (g && "input" === a.type) 1047 return void e.$selection.off("input.search input.searchcheck") 1048 var b = a.which
1049 b != c.SHIFT && b != c.CTRL && b != c.ALT && b != c.TAB && e.handleSearch(a) 1050 }, 1051 ) 1052 }), 1053 (d.prototype._transferTabIndex = function (a) { 1054 this.$search.attr("tabindex", this.$selection.attr("tabindex")), 1055 this.$selection.attr("tabindex", "-1") 1056 }), 1057 (d.prototype.createPlaceholder = function (a, b) { 1058 this.$search.attr("placeholder", b.text) 1059 }), 1060 (d.prototype.update = function (a, b) { 1061 var c = this.$search[0] == document.activeElement 1062 this.$search.attr("placeholder", ""), 1063 a.call(this, b), 1064 this.$selection.find(".select2-selection__rendered").append(this.$searchContainer), 1065 this.resizeSearch(), 1066 c && this.$search.focus() 1067 }), 1068 (d.prototype.handleSearch = function () { 1069 if ((this.resizeSearch(), !this._keyUpPrevented)) { 1070 var a = this.$search.val() 1071 this.trigger("query", { term: a }) 1072 } 1073 this._keyUpPrevented = !1 1074 }), 1075 (d.prototype.searchRemoveChoice = function (a, b) { 1076 this.trigger("unselect", { data: b }), this.$search.val(b.text), this.handleSearch() 1077 }), 1078 (d.prototype.resizeSearch = function () { 1079 this.$search.css("width", "25px") 1080 var a = "" 1081 if ("" !== this.$search.attr("placeholder")) 1082 a = this.$selection.find(".select2-selection__rendered").innerWidth() 1083 else { 1084 var b = this.$search.val().length + 1 1085 a = 0.75 * b + "em" 1086 } 1087 this.$search.css("width", a) 1088 }), 1089 d 1090 ) 1091 }), 1092 b.define("select2/selection/eventRelay", ["jquery"], function (a) { 1093 function b() {} 1094 return ( 1095 (b.prototype.bind = function (b, c, d) { 1096 var e = this, 1097 f = [ 1098 "open", 1099 "opening", 1100 "close", 1101 "closing", 1102 "select", 1103 "selecting", 1104 "unselect", 1105 "unselecting", 1106 ], 1107 g = ["opening", "closing", "selecting", "unselecting"] 1108 b.call(this, c, d), 1109 c.on("*", function (b, c) { 1110 if (-1 !== a.inArray(b, f)) { 1111 c = c || {} 1112 var d = a.Event("select2:" + b, { params: c }) 1113 e.$element.trigger(d), 1114 -1 !== a.inArray(b, g) && (c.prevented = d.isDefaultPrevented()) 1115 } 1116 }) 1117 }), 1118 b 1119 ) 1120 }), 1121 b.define("select2/translation", ["jquery", "require"], function (a, b) { 1122 function c(a) { 1123 this.dict = a || {} 1124 } 1125 return ( 1126 (c.prototype.all = function () { 1127 return this.dict 1128 }), 1129 (c.prototype.get = function (a) { 1130 return this.dict[a] 1131 }), 1132 (c.prototype.extend = function (b) { 1133 this.dict = a.extend({}, b.all(), this.dict) 1134 }), 1135 (c._cache = {}), 1136 (c.loadPath = function (a) { 1137 if (!(a in c._cache)) { 1138 var d = b(a) 1139 c._cache[a] = d 1140 } 1141 return new c(c._cache[a]) 1142 }), 1143 c 1144 ) 1145 }), 1146 b.define("select2/diacritics", [], function () { 1147 var a = { 1148 "â¶": "A", 1149 A: "A", 1150 Ã: "A", 1151 Ã: "A", 1152 Ã: "A", 1153 Ầ: "A", 1154 Ấ: "A", 1155 Ẫ: "A", 1156 Ẩ: "A", 1157 Ã: "A", 1158 Ä: "A", 1159 Ä: "A", 1160 Ằ: "A", 1161 Ắ: "A", 1162 Ẵ: "A", 1163 Ẳ: "A", 1164 Ȧ: "A", 1165 Ç : "A", 1166 Ã: "A", 1167 Ç: "A", 1168 Ả: "A", 1169 à : "A", 1170 Ǻ: "A", 1171 Ç: "A", 1172 È: "A", 1173 È: "A", 1174 Ạ: "A", 1175 Ậ: "A", 1176 Ặ: "A", 1177 á¸: "A", 1178 Ä: "A", 1179 Ⱥ: "A", 1180 Ɐ: "A", 1181 ê²: "AA", 1182 Ã: "AE", 1183 Ǽ: "AE", 1184 Ç¢: "AE", 1185 ê´: "AO", 1186 ê¶: "AU", 1187 ê¸: "AV", 1188 êº: "AV", 1189 ê¼: "AY", 1190 "â·": "B", 1191 ï¼¢: "B", 1192 á¸: "B", 1193 á¸: "B", 1194 á¸: "B", 1195 É: "B", 1196 Æ: "B", 1197 Æ: "B", 1198 "â¸": "C", 1199 ï¼£: "C", 1200 Ä: "C", 1201 Ä: "C", 1202 Ä: "C", 1203 Ä: "C", 1204 Ã: "C", 1205 á¸: "C", 1206 Æ: "C", 1207 È»: "C", 1208 ê¾: "C", 1209 "â¹": "D", 1210 D: "D", 1211 á¸: "D", 1212 Ä: "D", 1213 á¸: "D", 1214 á¸: "D", 1215 á¸: "D", 1216 á¸: "D", 1217 Ä: "D", 1218 Æ: "D", 1219 Æ: "D", 1220 Æ: "D", 1221 ê¹: "D", 1222 DZ: "DZ", 1223 Ç: "DZ", 1224 Dz: "Dz", 1225 Ç : "Dz", 1226 "âº": "E", 1227 ï¼¥: "E", 1228 Ã: "E", 1229 Ã: "E", 1230 Ã: "E", 1231 á»: "E", 1232 Ế: "E", 1233 á»: "E", 1234 á»: "E", 1235 Ẽ: "E", 1236 Ä: "E", 1237 á¸: "E", 1238 á¸: "E", 1239 Ä: "E", 1240 Ä: "E", 1241 Ã: "E", 1242 Ẻ: "E", 1243 Ä: "E", 1244 È: "E", 1245 È: "E", 1246 Ẹ: "E", 1247 á»: "E", 1248 Ȩ: "E", 1249 á¸: "E", 1250 Ä: "E", 1251 á¸: "E", 1252 á¸: "E", 1253 Æ: "E", 1254 Æ: "E", 1255 "â»": "F", 1256 F: "F", 1257 á¸: "F", 1258 Æ: "F", 1259 ê»: "F", 1260 "â¼": "G", 1261 ï¼§: "G", 1262 Ç´: "G", 1263 Ä: "G", 1264 Ḡ: "G", 1265 Ä: "G", 1266 Ä : "G", 1267 Ǧ: "G", 1268 Ä¢: "G", 1269 Ǥ: "G", 1270 Æ: "G", 1271 ê : "G", 1272 ê½: "G", 1273 ê¾: "G", 1274 "â½": "H", 1275 H: "H", 1276 Ĥ: "H", 1277 Ḣ: "H", 1278 Ḧ: "H", 1279 È: "H", 1280 Ḥ: "H", 1281 Ḩ: "H", 1282 Ḫ: "H", 1283 Ħ: "H", 1284 â±§: "H", 1285 â±µ: "H", 1286 ê: "H", 1287 "â¾": "I", 1288 I: "I", 1289 Ã: "I", 1290 Ã: "I", 1291 Ã: "I", 1292 Ĩ: "I", 1293 Ī: "I", 1294 Ĭ: "I", 1295 İ: "I", 1296 Ã: "I", 1297 Ḯ: "I", 1298 á»: "I", 1299 Ç: "I", 1300 È: "I", 1301 È: "I", 1302 á»: "I", 1303 Ä®: "I", 1304 Ḭ: "I", 1305 Æ: "I", 1306 "â¿": "J", 1307 J: "J", 1308 Ä´: "J", 1309 É: "J", 1310 "â": "K", 1311 K: "K", 1312 Ḱ: "K", 1313 Ǩ: "K",
1314 Ḳ: "K", 1315 Ķ: "K", 1316 Ḵ: "K", 1317 Æ: "K", 1318 Ⱪ: "K", 1319 ê: "K", 1320 ê: "K", 1321 ê: "K", 1322 ê¢: "K", 1323 "â": "L", 1324 L: "L", 1325 Ä¿: "L", 1326 Ĺ: "L", 1327 Ľ: "L", 1328 Ḷ: "L", 1329 Ḹ: "L", 1330 Ä»: "L", 1331 Ḽ: "L", 1332 Ḻ: "L", 1333 Å: "L", 1334 Ƚ: "L", 1335 â±¢: "L", 1336 â± : "L", 1337 ê: "L", 1338 ê: "L", 1339 ê: "L", 1340 Ç: "LJ", 1341 Ç: "Lj", 1342 "â": "M", 1343 ï¼: "M", 1344 Ḿ: "M", 1345 á¹: "M", 1346 á¹: "M", 1347 â±®: "M", 1348 Æ: "M", 1349 "â": "N", 1350 ï¼®: "N", 1351 Ǹ: "N", 1352 Å: "N", 1353 Ã: "N", 1354 á¹: "N", 1355 Å: "N", 1356 á¹: "N", 1357 Å : "N", 1358 á¹: "N", 1359 á¹: "N", 1360 È : "N", 1361 Æ: "N", 1362 ê: "N", 1363 ê¤: "N", 1364 Ç: "NJ", 1365 Ç: "Nj", 1366 "â": "O", 1367 O: "O", 1368 Ã: "O", 1369 Ã: "O", 1370 Ã: "O", 1371 á»: "O", 1372 á»: "O", 1373 á»: "O", 1374 á»: "O", 1375 Ã: "O", 1376 á¹: "O", 1377 Ȭ: "O", 1378 á¹: "O", 1379 Å: "O", 1380 á¹: "O", 1381 á¹: "O", 1382 Å: "O", 1383 È®: "O", 1384 Ȱ: "O", 1385 Ã: "O", 1386 Ȫ: "O", 1387 á»: "O", 1388 Å: "O", 1389 Ç: "O", 1390 È: "O", 1391 È: "O", 1392 Æ : "O", 1393 á»: "O", 1394 á»: "O", 1395 á» : "O", 1396 á»: "O", 1397 Ợ: "O", 1398 á»: "O", 1399 á»: "O", 1400 Ǫ: "O", 1401 Ǭ: "O", 1402 Ã: "O", 1403 Ǿ: "O", 1404 Æ: "O", 1405 Æ: "O", 1406 ê: "O", 1407 ê: "O", 1408 Æ¢: "OI", 1409 ê: "OO", 1410 È¢: "OU", 1411 "â ": "P", 1412 ï¼°: "P", 1413 á¹: "P", 1414 á¹: "P", 1415 Ƥ: "P", 1416 â±£: "P", 1417 ê: "P", 1418 ê: "P", 1419 ê: "P", 1420 "â": "Q", 1421 ï¼±: "Q", 1422 ê: "Q", 1423 ê: "Q", 1424 É: "Q", 1425 "â": "R", 1426 ï¼²: "R", 1427 Å: "R", 1428 á¹: "R", 1429 Å: "R", 1430 È: "R", 1431 È: "R", 1432 á¹: "R", 1433 á¹: "R", 1434 Å: "R", 1435 á¹: "R", 1436 É: "R", 1437 Ɽ: "R", 1438 ê: "R", 1439 ê¦: "R", 1440 ê: "R", 1441 "â": "S", 1442 ï¼³: "S", 1443 áº: "S", 1444 Å: "S", 1445 Ṥ: "S", 1446 Å: "S", 1447 á¹ : "S", 1448 Å : "S", 1449 Ṧ: "S", 1450 á¹¢: "S", 1451 Ṩ: "S", 1452 È: "S", 1453 Å: "S", 1454 â±¾: "S", 1455 ê¨: "S", 1456 ê: "S", 1457 "â": "T", 1458 ï¼´: "T", 1459 Ṫ: "T", 1460 Ť: "T", 1461 Ṭ: "T", 1462 È: "T", 1463 Å¢: "T", 1464 á¹°: "T", 1465 á¹®: "T", 1466 Ŧ: "T", 1467 Ƭ: "T", 1468 Æ®: "T", 1469 Ⱦ: "T", 1470 ê: "T", 1471 ê¨: "TZ", 1472 "â": "U", 1473 ï¼µ: "U", 1474 Ã: "U", 1475 Ã: "U", 1476 Ã: "U", 1477 Ũ: "U", 1478 Ṹ: "U", 1479 Ū: "U", 1480 Ṻ: "U", 1481 Ŭ: "U", 1482 Ã: "U", 1483 Ç: "U", 1484 Ç: "U", 1485 Ç: "U", 1486 Ç: "U", 1487 Ủ: "U", 1488 Å®: "U", 1489 Ű: "U", 1490 Ç: "U", 1491 È: "U", 1492 È: "U", 1493 Ư: "U", 1494 Ừ: "U", 1495 Ứ: "U", 1496 á»®: "U", 1497 Ử: "U", 1498 á»°: "U", 1499 Ụ: "U", 1500 á¹²: "U", 1501 Ų: "U", 1502 á¹¶: "U", 1503 á¹´: "U", 1504 É: "U", 1505 "â": "V", 1506 ï¼¶: "V", 1507 á¹¼: "V", 1508 á¹¾: "V", 1509 Ʋ: "V", 1510 ê: "V", 1511 É : "V", 1512 ê : "VY", 1513 "â": "W", 1514 ï¼·: "W", 1515 áº: "W", 1516 áº: "W", 1517 Å´: "W", 1518 áº: "W", 1519 áº: "W", 1520 áº: "W", 1521 â±²: "W", 1522 "â": "X", 1523 X: "X", 1524 áº: "X", 1525 áº: "X", 1526 "â": "Y", 1527 ï¼¹: "Y", 1528 Ỳ: "Y", 1529 Ã: "Y", 1530 Ŷ: "Y", 1531 Ỹ: "Y", 1532 Ȳ: "Y", 1533 áº: "Y", 1534 Ÿ: "Y", 1535 á»¶: "Y", 1536 á»´: "Y", 1537 Ƴ: "Y", 1538 É: "Y", 1539 Ỿ: "Y", 1540 "â": "Z", 1541 Z: "Z", 1542 Ź: "Z", 1543 áº: "Z", 1544 Å»: "Z", 1545 Ž: "Z", 1546 áº: "Z", 1547 áº: "Z", 1548 Ƶ: "Z", 1549 Ȥ: "Z", 1550 Ɀ: "Z", 1551 Ⱬ: "Z", 1552 ê¢: "Z", 1553 "â": "a", 1554 ï½: "a", 1555 áº: "a", 1556 à : "a", 1557 á: "a", 1558 â: "a", 1559 ầ: "a", 1560 ấ: "a", 1561 ẫ: "a", 1562 ẩ: "a", 1563 ã: "a", 1564 Ä: "a", 1565 Ä: "a", 1566 ằ: "a", 1567 ắ: "a", 1568 ẵ: "a", 1569 ẳ: "a", 1570 ȧ: "a", 1571 Ç¡: "a", 1572 ä: "a", 1573 Ç: "a", 1574 ả: "a", 1575 Ã¥: "a", 1576 Ç»: "a", 1577 Ç: "a", 1578 È: "a", 1579 È: "a", 1580 ạ: "a", 1581 áº: "a", 1582 ặ: "a", 1583 á¸: "a", 1584 Ä : "a", 1585 â±¥: "a", 1586 É: "a", 1587 ê³: "aa", 1588 æ: "ae", 1589 ǽ: "ae", 1590 Ç£: "ae", 1591 êµ: "ao", 1592 ê·: "au", 1593 ê¹: "av", 1594 ê»: "av", 1595 ê½: "ay", 1596 "â": "b", 1597 ï½: "b", 1598 á¸: "b", 1599 Ḡ: "b", 1600 á¸: "b", 1601 Æ: "b", 1602 Æ: "b", 1603 É: "b", 1604 "â": "c", 1605 ï½: "c", 1606 Ä: "c", 1607 Ä: "c", 1608 Ä: "c", 1609 Ä: "c", 1610 ç: "c", 1611 á¸: "c", 1612 Æ: "c", 1613 ȼ: "c", 1614 ê¿: "c", 1615 â: "c", 1616 "â": "d", 1617 ï½: "d", 1618 á¸: "d", 1619 Ä: "d", 1620 á¸: "d", 1621 á¸: "d", 1622 á¸: "d", 1623 á¸: "d", 1624 Ä: "d", 1625 Æ: "d", 1626 É: "d", 1627 É: "d", 1628 êº: "d", 1629 dz: "dz", 1630 Ç: "dz", 1631 "â": "e", 1632 ï½ : "e", 1633 è: "e", 1634 é: "e", 1635 ê: "e", 1636 á»: "e", 1637 ế: "e", 1638 á» : "e", 1639 á»: "e", 1640 ẽ: "e", 1641 Ä: "e", 1642 á¸: "e", 1643 á¸: "e", 1644 Ä: "e", 1645 Ä: "e", 1646 ë: "e", 1647 ẻ: "e", 1648 Ä: "e", 1649 È : "e", 1650 È: "e", 1651 ẹ: "e", 1652 á»: "e", 1653 È©: "e", 1654 á¸: "e", 1655 Ä: "e", 1656 á¸: "e", 1657 á¸: "e", 1658 É: "e", 1659 É: "e", 1660 Ç: "e", 1661 "â": "f", 1662 ï½: "f", 1663 á¸: "f", 1664 Æ: "f", 1665 ê¼: "f", 1666 "â": "g", 1667 ï½: "g", 1668 ǵ: "g", 1669 Ä: "g", 1670 ḡ: "g", 1671 Ä: "g", 1672 Ä¡: "g", 1673 ǧ: "g", 1674 Ä£: "g", 1675 Ç¥: "g", 1676 É : "g", 1677 ê¡: "g", 1678 áµ¹: "g", 1679 ê¿: "g", 1680 "â": "h", 1681 ï½: "h", 1682 Ä¥: "h", 1683 ḣ: "h", 1684 ḧ: "h", 1685 È: "h", 1686 ḥ: "h", 1687 ḩ: "h", 1688 ḫ: "h", 1689 áº: "h", 1690 ħ: "h", 1691 ⱨ: "h", 1692 â±¶: "h", 1693 É¥: "h", 1694 Æ: "hv", 1695 "â": "i", 1696 ï½: "i", 1697 ì: "i", 1698 Ã: "i", 1699 î: "i", 1700 Ä©: "i", 1701 Ä«: "i", 1702 Ä: "i", 1703 ï: "i", 1704 ḯ: "i", 1705 á»: "i", 1706 Ç: "i", 1707 È: "i", 1708 È: "i", 1709 á»: "i", 1710 į: "i", 1711 á¸: "i", 1712 ɨ: "i", 1713 ı: "i", 1714 "â": "j", 1715 ï½: "j", 1716 ĵ: "j", 1717 ǰ: "j", 1718 É: "j", 1719 "â": "k", 1720 ï½: "k", 1721 ḱ: "k", 1722 Ç©: "k", 1723 ḳ: "k", 1724 Ä·: "k", 1725 ḵ: "k", 1726 Æ: "k", 1727 ⱪ: "k", 1728 ê: "k", 1729 ê: "k", 1730 ê : "k", 1731 ê£: "k", 1732 "â": "l", 1733 ï½: "l", 1734 Å: "l", 1735 ĺ: "l", 1736 ľ: "l", 1737 ḷ: "l", 1738 ḹ: "l", 1739 ļ: "l", 1740 ḽ: "l", 1741 ḻ: "l", 1742 Å¿: "l", 1743 Å: "l", 1744 Æ: "l", 1745 É«: "l", 1746 ⱡ: "l", 1747 ê: "l", 1748 ê: "l", 1749 ê: "l", 1750 Ç: "lj", 1751 "â": "m", 1752 ï½: "m", 1753 ḿ: "m", 1754 á¹: "m", 1755 á¹: "m", 1756 ɱ: "m", 1757 ɯ: "m", 1758 "â": "n", 1759 ï½: "n", 1760 ǹ: "n", 1761 Å: "n", 1762 ñ: "n", 1763 á¹ : "n", 1764 Å: "n", 1765 á¹: "n", 1766 Å: "n", 1767 á¹: "n", 1768 á¹: "n",
1769 Æ: "n", 1770 ɲ: "n", 1771 Å: "n", 1772 ê: "n", 1773 ê¥: "n", 1774 Ç: "nj", 1775 "â": "o", 1776 ï½: "o", 1777 ò: "o", 1778 ó: "o", 1779 ô: "o", 1780 á»: "o", 1781 á»: "o", 1782 á»: "o", 1783 á»: "o", 1784 õ: "o", 1785 á¹: "o", 1786 È: "o", 1787 á¹: "o", 1788 Å: "o", 1789 á¹: "o", 1790 á¹: "o", 1791 Å: "o", 1792 ȯ: "o", 1793 ȱ: "o", 1794 ö: "o", 1795 È«: "o", 1796 á»: "o", 1797 Å: "o", 1798 Ç: "o", 1799 È: "o", 1800 È: "o", 1801 Æ¡: "o", 1802 á»: "o", 1803 á»: "o", 1804 ỡ: "o", 1805 á»: "o", 1806 ợ: "o", 1807 á»: "o", 1808 á»: "o", 1809 Ç«: "o", 1810 Ç: "o", 1811 ø: "o", 1812 Ç¿: "o", 1813 É: "o", 1814 ê: "o", 1815 ê: "o", 1816 ɵ: "o", 1817 Æ£: "oi", 1818 È£: "ou", 1819 ê: "oo", 1820 "â": "p", 1821 ï½: "p", 1822 á¹: "p", 1823 á¹: "p", 1824 Æ¥: "p", 1825 áµ½: "p", 1826 ê: "p", 1827 ê: "p", 1828 ê: "p", 1829 "â ": "q", 1830 ï½: "q", 1831 É: "q", 1832 ê: "q", 1833 ê: "q", 1834 "â¡": "r", 1835 ï½: "r", 1836 Å: "r", 1837 á¹: "r", 1838 Å: "r", 1839 È: "r", 1840 È: "r", 1841 á¹: "r", 1842 á¹: "r", 1843 Å: "r", 1844 á¹: "r", 1845 É: "r", 1846 ɽ: "r", 1847 ê: "r", 1848 ê§: "r", 1849 ê: "r", 1850 "â¢": "s", 1851 ï½: "s", 1852 Ã: "s", 1853 Å: "s", 1854 á¹¥: "s", 1855 Å: "s", 1856 ṡ: "s", 1857 Å¡: "s", 1858 á¹§: "s", 1859 á¹£: "s", 1860 ṩ: "s", 1861 È: "s", 1862 Å: "s", 1863 È¿: "s", 1864 ê©: "s", 1865 ê : "s", 1866 áº: "s", 1867 "â£": "t", 1868 ï½: "t", 1869 ṫ: "t", 1870 áº: "t", 1871 Å¥: "t", 1872 á¹: "t", 1873 È: "t", 1874 Å£: "t", 1875 á¹±: "t", 1876 ṯ: "t", 1877 ŧ: "t", 1878 Æ: "t", 1879 Ê: "t", 1880 ⱦ: "t", 1881 ê: "t", 1882 ê©: "tz", 1883 "â¤": "u", 1884 ï½: "u", 1885 ù: "u", 1886 ú: "u", 1887 û: "u", 1888 Å©: "u", 1889 á¹¹: "u", 1890 Å«: "u", 1891 á¹»: "u", 1892 Å: "u", 1893 ü: "u", 1894 Ç: "u", 1895 Ç: "u", 1896 Ç: "u", 1897 Ç: "u", 1898 á»§: "u", 1899 ů: "u", 1900 ű: "u", 1901 Ç: "u", 1902 È: "u", 1903 È: "u", 1904 ư: "u", 1905 ừ: "u", 1906 ứ: "u", 1907 ữ: "u", 1908 á»: "u", 1909 á»±: "u", 1910 ụ: "u", 1911 á¹³: "u", 1912 ų: "u", 1913 á¹·: "u", 1914 á¹µ: "u", 1915 Ê: "u", 1916 "â¥": "v", 1917 ï½: "v", 1918 á¹½: "v", 1919 ṿ: "v", 1920 Ê: "v", 1921 ê: "v", 1922 Ê: "v", 1923 ê¡: "vy", 1924 "â¦": "w", 1925 ï½: "w", 1926 áº: "w", 1927 áº: "w", 1928 ŵ: "w", 1929 áº: "w", 1930 Ạ: "w", 1931 áº: "w",
1932 áº: "w", 1933 â±³: "w", 1934 "â§": "x", 1935 ï½: "x", 1936 áº: "x", 1937 áº: "x", 1938 "â¨": "y", 1939 ï½: "y", 1940 ỳ: "y", 1941 ý: "y", 1942 Å·: "y", 1943 ỹ: "y", 1944 ȳ: "y", 1945 áº: "y", 1946 ÿ: "y", 1947 á»·: "y", 1948 áº: "y", 1949 ỵ: "y", 1950 Æ´: "y", 1951 É: "y", 1952 ỿ: "y", 1953 "â©": "z", 1954 ï½: "z", 1955 ź: "z", 1956 áº: "z", 1957 ż: "z", 1958 ž: "z", 1959 áº: "z", 1960 áº: "z", 1961 ƶ: "z", 1962 È¥: "z", 1963 É: "z", 1964 ⱬ: "z", 1965 ê£: "z", 1966 Î: "Î", 1967 Î: "Î", 1968 Î: "Î", 1969 Î: "Î", 1970 Ϊ: "Î", 1971 Î: "Î", 1972 Î: "Î¥", 1973 Ϋ: "Î¥", 1974 Î: "Ω", 1975 ά: "α", 1976 Î: "ε", 1977 ή: "η", 1978 ί: "ι", 1979 Ï: "ι", 1980 Î: "ι", 1981 Ï: "ο", 1982 Ï: "Ï ", 1983 Ï: "Ï ", 1984 ΰ: "Ï ", 1985 Ï: "Ï", 1986 Ï: "Ï", 1987 } 1988 return a 1989 }), 1990 b.define("select2/data/base", ["../utils"], function (a) { 1991 function b(a, c) { 1992 b.__super__.constructor.call(this) 1993 } 1994 return ( 1995 a.Extend(b, a.Observable), 1996 (b.prototype.current = function (a) { 1997 throw new Error("The `current` method must be defined in child classes.") 1998 }), 1999 (b.prototype.query = function (a, b) { 2000 throw new Error("The `query` method must be defined in child classes.") 2001 }), 2002 (b.prototype.bind = function (a, b) {}), 2003 (b.prototype.destroy = function () {}), 2004 (b.prototype.generateResultId = function (b, c) { 2005 var d = b.id + "-result-" 2006 return ( 2007 (d += a.generateChars(4)), 2008 (d += null != c.id ? "-" + c.id.toString() : "-" + a.generateChars(4)) 2009 ) 2010 }), 2011 b 2012 ) 2013 }), 2014 b.define("select2/data/select", ["./base", "../utils", "jquery"], function (a, b, c) { 2015 function d(a, b) { 2016 ;(this.$element = a), (this.options = b), d.__super__.constructor.call(this) 2017 } 2018 return ( 2019 b.Extend(d, a), 2020 (d.prototype.current = function (a) { 2021 var b = [], 2022 d = this 2023 this.$element.find(":selected").each(function () { 2024 var a = c(this), 2025 e = d.item(a) 2026 b.push(e) 2027 }), 2028 a(b) 2029 }), 2030 (d.prototype.select = function (a) { 2031 var b = this 2032 if (((a.selected = !0), c(a.element).is("option"))) 2033 return (a.element.selected = !0), void this.$element.trigger("change") 2034 if (this.$element.prop("multiple")) 2035 this.current(function (d) { 2036 var e = [] 2037 ;(a = [a]), a.push.apply(a, d) 2038 for (var f = 0; f < a.length; f++) { 2039 var g = a[f].id 2040 ;-1 === c.inArray(g, e) && e.push(g) 2041 } 2042 b.$element.val(e), b.$element.trigger("change") 2043 }) 2044 else { 2045 var d = a.id 2046 this.$element.val(d), this.$element.trigger("change") 2047 } 2048 }), 2049 (d.prototype.unselect = function (a) { 2050 var b = this 2051 if (this.$element.prop("multiple")) 2052 return ( 2053 (a.selected = !1), 2054 c(a.element).is("option") 2055 ? ((a.element.selected = !1), void this.$element.trigger("change")) 2056 : void this.current(function (d) { 2057 for (var e = [], f = 0; f < d.length; f++) { 2058 var g = d[f].id 2059 g !== a.id && -1 === c.inArray(g, e) && e.push(g) 2060 } 2061 b.$element.val(e), b.$element.trigger("change") 2062 }) 2063 ) 2064 }), 2065 (d.prototype.bind = function (a, b) { 2066 var c = this 2067 ;(this.container = a), 2068 a.on("select", function (a) { 2069 c.select(a.data) 2070 }), 2071 a.on("unselect", function (a) { 2072 c.unselect(a.data) 2073 }) 2074 }), 2075 (d.prototype.destroy = function () { 2076 this.$element.find("*").each(function () { 2077 c.removeData(this, "data") 2078 }) 2079 }), 2080 (d.prototype.query = function (a, b) { 2081 var d = [], 2082 e = this, 2083 f = this.$element.children() 2084 f.each(function () { 2085 var b = c(this) 2086 if (b.is("option") || b.is("optgroup")) { 2087 var f = e.item(b), 2088 g = e.matches(a, f) 2089 null !== g && d.push(g) 2090 } 2091 }), 2092 b({ results: d }) 2093 }), 2094 (d.prototype.addOptions = function (a) { 2095 b.appendMany(this.$element, a) 2096 }), 2097 (d.prototype.option = function (a) { 2098 var b 2099 a.children 2100 ? ((b = document.createElement("optgroup")), (b.label = a.text)) 2101 : ((b = document.createElement("option")), 2102 void 0 !== b.textContent ? (b.textContent = a.text) : (b.innerText = a.text)), 2103 a.id && (b.value = a.id), 2104 a.disabled && (b.disabled = !0), 2105 a.selected && (b.selected = !0), 2106 a.title && (b.title = a.title) 2107 var d = c(b),
2108 e = this._normalizeItem(a) 2109 return (e.element = b), c.data(b, "data", e), d 2110 }), 2111 (d.prototype.item = function (a) { 2112 var b = {} 2113 if (((b = c.data(a[0], "data")), null != b)) return b 2114 if (a.is("option")) 2115 b = { 2116 id: a.val(), 2117 text: a.text(), 2118 disabled: a.prop("disabled"), 2119 selected: a.prop("selected"), 2120 title: a.prop("title"), 2121 } 2122 else if (a.is("optgroup")) { 2123 b = { 2124 text: a.prop("label"), 2125 children: [], 2126 title: a.prop("title"), 2127 } 2128 for (var d = a.children("option"), e = [], f = 0; f < d.length; f++) { 2129 var g = c(d[f]), 2130 h = this.item(g) 2131 e.push(h) 2132 } 2133 b.children = e 2134 } 2135 return (b = this._normalizeItem(b)), (b.element = a[0]), c.data(a[0], "data", b), b 2136 }), 2137 (d.prototype._normalizeItem = function (a) { 2138 c.isPlainObject(a) || (a = { id: a, text: a }), (a = c.extend({}, { text: "" }, a)) 2139 var b = { selected: !1, disabled: !1 } 2140 return ( 2141 null != a.id && (a.id = a.id.toString()), 2142 null != a.text && (a.text = a.text.toString()), 2143 null == a._resultId && 2144 a.id && 2145 null != this.container && 2146 (a._resultId = this.generateResultId(this.container, a)), 2147 c.extend({}, b, a) 2148 ) 2149 }), 2150 (d.prototype.matches = function (a, b) { 2151 var c = this.options.get("matcher") 2152 return c(a, b) 2153 }), 2154 d 2155 ) 2156 }), 2157 b.define("select2/data/array", ["./select", "../utils", "jquery"], function (a, b, c) { 2158 function d(a, b) { 2159 var c = b.get("data") || [] 2160 d.__super__.constructor.call(this, a, b), this.addOptions(this.convertToOptions(c)) 2161 } 2162 return ( 2163 b.Extend(d, a), 2164 (d.prototype.select = function (a) { 2165 var b = this.$element.find("option").filter(function (b, c) { 2166 return c.value == a.id.toString() 2167 }) 2168 0 === b.length && ((b = this.option(a)), this.addOptions(b)), 2169 d.__super__.select.call(this, a) 2170 }), 2171 (d.prototype.convertToOptions = function (a) { 2172 function d(a) { 2173 return function () { 2174 return c(this).val() == a.id 2175 } 2176 } 2177 for ( 2178 var e = this, 2179 f = this.$element.find("option"), 2180 g = f 2181 .map(function () { 2182 return e.item(c(this)).id 2183 }) 2184 .get(), 2185 h = [], 2186 i = 0; 2187 i < a.length; 2188 i++ 2189 ) { 2190 var j = this._normalizeItem(a[i]) 2191 if (c.inArray(j.id, g) >= 0) { 2192 var k = f.filter(d(j)), 2193 l = this.item(k), 2194 m = c.extend(!0, {}, j, l), 2195 n = this.option(m) 2196 k.replaceWith(n) 2197 } else { 2198 var o = this.option(j) 2199 if (j.children) { 2200 var p = this.convertToOptions(j.children) 2201 b.appendMany(o, p) 2202 } 2203 h.push(o) 2204 } 2205 } 2206 return h 2207 }), 2208 d 2209 ) 2210 }), 2211 b.define("select2/data/ajax", ["./array", "../utils", "jquery"], function (a, b, c) { 2212 function d(a, b) { 2213 ;(this.ajaxOptions = this._applyDefaults(b.get("ajax"))), 2214 null != this.ajaxOptions.processResults && 2215 (this.processResults = this.ajaxOptions.processResults), 2216 d.__super__.constructor.call(this, a, b) 2217 } 2218 return ( 2219 b.Extend(d, a), 2220 (d.prototype._applyDefaults = function (a) { 2221 var b = { 2222 data: function (a) { 2223 return c.extend({}, a, { q: a.term }) 2224 }, 2225 transport: function (a, b, d) { 2226 var e = c.ajax(a) 2227 return e.then(b), e.fail(d), e 2228 }, 2229 } 2230 return c.extend({}, b, a, !0) 2231 }), 2232 (d.prototype.processResults = function (a) { 2233 return a 2234 }), 2235 (d.prototype.query = function (a, b) { 2236 function d() { 2237 var d = f.transport( 2238 f, 2239 function (d) { 2240 var f = e.processResults(d, a) 2241 e.options.get("debug") && 2242 window.console && 2243 console.error && 2244 ((f && f.results && c.isArray(f.results)) || 2245 console.error( 2246 "Select2: The AJAX results did not return an array in the `results` key of the response.", 2247 )), 2248 b(f) 2249 }, 2250 function () { 2251 ;(d.status && "0" === d.status) || 2252 e.trigger("results:message", { 2253 message: "errorLoading", 2254 }) 2255 }, 2256 ) 2257 e._request = d 2258 } 2259 var e = this 2260 null != this._request && 2261 (c.isFunction(this._request.abort) && this._request.abort(), (this._request = null)) 2262 var f = c.extend({ type: "GET" }, this.ajaxOptions) 2263 "function" == typeof f.url && (f.url = f.url.call(this.$element, a)), 2264 "function" == typeof f.data && (f.data = f.data.call(this.$element, a)), 2265 this.ajaxOptions.delay && null != a.term 2266 ? (this._queryTimeout && window.clearTimeout(this._queryTimeout), 2267 (this._queryTimeout = window.setTimeout(d, this.ajaxOptions.delay))) 2268 : d() 2269 }), 2270 d 2271 ) 2272 }), 2273 b.define("select2/data/tags", ["jquery"], function (a) { 2274 function b(b, c, d) { 2275 var e = d.get("tags"), 2276 f = d.get("createTag") 2277 void 0 !== f && (this.createTag = f) 2278 var g = d.get("insertTag") 2279 if ((void 0 !== g && (this.insertTag = g), b.call(this, c, d), a.isArray(e))) 2280 for (var h = 0; h < e.length; h++) { 2281 var i = e[h], 2282 j = this._normalizeItem(i), 2283 k = this.option(j) 2284 this.$element.append(k) 2285 } 2286 } 2287 return ( 2288 (b.prototype.query = function (a, b, c) { 2289 function d(a, f) { 2290 for (var g = a.results, h = 0; h < g.length; h++) { 2291 var i = g[h], 2292 j = null != i.children && !d({ results: i.children }, !0), 2293 k = i.text === b.term 2294 if (k || j) return f ? !1 : ((a.data = g), void c(a)) 2295 } 2296 if (f) return !0 2297 var l = e.createTag(b) 2298 if (null != l) { 2299 var m = e.option(l) 2300 m.attr("data-select2-tag", !0), e.addOptions([m]), e.insertTag(g, l) 2301 } 2302 ;(a.results = g), c(a) 2303 } 2304 var e = this 2305 return ( 2306 this._removeOldTags(), 2307 null == b.term || null != b.page ? void a.call(this, b, c) : void a.call(this, b, d) 2308 ) 2309 }), 2310 (b.prototype.createTag = function (b, c) { 2311 var d = a.trim(c.term) 2312 return "" === d ? null : { id: d, text: d } 2313 }), 2314 (b.prototype.insertTag = function (a, b, c) { 2315 b.unshift(c) 2316 }), 2317 (b.prototype._removeOldTags = function (b) { 2318 var c = (this._lastTag, this.$element.find("option[data-select2-tag]")) 2319 c.each(function () { 2320 this.selected || a(this).remove() 2321 }) 2322 }), 2323 b 2324 ) 2325 }), 2326 b.define("select2/data/tokenizer", ["jquery"], function (a) { 2327 function b(a, b, c) { 2328 var d = c.get("tokenizer") 2329 void 0 !== d && (this.tokenizer = d), a.call(this, b, c) 2330 } 2331 return ( 2332 (b.prototype.bind = function (a, b, c) { 2333 a.call(this, b, c), 2334 (this.$search = 2335 b.dropdown.$search || b.selection.$search || c.find(".select2-search__field")) 2336 }), 2337 (b.prototype.query = function (b, c, d) { 2338 function e(b) { 2339 var c = g._normalizeItem(b), 2340 d = g.$element.find("option").filter(function () { 2341 return a(this).val() === c.id 2342 }) 2343 if (!d.length) { 2344 var e = g.option(c) 2345 e.attr("data-select2-tag", !0), g._removeOldTags(), g.addOptions([e]) 2346 } 2347 f(c) 2348 } 2349 function f(a) { 2350 g.trigger("select", { data: a }) 2351 } 2352 var g = this 2353 c.term = c.term || "" 2354 var h = this.tokenizer(c, this.options, e) 2355 h.term !== c.term && 2356 (this.$search.length && (this.$search.val(h.term), this.$search.focus()), 2357 (c.term = h.term)), 2358 b.call(this, c, d) 2359 }), 2360 (b.prototype.tokenizer = function (b, c, d, e) { 2361 for ( 2362 var f = d.get("tokenSeparators") || [], 2363 g = c.term, 2364 h = 0, 2365 i = 2366 this.createTag || 2367 function (a) { 2368 return { id: a.term, text: a.term } 2369 }; 2370 h < g.length; 2371 2372 ) { 2373 var j = g[h] 2374 if (-1 !== a.inArray(j, f)) { 2375 var k = g.substr(0, h), 2376 l = a.extend({}, c, { term: k }), 2377 m = i(l) 2378 null != m ? (e(m), (g = g.substr(h + 1) || ""), (h = 0)) : h++ 2379 } else h++ 2380 } 2381 return { term: g } 2382 }), 2383 b 2384 ) 2385 }), 2386 b.define("select2/data/minimumInputLength", [], function () { 2387 function a(a, b, c) { 2388 ;(this.minimumInputLength = c.get("minimumInputLength")), a.call(this, b, c) 2389 } 2390 return ( 2391 (a.prototype.query = function (a, b, c) { 2392 return ( 2393 (b.term = b.term || ""), 2394 b.term.length < this.minimumInputLength 2395 ? void this.trigger("results:message", { 2396 message: "inputTooShort", 2397 args: { 2398 minimum: this.minimumInputLength, 2399 input: b.term, 2400 params: b, 2401 }, 2402 }) 2403 : void a.call(this, b, c) 2404 ) 2405 }), 2406 a 2407 ) 2408 }), 2409 b.define("select2/data/maximumInputLength", [], function () { 2410 function a(a, b, c) { 2411 ;(this.maximumInputLength = c.get("maximumInputLength")), a.call(this, b, c) 2412 } 2413 return ( 2414 (a.prototype.query = function (a, b, c) { 2415 return ( 2416 (b.term = b.term || ""), 2417 this.maximumInputLength > 0 && b.term.length > this.maximumInputLength 2418 ? void this.trigger("results:message", { 2419 message: "inputTooLong", 2420 args: { 2421 maximum: this.maximumInputLength, 2422 input: b.term, 2423 params: b, 2424 }, 2425 }) 2426 : void a.call(this, b, c) 2427 ) 2428 }), 2429 a 2430 ) 2431 }), 2432 b.define("select2/data/maximumSelectionLength", [], function () { 2433 function a(a, b, c) { 2434 ;(this.maximumSelectionLength = c.get("maximumSelectionLength")), a.call(this, b, c) 2435 } 2436 return ( 2437 (a.prototype.query = function (a, b, c) { 2438 var d = this 2439 this.current(function (e) { 2440 var f = null != e ? e.length : 0 2441 return d.maximumSelectionLength > 0 && f >= d.maximumSelectionLength 2442 ? void d.trigger("results:message", { 2443 message: "maximumSelected", 2444 args: { maximum: d.maximumSelectionLength }, 2445 }) 2446 : void a.call(d, b, c) 2447 }) 2448 }), 2449 a 2450 ) 2451 }), 2452 b.define("select2/dropdown", ["jquery", "./utils"], function (a, b) { 2453 function c(a, b) { 2454 ;(this.$element = a), (this.options = b), c.__super__.constructor.call(this) 2455 } 2456 return ( 2457 b.Extend(c, b.Observable), 2458 (c.prototype.render = function () { 2459 var b = a( 2460 '<span class="select2-dropdown"><span class="select2-results"></span></span>', 2461 ) 2462 return b.attr("dir", this.options.get("dir")), (this.$dropdown = b), b 2463 }), 2464 (c.prototype.bind = function () {}), 2465 (c.prototype.position = function (a, b) {}), 2466 (c.prototype.destroy = function () { 2467 this.$dropdown.remove() 2468 }), 2469 c 2470 ) 2471 }), 2472 b.define("select2/dropdown/search", ["jquery", "../utils"], function (a, b) { 2473 function c() {} 2474 return ( 2475 (c.prototype.render = function (b) { 2476 var c = b.call(this), 2477 d = a( 2478 '<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>', 2479 ) 2480 return (this.$searchContainer = d), (this.$search = d.find("input")), c.prepend(d), c 2481 }), 2482 (c.prototype.bind = function (b, c, d) { 2483 var e = this 2484 b.call(this, c, d), 2485 this.$search.on("keydown", function (a) { 2486 e.trigger("keypress", a), (e._keyUpPrevented = a.isDefaultPrevented()) 2487 }), 2488 this.$search.on("input", function (b) { 2489 a(this).off("keyup") 2490 }), 2491 this.$search.on("keyup input", function (a) { 2492 e.handleSearch(a) 2493 }), 2494 c.on("open", function () { 2495 e.$search.attr("tabindex", 0), 2496 e.$search.focus(), 2497 window.setTimeout(function () { 2498 e.$search.focus() 2499 }, 0) 2500 }), 2501 c.on("close", function () { 2502 e.$search.attr("tabindex", -1), e.$search.val("") 2503 }), 2504 c.on("focus", function () { 2505 c.isOpen() && e.$search.focus() 2506 }), 2507 c.on("results:all", function (a) { 2508 if (null == a.query.term || "" === a.query.term) { 2509 var b = e.showSearch(a) 2510 b 2511 ? e.$searchContainer.removeClass("select2-search--hide") 2512 : e.$searchContainer.addClass("select2-search--hide") 2513 } 2514 }) 2515 }), 2516 (c.prototype.handleSearch = function (a) { 2517 if (!this._keyUpPrevented) { 2518 var b = this.$search.val() 2519 this.trigger("query", { term: b }) 2520 } 2521 this._keyUpPrevented = !1 2522 }), 2523 (c.prototype.showSearch = function (a, b) { 2524 return !0 2525
2525 }), 2526 c 2527 ) 2528 }), 2529 b.define("select2/dropdown/hidePlaceholder", [], function () { 2530 function a(a, b, c, d) { 2531 ;(this.placeholder = this.normalizePlaceholder(c.get("placeholder"))), 2532 a.call(this, b, c, d) 2533 } 2534 return ( 2535 (a.prototype.append = function (a, b) { 2536 ;(b.results = this.removePlaceholder(b.results)), a.call(this, b) 2537 }), 2538 (a.prototype.normalizePlaceholder = function (a, b) { 2539 return "string" == typeof b && (b = { id: "", text: b }), b 2540 }), 2541 (a.prototype.removePlaceholder = function (a, b) { 2542 for (var c = b.slice(0), d = b.length - 1; d >= 0; d--) { 2543 var e = b[d] 2544 this.placeholder.id === e.id && c.splice(d, 1) 2545 } 2546 return c 2547 }), 2548 a 2549 ) 2550 }), 2551 b.define("select2/dropdown/infiniteScroll", ["jquery"], function (a) { 2552 function b(a, b, c, d) { 2553 ;(this.lastParams = {}), 2554 a.call(this, b, c, d), 2555 (this.$loadingMore = this.createLoadingMore()), 2556 (this.loading = !1) 2557 } 2558 return ( 2559 (b.prototype.append = function (a, b) { 2560 this.$loadingMore.remove(), 2561 (this.loading = !1), 2562 a.call(this, b), 2563 this.showLoadingMore(b) && this.$results.append(this.$loadingMore) 2564 }), 2565 (b.prototype.bind = function (b, c, d) { 2566 var e = this 2567 b.call(this, c, d), 2568 c.on("query", function (a) { 2569 ;(e.lastParams = a), (e.loading = !0) 2570 }), 2571 c.on("query:append", function (a) { 2572 ;(e.lastParams = a), (e.loading = !0) 2573 }), 2574 this.$results.on("scroll", function () { 2575 var b = a.contains(document.documentElement, e.$loadingMore[0]) 2576 if (!e.loading && b) { 2577 var c = e.$results.offset().top + e.$results.outerHeight(!1), 2578 d = e.$loadingMore.offset().top + e.$loadingMore.outerHeight(!1) 2579 c + 50 >= d && e.loadMore() 2580 } 2581 }) 2582 }), 2583 (b.prototype.loadMore = function () { 2584 this.loading = !0 2585 var b = a.extend({}, { page: 1 }, this.lastParams) 2586 b.page++, this.trigger("query:append", b) 2587 }), 2588 (b.prototype.showLoadingMore = function (a, b) { 2589 return b.pagination && b.pagination.more 2590 }), 2591 (b.prototype.createLoadingMore = function () { 2592 var b = a( 2593 '<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>', 2594 ), 2595 c = this.options.get("translations").get("loadingMore") 2596 return b.html(c(this.lastParams)), b 2597 }), 2598 b 2599 ) 2600 }), 2601 b.define("select2/dropdown/attachBody", ["jquery", "../utils"], function (a, b) { 2602 function c(b, c, d) { 2603 ;(this.$dropdownParent = d.get("dropdownParent") || a(document.body)), 2604 b.call(this, c, d) 2605 } 2606 return ( 2607 (c.prototype.bind = function (a, b, c) { 2608 var d = this, 2609 e = !1 2610 a.call(this, b, c), 2611 b.on("open", function () { 2612 d._showDropdown(), 2613 d._attachPositioningHandler(b), 2614 e || 2615 ((e = !0), 2616 b.on("results:all", function () { 2617 d._positionDropdown(), d._resizeDropdown() 2618 }), 2619 b.on("results:append", function () { 2620 d._positionDropdown(), d._resizeDropdown() 2621 })) 2622 }), 2623 b.on("close", function () { 2624 d._hideDropdown(), d._detachPositioningHandler(b) 2625 }), 2626 this.$dropdownContainer.on("mousedown", function (a) { 2627 a.stopPropagation() 2628 }) 2629 }), 2630 (c.prototype.destroy = function (a) { 2631 a.call(this), this.$dropdownContainer.remove() 2632 }), 2633 (c.prototype.position = function (a, b, c) { 2634 b.attr("class", c.attr("class")), 2635 b.removeClass("select2"), 2636 b.addClass("select2-container--open"), 2637 b.css({ position: "absolute", top: -999999 }), 2638 (this.$container = c) 2639 }), 2640 (c.prototype.render = function (b) { 2641 var c = a("<span></span>"), 2642 d = b.call(this) 2643 return c.append(d), (this.$dropdownContainer = c), c 2644 }), 2645 (c.prototype._hideDropdown = function (a) { 2646 this.$dropdownContainer.detach() 2647 }), 2648 (c.prototype._attachPositioningHandler = function (c, d) { 2649 var e = this, 2650 f = "scroll.select2." + d.id, 2651 g = "resize.select2." + d.id, 2652 h = "orientationchange.select2." + d.id, 2653 i = this.$container.parents().filter(b.hasScroll) 2654 i.each(function () { 2655 a(this).data("select2-scroll-position", { 2656 x: a(this).scrollLeft(), 2657 y: a(this).scrollTop(), 2658 }) 2659 }), 2660 i.on(f, function (b) { 2661 var c = a(this).data("select2-scroll-position") 2662 a(this).scrollTop(c.y) 2663 }), 2664 a(window).on(f + " " + g + " " + h, function (a) { 2665 e._positionDropdown(), e._resizeDropdown() 2666 }) 2667 }), 2668 (c.prototype._detachPositioningHandler = function (c, d) { 2669 var e = "scroll.select2." + d.id, 2670 f = "resize.select2." + d.id, 2671 g = "orientationchange.select2." + d.id, 2672 h = this.$container.parents().filter(b.hasScroll) 2673 h.off(e), a(window).off(e + " " + f + " " + g) 2674 }), 2675 (c.prototype._positionDropdown = function () { 2676 var b = a(window), 2677 c = this.$dropdown.hasClass("select2-dropdown--above"), 2678 d = this.$dropdown.hasClass("select2-dropdown--below"), 2679 e = null, 2680 f = this.$container.offset() 2681 f.bottom = f.top + this.$container.outerHeight(!1) 2682 var g = { height: this.$container.outerHeight(!1) } 2683 ;(g.top = f.top), (g.bottom = f.top + g.height) 2684 var h = { height: this.$dropdown.outerHeight(!1) }, 2685 i = { top: b.scrollTop(), bottom: b.scrollTop() + b.he
2685ight() }, 2686 j = i.top < f.top - h.height, 2687 k = i.bottom > f.bottom + h.height, 2688 l = { left: f.left, top: g.bottom }, 2689 m = this.$dropdownParent 2690 "static" === m.css("position") && (m = m.offsetParent()) 2691 var n = m.offset() 2692 ;(l.top -= n.top), 2693 (l.left -= n.left), 2694 c || d || (e = "below"), 2695 k || !j || c ? !j && k && c && (e = "below") : (e = "above"), 2696 ("above" == e || (c && "below" !== e)) && (l.top = g.top - n.top - h.height), 2697 null != e && 2698 (this.$dropdown 2699 .removeClass("select2-dropdown--below select2-dropdown--above") 2700 .addClass("select2-dropdown--" + e), 2701 this.$container 2702 .removeClass("select2-container--below select2-container--above") 2703 .addClass("select2-container--" + e)), 2704 this.$dropdownContainer.css(l) 2705 }), 2706 (c.prototype._resizeDropdown = function () { 2707 var a = { width: this.$container.outerWidth(!1) + "px" } 2708 this.options.get("dropdownAutoWidth") && 2709 ((a.minWidth = a.width), (a.position = "relative"), (a.width = "auto")), 2710 this.$dropdown.css(a) 2711 }), 2712 (c.prototype._showDropdown = function (a) { 2713 this.$dropdownContainer.appendTo(this.$dropdownParent), 2714 this._positionDropdown(), 2715 this._resizeDropdown() 2716 }), 2717 c 2718 ) 2719 }), 2720 b.define("select2/dropdown/minimumResultsForSearch", [], function () { 2721 function a(b) { 2722 for (var c = 0, d = 0; d < b.length; d++) { 2723 var e = b[d] 2724 e.children ? (c += a(e.children)) : c++ 2725 } 2726 return c 2727 } 2728 function b(a, b, c, d) { 2729 ;(this.minimumResultsForSearch = c.get("minimumResultsForSearch")), 2730 this.minimumResultsForSearch < 0 && (this.minimumResultsForSearch = 1 / 0), 2731 a.call(this, b, c, d) 2732 } 2733 return ( 2734 (b.prototype.showSearch = function (b, c) { 2735 return a(c.data.results) < this.minimumResultsForSearch ? !1 : b.call(this, c) 2736 }), 2737 b 2738 ) 2739 }), 2740 b.define("select2/dropdown/selectOnClose", [], function () { 2741 function a() {} 2742 return ( 2743 (a.prototype.bind = function (a, b, c) { 2744 var d = this 2745 a.call(this, b, c), 2746 b.on("close", function (a) { 2747 d._handleSelectOnClose(a) 2748 }) 2749 }), 2750 (a.prototype._handleSelectOnClose = function (a, b) { 2751 if (b && null != b.originalSelect2Event) { 2752 var c = b.originalSelect2Event 2753 if ("select" === c._type || "unselect" === c._type) return 2754 } 2755 var d = this.getHighlightedResults() 2756 if (!(d.length < 1)) { 2757 var e = d.data("data") 2758 ;(null != e.element && e.element.selected) || 2759 (null == e.element && e.selected) || 2760 this.trigger("select", { data: e }) 2761 } 2762 }), 2763 a 2764 ) 2765 }), 2766 b.define("select2/dropdown/closeOnSelect", [], function () { 2767 function a() {} 2768 return ( 2769 (a.prototype.bind = function (a, b, c) { 2770 var d = this 2771 a.call(this, b, c), 2772 b.on("select", function (a) { 2773 d._selectTriggered(a) 2774 }), 2775 b.on("unselect", function (a) { 2776 d._selectTriggered(a) 2777 }) 2778 }), 2779 (a.prototype._selectTriggered = function (a, b) { 2780 var c = b.originalEvent 2781 ;(c && c.ctrlKey) || 2782 this.trigger("close", { 2783 originalEvent: c, 2784 originalSelect2Event: b, 2785 }) 2786 }), 2787 a 2788 ) 2789 }), 2790 b.define("select2/i18n/en", [], function () { 2791 return { 2792 errorLoading: function () { 2793 return "The results could not be loaded." 2794 }, 2795 inputTooLong: function (a) { 2796 var b = a.input.length - a.maximum, 2797 c = "Please delete " + b + " character" 2798 return 1 != b && (c += "s"), c 2799 }, 2800 inputTooShort: function (a) { 2801 var b = a.minimum - a.input.length, 2802 c = "Please enter " + b + " or more characters" 2803 return c 2804 }, 2805 loadingMore: function () { 2806 return "Loading more resultsâ¦" 2807 }, 2808 maximumSelected: function (a) { 2809 var b = "You can only select " + a.maximum + " item" 2810 return 1 != a.maximum && (b += "s"), b 2811 }, 2812 noResults: function () { 2813 return "No results found" 2814 }, 2815 searching: function () { 2816 return "Searchingâ¦" 2817 }, 2818 } 2819 }), 2820 b.define( 2821 "select2/defaults", 2822 [ 2823 "jquery", 2824 "require", 2825 "./results", 2826 "./selection/single", 2827 "./selection/multiple", 2828 "./selection/placeholder", 2829 "./selection/allowClear", 2830 "./selection/search", 2831 "./selection/eventRelay", 2832 "./utils", 2833 "./translation", 2834 "./diacritics", 2835 "./data/select", 2836 "./data/array", 2837 "./data/ajax", 2838 "./data/tags", 2839 "./data/tokenizer", 2840 "./data/minimumInputLength", 2841 "./data/maximumInputLength", 2842 "./data/maximumSelectionLength", 2843 "./dropdown", 2844 "./dropdown/search", 2845 "./dropdown/hidePlaceholder", 2846 "./dropdown/infiniteScroll", 2847 "./dropdown/attachBody", 2848 "./dropdown/minimumResultsForSearch", 2849 "./dropdown/selectOnClose", 2850 "./dropdown/closeOnSelect", 2851 "./i18n/en", 2852 ], 2853 function ( 2854 a, 2855 b, 2856 c, 2857 d, 2858 e, 2859 f, 2860 g, 2861 h, 2862 i, 2863 j, 2864 k, 2865 l, 2866 m, 2867 n, 2868 o, 2869 p, 2870 q, 2871 r, 2872 s, 2873 t, 2874 u, 2875 v, 2876 w, 2877 x, 2878 y, 2879 z, 2880 A, 2881 B, 2882 C, 2883 ) { 2884 function D() { 2885 this.reset() 2886 } 2887 ;(D.prototype.apply = function (l) { 2888 if (((l = a.extend(!0, {}, this.defaults, l)), null == l.dataAdapter)) { 2889 if ( 2890 (null != l.ajax 2891 ? (l.dataAdapter = o) 2892 : null != l.data 2893 ? (l.dataAdapter = n) 2894 : (l.dataAdapter = m), 2895 l.minimumInputLength > 0 && (l.dataAdapter = j.Decorate(l.dataAdapter, r)), 2896 l.maximumInputLength > 0 && (l.dataAdapter = j.Decorate(l.dataAdapter, s)), 2897 l.maximumSelectionLength > 0 && (l.dataAdapter = j.Decorate(l.dataAdapter, t)), 2898 l.tags && (l.dataAdapter = j.Decorate(l.dataAdapter, p)), 2899 (null != l.tokenSeparators || null != l.tokenizer) && 2900 (l.dataAdapter = j.Decorate(l.dataAdapter, q)), 2901 null != l.query) 2902 ) { 2903 var C = b(l.amdBase + "compat/query")
2904 l.dataAdapter = j.Decorate(l.dataAdapter, C) 2905 } 2906 if (null != l.initSelection) { 2907 var D = b(l.amdBase + "compat/initSelection") 2908 l.dataAdapter = j.Decorate(l.dataAdapter, D) 2909 } 2910 } 2911 if ( 2912 (null == l.resultsAdapter && 2913 ((l.resultsAdapter = c), 2914 null != l.ajax && (l.resultsAdapter = j.Decorate(l.resultsAdapter, x)), 2915 null != l.placeholder && (l.resultsAdapter = j.Decorate(l.resultsAdapter, w)), 2916 l.selectOnClose && (l.resultsAdapter = j.Decorate(l.resultsAdapter, A))), 2917 null == l.dropdownAdapter) 2918 ) { 2919 if (l.multiple) l.dropdownAdapter = u 2920 else { 2921 var E = j.Decorate(u, v) 2922 l.dropdownAdapter = E 2923 } 2924 if ( 2925 (0 !== l.minimumResultsForSearch && 2926 (l.dropdownAdapter = j.Decorate(l.dropdownAdapter, z)), 2927 l.closeOnSelect && (l.dropdownAdapter = j.Decorate(l.dropdownAdapter, B)), 2928 null != l.dropdownCssClass || 2929 null != l.dropdownCss || 2930 null != l.adaptDropdownCssClass) 2931 ) { 2932 var F = b(l.amdBase + "compat/dropdownCss") 2933 l.dropdownAdapter = j.Decorate(l.dropdownAdapter, F) 2934 } 2935 l.dropdownAdapter = j.Decorate(l.dropdownAdapter, y) 2936 } 2937 if (null == l.selectionAdapter) { 2938 if ( 2939 (l.multiple ? (l.selectionAdapter = e) : (l.selectionAdapter = d), 2940 null != l.placeholder && (l.selectionAdapter = j.Decorate(l.selectionAdapter, f)), 2941 l.allowClear && (l.selectionAdapter = j.Decorate(l.selectionAdapter, g)), 2942 l.multiple && (l.selectionAdapter = j.Decorate(l.selectionAdapter, h)), 2943 null != l.containerCssClass || 2944 null != l.containerCss || 2945 null != l.adaptContainerCssClass) 2946 ) { 2947 var G = b(l.amdBase + "compat/containerCss") 2948 l.selectionAdapter = j.Decorate(l.selectionAdapter, G) 2949 } 2950 l.selectionAdapter = j.Decorate(l.selectionAdapter, i) 2951 } 2952 if ("string" == typeof l.language) 2953 if (l.language.indexOf("-") > 0) { 2954 var H = l.language.split("-"), 2955 I = H[0] 2956 l.language = [l.language, I] 2957 } else l.language = [l.language] 2958 if (a.isArray(l.language)) { 2959 var J = new k() 2960 l.language.push("en") 2961 for (var K = l.language, L = 0; L < K.length; L++) { 2962 var M = K[L], 2963 N = {} 2964 try { 2965 N = k.loadPath(M) 2966 } catch (O) { 2967 try { 2968 ;(M = this.defaults.amdLanguageBase + M), (N = k.loadPath(M)) 2969 } catch (P) { 2970 l.debug && 2971 window.console && 2972 console.warn && 2973 console.warn( 2974 'Select2: The language file for "' + 2975 M + 2976 '" could not be automatically loaded. A fallback will be used instead.', 2977 ) 2978 continue 2979 } 2980 } 2981 J.extend(N) 2982 } 2983 l.translations = J 2984 } else { 2985 var Q = k.loadPath(this.defaults.amdLanguageBase + "en"), 2986 R = new k(l.language) 2987 R.extend(Q), (l.translations = R) 2988 } 2989 return l 2990 }), 2991 (D.prototype.reset = function () { 2992 function b(a) { 2993 function b(a) { 2994 return l[a] || a 2995 }
2996 return a.replace(/[^\u0000-\u007E]/g, b) 2997 } 2998 function c(d, e) { 2999 if ("" === a.trim(d.term)) return e 3000 if (e.children && e.children.length > 0) { 3001 for (var f = a.extend(!0, {}, e), g = e.children.length - 1; g >= 0; g--) { 3002 var h = e.children[g], 3003 i = c(d, h) 3004 null == i && f.children.splice(g, 1) 3005 } 3006 return f.children.length > 0 ? f : c(d, f) 3007 } 3008 var j = b(e.text).toUpperCase(), 3009 k = b(d.term).toUpperCase() 3010 return j.indexOf(k) > -1 ? e : null 3011 } 3012 this.defaults = { 3013 amdBase: "./", 3014 amdLanguageBase: "./i18n/", 3015 closeOnSelect: !0, 3016 debug: !1, 3017 dropdownAutoWidth: !1, 3018 escapeMarkup: j.escapeMarkup, 3019 language: C, 3020 matcher: c, 3021 minimumInputLength: 0, 3022 maximumInputLength: 0, 3023 maximumSelectionLength: 0, 3024 minimumResultsForSearch: 0, 3025 selectOnClose: !1, 3026 sorter: function (a) { 3027 return a 3028 }, 3029 templateResult: function (a) { 3030 return a.text 3031 }, 3032 templateSelection: function (a) { 3033 return a.text 3034 }, 3035 theme: "default", 3036 width: "resolve", 3037 } 3038 }), 3039 (D.prototype.set = function (b, c) { 3040 var d = a.camelCase(b), 3041 e = {} 3042 e[d] = c 3043 var f = j._convertData(e) 3044 a.extend(this.defaults, f) 3045 }) 3046 var E = new D() 3047 return E 3048 }, 3049 ), 3050 b.define( 3051 "select2/options", 3052 ["require", "jquery", "./defaults", "./utils"], 3053 function (a, b, c, d) { 3054 function e(b, e) { 3055 if ( 3056 ((this.options = b), 3057 null != e && this.fromElement(e), 3058 (this.options = c.apply(this.options)), 3059 e && e.is("input")) 3060 ) { 3061 var f = a(this.get("amdBase") + "compat/inputData") 3062 this.options.dataAdapter = d.Decorate(this.options.dataAdapter, f) 3063 } 3064 } 3065 return ( 3066 (e.prototype.fromElement = function (a) { 3067 var c = ["select2"] 3068 null == this.options.multiple && (this.options.multiple = a.prop("multiple")), 3069 null == this.options.disabled && (this.options.disabled = a.prop("disabled")), 3070 null == this.options.language && 3071 (a.prop("lang") 3072 ? (this.options.language = a.prop("lang").toLowerCase()) 3073 : a.closest("[lang]").prop("lang") && 3074 (this.options.language = a.closest("[lang]").prop("lang"))), 3075 null == this.options.dir && 3076 (a.prop("dir") 3077 ? (this.options.dir = a.prop("dir")) 3078 : a.closest("[dir]").prop("dir") 3079 ? (this.options.dir = a.closest("[dir]").prop("dir")) 3080 : (this.options.dir = "ltr")), 3081 a.prop("disabled", this.options.disabled), 3082 a.prop("multiple", this.options.multiple), 3083 a.data("select2Tags") && 3084 (this.options.debug && 3085 window.console && 3086 console.warn && 3087 console.warn( 3088 'Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.', 3089 ), 3090 a.data("data", a.data("select2Tags")), 3091 a.data("tags", !0)), 3092 a.data("ajaxUrl") && 3093 (this.options.debug && 3094 window.console && 3095 console.warn && 3096 console.warn( 3097 "Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2.", 3098 ), 3099 a.attr("ajax--url", a.data("ajaxUrl")), 3100 a.data("ajax--url", a.data("ajaxUrl"))) 3101 var e = {} 3102 e = 3103 b.fn.jquery && "1." == b.fn.jquery.substr(0, 2) && a[0].dataset 3104 ? b.extend(!0, {}, a[0].dataset, a.data()) 3105 : a.data() 3106 var f = b.extend(!0, {}, e) 3107 f = d._convertData(f) 3108 for (var g in f) 3109 b.inArray(g, c) > -1 || 3110 (b.isPlainObject(this.options[g]) 3111 ? b.extend(this.options[g], f[g]) 3112 : (this.options[g] = f[g])) 3113 return this 3114 }), 3115 (e.prototype.get = function (a) { 3116 return this.options[a] 3117 }), 3118 (e.prototype.set = function (a, b) { 3119 this.options[a] = b 3120 }), 3121 e 3122 ) 3123 }, 3124 ), 3125 b.define( 3126 "select2/core", 3127 ["jquery", "./options", "./utils", "./keys"], 3128 function (a, b, c, d) { 3129 var e = function (a, c) { 3130 null != a.data("select2") && a.data("select2").destroy(), 3131 (this.$element = a), 3132 (this.id = this._generateId(a)), 3133 (c = c || {}), 3134 (this.options = new b(c, a)), 3135 e.__super__.constructor.call(this) 3136 var d = a.attr("tabindex") || 0 3137 a.data("old-tabindex", d), a.attr("tabindex", "-1") 3138 var f = this.options.get("dataAdapter") 3139 this.dataAdapter = new f(a, this.options) 3140 var g = this.render() 3141 this._placeContainer(g) 3142 var h = this.options.get("selectionAdapter") 3143 ;(this.selection = new h(a, this.options)), 3144 (this.$selection = this.selection.render()), 3145 this.selection.position(this.$selection, g) 3146 var i = this.options.get("dropdownAdapter") 3147 ;(this.dropdown = new i(a, this.options)), 3148 (this.$dropdown = this.dropdown.render()), 3149 this.dropdown.position(this.$dropdown, g) 3150 var j = this.options.get("resultsAdapter") 3151 ;(this.results = new j(a, this.options, this.dataAdapter)), 3152 (this.$results = this.results.render()), 3153 this.results.position(this.$results, this.$dropdown) 3154 var k = this 3155 this._bindAdapters(), 3156 this._registerDomEvents(), 3157 this._registerDataEvents(), 3158 this._registerSelectionEvents(), 3159 this._registerDropdownEvents(), 3160 this._registerResultsEvents(), 3161 this._registerEvents(), 3162 this.dataAdapter.current(function (a) { 3163 k.trigger("selection:update", { data: a }) 3164 }), 3165 a.addClass("select2-hidden-accessible"), 3166 a.attr("aria-hidden", "true"), 3167 this._syncAttributes(), 3168 a.data("select2", this) 3169 } 3170 return ( 3171 c.Extend(e, c.Observable), 3172 (e.prototype._generateId = function (a) { 3173 var b = "" 3174 return ( 3175 (b = 3176 null != a.attr("id") 3177 ? a.attr("id") 3178 : null != a.attr("name") 3179 ? a.attr("name") + "-" + c.generateChars(2) 3180 : c.generateChars(4)), 3181 (b = b.replace(/(:|\.|\[|\]|,)/g, "")), 3182 (b = "select2-" + b) 3183 ) 3184 }), 3185 (e.prototype._placeContainer = function (a) { 3186 a.insertAfter(this.$element) 3187 var b = this._resolveWidth(this.$element, this.options.get("width")) 3188 null != b && a.css("width", b) 3189 }), 3190 (e.prototype._resolveWidth = function (a, b) { 3191 var c = /^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i 3192 if ("resolve" == b) { 3193 var d = this._resolveWidth(a, "style") 3194 return null != d ? d : this._resolveWidth(a, "element") 3195 } 3196 if ("element" == b) { 3197 var e = a.outerWidth(!1) 3198 return 0 >= e ? "auto" : e + "px" 3199 } 3200 if ("style" == b) { 3201 var f = a.attr("style") 3202 if ("string" != typeof f) return null 3203 for (var g = f.split(";"), h = 0, i = g.length; i > h; h += 1) { 3204 var j = g[h].replace(/\s/g, ""), 3205 k = j.match(c) 3206 if (null !== k && k.length >= 1) return k[1] 3207 } 3208 return null 3209 } 3210 return b 3211 }), 3212 (e.prototype._bindAdapters = function () { 3213 this.dataAdapter.bind(this, this.$container), 3214 this.selection.bind(this, this.$container), 3215 this.dropdown.bind(this, this.$container), 3216 this.results.bind(this, this.$container) 3217 }), 3218 (e.prototype._registerDomEvents = function () { 3219 var b = this 3220 this.$element.on("change.select2", function () { 3221 b.dataAdapter.current(function (a) { 3222 b.trigger("selection:update", { data: a }) 3223 }) 3224 }), 3225 this.$element.on("focus.select2", function (a) { 3226 b.trigger("focus", a) 3227 }), 3228 (this._syncA = c.bind(this._syncAttributes, this)), 3229 (this._syncS = c.bind(this._syncSubtree, this)), 3230 this.$element[0].attachEvent && 3231 this.$element[0].attachEvent("onpropertychange", this._syncA) 3232 var d = 3233 window.MutationObserver || 3234 window.WebKitMutationObserver || 3235 window.MozMutationObserver 3236 null != d 3237 ? ((this._observer = new d(function (c) { 3238 a.each(c, b._syncA), a.each(c, b._syncS) 3239 })), 3240 this._observer.observe(this.$element[0], { 3241 attributes: !0, 3242 childList: !0, 3243 subtree: !1, 3244 })) 3245 : this.$element[0].addEventListener && 3246 (this.$element[0].addEventListener("DOMAttrModified", b._syncA, !1), 3247 this.$element[0].addEventListener("DOMNodeInserted", b._syncS, !1), 3248 this.$element[0].addEventListener("DOMNodeRemoved", b._syncS, !1)) 3249 }), 3250 (e.prototype._registerDataEvents = function () { 3251 var a = this 3252 this.dataAdapter.on("*", function (b, c) { 3253 a.trigger(b, c) 3254 }) 3255 }), 3256 (e.prototype._registerSelectionEvents = function () { 3257 var b = this,
3258 c = ["toggle", "focus"] 3259 this.selection.on("toggle", function () { 3260 b.toggleDropdown() 3261 }), 3262 this.selection.on("focus", function (a) { 3263 b.focus(a) 3264 }), 3265 this.selection.on("*", function (d, e) { 3266 ;-1 === a.inArray(d, c) && b.trigger(d, e) 3267 }) 3268 }), 3269 (e.prototype._registerDropdownEvents = function () { 3270 var a = this 3271 this.dropdown.on("*", function (b, c) { 3272 a.trigger(b, c) 3273 }) 3274 }), 3275 (e.prototype._registerResultsEvents = function () { 3276 var a = this 3277 this.results.on("*", function (b, c) { 3278 a.trigger(b, c) 3279 }) 3280 }), 3281 (e.prototype._registerEvents = function () { 3282 var a = this 3283 this.on("open", function () { 3284 a.$container.addClass("select2-container--open") 3285 }), 3286 this.on("close", function () { 3287 a.$container.removeClass("select2-container--open") 3288 }), 3289 this.on("enable", function () { 3290 a.$container.removeClass("select2-container--disabled") 3291 }), 3292 this.on("disable", function () { 3293 a.$container.addClass("select2-container--disabled") 3294 }), 3295 this.on("blur", function () { 3296 a.$container.removeClass("select2-container--focus") 3297 }), 3298 this.on("query", function (b) { 3299 a.isOpen() || a.trigger("open", {}), 3300 this.dataAdapter.query(b, function (c) { 3301 a.trigger("results:all", { data: c, query: b }) 3302 }) 3303 }), 3304 this.on("query:append", function (b) { 3305 this.dataAdapter.query(b, function (c) { 3306 a.trigger("results:append", { data: c, query: b }) 3307 }) 3308 }), 3309 this.on("keypress", function (b) { 3310 var c = b.which 3311 if (c === d.ENTER && (b.ctrlKey || b.metaKey)) a.close() 3312 if (c === d.ESC && !a.isOpen()) a.close() 3313 3314 a.isOpen() 3315 ? c === d.ESC || c === d.TAB || (c === d.UP && b.altKey) 3316 ? (a.close(), b.preventDefault()) 3317 : c === d.ENTER && !b.ctrlKey && !b.metaKey 3318 ? (a.trigger("results:select", {}), b.preventDefault()) 3319 : c === d.SPACE && b.ctrlKey 3320 ? (a.trigger("results:toggle", {}), b.preventDefault()) 3321 : c === d.UP 3322 ? (a.trigger("results:previous", {}), b.preventDefault()) 3323 : c === d.DOWN && (a.trigger("results:next", {}), b.preventDefault()) 3324 : (c === (d.ENTER && !b.ctrlKey && !b.metaKey) || 3325 c === d.SPACE || 3326 (c === d.DOWN && b.altKey)) && 3327 (a.open(), b.preventDefault()) 3328 }) 3329 }), 3330 (e.prototype._syncAttributes = function () { 3331 this.options.set("disabled", this.$element.prop("disabled")), 3332 this.options.get("disabled") 3333 ? (this.isOpen() && this.close(), this.trigger("disable", {})) 3334 : this.trigger("enable", {}) 3335 }), 3336 (e.prototype._syncSubtree = function (a, b) { 3337 var c = !1, 3338 d = this 3339 if ( 3340 !a || 3341 !a.target || 3342 "OPTION" === a.target.nodeName || 3343 "OPTGROUP" === a.target.nodeName 3344 ) { 3345 if (b) 3346 if (b.addedNodes && b.addedNodes.length > 0) 3347 for (var e = 0; e < b.addedNodes.length; e++) { 3348 var f = b.addedNodes[e] 3349 f.selected && (c = !0) 3350 } 3351 else b.removedNodes && b.removedNodes.length > 0 && (c = !0) 3352 else c = !0 3353 c && 3354 this.dataAdapter.current(function (a) { 3355 d.trigger("selection:update", { data: a }) 3356 }) 3357 } 3358 }), 3359 (e.prototype.trigger = function (a, b) { 3360 var c = e.__super__.trigger, 3361 d = { 3362 open: "opening", 3363 close: "closing", 3364 select: "selecting", 3365 unselect: "unselecting", 3366 } 3367 if ((void 0 === b && (b = {}), a in d)) { 3368 var f = d[a], 3369 g = { prevented: !1, name: a, args: b } 3370 if ((c.call(this, f, g), g.prevented)) return void (b.prevented = !0) 3371 } 3372 c.call(this, a, b) 3373 }), 3374 (e.prototype.toggleDropdown = function () { 3375 this.options.get("disabled") || (this.isOpen() ? this.close() : this.open()) 3376 }), 3377 (e.prototype.open = function () { 3378 this.isOpen() || this.trigger("query", {}) 3379 }), 3380 (e.prototype.close = function () { 3381 this.isOpen() && this.trigger("close", {}) 3382 }), 3383 (e.prototype.isOpen = function () { 3384 return this.$container.hasClass("select2-container--open") 3385 }), 3386 (e.prototype.hasFocus = function () { 3387 return this.$container.hasClass("select2-container--focus") 3388 }),
3389 (e.prototype.focus = function (a) { 3390 this.hasFocus() || 3391 (this.$container.addClass("select2-container--focus"), this.trigger("focus", {})) 3392 }), 3393 (e.prototype.enable = function (a) { 3394 this.options.get("debug") && 3395 window.console && 3396 console.warn && 3397 console.warn( 3398 'Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.', 3399 ), 3400 (null == a || 0 === a.length) && (a = [!0]) 3401 var b = !a[0] 3402 this.$element.prop("disabled", b) 3403 }), 3404 (e.prototype.data = function () { 3405 this.options.get("debug") && 3406 arguments.length > 0 && 3407 window.console && 3408 console.warn && 3409 console.warn( 3410 'Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.', 3411 ) 3412 var a = [] 3413 return ( 3414 this.dataAdapter.current(function (b) { 3415 a = b 3416 }), 3417 a 3418 ) 3419 }), 3420 (e.prototype.val = function (b) { 3421 if ( 3422 (this.options.get("debug") && 3423 window.console && 3424 console.warn && 3425 console.warn( 3426 'Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.', 3427 ), 3428 null == b || 0 === b.length) 3429 ) 3430 return this.$element.val() 3431 var c = b[0] 3432 a.isArray(c) && 3433 (c = a.map(c, function (a) { 3434 return a.toString() 3435 })), 3436 this.$element.val(c).trigger("change") 3437 }), 3438 (e.prototype.destroy = function () { 3439 this.$container.remove(), 3440 this.$element[0].detachEvent && 3441 this.$element[0].detachEvent("onpropertychange", this._syncA), 3442 null != this._observer 3443 ? (this._observer.disconnect(), (this._observer = null)) 3444 : this.$element[0].removeEventListener && 3445 (this.$element[0].removeEventListener("DOMAttrModified", this._syncA, !1), 3446 this.$element[0].removeEventListener("DOMNodeInserted", this._syncS, !1), 3447 this.$element[0].removeEventListener("DOMNodeRemoved", this._syncS, !1)), 3448 (this._syncA = null), 3449 (this._syncS = null), 3450 this.$element.off(".select2"), 3451 this.$element.attr("tabindex", this.$element.data("old-tabindex")), 3452 this.$element.removeClass("select2-hidden-accessible"), 3453 this.$element.attr("aria-hidden", "false"), 3454 this.$element.removeData("select2"), 3455 this.dataAdapter.destroy(), 3456 this.selection.destroy(), 3457 this.dropdown.destroy(), 3458 this.results.destroy(), 3459 (this.dataAdapter = null), 3460 (this.selection = null), 3461 (this.dropdown = null),
3462 (this.results = null) 3463 }), 3464 (e.prototype.render = function () { 3465 var b = a( 3466 '<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>', 3467 ) 3468 return ( 3469 b.attr("dir", this.options.get("dir")), 3470 (this.$container = b), 3471 this.$container.addClass("select2-container--" + this.options.get("theme")), 3472 b.data("element", this.$element), 3473 b 3474 ) 3475 }), 3476 e 3477 ) 3478 }, 3479 ), 3480 b.define("select2/compat/utils", ["jquery"], function (a) { 3481 function b(b, c, d) { 3482 var e, 3483 f, 3484 g = [] 3485 ;(e = a.trim(b.attr("class"))), 3486 e && 3487 ((e = "" + e), 3488 a(e.split(/\s+/)).each(function () { 3489 0 === this.indexOf("select2-") && g.push(this) 3490 })), 3491 (e = a.trim(c.attr("class"))), 3492 e && 3493 ((e = "" + e), 3494 a(e.split(/\s+/)).each(function () { 3495 0 !== this.indexOf("select2-") && ((f = d(this)), null != f && g.push(f)) 3496 })), 3497 b.attr("class", g.join(" ")) 3498 } 3499 return { syncCssClasses: b } 3500 }), 3501 b.define("select2/compat/containerCss", ["jquery", "./utils"], function (a, b) { 3502 function c(a) { 3503 return null 3504 } 3505 function d() {} 3506 return ( 3507 (d.prototype.render = function (d) { 3508 var e = d.call(this), 3509 f = this.options.get("containerCssClass") || "" 3510 a.isFunction(f) && (f = f(this.$element)) 3511 var g = this.options.get("adaptContainerCssClass") 3512 if (((g = g || c), -1 !== f.indexOf(":all:"))) { 3513 f = f.replace(":all:", "") 3514 var h = g 3515 g = function (a) { 3516 var b = h(a) 3517 return null != b ? b + " " + a : a 3518 } 3519 } 3520 var i = this.options.get("containerCss") || {} 3521 return ( 3522 a.isFunction(i) && (i = i(this.$element)), 3523 b.syncCssClasses(e, this.$element, g), 3524 e.css(i), 3525 e.addClass(f), 3526 e 3527 ) 3528 }), 3529 d 3530 ) 3531 }), 3532 b.define("select2/compat/dropdownCss", ["jquery", "./utils"], function (a, b) { 3533 function c(a) { 3534 return null 3535 } 3536 function d() {} 3537 return ( 3538 (d.prototype.render = function (d) { 3539 var e = d.call(this), 3540 f = this.options.get("dropdownCssClass") || "" 3541 a.isFunction(f) && (f = f(this.$element)) 3542 var g = this.options.get("adaptDropdownCssClass") 3543 if (((g = g || c), -1 !== f.indexOf(":all:"))) { 3544 f = f.replace(":all:", "") 3545 var h = g 3546 g = function (a) { 3547 var b = h(a) 3548 return null != b ? b + " " + a : a 3549 } 3550 } 3551 var i = this.options.get("dropdownCss") || {} 3552 return ( 3553 a.isFunction(i) && (i = i(this.$element)), 3554 b.syncCssClasses(e, this.$element, g), 3555 e.css(i), 3556 e.addClass(f), 3557 e 3558 ) 3559 }), 3560 d 3561 ) 3562 }), 3563 b.define("select2/compat/initSelection", ["jquery"], function (a) { 3564 function b(a, b, c) { 3565 c.get("debug") && 3566 window.console && 3567 console.warn && 3568 console.warn( 3569 "Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2", 3570 ), 3571 (this.initSelection = c.get("initSelection")), 3572 (this._isInitialized = !1), 3573 a.call(this, b, c) 3574 } 3575 return ( 3576 (b.prototype.current = function (b, c) { 3577 var d = this 3578 return this._isInitialized 3579 ? void b.call(this, c) 3580 : void this.initSelection.call(null, this.$element, function (b) { 3581 ;(d._isInitialized = !0), a.isArray(b) || (b = [b]), c(b) 3582 }) 3583 }), 3584 b 3585 ) 3586 }), 3587 b.define("select2/compat/inputData", ["jquery"], function (a) { 3588 function b(a, b, c) { 3589 ;(this._currentData = []), 3590 (this._valueSeparator = c.get("valueSeparator") || ","), 3591 "hidden" === b.prop("type") && 3592 c.get("debug") && 3593 console && 3594 console.warn && 3595 console.warn( 3596 "Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead.", 3597 ), 3598 a.call(this, b, c) 3599 } 3600 return ( 3601 (b.prototype.current = function (b, c) { 3602 function d(b, c) { 3603 var e = [] 3604 return ( 3605 b.selected || -1 !== a.inArray(b.id, c) 3606 ? ((b.selected = !0), e.push(b)) 3607 : (b.selected = !1), 3608 b.children && e.push.apply(e, d(b.children, c)), 3609 e 3610 ) 3611 } 3612 for (var e = [], f = 0; f < this._currentData.length; f++) { 3613 var g = this._currentData[f] 3614 e.push.apply(e, d(g, this.$element.val().split(this._valueSeparator))) 3615 } 3616 c(e) 3617 }), 3618 (b.prototype.select = function (b, c) { 3619 if (this.options.get("multiple")) { 3620 var d = this.$element.val() 3621 ;(d += this._valueSeparator + c.id), 3622 this.$element.val(d), 3623 this.$element.trigger("change") 3624 } else 3625 this.current(function (b) { 3626 a.map(b, function (a) { 3627 a.selected = !1 3628 }) 3629 }), 3630 this.$element.val(c.id), 3631 this.$element.trigger("change") 3632 }), 3633 (b.prototype.unselect = function (a, b) { 3634 var c = this 3635 ;(b.selected = !1), 3636 this.current(function (a) { 3637 for (var d = [], e = 0; e < a.length; e++) { 3638 var f = a[e] 3639 b.id != f.id && d.push(f.id) 3640 } 3641 c.$element.val(d.join(c._valueSeparator)), c.$element.trigger("change") 3642 }) 3643 }), 3644 (b.prototype.query = function (a, b, c) { 3645 for (var d = [], e = 0; e < this._currentData.length; e++) { 3646 var f = this._currentData[e], 3647 g = this.matches(b, f) 3648 null !== g && d.push(g) 3649 } 3650 c({ results: d }) 3651 }), 3652 (b.prototype.addOptions = function (b, c) { 3653 var d = a.map(c, function (b) { 3654 return a.data(b[0], "data") 3655 }) 3656 this._currentData.push.apply(this._currentData, d) 3657 }), 3658 b 3659 ) 3660 }), 3661 b.define("select2/compat/matcher", ["jquery"], function (a) { 3662 function b(b) { 3663 function c(c, d) { 3664 var e = a.extend(!0, {}, d) 3665 if (null == c.term || "" === a.trim(c.term)) return e 3666 if (d.children) { 3667 for (var f = d.children.length - 1; f >= 0;
3667 f--) { 3668 var g = d.children[f], 3669 h = b(c.term, g.text, g) 3670 h || e.children.splice(f, 1) 3671 } 3672 if (e.children.length > 0) return e 3673 } 3674 return b(c.term, d.text, d) ? e : null 3675 } 3676 return c 3677 } 3678 return b 3679 }), 3680 b.define("select2/compat/query", [], function () { 3681 function a(a, b, c) { 3682 c.get("debug") && 3683 window.console && 3684 console.warn && 3685 console.warn( 3686 "Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2.", 3687 ), 3688 a.call(this, b, c) 3689 } 3690 return ( 3691 (a.prototype.query = function (a, b, c) { 3692 b.callback = c 3693 var d = this.options.get("query") 3694 d.call(null, b) 3695 }), 3696 a 3697 ) 3698 }), 3699 b.define("select2/dropdown/attachContainer", [], function () { 3700 function a(a, b, c) { 3701 a.call(this, b, c) 3702 } 3703 return ( 3704 (a.prototype.position = function (a, b, c) { 3705 var d = c.find(".dropdown-wrapper") 3706 d.append(b), 3707 b.addClass("select2-dropdown--below"), 3708 c.addClass("select2-container--below") 3709 }), 3710 a 3711 ) 3712 }), 3713 b.define("select2/dropdown/stopPropagation", [], function () { 3714 function a() {} 3715 return ( 3716 (a.prototype.bind = function (a, b, c) { 3717 a.call(this, b, c) 3718 var d = [ 3719 "blur", 3720 "change", 3721 "click", 3722 "dblclick", 3723 "focus", 3724 "focusin", 3725 "focusout", 3726 "input", 3727 "keydown", 3728 "keyup", 3729 "keypress", 3730 "mousedown", 3731 "mouseenter", 3732 "mouseleave", 3733 "mousemove", 3734 "mouseover", 3735 "mouseup", 3736 "search", 3737 "touchend", 3738 "touchstart", 3739 ] 3740 this.$dropdown.on(d.join(" "), function (a) { 3741 a.stopPropagation() 3742 }) 3743 }), 3744 a 3745 ) 3746 }), 3747 b.define("select2/selection/stopPropagation", [], function () { 3748 function a() {} 3749 return ( 3750 (a.prototype.bind = function (a, b, c) { 3751 a.call(this, b, c) 3752 var d = [ 3753 "blur", 3754 "change", 3755 "click", 3756 "dblclick", 3757 "focus", 3758 "focusin", 3759 "focusout", 3760 "input", 3761 "keydown", 3762 "keyup", 3763 "keypress", 3764 "mousedown", 3765 "mouseenter", 3766 "mouseleave", 3767 "mousemove", 3768 "mouseover", 3769 "mouseup", 3770 "search", 3771 "touchend", 3772 "touchstart", 3773 ] 3774 this.$selection.on(d.join(" "), function (a) { 3775 a.stopPropagation() 3776 }) 3777 }), 3778 a 3779 ) 3780 }), 3781 (function (c) { 3782 "function" == typeof b.define && b.define.amd 3783 ? b.define("jquery-mousewheel", ["jquery"], c) 3784 : "object" == typeof exports 3785 ? (module.exports = c) 3786 : c(a) 3787 })(function (a) { 3788 function b(b) { 3789 var g = b || window.event, 3790 h = i.call(arguments, 1), 3791 j = 0, 3792 l = 0, 3793 m = 0, 3794 n = 0, 3795 o = 0, 3796 p = 0 3797 if ( 3798 ((b = a.event.fix(g)), 3799 (b.type = "mousewheel"), 3800 "detail" in g && (m = -1 * g.detail), 3801 "wheelDelta" in g && (m = g.wheelDelta), 3802 "wheelDeltaY" in g && (m = g.wheelDeltaY), 3803 "wheelDeltaX" in g && (l = -1 * g.wheelDeltaX), 3804 "axis" in g && g.axis === g.HORIZONTAL_AXIS && ((l = -1 * m), (m = 0)), 3805 (j = 0 === m ? l : m), 3806 "deltaY" in g && ((m = -1 * g.deltaY), (j = m)), 3807 "deltaX" in g && ((l = g.deltaX), 0 === m && (j = -1 * l)), 3808 0 !== m || 0 !== l) 3809 ) { 3810 if (1 === g.deltaMode) { 3811 var q = a.data(this, "mousewheel-line-height") 3812 ;(j *= q), (m *= q), (l *= q) 3813 } else if (2 === g.deltaMode) { 3814 var r = a.data(this, "mousewheel-page-height") 3815 ;(j *= r), (m *= r), (l *= r) 3816 } 3817 if ( 3818 ((n = Math.max(Math.abs(m), Math.abs(l))), 3819 (!f || f > n) && ((f = n), d(g, n) && (f /= 40)), 3820 d(g, n) && ((j /= 40), (l /= 40), (m /= 40)), 3821 (j = Math[j >= 1 ? "floor" : "ceil"](j / f)), 3822 (l = Math[l >= 1 ? "floor" : "ceil"](l / f)), 3823 (m = Math[m >= 1 ? "floor" : "ceil"](m / f)), 3824 k.settings.normalizeOffset && this.getBoundingClientRect) 3825 ) { 3826 var s = this.getBoundingClientRect() 3827 ;
3827(o = b.clientX - s.left), (p = b.clientY - s.top) 3828 } 3829 return ( 3830 (b.deltaX = l), 3831 (b.deltaY = m), 3832 (b.deltaFactor = f), 3833 (b.offsetX = o), 3834 (b.offsetY = p), 3835 (b.deltaMode = 0), 3836 h.unshift(b, j, l, m), 3837 e && clearTimeout(e), 3838 (e = setTimeout(c, 200)), 3839 (a.event.dispatch || a.event.handle).apply(this, h) 3840 ) 3841 } 3842 } 3843 function c() { 3844 f = null 3845 } 3846 function d(a, b) { 3847 return k.settings.adjustOldDeltas && "mousewheel" === a.type && b % 120 === 0 3848 } 3849 var e, 3850 f, 3851 g = ["wheel", "mousewheel", "DOMMouseScroll", "MozMousePixelScroll"], 3852 h = 3853 "onwheel" in document || document.documentMode >= 9 3854 ? ["wheel"] 3855 : ["mousewheel", "DomMouseScroll", "MozMousePixelScroll"], 3856 i = Array.prototype.slice 3857 if (a.event.fixHooks) 3858 for (var j = g.length; j; ) a.event.fixHooks[g[--j]] = a.event.mouseHooks 3859 var k = (a.event.special.mousewheel = { 3860 version: "3.1.12", 3861 setup: function () { 3862 if (this.addEventListener) 3863 for (var c = h.length; c; ) this.addEventListener(h[--c], b, !1) 3864 else this.onmousewheel = b 3865 a.data(this, "mousewheel-line-height", k.getLineHeight(this)), 3866 a.data(this, "mousewheel-page-height", k.getPageHeight(this)) 3867 }, 3868 teardown: function () { 3869 if (this.removeEventListener) 3870 for (var c = h.length; c; ) this.removeEventListener(h[--c], b, !1) 3871 else this.onmousewheel = null 3872 a.removeData(this, "mousewheel-line-height"), 3873 a.removeData(this, "mousewheel-page-height") 3874 }, 3875 getLineHeight: function (b) { 3876 var c = a(b), 3877 d = c["offsetParent" in a.fn ? "offsetParent" : "parent"]() 3878 return ( 3879 d.length || (d = a("body")), 3880 parseInt(d.css("fontSize"), 10) || parseInt(c.css("fontSize"), 10) || 16 3881 ) 3882 }, 3883 getPageHeight: function (b) { 3884 return a(b).height() 3885 }, 3886 settings: { adjustOldDeltas: !0, normalizeOffset: !0 }, 3887 }) 3888 a.fn.extend({ 3889 mousewheel: function (a) { 3890 return a ? this.bind("mousewheel", a) : this.trigger("mousewheel") 3891 }, 3892 unmousewheel: function (a) { 3893 return this.unbind("mousewheel", a) 3894 }, 3895 }) 3896 }), 3897 b.define( 3898 "jquery.select2", 3899 ["jquery", "jquery-mousewheel", "./select2/core", "./select2/defaults"], 3900 function (a, b, c, d) { 3901 if (null == a.fn.mselect2) { 3902 var e = ["open", "close", "destroy"] 3903 a.fn.mselect2 = function (b) { 3904 if (((b = b || {}), "object" == typeof b)) 3905 return ( 3906 this.each(function () { 3907 var d = a.extend(!0, {}, b) 3908 new c(a(this), d) 3909 }), 3910 this 3911 ) 3912 if ("string" == typeof b) { 3913 var d, 3914 f = Array.prototype.slice.call(arguments, 1) 3915 return ( 3916 this.each(function () { 3917 var c = a(this).data("select2") 3918 null == c && 3919 window.console && 3920 console.error && 3921 console.error( 3922 "The select2('" + 3923 b + 3924 "') method was called on an element that is not using Select2.", 3925 ), 3926 (d = c[b].apply(c, f)) 3927 }), 3928 a.inArray(b, e) > -1 ? this : d 3929 ) 3930 } 3931 throw new Error("Invalid arguments for Select2: " + b) 3932 } 3933 } 3934 return null == a.fn.mselect2.defaults && (a.fn.mselect2.defaults = d), c 3935 }, 3936 ), 3937 { define: b.define, require: b.require } 3938 ) 3939 })(), 3940 c = b.require("jquery.select2") 3941 return (a.fn.mselect2.amd = b), c 3942})
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.