!function(){var e={871:function(e,t,n){e.exports=n(949)},801:function(e,t,n){"use strict";var r=n(98),o=n(161),i=n(328),a=n(156),s=n(251),c=n(347),l=n(429),u=n(833),f=n(625),p=n(768);e.exports=function xhrAdapter(e){return new Promise((function dispatchXhrRequest(t,n){var h,v=e.data,g=e.headers,b=e.responseType;function done(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}r.isFormData(v)&&delete g["Content-Type"];var w=new XMLHttpRequest;if(e.auth){var _=e.auth.username||"",k=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";g.Authorization="Basic "+btoa(_+":"+k)}var E=s(e.baseURL,e.url);function onloadend(){if(w){var r="getAllResponseHeaders"in w?c(w.getAllResponseHeaders()):null,i={data:b&&"text"!==b&&"json"!==b?w.response:w.responseText,status:w.status,statusText:w.statusText,headers:r,config:e,request:w};o((function _resolve(e){t(e),done()}),(function _reject(e){n(e),done()}),i),w=null}}if(w.open(e.method.toUpperCase(),a(E,e.params,e.paramsSerializer),!0),w.timeout=e.timeout,"onloadend"in w?w.onloadend=onloadend:w.onreadystatechange=function handleLoad(){w&&4===w.readyState&&(0!==w.status||w.responseURL&&0===w.responseURL.indexOf("file:"))&&setTimeout(onloadend)},w.onabort=function handleAbort(){w&&(n(u("Request aborted",e,"ECONNABORTED",w)),w=null)},w.onerror=function handleError(){n(u("Network Error",e,null,w)),w=null},w.ontimeout=function handleTimeout(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||f.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",w)),w=null},r.isStandardBrowserEnv()){var A=(e.withCredentials||l(E))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;A&&(g[e.xsrfHeaderName]=A)}"setRequestHeader"in w&&r.forEach(g,(function setRequestHeader(e,t){"undefined"===typeof v&&"content-type"===t.toLowerCase()?delete g[t]:w.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(w.withCredentials=!!e.withCredentials),b&&"json"!==b&&(w.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&w.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&w.upload&&w.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function onCanceled(e){w&&(n(!e||e&&e.type?new p("canceled"):e),w.abort(),w=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),v||(v=null),w.send(v)}))}},949:function(e,t,n){"use strict";var r=n(98),o=n(951),i=n(14),a=n(220);var s=function createInstance(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n.create=function create(t){return createInstance(a(e,t))},n}(n(625));s.Axios=i,s.Cancel=n(768),s.CancelToken=n(146),s.isCancel=n(577),s.VERSION=n(69).version,s.all=function all(e){return Promise.all(e)},s.spread=n(873),s.isAxiosError=n(120),e.exports=s,e.exports.default=s},768:function(e){"use strict";function Cancel(e){this.message=e}Cancel.prototype.toString=function toString(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,e.exports=Cancel},146:function(e,t,n){"use strict";var r=n(768);function CancelToken(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function promiseExecutor(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function forEachMethodNoData(e){s.headers[e]={}})),r.forEach(["post","put","patch"],(function forEachMethodWithData(e){s.headers[e]=r.merge(a)})),e.exports=s},69:function(e){e.exports={version:"0.24.0"}},951:function(e){"use strict";e.exports=function bind(e,t){return function wrap(){for(var n=new Array(arguments.length),r=0;r=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},873:function(e){"use strict";e.exports=function spread(e){return function wrap(t){return e.apply(null,t)}}},387:function(e,t,n){"use strict";function _typeof(e){return _typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}var r=n(69).version,o={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){o[e]=function validator(n){return _typeof(n)===e||"a"+(t<1?"n ":" ")+e}}));var i={};o.transitional=function transitional(e,t,n){function formatMessage(e,t){return"[Axios v"+r+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,r,o){if(!1===e)throw new Error(formatMessage(r," has been removed"+(t?" in "+t:"")));return t&&!i[r]&&(i[r]=!0,console.warn(formatMessage(r," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,r,o)}},e.exports={assertOptions:function assertOptions(e,t,n){if("object"!==_typeof(e))throw new TypeError("options must be an object");for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new TypeError("option "+i+" must be "+c)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},98:function(e,t,n){"use strict";function _typeof(e){return _typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}var r=n(951),o=Object.prototype.toString;function isArray(e){return"[object Array]"===o.call(e)}function isUndefined(e){return"undefined"===typeof e}function isObject(e){return null!==e&&"object"===_typeof(e)}function isPlainObject(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function isFunction(e){return"[object Function]"===o.call(e)}function forEach(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==_typeof(e)&&(e=[e]),isArray(e))for(var n=0,r=e.length;n0||navigator.msMaxTouchPoints>0||t.matchMedia("(hover: none)").matches,"init"),i.addEventListener("touchend",(function(e){var t=!1;"click"!==e.type&&(t=!0),s(t,"click-touchend")})),i.addEventListener("click",(function(e){var t=!1;"click"!==e.type&&(t=!0),s(t,"click-touchend")}))}(window),{ENVS:["xs","sm","md","lg","xl","xxl","xxxl"]});function _toConsumableArray(e){return function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}(e)||function _iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function _unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}(e)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nn.innerHeight?(o.classList.add("landscape"),o.classList.remove("portrait")):(u=!1,o.classList.add("portrait"),o.classList.remove("landscape")),console.log("".concat("_main.css-screen-size",": screen size detected ").concat(s," | landscape ").concat(u)),o.removeChild(i),s};n.addEventListener("".concat(e.LOADED),i),n.addEventListener("".concat(e.RESIZE),i)}(window);function _defineProperties(e,t){for(var n=0;n"),"color:yellow;font-size:10px"),console.info("%cENV: ".concat("production"),"color:green;font-size:10px"),console.groupCollapsed("Events"),Object.keys(e).forEach((function(t){console.info("".concat(t,": ").concat(e[t]))})),console.groupEnd("Events"),console.groupCollapsed("Consts"),Object.keys(t).forEach((function(e){console.info("".concat(e,": ").concat(t[e]))})),console.groupEnd("Events"),console.groupCollapsed("Init"),console.time("init");var o=function(){function MainUI(){!function main_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,MainUI)}return function main_createClass(e,t,n){return t&&main_defineProperties(e.prototype,t),n&&main_defineProperties(e,n),e}(MainUI,null,[{key:"init",value:function init(){n.history.replaceState({landing:n.location.href},document.title,n.location.href),this.loaded()}},{key:"loaded",value:function loaded(){console.log("".concat("_main",": loaded"))}}]),MainUI}(),a=function documentInit(){o.init(),r.classList.add("loaded"),i.hide(),console.groupEnd("init"),console.timeEnd("init"),n.addEventListener("".concat(e.LOADED),(function(t){n.dispatchEvent(new Event(e.LODEDANDREADY))}))};"loading"===document.readyState?document.addEventListener("".concat(e.DOMLOADED),a):a(),n.addEventListener("".concat(e.AJAX),(function(){o.loaded()})),n.MainUI=o}(window);var a="ajax-load",s="load-ready";function window_toConsumableArray(e){return function window_arrayWithoutHoles(e){if(Array.isArray(e))return window_arrayLikeToArray(e)}(e)||function window_iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function window_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return window_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return window_arrayLikeToArray(e,t)}(e)||function window_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function window_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{shown:!1},n=arguments.length>1?arguments[1]:void 0;window_classCallCheck(this,MetaWindow),_defineProperty(this,"state",{content:"",type:["empty"],shown:!1,loading:!1,error:!1,embed:!1,collections:[],current:null,target:null}),_defineProperty(this,"show",(function(){var t=e;console.log("".concat(t.name,": show")),t.setState({shown:!0}),c.dispatchEvent(new Event("{ui.name}.show"))})),_defineProperty(this,"hide",(function(){var t=e;console.log("".concat(t.name,": hide")),t.setState({shown:!1}),c.dispatchEvent(new Event("{ui.name}.hide"))})),_defineProperty(this,"next",(function(){var t=e,n=t.state.current.getAttribute("data-gallery"),r=t._currIndex();r0?r--:r=t.state.collections[n].length-1,t.state.collections[n][r].click(),console.log("".concat(t.name,": prev")),c.dispatchEvent(new Event("{ui.name}.prev"))})),_defineProperty(this,"reset",(function(){e.setState({content:"",type:["empty"],shown:!1,loading:!1,error:!1,embed:!1})})),_defineProperty(this,"load",(function(t){var n=e,r=n.axios;n.reset(),n.setState({loading:!0}),n.show(),r.get(t,{responseType:"arraybuffer"}).then((function(e){console.log("".concat(n.name,": response content-type: ").concat(e.headers["content-type"]));switch(e.headers["content-type"]){case"image/jpeg":case"image/png":case"image/svg+xml":case"image/bmp":case"image/gif":case"image/tiff":case"image/webp":case"image/jpg":case"image/svg":n.setContent(''),"meta-".concat(n.name,"--image"));break;case"application/json":case"application/ld+json":case"application/json; charset=UTF-8":n.setContent("".concat((!1).Content),["meta-".concat(n.name,"--text"),"meta-".concat(n.name,"--html"),"meta-".concat(n.name,"--json")]);break;case"text/html":case"application/xhtml+xml":case"text/plain":case"text/html; charset=UTF-8":case"application/xhtml+xml; charset=UTF-8":case"text/plain; charset=UTF-8":n.setContent(n._abToString(e.data),["meta-".concat(n.name,"--text"),"meta-".concat(n.name,"--html"),"meta-".concat(n.name,"--pajax")]);break;default:console.warn("".concat(n.name,": Unknown response content-type!"))}c.dispatchEvent(new Event("{ui.name}.loaded"))})).catch((function(e){console.error(e);var t="";if(e.response)switch(e.response.status){case 404:t="Not Found.";break;case 500:t="Server issue, please try again latter.";break;default:t="Something went wrong."}else e.request?t="No response received":console.warn("Error",e.message);n.setState({error:t}),c.dispatchEvent(new Event("{ui.name}.error"))})).then((function(){n.setState({loading:!1})}))})),_defineProperty(this,"_currIndex",(function(){var t=e,n=t.state.current,r=n.getAttribute("data-gallery");return t.state.collections[r].indexOf(n)})),_defineProperty(this,"embed",(function(t){var n=e;console.log("".concat(n.name,": embed")),n.reset(),n.setState({embed:t,loading:!1,type:["meta-".concat(n.name,"--embed"),"meta-".concat(n.name,"--video")]}),n.show()})),_defineProperty(this,"setCaption",(function(t){var n=e;console.log("".concat(n.name,": setCaption")),n.state.caption=t})),_defineProperty(this,"getCaption",(function(){return e.state.caption})),_defineProperty(this,"_abToString",(function(e){return String.fromCharCode.apply(null,new Uint8Array(e))})),_defineProperty(this,"_imageEncode",(function(e){new Uint8Array(e);return btoa([].reduce.call(new Uint8Array(e),(function(e,t){return e+String.fromCharCode(t)}),""))})),_defineProperty(this,"setContent",(function(t,n){var r=e;console.log("".concat(r.name,": setContent"));var o=n||["meta-".concat(r.name,"--html"),"meta-".concat(r.name,"--text")];Array.isArray(o)||(o=n.split(" ")),r.setState({content:t,type:o})})),_defineProperty(this,"getHtml",(function(){var t=e;if(t.state.embed){var n=__webpack_require__(960)(t.state.embed);t.state.content='')}return t.state.content}));var r=this;switch(r.name=r.constructor.name,console.log("".concat(r.name,": init")),r.axios=l,r.setState(t),n){case"show":case"hide":r.hide()}c.dispatchEvent(new Event("{ui.name}.init"))}return function window_createClass(e,t,n){return t&&window_defineProperties(e.prototype,t),n&&window_defineProperties(e,n),e}(MetaWindow,[{key:"init",value:function init(){var e=this;console.log("MetaWindow: [links] init"),document.querySelectorAll('[data-toggle="lightbox"],[data-gallery="${gallery}"]').forEach((function(t){var n=t.getAttribute("data-gallery");n&&(e.state.collections[n]=[],document.querySelectorAll('[data-toggle="lightbox"][data-gallery="'.concat(n,'"]')).forEach((function(t){e.state.collections[n].push(t)}))),t.addEventListener("click",(function(t){t.preventDefault(),console.log("MetaWindow: [link] click");var n=t.currentTarget,r=n.getAttribute("href")||n.getAttribute("data-href"),o=n.getAttribute("data-embed");e.state.current=n,o?e.embed(r):e.load(r);var i=n.getAttribute("data-title");i&&e.setCaption(i)}))}))}},{key:"setState",value:function setState(e){var t=this;t.state=Object.assign({},t.state,e),t.render()}},{key:"render",value:function render(){var e,t=this,n=t.name,r=t.state.current;t.state.target.innerHTML="";var o=document.createElement("div");o.classList.add("meta-".concat(n)),(e=o.classList).add.apply(e,window_toConsumableArray(t.state.type)),t.state.target.append(o);var i=document.createElement("div");i.classList.add("meta-".concat(n,"-overlay")),t.state.shown&&i.classList.add("meta-".concat(n,"-overlay--open")),t.state.loading&&i.classList.add("meta-".concat(n,"-overlay--loading")),t.state.error&&i.classList.add("meta-".concat(n,"-overlay--error")),o.append(i);var a=document.createElement("div");a.classList.add("meta-content"),i.append(a);var s=document.createElement("button");if(s.classList.add("meta-nav","meta-close","a"),s.innerHTML=' Close',s.addEventListener("click",(function(e){e.preventDefault(),t.hide()})),a.append(s),r){var c=r.getAttribute("data-gallery");if(c&&t.state.collections[c].length>1){var l=document.createElement("nav");l.classList.add("meta-navs");var u=document.createElement("button");u.classList.add("meta-nav","meta-nav-arrow","meta-nav-arrow__prev","a"),u.innerHTML=' Previous',u.addEventListener("click",(function(e){e.preventDefault(),t.prev()})),l.append(u);var f=document.createElement("button");f.classList.add("meta-nav","meta-nav-arrow","meta-nav-arrow__next","a"),f.innerHTML=' Next',f.addEventListener("click",(function(e){e.preventDefault(),t.next()})),l.append(f),a.append(l)}}var p=document.createElement("section");if(p.classList.add("meta-wrap","typography"),p.innerHTML=t.getHtml(),a.append(p),t.state.error){var h=document.createElement("div");h.classList.add("meta-error"),h.innerHTML=t.state.error,a.append(h)}else if(t.state.caption){var v=document.createElement("div");v.classList.add("meta-caption"),v.innerHTML=t.getCaption(),a.append(v)}return t}}]),MetaWindow}(),f=u,p=document.getElementById("MetaLightboxApp");p||console.log("MetaWindow: missing container #MetaLightboxApp");var h=function init(){var e=window.MetaWindow;"undefined"===typeof e&&(e=new f({target:p}),window.MetaWindow=e),e.init()};window.addEventListener("".concat(s),h),window.addEventListener("".concat(a),h),window.addEventListener("MetaWindow.initLinks",h);function _typeof(e){return _typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}var v="transitionend",g=function getSelector(e){var t=e.getAttribute("data-bs-target");if(!t||"#"===t){var n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n="#".concat(n.split("#")[1])),t=n&&"#"!==n?n.trim():null}return t},b=function getTransitionDurationFromElement(e){if(!e)return 0;var t=window.getComputedStyle(e),n=t.transitionDuration,r=t.transitionDelay,o=Number.parseFloat(n),i=Number.parseFloat(r);return o||i?(n=n.split(",")[0],r=r.split(",")[0],1e3*(Number.parseFloat(n)+Number.parseFloat(r))):0},w=function triggerTransitionEnd(e){e.dispatchEvent(new Event(v))},_=function isElement(e){return!(!e||"object"!==_typeof(e))&&("undefined"!==typeof e.jquery&&(e=e[0]),"undefined"!==typeof e.nodeType)},k=function getElement(e){return _(e)?e.jquery?e[0]:e:"string"===typeof e&&e.length>0?document.querySelector(e):null},E=function isVisible(e){return!(!_(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility")},A=function getjQuery(){var jQuery=window.jQuery;return jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?jQuery:null},O=[],S=function isRTL(){return"rtl"===document.documentElement.dir},T=function execute(e){"function"===typeof e&&e()},C=function executeAfterTransition(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(n){var r=5,o=b(t)+r,i=!1,a=function handler(n){n.target===t&&(i=!0,t.removeEventListener(v,handler),T(e))};t.addEventListener(v,a),setTimeout((function(){i||w(t)}),o)}else T(e)};function _slicedToArray(e,t){return function _arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function _iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||function event_handler_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return event_handler_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return event_handler_arrayLikeToArray(e,t)}(e,t)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function event_handler_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:null,r=Object.keys(e),o=0,i=r.length;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return(t=[]).concat.apply(t,selector_engine_toConsumableArray(Element.prototype.querySelectorAll.call(n,e)))},findOne:function findOne(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(t,e)},children:function children(e,t){var n;return(n=[]).concat.apply(n,selector_engine_toConsumableArray(e.children)).filter((function(e){return e.matches(t)}))},parents:function parents(e,t){for(var parents=[],n=e.parentNode;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(t)&&parents.push(n),n=n.parentNode;return parents},prev:function prev(e,t){for(var n=e.previousElementSibling;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next:function next(e,t){for(var next=e.nextElementSibling;next;){if(next.matches(t))return[next];next=next.nextElementSibling}return[]},focusableChildren:function focusableChildren(e){var t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((function(e){return"".concat(e,':not([tabindex^="-"])')})).join(", ");return this.find(t,e).filter((function(e){return!function isDisabled(e){return!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||("undefined"!==typeof e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))}(e)&&E(e)}))}},H=U,W=new Map,q=function set(e,t,n){W.has(e)||W.set(e,new Map);var r=W.get(e);r.has(t)||0===r.size?r.set(t,n):console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(r.keys())[0],"."))},z=function get(e,t){return W.has(e)&&W.get(e).get(t)||null},K=function remove(e,t){if(W.has(e)){var n=W.get(e);n.delete(t),0===n.size&&W.delete(e)}};function base_component_typeof(e){return base_component_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},base_component_typeof(e)}function base_component_defineProperties(e,t){for(var n=0;n2&&void 0!==arguments[2])||arguments[2];C(e,t,n)}}],[{key:"getInstance",value:function getInstance(e){return z(k(e),this.DATA_KEY)}},{key:"getOrCreateInstance",value:function getOrCreateInstance(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.getInstance(e)||new this(e,"object"===base_component_typeof(t)?t:null)}},{key:"VERSION",get:function get(){return"5.1.3"}},{key:"NAME",get:function get(){throw new Error('You have to implement the static method "NAME", for each component!')}},{key:"DATA_KEY",get:function get(){return"bs.".concat(this.NAME)}},{key:"EVENT_KEY",get:function get(){return".".concat(this.DATA_KEY)}}]),BaseComponent}(),Z=J;function carousel_typeof(e){return carousel_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},carousel_typeof(e)}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t0,r._pointerEvent=Boolean(window.PointerEvent),r._addEventListeners(),r}return function carousel_createClass(e,t,n){return t&&carousel_defineProperties(e.prototype,t),n&&carousel_defineProperties(e,n),e}(Carousel,[{key:"next",value:function next(){this._slide(re)}},{key:"nextWhenVisible",value:function nextWhenVisible(){!document.hidden&&E(this._element)&&this.next()}},{key:"prev",value:function prev(){this._slide(oe)}},{key:"pause",value:function pause(e){e||(this._isPaused=!0),H.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(w(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}},{key:"cycle",value:function cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}},{key:"to",value:function to(e){var t=this;this._activeElement=H.findOne(ke,this._element);var n=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)F.one(this._element,le,(function(){return t.to(e)}));else{if(n===e)return this.pause(),void this.cycle();var r=e>n?re:oe;this._slide(r,this._items[e])}}},{key:"_getConfig",value:function _getConfig(e){return e=_objectSpread(_objectSpread(_objectSpread({},te),Y.getDataAttributes(this._element)),"object"===carousel_typeof(e)?e:{}),function typeCheckConfig(e,t,n){Object.keys(n).forEach((function(r){var o=n[r],i=t[r],a=i&&_(i)?"element":function toType(e){return null===e||void 0===e?"".concat(e):{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}(i);if(!new RegExp(o).test(a))throw new TypeError("".concat(e.toUpperCase(),': Option "').concat(r,'" provided type "').concat(a,'" but expected type "').concat(o,'".'))}))}(G,e,ne),e}},{key:"_handleSwipe",value:function _handleSwipe(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?ae:ie)}}},{key:"_addEventListeners",value:function _addEventListeners(){var e=this;this._config.keyboard&&F.on(this._element,ue,(function(t){return e._keydown(t)})),"hover"===this._config.pause&&(F.on(this._element,de,(function(t){return e.pause(t)})),F.on(this._element,fe,(function(t){return e.cycle(t)}))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}},{key:"_addTouchEventListeners",value:function _addTouchEventListeners(){var e=this,t=function hasPointerPenTouch(t){return e._pointerEvent&&("pen"===t.pointerType||"touch"===t.pointerType)},n=function start(n){t(n)?e.touchStartX=n.clientX:e._pointerEvent||(e.touchStartX=n.touches[0].clientX)},r=function end(n){t(n)&&(e.touchDeltaX=n.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};H.find(".carousel-item img",this._element).forEach((function(e){F.on(e,ge,(function(e){return e.preventDefault()}))})),this._pointerEvent?(F.on(this._element,me,(function(e){return n(e)})),F.on(this._element,ve,(function(e){return r(e)})),this._element.classList.add("pointer-event")):(F.on(this._element,pe,(function(e){return n(e)})),F.on(this._element,he,(function(t){return function move(t){e.touchDeltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-e.touchStartX}(t)})),F.on(this._element,ye,(function(e){return r(e)})))}},{key:"_keydown",value:function _keydown(e){if(!/input|textarea/i.test(e.target.tagName)){var t=se[e.key];t&&(e.preventDefault(),this._slide(t))}}},{key:"_getItemIndex",value:function _getItemIndex(e){return this._items=e&&e.parentNode?H.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}},{key:"_getItemByOrder",value:function _getItemByOrder(e,t){var n=e===re;return function getNextActiveElement(e,t,n,r){var o=e.indexOf(t);if(-1===o)return e[!n&&r?e.length-1:0];var i=e.length;return o+=n?1:-1,r&&(o=(o+i)%i),e[Math.max(0,Math.min(o,i-1))]}(this._items,t,n,this._config.wrap)}},{key:"_triggerSlideEvent",value:function _triggerSlideEvent(e,t){var n=this._getItemIndex(e),r=this._getItemIndex(H.findOne(ke,this._element));return F.trigger(this._element,ce,{relatedTarget:e,direction:t,from:r,to:n})}},{key:"_setActiveIndicatorElement",value:function _setActiveIndicatorElement(e){if(this._indicatorsElement){var t=H.findOne(".active",this._indicatorsElement);t.classList.remove(_e),t.removeAttribute("aria-current");for(var n=H.find("[data-bs-target]",this._indicatorsElement),r=0;r1?t-1:0),r=1;r=t)&&(void 0===n||e<=n)}function limitToRange(e,t,n){return en?n:e}function createTagRepeat(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=Object.keys(n).reduce((function(e,t){var o=n[t];return"function"===typeof o&&(o=o(r)),"".concat(e," ").concat(t,'="').concat(o,'"')}),e);o+="<".concat(i,">");var a=r+1;return a\s+/g,">").replace(/\s+2&&void 0!==arguments[2]?arguments[2]:0,r=new Date(e).getDay();return addDays(e,dayDiff(t,n)-dayDiff(r,n))}function startOfYearPeriod(e,t){var n=new Date(e).getFullYear();return Math.floor(n/t)*t}var Ae=/dd?|DD?|mm?|MM?|yy?(?:yy)?/,Oe=/[\s!-/:-@[-`{-~\u5e74\u6708\u65e5]+/,Se={},Te={y:function y(e,t){return new Date(e).setFullYear(parseInt(t,10))},m:function m(e,t,n){var r=new Date(e),o=parseInt(t,10)-1;if(isNaN(o)){if(!t)return NaN;var i=t.toLowerCase(),a=function compareNames(e){return e.toLowerCase().startsWith(i)};if((o=n.monthsShort.findIndex(a))<0&&(o=n.months.findIndex(a)),o<0)return NaN}return r.setMonth(o),r.getMonth()!==normalizeMonth(o)?r.setDate(0):r.getTime()},d:function d(e,t){return new Date(e).setDate(parseInt(t,10))}},Ce={d:function d(e){return e.getDate()},dd:function dd(e){return padZero(e.getDate(),2)},D:function D(e,t){return t.daysShort[e.getDay()]},DD:function DD(e,t){return t.days[e.getDay()]},m:function m(e){return e.getMonth()+1},mm:function mm(e){return padZero(e.getMonth()+1,2)},M:function M(e,t){return t.monthsShort[e.getMonth()]},MM:function MM(e,t){return t.months[e.getMonth()]},y:function y(e){return e.getFullYear()},yy:function yy(e){return padZero(e.getFullYear(),2).slice(-2)},yyyy:function yyyy(e){return padZero(e.getFullYear(),4)}};function normalizeMonth(e){return e>-1?e%12:normalizeMonth(e+12)}function padZero(e,t){return e.toString().padStart(t,"0")}function parseFormatString(e){if("string"!==typeof e)throw new Error("Invalid date format.");if(e in Se)return Se[e];var t=e.split(Ae),n=e.match(new RegExp(Ae,"g"));if(0===t.length||!n)throw new Error("Invalid date format.");var r=n.map((function(e){return Ce[e]})),o=Object.keys(Te).reduce((function(e,t){return n.find((function(e){return"D"!==e[0]&&e[0].toLowerCase()===t}))&&e.push(t),e}),[]);return Se[e]={parser:function parser(e,t){var r=e.split(Oe).reduce((function(e,t,r){if(t.length>0&&n[r]){var o=n[r][0];"M"===o?e.m=t:"D"!==o&&(e[o]=t)}return e}),{});return o.reduce((function(e,n){var o=Te[n](e,r[n],t);return isNaN(o)?e:o}),today())},formatter:function formatter(e,n){return r.reduce((function(r,o,i){return r+"".concat(t[i]).concat(o(e,n))}),"")+lastItemOf(t)}}}function date_format_parseDate(e,t,n){if(e instanceof Date||"number"===typeof e){var r=stripTime(e);return isNaN(r)?void 0:r}if(e){if("today"===e)return today();if(t&&t.toValue){var o=t.toValue(e,t,n);return isNaN(o)?void 0:stripTime(o)}return parseFormatString(t).parser(e,n)}}function date_format_formatDate(e,t,n){if(isNaN(e)||!e&&0!==e)return"";var r="number"===typeof e?new Date(e):e;return t.toDisplay?t.toDisplay(r,t,n):parseFormatString(t).formatter(r,n)}function event_toConsumableArray(e){return function event_arrayWithoutHoles(e){if(Array.isArray(e))return event_arrayLikeToArray(e)}(e)||function event_iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function event_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return event_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return event_arrayLikeToArray(e,t)}(e)||function event_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function event_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:[];return n.push(e),e.parentNode?t=e.parentNode:e.host?t=e.host:e.defaultView&&(t=e.defaultView),t?getComposedPath(t,n):n};Event.prototype.composedPath=function(){return Me(this.target)}}function findFromPath(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=e[r];return t(o)?o:o!==n&&o.parentElement?findFromPath(e,t,n,r+1):void 0}function findElementInEventPath(e,t){var n="function"===typeof t?t:function(e){return e.matches(t)};return findFromPath(e.composedPath(),n,e.currentTarget)}var Ie={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM y"}},je={autohide:!1,beforeShowDay:null,beforeShowDecade:null,beforeShowMonth:null,beforeShowYear:null,calendarWeeks:!1,clearBtn:!1,dateDelimiter:",",datesDisabled:[],daysOfWeekDisabled:[],daysOfWeekHighlighted:[],defaultViewDate:void 0,disableTouchKeyboard:!1,format:"mm/dd/yyyy",language:"en",maxDate:null,maxNumberOfDates:1,maxView:3,minDate:null,nextArrow:"\xbb",orientation:"auto",pickLevel:0,prevArrow:"\xab",showDaysOfWeek:!0,showOnClick:!0,showOnFocus:!0,startView:0,title:"",todayBtn:!1,todayBtnMode:0,todayHighlight:!1,updateOnBlur:!0,weekStart:0},Ne=document.createRange();function parseHTML(e){return Ne.createContextualFragment(e)}function hideElement(e){"none"!==e.style.display&&(e.style.display&&(e.dataset.styleDisplay=e.style.display),e.style.display="none")}function showElement(e){"none"===e.style.display&&(e.dataset.styleDisplay?(e.style.display=e.dataset.styleDisplay,delete e.dataset.styleDisplay):e.style.display="")}function emptyChildNodes(e){e.firstChild&&(e.removeChild(e.firstChild),emptyChildNodes(e))}var Re=je.language,Be=je.format,Fe=je.weekStart;function sanitizeDOW(e,t){return e.length<6&&t>=0&&t<7?pushUnique(e,t):e}function calcEndOfWeek(e){return(e+6)%7}function validateDate(e,t,n,r){var o=date_format_parseDate(e,t,n);return void 0!==o?o:r}function validateViewId(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=parseInt(e,10);return r>=0&&r<=n?r:t}function processOptions(e,t){var n,r=Object.assign({},e),o={},i=t.constructor.locales,a=t.config||{},s=a.format,c=a.language,l=a.locale,u=a.maxDate,f=a.maxView,p=a.minDate,h=a.pickLevel,v=a.startView,g=a.weekStart;if(r.language&&(r.language!==c&&(i[r.language]?n=r.language:void 0===i[n=r.language.split("-")[0]]&&(n=!1)),delete r.language,n)){c=o.language=n;var b=l||i[Re];l=Object.assign({format:Be,weekStart:Fe},i[Re]),c!==Re&&Object.assign(l,i[c]),o.locale=l,s===b.format&&(s=o.format=l.format),g===b.weekStart&&(g=o.weekStart=l.weekStart,o.weekEnd=calcEndOfWeek(l.weekStart))}if(r.format){var w="function"===typeof r.format.toDisplay,_="function"===typeof r.format.toValue,k=Ae.test(r.format);(w&&_||k)&&(s=o.format=r.format),delete r.format}var E=p,A=u;if(void 0!==r.minDate&&(E=null===r.minDate?dateValue(0,0,1):validateDate(r.minDate,s,l,E),delete r.minDate),void 0!==r.maxDate&&(A=null===r.maxDate?void 0:validateDate(r.maxDate,s,l,A),delete r.maxDate),A=0&&(o.maxNumberOfDates=T,o.multidate=1!==T),delete r.maxNumberOfDates}r.dateDelimiter&&(o.dateDelimiter=String(r.dateDelimiter),delete r.dateDelimiter);var C=h;void 0!==r.pickLevel&&(C=validateViewId(r.pickLevel,2),delete r.pickLevel),C!==h&&(h=o.pickLevel=C);var L=f;void 0!==r.maxView&&(L=validateViewId(r.maxView,f),delete r.maxView),(L=h>L?h:L)!==f&&(f=o.maxView=L);var P=v;if(void 0!==r.startView&&(P=validateViewId(r.startView,P),delete r.startView),Pf&&(P=f),P!==v&&(o.startView=P),r.prevArrow){var x=parseHTML(r.prevArrow);x.childNodes.length>0&&(o.prevArrow=x.childNodes),delete r.prevArrow}if(r.nextArrow){var V=parseHTML(r.nextArrow);V.childNodes.length>0&&(o.nextArrow=V.childNodes),delete r.nextArrow}if(void 0!==r.disableTouchKeyboard&&(o.disableTouchKeyboard="ontouchstart"in document&&!!r.disableTouchKeyboard,delete r.disableTouchKeyboard),r.orientation){var I=r.orientation.toLowerCase().split(/\s+/g);o.orientation={x:I.find((function(e){return"left"===e||"right"===e}))||"auto",y:I.find((function(e){return"top"===e||"bottom"===e}))||"auto"},delete r.orientation}if(void 0!==r.todayBtnMode){switch(r.todayBtnMode){case 0:case 1:o.todayBtnMode=r.todayBtnMode}delete r.todayBtnMode}return Object.keys(r).forEach((function(e){void 0!==r[e]&&hasProperty(je,e)&&(o[e]=r[e])})),o}var Ye=optimizeTemplateHTML('
\n
\n
\n
\n
\n \n \n \n
\n
\n
\n \n
\n
'),Ue=optimizeTemplateHTML('
\n
'.concat(createTagRepeat("span",7,{class:"dow"}),'
\n
').concat(createTagRepeat("span",42),"
\n
")),He=optimizeTemplateHTML('
\n
\n
'.concat(createTagRepeat("span",6,{class:"week"}),"
\n
"));function View_toConsumableArray(e){return function View_arrayWithoutHoles(e){if(Array.isArray(e))return View_arrayLikeToArray(e)}(e)||function View_iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function View_unsupportedIterableToArray(e,t){if(!e)return;if("string"===typeof e)return View_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return View_arrayLikeToArray(e,t)}(e)||function View_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function View_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n').firstChild,selected:[]}),this.init(this.picker.datepicker.config)}return function View_createClass(e,t,n){return t&&View_defineProperties(e.prototype,t),n&&View_defineProperties(e,n),e}(View,[{key:"init",value:function init(e){void 0!==e.pickLevel&&(this.isMinView=this.id===e.pickLevel),this.setOptions(e),this.updateFocus(),this.updateSelection()}},{key:"performBeforeHook",value:function performBeforeHook(e,t,n){var r=this.beforeShow(new Date(n));switch(View_typeof(r)){case"boolean":r={enabled:r};break;case"string":r={classes:r}}if(r){if(!1===r.enabled&&(e.classList.add("disabled"),pushUnique(this.disabled,t)),r.classes){var o,i=r.classes.split(/\s+/);(o=e.classList).add.apply(o,View_toConsumableArray(i)),i.includes("disabled")&&pushUnique(this.disabled,t)}r.content&&function replaceChildNodes(e,t){emptyChildNodes(e),t instanceof DocumentFragment?e.appendChild(t):"string"===typeof t?e.appendChild(parseHTML(t)):"function"===typeof t.forEach&&t.forEach((function(t){e.appendChild(t)}))}(e,r.content)}}}]),View}();function DaysView_typeof(e){return DaysView_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},DaysView_typeof(e)}function DaysView_slicedToArray(e,t){return function DaysView_arrayWithHoles(e){if(Array.isArray(e))return e}(e)||function DaysView_iterableToArrayLimit(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(c){s=!0,o=c}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}(e,t)||DaysView_unsupportedIterableToArray(e,t)||function DaysView_nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DaysView_toConsumableArray(e){return function DaysView_arrayWithoutHoles(e){if(Array.isArray(e))return DaysView_arrayLikeToArray(e)}(e)||function DaysView_iterableToArray(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||DaysView_unsupportedIterableToArray(e)||function DaysView_nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function DaysView_unsupportedIterableToArray(e,t){if(e){if("string"===typeof e)return DaysView_arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?DaysView_arrayLikeToArray(e,t):void 0}}function DaysView_arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1])||arguments[1];if(t){var n=parseHTML(Ue).firstChild;this.dow=n.firstChild,this.grid=n.lastChild,this.element.appendChild(n)}_get(DaysView_getPrototypeOf(DaysView.prototype),"init",this).call(this,e)}},{key:"setOptions",value:function setOptions(e){var t,n=this;if(hasProperty(e,"minDate")&&(this.minDate=e.minDate),hasProperty(e,"maxDate")&&(this.maxDate=e.maxDate),e.datesDisabled&&(this.datesDisabled=e.datesDisabled),e.daysOfWeekDisabled&&(this.daysOfWeekDisabled=e.daysOfWeekDisabled,t=!0),e.daysOfWeekHighlighted&&(this.daysOfWeekHighlighted=e.daysOfWeekHighlighted),void 0!==e.todayHighlight&&(this.todayHighlight=e.todayHighlight),void 0!==e.weekStart&&(this.weekStart=e.weekStart,this.weekEnd=e.weekEnd,t=!0),e.locale){var r=this.locale=e.locale;this.dayNames=r.daysMin,this.switchLabelFormat=r.titleFormat,t=!0}if(void 0!==e.beforeShowDay&&(this.beforeShow="function"===typeof e.beforeShowDay?e.beforeShowDay:void 0),void 0!==e.calendarWeeks)if(e.calendarWeeks&&!this.calendarWeeks){var o=parseHTML(He).firstChild;this.calendarWeeks={element:o,dow:o.firstChild,weeks:o.lastChild},this.element.insertBefore(o,this.element.firstChild)}else this.calendarWeeks&&!e.calendarWeeks&&(this.element.removeChild(this.calendarWeeks.element),this.calendarWeeks=null);void 0!==e.showDaysOfWeek&&(e.showDaysOfWeek?(showElement(this.dow),this.calendarWeeks&&showElement(this.calendarWeeks.dow)):(hideElement(this.dow),this.calendarWeeks&&hideElement(this.calendarWeeks.dow))),t&&Array.from(this.dow.children).forEach((function(e,t){var r=(n.weekStart+t)%7;e.textContent=n.dayNames[r],e.className=n.daysOfWeekDisabled.includes(r)?"dow disabled":"dow"}))}},{key:"updateFocus",value:function updateFocus(){var e=new Date(this.picker.viewDate),t=e.getFullYear(),n=e.getMonth(),r=dateValue(t,n,1),o=dayOfTheWeekOf(r,this.weekStart,this.weekStart);this.first=r,this.last=dateValue(t,n+1,0),this.start=o,this.focused=this.picker.viewDate}},{key:"updateSelection",value:function updateSelection(){var e=this.picker.datepicker,t=e.dates,n=e.rangepicker;this.selected=t,n&&(this.range=n.dates)}},{key:"render",value:function render(){var e=this;this.today=this.todayHighlight?today():void 0,this.disabled=DaysView_toConsumableArray(this.datesDisabled);var t=date_format_formatDate(this.focused,this.switchLabelFormat,this.locale);if(this.picker.setViewSwitchLabel(t),this.picker.setPrevBtnDisabled(this.first<=this.minDate),this.picker.setNextBtnDisabled(this.last>=this.maxDate),this.calendarWeeks){var n=dayOfTheWeekOf(this.first,1,1);Array.from(this.calendarWeeks.weeks.children).forEach((function(e,t){e.textContent=function getWeek(e){var t=dayOfTheWeekOf(e,4,1),n=dayOfTheWeekOf(new Date(t).setMonth(0,4),4,1);return Math.round((t-n)/6048e5)+1}(function addWeeks(e,t){return addDays(e,7*t)}(n,t))}))}Array.from(this.grid.children).forEach((function(t,n){var r=t.classList,o=addDays(e.start,n),i=new Date(o),a=i.getDay();if(t.className="datepicker-cell ".concat(e.cellClass),t.dataset.date=o,t.textContent=i.getDate(),oe.last&&r.add("next"),e.today===o&&r.add("today"),(oe.maxDate||e.disabled.includes(o))&&r.add("disabled"),e.daysOfWeekDisabled.includes(a)&&(r.add("disabled"),pushUnique(e.disabled,o)),e.daysOfWeekHighlighted.includes(a)&&r.add("highlighted"),e.range){var s=DaysView_slicedToArray(e.range,2),c=s[0],l=s[1];o>c&&on&&oe.length)&&(t=e.length);for(var n=0,r=new Array(t);nt||s1&&void 0!==arguments[1])||arguments[1];t&&(this.grid=this.element,this.element.classList.add("months","datepicker-grid"),this.grid.appendChild(parseHTML(createTagRepeat("span",12,{"data-month":function dataMonth(e){return e}})))),MonthsView_get(MonthsView_getPrototypeOf(MonthsView.prototype),"init",this).call(this,e)}},{key:"setOptions",value:function setOptions(e){if(e.locale&&(this.monthNames=e.locale.monthsShort),hasProperty(e,"minDate"))if(void 0===e.minDate)this.minYear=this.minMonth=this.minDate=void 0;else{var t=new Date(e.minDate);this.minYear=t.getFullYear(),this.minMonth=t.getMonth(),this.minDate=t.setDate(1)}if(hasProperty(e,"maxDate"))if(void 0===e.maxDate)this.maxYear=this.maxMonth=this.maxDate=void 0;else{var n=new Date(e.maxDate);this.maxYear=n.getFullYear(),this.maxMonth=n.getMonth(),this.maxDate=dateValue(this.maxYear,this.maxMonth+1,0)}void 0!==e.beforeShowMonth&&(this.beforeShow="function"===typeof e.beforeShowMonth?e.beforeShowMonth:void 0)}},{key:"updateFocus",value:function updateFocus(){var e=new Date(this.picker.viewDate);this.year=e.getFullYear(),this.focused=e.getMonth()}},{key:"updateSelection",value:function updateSelection(){var e=this.picker.datepicker,t=e.dates,n=e.rangepicker;this.selected=t.reduce((function(e,t){var n=new Date(t),r=n.getFullYear(),o=n.getMonth();return void 0===e[r]?e[r]=[o]:pushUnique(e[r],o),e}),{}),n&&n.dates&&(this.range=n.dates.map((function(e){var t=new Date(e);return isNaN(t)?void 0:[t.getFullYear(),t.getMonth()]})))}},{key:"render",value:function render(){var e=this;this.disabled=[],this.picker.setViewSwitchLabel(this.year),this.picker.setPrevBtnDisabled(this.year<=this.minYear),this.picker.setNextBtnDisabled(this.year>=this.maxYear);var t=this.selected[this.year]||[],n=this.yearthis.maxYear,r=this.year===this.minYear,o=this.year===this.maxYear,i=computeMonthRange(this.range,this.year);Array.from(this.grid.children).forEach((function(a,s){var c=a.classList,l=dateValue(e.year,s,1);if(a.className="datepicker-cell ".concat(e.cellClass),e.isMinView&&(a.dataset.date=l),a.textContent=e.monthNames[s],(n||r&&se.maxMonth)&&c.add("disabled"),i){var u=MonthsView_slicedToArray(i,2),f=u[0],p=u[1];s>f&&sr&&ie.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1])||arguments[1];t&&(this.navStep=10*this.step,this.beforeShowOption="beforeShow".concat(toTitleCase(this.cellClass)),this.grid=this.element,this.element.classList.add(this.name,"datepicker-grid"),this.grid.appendChild(parseHTML(createTagRepeat("span",12)))),YearsView_get(YearsView_getPrototypeOf(YearsView.prototype),"init",this).call(this,e)}},{key:"setOptions",value:function setOptions(e){if(hasProperty(e,"minDate")&&(void 0===e.minDate?this.minYear=this.minDate=void 0:(this.minYear=startOfYearPeriod(e.minDate,this.step),this.minDate=dateValue(this.minYear,0,1))),hasProperty(e,"maxDate")&&(void 0===e.maxDate?this.maxYear=this.maxDate=void 0:(this.maxYear=startOfYearPeriod(e.maxDate,this.step),this.maxDate=dateValue(this.maxYear,11,31))),void 0!==e[this.beforeShowOption]){var t=e[this.beforeShowOption];this.beforeShow="function"===typeof t?t:void 0}}},{key:"updateFocus",value:function updateFocus(){var e=new Date(this.picker.viewDate),t=startOfYearPeriod(e,this.navStep),n=t+9*this.step;this.first=t,this.last=n,this.start=t-this.step,this.focused=startOfYearPeriod(e,this.step)}},{key:"updateSelection",value:function updateSelection(){var e=this,t=this.picker.datepicker,n=t.dates,r=t.rangepicker;this.selected=n.reduce((function(t,n){return pushUnique(t,startOfYearPeriod(n,e.step))}),[]),r&&r.dates&&(this.range=r.dates.map((function(t){if(void 0!==t)return startOfYearPeriod(t,e.step)})))}},{key:"render",value:function render(){var e=this;this.disabled=[],this.picker.setViewSwitchLabel("".concat(this.first,"-").concat(this.last)),this.picker.setPrevBtnDisabled(this.first<=this.minYear),this.picker.setNextBtnDisabled(this.last>=this.maxYear),Array.from(this.grid.children).forEach((function(t,n){var r=t.classList,o=e.start+n*e.step,i=dateValue(o,0,1);if(t.className="datepicker-cell ".concat(e.cellClass),e.isMinView&&(t.dataset.date=i),t.textContent=t.dataset.year=o,0===n?r.add("prev"):11===n&&r.add("next"),(oe.maxYear)&&r.add("disabled"),e.range){var a=YearsView_slicedToArray(e.range,2),s=a[0],c=a[1];o>s&&on&&oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?lastItemOf(t):n.defaultViewDate,n.minDate,n.maxDate)}function setViewDate(e,t){var n=new Date(e.viewDate),r=new Date(t),o=e.currentView,i=o.id,a=o.year,s=o.first,c=o.last,l=r.getFullYear();switch(e.viewDate=t,l!==n.getFullYear()&&triggerDatepickerEvent(e.datepicker,"changeYear"),r.getMonth()!==n.getMonth()&&triggerDatepickerEvent(e.datepicker,"changeMonth"),i){case 0:return tc;case 1:return l!==a;default:return lc}}function getTextDirection(e){return window.getComputedStyle(e).direction}var Xe=function(){function Picker(e){!function Picker_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Picker),this.datepicker=e;var t=Ye.replace(/%buttonClass%/g,e.config.buttonClass),n=this.element=parseHTML(t).firstChild,r=Picker_slicedToArray(n.firstChild.children,3),o=r[0],i=r[1],a=r[2],s=o.firstElementChild,c=Picker_slicedToArray(o.lastElementChild.children,3),l=c[0],u=c[1],f=c[2],p=Picker_slicedToArray(a.firstChild.children,2),h={title:s,prevBtn:l,viewSwitch:u,nextBtn:f,todayBtn:p[0],clearBtn:p[1]};this.main=i,this.controls=h;var v=e.inline?"inline":"dropdown";n.classList.add("datepicker-".concat(v)),processPickerOptions(this,e.config),this.viewDate=computeResetViewDate(e),registerListeners(e,[[n,"click",onClickPicker.bind(null,e),{capture:!0}],[i,"click",onClickView.bind(null,e)],[h.viewSwitch,"click",onClickViewSwitch.bind(null,e)],[h.prevBtn,"click",onClickPrevBtn.bind(null,e)],[h.nextBtn,"click",onClickNextBtn.bind(null,e)],[h.todayBtn,"click",onClickTodayBtn.bind(null,e)],[h.clearBtn,"click",onClickClearBtn.bind(null,e)]]),this.views=[new qe(this),new ze(this),new Ke(this,{id:2,name:"years",cellClass:"year",step:1}),new Ke(this,{id:3,name:"decades",cellClass:"decade",step:10})],this.currentView=this.views[e.config.startView],this.currentView.render(),this.main.appendChild(this.currentView.element),e.config.container.appendChild(this.element)}return function Picker_createClass(e,t,n){return t&&Picker_defineProperties(e.prototype,t),n&&Picker_defineProperties(e,n),e}(Picker,[{key:"setOptions",value:function setOptions(e){processPickerOptions(this,e),this.views.forEach((function(t){t.init(e,!1)})),this.currentView.render()}},{key:"detach",value:function detach(){this.datepicker.config.container.removeChild(this.element)}},{key:"show",value:function show(){if(!this.active){this.element.classList.add("active"),this.active=!0;var e=this.datepicker;if(!e.inline){var t=getTextDirection(e.inputField);t!==getTextDirection(e.config.container)?this.element.dir=t:this.element.dir&&this.element.removeAttribute("dir"),this.place(),e.config.disableTouchKeyboard&&e.inputField.blur()}triggerDatepickerEvent(e,"show")}}},{key:"hide",value:function hide(){this.active&&(this.datepicker.exitEditMode(),this.element.classList.remove("active"),this.active=!1,triggerDatepickerEvent(this.datepicker,"hide"))}},{key:"place",value:function place(){var e,t,n,r=this.element,o=r.classList,i=r.style,a=this.datepicker,s=a.config,c=a.inputField,l=s.container,u=this.element.getBoundingClientRect(),f=u.width,p=u.height,h=l.getBoundingClientRect(),v=h.left,g=h.top,b=h.width,w=c.getBoundingClientRect(),_=w.left,k=w.top,E=w.width,A=w.height,O=s.orientation,S=O.x,T=O.y;l===document.body?(e=window.scrollY,t=_+window.scrollX,n=k+e):(t=_-v,n=k-g+(e=l.scrollTop)),"auto"===S&&(t<0?(S="left",t=10):S=t+f>b||"rtl"===getTextDirection(c)?"right":"left"),"right"===S&&(t-=f-E),"auto"===T&&(T=n-p0&&void 0!==arguments[0])||arguments[0],t=e&&this._renderMethod||"render";delete this._renderMethod,this.currentView[t]()}}]),Picker}();function findNextAvailableOne(e,t,n,r,o,i){if(isInRange(e,o,i))return r(e)?findNextAvailableOne(t(e,n),t,n,r,o,i):e}function moveByArrowKey(e,t,n,r){var o,i,a=e.picker,s=a.currentView,c=s.step||1,l=a.viewDate;switch(s.id){case 0:l=r?addDays(l,7*n):t.ctrlKey||t.metaKey?addYears(l,n):addDays(l,n),o=addDays,i=function testFn(e){return s.disabled.includes(e)};break;case 1:l=addMonths(l,r?4*n:n),o=addMonths,i=function testFn(e){var t=new Date(e),n=s.year,r=s.disabled;return t.getFullYear()===n&&r.includes(t.getMonth())};break;default:l=addYears(l,n*(r?4:1)*c),o=addYears,i=function testFn(e){return s.disabled.includes(startOfYearPeriod(e,c))}}void 0!==(l=findNextAvailableOne(l,o,n<0?-c:c,i,s.minDate,s.maxDate))&&a.changeFocus(l).render()}function onKeydown(e,t){if("Tab"!==t.key){var n=e.picker,r=n.currentView,o=r.id,i=r.isMinView;if(n.active)if(e.editMode)switch(t.key){case"Escape":n.hide();break;case"Enter":e.exitEditMode({update:!0,autohide:e.config.autohide});break;default:return}else switch(t.key){case"Escape":n.hide();break;case"ArrowLeft":if(t.ctrlKey||t.metaKey)goToPrevOrNext(e,-1);else{if(t.shiftKey)return void e.enterEditMode();moveByArrowKey(e,t,-1,!1)}break;case"ArrowRight":if(t.ctrlKey||t.metaKey)goToPrevOrNext(e,1);else{if(t.shiftKey)return void e.enterEditMode();moveByArrowKey(e,t,1,!1)}break;case"ArrowUp":if(t.ctrlKey||t.metaKey)switchView(e);else{if(t.shiftKey)return void e.enterEditMode();moveByArrowKey(e,t,-1,!0)}break;case"ArrowDown":if(t.shiftKey&&!t.ctrlKey&&!t.metaKey)return void e.enterEditMode();moveByArrowKey(e,t,1,!0);break;case"Enter":i?e.setDate(n.viewDate):n.changeView(o-1).render();break;case"Backspace":case"Delete":return void e.enterEditMode();default:return void(1!==t.key.length||t.ctrlKey||t.metaKey||e.enterEditMode())}else switch(t.key){case"ArrowDown":case"Escape":n.show();break;case"Enter":e.update();break;default:return}t.preventDefault(),t.stopPropagation()}else unfocus(e)}function onFocus(e){e.config.showOnFocus&&!e._showing&&e.show()}function onMousedown(e,t){var n=t.target;(e.picker.active||e.config.showOnClick)&&(n._active=n===document.activeElement,n._clicking=setTimeout((function(){delete n._active,delete n._clicking}),2e3))}function onClickInput(e,t){var n=t.target;n._clicking&&(clearTimeout(n._clicking),delete n._clicking,n._active&&e.enterEditMode(),delete n._active,e.config.showOnClick&&e.show())}function onPaste(e,t){t.clipboardData.types.includes("text/plain")&&e.enterEditMode()}function onClickOutside(e,t){var n=e.element;if(n===document.activeElement){var r=e.picker.element;findElementInEventPath(t,(function(e){return e===n||e===r}))||unfocus(e)}}function Datepicker_typeof(e){return Datepicker_typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function _typeof(e){return typeof e}:function _typeof(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Datepicker_typeof(e)}function Datepicker_classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Datepicker_defineProperties(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=e.config,o=e.dates,i=e.rangepicker;if(0===t.length)return n?[]:void 0;var a=i&&e===i.datepickers[1],s=t.reduce((function(e,t){var n=date_format_parseDate(t,r.format,r.locale);if(void 0===n)return e;if(r.pickLevel>0){var o=new Date(n);n=1===r.pickLevel?a?o.setMonth(o.getMonth()+1,0):o.setDate(1):a?o.setFullYear(o.getFullYear()+1,0,0):o.setMonth(0,1)}return!isInRange(n,r.minDate,r.maxDate)||e.includes(n)||r.datesDisabled.includes(n)||r.daysOfWeekDisabled.includes(new Date(n).getDay())||e.push(n),e}),[]);return 0!==s.length?(r.multidate&&!n&&(s=s.reduce((function(e,t){return o.includes(t)||e.push(t),e}),o.filter((function(e){return!s.includes(e)})))),r.maxNumberOfDates&&s.length>r.maxNumberOfDates?s.slice(-1*r.maxNumberOfDates):s):void 0}function refreshUI(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.config,o=e.picker,i=e.inputField;if(2&t){var a=o.active?r.pickLevel:r.startView;o.update().changeView(a).render(n)}1&t&&i&&(i.value=stringifyDates(e.dates,r))}function _setDate(e,t,n){var r=n.clear,o=n.render,i=n.autohide;void 0===o&&(o=!0),o?void 0===i&&(i=e.config.autohide):i=!1;var a=processInputDates(e,t,r);a&&(a.toString()!==e.dates.toString()?(e.dates=a,refreshUI(e,o?3:1),triggerDatepickerEvent(e,"changeDate")):refreshUI(e,1),i&&e.hide())}var Je=function(){function Datepicker(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;Datepicker_classCallCheck(this,Datepicker),e.datepicker=this,this.element=e;var r=this.config=Object.assign({buttonClass:t.buttonClass&&String(t.buttonClass)||"button",container:document.body,defaultViewDate:today(),maxDate:void 0,minDate:void 0},processOptions(je,this));this._options=t,Object.assign(r,processOptions(t,this));var o,i,a=this.inline="INPUT"!==e.tagName;if(a)r.container=e,i=stringToArray(e.dataset.date,r.dateDelimiter),delete e.dataset.date;else{var s=t.container?document.querySelector(t.container):null;s&&(r.container=s),(o=this.inputField=e).classList.add("datepicker-input"),i=stringToArray(o.value,r.dateDelimiter)}if(n){var c=n.inputs.indexOf(o),l=n.datepickers;if(c<0||c>1||!Array.isArray(l))throw Error("Invalid rangepicker object.");l[c]=this,Object.defineProperty(this,"rangepicker",{get:function get(){return n}})}this.dates=[];var u=processInputDates(this,i);u&&u.length>0&&(this.dates=u),o&&(o.value=stringifyDates(this.dates,r));var f=this.picker=new Xe(this);if(a)this.show();else{var p=onClickOutside.bind(null,this),h=[[o,"keydown",onKeydown.bind(null,this)],[o,"focus",onFocus.bind(null,this)],[o,"mousedown",onMousedown.bind(null,this)],[o,"click",onClickInput.bind(null,this)],[o,"paste",onPaste.bind(null,this)],[document,"mousedown",p],[document,"touchstart",p],[window,"resize",f.place.bind(f)]];registerListeners(this,h)}}return function Datepicker_createClass(e,t,n){return t&&Datepicker_defineProperties(e.prototype,t),n&&Datepicker_defineProperties(e,n),e}(Datepicker,[{key:"active",get:function get(){return!(!this.picker||!this.picker.active)}},{key:"pickerElement",get:function get(){return this.picker?this.picker.element:void 0}},{key:"setOptions",value:function setOptions(e){var t=this.picker,n=processOptions(e,this);Object.assign(this._options,e),Object.assign(this.config,n),t.setOptions(n),refreshUI(this,3)}},{key:"show",value:function show(){if(this.inputField){if(this.inputField.disabled)return;this.inputField!==document.activeElement&&(this._showing=!0,this.inputField.focus(),delete this._showing)}this.picker.show()}},{key:"hide",value:function hide(){this.inline||(this.picker.hide(),this.picker.update().changeView(this.config.startView).render())}},{key:"destroy",value:function destroy(){return this.hide(),function unregisterListeners(e){var t=Le.get(e);t&&(t.forEach((function(e){Ve.call.apply(Ve,event_toConsumableArray(e))})),Le.delete(e))}(this),this.picker.detach(),this.inline||this.inputField.classList.remove("datepicker-input"),delete this.element.datepicker,this}},{key:"getDate",value:function getDate(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,n=t?function(n){return date_format_formatDate(n,t,e.config.locale)}:function(e){return new Date(e)};return this.config.multidate?this.dates.map(n):this.dates.length>0?n(this.dates[0]):void 0}},{key:"setDate",value:function setDate(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:void 0;if(!this.inline){var t={clear:!0,autohide:!(!e||!e.autohide)},n=stringToArray(this.inputField.value,this.config.dateDelimiter);_setDate(this,n,t)}}},{key:"refresh",value:function refresh(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e&&"string"!==typeof e&&(t=e,e=void 0),refreshUI(this,"picker"===e?2:"input"===e?1:3,!t)}},{key:"enterEditMode",value:function enterEditMode(){this.inline||!this.picker.active||this.editMode||(this.editMode=!0,this.inputField.classList.add("in-edit"))}},{key:"exitEditMode",value:function exitEditMode(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;if(!this.inline&&this.editMode){var t=Object.assign({update:!1},e);delete this.editMode,this.inputField.classList.remove("in-edit"),t.update&&this.update(t)}}}],[{key:"formatDate",value:function formatDate(e,t,n){return date_format_formatDate(e,t,n&&Ie[n]||Ie.en)}},{key:"parseDate",value:function parseDate(e,t,n){return date_format_parseDate(e,t,n&&Ie[n]||Ie.en)}},{key:"locales",get:function get(){return Ie}}]),Datepicker}(),$e=function init(){document.querySelectorAll(".js-datepicker").forEach((function(e,t){var n=new Je(e);e.ui=n}))};window.addEventListener("".concat(e.LODEDANDREADY),$e),window.addEventListener("".concat(e.AJAX),$e);var Ze=__webpack_require__(871);!function(t){var n,r="main.online",o=document,i=o.body,a=o.querySelector('meta[name="ping"]'),s=!1,c=function UPDATE_ONLINE_STATUS(o){s||(s=!0,o?(i.classList.contains("is-offline")?(console.log("".concat(r,": back Online")),t.dispatchEvent(new Event(e.BACKONLINE))):(console.log("".concat(r,": Online")),t.dispatchEvent(new Event(e.ONLINE))),i.classList.add("is-online"),i.classList.remove("is-offline"),a&&!n&&(console.log("".concat(r,": SESSION_PING is active")),n=setInterval(u,3e5))):(console.log("".concat(r,": Offline")),i.classList.add("is-offline"),i.classList.remove("is-online"),clearInterval(n),n=null,t.dispatchEvent(new Event(e.OFFLINE))),s=!1)},l=!1,u=function SESSION_PING(){if(!l&&!i.classList.contains("is-offline")){var e=a.getAttribute("content");console.log("".concat(r,": session ping")),l=!0,Ze.post(e,{}).then((function(e){l=!1,c(!0)})).catch((function(e){console.error(e),console.warn("".concat(r,": SESSION_PING failed")),l=!1,c(!1)}))}},f=function navigatorStateUpdate(){"undefined"!==typeof navigator.onLine&&(navigator.onLine?c(!0):c(!1))};t.addEventListener("".concat(e.OFFLINE),(function(){c(!1)})),t.addEventListener("".concat(e.ONLINE),(function(){c(!0)})),t.addEventListener("".concat(e.LOADED),f),t.addEventListener("".concat(e.AJAX),f)}(window);function image_defineProperties(e,t){for(var n=0;n