bootstrap.js 121 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944
  1. /*!
  2. * Bootstrap v4.1.2 (https://getbootstrap.com/)
  3. * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
  4. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  5. */
  6. (function (global, factory) {
  7. typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('jquery'), require('popper.js')) :
  8. typeof define === 'function' && define.amd ? define(['exports', 'jquery', 'popper.js'], factory) :
  9. (factory((global.bootstrap = {}),global.jQuery,global.Popper));
  10. }(this, (function (exports,$,Popper) { 'use strict';
  11. $ = $ && $.hasOwnProperty('default') ? $['default'] : $;
  12. Popper = Popper && Popper.hasOwnProperty('default') ? Popper['default'] : Popper;
  13. function _defineProperties(target, props) {
  14. for (var i = 0; i < props.length; i++) {
  15. var descriptor = props[i];
  16. descriptor.enumerable = descriptor.enumerable || false;
  17. descriptor.configurable = true;
  18. if ("value" in descriptor) descriptor.writable = true;
  19. Object.defineProperty(target, descriptor.key, descriptor);
  20. }
  21. }
  22. function _createClass(Constructor, protoProps, staticProps) {
  23. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  24. if (staticProps) _defineProperties(Constructor, staticProps);
  25. return Constructor;
  26. }
  27. function _defineProperty(obj, key, value) {
  28. if (key in obj) {
  29. Object.defineProperty(obj, key, {
  30. value: value,
  31. enumerable: true,
  32. configurable: true,
  33. writable: true
  34. });
  35. } else {
  36. obj[key] = value;
  37. }
  38. return obj;
  39. }
  40. function _objectSpread(target) {
  41. for (var i = 1; i < arguments.length; i++) {
  42. var source = arguments[i] != null ? arguments[i] : {};
  43. var ownKeys = Object.keys(source);
  44. if (typeof Object.getOwnPropertySymbols === 'function') {
  45. ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
  46. return Object.getOwnPropertyDescriptor(source, sym).enumerable;
  47. }));
  48. }
  49. ownKeys.forEach(function (key) {
  50. _defineProperty(target, key, source[key]);
  51. });
  52. }
  53. return target;
  54. }
  55. function _inheritsLoose(subClass, superClass) {
  56. subClass.prototype = Object.create(superClass.prototype);
  57. subClass.prototype.constructor = subClass;
  58. subClass.__proto__ = superClass;
  59. }
  60. /**
  61. * --------------------------------------------------------------------------
  62. * Bootstrap (v4.1.2): util.js
  63. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  64. * --------------------------------------------------------------------------
  65. */
  66. var Util = function ($$$1) {
  67. /**
  68. * ------------------------------------------------------------------------
  69. * Private TransitionEnd Helpers
  70. * ------------------------------------------------------------------------
  71. */
  72. var TRANSITION_END = 'transitionend';
  73. var MAX_UID = 1000000;
  74. var MILLISECONDS_MULTIPLIER = 1000; // Shoutout AngusCroll (https://goo.gl/pxwQGp)
  75. function toType(obj) {
  76. return {}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();
  77. }
  78. function getSpecialTransitionEndEvent() {
  79. return {
  80. bindType: TRANSITION_END,
  81. delegateType: TRANSITION_END,
  82. handle: function handle(event) {
  83. if ($$$1(event.target).is(this)) {
  84. return event.handleObj.handler.apply(this, arguments); // eslint-disable-line prefer-rest-params
  85. }
  86. return undefined; // eslint-disable-line no-undefined
  87. }
  88. };
  89. }
  90. function transitionEndEmulator(duration) {
  91. var _this = this;
  92. var called = false;
  93. $$$1(this).one(Util.TRANSITION_END, function () {
  94. called = true;
  95. });
  96. setTimeout(function () {
  97. if (!called) {
  98. Util.triggerTransitionEnd(_this);
  99. }
  100. }, duration);
  101. return this;
  102. }
  103. function setTransitionEndSupport() {
  104. $$$1.fn.emulateTransitionEnd = transitionEndEmulator;
  105. $$$1.event.special[Util.TRANSITION_END] = getSpecialTransitionEndEvent();
  106. }
  107. /**
  108. * --------------------------------------------------------------------------
  109. * Public Util Api
  110. * --------------------------------------------------------------------------
  111. */
  112. var Util = {
  113. TRANSITION_END: 'bsTransitionEnd',
  114. getUID: function getUID(prefix) {
  115. do {
  116. // eslint-disable-next-line no-bitwise
  117. prefix += ~~(Math.random() * MAX_UID); // "~~" acts like a faster Math.floor() here
  118. } while (document.getElementById(prefix));
  119. return prefix;
  120. },
  121. getSelectorFromElement: function getSelectorFromElement(element) {
  122. var selector = element.getAttribute('data-target');
  123. if (!selector || selector === '#') {
  124. selector = element.getAttribute('href') || '';
  125. }
  126. try {
  127. return document.querySelector(selector) ? selector : null;
  128. } catch (err) {
  129. return null;
  130. }
  131. },
  132. getTransitionDurationFromElement: function getTransitionDurationFromElement(element) {
  133. if (!element) {
  134. return 0;
  135. } // Get transition-duration of the element
  136. var transitionDuration = $$$1(element).css('transition-duration');
  137. var floatTransitionDuration = parseFloat(transitionDuration); // Return 0 if element or transition duration is not found
  138. if (!floatTransitionDuration) {
  139. return 0;
  140. } // If multiple durations are defined, take the first
  141. transitionDuration = transitionDuration.split(',')[0];
  142. return parseFloat(transitionDuration) * MILLISECONDS_MULTIPLIER;
  143. },
  144. reflow: function reflow(element) {
  145. return element.offsetHeight;
  146. },
  147. triggerTransitionEnd: function triggerTransitionEnd(element) {
  148. $$$1(element).trigger(TRANSITION_END);
  149. },
  150. // TODO: Remove in v5
  151. supportsTransitionEnd: function supportsTransitionEnd() {
  152. return Boolean(TRANSITION_END);
  153. },
  154. isElement: function isElement(obj) {
  155. return (obj[0] || obj).nodeType;
  156. },
  157. typeCheckConfig: function typeCheckConfig(componentName, config, configTypes) {
  158. for (var property in configTypes) {
  159. if (Object.prototype.hasOwnProperty.call(configTypes, property)) {
  160. var expectedTypes = configTypes[property];
  161. var value = config[property];
  162. var valueType = value && Util.isElement(value) ? 'element' : toType(value);
  163. if (!new RegExp(expectedTypes).test(valueType)) {
  164. throw new Error(componentName.toUpperCase() + ": " + ("Option \"" + property + "\" provided type \"" + valueType + "\" ") + ("but expected type \"" + expectedTypes + "\"."));
  165. }
  166. }
  167. }
  168. }
  169. };
  170. setTransitionEndSupport();
  171. return Util;
  172. }($);
  173. /**
  174. * --------------------------------------------------------------------------
  175. * Bootstrap (v4.1.2): alert.js
  176. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  177. * --------------------------------------------------------------------------
  178. */
  179. var Alert = function ($$$1) {
  180. /**
  181. * ------------------------------------------------------------------------
  182. * Constants
  183. * ------------------------------------------------------------------------
  184. */
  185. var NAME = 'alert';
  186. var VERSION = '4.1.2';
  187. var DATA_KEY = 'bs.alert';
  188. var EVENT_KEY = "." + DATA_KEY;
  189. var DATA_API_KEY = '.data-api';
  190. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  191. var Selector = {
  192. DISMISS: '[data-dismiss="alert"]'
  193. };
  194. var Event = {
  195. CLOSE: "close" + EVENT_KEY,
  196. CLOSED: "closed" + EVENT_KEY,
  197. CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
  198. };
  199. var ClassName = {
  200. ALERT: 'alert',
  201. FADE: 'fade',
  202. SHOW: 'show'
  203. /**
  204. * ------------------------------------------------------------------------
  205. * Class Definition
  206. * ------------------------------------------------------------------------
  207. */
  208. };
  209. var Alert =
  210. /*#__PURE__*/
  211. function () {
  212. function Alert(element) {
  213. this._element = element;
  214. } // Getters
  215. var _proto = Alert.prototype;
  216. // Public
  217. _proto.close = function close(element) {
  218. var rootElement = this._element;
  219. if (element) {
  220. rootElement = this._getRootElement(element);
  221. }
  222. var customEvent = this._triggerCloseEvent(rootElement);
  223. if (customEvent.isDefaultPrevented()) {
  224. return;
  225. }
  226. this._removeElement(rootElement);
  227. };
  228. _proto.dispose = function dispose() {
  229. $$$1.removeData(this._element, DATA_KEY);
  230. this._element = null;
  231. }; // Private
  232. _proto._getRootElement = function _getRootElement(element) {
  233. var selector = Util.getSelectorFromElement(element);
  234. var parent = false;
  235. if (selector) {
  236. parent = document.querySelector(selector);
  237. }
  238. if (!parent) {
  239. parent = $$$1(element).closest("." + ClassName.ALERT)[0];
  240. }
  241. return parent;
  242. };
  243. _proto._triggerCloseEvent = function _triggerCloseEvent(element) {
  244. var closeEvent = $$$1.Event(Event.CLOSE);
  245. $$$1(element).trigger(closeEvent);
  246. return closeEvent;
  247. };
  248. _proto._removeElement = function _removeElement(element) {
  249. var _this = this;
  250. $$$1(element).removeClass(ClassName.SHOW);
  251. if (!$$$1(element).hasClass(ClassName.FADE)) {
  252. this._destroyElement(element);
  253. return;
  254. }
  255. var transitionDuration = Util.getTransitionDurationFromElement(element);
  256. $$$1(element).one(Util.TRANSITION_END, function (event) {
  257. return _this._destroyElement(element, event);
  258. }).emulateTransitionEnd(transitionDuration);
  259. };
  260. _proto._destroyElement = function _destroyElement(element) {
  261. $$$1(element).detach().trigger(Event.CLOSED).remove();
  262. }; // Static
  263. Alert._jQueryInterface = function _jQueryInterface(config) {
  264. return this.each(function () {
  265. var $element = $$$1(this);
  266. var data = $element.data(DATA_KEY);
  267. if (!data) {
  268. data = new Alert(this);
  269. $element.data(DATA_KEY, data);
  270. }
  271. if (config === 'close') {
  272. data[config](this);
  273. }
  274. });
  275. };
  276. Alert._handleDismiss = function _handleDismiss(alertInstance) {
  277. return function (event) {
  278. if (event) {
  279. event.preventDefault();
  280. }
  281. alertInstance.close(this);
  282. };
  283. };
  284. _createClass(Alert, null, [{
  285. key: "VERSION",
  286. get: function get() {
  287. return VERSION;
  288. }
  289. }]);
  290. return Alert;
  291. }();
  292. /**
  293. * ------------------------------------------------------------------------
  294. * Data Api implementation
  295. * ------------------------------------------------------------------------
  296. */
  297. $$$1(document).on(Event.CLICK_DATA_API, Selector.DISMISS, Alert._handleDismiss(new Alert()));
  298. /**
  299. * ------------------------------------------------------------------------
  300. * jQuery
  301. * ------------------------------------------------------------------------
  302. */
  303. $$$1.fn[NAME] = Alert._jQueryInterface;
  304. $$$1.fn[NAME].Constructor = Alert;
  305. $$$1.fn[NAME].noConflict = function () {
  306. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  307. return Alert._jQueryInterface;
  308. };
  309. return Alert;
  310. }($);
  311. /**
  312. * --------------------------------------------------------------------------
  313. * Bootstrap (v4.1.2): button.js
  314. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  315. * --------------------------------------------------------------------------
  316. */
  317. var Button = function ($$$1) {
  318. /**
  319. * ------------------------------------------------------------------------
  320. * Constants
  321. * ------------------------------------------------------------------------
  322. */
  323. var NAME = 'button';
  324. var VERSION = '4.1.2';
  325. var DATA_KEY = 'bs.button';
  326. var EVENT_KEY = "." + DATA_KEY;
  327. var DATA_API_KEY = '.data-api';
  328. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  329. var ClassName = {
  330. ACTIVE: 'active',
  331. BUTTON: 'btn',
  332. FOCUS: 'focus'
  333. };
  334. var Selector = {
  335. DATA_TOGGLE_CARROT: '[data-toggle^="button"]',
  336. DATA_TOGGLE: '[data-toggle="buttons"]',
  337. INPUT: 'input',
  338. ACTIVE: '.active',
  339. BUTTON: '.btn'
  340. };
  341. var Event = {
  342. CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY,
  343. FOCUS_BLUR_DATA_API: "focus" + EVENT_KEY + DATA_API_KEY + " " + ("blur" + EVENT_KEY + DATA_API_KEY)
  344. /**
  345. * ------------------------------------------------------------------------
  346. * Class Definition
  347. * ------------------------------------------------------------------------
  348. */
  349. };
  350. var Button =
  351. /*#__PURE__*/
  352. function () {
  353. function Button(element) {
  354. this._element = element;
  355. } // Getters
  356. var _proto = Button.prototype;
  357. // Public
  358. _proto.toggle = function toggle() {
  359. var triggerChangeEvent = true;
  360. var addAriaPressed = true;
  361. var rootElement = $$$1(this._element).closest(Selector.DATA_TOGGLE)[0];
  362. if (rootElement) {
  363. var input = this._element.querySelector(Selector.INPUT);
  364. if (input) {
  365. if (input.type === 'radio') {
  366. if (input.checked && this._element.classList.contains(ClassName.ACTIVE)) {
  367. triggerChangeEvent = false;
  368. } else {
  369. var activeElement = rootElement.querySelector(Selector.ACTIVE);
  370. if (activeElement) {
  371. $$$1(activeElement).removeClass(ClassName.ACTIVE);
  372. }
  373. }
  374. }
  375. if (triggerChangeEvent) {
  376. if (input.hasAttribute('disabled') || rootElement.hasAttribute('disabled') || input.classList.contains('disabled') || rootElement.classList.contains('disabled')) {
  377. return;
  378. }
  379. input.checked = !this._element.classList.contains(ClassName.ACTIVE);
  380. $$$1(input).trigger('change');
  381. }
  382. input.focus();
  383. addAriaPressed = false;
  384. }
  385. }
  386. if (addAriaPressed) {
  387. this._element.setAttribute('aria-pressed', !this._element.classList.contains(ClassName.ACTIVE));
  388. }
  389. if (triggerChangeEvent) {
  390. $$$1(this._element).toggleClass(ClassName.ACTIVE);
  391. }
  392. };
  393. _proto.dispose = function dispose() {
  394. $$$1.removeData(this._element, DATA_KEY);
  395. this._element = null;
  396. }; // Static
  397. Button._jQueryInterface = function _jQueryInterface(config) {
  398. return this.each(function () {
  399. var data = $$$1(this).data(DATA_KEY);
  400. if (!data) {
  401. data = new Button(this);
  402. $$$1(this).data(DATA_KEY, data);
  403. }
  404. if (config === 'toggle') {
  405. data[config]();
  406. }
  407. });
  408. };
  409. _createClass(Button, null, [{
  410. key: "VERSION",
  411. get: function get() {
  412. return VERSION;
  413. }
  414. }]);
  415. return Button;
  416. }();
  417. /**
  418. * ------------------------------------------------------------------------
  419. * Data Api implementation
  420. * ------------------------------------------------------------------------
  421. */
  422. $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) {
  423. event.preventDefault();
  424. var button = event.target;
  425. if (!$$$1(button).hasClass(ClassName.BUTTON)) {
  426. button = $$$1(button).closest(Selector.BUTTON);
  427. }
  428. Button._jQueryInterface.call($$$1(button), 'toggle');
  429. }).on(Event.FOCUS_BLUR_DATA_API, Selector.DATA_TOGGLE_CARROT, function (event) {
  430. var button = $$$1(event.target).closest(Selector.BUTTON)[0];
  431. $$$1(button).toggleClass(ClassName.FOCUS, /^focus(in)?$/.test(event.type));
  432. });
  433. /**
  434. * ------------------------------------------------------------------------
  435. * jQuery
  436. * ------------------------------------------------------------------------
  437. */
  438. $$$1.fn[NAME] = Button._jQueryInterface;
  439. $$$1.fn[NAME].Constructor = Button;
  440. $$$1.fn[NAME].noConflict = function () {
  441. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  442. return Button._jQueryInterface;
  443. };
  444. return Button;
  445. }($);
  446. /**
  447. * --------------------------------------------------------------------------
  448. * Bootstrap (v4.1.2): carousel.js
  449. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  450. * --------------------------------------------------------------------------
  451. */
  452. var Carousel = function ($$$1) {
  453. /**
  454. * ------------------------------------------------------------------------
  455. * Constants
  456. * ------------------------------------------------------------------------
  457. */
  458. var NAME = 'carousel';
  459. var VERSION = '4.1.2';
  460. var DATA_KEY = 'bs.carousel';
  461. var EVENT_KEY = "." + DATA_KEY;
  462. var DATA_API_KEY = '.data-api';
  463. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  464. var ARROW_LEFT_KEYCODE = 37; // KeyboardEvent.which value for left arrow key
  465. var ARROW_RIGHT_KEYCODE = 39; // KeyboardEvent.which value for right arrow key
  466. var TOUCHEVENT_COMPAT_WAIT = 500; // Time for mouse compat events to fire after touch
  467. var Default = {
  468. interval: 5000,
  469. keyboard: true,
  470. slide: false,
  471. pause: 'hover',
  472. wrap: true
  473. };
  474. var DefaultType = {
  475. interval: '(number|boolean)',
  476. keyboard: 'boolean',
  477. slide: '(boolean|string)',
  478. pause: '(string|boolean)',
  479. wrap: 'boolean'
  480. };
  481. var Direction = {
  482. NEXT: 'next',
  483. PREV: 'prev',
  484. LEFT: 'left',
  485. RIGHT: 'right'
  486. };
  487. var Event = {
  488. SLIDE: "slide" + EVENT_KEY,
  489. SLID: "slid" + EVENT_KEY,
  490. KEYDOWN: "keydown" + EVENT_KEY,
  491. MOUSEENTER: "mouseenter" + EVENT_KEY,
  492. MOUSELEAVE: "mouseleave" + EVENT_KEY,
  493. TOUCHEND: "touchend" + EVENT_KEY,
  494. LOAD_DATA_API: "load" + EVENT_KEY + DATA_API_KEY,
  495. CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
  496. };
  497. var ClassName = {
  498. CAROUSEL: 'carousel',
  499. ACTIVE: 'active',
  500. SLIDE: 'slide',
  501. RIGHT: 'carousel-item-right',
  502. LEFT: 'carousel-item-left',
  503. NEXT: 'carousel-item-next',
  504. PREV: 'carousel-item-prev',
  505. ITEM: 'carousel-item'
  506. };
  507. var Selector = {
  508. ACTIVE: '.active',
  509. ACTIVE_ITEM: '.active.carousel-item',
  510. ITEM: '.carousel-item',
  511. NEXT_PREV: '.carousel-item-next, .carousel-item-prev',
  512. INDICATORS: '.carousel-indicators',
  513. DATA_SLIDE: '[data-slide], [data-slide-to]',
  514. DATA_RIDE: '[data-ride="carousel"]'
  515. /**
  516. * ------------------------------------------------------------------------
  517. * Class Definition
  518. * ------------------------------------------------------------------------
  519. */
  520. };
  521. var Carousel =
  522. /*#__PURE__*/
  523. function () {
  524. function Carousel(element, config) {
  525. this._items = null;
  526. this._interval = null;
  527. this._activeElement = null;
  528. this._isPaused = false;
  529. this._isSliding = false;
  530. this.touchTimeout = null;
  531. this._config = this._getConfig(config);
  532. this._element = $$$1(element)[0];
  533. this._indicatorsElement = this._element.querySelector(Selector.INDICATORS);
  534. this._addEventListeners();
  535. } // Getters
  536. var _proto = Carousel.prototype;
  537. // Public
  538. _proto.next = function next() {
  539. if (!this._isSliding) {
  540. this._slide(Direction.NEXT);
  541. }
  542. };
  543. _proto.nextWhenVisible = function nextWhenVisible() {
  544. // Don't call next when the page isn't visible
  545. // or the carousel or its parent isn't visible
  546. if (!document.hidden && $$$1(this._element).is(':visible') && $$$1(this._element).css('visibility') !== 'hidden') {
  547. this.next();
  548. }
  549. };
  550. _proto.prev = function prev() {
  551. if (!this._isSliding) {
  552. this._slide(Direction.PREV);
  553. }
  554. };
  555. _proto.pause = function pause(event) {
  556. if (!event) {
  557. this._isPaused = true;
  558. }
  559. if (this._element.querySelector(Selector.NEXT_PREV)) {
  560. Util.triggerTransitionEnd(this._element);
  561. this.cycle(true);
  562. }
  563. clearInterval(this._interval);
  564. this._interval = null;
  565. };
  566. _proto.cycle = function cycle(event) {
  567. if (!event) {
  568. this._isPaused = false;
  569. }
  570. if (this._interval) {
  571. clearInterval(this._interval);
  572. this._interval = null;
  573. }
  574. if (this._config.interval && !this._isPaused) {
  575. this._interval = setInterval((document.visibilityState ? this.nextWhenVisible : this.next).bind(this), this._config.interval);
  576. }
  577. };
  578. _proto.to = function to(index) {
  579. var _this = this;
  580. this._activeElement = this._element.querySelector(Selector.ACTIVE_ITEM);
  581. var activeIndex = this._getItemIndex(this._activeElement);
  582. if (index > this._items.length - 1 || index < 0) {
  583. return;
  584. }
  585. if (this._isSliding) {
  586. $$$1(this._element).one(Event.SLID, function () {
  587. return _this.to(index);
  588. });
  589. return;
  590. }
  591. if (activeIndex === index) {
  592. this.pause();
  593. this.cycle();
  594. return;
  595. }
  596. var direction = index > activeIndex ? Direction.NEXT : Direction.PREV;
  597. this._slide(direction, this._items[index]);
  598. };
  599. _proto.dispose = function dispose() {
  600. $$$1(this._element).off(EVENT_KEY);
  601. $$$1.removeData(this._element, DATA_KEY);
  602. this._items = null;
  603. this._config = null;
  604. this._element = null;
  605. this._interval = null;
  606. this._isPaused = null;
  607. this._isSliding = null;
  608. this._activeElement = null;
  609. this._indicatorsElement = null;
  610. }; // Private
  611. _proto._getConfig = function _getConfig(config) {
  612. config = _objectSpread({}, Default, config);
  613. Util.typeCheckConfig(NAME, config, DefaultType);
  614. return config;
  615. };
  616. _proto._addEventListeners = function _addEventListeners() {
  617. var _this2 = this;
  618. if (this._config.keyboard) {
  619. $$$1(this._element).on(Event.KEYDOWN, function (event) {
  620. return _this2._keydown(event);
  621. });
  622. }
  623. if (this._config.pause === 'hover') {
  624. $$$1(this._element).on(Event.MOUSEENTER, function (event) {
  625. return _this2.pause(event);
  626. }).on(Event.MOUSELEAVE, function (event) {
  627. return _this2.cycle(event);
  628. });
  629. if ('ontouchstart' in document.documentElement) {
  630. // If it's a touch-enabled device, mouseenter/leave are fired as
  631. // part of the mouse compatibility events on first tap - the carousel
  632. // would stop cycling until user tapped out of it;
  633. // here, we listen for touchend, explicitly pause the carousel
  634. // (as if it's the second time we tap on it, mouseenter compat event
  635. // is NOT fired) and after a timeout (to allow for mouse compatibility
  636. // events to fire) we explicitly restart cycling
  637. $$$1(this._element).on(Event.TOUCHEND, function () {
  638. _this2.pause();
  639. if (_this2.touchTimeout) {
  640. clearTimeout(_this2.touchTimeout);
  641. }
  642. _this2.touchTimeout = setTimeout(function (event) {
  643. return _this2.cycle(event);
  644. }, TOUCHEVENT_COMPAT_WAIT + _this2._config.interval);
  645. });
  646. }
  647. }
  648. };
  649. _proto._keydown = function _keydown(event) {
  650. if (/input|textarea/i.test(event.target.tagName)) {
  651. return;
  652. }
  653. switch (event.which) {
  654. case ARROW_LEFT_KEYCODE:
  655. event.preventDefault();
  656. this.prev();
  657. break;
  658. case ARROW_RIGHT_KEYCODE:
  659. event.preventDefault();
  660. this.next();
  661. break;
  662. default:
  663. }
  664. };
  665. _proto._getItemIndex = function _getItemIndex(element) {
  666. this._items = element && element.parentNode ? [].slice.call(element.parentNode.querySelectorAll(Selector.ITEM)) : [];
  667. return this._items.indexOf(element);
  668. };
  669. _proto._getItemByDirection = function _getItemByDirection(direction, activeElement) {
  670. var isNextDirection = direction === Direction.NEXT;
  671. var isPrevDirection = direction === Direction.PREV;
  672. var activeIndex = this._getItemIndex(activeElement);
  673. var lastItemIndex = this._items.length - 1;
  674. var isGoingToWrap = isPrevDirection && activeIndex === 0 || isNextDirection && activeIndex === lastItemIndex;
  675. if (isGoingToWrap && !this._config.wrap) {
  676. return activeElement;
  677. }
  678. var delta = direction === Direction.PREV ? -1 : 1;
  679. var itemIndex = (activeIndex + delta) % this._items.length;
  680. return itemIndex === -1 ? this._items[this._items.length - 1] : this._items[itemIndex];
  681. };
  682. _proto._triggerSlideEvent = function _triggerSlideEvent(relatedTarget, eventDirectionName) {
  683. var targetIndex = this._getItemIndex(relatedTarget);
  684. var fromIndex = this._getItemIndex(this._element.querySelector(Selector.ACTIVE_ITEM));
  685. var slideEvent = $$$1.Event(Event.SLIDE, {
  686. relatedTarget: relatedTarget,
  687. direction: eventDirectionName,
  688. from: fromIndex,
  689. to: targetIndex
  690. });
  691. $$$1(this._element).trigger(slideEvent);
  692. return slideEvent;
  693. };
  694. _proto._setActiveIndicatorElement = function _setActiveIndicatorElement(element) {
  695. if (this._indicatorsElement) {
  696. var indicators = [].slice.call(this._indicatorsElement.querySelectorAll(Selector.ACTIVE));
  697. $$$1(indicators).removeClass(ClassName.ACTIVE);
  698. var nextIndicator = this._indicatorsElement.children[this._getItemIndex(element)];
  699. if (nextIndicator) {
  700. $$$1(nextIndicator).addClass(ClassName.ACTIVE);
  701. }
  702. }
  703. };
  704. _proto._slide = function _slide(direction, element) {
  705. var _this3 = this;
  706. var activeElement = this._element.querySelector(Selector.ACTIVE_ITEM);
  707. var activeElementIndex = this._getItemIndex(activeElement);
  708. var nextElement = element || activeElement && this._getItemByDirection(direction, activeElement);
  709. var nextElementIndex = this._getItemIndex(nextElement);
  710. var isCycling = Boolean(this._interval);
  711. var directionalClassName;
  712. var orderClassName;
  713. var eventDirectionName;
  714. if (direction === Direction.NEXT) {
  715. directionalClassName = ClassName.LEFT;
  716. orderClassName = ClassName.NEXT;
  717. eventDirectionName = Direction.LEFT;
  718. } else {
  719. directionalClassName = ClassName.RIGHT;
  720. orderClassName = ClassName.PREV;
  721. eventDirectionName = Direction.RIGHT;
  722. }
  723. if (nextElement && $$$1(nextElement).hasClass(ClassName.ACTIVE)) {
  724. this._isSliding = false;
  725. return;
  726. }
  727. var slideEvent = this._triggerSlideEvent(nextElement, eventDirectionName);
  728. if (slideEvent.isDefaultPrevented()) {
  729. return;
  730. }
  731. if (!activeElement || !nextElement) {
  732. // Some weirdness is happening, so we bail
  733. return;
  734. }
  735. this._isSliding = true;
  736. if (isCycling) {
  737. this.pause();
  738. }
  739. this._setActiveIndicatorElement(nextElement);
  740. var slidEvent = $$$1.Event(Event.SLID, {
  741. relatedTarget: nextElement,
  742. direction: eventDirectionName,
  743. from: activeElementIndex,
  744. to: nextElementIndex
  745. });
  746. if ($$$1(this._element).hasClass(ClassName.SLIDE)) {
  747. $$$1(nextElement).addClass(orderClassName);
  748. Util.reflow(nextElement);
  749. $$$1(activeElement).addClass(directionalClassName);
  750. $$$1(nextElement).addClass(directionalClassName);
  751. var transitionDuration = Util.getTransitionDurationFromElement(activeElement);
  752. $$$1(activeElement).one(Util.TRANSITION_END, function () {
  753. $$$1(nextElement).removeClass(directionalClassName + " " + orderClassName).addClass(ClassName.ACTIVE);
  754. $$$1(activeElement).removeClass(ClassName.ACTIVE + " " + orderClassName + " " + directionalClassName);
  755. _this3._isSliding = false;
  756. setTimeout(function () {
  757. return $$$1(_this3._element).trigger(slidEvent);
  758. }, 0);
  759. }).emulateTransitionEnd(transitionDuration);
  760. } else {
  761. $$$1(activeElement).removeClass(ClassName.ACTIVE);
  762. $$$1(nextElement).addClass(ClassName.ACTIVE);
  763. this._isSliding = false;
  764. $$$1(this._element).trigger(slidEvent);
  765. }
  766. if (isCycling) {
  767. this.cycle();
  768. }
  769. }; // Static
  770. Carousel._jQueryInterface = function _jQueryInterface(config) {
  771. return this.each(function () {
  772. var data = $$$1(this).data(DATA_KEY);
  773. var _config = _objectSpread({}, Default, $$$1(this).data());
  774. if (typeof config === 'object') {
  775. _config = _objectSpread({}, _config, config);
  776. }
  777. var action = typeof config === 'string' ? config : _config.slide;
  778. if (!data) {
  779. data = new Carousel(this, _config);
  780. $$$1(this).data(DATA_KEY, data);
  781. }
  782. if (typeof config === 'number') {
  783. data.to(config);
  784. } else if (typeof action === 'string') {
  785. if (typeof data[action] === 'undefined') {
  786. throw new TypeError("No method named \"" + action + "\"");
  787. }
  788. data[action]();
  789. } else if (_config.interval) {
  790. data.pause();
  791. data.cycle();
  792. }
  793. });
  794. };
  795. Carousel._dataApiClickHandler = function _dataApiClickHandler(event) {
  796. var selector = Util.getSelectorFromElement(this);
  797. if (!selector) {
  798. return;
  799. }
  800. var target = $$$1(selector)[0];
  801. if (!target || !$$$1(target).hasClass(ClassName.CAROUSEL)) {
  802. return;
  803. }
  804. var config = _objectSpread({}, $$$1(target).data(), $$$1(this).data());
  805. var slideIndex = this.getAttribute('data-slide-to');
  806. if (slideIndex) {
  807. config.interval = false;
  808. }
  809. Carousel._jQueryInterface.call($$$1(target), config);
  810. if (slideIndex) {
  811. $$$1(target).data(DATA_KEY).to(slideIndex);
  812. }
  813. event.preventDefault();
  814. };
  815. _createClass(Carousel, null, [{
  816. key: "VERSION",
  817. get: function get() {
  818. return VERSION;
  819. }
  820. }, {
  821. key: "Default",
  822. get: function get() {
  823. return Default;
  824. }
  825. }]);
  826. return Carousel;
  827. }();
  828. /**
  829. * ------------------------------------------------------------------------
  830. * Data Api implementation
  831. * ------------------------------------------------------------------------
  832. */
  833. $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_SLIDE, Carousel._dataApiClickHandler);
  834. $$$1(window).on(Event.LOAD_DATA_API, function () {
  835. var carousels = [].slice.call(document.querySelectorAll(Selector.DATA_RIDE));
  836. for (var i = 0, len = carousels.length; i < len; i++) {
  837. var $carousel = $$$1(carousels[i]);
  838. Carousel._jQueryInterface.call($carousel, $carousel.data());
  839. }
  840. });
  841. /**
  842. * ------------------------------------------------------------------------
  843. * jQuery
  844. * ------------------------------------------------------------------------
  845. */
  846. $$$1.fn[NAME] = Carousel._jQueryInterface;
  847. $$$1.fn[NAME].Constructor = Carousel;
  848. $$$1.fn[NAME].noConflict = function () {
  849. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  850. return Carousel._jQueryInterface;
  851. };
  852. return Carousel;
  853. }($);
  854. /**
  855. * --------------------------------------------------------------------------
  856. * Bootstrap (v4.1.2): collapse.js
  857. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  858. * --------------------------------------------------------------------------
  859. */
  860. var Collapse = function ($$$1) {
  861. /**
  862. * ------------------------------------------------------------------------
  863. * Constants
  864. * ------------------------------------------------------------------------
  865. */
  866. var NAME = 'collapse';
  867. var VERSION = '4.1.2';
  868. var DATA_KEY = 'bs.collapse';
  869. var EVENT_KEY = "." + DATA_KEY;
  870. var DATA_API_KEY = '.data-api';
  871. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  872. var Default = {
  873. toggle: true,
  874. parent: ''
  875. };
  876. var DefaultType = {
  877. toggle: 'boolean',
  878. parent: '(string|element)'
  879. };
  880. var Event = {
  881. SHOW: "show" + EVENT_KEY,
  882. SHOWN: "shown" + EVENT_KEY,
  883. HIDE: "hide" + EVENT_KEY,
  884. HIDDEN: "hidden" + EVENT_KEY,
  885. CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
  886. };
  887. var ClassName = {
  888. SHOW: 'show',
  889. COLLAPSE: 'collapse',
  890. COLLAPSING: 'collapsing',
  891. COLLAPSED: 'collapsed'
  892. };
  893. var Dimension = {
  894. WIDTH: 'width',
  895. HEIGHT: 'height'
  896. };
  897. var Selector = {
  898. ACTIVES: '.show, .collapsing',
  899. DATA_TOGGLE: '[data-toggle="collapse"]'
  900. /**
  901. * ------------------------------------------------------------------------
  902. * Class Definition
  903. * ------------------------------------------------------------------------
  904. */
  905. };
  906. var Collapse =
  907. /*#__PURE__*/
  908. function () {
  909. function Collapse(element, config) {
  910. this._isTransitioning = false;
  911. this._element = element;
  912. this._config = this._getConfig(config);
  913. this._triggerArray = $$$1.makeArray(document.querySelectorAll("[data-toggle=\"collapse\"][href=\"#" + element.id + "\"]," + ("[data-toggle=\"collapse\"][data-target=\"#" + element.id + "\"]")));
  914. var toggleList = [].slice.call(document.querySelectorAll(Selector.DATA_TOGGLE));
  915. for (var i = 0, len = toggleList.length; i < len; i++) {
  916. var elem = toggleList[i];
  917. var selector = Util.getSelectorFromElement(elem);
  918. var filterElement = [].slice.call(document.querySelectorAll(selector)).filter(function (foundElem) {
  919. return foundElem === element;
  920. });
  921. if (selector !== null && filterElement.length > 0) {
  922. this._selector = selector;
  923. this._triggerArray.push(elem);
  924. }
  925. }
  926. this._parent = this._config.parent ? this._getParent() : null;
  927. if (!this._config.parent) {
  928. this._addAriaAndCollapsedClass(this._element, this._triggerArray);
  929. }
  930. if (this._config.toggle) {
  931. this.toggle();
  932. }
  933. } // Getters
  934. var _proto = Collapse.prototype;
  935. // Public
  936. _proto.toggle = function toggle() {
  937. if ($$$1(this._element).hasClass(ClassName.SHOW)) {
  938. this.hide();
  939. } else {
  940. this.show();
  941. }
  942. };
  943. _proto.show = function show() {
  944. var _this = this;
  945. if (this._isTransitioning || $$$1(this._element).hasClass(ClassName.SHOW)) {
  946. return;
  947. }
  948. var actives;
  949. var activesData;
  950. if (this._parent) {
  951. actives = [].slice.call(this._parent.querySelectorAll(Selector.ACTIVES)).filter(function (elem) {
  952. return elem.getAttribute('data-parent') === _this._config.parent;
  953. });
  954. if (actives.length === 0) {
  955. actives = null;
  956. }
  957. }
  958. if (actives) {
  959. activesData = $$$1(actives).not(this._selector).data(DATA_KEY);
  960. if (activesData && activesData._isTransitioning) {
  961. return;
  962. }
  963. }
  964. var startEvent = $$$1.Event(Event.SHOW);
  965. $$$1(this._element).trigger(startEvent);
  966. if (startEvent.isDefaultPrevented()) {
  967. return;
  968. }
  969. if (actives) {
  970. Collapse._jQueryInterface.call($$$1(actives).not(this._selector), 'hide');
  971. if (!activesData) {
  972. $$$1(actives).data(DATA_KEY, null);
  973. }
  974. }
  975. var dimension = this._getDimension();
  976. $$$1(this._element).removeClass(ClassName.COLLAPSE).addClass(ClassName.COLLAPSING);
  977. this._element.style[dimension] = 0;
  978. if (this._triggerArray.length) {
  979. $$$1(this._triggerArray).removeClass(ClassName.COLLAPSED).attr('aria-expanded', true);
  980. }
  981. this.setTransitioning(true);
  982. var complete = function complete() {
  983. $$$1(_this._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).addClass(ClassName.SHOW);
  984. _this._element.style[dimension] = '';
  985. _this.setTransitioning(false);
  986. $$$1(_this._element).trigger(Event.SHOWN);
  987. };
  988. var capitalizedDimension = dimension[0].toUpperCase() + dimension.slice(1);
  989. var scrollSize = "scroll" + capitalizedDimension;
  990. var transitionDuration = Util.getTransitionDurationFromElement(this._element);
  991. $$$1(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
  992. this._element.style[dimension] = this._element[scrollSize] + "px";
  993. };
  994. _proto.hide = function hide() {
  995. var _this2 = this;
  996. if (this._isTransitioning || !$$$1(this._element).hasClass(ClassName.SHOW)) {
  997. return;
  998. }
  999. var startEvent = $$$1.Event(Event.HIDE);
  1000. $$$1(this._element).trigger(startEvent);
  1001. if (startEvent.isDefaultPrevented()) {
  1002. return;
  1003. }
  1004. var dimension = this._getDimension();
  1005. this._element.style[dimension] = this._element.getBoundingClientRect()[dimension] + "px";
  1006. Util.reflow(this._element);
  1007. $$$1(this._element).addClass(ClassName.COLLAPSING).removeClass(ClassName.COLLAPSE).removeClass(ClassName.SHOW);
  1008. var triggerArrayLength = this._triggerArray.length;
  1009. if (triggerArrayLength > 0) {
  1010. for (var i = 0; i < triggerArrayLength; i++) {
  1011. var trigger = this._triggerArray[i];
  1012. var selector = Util.getSelectorFromElement(trigger);
  1013. if (selector !== null) {
  1014. var $elem = $$$1([].slice.call(document.querySelectorAll(selector)));
  1015. if (!$elem.hasClass(ClassName.SHOW)) {
  1016. $$$1(trigger).addClass(ClassName.COLLAPSED).attr('aria-expanded', false);
  1017. }
  1018. }
  1019. }
  1020. }
  1021. this.setTransitioning(true);
  1022. var complete = function complete() {
  1023. _this2.setTransitioning(false);
  1024. $$$1(_this2._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).trigger(Event.HIDDEN);
  1025. };
  1026. this._element.style[dimension] = '';
  1027. var transitionDuration = Util.getTransitionDurationFromElement(this._element);
  1028. $$$1(this._element).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
  1029. };
  1030. _proto.setTransitioning = function setTransitioning(isTransitioning) {
  1031. this._isTransitioning = isTransitioning;
  1032. };
  1033. _proto.dispose = function dispose() {
  1034. $$$1.removeData(this._element, DATA_KEY);
  1035. this._config = null;
  1036. this._parent = null;
  1037. this._element = null;
  1038. this._triggerArray = null;
  1039. this._isTransitioning = null;
  1040. }; // Private
  1041. _proto._getConfig = function _getConfig(config) {
  1042. config = _objectSpread({}, Default, config);
  1043. config.toggle = Boolean(config.toggle); // Coerce string values
  1044. Util.typeCheckConfig(NAME, config, DefaultType);
  1045. return config;
  1046. };
  1047. _proto._getDimension = function _getDimension() {
  1048. var hasWidth = $$$1(this._element).hasClass(Dimension.WIDTH);
  1049. return hasWidth ? Dimension.WIDTH : Dimension.HEIGHT;
  1050. };
  1051. _proto._getParent = function _getParent() {
  1052. var _this3 = this;
  1053. var parent = null;
  1054. if (Util.isElement(this._config.parent)) {
  1055. parent = this._config.parent; // It's a jQuery object
  1056. if (typeof this._config.parent.jquery !== 'undefined') {
  1057. parent = this._config.parent[0];
  1058. }
  1059. } else {
  1060. parent = document.querySelector(this._config.parent);
  1061. }
  1062. var selector = "[data-toggle=\"collapse\"][data-parent=\"" + this._config.parent + "\"]";
  1063. var children = [].slice.call(parent.querySelectorAll(selector));
  1064. $$$1(children).each(function (i, element) {
  1065. _this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element), [element]);
  1066. });
  1067. return parent;
  1068. };
  1069. _proto._addAriaAndCollapsedClass = function _addAriaAndCollapsedClass(element, triggerArray) {
  1070. if (element) {
  1071. var isOpen = $$$1(element).hasClass(ClassName.SHOW);
  1072. if (triggerArray.length) {
  1073. $$$1(triggerArray).toggleClass(ClassName.COLLAPSED, !isOpen).attr('aria-expanded', isOpen);
  1074. }
  1075. }
  1076. }; // Static
  1077. Collapse._getTargetFromElement = function _getTargetFromElement(element) {
  1078. var selector = Util.getSelectorFromElement(element);
  1079. return selector ? document.querySelector(selector) : null;
  1080. };
  1081. Collapse._jQueryInterface = function _jQueryInterface(config) {
  1082. return this.each(function () {
  1083. var $this = $$$1(this);
  1084. var data = $this.data(DATA_KEY);
  1085. var _config = _objectSpread({}, Default, $this.data(), typeof config === 'object' && config ? config : {});
  1086. if (!data && _config.toggle && /show|hide/.test(config)) {
  1087. _config.toggle = false;
  1088. }
  1089. if (!data) {
  1090. data = new Collapse(this, _config);
  1091. $this.data(DATA_KEY, data);
  1092. }
  1093. if (typeof config === 'string') {
  1094. if (typeof data[config] === 'undefined') {
  1095. throw new TypeError("No method named \"" + config + "\"");
  1096. }
  1097. data[config]();
  1098. }
  1099. });
  1100. };
  1101. _createClass(Collapse, null, [{
  1102. key: "VERSION",
  1103. get: function get() {
  1104. return VERSION;
  1105. }
  1106. }, {
  1107. key: "Default",
  1108. get: function get() {
  1109. return Default;
  1110. }
  1111. }]);
  1112. return Collapse;
  1113. }();
  1114. /**
  1115. * ------------------------------------------------------------------------
  1116. * Data Api implementation
  1117. * ------------------------------------------------------------------------
  1118. */
  1119. $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
  1120. // preventDefault only for <a> elements (which change the URL) not inside the collapsible element
  1121. if (event.currentTarget.tagName === 'A') {
  1122. event.preventDefault();
  1123. }
  1124. var $trigger = $$$1(this);
  1125. var selector = Util.getSelectorFromElement(this);
  1126. var selectors = [].slice.call(document.querySelectorAll(selector));
  1127. $$$1(selectors).each(function () {
  1128. var $target = $$$1(this);
  1129. var data = $target.data(DATA_KEY);
  1130. var config = data ? 'toggle' : $trigger.data();
  1131. Collapse._jQueryInterface.call($target, config);
  1132. });
  1133. });
  1134. /**
  1135. * ------------------------------------------------------------------------
  1136. * jQuery
  1137. * ------------------------------------------------------------------------
  1138. */
  1139. $$$1.fn[NAME] = Collapse._jQueryInterface;
  1140. $$$1.fn[NAME].Constructor = Collapse;
  1141. $$$1.fn[NAME].noConflict = function () {
  1142. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  1143. return Collapse._jQueryInterface;
  1144. };
  1145. return Collapse;
  1146. }($);
  1147. /**
  1148. * --------------------------------------------------------------------------
  1149. * Bootstrap (v4.1.2): dropdown.js
  1150. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  1151. * --------------------------------------------------------------------------
  1152. */
  1153. var Dropdown = function ($$$1) {
  1154. /**
  1155. * ------------------------------------------------------------------------
  1156. * Constants
  1157. * ------------------------------------------------------------------------
  1158. */
  1159. var NAME = 'dropdown';
  1160. var VERSION = '4.1.2';
  1161. var DATA_KEY = 'bs.dropdown';
  1162. var EVENT_KEY = "." + DATA_KEY;
  1163. var DATA_API_KEY = '.data-api';
  1164. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  1165. var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
  1166. var SPACE_KEYCODE = 32; // KeyboardEvent.which value for space key
  1167. var TAB_KEYCODE = 9; // KeyboardEvent.which value for tab key
  1168. var ARROW_UP_KEYCODE = 38; // KeyboardEvent.which value for up arrow key
  1169. var ARROW_DOWN_KEYCODE = 40; // KeyboardEvent.which value for down arrow key
  1170. var RIGHT_MOUSE_BUTTON_WHICH = 3; // MouseEvent.which value for the right button (assuming a right-handed mouse)
  1171. var REGEXP_KEYDOWN = new RegExp(ARROW_UP_KEYCODE + "|" + ARROW_DOWN_KEYCODE + "|" + ESCAPE_KEYCODE);
  1172. var Event = {
  1173. HIDE: "hide" + EVENT_KEY,
  1174. HIDDEN: "hidden" + EVENT_KEY,
  1175. SHOW: "show" + EVENT_KEY,
  1176. SHOWN: "shown" + EVENT_KEY,
  1177. CLICK: "click" + EVENT_KEY,
  1178. CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY,
  1179. KEYDOWN_DATA_API: "keydown" + EVENT_KEY + DATA_API_KEY,
  1180. KEYUP_DATA_API: "keyup" + EVENT_KEY + DATA_API_KEY
  1181. };
  1182. var ClassName = {
  1183. DISABLED: 'disabled',
  1184. SHOW: 'show',
  1185. DROPUP: 'dropup',
  1186. DROPRIGHT: 'dropright',
  1187. DROPLEFT: 'dropleft',
  1188. MENURIGHT: 'dropdown-menu-right',
  1189. MENULEFT: 'dropdown-menu-left',
  1190. POSITION_STATIC: 'position-static'
  1191. };
  1192. var Selector = {
  1193. DATA_TOGGLE: '[data-toggle="dropdown"]',
  1194. FORM_CHILD: '.dropdown form',
  1195. MENU: '.dropdown-menu',
  1196. NAVBAR_NAV: '.navbar-nav',
  1197. VISIBLE_ITEMS: '.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)'
  1198. };
  1199. var AttachmentMap = {
  1200. TOP: 'top-start',
  1201. TOPEND: 'top-end',
  1202. BOTTOM: 'bottom-start',
  1203. BOTTOMEND: 'bottom-end',
  1204. RIGHT: 'right-start',
  1205. RIGHTEND: 'right-end',
  1206. LEFT: 'left-start',
  1207. LEFTEND: 'left-end'
  1208. };
  1209. var Default = {
  1210. offset: 0,
  1211. flip: true,
  1212. boundary: 'scrollParent',
  1213. reference: 'toggle',
  1214. display: 'dynamic'
  1215. };
  1216. var DefaultType = {
  1217. offset: '(number|string|function)',
  1218. flip: 'boolean',
  1219. boundary: '(string|element)',
  1220. reference: '(string|element)',
  1221. display: 'string'
  1222. /**
  1223. * ------------------------------------------------------------------------
  1224. * Class Definition
  1225. * ------------------------------------------------------------------------
  1226. */
  1227. };
  1228. var Dropdown =
  1229. /*#__PURE__*/
  1230. function () {
  1231. function Dropdown(element, config) {
  1232. this._element = element;
  1233. this._popper = null;
  1234. this._config = this._getConfig(config);
  1235. this._menu = this._getMenuElement();
  1236. this._inNavbar = this._detectNavbar();
  1237. this._addEventListeners();
  1238. } // Getters
  1239. var _proto = Dropdown.prototype;
  1240. // Public
  1241. _proto.toggle = function toggle() {
  1242. if (this._element.disabled || $$$1(this._element).hasClass(ClassName.DISABLED)) {
  1243. return;
  1244. }
  1245. var parent = Dropdown._getParentFromElement(this._element);
  1246. var isActive = $$$1(this._menu).hasClass(ClassName.SHOW);
  1247. Dropdown._clearMenus();
  1248. if (isActive) {
  1249. return;
  1250. }
  1251. var relatedTarget = {
  1252. relatedTarget: this._element
  1253. };
  1254. var showEvent = $$$1.Event(Event.SHOW, relatedTarget);
  1255. $$$1(parent).trigger(showEvent);
  1256. if (showEvent.isDefaultPrevented()) {
  1257. return;
  1258. } // Disable totally Popper.js for Dropdown in Navbar
  1259. if (!this._inNavbar) {
  1260. /**
  1261. * Check for Popper dependency
  1262. * Popper - https://popper.js.org
  1263. */
  1264. if (typeof Popper === 'undefined') {
  1265. throw new TypeError('Bootstrap dropdown require Popper.js (https://popper.js.org)');
  1266. }
  1267. var referenceElement = this._element;
  1268. if (this._config.reference === 'parent') {
  1269. referenceElement = parent;
  1270. } else if (Util.isElement(this._config.reference)) {
  1271. referenceElement = this._config.reference; // Check if it's jQuery element
  1272. if (typeof this._config.reference.jquery !== 'undefined') {
  1273. referenceElement = this._config.reference[0];
  1274. }
  1275. } // If boundary is not `scrollParent`, then set position to `static`
  1276. // to allow the menu to "escape" the scroll parent's boundaries
  1277. // https://github.com/twbs/bootstrap/issues/24251
  1278. if (this._config.boundary !== 'scrollParent') {
  1279. $$$1(parent).addClass(ClassName.POSITION_STATIC);
  1280. }
  1281. this._popper = new Popper(referenceElement, this._menu, this._getPopperConfig());
  1282. } // If this is a touch-enabled device we add extra
  1283. // empty mouseover listeners to the body's immediate children;
  1284. // only needed because of broken event delegation on iOS
  1285. // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
  1286. if ('ontouchstart' in document.documentElement && $$$1(parent).closest(Selector.NAVBAR_NAV).length === 0) {
  1287. $$$1(document.body).children().on('mouseover', null, $$$1.noop);
  1288. }
  1289. this._element.focus();
  1290. this._element.setAttribute('aria-expanded', true);
  1291. $$$1(this._menu).toggleClass(ClassName.SHOW);
  1292. $$$1(parent).toggleClass(ClassName.SHOW).trigger($$$1.Event(Event.SHOWN, relatedTarget));
  1293. };
  1294. _proto.dispose = function dispose() {
  1295. $$$1.removeData(this._element, DATA_KEY);
  1296. $$$1(this._element).off(EVENT_KEY);
  1297. this._element = null;
  1298. this._menu = null;
  1299. if (this._popper !== null) {
  1300. this._popper.destroy();
  1301. this._popper = null;
  1302. }
  1303. };
  1304. _proto.update = function update() {
  1305. this._inNavbar = this._detectNavbar();
  1306. if (this._popper !== null) {
  1307. this._popper.scheduleUpdate();
  1308. }
  1309. }; // Private
  1310. _proto._addEventListeners = function _addEventListeners() {
  1311. var _this = this;
  1312. $$$1(this._element).on(Event.CLICK, function (event) {
  1313. event.preventDefault();
  1314. event.stopPropagation();
  1315. _this.toggle();
  1316. });
  1317. };
  1318. _proto._getConfig = function _getConfig(config) {
  1319. config = _objectSpread({}, this.constructor.Default, $$$1(this._element).data(), config);
  1320. Util.typeCheckConfig(NAME, config, this.constructor.DefaultType);
  1321. return config;
  1322. };
  1323. _proto._getMenuElement = function _getMenuElement() {
  1324. if (!this._menu) {
  1325. var parent = Dropdown._getParentFromElement(this._element);
  1326. if (parent) {
  1327. this._menu = parent.querySelector(Selector.MENU);
  1328. }
  1329. }
  1330. return this._menu;
  1331. };
  1332. _proto._getPlacement = function _getPlacement() {
  1333. var $parentDropdown = $$$1(this._element.parentNode);
  1334. var placement = AttachmentMap.BOTTOM; // Handle dropup
  1335. if ($parentDropdown.hasClass(ClassName.DROPUP)) {
  1336. placement = AttachmentMap.TOP;
  1337. if ($$$1(this._menu).hasClass(ClassName.MENURIGHT)) {
  1338. placement = AttachmentMap.TOPEND;
  1339. }
  1340. } else if ($parentDropdown.hasClass(ClassName.DROPRIGHT)) {
  1341. placement = AttachmentMap.RIGHT;
  1342. } else if ($parentDropdown.hasClass(ClassName.DROPLEFT)) {
  1343. placement = AttachmentMap.LEFT;
  1344. } else if ($$$1(this._menu).hasClass(ClassName.MENURIGHT)) {
  1345. placement = AttachmentMap.BOTTOMEND;
  1346. }
  1347. return placement;
  1348. };
  1349. _proto._detectNavbar = function _detectNavbar() {
  1350. return $$$1(this._element).closest('.navbar').length > 0;
  1351. };
  1352. _proto._getPopperConfig = function _getPopperConfig() {
  1353. var _this2 = this;
  1354. var offsetConf = {};
  1355. if (typeof this._config.offset === 'function') {
  1356. offsetConf.fn = function (data) {
  1357. data.offsets = _objectSpread({}, data.offsets, _this2._config.offset(data.offsets) || {});
  1358. return data;
  1359. };
  1360. } else {
  1361. offsetConf.offset = this._config.offset;
  1362. }
  1363. var popperConfig = {
  1364. placement: this._getPlacement(),
  1365. modifiers: {
  1366. offset: offsetConf,
  1367. flip: {
  1368. enabled: this._config.flip
  1369. },
  1370. preventOverflow: {
  1371. boundariesElement: this._config.boundary
  1372. }
  1373. } // Disable Popper.js if we have a static display
  1374. };
  1375. if (this._config.display === 'static') {
  1376. popperConfig.modifiers.applyStyle = {
  1377. enabled: false
  1378. };
  1379. }
  1380. return popperConfig;
  1381. }; // Static
  1382. Dropdown._jQueryInterface = function _jQueryInterface(config) {
  1383. return this.each(function () {
  1384. var data = $$$1(this).data(DATA_KEY);
  1385. var _config = typeof config === 'object' ? config : null;
  1386. if (!data) {
  1387. data = new Dropdown(this, _config);
  1388. $$$1(this).data(DATA_KEY, data);
  1389. }
  1390. if (typeof config === 'string') {
  1391. if (typeof data[config] === 'undefined') {
  1392. throw new TypeError("No method named \"" + config + "\"");
  1393. }
  1394. data[config]();
  1395. }
  1396. });
  1397. };
  1398. Dropdown._clearMenus = function _clearMenus(event) {
  1399. if (event && (event.which === RIGHT_MOUSE_BUTTON_WHICH || event.type === 'keyup' && event.which !== TAB_KEYCODE)) {
  1400. return;
  1401. }
  1402. var toggles = [].slice.call(document.querySelectorAll(Selector.DATA_TOGGLE));
  1403. for (var i = 0, len = toggles.length; i < len; i++) {
  1404. var parent = Dropdown._getParentFromElement(toggles[i]);
  1405. var context = $$$1(toggles[i]).data(DATA_KEY);
  1406. var relatedTarget = {
  1407. relatedTarget: toggles[i]
  1408. };
  1409. if (event && event.type === 'click') {
  1410. relatedTarget.clickEvent = event;
  1411. }
  1412. if (!context) {
  1413. continue;
  1414. }
  1415. var dropdownMenu = context._menu;
  1416. if (!$$$1(parent).hasClass(ClassName.SHOW)) {
  1417. continue;
  1418. }
  1419. if (event && (event.type === 'click' && /input|textarea/i.test(event.target.tagName) || event.type === 'keyup' && event.which === TAB_KEYCODE) && $$$1.contains(parent, event.target)) {
  1420. continue;
  1421. }
  1422. var hideEvent = $$$1.Event(Event.HIDE, relatedTarget);
  1423. $$$1(parent).trigger(hideEvent);
  1424. if (hideEvent.isDefaultPrevented()) {
  1425. continue;
  1426. } // If this is a touch-enabled device we remove the extra
  1427. // empty mouseover listeners we added for iOS support
  1428. if ('ontouchstart' in document.documentElement) {
  1429. $$$1(document.body).children().off('mouseover', null, $$$1.noop);
  1430. }
  1431. toggles[i].setAttribute('aria-expanded', 'false');
  1432. $$$1(dropdownMenu).removeClass(ClassName.SHOW);
  1433. $$$1(parent).removeClass(ClassName.SHOW).trigger($$$1.Event(Event.HIDDEN, relatedTarget));
  1434. }
  1435. };
  1436. Dropdown._getParentFromElement = function _getParentFromElement(element) {
  1437. var parent;
  1438. var selector = Util.getSelectorFromElement(element);
  1439. if (selector) {
  1440. parent = document.querySelector(selector);
  1441. }
  1442. return parent || element.parentNode;
  1443. }; // eslint-disable-next-line complexity
  1444. Dropdown._dataApiKeydownHandler = function _dataApiKeydownHandler(event) {
  1445. // If not input/textarea:
  1446. // - And not a key in REGEXP_KEYDOWN => not a dropdown command
  1447. // If input/textarea:
  1448. // - If space key => not a dropdown command
  1449. // - If key is other than escape
  1450. // - If key is not up or down => not a dropdown command
  1451. // - If trigger inside the menu => not a dropdown command
  1452. if (/input|textarea/i.test(event.target.tagName) ? event.which === SPACE_KEYCODE || event.which !== ESCAPE_KEYCODE && (event.which !== ARROW_DOWN_KEYCODE && event.which !== ARROW_UP_KEYCODE || $$$1(event.target).closest(Selector.MENU).length) : !REGEXP_KEYDOWN.test(event.which)) {
  1453. return;
  1454. }
  1455. event.preventDefault();
  1456. event.stopPropagation();
  1457. if (this.disabled || $$$1(this).hasClass(ClassName.DISABLED)) {
  1458. return;
  1459. }
  1460. var parent = Dropdown._getParentFromElement(this);
  1461. var isActive = $$$1(parent).hasClass(ClassName.SHOW);
  1462. if (!isActive && (event.which !== ESCAPE_KEYCODE || event.which !== SPACE_KEYCODE) || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
  1463. if (event.which === ESCAPE_KEYCODE) {
  1464. var toggle = parent.querySelector(Selector.DATA_TOGGLE);
  1465. $$$1(toggle).trigger('focus');
  1466. }
  1467. $$$1(this).trigger('click');
  1468. return;
  1469. }
  1470. var items = [].slice.call(parent.querySelectorAll(Selector.VISIBLE_ITEMS));
  1471. if (items.length === 0) {
  1472. return;
  1473. }
  1474. var index = items.indexOf(event.target);
  1475. if (event.which === ARROW_UP_KEYCODE && index > 0) {
  1476. // Up
  1477. index--;
  1478. }
  1479. if (event.which === ARROW_DOWN_KEYCODE && index < items.length - 1) {
  1480. // Down
  1481. index++;
  1482. }
  1483. if (index < 0) {
  1484. index = 0;
  1485. }
  1486. items[index].focus();
  1487. };
  1488. _createClass(Dropdown, null, [{
  1489. key: "VERSION",
  1490. get: function get() {
  1491. return VERSION;
  1492. }
  1493. }, {
  1494. key: "Default",
  1495. get: function get() {
  1496. return Default;
  1497. }
  1498. }, {
  1499. key: "DefaultType",
  1500. get: function get() {
  1501. return DefaultType;
  1502. }
  1503. }]);
  1504. return Dropdown;
  1505. }();
  1506. /**
  1507. * ------------------------------------------------------------------------
  1508. * Data Api implementation
  1509. * ------------------------------------------------------------------------
  1510. */
  1511. $$$1(document).on(Event.KEYDOWN_DATA_API, Selector.DATA_TOGGLE, Dropdown._dataApiKeydownHandler).on(Event.KEYDOWN_DATA_API, Selector.MENU, Dropdown._dataApiKeydownHandler).on(Event.CLICK_DATA_API + " " + Event.KEYUP_DATA_API, Dropdown._clearMenus).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
  1512. event.preventDefault();
  1513. event.stopPropagation();
  1514. Dropdown._jQueryInterface.call($$$1(this), 'toggle');
  1515. }).on(Event.CLICK_DATA_API, Selector.FORM_CHILD, function (e) {
  1516. e.stopPropagation();
  1517. });
  1518. /**
  1519. * ------------------------------------------------------------------------
  1520. * jQuery
  1521. * ------------------------------------------------------------------------
  1522. */
  1523. $$$1.fn[NAME] = Dropdown._jQueryInterface;
  1524. $$$1.fn[NAME].Constructor = Dropdown;
  1525. $$$1.fn[NAME].noConflict = function () {
  1526. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  1527. return Dropdown._jQueryInterface;
  1528. };
  1529. return Dropdown;
  1530. }($, Popper);
  1531. /**
  1532. * --------------------------------------------------------------------------
  1533. * Bootstrap (v4.1.2): modal.js
  1534. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  1535. * --------------------------------------------------------------------------
  1536. */
  1537. var Modal = function ($$$1) {
  1538. /**
  1539. * ------------------------------------------------------------------------
  1540. * Constants
  1541. * ------------------------------------------------------------------------
  1542. */
  1543. var NAME = 'modal';
  1544. var VERSION = '4.1.2';
  1545. var DATA_KEY = 'bs.modal';
  1546. var EVENT_KEY = "." + DATA_KEY;
  1547. var DATA_API_KEY = '.data-api';
  1548. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  1549. var ESCAPE_KEYCODE = 27; // KeyboardEvent.which value for Escape (Esc) key
  1550. var Default = {
  1551. backdrop: true,
  1552. keyboard: true,
  1553. focus: true,
  1554. show: true
  1555. };
  1556. var DefaultType = {
  1557. backdrop: '(boolean|string)',
  1558. keyboard: 'boolean',
  1559. focus: 'boolean',
  1560. show: 'boolean'
  1561. };
  1562. var Event = {
  1563. HIDE: "hide" + EVENT_KEY,
  1564. HIDDEN: "hidden" + EVENT_KEY,
  1565. SHOW: "show" + EVENT_KEY,
  1566. SHOWN: "shown" + EVENT_KEY,
  1567. FOCUSIN: "focusin" + EVENT_KEY,
  1568. RESIZE: "resize" + EVENT_KEY,
  1569. CLICK_DISMISS: "click.dismiss" + EVENT_KEY,
  1570. KEYDOWN_DISMISS: "keydown.dismiss" + EVENT_KEY,
  1571. MOUSEUP_DISMISS: "mouseup.dismiss" + EVENT_KEY,
  1572. MOUSEDOWN_DISMISS: "mousedown.dismiss" + EVENT_KEY,
  1573. CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
  1574. };
  1575. var ClassName = {
  1576. SCROLLBAR_MEASURER: 'modal-scrollbar-measure',
  1577. BACKDROP: 'modal-backdrop',
  1578. OPEN: 'modal-open',
  1579. FADE: 'fade',
  1580. SHOW: 'show'
  1581. };
  1582. var Selector = {
  1583. DIALOG: '.modal-dialog',
  1584. DATA_TOGGLE: '[data-toggle="modal"]',
  1585. DATA_DISMISS: '[data-dismiss="modal"]',
  1586. FIXED_CONTENT: '.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',
  1587. STICKY_CONTENT: '.sticky-top'
  1588. /**
  1589. * ------------------------------------------------------------------------
  1590. * Class Definition
  1591. * ------------------------------------------------------------------------
  1592. */
  1593. };
  1594. var Modal =
  1595. /*#__PURE__*/
  1596. function () {
  1597. function Modal(element, config) {
  1598. this._config = this._getConfig(config);
  1599. this._element = element;
  1600. this._dialog = element.querySelector(Selector.DIALOG);
  1601. this._backdrop = null;
  1602. this._isShown = false;
  1603. this._isBodyOverflowing = false;
  1604. this._ignoreBackdropClick = false;
  1605. this._scrollbarWidth = 0;
  1606. } // Getters
  1607. var _proto = Modal.prototype;
  1608. // Public
  1609. _proto.toggle = function toggle(relatedTarget) {
  1610. return this._isShown ? this.hide() : this.show(relatedTarget);
  1611. };
  1612. _proto.show = function show(relatedTarget) {
  1613. var _this = this;
  1614. if (this._isTransitioning || this._isShown) {
  1615. return;
  1616. }
  1617. if ($$$1(this._element).hasClass(ClassName.FADE)) {
  1618. this._isTransitioning = true;
  1619. }
  1620. var showEvent = $$$1.Event(Event.SHOW, {
  1621. relatedTarget: relatedTarget
  1622. });
  1623. $$$1(this._element).trigger(showEvent);
  1624. if (this._isShown || showEvent.isDefaultPrevented()) {
  1625. return;
  1626. }
  1627. this._isShown = true;
  1628. this._checkScrollbar();
  1629. this._setScrollbar();
  1630. this._adjustDialog();
  1631. $$$1(document.body).addClass(ClassName.OPEN);
  1632. this._setEscapeEvent();
  1633. this._setResizeEvent();
  1634. $$$1(this._element).on(Event.CLICK_DISMISS, Selector.DATA_DISMISS, function (event) {
  1635. return _this.hide(event);
  1636. });
  1637. $$$1(this._dialog).on(Event.MOUSEDOWN_DISMISS, function () {
  1638. $$$1(_this._element).one(Event.MOUSEUP_DISMISS, function (event) {
  1639. if ($$$1(event.target).is(_this._element)) {
  1640. _this._ignoreBackdropClick = true;
  1641. }
  1642. });
  1643. });
  1644. this._showBackdrop(function () {
  1645. return _this._showElement(relatedTarget);
  1646. });
  1647. };
  1648. _proto.hide = function hide(event) {
  1649. var _this2 = this;
  1650. if (event) {
  1651. event.preventDefault();
  1652. }
  1653. if (this._isTransitioning || !this._isShown) {
  1654. return;
  1655. }
  1656. var hideEvent = $$$1.Event(Event.HIDE);
  1657. $$$1(this._element).trigger(hideEvent);
  1658. if (!this._isShown || hideEvent.isDefaultPrevented()) {
  1659. return;
  1660. }
  1661. this._isShown = false;
  1662. var transition = $$$1(this._element).hasClass(ClassName.FADE);
  1663. if (transition) {
  1664. this._isTransitioning = true;
  1665. }
  1666. this._setEscapeEvent();
  1667. this._setResizeEvent();
  1668. $$$1(document).off(Event.FOCUSIN);
  1669. $$$1(this._element).removeClass(ClassName.SHOW);
  1670. $$$1(this._element).off(Event.CLICK_DISMISS);
  1671. $$$1(this._dialog).off(Event.MOUSEDOWN_DISMISS);
  1672. if (transition) {
  1673. var transitionDuration = Util.getTransitionDurationFromElement(this._element);
  1674. $$$1(this._element).one(Util.TRANSITION_END, function (event) {
  1675. return _this2._hideModal(event);
  1676. }).emulateTransitionEnd(transitionDuration);
  1677. } else {
  1678. this._hideModal();
  1679. }
  1680. };
  1681. _proto.dispose = function dispose() {
  1682. $$$1.removeData(this._element, DATA_KEY);
  1683. $$$1(window, document, this._element, this._backdrop).off(EVENT_KEY);
  1684. this._config = null;
  1685. this._element = null;
  1686. this._dialog = null;
  1687. this._backdrop = null;
  1688. this._isShown = null;
  1689. this._isBodyOverflowing = null;
  1690. this._ignoreBackdropClick = null;
  1691. this._scrollbarWidth = null;
  1692. };
  1693. _proto.handleUpdate = function handleUpdate() {
  1694. this._adjustDialog();
  1695. }; // Private
  1696. _proto._getConfig = function _getConfig(config) {
  1697. config = _objectSpread({}, Default, config);
  1698. Util.typeCheckConfig(NAME, config, DefaultType);
  1699. return config;
  1700. };
  1701. _proto._showElement = function _showElement(relatedTarget) {
  1702. var _this3 = this;
  1703. var transition = $$$1(this._element).hasClass(ClassName.FADE);
  1704. if (!this._element.parentNode || this._element.parentNode.nodeType !== Node.ELEMENT_NODE) {
  1705. // Don't move modal's DOM position
  1706. document.body.appendChild(this._element);
  1707. }
  1708. this._element.style.display = 'block';
  1709. this._element.removeAttribute('aria-hidden');
  1710. this._element.scrollTop = 0;
  1711. if (transition) {
  1712. Util.reflow(this._element);
  1713. }
  1714. $$$1(this._element).addClass(ClassName.SHOW);
  1715. if (this._config.focus) {
  1716. this._enforceFocus();
  1717. }
  1718. var shownEvent = $$$1.Event(Event.SHOWN, {
  1719. relatedTarget: relatedTarget
  1720. });
  1721. var transitionComplete = function transitionComplete() {
  1722. if (_this3._config.focus) {
  1723. _this3._element.focus();
  1724. }
  1725. _this3._isTransitioning = false;
  1726. $$$1(_this3._element).trigger(shownEvent);
  1727. };
  1728. if (transition) {
  1729. var transitionDuration = Util.getTransitionDurationFromElement(this._element);
  1730. $$$1(this._dialog).one(Util.TRANSITION_END, transitionComplete).emulateTransitionEnd(transitionDuration);
  1731. } else {
  1732. transitionComplete();
  1733. }
  1734. };
  1735. _proto._enforceFocus = function _enforceFocus() {
  1736. var _this4 = this;
  1737. $$$1(document).off(Event.FOCUSIN) // Guard against infinite focus loop
  1738. .on(Event.FOCUSIN, function (event) {
  1739. if (document !== event.target && _this4._element !== event.target && $$$1(_this4._element).has(event.target).length === 0) {
  1740. _this4._element.focus();
  1741. }
  1742. });
  1743. };
  1744. _proto._setEscapeEvent = function _setEscapeEvent() {
  1745. var _this5 = this;
  1746. if (this._isShown && this._config.keyboard) {
  1747. $$$1(this._element).on(Event.KEYDOWN_DISMISS, function (event) {
  1748. if (event.which === ESCAPE_KEYCODE) {
  1749. event.preventDefault();
  1750. _this5.hide();
  1751. }
  1752. });
  1753. } else if (!this._isShown) {
  1754. $$$1(this._element).off(Event.KEYDOWN_DISMISS);
  1755. }
  1756. };
  1757. _proto._setResizeEvent = function _setResizeEvent() {
  1758. var _this6 = this;
  1759. if (this._isShown) {
  1760. $$$1(window).on(Event.RESIZE, function (event) {
  1761. return _this6.handleUpdate(event);
  1762. });
  1763. } else {
  1764. $$$1(window).off(Event.RESIZE);
  1765. }
  1766. };
  1767. _proto._hideModal = function _hideModal() {
  1768. var _this7 = this;
  1769. this._element.style.display = 'none';
  1770. this._element.setAttribute('aria-hidden', true);
  1771. this._isTransitioning = false;
  1772. this._showBackdrop(function () {
  1773. $$$1(document.body).removeClass(ClassName.OPEN);
  1774. _this7._resetAdjustments();
  1775. _this7._resetScrollbar();
  1776. $$$1(_this7._element).trigger(Event.HIDDEN);
  1777. });
  1778. };
  1779. _proto._removeBackdrop = function _removeBackdrop() {
  1780. if (this._backdrop) {
  1781. $$$1(this._backdrop).remove();
  1782. this._backdrop = null;
  1783. }
  1784. };
  1785. _proto._showBackdrop = function _showBackdrop(callback) {
  1786. var _this8 = this;
  1787. var animate = $$$1(this._element).hasClass(ClassName.FADE) ? ClassName.FADE : '';
  1788. if (this._isShown && this._config.backdrop) {
  1789. this._backdrop = document.createElement('div');
  1790. this._backdrop.className = ClassName.BACKDROP;
  1791. if (animate) {
  1792. this._backdrop.classList.add(animate);
  1793. }
  1794. $$$1(this._backdrop).appendTo(document.body);
  1795. $$$1(this._element).on(Event.CLICK_DISMISS, function (event) {
  1796. if (_this8._ignoreBackdropClick) {
  1797. _this8._ignoreBackdropClick = false;
  1798. return;
  1799. }
  1800. if (event.target !== event.currentTarget) {
  1801. return;
  1802. }
  1803. if (_this8._config.backdrop === 'static') {
  1804. _this8._element.focus();
  1805. } else {
  1806. _this8.hide();
  1807. }
  1808. });
  1809. if (animate) {
  1810. Util.reflow(this._backdrop);
  1811. }
  1812. $$$1(this._backdrop).addClass(ClassName.SHOW);
  1813. if (!callback) {
  1814. return;
  1815. }
  1816. if (!animate) {
  1817. callback();
  1818. return;
  1819. }
  1820. var backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
  1821. $$$1(this._backdrop).one(Util.TRANSITION_END, callback).emulateTransitionEnd(backdropTransitionDuration);
  1822. } else if (!this._isShown && this._backdrop) {
  1823. $$$1(this._backdrop).removeClass(ClassName.SHOW);
  1824. var callbackRemove = function callbackRemove() {
  1825. _this8._removeBackdrop();
  1826. if (callback) {
  1827. callback();
  1828. }
  1829. };
  1830. if ($$$1(this._element).hasClass(ClassName.FADE)) {
  1831. var _backdropTransitionDuration = Util.getTransitionDurationFromElement(this._backdrop);
  1832. $$$1(this._backdrop).one(Util.TRANSITION_END, callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);
  1833. } else {
  1834. callbackRemove();
  1835. }
  1836. } else if (callback) {
  1837. callback();
  1838. }
  1839. }; // ----------------------------------------------------------------------
  1840. // the following methods are used to handle overflowing modals
  1841. // todo (fat): these should probably be refactored out of modal.js
  1842. // ----------------------------------------------------------------------
  1843. _proto._adjustDialog = function _adjustDialog() {
  1844. var isModalOverflowing = this._element.scrollHeight > document.documentElement.clientHeight;
  1845. if (!this._isBodyOverflowing && isModalOverflowing) {
  1846. this._element.style.paddingLeft = this._scrollbarWidth + "px";
  1847. }
  1848. if (this._isBodyOverflowing && !isModalOverflowing) {
  1849. this._element.style.paddingRight = this._scrollbarWidth + "px";
  1850. }
  1851. };
  1852. _proto._resetAdjustments = function _resetAdjustments() {
  1853. this._element.style.paddingLeft = '';
  1854. this._element.style.paddingRight = '';
  1855. };
  1856. _proto._checkScrollbar = function _checkScrollbar() {
  1857. var rect = document.body.getBoundingClientRect();
  1858. this._isBodyOverflowing = rect.left + rect.right < window.innerWidth;
  1859. this._scrollbarWidth = this._getScrollbarWidth();
  1860. };
  1861. _proto._setScrollbar = function _setScrollbar() {
  1862. var _this9 = this;
  1863. if (this._isBodyOverflowing) {
  1864. // Note: DOMNode.style.paddingRight returns the actual value or '' if not set
  1865. // while $(DOMNode).css('padding-right') returns the calculated value or 0 if not set
  1866. var fixedContent = [].slice.call(document.querySelectorAll(Selector.FIXED_CONTENT));
  1867. var stickyContent = [].slice.call(document.querySelectorAll(Selector.STICKY_CONTENT)); // Adjust fixed content padding
  1868. $$$1(fixedContent).each(function (index, element) {
  1869. var actualPadding = element.style.paddingRight;
  1870. var calculatedPadding = $$$1(element).css('padding-right');
  1871. $$$1(element).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + _this9._scrollbarWidth + "px");
  1872. }); // Adjust sticky content margin
  1873. $$$1(stickyContent).each(function (index, element) {
  1874. var actualMargin = element.style.marginRight;
  1875. var calculatedMargin = $$$1(element).css('margin-right');
  1876. $$$1(element).data('margin-right', actualMargin).css('margin-right', parseFloat(calculatedMargin) - _this9._scrollbarWidth + "px");
  1877. }); // Adjust body padding
  1878. var actualPadding = document.body.style.paddingRight;
  1879. var calculatedPadding = $$$1(document.body).css('padding-right');
  1880. $$$1(document.body).data('padding-right', actualPadding).css('padding-right', parseFloat(calculatedPadding) + this._scrollbarWidth + "px");
  1881. }
  1882. };
  1883. _proto._resetScrollbar = function _resetScrollbar() {
  1884. // Restore fixed content padding
  1885. var fixedContent = [].slice.call(document.querySelectorAll(Selector.FIXED_CONTENT));
  1886. $$$1(fixedContent).each(function (index, element) {
  1887. var padding = $$$1(element).data('padding-right');
  1888. $$$1(element).removeData('padding-right');
  1889. element.style.paddingRight = padding ? padding : '';
  1890. }); // Restore sticky content
  1891. var elements = [].slice.call(document.querySelectorAll("" + Selector.STICKY_CONTENT));
  1892. $$$1(elements).each(function (index, element) {
  1893. var margin = $$$1(element).data('margin-right');
  1894. if (typeof margin !== 'undefined') {
  1895. $$$1(element).css('margin-right', margin).removeData('margin-right');
  1896. }
  1897. }); // Restore body padding
  1898. var padding = $$$1(document.body).data('padding-right');
  1899. $$$1(document.body).removeData('padding-right');
  1900. document.body.style.paddingRight = padding ? padding : '';
  1901. };
  1902. _proto._getScrollbarWidth = function _getScrollbarWidth() {
  1903. // thx d.walsh
  1904. var scrollDiv = document.createElement('div');
  1905. scrollDiv.className = ClassName.SCROLLBAR_MEASURER;
  1906. document.body.appendChild(scrollDiv);
  1907. var scrollbarWidth = scrollDiv.getBoundingClientRect().width - scrollDiv.clientWidth;
  1908. document.body.removeChild(scrollDiv);
  1909. return scrollbarWidth;
  1910. }; // Static
  1911. Modal._jQueryInterface = function _jQueryInterface(config, relatedTarget) {
  1912. return this.each(function () {
  1913. var data = $$$1(this).data(DATA_KEY);
  1914. var _config = _objectSpread({}, Default, $$$1(this).data(), typeof config === 'object' && config ? config : {});
  1915. if (!data) {
  1916. data = new Modal(this, _config);
  1917. $$$1(this).data(DATA_KEY, data);
  1918. }
  1919. if (typeof config === 'string') {
  1920. if (typeof data[config] === 'undefined') {
  1921. throw new TypeError("No method named \"" + config + "\"");
  1922. }
  1923. data[config](relatedTarget);
  1924. } else if (_config.show) {
  1925. data.show(relatedTarget);
  1926. }
  1927. });
  1928. };
  1929. _createClass(Modal, null, [{
  1930. key: "VERSION",
  1931. get: function get() {
  1932. return VERSION;
  1933. }
  1934. }, {
  1935. key: "Default",
  1936. get: function get() {
  1937. return Default;
  1938. }
  1939. }]);
  1940. return Modal;
  1941. }();
  1942. /**
  1943. * ------------------------------------------------------------------------
  1944. * Data Api implementation
  1945. * ------------------------------------------------------------------------
  1946. */
  1947. $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
  1948. var _this10 = this;
  1949. var target;
  1950. var selector = Util.getSelectorFromElement(this);
  1951. if (selector) {
  1952. target = document.querySelector(selector);
  1953. }
  1954. var config = $$$1(target).data(DATA_KEY) ? 'toggle' : _objectSpread({}, $$$1(target).data(), $$$1(this).data());
  1955. if (this.tagName === 'A' || this.tagName === 'AREA') {
  1956. event.preventDefault();
  1957. }
  1958. var $target = $$$1(target).one(Event.SHOW, function (showEvent) {
  1959. if (showEvent.isDefaultPrevented()) {
  1960. // Only register focus restorer if modal will actually get shown
  1961. return;
  1962. }
  1963. $target.one(Event.HIDDEN, function () {
  1964. if ($$$1(_this10).is(':visible')) {
  1965. _this10.focus();
  1966. }
  1967. });
  1968. });
  1969. Modal._jQueryInterface.call($$$1(target), config, this);
  1970. });
  1971. /**
  1972. * ------------------------------------------------------------------------
  1973. * jQuery
  1974. * ------------------------------------------------------------------------
  1975. */
  1976. $$$1.fn[NAME] = Modal._jQueryInterface;
  1977. $$$1.fn[NAME].Constructor = Modal;
  1978. $$$1.fn[NAME].noConflict = function () {
  1979. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  1980. return Modal._jQueryInterface;
  1981. };
  1982. return Modal;
  1983. }($);
  1984. /**
  1985. * --------------------------------------------------------------------------
  1986. * Bootstrap (v4.1.2): tooltip.js
  1987. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  1988. * --------------------------------------------------------------------------
  1989. */
  1990. var Tooltip = function ($$$1) {
  1991. /**
  1992. * ------------------------------------------------------------------------
  1993. * Constants
  1994. * ------------------------------------------------------------------------
  1995. */
  1996. var NAME = 'tooltip';
  1997. var VERSION = '4.1.2';
  1998. var DATA_KEY = 'bs.tooltip';
  1999. var EVENT_KEY = "." + DATA_KEY;
  2000. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  2001. var CLASS_PREFIX = 'bs-tooltip';
  2002. var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
  2003. var DefaultType = {
  2004. animation: 'boolean',
  2005. template: 'string',
  2006. title: '(string|element|function)',
  2007. trigger: 'string',
  2008. delay: '(number|object)',
  2009. html: 'boolean',
  2010. selector: '(string|boolean)',
  2011. placement: '(string|function)',
  2012. offset: '(number|string)',
  2013. container: '(string|element|boolean)',
  2014. fallbackPlacement: '(string|array)',
  2015. boundary: '(string|element)'
  2016. };
  2017. var AttachmentMap = {
  2018. AUTO: 'auto',
  2019. TOP: 'top',
  2020. RIGHT: 'right',
  2021. BOTTOM: 'bottom',
  2022. LEFT: 'left'
  2023. };
  2024. var Default = {
  2025. animation: true,
  2026. template: '<div class="tooltip" role="tooltip">' + '<div class="arrow"></div>' + '<div class="tooltip-inner"></div></div>',
  2027. trigger: 'hover focus',
  2028. title: '',
  2029. delay: 0,
  2030. html: false,
  2031. selector: false,
  2032. placement: 'top',
  2033. offset: 0,
  2034. container: false,
  2035. fallbackPlacement: 'flip',
  2036. boundary: 'scrollParent'
  2037. };
  2038. var HoverState = {
  2039. SHOW: 'show',
  2040. OUT: 'out'
  2041. };
  2042. var Event = {
  2043. HIDE: "hide" + EVENT_KEY,
  2044. HIDDEN: "hidden" + EVENT_KEY,
  2045. SHOW: "show" + EVENT_KEY,
  2046. SHOWN: "shown" + EVENT_KEY,
  2047. INSERTED: "inserted" + EVENT_KEY,
  2048. CLICK: "click" + EVENT_KEY,
  2049. FOCUSIN: "focusin" + EVENT_KEY,
  2050. FOCUSOUT: "focusout" + EVENT_KEY,
  2051. MOUSEENTER: "mouseenter" + EVENT_KEY,
  2052. MOUSELEAVE: "mouseleave" + EVENT_KEY
  2053. };
  2054. var ClassName = {
  2055. FADE: 'fade',
  2056. SHOW: 'show'
  2057. };
  2058. var Selector = {
  2059. TOOLTIP: '.tooltip',
  2060. TOOLTIP_INNER: '.tooltip-inner',
  2061. ARROW: '.arrow'
  2062. };
  2063. var Trigger = {
  2064. HOVER: 'hover',
  2065. FOCUS: 'focus',
  2066. CLICK: 'click',
  2067. MANUAL: 'manual'
  2068. /**
  2069. * ------------------------------------------------------------------------
  2070. * Class Definition
  2071. * ------------------------------------------------------------------------
  2072. */
  2073. };
  2074. var Tooltip =
  2075. /*#__PURE__*/
  2076. function () {
  2077. function Tooltip(element, config) {
  2078. /**
  2079. * Check for Popper dependency
  2080. * Popper - https://popper.js.org
  2081. */
  2082. if (typeof Popper === 'undefined') {
  2083. throw new TypeError('Bootstrap tooltips require Popper.js (https://popper.js.org)');
  2084. } // private
  2085. this._isEnabled = true;
  2086. this._timeout = 0;
  2087. this._hoverState = '';
  2088. this._activeTrigger = {};
  2089. this._popper = null; // Protected
  2090. this.element = element;
  2091. this.config = this._getConfig(config);
  2092. this.tip = null;
  2093. this._setListeners();
  2094. } // Getters
  2095. var _proto = Tooltip.prototype;
  2096. // Public
  2097. _proto.enable = function enable() {
  2098. this._isEnabled = true;
  2099. };
  2100. _proto.disable = function disable() {
  2101. this._isEnabled = false;
  2102. };
  2103. _proto.toggleEnabled = function toggleEnabled() {
  2104. this._isEnabled = !this._isEnabled;
  2105. };
  2106. _proto.toggle = function toggle(event) {
  2107. if (!this._isEnabled) {
  2108. return;
  2109. }
  2110. if (event) {
  2111. var dataKey = this.constructor.DATA_KEY;
  2112. var context = $$$1(event.currentTarget).data(dataKey);
  2113. if (!context) {
  2114. context = new this.constructor(event.currentTarget, this._getDelegateConfig());
  2115. $$$1(event.currentTarget).data(dataKey, context);
  2116. }
  2117. context._activeTrigger.click = !context._activeTrigger.click;
  2118. if (context._isWithActiveTrigger()) {
  2119. context._enter(null, context);
  2120. } else {
  2121. context._leave(null, context);
  2122. }
  2123. } else {
  2124. if ($$$1(this.getTipElement()).hasClass(ClassName.SHOW)) {
  2125. this._leave(null, this);
  2126. return;
  2127. }
  2128. this._enter(null, this);
  2129. }
  2130. };
  2131. _proto.dispose = function dispose() {
  2132. clearTimeout(this._timeout);
  2133. $$$1.removeData(this.element, this.constructor.DATA_KEY);
  2134. $$$1(this.element).off(this.constructor.EVENT_KEY);
  2135. $$$1(this.element).closest('.modal').off('hide.bs.modal');
  2136. if (this.tip) {
  2137. $$$1(this.tip).remove();
  2138. }
  2139. this._isEnabled = null;
  2140. this._timeout = null;
  2141. this._hoverState = null;
  2142. this._activeTrigger = null;
  2143. if (this._popper !== null) {
  2144. this._popper.destroy();
  2145. }
  2146. this._popper = null;
  2147. this.element = null;
  2148. this.config = null;
  2149. this.tip = null;
  2150. };
  2151. _proto.show = function show() {
  2152. var _this = this;
  2153. if ($$$1(this.element).css('display') === 'none') {
  2154. throw new Error('Please use show on visible elements');
  2155. }
  2156. var showEvent = $$$1.Event(this.constructor.Event.SHOW);
  2157. if (this.isWithContent() && this._isEnabled) {
  2158. $$$1(this.element).trigger(showEvent);
  2159. var isInTheDom = $$$1.contains(this.element.ownerDocument.documentElement, this.element);
  2160. if (showEvent.isDefaultPrevented() || !isInTheDom) {
  2161. return;
  2162. }
  2163. var tip = this.getTipElement();
  2164. var tipId = Util.getUID(this.constructor.NAME);
  2165. tip.setAttribute('id', tipId);
  2166. this.element.setAttribute('aria-describedby', tipId);
  2167. this.setContent();
  2168. if (this.config.animation) {
  2169. $$$1(tip).addClass(ClassName.FADE);
  2170. }
  2171. var placement = typeof this.config.placement === 'function' ? this.config.placement.call(this, tip, this.element) : this.config.placement;
  2172. var attachment = this._getAttachment(placement);
  2173. this.addAttachmentClass(attachment);
  2174. var container = this.config.container === false ? document.body : $$$1(document).find(this.config.container);
  2175. $$$1(tip).data(this.constructor.DATA_KEY, this);
  2176. if (!$$$1.contains(this.element.ownerDocument.documentElement, this.tip)) {
  2177. $$$1(tip).appendTo(container);
  2178. }
  2179. $$$1(this.element).trigger(this.constructor.Event.INSERTED);
  2180. this._popper = new Popper(this.element, tip, {
  2181. placement: attachment,
  2182. modifiers: {
  2183. offset: {
  2184. offset: this.config.offset
  2185. },
  2186. flip: {
  2187. behavior: this.config.fallbackPlacement
  2188. },
  2189. arrow: {
  2190. element: Selector.ARROW
  2191. },
  2192. preventOverflow: {
  2193. boundariesElement: this.config.boundary
  2194. }
  2195. },
  2196. onCreate: function onCreate(data) {
  2197. if (data.originalPlacement !== data.placement) {
  2198. _this._handlePopperPlacementChange(data);
  2199. }
  2200. },
  2201. onUpdate: function onUpdate(data) {
  2202. _this._handlePopperPlacementChange(data);
  2203. }
  2204. });
  2205. $$$1(tip).addClass(ClassName.SHOW); // If this is a touch-enabled device we add extra
  2206. // empty mouseover listeners to the body's immediate children;
  2207. // only needed because of broken event delegation on iOS
  2208. // https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html
  2209. if ('ontouchstart' in document.documentElement) {
  2210. $$$1(document.body).children().on('mouseover', null, $$$1.noop);
  2211. }
  2212. var complete = function complete() {
  2213. if (_this.config.animation) {
  2214. _this._fixTransition();
  2215. }
  2216. var prevHoverState = _this._hoverState;
  2217. _this._hoverState = null;
  2218. $$$1(_this.element).trigger(_this.constructor.Event.SHOWN);
  2219. if (prevHoverState === HoverState.OUT) {
  2220. _this._leave(null, _this);
  2221. }
  2222. };
  2223. if ($$$1(this.tip).hasClass(ClassName.FADE)) {
  2224. var transitionDuration = Util.getTransitionDurationFromElement(this.tip);
  2225. $$$1(this.tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
  2226. } else {
  2227. complete();
  2228. }
  2229. }
  2230. };
  2231. _proto.hide = function hide(callback) {
  2232. var _this2 = this;
  2233. var tip = this.getTipElement();
  2234. var hideEvent = $$$1.Event(this.constructor.Event.HIDE);
  2235. var complete = function complete() {
  2236. if (_this2._hoverState !== HoverState.SHOW && tip.parentNode) {
  2237. tip.parentNode.removeChild(tip);
  2238. }
  2239. _this2._cleanTipClass();
  2240. _this2.element.removeAttribute('aria-describedby');
  2241. $$$1(_this2.element).trigger(_this2.constructor.Event.HIDDEN);
  2242. if (_this2._popper !== null) {
  2243. _this2._popper.destroy();
  2244. }
  2245. if (callback) {
  2246. callback();
  2247. }
  2248. };
  2249. $$$1(this.element).trigger(hideEvent);
  2250. if (hideEvent.isDefaultPrevented()) {
  2251. return;
  2252. }
  2253. $$$1(tip).removeClass(ClassName.SHOW); // If this is a touch-enabled device we remove the extra
  2254. // empty mouseover listeners we added for iOS support
  2255. if ('ontouchstart' in document.documentElement) {
  2256. $$$1(document.body).children().off('mouseover', null, $$$1.noop);
  2257. }
  2258. this._activeTrigger[Trigger.CLICK] = false;
  2259. this._activeTrigger[Trigger.FOCUS] = false;
  2260. this._activeTrigger[Trigger.HOVER] = false;
  2261. if ($$$1(this.tip).hasClass(ClassName.FADE)) {
  2262. var transitionDuration = Util.getTransitionDurationFromElement(tip);
  2263. $$$1(tip).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
  2264. } else {
  2265. complete();
  2266. }
  2267. this._hoverState = '';
  2268. };
  2269. _proto.update = function update() {
  2270. if (this._popper !== null) {
  2271. this._popper.scheduleUpdate();
  2272. }
  2273. }; // Protected
  2274. _proto.isWithContent = function isWithContent() {
  2275. return Boolean(this.getTitle());
  2276. };
  2277. _proto.addAttachmentClass = function addAttachmentClass(attachment) {
  2278. $$$1(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
  2279. };
  2280. _proto.getTipElement = function getTipElement() {
  2281. this.tip = this.tip || $$$1(this.config.template)[0];
  2282. return this.tip;
  2283. };
  2284. _proto.setContent = function setContent() {
  2285. var tip = this.getTipElement();
  2286. this.setElementContent($$$1(tip.querySelectorAll(Selector.TOOLTIP_INNER)), this.getTitle());
  2287. $$$1(tip).removeClass(ClassName.FADE + " " + ClassName.SHOW);
  2288. };
  2289. _proto.setElementContent = function setElementContent($element, content) {
  2290. var html = this.config.html;
  2291. if (typeof content === 'object' && (content.nodeType || content.jquery)) {
  2292. // Content is a DOM node or a jQuery
  2293. if (html) {
  2294. if (!$$$1(content).parent().is($element)) {
  2295. $element.empty().append(content);
  2296. }
  2297. } else {
  2298. $element.text($$$1(content).text());
  2299. }
  2300. } else {
  2301. $element[html ? 'html' : 'text'](content);
  2302. }
  2303. };
  2304. _proto.getTitle = function getTitle() {
  2305. var title = this.element.getAttribute('data-original-title');
  2306. if (!title) {
  2307. title = typeof this.config.title === 'function' ? this.config.title.call(this.element) : this.config.title;
  2308. }
  2309. return title;
  2310. }; // Private
  2311. _proto._getAttachment = function _getAttachment(placement) {
  2312. return AttachmentMap[placement.toUpperCase()];
  2313. };
  2314. _proto._setListeners = function _setListeners() {
  2315. var _this3 = this;
  2316. var triggers = this.config.trigger.split(' ');
  2317. triggers.forEach(function (trigger) {
  2318. if (trigger === 'click') {
  2319. $$$1(_this3.element).on(_this3.constructor.Event.CLICK, _this3.config.selector, function (event) {
  2320. return _this3.toggle(event);
  2321. });
  2322. } else if (trigger !== Trigger.MANUAL) {
  2323. var eventIn = trigger === Trigger.HOVER ? _this3.constructor.Event.MOUSEENTER : _this3.constructor.Event.FOCUSIN;
  2324. var eventOut = trigger === Trigger.HOVER ? _this3.constructor.Event.MOUSELEAVE : _this3.constructor.Event.FOCUSOUT;
  2325. $$$1(_this3.element).on(eventIn, _this3.config.selector, function (event) {
  2326. return _this3._enter(event);
  2327. }).on(eventOut, _this3.config.selector, function (event) {
  2328. return _this3._leave(event);
  2329. });
  2330. }
  2331. $$$1(_this3.element).closest('.modal').on('hide.bs.modal', function () {
  2332. return _this3.hide();
  2333. });
  2334. });
  2335. if (this.config.selector) {
  2336. this.config = _objectSpread({}, this.config, {
  2337. trigger: 'manual',
  2338. selector: ''
  2339. });
  2340. } else {
  2341. this._fixTitle();
  2342. }
  2343. };
  2344. _proto._fixTitle = function _fixTitle() {
  2345. var titleType = typeof this.element.getAttribute('data-original-title');
  2346. if (this.element.getAttribute('title') || titleType !== 'string') {
  2347. this.element.setAttribute('data-original-title', this.element.getAttribute('title') || '');
  2348. this.element.setAttribute('title', '');
  2349. }
  2350. };
  2351. _proto._enter = function _enter(event, context) {
  2352. var dataKey = this.constructor.DATA_KEY;
  2353. context = context || $$$1(event.currentTarget).data(dataKey);
  2354. if (!context) {
  2355. context = new this.constructor(event.currentTarget, this._getDelegateConfig());
  2356. $$$1(event.currentTarget).data(dataKey, context);
  2357. }
  2358. if (event) {
  2359. context._activeTrigger[event.type === 'focusin' ? Trigger.FOCUS : Trigger.HOVER] = true;
  2360. }
  2361. if ($$$1(context.getTipElement()).hasClass(ClassName.SHOW) || context._hoverState === HoverState.SHOW) {
  2362. context._hoverState = HoverState.SHOW;
  2363. return;
  2364. }
  2365. clearTimeout(context._timeout);
  2366. context._hoverState = HoverState.SHOW;
  2367. if (!context.config.delay || !context.config.delay.show) {
  2368. context.show();
  2369. return;
  2370. }
  2371. context._timeout = setTimeout(function () {
  2372. if (context._hoverState === HoverState.SHOW) {
  2373. context.show();
  2374. }
  2375. }, context.config.delay.show);
  2376. };
  2377. _proto._leave = function _leave(event, context) {
  2378. var dataKey = this.constructor.DATA_KEY;
  2379. context = context || $$$1(event.currentTarget).data(dataKey);
  2380. if (!context) {
  2381. context = new this.constructor(event.currentTarget, this._getDelegateConfig());
  2382. $$$1(event.currentTarget).data(dataKey, context);
  2383. }
  2384. if (event) {
  2385. context._activeTrigger[event.type === 'focusout' ? Trigger.FOCUS : Trigger.HOVER] = false;
  2386. }
  2387. if (context._isWithActiveTrigger()) {
  2388. return;
  2389. }
  2390. clearTimeout(context._timeout);
  2391. context._hoverState = HoverState.OUT;
  2392. if (!context.config.delay || !context.config.delay.hide) {
  2393. context.hide();
  2394. return;
  2395. }
  2396. context._timeout = setTimeout(function () {
  2397. if (context._hoverState === HoverState.OUT) {
  2398. context.hide();
  2399. }
  2400. }, context.config.delay.hide);
  2401. };
  2402. _proto._isWithActiveTrigger = function _isWithActiveTrigger() {
  2403. for (var trigger in this._activeTrigger) {
  2404. if (this._activeTrigger[trigger]) {
  2405. return true;
  2406. }
  2407. }
  2408. return false;
  2409. };
  2410. _proto._getConfig = function _getConfig(config) {
  2411. config = _objectSpread({}, this.constructor.Default, $$$1(this.element).data(), typeof config === 'object' && config ? config : {});
  2412. if (typeof config.delay === 'number') {
  2413. config.delay = {
  2414. show: config.delay,
  2415. hide: config.delay
  2416. };
  2417. }
  2418. if (typeof config.title === 'number') {
  2419. config.title = config.title.toString();
  2420. }
  2421. if (typeof config.content === 'number') {
  2422. config.content = config.content.toString();
  2423. }
  2424. Util.typeCheckConfig(NAME, config, this.constructor.DefaultType);
  2425. return config;
  2426. };
  2427. _proto._getDelegateConfig = function _getDelegateConfig() {
  2428. var config = {};
  2429. if (this.config) {
  2430. for (var key in this.config) {
  2431. if (this.constructor.Default[key] !== this.config[key]) {
  2432. config[key] = this.config[key];
  2433. }
  2434. }
  2435. }
  2436. return config;
  2437. };
  2438. _proto._cleanTipClass = function _cleanTipClass() {
  2439. var $tip = $$$1(this.getTipElement());
  2440. var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
  2441. if (tabClass !== null && tabClass.length) {
  2442. $tip.removeClass(tabClass.join(''));
  2443. }
  2444. };
  2445. _proto._handlePopperPlacementChange = function _handlePopperPlacementChange(popperData) {
  2446. var popperInstance = popperData.instance;
  2447. this.tip = popperInstance.popper;
  2448. this._cleanTipClass();
  2449. this.addAttachmentClass(this._getAttachment(popperData.placement));
  2450. };
  2451. _proto._fixTransition = function _fixTransition() {
  2452. var tip = this.getTipElement();
  2453. var initConfigAnimation = this.config.animation;
  2454. if (tip.getAttribute('x-placement') !== null) {
  2455. return;
  2456. }
  2457. $$$1(tip).removeClass(ClassName.FADE);
  2458. this.config.animation = false;
  2459. this.hide();
  2460. this.show();
  2461. this.config.animation = initConfigAnimation;
  2462. }; // Static
  2463. Tooltip._jQueryInterface = function _jQueryInterface(config) {
  2464. return this.each(function () {
  2465. var data = $$$1(this).data(DATA_KEY);
  2466. var _config = typeof config === 'object' && config;
  2467. if (!data && /dispose|hide/.test(config)) {
  2468. return;
  2469. }
  2470. if (!data) {
  2471. data = new Tooltip(this, _config);
  2472. $$$1(this).data(DATA_KEY, data);
  2473. }
  2474. if (typeof config === 'string') {
  2475. if (typeof data[config] === 'undefined') {
  2476. throw new TypeError("No method named \"" + config + "\"");
  2477. }
  2478. data[config]();
  2479. }
  2480. });
  2481. };
  2482. _createClass(Tooltip, null, [{
  2483. key: "VERSION",
  2484. get: function get() {
  2485. return VERSION;
  2486. }
  2487. }, {
  2488. key: "Default",
  2489. get: function get() {
  2490. return Default;
  2491. }
  2492. }, {
  2493. key: "NAME",
  2494. get: function get() {
  2495. return NAME;
  2496. }
  2497. }, {
  2498. key: "DATA_KEY",
  2499. get: function get() {
  2500. return DATA_KEY;
  2501. }
  2502. }, {
  2503. key: "Event",
  2504. get: function get() {
  2505. return Event;
  2506. }
  2507. }, {
  2508. key: "EVENT_KEY",
  2509. get: function get() {
  2510. return EVENT_KEY;
  2511. }
  2512. }, {
  2513. key: "DefaultType",
  2514. get: function get() {
  2515. return DefaultType;
  2516. }
  2517. }]);
  2518. return Tooltip;
  2519. }();
  2520. /**
  2521. * ------------------------------------------------------------------------
  2522. * jQuery
  2523. * ------------------------------------------------------------------------
  2524. */
  2525. $$$1.fn[NAME] = Tooltip._jQueryInterface;
  2526. $$$1.fn[NAME].Constructor = Tooltip;
  2527. $$$1.fn[NAME].noConflict = function () {
  2528. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  2529. return Tooltip._jQueryInterface;
  2530. };
  2531. return Tooltip;
  2532. }($, Popper);
  2533. /**
  2534. * --------------------------------------------------------------------------
  2535. * Bootstrap (v4.1.2): popover.js
  2536. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  2537. * --------------------------------------------------------------------------
  2538. */
  2539. var Popover = function ($$$1) {
  2540. /**
  2541. * ------------------------------------------------------------------------
  2542. * Constants
  2543. * ------------------------------------------------------------------------
  2544. */
  2545. var NAME = 'popover';
  2546. var VERSION = '4.1.2';
  2547. var DATA_KEY = 'bs.popover';
  2548. var EVENT_KEY = "." + DATA_KEY;
  2549. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  2550. var CLASS_PREFIX = 'bs-popover';
  2551. var BSCLS_PREFIX_REGEX = new RegExp("(^|\\s)" + CLASS_PREFIX + "\\S+", 'g');
  2552. var Default = _objectSpread({}, Tooltip.Default, {
  2553. placement: 'right',
  2554. trigger: 'click',
  2555. content: '',
  2556. template: '<div class="popover" role="tooltip">' + '<div class="arrow"></div>' + '<h3 class="popover-header"></h3>' + '<div class="popover-body"></div></div>'
  2557. });
  2558. var DefaultType = _objectSpread({}, Tooltip.DefaultType, {
  2559. content: '(string|element|function)'
  2560. });
  2561. var ClassName = {
  2562. FADE: 'fade',
  2563. SHOW: 'show'
  2564. };
  2565. var Selector = {
  2566. TITLE: '.popover-header',
  2567. CONTENT: '.popover-body'
  2568. };
  2569. var Event = {
  2570. HIDE: "hide" + EVENT_KEY,
  2571. HIDDEN: "hidden" + EVENT_KEY,
  2572. SHOW: "show" + EVENT_KEY,
  2573. SHOWN: "shown" + EVENT_KEY,
  2574. INSERTED: "inserted" + EVENT_KEY,
  2575. CLICK: "click" + EVENT_KEY,
  2576. FOCUSIN: "focusin" + EVENT_KEY,
  2577. FOCUSOUT: "focusout" + EVENT_KEY,
  2578. MOUSEENTER: "mouseenter" + EVENT_KEY,
  2579. MOUSELEAVE: "mouseleave" + EVENT_KEY
  2580. /**
  2581. * ------------------------------------------------------------------------
  2582. * Class Definition
  2583. * ------------------------------------------------------------------------
  2584. */
  2585. };
  2586. var Popover =
  2587. /*#__PURE__*/
  2588. function (_Tooltip) {
  2589. _inheritsLoose(Popover, _Tooltip);
  2590. function Popover() {
  2591. return _Tooltip.apply(this, arguments) || this;
  2592. }
  2593. var _proto = Popover.prototype;
  2594. // Overrides
  2595. _proto.isWithContent = function isWithContent() {
  2596. return this.getTitle() || this._getContent();
  2597. };
  2598. _proto.addAttachmentClass = function addAttachmentClass(attachment) {
  2599. $$$1(this.getTipElement()).addClass(CLASS_PREFIX + "-" + attachment);
  2600. };
  2601. _proto.getTipElement = function getTipElement() {
  2602. this.tip = this.tip || $$$1(this.config.template)[0];
  2603. return this.tip;
  2604. };
  2605. _proto.setContent = function setContent() {
  2606. var $tip = $$$1(this.getTipElement()); // We use append for html objects to maintain js events
  2607. this.setElementContent($tip.find(Selector.TITLE), this.getTitle());
  2608. var content = this._getContent();
  2609. if (typeof content === 'function') {
  2610. content = content.call(this.element);
  2611. }
  2612. this.setElementContent($tip.find(Selector.CONTENT), content);
  2613. $tip.removeClass(ClassName.FADE + " " + ClassName.SHOW);
  2614. }; // Private
  2615. _proto._getContent = function _getContent() {
  2616. return this.element.getAttribute('data-content') || this.config.content;
  2617. };
  2618. _proto._cleanTipClass = function _cleanTipClass() {
  2619. var $tip = $$$1(this.getTipElement());
  2620. var tabClass = $tip.attr('class').match(BSCLS_PREFIX_REGEX);
  2621. if (tabClass !== null && tabClass.length > 0) {
  2622. $tip.removeClass(tabClass.join(''));
  2623. }
  2624. }; // Static
  2625. Popover._jQueryInterface = function _jQueryInterface(config) {
  2626. return this.each(function () {
  2627. var data = $$$1(this).data(DATA_KEY);
  2628. var _config = typeof config === 'object' ? config : null;
  2629. if (!data && /destroy|hide/.test(config)) {
  2630. return;
  2631. }
  2632. if (!data) {
  2633. data = new Popover(this, _config);
  2634. $$$1(this).data(DATA_KEY, data);
  2635. }
  2636. if (typeof config === 'string') {
  2637. if (typeof data[config] === 'undefined') {
  2638. throw new TypeError("No method named \"" + config + "\"");
  2639. }
  2640. data[config]();
  2641. }
  2642. });
  2643. };
  2644. _createClass(Popover, null, [{
  2645. key: "VERSION",
  2646. // Getters
  2647. get: function get() {
  2648. return VERSION;
  2649. }
  2650. }, {
  2651. key: "Default",
  2652. get: function get() {
  2653. return Default;
  2654. }
  2655. }, {
  2656. key: "NAME",
  2657. get: function get() {
  2658. return NAME;
  2659. }
  2660. }, {
  2661. key: "DATA_KEY",
  2662. get: function get() {
  2663. return DATA_KEY;
  2664. }
  2665. }, {
  2666. key: "Event",
  2667. get: function get() {
  2668. return Event;
  2669. }
  2670. }, {
  2671. key: "EVENT_KEY",
  2672. get: function get() {
  2673. return EVENT_KEY;
  2674. }
  2675. }, {
  2676. key: "DefaultType",
  2677. get: function get() {
  2678. return DefaultType;
  2679. }
  2680. }]);
  2681. return Popover;
  2682. }(Tooltip);
  2683. /**
  2684. * ------------------------------------------------------------------------
  2685. * jQuery
  2686. * ------------------------------------------------------------------------
  2687. */
  2688. $$$1.fn[NAME] = Popover._jQueryInterface;
  2689. $$$1.fn[NAME].Constructor = Popover;
  2690. $$$1.fn[NAME].noConflict = function () {
  2691. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  2692. return Popover._jQueryInterface;
  2693. };
  2694. return Popover;
  2695. }($);
  2696. /**
  2697. * --------------------------------------------------------------------------
  2698. * Bootstrap (v4.1.2): scrollspy.js
  2699. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  2700. * --------------------------------------------------------------------------
  2701. */
  2702. var ScrollSpy = function ($$$1) {
  2703. /**
  2704. * ------------------------------------------------------------------------
  2705. * Constants
  2706. * ------------------------------------------------------------------------
  2707. */
  2708. var NAME = 'scrollspy';
  2709. var VERSION = '4.1.2';
  2710. var DATA_KEY = 'bs.scrollspy';
  2711. var EVENT_KEY = "." + DATA_KEY;
  2712. var DATA_API_KEY = '.data-api';
  2713. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  2714. var Default = {
  2715. offset: 10,
  2716. method: 'auto',
  2717. target: ''
  2718. };
  2719. var DefaultType = {
  2720. offset: 'number',
  2721. method: 'string',
  2722. target: '(string|element)'
  2723. };
  2724. var Event = {
  2725. ACTIVATE: "activate" + EVENT_KEY,
  2726. SCROLL: "scroll" + EVENT_KEY,
  2727. LOAD_DATA_API: "load" + EVENT_KEY + DATA_API_KEY
  2728. };
  2729. var ClassName = {
  2730. DROPDOWN_ITEM: 'dropdown-item',
  2731. DROPDOWN_MENU: 'dropdown-menu',
  2732. ACTIVE: 'active'
  2733. };
  2734. var Selector = {
  2735. DATA_SPY: '[data-spy="scroll"]',
  2736. ACTIVE: '.active',
  2737. NAV_LIST_GROUP: '.nav, .list-group',
  2738. NAV_LINKS: '.nav-link',
  2739. NAV_ITEMS: '.nav-item',
  2740. LIST_ITEMS: '.list-group-item',
  2741. DROPDOWN: '.dropdown',
  2742. DROPDOWN_ITEMS: '.dropdown-item',
  2743. DROPDOWN_TOGGLE: '.dropdown-toggle'
  2744. };
  2745. var OffsetMethod = {
  2746. OFFSET: 'offset',
  2747. POSITION: 'position'
  2748. /**
  2749. * ------------------------------------------------------------------------
  2750. * Class Definition
  2751. * ------------------------------------------------------------------------
  2752. */
  2753. };
  2754. var ScrollSpy =
  2755. /*#__PURE__*/
  2756. function () {
  2757. function ScrollSpy(element, config) {
  2758. var _this = this;
  2759. this._element = element;
  2760. this._scrollElement = element.tagName === 'BODY' ? window : element;
  2761. this._config = this._getConfig(config);
  2762. this._selector = this._config.target + " " + Selector.NAV_LINKS + "," + (this._config.target + " " + Selector.LIST_ITEMS + ",") + (this._config.target + " " + Selector.DROPDOWN_ITEMS);
  2763. this._offsets = [];
  2764. this._targets = [];
  2765. this._activeTarget = null;
  2766. this._scrollHeight = 0;
  2767. $$$1(this._scrollElement).on(Event.SCROLL, function (event) {
  2768. return _this._process(event);
  2769. });
  2770. this.refresh();
  2771. this._process();
  2772. } // Getters
  2773. var _proto = ScrollSpy.prototype;
  2774. // Public
  2775. _proto.refresh = function refresh() {
  2776. var _this2 = this;
  2777. var autoMethod = this._scrollElement === this._scrollElement.window ? OffsetMethod.OFFSET : OffsetMethod.POSITION;
  2778. var offsetMethod = this._config.method === 'auto' ? autoMethod : this._config.method;
  2779. var offsetBase = offsetMethod === OffsetMethod.POSITION ? this._getScrollTop() : 0;
  2780. this._offsets = [];
  2781. this._targets = [];
  2782. this._scrollHeight = this._getScrollHeight();
  2783. var targets = [].slice.call(document.querySelectorAll(this._selector));
  2784. targets.map(function (element) {
  2785. var target;
  2786. var targetSelector = Util.getSelectorFromElement(element);
  2787. if (targetSelector) {
  2788. target = document.querySelector(targetSelector);
  2789. }
  2790. if (target) {
  2791. var targetBCR = target.getBoundingClientRect();
  2792. if (targetBCR.width || targetBCR.height) {
  2793. // TODO (fat): remove sketch reliance on jQuery position/offset
  2794. return [$$$1(target)[offsetMethod]().top + offsetBase, targetSelector];
  2795. }
  2796. }
  2797. return null;
  2798. }).filter(function (item) {
  2799. return item;
  2800. }).sort(function (a, b) {
  2801. return a[0] - b[0];
  2802. }).forEach(function (item) {
  2803. _this2._offsets.push(item[0]);
  2804. _this2._targets.push(item[1]);
  2805. });
  2806. };
  2807. _proto.dispose = function dispose() {
  2808. $$$1.removeData(this._element, DATA_KEY);
  2809. $$$1(this._scrollElement).off(EVENT_KEY);
  2810. this._element = null;
  2811. this._scrollElement = null;
  2812. this._config = null;
  2813. this._selector = null;
  2814. this._offsets = null;
  2815. this._targets = null;
  2816. this._activeTarget = null;
  2817. this._scrollHeight = null;
  2818. }; // Private
  2819. _proto._getConfig = function _getConfig(config) {
  2820. config = _objectSpread({}, Default, typeof config === 'object' && config ? config : {});
  2821. if (typeof config.target !== 'string') {
  2822. var id = $$$1(config.target).attr('id');
  2823. if (!id) {
  2824. id = Util.getUID(NAME);
  2825. $$$1(config.target).attr('id', id);
  2826. }
  2827. config.target = "#" + id;
  2828. }
  2829. Util.typeCheckConfig(NAME, config, DefaultType);
  2830. return config;
  2831. };
  2832. _proto._getScrollTop = function _getScrollTop() {
  2833. return this._scrollElement === window ? this._scrollElement.pageYOffset : this._scrollElement.scrollTop;
  2834. };
  2835. _proto._getScrollHeight = function _getScrollHeight() {
  2836. return this._scrollElement.scrollHeight || Math.max(document.body.scrollHeight, document.documentElement.scrollHeight);
  2837. };
  2838. _proto._getOffsetHeight = function _getOffsetHeight() {
  2839. return this._scrollElement === window ? window.innerHeight : this._scrollElement.getBoundingClientRect().height;
  2840. };
  2841. _proto._process = function _process() {
  2842. var scrollTop = this._getScrollTop() + this._config.offset;
  2843. var scrollHeight = this._getScrollHeight();
  2844. var maxScroll = this._config.offset + scrollHeight - this._getOffsetHeight();
  2845. if (this._scrollHeight !== scrollHeight) {
  2846. this.refresh();
  2847. }
  2848. if (scrollTop >= maxScroll) {
  2849. var target = this._targets[this._targets.length - 1];
  2850. if (this._activeTarget !== target) {
  2851. this._activate(target);
  2852. }
  2853. return;
  2854. }
  2855. if (this._activeTarget && scrollTop < this._offsets[0] && this._offsets[0] > 0) {
  2856. this._activeTarget = null;
  2857. this._clear();
  2858. return;
  2859. }
  2860. var offsetLength = this._offsets.length;
  2861. for (var i = offsetLength; i--;) {
  2862. var isActiveTarget = this._activeTarget !== this._targets[i] && scrollTop >= this._offsets[i] && (typeof this._offsets[i + 1] === 'undefined' || scrollTop < this._offsets[i + 1]);
  2863. if (isActiveTarget) {
  2864. this._activate(this._targets[i]);
  2865. }
  2866. }
  2867. };
  2868. _proto._activate = function _activate(target) {
  2869. this._activeTarget = target;
  2870. this._clear();
  2871. var queries = this._selector.split(','); // eslint-disable-next-line arrow-body-style
  2872. queries = queries.map(function (selector) {
  2873. return selector + "[data-target=\"" + target + "\"]," + (selector + "[href=\"" + target + "\"]");
  2874. });
  2875. var $link = $$$1([].slice.call(document.querySelectorAll(queries.join(','))));
  2876. if ($link.hasClass(ClassName.DROPDOWN_ITEM)) {
  2877. $link.closest(Selector.DROPDOWN).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE);
  2878. $link.addClass(ClassName.ACTIVE);
  2879. } else {
  2880. // Set triggered link as active
  2881. $link.addClass(ClassName.ACTIVE); // Set triggered links parents as active
  2882. // With both <ul> and <nav> markup a parent is the previous sibling of any nav ancestor
  2883. $link.parents(Selector.NAV_LIST_GROUP).prev(Selector.NAV_LINKS + ", " + Selector.LIST_ITEMS).addClass(ClassName.ACTIVE); // Handle special case when .nav-link is inside .nav-item
  2884. $link.parents(Selector.NAV_LIST_GROUP).prev(Selector.NAV_ITEMS).children(Selector.NAV_LINKS).addClass(ClassName.ACTIVE);
  2885. }
  2886. $$$1(this._scrollElement).trigger(Event.ACTIVATE, {
  2887. relatedTarget: target
  2888. });
  2889. };
  2890. _proto._clear = function _clear() {
  2891. var nodes = [].slice.call(document.querySelectorAll(this._selector));
  2892. $$$1(nodes).filter(Selector.ACTIVE).removeClass(ClassName.ACTIVE);
  2893. }; // Static
  2894. ScrollSpy._jQueryInterface = function _jQueryInterface(config) {
  2895. return this.each(function () {
  2896. var data = $$$1(this).data(DATA_KEY);
  2897. var _config = typeof config === 'object' && config;
  2898. if (!data) {
  2899. data = new ScrollSpy(this, _config);
  2900. $$$1(this).data(DATA_KEY, data);
  2901. }
  2902. if (typeof config === 'string') {
  2903. if (typeof data[config] === 'undefined') {
  2904. throw new TypeError("No method named \"" + config + "\"");
  2905. }
  2906. data[config]();
  2907. }
  2908. });
  2909. };
  2910. _createClass(ScrollSpy, null, [{
  2911. key: "VERSION",
  2912. get: function get() {
  2913. return VERSION;
  2914. }
  2915. }, {
  2916. key: "Default",
  2917. get: function get() {
  2918. return Default;
  2919. }
  2920. }]);
  2921. return ScrollSpy;
  2922. }();
  2923. /**
  2924. * ------------------------------------------------------------------------
  2925. * Data Api implementation
  2926. * ------------------------------------------------------------------------
  2927. */
  2928. $$$1(window).on(Event.LOAD_DATA_API, function () {
  2929. var scrollSpys = [].slice.call(document.querySelectorAll(Selector.DATA_SPY));
  2930. var scrollSpysLength = scrollSpys.length;
  2931. for (var i = scrollSpysLength; i--;) {
  2932. var $spy = $$$1(scrollSpys[i]);
  2933. ScrollSpy._jQueryInterface.call($spy, $spy.data());
  2934. }
  2935. });
  2936. /**
  2937. * ------------------------------------------------------------------------
  2938. * jQuery
  2939. * ------------------------------------------------------------------------
  2940. */
  2941. $$$1.fn[NAME] = ScrollSpy._jQueryInterface;
  2942. $$$1.fn[NAME].Constructor = ScrollSpy;
  2943. $$$1.fn[NAME].noConflict = function () {
  2944. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  2945. return ScrollSpy._jQueryInterface;
  2946. };
  2947. return ScrollSpy;
  2948. }($);
  2949. /**
  2950. * --------------------------------------------------------------------------
  2951. * Bootstrap (v4.1.2): tab.js
  2952. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  2953. * --------------------------------------------------------------------------
  2954. */
  2955. var Tab = function ($$$1) {
  2956. /**
  2957. * ------------------------------------------------------------------------
  2958. * Constants
  2959. * ------------------------------------------------------------------------
  2960. */
  2961. var NAME = 'tab';
  2962. var VERSION = '4.1.2';
  2963. var DATA_KEY = 'bs.tab';
  2964. var EVENT_KEY = "." + DATA_KEY;
  2965. var DATA_API_KEY = '.data-api';
  2966. var JQUERY_NO_CONFLICT = $$$1.fn[NAME];
  2967. var Event = {
  2968. HIDE: "hide" + EVENT_KEY,
  2969. HIDDEN: "hidden" + EVENT_KEY,
  2970. SHOW: "show" + EVENT_KEY,
  2971. SHOWN: "shown" + EVENT_KEY,
  2972. CLICK_DATA_API: "click" + EVENT_KEY + DATA_API_KEY
  2973. };
  2974. var ClassName = {
  2975. DROPDOWN_MENU: 'dropdown-menu',
  2976. ACTIVE: 'active',
  2977. DISABLED: 'disabled',
  2978. FADE: 'fade',
  2979. SHOW: 'show'
  2980. };
  2981. var Selector = {
  2982. DROPDOWN: '.dropdown',
  2983. NAV_LIST_GROUP: '.nav, .list-group',
  2984. ACTIVE: '.active',
  2985. ACTIVE_UL: '> li > .active',
  2986. DATA_TOGGLE: '[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',
  2987. DROPDOWN_TOGGLE: '.dropdown-toggle',
  2988. DROPDOWN_ACTIVE_CHILD: '> .dropdown-menu .active'
  2989. /**
  2990. * ------------------------------------------------------------------------
  2991. * Class Definition
  2992. * ------------------------------------------------------------------------
  2993. */
  2994. };
  2995. var Tab =
  2996. /*#__PURE__*/
  2997. function () {
  2998. function Tab(element) {
  2999. this._element = element;
  3000. } // Getters
  3001. var _proto = Tab.prototype;
  3002. // Public
  3003. _proto.show = function show() {
  3004. var _this = this;
  3005. if (this._element.parentNode && this._element.parentNode.nodeType === Node.ELEMENT_NODE && $$$1(this._element).hasClass(ClassName.ACTIVE) || $$$1(this._element).hasClass(ClassName.DISABLED)) {
  3006. return;
  3007. }
  3008. var target;
  3009. var previous;
  3010. var listElement = $$$1(this._element).closest(Selector.NAV_LIST_GROUP)[0];
  3011. var selector = Util.getSelectorFromElement(this._element);
  3012. if (listElement) {
  3013. var itemSelector = listElement.nodeName === 'UL' ? Selector.ACTIVE_UL : Selector.ACTIVE;
  3014. previous = $$$1.makeArray($$$1(listElement).find(itemSelector));
  3015. previous = previous[previous.length - 1];
  3016. }
  3017. var hideEvent = $$$1.Event(Event.HIDE, {
  3018. relatedTarget: this._element
  3019. });
  3020. var showEvent = $$$1.Event(Event.SHOW, {
  3021. relatedTarget: previous
  3022. });
  3023. if (previous) {
  3024. $$$1(previous).trigger(hideEvent);
  3025. }
  3026. $$$1(this._element).trigger(showEvent);
  3027. if (showEvent.isDefaultPrevented() || hideEvent.isDefaultPrevented()) {
  3028. return;
  3029. }
  3030. if (selector) {
  3031. target = document.querySelector(selector);
  3032. }
  3033. this._activate(this._element, listElement);
  3034. var complete = function complete() {
  3035. var hiddenEvent = $$$1.Event(Event.HIDDEN, {
  3036. relatedTarget: _this._element
  3037. });
  3038. var shownEvent = $$$1.Event(Event.SHOWN, {
  3039. relatedTarget: previous
  3040. });
  3041. $$$1(previous).trigger(hiddenEvent);
  3042. $$$1(_this._element).trigger(shownEvent);
  3043. };
  3044. if (target) {
  3045. this._activate(target, target.parentNode, complete);
  3046. } else {
  3047. complete();
  3048. }
  3049. };
  3050. _proto.dispose = function dispose() {
  3051. $$$1.removeData(this._element, DATA_KEY);
  3052. this._element = null;
  3053. }; // Private
  3054. _proto._activate = function _activate(element, container, callback) {
  3055. var _this2 = this;
  3056. var activeElements;
  3057. if (container.nodeName === 'UL') {
  3058. activeElements = $$$1(container).find(Selector.ACTIVE_UL);
  3059. } else {
  3060. activeElements = $$$1(container).children(Selector.ACTIVE);
  3061. }
  3062. var active = activeElements[0];
  3063. var isTransitioning = callback && active && $$$1(active).hasClass(ClassName.FADE);
  3064. var complete = function complete() {
  3065. return _this2._transitionComplete(element, active, callback);
  3066. };
  3067. if (active && isTransitioning) {
  3068. var transitionDuration = Util.getTransitionDurationFromElement(active);
  3069. $$$1(active).one(Util.TRANSITION_END, complete).emulateTransitionEnd(transitionDuration);
  3070. } else {
  3071. complete();
  3072. }
  3073. };
  3074. _proto._transitionComplete = function _transitionComplete(element, active, callback) {
  3075. if (active) {
  3076. $$$1(active).removeClass(ClassName.SHOW + " " + ClassName.ACTIVE);
  3077. var dropdownChild = $$$1(active.parentNode).find(Selector.DROPDOWN_ACTIVE_CHILD)[0];
  3078. if (dropdownChild) {
  3079. $$$1(dropdownChild).removeClass(ClassName.ACTIVE);
  3080. }
  3081. if (active.getAttribute('role') === 'tab') {
  3082. active.setAttribute('aria-selected', false);
  3083. }
  3084. }
  3085. $$$1(element).addClass(ClassName.ACTIVE);
  3086. if (element.getAttribute('role') === 'tab') {
  3087. element.setAttribute('aria-selected', true);
  3088. }
  3089. Util.reflow(element);
  3090. $$$1(element).addClass(ClassName.SHOW);
  3091. if (element.parentNode && $$$1(element.parentNode).hasClass(ClassName.DROPDOWN_MENU)) {
  3092. var dropdownElement = $$$1(element).closest(Selector.DROPDOWN)[0];
  3093. if (dropdownElement) {
  3094. var dropdownToggleList = [].slice.call(dropdownElement.querySelectorAll(Selector.DROPDOWN_TOGGLE));
  3095. $$$1(dropdownToggleList).addClass(ClassName.ACTIVE);
  3096. }
  3097. element.setAttribute('aria-expanded', true);
  3098. }
  3099. if (callback) {
  3100. callback();
  3101. }
  3102. }; // Static
  3103. Tab._jQueryInterface = function _jQueryInterface(config) {
  3104. return this.each(function () {
  3105. var $this = $$$1(this);
  3106. var data = $this.data(DATA_KEY);
  3107. if (!data) {
  3108. data = new Tab(this);
  3109. $this.data(DATA_KEY, data);
  3110. }
  3111. if (typeof config === 'string') {
  3112. if (typeof data[config] === 'undefined') {
  3113. throw new TypeError("No method named \"" + config + "\"");
  3114. }
  3115. data[config]();
  3116. }
  3117. });
  3118. };
  3119. _createClass(Tab, null, [{
  3120. key: "VERSION",
  3121. get: function get() {
  3122. return VERSION;
  3123. }
  3124. }]);
  3125. return Tab;
  3126. }();
  3127. /**
  3128. * ------------------------------------------------------------------------
  3129. * Data Api implementation
  3130. * ------------------------------------------------------------------------
  3131. */
  3132. $$$1(document).on(Event.CLICK_DATA_API, Selector.DATA_TOGGLE, function (event) {
  3133. event.preventDefault();
  3134. Tab._jQueryInterface.call($$$1(this), 'show');
  3135. });
  3136. /**
  3137. * ------------------------------------------------------------------------
  3138. * jQuery
  3139. * ------------------------------------------------------------------------
  3140. */
  3141. $$$1.fn[NAME] = Tab._jQueryInterface;
  3142. $$$1.fn[NAME].Constructor = Tab;
  3143. $$$1.fn[NAME].noConflict = function () {
  3144. $$$1.fn[NAME] = JQUERY_NO_CONFLICT;
  3145. return Tab._jQueryInterface;
  3146. };
  3147. return Tab;
  3148. }($);
  3149. /**
  3150. * --------------------------------------------------------------------------
  3151. * Bootstrap (v4.1.2): index.js
  3152. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  3153. * --------------------------------------------------------------------------
  3154. */
  3155. (function ($$$1) {
  3156. if (typeof $$$1 === 'undefined') {
  3157. throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');
  3158. }
  3159. var version = $$$1.fn.jquery.split(' ')[0].split('.');
  3160. var minMajor = 1;
  3161. var ltMajor = 2;
  3162. var minMinor = 9;
  3163. var minPatch = 1;
  3164. var maxMajor = 4;
  3165. if (version[0] < ltMajor && version[1] < minMinor || version[0] === minMajor && version[1] === minMinor && version[2] < minPatch || version[0] >= maxMajor) {
  3166. throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0');
  3167. }
  3168. })($);
  3169. exports.Util = Util;
  3170. exports.Alert = Alert;
  3171. exports.Button = Button;
  3172. exports.Carousel = Carousel;
  3173. exports.Collapse = Collapse;
  3174. exports.Dropdown = Dropdown;
  3175. exports.Modal = Modal;
  3176. exports.Popover = Popover;
  3177. exports.Scrollspy = ScrollSpy;
  3178. exports.Tab = Tab;
  3179. exports.Tooltip = Tooltip;
  3180. Object.defineProperty(exports, '__esModule', { value: true });
  3181. })));
  3182. //# sourceMappingURL=bootstrap.js.map