You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 lines
9.2 KiB

  1. /**
  2. * @popperjs/core v2.11.5 - MIT License
  3. */
  4. !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Popper={})}(this,(function(t){"use strict";function e(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function n(t){return t instanceof e(t).Element||t instanceof Element}function o(t){return t instanceof e(t).HTMLElement||t instanceof HTMLElement}function r(t){return"undefined"!=typeof ShadowRoot&&(t instanceof e(t).ShadowRoot||t instanceof ShadowRoot)}var i=Math.max,f=Math.min,a=Math.round;function c(t,e){void 0===e&&(e=!1);var n=t.getBoundingClientRect(),r=1,i=1;if(o(t)&&e){var f=t.offsetHeight,c=t.offsetWidth;c>0&&(r=a(n.width)/c||1),f>0&&(i=a(n.height)/f||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function u(t){var n=e(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function s(t){return t?(t.nodeName||"").toLowerCase():null}function l(t){return((n(t)?t.ownerDocument:t.document)||window.document).documentElement}function d(t){return c(l(t)).left+u(t).scrollLeft}function h(t){return e(t).getComputedStyle(t)}function p(t){var e=h(t),n=e.overflow,o=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function m(t,n,r){void 0===r&&(r=!1);var i,f,h=o(n),m=o(n)&&function(t){var e=t.getBoundingClientRect(),n=a(e.width)/t.offsetWidth||1,o=a(e.height)/t.offsetHeight||1;return 1!==n||1!==o}(n),g=l(n),v=c(t,m),b={scrollLeft:0,scrollTop:0},w={x:0,y:0};return(h||!h&&!r)&&(("body"!==s(n)||p(g))&&(b=(i=n)!==e(i)&&o(i)?{scrollLeft:(f=i).scrollLeft,scrollTop:f.scrollTop}:u(i)),o(n)?((w=c(n,!0)).x+=n.clientLeft,w.y+=n.clientTop):g&&(w.x=d(g))),{x:v.left+b.scrollLeft-w.x,y:v.top+b.scrollTop-w.y,width:v.width,height:v.height}}function g(t){return"html"===s(t)?t:t.assignedSlot||t.parentNode||(r(t)?t.host:null)||l(t)}function v(t){return["html","body","#document"].indexOf(s(t))>=0?t.ownerDocument.body:o(t)&&p(t)?t:v(g(t))}function b(t,n){var o;void 0===n&&(n=[]);var r=v(t),i=r===(null==(o=t.ownerDocument)?void 0:o.body),f=e(r),a=i?[f].concat(f.visualViewport||[],p(r)?r:[]):r,c=n.concat(a);return i?c:c.concat(b(g(a)))}function w(t){return["table","td","th"].indexOf(s(t))>=0}function y(t){return o(t)&&"fixed"!==h(t).position?t.offsetParent:null}function x(t){for(var n=e(t),i=y(t);i&&w(i)&&"static"===h(i).position;)i=y(i);return i&&("html"===s(i)||"body"===s(i)&&"static"===h(i).position)?n:i||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&o(t)&&"fixed"===h(t).position)return null;var n=g(t);for(r(n)&&(n=n.host);o(n)&&["html","body"].indexOf(s(n))<0;){var i=h(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||n}var O="top",M="bottom",E="right",L="left",T=[O,M,E,L],W="viewport",j="popper",H=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function P(t){var e=new Map,n=new Set,o=[];function r(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var o=e.get(t);o&&r(o)}})),o.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||r(t)})),o}function R(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function C(t,o){return o===W?R(function(t){var n=e(t),o=l(t),r=n.visualViewport,i=o.clientWidth,f=o.clientHeight,a=0,c=0;return r&&(i=r.width,f=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,c=r.offsetTop)),{width:i,height:f,x:a+d(t),y:c}}(t)):n(o)?function(t){var e=c(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,
  5. //# sourceMappingURL=popper-base.min.js.map