'),
A.setDate(A.getDate() + 1),
(A = this._daylightSavingAdjust(A));
C += Y + '
';
}
++Z > 11 && ((Z = 0), tt++),
(D += C +=
'
' +
(J
? '
' +
(Q[0] > 0 && P === Q[1] - 1
? ""
: '')
: ''));
}
k += D;
}
return (k += l), (t._keyEvent = !1), k;
},
_generateMonthYearHeader: function (t, e, i, s, n, o, r, a) {
var h,
l,
c,
p,
d,
u,
f,
g,
m = this._get(t, 'changeMonth'),
_ = this._get(t, 'changeYear'),
v = this._get(t, 'showMonthAfterYear'),
y = "
",
k = '';
if (o || !m)
k +=
"" + r[e] + '';
else {
for (
h = s && s.getFullYear() === i,
l = n && n.getFullYear() === i,
k +=
"';
}
if (
(v || (y += k + (!o && m && _ ? '' : ' ')),
!t.yearshtml)
)
if (((t.yearshtml = ''), o || !_))
y +=
"" + i + '';
else {
for (
p = this._get(t, 'yearRange').split(':'),
d = new Date().getFullYear(),
f = (u = function (t) {
var e = t.match(/c[+\-].*/)
? i + parseInt(t.substring(1), 10)
: t.match(/[+\-].*/)
? d + parseInt(t, 10)
: parseInt(t, 10);
return isNaN(e) ? d : e;
})(p[0]),
g = Math.max(f, u(p[1] || '')),
f = s ? Math.max(f, s.getFullYear()) : f,
g = n ? Math.min(g, n.getFullYear()) : g,
t.yearshtml +=
"'),
(y += t.yearshtml),
(t.yearshtml = null);
}
return (
(y += this._get(t, 'yearSuffix')),
v && (y += (!o && m && _ ? '' : ' ') + k),
(y += '
')
);
},
_adjustInstDate: function (t, e, i) {
var s = t.selectedYear + ('Y' === i ? e : 0),
n = t.selectedMonth + ('M' === i ? e : 0),
o =
Math.min(t.selectedDay, this._getDaysInMonth(s, n)) +
('D' === i ? e : 0),
r = this._restrictMinMax(
t,
this._daylightSavingAdjust(new Date(s, n, o)),
);
(t.selectedDay = r.getDate()),
(t.drawMonth = t.selectedMonth = r.getMonth()),
(t.drawYear = t.selectedYear = r.getFullYear()),
('M' !== i && 'Y' !== i) || this._notifyChange(t);
},
_restrictMinMax: function (t, e) {
var i = this._getMinMaxDate(t, 'min'),
s = this._getMinMaxDate(t, 'max'),
n = i && e < i ? i : e;
return s && n > s ? s : n;
},
_notifyChange: function (t) {
var e = this._get(t, 'onChangeMonthYear');
e &&
e.apply(t.input ? t.input[0] : null, [
t.selectedYear,
t.selectedMonth + 1,
t,
]);
},
_getNumberOfMonths: function (t) {
var e = this._get(t, 'numberOfMonths');
return null == e
? [1, 1]
: 'number' == typeof e
? [1, e]
: e;
},
_getMinMaxDate: function (t, e) {
return this._determineDate(
t,
this._get(t, e + 'Date'),
null,
);
},
_getDaysInMonth: function (t, e) {
return (
32 -
this._daylightSavingAdjust(new Date(t, e, 32)).getDate()
);
},
_getFirstDayOfMonth: function (t, e) {
return new Date(t, e, 1).getDay();
},
_canAdjustMonth: function (t, e, i, s) {
var n = this._getNumberOfMonths(t),
o = this._daylightSavingAdjust(
new Date(i, s + (e < 0 ? e : n[0] * n[1]), 1),
);
return (
e < 0 &&
o.setDate(
this._getDaysInMonth(o.getFullYear(), o.getMonth()),
),
this._isInRange(t, o)
);
},
_isInRange: function (t, e) {
var i,
s,
n = this._getMinMaxDate(t, 'min'),
o = this._getMinMaxDate(t, 'max'),
r = null,
a = null,
h = this._get(t, 'yearRange');
return (
h &&
((i = h.split(':')),
(s = new Date().getFullYear()),
(r = parseInt(i[0], 10)),
(a = parseInt(i[1], 10)),
i[0].match(/[+\-].*/) && (r += s),
i[1].match(/[+\-].*/) && (a += s)),
(!n || e.getTime() >= n.getTime()) &&
(!o || e.getTime() <= o.getTime()) &&
(!r || e.getFullYear() >= r) &&
(!a || e.getFullYear() <= a)
);
},
_getFormatConfig: function (t) {
var e = this._get(t, 'shortYearCutoff');
return {
shortYearCutoff: (e =
'string' != typeof e
? e
: (new Date().getFullYear() % 100) + parseInt(e, 10)),
dayNamesShort: this._get(t, 'dayNamesShort'),
dayNames: this._get(t, 'dayNames'),
monthNamesShort: this._get(t, 'monthNamesShort'),
monthNames: this._get(t, 'monthNames'),
};
},
_formatDate: function (t, e, i, s) {
e ||
((t.currentDay = t.selectedDay),
(t.currentMonth = t.selectedMonth),
(t.currentYear = t.selectedYear));
var n = e
? 'object' == typeof e
? e
: this._daylightSavingAdjust(new Date(s, i, e))
: this._daylightSavingAdjust(
new Date(t.currentYear, t.currentMonth, t.currentDay),
);
return this.formatDate(
this._get(t, 'dateFormat'),
n,
this._getFormatConfig(t),
);
},
}),
(t.fn.datepicker = function (e) {
if (!this.length) return this;
t.datepicker.initialized ||
(t(document).on(
'mousedown',
t.datepicker._checkExternalClick,
),
(t.datepicker.initialized = !0)),
0 === t('#' + t.datepicker._mainDivId).length &&
t('body').append(t.datepicker.dpDiv);
var i = Array.prototype.slice.call(arguments, 1);
return 'string' != typeof e ||
('isDisabled' !== e && 'getDate' !== e && 'widget' !== e)
? 'option' === e &&
2 === arguments.length &&
'string' == typeof arguments[1]
? t.datepicker['_' + e + 'Datepicker'].apply(
t.datepicker,
[this[0]].concat(i),
)
: this.each(function () {
'string' == typeof e
? t.datepicker['_' + e + 'Datepicker'].apply(
t.datepicker,
[this].concat(i),
)
: t.datepicker._attachDatepicker(this, e);
})
: t.datepicker['_' + e + 'Datepicker'].apply(
t.datepicker,
[this[0]].concat(i),
);
}),
(t.datepicker = new i()),
(t.datepicker.initialized = !1),
(t.datepicker.uuid = new Date().getTime()),
(t.datepicker.version = '1.12.1'),
t.datepicker
);
})
? s.apply(e, n)
: s) || (t.exports = o);
},
alHQ: function (t, e, i) {
var s, n, o;
(n = [i('P5fv'), i('Qwlt')]),
void 0 ===
(o =
'function' ==
typeof (s = function (t) {
return (t.ui.plugin = {
add: function (e, i, s) {
var n,
o = t.ui[e].prototype;
for (n in s)
(o.plugins[n] = o.plugins[n] || []),
o.plugins[n].push([i, s[n]]);
},
call: function (t, e, i, s) {
var n,
o = t.plugins[e];
if (
o &&
(s ||
(t.element[0].parentNode &&
11 !== t.element[0].parentNode.nodeType))
)
for (n = 0; n < o.length; n++)
t.options[o[n][0]] && o[n][1].apply(t.element, i);
},
});
})
? s.apply(e, n)
: s) || (t.exports = o);
},
chtW: function (t, e, i) {
var s, n, o;
(n = [
i('P5fv'),
i('iGnl'),
i('CumE'),
i('alHQ'),
i('yw1R'),
i('yM/z'),
i('8Iik'),
i('Qwlt'),
i('MIQu'),
]),
void 0 ===
(o =
'function' ==
typeof (s = function (t) {
return (
t.widget('ui.draggable', t.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 (e) {
var i = this.options;
return !(
this.helper ||
i.disabled ||
t(e.target).closest('.ui-resizable-handle').length > 0 ||
((this.handle = this._getHandle(e)),
!this.handle ||
(this._blurActiveElement(e),
this._blockFrames(
!0 === i.iframeFix ? 'iframe' : i.iframeFix,
),
0))
);
},
_blockFrames: function (e) {
this.iframeBlocks = this.document.find(e).map(function () {
var e = t(this);
return t('
')
.css('position', 'absolute')
.appendTo(e.parent())
.outerWidth(e.outerWidth())
.outerHeight(e.outerHeight())
.offset(e.offset())[0];
});
},
_unblockFrames: function () {
this.iframeBlocks &&
(this.iframeBlocks.remove(), delete this.iframeBlocks);
},
_blurActiveElement: function (e) {
var i = t.ui.safeActiveElement(this.document[0]);
t(e.target).closest(i).length || t.ui.safeBlur(i);
},
_mouseStart: function (e) {
var i = this.options;
return (
(this.helper = this._createHelper(e)),
this._addClass(this.helper, 'ui-draggable-dragging'),
this._cacheHelperProportions(),
t.ui.ddmanager && (t.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 =
this.helper.parents().filter(function () {
return 'fixed' === t(this).css('position');
}).length > 0),
(this.positionAbs = this.element.offset()),
this._refreshOffsets(e),
(this.originalPosition = this.position = this._generatePosition(
e,
!1,
)),
(this.originalPageX = e.pageX),
(this.originalPageY = e.pageY),
i.cursorAt && this._adjustOffsetFromHelper(i.cursorAt),
this._setContainment(),
!1 === this._trigger('start', e)
? (this._clear(), !1)
: (this._cacheHelperProportions(),
t.ui.ddmanager &&
!i.dropBehaviour &&
t.ui.ddmanager.prepareOffsets(this, e),
this._mouseDrag(e, !0),
t.ui.ddmanager && t.ui.ddmanager.dragStart(this, e),
!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 (e, i) {
if (
(this.hasFixedAncestor &&
(this.offset.parent = this._getParentOffset()),
(this.position = this._generatePosition(e, !0)),
(this.positionAbs = this._convertPositionTo('absolute')),
!i)
) {
var s = this._uiHash();
if (!1 === this._trigger('drag', e, s))
return this._mouseUp(new t.Event('mouseup', e)), !1;
this.position = s.position;
}
return (
(this.helper[0].style.left = this.position.left + 'px'),
(this.helper[0].style.top = this.position.top + 'px'),
t.ui.ddmanager && t.ui.ddmanager.drag(this, e),
!1
);
},
_mouseStop: function (e) {
var i = this,
s = !1;
return (
t.ui.ddmanager &&
!this.options.dropBehaviour &&
(s = t.ui.ddmanager.drop(this, e)),
this.dropped && ((s = this.dropped), (this.dropped = !1)),
('invalid' === this.options.revert && !s) ||
('valid' === this.options.revert && s) ||
!0 === this.options.revert ||
(t.isFunction(this.options.revert) &&
this.options.revert.call(this.element, s))
? t(this.helper).animate(
this.originalPosition,
parseInt(this.options.revertDuration, 10),
function () {
!1 !== i._trigger('stop', e) && i._clear();
},
)
: !1 !== this._trigger('stop', e) && this._clear(),
!1
);
},
_mouseUp: function (e) {
return (
this._unblockFrames(),
t.ui.ddmanager && t.ui.ddmanager.dragStop(this, e),
this.handleElement.is(e.target) &&
this.element.trigger('focus'),
t.ui.mouse.prototype._mouseUp.call(this, e)
);
},
cancel: function () {
return (
this.helper.is('.ui-draggable-dragging')
? this._mouseUp(
new t.Event('mouseup', { target: this.element[0] }),
)
: this._clear(),
this
);
},
_getHandle: function (e) {
return (
!this.options.handle ||
!!t(e.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 (e) {
var i = this.options,
s = t.isFunction(i.helper),
n = s
? t(i.helper.apply(this.element[0], [e]))
: 'clone' === i.helper
? this.element.clone().removeAttr('id')
: this.element;
return (
n.parents('body').length ||
n.appendTo(
'parent' === i.appendTo
? this.element[0].parentNode
: i.appendTo,
),
s &&
n[0] === this.element[0] &&
this._setPositionRelative(),
n[0] === this.element[0] ||
/(fixed|absolute)/.test(n.css('position')) ||
n.css('position', 'absolute'),
n
);
},
_setPositionRelative: function () {
/^(?:r|a|f)/.test(this.element.css('position')) ||
(this.element[0].style.position = 'relative');
},
_adjustOffsetFromHelper: function (e) {
'string' == typeof e && (e = e.split(' ')),
t.isArray(e) && (e = { left: +e[0], top: +e[1] || 0 }),
'left' in e &&
(this.offset.click.left = e.left + this.margins.left),
'right' in e &&
(this.offset.click.left =
this.helperProportions.width -
e.right +
this.margins.left),
'top' in e &&
(this.offset.click.top = e.top + this.margins.top),
'bottom' in e &&
(this.offset.click.top =
this.helperProportions.height -
e.bottom +
this.margins.top);
},
_isRootNode: function (t) {
return (
/(html|body)/i.test(t.tagName) || t === this.document[0]
);
},
_getParentOffset: function () {
var e = this.offsetParent.offset(),
i = this.document[0];
return (
'absolute' === this.cssPosition &&
this.scrollParent[0] !== i &&
t.contains(
this.scrollParent[0],
this.offsetParent[0],
) &&
((e.left += this.scrollParent.scrollLeft()),
(e.top += this.scrollParent.scrollTop())),
this._isRootNode(this.offsetParent[0]) &&
(e = { top: 0, left: 0 }),
{
top:
e.top +
(parseInt(
this.offsetParent.css('borderTopWidth'),
10,
) || 0),
left:
e.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 e,
i,
s,
n = this.options,
o = this.document[0];
(this.relativeContainer = null),
n.containment
? 'window' !== n.containment
? 'document' !== n.containment
? n.containment.constructor !== Array
? ('parent' === n.containment &&
(n.containment = this.helper[0].parentNode),
(s = (i = t(n.containment))[0]) &&
((e = /(scroll|auto)/.test(
i.css('overflow'),
)),
(this.containment = [
(parseInt(i.css('borderLeftWidth'), 10) ||
0) +
(parseInt(i.css('paddingLeft'), 10) || 0),
(parseInt(i.css('borderTopWidth'), 10) ||
0) +
(parseInt(i.css('paddingTop'), 10) || 0),
(e
? Math.max(s.scrollWidth, s.offsetWidth)
: s.offsetWidth) -
(parseInt(
i.css('borderRightWidth'),
10,
) || 0) -
(parseInt(i.css('paddingRight'), 10) ||
0) -
this.helperProportions.width -
this.margins.left -
this.margins.right,
(e
? Math.max(s.scrollHeight, s.offsetHeight)
: s.offsetHeight) -
(parseInt(
i.css('borderBottomWidth'),
10,
) || 0) -
(parseInt(i.css('paddingBottom'), 10) ||
0) -
this.helperProportions.height -
this.margins.top -
this.margins.bottom,
]),
(this.relativeContainer = i)))
: (this.containment = n.containment)
: (this.containment = [
0,
0,
t(o).width() -
this.helperProportions.width -
this.margins.left,
(t(o).height() ||
o.body.parentNode.scrollHeight) -
this.helperProportions.height -
this.margins.top,
])
: (this.containment = [
t(window).scrollLeft() -
this.offset.relative.left -
this.offset.parent.left,
t(window).scrollTop() -
this.offset.relative.top -
this.offset.parent.top,
t(window).scrollLeft() +
t(window).width() -
this.helperProportions.width -
this.margins.left,
t(window).scrollTop() +
(t(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,
s = 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
: s
? 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
: s
? 0
: this.offset.scroll.left) *
i,
};
},
_generatePosition: function (t, e) {
var i,
s,
n,
o,
r = this.options,
a = this._isRootNode(this.scrollParent[0]),
h = t.pageX,
l = t.pageY;
return (
(a && this.offset.scroll) ||
(this.offset.scroll = {
top: this.scrollParent.scrollTop(),
left: this.scrollParent.scrollLeft(),
}),
e &&
(this.containment &&
(this.relativeContainer
? ((s = this.relativeContainer.offset()),
(i = [
this.containment[0] + s.left,
this.containment[1] + s.top,
this.containment[2] + s.left,
this.containment[3] + s.top,
]))
: (i = this.containment),
t.pageX - this.offset.click.left < i[0] &&
(h = i[0] + this.offset.click.left),
t.pageY - this.offset.click.top < i[1] &&
(l = i[1] + this.offset.click.top),
t.pageX - this.offset.click.left > i[2] &&
(h = i[2] + this.offset.click.left),
t.pageY - this.offset.click.top > i[3] &&
(l = i[3] + this.offset.click.top)),
r.grid &&
((n = r.grid[1]
? this.originalPageY +
Math.round((l - this.originalPageY) / r.grid[1]) *
r.grid[1]
: this.originalPageY),
(l = i
? n - this.offset.click.top >= i[1] ||
n - this.offset.click.top > i[3]
? n
: n - this.offset.click.top >= i[1]
? n - r.grid[1]
: n + r.grid[1]
: n),
(o = r.grid[0]
? this.originalPageX +
Math.round((h - this.originalPageX) / r.grid[0]) *
r.grid[0]
: this.originalPageX),
(h = i
? o - this.offset.click.left >= i[0] ||
o - this.offset.click.left > i[2]
? o
: o - this.offset.click.left >= i[0]
? o - r.grid[0]
: o + r.grid[0]
: o)),
'y' === r.axis && (h = this.originalPageX),
'x' === r.axis && (l = this.originalPageY)),
{
top:
l -
this.offset.click.top -
this.offset.relative.top -
this.offset.parent.top +
('fixed' === this.cssPosition
? -this.offset.scroll.top
: a
? 0
: this.offset.scroll.top),
left:
h -
this.offset.click.left -
this.offset.relative.left -
this.offset.parent.left +
('fixed' === this.cssPosition
? -this.offset.scroll.left
: a
? 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 (e, i, s) {
return (
(s = s || this._uiHash()),
t.ui.plugin.call(this, e, [i, s, this], !0),
/^(drag|start|stop)/.test(e) &&
((this.positionAbs = this._convertPositionTo(
'absolute',
)),
(s.offset = this.positionAbs)),
t.Widget.prototype._trigger.call(this, e, i, s)
);
},
plugins: {},
_uiHash: function () {
return {
helper: this.helper,
position: this.position,
originalPosition: this.originalPosition,
offset: this.positionAbs,
};
},
}),
t.ui.plugin.add('draggable', 'connectToSortable', {
start: function (e, i, s) {
var n = t.extend({}, i, { item: s.element });
(s.sortables = []),
t(s.options.connectToSortable).each(function () {
var i = t(this).sortable('instance');
i &&
!i.options.disabled &&
(s.sortables.push(i),
i.refreshPositions(),
i._trigger('activate', e, n));
});
},
stop: function (e, i, s) {
var n = t.extend({}, i, { item: s.element });
(s.cancelHelperRemoval = !1),
t.each(s.sortables, function () {
this.isOver
? ((this.isOver = 0),
(s.cancelHelperRemoval = !0),
(this.cancelHelperRemoval = !1),
(this._storedCSS = {
position: this.placeholder.css('position'),
top: this.placeholder.css('top'),
left: this.placeholder.css('left'),
}),
this._mouseStop(e),
(this.options.helper = this.options._helper))
: ((this.cancelHelperRemoval = !0),
this._trigger('deactivate', e, n));
});
},
drag: function (e, i, s) {
t.each(s.sortables, function () {
var n = !1,
o = this;
(o.positionAbs = s.positionAbs),
(o.helperProportions = s.helperProportions),
(o.offset.click = s.offset.click),
o._intersectsWith(o.containerCache) &&
((n = !0),
t.each(s.sortables, function () {
return (
(this.positionAbs = s.positionAbs),
(this.helperProportions = s.helperProportions),
(this.offset.click = s.offset.click),
this !== o &&
this._intersectsWith(this.containerCache) &&
t.contains(o.element[0], this.element[0]) &&
(n = !1),
n
);
})),
n
? (o.isOver ||
((o.isOver = 1),
(s._parent = i.helper.parent()),
(o.currentItem = i.helper
.appendTo(o.element)
.data('ui-sortable-item', !0)),
(o.options._helper = o.options.helper),
(o.options.helper = function () {
return i.helper[0];
}),
(e.target = o.currentItem[0]),
o._mouseCapture(e, !0),
o._mouseStart(e, !0, !0),
(o.offset.click.top = s.offset.click.top),
(o.offset.click.left = s.offset.click.left),
(o.offset.parent.left -=
s.offset.parent.left - o.offset.parent.left),
(o.offset.parent.top -=
s.offset.parent.top - o.offset.parent.top),
s._trigger('toSortable', e),
(s.dropped = o.element),
t.each(s.sortables, function () {
this.refreshPositions();
}),
(s.currentItem = s.element),
(o.fromOutside = s)),
o.currentItem &&
(o._mouseDrag(e), (i.position = o.position)))
: o.isOver &&
((o.isOver = 0),
(o.cancelHelperRemoval = !0),
(o.options._revert = o.options.revert),
(o.options.revert = !1),
o._trigger('out', e, o._uiHash(o)),
o._mouseStop(e, !0),
(o.options.revert = o.options._revert),
(o.options.helper = o.options._helper),
o.placeholder && o.placeholder.remove(),
i.helper.appendTo(s._parent),
s._refreshOffsets(e),
(i.position = s._generatePosition(e, !0)),
s._trigger('fromSortable', e),
(s.dropped = !1),
t.each(s.sortables, function () {
this.refreshPositions();
}));
});
},
}),
t.ui.plugin.add('draggable', 'cursor', {
start: function (e, i, s) {
var n = t('body'),
o = s.options;
n.css('cursor') && (o._cursor = n.css('cursor')),
n.css('cursor', o.cursor);
},
stop: function (e, i, s) {
var n = s.options;
n._cursor && t('body').css('cursor', n._cursor);
},
}),
t.ui.plugin.add('draggable', 'opacity', {
start: function (e, i, s) {
var n = t(i.helper),
o = s.options;
n.css('opacity') && (o._opacity = n.css('opacity')),
n.css('opacity', o.opacity);
},
stop: function (e, i, s) {
var n = s.options;
n._opacity && t(i.helper).css('opacity', n._opacity);
},
}),
t.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 (e, i, s) {
var n = s.options,
o = !1,
r = s.scrollParentNotHidden[0],
a = s.document[0];
r !== a && 'HTML' !== r.tagName
? ((n.axis && 'x' === n.axis) ||
(s.overflowOffset.top + r.offsetHeight - e.pageY <
n.scrollSensitivity
? (r.scrollTop = o = r.scrollTop + n.scrollSpeed)
: e.pageY - s.overflowOffset.top <
n.scrollSensitivity &&
(r.scrollTop = o = r.scrollTop - n.scrollSpeed)),
(n.axis && 'y' === n.axis) ||
(s.overflowOffset.left + r.offsetWidth - e.pageX <
n.scrollSensitivity
? (r.scrollLeft = o = r.scrollLeft + n.scrollSpeed)
: e.pageX - s.overflowOffset.left <
n.scrollSensitivity &&
(r.scrollLeft = o =
r.scrollLeft - n.scrollSpeed)))
: ((n.axis && 'x' === n.axis) ||
(e.pageY - t(a).scrollTop() < n.scrollSensitivity
? (o = t(a).scrollTop(
t(a).scrollTop() - n.scrollSpeed,
))
: t(window).height() -
(e.pageY - t(a).scrollTop()) <
n.scrollSensitivity &&
(o = t(a).scrollTop(
t(a).scrollTop() + n.scrollSpeed,
))),
(n.axis && 'y' === n.axis) ||
(e.pageX - t(a).scrollLeft() < n.scrollSensitivity
? (o = t(a).scrollLeft(
t(a).scrollLeft() - n.scrollSpeed,
))
: t(window).width() -
(e.pageX - t(a).scrollLeft()) <
n.scrollSensitivity &&
(o = t(a).scrollLeft(
t(a).scrollLeft() + n.scrollSpeed,
)))),
!1 !== o &&
t.ui.ddmanager &&
!n.dropBehaviour &&
t.ui.ddmanager.prepareOffsets(s, e);
},
}),
t.ui.plugin.add('draggable', 'snap', {
start: function (e, i, s) {
var n = s.options;
(s.snapElements = []),
t(
n.snap.constructor !== String
? n.snap.items || ':data(ui-draggable)'
: n.snap,
).each(function () {
var e = t(this),
i = e.offset();
this !== s.element[0] &&
s.snapElements.push({
item: this,
width: e.outerWidth(),
height: e.outerHeight(),
top: i.top,
left: i.left,
});
});
},
drag: function (e, i, s) {
var n,
o,
r,
a,
h,
l,
c,
p,
d,
u,
f = s.options,
g = f.snapTolerance,
m = i.offset.left,
_ = m + s.helperProportions.width,
v = i.offset.top,
y = v + s.helperProportions.height;
for (d = s.snapElements.length - 1; d >= 0; d--)
(l =
(h = s.snapElements[d].left - s.margins.left) +
s.snapElements[d].width),
(p =
(c = s.snapElements[d].top - s.margins.top) +
s.snapElements[d].height),
_ < h - g ||
m > l + g ||
y < c - g ||
v > p + g ||
!t.contains(
s.snapElements[d].item.ownerDocument,
s.snapElements[d].item,
)
? (s.snapElements[d].snapping &&
s.options.snap.release &&
s.options.snap.release.call(
s.element,
e,
t.extend(s._uiHash(), {
snapItem: s.snapElements[d].item,
}),
),
(s.snapElements[d].snapping = !1))
: ('inner' !== f.snapMode &&
((n = Math.abs(c - y) <= g),
(o = Math.abs(p - v) <= g),
(r = Math.abs(h - _) <= g),
(a = Math.abs(l - m) <= g),
n &&
(i.position.top = s._convertPositionTo(
'relative',
{
top: c - s.helperProportions.height,
left: 0,
},
).top),
o &&
(i.position.top = s._convertPositionTo(
'relative',
{ top: p, left: 0 },
).top),
r &&
(i.position.left = s._convertPositionTo(
'relative',
{
top: 0,
left: h - s.helperProportions.width,
},
).left),
a &&
(i.position.left = s._convertPositionTo(
'relative',
{ top: 0, left: l },
).left)),
(u = n || o || r || a),
'outer' !== f.snapMode &&
((n = Math.abs(c - v) <= g),
(o = Math.abs(p - y) <= g),
(r = Math.abs(h - m) <= g),
(a = Math.abs(l - _) <= g),
n &&
(i.position.top = s._convertPositionTo(
'relative',
{ top: c, left: 0 },
).top),
o &&
(i.position.top = s._convertPositionTo(
'relative',
{
top: p - s.helperProportions.height,
left: 0,
},
).top),
r &&
(i.position.left = s._convertPositionTo(
'relative',
{ top: 0, left: h },
).left),
a &&
(i.position.left = s._convertPositionTo(
'relative',
{
top: 0,
left: l - s.helperProportions.width,
},
).left)),
!s.snapElements[d].snapping &&
(n || o || r || a || u) &&
s.options.snap.snap &&
s.options.snap.snap.call(
s.element,
e,
t.extend(s._uiHash(), {
snapItem: s.snapElements[d].item,
}),
),
(s.snapElements[d].snapping =
n || o || r || a || u));
},
}),
t.ui.plugin.add('draggable', 'stack', {
start: function (e, i, s) {
var n,
o = s.options,
r = t.makeArray(t(o.stack)).sort(function (e, i) {
return (
(parseInt(t(e).css('zIndex'), 10) || 0) -
(parseInt(t(i).css('zIndex'), 10) || 0)
);
});
r.length &&
((n = parseInt(t(r[0]).css('zIndex'), 10) || 0),
t(r).each(function (e) {
t(this).css('zIndex', n + e);
}),
this.css('zIndex', n + r.length));
},
}),
t.ui.plugin.add('draggable', 'zIndex', {
start: function (e, i, s) {
var n = t(i.helper),
o = s.options;
n.css('zIndex') && (o._zIndex = n.css('zIndex')),
n.css('zIndex', o.zIndex);
},
stop: function (e, i, s) {
var n = s.options;
n._zIndex && t(i.helper).css('zIndex', n._zIndex);
},
}),
t.ui.draggable
);
})
? s.apply(e, n)
: s) || (t.exports = o);
},
k6HY: function (t, e) {
($.ui.sortable.prototype._addClass = function (t, e) {
return (
'string' == typeof t || null === t
? this.element.addClass(t)
: t.addClass(e),
this
);
}),
($.ui.sortable.prototype._removeClass = function (t, e) {
return (
'string' == typeof t || null === t
? this.element.removeClass(t)
: t.removeClass(e),
this
);
});
},
qLb0: function (t, e, i) {},
vBzC: function (t, e, i) {
var s, n, o;
(n = [i('P5fv'), i('Qwlt')]),
void 0 ===
(o =
'function' ==
typeof (s = function (t) {
return (t.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,
});
})
? s.apply(e, n)
: s) || (t.exports = o);
},
'yM/z': function (t, e, i) {
var s, n, o;
(n = [i('P5fv'), i('Qwlt')]),
void 0 ===
(o =
'function' ==
typeof (s = function (t) {
return (t.ui.safeBlur = function (e) {
e &&
'body' !== e.nodeName.toLowerCase() &&
t(e).trigger('blur');
});
})
? s.apply(e, n)
: s) || (t.exports = o);
},
yw1R: function (t, e, i) {
var s, n, o;
(n = [i('P5fv'), i('Qwlt')]),
void 0 ===
(o =
'function' ==
typeof (s = function (t) {
return (t.ui.safeActiveElement = function (t) {
var e;
try {
e = t.activeElement;
} catch (i) {
e = t.body;
}
return e || (e = t.body), e.nodeName || (e = t.body), e;
});
})
? s.apply(e, n)
: s) || (t.exports = o);
},
},
]);