bootstrap.js 120 KB

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