text: !function(e,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?module.exports=t():e.meDialog=t()}(this,function(){var e,t,n;return function(o){function i(e,t){return y.call(e,t)}function r(e,t){var n,o,i,r,a,s,c,l,u,f,d,m,p=t&&t.split("/"),h=g.map,b=h&&h["*"]||{};if(e){for(e=e.split("/"),a=e.length-1,g.nodeIdCompat&&k.test(e[a])&&(e[a]=e[a].replace(k,"")),"."===e[0].charAt(0)&&p&&(m=p.slice(0,p.length-1),e=m.concat(e)),u=0;u<e.length;u++)if(d=e[u],"."===d)e.splice(u,1),u-=1;else if(".."===d){if(0===u||1===u&&".."===e[2]||".."===e[u-1])continue;u>0&&(e.splice(u-1,2),u-=2)}e=e.join("/")}if((p||b)&&h){for(n=e.split("/"),u=n.length;u>0;u-=1){if(o=n.slice(0,u).join("/"),p)for(f=p.length;f>0;f-=1)if(i=h[p.slice(0,f).join("/")],i&&(i=i[o])){r=i,s=u;break}if(r)break;!c&&b&&b[o]&&(c=b[o],l=u)}!r&&c&&(r=c,s=l),r&&(n.splice(0,s,r),e=n.join("/"))}return e}function a(e,t){return function(){var n=T.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),m.apply(o,n.concat([e,t]))}}function s(e){return function(t){return r(t,e)}}function c(e){return function(t){b[e]=t}}function l(e){if(i(v,e)){var t=v[e];delete v[e],w[e]=!0,d.apply(o,t)}if(!i(b,e)&&!i(w,e))throw new Error("No "+e);return b[e]}function u(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function f(e){return function(){return g&&g.config&&g.config[e]||{}}}var d,m,p,h,b={},v={},g={},w={},y=Object.prototype.hasOwnProperty,T=[].slice,k=/\.js$/;p=function(e,t){var n,o=u(e),i=o[0];return e=o[1],i&&(i=r(i,t),n=l(i)),i?e=n&&n.normalize?n.normalize(e,s(t)):r(e,t):(e=r(e,t),o=u(e),i=o[0],e=o[1],i&&(n=l(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},h={require:function(e){return a(e)},exports:function(e){var t=b[e];return"undefined"!=typeof t?t:b[e]={}},module:function(e){return{id:e,uri:"",exports:b[e],config:f(e)}}},d=function(e,t,n,r){var s,u,f,d,m,g,y=[],T=typeof n;if(r=r||e,"undefined"===T||"function"===T){for(t=!t.length&&n.length?["require","exports","module"]:t,m=0;m<t.length;m+=1)if(d=p(t[m],r),u=d.f,"require"===u)y[m]=h.require(e);else if("exports"===u)y[m]=h.exports(e),g=!0;else if("module"===u)s=y[m]=h.module(e);else if(i(b,u)||i(v,u)||i(w,u))y[m]=l(u);else{if(!d.p)throw new Error(e+" missing "+u);d.p.load(d.n,a(r,!0),c(u),{}),y[m]=b[u]}f=n?n.apply(b[e],y):void 0,e&&(s&&s.exports!==o&&s.exports!==b[e]?b[e]=s.exports:f===o&&g||(b[e]=f))}else e&&(b[e]=n)},e=t=m=function(e,t,n,i,r){if("string"==typeof e)return h[e]?h[e](t):l(p(e,t).f);if(!e.splice){if(g=e,g.deps&&m(g.deps,g.callback),!t)return;t.splice?(e=t,t=n,n=null):e=o}return t=t||function(){},"function"==typeof n&&(n=i,i=r),i?d(o,e,t,n):setTimeout(function(){d(o,e,t,n)},4),m},m.config=function(e){return m(e)},e._defined=b,n=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),i(b,e)||i(v,e)||(v[e]=[e,t,n])},n.amd={jQuery:!0}}(),n("almond",function(){}),function(e,t){"function"==typeof n&&n.amd?n("meTools.fn.variable",[],t):"object"==typeof exports?"object"==typeof module?module.exports=t():exports["meTools.fn.variable"]=t():(e.meTools=e.meTools||{},e.meTools.fn=e.meTools.fn||{},e.meTools.fn.variable=t())}(this,function(){function e(t,n){n="undefined"==typeof n||n;var o,i;if(Array.isArray(t)){o=[];for(var r in t)i=t[r],o.push(n&&"object"==typeof i?e(i):i)}else if(t&&"object"==typeof t&&"undefined"==typeof t.tagName&&t!==window&&t!==document){o={};for(var a in t)i=t[a],o[a]=n&&"object"==typeof i?e(i):i}else o=t;return o}function t(n,o){n=n||{},o=o||{};var i={};for(var r in n){var a=n[r];if(o.hasOwnProperty(r)){var s=o[r];Array.isArray(s)||"object"!=typeof s||"object"!=typeof a?i[r]=e(s):i[r]=t(a,s)}else i[r]=e(a)}for(var c in o)i.hasOwnProperty(c)||(i[c]=e(o[c]));return i}function n(e){for(var t in e)return!1;return!0}return{copyValues:e,mergeObjects:t,isEmptyObject:n}}),function(e,t){"function"==typeof n&&n.amd?n("meTools.fn.element",[],t):"object"==typeof exports?"object"==typeof module?module.exports=t():exports["meTools.fn.element"]=t():(e.meTools=e.meTools||{},e.meTools.fn=e.meTools.fn||{},e.meTools.fn.element=t())}(this,function(){function e(e){return"object"==typeof e&&"undefined"!=typeof e.tagName?e:"string"==typeof e?document.getElementById(e):null}function t(e,t){var n=e.getAttribute("id");if(!n){t=t||"id-";do{var o=new Date;n=t+Math.ceil(o.valueOf()%1e4*Math.random())}while(document.getElementById(n));e.setAttribute("id",n)}return n}function n(e,t,n,o){for(var i=!1,r=!1,a=!1,s=1;s<arguments.length;s++)switch(typeof arguments[s]){case"string":i=arguments[s];break;case"object":r=arguments[s];break;case"boolean":a=arguments[s]}t=i,n=r||document.body,o=a;var c=[],l=function(e){var i=e.parentElement;if(!t||i.matches(t)){if(o)return i;c.push(i)}return i===n?o?!1:c:l(i)};return l(e)}function o(e,t){for(var n=t.parentNode;null!==n;){if(n===e)return!0;n=n.parentNode}return!1}function i(e,t,n){n=Array.isArray(n)?n:[n];for(var o=e.getAttribute(t),i=o?o.split(" "):[],r=0;r<n.length;r++){var a=n[r];-1===i.indexOf(a)&&i.push(a)}e.setAttribute(t,i.join(" "))}function r(e,t,n,o){var i=e.getAttribute(t);if(i){var r="((^| )",a="(?= |$))";i=i.replace(new RegExp(Array.isArray(n)?r+n.join(a+"|"+r)+a:r+n+a,"g"),""),o||i?e.setAttribute(t,i):e.removeAttribute(t)}}function a(e,t,n){var o=e.getAttribute(t);if(o){var i="((^| )",r="(?= |$))";return!!o.match(new RegExp(i+n+r,"g"))}return!1}function s(e){var t=n(e,"form",!0)||document,o=e.getAttribute("name");return[].slice.call(t.querySelectorAll('input[type="radio"][name="'+o+'"]'))}function c(e,t){return t=t||'a,frame,iframe,input:not([type=hidden]),select,textarea,button,*[tabindex]:not([tabindex="-1"])',l(e.querySelectorAll(t))}function l(e){for(var t=[],n=[],o=0;o<e.length;o++){var i=e[o],r=Math.max(0,i.getAttribute("tabindex")||0);t[r]=t[r]||[],t[r].push(i)}for(var a in t)for(var s in t[a])n.push(t[a][s]);return n}function u(e,t){function n(e){if(e.matches(":not([disabled])")&&(e.offsetWidth||e.offsetHeight)){if(!e.matches('input[type="radio"]'))return e;if(-1===i.indexOf(e)){var n=s(e),o=null;i=i.concat(n);for(var r=0;r<n.length;r++){var a=n[r];if(a.checked){o=a;break}}return o||(o=-1===t?n[n.length-1]:n[0]),o}return!1}}t="undefined"==typeof t?1:t;var o=[],i=[];if(1===t)for(var r=0;r<e.length;r++){var a=n(e[r]);a&&o.push(a)}else for(var c=e.length-1;c>=0;c--){var l=n(e[c]);l&&o.push(l)}return o}function f(e,t){var n=null,o=u(c(e));if("function"==typeof t&&(n=t(e,o)),!n&&o.length&&(n=o[0]),!n){var i=e.getAttribute("tabindex");i||e.setAttribute("tabindex","-1"),n=e}n.focus()}return{getElementById:e,getId:t,getAncestors:n,isParent:o,addAttributeValues:i,removeAttributeValues:r,hasAttributeValue:a,fetchFocusables:c,orderByTabindex:l,getFocusables:u,focusInside:f}}),function(e,o){if("function"==typeof n&&n.amd)n("meTools.fn.event",["meTools.fn.variable"],o);else if("object"==typeof exports){var i=t("./variable");"object"==typeof module?module.exports=o(i):exports["meTools.fn.event"]=o(i)}else e.meTools=e.meTools||{},e.meTools.fn=e.meTools.fn||{},e.meTools.fn.event=o(e.meTools.fn.variable)}(this,function(e){function t(e,t,n,o,i){i=i||!1;var r=e.registeredEvents=e.registeredEvents||{},a=r[n]=r[n]||[],s=!1;for(var c in a){var l=a[c];if(l.tg===t){s=l;break}}s||(s={tg:t,fns:[]},a.push(s)),s.fns.push([o,i]),t.addEventListener(n,o,i)}function n(t,o,i,r,a){if(t.registeredEvents){var s=t.registeredEvents;if(i){if(s.hasOwnProperty(i)){var c=s[i];if(o){var l,u=!1;for(var f in c)if(l=c[f],l.tg===o){u=l.fns;break}if(u){for(var d=0;d<u.length;d++){var m=u[d];"undefined"!=typeof r&&r&&r!==m[0]||"undefined"!=typeof a&&a!==m[1]||(u.splice(d,1),o.removeEventListener(i,m[0],m[1]),d--)}u.length||c.splice(f,1),c.length||delete s[i]}}else for(var p=e.copyValues(c);p.length;){var h=p.shift();n(t,h.tg,i,r,a)}}}else for(i in s)n(t,o,i,r,a)}}function o(e,t,n,o){t=t||250,n="undefined"==typeof n?!0:n,o=o||this;var i,r=null;return function(){var a=+new Date,s=arguments;i&&i+t>a?n&&(clearTimeout(r),r=setTimeout(function(){i=a,e.apply(o,s)},t)):(i=a,clearTimeout(r),e.apply(o,s))}}function i(e,t,n,o){t=t||250,o=o||this;var i,r=null;return function(){var a=+new Date,s=arguments;n?(!i||a>i+t)&&e.apply(o,s):(clearTimeout(r),r=setTimeout(function(){e.apply(o,s)},t)),i=a}}return{registerEvent:t,unregisterEvent:n,throttle:o,debounce:i}}),function(e,o){if("function"==typeof n&&n.amd)n("me-tools",["meTools.fn.variable","meTools.fn.element","meTools.fn.event"],o);else if("object"==typeof exports){var i=t("./fn/variable"),r=t("./fn/element"),a=t("./fn/event");"object"==typeof module?module.exports=o(i,r,a):exports.meTools=o(i,r,a)}else{var s=e.meTools;e.meTools=o(s.fn.variable,s.fn.element,s.fn.event);for(var c in s)e.meTools[c]=s[c]}}(this,function(e,t,n){var o={};for(var i in arguments)for(var r in arguments[i])o[r]=arguments[i][r];return o}),function(e,t){"function"==typeof n&&n.amd?n("me-lock-view",[],t):"object"==typeof exports?module.exports=t():e.meLockView=t()}(this,function(){"use strict";function e(e,t){m[e]=t}function t(e,t){p[e]=t}function n(){if(c){if(!d){var e=a.scrollLeft||s.scrollLeft,t=a.scrollTop||s.scrollTop;for(var n in m)m[n](e,t);c.setAttribute(l,u),c.scrollTop=t,c.scrollLeft=e,window.scrollTo(0,0)}d++}}function o(e){if(c){if("undefined"==typeof e&&(e=!0),e&&1===d){var t=c.scrollLeft,n=c.scrollTop;c.setAttribute(l,f),c.scrollTop=0,c.scrollLeft=0,window.scrollTo(t,n);for(var o in p)p[o](t,n)}d&&d--}}function i(){return!!d}function r(){a=document.body,s=document.documentElement,c=document.querySelector("["+l+"]"),c||console.error("meLockView: view-wrapper not found")}var a,s,c,l="data-me-view",u="locked",f="",d=0,m={},p={};return"loading"!==document.readyState?r():window.addEventListener("DOMContentLoaded",function h(){window.removeEventListener("DOMContentLoaded",h),r()}),{lock:n,unlock:o,isLocked:i,subscribeBeforeLock:e,subscribeAfterUnlock:t}}),function(e,o){if("function"==typeof n&&n.amd)n("me-show-transition",["me-tools"],o);else if("object"==typeof exports){var i=t("me-tools");"object"==typeof module?module.exports=o(i):exports.meShowTransition=o(i)}else e.meShowTransition=o(e.meTools)}(this,function(e){function t(t,o,i){var r=this;"boolean"!=typeof o&&(i=o,o=!1);var a=t&&e.getElementById(t);if(!a)throw new Error("meShowTransition: Container element not found");n.call(r).options=e.mergeObjects(l,i),r.container=a,o?this.show(!0):this.hide(!0)}function n(){var e=this;return e.options={},e.container=null,e.showTransitionStartAnimation=null,e.showTransitionEndTimeout=null,e.hideTransitionStartAnimation=null,e.hideTransitionEndTimeout=null,e.showing=!1,e.hiding=!1,e.hidden=!1,e}function o(){var e=this;return e.container.classList.add(e.options.indicators.shown),e.container.setAttribute("aria-hidden","false"),e}function i(){var e=this;return e.container.classList.remove(e.options.indicators.shown),e.container.setAttribute("aria-hidden","true"),e}function r(e){e=e||!1;var t=this,n=t.options.callbacks.afterShow;return n&&n({container:t.container,immediate:e}),t.showing=!1,t}function a(e){e=e||!1;var t=this,n=t.container,o=t.options.callbacks.afterHide;return n.style.display="none",t.hiding=!1,t.hidden=!0,i.call(t),o&&o({container:n,immediate:e}),t}function s(){var t=this,n=t.options,o=t.container,i=n.callbacks.afterShowTransition,a=t.options.transitionEndElement;return window.cancelAnimationFrame(t.showTransitionStartAnimation),clearTimeout(t.showTransitionEndTimeout),e.unregisterEvent(t,a,"webkitTransitionEnd"),e.unregisterEvent(t,a,"transitionend"),i&&i({container:o,immediate:!1}),o.classList.remove(n.indicators.show),r.call(t),t}function c(){var t=this,n=t.options,o=t.container,i=n.callbacks.afterHideTransition,r=t.options.transitionEndElement;return window.cancelAnimationFrame(t.hideTransitionStartAnimation),clearTimeout(t.hideTransitionEndTimeout),e.unregisterEvent(t,r,"webkitTransitionEnd"),e.unregisterEvent(t,r,"transitionend"),i&&i({container:o,immediate:!1}),o.classList.remove(n.indicators.hide),a.call(t),t}var l={callbacks:{beforeShow:!1,beforeShowTransition:!1,afterShowTransition:!1,afterShow:!1,beforeHide:!1,beforeHideTransition:!1,afterHideTransition:!1,afterHide:!1},transitionEndElement:!1,ignoreChildTransitions:!1,transitionMaxTime:500,indicators:{shown:"me-shown",show:"me-show",hide:"me-hide"}};return t.prototype.show=function(t){function n(e){a.ignoreChildTransitions&&e&&e.target&&e.target!==u||s.call(i)}var i=this,a=i.options,l=i.container,u=a.transitionEndElement||l;if(t||i.canShow()){var f=a.callbacks,d=f.beforeShow,m=f.beforeShowTransition,p=a.indicators;i.showing=!0,i.hiding&&c.call(i),i.hidden=!1,d&&d({container:l,immediate:t}),l.style.display="block",!t&&a.transitionMaxTime?(e.registerEvent(i,u,"webkitTransitionEnd",n),e.registerEvent(i,u,"transitionend",n),i.showTransitionEndTimeout=setTimeout(n,a.transitionMaxTime),i.showTransitionStartAnimation=window.requestAnimationFrame(function(){i.showTransitionStartAnimation=window.requestAnimationFrame(function(){m&&m({container:l,immediate:!1}),o.call(i),l.classList.add(p.show)})})):(o.call(i),r.call(i,t))}return i},t.prototype.hide=function(t){function n(e){i.ignoreChildTransitions&&e&&e.target&&e.target!==l||c.call(o)}var o=this,i=o.options,r=o.container,l=i.transitionEndElement||r;if(t||!o.canShow()){var u=i.callbacks,f=u.beforeHide,d=u.beforeHideTransition,m=i.indicators;o.hiding=!0,o.showing&&s.call(o),f&&f({container:r,immediate:t}),!t&&i.transitionMaxTime?(e.registerEvent(o,l,"webkitTransitionEnd",n),e.registerEvent(o,l,"transitionend",n),o.hideTransitionEndTimeout=setTimeout(n,i.transitionMaxTime),o.hideTransitionStartAnimation=window.requestAnimationFrame(function(){o.hideTransitionStartAnimation=window.requestAnimationFrame(function(){d&&d({container:r,immediate:!1}),r.classList.add(m.hide)})})):a.call(o)}return o},t.prototype.canShow=function(){return this.hiding||this.hidden},t.prototype.destroy=function(){var t=this,o=t.container,i=t.options.indicators;clearTimeout(t.showTransitionEndTimeout),clearTimeout(t.hideTransitionEndTimeout),e.unregisterEvent(t);for(var r in i)o.classList.remove(i[r]);return n.call(t),null},t}),function(e,t){"function"==typeof n&&n.amd?n("me-trap-focus",["me-tools"],t):"object"==typeof exports?module.exports=t(meTools):e.meTrapFocus=t(meTools)}(this,function(e){function t(t,i){var a=this,s=t&&e.getElementById(t);if(!s)throw new Error("meTrapFocus: Container element not found");n.call(a).options=e.mergeObjects(d,i),a.container=s,s.getAttribute("tabindex")||s.setAttribute("tabindex","-1"),e.registerEvent(a,s,"keydown",function(e){o.call(a,e)}),r.call(a)}function n(){var e=this;return e.options={},e.container=null,e.focusables=[],e}function o(e){if(!e.ctrlKey&&!e.altKey){var t=e.keyCode?e.keyCode:e.which;if(t==f){var n,o=this,i=o.options.taboutIndicator,r=o.focusables;e.shiftKey?(n=s.call(o,-1),(n[n[0].matches(i)?1:0]===e.target||r.indexOf(e.target)<r.indexOf(n[0])||e.target===o.container)&&(l.call(o,n),e.preventDefault())):(n=s.call(o,1),(n[n.length-(n[n.length-1].matches(i)?2:1)]===e.target||r.indexOf(e.target)>r.indexOf(n[n.length-1]))&&(c.call(o,n),e.preventDefault()))}}}function i(t){var n=e.getAncestors(t,"form",!0)||document,o=t.getAttribute("name");return[].slice.call(n.querySelectorAll('input[type="radio"][name="'+o+'"]'))}function r(){var t=this,n=t.options,o=function(e){u.call(t,e)};t.focusables=a(t.container.querySelectorAll(n.focusableSelector));for(var i=0;i<t.focusables.length;i++){var r=t.focusables[i];r.matches(n.taboutIndicator)&&(e.unregisterEvent(t,r,"focus"),e.registerEvent(t,r,"focus",o))}return t}function a(e){for(var t=[],n=[],o=0;o<e.length;o++){var i=e[o],r=Math.max(0,i.getAttribute("tabindex")||0);t[r]=t[r]||[],t[r].push(i)}for(var a in t)for(var s in t[a])n.push(t[a][s]);return n}function s(e){e="undefined"==typeof e?1:e;for(var t=this,n=t.focusables,o=[],r=[],a=0;a<n.length;a++){var s=n[a],c=null;s.getAttribute("tabindex")||0;if(s.matches(":not([disabled])")&&s.matches(':not([tabindex="-1"])')&&(s.offsetWidth||s.offsetHeight))if(s.matches('input[type="radio"]')){if(-1===r.indexOf(s)){var l=i.call(t,s),u=null;r=r.concat(l);for(var f=0;f<l.length;f++){var d=l[f];if(d.checked){u=d;break}}u||(u=-1===e?l[l.length-1]:l[0]),c=u}}else c=s;c&&o.push(c)}return o}function c(e){var t=this,n=t.options.taboutIndicator,o=e[0];o.matches(n)&&(o=e[1]),o.matches("iframe")?setTimeout(function(){o.contentWindow.focus()},100):o.focus()}function l(e){var t=this,n=t.options.taboutIndicator,o=e[e.length-1];o.matches(n)&&(o=e[e.length-2]),o.matches("iframe")?setTimeout(function(){o.contentWindow.focus()},100):o.focus()}function u(e){var t=this,n=e.target,o=s.call(t,1),i=s.call(t,-1);n==i[0]?l.call(t,i):n==o[o.length-1]&&c.call(t,o)}var f=9,d={focusableSelector:"a,frame,iframe,input:not([type=hidden]),select,textarea,button,*[tabindex]",taboutIndicator:".me-tabout"};return t.prototype.update=function(){return r.call(this)},t.prototype.getFocusables=function(){return e.copyValues(this.focusables,!1)},t.prototype.getTabable=function(t){return e.copyValues(t?s.call(this,-1):s.call(this,1),!1)},t.prototype.destroy=function(){var t=this;return n.call(t),e.unregisterEvent(t),null},t}),function(e,o){if("function"==typeof n&&n.amd)n("meDialog",["me-tools","me-lock-view","me-show-transition","me-trap-focus"],o);else if("object"==typeof exports){var i=t("me-tools"),r=t("me-lock-view"),a=t("me-show-transition"),s=t("me-trap-focus");"object"==typeof module?module.exports=o(i,r,a,s):exports.meDialog=o(i,r,a,s)}else e.meDialog=o(e.meTools,e.meLockView,e.meShowTransition,e.meTrapFocus)}(this,function(e,t,n,o){function i(t,n){var o=this;r.call(o).options=e.mergeObjects(B,n),a.call(o,t)}function r(){var e=this;return e.shown=!1,e.options={},e.container=null,e.backdrop=null,e.trigger=null,e.meTrapFocus=null,e.mainShowTransition=null,e.backdropShowTransition=null,e.keepBackdrop=!1,e}function a(e){var t=this,n=t.options;return t.container=s.call(t,e),n.modal&&(t.backdrop=c.call(t)),l.call(t),u.call(t),f.call(t),d.call(t),m.call(t),t}function s(t){var n=this,o=e.getElementById(t);if(!o)throw L+": Container element not found";return o.setAttribute("role","dialog"),e.registerEvent(n,o,"click",function(e){y.call(n,e)}),e.registerEvent(n,o,"keydown",function(e){T.call(n,e)}),e.registerEvent(n,o,"showdialog",function(e){g.call(n,e.detail)}),e.registerEvent(n,o,"hidedialog",function(e){w.call(n)}),o}function c(){var t=this,o=t.options,i=t.container,r=o.backdrop,a=!1;if("string"==typeof r?a=i.querySelector(r):r&&"object"==typeof r&&"undefined"!=typeof r.tagName&&(a=r),!a)throw L+": Backdrop element not found";if(a.setAttribute("tabindex","-1"),e.registerEvent(t,a,"click",function(e){k.call(t,e.target)}),!e.isParent(t.container,a)){var s=e.copyValues(t.options);s.callbacks={},a.data&&a.data[L]&&a.data[L].transition?(t.backdropShowTransition=a.data[L].transition,a.data[L].assignedTransitions++):(t.backdropShowTransition=new n(a,s),a.data=a.data||{},a.data[L]=a.data[L]||{},a.data[L].transition=t.backdropShowTransition,a.data[L].assignedTransitions=1)}return a}function l(){var t=this,n=t.options,o=t.container,i=n.label,r=!1;if("string"==typeof i?r=o.querySelector(i):"object"==typeof i&&"undefined"!=typeof i.tagName&&(r=i),r)o.setAttribute("aria-labelledby",e.getId(r,n.idPrefix));else{if("string"!=typeof i)throw L+": Label element not found";o.setAttribute("aria-label",i)}return t}function u(){for(var t=this,n=t.container.querySelectorAll(t.options.closeSelector),o=function(){-1!==this.className.indexOf(t.options.keepBackdropIndicator)&&(t.keepBackdrop=!0),h.call(t)},i=0;i<n.length;i++)e.registerEvent(t,n[i],"click",o);return t}function f(){var e=this,t=e.container;return e.meTrapFocus=new o(t,e.options),t.hasAttribute("tabindex")||(t.setAttribute("data-tabindexed","true"),t.setAttribute("tabindex","-1")),e}function d(){function o(e,t){f[t]&&(e.backdrop=l.backdrop,e.trigger=l.trigger,f[t](e))}function i(e){return function(t){o(t,e)}}function r(e){o(e,"beforeShow"),l.backdropShowTransition&&l.backdropShowTransition.show(e.immediate),u.lockView&&t.lock(),l.trigger&&l.trigger.setAttribute("aria-expanded","true"),l.container.setAttribute("aria-hidden","false")}function a(e){l.meTrapFocus.update(),E.call(l),o(e,"afterShow")}function s(e){o(e,"beforeHide"),l.backdropShowTransition&&!l.keepBackdrop&&l.backdropShowTransition.hide(e.immediate),l.trigger&&(l.trigger.setAttribute("aria-expanded","false"),S.call(x.call(l)))}function c(e){v.call(l),u.lockView&&t.unlock(!l.keepBackdrop),l.keepBackdrop=!1,l.container.setAttribute("aria-hidden","true"),o(e,"afterHide")}var l=this,u=l.options,f=u.callbacks,d=e.copyValues(u);return d.callbacks={},d.callbacks={beforeShow:r,beforeShowTransition:i("beforeShowTransition"),afterShowTransition:i("afterShowTransition"),afterShow:a,beforeHide:s,beforeHideTransition:i("beforeHideTransition"),afterHideTransition:i("afterHideTransition"),afterHide:c},l.mainShowTransition=new n(l.container,d),l}function m(){for(var t=this,n=e.getId(t.container,t.options.idPrefix),o=document.querySelectorAll("["+q+'="'+n+'"]'),i=0;i<o.length;i++){var r=o[i];r.setAttribute("aria-controls",n),r.setAttribute("aria-expanded","false"),e.registerEvent(t,r,"click",t.show.bind(t,r))}return t}function p(e,t){return b.call(this,t),this.mainShowTransition.show(e),this}function h(e){return this.mainShowTransition.hide(e),this}function b(e){var t=this;return e&&t.container.setAttribute(t.options.viewPropsAttribute,e),t}function v(){var e=this;return e.container.removeAttribute(e.options.viewPropsAttribute),e}function g(e){this.show(e.trigger)}function w(){this.hide()}function y(e){var t=this;t.options}function T(e){if(!e.ctrlKey&&!e.altKey){var t=e.keyCode?e.keyCode:e.which;this.options.requireConfirm||t!=O||(h.call(this),e.stopPropagation())}}function k(e){var t=this;return t.backdrop==e&&(t.options.closeOnBackdrop?h.call(t):t.container.focus()),t}function A(e){return this.trigger=e,this}function x(){var e=this;return e.trigger&&e.trigger.focus(),e}function S(){return this.trigger=null,this}function E(){var e=this,t=e.options,n=t.customHandler.focus,o=null,i=e.meTrapFocus.getTabable();if("function"==typeof n&&(o=n(e.container)),!o)for(var r=0;r<i.length;r++)if(!i[r].matches(t.closeSelector)){o=i[r];break}!o&&i.length&&(o=i[0]),(o||(i.length?i[0]:e.container)).focus()}function j(){for(var e=document.querySelectorAll("["+H+"]"),t=0;t<e.length;t++)new i(e[t])}var L="meDialog",O=27,H="data-me-dialog",q="data-me-show-dialog",B={modal:!0,backdrop:".me-backdrop",closeOnBackdrop:!1,label:".me-label",closeSelector:".me-close",keepBackdropIndicator:"me-keep-backdrop",requireConfirm:!1,viewPropsAttribute:"data-view-props",customHandler:{focus:!1},callbacks:{beforeShow:!1,beforeShowTransition:!1,afterShowTransition:!1,afterShow:!1,beforeHide:!1,beforeHideTransition:!1,afterHideTransition:!1,afterHide:!1},lockView:!0,idPrefix:"id-"};return i.prototype.show=function(){for(var e,t,n,o=this,i=0;i<arguments.length;i++){var r=arguments[i],a=typeof r;"boolean"===a?t=r:"string"===a?n=r:"object"===a&&(r.tagName?e=r:r.preventDefault&&r.preventDefault())}return e&&A.call(o,e),p.call(o,t,n)},i.prototype.hide=function(){return h.call(this)},i.prototype.update=function(){return this.meTrapFocus.update(),this},i.prototype.canShow=function(){return this.mainShowTransition.canShow()},i.prototype.destroy=function(){var n=this,o=n.container;return o.removeAttribute("role"),o.removeAttribute("aria-hidden"),o.removeAttribute("aria-labelledby"),o.removeAttribute("aria-label"),n.backdrop.removeAttribute("tabindex"),o.getAttribute("data-tabindexed")&&(o.removeAttribute("data-tabindexed"),o.removeAttribute("tabindex")),n.trigger&&n.trigger.removeAttribute("aria-expanded"),t.unlock(!n.keepBackdrop),e.unregisterEvent(n),n.meTrapFocus.destroy(),n.mainShowTransition.destroy(),n.backdropShowTransition&&(n.backdrop.data[L].assignedTransitions>1?n.backdrop.data[L].assignedTransitions--:n.backdropShowTransition.destroy()),r.call(n),null},(document.attachEvent?"complete"===document.readyState:"loading"!==document.readyState)?j():window.addEventListener("DOMContentLoaded",function D(){window.removeEventListener("DOMContentLoaded",D),j()}),i}),function(e){e.matches=e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){var t=this,n=[].slice.call(document.querySelectorAll(e));return-1!==n.indexOf(t)}}(Element.prototype),n("matchesPolyfill",function(e){return function(){var t;return t||e.matchesPolyfill}}(this)),t("meDialog")});
  //# sourceMappingURL=me-dialog.bundle.min.js.map
  /**
   * @license me-dialog 3.0.2 Copyright (c) Mandana Eibegger <scripts@schoener.at>
   * Available via the MIT license.
   * see: https://github.com/meibegger/me-dialog for details
   */
  
  /**
   * @license me-dialog 3.0.2 Copyright (c) Mandana Eibegger <scripts@schoener.at>
   * Available via the MIT license.
   * see: https://github.com/meibegger/me-dialog for details
   */
  