fomantic-ui 2.10.0-beta.8 → 2.10.0-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (169) hide show
  1. package/dist/components/accordion.css +1 -1
  2. package/dist/components/accordion.js +1 -1
  3. package/dist/components/accordion.min.css +1 -1
  4. package/dist/components/accordion.min.js +1 -1
  5. package/dist/components/ad.css +1 -1
  6. package/dist/components/ad.min.css +1 -1
  7. package/dist/components/api.js +1 -1
  8. package/dist/components/api.min.js +1 -1
  9. package/dist/components/breadcrumb.css +1 -1
  10. package/dist/components/breadcrumb.min.css +1 -1
  11. package/dist/components/button.css +1 -1
  12. package/dist/components/button.min.css +1 -1
  13. package/dist/components/calendar.css +1 -1
  14. package/dist/components/calendar.js +1 -1
  15. package/dist/components/calendar.min.css +1 -1
  16. package/dist/components/calendar.min.js +1 -1
  17. package/dist/components/card.css +1 -1
  18. package/dist/components/card.min.css +1 -1
  19. package/dist/components/checkbox.css +1 -1
  20. package/dist/components/checkbox.js +1 -1
  21. package/dist/components/checkbox.min.css +1 -1
  22. package/dist/components/checkbox.min.js +1 -1
  23. package/dist/components/comment.css +1 -1
  24. package/dist/components/comment.min.css +1 -1
  25. package/dist/components/container.css +1 -1
  26. package/dist/components/container.min.css +1 -1
  27. package/dist/components/dimmer.css +1 -1
  28. package/dist/components/dimmer.js +1 -1
  29. package/dist/components/dimmer.min.css +1 -1
  30. package/dist/components/dimmer.min.js +1 -1
  31. package/dist/components/divider.css +1 -1
  32. package/dist/components/divider.min.css +1 -1
  33. package/dist/components/dropdown.css +7 -5
  34. package/dist/components/dropdown.js +3 -3
  35. package/dist/components/dropdown.min.css +2 -2
  36. package/dist/components/dropdown.min.js +2 -2
  37. package/dist/components/embed.css +1 -1
  38. package/dist/components/embed.js +2 -2
  39. package/dist/components/embed.min.css +1 -1
  40. package/dist/components/embed.min.js +2 -2
  41. package/dist/components/emoji.css +1 -1
  42. package/dist/components/emoji.min.css +1 -1
  43. package/dist/components/feed.css +1 -1
  44. package/dist/components/feed.min.css +1 -1
  45. package/dist/components/flag.css +1 -1
  46. package/dist/components/flag.min.css +1 -1
  47. package/dist/components/flyout.css +1 -1
  48. package/dist/components/flyout.js +2 -2
  49. package/dist/components/flyout.min.css +1 -1
  50. package/dist/components/flyout.min.js +2 -2
  51. package/dist/components/form.css +1 -1
  52. package/dist/components/form.js +1 -1
  53. package/dist/components/form.min.css +1 -1
  54. package/dist/components/form.min.js +1 -1
  55. package/dist/components/grid.css +1 -1
  56. package/dist/components/grid.min.css +1 -1
  57. package/dist/components/header.css +1 -1
  58. package/dist/components/header.min.css +1 -1
  59. package/dist/components/icon.css +1 -1
  60. package/dist/components/icon.min.css +1 -1
  61. package/dist/components/image.css +1 -1
  62. package/dist/components/image.min.css +1 -1
  63. package/dist/components/input.css +1 -1
  64. package/dist/components/input.min.css +1 -1
  65. package/dist/components/item.css +1 -1
  66. package/dist/components/item.min.css +1 -1
  67. package/dist/components/label.css +1 -1
  68. package/dist/components/label.min.css +1 -1
  69. package/dist/components/list.css +1 -1
  70. package/dist/components/list.min.css +1 -1
  71. package/dist/components/loader.css +1 -1
  72. package/dist/components/loader.min.css +1 -1
  73. package/dist/components/menu.css +1 -1
  74. package/dist/components/menu.min.css +1 -1
  75. package/dist/components/message.css +1 -1
  76. package/dist/components/message.min.css +1 -1
  77. package/dist/components/modal.css +1 -1
  78. package/dist/components/modal.js +2 -2
  79. package/dist/components/modal.min.css +1 -1
  80. package/dist/components/modal.min.js +2 -2
  81. package/dist/components/nag.css +1 -1
  82. package/dist/components/nag.js +1 -1
  83. package/dist/components/nag.min.css +1 -1
  84. package/dist/components/nag.min.js +1 -1
  85. package/dist/components/placeholder.css +1 -1
  86. package/dist/components/placeholder.min.css +1 -1
  87. package/dist/components/popup.css +1 -1
  88. package/dist/components/popup.js +2 -2
  89. package/dist/components/popup.min.css +1 -1
  90. package/dist/components/popup.min.js +2 -2
  91. package/dist/components/progress.css +1 -1
  92. package/dist/components/progress.js +1 -1
  93. package/dist/components/progress.min.css +1 -1
  94. package/dist/components/progress.min.js +1 -1
  95. package/dist/components/rail.css +1 -1
  96. package/dist/components/rail.min.css +1 -1
  97. package/dist/components/rating.css +1 -1
  98. package/dist/components/rating.js +2 -2
  99. package/dist/components/rating.min.css +1 -1
  100. package/dist/components/rating.min.js +2 -2
  101. package/dist/components/reset.css +1 -1
  102. package/dist/components/reset.min.css +1 -1
  103. package/dist/components/reveal.css +1 -1
  104. package/dist/components/reveal.min.css +1 -1
  105. package/dist/components/search.css +1 -1
  106. package/dist/components/search.js +2 -2
  107. package/dist/components/search.min.css +1 -1
  108. package/dist/components/search.min.js +2 -2
  109. package/dist/components/segment.css +1 -1
  110. package/dist/components/segment.min.css +1 -1
  111. package/dist/components/shape.css +1 -1
  112. package/dist/components/shape.js +1 -1
  113. package/dist/components/shape.min.css +1 -1
  114. package/dist/components/shape.min.js +1 -1
  115. package/dist/components/sidebar.css +1 -1
  116. package/dist/components/sidebar.js +1 -1
  117. package/dist/components/sidebar.min.css +1 -1
  118. package/dist/components/sidebar.min.js +1 -1
  119. package/dist/components/site.css +1 -1
  120. package/dist/components/site.js +1 -1
  121. package/dist/components/site.min.css +1 -1
  122. package/dist/components/site.min.js +1 -1
  123. package/dist/components/slider.css +1 -1
  124. package/dist/components/slider.js +1 -1
  125. package/dist/components/slider.min.css +1 -1
  126. package/dist/components/slider.min.js +1 -1
  127. package/dist/components/state.js +1 -1
  128. package/dist/components/state.min.js +1 -1
  129. package/dist/components/statistic.css +1 -1
  130. package/dist/components/statistic.min.css +1 -1
  131. package/dist/components/step.css +1 -1
  132. package/dist/components/step.min.css +1 -1
  133. package/dist/components/sticky.css +1 -1
  134. package/dist/components/sticky.js +1 -1
  135. package/dist/components/sticky.min.css +1 -1
  136. package/dist/components/sticky.min.js +1 -1
  137. package/dist/components/tab.css +1 -1
  138. package/dist/components/tab.js +1 -1
  139. package/dist/components/tab.min.css +1 -1
  140. package/dist/components/tab.min.js +1 -1
  141. package/dist/components/table.css +1 -1
  142. package/dist/components/table.min.css +1 -1
  143. package/dist/components/text.css +1 -1
  144. package/dist/components/text.min.css +1 -1
  145. package/dist/components/toast.css +1 -1
  146. package/dist/components/toast.js +2 -2
  147. package/dist/components/toast.min.css +1 -1
  148. package/dist/components/toast.min.js +2 -2
  149. package/dist/components/transition.css +1 -1
  150. package/dist/components/transition.js +1 -1
  151. package/dist/components/transition.min.css +1 -1
  152. package/dist/components/transition.min.js +1 -1
  153. package/dist/components/visibility.js +1 -1
  154. package/dist/components/visibility.min.js +1 -1
  155. package/dist/semantic.css +59 -57
  156. package/dist/semantic.js +35 -35
  157. package/dist/semantic.min.css +2 -2
  158. package/dist/semantic.min.js +2 -2
  159. package/package.json +1 -1
  160. package/src/definitions/modules/dropdown.js +2 -2
  161. package/src/definitions/modules/dropdown.less +11 -5
  162. package/src/definitions/modules/embed.js +1 -1
  163. package/src/definitions/modules/flyout.js +1 -1
  164. package/src/definitions/modules/modal.js +1 -1
  165. package/src/definitions/modules/popup.js +1 -1
  166. package/src/definitions/modules/rating.js +1 -1
  167. package/src/definitions/modules/search.js +1 -1
  168. package/src/definitions/modules/toast.js +1 -1
  169. package/src/themes/default/modules/dropdown.variables +1 -0
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.8+62e258f
2
+ * # Fomantic UI - 2.10.0-beta.9+45ac3fe
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -8,4 +8,4 @@
8
8
  * https://opensource.org/licenses/MIT
9
9
  *
10
10
  */
11
- !function(W,U,Z){"use strict";function _(e){return"function"==typeof e&&"number"!=typeof e.nodeType}U=void 0!==U&&U.Math===Math?U:globalThis,W.fn.flyout=function(D){let e=W(this),N=W(U),O=W(Z);W("html");let B=W("head"),L=W("body"),z=Date.now(),R=[],q=D,I="string"==typeof q,j=[].slice.call(arguments,1),K=function(e,t){let n;return 0<=[U,Z].indexOf(e)?n=L:0===(n=W(t.document).find(e)).length&&(n=t.frameElement?K(e,t.parent):L),n},V;return e.each(function(){let l=W.isPlainObject(D)?W.extend(!0,{},W.fn.flyout.settings,D):W.extend({},W.fn.flyout.settings),o=l.selector,r=l.className;var e=l.namespace;let c=l.fields,t=l.regExp,a=l.error,i="."+e,n="module-"+e,u=W(this),s=K(l.context,U),d=u.find(o.close),f,h,g=u.children(o.flyout),p=s.children(o.pusher),m,b=u.hasClass("flyout"),v=this,y=b?u.data(n):void 0,k=!1,x=s[0]===L[0],S="",A="",w=!1,C=!1,T,F,H,P=!1,M,E;E={initialize:function(){if(E.debug("Initializing flyout",D),E.create.id(),b||(E.create.flyout(),_(l.onHidden)||(l.onHidden=function(){E.destroy(),u.remove()}),l.autoShow||(l.autoShow=!0)),u.addClass(l.class),""!==l.title&&u.find(o.header).html(E.helpers.escape(l.title,l)).addClass(l.classTitle),""!==l.content&&u.find(o.content).html(E.helpers.escape(l.content,l)).addClass(l.classContent),E.has.configActions()){let s=u.find(o.actions).addClass(l.classActions);0===s.length?s=W("<div/>",{class:r.actions+" "+(l.classActions||"")}).appendTo(u):s.empty(),l.actions.forEach(function(e){var t=e[c.icon]?"<i "+(e[c.text]?'aria-hidden="true"':"")+' class="'+E.helpers.escape(e[c.icon])+' icon"></i>':"",n=E.helpers.escape(e[c.text]||"",l),i=E.helpers.escape(e[c.class]||"");let o=e[c.click]&&_(e[c.click])?e[c.click]:function(){};s.append(W("<button/>",{html:t+n,"aria-label":(e[c.text]||e[c.icon]||"").replace(/<[^>]+(>|$)/g,""),class:r.button+" "+i,on:{click:function(){!1!==o.call(v,u)&&E.hide()}}}))})}l.delaySetup?requestAnimationFrame(E.setup.layout):E.setup.layout(),requestAnimationFrame(function(){E.setup.cache()}),"left"!==E.get.direction()&&"right"!==E.get.direction()||(E.setup.heights(),E.bind.resize()),E.bind.events(),E.observeChanges(),E.instantiate(),l.autoShow&&E.show()},instantiate:function(){E.verbose("Storing instance of module",E),y=E,u.data(n,y)},create:{flyout:function(){var e;E.verbose("Programmatically create flyout",s),u=W("<div/>",{class:r.flyout,role:"dialog","aria-modal":l.dimPage}),l.closeIcon&&(d=W("<i/>",{class:r.close,role:"button",tabindex:0,"aria-label":l.text.close}),u.append(d)),""!==l.title&&(e="_"+E.get.id()+"title",u.attr("aria-labelledby",e),W("<div/>",{class:r.header,id:e}).appendTo(u)),""!==l.content&&(e="_"+E.get.id()+"desc",u.attr("aria-describedby",e),W("<div/>",{class:r.content,id:e}).appendTo(u)),E.has.configActions()&&W("<div/>",{class:r.actions}).appendTo(u),u.prependTo(s),v=u[0]},id:function(){F=(Math.random().toString(16)+"000000000").slice(2,10),T="."+F,E.verbose("Creating unique id for element",F)}},destroy:function(){H&&H.disconnect(),E.verbose("Destroying previous module for",u),u.off(i).removeData(n),d.off(T),f&&f.off(T),s.off(T),N.off(T),O.off(T)},event:{keyboard:function(e){e.which===l.keys.escape&&(l.closable?(E.debug("Escape key pressed hiding flyout"),E.hide()):E.debug("Escape key pressed, but closable is set to false"),e.preventDefault())},resize:function(){E.setup.heights()},focus:function(){C=!0},click:function(e){C&&Z.activeElement!==e.target&&E.is.visible()&&l.autofocus&&l.dimPage&&0===W(Z.activeElement).closest(o.flyout).length&&requestAnimationFrame(E.set.autofocus),C=!1},clickaway:function(e){var t;l.closable&&(t=0<p.find(e.target).length||p.is(e.target),e=s.is(e.target),t&&(E.verbose("User clicked on dimmed page"),E.hide()),e&&(E.verbose("User clicked on dimmable context (scaled out page)"),E.hide()))},close:function(e){E.hide()},closeKeyUp:function(e){e=e.which;e!==l.keys.enter&&e!==l.keys.space||E.hide()},inputKeyDown:{first:function(e){e.which===l.keys.tab&&e.shiftKey&&(f.last().trigger("focus"),e.preventDefault())},last:function(e){e.which!==l.keys.tab||e.shiftKey||(f.first().trigger("focus"),e.preventDefault())}},approve:function(e){k||!1===l.onApprove.call(E.element,W(this))?E.verbose("Approve callback returned false cancelling close"):(k=!0,E.hide(function(){k=!1}))},deny:function(e){k||!1===l.onDeny.call(E.element,W(this))?E.verbose("Deny callback returned false cancelling close"):(k=!0,E.hide(function(){k=!1}))},touch:function(e){},containScroll:function(e){v.scrollTop<=0&&(v.scrollTop=1),v.scrollTop+v.offsetHeight>=v.scrollHeight&&(v.scrollTop=v.scrollHeight-v.offsetHeight-1)},scroll:function(e){0===W(e.target).closest(o.flyout).length&&e.preventDefault()}},bind:{resize:function(){E.verbose("Adding resize event to window",N),N.on("resize"+T,E.event.resize)},events:function(){E.verbose("Attaching events"),u.on("click"+i,o.close,E.event.close).on("click"+i,o.approve,E.event.approve).on("click"+i,o.deny,E.event.deny),d.on("keyup"+T,E.event.closeKeyUp),N.on("focus"+T,E.event.focus),s.on("click"+T,E.event.click)},clickaway:function(){E.verbose("Adding clickaway events to context",s),s.on("click"+T,E.event.clickaway).on("touchend"+T,E.event.clickaway)},scrollLock:function(){l.scrollLock&&(E.debug("Disabling page scroll"),(w=E.has.scrollbar())&&(E.save.bodyMargin(),E.set.bodyMargin()),s.addClass(r.locked)),E.verbose("Adding events to contain flyout scroll"),O.on("touchmove"+T,E.event.touch),u.on("scroll"+i,E.event.containScroll)}},unbind:{clickaway:function(){E.verbose("Removing clickaway events from context",s),s.off(T)},scrollLock:function(){E.verbose("Removing scroll lock from page"),w&&E.restore.bodyMargin(),s.removeClass(r.locked),O.off(T),u.off("scroll"+i)}},add:{inlineCSS:function(){var e=E.cache.width||u.outerWidth(),t=E.cache.height||u.outerHeight(),n=E.is.rtl(),i=E.get.direction();let o={left:e,right:-e,top:t,bottom:-t},s;n&&(E.verbose("RTL detected, flipping widths"),o.left=-e,o.right=e),s="<style>","left"===i||"right"===i?(E.debug("Adding CSS rules for animation distance",e),s+=" .ui.visible."+i+".flyout ~ .fixed, .ui.visible."+i+".flyout ~ .pusher { transform: translate3d("+o[i]+"px, 0, 0); }"):"top"!==i&&"bottom"!==i||(s+=" .ui.visible."+i+".flyout ~ .fixed, .ui.visible."+i+".flyout ~ .pusher { transform: translate3d(0, "+o[i]+"px, 0); }"),s+="</style>",m=W(s).appendTo(B),E.debug("Adding sizing css to head",m)},keyboardShortcuts:function(){E.verbose("Adding keyboard shortcuts"),O.on("keydown"+i,E.event.keyboard)}},observeChanges:function(){"MutationObserver"in U&&((H=new MutationObserver(function(e){function o(n){let i=[];for(let e=0,t=n.length;e<t;e++)Array.prototype.push.apply(i,o(n[e].childNodes)),i.push(n[e]);return i}let i=!1,s=!0;e.every(function(n){if("attributes"===n.type)P&&("disabled"===n.attributeName||0<W(n.target).find(":input").addBack(":input").filter(":visible").length)&&(i=!0);else{let e=W(o(n.addedNodes)).filter("a[href], [tabindex], :input:enabled").filter(":visible"),t=W(o(n.removedNodes)).filter("a[href], [tabindex], :input");(0<e.length||0<t.length)&&(i=!0,(0<e.filter(":input").length||0<t.filter(":input").length)&&(s=!1))}return!i}),i&&E.refreshInputs(s)})).observe(v,{attributeFilter:["class","disabled"],attributes:!0,childList:!0,subtree:!0}),E.debug("Setting up mutation observer",H))},refresh:function(){E.verbose("Refreshing selector cache"),s=K(l.context,U),E.refreshFlyouts(),p=s.children(o.pusher),E.clear.cache()},refreshFlyouts:function(){E.verbose("Refreshing other flyouts"),g=s.children(o.flyout)},refreshInputs:function(e){f&&f.off("keydown"+T),l.dimPage&&(0===(f=u.find("a[href], [tabindex], :input:enabled").filter(":visible").filter(function(){return 0===W(this).closest(".disabled").length})).filter(":input").length?(f=u.add(f),u.attr("tabindex",-1)):u.removeAttr("tabindex"),f.first().on("keydown"+T,E.event.inputKeyDown.first),f.last().on("keydown"+T,E.event.inputKeyDown.last),!e&&l.autofocus&&0===f.filter(":focus").length&&E.set.autofocus())},setup:{cache:function(){E.cache={width:u.outerWidth(),height:u.outerHeight()}},layout:function(){0===s.children(o.pusher).length&&(E.debug("Adding wrapper element for flyout"),E.error(a.pusher),p=W('<div class="pusher" />'),s.children().not(o.omitted).not(g).wrapAll(p),E.refresh()),0!==u.nextAll(o.pusher).length&&u.nextAll(o.pusher)[0]===p[0]||(E.debug("Moved flyout to correct parent element"),E.error(a.movedFlyout,v),u.detach().prependTo(s),E.refresh()),E.is.mobile()&&u.addClass(r.fullscreen),E.clear.cache(),E.set.pushable(),E.set.direction()},heights:function(){E.debug("Setting up heights",u);let e=u.children(o.header),t=u.children(o.content),n=u.children(o.actions);var i=(s.height()||0)-(e.outerHeight()||0)-(n.outerHeight()||0);0<i&&t.css("min-height",String(i)+"px")}},attachEvents:function(e,t){let n=W(e);t=_(E[t])?E[t]:E.toggle,0<n.length?(E.debug("Attaching flyout events to element",e,t),n.on("click"+i,t)):E.error(a.notFound,e)},show:function(e){e=_(e)?e:function(){},E.is.hidden()?!1===l.onShow.call(v)?E.verbose("Show callback returned false cancelling show"):(E.refresh(),E.othersActive()&&(E.debug("Other flyouts currently visible"),l.exclusive?E.hideOthers():k=!1),E.set.dimmerStyles(),E.set.observeAttributes(!1),E.pushPage(function(){e.call(v),l.onVisible.call(v),l.keyboardShortcuts&&E.add.keyboardShortcuts(),E.save.focus(),E.refreshInputs(),requestAnimationFrame(E.set.observeAttributes)}),l.onChange.call(v)):E.debug("Flyout is already visible")},hide:function(e){if(e=_(e)?e:function(){},!1===l.onHide.call(v,W(this)))return E.verbose("Hide callback returned false cancelling hide"),k=!1;(E.is.visible()||E.is.animating())&&(E.debug("Hiding flyout",e),E.refreshFlyouts(),E.set.observeAttributes(!1),E.pullPage(function(){e.call(v),_(l.onHidden)&&l.onHidden.call(v),E.restore.focus()}),l.onChange.call(v))},othersAnimating:function(){return 0<g.not(u).filter("."+r.animating).length},othersVisible:function(){return 0<g.not(u).filter("."+r.visible).length},othersActive:function(){return E.othersVisible()||E.othersAnimating()},hideOthers:function(e){let t=g.not(u).filter("."+r.visible),n=t.length,i=0;e=e||function(){},t.flyout("hide",function(){++i===n&&e()})},toggle:function(){E.verbose("Determining toggled direction"),E.is.hidden()?E.show():E.hide()},pushPage:function(t){var e,n;let i;t=_(t)?t:function(){},E.set.overlay(),l.returnScroll&&(M=(x?N:s).scrollTop()),E.bind.scrollLock(),e=function(){E.bind.clickaway(),E.add.inlineCSS(),E.set.animating(),E.set.visible()},n=function(){E.set.dimmed()},i=function(e){e.target===u[0]&&(u.off("transitionend"+T,i),E.remove.animating(),t.call(v))},u.off("transitionend"+T),u.on("transitionend"+T,i),requestAnimationFrame(e),l.dimPage&&!E.othersVisible()&&requestAnimationFrame(n)},pullPage:function(t){var e;let n;t=_(t)?t:function(){},E.verbose("Removing context push state",E.get.direction()),E.unbind.clickaway(),E.othersActive()||(E.unbind.scrollLock(),l.keyboardShortcuts&&E.remove.keyboardShortcuts()),e=function(){E.set.overlay(),E.set.animating(),l.dimPage&&!E.othersVisible()&&E.set.closing(),E.remove.visible()},n=function(e){e.target===u[0]&&(u.off("transitionend"+T,n),E.remove.animating(),E.remove.closing(),E.remove.overlay(),E.remove.inlineCSS(),l.returnScroll&&E.scrollBack(),l.dimPage&&!E.othersVisible()&&p.removeClass(r.dimmed),t.call(v))},u.off("transitionend"+T),u.on("transitionend"+T,n),requestAnimationFrame(e)},scrollToTop:function(){E.verbose("Scrolling to top of page to avoid animation issues"),u.scrollTop(0),(x?N:s)[0].scrollTo(0,0)},scrollBack:function(){E.verbose("Scrolling back to original page position"),(x?N:s)[0].scrollTo(0,M)},clear:{cache:function(){E.verbose("Clearing cached dimensions"),E.cache={}}},set:{observeAttributes:function(e){P=!1!==e},autofocus:function(){let e=f.filter("[autofocus]"),t=f.filter(":input"),n=(0<e.length?e:0<t.length?t:u).first();n.trigger("focus")},dimmerStyles:function(){l.blurring?p.addClass(r.blurring):p.removeClass(r.blurring)},bodyMargin:function(){let n=E.can.leftBodyScrollbar()?"left":"right";s.css((x?"margin-":"padding-")+n,A+"px"),s.find(o.bodyFixed.replace("right",n)).each(function(){let e=W(this);var t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"calc("+e.css(t)+" + "+A+"px)")})},pushed:function(){s.addClass(r.pushed)},pushable:function(){s.addClass(r.pushable)},dimmed:function(){p.addClass(r.dimmed)},active:function(){u.addClass(r.active)},animating:function(){u.addClass(r.animating)},closing:function(){p.addClass(r.closing)},direction:function(e){e=e||E.get.direction(),u.addClass(r[e])},visible:function(){u.addClass(r.visible)},overlay:function(){u.addClass(r.overlay)}},remove:{inlineCSS:function(){E.debug("Removing inline css styles",m),m&&0<m.length&&m.remove()},keyboardShortcuts:function(){E.verbose("Removing keyboard shortcuts"),O.off("keydown"+i)},pushed:function(){s.removeClass(r.pushed)},pushable:function(){s.removeClass(r.pushable)},active:function(){u.removeClass(r.active)},animating:function(){u.removeClass(r.animating)},closing:function(){p.removeClass(r.closing)},direction:function(e){e=e||E.get.direction(),u.removeClass(r[e])},visible:function(){u.removeClass(r.visible)},overlay:function(){u.removeClass(r.overlay)}},get:{direction:function(){return u.hasClass(r.top)?r.top:u.hasClass(r.right)?r.right:u.hasClass(r.bottom)?r.bottom:r.left},id:function(){return F},element:function(){return u},settings:function(){return l}},can:{leftBodyScrollbar:function(){return void 0===E.cache.leftBodyScrollbar&&(E.cache.leftBodyScrollbar=E.is.rtl()&&(E.is.iframe&&!E.is.firefox()||E.is.safari())),E.cache.leftBodyScrollbar}},save:{focus:function(){let e=W(Z.activeElement);0<e.closest(u).length||(h=W(Z.activeElement).trigger("blur"))},bodyMargin:function(){S=s.css((x?"margin-":"padding-")+(E.can.leftBodyScrollbar()?"left":"right"));var e=parseInt(S.replace(/[^\d.]/g,""),10),t=x?U.innerWidth-Z.documentElement.clientWidth:s[0].offsetWidth-s[0].clientWidth;A=e+t}},is:{safari:function(){return void 0===E.cache.isSafari&&(E.cache.isSafari=/constructor/i.test(U.HTMLElement)||!!U.ApplePaySession),E.cache.isSafari},firefox:function(){return void 0===E.cache.isFirefox&&(E.cache.isFirefox=!!U.InstallTrigger),E.cache.isFirefox},iframe:function(){return!(self===top)},mobile:function(){let e=navigator.userAgent;return e.match(t.mobile)?(E.verbose("Browser was found to be mobile",e),!0):(E.verbose("Browser is not mobile, using regular transition",e),!1)},hidden:function(){return!E.is.visible()},visible:function(){return u.hasClass(r.visible)},animating:function(){return s.hasClass(r.animating)},rtl:function(){return void 0===E.cache.isRTL&&(E.cache.isRTL="rtl"===u.attr("dir")||"rtl"===u.css("direction")||"rtl"===L.attr("dir")||"rtl"===L.css("direction")||"rtl"===s.attr("dir")||"rtl"===s.css("direction")),E.cache.isRTL}},has:{configActions:function(){return Array.isArray(l.actions)&&0<l.actions.length},scrollbar:function(){return x||"hidden"!==s.css("overflow-y")}},restore:{focus:function(){h&&0<h.length&&l.restoreFocus&&h.trigger("focus")},bodyMargin:function(){let n=E.can.leftBodyScrollbar()?"left":"right";s.css((x?"margin-":"padding-")+n,S),s.find(o.bodyFixed.replace("right",n)).each(function(){let e=W(this);var t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"")})}},helpers:{escape:function(e,t){if(void 0!==t&&t.preserveHTML)return e;const n={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"};return e.replace(/["'<>]|&(?![\d#A-Za-z]{1,12};)/g,e=>n[e])}},setting:function(e,t){if(E.debug("Changing setting",e,t),W.isPlainObject(e))W.extend(!0,l,e);else{if(void 0===t)return l[e];W.isPlainObject(l[e])?W.extend(!0,l[e],t):l[e]=t}},internal:function(e,t){if(W.isPlainObject(e))W.extend(!0,E,e);else{if(void 0===t)return E[e];E[e]=t}},debug:function(){!l.silent&&l.debug&&(l.performance?E.performance.log(arguments):(E.debug=Function.prototype.bind.call(console.info,console,l.name+":"),E.debug.apply(console,arguments)))},verbose:function(){!l.silent&&l.verbose&&l.debug&&(l.performance?E.performance.log(arguments):(E.verbose=Function.prototype.bind.call(console.info,console,l.name+":"),E.verbose.apply(console,arguments)))},error:function(){l.silent||(E.error=Function.prototype.bind.call(console.error,console,l.name+":"),E.error.apply(console,arguments))},performance:{log:function(e){var t,n;l.performance&&(n=(t=Date.now())-(z||t),z=t,R.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:v,"Execution Time":n})),clearTimeout(E.performance.timer),E.performance.timer=setTimeout(function(){E.performance.display()},500)},display:function(){var e=l.name+":";let n=0;z=!1,clearTimeout(E.performance.timer),W.each(R,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",0<R.length&&(console.groupCollapsed(e),console.table?console.table(R):W.each(R,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),R=[]}},invoke:function(i,e,t){let o=y,s,l,n;return e=e||j,t=v||t,"string"==typeof i&&void 0!==o&&(i=i.split(/[ .]/),s=i.length-1,W.each(i,function(e,t){var n=e!==s?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(W.isPlainObject(o[n])&&e!==s)o=o[n];else{if(void 0!==o[n])return l=o[n],!1;{if(!W.isPlainObject(o[t])||e===s)return void 0!==o[t]?l=o[t]:E.error(a.method,i),!1;o=o[t]}}})),_(l)?n=l.apply(t,e):void 0!==l&&(n=l),Array.isArray(V)?V.push(n):void 0!==V?V=[V,n]:void 0!==n&&(V=n),l}},I?(void 0===y&&(_(l.templates[q])&&(l.autoShow=!0,l.className.flyout=l.className.template,l=W.extend(!0,{},l,l.templates[q].apply(E,j)),r=l.className,l.namespace,c=l.fields,a=l.error),E.initialize()),_(l.templates[q])||E.invoke(q)):(void 0!==y&&y.invoke("destroy"),E.initialize(),V=u)}),void 0!==V?V:this},W.flyout=W.fn.flyout,W.fn.flyout.settings={name:"Flyout",namespace:"flyout",silent:!1,debug:!1,verbose:!1,performance:!0,context:"body",exclusive:!1,closable:!0,autofocus:!0,restoreFocus:!0,dimPage:!0,scrollLock:!1,returnScroll:!1,delaySetup:!1,autoShow:!1,keyboardShortcuts:!0,title:"",content:"",class:"",classTitle:"",classContent:"",classActions:"",closeIcon:!1,actions:!1,preserveHTML:!1,fields:{class:"class",text:"text",icon:"icon",click:"click"},onChange:function(){},onShow:function(){},onHide:function(){return!0},onHidden:!1,onVisible:function(){},onApprove:function(){},onDeny:function(){},keys:{space:32,enter:13,escape:27,tab:9},className:{flyout:"ui flyout",close:"close icon",header:"ui header",content:"content",actions:"actions",active:"active",animating:"animating",blurring:"blurring",closing:"closing",dimmed:"dimmed",locked:"locked",pushable:"pushable",pushed:"pushed",right:"right",top:"top",left:"left",bottom:"bottom",visible:"visible",overlay:"overlay",fullscreen:"fullscreen",template:"ui flyout",button:"ui button",ok:"positive",cancel:"negative",prompt:"ui fluid input"},selector:{bodyFixed:"> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.right.flyout, > .ui.fixed.nag, > .ui.fixed.nag > .close",fixed:".fixed",omitted:"script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed",pusher:".pusher",flyout:".ui.flyout",header:".ui.header",content:".content",actions:".actions",close:".close",approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel"},regExp:{mobile:/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g},error:{method:"The method you called is not defined.",pusher:"Had to add pusher element. For optimal performance make sure body content is inside a pusher element",movedFlyout:"Had to move flyout. For optimal performance make sure flyout and pusher are direct children of your body tag",notFound:"There were no elements that matched the specified selector"},text:{ok:"Ok",cancel:"Cancel",close:"Close"}},W.fn.flyout.settings.templates={getArguments:function(e){let t=[].slice.call(e);return W.isPlainObject(t[0])?W.extend({handler:function(){},content:"",title:""},t[0]):(_(t[t.length-1])||t.push(function(){}),{handler:t.pop(),content:t.pop()||"",title:t.pop()||""})},alert:function(){let e=this.get.settings();var t=e.templates.getArguments(arguments);return{title:t.title,content:t.content,actions:[{text:e.text.ok,class:e.className.ok,click:t.handler}]}},confirm:function(){let e=this.get.settings(),t=e.templates.getArguments(arguments);return{title:t.title,content:t.content,actions:[{text:e.text.ok,class:e.className.ok,click:function(){t.handler(!0)}},{text:e.text.cancel,class:e.className.cancel,click:function(){t.handler(!1)}}]}},prompt:function(){let t=this,e=this.get.settings(),n=e.templates.getArguments(arguments);return 0===W(W.parseHTML(n.content)).filter(".ui.input").length&&(n.content+='<p><div class="'+e.className.prompt+'"><input placeholder="'+this.helpers.escape(n.placeholder||"")+'" type="text" value="'+this.helpers.escape(n.defaultValue||"")+'"></div></p>'),{title:n.title,content:n.content,actions:[{text:e.text.ok,class:e.className.ok,click:function(){var e=t.get.settings(),e=t.get.element().find(e.selector.prompt)[0];n.handler(W(e).val())}},{text:e.text.cancel,class:e.className.cancel,click:function(){n.handler(null)}}]}}}}(jQuery,window,document);
11
+ !function(W,U,Z){"use strict";function _(e){return"function"==typeof e&&"number"!=typeof e.nodeType}U=void 0!==U&&U.Math===Math?U:globalThis,W.fn.flyout=function(D){let e=W(this),N=W(U),O=W(Z);W("html");let B=W("head"),L=W("body"),z=Date.now(),R=[],q=D,I="string"==typeof q,j=[].slice.call(arguments,1),K=function(e,t){let n;return 0<=[U,Z].indexOf(e)?n=L:0===(n=W(t.document).find(e)).length&&(n=t.frameElement?K(e,t.parent):L),n},V;return e.each(function(){let l=W.isPlainObject(D)?W.extend(!0,{},W.fn.flyout.settings,D):W.extend({},W.fn.flyout.settings),o=l.selector,r=l.className;var e=l.namespace;let c=l.fields,t=l.regExp,a=l.error,i="."+e,n="module-"+e,u=W(this),s=K(l.context,U),d=u.find(o.close),f,h,g=u.children(o.flyout),p=s.children(o.pusher),m,b=u.hasClass("flyout"),v=this,y=b?u.data(n):void 0,k=!1,x=s[0]===L[0],S="",A="",w=!1,C=!1,T,F,H,P=!1,M,E;E={initialize:function(){if(E.debug("Initializing flyout",D),E.create.id(),b||(E.create.flyout(),_(l.onHidden)||(l.onHidden=function(){E.destroy(),u.remove()}),l.autoShow||(l.autoShow=!0)),u.addClass(l.class),""!==l.title&&u.find(o.header).html(E.helpers.escape(l.title,l)).addClass(l.classTitle),""!==l.content&&u.find(o.content).html(E.helpers.escape(l.content,l)).addClass(l.classContent),E.has.configActions()){let s=u.find(o.actions).addClass(l.classActions);0===s.length?s=W("<div/>",{class:r.actions+" "+(l.classActions||"")}).appendTo(u):s.empty(),l.actions.forEach(function(e){var t=e[c.icon]?"<i "+(e[c.text]?'aria-hidden="true"':"")+' class="'+E.helpers.escape(e[c.icon])+' icon"></i>':"",n=E.helpers.escape(e[c.text]||"",l),i=E.helpers.escape(e[c.class]||"");let o=e[c.click]&&_(e[c.click])?e[c.click]:function(){};s.append(W("<button/>",{html:t+n,"aria-label":(e[c.text]||e[c.icon]||"").replace(/<[^>]+(>|$)/g,""),class:r.button+" "+i,on:{click:function(){!1!==o.call(v,u)&&E.hide()}}}))})}l.delaySetup?requestAnimationFrame(E.setup.layout):E.setup.layout(),requestAnimationFrame(function(){E.setup.cache()}),"left"!==E.get.direction()&&"right"!==E.get.direction()||(E.setup.heights(),E.bind.resize()),E.bind.events(),E.observeChanges(),E.instantiate(),l.autoShow&&E.show()},instantiate:function(){E.verbose("Storing instance of module",E),y=E,u.data(n,y)},create:{flyout:function(){var e;E.verbose("Programmatically create flyout",s),u=W("<div/>",{class:r.flyout,role:"dialog","aria-modal":l.dimPage}),l.closeIcon&&(d=W("<i/>",{class:r.close,role:"button",tabindex:0,"aria-label":l.text.close}),u.append(d)),""!==l.title&&(e="_"+E.get.id()+"title",u.attr("aria-labelledby",e),W("<div/>",{class:r.header,id:e}).appendTo(u)),""!==l.content&&(e="_"+E.get.id()+"desc",u.attr("aria-describedby",e),W("<div/>",{class:r.content,id:e}).appendTo(u)),E.has.configActions()&&W("<div/>",{class:r.actions}).appendTo(u),u.prependTo(s),v=u[0]},id:function(){F=(Math.random().toString(16)+"000000000").slice(2,10),T="."+F,E.verbose("Creating unique id for element",F)}},destroy:function(){H&&H.disconnect(),E.verbose("Destroying previous module for",u),u.off(i).removeData(n),d.off(T),f&&f.off(T),s.off(T),N.off(T),O.off(T)},event:{keyboard:function(e){e.which===l.keys.escape&&(l.closable?(E.debug("Escape key pressed hiding flyout"),E.hide()):E.debug("Escape key pressed, but closable is set to false"),e.preventDefault())},resize:function(){E.setup.heights()},focus:function(){C=!0},click:function(e){C&&Z.activeElement!==e.target&&E.is.visible()&&l.autofocus&&l.dimPage&&0===W(Z.activeElement).closest(o.flyout).length&&requestAnimationFrame(E.set.autofocus),C=!1},clickaway:function(e){var t;l.closable&&(t=0<p.find(e.target).length||p.is(e.target),e=s.is(e.target),t&&(E.verbose("User clicked on dimmed page"),E.hide()),e&&(E.verbose("User clicked on dimmable context (scaled out page)"),E.hide()))},close:function(e){E.hide()},closeKeyUp:function(e){e=e.which;e!==l.keys.enter&&e!==l.keys.space||E.hide()},inputKeyDown:{first:function(e){e.which===l.keys.tab&&e.shiftKey&&(f.last().trigger("focus"),e.preventDefault())},last:function(e){e.which!==l.keys.tab||e.shiftKey||(f.first().trigger("focus"),e.preventDefault())}},approve:function(e){k||!1===l.onApprove.call(E.element,W(this))?E.verbose("Approve callback returned false cancelling close"):(k=!0,E.hide(function(){k=!1}))},deny:function(e){k||!1===l.onDeny.call(E.element,W(this))?E.verbose("Deny callback returned false cancelling close"):(k=!0,E.hide(function(){k=!1}))},touch:function(e){},containScroll:function(e){v.scrollTop<=0&&(v.scrollTop=1),v.scrollTop+v.offsetHeight>=v.scrollHeight&&(v.scrollTop=v.scrollHeight-v.offsetHeight-1)},scroll:function(e){0===W(e.target).closest(o.flyout).length&&e.preventDefault()}},bind:{resize:function(){E.verbose("Adding resize event to window",N),N.on("resize"+T,E.event.resize)},events:function(){E.verbose("Attaching events"),u.on("click"+i,o.close,E.event.close).on("click"+i,o.approve,E.event.approve).on("click"+i,o.deny,E.event.deny),d.on("keyup"+T,E.event.closeKeyUp),N.on("focus"+T,E.event.focus),s.on("click"+T,E.event.click)},clickaway:function(){E.verbose("Adding clickaway events to context",s),s.on("click"+T,E.event.clickaway).on("touchend"+T,E.event.clickaway)},scrollLock:function(){l.scrollLock&&(E.debug("Disabling page scroll"),(w=E.has.scrollbar())&&(E.save.bodyMargin(),E.set.bodyMargin()),s.addClass(r.locked)),E.verbose("Adding events to contain flyout scroll"),O.on("touchmove"+T,E.event.touch),u.on("scroll"+i,E.event.containScroll)}},unbind:{clickaway:function(){E.verbose("Removing clickaway events from context",s),s.off(T)},scrollLock:function(){E.verbose("Removing scroll lock from page"),w&&E.restore.bodyMargin(),s.removeClass(r.locked),O.off(T),u.off("scroll"+i)}},add:{inlineCSS:function(){var e=E.cache.width||u.outerWidth(),t=E.cache.height||u.outerHeight(),n=E.is.rtl(),i=E.get.direction();let o={left:e,right:-e,top:t,bottom:-t},s;n&&(E.verbose("RTL detected, flipping widths"),o.left=-e,o.right=e),s="<style>","left"===i||"right"===i?(E.debug("Adding CSS rules for animation distance",e),s+=" .ui.visible."+i+".flyout ~ .fixed, .ui.visible."+i+".flyout ~ .pusher { transform: translate3d("+o[i]+"px, 0, 0); }"):"top"!==i&&"bottom"!==i||(s+=" .ui.visible."+i+".flyout ~ .fixed, .ui.visible."+i+".flyout ~ .pusher { transform: translate3d(0, "+o[i]+"px, 0); }"),s+="</style>",m=W(s).appendTo(B),E.debug("Adding sizing css to head",m)},keyboardShortcuts:function(){E.verbose("Adding keyboard shortcuts"),O.on("keydown"+i,E.event.keyboard)}},observeChanges:function(){"MutationObserver"in U&&((H=new MutationObserver(function(e){function o(n){let i=[];for(let e=0,t=n.length;e<t;e++)Array.prototype.push.apply(i,o(n[e].childNodes)),i.push(n[e]);return i}let i=!1,s=!0;e.every(function(n){if("attributes"===n.type)P&&("disabled"===n.attributeName||0<W(n.target).find(":input").addBack(":input").filter(":visible").length)&&(i=!0);else{let e=W(o(n.addedNodes)).filter("a[href], [tabindex], :input:enabled").filter(":visible"),t=W(o(n.removedNodes)).filter("a[href], [tabindex], :input");(0<e.length||0<t.length)&&(i=!0,(0<e.filter(":input").length||0<t.filter(":input").length)&&(s=!1))}return!i}),i&&E.refreshInputs(s)})).observe(v,{attributeFilter:["class","disabled"],attributes:!0,childList:!0,subtree:!0}),E.debug("Setting up mutation observer",H))},refresh:function(){E.verbose("Refreshing selector cache"),s=K(l.context,U),E.refreshFlyouts(),p=s.children(o.pusher),E.clear.cache()},refreshFlyouts:function(){E.verbose("Refreshing other flyouts"),g=s.children(o.flyout)},refreshInputs:function(e){f&&f.off("keydown"+T),l.dimPage&&(0===(f=u.find("a[href], [tabindex], :input:enabled").filter(":visible").filter(function(){return 0===W(this).closest(".disabled").length})).filter(":input").length?(f=u.add(f),u.attr("tabindex",-1)):u.removeAttr("tabindex"),f.first().on("keydown"+T,E.event.inputKeyDown.first),f.last().on("keydown"+T,E.event.inputKeyDown.last),!e&&l.autofocus&&0===f.filter(":focus").length&&E.set.autofocus())},setup:{cache:function(){E.cache={width:u.outerWidth(),height:u.outerHeight()}},layout:function(){0===s.children(o.pusher).length&&(E.debug("Adding wrapper element for flyout"),E.error(a.pusher),p=W('<div class="pusher" />'),s.children().not(o.omitted).not(g).wrapAll(p),E.refresh()),0!==u.nextAll(o.pusher).length&&u.nextAll(o.pusher)[0]===p[0]||(E.debug("Moved flyout to correct parent element"),E.error(a.movedFlyout,v),u.detach().prependTo(s),E.refresh()),E.is.mobile()&&u.addClass(r.fullscreen),E.clear.cache(),E.set.pushable(),E.set.direction()},heights:function(){E.debug("Setting up heights",u);let e=u.children(o.header),t=u.children(o.content),n=u.children(o.actions);var i=(s.height()||0)-(e.outerHeight()||0)-(n.outerHeight()||0);0<i&&t.css("min-height",String(i)+"px")}},attachEvents:function(e,t){let n=W(e);t=_(E[t])?E[t]:E.toggle,0<n.length?(E.debug("Attaching flyout events to element",e,t),n.on("click"+i,t)):E.error(a.notFound,e)},show:function(e){e=_(e)?e:function(){},E.is.hidden()?!1===l.onShow.call(v)?E.verbose("Show callback returned false cancelling show"):(E.refresh(),E.othersActive()&&(E.debug("Other flyouts currently visible"),l.exclusive?E.hideOthers():k=!1),E.set.dimmerStyles(),E.set.observeAttributes(!1),E.pushPage(function(){e.call(v),l.onVisible.call(v),l.keyboardShortcuts&&E.add.keyboardShortcuts(),E.save.focus(),E.refreshInputs(),requestAnimationFrame(E.set.observeAttributes)}),l.onChange.call(v)):E.debug("Flyout is already visible")},hide:function(e){if(e=_(e)?e:function(){},!1===l.onHide.call(v,W(this)))return E.verbose("Hide callback returned false cancelling hide"),k=!1;(E.is.visible()||E.is.animating())&&(E.debug("Hiding flyout",e),E.refreshFlyouts(),E.set.observeAttributes(!1),E.pullPage(function(){e.call(v),_(l.onHidden)&&l.onHidden.call(v),E.restore.focus()}),l.onChange.call(v))},othersAnimating:function(){return 0<g.not(u).filter("."+r.animating).length},othersVisible:function(){return 0<g.not(u).filter("."+r.visible).length},othersActive:function(){return E.othersVisible()||E.othersAnimating()},hideOthers:function(e){let t=g.not(u).filter("."+r.visible),n=t.length,i=0;e=e||function(){},t.flyout("hide",function(){++i===n&&e()})},toggle:function(){E.verbose("Determining toggled direction"),E.is.hidden()?E.show():E.hide()},pushPage:function(t){var e,n;let i;t=_(t)?t:function(){},E.set.overlay(),l.returnScroll&&(M=(x?N:s).scrollTop()),E.bind.scrollLock(),e=function(){E.bind.clickaway(),E.add.inlineCSS(),E.set.animating(),E.set.visible()},n=function(){E.set.dimmed()},i=function(e){e.target===u[0]&&(u.off("transitionend"+T,i),E.remove.animating(),t.call(v))},u.off("transitionend"+T),u.on("transitionend"+T,i),requestAnimationFrame(e),l.dimPage&&!E.othersVisible()&&requestAnimationFrame(n)},pullPage:function(t){var e;let n;t=_(t)?t:function(){},E.verbose("Removing context push state",E.get.direction()),E.unbind.clickaway(),E.othersActive()||(E.unbind.scrollLock(),l.keyboardShortcuts&&E.remove.keyboardShortcuts()),e=function(){E.set.overlay(),E.set.animating(),l.dimPage&&!E.othersVisible()&&E.set.closing(),E.remove.visible()},n=function(e){e.target===u[0]&&(u.off("transitionend"+T,n),E.remove.animating(),E.remove.closing(),E.remove.overlay(),E.remove.inlineCSS(),l.returnScroll&&E.scrollBack(),l.dimPage&&!E.othersVisible()&&p.removeClass(r.dimmed),t.call(v))},u.off("transitionend"+T),u.on("transitionend"+T,n),requestAnimationFrame(e)},scrollToTop:function(){E.verbose("Scrolling to top of page to avoid animation issues"),u.scrollTop(0),(x?N:s)[0].scrollTo(0,0)},scrollBack:function(){E.verbose("Scrolling back to original page position"),(x?N:s)[0].scrollTo(0,M)},clear:{cache:function(){E.verbose("Clearing cached dimensions"),E.cache={}}},set:{observeAttributes:function(e){P=!1!==e},autofocus:function(){let e=f.filter("[autofocus]"),t=f.filter(":input"),n=(0<e.length?e:0<t.length?t:u).first();n.trigger("focus")},dimmerStyles:function(){l.blurring?p.addClass(r.blurring):p.removeClass(r.blurring)},bodyMargin:function(){let n=E.can.leftBodyScrollbar()?"left":"right";s.css((x?"margin-":"padding-")+n,A+"px"),s.find(o.bodyFixed.replace("right",n)).each(function(){let e=W(this);var t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"calc("+e.css(t)+" + "+A+"px)")})},pushed:function(){s.addClass(r.pushed)},pushable:function(){s.addClass(r.pushable)},dimmed:function(){p.addClass(r.dimmed)},active:function(){u.addClass(r.active)},animating:function(){u.addClass(r.animating)},closing:function(){p.addClass(r.closing)},direction:function(e){e=e||E.get.direction(),u.addClass(r[e])},visible:function(){u.addClass(r.visible)},overlay:function(){u.addClass(r.overlay)}},remove:{inlineCSS:function(){E.debug("Removing inline css styles",m),m&&0<m.length&&m.remove()},keyboardShortcuts:function(){E.verbose("Removing keyboard shortcuts"),O.off("keydown"+i)},pushed:function(){s.removeClass(r.pushed)},pushable:function(){s.removeClass(r.pushable)},active:function(){u.removeClass(r.active)},animating:function(){u.removeClass(r.animating)},closing:function(){p.removeClass(r.closing)},direction:function(e){e=e||E.get.direction(),u.removeClass(r[e])},visible:function(){u.removeClass(r.visible)},overlay:function(){u.removeClass(r.overlay)}},get:{direction:function(){return u.hasClass(r.top)?r.top:u.hasClass(r.right)?r.right:u.hasClass(r.bottom)?r.bottom:r.left},id:function(){return F},element:function(){return u},settings:function(){return l}},can:{leftBodyScrollbar:function(){return void 0===E.cache.leftBodyScrollbar&&(E.cache.leftBodyScrollbar=E.is.rtl()&&(E.is.iframe&&!E.is.firefox()||E.is.safari())),E.cache.leftBodyScrollbar}},save:{focus:function(){let e=W(Z.activeElement);0<e.closest(u).length||(h=W(Z.activeElement).trigger("blur"))},bodyMargin:function(){S=s.css((x?"margin-":"padding-")+(E.can.leftBodyScrollbar()?"left":"right"));var e=parseInt(S.replace(/[^\d.]/g,""),10),t=x?U.innerWidth-Z.documentElement.clientWidth:s[0].offsetWidth-s[0].clientWidth;A=e+t}},is:{safari:function(){return void 0===E.cache.isSafari&&(E.cache.isSafari=/constructor/i.test(U.HTMLElement)||!!U.ApplePaySession),E.cache.isSafari},firefox:function(){return void 0===E.cache.isFirefox&&(E.cache.isFirefox=!!U.InstallTrigger),E.cache.isFirefox},iframe:function(){return!(self===top)},mobile:function(){let e=navigator.userAgent;return e.match(t.mobile)?(E.verbose("Browser was found to be mobile",e),!0):(E.verbose("Browser is not mobile, using regular transition",e),!1)},hidden:function(){return!E.is.visible()},visible:function(){return u.hasClass(r.visible)},animating:function(){return s.hasClass(r.animating)},rtl:function(){return void 0===E.cache.isRTL&&(E.cache.isRTL="rtl"===u.attr("dir")||"rtl"===u.css("direction")||"rtl"===L.attr("dir")||"rtl"===L.css("direction")||"rtl"===s.attr("dir")||"rtl"===s.css("direction")),E.cache.isRTL}},has:{configActions:function(){return Array.isArray(l.actions)&&0<l.actions.length},scrollbar:function(){return x||"hidden"!==s.css("overflow-y")}},restore:{focus:function(){h&&0<h.length&&l.restoreFocus&&h.trigger("focus")},bodyMargin:function(){let n=E.can.leftBodyScrollbar()?"left":"right";s.css((x?"margin-":"padding-")+n,S),s.find(o.bodyFixed.replace("right",n)).each(function(){let e=W(this);var t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"")})}},helpers:{escape:function(e,t){if(void 0!==t&&t.preserveHTML)return e;const n={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"};return String(e).replace(/["'<>]|&(?![\d#A-Za-z]{1,12};)/g,e=>n[e])}},setting:function(e,t){if(E.debug("Changing setting",e,t),W.isPlainObject(e))W.extend(!0,l,e);else{if(void 0===t)return l[e];W.isPlainObject(l[e])?W.extend(!0,l[e],t):l[e]=t}},internal:function(e,t){if(W.isPlainObject(e))W.extend(!0,E,e);else{if(void 0===t)return E[e];E[e]=t}},debug:function(){!l.silent&&l.debug&&(l.performance?E.performance.log(arguments):(E.debug=Function.prototype.bind.call(console.info,console,l.name+":"),E.debug.apply(console,arguments)))},verbose:function(){!l.silent&&l.verbose&&l.debug&&(l.performance?E.performance.log(arguments):(E.verbose=Function.prototype.bind.call(console.info,console,l.name+":"),E.verbose.apply(console,arguments)))},error:function(){l.silent||(E.error=Function.prototype.bind.call(console.error,console,l.name+":"),E.error.apply(console,arguments))},performance:{log:function(e){var t,n;l.performance&&(n=(t=Date.now())-(z||t),z=t,R.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:v,"Execution Time":n})),clearTimeout(E.performance.timer),E.performance.timer=setTimeout(function(){E.performance.display()},500)},display:function(){var e=l.name+":";let n=0;z=!1,clearTimeout(E.performance.timer),W.each(R,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",0<R.length&&(console.groupCollapsed(e),console.table?console.table(R):W.each(R,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),R=[]}},invoke:function(i,e,t){let o=y,s,l,n;return e=e||j,t=v||t,"string"==typeof i&&void 0!==o&&(i=i.split(/[ .]/),s=i.length-1,W.each(i,function(e,t){var n=e!==s?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(W.isPlainObject(o[n])&&e!==s)o=o[n];else{if(void 0!==o[n])return l=o[n],!1;{if(!W.isPlainObject(o[t])||e===s)return void 0!==o[t]?l=o[t]:E.error(a.method,i),!1;o=o[t]}}})),_(l)?n=l.apply(t,e):void 0!==l&&(n=l),Array.isArray(V)?V.push(n):void 0!==V?V=[V,n]:void 0!==n&&(V=n),l}},I?(void 0===y&&(_(l.templates[q])&&(l.autoShow=!0,l.className.flyout=l.className.template,l=W.extend(!0,{},l,l.templates[q].apply(E,j)),r=l.className,l.namespace,c=l.fields,a=l.error),E.initialize()),_(l.templates[q])||E.invoke(q)):(void 0!==y&&y.invoke("destroy"),E.initialize(),V=u)}),void 0!==V?V:this},W.flyout=W.fn.flyout,W.fn.flyout.settings={name:"Flyout",namespace:"flyout",silent:!1,debug:!1,verbose:!1,performance:!0,context:"body",exclusive:!1,closable:!0,autofocus:!0,restoreFocus:!0,dimPage:!0,scrollLock:!1,returnScroll:!1,delaySetup:!1,autoShow:!1,keyboardShortcuts:!0,title:"",content:"",class:"",classTitle:"",classContent:"",classActions:"",closeIcon:!1,actions:!1,preserveHTML:!1,fields:{class:"class",text:"text",icon:"icon",click:"click"},onChange:function(){},onShow:function(){},onHide:function(){return!0},onHidden:!1,onVisible:function(){},onApprove:function(){},onDeny:function(){},keys:{space:32,enter:13,escape:27,tab:9},className:{flyout:"ui flyout",close:"close icon",header:"ui header",content:"content",actions:"actions",active:"active",animating:"animating",blurring:"blurring",closing:"closing",dimmed:"dimmed",locked:"locked",pushable:"pushable",pushed:"pushed",right:"right",top:"top",left:"left",bottom:"bottom",visible:"visible",overlay:"overlay",fullscreen:"fullscreen",template:"ui flyout",button:"ui button",ok:"positive",cancel:"negative",prompt:"ui fluid input"},selector:{bodyFixed:"> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.right.flyout, > .ui.fixed.nag, > .ui.fixed.nag > .close",fixed:".fixed",omitted:"script, link, style, .ui.modal, .ui.dimmer, .ui.nag, .ui.fixed",pusher:".pusher",flyout:".ui.flyout",header:".ui.header",content:".content",actions:".actions",close:".close",approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel"},regExp:{mobile:/Mobile|iP(hone|od|ad)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|web)OS|Fennec|Minimo|Opera M(obi|ini)|Blazer|Dolfin|Dolphin|Skyfire|Zune/g},error:{method:"The method you called is not defined.",pusher:"Had to add pusher element. For optimal performance make sure body content is inside a pusher element",movedFlyout:"Had to move flyout. For optimal performance make sure flyout and pusher are direct children of your body tag",notFound:"There were no elements that matched the specified selector"},text:{ok:"Ok",cancel:"Cancel",close:"Close"}},W.fn.flyout.settings.templates={getArguments:function(e){let t=[].slice.call(e);return W.isPlainObject(t[0])?W.extend({handler:function(){},content:"",title:""},t[0]):(_(t[t.length-1])||t.push(function(){}),{handler:t.pop(),content:t.pop()||"",title:t.pop()||""})},alert:function(){let e=this.get.settings();var t=e.templates.getArguments(arguments);return{title:t.title,content:t.content,actions:[{text:e.text.ok,class:e.className.ok,click:t.handler}]}},confirm:function(){let e=this.get.settings(),t=e.templates.getArguments(arguments);return{title:t.title,content:t.content,actions:[{text:e.text.ok,class:e.className.ok,click:function(){t.handler(!0)}},{text:e.text.cancel,class:e.className.cancel,click:function(){t.handler(!1)}}]}},prompt:function(){let t=this,e=this.get.settings(),n=e.templates.getArguments(arguments);return 0===W(W.parseHTML(n.content)).filter(".ui.input").length&&(n.content+='<p><div class="'+e.className.prompt+'"><input placeholder="'+this.helpers.escape(n.placeholder||"")+'" type="text" value="'+this.helpers.escape(n.defaultValue||"")+'"></div></p>'),{title:n.title,content:n.content,actions:[{text:e.text.ok,class:e.className.ok,click:function(){var e=t.get.settings(),e=t.get.element().find(e.selector.prompt)[0];n.handler(W(e).val())}},{text:e.text.cancel,class:e.className.cancel,click:function(){n.handler(null)}}]}}}}(jQuery,window,document);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Form
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Form
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Form Validation
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Form Validation
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Form
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Form
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.8+62e258f
2
+ * # Fomantic UI - 2.10.0-beta.9+45ac3fe
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Grid
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Grid
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Grid
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Grid
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Header
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Header
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Header
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Header
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Icon
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Icon
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Icon
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Icon
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Image
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Image
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Image
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Image
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Input
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Input
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Input
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Input
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Item
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Item
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Item
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Item
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Label
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Label
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Label
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Label
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - List
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - List
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - List
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - List
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Loader
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Loader
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Loader
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Loader
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Menu
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Menu
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Menu
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Menu
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Message
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Message
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Message
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Message
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Modal
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Modal
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Modal
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Modal
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -885,7 +885,7 @@
885
885
  '>': '&gt;',
886
886
  };
887
887
 
888
- return string.replace(badChars, (chr) => escape[chr]);
888
+ return String(string).replace(badChars, (chr) => escape[chr]);
889
889
  },
890
890
  },
891
891
  can: {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Modal
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Modal
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.8+62e258f
2
+ * # Fomantic UI - 2.10.0-beta.9+45ac3fe
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -8,4 +8,4 @@
8
8
  * https://opensource.org/licenses/MIT
9
9
  *
10
10
  */
11
- !function(V,X,_){"use strict";function Q(e){return"function"==typeof e&&"number"!=typeof e.nodeType}X=void 0!==X&&X.Math===Math?X:globalThis,V.fn.modal=function(L){let e=V(this),z=V(X),q=V(_),I=V("body"),B=Date.now(),W=[],j=L,P="string"==typeof j,K=[].slice.call(arguments,1),R=function(e,t){let n;return 0<=[X,_].indexOf(e)?n=I:0===(n=V(t.document).find(e)).length&&(n=t.frameElement?R(e,t.parent):I),n},U;return e.each(function(){let r=V.isPlainObject(L)?V.extend(!0,{},V.fn.modal.settings,L):V.extend({},V.fn.modal.settings),a=r.selector,c=r.className;var e=r.namespace;let l=r.fields,d=r.error,i="."+e,t="module-"+e,u=V(this),o=R(r.context,X),s=o[0]===I[0],n=u.find(a.closeIcon),f,m,h,g,p,v,b=u.hasClass("modal"),y=this,k=b?u.data(t):void 0,x=!1,w,C,S="",M="",A=!1,D=!1,T=!1,H,F,N,O=!1,E;E={initialize:function(){if(E.create.id(),b||(E.create.modal(),Q(r.onHidden)||(r.onHidden=function(){E.destroy(),u.remove()})),u.addClass(r.class),""!==r.title&&u.find(a.title).html(E.helpers.escape(r.title,r)).addClass(r.classTitle),""!==r.content&&u.find(a.content).html(E.helpers.escape(r.content,r)).addClass(r.classContent),E.has.configActions()){let s=u.find(a.actions).addClass(r.classActions);0===s.length?s=V("<div/>",{class:c.actions+" "+(r.classActions||"")}).appendTo(u):s.empty(),r.actions.forEach(function(e){var t=e[l.icon]?"<i "+(e[l.text]?'aria-hidden="true"':"")+' class="'+E.helpers.escape(e[l.icon])+' icon"></i>':"",n=E.helpers.escape(e[l.text]||"",r),i=E.helpers.escape(e[l.class]||"");let o=e[l.click]&&Q(e[l.click])?e[l.click]:function(){};s.append(V("<button/>",{html:t+n,"aria-label":(e[l.text]||e[l.icon]||"").replace(/<[^>]+(>|$)/g,""),class:c.button+" "+i,on:{click:function(){let e=V(this);e.is(a.approve)||e.is(a.deny)||!1===o.call(y,u)||E.hide()}}}))})}E.cache={},E.verbose("Initializing dimmer",o),E.create.dimmer(),r.allowMultiple&&E.create.innerDimmer(),r.centered||u.addClass("top aligned"),E.refreshModals(),E.bind.events(),E.observeChanges(),E.instantiate(),r.autoShow&&E.show()},instantiate:function(){E.verbose("Storing instance of modal"),k=E,u.data(t,k)},create:{modal:function(){var e;u=V("<div/>",{class:c.modal,role:"dialog","aria-modal":!0}),r.closeIcon&&(n=V("<i/>",{class:c.close,role:"button",tabindex:0,"aria-label":r.text.close}),u.append(n)),""!==r.title&&(e="_"+E.get.id()+"title",u.attr("aria-labelledby",e),V("<div/>",{class:c.title,id:e}).appendTo(u)),""!==r.content&&(e="_"+E.get.id()+"desc",u.attr("aria-describedby",e),V("<div/>",{class:c.content,id:e}).appendTo(u)),E.has.configActions()&&V("<div/>",{class:c.actions}).appendTo(u),o.append(u),y=u[0]},dimmer:function(){var e={debug:r.debug,dimmerName:"modals"},e=V.extend(!0,e,r.dimmerSettings);void 0===V.fn.dimmer?E.error(d.dimmer):(E.debug("Creating dimmer"),p=o.dimmer(e),A=E.is.scrolling(),r.detachable?(E.verbose("Modal is detachable, moving content into dimmer"),p.dimmer("add content",u)):E.set.undetached(),v=p.dimmer("get dimmer"))},id:function(){F=(Math.random().toString(16)+"000000000").slice(2,10),H="."+F,E.verbose("Creating unique id for element",F)},innerDimmer:function(){0===u.find(a.dimmer).length&&V("<div/>",{class:c.innerDimmer}).prependTo(u)}},destroy:function(){N&&N.disconnect(),E.verbose("Destroying previous modal"),u.removeData(t).off(i),z.off(H),o.off(H),v.off(H),n.off(H),f&&f.off(H),o.dimmer("destroy")},observeChanges:function(){"MutationObserver"in X&&((N=new MutationObserver(function(e){function o(n){let i=[];for(let e=0,t=n.length;e<t;e++)Array.prototype.push.apply(i,o(n[e].childNodes)),i.push(n[e]);return i}let i=!1,s=!1,a=!0;e.every(function(n){if("attributes"===n.type)O&&("disabled"===n.attributeName||0<V(n.target).find(":input").addBack(":input").filter(":visible").length)&&(s=!0);else{i=!0;let e=V(o(n.addedNodes)).filter("a[href], [tabindex], :input:enabled").filter(":visible"),t=V(o(n.removedNodes)).filter("a[href], [tabindex], :input");(0<e.length||0<t.length)&&(s=!0,(0<e.filter(":input").length||0<t.filter(":input").length)&&(a=!1))}return!s}),i&&r.observeChanges&&(E.debug("DOM tree modified, refreshing"),E.refresh()),s&&E.refreshInputs(a)})).observe(y,{attributeFilter:["class","disabled"],attributes:!0,childList:!0,subtree:!0}),E.debug("Setting up mutation observer",N))},refresh:function(){E.remove.scrolling(),E.cacheSizes(),E.can.useFlex()||E.set.modalOffset(),E.set.screenHeight(),E.set.type()},refreshModals:function(){h=u.siblings(a.modal),m=h.add(u)},refreshInputs:function(e){f&&f.off("keydown"+H),0===(f=u.find("a[href], [tabindex], :input:enabled").filter(":visible").filter(function(){return 0===V(this).closest(".disabled").length})).filter(":input").length?(f=u.add(f),u.attr("tabindex",-1)):u.removeAttr("tabindex"),f.first().on("keydown"+H,E.event.inputKeyDown.first),f.last().on("keydown"+H,E.event.inputKeyDown.last),!e&&r.autofocus&&0===f.filter(":focus").length&&E.set.autofocus()},attachEvents:function(e,t){let n=V(e);t=Q(E[t])?E[t]:E.toggle,0<n.length?(E.debug("Attaching modal events to element",e,t),n.off(i).on("click"+i,t)):E.error(d.notFound,e)},bind:{events:function(){E.verbose("Attaching events"),u.on("click"+i,a.close,E.event.close).on("click"+i,a.approve,E.event.approve).on("click"+i,a.deny,E.event.deny),n.on("keyup"+H,E.event.closeKeyUp),z.on("resize"+H,E.event.resize).on("focus"+H,E.event.focus),o.on("click"+H,E.event.click)},scrollLock:function(){p[0].addEventListener("touchmove",E.event.preventScroll,{passive:!1})}},unbind:{scrollLock:function(){p[0].removeEventListener("touchmove",E.event.preventScroll,{passive:!1})}},get:{id:function(){return F},element:function(){return u},settings:function(){return r}},event:{approve:function(){x||!1===r.onApprove.call(y,V(this))?E.verbose("Approve callback returned false cancelling hide"):(x=!0,E.hide(function(){x=!1}))},preventScroll:function(e){-1!==e.target.className.indexOf("dimmer")&&e.preventDefault()},deny:function(){x||!1===r.onDeny.call(y,V(this))?E.verbose("Deny callback returned false cancelling hide"):(x=!0,E.hide(function(){x=!1}))},close:function(){E.hide()},closeKeyUp:function(e){e=e.which;e!==r.keys.enter&&e!==r.keys.space||!u.hasClass(c.front)||E.hide()},inputKeyDown:{first:function(e){e.which===r.keys.tab&&e.shiftKey&&(f.last().trigger("focus"),e.preventDefault())},last:function(e){e.which!==r.keys.tab||e.shiftKey||(f.first().trigger("focus"),e.preventDefault())}},mousedown:function(e){let t=V(e.target);var n=E.is.rtl();(w=0<t.closest(a.modal).length)&&E.verbose("Mouse down event registered inside the modal"),(C=E.is.scrolling()&&(!n&&z.outerWidth()-r.scrollbarWidth<=e.clientX||n&&r.scrollbarWidth>=e.clientX))&&E.verbose("Mouse down event registered inside the scrollbar")},mouseup:function(t){if(r.closable)if(w)E.debug("Dimmer clicked but mouse down was initially registered inside the modal");else if(C)E.debug("Dimmer clicked but mouse down was initially registered inside the scrollbar");else{let e=V(t.target);var n=0<e.closest(a.modal).length,t=V.contains(_.documentElement,t.target);if(!n&&t&&E.is.active()&&u.hasClass(c.front)){if(E.debug("Dimmer clicked, hiding all modals"),r.allowMultiple){if(!E.hideAll())return}else if(!E.hide())return;E.remove.clickaway()}}else E.verbose("Dimmer clicked but closable setting is disabled")},debounce:function(e,t){clearTimeout(E.timer),E.timer=setTimeout(function(){e()},t)},keyboard:function(e){e.which===r.keys.escape&&(r.closable?(E.debug("Escape key pressed hiding modal"),u.hasClass(c.front)&&E.hide()):E.debug("Escape key pressed, but closable is set to false"),e.preventDefault())},resize:function(){p.dimmer("is active")&&(E.is.animating()||E.is.active())&&requestAnimationFrame(E.refresh)},focus:function(){T=!0},click:function(e){T&&_.activeElement!==e.target&&p.dimmer("is active")&&E.is.active()&&r.autofocus&&0===V(_.activeElement).closest(a.modal).length&&requestAnimationFrame(E.set.autofocus),T=!1}},toggle:function(){E.is.active()||E.is.animating()?E.hide():E.show()},show:function(e){e=Q(e)?e:function(){},E.refreshModals(),E.set.dimmerSettings(),E.set.dimmerStyles(),E.showModal(e)},hide:function(e){return e=Q(e)?e:function(){},E.refreshModals(),E.hideModal(e)},showModal:function(e){e=Q(e)?e:function(){},E.is.animating()||!E.is.active()?!1===r.onShow.call(y)?E.verbose("Show callback returned false cancelling show"):(D=E.has.scrollbar(),E.showDimmer(),E.cacheSizes(),D&&E.set.bodyMargin(),E.can.useFlex()?E.remove.legacy():(E.set.legacy(),E.set.modalOffset(),E.debug("Using non-flex legacy modal positioning.")),E.set.screenHeight(),E.set.type(),E.set.clickaway(),!r.allowMultiple&&E.others.active()?E.hideOthers(E.showModal):(x=!1,r.allowMultiple&&(E.others.active()&&h.filter("."+c.active).find(a.dimmer).removeClass("out").addClass("transition fade in active"),r.detachable&&u.detach().appendTo(v)),r.transition&&void 0!==V.fn.transition?(E.debug("Showing modal with css animations"),E.set.observeAttributes(!1),u.transition({debug:r.debug,verbose:r.verbose,silent:r.silent,animation:(r.transition.showMethod||r.transition)+" in",queue:r.queue,duration:r.transition.showDuration||r.duration,useFailSafe:!0,onComplete:function(){r.onVisible.apply(y),r.keyboardShortcuts&&E.add.keyboardShortcuts(),E.save.focus(),E.set.active(),E.refreshInputs(),requestAnimationFrame(E.set.observeAttributes),e()}})):E.error(d.noTransition))):E.debug("Modal is already visible")},hideModal:function(e,t,n){let i=h.filter("."+c.active).last();if(e=Q(e)?e:function(){},!1===r.onHide.call(y,V(this)))return E.verbose("Hide callback returned false cancelling hide"),x=!1;(E.is.animating()||E.is.active())&&(E.debug("Hiding modal"),r.transition&&void 0!==V.fn.transition?(E.remove.active(),E.set.observeAttributes(!1),u.transition({debug:r.debug,verbose:r.verbose,silent:r.silent,animation:(r.transition.hideMethod||r.transition)+" out",queue:r.queue,duration:r.transition.hideDuration||r.duration,useFailSafe:!0,onStart:function(){E.others.active()||E.others.animating()||t?r.allowMultiple&&(n?m:i).find(a.dimmer).removeClass("in").addClass("out"):E.hideDimmer(),r.keyboardShortcuts&&!E.others.active()&&E.remove.keyboardShortcuts()},onComplete:function(){E.unbind.scrollLock(),E.remove.active(),r.allowMultiple&&(i.addClass(c.front),u.removeClass(c.front),(n?m:i).find(a.dimmer).removeClass("active")),Q(r.onHidden)&&r.onHidden.call(y),E.remove.dimmerStyles(),E.restore.focus(),e()}})):E.error(d.noTransition))},showDimmer:function(){p.dimmer("is animating")||!p.dimmer("is active")?(D&&(s||v.css("top",p.scrollTop()),E.save.bodyMargin()),E.debug("Showing dimmer"),p.dimmer("show")):E.debug("Dimmer already visible")},hideDimmer:function(){p.dimmer("is animating")||p.dimmer("is active")?(E.unbind.scrollLock(),p.dimmer("hide",function(){D&&E.restore.bodyMargin(),E.remove.clickaway(),E.remove.screenHeight()})):E.debug("Dimmer is not visible cannot hide")},hideAll:function(i){let e=m.filter("."+c.active+", ."+c.animating);if(i=Q(i)?i:function(){},0<e.length){E.debug("Hiding all visible modals");let n=!0;return V(e.get().reverse()).each(function(e,t){n=n&&V(t).modal("hide modal",i,!1,!0)}),n&&E.hideDimmer(),n}},hideOthers:function(e){let t=h.filter("."+c.active+", ."+c.animating);e=Q(e)?e:function(){},0<t.length&&(E.debug("Hiding other modals",h),t.modal("hide modal",e,!0))},others:{active:function(){return 0<h.filter("."+c.active).length},animating:function(){return 0<h.filter("."+c.animating).length}},add:{keyboardShortcuts:function(){E.verbose("Adding keyboard shortcuts"),q.on("keydown"+i,E.event.keyboard)}},save:{focus:function(){let e=V(_.activeElement);0<e.closest(u).length||(g=V(_.activeElement).trigger("blur"))},bodyMargin:function(){S=o.css((s?"margin-":"padding-")+(E.can.leftBodyScrollbar()?"left":"right"));var e=parseInt(S.replace(/[^\d.]/g,""),10),t=s?X.innerWidth-_.documentElement.clientWidth:o[0].offsetWidth-o[0].clientWidth;M=e+t}},restore:{focus:function(){g&&0<g.length&&r.restoreFocus&&g.trigger("focus")},bodyMargin:function(){let n=E.can.leftBodyScrollbar()?"left":"right";o.css((s?"margin-":"padding-")+n,S),o.find(a.bodyFixed.replace("right",n)).each(function(){let e=V(this);var t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"")})}},remove:{active:function(){u.removeClass(c.active)},legacy:function(){u.removeClass(c.legacy)},clickaway:function(){r.detachable||u.off("mousedown"+H),v.off("mousedown"+H),v.off("mouseup"+H)},dimmerStyles:function(){v.removeClass(c.inverted),p.removeClass(c.blurring)},bodyStyle:function(){""===o.attr("style")&&(E.verbose("Removing style attribute"),o.removeAttr("style"))},screenHeight:function(){E.debug("Removing page height"),o.css("height",""),E.remove.bodyStyle()},keyboardShortcuts:function(){E.verbose("Removing keyboard shortcuts"),q.off("keydown"+i)},scrolling:function(){A||p.removeClass(c.scrolling),u.removeClass(c.scrolling)}},cacheSizes:function(){u.addClass(c.loading);var e=u.prop("scrollHeight"),t=u.outerWidth(),n=u.outerHeight();void 0!==E.cache.pageHeight&&0===n||(V.extend(E.cache,{pageHeight:q.outerHeight(),width:t,height:n+r.offset,scrollHeight:e+r.offset,contextHeight:(s?z:p).height()}),E.cache.topOffset=-E.cache.height/2),u.removeClass(c.loading),E.debug("Caching modal and container sizes",E.cache)},helpers:{escape:function(e,t){if(void 0!==t&&t.preserveHTML)return e;const n={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"};return e.replace(/["'<>]|&(?![\d#A-Za-z]{1,12};)/g,e=>n[e])}},can:{leftBodyScrollbar:function(){return void 0===E.cache.leftBodyScrollbar&&(E.cache.leftBodyScrollbar=E.is.rtl()&&(E.is.iframe&&!E.is.firefox()||E.is.safari())),E.cache.leftBodyScrollbar},useFlex:function(){return"auto"===r.useFlex?r.detachable:(r.useFlex&&!r.detachable&&E.debug("useFlex true in combination with detachable false is not supported"),r.useFlex)},fit:function(){var e=E.cache.contextHeight,t=E.cache.contextHeight/2,n=E.cache.topOffset,i=E.cache.scrollHeight,o=E.cache.height,s=r.padding;return o<i?t+n+i+s<e:o+2*s<e}},has:{configActions:function(){return Array.isArray(r.actions)&&0<r.actions.length},scrollbar:function(){return s||"hidden"!==o.css("overflow-y")}},is:{active:function(){return u.hasClass(c.active)},animating:function(){return u.transition("is animating")},scrolling:function(){return p.hasClass(c.scrolling)},rtl:function(){return void 0===E.cache.isRTL&&(E.cache.isRTL="rtl"===u.attr("dir")||"rtl"===u.css("direction")||"rtl"===I.attr("dir")||"rtl"===I.css("direction")||"rtl"===o.attr("dir")||"rtl"===o.css("direction")),E.cache.isRTL},safari:function(){return void 0===E.cache.isSafari&&(E.cache.isSafari=/constructor/i.test(X.HTMLElement)||!!X.ApplePaySession),E.cache.isSafari},firefox:function(){return void 0===E.cache.isFirefox&&(E.cache.isFirefox=!!X.InstallTrigger),E.cache.isFirefox},iframe:function(){return!(self===top)}},set:{observeAttributes:function(e){O=!1!==e},autofocus:function(){let e=f.filter("[autofocus]"),t=f.filter(":input"),n=(0<e.length?e:0<t.length?t:u).first();n.trigger("focus")},bodyMargin:function(){let n=E.can.leftBodyScrollbar()?"left":"right";(r.detachable||E.can.fit())&&o.css((s?"margin-":"padding-")+n,M+"px"),o.find(a.bodyFixed.replace("right",n)).each(function(){let e=V(this);var t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"calc("+e.css(t)+" + "+M+"px)")})},clickaway:function(){r.detachable||u.on("mousedown"+H,E.event.mousedown),v.on("mousedown"+H,E.event.mousedown),v.on("mouseup"+H,E.event.mouseup)},dimmerSettings:function(){if(void 0===V.fn.dimmer)E.error(d.dimmer);else{var t={debug:r.debug,dimmerName:"modals",closable:"auto",useFlex:E.can.useFlex(),duration:{show:r.transition.showDuration||r.duration,hide:r.transition.hideDuration||r.duration}};let e=V.extend(!0,t,r.dimmerSettings);r.inverted&&(e.variation=void 0!==e.variation?e.variation+" inverted":"inverted"),o.dimmer("setting",e)}},dimmerStyles:function(){r.inverted?v.addClass(c.inverted):v.removeClass(c.inverted),r.blurring?p.addClass(c.blurring):p.removeClass(c.blurring)},modalOffset:function(){var e;r.detachable?u.css({marginTop:!u.hasClass("aligned")&&E.can.fit()?-E.cache.height/2:r.padding/2,marginLeft:-E.cache.width/2}):(e=E.can.fit(),u.css({top:!u.hasClass("aligned")&&e?q.scrollTop()+(E.cache.contextHeight-E.cache.height)/2:!e||u.hasClass("top")?q.scrollTop()+r.padding:q.scrollTop()+(E.cache.contextHeight-E.cache.height-r.padding),marginLeft:-E.cache.width/2})),E.verbose("Setting modal offset for legacy mode")},screenHeight:function(){E.can.fit()?o.css("height",""):u.hasClass("bottom")||(E.debug("Modal is taller than page content, resizing page height"),o.css("height",E.cache.height+2*r.padding+"px"))},active:function(){u.addClass(c.active+" "+c.front),h.filter("."+c.active).removeClass(c.front)},scrolling:function(){p.addClass(c.scrolling),u.addClass(c.scrolling),E.unbind.scrollLock()},legacy:function(){u.addClass(c.legacy)},type:function(){E.can.fit()?(E.verbose("Modal fits on screen"),E.others.active()||E.others.animating()||(E.remove.scrolling(),E.bind.scrollLock())):u.hasClass("bottom")?E.verbose("Bottom aligned modal not fitting on screen is unsupported for scrolling"):(E.verbose("Modal cannot fit on screen setting to scrolling"),E.set.scrolling())},undetached:function(){p.addClass(c.undetached)}},setting:function(e,t){if(E.debug("Changing setting",e,t),V.isPlainObject(e))V.extend(!0,r,e);else{if(void 0===t)return r[e];V.isPlainObject(r[e])?V.extend(!0,r[e],t):r[e]=t}},internal:function(e,t){if(V.isPlainObject(e))V.extend(!0,E,e);else{if(void 0===t)return E[e];E[e]=t}},debug:function(){!r.silent&&r.debug&&(r.performance?E.performance.log(arguments):(E.debug=Function.prototype.bind.call(console.info,console,r.name+":"),E.debug.apply(console,arguments)))},verbose:function(){!r.silent&&r.verbose&&r.debug&&(r.performance?E.performance.log(arguments):(E.verbose=Function.prototype.bind.call(console.info,console,r.name+":"),E.verbose.apply(console,arguments)))},error:function(){r.silent||(E.error=Function.prototype.bind.call(console.error,console,r.name+":"),E.error.apply(console,arguments))},performance:{log:function(e){var t,n;r.performance&&(n=(t=Date.now())-(B||t),B=t,W.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:y,"Execution Time":n})),clearTimeout(E.performance.timer),E.performance.timer=setTimeout(function(){E.performance.display()},500)},display:function(){var e=r.name+":";let n=0;B=!1,clearTimeout(E.performance.timer),V.each(W,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",0<W.length&&(console.groupCollapsed(e),console.table?console.table(W):V.each(W,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),W=[]}},invoke:function(i,e,t){let o=k,s,a,n;return e=e||K,t=t||y,"string"==typeof i&&void 0!==o&&(i=i.split(/[ .]/),s=i.length-1,V.each(i,function(e,t){var n=e!==s?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(V.isPlainObject(o[n])&&e!==s)o=o[n];else{if(void 0!==o[n])return a=o[n],!1;{if(!V.isPlainObject(o[t])||e===s)return void 0!==o[t]?a=o[t]:E.error(d.method,i),!1;o=o[t]}}})),Q(a)?n=a.apply(t,e):void 0!==a&&(n=a),Array.isArray(U)?U.push(n):void 0!==U?U=[U,n]:void 0!==n&&(U=n),a}},P?(void 0===k&&(Q(r.templates[j])&&(r.autoShow=!0,r.className.modal=r.className.template,r=V.extend(!0,{},r,r.templates[j].apply(E,K)),c=r.className,r.namespace,l=r.fields,d=r.error),E.initialize()),Q(r.templates[j])||E.invoke(j)):(void 0!==k&&k.invoke("destroy"),E.initialize(),U=u)}),void 0!==U?U:this},V.modal=V.fn.modal,V.fn.modal.settings={name:"Modal",namespace:"modal",useFlex:"auto",offset:0,silent:!1,debug:!1,verbose:!1,performance:!0,observeChanges:!1,allowMultiple:!1,detachable:!0,closable:!0,autofocus:!0,restoreFocus:!0,autoShow:!1,inverted:!1,blurring:!1,centered:!0,dimmerSettings:{closable:!1,useCSS:!0},keyboardShortcuts:!0,context:"body",queue:!1,duration:500,transition:"scale",padding:50,scrollbarWidth:10,title:"",content:"",class:"",classTitle:"",classContent:"",classActions:"",closeIcon:!1,actions:!1,preserveHTML:!1,fields:{class:"class",text:"text",icon:"icon",click:"click"},onShow:function(){},onVisible:function(){},onHide:function(){return!0},onHidden:!1,onApprove:function(){return!0},onDeny:function(){return!0},keys:{space:32,enter:13,escape:27,tab:9},selector:{title:"> .header",content:"> .content",actions:"> .actions",close:"> .close",closeIcon:"> .close",approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel",modal:".ui.modal",dimmer:"> .ui.dimmer",bodyFixed:"> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.fixed.nag, > .ui.fixed.nag > .close",prompt:".ui.input > input"},error:{dimmer:"UI Dimmer, a required component is not included in this page",method:"The method you called is not defined.",notFound:"The element you specified could not be found"},className:{active:"active",animating:"animating",blurring:"blurring",inverted:"inverted",legacy:"legacy",loading:"loading",scrolling:"scrolling",undetached:"undetached",front:"front",close:"close icon",button:"ui button",modal:"ui modal",title:"header",content:"content",actions:"actions",template:"ui tiny modal",ok:"positive",cancel:"negative",prompt:"ui fluid input",innerDimmer:"ui inverted dimmer"},text:{ok:"Ok",cancel:"Cancel",close:"Close"}},V.fn.modal.settings.templates={getArguments:function(e){let t=[].slice.call(e);return V.isPlainObject(t[0])?V.extend({handler:function(){},content:"",title:""},t[0]):(Q(t[t.length-1])||t.push(function(){}),{handler:t.pop(),content:t.pop()||"",title:t.pop()||""})},alert:function(){let e=this.get.settings();var t=e.templates.getArguments(arguments),n=t.handler;return{title:t.title,content:t.content,onApprove:n,actions:[{text:e.text.ok,class:e.className.ok,click:n}]}},confirm:function(){let e=this.get.settings(),t=e.templates.getArguments(arguments);function n(){t.handler(!0)}function i(){t.handler(!1)}return{title:t.title,content:t.content,onApprove:n,onDeny:i,actions:[{text:e.text.ok,class:e.className.ok,click:n},{text:e.text.cancel,class:e.className.cancel,click:i}]}},prompt:function(){let t=this,e=this.get.settings(),n=e.templates.getArguments(arguments);function i(){var e=t.get.settings(),e=t.get.element().find(e.selector.prompt)[0];n.handler(V(e).val())}function o(){n.handler(null)}return 0===V(V.parseHTML(n.content)).filter(".ui.input").length&&(n.content+='<p><div class="'+this.helpers.escape(e.className.prompt)+'"><input placeholder="'+this.helpers.escape(n.placeholder||"")+'" type="text" value="'+this.helpers.escape(n.defaultValue||"")+'"></div></p>'),{title:n.title,content:n.content,onApprove:i,onDeny:o,actions:[{text:e.text.ok,class:e.className.ok,click:i},{text:e.text.cancel,class:e.className.cancel,click:o}]}}}}(jQuery,window,document);
11
+ !function(V,X,_){"use strict";function Q(e){return"function"==typeof e&&"number"!=typeof e.nodeType}X=void 0!==X&&X.Math===Math?X:globalThis,V.fn.modal=function(L){let e=V(this),z=V(X),q=V(_),I=V("body"),B=Date.now(),W=[],j=L,P="string"==typeof j,K=[].slice.call(arguments,1),R=function(e,t){let n;return 0<=[X,_].indexOf(e)?n=I:0===(n=V(t.document).find(e)).length&&(n=t.frameElement?R(e,t.parent):I),n},U;return e.each(function(){let r=V.isPlainObject(L)?V.extend(!0,{},V.fn.modal.settings,L):V.extend({},V.fn.modal.settings),a=r.selector,c=r.className;var e=r.namespace;let l=r.fields,d=r.error,i="."+e,t="module-"+e,u=V(this),o=R(r.context,X),s=o[0]===I[0],n=u.find(a.closeIcon),f,m,h,g,p,v,b=u.hasClass("modal"),y=this,k=b?u.data(t):void 0,x=!1,w,C,S="",M="",A=!1,D=!1,T=!1,H,F,N,O=!1,E;E={initialize:function(){if(E.create.id(),b||(E.create.modal(),Q(r.onHidden)||(r.onHidden=function(){E.destroy(),u.remove()})),u.addClass(r.class),""!==r.title&&u.find(a.title).html(E.helpers.escape(r.title,r)).addClass(r.classTitle),""!==r.content&&u.find(a.content).html(E.helpers.escape(r.content,r)).addClass(r.classContent),E.has.configActions()){let s=u.find(a.actions).addClass(r.classActions);0===s.length?s=V("<div/>",{class:c.actions+" "+(r.classActions||"")}).appendTo(u):s.empty(),r.actions.forEach(function(e){var t=e[l.icon]?"<i "+(e[l.text]?'aria-hidden="true"':"")+' class="'+E.helpers.escape(e[l.icon])+' icon"></i>':"",n=E.helpers.escape(e[l.text]||"",r),i=E.helpers.escape(e[l.class]||"");let o=e[l.click]&&Q(e[l.click])?e[l.click]:function(){};s.append(V("<button/>",{html:t+n,"aria-label":(e[l.text]||e[l.icon]||"").replace(/<[^>]+(>|$)/g,""),class:c.button+" "+i,on:{click:function(){let e=V(this);e.is(a.approve)||e.is(a.deny)||!1===o.call(y,u)||E.hide()}}}))})}E.cache={},E.verbose("Initializing dimmer",o),E.create.dimmer(),r.allowMultiple&&E.create.innerDimmer(),r.centered||u.addClass("top aligned"),E.refreshModals(),E.bind.events(),E.observeChanges(),E.instantiate(),r.autoShow&&E.show()},instantiate:function(){E.verbose("Storing instance of modal"),k=E,u.data(t,k)},create:{modal:function(){var e;u=V("<div/>",{class:c.modal,role:"dialog","aria-modal":!0}),r.closeIcon&&(n=V("<i/>",{class:c.close,role:"button",tabindex:0,"aria-label":r.text.close}),u.append(n)),""!==r.title&&(e="_"+E.get.id()+"title",u.attr("aria-labelledby",e),V("<div/>",{class:c.title,id:e}).appendTo(u)),""!==r.content&&(e="_"+E.get.id()+"desc",u.attr("aria-describedby",e),V("<div/>",{class:c.content,id:e}).appendTo(u)),E.has.configActions()&&V("<div/>",{class:c.actions}).appendTo(u),o.append(u),y=u[0]},dimmer:function(){var e={debug:r.debug,dimmerName:"modals"},e=V.extend(!0,e,r.dimmerSettings);void 0===V.fn.dimmer?E.error(d.dimmer):(E.debug("Creating dimmer"),p=o.dimmer(e),A=E.is.scrolling(),r.detachable?(E.verbose("Modal is detachable, moving content into dimmer"),p.dimmer("add content",u)):E.set.undetached(),v=p.dimmer("get dimmer"))},id:function(){F=(Math.random().toString(16)+"000000000").slice(2,10),H="."+F,E.verbose("Creating unique id for element",F)},innerDimmer:function(){0===u.find(a.dimmer).length&&V("<div/>",{class:c.innerDimmer}).prependTo(u)}},destroy:function(){N&&N.disconnect(),E.verbose("Destroying previous modal"),u.removeData(t).off(i),z.off(H),o.off(H),v.off(H),n.off(H),f&&f.off(H),o.dimmer("destroy")},observeChanges:function(){"MutationObserver"in X&&((N=new MutationObserver(function(e){function o(n){let i=[];for(let e=0,t=n.length;e<t;e++)Array.prototype.push.apply(i,o(n[e].childNodes)),i.push(n[e]);return i}let i=!1,s=!1,a=!0;e.every(function(n){if("attributes"===n.type)O&&("disabled"===n.attributeName||0<V(n.target).find(":input").addBack(":input").filter(":visible").length)&&(s=!0);else{i=!0;let e=V(o(n.addedNodes)).filter("a[href], [tabindex], :input:enabled").filter(":visible"),t=V(o(n.removedNodes)).filter("a[href], [tabindex], :input");(0<e.length||0<t.length)&&(s=!0,(0<e.filter(":input").length||0<t.filter(":input").length)&&(a=!1))}return!s}),i&&r.observeChanges&&(E.debug("DOM tree modified, refreshing"),E.refresh()),s&&E.refreshInputs(a)})).observe(y,{attributeFilter:["class","disabled"],attributes:!0,childList:!0,subtree:!0}),E.debug("Setting up mutation observer",N))},refresh:function(){E.remove.scrolling(),E.cacheSizes(),E.can.useFlex()||E.set.modalOffset(),E.set.screenHeight(),E.set.type()},refreshModals:function(){h=u.siblings(a.modal),m=h.add(u)},refreshInputs:function(e){f&&f.off("keydown"+H),0===(f=u.find("a[href], [tabindex], :input:enabled").filter(":visible").filter(function(){return 0===V(this).closest(".disabled").length})).filter(":input").length?(f=u.add(f),u.attr("tabindex",-1)):u.removeAttr("tabindex"),f.first().on("keydown"+H,E.event.inputKeyDown.first),f.last().on("keydown"+H,E.event.inputKeyDown.last),!e&&r.autofocus&&0===f.filter(":focus").length&&E.set.autofocus()},attachEvents:function(e,t){let n=V(e);t=Q(E[t])?E[t]:E.toggle,0<n.length?(E.debug("Attaching modal events to element",e,t),n.off(i).on("click"+i,t)):E.error(d.notFound,e)},bind:{events:function(){E.verbose("Attaching events"),u.on("click"+i,a.close,E.event.close).on("click"+i,a.approve,E.event.approve).on("click"+i,a.deny,E.event.deny),n.on("keyup"+H,E.event.closeKeyUp),z.on("resize"+H,E.event.resize).on("focus"+H,E.event.focus),o.on("click"+H,E.event.click)},scrollLock:function(){p[0].addEventListener("touchmove",E.event.preventScroll,{passive:!1})}},unbind:{scrollLock:function(){p[0].removeEventListener("touchmove",E.event.preventScroll,{passive:!1})}},get:{id:function(){return F},element:function(){return u},settings:function(){return r}},event:{approve:function(){x||!1===r.onApprove.call(y,V(this))?E.verbose("Approve callback returned false cancelling hide"):(x=!0,E.hide(function(){x=!1}))},preventScroll:function(e){-1!==e.target.className.indexOf("dimmer")&&e.preventDefault()},deny:function(){x||!1===r.onDeny.call(y,V(this))?E.verbose("Deny callback returned false cancelling hide"):(x=!0,E.hide(function(){x=!1}))},close:function(){E.hide()},closeKeyUp:function(e){e=e.which;e!==r.keys.enter&&e!==r.keys.space||!u.hasClass(c.front)||E.hide()},inputKeyDown:{first:function(e){e.which===r.keys.tab&&e.shiftKey&&(f.last().trigger("focus"),e.preventDefault())},last:function(e){e.which!==r.keys.tab||e.shiftKey||(f.first().trigger("focus"),e.preventDefault())}},mousedown:function(e){let t=V(e.target);var n=E.is.rtl();(w=0<t.closest(a.modal).length)&&E.verbose("Mouse down event registered inside the modal"),(C=E.is.scrolling()&&(!n&&z.outerWidth()-r.scrollbarWidth<=e.clientX||n&&r.scrollbarWidth>=e.clientX))&&E.verbose("Mouse down event registered inside the scrollbar")},mouseup:function(t){if(r.closable)if(w)E.debug("Dimmer clicked but mouse down was initially registered inside the modal");else if(C)E.debug("Dimmer clicked but mouse down was initially registered inside the scrollbar");else{let e=V(t.target);var n=0<e.closest(a.modal).length,t=V.contains(_.documentElement,t.target);if(!n&&t&&E.is.active()&&u.hasClass(c.front)){if(E.debug("Dimmer clicked, hiding all modals"),r.allowMultiple){if(!E.hideAll())return}else if(!E.hide())return;E.remove.clickaway()}}else E.verbose("Dimmer clicked but closable setting is disabled")},debounce:function(e,t){clearTimeout(E.timer),E.timer=setTimeout(function(){e()},t)},keyboard:function(e){e.which===r.keys.escape&&(r.closable?(E.debug("Escape key pressed hiding modal"),u.hasClass(c.front)&&E.hide()):E.debug("Escape key pressed, but closable is set to false"),e.preventDefault())},resize:function(){p.dimmer("is active")&&(E.is.animating()||E.is.active())&&requestAnimationFrame(E.refresh)},focus:function(){T=!0},click:function(e){T&&_.activeElement!==e.target&&p.dimmer("is active")&&E.is.active()&&r.autofocus&&0===V(_.activeElement).closest(a.modal).length&&requestAnimationFrame(E.set.autofocus),T=!1}},toggle:function(){E.is.active()||E.is.animating()?E.hide():E.show()},show:function(e){e=Q(e)?e:function(){},E.refreshModals(),E.set.dimmerSettings(),E.set.dimmerStyles(),E.showModal(e)},hide:function(e){return e=Q(e)?e:function(){},E.refreshModals(),E.hideModal(e)},showModal:function(e){e=Q(e)?e:function(){},E.is.animating()||!E.is.active()?!1===r.onShow.call(y)?E.verbose("Show callback returned false cancelling show"):(D=E.has.scrollbar(),E.showDimmer(),E.cacheSizes(),D&&E.set.bodyMargin(),E.can.useFlex()?E.remove.legacy():(E.set.legacy(),E.set.modalOffset(),E.debug("Using non-flex legacy modal positioning.")),E.set.screenHeight(),E.set.type(),E.set.clickaway(),!r.allowMultiple&&E.others.active()?E.hideOthers(E.showModal):(x=!1,r.allowMultiple&&(E.others.active()&&h.filter("."+c.active).find(a.dimmer).removeClass("out").addClass("transition fade in active"),r.detachable&&u.detach().appendTo(v)),r.transition&&void 0!==V.fn.transition?(E.debug("Showing modal with css animations"),E.set.observeAttributes(!1),u.transition({debug:r.debug,verbose:r.verbose,silent:r.silent,animation:(r.transition.showMethod||r.transition)+" in",queue:r.queue,duration:r.transition.showDuration||r.duration,useFailSafe:!0,onComplete:function(){r.onVisible.apply(y),r.keyboardShortcuts&&E.add.keyboardShortcuts(),E.save.focus(),E.set.active(),E.refreshInputs(),requestAnimationFrame(E.set.observeAttributes),e()}})):E.error(d.noTransition))):E.debug("Modal is already visible")},hideModal:function(e,t,n){let i=h.filter("."+c.active).last();if(e=Q(e)?e:function(){},!1===r.onHide.call(y,V(this)))return E.verbose("Hide callback returned false cancelling hide"),x=!1;(E.is.animating()||E.is.active())&&(E.debug("Hiding modal"),r.transition&&void 0!==V.fn.transition?(E.remove.active(),E.set.observeAttributes(!1),u.transition({debug:r.debug,verbose:r.verbose,silent:r.silent,animation:(r.transition.hideMethod||r.transition)+" out",queue:r.queue,duration:r.transition.hideDuration||r.duration,useFailSafe:!0,onStart:function(){E.others.active()||E.others.animating()||t?r.allowMultiple&&(n?m:i).find(a.dimmer).removeClass("in").addClass("out"):E.hideDimmer(),r.keyboardShortcuts&&!E.others.active()&&E.remove.keyboardShortcuts()},onComplete:function(){E.unbind.scrollLock(),E.remove.active(),r.allowMultiple&&(i.addClass(c.front),u.removeClass(c.front),(n?m:i).find(a.dimmer).removeClass("active")),Q(r.onHidden)&&r.onHidden.call(y),E.remove.dimmerStyles(),E.restore.focus(),e()}})):E.error(d.noTransition))},showDimmer:function(){p.dimmer("is animating")||!p.dimmer("is active")?(D&&(s||v.css("top",p.scrollTop()),E.save.bodyMargin()),E.debug("Showing dimmer"),p.dimmer("show")):E.debug("Dimmer already visible")},hideDimmer:function(){p.dimmer("is animating")||p.dimmer("is active")?(E.unbind.scrollLock(),p.dimmer("hide",function(){D&&E.restore.bodyMargin(),E.remove.clickaway(),E.remove.screenHeight()})):E.debug("Dimmer is not visible cannot hide")},hideAll:function(i){let e=m.filter("."+c.active+", ."+c.animating);if(i=Q(i)?i:function(){},0<e.length){E.debug("Hiding all visible modals");let n=!0;return V(e.get().reverse()).each(function(e,t){n=n&&V(t).modal("hide modal",i,!1,!0)}),n&&E.hideDimmer(),n}},hideOthers:function(e){let t=h.filter("."+c.active+", ."+c.animating);e=Q(e)?e:function(){},0<t.length&&(E.debug("Hiding other modals",h),t.modal("hide modal",e,!0))},others:{active:function(){return 0<h.filter("."+c.active).length},animating:function(){return 0<h.filter("."+c.animating).length}},add:{keyboardShortcuts:function(){E.verbose("Adding keyboard shortcuts"),q.on("keydown"+i,E.event.keyboard)}},save:{focus:function(){let e=V(_.activeElement);0<e.closest(u).length||(g=V(_.activeElement).trigger("blur"))},bodyMargin:function(){S=o.css((s?"margin-":"padding-")+(E.can.leftBodyScrollbar()?"left":"right"));var e=parseInt(S.replace(/[^\d.]/g,""),10),t=s?X.innerWidth-_.documentElement.clientWidth:o[0].offsetWidth-o[0].clientWidth;M=e+t}},restore:{focus:function(){g&&0<g.length&&r.restoreFocus&&g.trigger("focus")},bodyMargin:function(){let n=E.can.leftBodyScrollbar()?"left":"right";o.css((s?"margin-":"padding-")+n,S),o.find(a.bodyFixed.replace("right",n)).each(function(){let e=V(this);var t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"")})}},remove:{active:function(){u.removeClass(c.active)},legacy:function(){u.removeClass(c.legacy)},clickaway:function(){r.detachable||u.off("mousedown"+H),v.off("mousedown"+H),v.off("mouseup"+H)},dimmerStyles:function(){v.removeClass(c.inverted),p.removeClass(c.blurring)},bodyStyle:function(){""===o.attr("style")&&(E.verbose("Removing style attribute"),o.removeAttr("style"))},screenHeight:function(){E.debug("Removing page height"),o.css("height",""),E.remove.bodyStyle()},keyboardShortcuts:function(){E.verbose("Removing keyboard shortcuts"),q.off("keydown"+i)},scrolling:function(){A||p.removeClass(c.scrolling),u.removeClass(c.scrolling)}},cacheSizes:function(){u.addClass(c.loading);var e=u.prop("scrollHeight"),t=u.outerWidth(),n=u.outerHeight();void 0!==E.cache.pageHeight&&0===n||(V.extend(E.cache,{pageHeight:q.outerHeight(),width:t,height:n+r.offset,scrollHeight:e+r.offset,contextHeight:(s?z:p).height()}),E.cache.topOffset=-E.cache.height/2),u.removeClass(c.loading),E.debug("Caching modal and container sizes",E.cache)},helpers:{escape:function(e,t){if(void 0!==t&&t.preserveHTML)return e;const n={'"':"&quot;","&":"&amp;","'":"&apos;","<":"&lt;",">":"&gt;"};return String(e).replace(/["'<>]|&(?![\d#A-Za-z]{1,12};)/g,e=>n[e])}},can:{leftBodyScrollbar:function(){return void 0===E.cache.leftBodyScrollbar&&(E.cache.leftBodyScrollbar=E.is.rtl()&&(E.is.iframe&&!E.is.firefox()||E.is.safari())),E.cache.leftBodyScrollbar},useFlex:function(){return"auto"===r.useFlex?r.detachable:(r.useFlex&&!r.detachable&&E.debug("useFlex true in combination with detachable false is not supported"),r.useFlex)},fit:function(){var e=E.cache.contextHeight,t=E.cache.contextHeight/2,n=E.cache.topOffset,i=E.cache.scrollHeight,o=E.cache.height,s=r.padding;return o<i?t+n+i+s<e:o+2*s<e}},has:{configActions:function(){return Array.isArray(r.actions)&&0<r.actions.length},scrollbar:function(){return s||"hidden"!==o.css("overflow-y")}},is:{active:function(){return u.hasClass(c.active)},animating:function(){return u.transition("is animating")},scrolling:function(){return p.hasClass(c.scrolling)},rtl:function(){return void 0===E.cache.isRTL&&(E.cache.isRTL="rtl"===u.attr("dir")||"rtl"===u.css("direction")||"rtl"===I.attr("dir")||"rtl"===I.css("direction")||"rtl"===o.attr("dir")||"rtl"===o.css("direction")),E.cache.isRTL},safari:function(){return void 0===E.cache.isSafari&&(E.cache.isSafari=/constructor/i.test(X.HTMLElement)||!!X.ApplePaySession),E.cache.isSafari},firefox:function(){return void 0===E.cache.isFirefox&&(E.cache.isFirefox=!!X.InstallTrigger),E.cache.isFirefox},iframe:function(){return!(self===top)}},set:{observeAttributes:function(e){O=!1!==e},autofocus:function(){let e=f.filter("[autofocus]"),t=f.filter(":input"),n=(0<e.length?e:0<t.length?t:u).first();n.trigger("focus")},bodyMargin:function(){let n=E.can.leftBodyScrollbar()?"left":"right";(r.detachable||E.can.fit())&&o.css((s?"margin-":"padding-")+n,M+"px"),o.find(a.bodyFixed.replace("right",n)).each(function(){let e=V(this);var t="fixed"===e.css("position")?"padding-"+n:n;e.css(t,"calc("+e.css(t)+" + "+M+"px)")})},clickaway:function(){r.detachable||u.on("mousedown"+H,E.event.mousedown),v.on("mousedown"+H,E.event.mousedown),v.on("mouseup"+H,E.event.mouseup)},dimmerSettings:function(){if(void 0===V.fn.dimmer)E.error(d.dimmer);else{var t={debug:r.debug,dimmerName:"modals",closable:"auto",useFlex:E.can.useFlex(),duration:{show:r.transition.showDuration||r.duration,hide:r.transition.hideDuration||r.duration}};let e=V.extend(!0,t,r.dimmerSettings);r.inverted&&(e.variation=void 0!==e.variation?e.variation+" inverted":"inverted"),o.dimmer("setting",e)}},dimmerStyles:function(){r.inverted?v.addClass(c.inverted):v.removeClass(c.inverted),r.blurring?p.addClass(c.blurring):p.removeClass(c.blurring)},modalOffset:function(){var e;r.detachable?u.css({marginTop:!u.hasClass("aligned")&&E.can.fit()?-E.cache.height/2:r.padding/2,marginLeft:-E.cache.width/2}):(e=E.can.fit(),u.css({top:!u.hasClass("aligned")&&e?q.scrollTop()+(E.cache.contextHeight-E.cache.height)/2:!e||u.hasClass("top")?q.scrollTop()+r.padding:q.scrollTop()+(E.cache.contextHeight-E.cache.height-r.padding),marginLeft:-E.cache.width/2})),E.verbose("Setting modal offset for legacy mode")},screenHeight:function(){E.can.fit()?o.css("height",""):u.hasClass("bottom")||(E.debug("Modal is taller than page content, resizing page height"),o.css("height",E.cache.height+2*r.padding+"px"))},active:function(){u.addClass(c.active+" "+c.front),h.filter("."+c.active).removeClass(c.front)},scrolling:function(){p.addClass(c.scrolling),u.addClass(c.scrolling),E.unbind.scrollLock()},legacy:function(){u.addClass(c.legacy)},type:function(){E.can.fit()?(E.verbose("Modal fits on screen"),E.others.active()||E.others.animating()||(E.remove.scrolling(),E.bind.scrollLock())):u.hasClass("bottom")?E.verbose("Bottom aligned modal not fitting on screen is unsupported for scrolling"):(E.verbose("Modal cannot fit on screen setting to scrolling"),E.set.scrolling())},undetached:function(){p.addClass(c.undetached)}},setting:function(e,t){if(E.debug("Changing setting",e,t),V.isPlainObject(e))V.extend(!0,r,e);else{if(void 0===t)return r[e];V.isPlainObject(r[e])?V.extend(!0,r[e],t):r[e]=t}},internal:function(e,t){if(V.isPlainObject(e))V.extend(!0,E,e);else{if(void 0===t)return E[e];E[e]=t}},debug:function(){!r.silent&&r.debug&&(r.performance?E.performance.log(arguments):(E.debug=Function.prototype.bind.call(console.info,console,r.name+":"),E.debug.apply(console,arguments)))},verbose:function(){!r.silent&&r.verbose&&r.debug&&(r.performance?E.performance.log(arguments):(E.verbose=Function.prototype.bind.call(console.info,console,r.name+":"),E.verbose.apply(console,arguments)))},error:function(){r.silent||(E.error=Function.prototype.bind.call(console.error,console,r.name+":"),E.error.apply(console,arguments))},performance:{log:function(e){var t,n;r.performance&&(n=(t=Date.now())-(B||t),B=t,W.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:y,"Execution Time":n})),clearTimeout(E.performance.timer),E.performance.timer=setTimeout(function(){E.performance.display()},500)},display:function(){var e=r.name+":";let n=0;B=!1,clearTimeout(E.performance.timer),V.each(W,function(e,t){n+=t["Execution Time"]}),e+=" "+n+"ms",0<W.length&&(console.groupCollapsed(e),console.table?console.table(W):V.each(W,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),W=[]}},invoke:function(i,e,t){let o=k,s,a,n;return e=e||K,t=t||y,"string"==typeof i&&void 0!==o&&(i=i.split(/[ .]/),s=i.length-1,V.each(i,function(e,t){var n=e!==s?t+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(V.isPlainObject(o[n])&&e!==s)o=o[n];else{if(void 0!==o[n])return a=o[n],!1;{if(!V.isPlainObject(o[t])||e===s)return void 0!==o[t]?a=o[t]:E.error(d.method,i),!1;o=o[t]}}})),Q(a)?n=a.apply(t,e):void 0!==a&&(n=a),Array.isArray(U)?U.push(n):void 0!==U?U=[U,n]:void 0!==n&&(U=n),a}},P?(void 0===k&&(Q(r.templates[j])&&(r.autoShow=!0,r.className.modal=r.className.template,r=V.extend(!0,{},r,r.templates[j].apply(E,K)),c=r.className,r.namespace,l=r.fields,d=r.error),E.initialize()),Q(r.templates[j])||E.invoke(j)):(void 0!==k&&k.invoke("destroy"),E.initialize(),U=u)}),void 0!==U?U:this},V.modal=V.fn.modal,V.fn.modal.settings={name:"Modal",namespace:"modal",useFlex:"auto",offset:0,silent:!1,debug:!1,verbose:!1,performance:!0,observeChanges:!1,allowMultiple:!1,detachable:!0,closable:!0,autofocus:!0,restoreFocus:!0,autoShow:!1,inverted:!1,blurring:!1,centered:!0,dimmerSettings:{closable:!1,useCSS:!0},keyboardShortcuts:!0,context:"body",queue:!1,duration:500,transition:"scale",padding:50,scrollbarWidth:10,title:"",content:"",class:"",classTitle:"",classContent:"",classActions:"",closeIcon:!1,actions:!1,preserveHTML:!1,fields:{class:"class",text:"text",icon:"icon",click:"click"},onShow:function(){},onVisible:function(){},onHide:function(){return!0},onHidden:!1,onApprove:function(){return!0},onDeny:function(){return!0},keys:{space:32,enter:13,escape:27,tab:9},selector:{title:"> .header",content:"> .content",actions:"> .actions",close:"> .close",closeIcon:"> .close",approve:".actions .positive, .actions .approve, .actions .ok",deny:".actions .negative, .actions .deny, .actions .cancel",modal:".ui.modal",dimmer:"> .ui.dimmer",bodyFixed:"> .ui.fixed.menu, > .ui.right.toast-container, > .ui.right.sidebar, > .ui.fixed.nag, > .ui.fixed.nag > .close",prompt:".ui.input > input"},error:{dimmer:"UI Dimmer, a required component is not included in this page",method:"The method you called is not defined.",notFound:"The element you specified could not be found"},className:{active:"active",animating:"animating",blurring:"blurring",inverted:"inverted",legacy:"legacy",loading:"loading",scrolling:"scrolling",undetached:"undetached",front:"front",close:"close icon",button:"ui button",modal:"ui modal",title:"header",content:"content",actions:"actions",template:"ui tiny modal",ok:"positive",cancel:"negative",prompt:"ui fluid input",innerDimmer:"ui inverted dimmer"},text:{ok:"Ok",cancel:"Cancel",close:"Close"}},V.fn.modal.settings.templates={getArguments:function(e){let t=[].slice.call(e);return V.isPlainObject(t[0])?V.extend({handler:function(){},content:"",title:""},t[0]):(Q(t[t.length-1])||t.push(function(){}),{handler:t.pop(),content:t.pop()||"",title:t.pop()||""})},alert:function(){let e=this.get.settings();var t=e.templates.getArguments(arguments),n=t.handler;return{title:t.title,content:t.content,onApprove:n,actions:[{text:e.text.ok,class:e.className.ok,click:n}]}},confirm:function(){let e=this.get.settings(),t=e.templates.getArguments(arguments);function n(){t.handler(!0)}function i(){t.handler(!1)}return{title:t.title,content:t.content,onApprove:n,onDeny:i,actions:[{text:e.text.ok,class:e.className.ok,click:n},{text:e.text.cancel,class:e.className.cancel,click:i}]}},prompt:function(){let t=this,e=this.get.settings(),n=e.templates.getArguments(arguments);function i(){var e=t.get.settings(),e=t.get.element().find(e.selector.prompt)[0];n.handler(V(e).val())}function o(){n.handler(null)}return 0===V(V.parseHTML(n.content)).filter(".ui.input").length&&(n.content+='<p><div class="'+this.helpers.escape(e.className.prompt)+'"><input placeholder="'+this.helpers.escape(n.placeholder||"")+'" type="text" value="'+this.helpers.escape(n.defaultValue||"")+'"></div></p>'),{title:n.title,content:n.content,onApprove:i,onDeny:o,actions:[{text:e.text.ok,class:e.className.ok,click:i},{text:e.text.cancel,class:e.className.cancel,click:o}]}}}}(jQuery,window,document);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Nag
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Nag
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Nag
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Nag
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Nag
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Nag
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.10.0-beta.8+62e258f
2
+ * # Fomantic UI - 2.10.0-beta.9+45ac3fe
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * https://fomantic-ui.com/
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Placeholder
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Placeholder
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Placeholder
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Placeholder
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Popup
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Popup
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Popup
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Popup
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *
@@ -1466,7 +1466,7 @@
1466
1466
  '>': '&gt;',
1467
1467
  };
1468
1468
 
1469
- return string.replace(badChars, (chr) => escape[chr]);
1469
+ return String(string).replace(badChars, (chr) => escape[chr]);
1470
1470
  },
1471
1471
  popup: function (text) {
1472
1472
  let html = '';
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Fomantic-UI 2.10.0-beta.8+62e258f - Popup
2
+ * # Fomantic-UI 2.10.0-beta.9+45ac3fe - Popup
3
3
  * https://github.com/fomantic/Fomantic-UI/
4
4
  *
5
5
  *