UNPKG

@aegov/design-system

Version:

A design system for the Government of the United Arab Emirates. The design system has been created based on research and information collected from in-depth studies conducted on user behaviour and benchmarking best practices. The primary use of this desig

1 lines 62.2 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("AEGov",[],e):"object"==typeof exports?exports.AEGov=e():t.AEGov=e()}(self,function(){return function(){"use strict";var t={101:function(t,e,i){i.r(e),e.default=class{_eventType;_eventFunctions;constructor(t,e){this._eventType=t,this._eventFunctions=e}init(){this._eventFunctions.forEach(t=>{"undefined"!=typeof window&&window.addEventListener(this._eventType,t)})}}},148:function(t,e){var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.initCollapses=r;var n={onCollapse:function(){},onExpand:function(){},onToggle:function(){}},o=function(){function t(t,e,o){void 0===t&&(t=null),void 0===e&&(e=null),void 0===o&&(o=n),this._targetEl=t,this._triggerEl=e,this._options=i(i({},n),o),this._visible=!1,this._init()}return t.prototype._init=function(){var t=this;this._triggerEl&&(this._triggerEl.hasAttribute("aria-expanded")?this._visible="true"===this._triggerEl.getAttribute("aria-expanded"):this._visible=!this._targetEl.classList.contains("hidden"),this._triggerEl.addEventListener("click",function(){t.toggle()}))},t.prototype.collapse=function(){this._targetEl.classList.add("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","false"),this._visible=!1,this._options.onCollapse(this)},t.prototype.expand=function(){this._targetEl.classList.remove("hidden"),this._triggerEl&&this._triggerEl.setAttribute("aria-expanded","true"),this._visible=!0,this._options.onExpand(this)},t.prototype.toggle=function(){this._visible?this.collapse():this.expand(),this._options.onToggle(this)},t}();function r(){document.querySelectorAll("[data-collapse-toggle]").forEach(function(t){var e=t.getAttribute("data-collapse-toggle"),i=document.getElementById(e);i?new o(i,t):console.error('The target element with id "'.concat(e,'" does not exist. Please check the data-collapse-toggle attribute.'))})}"undefined"!=typeof window&&(window.Collapse=o,window.initCollapses=r),e.default=o},231:function(t,e){var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.initTabs=r;var n={defaultTabId:null,activeClasses:"tab-active",inactiveClasses:"tab-inactive",onShow:function(){}},o=function(){function t(t,e){void 0===t&&(t=[]),void 0===e&&(e=n),this._items=t,this._activeTab=e?this.getTab(e.defaultTabId):null,this._options=i(i({},n),e),this._init()}return t.prototype._init=function(){var t=this;this._items.length&&(this._activeTab||this._setActiveTab(this._items[0]),this.show(this._activeTab.id,!0),this._items.map(function(e){e.triggerEl.addEventListener("click",function(){t.show(e.id)})}))},t.prototype.getActiveTab=function(){return this._activeTab},t.prototype._setActiveTab=function(t){this._activeTab=t},t.prototype.getTab=function(t){return this._items.filter(function(e){return e.id===t})[0]},t.prototype.show=function(t,e){var i,n,o=this;void 0===e&&(e=!1);var r=this.getTab(t);(r!==this._activeTab||e)&&(this._items.map(function(t){var e,i;t!==r&&((e=t.triggerEl.classList).remove.apply(e,o._options.activeClasses.split(" ")),(i=t.triggerEl.classList).add.apply(i,o._options.inactiveClasses.split(" ")),t.targetEl.classList.add("hidden"),t.triggerEl.setAttribute("aria-selected","false"))}),(i=r.triggerEl.classList).add.apply(i,this._options.activeClasses.split(" ")),(n=r.triggerEl.classList).remove.apply(n,this._options.inactiveClasses.split(" ")),r.triggerEl.setAttribute("aria-selected","true"),r.targetEl.classList.remove("hidden"),this._setActiveTab(r),this._options.onShow(this,r))},t}();function r(){document.querySelectorAll("[data-tabs-toggle]").forEach(function(t){var e=[],i=null;t.querySelectorAll('[role="tab"]').forEach(function(t){var n="true"===t.getAttribute("aria-selected"),o={id:t.getAttribute("data-tabs-target"),triggerEl:t,targetEl:document.querySelector(t.getAttribute("data-tabs-target"))};e.push(o),n&&(i=o.id)}),new o(e,{defaultTabId:i})})}"undefined"!=typeof window&&(window.Tabs=o,window.initTabs=r),e.default=o},251:function(t,e){var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.initAccordions=function(){document.querySelectorAll("[data-accordion]").forEach(function(t){var e=t.getAttribute("data-accordion"),i=t.getAttribute("data-active-classes"),r=t.getAttribute("data-inactive-classes"),s=[];t.querySelectorAll("[data-accordion-target]").forEach(function(e){if(e.closest("[data-accordion]")===t){var i={id:e.getAttribute("data-accordion-target"),triggerEl:e,targetEl:document.querySelector(e.getAttribute("data-accordion-target")),active:"true"===e.getAttribute("aria-expanded")};s.push(i)}}),new o(s,{alwaysOpen:"open"===e,activeClasses:i||n.activeClasses,inactiveClasses:r||n.inactiveClasses})})};var n={alwaysOpen:!1,activeClasses:"accordion-active",inactiveClasses:"accordion-inactive",onOpen:function(){},onClose:function(){},onToggle:function(){}},o=function(){function t(t,e){void 0===t&&(t=[]),void 0===e&&(e=n),this._items=t,this._options=i(i({},n),e),this._init()}return t.prototype._init=function(){var t=this;this._items.length&&this._items.map(function(e){e.active&&t.open(e.id),e.triggerEl.addEventListener("click",function(){t.toggle(e.id)})})},t.prototype.getItem=function(t){return this._items.filter(function(e){return e.id===t})[0]},t.prototype.open=function(t){var e,i,n=this,o=this.getItem(t);this._options.alwaysOpen||this._items.map(function(t){var e,i;t!==o&&((e=t.triggerEl.classList).remove.apply(e,n._options.activeClasses.split(" ")),(i=t.triggerEl.classList).add.apply(i,n._options.inactiveClasses.split(" ")),t.targetEl.classList.add("hidden"),t.triggerEl.setAttribute("aria-expanded","false"),t.active=!1)}),(e=o.triggerEl.classList).add.apply(e,this._options.activeClasses.split(" ")),(i=o.triggerEl.classList).remove.apply(i,this._options.inactiveClasses.split(" ")),o.triggerEl.setAttribute("aria-expanded","true"),o.targetEl.classList.remove("hidden"),o.active=!0,this._options.onOpen(this,o)},t.prototype.toggle=function(t){var e=this.getItem(t);e.active?this.close(t):this.open(t),this._options.onToggle(this,e)},t.prototype.close=function(t){var e,i,n=this.getItem(t);(e=n.triggerEl.classList).remove.apply(e,this._options.activeClasses.split(" ")),(i=n.triggerEl.classList).add.apply(i,this._options.inactiveClasses.split(" ")),n.targetEl.classList.add("hidden"),n.triggerEl.setAttribute("aria-expanded","false"),n.active=!1,this._options.onClose(this,n)},t}();"undefined"!=typeof window&&(window.Accordion=o),e.default=o},265:function(t){t.exports=function(t,e,i){var n,o,r,s,a=!1,c=!1,d={},l=0,u=0,p={sensitivity:7,interval:100,timeout:0,handleFocus:!1};function f(t){n=t.clientX,o=t.clientY}function h(t,i){if(u&&(u=clearTimeout(u)),Math.abs(r-n)+Math.abs(s-o)<p.sensitivity)return l=1,c?void 0:e.call(t,i);r=n,s=o,u=setTimeout(function(){h(t,i)},p.interval)}function v(e){return a=!0,u&&(u=clearTimeout(u)),t.removeEventListener("mousemove",f,!1),1!==l&&(r=e.clientX,s=e.clientY,t.addEventListener("mousemove",f,!1),u=setTimeout(function(){h(t,e)},p.interval)),this}function g(e){return a=!1,u&&(u=clearTimeout(u)),t.removeEventListener("mousemove",f,!1),1===l&&(u=setTimeout(function(){!function(t,e){u&&(u=clearTimeout(u)),l=0,c||i.call(t,e)}(t,e)},p.timeout)),this}function m(i){a||(c=!0,e.call(t,i))}function y(e){!a&&c&&(c=!1,i.call(t,e))}function _(){t.removeEventListener("focus",m,!1),t.removeEventListener("blur",y,!1)}return d.options=function(e){var i=e.handleFocus!==p.handleFocus;return p=Object.assign({},p,e),i&&(p.handleFocus?(t.addEventListener("focus",m,!1),t.addEventListener("blur",y,!1)):_()),d},d.remove=function(){t&&(t.removeEventListener("mouseover",v,!1),t.removeEventListener("mouseout",g,!1),_())},t&&(t.addEventListener("mouseover",v,!1),t.addEventListener("mouseout",g,!1)),d}},270:function(t,e,i){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.initDropdowns=c;var r=i(915),s={placement:"bottom",triggerType:"click",offsetSkidding:0,offsetDistance:10,delay:300,onShow:function(){},onHide:function(){},onToggle:function(){}},a=function(){function t(t,e,i){void 0===t&&(t=null),void 0===e&&(e=null),void 0===i&&(i=s),this._targetEl=t,this._triggerEl=e,this._options=n(n({},s),i),this._popperInstance=this._createPopperInstance(),this._visible=!1,this._init()}return t.prototype._init=function(){this._triggerEl&&this._setupEventListeners()},t.prototype._setupEventListeners=function(){var t=this,e=this._getTriggerEvents();"click"===this._options.triggerType&&e.showEvents.forEach(function(e){t._triggerEl.addEventListener(e,function(){t.toggle()})}),"hover"===this._options.triggerType&&(e.showEvents.forEach(function(e){t._triggerEl.addEventListener(e,function(){"click"===e?t.toggle():setTimeout(function(){t.show()},t._options.delay)}),t._targetEl.addEventListener(e,function(){t.show()})}),e.hideEvents.forEach(function(e){t._triggerEl.addEventListener(e,function(){setTimeout(function(){t._targetEl.matches(":hover")||t.hide()},t._options.delay)}),t._targetEl.addEventListener(e,function(){setTimeout(function(){t._triggerEl.matches(":hover")||t.hide()},t._options.delay)})}))},t.prototype._createPopperInstance=function(){return(0,r.createPopper)(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[this._options.offsetSkidding,this._options.offsetDistance]}}]})},t.prototype._setupClickOutsideListener=function(){var t=this;this._clickOutsideEventListener=function(e){t._handleClickOutside(e,t._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(t,e){var i=t.target;i===e||e.contains(i)||this._triggerEl.contains(i)||!this.isVisible()||this.hide()},t.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":return{showEvents:["mouseenter","click"],hideEvents:["mouseleave"]};case"click":default:return{showEvents:["click"],hideEvents:[]};case"none":return{showEvents:[],hideEvents:[]}}},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},t.prototype.isVisible=function(){return this._visible},t.prototype.show=function(){this._targetEl.classList.remove("hidden"),this._targetEl.classList.add("block"),this._popperInstance.setOptions(function(t){return n(n({},t),{modifiers:o(o([],t.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},t.prototype.hide=function(){this._targetEl.classList.remove("block"),this._targetEl.classList.add("hidden"),this._popperInstance.setOptions(function(t){return n(n({},t),{modifiers:o(o([],t.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._visible=!1,this._removeClickOutsideListener(),this._options.onHide(this)},t}();function c(){document.querySelectorAll("[data-dropdown-toggle]").forEach(function(t){var e=t.getAttribute("data-dropdown-toggle"),i=document.getElementById(e);if(i){var n=t.getAttribute("data-dropdown-placement"),o=t.getAttribute("data-dropdown-offset-skidding"),r=t.getAttribute("data-dropdown-offset-distance"),c=t.getAttribute("data-dropdown-trigger"),d=t.getAttribute("data-dropdown-delay");new a(i,t,{placement:n||s.placement,triggerType:c||s.triggerType,offsetSkidding:o?parseInt(o):s.offsetSkidding,offsetDistance:r?parseInt(r):s.offsetDistance,delay:d?parseInt(d):s.delay})}else console.error('The dropdown element with id "'.concat(e,'" does not exist. Please check the data-dropdown-toggle attribute.'))})}"undefined"!=typeof window&&(window.Dropdown=a,window.initDropdowns=c);var d=document.querySelectorAll(".submenu-btn"),l=!1;d.forEach(function(t){var e=function(t,e){e?(t.classList.add("active-ic-btn"),t.classList.remove("inactive-ic-btn")):(t.classList.add("inactive-ic-btn"),t.classList.remove("active-ic-btn"))},i=function(t){if(!t)return!1;var e=document.querySelector("#".concat(t));return(null==e?void 0:e.classList.contains("block"))||!1};t.addEventListener("mousedown",function(){l=!0}),t.addEventListener("keydown",function(t){"Tab"===t.key&&(l=!1)}),t.addEventListener("focus",function(){var n=t.getAttribute("data-dropdown-toggle"),o=i(n);e(t,!(l&&o))}),t.addEventListener("blur",function(){e(t,!1)}),t.addEventListener("click",function(){var n=t.getAttribute("data-dropdown-toggle"),o=i(n);e(t,!o)}),t.addEventListener("hover",function(){var n=t.getAttribute("data-dropdown-toggle"),o=i(n),r=document.querySelector("#".concat(n));null!=n&&(r.matches(":hover")||e(t,!(l&&o)))}),t.addEventListener("mouseleave",function(){var n=t.getAttribute("data-dropdown-toggle"),o=(i(n),document.querySelector("#".concat(n)));null!=o&&(o.matches(":hover")||e(t,!1),o.addEventListener("mouseleave",function(){t.matches(":hover")||e(t,!1)}))})}),e.default=a},440:function(t,e,i){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},n.apply(this,arguments)},o=this&&this.__spreadArray||function(t,e,i){if(i||2===arguments.length)for(var n,o=0,r=e.length;o<r;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.initPopovers=l;var r=i(915),s=i(534),a={placement:"top",offset:10,triggerType:"hover",onShow:function(){},onHide:function(){},onToggle:function(){}},c={id:null,override:!0},d=function(){function t(t,e,i,o){void 0===t&&(t=null),void 0===e&&(e=null),void 0===i&&(i=a),void 0===o&&(o=c),this._instanceId=o.id?o.id:t.id,this._targetEl=t,this._triggerEl=e,this._options=n(n({},a),i),this._popperInstance=null,this._visible=!1,this._initialized=!1,this.init(),s.default.addInstance("Popover",this,o.id?o.id:this._targetEl.id,o.override)}return t.prototype.init=function(){this._triggerEl&&this._targetEl&&!this._initialized&&(this._setupEventListeners(),this._popperInstance=this._createPopperInstance(),this._initialized=!0)},t.prototype.destroy=function(){var t=this;if(this._initialized){var e=this._getTriggerEvents();e.showEvents.forEach(function(e){t._triggerEl.removeEventListener(e,t._showHandler),t._targetEl.removeEventListener(e,t._showHandler)}),e.hideEvents.forEach(function(e){t._triggerEl.removeEventListener(e,t._hideHandler),t._targetEl.removeEventListener(e,t._hideHandler)}),this._removeKeydownListener(),this._removeClickOutsideListener(),this._popperInstance&&this._popperInstance.destroy(),this._initialized=!1}},t.prototype.removeInstance=function(){s.default.removeInstance("Popover",this._instanceId)},t.prototype.destroyAndRemoveInstance=function(){this.destroy(),this.removeInstance()},t.prototype._setupEventListeners=function(){var t=this,e=this._getTriggerEvents();this._showHandler=function(){t.show()},this._hideHandler=function(){setTimeout(function(){t._targetEl.matches(":hover")||t.hide()},100)},e.showEvents.forEach(function(e){t._triggerEl.addEventListener(e,t._showHandler),t._targetEl.addEventListener(e,t._showHandler)}),e.hideEvents.forEach(function(e){t._triggerEl.addEventListener(e,t._hideHandler),t._targetEl.addEventListener(e,t._hideHandler)})},t.prototype._createPopperInstance=function(){return(0,r.createPopper)(this._triggerEl,this._targetEl,{placement:this._options.placement,modifiers:[{name:"offset",options:{offset:[0,this._options.offset]}}]})},t.prototype._getTriggerEvents=function(){switch(this._options.triggerType){case"hover":default:return{showEvents:["mouseenter","focus"],hideEvents:["mouseleave","blur"]};case"click":return{showEvents:["click","focus"],hideEvents:["focusout","blur"]};case"none":return{showEvents:[],hideEvents:[]}}},t.prototype._setupKeydownListener=function(){var t=this;this._keydownEventListener=function(e){"Escape"===e.key&&t.hide()},document.body.addEventListener("keydown",this._keydownEventListener,!0)},t.prototype._removeKeydownListener=function(){document.body.removeEventListener("keydown",this._keydownEventListener,!0)},t.prototype._setupClickOutsideListener=function(){var t=this;this._clickOutsideEventListener=function(e){t._handleClickOutside(e,t._targetEl)},document.body.addEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._removeClickOutsideListener=function(){document.body.removeEventListener("click",this._clickOutsideEventListener,!0)},t.prototype._handleClickOutside=function(t,e){var i=t.target;i===e||e.contains(i)||this._triggerEl.contains(i)||!this.isVisible()||this.hide()},t.prototype.isVisible=function(){return this._visible},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show(),this._options.onToggle(this)},t.prototype.show=function(){this._targetEl.classList.remove("opacity-0","invisible"),this._targetEl.classList.add("opacity-100","visible"),this._popperInstance.setOptions(function(t){return n(n({},t),{modifiers:o(o([],t.modifiers,!0),[{name:"eventListeners",enabled:!0}],!1)})}),this._setupClickOutsideListener(),this._setupKeydownListener(),this._popperInstance.update(),this._visible=!0,this._options.onShow(this)},t.prototype.hide=function(){this._targetEl.classList.remove("opacity-100","visible"),this._targetEl.classList.add("opacity-0","invisible"),this._popperInstance.setOptions(function(t){return n(n({},t),{modifiers:o(o([],t.modifiers,!0),[{name:"eventListeners",enabled:!1}],!1)})}),this._removeClickOutsideListener(),this._removeKeydownListener(),this._visible=!1,this._options.onHide(this)},t.prototype.updateOnShow=function(t){this._options.onShow=t},t.prototype.updateOnHide=function(t){this._options.onHide=t},t.prototype.updateOnToggle=function(t){this._options.onToggle=t},t}();function l(){document.querySelectorAll("[data-popover-target]").forEach(function(t){var e=t.getAttribute("data-popover-target"),i=document.getElementById(e);if(i){var n=t.getAttribute("data-popover-trigger"),o=t.getAttribute("data-popover-placement"),r=t.getAttribute("data-popover-offset");new d(i,t,{placement:o||a.placement,offset:r?parseInt(r):a.offset,triggerType:n||a.triggerType})}else console.error('The popover element with id "'.concat(e,'" does not exist. Please check the data-popover-target attribute.'))})}"undefined"!=typeof window&&(window.Popover=d,window.initPopovers=l),e.default=d},459:function(t,e,i){i.r(e),i.d(e,{initCustom:function(){return r}});var n=i(265),o=i.n(n);function r(){document.querySelectorAll(".main-navigation [data-dropdown-toggle]").forEach(t=>{const e=t.getAttribute("data-dropdown-toggle"),i=document.getElementById(e);i?(new Dropdown(i,t,{triggerType:"none"},{override:!0,id:"dropdownMenu"}),o()(t,()=>{i.classList.remove("hidden"),i.classList.add("block")},()=>{i.matches(":hover")||(i.classList.remove("block"),i.classList.add("hidden"))}).options({sensitivity:7,interval:100,timeout:300}),o()(i,()=>{},()=>{t.matches(":hover")||(i.classList.remove("block"),i.classList.add("hidden"))}).options({sensitivity:7,interval:100,timeout:300})):console.error(`Dropdown element with ID "${e}" not found.`)})}"undefined"!=typeof window&&(window.initCustom=r)},534:function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var i=new(function(){function t(){this._instances={Accordion:{},Carousel:{},Collapse:{},Dial:{},Dismiss:{},Drawer:{},Dropdown:{},Modal:{},Popover:{},Tabs:{},Tooltip:{},InputCounter:{},CopyClipboard:{},Datepicker:{}}}return t.prototype.addInstance=function(t,e,i,n){if(void 0===n&&(n=!1),!this._instances[t])return console.warn("Flowbite: Component ".concat(t," does not exist.")),!1;!this._instances[t][i]||n?(n&&this._instances[t][i]&&this._instances[t][i].destroyAndRemoveInstance(),this._instances[t][i||this._generateRandomId()]=e):console.warn("Flowbite: Instance with ID ".concat(i," already exists."))},t.prototype.getAllInstances=function(){return this._instances},t.prototype.getInstances=function(t){return this._instances[t]?this._instances[t]:(console.warn("Flowbite: Component ".concat(t," does not exist.")),!1)},t.prototype.getInstance=function(t,e){if(this._componentAndInstanceCheck(t,e)){if(this._instances[t][e])return this._instances[t][e];console.warn("Flowbite: Instance with ID ".concat(e," does not exist."))}},t.prototype.destroyAndRemoveInstance=function(t,e){this._componentAndInstanceCheck(t,e)&&(this.destroyInstanceObject(t,e),this.removeInstance(t,e))},t.prototype.removeInstance=function(t,e){this._componentAndInstanceCheck(t,e)&&delete this._instances[t][e]},t.prototype.destroyInstanceObject=function(t,e){this._componentAndInstanceCheck(t,e)&&this._instances[t][e].destroy()},t.prototype.instanceExists=function(t,e){return!!this._instances[t]&&!!this._instances[t][e]},t.prototype._generateRandomId=function(){return Math.random().toString(36).substr(2,9)},t.prototype._componentAndInstanceCheck=function(t,e){return this._instances[t]?!!this._instances[t][e]||(console.warn("Flowbite: Instance with ID ".concat(e," does not exist.")),!1):(console.warn("Flowbite: Component ".concat(t," does not exist.")),!1)},t}());e.default=i,"undefined"!=typeof window&&(window.FlowbiteInstances=i)},606:function(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.initAEGov=p;var n=i(251),o=i(148),r=i(989),s=i(830),a=i(270),c=i(940),d=i(440),l=i(231),u=i(990);function p(){(0,n.initAccordions)(),(0,o.initCollapses)(),(0,r.initDismisses)(),(0,a.initDropdowns)(),(0,c.initModals)(),(0,s.initDrawers)(),(0,l.initTabs)(),(0,d.initPopovers)(),(0,u.initTooltips)()}"undefined"!=typeof window&&(window.initAEGov=p)},830:function(t,e){var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.initDrawers=s;var n={placement:"left",bodyScrolling:!1,backdrop:!0,edge:!1,edgeOffset:"bottom-[60px]",backdropClasses:"aegov-drawer-backdrop",onShow:function(){},onHide:function(){},onToggle:function(){}},o=function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=n),this._targetEl=t,this._options=i(i({},n),e),this._visible=!1,this._init()}return t.prototype._init=function(){var t=this;this._targetEl&&(this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.classList.add("transition-transform")),this._getPlacementClasses(this._options.placement).base.map(function(e){t._targetEl.classList.add(e)}),document.addEventListener("keydown",function(e){"Escape"===e.key&&t.isVisible()&&t.hide()})},t.prototype.hide=function(){var t=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(e){t._targetEl.classList.remove(e)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(e){t._targetEl.classList.add(e)})):(this._getPlacementClasses(this._options.placement).active.map(function(e){t._targetEl.classList.remove(e)}),this._getPlacementClasses(this._options.placement).inactive.map(function(e){t._targetEl.classList.add(e)})),this._targetEl.setAttribute("aria-hidden","true"),this._targetEl.removeAttribute("aria-modal"),this._targetEl.removeAttribute("role"),this._options.bodyScrolling||document.body.classList.remove("overflow-hidden"),this._options.backdrop&&this._destroyBackdropEl(),this._visible=!1,this._options.onHide(this)},t.prototype.show=function(){var t=this;this._options.edge?(this._getPlacementClasses(this._options.placement+"-edge").active.map(function(e){t._targetEl.classList.add(e)}),this._getPlacementClasses(this._options.placement+"-edge").inactive.map(function(e){t._targetEl.classList.remove(e)})):(this._getPlacementClasses(this._options.placement).active.map(function(e){t._targetEl.classList.add(e)}),this._getPlacementClasses(this._options.placement).inactive.map(function(e){t._targetEl.classList.remove(e)})),this._targetEl.setAttribute("aria-modal","true"),this._targetEl.setAttribute("role","dialog"),this._targetEl.removeAttribute("aria-hidden"),this._options.bodyScrolling||document.body.classList.add("overflow-hidden"),this._options.backdrop&&this._createBackdrop(),this._visible=!0,this._options.onShow(this)},t.prototype.toggle=function(){this.isVisible()?this.hide():this.show()},t.prototype._createBackdrop=function(){var t,e=this;if(!this._visible){var i=document.createElement("div");i.setAttribute("drawer-backdrop",""),(t=i.classList).add.apply(t,this._options.backdropClasses.split(" ")),document.querySelector("body").append(i),i.addEventListener("click",function(){e.hide()})}},t.prototype._destroyBackdropEl=function(){this._visible&&document.querySelector("[drawer-backdrop]").remove()},t.prototype._getPlacementClasses=function(t){switch(t){case"top":return{base:["top-0","left-0","right-0"],active:["transform-none"],inactive:["-translate-y-full"]};case"right":return{base:["right-0","top-0"],active:["transform-none"],inactive:["translate-x-full"]};case"bottom":return{base:["bottom-0","left-0","right-0"],active:["transform-none"],inactive:["translate-y-full"]};case"left":default:return{base:["left-0","top-0"],active:["transform-none"],inactive:["-translate-x-full"]};case"bottom-edge":return{base:["left-0","top-0"],active:["transform-none"],inactive:["translate-y-full",this._options.edgeOffset]}}},t.prototype.isHidden=function(){return!this._visible},t.prototype.isVisible=function(){return this._visible},t}(),r=function(t,e){if(e.some(function(e){return e.id===t}))return e.find(function(e){return e.id===t})};function s(){var t=[];document.querySelectorAll("[data-drawer-target]").forEach(function(e){var i=e.getAttribute("data-drawer-target"),s=document.getElementById(i);if(s){var a=e.getAttribute("data-drawer-placement"),c=e.getAttribute("data-drawer-body-scrolling"),d=e.getAttribute("data-drawer-backdrop"),l=e.getAttribute("data-drawer-edge"),u=e.getAttribute("data-drawer-edge-offset");r(i,t)||t.push({id:i,object:new o(s,{placement:a||n.placement,bodyScrolling:c?"true"===c:n.bodyScrolling,backdrop:d?"true"===d:n.backdrop,edge:l?"true"===l:n.edge,edgeOffset:u||n.edgeOffset})})}else console.error("Drawer with id ".concat(i," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-toggle]").forEach(function(e){var i=e.getAttribute("data-drawer-toggle");if(document.getElementById(i)){var n=r(i,t);n?e.addEventListener("click",function(){n.object.toggle()}):console.error("Drawer with id ".concat(i," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(i," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))}),document.querySelectorAll("[data-drawer-dismiss], [data-drawer-hide]").forEach(function(e){var i=e.getAttribute("data-drawer-dismiss")?e.getAttribute("data-drawer-dismiss"):e.getAttribute("data-drawer-hide");if(document.getElementById(i)){var n=r(i,t);n?e.addEventListener("click",function(){n.object.hide()}):console.error("Drawer with id ".concat(i," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(i," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id"))}),document.querySelectorAll("[data-drawer-show]").forEach(function(e){var i=e.getAttribute("data-drawer-show");if(document.getElementById(i)){var n=r(i,t);n?e.addEventListener("click",function(){n.object.show()}):console.error("Drawer with id ".concat(i," has not been initialized. Please initialize it using the data-drawer-target attribute."))}else console.error("Drawer with id ".concat(i," not found. Are you sure that the data-drawer-target attribute points to the correct drawer id?"))})}"undefined"!=typeof window&&(window.Drawer=o,window.initDrawers=s),e.default=o},915:function(t,e,i){i.r(e),i.d(e,{afterMain:function(){return E},afterRead:function(){return _},afterWrite:function(){return k},applyStyles:function(){return I},arrow:function(){return Q},auto:function(){return a},basePlacements:function(){return c},beforeMain:function(){return b},beforeRead:function(){return m},beforeWrite:function(){return L},bottom:function(){return o},clippingParents:function(){return u},computeStyles:function(){return it},createPopper:function(){return Pt},createPopperBase:function(){return Ct},createPopperLite:function(){return It},detectOverflow:function(){return mt},end:function(){return l},eventListeners:function(){return ot},flip:function(){return yt},hide:function(){return wt},left:function(){return s},main:function(){return w},modifierPhases:function(){return A},offset:function(){return Et},placements:function(){return g},popper:function(){return f},popperGenerator:function(){return jt},popperOffsets:function(){return Lt},preventOverflow:function(){return Ot},read:function(){return y},reference:function(){return h},right:function(){return r},start:function(){return d},top:function(){return n},variationPlacements:function(){return v},viewport:function(){return p},write:function(){return O}});var n="top",o="bottom",r="right",s="left",a="auto",c=[n,o,r,s],d="start",l="end",u="clippingParents",p="viewport",f="popper",h="reference",v=c.reduce(function(t,e){return t.concat([e+"-"+d,e+"-"+l])},[]),g=[].concat(c,[a]).reduce(function(t,e){return t.concat([e,e+"-"+d,e+"-"+l])},[]),m="beforeRead",y="read",_="afterRead",b="beforeMain",w="main",E="afterMain",L="beforeWrite",O="write",k="afterWrite",A=[m,y,_,b,w,E,L,O,k];function x(t){return t?(t.nodeName||"").toLowerCase():null}function T(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function j(t){return t instanceof T(t).Element||t instanceof Element}function C(t){return t instanceof T(t).HTMLElement||t instanceof HTMLElement}function P(t){return"undefined"!=typeof ShadowRoot&&(t instanceof T(t).ShadowRoot||t instanceof ShadowRoot)}var I={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},o=e.elements[t];C(o)&&x(o)&&(Object.assign(o.style,i),Object.keys(n).forEach(function(t){var e=n[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(t){var n=e.elements[t],o=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce(function(t,e){return t[e]="",t},{});C(n)&&x(n)&&(Object.assign(n.style,r),Object.keys(o).forEach(function(t){n.removeAttribute(t)}))})}},requires:["computeStyles"]};function S(t){return t.split("-")[0]}var D=Math.max,M=Math.min,H=Math.round;function q(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function B(){return!/^((?!chrome|android).)*safari/i.test(q())}function V(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),o=1,r=1;e&&C(t)&&(o=t.offsetWidth>0&&H(n.width)/t.offsetWidth||1,r=t.offsetHeight>0&&H(n.height)/t.offsetHeight||1);var s=(j(t)?T(t):window).visualViewport,a=!B()&&i,c=(n.left+(a&&s?s.offsetLeft:0))/o,d=(n.top+(a&&s?s.offsetTop:0))/r,l=n.width/o,u=n.height/r;return{width:l,height:u,top:d,right:c+l,bottom:d+u,left:c,x:c,y:d}}function R(t){var e=V(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function W(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&P(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function z(t){return T(t).getComputedStyle(t)}function F(t){return["table","td","th"].indexOf(x(t))>=0}function K(t){return((j(t)?t.ownerDocument:t.document)||window.document).documentElement}function N(t){return"html"===x(t)?t:t.assignedSlot||t.parentNode||(P(t)?t.host:null)||K(t)}function G(t){return C(t)&&"fixed"!==z(t).position?t.offsetParent:null}function U(t){for(var e=T(t),i=G(t);i&&F(i)&&"static"===z(i).position;)i=G(i);return i&&("html"===x(i)||"body"===x(i)&&"static"===z(i).position)?e:i||function(t){var e=/firefox/i.test(q());if(/Trident/i.test(q())&&C(t)&&"fixed"===z(t).position)return null;var i=N(t);for(P(i)&&(i=i.host);C(i)&&["html","body"].indexOf(x(i))<0;){var n=z(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function X(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Y(t,e,i){return D(t,M(e,i))}function $(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function J(t,e){return e.reduce(function(e,i){return e[i]=t,e},{})}var Q={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,a=t.name,d=t.options,l=i.elements.arrow,u=i.modifiersData.popperOffsets,p=S(i.placement),f=X(p),h=[s,r].indexOf(p)>=0?"height":"width";if(l&&u){var v=function(t,e){return $("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:J(t,c))}(d.padding,i),g=R(l),m="y"===f?n:s,y="y"===f?o:r,_=i.rects.reference[h]+i.rects.reference[f]-u[f]-i.rects.popper[h],b=u[f]-i.rects.reference[f],w=U(l),E=w?"y"===f?w.clientHeight||0:w.clientWidth||0:0,L=_/2-b/2,O=v[m],k=E-g[h]-v[y],A=E/2-g[h]/2+L,x=Y(O,A,k),T=f;i.modifiersData[a]=((e={})[T]=x,e.centerOffset=x-A,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&W(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Z(t){return t.split("-")[1]}var tt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function et(t){var e,i=t.popper,a=t.popperRect,c=t.placement,d=t.variation,u=t.offsets,p=t.position,f=t.gpuAcceleration,h=t.adaptive,v=t.roundOffsets,g=t.isFixed,m=u.x,y=void 0===m?0:m,_=u.y,b=void 0===_?0:_,w="function"==typeof v?v({x:y,y:b}):{x:y,y:b};y=w.x,b=w.y;var E=u.hasOwnProperty("x"),L=u.hasOwnProperty("y"),O=s,k=n,A=window;if(h){var x=U(i),j="clientHeight",C="clientWidth";x===T(i)&&"static"!==z(x=K(i)).position&&"absolute"===p&&(j="scrollHeight",C="scrollWidth"),(c===n||(c===s||c===r)&&d===l)&&(k=o,b-=(g&&x===A&&A.visualViewport?A.visualViewport.height:x[j])-a.height,b*=f?1:-1),c!==s&&(c!==n&&c!==o||d!==l)||(O=r,y-=(g&&x===A&&A.visualViewport?A.visualViewport.width:x[C])-a.width,y*=f?1:-1)}var P,I=Object.assign({position:p},h&&tt),S=!0===v?function(t,e){var i=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:H(i*o)/o||0,y:H(n*o)/o||0}}({x:y,y:b},T(i)):{x:y,y:b};return y=S.x,b=S.y,f?Object.assign({},I,((P={})[k]=L?"0":"",P[O]=E?"0":"",P.transform=(A.devicePixelRatio||1)<=1?"translate("+y+"px, "+b+"px)":"translate3d("+y+"px, "+b+"px, 0)",P)):Object.assign({},I,((e={})[k]=L?b+"px":"",e[O]=E?y+"px":"",e.transform="",e))}var it={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,o=void 0===n||n,r=i.adaptive,s=void 0===r||r,a=i.roundOffsets,c=void 0===a||a,d={placement:S(e.placement),variation:Z(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,et(Object.assign({},d,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,et(Object.assign({},d,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},nt={passive:!0},ot={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,o=n.scroll,r=void 0===o||o,s=n.resize,a=void 0===s||s,c=T(e.elements.popper),d=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&d.forEach(function(t){t.addEventListener("scroll",i.update,nt)}),a&&c.addEventListener("resize",i.update,nt),function(){r&&d.forEach(function(t){t.removeEventListener("scroll",i.update,nt)}),a&&c.removeEventListener("resize",i.update,nt)}},data:{}},rt={left:"right",right:"left",bottom:"top",top:"bottom"};function st(t){return t.replace(/left|right|bottom|top/g,function(t){return rt[t]})}var at={start:"end",end:"start"};function ct(t){return t.replace(/start|end/g,function(t){return at[t]})}function dt(t){var e=T(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function lt(t){return V(K(t)).left+dt(t).scrollLeft}function ut(t){var e=z(t),i=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+n)}function pt(t){return["html","body","#document"].indexOf(x(t))>=0?t.ownerDocument.body:C(t)&&ut(t)?t:pt(N(t))}function ft(t,e){var i;void 0===e&&(e=[]);var n=pt(t),o=n===(null==(i=t.ownerDocument)?void 0:i.body),r=T(n),s=o?[r].concat(r.visualViewport||[],ut(n)?n:[]):n,a=e.concat(s);return o?a:a.concat(ft(N(s)))}function ht(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function vt(t,e,i){return e===p?ht(function(t,e){var i=T(t),n=K(t),o=i.visualViewport,r=n.clientWidth,s=n.clientHeight,a=0,c=0;if(o){r=o.width,s=o.height;var d=B();(d||!d&&"fixed"===e)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:r,height:s,x:a+lt(t),y:c}}(t,i)):j(e)?function(t,e){var i=V(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):ht(function(t){var e,i=K(t),n=dt(t),o=null==(e=t.ownerDocument)?void 0:e.body,r=D(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=D(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+lt(t),c=-n.scrollTop;return"rtl"===z(o||i).direction&&(a+=D(i.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:c}}(K(t)))}function gt(t){var e,i=t.reference,a=t.element,c=t.placement,u=c?S(c):null,p=c?Z(c):null,f=i.x+i.width/2-a.width/2,h=i.y+i.height/2-a.height/2;switch(u){case n:e={x:f,y:i.y-a.height};break;case o:e={x:f,y:i.y+i.height};break;case r:e={x:i.x+i.width,y:h};break;case s:e={x:i.x-a.width,y:h};break;default:e={x:i.x,y:i.y}}var v=u?X(u):null;if(null!=v){var g="y"===v?"height":"width";switch(p){case d:e[v]=e[v]-(i[g]/2-a[g]/2);break;case l:e[v]=e[v]+(i[g]/2-a[g]/2)}}return e}function mt(t,e){void 0===e&&(e={});var i=e,s=i.placement,a=void 0===s?t.placement:s,d=i.strategy,l=void 0===d?t.strategy:d,v=i.boundary,g=void 0===v?u:v,m=i.rootBoundary,y=void 0===m?p:m,_=i.elementContext,b=void 0===_?f:_,w=i.altBoundary,E=void 0!==w&&w,L=i.padding,O=void 0===L?0:L,k=$("number"!=typeof O?O:J(O,c)),A=b===f?h:f,T=t.rects.popper,P=t.elements[E?A:b],I=function(t,e,i,n){var o="clippingParents"===e?function(t){var e=ft(N(t)),i=["absolute","fixed"].indexOf(z(t).position)>=0&&C(t)?U(t):t;return j(i)?e.filter(function(t){return j(t)&&W(t,i)&&"body"!==x(t)}):[]}(t):[].concat(e),r=[].concat(o,[i]),s=r[0],a=r.reduce(function(e,i){var o=vt(t,i,n);return e.top=D(o.top,e.top),e.right=M(o.right,e.right),e.bottom=M(o.bottom,e.bottom),e.left=D(o.left,e.left),e},vt(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(j(P)?P:P.contextElement||K(t.elements.popper),g,y,l),S=V(t.elements.reference),H=gt({reference:S,element:T,strategy:"absolute",placement:a}),q=ht(Object.assign({},T,H)),B=b===f?q:S,R={top:I.top-B.top+k.top,bottom:B.bottom-I.bottom+k.bottom,left:I.left-B.left+k.left,right:B.right-I.right+k.right},F=t.modifiersData.offset;if(b===f&&F){var G=F[a];Object.keys(R).forEach(function(t){var e=[r,o].indexOf(t)>=0?1:-1,i=[n,o].indexOf(t)>=0?"y":"x";R[t]+=G[i]*e})}return R}var yt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,l=t.name;if(!e.modifiersData[l]._skip){for(var u=i.mainAxis,p=void 0===u||u,f=i.altAxis,h=void 0===f||f,m=i.fallbackPlacements,y=i.padding,_=i.boundary,b=i.rootBoundary,w=i.altBoundary,E=i.flipVariations,L=void 0===E||E,O=i.allowedAutoPlacements,k=e.options.placement,A=S(k),x=m||(A!==k&&L?function(t){if(S(t)===a)return[];var e=st(t);return[ct(t),e,ct(e)]}(k):[st(k)]),T=[k].concat(x).reduce(function(t,i){return t.concat(S(i)===a?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,o=i.boundary,r=i.rootBoundary,s=i.padding,a=i.flipVariations,d=i.allowedAutoPlacements,l=void 0===d?g:d,u=Z(n),p=u?a?v:v.filter(function(t){return Z(t)===u}):c,f=p.filter(function(t){return l.indexOf(t)>=0});0===f.length&&(f=p);var h=f.reduce(function(e,i){return e[i]=mt(t,{placement:i,boundary:o,rootBoundary:r,padding:s})[S(i)],e},{});return Object.keys(h).sort(function(t,e){return h[t]-h[e]})}(e,{placement:i,boundary:_,rootBoundary:b,padding:y,flipVariations:L,allowedAutoPlacements:O}):i)},[]),j=e.rects.reference,C=e.rects.popper,P=new Map,I=!0,D=T[0],M=0;M<T.length;M++){var H=T[M],q=S(H),B=Z(H)===d,V=[n,o].indexOf(q)>=0,R=V?"width":"height",W=mt(e,{placement:H,boundary:_,rootBoundary:b,altBoundary:w,padding:y}),z=V?B?r:s:B?o:n;j[R]>C[R]&&(z=st(z));var F=st(z),K=[];if(p&&K.push(W[q]<=0),h&&K.push(W[z]<=0,W[F]<=0),K.every(function(t){return t})){D=H,I=!1;break}P.set(H,K)}if(I)for(var N=function(t){var e=T.find(function(e){var i=P.get(e);if(i)return i.slice(0,t).every(function(t){return t})});if(e)return D=e,"break"},G=L?3:1;G>0&&"break"!==N(G);G--);e.placement!==D&&(e.modifiersData[l]._skip=!0,e.placement=D,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function _t(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function bt(t){return[n,r,o,s].some(function(e){return t[e]>=0})}var wt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,s=mt(e,{elementContext:"reference"}),a=mt(e,{altBoundary:!0}),c=_t(s,n),d=_t(a,o,r),l=bt(c),u=bt(d);e.modifiersData[i]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:l,hasPopperEscaped:u},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":u})}},Et={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,o=t.name,a=i.offset,c=void 0===a?[0,0]:a,d=g.reduce(function(t,i){return t[i]=function(t,e,i){var o=S(t),a=[s,n].indexOf(o)>=0?-1:1,c="function"==typeof i?i(Object.assign({},e,{placement:t})):i,d=c[0],l=c[1];return d=d||0,l=(l||0)*a,[s,r].indexOf(o)>=0?{x:l,y:d}:{x:d,y:l}}(i,e.rects,c),t},{}),l=d[e.placement],u=l.x,p=l.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=p),e.modifiersData[o]=d}},Lt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=gt({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Ot={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,a=t.name,c=i.mainAxis,l=void 0===c||c,u=i.altAxis,p=void 0!==u&&u,f=i.boundary,h=i.rootBoundary,v=i.altBoundary,g=i.padding,m=i.tether,y=void 0===m||m,_=i.tetherOffset,b=void 0===_?0:_,w=mt(e,{boundary:f,rootBoundary:h,padding:g,altBoundary:v}),E=S(e.placement),L=Z(e.placement),O=!L,k=X(E),A="x"===k?"y":"x",x=e.modifiersData.popperOffsets,T=e.rects.reference,j=e.rects.popper,C="function"==typeof b?b(Object.assign({},e.rects,{placement:e.placement})):b,P="number"==typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),I=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,H={x:0,y:0};if(x){if(l){var q,B="y"===k?n:s,V="y"===k?o:r,W="y"===k?"height":"width",z=x[k],F=z+w[B],K=z-w[V],N=y?-j[W]/2:0,G=L===d?T[W]:j[W],$=L===d?-j[W]:-T[W],J=e.elements.arrow,Q=y&&J?R(J):{width:0,height:0},tt=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},et=tt[B],it=tt[V],nt=Y(0,T[W],Q[W]),ot=O?T[W]/2-N-nt-et-P.mainAxis:G-nt-et-P.mainAxis,rt=O?-T[W]/2+N+nt+it+P.mainAxis:$+nt+it+P.mainAxis,st=e.elements.arrow&&U(e.elements.arrow),at=st?"y"===k?st.clientTop||0:st.clientLeft||0:0,ct=null!=(q=null==I?void 0:I[k])?q:0,dt=z+rt-ct,lt=Y(y?M(F,z+ot-ct-at):F,z,y?D(K,dt):K);x[k]=lt,H[k]=lt-z}if(p){var ut,pt="x"===k?n:s,ft="x"===k?o:r,ht=x[A],vt="y"===A?"height":"width",gt=ht+w[pt],yt=ht-w[ft],_t=-1!==[n,s].indexOf(E),bt=null!=(ut=null==I?void 0:I[A])?ut:0,wt=_t?gt:ht-T[vt]-j[vt]-bt+P.altAxis,Et=_t?ht+T[vt]+j[vt]-bt-P.altAxis:yt,Lt=y&&_t?function(t,e,i){var n=Y(t,e,i);return n>i?i:n}(wt,ht,Et):Y(y?wt:gt,ht,y?Et:yt);x[A]=Lt,H[A]=Lt-ht}e.modifiersData[a]=H}},requiresIfExists:["offset"]};function kt(t,e,i){void 0===i&&(i=!1);var n,o,r=C(e),s=C(e)&&function(t){var e=t.getBoundingClientRect(),i=H(e.width)/t.offsetWidth||1,n=H(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),a=K(e),c=V(t,s,i),d={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!i)&&(("body"!==x(e)||ut(a))&&(d=(n=e)!==T(n)&&C(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:dt(n)),C(e)?((l=V(e,!0)).x+=e.clientLeft,l.y+=e.clientTop):a&&(l.x=lt(a))),{x:c.left+d.scrollLeft-l.x,y:c.top+d.scrollTop-l.y,width:c.width,height:c.height}}function At(t){var e=new Map,i=new Set,n=[];function o(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!i.has(t)){var n=e.get(t);n&&o(n)}}),n.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){i.has(t.name)||o(t)}),n}var xt={placement:"bottom",modifiers:[],strategy:"absolute"};function Tt(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function jt(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,o=e.defaultOptions,r=void 0===o?xt:o;return function(t,e,i){void 0===i&&(i=r);var o,s,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},xt,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],d=!1,l={state:a,setOptions:function(i){var o="function"==typeof i?i(a.options):i;u(),a.options=Object.assign({},r,a.options,o),a.scrollParents={reference:j(t)?ft(t):t.contextElement?ft(t.contextElement):[],popper:ft(e)};var s,d,p=function(t){var e=At(t);return A.reduce(function(t,i){return t.concat(e.filter(function(t){return t.phase===i}))},[])}((s=[].concat(n,a.options.modifiers),d=s.reduce(function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t},{}),Object.keys(d).map(function(t){return d[t]})));return a.orderedModifiers=p.filter(function(t){return t.enabled}),a.orderedModifiers.forEach(function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,o=t.effect;if("function"==typeof o){var r=o({state:a,name:e,instance:l,options:n});c.push(r||function(){})}}),l.update()},forceUpdate:function(){if(!d){var t=a.elements,e=t.reference,i=t.popper;if(Tt(e,i)){a.rects={reference:kt(e,U(i),"fixed"===a.options.strategy),popper:R(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach(function(t){return a.modifiersData[t.name]=Object.assign({},t.data)});for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var o=a.orderedModifiers[n],r=o.fn,s=o.options,c=void 0===s?{}:s,u=o.name;"function"==typeof r&&(a=r({state:a,options:c,name:u,instance:l})||a)}else a.reset=!1,n=-1}}},update:(o=function(){return new Promise(function(t){l.forceUpdate(),t(a)})},function(){return s||(s=new Promise(function(t){Promise.resolve().then(function(){s=void 0,t(o())})})),s}),destroy:function(){u(),d=!0}};if(!Tt(t,e))return l;function u(){c.forEach(function(t){return t()}),c=[]}return l.setOptions(i).then(function(t){!d&&i.onFirstUpdate&&i.onFirstUpdate(t)}),l}}var Ct=jt(),Pt=jt({defaultModifiers:[ot,Lt,it,I,Et,yt,Ot,Q,wt]}),It=jt({defaultModifiers:[ot,Lt,it,I]})},940:function(t,e){var i=this&&this.__assign||function(){return i=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},i.a