PageSourceSearch

https://www.vazabogados.com/assets/js/plugins/jquery-ui.min.js

js vazabogados.com collected 2026-10-06 09:03:52 UTC 101,896 bytes, 6 lines download raw bytes

vendor: 11,204 bytes, lines 1-6
1/*! jQuery UI - v1.12.1 - 2021-09-20
2 * http://jqueryui.com
3 * Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/draggable.js, widgets/droppable.js, widgets/resizable.js, widgets/selectable.js, widgets/sortable.js, widgets/mouse.js
4 * Copyright jQuery Foundation and other contributors; Licensed MIT */
5
6!function(t){"function" == typeof define && define.amd?define(["jquery"], t):t(jQuery)}(function(y){y.ui = y.ui || {}; y.ui.version = "1.12.1"; var o, i = 0, h = Array.prototype.slice; y.cleanData = (o = y.cleanData, function(t){for (var e, i, s = 0; null != (i = t[s]); s++)try{(e = y._data(i, "events")) && e.remove && y(i).triggerHandler("remove")} catch (t){}o(t)}), y.widget = function(t, i, e){var s, o, n, r = {}, h = t.split(".")[0], a = h + "-" + (t = t.split(".")[1]); return e || (e = i, i = y.Widget), y.isArray(e) && (e = y.extend.apply(null, [{}].concat(e))), y.expr[":"][a.toLowerCase()] = function(t){return!!y.data(t, a)}, y[h] = y[h] || {}, s = y[h][t], o = y[h][t] = function(t, e){if (!this._createWidget)return new o(t, e); arguments.length && this._createWidget(t, e)}, y.extend(o, s, {version:e.version, _proto:y.extend({}, e), _childConstructors:[]}), (n = new i).options = y.widget.extend({}, n.options), y.each(e, function(e, s){function o(){return i.prototype[e].apply(this, arguments)}function n(t){return i.prototype[e].apply(this, t)}y.isFunction(s)?r[e] = function(){var t, e = this._super, i = this._superApply; return this._super = o, this._superApply = n, t = s.apply(this, arguments), this._super = e, this._superApply = i, t}:r[e] = s}), o.prototype = y.widget.extend(n, {widgetEventPrefix:s && n.widgetEventPrefix || t}, r, {constructor:o, namespace:h, widgetName:t, widgetFullName:a}), s?(y.each(s._childConstructors, function(t, e){var i = e.prototype; y.widget(i.namespace + "." + i.widgetName, o, e._proto)}), delete s._childConstructors):i._childConstructors.push(o), y.widget.bridge(t, o), o}, y.widget.extend = function(t){for (var e, i, s = h.call(arguments, 1), o = 0, n = s.length; o < n; o++)for (e in s[o])i = s[o][e], s[o].hasOwnProperty(e) && void 0 !== i && (y.isPlainObject(i)?t[e] = y.isPlainObject(t[e])?y.widget.extend({}, t[e], i):y.widget.extend({}, i):t[e] = i); return t}, y.widget.bridge = function(n, e){var r = e.prototype.widgetFullName || n; y.fn[n] = function(i){var t = "string" == typeof i, s = h.call(arguments, 1), o = this; return t?this.length || "instance" !== i?this.each(function(){var t, e = y.data(this, r); return"instance" === i?(o = e, !1):e?y.isFunction(e[i]) && "_" !== i.charAt(0)?(t = e[i].apply(e, s)) !== e && void 0 !== t?(o = t && t.jquery?o.pushStack(t.get()):t, !1):void 0:y.error("no such method '" + i + "' for " + n + " widget instance"):y.error("cannot call methods on " + n + " prior to initialization; attempted to call method '" + i + "'")}):o = void 0:(s.length && (i = y.widget.extend.apply(null, [i].concat(s))), this.each(function(){var t = y.data(this, r); t?(t.option(i || {}), t._init && t._init()):y.data(this, r, new e(i, this))})), o}}, y.Widget = function(){}, y.Widget._childConstructors = [], y.Widget.prototype = {widgetName:"widget", widgetEventPrefix:"", defaultElement:"<div>", options:{classes:{}, disabled:!1, create:null}, _createWidget:function(t, e){e = y(e || this.defaultElement || this)[0], this.element = y(e), this.uuid = i++, this.eventNamespace = "." + this.widgetName + this.uuid, this.bindings = y(), this.hoverable = y(), this.focusable = y(), this.classesElementLookup = {}, e !== this && (y.data(e, this.widgetFullName, this), this._on(!0, this.element, {remove:function(t){t.target === e && this.destroy()}}), this.document = y(e.style?e.ownerDocument:e.document || e), this.window = y(this.document[0].defaultView || this.document[0].parentWindow)), this.options = y.widget.extend({}, this.options, this._getCreateOptions(), t), this._create(), this.options.disabled && this._setOptionDisabled(this.options.disabled), this._trigger("create", null, this._getCreateEventData()), this._init()}, _getCreateOptions:function(){return{}}, _getCreateEventData:y.noop, _create:y.noop, _init:y.noop, destroy:function(){var i = this; this._destroy(), y.each(this.classesElementLookup, function(t, e){i._removeClass(e, t)}), this.element.off(this.eventNamespace).removeData(this.widgetFullName), this.widget().off(this.eventNamespace).removeAttr("aria-disabled"), this.bindings.off(this.eventNamespace)}, _destroy:y.noop, widget:function(){return this.element}, option:function(t, e){var i, s, o, n = t; if (0 === arguments.length)return y.widget.extend({}, this.options); if ("string" == typeof t)if (n = {}, t = (i = t.split(".")).shift(), i.length){for (s = n[t] = y.widget.extend({}, this.options[t]), o = 0; o < i.length - 1; o++)s[i[o]] = s[i[o]] || {}, s = s[i[o]]; if (t = i.pop(), 1 === arguments.length)return void 0 === s[t]?null:s[t]; s[t] = e} else{if (1 === arguments.length)return void 0 === this.options[t]?null:this.options[t]; n[t] = e}return this._setOptions(n), this}, _setOptions:function(t){for (var e in t)this._setOption(e, t[e]); return this}, _setOption:function(t, e){return"classes" === t && this._setOptionClasses(e), this.options[t] = e, "disabled" === t && this._setOptionDisabled(e), this}, _setOptionClasses:function(t){var e, i, s; for (e in t)s = this.classesElementLookup[e], t[e] !== this.options.classes[e] && s && s.length && (i = y(s.get()), this._removeClass(s, e), i.addClass(this._classes({element:i, keys:e, classes:t, add:!0})))}, _setOptionDisabled:function(t){this._toggleClass(this.widget(), this.widgetFullName + "-disabled", null, !!t), t && (this._removeClass(this.hoverable, null, "ui-state-hover"), this._removeClass(this.focusable, null, "ui-state-focus"))}, enable:function(){return this._setOptions({disabled:!1})}, disable:function(){return this._setOptions({disabled:!0})}, _classes:function(o){var n = [], r = this; function t(t, e){for (var i, s = 0; s < t.length; s++)i = r.classesElementLookup[t[s]] || y(), i = o.add?y(y.unique(i.get().concat(o.element.get()))):y(i.not(o.element).get()), r.classesElementLookup[t[s]] = i, n.push(t[s]), e && o.classes[t[s]] && n.push(o.classes[t[s]])}return o = y.extend({element:this.element, classes:this.options.classes || {}}, o), this._on(o.element, {remove:"_untrackClassesElement"}), o.keys && t(o.keys.match(/\S+/g) || [], !0), o.extra && t(o.extra.match(/\S+/g) || []), n.join(" ")}, _untrackClassesElement:function(i){var s = this; y.each(s.classesElementLookup, function(t, e){ - 1 !== y.inArray(i.target, e) && (s.classesElementLookup[t] = y(e.not(i.target).get()))})}, _removeClass:function(t, e, i){return this._toggleClass(t, e, i, !1)}, _addClass:function(t, e, i){return this._toggleClass(t, e, i, !0)}, _toggleClass:function(t, e, i, s){var o = "string" == typeof t || null === t, i = {extra:o?e:i, keys:o?t:e, element:o?this.element:t, add:s = "boolean" == typeof s?s:i}; return i.element.toggleClass(this._classes(i), s), this}, _on:function(o, n, t){var r, h = this; "boolean" != typeof o && (t = n, n = o, o = !1), t?(n = r = y(n), this.bindings = this.bindings.add(n)):(t = n, n = this.element, r = this.widget()), y.each(t, function(t, e){function i(){if (o || !0 !== h.options.disabled && !y(this).hasClass("ui-state-disabled"))return("string" == typeof e?h[e]:e).apply(h, arguments)}"string" != typeof e && (i.guid = e.guid = e.guid || i.guid || y.guid++); var s = t.match(/^([\w:-]*)\s*(.*)$/), t = s[1] + h.eventNamespace, s = s[2]; s?r.on(t, s, i):n.on(t, i)})}, _off:function(t, e){e = (e || "").split(" ").join(this.eventNamespace + " ") + this.eventNamespace, t.off(e).off(e), this.bindings = y(this.bindings.not(t).get()), this.focusable = y(this.focusable.not(t).get()), this.hoverable = y(this.hoverable.not(t).get())}, _delay:function(t, e){var i = this; return setTimeout(function(){return("string" == typeof t?i[t]:t).apply(i, arguments)}, e || 0)}, _hoverable:function(t){this.hoverable = this.hoverable.add(t), this._on(t, {mouseenter:function(t){this._addClass(y(t.currentTarget), null, "ui-state-hover")}, mouseleave:function(t){this._removeClass(y(t.currentTarget), null, "ui-state-hover")}})}, _focusable:function(t){this.focusable = this.focusable.add(t), this._on(t, {focusin:function(t){this._addClass(y(t.currentTarget), null, "ui-state-focus")}, focusout:function(t){this._removeClass(y(t.currentTarget), null, "ui-state-focus")}})}, _trigger:function(t, e, i){var s, o, n = this.options[t]; if (i = i || {}, (e = y.Event(e)).type = (t === this.widgetEventPrefix?t:this.widgetEventPrefix + t).toLowerCase(), e.target = this.element[0], o = e.originalEvent)for (s in o)s in e || (e[s] = o[s]); return this.element.trigger(e, i), !(y.isFunction(n) && !1 === n.apply(this.element[0], [e].concat(i)) || e.isDefaultPrevented())}}, y.each({show:"fadeIn", hide:"fadeOut"}, function(n, r){y.Widget.prototype["_" + n] = function(e, t, i){var s = (t = "string" == typeof t?{effect:t}:t)?!0 !== t && "number" != typeof t && t.effect || r:n, o = !y.isEmptyObject(t = "number" == typeof (t = t || {})?{duration:t}:t); t.complete = i, t.delay && e.delay(t.delay), o && y.effects && y.effects.effect[s]?e[n](t):s !== n && e[s]?e[s](t.duration, t.easing, i):e.queue(function(t){y(this)[n](), i && i.call(e[0]), t()})}}); var s, C, z, n, r, a, l, c, x; y.widget; function H(t, e, i){return[parseFloat(t[0]) * (c.test(t[0])?e / 100:1), parseFloat(t[1]) * (c.test(t[1])?i / 100:1)]}function I(t, e){return parseInt(y.css(t, e), 10) || 0}C = Math.max, z = Math.abs, n = /left|center|right/, r = /top|center|bottom/, a = /[\+\-]\d+(\.[\d]+)?%?/, l = /^\w+/, c = /%$/, x = y.fn.position, y.position = {scrollbarWidth:function(){if (void 0 !== s)return s; var t, e = y("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"), i = e.children()[0]; return y("body").append(e), t = i.offsetWidth, e.css("overflow", "scroll"), t === (i = i.offsetWidth) && (i = e[0].clientWidth), e.remove(), s = t - i}, getScrollInfo:function(t){var e = t.isWindow || t.isDocument?"":t.element.css("overflow-x"), i = t.isWindow || t.isDocument?"":t.element.css("overflow-y"), e = "scroll" === e || "auto" === e && t.width < t.element[0].scrollWidth; return{width:"scroll" === i || "auto" === i && t.height < t.element[0].scrollHeight?y.position.scrollbarWidth():0, height:e?y.position.scrollbarWidth():0}}, getWithinInfo:function(t){var e = y(t || window), i = y.isWindow(e[0]), s = !!e[0] && 9 === e[0].nodeType; return{element:e, isWindow:i, isDocument:s, offset:!i && !s?y(t).offset():{left:0, top:0}, scrollLeft:e.scrollLeft(), scrollTop:e.scrollTop(), width:e.outerWidth(), height:e.outerHeight()}}}, y.fn.position = function(p){if (!p || !p.of)return x.apply(this, arguments); p = y.extend({}, p); var f, d, u, g, m, t, _ = y(p.of), v = y.position.getWithinInfo(p.within), b = y.position.getScrollInfo(v), w = (p.collision || "flip").split(" "), P = {}, e = 9 === (t = (e = _)[0]).nodeType?{width:e.width(), height:e.height(), offset:{top:0, left
vendor: 3,153 bytes, line 6
6:0}}:y.isWindow(t)?{width:e.width(), height:e.height(), offset:{top:e.scrollTop(), left:e.scrollLeft()}}:t.preventDefault?{width:0, height:0, offset:{top:t.pageY, left:t.pageX}}:{width:e.outerWidth(), height:e.outerHeight(), offset:e.offset()}; return _[0].preventDefault && (p.at = "left top"), d = e.width, u = e.height, m = y.extend({}, g = e.offset), y.each(["my", "at"], function(){var t, e, i = (p[this] || "").split(" "); (i = 1 === i.length?n.test(i[0])?i.concat(["center"]):r.test(i[0])?["center"].concat(i):["center", "center"]:i)[0] = n.test(i[0])?i[0]:"center", i[1] = r.test(i[1])?i[1]:"center", t = a.exec(i[0]), e = a.exec(i[1]), P[this] = [t?t[0]:0, e?e[0]:0], p[this] = [l.exec(i[0])[0], l.exec(i[1])[0]]}), 1 === w.length && (w[1] = w[0]), "right" === p.at[0]?m.left += d:"center" === p.at[0] && (m.left += d / 2), "bottom" === p.at[1]?m.top += u:"center" === p.at[1] && (m.top += u / 2), f = H(P.at, d, u), m.left += f[0], m.top += f[1], this.each(function(){var i, t, r = y(this), h = r.outerWidth(), a = r.outerHeight(), e = I(this, "marginLeft"), s = I(this, "marginTop"), o = h + e + I(this, "marginRight") + b.width, n = a + s + I(this, "marginBottom") + b.height, l = y.extend({}, m), c = H(P.my, r.outerWidth(), r.outerHeight()); "right" === p.my[0]?l.left -= h:"center" === p.my[0] && (l.left -= h / 2), "bottom" === p.my[1]?l.top -= a:"center" === p.my[1] && (l.top -= a / 2), l.left += c[0], l.top += c[1], i = {marginLeft:e, marginTop:s}, y.each(["left", "top"], function(t, e){y.ui.position[w[t]] && y.ui.position[w[t]][e](l, {targetWidth:d, targetHeight:u, elemWidth:h, elemHeight:a, collisionPosition:i, collisionWidth:o, collisionHeight:n, offset:[f[0] + c[0], f[1] + c[1]], my:p.my, at:p.at, within:v, elem:r})}), p.using && (t = function(t){var e = g.left - l.left, i = e + d - h, s = g.top - l.top, o = s + u - a, n = {target:{element:_, left:g.left, top:g.top, width:d, height:u}, element:{element:r, left:l.left, top:l.top, width:h, height:a}, horizontal:i < 0?"left":0 < e?"right":"center", vertical:o < 0?"top":0 < s?"bottom":"middle"}; d < h && z(e + i) < d && (n.horizontal = "center"), u < a && z(s + o) < u && (n.vertical = "middle"), C(z(e), z(i)) > C(z(s), z(o))?n.important = "horizontal":n.important = "vertical", p.using.call(this, t, n)}), r.offset(y.extend(l, {using:t}))})}, y.ui.position = {fit:{left:function(t, e){var i = e.within, s = i.isWindow?i.scrollLeft:i.offset.left, o = i.width, n = t.left - e.collisionPosition.marginLeft, r = s - n, h = n + e.collisionWidth - o - s; e.collisionWidth > o?0 < r && h <= 0?(i = t.left + r + e.collisionWidth - o - s, t.left += r - i):t.left = !(0 < h && r <= 0) && h < r?s + o - e.collisionWidth:s:0 < r?t.left += r:0 < h?t.left -= h:t.left = C(t.left - n, t.left)}, top:function(t, e){var i = e.within, s = i.isWindow?i.scrollTop:i.offset.top, o = e.within.height, n = t.top - e.collisionPosition.marginTop, r = s - n, h = n + e.collisionHeight - o - s; e.collisionHeight > o?0 < r && h <= 0?(i = t.top + r + e.collisionHeight - o - s, t.top += r - i):t.top = !(0 < h && r <= 0) && h < r?s + o - e.collisionHeight:s:0 < r?t.top += r:0 < h?t.top -= h:t.to
vendor: 4,879 bytes, line 6
6p = C(t.top - n, t.top)}}, flip:{left:function(t, e){var i = e.within, s = i.offset.left + i.scrollLeft, o = i.width, n = i.isWindow?i.scrollLeft:i.offset.left, r = t.left - e.collisionPosition.marginLeft, h = r - n, a = r + e.collisionWidth - o - n, l = "left" === e.my[0]? - e.elemWidth:"right" === e.my[0]?e.elemWidth:0, i = "left" === e.at[0]?e.targetWidth:"right" === e.at[0]? - e.targetWidth:0, r = - 2 * e.offset[0]; h < 0?((s = t.left + l + i + r + e.collisionWidth - o - s) < 0 || s < z(h)) && (t.left += l + i + r):0 < a && (0 < (n = t.left - e.collisionPosition.marginLeft + l + i + r - n) || z(n) < a) && (t.left += l + i + r)}, top:function(t, e){var i = e.within, s = i.offset.top + i.scrollTop, o = i.height, n = i.isWindow?i.scrollTop:i.offset.top, r = t.top - e.collisionPosition.marginTop, h = r - n, a = r + e.collisionHeight - o - n, l = "top" === e.my[1]? - e.elemHeight:"bottom" === e.my[1]?e.elemHeight:0, i = "top" === e.at[1]?e.targetHeight:"bottom" === e.at[1]? - e.targetHeight:0, r = - 2 * e.offset[1]; h < 0?((s = t.top + l + i + r + e.collisionHeight - o - s) < 0 || s < z(h)) && (t.top += l + i + r):0 < a && (0 < (n = t.top - e.collisionPosition.marginTop + l + i + r - n) || z(n) < a) && (t.top += l + i + r)}}, flipfit:{left:function(){y.ui.position.flip.left.apply(this, arguments), y.ui.position.fit.left.apply(this, arguments)}, top:function(){y.ui.position.flip.top.apply(this, arguments), y.ui.position.fit.top.apply(this, arguments)}}}; var t; y.ui.position, y.extend(y.expr[":"], {data:y.expr.createPseudo?y.expr.createPseudo(function(e){return function(t){return!!y.data(t, e)}}):function(t, e, i){return!!y.data(t, i[3])}}), y.fn.extend({disableSelection:(t = "onselectstart"in document.createElement("div")?"selectstart":"mousedown", function(){return this.on(t + ".ui-disableSelection", function(t){t.preventDefault()})}), enableSelection:function(){return this.off(".ui-disableSelection")}}); y.ui.focusable = function(t, e){var i, s, o, n, r = t.nodeName.toLowerCase(); return"area" === r?(s = (i = t.parentNode).name, !(!t.href || !s || "map" !== i.nodeName.toLowerCase()) && (0 < (s = y("img[usemap='#" + s + "']")).length && s.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(r)?(o = !t.disabled) && (n = y(t).closest("fieldset")[0]) && (o = !n.disabled):o = "a" === r && t.href || e, o && y(t).is(":visible") && function(t){var e = t.css("visibility"); for (; "inherit" === e; )t = t.parent(), e = t.css("visibility"); return"hidden" !== e}(y(t)))}, y.extend(y.expr[":"], {focusable:function(t){return y.ui.focusable(t, null != y.attr(t, "tabindex"))}}); y.ui.focusable, y.fn.form = function(){return"string" == typeof this[0].form?this.closest("form"):y(this[0].form)}, y.ui.formResetMixin = {_formResetHandler:function(){var e = y(this); setTimeout(function(){var t = e.data("ui-form-reset-instances"); y.each(t, function(){this.refresh()})})}, _bindFormResetHandler:function(){var t; this.form = this.element.form(), this.form.length && ((t = this.form.data("ui-form-reset-instances") || []).length || this.form.on("reset.ui-form-reset", this._formResetHandler), t.push(this), this.form.data("ui-form-reset-instances", t))}, _unbindFormResetHandler:function(){var t; this.form.length && ((t = this.form.data("ui-form-reset-instances")).splice(y.inArray(this, t), 1), t.length?this.form.data("ui-form-reset-instances", t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}}; "1.7" === y.fn.jquery.substring(0, 3) && (y.each(["Width", "Height"], function(t, i){var o = "Width" === i?["Left", "Right"]:["Top", "Bottom"], s = i.toLowerCase(), n = {innerWidth:y.fn.innerWidth, innerHeight:y.fn.innerHeight, outerWidth:y.fn.outerWidth, outerHeight:y.fn.outerHeight}; function r(t, e, i, s){return y.each(o, function(){e -= parseFloat(y.css(t, "padding" + this)) || 0, i && (e -= parseFloat(y.css(t, "border" + this + "Width")) || 0), s && (e -= parseFloat(y.css(t, "margin" + this)) || 0)}), e}y.fn["inner" + i] = function(t){return void 0 === t?n["inner" + i].call(this):this.each(function(){y(this).css(s, r(this, t) + "px")})}, y.fn["outer" + i] = function(t, e){return"number" != typeof t?n["outer" + i].call(this, t):this.each(function(){y(this).css(s, r(this, t, !0, e) + "px")})}}), y.fn.addBack = function(t){return this.add(null == t?this.prevObject:this.prevObject.filter(t))}); y.ui.keyCode = {BACKSPACE:8, COMMA:188, DELETE:46, DOWN:40, END:35, ENTER:13, ESCAPE:27, HOME:36, LEFT:37, PAGE_DOWN:34, PAGE_UP:33, PERIOD:190, RIGHT:39, SPACE:32, TAB:9, UP:38}, y.ui.escapeSelector = (e = /([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g, function(t){return t.replace(e, "\\$1")}), y.fn.labels = function(){var t, e, i; return this[0].labels && this[0].labels.length?this.pushStack(this[0].labels):(e = this.eq(0).parents("label"), (t = this.attr("id")) && (i = (i = this.eq(0).parents().last(
vendor: 4,417 bytes, line 6
6)).add((i.length?i:this).siblings()), t = "label[for='" + y.ui.escapeSelector(t) + "']", e = e.add(i.find(t).addBack(t))), this.pushStack(e))}, y.fn.scrollParent = function(t){var e = this.css("position"), i = "absolute" === e, s = t?/(auto|scroll|hidden)/:/(auto|scroll)/, t = this.parents().filter(function(){var t = y(this); return(!i || "static" !== t.css("position")) && s.test(t.css("overflow") + t.css("overflow-y") + t.css("overflow-x"))}).eq(0); return"fixed" !== e && t.length?t:y(this[0].ownerDocument || document)}, y.extend(y.expr[":"], {tabbable:function(t){var e = y.attr(t, "tabindex"), i = null != e; return(!i || 0 <= e) && y.ui.focusable(t, i)}}), y.fn.extend({uniqueId:(p = 0, function(){return this.each(function(){this.id || (this.id = "ui-id-" + ++p)})}), removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id) && y(this).removeAttr("id")})}}), y.ui.ie = !!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()); var e, p, f = !1; y(document).on("mouseup", function(){f = !1}); y.widget("ui.mouse", {version:"1.12.1", options:{cancel:"input, textarea, button, select, option", distance:1, delay:0}, _mouseInit:function(){var e = this; this.element.on("mousedown." + this.widgetName, function(t){return e._mouseDown(t)}).on("click." + this.widgetName, function(t){if (!0 === y.data(t.target, e.widgetName + ".preventClickEvent"))return y.removeData(t.target, e.widgetName + ".preventClickEvent"), t.stopImmediatePropagation(), !1}), this.started = !1}, _mouseDestroy:function(){this.element.off("." + this.widgetName), this._mouseMoveDelegate && this.document.off("mousemove." + this.widgetName, this._mouseMoveDelegate).off("mouseup." + this.widgetName, this._mouseUpDelegate)}, _mouseDown:function(t){if (!f){this._mouseMoved = !1, this._mouseStarted && this._mouseUp(t), this._mouseDownEvent = t; var e = this, i = 1 === t.which, s = !("string" != typeof this.options.cancel || !t.target.nodeName) && y(t.target).closest(this.options.cancel).length; return i && !s && this._mouseCapture(t)?(this.mouseDelayMet = !this.options.delay, this.mouseDelayMet || (this._mouseDelayTimer = setTimeout(function(){e.mouseDelayMet = !0}, this.options.delay)), this._mouseDistanceMet(t) && this._mouseDelayMet(t) && (this._mouseStarted = !1 !== this._mouseStart(t), !this._mouseStarted)?(t.preventDefault(), !0):(!0 === y.data(t.target, this.widgetName + ".preventClickEvent") && y.removeData(t.target, this.widgetName + ".preventClickEvent"), this._mouseMoveDelegate = function(t){return e._mouseMove(t)}, this._mouseUpDelegate = function(t){return e._mouseUp(t)}, this.document.on("mousemove." + this.widgetName, this._mouseMoveDelegate).on("mouseup." + this.widgetName, this._mouseUpDelegate), t.preventDefault(), f = !0)):!0}}, _mouseMove:function(t){if (this._mouseMoved){if (y.ui.ie && (!document.documentMode || document.documentMode < 9) && !t.button)return this._mouseUp(t); if (!t.which)if (t.originalEvent.altKey || t.originalEvent.ctrlKey || t.originalEvent.metaKey || t.originalEvent.shiftKey)this.ignoreMissingWhich = !0; else if (!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which || t.button) && (this._mouseMoved = !0), this._mouseStarted?(this._mouseDrag(t), t.preventDefault()):(this._mouseDistanceMet(t) && this._mouseDelayMet(t) && (this._mouseStarted = !1 !== this._mouseStart(this._mouseDownEvent, t), this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)), !this._mouseStarted)}, _mouseUp:function(t){this.document.off("mousemove." + this.widgetName, this._mouseMoveDelegate).off("mouseup." + this.widgetName, this._mouseUpDelegate), this._mouseStarted && (this._mouseStarted = !1, t.target === this._mouseDownEvent.target && y.data(t.target, this.widgetName + ".preventClickEvent", !0), this._mouseStop(t)), this._mouseDelayTimer && (clearTimeout(this._mouseDelayTimer), delete this._mouseDelayTimer), this.ignoreMissingWhich = !1, f = !1, t.preventDefault()}, _mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX - t.pageX), Math.abs(this._mouseDownEvent.pageY - t.pageY)) >= this.options.distance}, _mouseDelayMet:function(){return this.mouseDelayMet}, _mouseStart:function(){}, _mouseDrag:function(){}, _mouseStop:function(){}, _mouseCapture:function(){return!0}}), y.ui.plugin = {add:function(t, e, i){var s, o = y.ui[t].prototype; for (s in i)o.plugins[s] = o.plugins[s] || [], o.plugins[s].push([e, i[s]])}
vendor: 12,195 bytes, line 6
6, call:function(t, e, i, s){var o, n = t.plugins[e]; if (n && (s || t.element[0].parentNode && 11 !== t.element[0].parentNode.nodeType))for (o = 0; o < n.length; o++)t.options[n[o][0]] && n[o][1].apply(t.element, i)}}, y.ui.safeActiveElement = function(e){var i; try{i = e.activeElement} catch (t){i = e.body}return i = !(i = i || e.body).nodeName?e.body:i}, y.ui.safeBlur = function(t){t && "body" !== t.nodeName.toLowerCase() && y(t).trigger("blur")}; y.widget("ui.draggable", y.ui.mouse, {version:"1.12.1", widgetEventPrefix:"drag", options:{addClasses:!0, appendTo:"parent", axis:!1, connectToSortable:!1, containment:!1, cursor:"auto", cursorAt:!1, grid:!1, handle:!1, helper:"original", iframeFix:!1, opacity:!1, refreshPositions:!1, revert:!1, revertDuration:500, scope:"default", scroll:!0, scrollSensitivity:20, scrollSpeed:20, snap:!1, snapMode:"both", snapTolerance:20, stack:!1, zIndex:!1, drag:null, start:null, stop:null}, _create:function(){"original" === this.options.helper && this._setPositionRelative(), this.options.addClasses && this._addClass("ui-draggable"), this._setHandleClassName(), this._mouseInit()}, _setOption:function(t, e){this._super(t, e), "handle" === t && (this._removeHandleClassName(), this._setHandleClassName())}, _destroy:function(){(this.helper || this.element).is(".ui-draggable-dragging")?this.destroyOnClear = !0:(this._removeHandleClassName(), this._mouseDestroy())}, _mouseCapture:function(t){var e = this.options; return!(this.helper || e.disabled || 0 < y(t.target).closest(".ui-resizable-handle").length) && (this.handle = this._getHandle(t), !!this.handle && (this._blurActiveElement(t), this._blockFrames(!0 === e.iframeFix?"iframe":e.iframeFix), !0))}, _blockFrames:function(t){this.iframeBlocks = this.document.find(t).map(function(){var t = y(this); return y("<div>").css("position", "absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})}, _unblockFrames:function(){this.iframeBlocks && (this.iframeBlocks.remove(), delete this.iframeBlocks)}, _blurActiveElement:function(t){var e = y.ui.safeActiveElement(this.document[0]); y(t.target).closest(e).length || y.ui.safeBlur(e)}, _mouseStart:function(t){var e = this.options; return this.helper = this._createHelper(t), this._addClass(this.helper, "ui-draggable-dragging"), this._cacheHelperProportions(), y.ui.ddmanager && (y.ui.ddmanager.current = this), this._cacheMargins(), this.cssPosition = this.helper.css("position"), this.scrollParent = this.helper.scrollParent(!0), this.offsetParent = this.helper.offsetParent(), this.hasFixedAncestor = 0 < this.helper.parents().filter(function(){return"fixed" === y(this).css("position")}).length, this.positionAbs = this.element.offset(), this._refreshOffsets(t), this.originalPosition = this.position = this._generatePosition(t, !1), this.originalPageX = t.pageX, this.originalPageY = t.pageY, e.cursorAt && this._adjustOffsetFromHelper(e.cursorAt), this._setContainment(), !1 === this._trigger("start", t)?(this._clear(), !1):(this._cacheHelperProportions(), y.ui.ddmanager && !e.dropBehaviour && y.ui.ddmanager.prepareOffsets(this, t), this._mouseDrag(t, !0), y.ui.ddmanager && y.ui.ddmanager.dragStart(this, t), !0)}, _refreshOffsets:function(t){this.offset = {top:this.positionAbs.top - this.margins.top, left:this.positionAbs.left - this.margins.left, scroll:!1, parent:this._getParentOffset(), relative:this._getRelativeOffset()}, this.offset.click = {left:t.pageX - this.offset.left, top:t.pageY - this.offset.top}}, _mouseDrag:function(t, e){if (this.hasFixedAncestor && (this.offset.parent = this._getParentOffset()), this.position = this._generatePosition(t, !0), this.positionAbs = this._convertPositionTo("absolute"), !e){e = this._uiHash(); if (!1 === this._trigger("drag", t, e))return this._mouseUp(new y.Event("mouseup", t)), !1; this.position = e.position}return this.helper[0].style.left = this.position.left + "px", this.helper[0].style.top = this.position.top + "px", y.ui.ddmanager && y.ui.ddmanager.drag(this, t), !1}, _mouseStop:function(t){var e = this, i = !1; return y.ui.ddmanager && !this.options.dropBehaviour && (i = y.ui.ddmanager.drop(this, t)), this.dropped && (i = this.dropped, this.dropped = !1), "invalid" === this.options.revert && !i || "valid" === this.options.revert && i || !0 === this.options.revert || y.isFunction(this.options.revert) && this.options.revert.call(this.element, i)?y(this.helper).animate(this.originalPosition, parseInt(this.options.revertDuration, 10), function(){!1 !== e._trigger("stop", t) && e._clear()}):!1 !== this._trigger("stop", t) && this._clear(), !1}, _mouseUp:function(t){return this._unblockFrames(), y.ui.ddmanager && y.ui.ddmanager.dragStop(this, t), this.handleElement.is(t.target) && this.element.trigger("focus"), y.ui.mouse.prototype._mouseUp.call(this, t)}, cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new y.Event("mouseup", {target:this.element[0]})):this._clear(), this}, _getHandle:function(t){return!this.options.handle || !!y(t.target).closest(this.element.find(this.options.handle)).length}, _setHandleClassName:function(){this.handleElement = this.options.handle?this.element.find(this.options.handle):this.element, this._addClass(this.handleElement, "ui-draggable-handle")}, _removeHandleClassName:function(){this._removeClass(this.handleElement, "ui-draggable-handle")}, _createHelper:function(t){var e = this.options, i = y.isFunction(e.helper), t = i?y(e.helper.apply(this.element[0], [t])):"clone" === e.helper?this.element.clone().removeAttr("id"):this.element; return t.parents("body").length || t.appendTo("parent" === e.appendTo?this.element[0].parentNode:e.appendTo), i && t[0] === this.element[0] && this._setPositionRelative(), t[0] === this.element[0] || /(fixed|absolute)/.test(t.css("position")) || t.css("position", "absolute"), t}, _setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position")) || (this.element[0].style.position = "relative")}, _adjustOffsetFromHelper:function(t){"string" == typeof t && (t = t.split(" ")), "left"in(t = y.isArray(t)?{left: + t[0], top: + t[1] || 0}:t) && (this.offset.click.left = t.left + this.margins.left), "right"in t && (this.offset.click.left = this.helperProportions.width - t.right + this.margins.left), "top"in t && (this.offset.click.top = t.top + this.margins.top), "bottom"in t && (this.offset.click.top = this.helperProportions.height - t.bottom + this.margins.top)}, _isRootNode:function(t){return/(html|body)/i.test(t.tagName) || t === this.document[0]}, _getParentOffset:function(){var t = this.offsetParent.offset(), e = this.document[0]; return"absolute" === this.cssPosition && this.scrollParent[0] !== e && y.contains(this.scrollParent[0], this.offsetParent[0]) && (t.left += this.scrollParent.scrollLeft(), t.top += this.scrollParent.scrollTop()), {top:(t = this._isRootNode(this.offsetParent[0])?{top:0, left:0}:t).top + (parseInt(this.offsetParent.css("borderTopWidth"), 10) || 0), left:t.left + (parseInt(this.offsetParent.css("borderLeftWidth"), 10) || 0)}}, _getRelativeOffset:function(){if ("relative" !== this.cssPosition)return{top:0, left:0}; var t = this.element.position(), e = this._isRootNode(this.scrollParent[0]); return{top:t.top - (parseInt(this.helper.css("top"), 10) || 0) + (e?0:this.scrollParent.scrollTop()), left:t.left - (parseInt(this.helper.css("left"), 10) || 0) + (e?0:this.scrollParent.scrollLeft())}}, _cacheMargins:function(){this.margins = {left:parseInt(this.element.css("marginLeft"), 10) || 0, top:parseInt(this.element.css("marginTop"), 10) || 0, right:parseInt(this.element.css("marginRight"), 10) || 0, bottom:parseInt(this.element.css("marginBottom"), 10) || 0}}, _cacheHelperProportions:function(){this.helperProportions = {width:this.helper.outerWidth(), height:this.helper.outerHeight()}}, _setContainment:function(){var t, e, i, s = this.options, o = this.document[0]; this.relativeContainer = null, s.containment?"window" !== s.containment?"document" !== s.containment?s.containment.constructor !== Array?("parent" === s.containment && (s.containment = this.helper[0].parentNode), (i = (e = y(s.containment))[0]) && (t = /(scroll|auto)/.test(e.css("overflow")), this.containment = [(parseInt(e.css("borderLeftWidth"), 10) || 0) + (parseInt(e.css("paddingLeft"), 10) || 0), (parseInt(e.css("borderTopWidth"), 10) || 0) + (parseInt(e.css("paddingTop"), 10) || 0), (t?Math.max(i.scrollWidth, i.offsetWidth):i.offsetWidth) - (parseInt(e.css("borderRightWidth"), 10) || 0) - (parseInt(e.css("paddingRight"), 10) || 0) - this.helperProportions.width - this.margins.left - this.margins.right, (t?Math.max(i.scrollHeight, i.offsetHeight):i.offsetHeight) - (parseInt(e.css("borderBottomWidth"), 10) || 0) - (parseInt(e.css("paddingBottom"), 10) || 0) - this.helperProportions.height - this.margins.top - this.margins.bottom], this.relativeContainer = e)):this.containment = s.containment:this.containment = [0, 0, y(o).width() - this.helperProportions.width - this.margins.left, (y(o).height() || o.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top]:this.containment = [y(window).scrollLeft() - this.offset.relative.left - this.offset.parent.left, y(window).scrollTop() - this.offset.relative.top - this.offset.parent.top, y(window).scrollLeft() + y(window).width() - this.helperProportions.width - this.margins.left, y(window).scrollTop() + (y(window).height() || o.body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top]:this.containment = null}, _convertPositionTo:function(t, e){e = e || this.position; var i = "absolute" === t?1: - 1, t = this._isRootNode(this.scrollParent[0]); return{top:e.top + this.offset.relative.top * i + this.offset.parent.top * i - ("fixed" === this.cssPosition? - this.offset.scroll.top:t?0:this.offset.scroll.top) * i, left:e.left + this.offset.relative.left * i + this.offset.parent.left * i - ("fixed" === this.cssPosition? - this.offset.scroll.left:t?0:this.offset.scroll.left) * i}}, _generatePosition:function(t, e){var i, s = this.options, o = this._isRootNode(this.scrollParent[0]), n = t.pageX, r = t.pageY; return o && this.offset.scroll || (this.offset.scroll = {top:this.scrollParent.scrollTop(), left:this.scrollParent.scrollLeft()}), e && (this.containment && (i = this.relativeContainer?(i = this.relativeContainer.offset(), [this.containment[0] + i.left, this.containment[1] + i.top, this.containment[2] + i.left, this.containment[3] + i.top]):this.containment, t.pageX - this.offset.click.left < i[0] && (n = i[0] + this.offset.click.left), t.pageY - this.offset.click.top < i[1] && (r = i[1] + this.offset.click.top), t.pageX - this.offset.click.left > i[2] && (n = i[2] + this.offset.click.left), t.pageY - this.offset.click.top > i[3] && (r = i[3] + this.offset.click.top)), s.grid && (t = s.grid[1]?this.originalPageY + Math.round((r - this.originalPageY) / s.grid[1]) * s.grid[1]:this.originalPageY, r = !i || t - this.offset.click.top >= i[1] || t - this.offset.click.top > i[3]?t:t - this.offset.click.top >= i[1]?t - s.grid[1]:t + s.grid[1], t = s.grid[0]?this.originalPageX + Math.round((n - this.originalPageX) / s.grid[0]) * s.grid[0]:this.originalPageX, n = !i || t - this.offset.click.left >= i[0] || t - this.offset.click.left > i[2]?t:t - this.offset.click.left >= i[0]?t - s.grid[0]:t + s.grid[0]), "y" === s.axis && (n = this.originalPageX), "x" === s.axis && (r = this.originalPageY)), {top:r - this.offset.click.top - this.offset.relative.top - this.offset.parent.top + ("fixed" === this.cssPosition? - this.offset.scroll.top:o?0:this.offset.scroll.top), left:n - this.offset.click.left - this.offset.relative.left - this.offset.parent.left + ("fixed" === this.cssPosition? - this.offset.scroll.left:o?0:this.offset.scroll.left)}}, _clear:function(){this._removeClass(this.helper, "ui-draggable-dragging"), this.helper[0] === this.element[0] || this.cancelHelperRemoval || this.helper.remove(), this.helper = null, this.cancelHelperRemoval = !1, this.destroyOnClear && this.destroy()}, _trigger:function(t, e, i){return i = i || this._uiHash(), y.ui.plugin.call(this, t, [e, i, this], !0), /^(drag|start|stop
vendor: 6,310 bytes, line 6
6)/.test(t) && (this.positionAbs = this._convertPositionTo("absolute"), i.offset = this.positionAbs), y.Widget.prototype._trigger.call(this, t, e, i)}, plugins:{}, _uiHash:function(){return{helper:this.helper, position:this.position, originalPosition:this.originalPosition, offset:this.positionAbs}}}), y.ui.plugin.add("draggable", "connectToSortable", {start:function(e, t, i){var s = y.extend({}, t, {item:i.element}); i.sortables = [], y(i.options.connectToSortable).each(function(){var t = y(this).sortable("instance"); t && !t.options.disabled && (i.sortables.push(t), t.refreshPositions(), t._trigger("activate", e, s))})}, stop:function(e, t, i){var s = y.extend({}, t, {item:i.element}); i.cancelHelperRemoval = !1, y.each(i.sortables, function(){var t = this; t.isOver?(t.isOver = 0, i.cancelHelperRemoval = !0, t.cancelHelperRemoval = !1, t._storedCSS = {position:t.placeholder.css("position"), top:t.placeholder.css("top"), left:t.placeholder.css("left")}, t._mouseStop(e), t.options.helper = t.options._helper):(t.cancelHelperRemoval = !0, t._trigger("deactivate", e, s))})}, drag:function(i, s, o){y.each(o.sortables, function(){var t = !1, e = this; e.positionAbs = o.positionAbs, e.helperProportions = o.helperProportions, e.offset.click = o.offset.click, e._intersectsWith(e.containerCache) && (t = !0, y.each(o.sortables, function(){return this.positionAbs = o.positionAbs, this.helperProportions = o.helperProportions, this.offset.click = o.offset.click, t = this !== e && this._intersectsWith(this.containerCache) && y.contains(e.element[0], this.element[0])?!1:t})), t?(e.isOver || (e.isOver = 1, o._parent = s.helper.parent(), e.currentItem = s.helper.appendTo(e.element).data("ui-sortable-item", !0), e.options._helper = e.options.helper, e.options.helper = function(){return s.helper[0]}, i.target = e.currentItem[0], e._mouseCapture(i, !0), e._mouseStart(i, !0, !0), e.offset.click.top = o.offset.click.top, e.offset.click.left = o.offset.click.left, e.offset.parent.left -= o.offset.parent.left - e.offset.parent.left, e.offset.parent.top -= o.offset.parent.top - e.offset.parent.top, o._trigger("toSortable", i), o.dropped = e.element, y.each(o.sortables, function(){this.refreshPositions()}), o.currentItem = o.element, e.fromOutside = o), e.currentItem && (e._mouseDrag(i), s.position = e.position)):e.isOver && (e.isOver = 0, e.cancelHelperRemoval = !0, e.options._revert = e.options.revert, e.options.revert = !1, e._trigger("out", i, e._uiHash(e)), e._mouseStop(i, !0), e.options.revert = e.options._revert, e.options.helper = e.options._helper, e.placeholder && e.placeholder.remove(), s.helper.appendTo(o._parent), o._refreshOffsets(i), s.position = o._generatePosition(i, !0), o._trigger("fromSortable", i), o.dropped = !1, y.each(o.sortables, function(){this.refreshPositions()}))})}}), y.ui.plugin.add("draggable", "cursor", {start:function(t, e, i){var s = y("body"), i = i.options; s.css("cursor") && (i._cursor = s.css("cursor")), s.css("cursor", i.cursor)}, stop:function(t, e, i){i = i.options; i._cursor && y("body").css("cursor", i._cursor)}}), y.ui.plugin.add("draggable", "opacity", {start:function(t, e, i){e = y(e.helper), i = i.options; e.css("opacity") && (i._opacity = e.css("opacity")), e.css("opacity", i.opacity)}, stop:function(t, e, i){i = i.options; i._opacity && y(e.helper).css("opacity", i._opacity)}}), y.ui.plugin.add("draggable", "scroll", {start:function(t, e, i){i.scrollParentNotHidden || (i.scrollParentNotHidden = i.helper.scrollParent(!1)), i.scrollParentNotHidden[0] !== i.document[0] && "HTML" !== i.scrollParentNotHidden[0].tagName && (i.overflowOffset = i.scrollParentNotHidden.offset())}, drag:function(t, e, i){var s = i.options, o = !1, n = i.scrollParentNotHidden[0], r = i.document[0]; n !== r && "HTML" !== n.tagName?(s.axis && "x" === s.axis || (i.overflowOffset.top + n.offsetHeight - t.pageY < s.scrollSensitivity?n.scrollTop = o = n.scrollTop + s.scrollSpeed:t.pageY - i.overflowOffset.top < s.scrollSensitivity && (n.scrollTop = o = n.scrollTop - s.scrollSpeed)), s.axis && "y" === s.axis || (i.overflowOffset.left + n.offsetWidth - t.pageX < s.scrollSensitivity?n.scrollLeft = o = n.scrollLeft + s.scrollSpeed:t.pageX - i.overflowOffset.left < s.scrollSensitivity && (n.scrollLeft = o = n.scrollLeft - s.scrollSpeed))):(s.axis && "x" === s.axis || (t.pageY - y(r).scrollTop() < s.scrollSensitivity?o = y(r).scrollTop(y(r).scrollTop() - s.scrollSpeed):y(window).height() - (t.pageY - y(r).scrollTop()) < s.scrollSensitivity && (o = y(r).scrollTop(y(r).scrollTop() + s.scrollSpeed))), s.axis && "y" === s.axis || (t.pageX - y(r).scrollLeft() < s.scrollSensitivity?o = y(r).scrollLeft(y(r).scrollLeft() - s.scrollSpeed):y(window).width() - (t.pageX - y(r).scrollLeft()) < s.scrollSensitivity && (o = y(r).scrollLeft(y(r).scrollLeft() + s.scrollSpeed)))), !1 !== o && y.ui.ddmanager && !s.dropBehaviour && y.ui.ddmanager.prepareOffsets(i, t)}}), y.ui.plugin.add("draggable", "snap", {start:function(t, e, i){var s = i.options; i.snapElements = [], y(s.snap.constructor !== String?s.snap.items || ":data(ui-draggable)":s.snap).each(function(){var t = y(this), e = t.offset(); this !== i.element[0] && i.snapElements.push({item:this, width:t.outerWidth(), height:t.outerHeight(), top:e.top, left:e.left})})}, drag:function(t, e, i){for (var s, o, n, r, h, a, l, c, p, f = i.options, d = f.snapTolerance, u = e.offset.left, g = u + i.helperProportions.width, m = e.offset.top, _ = m + i.helperProportions.height, v = i.snapElements.length - 1; 0 <= v; v--)a = (h = i.snapElements[v].left - i.margins.left) + i.snapElements[v].width, c = (l = i.snapElements[v].top - i.margins.top) + i.snapElements[v].height, g < h - d || a + d < u || _ < l - d || c + d < m || !y.contains(i.snapElements[v].item.ownerDocument, i.snapElements[v].item)?(i.snapElements[v].snapping && i.options.snap.release && i.options.snap.release.call(i.element, t, y.extend(i._uiHash(), {snapItem:i.snapElements[v].item})), i.snapElements[v].snapping = !1):("inner" !== f.snapMode && (s = Math.abs(l - _) <= d, o = Math.abs(c - m) <= d, n = Math.abs(h - g) <= d, r = Math.abs(a - u) <= d, s && (e.position.top = i._convertPositionTo("relative", {top:l - i.helperProportions.height, left:0}).top), o && (e.position.top = i._convertPositionTo("relative", {top:c, left
vendor: 11,194 bytes, line 6
6:0}).top), n && (e.position.left = i._convertPositionTo("relative", {top:0, left:h - i.helperProportions.width}).left), r && (e.position.left = i._convertPositionTo("relative", {top:0, left:a}).left)), p = s || o || n || r, "outer" !== f.snapMode && (s = Math.abs(l - m) <= d, o = Math.abs(c - _) <= d, n = Math.abs(h - u) <= d, r = Math.abs(a - g) <= d, s && (e.position.top = i._convertPositionTo("relative", {top:l, left:0}).top), o && (e.position.top = i._convertPositionTo("relative", {top:c - i.helperProportions.height, left:0}).top), n && (e.position.left = i._convertPositionTo("relative", {top:0, left:h}).left), r && (e.position.left = i._convertPositionTo("relative", {top:0, left:a - i.helperProportions.width}).left)), !i.snapElements[v].snapping && (s || o || n || r || p) && i.options.snap.snap && i.options.snap.snap.call(i.element, t, y.extend(i._uiHash(), {snapItem:i.snapElements[v].item})), i.snapElements[v].snapping = s || o || n || r || p)}}), y.ui.plugin.add("draggable", "stack", {start:function(t, e, i){var s, i = i.options, i = y.makeArray(y(i.stack)).sort(function(t, e){return(parseInt(y(t).css("zIndex"), 10) || 0) - (parseInt(y(e).css("zIndex"), 10) || 0)}); i.length && (s = parseInt(y(i[0]).css("zIndex"), 10) || 0, y(i).each(function(t){y(this).css("zIndex", s + t)}), this.css("zIndex", s + i.length))}}), y.ui.plugin.add("draggable", "zIndex", {start:function(t, e, i){e = y(e.helper), i = i.options; e.css("zIndex") && (i._zIndex = e.css("zIndex")), e.css("zIndex", i.zIndex)}, stop:function(t, e, i){i = i.options; i._zIndex && y(e.helper).css("zIndex", i._zIndex)}}); y.ui.draggable; y.widget("ui.droppable", {version:"1.12.1", widgetEventPrefix:"drop", options:{accept:"*", addClasses:!0, greedy:!1, scope:"default", tolerance:"intersect", activate:null, deactivate:null, drop:null, out:null, over:null}, _create:function(){var t, e = this.options, i = e.accept; this.isover = !1, this.isout = !0, this.accept = y.isFunction(i)?i:function(t){return t.is(i)}, this.proportions = function(){if (!arguments.length)return t = t || {width:this.element[0].offsetWidth, height:this.element[0].offsetHeight}; t = arguments[0]}, this._addToManager(e.scope), e.addClasses && this._addClass("ui-droppable")}, _addToManager:function(t){y.ui.ddmanager.droppables[t] = y.ui.ddmanager.droppables[t] || [], y.ui.ddmanager.droppables[t].push(this)}, _splice:function(t){for (var e = 0; e < t.length; e++)t[e] === this && t.splice(e, 1)}, _destroy:function(){var t = y.ui.ddmanager.droppables[this.options.scope]; this._splice(t)}, _setOption:function(t, e){var i; "accept" === t?this.accept = y.isFunction(e)?e:function(t){return t.is(e)}:"scope" === t && (i = y.ui.ddmanager.droppables[this.options.scope], this._splice(i), this._addToManager(e)), this._super(t, e)}, _activate:function(t){var e = y.ui.ddmanager.current; this._addActiveClass(), e && this._trigger("activate", t, this.ui(e))}, _deactivate:function(t){var e = y.ui.ddmanager.current; this._removeActiveClass(), e && this._trigger("deactivate", t, this.ui(e))}, _over:function(t){var e = y.ui.ddmanager.current; e && (e.currentItem || e.element)[0] !== this.element[0] && this.accept.call(this.element[0], e.currentItem || e.element) && (this._addHoverClass(), this._trigger("over", t, this.ui(e)))}, _out:function(t){var e = y.ui.ddmanager.current; e && (e.currentItem || e.element)[0] !== this.element[0] && this.accept.call(this.element[0], e.currentItem || e.element) && (this._removeHoverClass(), this._trigger("out", t, this.ui(e)))}, _drop:function(e, t){var i = t || y.ui.ddmanager.current, s = !1; return!(!i || (i.currentItem || i.element)[0] === this.element[0]) && (this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var t = y(this).droppable("instance"); if (t.options.greedy && !t.options.disabled && t.options.scope === i.options.scope && t.accept.call(t.element[0], i.currentItem || i.element) && d(i, y.extend(t, {offset:t.element.offset()}), t.options.tolerance, e))return!(s = !0)}), !s && (!!this.accept.call(this.element[0], i.currentItem || i.element) && (this._removeActiveClass(), this._removeHoverClass(), this._trigger("drop", e, this.ui(i)), this.element)))}, ui:function(t){return{draggable:t.currentItem || t.element, helper:t.helper, position:t.position, offset:t.positionAbs}}, _addHoverClass:function(){this._addClass("ui-droppable-hover")}, _removeHoverClass:function(){this._removeClass("ui-droppable-hover")}, _addActiveClass:function(){this._addClass("ui-droppable-active")}, _removeActiveClass:function(){this._removeClass("ui-droppable-active")}}); var d = y.ui.intersect = function(t, e, i, s){if (!e.offset)return!1; var o = (t.positionAbs || t.position.absolute).left + t.margins.left, n = (t.positionAbs || t.position.absolute).top + t.margins.top, r = o + t.helperProportions.width, h = n + t.helperProportions.height, a = e.offset.left, l = e.offset.top, c = a + e.proportions().width, p = l + e.proportions().height; switch (i){case"fit":return a <= o && r <= c && l <= n && h <= p; case"intersect":return a < o + t.helperProportions.width / 2 && r - t.helperProportions.width / 2 < c && l < n + t.helperProportions.height / 2 && h - t.helperProportions.height / 2 < p; case"pointer":return u(s.pageY, l, e.proportions().height) && u(s.pageX, a, e.proportions().width); case"touch":return(l <= n && n <= p || l <= h && h <= p || n < l && p < h) && (a <= o && o <= c || a <= r && r <= c || o < a && c < r); default:return!1}}; function u(t, e, i){return e <= t && t < e + i}!(y.ui.ddmanager = {current:null, droppables:{default:[]}, prepareOffsets:function(t, e){var i, s, o = y.ui.ddmanager.droppables[t.options.scope] || [], n = e?e.type:null, r = (t.currentItem || t.element).find(":data(ui-droppable)").addBack(); t:for (i = 0; i < o.length; i++)if (!(o[i].options.disabled || t && !o[i].accept.call(o[i].element[0], t.currentItem || t.element))){for (s = 0; s < r.length; s++)if (r[s] === o[i].element[0]){o[i].proportions().height = 0; continue t}o[i].visible = "none" !== o[i].element.css("display"), o[i].visible && ("mousedown" === n && o[i]._activate.call(o[i], e), o[i].offset = o[i].element.offset(), o[i].proportions({width:o[i].element[0].offsetWidth, height:o[i].element[0].offsetHeight}))}}, drop:function(t, e){var i = !1; return y.each((y.ui.ddmanager.droppables[t.options.scope] || []).slice(), function(){this.options && (!this.options.disabled && this.visible && d(t, this, this.options.tolerance, e) && (i = this._drop.call(this, e) || i), !this.options.disabled && this.visible && this.accept.call(this.element[0], t.currentItem || t.element) && (this.isout = !0, this.isover = !1, this._deactivate.call(this, e)))}), i}, dragStart:function(t, e){t.element.parentsUntil("body").on("scroll.droppable", function(){t.options.refreshPositions || y.ui.ddmanager.prepareOffsets(t, e)})}, drag:function(o, n){o.options.refreshPositions && y.ui.ddmanager.prepareOffsets(o, n), y.each(y.ui.ddmanager.droppables[o.options.scope] || [], function(){var t, e, i, s; this.options.disabled || this.greedyChild || !this.visible || (s = !(i = d(o, this, this.options.tolerance, n)) && this.isover?"isout":i && !this.isover?"isover":null) && (this.options.greedy && (e = this.options.scope, (i = this.element.parents(":data(ui-droppable)").filter(function(){return y(this).droppable("instance").options.scope === e})).length && ((t = y(i[0]).droppable("instance")).greedyChild = "isover" === s)), t && "isover" === s && (t.isover = !1, t.isout = !0, t._out.call(t, n)), this[s] = !0, this["isout" === s?"isover":"isout"] = !1, this["isover" === s?"_over":"_out"].call(this, n), t && "isout" === s && (t.isout = !1, t.isover = !0, t._over.call(t, n)))})}, dragStop:function(t, e){t.element.parentsUntil("body").off("scroll.droppable"), t.options.refreshPositions || y.ui.ddmanager.prepareOffsets(t, e)}}) !== y.uiBackCompat && y.widget("ui.droppable", y.ui.droppable, {options:{hoverClass:!1, activeClass:!1}, _addActiveClass:function(){this._super(), this.options.activeClass && this.element.addClass(this.options.activeClass)}, _removeActiveClass:function(){this._super(), this.options.activeClass && this.element.removeClass(this.options.activeClass)}, _addHoverClass:function(){this._super(), this.options.hoverClass && this.element.addClass(this.options.hoverClass)}, _removeHoverClass:function(){this._super(), this.options.hoverClass && this.element.removeClass(this.options.hoverClass)}}); y.ui.droppable; y.widget("ui.resizable", y.ui.mouse, {version:"1.12.1", widgetEventPrefix:"resize", options:{alsoResize:!1, animate:!1, animateDuration:"slow", animateEasing:"swing", aspectRatio:!1, autoHide:!1, classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"}, containment:!1, ghost:!1, grid:!1, handles:"e,s,se", helper:!1, maxHeight:null, maxWidth:null, minHeight:10, minWidth:10, zIndex:90, resize:null, start:null, stop:null}, _num:function(t){return parseFloat(t) || 0}, _isNumber:function(t){return!isNaN(parseFloat(t))}, _hasScroll:function(t, e){if ("hidden" === y(t).css("overflow"))return!1; var i = e && "left" === e?"scrollLeft":"scrollTop", e = !1; return 0 < t[i] || (t[i] = 1, e = 0 < t[i], t[i] = 0, e)}, _create:function(){var t, e = this.options, i = this; this._addClass("ui-resizable"), y.extend(this, {_aspectRatio:!!e.aspectRatio, aspectRatio:e.aspectRatio, originalElement:this.element, _proportionallyResizeElements:[], _helper:e.helper || e.ghost || e.animate?e.helper || "ui-resizable-helper":null}), this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i) && (this.element.wrap(y("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"), width:this.element.outerWidth(), height:this.element.outerHeight(), top:this.element.css("top"), left:this.element.css("left")})), this.element = this.element.parent().data("ui-resizable", this.element.resizable("instance")), this.elementIsWrapper = !0, t = {marginTop:this.originalElement.css("marginTop"), marginRight:this.originalElement.css("marginRight"), marginBottom:this.originalElement.css("marginBottom"), marginLeft:this.originalElement.css("marginLeft")}, this.element.css(t), this.originalElement.css("margin", 0), this.originalResizeStyle = this.originalElement.css("resize"), this.originalElement.css("resize", "none"), this._proportionallyResizeElements.push(this.originalElement.css({position:"static", zoom:1, display:"block"})), this.originalElement.css(t), this._proportionallyResize()), this._setupHandles(), e.autoHide && y(this.element).on("mouseenter", function(){e.disabled || (i._removeClass("ui-resizable-autohide"), i._handles.show())}).on("mouseleave", function(){e.disabled || i.resizing || (i._addClass("ui-resizable-autohide"), i._handles.hide())}), this._mouseInit()}, _destroy:function(){this._mouseDestroy(); function t(t){y(t).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()}var e; return this.elementIsWrapper && (t(this.element), e = this.element, this.originalElement.css({position:e.css("position"), width:e.outerWidth(), height:e.outerHeight(), top:e.css("top"), left
vendor: 4,805 bytes, line 6
6:e.css("left")}).insertAfter(e), e.remove()), this.originalElement.css("resize", this.originalResizeStyle), t(this.originalElement), this}, _setOption:function(t, e){this._super(t, e), "handles" === t && (this._removeHandles(), this._setupHandles())}, _setupHandles:function(){var t, e, i, s, o, n = this.options, r = this; if (this.handles = n.handles || (y(".ui-resizable-handle", this.element).length?{n:".ui-resizable-n", e:".ui-resizable-e", s:".ui-resizable-s", w:".ui-resizable-w", se:".ui-resizable-se", sw:".ui-resizable-sw", ne:".ui-resizable-ne", nw:".ui-resizable-nw"}:"e,s,se"), this._handles = y(), this.handles.constructor === String)for ("all" === this.handles && (this.handles = "n,e,s,w,se,sw,ne,nw"), i = this.handles.split(","), this.handles = {}, e = 0; e < i.length; e++)s = "ui-resizable-" + (t = y.trim(i[e])), o = y("<div>"), this._addClass(o, "ui-resizable-handle " + s), o.css({zIndex:n.zIndex}), this.handles[t] = ".ui-resizable-" + t, this.element.append(o); this._renderAxis = function(t){var e, i, s; for (e in t = t || this.element, this.handles)this.handles[e].constructor === String?this.handles[e] = this.element.children(this.handles[e]).first().show():(this.handles[e].jquery || this.handles[e].nodeType) && (this.handles[e] = y(this.handles[e]), this._on(this.handles[e], {mousedown:r._mouseDown})), this.elementIsWrapper && this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i) && (i = y(this.handles[e], this.element), s = /sw|ne|nw|se|n|s/.test(e)?i.outerHeight():i.outerWidth(), i = ["padding", /ne|nw|n/.test(e)?"Top":/se|sw|s/.test(e)?"Bottom":/^e$/.test(e)?"Right":"Left"].join(""), t.css(i, s), this._proportionallyResize()), this._handles = this._handles.add(this.handles[e])}, this._renderAxis(this.element), this._handles = this._handles.add(this.element.find(".ui-resizable-handle")), this._handles.disableSelection(), this._handles.on("mouseover", function(){r.resizing || (this.className && (o = this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)), r.axis = o && o[1]?o[1]:"se")}), n.autoHide && (this._handles.hide(), this._addClass("ui-resizable-autohide"))}, _removeHandles:function(){this._handles.remove()}, _mouseCapture:function(t){var e, i, s = !1; for (e in this.handles)(i = y(this.handles[e])[0]) !== t.target && !y.contains(i, t.target) || (s = !0); return!this.options.disabled && s}, _mouseStart:function(t){var e, i, s = this.options, o = this.element; return this.resizing = !0, this._renderProxy(), e = this._num(this.helper.css("left")), i = this._num(this.helper.css("top")), s.containment && (e += y(s.containment).scrollLeft() || 0, i += y(s.containment).scrollTop() || 0), this.offset = this.helper.offset(), this.position = {left:e, top:i}, this.size = this._helper?{width:this.helper.width(), height:this.helper.height()}:{width:o.width(), height:o.height()}, this.originalSize = this._helper?{width:o.outerWidth(), height:o.outerHeight()}:{width:o.width(), height:o.height()}, this.sizeDiff = {width:o.outerWidth() - o.width(), height:o.outerHeight() - o.height()}, this.originalPosition = {left:e, top:i}, this.originalMousePosition = {left:t.pageX, top:t.pageY}, this.aspectRatio = "number" == typeof s.aspectRatio?s.aspectRatio:this.originalSize.width / this.originalSize.height || 1, s = y(".ui-resizable-" + this.axis).css("cursor"), y("body").css("cursor", "auto" === s?this.axis + "-resize":s), this._addClass("ui-resizable-resizing"), this._propagate("start", t), !0}, _mouseDrag:function(t){var e = this.originalMousePosition, i = this.axis, s = t.pageX - e.left || 0, e = t.pageY - e.top || 0, i = this._change[i]; return this._updatePrevProperties(), i && (e = i.apply(this, [t, s, e]), this._updateVirtualBoundaries(t.shiftKey), (this._aspectRatio || t.shiftKey) && (e = this._updateRatio(e, t)), e = this._respectSize(e, t), this._updateCache(e), this._propagate("resize", t), e = this._applyChanges(), !this._helper && this._proportionallyResizeElements.length && this._proportionallyResize(), y.isEmptyObject(e) || (this._updatePrevProperties(), this._trigger("resize", t, this.ui()), this._applyChanges())), !1}, _mouseStop:function(t){this.resizing = !1; var e, i, s, o = this.options, n = this; return this._helper && (s = (e = (i = this._proportionallyResizeElements).length && /textarea/i.test(i[0].nodeName)) && this._hasScroll(i[0], "left")?0:n.sizeDiff.height, i = e?0:n.sizeDiff.width, e = {width:n.helper.width() - i, height:n.helper.height() - s}, i = parseFloat(n.element.css("left")) + (n.position.left - n.originalPosition.left) || null, s = parseFloat(n.element.css("top")) + (n.position.top - n.originalPosition.top) || null, o.animate || this.element.css(y.extend(e, {top:s, left:i})), n.helper.height(n.size.height), n.helper.width(n.size.width), this._helper && !
vendor: 10,801 bytes, line 6
6o.animate && this._proportionallyResize()), y("body").css("cursor", "auto"), this._removeClass("ui-resizable-resizing"), this._propagate("stop", t), this._helper && this.helper.remove(), !1}, _updatePrevProperties:function(){this.prevPosition = {top:this.position.top, left:this.position.left}, this.prevSize = {width:this.size.width, height:this.size.height}}, _applyChanges:function(){var t = {}; return this.position.top !== this.prevPosition.top && (t.top = this.position.top + "px"), this.position.left !== this.prevPosition.left && (t.left = this.position.left + "px"), this.size.width !== this.prevSize.width && (t.width = this.size.width + "px"), this.size.height !== this.prevSize.height && (t.height = this.size.height + "px"), this.helper.css(t), t}, _updateVirtualBoundaries:function(t){var e, i, s = this.options, o = {minWidth:this._isNumber(s.minWidth)?s.minWidth:0, maxWidth:this._isNumber(s.maxWidth)?s.maxWidth:1 / 0, minHeight:this._isNumber(s.minHeight)?s.minHeight:0, maxHeight:this._isNumber(s.maxHeight)?s.maxHeight:1 / 0}; (this._aspectRatio || t) && (e = o.minHeight * this.aspectRatio, i = o.minWidth / this.aspectRatio, s = o.maxHeight * this.aspectRatio, t = o.maxWidth / this.aspectRatio, e > o.minWidth && (o.minWidth = e), i > o.minHeight && (o.minHeight = i), s < o.maxWidth && (o.maxWidth = s), t < o.maxHeight && (o.maxHeight = t)), this._vBoundaries = o}, _updateCache:function(t){this.offset = this.helper.offset(), this._isNumber(t.left) && (this.position.left = t.left), this._isNumber(t.top) && (this.position.top = t.top), this._isNumber(t.height) && (this.size.height = t.height), this._isNumber(t.width) && (this.size.width = t.width)}, _updateRatio:function(t){var e = this.position, i = this.size, s = this.axis; return this._isNumber(t.height)?t.width = t.height * this.aspectRatio:this._isNumber(t.width) && (t.height = t.width / this.aspectRatio), "sw" === s && (t.left = e.left + (i.width - t.width), t.top = null), "nw" === s && (t.top = e.top + (i.height - t.height), t.left = e.left + (i.width - t.width)), t}, _respectSize:function(t){var e = this._vBoundaries, i = this.axis, s = this._isNumber(t.width) && e.maxWidth && e.maxWidth < t.width, o = this._isNumber(t.height) && e.maxHeight && e.maxHeight < t.height, n = this._isNumber(t.width) && e.minWidth && e.minWidth > t.width, r = this._isNumber(t.height) && e.minHeight && e.minHeight > t.height, h = this.originalPosition.left + this.originalSize.width, a = this.originalPosition.top + this.originalSize.height, l = /sw|nw|w/.test(i), i = /nw|ne|n/.test(i); return n && (t.width = e.minWidth), r && (t.height = e.minHeight), s && (t.width = e.maxWidth), o && (t.height = e.maxHeight), n && l && (t.left = h - e.minWidth), s && l && (t.left = h - e.maxWidth), r && i && (t.top = a - e.minHeight), o && i && (t.top = a - e.maxHeight), t.width || t.height || t.left || !t.top?t.width || t.height || t.top || !t.left || (t.left = null):t.top = null, t}, _getPaddingPlusBorderDimensions:function(t){for (var e = 0, i = [], s = [t.css("borderTopWidth"), t.css("borderRightWidth"), t.css("borderBottomWidth"), t.css("borderLeftWidth")], o = [t.css("paddingTop"), t.css("paddingRight"), t.css("paddingBottom"), t.css("paddingLeft")]; e < 4; e++)i[e] = parseFloat(s[e]) || 0, i[e] += parseFloat(o[e]) || 0; return{height:i[0] + i[2], width:i[1] + i[3]}}, _proportionallyResize:function(){if (this._proportionallyResizeElements.length)for (var t, e = 0, i = this.helper || this.element; e < this._proportionallyResizeElements.length; e++)t = this._proportionallyResizeElements[e], this.outerDimensions || (this.outerDimensions = this._getPaddingPlusBorderDimensions(t)), t.css({height:i.height() - this.outerDimensions.height || 0, width:i.width() - this.outerDimensions.width || 0})}, _renderProxy:function(){var t = this.element, e = this.options; this.elementOffset = t.offset(), this._helper?(this.helper = this.helper || y("<div style='overflow:hidden;'></div>"), this._addClass(this.helper, this._helper), this.helper.css({width:this.element.outerWidth(), height:this.element.outerHeight(), position:"absolute", left:this.elementOffset.left + "px", top:this.elementOffset.top + "px", zIndex:++e.zIndex}), this.helper.appendTo("body").disableSelection()):this.helper = this.element}, _change:{e:function(t, e){return{width:this.originalSize.width + e}}, w:function(t, e){var i = this.originalSize; return{left:this.originalPosition.left + e, width:i.width - e}}, n:function(t, e, i){var s = this.originalSize; return{top:this.originalPosition.top + i, height:s.height - i}}, s:function(t, e, i){return{height:this.originalSize.height + i}}, se:function(t, e, i){return y.extend(this._change.s.apply(this, arguments), this._change.e.apply(this, [t, e, i]))}, sw:function(t, e, i){return y.extend(this._change.s.apply(this, arguments), this._change.w.apply(this, [t, e, i]))}, ne:function(t, e, i){return y.extend(this._change.n.apply(this, arguments), this._change.e.apply(this, [t, e, i]))}, nw:function(t, e, i){return y.extend(this._change.n.apply(this, arguments), this._change.w.apply(this, [t, e, i]))}}, _propagate:function(t, e){y.ui.plugin.call(this, t, [e, this.ui()]), "resize" !== t && this._trigger(t, e, this.ui())}, plugins:{}, ui:function(){return{originalElement:this.originalElement, element:this.element, helper:this.helper, position:this.position, size:this.size, originalSize:this.originalSize, originalPosition:this.originalPosition}}}), y.ui.plugin.add("resizable", "animate", {stop:function(e){var i = y(this).resizable("instance"), t = i.options, s = i._proportionallyResizeElements, o = s.length && /textarea/i.test(s[0].nodeName), n = o && i._hasScroll(s[0], "left")?0:i.sizeDiff.height, r = o?0:i.sizeDiff.width, o = {width:i.size.width - r, height:i.size.height - n}, r = parseFloat(i.element.css("left")) + (i.position.left - i.originalPosition.left) || null, n = parseFloat(i.element.css("top")) + (i.position.top - i.originalPosition.top) || null; i.element.animate(y.extend(o, n && r?{top:n, left:r}:{}), {duration:t.animateDuration, easing:t.animateEasing, step:function(){var t = {width:parseFloat(i.element.css("width")), height:parseFloat(i.element.css("height")), top:parseFloat(i.element.css("top")), left:parseFloat(i.element.css("left"))}; s && s.length && y(s[0]).css({width:t.width, height:t.height}), i._updateCache(t), i._propagate("resize", e)}})}}), y.ui.plugin.add("resizable", "containment", {start:function(){var i, s, o = y(this).resizable("instance"), t = o.options, e = o.element, n = t.containment, r = n instanceof y?n.get(0):/parent/.test(n)?e.parent().get(0):n; r && (o.containerElement = y(r), /document/.test(n) || n === document?(o.containerOffset = {left:0, top:0}, o.containerPosition = {left:0, top:0}, o.parentData = {element:y(document), left:0, top:0, width:y(document).width(), height:y(document).height() || document.body.parentNode.scrollHeight}):(i = y(r), s = [], y(["Top", "Right", "Left", "Bottom"]).each(function(t, e){s[t] = o._num(i.css("padding" + e))}), o.containerOffset = i.offset(), o.containerPosition = i.position(), o.containerSize = {height:i.innerHeight() - s[3], width:i.innerWidth() - s[1]}, t = o.containerOffset, e = o.containerSize.height, n = o.containerSize.width, n = o._hasScroll(r, "left")?r.scrollWidth:n, e = o._hasScroll(r)?r.scrollHeight:e, o.parentData = {element:r, left:t.left, top:t.top, width:n, height:e}))}, resize:function(t){var e = y(this).resizable("instance"), i = e.options, s = e.containerOffset, o = e.position, n = e._aspectRatio || t.shiftKey, r = {top:0, left:0}, h = e.containerElement, t = !0; h[0] !== document && /static/.test(h.css("position")) && (r = s), o.left < (e._helper?s.left:0) && (e.size.width = e.size.width + (e._helper?e.position.left - s.left:e.position.left - r.left), n && (e.size.height = e.size.width / e.aspectRatio, t = !1), e.position.left = i.helper?s.left:0), o.top < (e._helper?s.top:0) && (e.size.height = e.size.height + (e._helper?e.position.top - s.top:e.position.top), n && (e.size.width = e.size.height * e.aspectRatio, t = !1), e.position.top = e._helper?s.top:0), i = e.containerElement.get(0) === e.element.parent().get(0), o = /relative|absolute/.test(e.containerElement.css("position")), i && o?(e.offset.left = e.parentData.left + e.position.left, e.offset.top = e.parentData.top + e.position.top):(e.offset.left = e.element.offset().left, e.offset.top = e.element.offset().top), o = Math.abs(e.sizeDiff.width + (e._helper?e.offset.left - r.left:e.offset.left - s.left)), s = Math.abs(e.sizeDiff.height + (e._helper?e.offset.top - r.top:e.offset.top - s.top)), o + e.size.width >= e.parentData.width && (e.size.width = e.parentData.width - o, n && (e.size.height = e.size.width / e.aspectRatio, t = !1)), s + e.size.height >= e.parentData.height && (e.size.height = e.parentData.height - s, n && (e.size.width = e.size.height * e.aspectRatio, t = !1)), t || (e.position.left = e.prevPosition.left, e.position.top = e.prevPosition.top, e.size.width = e.prevSize.width, e.size.height = e.prevSize.height)}, stop:function(){var t = y(this).resizable("instance"), e = t.options, i = t.containerOffset, s = t.containerPosition, o = t.containerElement, n = y(t.helper), r = n.offset(), h = n.outerWidth() - t.sizeDiff.width, n = n.outerHeight() - t.sizeDiff.height; t._helper && !e.animate && /relative/.test(o.css("position")) && y(this).css({left:r.left - s.left - i.left, width:h, height:n}), t._helper && !e.animate && /static/.test(o.css("position")) && y(this).css({left:r.left - s.left - i.left, width:h, height:n})}}), y.ui.plugin.add("resizable", "alsoResize", {start:function(){var t = y(this).resizable("instance").options; y(t.alsoResize).each(function(){var t = y(this); t.data("ui-resizable-alsoresize", {width:parseFloat(t.width()), height:parseFloat(t.height()), left:parseFloat(t.css("left")), top:parseFloat(t.css("top"))})})}, resize:function(t, i){var e = y(this).resizable("instance"), s = e.options, o = e.originalSize, n = e.originalPosition, r = {height:e.size.height - o.height || 0, width:e.size.width - o.width || 0, top:e.position.top - n.top || 0, left:e.position.left - n.left || 0}; y(s.alsoResize).each(function(){var t = y(this), s = y(this).data("ui-resizable-alsoresize"), o = {}, e = t.parents(i.originalElement[0]).length?["width", "height"]:["width", "height", "top", "left"]; y.each(e, function(t, e){var i = (s[e] || 0) + (r[e] || 0); i && 0 <= i && (o[e] = i || null)}), t.css(o)})}, stop:function(){y(this).removeData("ui-resizable-alsoresize")}}), y.ui.plugin.add("resizable", "ghost", {start:function(){var t = y(this).resizable("instance"), e = t.size; t.ghost = t.originalElement.clone(), t.ghost.css({opacity:.25, display:"block", position:"relative", height:e.height, width:e.width, margin:0, left
vendor: 4,140 bytes, line 6
6:0, top:0}), t._addClass(t.ghost, "ui-resizable-ghost"), !1 !== y.uiBackCompat && "string" == typeof t.options.ghost && t.ghost.addClass(this.options.ghost), t.ghost.appendTo(t.helper)}, resize:function(){var t = y(this).resizable("instance"); t.ghost && t.ghost.css({position:"relative", height:t.size.height, width:t.size.width})}, stop:function(){var t = y(this).resizable("instance"); t.ghost && t.helper && t.helper.get(0).removeChild(t.ghost.get(0))}}), y.ui.plugin.add("resizable", "grid", {resize:function(){var t, e = y(this).resizable("instance"), i = e.options, s = e.size, o = e.originalSize, n = e.originalPosition, r = e.axis, h = "number" == typeof i.grid?[i.grid, i.grid]:i.grid, a = h[0] || 1, l = h[1] || 1, c = Math.round((s.width - o.width) / a) * a, p = Math.round((s.height - o.height) / l) * l, f = o.width + c, d = o.height + p, u = i.maxWidth && i.maxWidth < f, g = i.maxHeight && i.maxHeight < d, m = i.minWidth && i.minWidth > f, s = i.minHeight && i.minHeight > d; i.grid = h, m && (f += a), s && (d += l), u && (f -= a), g && (d -= l), /^(se|s|e)$/.test(r)?(e.size.width = f, e.size.height = d):/^(ne)$/.test(r)?(e.size.width = f, e.size.height = d, e.position.top = n.top - p):/^(sw)$/.test(r)?(e.size.width = f, e.size.height = d, e.position.left = n.left - c):((d - l <= 0 || f - a <= 0) && (t = e._getPaddingPlusBorderDimensions(this)), 0 < d - l?(e.size.height = d, e.position.top = n.top - p):(d = l - t.height, e.size.height = d, e.position.top = n.top + o.height - d), 0 < f - a?(e.size.width = f, e.position.left = n.left - c):(f = a - t.width, e.size.width = f, e.position.left = n.left + o.width - f))}}); y.ui.resizable, y.widget("ui.selectable", y.ui.mouse, {version:"1.12.1", options:{appendTo:"body", autoRefresh:!0, distance:0, filter:"*", tolerance:"touch", selected:null, selecting:null, start:null, stop:null, unselected:null, unselecting:null}, _create:function(){var i = this; this._addClass("ui-selectable"), this.dragged = !1, this.refresh = function(){i.elementPos = y(i.element[0]).offset(), i.selectees = y(i.options.filter, i.element[0]), i._addClass(i.selectees, "ui-selectee"), i.selectees.each(function(){var t = y(this), e = t.offset(), e = {left:e.left - i.elementPos.left, top:e.top - i.elementPos.top}; y.data(this, "selectable-item", {element:this, $element:t, left:e.left, top:e.top, right:e.left + t.outerWidth(), bottom:e.top + t.outerHeight(), startselected:!1, selected:t.hasClass("ui-selected"), selecting:t.hasClass("ui-selecting"), unselecting:t.hasClass("ui-unselecting")})})}, this.refresh(), this._mouseInit(), this.helper = y("<div>"), this._addClass(this.helper, "ui-selectable-helper")}, _destroy:function(){this.selectees.removeData("selectable-item"), this._mouseDestroy()}, _mouseStart:function(i){var s = this, t = this.options; this.opos = [i.pageX, i.pageY], this.elementPos = y(this.element[0]).offset(), this.options.disabled || (this.selectees = y(t.filter, this.element[0]), this._trigger("start", i), y(t.appendTo).append(this.helper), this.helper.css({left:i.pageX, top:i.pageY, width:0, height:0}), t.autoRefresh && this.refresh(), this.selectees.filter(".ui-selected").each(function(){var t = y.data(this, "selectable-item"); t.startselected = !0, i.metaKey || i.ctrlKey || (s._removeClass(t.$element, "ui-selected"), t.selected = !1, s._addClass(t.$element, "ui-unselecting"), t.unselecting = !0, s._trigger("unselecting", i, {unselecting:t.element}))}), y(i.target).parents().addBack().each(function(){var t, e = y.data(this, "selectable-item"); if (e)return t = !i.metaKey && !i.ctrlKey || !e.$element.hasClass("ui-selected"), s._removeClass(e.$element, t?"ui-unselecting":"ui-selected")._addClass(e.$element, t?"ui-selecting":"ui-unselecting"), e.unselecting = !t, e.selecting = t, (e.selected = t)?s._trigger("selecting", i, {selecting:e.element}):s._trigger("unselecting", i, {unselecting:e.element}), !1}))}, _mouseDrag:function(s){if (this.dragged = !0, !this.options.disabled){var t, o = this, n = this.options, r = this.opos[0], h = this.opos[1], a = s.pageX, l = s.pageY; return a < r && (t = a, a = r, r = t), l < h && (t = l, l = h, h 
vendor: 13,211 bytes, line 6
6= t), this.helper.css({left:r, top:h, width:a - r, height:l - h}), this.selectees.each(function(){var t = y.data(this, "selectable-item"), e = !1, i = {}; t && t.element !== o.element[0] && (i.left = t.left + o.elementPos.left, i.right = t.right + o.elementPos.left, i.top = t.top + o.elementPos.top, i.bottom = t.bottom + o.elementPos.top, "touch" === n.tolerance?e = !(i.left > a || i.right < r || i.top > l || i.bottom < h):"fit" === n.tolerance && (e = i.left > r && i.right < a && i.top > h && i.bottom < l), e?(t.selected && (o._removeClass(t.$element, "ui-selected"), t.selected = !1), t.unselecting && (o._removeClass(t.$element, "ui-unselecting"), t.unselecting = !1), t.selecting || (o._addClass(t.$element, "ui-selecting"), t.selecting = !0, o._trigger("selecting", s, {selecting:t.element}))):(t.selecting && ((s.metaKey || s.ctrlKey) && t.startselected?(o._removeClass(t.$element, "ui-selecting"), t.selecting = !1, o._addClass(t.$element, "ui-selected"), t.selected = !0):(o._removeClass(t.$element, "ui-selecting"), t.selecting = !1, t.startselected && (o._addClass(t.$element, "ui-unselecting"), t.unselecting = !0), o._trigger("unselecting", s, {unselecting:t.element}))), t.selected && (s.metaKey || s.ctrlKey || t.startselected || (o._removeClass(t.$element, "ui-selected"), t.selected = !1, o._addClass(t.$element, "ui-unselecting"), t.unselecting = !0, o._trigger("unselecting", s, {unselecting:t.element})))))}), !1}}, _mouseStop:function(e){var i = this; return this.dragged = !1, y(".ui-unselecting", this.element[0]).each(function(){var t = y.data(this, "selectable-item"); i._removeClass(t.$element, "ui-unselecting"), t.unselecting = !1, t.startselected = !1, i._trigger("unselected", e, {unselected:t.element})}), y(".ui-selecting", this.element[0]).each(function(){var t = y.data(this, "selectable-item"); i._removeClass(t.$element, "ui-selecting")._addClass(t.$element, "ui-selected"), t.selecting = !1, t.selected = !0, t.startselected = !0, i._trigger("selected", e, {selected:t.element})}), this._trigger("stop", e), this.helper.remove(), !1}}), y.widget("ui.sortable", y.ui.mouse, {version:"1.12.1", widgetEventPrefix:"sort", ready:!1, options:{appendTo:"parent", axis:!1, connectWith:!1, containment:!1, cursor:"auto", cursorAt:!1, dropOnEmpty:!0, forcePlaceholderSize:!1, forceHelperSize:!1, grid:!1, handle:!1, helper:"original", items:"> *", opacity:!1, placeholder:!1, revert:!1, scroll:!0, scrollSensitivity:20, scrollSpeed:20, scope:"default", tolerance:"intersect", zIndex:1e3, activate:null, beforeStop:null, change:null, deactivate:null, out:null, over:null, receive:null, remove:null, sort:null, start:null, stop:null, update:null}, _isOverAxis:function(t, e, i){return e <= t && t < e + i}, _isFloating:function(t){return/left|right/.test(t.css("float")) || /inline|table-cell/.test(t.css("display"))}, _create:function(){this.containerCache = {}, this._addClass("ui-sortable"), this.refresh(), this.offset = this.element.offset(), this._mouseInit(), this._setHandleClassName(), this.ready = !0}, _setOption:function(t, e){this._super(t, e), "handle" === t && this._setHandleClassName()}, _setHandleClassName:function(){var t = this; this._removeClass(this.element.find(".ui-sortable-handle"), "ui-sortable-handle"), y.each(this.items, function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item, "ui-sortable-handle")})}, _destroy:function(){this._mouseDestroy(); for (var t = this.items.length - 1; 0 <= t; t--)this.items[t].item.removeData(this.widgetName + "-item"); return this}, _mouseCapture:function(t, e){var i = null, s = !1, o = this; return!this.reverting && (!this.options.disabled && "static" !== this.options.type && (this._refreshItems(t), y(t.target).parents().each(function(){if (y.data(this, o.widgetName + "-item") === o)return i = y(this), !1}), !!(i = y.data(t.target, o.widgetName + "-item") === o?y(t.target):i) && (!(this.options.handle && !e && (y(this.options.handle, i).find("*").addBack().each(function(){this === t.target && (s = !0)}), !s)) && (this.currentItem = i, this._removeCurrentsFromItems(), !0))))}, _mouseStart:function(t, e, i){var s, o, n = this.options; if ((this.currentContainer = this).refreshPositions(), this.helper = this._createHelper(t), this._cacheHelperProportions(), this._cacheMargins(), this.scrollParent = this.helper.scrollParent(), this.offset = this.currentItem.offset(), this.offset = {top:this.offset.top - this.margins.top, left:this.offset.left - this.margins.left}, y.extend(this.offset, {click:{left:t.pageX - this.offset.left, top:t.pageY - this.offset.top}, parent:this._getParentOffset(), relative:this._getRelativeOffset()}), this.helper.css("position", "absolute"), this.cssPosition = this.helper.css("position"), this.originalPosition = this._generatePosition(t), this.originalPageX = t.pageX, this.originalPageY = t.pageY, n.cursorAt && this._adjustOffsetFromHelper(n.cursorAt), this.domPosition = {prev:this.currentItem.prev()[0], parent:this.currentItem.parent()[0]}, this.helper[0] !== this.currentItem[0] && this.currentItem.hide(), this._createPlaceholder(), n.containment && this._setContainment(), n.cursor && "auto" !== n.cursor && (o = this.document.find("body"), this.storedCursor = o.css("cursor"), o.css("cursor", n.cursor), this.storedStylesheet = y("<style>*{ cursor: " + n.cursor + " !important; }</style>").appendTo(o)), n.opacity && (this.helper.css("opacity") && (this._storedOpacity = this.helper.css("opacity")), this.helper.css("opacity", n.opacity)), n.zIndex && (this.helper.css("zIndex") && (this._storedZIndex = this.helper.css("zIndex")), this.helper.css("zIndex", n.zIndex)), this.scrollParent[0] !== this.document[0] && "HTML" !== this.scrollParent[0].tagName && (this.overflowOffset = this.scrollParent.offset()), this._trigger("start", t, this._uiHash()), this._preserveHelperProportions || this._cacheHelperProportions(), !i)for (s = this.containers.length - 1; 0 <= s; s--)this.containers[s]._trigger("activate", t, this._uiHash(this)); return y.ui.ddmanager && (y.ui.ddmanager.current = this), y.ui.ddmanager && !n.dropBehaviour && y.ui.ddmanager.prepareOffsets(this, t), this.dragging = !0, this._addClass(this.helper, "ui-sortable-helper"), this._mouseDrag(t), !0}, _mouseDrag:function(t){var e, i, s, o, n = this.options, r = !1; for (this.position = this._generatePosition(t), this.positionAbs = this._convertPositionTo("absolute"), this.lastPositionAbs || (this.lastPositionAbs = this.positionAbs), this.options.scroll && (this.scrollParent[0] !== this.document[0] && "HTML" !== this.scrollParent[0].tagName?(this.overflowOffset.top + this.scrollParent[0].offsetHeight - t.pageY < n.scrollSensitivity?this.scrollParent[0].scrollTop = r = this.scrollParent[0].scrollTop + n.scrollSpeed:t.pageY - this.overflowOffset.top < n.scrollSensitivity && (this.scrollParent[0].scrollTop = r = this.scrollParent[0].scrollTop - n.scrollSpeed), this.overflowOffset.left + this.scrollParent[0].offsetWidth - t.pageX < n.scrollSensitivity?this.scrollParent[0].scrollLeft = r = this.scrollParent[0].scrollLeft + n.scrollSpeed:t.pageX - this.overflowOffset.left < n.scrollSensitivity && (this.scrollParent[0].scrollLeft = r = this.scrollParent[0].scrollLeft - n.scrollSpeed)):(t.pageY - this.document.scrollTop() < n.scrollSensitivity?r = this.document.scrollTop(this.document.scrollTop() - n.scrollSpeed):this.window.height() - (t.pageY - this.document.scrollTop()) < n.scrollSensitivity && (r = this.document.scrollTop(this.document.scrollTop() + n.scrollSpeed)), t.pageX - this.document.scrollLeft() < n.scrollSensitivity?r = this.document.scrollLeft(this.document.scrollLeft() - n.scrollSpeed):this.window.width() - (t.pageX - this.document.scrollLeft()) < n.scrollSensitivity && (r = this.document.scrollLeft(this.document.scrollLeft() + n.scrollSpeed))), !1 !== r && y.ui.ddmanager && !n.dropBehaviour && y.ui.ddmanager.prepareOffsets(this, t)), this.positionAbs = this._convertPositionTo("absolute"), this.options.axis && "y" === this.options.axis || (this.helper[0].style.left = this.position.left + "px"), this.options.axis && "x" === this.options.axis || (this.helper[0].style.top = this.position.top + "px"), e = this.items.length - 1; 0 <= e; e--)if (s = (i = this.items[e]).item[0], (o = this._intersectsWithPointer(i)) && i.instance === this.currentContainer && !(s === this.currentItem[0] || this.placeholder[1 === o?"next":"prev"]()[0] === s || y.contains(this.placeholder[0], s) || "semi-dynamic" === this.options.type && y.contains(this.element[0], s))){if (this.direction = 1 === o?"down":"up", "pointer" !== this.options.tolerance && !this._intersectsWithSides(i))break; this._rearrange(t, i), this._trigger("change", t, this._uiHash()); break}return this._contactContainers(t), y.ui.ddmanager && y.ui.ddmanager.drag(this, t), this._trigger("sort", t, this._uiHash()), this.lastPositionAbs = this.positionAbs, !1}, _mouseStop:function(t, e){var i, s, o, n; if (t)return y.ui.ddmanager && !this.options.dropBehaviour && y.ui.ddmanager.drop(this, t), this.options.revert?(s = (i = this).placeholder.offset(), n = {}, (o = this.options.axis) && "x" !== o || (n.left = s.left - this.offset.parent.left - this.margins.left + (this.offsetParent[0] === this.document[0].body?0:this.offsetParent[0].scrollLeft)), o && "y" !== o || (n.top = s.top - this.offset.parent.top - this.margins.top + (this.offsetParent[0] === this.document[0].body?0:this.offsetParent[0].scrollTop)), this.reverting = !0, y(this.helper).animate(n, parseInt(this.options.revert, 10) || 500, function(){i._clear(t)})):this._clear(t, e), !1}, cancel:function(){if (this.dragging){this._mouseUp(new y.Event("mouseup", {target:null})), "original" === this.options.helper?(this.currentItem.css(this._storedCSS), this._removeClass(this.currentItem, "ui-sortable-helper")):this.currentItem.show(); for (var t = this.containers.length - 1; 0 <= t; t--)this.containers[t]._trigger("deactivate", null, this._uiHash(this)), this.containers[t].containerCache.over && (this.containers[t]._trigger("out", null, this._uiHash(this)), this.containers[t].containerCache.over = 0)}return this.placeholder && (this.placeholder[0].parentNode && this.placeholder[0].parentNode.removeChild(this.placeholder[0]), "original" !== this.options.helper && this.helper && this.helper[0].parentNode && this.helper.remove(), y.extend(this, {helper:null, dragging:!1, reverting:!1, _noFinalSort:null}), this.domPosition.prev?y(this.domPosition.prev).after(this.currentItem):y(this.domPosition.parent).prepend(this.currentItem)), this}, serialize:function(e){var t = this._getItemsAsjQuery(e && e.connected), i = []; return e = e || {}, y(t).each(function(){var t = (y(e.item || this).attr(e.attribute || "id") || "").match(e.expression || /(.+)[\-=_](.+)/); t && i.push((e.key || t[1] + "[]") + "=" + (e.key && e.expression?t[1]:t[2]))}), !i.length && e.key && i.push(e.key + "="), i.join("&")}, toArray:function(t){var e = this._getItemsAsjQuery(t && t.connected), i = []; return t = t || {}, e.each(function(){i.push(y(t.item || this).attr(t.attribute || "id") || "")}), i}, _intersectsWith:function(t){var e = this.positionAbs.left, i = e + this.helperProportions.width, s = this.positionAbs.top, o = s + this.helperProportions.height, n = t.left, r = n + t.width, h = t.top, a = h + t.height, l = this.offset.click.top, c = this.offset.click.left, l = "x" === this.options.axis || h < s + l && s + l < a, c = "y" === this.options.axis || n < e + c && e + c < r; return"pointer" === this.options.tolerance || this.options.forcePointerForContainers || "pointer" !== this.options.tolerance && this.helperProportions[this.floating?"width":"height"] > t[this.floating?"width":"height"]?l && c:n < e + this.helperProportions.width / 2 && i - this.helperProportions.width / 2 < r && h < s + this.helperProportions.height / 2 && o - this.helperProportions.height / 2 < a}, _intersectsWithPointer:function(t){var e = "x" === this.options.axis || this._isOverAxis(this.positionAbs.top + this.offset.click.top, t.top, t.height), t = "y" === this.options.axis || this._isOverAxis(this.positionAbs.left + this.offset.click.left, t.left, t.width); return!(!e || !t) && (e = this._getDragVerticalDirection(), t = this._getDragHorizontalDirection(), this.floating?"right" === t || "down" === e?2:1:e && ("down" === e?2:1))}, _intersectsWithSides:function(t){var e = this._isOverAxis(this.positionAbs.top + this.offset.click.top, t.top + t.height / 2, t.height), i = this._isOverAxis(this.positionAbs.left + this.offset.click.left, t.left + t.width / 2, t.width), s = this._getDragVerticalDirection(), t = this._getDragHorizontalDirection(); return this.floating && t?"right" === t && i || "left" === t && !i:s && ("down" === s && e || "up" === s && !e)}, _getDragVerticalDirection:function(){var t = this.positionAbs.top - this.lastPositionAbs.top; return 0 != t && (0 < t?"down":"up")}, _getDragHorizontalDirection:function(){var t = this.positionAbs.left - this.lastPositionAbs.left; return 0 != t && (0 < t?"right":"left")}, refresh:function(t){return this._refreshItems(t), this._setHandleClassName(), this.refreshPositions(), this}, _connectWith:function(){var t = this.options;
vendor: 2,601 bytes, line 6
6 return t.connectWith.constructor === String?[t.connectWith]:t.connectWith}, _getItemsAsjQuery:function(t){var e, i, s, o, n = [], r = [], h = this._connectWith(); if (h && t)for (e = h.length - 1; 0 <= e; e--)for (i = (s = y(h[e], this.document[0])).length - 1; 0 <= i; i--)(o = y.data(s[i], this.widgetFullName)) && o !== this && !o.options.disabled && r.push([y.isFunction(o.options.items)?o.options.items.call(o.element):y(o.options.items, o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"), o]); function a(){n.push(this)}for (r.push([y.isFunction(this.options.items)?this.options.items.call(this.element, null, {options:this.options, item:this.currentItem}):y(this.options.items, this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"), this]), e = r.length - 1; 0 <= e; e--)r[e][0].each(a); return y(n)}, _removeCurrentsFromItems:function(){var i = this.currentItem.find(":data(" + this.widgetName + "-item)"); this.items = y.grep(this.items, function(t){for (var e = 0; e < i.length; e++)if (i[e] === t.item[0])return!1; return!0})}, _refreshItems:function(t){this.items = [], this.containers = [this]; var e, i, s, o, n, r, h, a, l = this.items, c = [[y.isFunction(this.options.items)?this.options.items.call(this.element[0], t, {item:this.currentItem}):y(this.options.items, this.element), this]], p = this._connectWith(); if (p && this.ready)for (e = p.length - 1; 0 <= e; e--)for (i = (s = y(p[e], this.document[0])).length - 1; 0 <= i; i--)(o = y.data(s[i], this.widgetFullName)) && o !== this && !o.options.disabled && (c.push([y.isFunction(o.options.items)?o.options.items.call(o.element[0], t, {item:this.currentItem}):y(o.options.items, o.element), o]), this.containers.push(o)); for (e = c.length - 1; 0 <= e; e--)for (n = c[e][1], a = (r = c[e][i = 0]).length; i < a; i++)(h = y(r[i])).data(this.widgetName + "-item", n), l.push({item:h, instance:n, width:0, height:0, left:0, top:0})}, refreshPositions:function(t){var e, i, s, o; for (this.floating = !!this.items.length && ("x" === this.options.axis || this._isFloating(this.items[0].item)), this.offsetParent && this.helper && (this.offset.parent = this._getParentOffset()), e = this.items.length - 1; 0 <= e; e--)(i = this.items[e]).instance !== this.currentContainer && this.currentContainer && i.item[0] !== this.currentItem[0] || (s = this.options.toleranceElement?y(this.options.toleranceElement, i.item):i.item, t || (i.width = s.outerWidth(), i.height = s.outerHeight()), o = s.offset(), i.left = o.left, i.top = o.top); if (this.options.custom && this.options.custom.refreshContainers
vendor: 1,166 bytes, line 6
6)this.options.custom.refreshContainers.call(this); else for (e = this.containers.length - 1; 0 <= e; e--)o = this.containers[e].element.offset(), this.containers[e].containerCache.left = o.left, this.containers[e].containerCache.top = o.top, this.containers[e].containerCache.width = this.containers[e].element.outerWidth(), this.containers[e].containerCache.height = this.containers[e].element.outerHeight(); return this}, _createPlaceholder:function(i){var s, o = (i = i || this).options; o.placeholder && o.placeholder.constructor !== String || (s = o.placeholder, o.placeholder = {element:function(){var t = i.currentItem[0].nodeName.toLowerCase(), e = y("<" + t + ">", i.document[0]); return i._addClass(e, "ui-sortable-placeholder", s || i.currentItem[0].className)._removeClass(e, "ui-sortable-helper"), "tbody" === t?i._createTrPlaceholder(i.currentItem.find("tr").eq(0), y("<tr>", i.document[0]).appendTo(e)):"tr" === t?i._createTrPlaceholder(i.currentItem, e):"img" === t && e.attr("src", i.currentItem.attr("src")), s || e.css("visibility", "hidden"), e}, update:function(t, e){s && !o.forcePlaceholderSize || (e.height() || e.height(i.currentItem.innerHe
vendor: 10,601 bytes, line 6
6ight() - parseInt(i.currentItem.css("paddingTop") || 0, 10) - parseInt(i.currentItem.css("paddingBottom") || 0, 10)), e.width() || e.width(i.currentItem.innerWidth() - parseInt(i.currentItem.css("paddingLeft") || 0, 10) - parseInt(i.currentItem.css("paddingRight") || 0, 10)))}}), i.placeholder = y(o.placeholder.element.call(i.element, i.currentItem)), i.currentItem.after(i.placeholder), o.placeholder.update(i, i.placeholder)}, _createTrPlaceholder:function(t, e){var i = this; t.children().each(function(){y("<td>&#160;</td>", i.document[0]).attr("colspan", y(this).attr("colspan") || 1).appendTo(e)})}, _contactContainers:function(t){for (var e, i, s, o, n, r, h, a, l, c = null, p = null, f = this.containers.length - 1; 0 <= f; f--)y.contains(this.currentItem[0], this.containers[f].element[0]) || (this._intersectsWith(this.containers[f].containerCache)?c && y.contains(this.containers[f].element[0], c.element[0]) || (c = this.containers[f], p = f):this.containers[f].containerCache.over && (this.containers[f]._trigger("out", t, this._uiHash(this)), this.containers[f].containerCache.over = 0)); if (c)if (1 === this.containers.length)this.containers[p].containerCache.over || (this.containers[p]._trigger("over", t, this._uiHash(this)), this.containers[p].containerCache.over = 1); else{for (i = 1e4, s = null, o = (a = c.floating || this._isFloating(this.currentItem))?"left":"top", n = a?"width":"height", l = a?"pageX":"pageY", e = this.items.length - 1; 0 <= e; e--)y.contains(this.containers[p].element[0], this.items[e].item[0]) && this.items[e].item[0] !== this.currentItem[0] && (r = this.items[e].item.offset()[o], h = !1, t[l] - r > this.items[e][n] / 2 && (h = !0), Math.abs(t[l] - r) < i && (i = Math.abs(t[l] - r), s = this.items[e], this.direction = h?"up":"down")); (s || this.options.dropOnEmpty) && (this.currentContainer !== this.containers[p]?(s?this._rearrange(t, s, null, !0):this._rearrange(t, null, this.containers[p].element, !0), this._trigger("change", t, this._uiHash()), this.containers[p]._trigger("change", t, this._uiHash(this)), this.currentContainer = this.containers[p], this.options.placeholder.update(this.currentContainer, this.placeholder), this.containers[p]._trigger("over", t, this._uiHash(this)), this.containers[p].containerCache.over = 1):this.currentContainer.containerCache.over || (this.containers[p]._trigger("over", t, this._uiHash()), this.currentContainer.containerCache.over = 1))}}, _createHelper:function(t){var e = this.options, t = y.isFunction(e.helper)?y(e.helper.apply(this.element[0], [t, this.currentItem])):"clone" === e.helper?this.currentItem.clone():this.currentItem; return t.parents("body").length || y("parent" !== e.appendTo?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(t[0]), t[0] === this.currentItem[0] && (this._storedCSS = {width:this.currentItem[0].style.width, height:this.currentItem[0].style.height, position:this.currentItem.css("position"), top:this.currentItem.css("top"), left:this.currentItem.css("left")}), t[0].style.width && !e.forceHelperSize || t.width(this.currentItem.width()), t[0].style.height && !e.forceHelperSize || t.height(this.currentItem.height()), t}, _adjustOffsetFromHelper:function(t){"string" == typeof t && (t = t.split(" ")), "left"in(t = y.isArray(t)?{left: + t[0], top: + t[1] || 0}:t) && (this.offset.click.left = t.left + this.margins.left), "right"in t && (this.offset.click.left = this.helperProportions.width - t.right + this.margins.left), "top"in t && (this.offset.click.top = t.top + this.margins.top), "bottom"in t && (this.offset.click.top = this.helperProportions.height - t.bottom + this.margins.top)}, _getParentOffset:function(){this.offsetParent = this.helper.offsetParent(); var t = this.offsetParent.offset(); return"absolute" === this.cssPosition && this.scrollParent[0] !== this.document[0] && y.contains(this.scrollParent[0], this.offsetParent[0]) && (t.left += this.scrollParent.scrollLeft(), t.top += this.scrollParent.scrollTop()), {top:(t = this.offsetParent[0] === this.document[0].body || this.offsetParent[0].tagName && "html" === this.offsetParent[0].tagName.toLowerCase() && y.ui.ie?{top:0, left:0}:t).top + (parseInt(this.offsetParent.css("borderTopWidth"), 10) || 0), left:t.left + (parseInt(this.offsetParent.css("borderLeftWidth"), 10) || 0)}}, _getRelativeOffset:function(){if ("relative" !== this.cssPosition)return{top:0, left:0}; var t = this.currentItem.position(); return{top:t.top - (parseInt(this.helper.css("top"), 10) || 0) + this.scrollParent.scrollTop(), left:t.left - (parseInt(this.helper.css("left"), 10) || 0) + this.scrollParent.scrollLeft()}}, _cacheMargins:function(){this.margins = {left:parseInt(this.currentItem.css("marginLeft"), 10) || 0, top:parseInt(this.currentItem.css("marginTop"), 10) || 0}}, _cacheHelperProportions:function(){this.helperProportions = {width:this.helper.outerWidth(), height:this.helper.outerHeight()}}, _setContainment:function(){var t, e, i = this.options; "parent" === i.containment && (i.containment = this.helper[0].parentNode), "document" !== i.containment && "window" !== i.containment || (this.containment = [0 - this.offset.relative.left - this.offset.parent.left, 0 - this.offset.relative.top - this.offset.parent.top, "document" === i.containment?this.document.width():this.window.width() - this.helperProportions.width - this.margins.left, ("document" === i.containment?this.document.height() || document.body.parentNode.scrollHeight:this.window.height() || this.document[0].body.parentNode.scrollHeight) - this.helperProportions.height - this.margins.top]), /^(document|window|parent)$/.test(i.containment) || (t = y(i.containment)[0], e = y(i.containment).offset(), i = "hidden" !== y(t).css("overflow"), this.containment = [e.left + (parseInt(y(t).css("borderLeftWidth"), 10) || 0) + (parseInt(y(t).css("paddingLeft"), 10) || 0) - this.margins.left, e.top + (parseInt(y(t).css("borderTopWidth"), 10) || 0) + (parseInt(y(t).css("paddingTop"), 10) || 0) - this.margins.top, e.left + (i?Math.max(t.scrollWidth, t.offsetWidth):t.offsetWidth) - (parseInt(y(t).css("borderLeftWidth"), 10) || 0) - (parseInt(y(t).css("paddingRight"), 10) || 0) - this.helperProportions.width - this.margins.left, e.top + (i?Math.max(t.scrollHeight, t.offsetHeight):t.offsetHeight) - (parseInt(y(t).css("borderTopWidth"), 10) || 0) - (parseInt(y(t).css("paddingBottom"), 10) || 0) - this.helperProportions.height - this.margins.top])}, _convertPositionTo:function(t, e){e = e || this.position; var i = "absolute" === t?1: - 1, s = "absolute" !== this.cssPosition || this.scrollParent[0] !== this.document[0] && y.contains(this.scrollParent[0], this.offsetParent[0])?this.scrollParent:this.offsetParent, t = /(html|body)/i.test(s[0].tagName); return{top:e.top + this.offset.relative.top * i + this.offset.parent.top * i - ("fixed" === this.cssPosition? - this.scrollParent.scrollTop():t?0:s.scrollTop()) * i, left:e.left + this.offset.relative.left * i + this.offset.parent.left * i - ("fixed" === this.cssPosition? - this.scrollParent.scrollLeft():t?0:s.scrollLeft()) * i}}, _generatePosition:function(t){var e = this.options, i = t.pageX, s = t.pageY, o = "absolute" !== this.cssPosition || this.scrollParent[0] !== this.document[0] && y.contains(this.scrollParent[0], this.offsetParent[0])?this.scrollParent:this.offsetParent, n = /(html|body)/i.test(o[0].tagName); return"relative" !== this.cssPosition || this.scrollParent[0] !== this.document[0] && this.scrollParent[0] !== this.offsetParent[0] || (this.offset.relative = this._getRelativeOffset()), this.originalPosition && (this.containment && (t.pageX - this.offset.click.left < this.containment[0] && (i = this.containment[0] + this.offset.click.left), t.pageY - this.offset.click.top < this.containment[1] && (s = this.containment[1] + this.offset.click.top), t.pageX - this.offset.click.left > this.containment[2] && (i = this.containment[2] + this.offset.click.left), t.pageY - this.offset.click.top > this.containment[3] && (s = this.containment[3] + this.offset.click.top)), e.grid && (t = this.originalPageY + Math.round((s - this.originalPageY) / e.grid[1]) * e.grid[1], s = !this.containment || t - this.offset.click.top >= this.containment[1] && t - this.offset.click.top <= this.containment[3]?t:t - this.offset.click.top >= this.containment[1]?t - e.grid[1]:t + e.grid[1], t = this.originalPageX + Math.round((i - this.originalPageX) / e.grid[0]) * e.grid[0], i = !this.containment || t - this.offset.click.left >= this.containment[0] && t - this.offset.click.left <= this.containment[2]?t:t - this.offset.click.left >= this.containment[0]?t - e.grid[0]:t + e.grid[0])), {top:s - this.offset.click.top - this.offset.relative.top - this.offset.parent.top + ("fixed" === this.cssPosition? - this.scrollParent.scrollTop():n?0:o.scrollTop()), left:i - this.offset.click.left - this.offset.relative.left - this.offset.parent.left + ("fixed" === this.cssPosition? - this.scrollParent.scrollLeft():n?0:o.scrollLeft())}}, _rearrange:function(t, e, i, s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0], "down" === this.direction?e.item[0]:e.item[0].nextSibling), this.counter = this.counter?++this.counter:1; var o = this.counter; this._delay(function(){o === this.counter && this.refreshPositions(!s)})}, _clear:function(t, e){this.reverting = !1; var i, s = []; if (!this._noFinalSort && this.currentItem.parent().length && this.placeholder.before(this.currentItem), this._noFinalSort = null, this.helper[0] === this.currentItem[0]){for (i in this._storedCSS)"auto" !== this._storedCSS[i] && "static" !== this._storedCSS[i] || (this._storedCSS[i] = ""); this.currentItem.css(this._storedCSS), this._removeClass(this.currentItem, "ui-sortable-helper")} else this.currentItem.show(); function o(e, i, s){return function(t){s._trigger(e, t, i._uiHash(i))}}for (this.fromOutside && !e && s.push(function(t){this._trigger("receive", t, this._uiHash(this.fromOutside))}), !this.fromOutside && this.domPosition.prev === this.currentItem.prev().not(".ui-sortable-helper")[0] && this.domPosition.parent === this.currentItem.parent()[0] || e || s.push(function(t){this._trigger("update", t, this._uiHash())}), this !== this.currentContainer && (e || (s.push(function(t){this._trigger("remove", t, this._uiHash())}), s.push(function(e){return function(t){e._trigger("receive", t, this._uiHash(this))}}.call(this, this.currentContainer)), s.push(function(e){return function(t){e._trigger("update", t, this._uiHash(this))}}.call(this, this.currentContainer)))), i = this.containers.length - 1; 0 <= i;
vendor: 1,219 bytes, line 6
6 i--)e || s.push(o("deactivate", this, this.containers[i])), this.containers[i].containerCache.over && (s.push(o("out", this, this.containers[i])), this.containers[i].containerCache.over = 0); if (this.storedCursor && (this.document.find("body").css("cursor", this.storedCursor), this.storedStylesheet.remove()), this._storedOpacity && this.helper.css("opacity", this._storedOpacity), this._storedZIndex && this.helper.css("zIndex", "auto" === this._storedZIndex?"":this._storedZIndex), this.dragging = !1, e || this._trigger("beforeStop", t, this._uiHash()), this.placeholder[0].parentNode.removeChild(this.placeholder[0]), this.cancelHelperRemoval || (this.helper[0] !== this.currentItem[0] && this.helper.remove(), this.helper = null), !e){for (i = 0; i < s.length; i++)s[i].call(this, t); this._trigger("stop", t, this._uiHash())}return this.fromOutside = !1, !this.cancelHelperRemoval}, _trigger:function(){!1 === y.Widget.prototype._trigger.apply(this, arguments) && this.cancel()}, _uiHash:function(t){var e = t || this; return{helper:e.helper, placeholder:e.placeholder || y([]), position:e.position, originalPosition:e.originalPosition, offset:e.positionAbs, item:e.currentItem, sender:t?t.element:null}}})});

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.