biofriction-wp-plugin/biofriction-theme/dist/assets/js/app.js

3 lines
266 KiB
JavaScript

/*! For license information please see app.js.LICENSE.txt */
(()=>{var e={545:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Foundation=void 0;var i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=(i=n(609))&&i.__esModule?i:{default:i},a=n(318),s=n(857),u={version:"6.5.1",_plugins:{},_uuids:[],plugin:function(e,t){var n=t||l(e),i=d(n);this._plugins[i]=this[n]=e},registerPlugin:function(e,t){var n=t?d(t):l(e.constructor).toLowerCase();e.uuid=(0,a.GetYoDigits)(6,n),e.$element.attr("data-"+n)||e.$element.attr("data-"+n,e.uuid),e.$element.data("zfPlugin")||e.$element.data("zfPlugin",e),e.$element.trigger("init.zf."+n),this._uuids.push(e.uuid)},unregisterPlugin:function(e){var t=d(l(e.$element.data("zfPlugin").constructor));for(var n in this._uuids.splice(this._uuids.indexOf(e.uuid),1),e.$element.removeAttr("data-"+t).removeData("zfPlugin").trigger("destroyed.zf."+t),e)e[n]=null},reInit:function(e){var t=e instanceof r.default;try{if(t)e.each((function(){(0,r.default)(this).data("zfPlugin")._init()}));else{var n=void 0===e?"undefined":o(e),i=this;({object:function(e){e.forEach((function(e){e=d(e),(0,r.default)("[data-"+e+"]").foundation("_init")}))},string:function(){e=d(e),(0,r.default)("[data-"+e+"]").foundation("_init")},undefined:function(){this.object(Object.keys(i._plugins))}})[n](e)}}catch(e){console.error(e)}finally{return e}},reflow:function(e,t){void 0===t?t=Object.keys(this._plugins):"string"==typeof t&&(t=[t]);var n=this;r.default.each(t,(function(t,i){var o=n._plugins[i];(0,r.default)(e).find("[data-"+i+"]").addBack("[data-"+i+"]").each((function(){var e=(0,r.default)(this),t={};if(e.data("zfPlugin"))console.warn("Tried to initialize "+i+" on an element that already has a Foundation plugin.");else{e.attr("data-options")&&e.attr("data-options").split(";").forEach((function(e,n){var i,o=e.split(":").map((function(e){return e.trim()}));o[0]&&(t[o[0]]="true"===(i=o[1])||"false"!==i&&(isNaN(1*i)?i:parseFloat(i)))}));try{e.data("zfPlugin",new o((0,r.default)(this),t))}catch(e){console.error(e)}finally{return}}}))}))},getFnName:l,addToJquery:function(e){return e.fn.foundation=function(t){var n=void 0===t?"undefined":o(t),i=e(".no-js");if(i.length&&i.removeClass("no-js"),"undefined"===n)s.MediaQuery._init(),u.reflow(this);else{if("string"!==n)throw new TypeError("We're sorry, "+n+" is not a valid parameter. You must use a string representing the method you wish to invoke.");var r=Array.prototype.slice.call(arguments,1),a=this.data("zfPlugin");if(void 0===a||void 0===a[t])throw new ReferenceError("We're sorry, '"+t+"' is not an available method for "+(a?l(a):"this element")+".");1===this.length?a[t].apply(a,r):this.each((function(n,i){a[t].apply(e(i).data("zfPlugin"),r)}))}return this},e}};function l(e){if(void 0===Function.prototype.name){var t=/function\s([^(]{1,})\(/.exec(e.toString());return t&&t.length>1?t[1].trim():""}return void 0===e.prototype?e.constructor.name:e.prototype.constructor.name}function d(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}u.util={throttle:function(e,t){var n=null;return function(){var i=this,o=arguments;null===n&&(n=setTimeout((function(){e.apply(i,o),n=null}),t))}}},window.Foundation=u,function(){Date.now&&window.Date.now||(window.Date.now=Date.now=function(){return(new Date).getTime()});for(var e=["webkit","moz"],t=0;t<e.length&&!window.requestAnimationFrame;++t){var n=e[t];window.requestAnimationFrame=window[n+"RequestAnimationFrame"],window.cancelAnimationFrame=window[n+"CancelAnimationFrame"]||window[n+"CancelRequestAnimationFrame"]}if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){var i=0;window.requestAnimationFrame=function(e){var t=Date.now(),n=Math.max(i+16,t);return setTimeout((function(){e(i=n)}),n-t)},window.cancelAnimationFrame=clearTimeout}window.performance&&window.performance.now||(window.performance={start:Date.now(),now:function(){return Date.now()-this.start}})}(),Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),n=this,i=function(){},o=function(){return n.apply(this instanceof i?this:e,t.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(i.prototype=this.prototype),o.prototype=new i,o}),t.Foundation=u},93:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Plugin=void 0;var i,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=((i=n(609))&&i.__esModule,n(318)),a=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._setup(t,n);var i=u(this);this.uuid=(0,r.GetYoDigits)(6,i),this.$element.attr("data-"+i)||this.$element.attr("data-"+i,this.uuid),this.$element.data("zfPlugin")||this.$element.data("zfPlugin",this),this.$element.trigger("init.zf."+i)}return o(e,[{key:"destroy",value:function(){this._destroy();var e=u(this);for(var t in this.$element.removeAttr("data-"+e).removeData("zfPlugin").trigger("destroyed.zf."+e),this)this[t]=null}}]),e}();function s(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function u(e){return void 0!==e.constructor.name?s(e.constructor.name):s(e.className)}t.Plugin=a},318:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ignoreMousedisappear=t.onLoad=t.transitionend=t.RegExpEscape=t.GetYoDigits=t.rtl=void 0;var i,o=(i=n(609))&&i.__esModule?i:{default:i};t.rtl=function(){return"rtl"===(0,o.default)("html").attr("dir")},t.GetYoDigits=function(e,t){return e=e||6,Math.round(Math.pow(36,e+1)-Math.random()*Math.pow(36,e)).toString(36).slice(1)+(t?"-"+t:"")},t.RegExpEscape=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},t.transitionend=function(e){var t,n={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend"},i=document.createElement("div");for(var o in n)void 0!==i.style[o]&&(t=n[o]);return t||(t=setTimeout((function(){e.triggerHandler("transitionend",[e])}),1),"transitionend")},t.onLoad=function(e,t){var n="complete"===document.readyState,i=(n?"_didLoad":"load")+".zf.util.onLoad",r=function(){return e.triggerHandler(i)};return e&&(t&&e.one(i,t),n?setTimeout(r):(0,o.default)(window).one("load",r)),i},t.ignoreMousedisappear=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.ignoreLeaveWindow,i=void 0!==n&&n,r=t.ignoreReappear,a=void 0!==r&&r;return function(t){for(var n=arguments.length,r=Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];var u=e.bind.apply(e,[this,t].concat(r));if(null!==t.relatedTarget)return u();setTimeout((function(){if(!i&&document.hasFocus&&!document.hasFocus())return u();a||(0,o.default)(document).one("mouseenter",(function(e){(0,o.default)(t.currentTarget).has(e.target).length||(t.relatedTarget=e.target,u())}))}),0)}}},354:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Dropdown=void 0;var i,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function e(t,n,i){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var r=Object.getPrototypeOf(t);return null===r?void 0:e(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},a=(i=n(609))&&i.__esModule?i:{default:i},s=n(401),u=n(318),l=n(382),d=n(274);function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=function(e){function t(){return f(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"_setup",value:function(e,n){this.$element=e,this.options=a.default.extend({},t.defaults,this.$element.data(),n),this.className="Dropdown",d.Triggers.init(a.default),this._init(),s.Keyboard.register("Dropdown",{ENTER:"toggle",SPACE:"toggle",ESCAPE:"close"})}},{key:"_init",value:function(){var e=this.$element.attr("id");this.$anchors=(0,a.default)('[data-toggle="'+e+'"]').length?(0,a.default)('[data-toggle="'+e+'"]'):(0,a.default)('[data-open="'+e+'"]'),this.$anchors.attr({"aria-controls":e,"data-is-focus":!1,"data-yeti-box":e,"aria-haspopup":!0,"aria-expanded":!1}),this._setCurrentAnchor(this.$anchors.first()),this.options.parentClass?this.$parent=this.$element.parents("."+this.options.parentClass):this.$parent=null,void 0===this.$element.attr("aria-labelledby")&&(void 0===this.$currentAnchor.attr("id")&&this.$currentAnchor.attr("id",(0,u.GetYoDigits)(6,"dd-anchor")),this.$element.attr("aria-labelledby",this.$currentAnchor.attr("id"))),this.$element.attr({"aria-hidden":"true","data-yeti-box":e,"data-resize":e}),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_init",this).call(this),this._events()}},{key:"_getDefaultPosition",value:function(){var e=this.$element[0].className.match(/(top|left|right|bottom)/g);return e?e[0]:"bottom"}},{key:"_getDefaultAlignment",value:function(){var e=/float-(\S+)/.exec(this.$currentAnchor.attr("class"));return e?e[1]:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_getDefaultAlignment",this).call(this)}},{key:"_setPosition",value:function(){this.$element.removeClass("has-position-"+this.position+" has-alignment-"+this.alignment),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"_setPosition",this).call(this,this.$currentAnchor,this.$element,this.$parent),this.$element.addClass("has-position-"+this.position+" has-alignment-"+this.alignment)}},{key:"_setCurrentAnchor",value:function(e){this.$currentAnchor=(0,a.default)(e)}},{key:"_events",value:function(){var e=this;this.$element.on({"open.zf.trigger":this.open.bind(this),"close.zf.trigger":this.close.bind(this),"toggle.zf.trigger":this.toggle.bind(this),"resizeme.zf.trigger":this._setPosition.bind(this)}),this.$anchors.off("click.zf.trigger").on("click.zf.trigger",(function(){e._setCurrentAnchor(this)})),this.options.hover&&(this.$anchors.off("mouseenter.zf.dropdown mouseleave.zf.dropdown").on("mouseenter.zf.dropdown",(function(){e._setCurrentAnchor(this);var t=(0,a.default)("body").data();void 0!==t.whatinput&&"mouse"!==t.whatinput||(clearTimeout(e.timeout),e.timeout=setTimeout((function(){e.open(),e.$anchors.data("hover",!0)}),e.options.hoverDelay))})).on("mouseleave.zf.dropdown",(0,u.ignoreMousedisappear)((function(){clearTimeout(e.timeout),e.timeout=setTimeout((function(){e.close(),e.$anchors.data("hover",!1)}),e.options.hoverDelay)}))),this.options.hoverPane&&this.$element.off("mouseenter.zf.dropdown mouseleave.zf.dropdown").on("mouseenter.zf.dropdown",(function(){clearTimeout(e.timeout)})).on("mouseleave.zf.dropdown",(0,u.ignoreMousedisappear)((function(){clearTimeout(e.timeout),e.timeout=setTimeout((function(){e.close(),e.$anchors.data("hover",!1)}),e.options.hoverDelay)})))),this.$anchors.add(this.$element).on("keydown.zf.dropdown",(function(t){var n=(0,a.default)(this);s.Keyboard.findFocusable(e.$element),s.Keyboard.handleKey(t,"Dropdown",{open:function(){n.is(e.$anchors)&&!n.is("input, textarea")&&(e.open(),e.$element.attr("tabindex",-1).focus(),t.preventDefault())},close:function(){e.close(),e.$anchors.focus()}})}))}},{key:"_addBodyHandler",value:function(){var e=(0,a.default)(document.body).not(this.$element),t=this;e.off("click.zf.dropdown").on("click.zf.dropdown",(function(n){t.$anchors.is(n.target)||t.$anchors.find(n.target).length||t.$element.is(n.target)||t.$element.find(n.target).length||(t.close(),e.off("click.zf.dropdown"))}))}},{key:"open",value:function(){if(this.$element.trigger("closeme.zf.dropdown",this.$element.attr("id")),this.$anchors.addClass("hover").attr({"aria-expanded":!0}),this.$element.addClass("is-opening"),this._setPosition(),this.$element.removeClass("is-opening").addClass("is-open").attr({"aria-hidden":!1}),this.options.autoFocus){var e=s.Keyboard.findFocusable(this.$element);e.length&&e.eq(0).focus()}this.options.closeOnClick&&this._addBodyHandler(),this.options.trapFocus&&s.Keyboard.trapFocus(this.$element),this.$element.trigger("show.zf.dropdown",[this.$element])}},{key:"close",value:function(){if(!this.$element.hasClass("is-open"))return!1;this.$element.removeClass("is-open").attr({"aria-hidden":!0}),this.$anchors.removeClass("hover").attr("aria-expanded",!1),this.$element.trigger("hide.zf.dropdown",[this.$element]),this.options.trapFocus&&s.Keyboard.releaseFocus(this.$element)}},{key:"toggle",value:function(){if(this.$element.hasClass("is-open")){if(this.$anchors.data("hover"))return;this.close()}else this.open()}},{key:"_destroy",value:function(){this.$element.off(".zf.trigger").hide(),this.$anchors.off(".zf.dropdown"),(0,a.default)(document.body).off("click.zf.dropdown")}}]),t}(l.Positionable);h.defaults={parentClass:null,hoverDelay:250,hover:!1,hoverPane:!1,vOffset:0,hOffset:0,position:"auto",alignment:"auto",allowOverlap:!1,allowBottomOverlap:!0,trapFocus:!1,autoFocus:!1,closeOnClick:!1},t.Dropdown=h},960:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DropdownMenu=void 0;var i,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=(i=n(609))&&i.__esModule?i:{default:i},a=n(93),s=n(318),u=n(401),l=n(231),d=n(778);function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=function(e){function t(){return f(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"_setup",value:function(e,n){this.$element=e,this.options=r.default.extend({},t.defaults,this.$element.data(),n),this.className="DropdownMenu",this._init(),u.Keyboard.register("DropdownMenu",{ENTER:"open",SPACE:"open",ARROW_RIGHT:"next",ARROW_UP:"up",ARROW_DOWN:"down",ARROW_LEFT:"previous",ESCAPE:"close"})}},{key:"_init",value:function(){l.Nest.Feather(this.$element,"dropdown");var e=this.$element.find("li.is-dropdown-submenu-parent");this.$element.children(".is-dropdown-submenu-parent").children(".is-dropdown-submenu").addClass("first-sub"),this.$menuItems=this.$element.find('[role="menuitem"]'),this.$tabs=this.$element.children('[role="menuitem"]'),this.$tabs.find("ul.is-dropdown-submenu").addClass(this.options.verticalClass),"auto"===this.options.alignment?this.$element.hasClass(this.options.rightClass)||(0,s.rtl)()||this.$element.parents(".top-bar-right").is("*")?(this.options.alignment="right",e.addClass("opens-left")):(this.options.alignment="left",e.addClass("opens-right")):"right"===this.options.alignment?e.addClass("opens-left"):e.addClass("opens-right"),this.changed=!1,this._events()}},{key:"_isVertical",value:function(){return"block"===this.$tabs.css("display")||"column"===this.$element.css("flex-direction")}},{key:"_isRtl",value:function(){return this.$element.hasClass("align-right")||(0,s.rtl)()&&!this.$element.hasClass("align-left")}},{key:"_events",value:function(){var e=this,t="ontouchstart"in window||void 0!==window.ontouchstart,n="is-dropdown-submenu-parent";(this.options.clickOpen||t)&&this.$menuItems.on("click.zf.dropdownmenu touchstart.zf.dropdownmenu",(function(i){var o=(0,r.default)(i.target).parentsUntil("ul","."+n),a=o.hasClass(n),s="true"===o.attr("data-is-click"),u=o.children(".is-dropdown-submenu");if(a)if(s){if(!e.options.closeOnClick||!e.options.clickOpen&&!t||e.options.forceFollow&&t)return;i.stopImmediatePropagation(),i.preventDefault(),e._hide(o)}else i.preventDefault(),i.stopImmediatePropagation(),e._show(u),o.add(o.parentsUntil(e.$element,"."+n)).attr("data-is-click",!0)})),e.options.closeOnClickInside&&this.$menuItems.on("click.zf.dropdownmenu",(function(t){(0,r.default)(this).hasClass(n)||e._hide()})),this.options.disableHover||this.$menuItems.on("mouseenter.zf.dropdownmenu",(function(t){var i=(0,r.default)(this);i.hasClass(n)&&(clearTimeout(i.data("_delay")),i.data("_delay",setTimeout((function(){e._show(i.children(".is-dropdown-submenu"))}),e.options.hoverDelay)))})).on("mouseleave.zf.dropdownMenu",(0,s.ignoreMousedisappear)((function(t){var i=(0,r.default)(this);if(i.hasClass(n)&&e.options.autoclose){if("true"===i.attr("data-is-click")&&e.options.clickOpen)return!1;clearTimeout(i.data("_delay")),i.data("_delay",setTimeout((function(){e._hide(i)}),e.options.closingTime))}}))),this.$menuItems.on("keydown.zf.dropdownmenu",(function(t){var n,i,o=(0,r.default)(t.target).parentsUntil("ul",'[role="menuitem"]'),a=e.$tabs.index(o)>-1,s=a?e.$tabs:o.siblings("li").add(o);s.each((function(e){if((0,r.default)(this).is(o))return n=s.eq(e-1),void(i=s.eq(e+1))}));var l=function(){i.children("a:first").focus(),t.preventDefault()},d=function(){n.children("a:first").focus(),t.preventDefault()},f=function(){var n=o.children("ul.is-dropdown-submenu");n.length&&(e._show(n),o.find("li > a:first").focus(),t.preventDefault())},c=function(){var n=o.parent("ul").parent("li");n.children("a:first").focus(),e._hide(n),t.preventDefault()},h={open:f,close:function(){e._hide(e.$element),e.$menuItems.eq(0).children("a").focus(),t.preventDefault()},handled:function(){t.stopImmediatePropagation()}};a?e._isVertical()?e._isRtl()?r.default.extend(h,{down:l,up:d,next:c,previous:f}):r.default.extend(h,{down:l,up:d,next:f,previous:c}):e._isRtl()?r.default.extend(h,{next:d,previous:l,down:f,up:c}):r.default.extend(h,{next:l,previous:d,down:f,up:c}):e._isRtl()?r.default.extend(h,{next:c,previous:f,down:l,up:d}):r.default.extend(h,{next:f,previous:c,down:l,up:d}),u.Keyboard.handleKey(t,"DropdownMenu",h)}))}},{key:"_addBodyHandler",value:function(){var e=(0,r.default)(document.body),t=this;e.off("mouseup.zf.dropdownmenu touchend.zf.dropdownmenu").on("mouseup.zf.dropdownmenu touchend.zf.dropdownmenu",(function(n){t.$element.find(n.target).length||(t._hide(),e.off("mouseup.zf.dropdownmenu touchend.zf.dropdownmenu"))}))}},{key:"_show",value:function(e){var t=this.$tabs.index(this.$tabs.filter((function(t,n){return(0,r.default)(n).find(e).length>0}))),n=e.parent("li.is-dropdown-submenu-parent").siblings("li.is-dropdown-submenu-parent");this._hide(n,t),e.css("visibility","hidden").addClass("js-dropdown-active").parent("li.is-dropdown-submenu-parent").addClass("is-active");var i=d.Box.ImNotTouchingYou(e,null,!0);if(!i){var o="left"===this.options.alignment?"-right":"-left",a=e.parent(".is-dropdown-submenu-parent");a.removeClass("opens"+o).addClass("opens-"+this.options.alignment),(i=d.Box.ImNotTouchingYou(e,null,!0))||a.removeClass("opens-"+this.options.alignment).addClass("opens-inner"),this.changed=!0}e.css("visibility",""),this.options.closeOnClick&&this._addBodyHandler(),this.$element.trigger("show.zf.dropdownmenu",[e])}},{key:"_hide",value:function(e,t){var n;if((n=e&&e.length?e:void 0!==t?this.$tabs.not((function(e,n){return e===t})):this.$element).hasClass("is-active")||n.find(".is-active").length>0){if(n.find("li.is-active").add(n).attr({"data-is-click":!1}).removeClass("is-active"),n.find("ul.js-dropdown-active").removeClass("js-dropdown-active"),this.changed||n.find("opens-inner").length){var i="left"===this.options.alignment?"right":"left";n.find("li.is-dropdown-submenu-parent").add(n).removeClass("opens-inner opens-"+this.options.alignment).addClass("opens-"+i),this.changed=!1}this.$element.trigger("hide.zf.dropdownmenu",[n])}}},{key:"_destroy",value:function(){this.$menuItems.off(".zf.dropdownmenu").removeAttr("data-is-click").removeClass("is-right-arrow is-left-arrow is-down-arrow opens-right opens-left opens-inner"),(0,r.default)(document.body).off(".zf.dropdownmenu"),l.Nest.Burn(this.$element,"dropdown")}}]),t}(a.Plugin);h.defaults={disableHover:!1,autoclose:!0,hoverDelay:50,clickOpen:!1,closingTime:500,alignment:"auto",closeOnClick:!0,closeOnClickInside:!0,verticalClass:"vertical",rightClass:"align-right",forceFollow:!0},t.DropdownMenu=h},987:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Interchange=void 0;var i,o=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=(i=n(609))&&i.__esModule?i:{default:i},a=n(857),s=n(93),u=n(318);function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=function(e){function t(){return l(this,t),d(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"_setup",value:function(e,n){this.$element=e,this.options=r.default.extend({},t.defaults,n),this.rules=[],this.currentPath="",this.className="Interchange",this._init(),this._events()}},{key:"_init",value:function(){a.MediaQuery._init();var e=this.$element[0].id||(0,u.GetYoDigits)(6,"interchange");this.$element.attr({"data-resize":e,id:e}),this._addBreakpoints(),this._generateRules(),this._reflow()}},{key:"_events",value:function(){var e=this;this.$element.off("resizeme.zf.trigger").on("resizeme.zf.trigger",(function(){return e._reflow()}))}},{key:"_reflow",value:function(){var e;for(var t in this.rules)if(this.rules.hasOwnProperty(t)){var n=this.rules[t];window.matchMedia(n.query).matches&&(e=n)}e&&this.replace(e.path)}},{key:"_addBreakpoints",value:function(){for(var e in a.MediaQuery.queries)if(a.MediaQuery.queries.hasOwnProperty(e)){var n=a.MediaQuery.queries[e];t.SPECIAL_QUERIES[n.name]=n.value}}},{key:"_generateRules",value:function(e){var n,i=[];for(var o in n="string"==typeof(n=this.options.rules?this.options.rules:this.$element.data("interchange"))?n.match(/\[.*?, .*?\]/g):n)if(n.hasOwnProperty(o)){var r=n[o].slice(1,-1).split(", "),a=r.slice(0,-1).join(""),s=r[r.length-1];t.SPECIAL_QUERIES[s]&&(s=t.SPECIAL_QUERIES[s]),i.push({path:a,query:s})}this.rules=i}},{key:"replace",value:function(e){if(this.currentPath!==e){var t=this,n="replaced.zf.interchange";"IMG"===this.$element[0].nodeName?this.$element.attr("src",e).on("load",(function(){t.currentPath=e})).trigger(n):e.match(/\.(gif|jpg|jpeg|png|svg|tiff)([?#].*)?/i)?(e=e.replace(/\(/g,"%28").replace(/\)/g,"%29"),this.$element.css({"background-image":"url("+e+")"}).trigger(n)):r.default.get(e,(function(i){t.$element.html(i).trigger(n),(0,r.default)(i).foundation(),t.currentPath=e}))}}},{key:"_destroy",value:function(){this.$element.off("resizeme.zf.trigger")}}]),t}(s.Plugin);f.defaults={rules:null},f.SPECIAL_QUERIES={landscape:"screen and (orientation: landscape)",portrait:"screen and (orientation: portrait)",retina:"only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx)"},t.Interchange=f},382:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Positionable=void 0;var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(778),r=n(93),a=n(318);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=["left","right","top","bottom"],d=["top","bottom","center"],f=["left","right","center"],c={left:d,right:d,top:f,bottom:f};function h(e,t){var n=t.indexOf(e);return n===t.length-1?t[0]:t[n+1]}var p=function(e){function t(){return s(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"_init",value:function(){this.triedPositions={},this.position="auto"===this.options.position?this._getDefaultPosition():this.options.position,this.alignment="auto"===this.options.alignment?this._getDefaultAlignment():this.options.alignment,this.originalPosition=this.position,this.originalAlignment=this.alignment}},{key:"_getDefaultPosition",value:function(){return"bottom"}},{key:"_getDefaultAlignment",value:function(){switch(this.position){case"bottom":case"top":return(0,a.rtl)()?"right":"left";case"left":case"right":return"bottom"}}},{key:"_reposition",value:function(){this._alignmentsExhausted(this.position)?(this.position=h(this.position,l),this.alignment=c[this.position][0]):this._realign()}},{key:"_realign",value:function(){this._addTriedPosition(this.position,this.alignment),this.alignment=h(this.alignment,c[this.position])}},{key:"_addTriedPosition",value:function(e,t){this.triedPositions[e]=this.triedPositions[e]||[],this.triedPositions[e].push(t)}},{key:"_positionsExhausted",value:function(){for(var e=!0,t=0;t<l.length;t++)e=e&&this._alignmentsExhausted(l[t]);return e}},{key:"_alignmentsExhausted",value:function(e){return this.triedPositions[e]&&this.triedPositions[e].length==c[e].length}},{key:"_getVOffset",value:function(){return this.options.vOffset}},{key:"_getHOffset",value:function(){return this.options.hOffset}},{key:"_setPosition",value:function(e,t,n){if("false"===e.attr("aria-expanded"))return!1;if(o.Box.GetDimensions(t),o.Box.GetDimensions(e),this.options.allowOverlap||(this.position=this.originalPosition,this.alignment=this.originalAlignment),t.offset(o.Box.GetExplicitOffsets(t,e,this.position,this.alignment,this._getVOffset(),this._getHOffset())),!this.options.allowOverlap){for(var i=1e8,r={position:this.position,alignment:this.alignment};!this._positionsExhausted();){var a=o.Box.OverlapArea(t,n,!1,!1,this.options.allowBottomOverlap);if(0===a)return;a<i&&(i=a,r={position:this.position,alignment:this.alignment}),this._reposition(),t.offset(o.Box.GetExplicitOffsets(t,e,this.position,this.alignment,this._getVOffset(),this._getHOffset()))}this.position=r.position,this.alignment=r.alignment,t.offset(o.Box.GetExplicitOffsets(t,e,this.position,this.alignment,this._getVOffset(),this._getHOffset()))}}}]),t}(r.Plugin);p.defaults={position:"auto",alignment:"auto",allowOverlap:!1,allowBottomOverlap:!0,vOffset:0,hOffset:0},t.Positionable=p},778:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Box=void 0;var i=n(318),o={ImNotTouchingYou:function(e,t,n,i,o){return 0===r(e,t,n,i,o)},OverlapArea:r,GetDimensions:a,GetOffsets:function(e,t,n,o,r,a){switch(console.log("NOTE: GetOffsets is deprecated in favor of GetExplicitOffsets and will be removed in 6.5"),n){case"top":return(0,i.rtl)()?s(e,t,"top","left",o,r,a):s(e,t,"top","right",o,r,a);case"bottom":return(0,i.rtl)()?s(e,t,"bottom","left",o,r,a):s(e,t,"bottom","right",o,r,a);case"center top":return s(e,t,"top","center",o,r,a);case"center bottom":return s(e,t,"bottom","center",o,r,a);case"center left":return s(e,t,"left","center",o,r,a);case"center right":return s(e,t,"right","center",o,r,a);case"left bottom":return s(e,t,"bottom","left",o,r,a);case"right bottom":return s(e,t,"bottom","right",o,r,a);case"center":return{left:$eleDims.windowDims.offset.left+$eleDims.windowDims.width/2-$eleDims.width/2+r,top:$eleDims.windowDims.offset.top+$eleDims.windowDims.height/2-($eleDims.height/2+o)};case"reveal":return{left:($eleDims.windowDims.width-$eleDims.width)/2+r,top:$eleDims.windowDims.offset.top+o};case"reveal full":return{left:$eleDims.windowDims.offset.left,top:$eleDims.windowDims.offset.top};default:return{left:(0,i.rtl)()?$anchorDims.offset.left-$eleDims.width+$anchorDims.width-r:$anchorDims.offset.left+r,top:$anchorDims.offset.top+$anchorDims.height+o}}},GetExplicitOffsets:s};function r(e,t,n,i,o){var r,s,u,l,d=a(e);if(t){var f=a(t);s=f.height+f.offset.top-(d.offset.top+d.height),r=d.offset.top-f.offset.top,u=d.offset.left-f.offset.left,l=f.width+f.offset.left-(d.offset.left+d.width)}else s=d.windowDims.height+d.windowDims.offset.top-(d.offset.top+d.height),r=d.offset.top-d.windowDims.offset.top,u=d.offset.left-d.windowDims.offset.left,l=d.windowDims.width-(d.offset.left+d.width);return s=o?0:Math.min(s,0),r=Math.min(r,0),u=Math.min(u,0),l=Math.min(l,0),n?u+l:i?r+s:Math.sqrt(r*r+s*s+u*u+l*l)}function a(e){if((e=e.length?e[0]:e)===window||e===document)throw new Error("I'm sorry, Dave. I'm afraid I can't do that.");var t=e.getBoundingClientRect(),n=e.parentNode.getBoundingClientRect(),i=document.body.getBoundingClientRect(),o=window.pageYOffset,r=window.pageXOffset;return{width:t.width,height:t.height,offset:{top:t.top+o,left:t.left+r},parentDims:{width:n.width,height:n.height,offset:{top:n.top+o,left:n.left+r}},windowDims:{width:i.width,height:i.height,offset:{top:o,left:r}}}}function s(e,t,n,i,o,r,s){var u,l,d=a(e),f=t?a(t):null;switch(n){case"top":u=f.offset.top-(d.height+o);break;case"bottom":u=f.offset.top+f.height+o;break;case"left":l=f.offset.left-(d.width+r);break;case"right":l=f.offset.left+f.width+r}switch(n){case"top":case"bottom":switch(i){case"left":l=f.offset.left+r;break;case"right":l=f.offset.left-d.width+f.width-r;break;case"center":l=s?r:f.offset.left+f.width/2-d.width/2+r}break;case"right":case"left":switch(i){case"bottom":u=f.offset.top-o+f.height-d.height;break;case"top":u=f.offset.top+o;break;case"center":u=f.offset.top+o+f.height/2-d.height/2}}return{top:u,left:l}}t.Box=o},541:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onImagesLoaded=void 0;var i,o=(i=n(609))&&i.__esModule?i:{default:i};t.onImagesLoaded=function(e,t){var n=e.length;function i(){0==--n&&t()}0===n&&t(),e.each((function(){if(this.complete&&void 0!==this.naturalWidth)i();else{var e=new Image,t="load.zf.images error.zf.images";(0,o.default)(e).one(t,(function e(n){(0,o.default)(this).off(t,e),i()})),e.src=(0,o.default)(this).attr("src")}}))}},401:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Keyboard=void 0;var i,o=(i=n(609))&&i.__esModule?i:{default:i},r=n(318),a={9:"TAB",13:"ENTER",27:"ESCAPE",32:"SPACE",35:"END",36:"HOME",37:"ARROW_LEFT",38:"ARROW_UP",39:"ARROW_RIGHT",40:"ARROW_DOWN"},s={};function u(e){return!!e&&e.find("a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]").filter((function(){return!(!(0,o.default)(this).is(":visible")||(0,o.default)(this).attr("tabindex")<0)}))}function l(e){var t=a[e.which||e.keyCode]||String.fromCharCode(e.which).toUpperCase();return t=t.replace(/\W+/,""),e.shiftKey&&(t="SHIFT_"+t),e.ctrlKey&&(t="CTRL_"+t),e.altKey&&(t="ALT_"+t),t.replace(/_$/,"")}var d={keys:function(e){var t={};for(var n in e)t[e[n]]=e[n];return t}(a),parseKey:l,handleKey:function(e,t,n){var i,a=s[t],u=this.parseKey(e);if(!a)return console.warn("Component not defined!");if((i=n[(void 0===a.ltr?a:(0,r.rtl)()?o.default.extend({},a.ltr,a.rtl):o.default.extend({},a.rtl,a.ltr))[u]])&&"function"==typeof i){var l=i.apply();(n.handled||"function"==typeof n.handled)&&n.handled(l)}else(n.unhandled||"function"==typeof n.unhandled)&&n.unhandled()},findFocusable:u,register:function(e,t){s[e]=t},trapFocus:function(e){var t=u(e),n=t.eq(0),i=t.eq(-1);e.on("keydown.zf.trapfocus",(function(e){e.target===i[0]&&"TAB"===l(e)?(e.preventDefault(),n.focus()):e.target===n[0]&&"SHIFT_TAB"===l(e)&&(e.preventDefault(),i.focus())}))},releaseFocus:function(e){e.off("keydown.zf.trapfocus")}};t.Keyboard=d},857:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MediaQuery=void 0;var i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=(i=n(609))&&i.__esModule?i:{default:i};window.matchMedia||(window.matchMedia=function(){var e=window.styleMedia||window.media;if(!e){var t,n=document.createElement("style"),i=document.getElementsByTagName("script")[0];n.type="text/css",n.id="matchmediajs-test",i?i.parentNode.insertBefore(n,i):document.head.appendChild(n),t="getComputedStyle"in window&&window.getComputedStyle(n,null)||n.currentStyle,e={matchMedium:function(e){var i="@media "+e+"{ #matchmediajs-test { width: 1px; } }";return n.styleSheet?n.styleSheet.cssText=i:n.textContent=i,"1px"===t.width}}}return function(t){return{matches:e.matchMedium(t||"all"),media:t||"all"}}}());var a={queries:[],current:"",_init:function(){(0,r.default)("meta.foundation-mq").length||(0,r.default)('<meta class="foundation-mq">').appendTo(document.head);var e,t,n,i=(0,r.default)(".foundation-mq").css("font-family");for(var o in n=void 0,n={},e="string"!=typeof(t=i)?n:(t=t.trim().slice(1,-1))?t.split("&").reduce((function(e,t){var n=t.replace(/\+/g," ").split("="),i=n[0],o=n[1];return i=decodeURIComponent(i),o=void 0===o?null:decodeURIComponent(o),e.hasOwnProperty(i)?Array.isArray(e[i])?e[i].push(o):e[i]=[e[i],o]:e[i]=o,e}),{}):n)e.hasOwnProperty(o)&&this.queries.push({name:o,value:"only screen and (min-width: "+e[o]+")"});this.current=this._getCurrentSize(),this._watcher()},atLeast:function(e){var t=this.get(e);return!!t&&window.matchMedia(t).matches},is:function(e){return(e=e.trim().split(" ")).length>1&&"only"===e[1]?e[0]===this._getCurrentSize():this.atLeast(e[0])},get:function(e){for(var t in this.queries)if(this.queries.hasOwnProperty(t)){var n=this.queries[t];if(e===n.name)return n.value}return null},_getCurrentSize:function(){for(var e,t=0;t<this.queries.length;t++){var n=this.queries[t];window.matchMedia(n.value).matches&&(e=n)}return"object"===(void 0===e?"undefined":o(e))?e.name:e},_watcher:function(){var e=this;(0,r.default)(window).off("resize.zf.mediaquery").on("resize.zf.mediaquery",(function(){var t=e._getCurrentSize(),n=e.current;t!==n&&(e.current=t,(0,r.default)(window).trigger("changed.zf.mediaquery",[t,n]))}))}};t.MediaQuery=a},208:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Motion=t.Move=void 0;var i,o=(i=n(609))&&i.__esModule?i:{default:i},r=n(318),a=["mui-enter","mui-leave"],s=["mui-enter-active","mui-leave-active"],u={animateIn:function(e,t,n){l(!0,e,t,n)},animateOut:function(e,t,n){l(!1,e,t,n)}};function l(e,t,n,i){if((t=(0,o.default)(t).eq(0)).length){var u=e?a[0]:a[1],l=e?s[0]:s[1];d(),t.addClass(n).css("transition","none"),requestAnimationFrame((function(){t.addClass(u),e&&t.show()})),requestAnimationFrame((function(){t[0].offsetWidth,t.css("transition","").addClass(l)})),t.one((0,r.transitionend)(t),(function(){e||t.hide(),d(),i&&i.apply(t)}))}function d(){t[0].style.transitionDuration=0,t.removeClass(u+" "+l+" "+n)}}t.Move=function(e,t,n){var i,o,r=null;if(0===e)return n.apply(t),void t.trigger("finished.zf.animate",[t]).triggerHandler("finished.zf.animate",[t]);i=window.requestAnimationFrame((function a(s){r||(r=s),o=s-r,n.apply(t),o<e?i=window.requestAnimationFrame(a,t):(window.cancelAnimationFrame(i),t.trigger("finished.zf.animate",[t]).triggerHandler("finished.zf.animate",[t]))}))},t.Motion=u},231:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Nest=void 0;var i,o=(i=n(609))&&i.__esModule?i:{default:i},r={Feather:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zf";e.attr("role","menubar");var n=e.find("li").attr({role:"menuitem"}),i="is-"+t+"-submenu",r=i+"-item",a="is-"+t+"-submenu-parent",s="accordion"!==t;n.each((function(){var e=(0,o.default)(this),n=e.children("ul");n.length&&(e.addClass(a),n.addClass("submenu "+i).attr({"data-submenu":""}),s&&(e.attr({"aria-haspopup":!0,"aria-label":e.children("a:first").text()}),"drilldown"===t&&e.attr({"aria-expanded":!1})),n.addClass("submenu "+i).attr({"data-submenu":"",role:"menubar"}),"drilldown"===t&&n.attr({"aria-hidden":!0})),e.parent("[data-submenu]").length&&e.addClass("is-submenu-item "+r)}))},Burn:function(e,t){var n="is-"+t+"-submenu",i=n+"-item",o="is-"+t+"-submenu-parent";e.find(">li, > li > ul, .menu, .menu > li, [data-submenu] > li").removeClass(n+" "+i+" "+o+" is-submenu-item submenu is-active").removeAttr("data-submenu").css("display","")}};t.Nest=r},506:(e,t,n)=>{"use strict";var i;Object.defineProperty(t,"__esModule",{value:!0}),t.Timer=void 0,(i=n(609))&&i.__esModule,t.Timer=function(e,t,n){var i,o,r=this,a=t.duration,s=Object.keys(e.data())[0]||"timer",u=-1;this.isPaused=!1,this.restart=function(){u=-1,clearTimeout(o),this.start()},this.start=function(){this.isPaused=!1,clearTimeout(o),u=u<=0?a:u,e.data("paused",!1),i=Date.now(),o=setTimeout((function(){t.infinite&&r.restart(),n&&"function"==typeof n&&n()}),u),e.trigger("timerstart.zf."+s)},this.pause=function(){this.isPaused=!0,clearTimeout(o),e.data("paused",!0);var t=Date.now();u-=t-i,e.trigger("timerpaused.zf."+s)}}},193:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Touch=void 0;var i,o,r,a,s,u=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l=(i=n(609))&&i.__esModule?i:{default:i},d={},f=!1,c=!1;function h(e){if(this.removeEventListener("touchmove",p),this.removeEventListener("touchend",h),!c){var t=l.default.Event("tap",s||e);(0,l.default)(this).trigger(t)}s=null,f=!1,c=!1}function p(e){if(l.default.spotSwipe.preventDefault&&e.preventDefault(),f){var t,n=e.touches[0].pageX,i=(e.touches[0].pageY,o-n);c=!0,a=(new Date).getTime()-r,Math.abs(i)>=l.default.spotSwipe.moveThreshold&&a<=l.default.spotSwipe.timeThreshold&&(t=i>0?"left":"right"),t&&(e.preventDefault(),h.apply(this,arguments),(0,l.default)(this).trigger(l.default.Event("swipe",e),t).trigger(l.default.Event("swipe"+t,e)))}}function m(e){1==e.touches.length&&(o=e.touches[0].pageX,e.touches[0].pageY,s=e,f=!0,c=!1,r=(new Date).getTime(),this.addEventListener("touchmove",p,!1),this.addEventListener("touchend",h,!1))}function g(){this.addEventListener&&this.addEventListener("touchstart",m,!1)}var v=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.version="1.0.0",this.enabled="ontouchstart"in document.documentElement,this.preventDefault=!1,this.moveThreshold=75,this.timeThreshold=200,this.$=t,this._init()}return u(e,[{key:"_init",value:function(){var e=this.$;e.event.special.swipe={setup:g},e.event.special.tap={setup:g},e.each(["left","up","down","right"],(function(){e.event.special["swipe"+this]={setup:function(){e(this).on("swipe",e.noop)}}}))}}]),e}();d.setupSpotSwipe=function(e){e.spotSwipe=new v(e)},d.setupTouchHandler=function(e){e.fn.addTouch=function(){this.each((function(n,i){e(i).bind("touchstart touchmove touchend touchcancel",(function(e){t(e)}))}));var t=function(e){var t,n=e.changedTouches[0],i={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup"}[e.type];"MouseEvent"in window&&"function"==typeof window.MouseEvent?t=new window.MouseEvent(i,{bubbles:!0,cancelable:!0,screenX:n.screenX,screenY:n.screenY,clientX:n.clientX,clientY:n.clientY}):(t=document.createEvent("MouseEvent")).initMouseEvent(i,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),n.target.dispatchEvent(t)}}},d.init=function(e){void 0===e.spotSwipe&&(d.setupSpotSwipe(e),d.setupTouchHandler(e))},t.Touch=d},274:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Triggers=void 0;var i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=(i=n(609))&&i.__esModule?i:{default:i},a=n(318),s=n(208),u=function(){for(var e=["WebKit","Moz","O","Ms",""],t=0;t<e.length;t++)if(e[t]+"MutationObserver"in window)return window[e[t]+"MutationObserver"];return!1}(),l=function(e,t){e.data(t).split(" ").forEach((function(n){(0,r.default)("#"+n)["close"===t?"trigger":"triggerHandler"](t+".zf.trigger",[e])}))},d={Listeners:{Basic:{},Global:{}},Initializers:{}};function f(e,t,n){var i=void 0,o=Array.prototype.slice.call(arguments,3);(0,r.default)(window).off(t).on(t,(function(t){i&&clearTimeout(i),i=setTimeout((function(){n.apply(null,o)}),e||10)}))}d.Listeners.Basic={openListener:function(){l((0,r.default)(this),"open")},closeListener:function(){(0,r.default)(this).data("close")?l((0,r.default)(this),"close"):(0,r.default)(this).trigger("close.zf.trigger")},toggleListener:function(){(0,r.default)(this).data("toggle")?l((0,r.default)(this),"toggle"):(0,r.default)(this).trigger("toggle.zf.trigger")},closeableListener:function(e){e.stopPropagation();var t=(0,r.default)(this).data("closable");""!==t?s.Motion.animateOut((0,r.default)(this),t,(function(){(0,r.default)(this).trigger("closed.zf")})):(0,r.default)(this).fadeOut().trigger("closed.zf")},toggleFocusListener:function(){var e=(0,r.default)(this).data("toggle-focus");(0,r.default)("#"+e).triggerHandler("toggle.zf.trigger",[(0,r.default)(this)])}},d.Initializers.addOpenListener=function(e){e.off("click.zf.trigger",d.Listeners.Basic.openListener),e.on("click.zf.trigger","[data-open]",d.Listeners.Basic.openListener)},d.Initializers.addCloseListener=function(e){e.off("click.zf.trigger",d.Listeners.Basic.closeListener),e.on("click.zf.trigger","[data-close]",d.Listeners.Basic.closeListener)},d.Initializers.addToggleListener=function(e){e.off("click.zf.trigger",d.Listeners.Basic.toggleListener),e.on("click.zf.trigger","[data-toggle]",d.Listeners.Basic.toggleListener)},d.Initializers.addCloseableListener=function(e){e.off("close.zf.trigger",d.Listeners.Basic.closeableListener),e.on("close.zf.trigger","[data-closeable], [data-closable]",d.Listeners.Basic.closeableListener)},d.Initializers.addToggleFocusListener=function(e){e.off("focus.zf.trigger blur.zf.trigger",d.Listeners.Basic.toggleFocusListener),e.on("focus.zf.trigger blur.zf.trigger","[data-toggle-focus]",d.Listeners.Basic.toggleFocusListener)},d.Listeners.Global={resizeListener:function(e){u||e.each((function(){(0,r.default)(this).triggerHandler("resizeme.zf.trigger")})),e.attr("data-events","resize")},scrollListener:function(e){u||e.each((function(){(0,r.default)(this).triggerHandler("scrollme.zf.trigger")})),e.attr("data-events","scroll")},closeMeListener:function(e,t){var n=e.namespace.split(".")[0];(0,r.default)("[data-"+n+"]").not('[data-yeti-box="'+t+'"]').each((function(){var e=(0,r.default)(this);e.triggerHandler("close.zf.trigger",[e])}))}},d.Initializers.addClosemeListener=function(e){var t=(0,r.default)("[data-yeti-box]"),n=["dropdown","tooltip","reveal"];if(e&&("string"==typeof e?n.push(e):"object"===(void 0===e?"undefined":o(e))&&"string"==typeof e[0]?n.concat(e):console.error("Plugin names must be strings")),t.length){var i=n.map((function(e){return"closeme.zf."+e})).join(" ");(0,r.default)(window).off(i).on(i,d.Listeners.Global.closeMeListener)}},d.Initializers.addResizeListener=function(e){var t=(0,r.default)("[data-resize]");t.length&&f(e,"resize.zf.trigger",d.Listeners.Global.resizeListener,t)},d.Initializers.addScrollListener=function(e){var t=(0,r.default)("[data-scroll]");t.length&&f(e,"scroll.zf.trigger",d.Listeners.Global.scrollListener,t)},d.Initializers.addMutationEventsListener=function(e){if(!u)return!1;var t=e.find("[data-resize], [data-scroll], [data-mutate]"),n=function(e){var t=(0,r.default)(e[0].target);switch(e[0].type){case"attributes":"scroll"===t.attr("data-events")&&"data-events"===e[0].attributeName&&t.triggerHandler("scrollme.zf.trigger",[t,window.pageYOffset]),"resize"===t.attr("data-events")&&"data-events"===e[0].attributeName&&t.triggerHandler("resizeme.zf.trigger",[t]),"style"===e[0].attributeName&&(t.closest("[data-mutate]").attr("data-events","mutate"),t.closest("[data-mutate]").triggerHandler("mutateme.zf.trigger",[t.closest("[data-mutate]")]));break;case"childList":t.closest("[data-mutate]").attr("data-events","mutate"),t.closest("[data-mutate]").triggerHandler("mutateme.zf.trigger",[t.closest("[data-mutate]")]);break;default:return!1}};if(t.length)for(var i=0;i<=t.length-1;i++)new u(n).observe(t[i],{attributes:!0,childList:!0,characterData:!1,subtree:!0,attributeFilter:["data-events","style"]})},d.Initializers.addSimpleListeners=function(){var e=(0,r.default)(document);d.Initializers.addOpenListener(e),d.Initializers.addCloseListener(e),d.Initializers.addToggleListener(e),d.Initializers.addCloseableListener(e),d.Initializers.addToggleFocusListener(e)},d.Initializers.addGlobalListeners=function(){var e=(0,r.default)(document);d.Initializers.addMutationEventsListener(e),d.Initializers.addResizeListener(),d.Initializers.addScrollListener(),d.Initializers.addClosemeListener()},d.init=function(e,t){(0,a.onLoad)(e(window),(function(){!0!==e.triggersInitialized&&(d.Initializers.addSimpleListeners(),d.Initializers.addGlobalListeners(),e.triggersInitialized=!0)})),t&&(t.Triggers=d,t.IHearYou=d.Initializers.addGlobalListeners)},t.Triggers=d},852:(e,t,n)=>{"use strict";var i,o=(i=n(609))&&i.__esModule?i:{default:i},r=n(545),a=n(318),s=n(778),u=n(541),l=n(401),d=n(857),f=n(208),c=n(231),h=n(506),p=n(193),m=n(274),g=n(354),v=n(960),w=n(987);r.Foundation.addToJquery(o.default),r.Foundation.rtl=a.rtl,r.Foundation.GetYoDigits=a.GetYoDigits,r.Foundation.transitionend=a.transitionend,r.Foundation.Box=s.Box,r.Foundation.onImagesLoaded=u.onImagesLoaded,r.Foundation.Keyboard=l.Keyboard,r.Foundation.MediaQuery=d.MediaQuery,r.Foundation.Motion=f.Motion,r.Foundation.Move=f.Move,r.Foundation.Nest=c.Nest,r.Foundation.Timer=h.Timer,p.Touch.init(o.default),m.Triggers.init(o.default,r.Foundation),r.Foundation.plugin(g.Dropdown,"Dropdown"),r.Foundation.plugin(v.DropdownMenu,"DropdownMenu"),r.Foundation.plugin(w.Interchange,"Interchange"),e.exports=r.Foundation},474:function(e){var t;t=function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t){"use strict";e.exports=function(){var e="initial",t=null,n=document.documentElement,i=["input","select","textarea"],o=[],r=[16,17,18,91,93],a=[9],s={keydown:"keyboard",keyup:"keyboard",mousedown:"mouse",mousemove:"mouse",MSPointerDown:"pointer",MSPointerMove:"pointer",pointerdown:"pointer",pointermove:"pointer",touchstart:"touch"},u=[],l=!1,d=!1,f={x:null,y:null},c={2:"touch",3:"touch",4:"mouse"},h=!1;try{var p=Object.defineProperty({},"passive",{get:function(){h=!0}});window.addEventListener("test",null,p)}catch(e){}var m,g=function(n){if(!l){var o=n.which,u=s[n.type];if("pointer"===u&&(u=_(n)),e!==u||t!==u){var d=document.activeElement,f=!1;(d&&d.nodeName&&-1===i.indexOf(d.nodeName.toLowerCase())||-1!==a.indexOf(o))&&(f=!0),("touch"===u||"mouse"===u||"keyboard"===u&&o&&f&&-1===r.indexOf(o))&&(e=t=u,v())}}},v=function(){n.setAttribute("data-whatinput",e),n.setAttribute("data-whatintent",e),-1===u.indexOf(e)&&(u.push(e),n.className+=" whatinput-types-"+e),b("input")},w=function(e){if(f.x!==e.screenX||f.y!==e.screenY?(d=!1,f.x=e.screenX,f.y=e.screenY):d=!0,!l&&!d){var i=s[e.type];"pointer"===i&&(i=_(e)),t!==i&&(t=i,n.setAttribute("data-whatintent",t),b("intent"))}},y=function(e){"touchstart"===e.type?(l=!1,g(e)):l=!0},b=function(e){for(var n=0,i=o.length;n<i;n++)o[n].type===e&&o[n].fn.call(void 0,t)},_=function(e){return"number"==typeof e.pointerType?c[e.pointerType]:"pen"===e.pointerType?"touch":e.pointerType},z=function(){return"onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll"};return"addEventListener"in window&&Array.prototype.indexOf&&(s[z()]="mouse",m=!!h&&{passive:!0},window.PointerEvent?(n.addEventListener("pointerdown",g),n.addEventListener("pointermove",w)):window.MSPointerEvent?(n.addEventListener("MSPointerDown",g),n.addEventListener("MSPointerMove",w)):(n.addEventListener("mousedown",g),n.addEventListener("mousemove",w),"ontouchstart"in window&&(n.addEventListener("touchstart",y,m),n.addEventListener("touchend",y))),n.addEventListener(z(),w,m),n.addEventListener("keydown",g),n.addEventListener("keyup",g),v()),{ask:function(n){return"loose"===n?t:e},types:function(){return u},ignoreKeys:function(e){r=e},registerOnChange:function(e,t){o.push({fn:e,type:t||"input"})},unRegisterOnChange:function(e){var t=function(e){for(var t=0,n=o.length;t<n;t++)if(o[t].fn===e)return t}(e);t&&o.splice(t,1)}}}()}])},e.exports=t()},609:e=>{"use strict";e.exports=jQuery}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i].call(r.exports,r,r.exports,n),r.exports}(()=>{"use strict";var e=t(n(609));function t(e){return e&&e.__esModule?e:{default:e}}t(n(474)),n(852),window.$=e.default,(0,e.default)(document).foundation()})()})();
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9iaW9mcmljdGlvbi8uL25vZGVfbW9kdWxlcy9mb3VuZGF0aW9uLXNpdGVzL2pzL2ZvdW5kYXRpb24uY29yZS5qcyIsIndlYnBhY2s6Ly9iaW9mcmljdGlvbi8uL25vZGVfbW9kdWxlcy9mb3VuZGF0aW9uLXNpdGVzL2pzL2ZvdW5kYXRpb24uY29yZS5wbHVnaW4uanMiLCJ3ZWJwYWNrOi8vYmlvZnJpY3Rpb24vLi9ub2RlX21vZHVsZXMvZm91bmRhdGlvbi1zaXRlcy9qcy9mb3VuZGF0aW9uLmNvcmUudXRpbHMuanMiLCJ3ZWJwYWNrOi8vYmlvZnJpY3Rpb24vLi9ub2RlX21vZHVsZXMvZm91bmRhdGlvbi1zaXRlcy9qcy9mb3VuZGF0aW9uLmRyb3Bkb3duLmpzIiwid2VicGFjazovL2Jpb2ZyaWN0aW9uLy4vbm9kZV9tb2R1bGVzL2ZvdW5kYXRpb24tc2l0ZXMvanMvZm91bmRhdGlvbi5kcm9wZG93bk1lbnUuanMiLCJ3ZWJwYWNrOi8vYmlvZnJpY3Rpb24vLi9ub2RlX21vZHVsZXMvZm91bmRhdGlvbi1zaXRlcy9qcy9mb3VuZGF0aW9uLmludGVyY2hhbmdlLmpzIiwid2VicGFjazovL2Jpb2ZyaWN0aW9uLy4vbm9kZV9tb2R1bGVzL2ZvdW5kYXRpb24tc2l0ZXMvanMvZm91bmRhdGlvbi5wb3NpdGlvbmFibGUuanMiLCJ3ZWJwYWNrOi8vYmlvZnJpY3Rpb24vLi9ub2RlX21vZHVsZX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QodGhpcykuZGF0YSgnemZQbHVnaW4nKS5faW5pdCgpO1xuICAgICAgICAgfSk7XG4gICAgICAgfWVsc2V7XG4gICAgICAgICB2YXIgdHlwZSA9IHR5cGVvZiBwbHVnaW5zLFxuICAgICAgICAgX3RoaXMgPSB0aGlzLFxuICAgICAgICAgZm5zID0ge1xuICAgICAgICAgICAnb2JqZWN0JzogZnVuY3Rpb24ocGxncyl7XG4gICAgICAgICAgICAgcGxncy5mb3JFYWNoKGZ1bmN0aW9uKHApe1xuICAgICAgICAgICAgICAgcCA9IGh5cGhlbmF0ZShwKTtcbiAgICAgICAgICAgICAgICQoJ1tkYXRhLScrIHAgKyddJykuZm91bmRhdGlvbignX2luaXQnKTtcbiAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgfSxcbiAgICAgICAgICAgJ3N0cmluZyc6IGZ1bmN0aW9uKCl7XG4gICAgICAgICAgICAgcGx1Z2lucyA9IGh5cGhlbmF0ZShwbHVnaW5zKTtcbiAgICAgICAgICAgICAkKCdbZGF0YS0nKyBwbHVnaW5zICsnXScpLmZvdW5kYXRpb24oJ19pbml0Jyk7XG4gICAgICAgICAgIH0sXG4gICAgICAgICAgICd1bmRlZmluZWQnOiBmdW5jdGlvbigpe1xuICAgICAgICAgICAgIHRoaXNbJ29iamVjdCddKE9iamVjdC5rZXlzKF90aGlzLl9wbHVnaW5zKSk7XG4gICAgICAgICAgIH1cbiAgICAgICAgIH07XG4gICAgICAgICBmbnNbdHlwZV0ocGx1Z2lucyk7XG4gICAgICAgfVxuICAgICB9Y2F0Y2goZXJyKXtcbiAgICAgICBjb25zb2xlLmVycm9yKGVycik7XG4gICAgIH1maW5hbGx5e1xuICAgICAgIHJldHVybiBwbHVnaW5zO1xuICAgICB9XG4gICB9LFxuXG4gIC8qKlxuICAgKiBJbml0aWFsaXplIHBsdWdpbnMgb24gYW55IGVsZW1lbnRzIHdpdGhpbiBgZWxlbWAgKGFuZCBgZWxlbWAgaXRzZWxmKSB0aGF0IGFyZ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gICAgICAgICAgIF90aGlzLm9wZW4oKTtcbiAgICAgICAgICAgIF90aGlzLiRlbGVtZW50LmF0dHIoJ3RhYmluZGV4JywgLTEpLmZvY3VzKCk7XG4gICAgICAgICAgICBlLnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBjbG9zZTogZnVuY3Rpb24oKSB7XG4gICAgICAgICAgX3RoaXMuY2xvc2UoKTtcbiAgICAgICAgICBfdGhpcy4kYW5jaG9ycy5mb2N1cygpO1xuICAgICAgICB9XG4gICAgICB9KTtcbiAgICB9KTtcbiAgfVxuXG4gIC8qKlxuICAgKiBBZGRzIGFuIGV2ZW50IGhhbmRsZXIgdG8gdGhlIGJvZHkgdG8gY2xvc2UgYW55IGRyb3Bkb3ducyBvbiBhIGNsaWNrLlxuICAgKiBAZnVuY3Rpb25cbiAgICogQHByaXZhdGVcbiAgICovXG4gIF9hZGRCb2R5SGFuZGxlcigpIHtcbiAgICAgdmFyICRib2R5ID0gJChkb2N1bWVudC5ib2R5KS5ub3QodGhpcy4kZWxlbWVudCksXG4gICAgICAgICBfdGhpcyA9IHRoaXM7XG4gICAgICRib2R5Lm9mZignY2xpY2suemYuZHJvcGRvd24nKVxuICAgICAgICAgIC5vbignY2xpY2suemYuZHJvcGRvd24nLCBmdW5jdGlvbihlKXtcbiAgICAgICAgICAgIGlmKF90aGlzLiRhbmNob3JzLmlzKGUudGFyZ2V0KSB8fCBfdGhpcy4kYW5jaG9ycy5maW5kKGUudGFyZ2V0KS5sZW5ndGgpIHtcbiAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYoX3RoaXMuJGVsZW1lbnQuaXMoZS50YXJnZXQpIHx8IF90aGlzLiRlbGVtZW50LmZpbmQoZS50YXJnZXQpLmxlbmd0aCkge1xuICAgICAgICAgICAgICByZXR1cm47XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBfdGhpcy5jbG9zZSgp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ICAgICAgICAgcmV0dXJuO1xuICAgICAgICB9XG4gICAgICB9KTtcblxuICAgICAgdmFyIG5leHRTaWJsaW5nID0gZnVuY3Rpb24oKSB7XG4gICAgICAgICRuZXh0RWxlbWVudC5jaGlsZHJlbignYTpmaXJzdCcpLmZvY3VzKCk7XG4gICAgICAgIGUucHJldmVudERlZmF1bHQoKTtcbiAgICAgIH0sIHByZXZTaWJsaW5nID0gZnVuY3Rpb24oKSB7XG4gICAgICAgICRwcmV2RWxlbWVudC5jaGlsZHJlbignYTpmaXJzdCcpLmZvY3VzKCk7XG4gICAgICAgIGUucHJldmVudERlZmF1bHQoKTtcbiAgICAgIH0sIG9wZW5TdWIgPSBmdW5jdGlvbigpIHtcbiAgICAgICAgdmFyICRzdWIgPSAkZWxlbWVudC5jaGlsZHJlbigndWwuaXMtZHJvcGRvd24tc3VibWVudScpO1xuICAgICAgICBpZiAoJHN1Yi5sZW5ndGgpIHtcbiAgICAgICAgICBfdGhpcy5fc2hvdygkc3ViKTtcbiAgICAgICAgICAkZWxlbWVudC5maW5kKCdsaSA+IGE6Zmlyc3QnKS5mb2N1cygpO1xuICAgICAgICAgIGUucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgfSBlbHNlIHsgcmV0dXJuOyB9XG4gICAgICB9LCBjbG9zZVN1YiA9IGZ1bmN0aW9uKCkge1xuICAgICAgICAvL2lmICgkZWxlbWVudC5pcygnOmZpcnN0LWNoaWxkJykpIHtcbiAgICAgICAgdmFyIGNsb3NlID0gJGVsZW1lbnQucGFyZW50KCd1bCcpLnBhcmVudCgnbGknKTtcbiAgICAgICAgY2xvc2UuY2hpbGRyZW4oJ2E6Zmlyc3QnKS5mb2N1cygpO1xuICAgICAgICBfdGhpcy5faGlkZShjbG9zZSk7XG4gICAgICAgIGUucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgLy99XG4gICAgICB9O1xuICAgICAgdmFyIGZ1bmN0aW9ucyA9IHtcbiAgICAgICAgb3Blbjogb3BlblN1YixcbiAgICAgICAgY2xvc2U6IGZ1bmN0aW9uKCkge1xuICAgICAgICAgIF90aGlzLl9oaWRlKF90aGlzLiRlbGVtZW50KTtcbiAgICAgICAgICBfdGhpcy4kbWVudUl0ZW1zLmVxKDApLmNoaWxkcmVuKCdhJykuZm9jdXMoKTsgLy8gZm9jdXMgdG8gZmlyc3QgZWxlbWVudFxuICAgICAgICAgIGUucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgfSxcbiAgICAgICAgaGFuZGxlZDogZnVuY3Rpb24oKSB7XG4gICAgICAgICAgZS5zdG9wSW1tZWRpYXRlUHJvcGFnYXRpb24oKTtcbiAgICAgICAgfVxuICAgICAgfTtcblxuICAgICAgaWYgKGlzVGFiKSB7XG4gICAgICAgIGlmIChfdGhpcy5faXNWZXJ0aWNhbCgpKSB7IC8vIHZlcnRpY2FsIG1lbnVcbiAgICAgICAgICBpZiAoX3RoaXMuX2lzUnRsKCkpIHsgLy8gcmlnaHQgYWxpZ25lZFxuICAgICAgICAgICAgJC5leHRlbmQoZnVuY3Rpb25zLCB7XG4gICAgICAgICAgICAgIGRvd246IG5leHRTaWJsaW5nLFxuICAgICAgICAgICAgICB1cDogcHJldlNpYmxpbmcsXG4gICAgICAgICAgICAgIG5leHQ6IGNsb3NlU3ViLFxuICAgICAgICAgICAgICBwcmV2aW91czogb3BlblN1YlxuICAgICAgICAgICAgfSk7XG4gICAgICAgICAgfSBlbHNlIHsgLy8gbGVmdCBhbGlnbmVkXG4gICAgICAgICAgICAkLmV4dGVuZChmdW5jdGlvbnMsIHtcbiAgICAgICAgICAgICAgZG93bjogbmV4dFNpYmxpbmcsXG4gICAgICAgICAgICAgIHVwOiBwcmV2U2libGluZyxcbiAgICAgICAgICAgICAgbmV4dDogb3BlblN1YixcbiAgICAgICAgICAgICAgcHJldmlvdXM6IGNsb3NlU3ViXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7IC8vIGhvcml6b250YWwgbWVudVxuICAgICAgICAgIGlmIChfdGhpcy5faXNSdGwoKSkgeyAvLyByaWdodCBhbGlnbmVkXG4gICAgICAgICAgICAkLmV4dGVuZChmdW5jdGlvbnMsIHtcbiAgICAgICAgICAgICAgbmV4dDogcHJldlNpYmxpbmcsXG4gICAgICAgICAgICAgIHByZXZpb3VzOiBuZXh0U2libGluZyxcbiAgICAgICAgICAgICAgZG93bjogb3BlblN1YixcbiAgICAgICAgICAgICAgdXA6IGNsb3NlU3ViXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgICB9IGVsc2UgeyAvLyBsZWZ0IGFsaWduZWRcbiAgICAgICAgICAgICQuZXh0ZW5kKGZ1bmN0aW9ucywge1xuICAgICAgICAgICAgICBuZXh0OiBuZXh0U2libGluZyxcbiAgICAgICAgICAgICAgcHJldmlvdXM6IHByZXZTaWJsaW5nLFxuICAgICAgICAgICAgICBkb3duOiBvcGVuU3ViLFxuICAgICAgICAgICAgICB1cDogY2xvc2VTdWJcbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfSBlbHNlIHsgLy8gbm90IHRhYnMgLT4gb25lIHN1YlxuICAgICAgICBpZiAoX3RoaXMuX2lzUnRsKCkpIHsgLy8gcmlnaHQgYWxpZ25lZFxuICAgICAgICAgICQuZXh0ZW5kKGZ1bmN0aW9ucywge1xuICAgICAgICAgICAgbmV4dDogY2xvc2VTdWIsXG4gICAgICAgICAgICBwcmV2aW91czogb3BlblN1YixcbiAgICAgICAgICAgIGRvd246IG5leHRTaWJsaW5nLFxuICAgICAgICAgICAgdXA6IHByZXZTaWJsaW5nXG4gICAgICAgICAgfSk7XG4gICAgICAgIH0gZWxzZSB7IC8vIGxlZnQgYWxpZ25lZFxuICAgICAgICAgICQuZXh0ZW5kKGZ1bmN0aW9ucywge1xuICAgICAgICAgICAgbmV4dDogb3BlblN1YixcbiAgICAgICAgICAgIHByZXZpb3VzOiBjbG9zZVN1YixcbiAgICAgICAgICAgIGR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