chunk.GADG7AUG.js 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383
  1. // node_modules/@popperjs/core/dist/esm/dom-utils/getBoundingClientRect.js
  2. function getBoundingClientRect(element) {
  3. var rect = element.getBoundingClientRect();
  4. return {
  5. width: rect.width,
  6. height: rect.height,
  7. top: rect.top,
  8. right: rect.right,
  9. bottom: rect.bottom,
  10. left: rect.left,
  11. x: rect.left,
  12. y: rect.top
  13. };
  14. }
  15. // node_modules/@popperjs/core/dist/esm/dom-utils/getWindow.js
  16. function getWindow(node) {
  17. if (node.toString() !== "[object Window]") {
  18. var ownerDocument = node.ownerDocument;
  19. return ownerDocument ? ownerDocument.defaultView || window : window;
  20. }
  21. return node;
  22. }
  23. // node_modules/@popperjs/core/dist/esm/dom-utils/getWindowScroll.js
  24. function getWindowScroll(node) {
  25. var win = getWindow(node);
  26. var scrollLeft = win.pageXOffset;
  27. var scrollTop = win.pageYOffset;
  28. return {
  29. scrollLeft,
  30. scrollTop
  31. };
  32. }
  33. // node_modules/@popperjs/core/dist/esm/dom-utils/instanceOf.js
  34. function isElement(node) {
  35. var OwnElement = getWindow(node).Element;
  36. return node instanceof OwnElement || node instanceof Element;
  37. }
  38. function isHTMLElement(node) {
  39. var OwnElement = getWindow(node).HTMLElement;
  40. return node instanceof OwnElement || node instanceof HTMLElement;
  41. }
  42. function isShadowRoot(node) {
  43. if (typeof ShadowRoot === "undefined") {
  44. return false;
  45. }
  46. var OwnElement = getWindow(node).ShadowRoot;
  47. return node instanceof OwnElement || node instanceof ShadowRoot;
  48. }
  49. // node_modules/@popperjs/core/dist/esm/dom-utils/getHTMLElementScroll.js
  50. function getHTMLElementScroll(element) {
  51. return {
  52. scrollLeft: element.scrollLeft,
  53. scrollTop: element.scrollTop
  54. };
  55. }
  56. // node_modules/@popperjs/core/dist/esm/dom-utils/getNodeScroll.js
  57. function getNodeScroll(node) {
  58. if (node === getWindow(node) || !isHTMLElement(node)) {
  59. return getWindowScroll(node);
  60. } else {
  61. return getHTMLElementScroll(node);
  62. }
  63. }
  64. // node_modules/@popperjs/core/dist/esm/dom-utils/getNodeName.js
  65. function getNodeName(element) {
  66. return element ? (element.nodeName || "").toLowerCase() : null;
  67. }
  68. // node_modules/@popperjs/core/dist/esm/dom-utils/getDocumentElement.js
  69. function getDocumentElement(element) {
  70. return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement;
  71. }
  72. // node_modules/@popperjs/core/dist/esm/dom-utils/getWindowScrollBarX.js
  73. function getWindowScrollBarX(element) {
  74. return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
  75. }
  76. // node_modules/@popperjs/core/dist/esm/dom-utils/getComputedStyle.js
  77. function getComputedStyle(element) {
  78. return getWindow(element).getComputedStyle(element);
  79. }
  80. // node_modules/@popperjs/core/dist/esm/dom-utils/isScrollParent.js
  81. function isScrollParent(element) {
  82. var _getComputedStyle = getComputedStyle(element), overflow = _getComputedStyle.overflow, overflowX = _getComputedStyle.overflowX, overflowY = _getComputedStyle.overflowY;
  83. return /auto|scroll|overlay|hidden/.test(overflow + overflowY + overflowX);
  84. }
  85. // node_modules/@popperjs/core/dist/esm/dom-utils/getCompositeRect.js
  86. function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
  87. if (isFixed === void 0) {
  88. isFixed = false;
  89. }
  90. var documentElement = getDocumentElement(offsetParent);
  91. var rect = getBoundingClientRect(elementOrVirtualElement);
  92. var isOffsetParentAnElement = isHTMLElement(offsetParent);
  93. var scroll = {
  94. scrollLeft: 0,
  95. scrollTop: 0
  96. };
  97. var offsets = {
  98. x: 0,
  99. y: 0
  100. };
  101. if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
  102. if (getNodeName(offsetParent) !== "body" || isScrollParent(documentElement)) {
  103. scroll = getNodeScroll(offsetParent);
  104. }
  105. if (isHTMLElement(offsetParent)) {
  106. offsets = getBoundingClientRect(offsetParent);
  107. offsets.x += offsetParent.clientLeft;
  108. offsets.y += offsetParent.clientTop;
  109. } else if (documentElement) {
  110. offsets.x = getWindowScrollBarX(documentElement);
  111. }
  112. }
  113. return {
  114. x: rect.left + scroll.scrollLeft - offsets.x,
  115. y: rect.top + scroll.scrollTop - offsets.y,
  116. width: rect.width,
  117. height: rect.height
  118. };
  119. }
  120. // node_modules/@popperjs/core/dist/esm/dom-utils/getLayoutRect.js
  121. function getLayoutRect(element) {
  122. return {
  123. x: element.offsetLeft,
  124. y: element.offsetTop,
  125. width: element.offsetWidth,
  126. height: element.offsetHeight
  127. };
  128. }
  129. // node_modules/@popperjs/core/dist/esm/dom-utils/getParentNode.js
  130. function getParentNode(element) {
  131. if (getNodeName(element) === "html") {
  132. return element;
  133. }
  134. return element.assignedSlot || element.parentNode || (isShadowRoot(element) ? element.host : null) || getDocumentElement(element);
  135. }
  136. // node_modules/@popperjs/core/dist/esm/dom-utils/getScrollParent.js
  137. function getScrollParent(node) {
  138. if (["html", "body", "#document"].indexOf(getNodeName(node)) >= 0) {
  139. return node.ownerDocument.body;
  140. }
  141. if (isHTMLElement(node) && isScrollParent(node)) {
  142. return node;
  143. }
  144. return getScrollParent(getParentNode(node));
  145. }
  146. // node_modules/@popperjs/core/dist/esm/dom-utils/listScrollParents.js
  147. function listScrollParents(element, list) {
  148. var _element$ownerDocumen;
  149. if (list === void 0) {
  150. list = [];
  151. }
  152. var scrollParent = getScrollParent(element);
  153. var isBody = scrollParent === ((_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body);
  154. var win = getWindow(scrollParent);
  155. var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
  156. var updatedList = list.concat(target);
  157. return isBody ? updatedList : updatedList.concat(listScrollParents(getParentNode(target)));
  158. }
  159. // node_modules/@popperjs/core/dist/esm/dom-utils/isTableElement.js
  160. function isTableElement(element) {
  161. return ["table", "td", "th"].indexOf(getNodeName(element)) >= 0;
  162. }
  163. // node_modules/@popperjs/core/dist/esm/dom-utils/getOffsetParent.js
  164. function getTrueOffsetParent(element) {
  165. if (!isHTMLElement(element) || getComputedStyle(element).position === "fixed") {
  166. return null;
  167. }
  168. return element.offsetParent;
  169. }
  170. function getContainingBlock(element) {
  171. var isFirefox = navigator.userAgent.toLowerCase().includes("firefox");
  172. var currentNode = getParentNode(element);
  173. while (isHTMLElement(currentNode) && ["html", "body"].indexOf(getNodeName(currentNode)) < 0) {
  174. var css = getComputedStyle(currentNode);
  175. if (css.transform !== "none" || css.perspective !== "none" || css.contain === "paint" || ["transform", "perspective"].includes(css.willChange) || isFirefox && css.willChange === "filter" || isFirefox && css.filter && css.filter !== "none") {
  176. return currentNode;
  177. } else {
  178. currentNode = currentNode.parentNode;
  179. }
  180. }
  181. return null;
  182. }
  183. function getOffsetParent(element) {
  184. var window2 = getWindow(element);
  185. var offsetParent = getTrueOffsetParent(element);
  186. while (offsetParent && isTableElement(offsetParent) && getComputedStyle(offsetParent).position === "static") {
  187. offsetParent = getTrueOffsetParent(offsetParent);
  188. }
  189. if (offsetParent && (getNodeName(offsetParent) === "html" || getNodeName(offsetParent) === "body" && getComputedStyle(offsetParent).position === "static")) {
  190. return window2;
  191. }
  192. return offsetParent || getContainingBlock(element) || window2;
  193. }
  194. // node_modules/@popperjs/core/dist/esm/enums.js
  195. var top = "top";
  196. var bottom = "bottom";
  197. var right = "right";
  198. var left = "left";
  199. var auto = "auto";
  200. var basePlacements = [top, bottom, right, left];
  201. var start = "start";
  202. var end = "end";
  203. var clippingParents = "clippingParents";
  204. var viewport = "viewport";
  205. var popper = "popper";
  206. var reference = "reference";
  207. var variationPlacements = /* @__PURE__ */ basePlacements.reduce(function(acc, placement) {
  208. return acc.concat([placement + "-" + start, placement + "-" + end]);
  209. }, []);
  210. var placements = /* @__PURE__ */ [].concat(basePlacements, [auto]).reduce(function(acc, placement) {
  211. return acc.concat([placement, placement + "-" + start, placement + "-" + end]);
  212. }, []);
  213. var beforeRead = "beforeRead";
  214. var read = "read";
  215. var afterRead = "afterRead";
  216. var beforeMain = "beforeMain";
  217. var main = "main";
  218. var afterMain = "afterMain";
  219. var beforeWrite = "beforeWrite";
  220. var write = "write";
  221. var afterWrite = "afterWrite";
  222. var modifierPhases = [beforeRead, read, afterRead, beforeMain, main, afterMain, beforeWrite, write, afterWrite];
  223. // node_modules/@popperjs/core/dist/esm/utils/orderModifiers.js
  224. function order(modifiers) {
  225. var map = new Map();
  226. var visited = new Set();
  227. var result = [];
  228. modifiers.forEach(function(modifier) {
  229. map.set(modifier.name, modifier);
  230. });
  231. function sort(modifier) {
  232. visited.add(modifier.name);
  233. var requires = [].concat(modifier.requires || [], modifier.requiresIfExists || []);
  234. requires.forEach(function(dep) {
  235. if (!visited.has(dep)) {
  236. var depModifier = map.get(dep);
  237. if (depModifier) {
  238. sort(depModifier);
  239. }
  240. }
  241. });
  242. result.push(modifier);
  243. }
  244. modifiers.forEach(function(modifier) {
  245. if (!visited.has(modifier.name)) {
  246. sort(modifier);
  247. }
  248. });
  249. return result;
  250. }
  251. function orderModifiers(modifiers) {
  252. var orderedModifiers = order(modifiers);
  253. return modifierPhases.reduce(function(acc, phase) {
  254. return acc.concat(orderedModifiers.filter(function(modifier) {
  255. return modifier.phase === phase;
  256. }));
  257. }, []);
  258. }
  259. // node_modules/@popperjs/core/dist/esm/utils/debounce.js
  260. function debounce(fn2) {
  261. var pending;
  262. return function() {
  263. if (!pending) {
  264. pending = new Promise(function(resolve) {
  265. Promise.resolve().then(function() {
  266. pending = void 0;
  267. resolve(fn2());
  268. });
  269. });
  270. }
  271. return pending;
  272. };
  273. }
  274. // node_modules/@popperjs/core/dist/esm/utils/getBasePlacement.js
  275. function getBasePlacement(placement) {
  276. return placement.split("-")[0];
  277. }
  278. // node_modules/@popperjs/core/dist/esm/utils/mergeByName.js
  279. function mergeByName(modifiers) {
  280. var merged = modifiers.reduce(function(merged2, current) {
  281. var existing = merged2[current.name];
  282. merged2[current.name] = existing ? Object.assign({}, existing, current, {
  283. options: Object.assign({}, existing.options, current.options),
  284. data: Object.assign({}, existing.data, current.data)
  285. }) : current;
  286. return merged2;
  287. }, {});
  288. return Object.keys(merged).map(function(key) {
  289. return merged[key];
  290. });
  291. }
  292. // node_modules/@popperjs/core/dist/esm/dom-utils/getViewportRect.js
  293. function getViewportRect(element) {
  294. var win = getWindow(element);
  295. var html = getDocumentElement(element);
  296. var visualViewport = win.visualViewport;
  297. var width = html.clientWidth;
  298. var height = html.clientHeight;
  299. var x = 0;
  300. var y = 0;
  301. if (visualViewport) {
  302. width = visualViewport.width;
  303. height = visualViewport.height;
  304. if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
  305. x = visualViewport.offsetLeft;
  306. y = visualViewport.offsetTop;
  307. }
  308. }
  309. return {
  310. width,
  311. height,
  312. x: x + getWindowScrollBarX(element),
  313. y
  314. };
  315. }
  316. // node_modules/@popperjs/core/dist/esm/utils/math.js
  317. var max = Math.max;
  318. var min = Math.min;
  319. var round = Math.round;
  320. // node_modules/@popperjs/core/dist/esm/dom-utils/getDocumentRect.js
  321. function getDocumentRect(element) {
  322. var _element$ownerDocumen;
  323. var html = getDocumentElement(element);
  324. var winScroll = getWindowScroll(element);
  325. var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
  326. var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
  327. var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
  328. var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
  329. var y = -winScroll.scrollTop;
  330. if (getComputedStyle(body || html).direction === "rtl") {
  331. x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
  332. }
  333. return {
  334. width,
  335. height,
  336. x,
  337. y
  338. };
  339. }
  340. // node_modules/@popperjs/core/dist/esm/dom-utils/contains.js
  341. function contains(parent, child) {
  342. var rootNode = child.getRootNode && child.getRootNode();
  343. if (parent.contains(child)) {
  344. return true;
  345. } else if (rootNode && isShadowRoot(rootNode)) {
  346. var next = child;
  347. do {
  348. if (next && parent.isSameNode(next)) {
  349. return true;
  350. }
  351. next = next.parentNode || next.host;
  352. } while (next);
  353. }
  354. return false;
  355. }
  356. // node_modules/@popperjs/core/dist/esm/utils/rectToClientRect.js
  357. function rectToClientRect(rect) {
  358. return Object.assign({}, rect, {
  359. left: rect.x,
  360. top: rect.y,
  361. right: rect.x + rect.width,
  362. bottom: rect.y + rect.height
  363. });
  364. }
  365. // node_modules/@popperjs/core/dist/esm/dom-utils/getClippingRect.js
  366. function getInnerBoundingClientRect(element) {
  367. var rect = getBoundingClientRect(element);
  368. rect.top = rect.top + element.clientTop;
  369. rect.left = rect.left + element.clientLeft;
  370. rect.bottom = rect.top + element.clientHeight;
  371. rect.right = rect.left + element.clientWidth;
  372. rect.width = element.clientWidth;
  373. rect.height = element.clientHeight;
  374. rect.x = rect.left;
  375. rect.y = rect.top;
  376. return rect;
  377. }
  378. function getClientRectFromMixedType(element, clippingParent) {
  379. return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isHTMLElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
  380. }
  381. function getClippingParents(element) {
  382. var clippingParents2 = listScrollParents(getParentNode(element));
  383. var canEscapeClipping = ["absolute", "fixed"].indexOf(getComputedStyle(element).position) >= 0;
  384. var clipperElement = canEscapeClipping && isHTMLElement(element) ? getOffsetParent(element) : element;
  385. if (!isElement(clipperElement)) {
  386. return [];
  387. }
  388. return clippingParents2.filter(function(clippingParent) {
  389. return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== "body";
  390. });
  391. }
  392. function getClippingRect(element, boundary, rootBoundary) {
  393. var mainClippingParents = boundary === "clippingParents" ? getClippingParents(element) : [].concat(boundary);
  394. var clippingParents2 = [].concat(mainClippingParents, [rootBoundary]);
  395. var firstClippingParent = clippingParents2[0];
  396. var clippingRect = clippingParents2.reduce(function(accRect, clippingParent) {
  397. var rect = getClientRectFromMixedType(element, clippingParent);
  398. accRect.top = max(rect.top, accRect.top);
  399. accRect.right = min(rect.right, accRect.right);
  400. accRect.bottom = min(rect.bottom, accRect.bottom);
  401. accRect.left = max(rect.left, accRect.left);
  402. return accRect;
  403. }, getClientRectFromMixedType(element, firstClippingParent));
  404. clippingRect.width = clippingRect.right - clippingRect.left;
  405. clippingRect.height = clippingRect.bottom - clippingRect.top;
  406. clippingRect.x = clippingRect.left;
  407. clippingRect.y = clippingRect.top;
  408. return clippingRect;
  409. }
  410. // node_modules/@popperjs/core/dist/esm/utils/getVariation.js
  411. function getVariation(placement) {
  412. return placement.split("-")[1];
  413. }
  414. // node_modules/@popperjs/core/dist/esm/utils/getMainAxisFromPlacement.js
  415. function getMainAxisFromPlacement(placement) {
  416. return ["top", "bottom"].indexOf(placement) >= 0 ? "x" : "y";
  417. }
  418. // node_modules/@popperjs/core/dist/esm/utils/computeOffsets.js
  419. function computeOffsets(_ref) {
  420. var reference2 = _ref.reference, element = _ref.element, placement = _ref.placement;
  421. var basePlacement = placement ? getBasePlacement(placement) : null;
  422. var variation = placement ? getVariation(placement) : null;
  423. var commonX = reference2.x + reference2.width / 2 - element.width / 2;
  424. var commonY = reference2.y + reference2.height / 2 - element.height / 2;
  425. var offsets;
  426. switch (basePlacement) {
  427. case top:
  428. offsets = {
  429. x: commonX,
  430. y: reference2.y - element.height
  431. };
  432. break;
  433. case bottom:
  434. offsets = {
  435. x: commonX,
  436. y: reference2.y + reference2.height
  437. };
  438. break;
  439. case right:
  440. offsets = {
  441. x: reference2.x + reference2.width,
  442. y: commonY
  443. };
  444. break;
  445. case left:
  446. offsets = {
  447. x: reference2.x - element.width,
  448. y: commonY
  449. };
  450. break;
  451. default:
  452. offsets = {
  453. x: reference2.x,
  454. y: reference2.y
  455. };
  456. }
  457. var mainAxis = basePlacement ? getMainAxisFromPlacement(basePlacement) : null;
  458. if (mainAxis != null) {
  459. var len = mainAxis === "y" ? "height" : "width";
  460. switch (variation) {
  461. case start:
  462. offsets[mainAxis] = offsets[mainAxis] - (reference2[len] / 2 - element[len] / 2);
  463. break;
  464. case end:
  465. offsets[mainAxis] = offsets[mainAxis] + (reference2[len] / 2 - element[len] / 2);
  466. break;
  467. default:
  468. }
  469. }
  470. return offsets;
  471. }
  472. // node_modules/@popperjs/core/dist/esm/utils/getFreshSideObject.js
  473. function getFreshSideObject() {
  474. return {
  475. top: 0,
  476. right: 0,
  477. bottom: 0,
  478. left: 0
  479. };
  480. }
  481. // node_modules/@popperjs/core/dist/esm/utils/mergePaddingObject.js
  482. function mergePaddingObject(paddingObject) {
  483. return Object.assign({}, getFreshSideObject(), paddingObject);
  484. }
  485. // node_modules/@popperjs/core/dist/esm/utils/expandToHashMap.js
  486. function expandToHashMap(value, keys) {
  487. return keys.reduce(function(hashMap, key) {
  488. hashMap[key] = value;
  489. return hashMap;
  490. }, {});
  491. }
  492. // node_modules/@popperjs/core/dist/esm/utils/detectOverflow.js
  493. function detectOverflow(state, options) {
  494. if (options === void 0) {
  495. options = {};
  496. }
  497. var _options = options, _options$placement = _options.placement, placement = _options$placement === void 0 ? state.placement : _options$placement, _options$boundary = _options.boundary, boundary = _options$boundary === void 0 ? clippingParents : _options$boundary, _options$rootBoundary = _options.rootBoundary, rootBoundary = _options$rootBoundary === void 0 ? viewport : _options$rootBoundary, _options$elementConte = _options.elementContext, elementContext = _options$elementConte === void 0 ? popper : _options$elementConte, _options$altBoundary = _options.altBoundary, altBoundary = _options$altBoundary === void 0 ? false : _options$altBoundary, _options$padding = _options.padding, padding = _options$padding === void 0 ? 0 : _options$padding;
  498. var paddingObject = mergePaddingObject(typeof padding !== "number" ? padding : expandToHashMap(padding, basePlacements));
  499. var altContext = elementContext === popper ? reference : popper;
  500. var referenceElement = state.elements.reference;
  501. var popperRect = state.rects.popper;
  502. var element = state.elements[altBoundary ? altContext : elementContext];
  503. var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
  504. var referenceClientRect = getBoundingClientRect(referenceElement);
  505. var popperOffsets2 = computeOffsets({
  506. reference: referenceClientRect,
  507. element: popperRect,
  508. strategy: "absolute",
  509. placement
  510. });
  511. var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets2));
  512. var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect;
  513. var overflowOffsets = {
  514. top: clippingClientRect.top - elementClientRect.top + paddingObject.top,
  515. bottom: elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom,
  516. left: clippingClientRect.left - elementClientRect.left + paddingObject.left,
  517. right: elementClientRect.right - clippingClientRect.right + paddingObject.right
  518. };
  519. var offsetData = state.modifiersData.offset;
  520. if (elementContext === popper && offsetData) {
  521. var offset2 = offsetData[placement];
  522. Object.keys(overflowOffsets).forEach(function(key) {
  523. var multiply = [right, bottom].indexOf(key) >= 0 ? 1 : -1;
  524. var axis = [top, bottom].indexOf(key) >= 0 ? "y" : "x";
  525. overflowOffsets[key] += offset2[axis] * multiply;
  526. });
  527. }
  528. return overflowOffsets;
  529. }
  530. // node_modules/@popperjs/core/dist/esm/createPopper.js
  531. var DEFAULT_OPTIONS = {
  532. placement: "bottom",
  533. modifiers: [],
  534. strategy: "absolute"
  535. };
  536. function areValidElements() {
  537. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  538. args[_key] = arguments[_key];
  539. }
  540. return !args.some(function(element) {
  541. return !(element && typeof element.getBoundingClientRect === "function");
  542. });
  543. }
  544. function popperGenerator(generatorOptions) {
  545. if (generatorOptions === void 0) {
  546. generatorOptions = {};
  547. }
  548. var _generatorOptions = generatorOptions, _generatorOptions$def = _generatorOptions.defaultModifiers, defaultModifiers2 = _generatorOptions$def === void 0 ? [] : _generatorOptions$def, _generatorOptions$def2 = _generatorOptions.defaultOptions, defaultOptions = _generatorOptions$def2 === void 0 ? DEFAULT_OPTIONS : _generatorOptions$def2;
  549. return function createPopper2(reference2, popper2, options) {
  550. if (options === void 0) {
  551. options = defaultOptions;
  552. }
  553. var state = {
  554. placement: "bottom",
  555. orderedModifiers: [],
  556. options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
  557. modifiersData: {},
  558. elements: {
  559. reference: reference2,
  560. popper: popper2
  561. },
  562. attributes: {},
  563. styles: {}
  564. };
  565. var effectCleanupFns = [];
  566. var isDestroyed = false;
  567. var instance = {
  568. state,
  569. setOptions: function setOptions(options2) {
  570. cleanupModifierEffects();
  571. state.options = Object.assign({}, defaultOptions, state.options, options2);
  572. state.scrollParents = {
  573. reference: isElement(reference2) ? listScrollParents(reference2) : reference2.contextElement ? listScrollParents(reference2.contextElement) : [],
  574. popper: listScrollParents(popper2)
  575. };
  576. var orderedModifiers = orderModifiers(mergeByName([].concat(defaultModifiers2, state.options.modifiers)));
  577. state.orderedModifiers = orderedModifiers.filter(function(m) {
  578. return m.enabled;
  579. });
  580. if (false) {
  581. var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function(_ref) {
  582. var name = _ref.name;
  583. return name;
  584. });
  585. validateModifiers(modifiers);
  586. if (getBasePlacement(state.options.placement) === auto) {
  587. var flipModifier = state.orderedModifiers.find(function(_ref2) {
  588. var name = _ref2.name;
  589. return name === "flip";
  590. });
  591. if (!flipModifier) {
  592. console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
  593. }
  594. }
  595. var _getComputedStyle = getComputedStyle(popper2), marginTop = _getComputedStyle.marginTop, marginRight = _getComputedStyle.marginRight, marginBottom = _getComputedStyle.marginBottom, marginLeft = _getComputedStyle.marginLeft;
  596. if ([marginTop, marginRight, marginBottom, marginLeft].some(function(margin) {
  597. return parseFloat(margin);
  598. })) {
  599. console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', "between the popper and its reference element or boundary.", "To replicate margin, use the `offset` modifier, as well as", "the `padding` option in the `preventOverflow` and `flip`", "modifiers."].join(" "));
  600. }
  601. }
  602. runModifierEffects();
  603. return instance.update();
  604. },
  605. forceUpdate: function forceUpdate() {
  606. if (isDestroyed) {
  607. return;
  608. }
  609. var _state$elements = state.elements, reference3 = _state$elements.reference, popper3 = _state$elements.popper;
  610. if (!areValidElements(reference3, popper3)) {
  611. if (false) {
  612. console.error(INVALID_ELEMENT_ERROR);
  613. }
  614. return;
  615. }
  616. state.rects = {
  617. reference: getCompositeRect(reference3, getOffsetParent(popper3), state.options.strategy === "fixed"),
  618. popper: getLayoutRect(popper3)
  619. };
  620. state.reset = false;
  621. state.placement = state.options.placement;
  622. state.orderedModifiers.forEach(function(modifier) {
  623. return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
  624. });
  625. var __debug_loops__ = 0;
  626. for (var index = 0; index < state.orderedModifiers.length; index++) {
  627. if (false) {
  628. __debug_loops__ += 1;
  629. if (__debug_loops__ > 100) {
  630. console.error(INFINITE_LOOP_ERROR);
  631. break;
  632. }
  633. }
  634. if (state.reset === true) {
  635. state.reset = false;
  636. index = -1;
  637. continue;
  638. }
  639. var _state$orderedModifie = state.orderedModifiers[index], fn2 = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name = _state$orderedModifie.name;
  640. if (typeof fn2 === "function") {
  641. state = fn2({
  642. state,
  643. options: _options,
  644. name,
  645. instance
  646. }) || state;
  647. }
  648. }
  649. },
  650. update: debounce(function() {
  651. return new Promise(function(resolve) {
  652. instance.forceUpdate();
  653. resolve(state);
  654. });
  655. }),
  656. destroy: function destroy() {
  657. cleanupModifierEffects();
  658. isDestroyed = true;
  659. }
  660. };
  661. if (!areValidElements(reference2, popper2)) {
  662. if (false) {
  663. console.error(INVALID_ELEMENT_ERROR);
  664. }
  665. return instance;
  666. }
  667. instance.setOptions(options).then(function(state2) {
  668. if (!isDestroyed && options.onFirstUpdate) {
  669. options.onFirstUpdate(state2);
  670. }
  671. });
  672. function runModifierEffects() {
  673. state.orderedModifiers.forEach(function(_ref3) {
  674. var name = _ref3.name, _ref3$options = _ref3.options, options2 = _ref3$options === void 0 ? {} : _ref3$options, effect4 = _ref3.effect;
  675. if (typeof effect4 === "function") {
  676. var cleanupFn = effect4({
  677. state,
  678. name,
  679. instance,
  680. options: options2
  681. });
  682. var noopFn = function noopFn2() {
  683. };
  684. effectCleanupFns.push(cleanupFn || noopFn);
  685. }
  686. });
  687. }
  688. function cleanupModifierEffects() {
  689. effectCleanupFns.forEach(function(fn2) {
  690. return fn2();
  691. });
  692. effectCleanupFns = [];
  693. }
  694. return instance;
  695. };
  696. }
  697. // node_modules/@popperjs/core/dist/esm/modifiers/eventListeners.js
  698. var passive = {
  699. passive: true
  700. };
  701. function effect(_ref) {
  702. var state = _ref.state, instance = _ref.instance, options = _ref.options;
  703. var _options$scroll = options.scroll, scroll = _options$scroll === void 0 ? true : _options$scroll, _options$resize = options.resize, resize = _options$resize === void 0 ? true : _options$resize;
  704. var window2 = getWindow(state.elements.popper);
  705. var scrollParents = [].concat(state.scrollParents.reference, state.scrollParents.popper);
  706. if (scroll) {
  707. scrollParents.forEach(function(scrollParent) {
  708. scrollParent.addEventListener("scroll", instance.update, passive);
  709. });
  710. }
  711. if (resize) {
  712. window2.addEventListener("resize", instance.update, passive);
  713. }
  714. return function() {
  715. if (scroll) {
  716. scrollParents.forEach(function(scrollParent) {
  717. scrollParent.removeEventListener("scroll", instance.update, passive);
  718. });
  719. }
  720. if (resize) {
  721. window2.removeEventListener("resize", instance.update, passive);
  722. }
  723. };
  724. }
  725. var eventListeners_default = {
  726. name: "eventListeners",
  727. enabled: true,
  728. phase: "write",
  729. fn: function fn() {
  730. },
  731. effect,
  732. data: {}
  733. };
  734. // node_modules/@popperjs/core/dist/esm/modifiers/popperOffsets.js
  735. function popperOffsets(_ref) {
  736. var state = _ref.state, name = _ref.name;
  737. state.modifiersData[name] = computeOffsets({
  738. reference: state.rects.reference,
  739. element: state.rects.popper,
  740. strategy: "absolute",
  741. placement: state.placement
  742. });
  743. }
  744. var popperOffsets_default = {
  745. name: "popperOffsets",
  746. enabled: true,
  747. phase: "read",
  748. fn: popperOffsets,
  749. data: {}
  750. };
  751. // node_modules/@popperjs/core/dist/esm/modifiers/computeStyles.js
  752. var unsetSides = {
  753. top: "auto",
  754. right: "auto",
  755. bottom: "auto",
  756. left: "auto"
  757. };
  758. function roundOffsetsByDPR(_ref) {
  759. var x = _ref.x, y = _ref.y;
  760. var win = window;
  761. var dpr = win.devicePixelRatio || 1;
  762. return {
  763. x: round(round(x * dpr) / dpr) || 0,
  764. y: round(round(y * dpr) / dpr) || 0
  765. };
  766. }
  767. function mapToStyles(_ref2) {
  768. var _Object$assign2;
  769. var popper2 = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, offsets = _ref2.offsets, position = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets;
  770. var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === "function" ? roundOffsets(offsets) : offsets, _ref3$x = _ref3.x, x = _ref3$x === void 0 ? 0 : _ref3$x, _ref3$y = _ref3.y, y = _ref3$y === void 0 ? 0 : _ref3$y;
  771. var hasX = offsets.hasOwnProperty("x");
  772. var hasY = offsets.hasOwnProperty("y");
  773. var sideX = left;
  774. var sideY = top;
  775. var win = window;
  776. if (adaptive) {
  777. var offsetParent = getOffsetParent(popper2);
  778. var heightProp = "clientHeight";
  779. var widthProp = "clientWidth";
  780. if (offsetParent === getWindow(popper2)) {
  781. offsetParent = getDocumentElement(popper2);
  782. if (getComputedStyle(offsetParent).position !== "static") {
  783. heightProp = "scrollHeight";
  784. widthProp = "scrollWidth";
  785. }
  786. }
  787. if (placement === top) {
  788. sideY = bottom;
  789. y -= offsetParent[heightProp] - popperRect.height;
  790. y *= gpuAcceleration ? 1 : -1;
  791. }
  792. if (placement === left) {
  793. sideX = right;
  794. x -= offsetParent[widthProp] - popperRect.width;
  795. x *= gpuAcceleration ? 1 : -1;
  796. }
  797. }
  798. var commonStyles = Object.assign({
  799. position
  800. }, adaptive && unsetSides);
  801. if (gpuAcceleration) {
  802. var _Object$assign;
  803. return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
  804. }
  805. return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : "", _Object$assign2[sideX] = hasX ? x + "px" : "", _Object$assign2.transform = "", _Object$assign2));
  806. }
  807. function computeStyles(_ref4) {
  808. var state = _ref4.state, options = _ref4.options;
  809. var _options$gpuAccelerat = options.gpuAcceleration, gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat, _options$adaptive = options.adaptive, adaptive = _options$adaptive === void 0 ? true : _options$adaptive, _options$roundOffsets = options.roundOffsets, roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
  810. if (false) {
  811. var transitionProperty = getComputedStyle(state.elements.popper).transitionProperty || "";
  812. if (adaptive && ["transform", "top", "right", "bottom", "left"].some(function(property) {
  813. return transitionProperty.indexOf(property) >= 0;
  814. })) {
  815. console.warn(["Popper: Detected CSS transitions on at least one of the following", 'CSS properties: "transform", "top", "right", "bottom", "left".', "\n\n", 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', "for smooth transitions, or remove these properties from the CSS", "transition declaration on the popper element if only transitioning", "opacity or background-color for example.", "\n\n", "We recommend using the popper element as a wrapper around an inner", "element that can have any CSS property transitioned for animations."].join(" "));
  816. }
  817. }
  818. var commonStyles = {
  819. placement: getBasePlacement(state.placement),
  820. popper: state.elements.popper,
  821. popperRect: state.rects.popper,
  822. gpuAcceleration
  823. };
  824. if (state.modifiersData.popperOffsets != null) {
  825. state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
  826. offsets: state.modifiersData.popperOffsets,
  827. position: state.options.strategy,
  828. adaptive,
  829. roundOffsets
  830. })));
  831. }
  832. if (state.modifiersData.arrow != null) {
  833. state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
  834. offsets: state.modifiersData.arrow,
  835. position: "absolute",
  836. adaptive: false,
  837. roundOffsets
  838. })));
  839. }
  840. state.attributes.popper = Object.assign({}, state.attributes.popper, {
  841. "data-popper-placement": state.placement
  842. });
  843. }
  844. var computeStyles_default = {
  845. name: "computeStyles",
  846. enabled: true,
  847. phase: "beforeWrite",
  848. fn: computeStyles,
  849. data: {}
  850. };
  851. // node_modules/@popperjs/core/dist/esm/modifiers/applyStyles.js
  852. function applyStyles(_ref) {
  853. var state = _ref.state;
  854. Object.keys(state.elements).forEach(function(name) {
  855. var style = state.styles[name] || {};
  856. var attributes = state.attributes[name] || {};
  857. var element = state.elements[name];
  858. if (!isHTMLElement(element) || !getNodeName(element)) {
  859. return;
  860. }
  861. Object.assign(element.style, style);
  862. Object.keys(attributes).forEach(function(name2) {
  863. var value = attributes[name2];
  864. if (value === false) {
  865. element.removeAttribute(name2);
  866. } else {
  867. element.setAttribute(name2, value === true ? "" : value);
  868. }
  869. });
  870. });
  871. }
  872. function effect2(_ref2) {
  873. var state = _ref2.state;
  874. var initialStyles = {
  875. popper: {
  876. position: state.options.strategy,
  877. left: "0",
  878. top: "0",
  879. margin: "0"
  880. },
  881. arrow: {
  882. position: "absolute"
  883. },
  884. reference: {}
  885. };
  886. Object.assign(state.elements.popper.style, initialStyles.popper);
  887. state.styles = initialStyles;
  888. if (state.elements.arrow) {
  889. Object.assign(state.elements.arrow.style, initialStyles.arrow);
  890. }
  891. return function() {
  892. Object.keys(state.elements).forEach(function(name) {
  893. var element = state.elements[name];
  894. var attributes = state.attributes[name] || {};
  895. var styleProperties = Object.keys(state.styles.hasOwnProperty(name) ? state.styles[name] : initialStyles[name]);
  896. var style = styleProperties.reduce(function(style2, property) {
  897. style2[property] = "";
  898. return style2;
  899. }, {});
  900. if (!isHTMLElement(element) || !getNodeName(element)) {
  901. return;
  902. }
  903. Object.assign(element.style, style);
  904. Object.keys(attributes).forEach(function(attribute) {
  905. element.removeAttribute(attribute);
  906. });
  907. });
  908. };
  909. }
  910. var applyStyles_default = {
  911. name: "applyStyles",
  912. enabled: true,
  913. phase: "write",
  914. fn: applyStyles,
  915. effect: effect2,
  916. requires: ["computeStyles"]
  917. };
  918. // node_modules/@popperjs/core/dist/esm/modifiers/offset.js
  919. function distanceAndSkiddingToXY(placement, rects, offset2) {
  920. var basePlacement = getBasePlacement(placement);
  921. var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
  922. var _ref = typeof offset2 === "function" ? offset2(Object.assign({}, rects, {
  923. placement
  924. })) : offset2, skidding = _ref[0], distance = _ref[1];
  925. skidding = skidding || 0;
  926. distance = (distance || 0) * invertDistance;
  927. return [left, right].indexOf(basePlacement) >= 0 ? {
  928. x: distance,
  929. y: skidding
  930. } : {
  931. x: skidding,
  932. y: distance
  933. };
  934. }
  935. function offset(_ref2) {
  936. var state = _ref2.state, options = _ref2.options, name = _ref2.name;
  937. var _options$offset = options.offset, offset2 = _options$offset === void 0 ? [0, 0] : _options$offset;
  938. var data = placements.reduce(function(acc, placement) {
  939. acc[placement] = distanceAndSkiddingToXY(placement, state.rects, offset2);
  940. return acc;
  941. }, {});
  942. var _data$state$placement = data[state.placement], x = _data$state$placement.x, y = _data$state$placement.y;
  943. if (state.modifiersData.popperOffsets != null) {
  944. state.modifiersData.popperOffsets.x += x;
  945. state.modifiersData.popperOffsets.y += y;
  946. }
  947. state.modifiersData[name] = data;
  948. }
  949. var offset_default = {
  950. name: "offset",
  951. enabled: true,
  952. phase: "main",
  953. requires: ["popperOffsets"],
  954. fn: offset
  955. };
  956. // node_modules/@popperjs/core/dist/esm/utils/getOppositePlacement.js
  957. var hash = {
  958. left: "right",
  959. right: "left",
  960. bottom: "top",
  961. top: "bottom"
  962. };
  963. function getOppositePlacement(placement) {
  964. return placement.replace(/left|right|bottom|top/g, function(matched) {
  965. return hash[matched];
  966. });
  967. }
  968. // node_modules/@popperjs/core/dist/esm/utils/getOppositeVariationPlacement.js
  969. var hash2 = {
  970. start: "end",
  971. end: "start"
  972. };
  973. function getOppositeVariationPlacement(placement) {
  974. return placement.replace(/start|end/g, function(matched) {
  975. return hash2[matched];
  976. });
  977. }
  978. // node_modules/@popperjs/core/dist/esm/utils/computeAutoPlacement.js
  979. function computeAutoPlacement(state, options) {
  980. if (options === void 0) {
  981. options = {};
  982. }
  983. var _options = options, placement = _options.placement, boundary = _options.boundary, rootBoundary = _options.rootBoundary, padding = _options.padding, flipVariations = _options.flipVariations, _options$allowedAutoP = _options.allowedAutoPlacements, allowedAutoPlacements = _options$allowedAutoP === void 0 ? placements : _options$allowedAutoP;
  984. var variation = getVariation(placement);
  985. var placements2 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function(placement2) {
  986. return getVariation(placement2) === variation;
  987. }) : basePlacements;
  988. var allowedPlacements = placements2.filter(function(placement2) {
  989. return allowedAutoPlacements.indexOf(placement2) >= 0;
  990. });
  991. if (allowedPlacements.length === 0) {
  992. allowedPlacements = placements2;
  993. if (false) {
  994. console.error(["Popper: The `allowedAutoPlacements` option did not allow any", "placements. Ensure the `placement` option matches the variation", "of the allowed placements.", 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(" "));
  995. }
  996. }
  997. var overflows = allowedPlacements.reduce(function(acc, placement2) {
  998. acc[placement2] = detectOverflow(state, {
  999. placement: placement2,
  1000. boundary,
  1001. rootBoundary,
  1002. padding
  1003. })[getBasePlacement(placement2)];
  1004. return acc;
  1005. }, {});
  1006. return Object.keys(overflows).sort(function(a, b) {
  1007. return overflows[a] - overflows[b];
  1008. });
  1009. }
  1010. // node_modules/@popperjs/core/dist/esm/modifiers/flip.js
  1011. function getExpandedFallbackPlacements(placement) {
  1012. if (getBasePlacement(placement) === auto) {
  1013. return [];
  1014. }
  1015. var oppositePlacement = getOppositePlacement(placement);
  1016. return [getOppositeVariationPlacement(placement), oppositePlacement, getOppositeVariationPlacement(oppositePlacement)];
  1017. }
  1018. function flip(_ref) {
  1019. var state = _ref.state, options = _ref.options, name = _ref.name;
  1020. if (state.modifiersData[name]._skip) {
  1021. return;
  1022. }
  1023. var _options$mainAxis = options.mainAxis, checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis, _options$altAxis = options.altAxis, checkAltAxis = _options$altAxis === void 0 ? true : _options$altAxis, specifiedFallbackPlacements = options.fallbackPlacements, padding = options.padding, boundary = options.boundary, rootBoundary = options.rootBoundary, altBoundary = options.altBoundary, _options$flipVariatio = options.flipVariations, flipVariations = _options$flipVariatio === void 0 ? true : _options$flipVariatio, allowedAutoPlacements = options.allowedAutoPlacements;
  1024. var preferredPlacement = state.options.placement;
  1025. var basePlacement = getBasePlacement(preferredPlacement);
  1026. var isBasePlacement = basePlacement === preferredPlacement;
  1027. var fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipVariations ? [getOppositePlacement(preferredPlacement)] : getExpandedFallbackPlacements(preferredPlacement));
  1028. var placements2 = [preferredPlacement].concat(fallbackPlacements).reduce(function(acc, placement2) {
  1029. return acc.concat(getBasePlacement(placement2) === auto ? computeAutoPlacement(state, {
  1030. placement: placement2,
  1031. boundary,
  1032. rootBoundary,
  1033. padding,
  1034. flipVariations,
  1035. allowedAutoPlacements
  1036. }) : placement2);
  1037. }, []);
  1038. var referenceRect = state.rects.reference;
  1039. var popperRect = state.rects.popper;
  1040. var checksMap = new Map();
  1041. var makeFallbackChecks = true;
  1042. var firstFittingPlacement = placements2[0];
  1043. for (var i = 0; i < placements2.length; i++) {
  1044. var placement = placements2[i];
  1045. var _basePlacement = getBasePlacement(placement);
  1046. var isStartVariation = getVariation(placement) === start;
  1047. var isVertical = [top, bottom].indexOf(_basePlacement) >= 0;
  1048. var len = isVertical ? "width" : "height";
  1049. var overflow = detectOverflow(state, {
  1050. placement,
  1051. boundary,
  1052. rootBoundary,
  1053. altBoundary,
  1054. padding
  1055. });
  1056. var mainVariationSide = isVertical ? isStartVariation ? right : left : isStartVariation ? bottom : top;
  1057. if (referenceRect[len] > popperRect[len]) {
  1058. mainVariationSide = getOppositePlacement(mainVariationSide);
  1059. }
  1060. var altVariationSide = getOppositePlacement(mainVariationSide);
  1061. var checks = [];
  1062. if (checkMainAxis) {
  1063. checks.push(overflow[_basePlacement] <= 0);
  1064. }
  1065. if (checkAltAxis) {
  1066. checks.push(overflow[mainVariationSide] <= 0, overflow[altVariationSide] <= 0);
  1067. }
  1068. if (checks.every(function(check) {
  1069. return check;
  1070. })) {
  1071. firstFittingPlacement = placement;
  1072. makeFallbackChecks = false;
  1073. break;
  1074. }
  1075. checksMap.set(placement, checks);
  1076. }
  1077. if (makeFallbackChecks) {
  1078. var numberOfChecks = flipVariations ? 3 : 1;
  1079. var _loop = function _loop2(_i2) {
  1080. var fittingPlacement = placements2.find(function(placement2) {
  1081. var checks2 = checksMap.get(placement2);
  1082. if (checks2) {
  1083. return checks2.slice(0, _i2).every(function(check) {
  1084. return check;
  1085. });
  1086. }
  1087. });
  1088. if (fittingPlacement) {
  1089. firstFittingPlacement = fittingPlacement;
  1090. return "break";
  1091. }
  1092. };
  1093. for (var _i = numberOfChecks; _i > 0; _i--) {
  1094. var _ret = _loop(_i);
  1095. if (_ret === "break")
  1096. break;
  1097. }
  1098. }
  1099. if (state.placement !== firstFittingPlacement) {
  1100. state.modifiersData[name]._skip = true;
  1101. state.placement = firstFittingPlacement;
  1102. state.reset = true;
  1103. }
  1104. }
  1105. var flip_default = {
  1106. name: "flip",
  1107. enabled: true,
  1108. phase: "main",
  1109. fn: flip,
  1110. requiresIfExists: ["offset"],
  1111. data: {
  1112. _skip: false
  1113. }
  1114. };
  1115. // node_modules/@popperjs/core/dist/esm/utils/getAltAxis.js
  1116. function getAltAxis(axis) {
  1117. return axis === "x" ? "y" : "x";
  1118. }
  1119. // node_modules/@popperjs/core/dist/esm/utils/within.js
  1120. function within(min2, value, max2) {
  1121. return max(min2, min(value, max2));
  1122. }
  1123. // node_modules/@popperjs/core/dist/esm/modifiers/preventOverflow.js
  1124. function preventOverflow(_ref) {
  1125. var state = _ref.state, options = _ref.options, name = _ref.name;
  1126. var _options$mainAxis = options.mainAxis, checkMainAxis = _options$mainAxis === void 0 ? true : _options$mainAxis, _options$altAxis = options.altAxis, checkAltAxis = _options$altAxis === void 0 ? false : _options$altAxis, boundary = options.boundary, rootBoundary = options.rootBoundary, altBoundary = options.altBoundary, padding = options.padding, _options$tether = options.tether, tether = _options$tether === void 0 ? true : _options$tether, _options$tetherOffset = options.tetherOffset, tetherOffset = _options$tetherOffset === void 0 ? 0 : _options$tetherOffset;
  1127. var overflow = detectOverflow(state, {
  1128. boundary,
  1129. rootBoundary,
  1130. padding,
  1131. altBoundary
  1132. });
  1133. var basePlacement = getBasePlacement(state.placement);
  1134. var variation = getVariation(state.placement);
  1135. var isBasePlacement = !variation;
  1136. var mainAxis = getMainAxisFromPlacement(basePlacement);
  1137. var altAxis = getAltAxis(mainAxis);
  1138. var popperOffsets2 = state.modifiersData.popperOffsets;
  1139. var referenceRect = state.rects.reference;
  1140. var popperRect = state.rects.popper;
  1141. var tetherOffsetValue = typeof tetherOffset === "function" ? tetherOffset(Object.assign({}, state.rects, {
  1142. placement: state.placement
  1143. })) : tetherOffset;
  1144. var data = {
  1145. x: 0,
  1146. y: 0
  1147. };
  1148. if (!popperOffsets2) {
  1149. return;
  1150. }
  1151. if (checkMainAxis || checkAltAxis) {
  1152. var mainSide = mainAxis === "y" ? top : left;
  1153. var altSide = mainAxis === "y" ? bottom : right;
  1154. var len = mainAxis === "y" ? "height" : "width";
  1155. var offset2 = popperOffsets2[mainAxis];
  1156. var min2 = popperOffsets2[mainAxis] + overflow[mainSide];
  1157. var max2 = popperOffsets2[mainAxis] - overflow[altSide];
  1158. var additive = tether ? -popperRect[len] / 2 : 0;
  1159. var minLen = variation === start ? referenceRect[len] : popperRect[len];
  1160. var maxLen = variation === start ? -popperRect[len] : -referenceRect[len];
  1161. var arrowElement = state.elements.arrow;
  1162. var arrowRect = tether && arrowElement ? getLayoutRect(arrowElement) : {
  1163. width: 0,
  1164. height: 0
  1165. };
  1166. var arrowPaddingObject = state.modifiersData["arrow#persistent"] ? state.modifiersData["arrow#persistent"].padding : getFreshSideObject();
  1167. var arrowPaddingMin = arrowPaddingObject[mainSide];
  1168. var arrowPaddingMax = arrowPaddingObject[altSide];
  1169. var arrowLen = within(0, referenceRect[len], arrowRect[len]);
  1170. var minOffset = isBasePlacement ? referenceRect[len] / 2 - additive - arrowLen - arrowPaddingMin - tetherOffsetValue : minLen - arrowLen - arrowPaddingMin - tetherOffsetValue;
  1171. var maxOffset = isBasePlacement ? -referenceRect[len] / 2 + additive + arrowLen + arrowPaddingMax + tetherOffsetValue : maxLen + arrowLen + arrowPaddingMax + tetherOffsetValue;
  1172. var arrowOffsetParent = state.elements.arrow && getOffsetParent(state.elements.arrow);
  1173. var clientOffset = arrowOffsetParent ? mainAxis === "y" ? arrowOffsetParent.clientTop || 0 : arrowOffsetParent.clientLeft || 0 : 0;
  1174. var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
  1175. var tetherMin = popperOffsets2[mainAxis] + minOffset - offsetModifierValue - clientOffset;
  1176. var tetherMax = popperOffsets2[mainAxis] + maxOffset - offsetModifierValue;
  1177. if (checkMainAxis) {
  1178. var preventedOffset = within(tether ? min(min2, tetherMin) : min2, offset2, tether ? max(max2, tetherMax) : max2);
  1179. popperOffsets2[mainAxis] = preventedOffset;
  1180. data[mainAxis] = preventedOffset - offset2;
  1181. }
  1182. if (checkAltAxis) {
  1183. var _mainSide = mainAxis === "x" ? top : left;
  1184. var _altSide = mainAxis === "x" ? bottom : right;
  1185. var _offset = popperOffsets2[altAxis];
  1186. var _min = _offset + overflow[_mainSide];
  1187. var _max = _offset - overflow[_altSide];
  1188. var _preventedOffset = within(tether ? min(_min, tetherMin) : _min, _offset, tether ? max(_max, tetherMax) : _max);
  1189. popperOffsets2[altAxis] = _preventedOffset;
  1190. data[altAxis] = _preventedOffset - _offset;
  1191. }
  1192. }
  1193. state.modifiersData[name] = data;
  1194. }
  1195. var preventOverflow_default = {
  1196. name: "preventOverflow",
  1197. enabled: true,
  1198. phase: "main",
  1199. fn: preventOverflow,
  1200. requiresIfExists: ["offset"]
  1201. };
  1202. // node_modules/@popperjs/core/dist/esm/modifiers/arrow.js
  1203. var toPaddingObject = function toPaddingObject2(padding, state) {
  1204. padding = typeof padding === "function" ? padding(Object.assign({}, state.rects, {
  1205. placement: state.placement
  1206. })) : padding;
  1207. return mergePaddingObject(typeof padding !== "number" ? padding : expandToHashMap(padding, basePlacements));
  1208. };
  1209. function arrow(_ref) {
  1210. var _state$modifiersData$;
  1211. var state = _ref.state, name = _ref.name, options = _ref.options;
  1212. var arrowElement = state.elements.arrow;
  1213. var popperOffsets2 = state.modifiersData.popperOffsets;
  1214. var basePlacement = getBasePlacement(state.placement);
  1215. var axis = getMainAxisFromPlacement(basePlacement);
  1216. var isVertical = [left, right].indexOf(basePlacement) >= 0;
  1217. var len = isVertical ? "height" : "width";
  1218. if (!arrowElement || !popperOffsets2) {
  1219. return;
  1220. }
  1221. var paddingObject = toPaddingObject(options.padding, state);
  1222. var arrowRect = getLayoutRect(arrowElement);
  1223. var minProp = axis === "y" ? top : left;
  1224. var maxProp = axis === "y" ? bottom : right;
  1225. var endDiff = state.rects.reference[len] + state.rects.reference[axis] - popperOffsets2[axis] - state.rects.popper[len];
  1226. var startDiff = popperOffsets2[axis] - state.rects.reference[axis];
  1227. var arrowOffsetParent = getOffsetParent(arrowElement);
  1228. var clientSize = arrowOffsetParent ? axis === "y" ? arrowOffsetParent.clientHeight || 0 : arrowOffsetParent.clientWidth || 0 : 0;
  1229. var centerToReference = endDiff / 2 - startDiff / 2;
  1230. var min2 = paddingObject[minProp];
  1231. var max2 = clientSize - arrowRect[len] - paddingObject[maxProp];
  1232. var center = clientSize / 2 - arrowRect[len] / 2 + centerToReference;
  1233. var offset2 = within(min2, center, max2);
  1234. var axisProp = axis;
  1235. state.modifiersData[name] = (_state$modifiersData$ = {}, _state$modifiersData$[axisProp] = offset2, _state$modifiersData$.centerOffset = offset2 - center, _state$modifiersData$);
  1236. }
  1237. function effect3(_ref2) {
  1238. var state = _ref2.state, options = _ref2.options;
  1239. var _options$element = options.element, arrowElement = _options$element === void 0 ? "[data-popper-arrow]" : _options$element;
  1240. if (arrowElement == null) {
  1241. return;
  1242. }
  1243. if (typeof arrowElement === "string") {
  1244. arrowElement = state.elements.popper.querySelector(arrowElement);
  1245. if (!arrowElement) {
  1246. return;
  1247. }
  1248. }
  1249. if (false) {
  1250. if (!isHTMLElement(arrowElement)) {
  1251. console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', "To use an SVG arrow, wrap it in an HTMLElement that will be used as", "the arrow."].join(" "));
  1252. }
  1253. }
  1254. if (!contains(state.elements.popper, arrowElement)) {
  1255. if (false) {
  1256. console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
  1257. }
  1258. return;
  1259. }
  1260. state.elements.arrow = arrowElement;
  1261. }
  1262. var arrow_default = {
  1263. name: "arrow",
  1264. enabled: true,
  1265. phase: "main",
  1266. fn: arrow,
  1267. effect: effect3,
  1268. requires: ["popperOffsets"],
  1269. requiresIfExists: ["preventOverflow"]
  1270. };
  1271. // node_modules/@popperjs/core/dist/esm/modifiers/hide.js
  1272. function getSideOffsets(overflow, rect, preventedOffsets) {
  1273. if (preventedOffsets === void 0) {
  1274. preventedOffsets = {
  1275. x: 0,
  1276. y: 0
  1277. };
  1278. }
  1279. return {
  1280. top: overflow.top - rect.height - preventedOffsets.y,
  1281. right: overflow.right - rect.width + preventedOffsets.x,
  1282. bottom: overflow.bottom - rect.height + preventedOffsets.y,
  1283. left: overflow.left - rect.width - preventedOffsets.x
  1284. };
  1285. }
  1286. function isAnySideFullyClipped(overflow) {
  1287. return [top, right, bottom, left].some(function(side) {
  1288. return overflow[side] >= 0;
  1289. });
  1290. }
  1291. function hide(_ref) {
  1292. var state = _ref.state, name = _ref.name;
  1293. var referenceRect = state.rects.reference;
  1294. var popperRect = state.rects.popper;
  1295. var preventedOffsets = state.modifiersData.preventOverflow;
  1296. var referenceOverflow = detectOverflow(state, {
  1297. elementContext: "reference"
  1298. });
  1299. var popperAltOverflow = detectOverflow(state, {
  1300. altBoundary: true
  1301. });
  1302. var referenceClippingOffsets = getSideOffsets(referenceOverflow, referenceRect);
  1303. var popperEscapeOffsets = getSideOffsets(popperAltOverflow, popperRect, preventedOffsets);
  1304. var isReferenceHidden = isAnySideFullyClipped(referenceClippingOffsets);
  1305. var hasPopperEscaped = isAnySideFullyClipped(popperEscapeOffsets);
  1306. state.modifiersData[name] = {
  1307. referenceClippingOffsets,
  1308. popperEscapeOffsets,
  1309. isReferenceHidden,
  1310. hasPopperEscaped
  1311. };
  1312. state.attributes.popper = Object.assign({}, state.attributes.popper, {
  1313. "data-popper-reference-hidden": isReferenceHidden,
  1314. "data-popper-escaped": hasPopperEscaped
  1315. });
  1316. }
  1317. var hide_default = {
  1318. name: "hide",
  1319. enabled: true,
  1320. phase: "main",
  1321. requiresIfExists: ["preventOverflow"],
  1322. fn: hide
  1323. };
  1324. // node_modules/@popperjs/core/dist/esm/popper.js
  1325. var defaultModifiers = [eventListeners_default, popperOffsets_default, computeStyles_default, applyStyles_default, offset_default, flip_default, preventOverflow_default, arrow_default, hide_default];
  1326. var createPopper = /* @__PURE__ */ popperGenerator({
  1327. defaultModifiers
  1328. });
  1329. export {
  1330. createPopper
  1331. };