vendor: 8,954 bytes, lines 1-205
1/* 2 Copyright (C) Federico Zivolo 2019 3 Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). 4 */ 5(function(e, t) { 'object' == typeof exports && 'undefined' != typeof module ? module.exports = t() : 'function' == typeof define && define.amd ? define(t) : e.Popper = t() })(this, function() { 6 'use strict'; 7 8 function e(e) { return e && '[object Function]' === {}.toString.call(e) } 9 10 function t(e, t) { 11 if (1 !== e.nodeType) return []; 12 var o = e.ownerDocument.defaultView, 13 n = o.getComputedStyle(e, null); 14 return t ? n[t] : n 15 } 16 17 function o(e) { return 'HTML' === e.nodeName ? e : e.parentNode || e.host } 18 19 function n(e) { 20 if (!e) return document.body; 21 switch (e.nodeName) { 22 case 'HTML': 23 case 'BODY': 24 return e.ownerDocument.body; 25 case '#document': 26 return e.body; 27 } 28 var i = t(e), 29 r = i.overflow, 30 p = i.overflowX, 31 s = i.overflowY; 32 return /(auto|scroll|overlay)/.test(r + s + p) ? e : n(o(e)) 33 } 34 35 function r(e) { return 11 === e ? pe : 10 === e ? se : pe || se } 36 37 function p(e) { if (!e) return document.documentElement; for (var o = r(10) ? document.body : null, n = e.offsetParent || null; n === o && e.nextElementSibling;) n = (e = e.nextElementSibling).offsetParent; var i = n && n.nodeName; return i && 'BODY' !== i && 'HTML' !== i ? -1 !== ['TH', 'TD', 'TABLE'].indexOf(n.nodeName) && 'static' === t(n, 'position') ? p(n) : n : e ? e.ownerDocument.documentElement : document.documentElement } 38 39 function s(e) { var t = e.nodeName; return 'BODY' !== t && ('HTML' === t || p(e.firstElementChild) === e) } 40 41 function d(e) { return null === e.parentNode ? e : d(e.parentNode) } 42 43 function a(e, t) { 44 if (!e || !e.nodeType || !t || !t.nodeType) return document.documentElement; 45 var o = e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING, 46 n = o ? e : t, 47 i = o ? t : e, 48 r = document.createRange(); 49 r.setStart(n, 0), r.setEnd(i, 0); 50 var l = r.commonAncestorContainer; 51 if (e !== l && t !== l || n.contains(i)) return s(l) ? l : p(l); 52 var f = d(e); 53 return f.host ? a(f.host, t) : a(e, d(t).host) 54 } 55 56 function l(e) { 57 var t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : 'top', 58 o = 'top' === t ? 'scrollTop' : 'scrollLeft', 59 n = e.nodeName; 60 if ('BODY' === n || 'HTML' === n) { 61 var i = e.ownerDocument.documentElement, 62 r = e.ownerDocument.scrollingElement || i; 63 return r[o] 64 } 65 return e[o] 66 } 67 68 function f(e, t) { 69 var o = 2 < arguments.length && void 0 !== arguments[2] && arguments[2], 70 n = l(t, 'top'), 71 i = l(t, 'left'), 72 r = o ? -1 : 1; 73 return e.top += n * r, e.bottom += n * r, e.left += i * r, e.right += i * r, e 74 } 75 76 function m(e, t) { 77 var o = 'x' === t ? 'Left' : 'Top', 78 n = 'Left' == o ? 'Right' : 'Bottom'; 79 return parseFloat(e['border' + o + 'Width'], 10) + parseFloat(e['border' + n + 'Width'], 10) 80 } 81 82 function h(e, t, o, n) { return ee(t['offset' + e], t['scroll' + e], o['client' + e], o['offset' + e], o['scroll' + e], r(10) ? parseInt(o['offset' + e]) + parseInt(n['margin' + ('Height' === e ? 'Top' : 'Left')]) + parseInt(n['margin' + ('Height' === e ? 'Bottom' : 'Right')]) : 0) } 83 84 function c(e) { 85 var t = e.body, 86 o = e.documentElement, 87 n = r(10) && getComputedStyle(o); 88 return { height: h('Height', t, o, n), width: h('Width', t, o, n) } 89 } 90 91 function g(e) { return fe({}, e, { right: e.left + e.width, bottom: e.top + e.height }) } 92 93 function u(e) { 94 var o = {}; 95 try { 96 if (r(10)) { 97 o = e.getBoundingClientRect(); 98 var n = l(e, 'top'), 99 i = l(e, 'left'); 100 o.top += n, o.left += i, o.bottom += n, o.right += i 101 } else o = e.getBoundingClientRect() 102 } catch (t) {} 103 var p = { left: o.left, top: o.top, width: o.right - o.left, height: o.bottom - o.top }, 104 s = 'HTML' === e.nodeName ? c(e.ownerDocument) : {}, 105 d = s.width || e.clientWidth || p.right - p.left, 106 a = s.height || e.clientHeight || p.bottom - p.top, 107 f = e.offsetWidth - d, 108 h = e.offsetHeight - a; 109 if (f || h) { 110 var u = t(e); 111 f -= m(u, 'x'), h -= m(u, 'y'), p.width -= f, p.height -= h 112 } 113 return g(p) 114 } 115 116 function b(e, o) { 117 var i = 2 < arguments.length && void 0 !== arguments[2] && arguments[2], 118 p = r(10), 119 s = 'HTML' === o.nodeName, 120 d = u(e), 121 a = u(o), 122 l = n(e), 123 m = t(o), 124 h = parseFloat(m.borderTopWidth, 10), 125 c = parseFloat(m.borderLeftWidth, 10); 126 i && s && (a.top = ee(a.top, 0), a.left = ee(a.left, 0)); 127 var b = g({ top: d.top - a.top - h, left: d.left - a.left - c, width: d.width, height: d.height }); 128 if (b.marginTop = 0, b.marginLeft = 0, !p && s) { 129 var w = parseFloat(m.marginTop, 10), 130 y = parseFloat(m.marginLeft, 10); 131 b.top -= h - w, b.bottom -= h - w, b.left -= c - y, b.right -= c - y, b.marginTop = w, b.marginLeft = y 132 } 133 return (p && !i ? o.contains(l) : o === l && 'BODY' !== l.nodeName) && (b = f(b, o)), b 134 } 135 136 function w(e) { 137 var t = 1 < arguments.length && void 0 !== arguments[1] && arguments[1], 138 o = e.ownerDocument.documentElement, 139 n = b(e, o), 140 i = ee(o.clientWidth, window.innerWidth || 0), 141 r = ee(o.clientHeight, window.innerHeight || 0), 142 p = t ? 0 : l(o), 143 s = t ? 0 : l(o, 'left'), 144 d = { top: p - n.top + n.marginTop, left: s - n.left + n.marginLeft, width: i, height: r }; 145 return g(d) 146 } 147 148 function y(e) { var n = e.nodeName; if ('BODY' === n || 'HTML' === n) return !1; if ('fixed' === t(e, 'position')) return !0; var i = o(e); return !!i && y(i) } 149 150 function E(e) { if (!e || !e.parentElement || r()) return document.documentElement; for (var o = e.parentElement; o && 'none' === t(o, 'transform');) o = o.parentElement; return o || document.documentElement } 151 152 function v(e, t, i, r) { 153 var p = 4 < arguments.length && void 0 !== arguments[4] && arguments[4], 154 s = { top: 0, left: 0 }, 155 d = p ? E(e) : a(e, t); 156 if ('viewport' === r) s = w(d, p); 157 else { 158 var l; 159 'scrollParent' === r ? (l = n(o(t)), 'BODY' === l.nodeName && (l = e.ownerDocument.documentElement)) : 'window' === r ? l = e.ownerDocument.documentElement : l = r; 160 var f = b(l, d, p); 161 if ('HTML' === l.nodeName && !y(d)) { 162 var m = c(e.ownerDocument), 163 h = m.height, 164 g = m.width; 165 s.top += f.top - f.marginTop, s.bottom = h + f.top, s.left += f.left - f.marginLeft, s.right = g + f.left 166 } else s = f 167 } 168 i = i || 0; 169 var u = 'number' == typeof i; 170 return s.left += u ? i : i.left || 0, s.top += u ? i : i.top || 0, s.right -= u ? i : i.right || 0, s.bottom -= u ? i : i.bottom || 0, s 171 } 172 173 function x(e) { 174 var t = e.width, 175 o = e.height; 176 return t * o 177 } 178 179 function O(e, t, o, n, i) { 180 var r = 5 < arguments.length && void 0 !== arguments[5] ? arguments[5] : 0; 181 if (-1 === e.indexOf('auto')) return e; 182 var p = v(o, n, r, i), 183 s = { top: { width: p.width, height: t.top - p.top }, right: { width: p.right - t.right, height: p.height }, bottom: { width: p.width, height: p.bottom - t.bottom }, left: { width: t.left - p.left, height: p.height } }, 184 d = Object.keys(s).map(function(e) { return fe({ key: e }, s[e], { area: x(s[e]) }) }).sort(function(e, t) { return t.area - e.area }), 185 a = d.filter(function(e) { 186 var t = e.width, 187 n = e.height; 188 return t >= o.clientWidth && n >= o.clientHeight 189 }), 190 l = 0 < a.length ? a[0].key : d[0].key, 191 f = e.split('-')[1]; 192 return l + (f ? '-' + f : '') 193 } 194 195 function L(e, t, o) { 196 var n = 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null, 197 i = n ? E(t) : a(t, o); 198 return b(o, i, n) 199 } 200 201 function S(e) { 202 var t = e.ownerDocument.defaultView, 203 o = t.getComputedStyle(e), 204 n = parseFloat(o.marginTop || 0) + parseFloat(o.marginBottom || 0), 205 i = parseFloat(o.marginLeft || 0) + parseFloat(o.marginRight || 0
vendor: 6,623 bytes, lines 205-338
205), 206 r = { width: e.offsetWidth + i, height: e.offsetHeight + n }; 207 return r 208 } 209 210 function T(e) { var t = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' }; return e.replace(/left|right|bottom|top/g, function(e) { return t[e] }) } 211 212 function D(e, t, o) { 213 o = o.split('-')[0]; 214 var n = S(e), 215 i = { width: n.width, height: n.height }, 216 r = -1 !== ['right', 'left'].indexOf(o), 217 p = r ? 'top' : 'left', 218 s = r ? 'left' : 'top', 219 d = r ? 'height' : 'width', 220 a = r ? 'width' : 'height'; 221 return i[p] = t[p] + t[d] / 2 - n[d] / 2, i[s] = o === s ? t[s] - n[a] : t[T(s)], i 222 } 223 224 function C(e, t) { return Array.prototype.find ? e.find(t) : e.filter(t)[0] } 225 226 function N(e, t, o) { if (Array.prototype.findIndex) return e.findIndex(function(e) { return e[t] === o }); var n = C(e, function(e) { return e[t] === o }); return e.indexOf(n) } 227 228 function P(t, o, n) { 229 var i = void 0 === n ? t : t.slice(0, N(t, 'name', n)); 230 return i.forEach(function(t) { 231 t['function'] && console.warn('`modifier.function` is deprecated, use `modifier.fn`!'); 232 var n = t['function'] || t.fn; 233 t.enabled && e(n) && (o.offsets.popper = g(o.offsets.popper), o.offsets.reference = g(o.offsets.reference), o = n(o, t)) 234 }), o 235 } 236 237 function k() { 238 if (!this.state.isDestroyed) { 239 var e = { instance: this, styles: {}, arrowStyles: {}, attributes: {}, flipped: !1, offsets: {} }; 240 e.offsets.reference = L(this.state, this.popper, this.reference, this.options.positionFixed), e.placement = O(this.options.placement, e.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding), e.originalPlacement = e.placement, e.positionFixed = this.options.positionFixed, e.offsets.popper = D(this.popper, e.offsets.reference, e.placement), e.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute', e = P(this.modifiers, e), this.state.isCreated ? this.options.onUpdate(e) : (this.state.isCreated = !0, this.options.onCreate(e)) 241 } 242 } 243 244 function W(e, t) { 245 return e.some(function(e) { 246 var o = e.name, 247 n = e.enabled; 248 return n && o === t 249 }) 250 } 251 252 function H(e) { 253 for (var t = [!1, 'ms', 'Webkit', 'Moz', 'O'], o = e.charAt(0).toUpperCase() + e.slice(1), n = 0; n < t.length; n++) { 254 var i = t[n], 255 r = i ? '' + i + o : e; 256 if ('undefined' != typeof document.body.style[r]) return r 257 } 258 return null 259 } 260 261 function B() { return this.state.isDestroyed = !0, W(this.modifiers, 'applyStyle') && (this.popper.removeAttribute('x-placement'), this.popper.style.position = '', this.popper.style.top = '', this.popper.style.left = '', this.popper.style.right = '', this.popper.style.bottom = '', this.popper.style.willChange = '', this.popper.style[H('transform')] = ''), this.disableEventListeners(), this.options.removeOnDestroy && this.popper.parentNode.removeChild(this.popper), this } 262 263 function A(e) { var t = e.ownerDocument; return t ? t.defaultView : window } 264 265 function M(e, t, o, i) { 266 var r = 'BODY' === e.nodeName, 267 p = r ? e.ownerDocument.defaultView : e; 268 p.addEventListener(t, o, { passive: !0 }), r || M(n(p.parentNode), t, o, i), i.push(p) 269 } 270 271 function F(e, t, o, i) { o.updateBound = i, A(e).addEventListener('resize', o.updateBound, { passive: !0 }); var r = n(e); return M(r, 'scroll', o.updateBound, o.scrollParents), o.scrollElement = r, o.eventsEnabled = !0, o } 272 273 function I() { this.state.eventsEnabled || (this.state = F(this.reference, this.options, this.state, this.scheduleUpdate)) } 274 275 function R(e, t) { return A(e).removeEventListener('resize', t.updateBound), t.scrollParents.forEach(function(e) { e.removeEventListener('scroll', t.updateBound) }), t.updateBound = null, t.scrollParents = [], t.scrollElement = null, t.eventsEnabled = !1, t } 276 277 function U() { this.state.eventsEnabled && (cancelAnimationFrame(this.scheduleUpdate), this.state = R(this.reference, this.state)) } 278 279 function Y(e) { return '' !== e && !isNaN(parseFloat(e)) && isFinite(e) } 280 281 function j(e, t) { Object.keys(t).forEach(function(o) { var n = ''; - 1 !== ['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(o) && Y(t[o]) && (n = 'px'), e.style[o] = t[o] + n }) } 282 283 function V(e, t) { Object.keys(t).forEach(function(o) { var n = t[o];!1 === n ? e.removeAttribute(o) : e.setAttribute(o, t[o]) }) } 284 285 function q(e, t) { 286 var o = e.offsets, 287 n = o.popper, 288 i = o.reference, 289 r = $, 290 p = function(e) { return e }, 291 s = r(i.width), 292 d = r(n.width), 293 a = -1 !== ['left', 'right'].indexOf(e.placement), 294 l = -1 !== e.placement.indexOf('-'), 295 f = t ? a || l || s % 2 == d % 2 ? r : Z : p, 296 m = t ? r : p; 297 return { left: f(1 == s % 2 && 1 == d % 2 && !l && t ? n.left - 1 : n.left), top: m(n.top), bottom: m(n.bottom), right: f(n.right) } 298 } 299 300 function K(e, t, o) { 301 var n = C(e, function(e) { var o = e.name; return o === t }), 302 i = !!n && e.some(function(e) { return e.name === o && e.enabled && e.order < n.order }); 303 if (!i) { 304 var r = '`' + t + '`'; 305 console.warn('`' + o + '`' + ' modifier is required by ' + r + ' modifier in order to work, be sure to include it before ' + r + '!') 306 } 307 return i 308 } 309 310 function z(e) { return 'end' === e ? 'start' : 'start' === e ? 'end' : e } 311 312 function G(e) { 313 var t = 1 < arguments.length && void 0 !== arguments[1] && arguments[1], 314 o = ce.indexOf(e), 315 n = ce.slice(o + 1).concat(ce.slice(0, o)); 316 return t ? n.reverse() : n 317 } 318 319 function _(e, t, o, n) { 320 var i = e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/), 321 r = +i[1], 322 p = i[2]; 323 if (!r) return e; 324 if (0 === p.indexOf('%')) { 325 var s; 326 switch (p) { 327 case '%p': 328 s = o; 329 break; 330 case '%': 331 case '%r': 332 default: 333 s = n; 334 } 335 var d = g(s); 336 return d[t] / 100 * r 337 } 338 if ('vh' === p || 'vw' === p) { var a; return a = 'vh' === p ? ee(document.documentElement.clientHeight, window.innerHeight || 0
vendor: 4,125 bytes, lines 338-391
338) : ee(document.documentElement.clientWidth, window.innerWidth || 0), a / 100 * r } 339 return r 340 } 341 342 function X(e, t, o, n) { 343 var i = [0, 0], 344 r = -1 !== ['right', 'left'].indexOf(n), 345 p = e.split(/(\+|\-)/).map(function(e) { return e.trim() }), 346 s = p.indexOf(C(p, function(e) { return -1 !== e.search(/,|\s/) })); 347 p[s] && -1 === p[s].indexOf(',') && console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.'); 348 var d = /\s*,\s*|\s+/, 349 a = -1 === s ? [p] : [p.slice(0, s).concat([p[s].split(d)[0]]), [p[s].split(d)[1]].concat(p.slice(s + 1))]; 350 return a = a.map(function(e, n) { 351 var i = (1 === n ? !r : r) ? 'height' : 'width', 352 p = !1; 353 return e.reduce(function(e, t) { return '' === e[e.length - 1] && -1 !== ['+', '-'].indexOf(t) ? (e[e.length - 1] = t, p = !0, e) : p ? (e[e.length - 1] += t, p = !1, e) : e.concat(t) }, []).map(function(e) { return _(e, i, t, o) }) 354 }), a.forEach(function(e, t) { e.forEach(function(o, n) { Y(o) && (i[t] += o * ('-' === e[n - 1] ? -1 : 1)) }) }), i 355 } 356 357 function J(e, t) { 358 var o, n = t.offset, 359 i = e.placement, 360 r = e.offsets, 361 p = r.popper, 362 s = r.reference, 363 d = i.split('-')[0]; 364 return o = Y(+n) ? [+n, 0] : X(n, p, s, d), 'left' === d ? (p.top += o[0], p.left -= o[1]) : 'right' === d ? (p.top += o[0], p.left += o[1]) : 'top' === d ? (p.left += o[0], p.top -= o[1]) : 'bottom' === d && (p.left += o[0], p.top += o[1]), e.popper = p, e 365 } 366 for (var Q = Math.min, Z = Math.floor, $ = Math.round, ee = Math.max, te = 'undefined' != typeof window && 'undefined' != typeof document, oe = ['Edge', 'Trident', 'Firefox'], ne = 0, ie = 0; ie < oe.length; ie += 1) 367 if (te && 0 <= navigator.userAgent.indexOf(oe[ie])) { ne = 1; break } 368 var i = te && window.Promise, 369 re = i ? function(e) { var t = !1; return function() { t || (t = !0, window.Promise.resolve().then(function() { t = !1, e() })) } } : function(e) { var t = !1; return function() { t || (t = !0, setTimeout(function() { t = !1, e() }, ne)) } }, 370 pe = te && !!(window.MSInputMethodContext && document.documentMode), 371 se = te && /MSIE 10/.test(navigator.userAgent), 372 de = function(e, t) { if (!(e instanceof t)) throw new TypeError('Cannot call a class as a function') }, 373 ae = function() { 374 function e(e, t) { for (var o, n = 0; n < t.length; n++) o = t[n], o.enumerable = o.enumerable || !1, o.configurable = !0, 'value' in o && (o.writable = !0), Object.defineProperty(e, o.key, o) } 375 return function(t, o, n) { return o && e(t.prototype, o), n && e(t, n), t } 376 }(), 377 le = function(e, t, o) { return t in e ? Object.defineProperty(e, t, { value: o, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = o, e }, 378 fe = Object.assign || function(e) { 379 for (var t, o = 1; o < arguments.length; o++) 380 for (var n in t = arguments[o], t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n]); 381 return e 382 }, 383 me = te && /Firefox/i.test(navigator.userAgent), 384 he = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start'], 385 ce = he.slice(3), 386 ge = { FLIP: 'flip', CLOCKWISE: 'clockwise', COUNTERCLOCKWISE: 'counterclockwise' }, 387 ue = function() { 388 function t(o, n) { 389 var i = this, 390 r = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {}; 391 de(this, t), this.scheduleUpdate = function() { return requestAnimationFrame(i.update) }, this.update = re(this.update.bind(this)), this.options = fe({}, t.Defaults, r), this.state = { isDestroyed: !1, isCreated: !1, scrollParents: [] }, this.reference = o && o.jquery ? o[0] : o, this.popper = n && n.jquery ? n[0] : n, this.options.modifiers = {}, Object.keys(fe({}
vendor: 4,436 bytes, lines 391-471
391, t.Defaults.modifiers, r.modifiers)).forEach(function(e) { i.options.modifiers[e] = fe({}, t.Defaults.modifiers[e] || {}, r.modifiers ? r.modifiers[e] : {}) }), this.modifiers = Object.keys(this.options.modifiers).map(function(e) { return fe({ name: e }, i.options.modifiers[e]) }).sort(function(e, t) { return e.order - t.order }), this.modifiers.forEach(function(t) { t.enabled && e(t.onLoad) && t.onLoad(i.reference, i.popper, i.options, t, i.state) }), this.update(); 392 var p = this.options.eventsEnabled; 393 p && this.enableEventListeners(), this.state.eventsEnabled = p 394 } 395 return ae(t, [{ key: 'update', value: function() { return k.call(this) } }, { key: 'destroy', value: function() { return B.call(this) } }, { key: 'enableEventListeners', value: function() { return I.call(this) } }, { key: 'disableEventListeners', value: function() { return U.call(this) } }]), t 396 }(); 397 return ue.Utils = ('undefined' == typeof window ? global : window).PopperUtils, ue.placements = he, ue.Defaults = { 398 placement: 'bottom', 399 positionFixed: !1, 400 eventsEnabled: !0, 401 removeOnDestroy: !1, 402 onCreate: function() {}, 403 onUpdate: function() {}, 404 modifiers: { 405 shift: { 406 order: 100, 407 enabled: !0, 408 fn: function(e) { 409 var t = e.placement, 410 o = t.split('-')[0], 411 n = t.split('-')[1]; 412 if (n) { 413 var i = e.offsets, 414 r = i.reference, 415 p = i.popper, 416 s = -1 !== ['bottom', 'top'].indexOf(o), 417 d = s ? 'left' : 'top', 418 a = s ? 'width' : 'height', 419 l = { start: le({}, d, r[d]), end: le({}, d, r[d] + r[a] - p[a]) }; 420 e.offsets.popper = fe({}, p, l[n]) 421 } 422 return e 423 } 424 }, 425 offset: { order: 200, enabled: !0, fn: J, offset: 0 }, 426 preventOverflow: { 427 order: 300, 428 enabled: !0, 429 fn: function(e, t) { 430 var o = t.boundariesElement || p(e.instance.popper); 431 e.instance.reference === o && (o = p(o)); 432 var n = H('transform'), 433 i = e.instance.popper.style, 434 r = i.top, 435 s = i.left, 436 d = i[n]; 437 i.top = '', i.left = '', i[n] = ''; 438 var a = v(e.instance.popper, e.instance.reference, t.padding, o, e.positionFixed); 439 i.top = r, i.left = s, i[n] = d, t.boundaries = a; 440 var l = t.priority, 441 f = e.offsets.popper, 442 m = { 443 primary: function(e) { var o = f[e]; return f[e] < a[e] && !t.escapeWithReference && (o = ee(f[e], a[e])), le({}, e, o) }, 444 secondary: function(e) { 445 var o = 'right' === e ? 'left' : 'top', 446 n = f[o]; 447 return f[e] > a[e] && !t.escapeWithReference && (n = Q(f[o], a[e] - ('right' === e ? f.width : f.height))), le({}, o, n) 448 } 449 }; 450 return l.forEach(function(e) { 451 var t = -1 === ['left', 'top'].indexOf(e) ? 'secondary' : 'primary'; 452 f = fe({}, f, m[t](e)) 453 }), e.offsets.popper = f, e 454 }, 455 priority: ['left', 'right', 'top', 'bottom'], 456 padding: 5, 457 boundariesElement: 'scrollParent' 458 }, 459 keepTogether: { 460 order: 400, 461 enabled: !0, 462 fn: function(e) { 463 var t = e.offsets, 464 o = t.popper, 465 n = t.reference, 466 i = e.placement.split('-')[0], 467 r = Z, 468 p = -1 !== ['top', 'bottom'].indexOf(i), 469 s = p ? 'right' : 'bottom', 470 d = p ? 'left' : 'top', 471 a = p ? 'width' : 'height';
vendor: 5,457 bytes, lines 472-569
472 return o[s] < r(n[d]) && (e.offsets.popper[d] = r(n[d]) - o[a]), o[d] > r(n[s]) && (e.offsets.popper[d] = r(n[s])), e 473 } 474 }, 475 arrow: { 476 order: 500, 477 enabled: !0, 478 fn: function(e, o) { 479 var n; 480 if (!K(e.instance.modifiers, 'arrow', 'keepTogether')) return e; 481 var i = o.element; 482 if ('string' == typeof i) { if (i = e.instance.popper.querySelector(i), !i) return e; } else if (!e.instance.popper.contains(i)) return console.warn('WARNING: `arrow.element` must be child of its popper element!'), e; 483 var r = e.placement.split('-')[0], 484 p = e.offsets, 485 s = p.popper, 486 d = p.reference, 487 a = -1 !== ['left', 'right'].indexOf(r), 488 l = a ? 'height' : 'width', 489 f = a ? 'Top' : 'Left', 490 m = f.toLowerCase(), 491 h = a ? 'left' : 'top', 492 c = a ? 'bottom' : 'right', 493 u = S(i)[l]; 494 d[c] - u < s[m] && (e.offsets.popper[m] -= s[m] - (d[c] - u)), d[m] + u > s[c] && (e.offsets.popper[m] += d[m] + u - s[c]), e.offsets.popper = g(e.offsets.popper); 495 var b = d[m] + d[l] / 2 - u / 2, 496 w = t(e.instance.popper), 497 y = parseFloat(w['margin' + f], 10), 498 E = parseFloat(w['border' + f + 'Width'], 10), 499 v = b - e.offsets.popper[m] - y - E; 500 return v = ee(Q(s[l] - u, v), 0), e.arrowElement = i, e.offsets.arrow = (n = {}, le(n, m, $(v)), le(n, h, ''), n), e 501 }, 502 element: '[x-arrow]' 503 }, 504 flip: { 505 order: 600, 506 enabled: !0, 507 fn: function(e, t) { 508 if (W(e.instance.modifiers, 'inner')) return e; 509 if (e.flipped && e.placement === e.originalPlacement) return e; 510 var o = v(e.instance.popper, e.instance.reference, t.padding, t.boundariesElement, e.positionFixed), 511 n = e.placement.split('-')[0], 512 i = T(n), 513 r = e.placement.split('-')[1] || '', 514 p = []; 515 switch (t.behavior) { 516 case ge.FLIP: 517 p = [n, i]; 518 break; 519 case ge.CLOCKWISE: 520 p = G(n); 521 break; 522 case ge.COUNTERCLOCKWISE: 523 p = G(n, !0); 524 break; 525 default: 526 p = t.behavior; 527 } 528 return p.forEach(function(s, d) { 529 if (n !== s || p.length === d + 1) return e; 530 n = e.placement.split('-')[0], i = T(n); 531 var a = e.offsets.popper, 532 l = e.offsets.reference, 533 f = Z, 534 m = 'left' === n && f(a.right) > f(l.left) || 'right' === n && f(a.left) < f(l.right) || 'top' === n && f(a.bottom) > f(l.top) || 'bottom' === n && f(a.top) < f(l.bottom), 535 h = f(a.left) < f(o.left), 536 c = f(a.right) > f(o.right), 537 g = f(a.top) < f(o.top), 538 u = f(a.bottom) > f(o.bottom), 539 b = 'left' === n && h || 'right' === n && c || 'top' === n && g || 'bottom' === n && u, 540 w = -1 !== ['top', 'bottom'].indexOf(n), 541 y = !!t.flipVariations && (w && 'start' === r && h || w && 'end' === r && c || !w && 'start' === r && g || !w && 'end' === r && u); 542 (m || b || y) && (e.flipped = !0, (m || b) && (n = p[d + 1]), y && (r = z(r)), e.placement = n + (r ? '-' + r : ''), e.offsets.popper = fe({}, e.offsets.popper, D(e.instance.popper, e.offsets.reference, e.placement)), e = P(e.instance.modifiers, e, 'flip')) 543 }), e 544 }, 545 behavior: 'flip', 546 padding: 5, 547 boundariesElement: 'viewport' 548 }, 549 inner: { 550 order: 700, 551 enabled: !1, 552 fn: function(e) { 553 var t = e.placement, 554 o = t.split('-')[0], 555 n = e.offsets, 556 i = n.popper, 557 r = n.reference, 558 p = -1 !== ['left', 'right'].indexOf(o), 559 s = -1 === ['top', 'left'].indexOf(o); 560 return i[p ? 'left' : 'top'] = r[o] - (s ? i[p ? 'width' : 'height'] : 0), e.placement = T(t), e.offsets.popper = g(i), e 561 } 562 }, 563 hide: { 564 order: 800, 565 enabled: !0, 566 fn: function(e) { 567 if (!K(e.instance.modifiers, 'hide', 'preventOverflow')) return e; 568 var t = e.offsets.reference, 569 o = C(e.instance.modifiers, function(e) { return 'preventOverflow' === e.
vendor: 2,607 bytes, lines 569-613
569name }).boundaries; 570 if (t.bottom < o.top || t.left > o.right || t.top > o.bottom || t.right < o.left) { 571 if (!0 === e.hide) return e; 572 e.hide = !0, e.attributes['x-out-of-boundaries'] = '' 573 } else { 574 if (!1 === e.hide) return e; 575 e.hide = !1, e.attributes['x-out-of-boundaries'] = !1 576 } 577 return e 578 } 579 }, 580 computeStyle: { 581 order: 850, 582 enabled: !0, 583 fn: function(e, t) { 584 var o = t.x, 585 n = t.y, 586 i = e.offsets.popper, 587 r = C(e.instance.modifiers, function(e) { return 'applyStyle' === e.name }).gpuAcceleration; 588 void 0 !== r && console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!'); 589 var s, d, a = void 0 === r ? t.gpuAcceleration : r, 590 l = p(e.instance.popper), 591 f = u(l), 592 m = { position: i.position }, 593 h = q(e, 2 > window.devicePixelRatio || !me), 594 c = 'bottom' === o ? 'top' : 'bottom', 595 g = 'right' === n ? 'left' : 'right', 596 b = H('transform'); 597 if (d = 'bottom' == c ? 'HTML' === l.nodeName ? -l.clientHeight + h.bottom : -f.height + h.bottom : h.top, s = 'right' == g ? 'HTML' === l.nodeName ? -l.clientWidth + h.right : -f.width + h.right : h.left, a && b) m[b] = 'translate3d(' + s + 'px, ' + d + 'px, 0)', m[c] = 0, m[g] = 0, m.willChange = 'transform'; 598 else { 599 var w = 'bottom' == c ? -1 : 1, 600 y = 'right' == g ? -1 : 1; 601 m[c] = d * w, m[g] = s * y, m.willChange = c + ', ' + g 602 } 603 var E = { "x-placement": e.placement }; 604 return e.attributes = fe({}, E, e.attributes), e.styles = fe({}, m, e.styles), e.arrowStyles = fe({}, e.offsets.arrow, e.arrowStyles), e 605 }, 606 gpuAcceleration: !0, 607 x: 'bottom', 608 y: 'right' 609 }, 610 applyStyle: { 611 order: 900, 612 enabled: !0, 613 fn: function(e) { return j(e.instance.popper, e.styles), V(e.instance.popper, e.attributes), e.arrowElement && Ob
613ject.keys(e.arrowStyles).length && j(e.arrowElement, e.arrowStyles), e }, 614 onLoad: function(e, t, o, n, i) { 615 var r = L(i, t, e, o.positionFixed), 616 p = O(o.placement, r, t, e, o.modifiers.flip.boundariesElement, o.modifiers.flip.padding); 617 return t.setAttribute('x-placement', p), j(t, { position: o.positionFixed ? 'fixed' : 'absolute' }), o 618 }, 619 gpuAcceleration: void 0 620 } 621 } 622 }, ue 623}); 624//# sourceMappingURL=popper.min.js.map
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.