1webpackJsonp([0,1],[function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}n(2);var i=n(5),a=r(i);n(6),n(8),n(56),n(57),(0,a["default"])({nosvg:!1})},function(e,t,n){/*! 2 * Bootstrap v4.1.3 (https://getbootstrap.com/) 3 * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 4 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 5 */ 6!function(e,r){r(t,n(3),n(4))}(this,function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){a(e,t,n[t])})}return e}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}t=t&&t.hasOwnProperty("default")?t["default"]:t,n=n&&n.hasOwnProperty("default")?n["default"]:n;var l=function(e){function t(e){return{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}function n(){return{bindType:a,delegateType:a,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}}function r(t){var n=this,r=!1;return e(this).one(l.TRANSITION_END,function(){r=!0}),setTimeout(function(){r||l.triggerTransitionEnd(n)},t),this}function i(){e.fn.emulateTransitionEnd=r,e.event.special[l.TRANSITION_END]=n()}var a="transitionend",o=1e6,s=1e3,l={TRANSITION_END:"bsTransitionEnd",getUID:function(e){do e+=~~(Math.random()*o);while(document.getElementById(e));return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");t&&"#"!==t||(t=e.getAttribute("href")||"");try{return document.querySelector(t)?t:null}catch(n){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var n=e(t).css("transition-duration"),r=parseFloat(n);return r?(n=n.split(",")[0],parseFloat(n)*s):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(t){e(t).trigger(a)},supportsTransitionEnd:function(){return Boolean(a)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,n,r){for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)){var a=r[i],o=n[i],s=o&&l.isElement(o)?"element":t(o);if(!new RegExp(a).test(s))throw new Error(e.toUpperCase()+": "+('Option "'+i+'" provided type "'+s+'" ')+('but expected type "'+a+'".'))}}};return i(),l}(t),u=function(e){var t="alert",n="4.1.3",r="bs.alert",a="."+r,o=".data-api",s=e.fn[t],u={DISMISS:'[data-dismiss="alert"]'},c={CLOSE:"close"+a,CLOSED:"closed"+a,CLICK_DATA_API:"click"+a+o},d={ALERT:"alert",FADE:"fade",SHOW:"show"},h=function(){function t(e){this._element=e}var a=t.prototype;return a.close=function(e){var t=this._element;e&&(t=this._getRootElement(e));var n=this._triggerCloseEvent(t);n.isDefaultPrevented()||this._removeElement(t)},a.dispose=function(){e.removeData(this._element,r),this._element=null},a._getRootElement=function(t){var n=l.getSelectorFromElement(t),r=!1;return n&&(r=document.querySelector(n)),r||(r=e(t).closest("."+d.ALERT)[0]),r},a._triggerCloseEvent=function(t){var n=e.Event(c.CLOSE);return e(t).trigger(n),n},a._removeElement=function(t){var n=this;if(e(t).removeClass(d.SHOW),!e(t).hasClass(d.FADE))return void this._destroyElement(t);var r=l.getTransitionDurationFromElement(t);e(t).one(l.TRANSITION_END,function(e){return n._destroyElement(t,e)}).emulateTransitionEnd(r)},a._destroyElement=function(t){e(t).detach().trigger(c.CLOSED).remove()},t._jQueryInterface=function(n){return this.each(function(){var i=e(this),a=i.data(r);a||(a=new t(this),i.data(r,a)),"close"===n&&a[n](this)})},t._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},i(t,null,[{key:"VERSION",get:function(){return n}}]),t}();return e(document).on(c.CLICK_DATA_API,u.DISMISS,h._handleDismiss(new h)),e.fn[t]=h._jQueryInterface,e.fn[t].Constructor=h,e.fn[t].noConflict=function(){return e.fn[t]=s,h._jQueryInterface},h}(t),c=function(e){var t="button",n="4.1.3",r="bs.button",a="."+r,o=".data-api",s=e.fn[t],l={ACTIVE:"active",BUTTON:"bt
6n",FOCUS:"focus"},u={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},c={CLICK_DATA_API:"click"+a+o,FOCUS_BLUR_DATA_API:"focus"+a+o+" "+("blur"+a+o)},d=function(){function t(e){this._element=e}var a=t.prototype;return a.toggle=function(){var t=!0,n=!0,r=e(this._element).closest(u.DATA_TOGGLE)[0];if(r){var i=this._element.querySelector(u.INPUT);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(l.ACTIVE))t=!1;else{var a=r.querySelector(u.ACTIVE);a&&e(a).removeClass(l.ACTIVE)}if(t){if(i.hasAttribute("disabled")||r.hasAttribute("disabled")||i.classList.contains("disabled")||r.classList.contains("disabled"))return;i.checked=!this._element.classList.contains(l.ACTIVE),e(i).trigger("change")}i.focus(),n=!1}}n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(l.ACTIVE)),t&&e(this._element).toggleClass(l.ACTIVE)},a.dispose=function(){e.removeData(this._element,r),this._element=null},t._jQueryInterface=function(n){return this.each(function(){var i=e(this).data(r);i||(i=new t(this),e(this).data(r,i)),"toggle"===n&&i[n]()})},i(t,null,[{key:"VERSION",get:function(){return n}}]),t}();return e(document).on(c.CLICK_DATA_API,u.DATA_TOGGLE_CARROT,function(t){t.preventDefault();var n=t.target;e(n).hasClass(l.BUTTON)||(n=e(n).closest(u.BUTTON)),d._jQueryInterface.call(e(n),"toggle")}).on(c.FOCUS_BLUR_DATA_API,u.DATA_TOGGLE_CARROT,function(t){var n=e(t.target).closest(u.BUTTON)[0];e(n).toggleClass(l.FOCUS,/^focus(in)?$/.test(t.type))}),e.fn[t]=d._jQueryInterface,e.fn[t].Constructor=d,e.fn[t].noConflict=function(){return e.fn[t]=s,d._jQueryInterface},d}(t),d=function(e){var t="carousel",n="4.1.3",r="bs.carousel",a="."+r,s=".data-api",u=e.fn[t],c=37,d=39,h=500,p={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},f={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},g={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},m={SLIDE:"slide"+a,SLID:"slid"+a,KEYDOWN:"keydown"+a,MOUSEENTER:"mouseenter"+a,MOUSELEAVE:"mouseleave"+a,TOUCHEND:"touchend"+a,LOAD_DATA_API:"load"+a+s,CLICK_DATA_API:"click"+a+s},v={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},y={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},_=function(){function s(t,n){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(n),this._element=e(t)[0],this._indicatorsElement=this._element.querySelector(y.INDICATORS),this._addEventListeners()}var u=s.prototype;return u.next=function(){this._isSliding||this._slide(g.NEXT)},u.nextWhenVisible=function(){!document.hidden&&e(this._element).is(":visible")&&"hidden"!==e(this._element).css("visibility")&&this.next()},u.prev=function(){this._isSliding||this._slide(g.PREV)},u.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(y.NEXT_PREV)&&(l.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},u.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},u.to=function(t){var n=this;this._activeElement=this._element.querySelector(y.ACTIVE_ITEM);var r=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0)){if(this._isSliding)return void e(this._element).one(m.SLID,function(){return n.to(t)});if(r===t)return this.pause(),void this.cycle();var i=t>r?g.NEXT:g.PREV;this._slide(i,this._items[t])}},u.dispose=function(){e(this._element).off(a),e.removeData(this._element,r),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},u._getConfig=function(e){return e=o({},p,e),l.typeCheckConfig(t,e,f),e},u._addEventListeners=function(){var t=this;this._config.keyboard&&e(this._element).on(m.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&(e(this._element).on(m.MOUSEENTER,function(e){return t.pause(e)}).on(m.MOUSELEAVE,function(e){return t.cycle(e)}),"ontouchstart"in document.documentElement&&e(this._element).on(m.TOUC
6HEND,function(){t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},h+t._config.interval)}))},u._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case c:e.preventDefault(),this.prev();break;case d:e.preventDefault(),this.next()}},u._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(y.ITEM)):[],this._items.indexOf(e)},u._getItemByDirection=function(e,t){var n=e===g.NEXT,r=e===g.PREV,i=this._getItemIndex(t),a=this._items.length-1,o=r&&0===i||n&&i===a;if(o&&!this._config.wrap)return t;var s=e===g.PREV?-1:1,l=(i+s)%this._items.length;return l===-1?this._items[this._items.length-1]:this._items[l]},u._triggerSlideEvent=function(t,n){var r=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(y.ACTIVE_ITEM)),a=e.Event(m.SLIDE,{relatedTarget:t,direction:n,from:i,to:r});return e(this._element).trigger(a),a},u._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(y.ACTIVE));e(n).removeClass(v.ACTIVE);var r=this._indicatorsElement.children[this._getItemIndex(t)];r&&e(r).addClass(v.ACTIVE)}},u._slide=function(t,n){var r,i,a,o=this,s=this._element.querySelector(y.ACTIVE_ITEM),u=this._getItemIndex(s),c=n||s&&this._getItemByDirection(t,s),d=this._getItemIndex(c),h=Boolean(this._interval);if(t===g.NEXT?(r=v.LEFT,i=v.NEXT,a=g.LEFT):(r=v.RIGHT,i=v.PREV,a=g.RIGHT),c&&e(c).hasClass(v.ACTIVE))return void(this._isSliding=!1);var p=this._triggerSlideEvent(c,a);if(!p.isDefaultPrevented()&&s&&c){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(c);var f=e.Event(m.SLID,{relatedTarget:c,direction:a,from:u,to:d});if(e(this._element).hasClass(v.SLIDE)){e(c).addClass(i),l.reflow(c),e(s).addClass(r),e(c).addClass(r);var _=l.getTransitionDurationFromElement(s);e(s).one(l.TRANSITION_END,function(){e(c).removeClass(r+" "+i).addClass(v.ACTIVE),e(s).removeClass(v.ACTIVE+" "+i+" "+r),o._isSliding=!1,setTimeout(function(){return e(o._element).trigger(f)},0)}).emulateTransitionEnd(_)}else e(s).removeClass(v.ACTIVE),e(c).addClass(v.ACTIVE),this._isSliding=!1,e(this._element).trigger(f);h&&this.cycle()}},s._jQueryInterface=function(t){return this.each(function(){var n=e(this).data(r),i=o({},p,e(this).data());"object"==typeof t&&(i=o({},i,t));var a="string"==typeof t?t:i.slide;if(n||(n=new s(this,i),e(this).data(r,n)),"number"==typeof t)n.to(t);else if("string"==typeof a){if("undefined"==typeof n[a])throw new TypeError('No method named "'+a+'"');n[a]()}else i.interval&&(n.pause(),n.cycle())})},s._dataApiClickHandler=function(t){var n=l.getSelectorFromElement(this);if(n){var i=e(n)[0];if(i&&e(i).hasClass(v.CAROUSEL)){var a=o({},e(i).data(),e(this).data()),u=this.getAttribute("data-slide-to");u&&(a.interval=!1),s._jQueryInterface.call(e(i),a),u&&e(i).data(r).to(u),t.preventDefault()}}},i(s,null,[{key:"VERSION",get:function(){return n}},{key:"Default",get:function(){return p}}]),s}();return e(document).on(m.CLICK_DATA_API,y.DATA_SLIDE,_._dataApiClickHandler),e(window).on(m.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(y.DATA_RIDE)),n=0,r=t.length;n<r;n++){var i=e(t[n]);_._jQueryInterface.call(i,i.data())}}),e.fn[t]=_._jQueryInterface,e.fn[t].Constructor=_,e.fn[t].noConflict=function(){return e.fn[t]=u,_._jQueryInterface},_}(t),h=function(e){var t="collapse",n="4.1.3",r="bs.collapse",a="."+r,s=".data-api",u=e.fn[t],c={toggle:!0,parent:""},d={toggle:"boolean",parent:"(string|element)"},h={SHOW:"show"+a,SHOWN:"shown"+a,HIDE:"hide"+a,HIDDEN:"hidden"+a,CLICK_DATA_API:"click"+a+s},p={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},f={WIDTH:"width",HEIGHT:"height"},g={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},m=function(){function a(t,n){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(n),this._triggerArray=e.makeArray(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],'+('[data-toggle="collapse"][data-target="#'+t.id+'"]')));for(var r=[].slice.call(document.querySelectorAll(g.DATA_TOGGLE)),i=0,a=r.length;i<a;i++){var o=r[i],s=l.getSelectorFromElement(o),u=[].slice.call(document.querySelectorAll(s)).filter(function(e){return e===t});null!==s&&u.length>0&&(this._selector=s,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var s=a.prototype;return s.toggle=function(){e(this._element).hasClass(p.SHOW)?this.hide():this.show()},s.show=function(){var t=this;if(!this._isTransitioning&&!e(this._element).hasClass(p.SHOW)){var n,i;if(this._parent&&(n=[].slice.call(this._parent.querySelectorAll(g.ACTIVES)).filter(function(e){return e.getAttribute("data-parent")===t._config.parent}),0===n.length&&(n=null)),!(n&&(i=e(n).not(this._selector).data(r),i&&i._isTransitioning))){var o=e.Event(h.SHOW);if(e(this._element).trigger(o),!o.isDefaultPrevented()){n&&(a._jQueryInterface.call(e(n).not(this._selector),"hide"),i||e(n).data(r,null));var s=this._getDimension();e(this._element).removeClass(p.COLLAPSE).addClass(p.COLLAPSING),this._element.style[s]=0,this._triggerArray.length&&e(this._triggerArray).removeClass(p.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var u=function(){e(t._element).removeClass(p.COLLAPSING).addClass(p.COLLAPSE).addClass(p.SHOW),t._element.style[s]="",t.setTransitioning(!1),e(t._element).trigger(h.SHOWN)},c=s[0].toUpperCase()+s.slice(1),d="scroll"+c,f=l.getTransitionDurationFromElement(this._element);e(this._element).one(l.TRANSITION_END,u).emulateTransitionEnd(f),this._element.style[s]=this._element[d]+"px"}}}},s.hide=function(){var t=this;if(!this._isTransitioning&&e(this._element).hasClass(p.SHOW)){var n=e.Event(h.HIDE);if(e(this._element).trigger(n),!n.isDefaultPrevented()){var r=this._getDimension();this._element.style[r]=this._element.getBoundingClientRect()[r]+"px",l.reflow(this._element),e(this._element).addClass(p.COLLAPSING).removeClass(p.COLLAPSE).removeClass(p.SHOW);var i=this._triggerArray.length;if(i>0)for(var a=0;a<i;a++){var o=this._triggerArray[a],s=l.getSelectorFromElement(o);if(null!==s){var u=e([].slice.call(document.querySelectorAll(s)));u.hasClass(p.SHOW)||e(o).addClass(p.COLLAPSED).attr("aria-expanded",!1)}}this.setTransitioning(!0);var c=function(){t.setTransitioning(!1),e(t._element).removeClass(p.COLLAPSING).addClass(p.COLLAPSE).trigger(h.HIDDEN)};this._element.style[r]="";var d=l.getTransitionDurationFromElement(this._element);e(this._element).one(l.TRANSITION_END,c).emulateTransitionEnd(d)}}},s.setTransitioning=function(e){this._isTransitioning=e},s.dispose=function(){e.removeData(this._element,r),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},s._getConfig=function(e){return e=o({}
6,c,e),e.toggle=Boolean(e.toggle),l.typeCheckConfig(t,e,d),e},s._getDimension=function(){var t=e(this._element).hasClass(f.WIDTH);return t?f.WIDTH:f.HEIGHT},s._getParent=function(){var t=this,n=null;l.isElement(this._config.parent)?(n=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(n=this._config.parent[0])):n=document.querySelector(this._config.parent);var r='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',i=[].slice.call(n.querySelectorAll(r));return e(i).each(function(e,n){t._addAriaAndCollapsedClass(a._getTargetFromElement(n),[n])}),n},s._addAriaAndCollapsedClass=function(t,n){if(t){var r=e(t).hasClass(p.SHOW);n.length&&e(n).toggleClass(p.COLLAPSED,!r).attr("aria-expanded",r)}},a._getTargetFromElement=function(e){var t=l.getSelectorFromElement(e);return t?document.querySelector(t):null},a._jQueryInterface=function(t){return this.each(function(){var n=e(this),i=n.data(r),s=o({},c,n.data(),"object"==typeof t&&t?t:{});if(!i&&s.toggle&&/show|hide/.test(t)&&(s.toggle=!1),i||(i=new a(this,s),n.data(r,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError('No method named "'+t+'"');i[t]()}})},i(a,null,[{key:"VERSION",get:function(){return n}},{key:"Default",get:function(){return c}}]),a}();return e(document).on(h.CLICK_DATA_API,g.DATA_TOGGLE,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var n=e(this),i=l.getSelectorFromElement(this),a=[].slice.call(document.querySelectorAll(i));e(a).each(function(){var t=e(this),i=t.data(r),a=i?"toggle":n.data();m._jQueryInterface.call(t,a)})}),e.fn[t]=m._jQueryInterface,e.fn[t].Constructor=m,e.fn[t].noConflict=function(){return e.fn[t]=u,m._jQueryInterface},m}(t),p=function(e){var t="dropdown",r="4.1.3",a="bs.dropdown",s="."+a,u=".data-api",c=e.fn[t],d=27,h=32,p=9,f=38,g=40,m=3,v=new RegExp(f+"|"+g+"|"+d),y={HIDE:"hide"+s,HIDDEN:"hidden"+s,SHOW:"show"+s,SHOWN:"shown"+s,CLICK:"click"+s,CLICK_DATA_API:"click"+s+u,KEYDOWN_DATA_API:"keydown"+s+u,KEYUP_DATA_API:"keyup"+s+u},_={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",DROPRIGHT:"dropright",DROPLEFT:"dropleft",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",POSITION_STATIC:"position-static"},b={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)"},T={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end",RIGHT:"right-start",RIGHTEND:"right-end",LEFT:"left-start",LEFTEND:"left-end"},E={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},S={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},w=function(){function u(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var c=u.prototype;return c.toggle=function(){if(!this._element.disabled&&!e(this._element).hasClass(_.DISABLED)){var t=u._getParentFromElement(this._element),r=e(this._menu).hasClass(_.SHOW);if(u._clearMenus(),!r){var i={relatedTarget:this._element},a=e.Event(y.SHOW,i);if(e(t).trigger(a),!a.isDefaultPrevented()){if(!this._inNavbar){if("undefined"==typeof n)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var o=this._element;"parent"===this._config.reference?o=t:l.isElement(this._config.reference)&&(o=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(o=this._config.reference[0])),"scrollParent"!==this._config.boundary&&e(t).addClass(_.POSITION_STATIC),this._popper=new n(o,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===e(t).closest(b.NAVBAR_NAV).length&&e(document.body).children().on("mouseover",null,e.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),e(this._menu).toggleClass(_.SHOW),e(t).toggleClass(_.SHOW).trigger(e.Event(y.SHOWN,i))}}}},c.dispose=function(){e.removeData(this._element,a),e(this._element).off(s),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},c.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},c._addEventListeners=function(){var t=this;e(this._element).on(y.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle(
6)})},c._getConfig=function(n){return n=o({},this.constructor.Default,e(this._element).data(),n),l.typeCheckConfig(t,n,this.constructor.DefaultType),n},c._getMenuElement=function(){if(!this._menu){var e=u._getParentFromElement(this._element);e&&(this._menu=e.querySelector(b.MENU))}return this._menu},c._getPlacement=function(){var t=e(this._element.parentNode),n=T.BOTTOM;return t.hasClass(_.DROPUP)?(n=T.TOP,e(this._menu).hasClass(_.MENURIGHT)&&(n=T.TOPEND)):t.hasClass(_.DROPRIGHT)?n=T.RIGHT:t.hasClass(_.DROPLEFT)?n=T.LEFT:e(this._menu).hasClass(_.MENURIGHT)&&(n=T.BOTTOMEND),n},c._detectNavbar=function(){return e(this._element).closest(".navbar").length>0},c._getPopperConfig=function(){var e=this,t={};"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=o({},t.offsets,e._config.offset(t.offsets)||{}),t}:t.offset=this._config.offset;var n={placement:this._getPlacement(),modifiers:{offset:t,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(n.modifiers.applyStyle={enabled:!1}),n},u._jQueryInterface=function(t){return this.each(function(){var n=e(this).data(a),r="object"==typeof t?t:null;if(n||(n=new u(this,r),e(this).data(a,n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},u._clearMenus=function(t){if(!t||t.which!==m&&("keyup"!==t.type||t.which===p))for(var n=[].slice.call(document.querySelectorAll(b.DATA_TOGGLE)),r=0,i=n.length;r<i;r++){var o=u._getParentFromElement(n[r]),s=e(n[r]).data(a),l={relatedTarget:n[r]};if(t&&"click"===t.type&&(l.clickEvent=t),s){var c=s._menu;if(e(o).hasClass(_.SHOW)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&t.which===p)&&e.contains(o,t.target))){var d=e.Event(y.HIDE,l);e(o).trigger(d),d.isDefaultPrevented()||("ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),n[r].setAttribute("aria-expanded","false"),e(c).removeClass(_.SHOW),e(o).removeClass(_.SHOW).trigger(e.Event(y.HIDDEN,l)))}}}},u._getParentFromElement=function(e){var t,n=l.getSelectorFromElement(e);return n&&(t=document.querySelector(n)),t||e.parentNode},u._dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!(t.which===h||t.which!==d&&(t.which!==g&&t.which!==f||e(t.target).closest(b.MENU).length)):v.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!e(this).hasClass(_.DISABLED))){var n=u._getParentFromElement(this),r=e(n).hasClass(_.SHOW);if(!r&&(t.which!==d||t.which!==h)||r&&(t.which===d||t.which===h)){if(t.which===d){var i=n.querySelector(b.DATA_TOGGLE);e(i).trigger("focus")}return void e(this).trigger("click")}var a=[].slice.call(n.querySelectorAll(b.VISIBLE_ITEMS));if(0!==a.length){var o=a.indexOf(t.target);t.which===f&&o>0&&o--,t.which===g&&o<a.length-1&&o++,o<0&&(o=0),a[o].focus()}}},i(u,null,[{key:"VERSION",get:function(){return r}},{key:"Default",get:function(){return E}},{key:"DefaultType",get:function(){return S}}]),u}();return e(document).on(y.KEYDOWN_DATA_API,b.DATA_TOGGLE,w._dataApiKeydownHandler).on(y.KEYDOWN_DATA_API,b.MENU,w._dataApiKeydownHandler).on(y.CLICK_DATA_API+" "+y.KEYUP_DATA_API,w._clearMenus).on(y.CLICK_DATA_API,b.DATA_TOGGLE,function(t){t.preventDefault(),t.stopPropagation(),w._jQueryInterface.call(e(this),"toggle")}).on(y.CLICK_DATA_API,b.FORM_CHILD,function(e){e.stopPropagation()}),e.fn[t]=w._jQueryInterface,e.fn[t].Constructor=w,e.fn[t].noConflict=function(){return e.fn[t]=c,w._jQueryInterface},w}(t,n),f=function(e){var t="modal",n="4.1.3",r="bs.modal",a="."+r,s=".data-api",u=e.fn[t],c=27,d={backdrop:!0,keyboard:!0,focus:!0,show:!0},h={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},p={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,FOCUSIN:"focusin"+a,RESIZE:"resize"+a,CLICK_DISMISS:"click.dismiss"+a,KEYDOWN_DISMISS:"keydown.dismiss"+a,MOUSEUP_DISMISS:"mouseup.dismiss"+a,MOUSEDOWN_DISMISS:"mousedown.dismiss"+a,CLICK_DATA_API:"click"+a+s},f={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},g={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top"},m=function(){function s(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(g.DIALOG),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._scrollbarWidth=0}var u=s.prototype;return u.toggle=function(e){return this._isShown?this.hide():this.show(e)},u.show=function(t){var n=this;if(!this._isTransitioning&&!this._isShown){e(this._element).hasClass(f.FADE)&&(this._isTransitioning=!0);var r=e.Event(p.SHOW,{relatedTarget:t});e(this._element).trigger(r),this._isShown||r.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),e(document.body).addClass(f.OPEN),this._setEscapeEvent(),this._setResizeEvent(),e(this._element).on(p.CLICK_DISMISS,g.DATA_DISMISS,function(e){return n.hide(e)}),e(this._dialog).on(p.MOUSEDOWN_DISMISS,function(){e(n._element).one(p.MOUSEUP_DISMISS,function(t){e(t.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return n._showElement(t)}))}},u.hide=function(t){var n=this;if(t&&t.preventDefault(),!this._isTransitioning&&this._isShown){var r=e.Event(p.HIDE);if(e(this._element).trigger(r),this._isShown&&!r.isDefaultPrevented()){this._isShown=!1;var i=e(this._element).hasClass(f.FADE);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),e(document).off(p.FOCUSIN),e(this._element).removeClass(f.SHOW),e(this._element).off(p.CLICK_DISMISS),e(this._dialog).off(p.MOUSEDOWN_DISMISS),i){var a=l.getTransitionDurationFromElement(this._element);e(this._element).one(l.TRANSITION_END,function(e){return n._hideModal(e)}).emulateTransitionEnd(a)}else this._hideModal()}}},u.dispose=function(){e.removeData(this._element,r),e(window,document,this._element,this._backdrop).off(a),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},u.handleUpdate=function(){this._adjustDialog()},u._getConfig=function(e){return e=o({},d,e),l.typeCheckConfig(t,e,h),e},u._showElement=function(t){var n=this,r=e(this._element).hasClass(f.FADE);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,r&&l.reflow(this._element),e(this._element).addClass(f.SHOW),this._config.focus&&this._enforceFocus();var i=e.Event(p.SHOWN,{relatedTarget:t}),a=function(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,e(n._element).trigger(i)};if(r){var o=l.getTransitionDurationFromElement(this._element);e(this._dialog).one(l.TRANSITION_END,a).emulateTransitionEnd(o)}else a()},u._enforceFocus=function(){var t=this;e(document).off(p.FOCUSIN).on(p.FOCUSIN,function(n){document!==n.target&&t._element!==n.target&&0===e(t._element).has(n.target).length&&t._element.focus()})},u._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?e(this._element).on(p.KEYDOWN_DISMISS,function(e){e.which===c&&(e.preventDefault(),t.hide())}):this._isShown||e(this._element).off(p.KEYDOWN_DISMISS)},u._setResizeEvent=function(){var t=this;this._isShown?e(window).on(p.RESIZE,function(e){return t.handleUpdate(e)}):e(window).off(p.RESIZE)},u._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){e(document.body).removeClass(f.OPEN),t._resetAdjustments(),t._resetScrollbar(),e(t._element).trigger(p.HIDDEN)})},u._removeBackdrop=function(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)},u._showBackdrop=function(t){var n=this,r=e(this._element).hasClass(f.FADE)?f.FADE:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=f.BACKDROP,r&&this._backdrop.classList.add(r),e(this._backdrop).appendTo(document.body),e(this._element).on(p.CLICK_DISMISS,function(e){return n._ignoreBackdropClick?void(n._ignoreBackdropClick=!1):void(e.target===e.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide()))}),r&&l.reflow(this._backdrop),e(this._backdrop).addClass(f.SHOW),!t)return;if(!r)return void t();var i=l.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(l.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){e(this._backdrop).removeClass(f.SHOW);var a=function(){n._removeBackdrop(),t&&t()};if(e(this._element).hasClass(f.FADE)){var o=l.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(l.TRANSITION_END,a).emulateTransitionEnd(o)}else a()}else t&&t()},u._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},u._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},u._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},u._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var n=[].slice.call(document.querySelectorAll(g.FIXED_CONTENT)),r=[].slice.call(document.querySelectorAll(g.STICKY_CONTENT));e(n).each(function(n,r){var i=r.style.paddingRight,a=e(r).css("padding-right");e(r).data("padding-right",i).css("padding-right",parseFloat(a)+t._scrollbarWidth+"px")}),e(r).each(function(n,r){var i=r.style.marginRight,a=e(r).css("margin-right");e(r).data("margin-right",i).css("margin-right",parseFloat(a)-t._scrollbarWidth+"px")});var i=document.body.style.paddingRight,a=e(document.body).css("padding-right");e(document.body).data("padding-right",i).css("padding-right",parseFloat(a)+this._scrollbarWidth+"px")}},u._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(g.FIXED_CONTENT));e(t).each(function(t,n){var r=e(n).data("padding-right");e(n).removeData("padding-right"),n.style.paddingRight=r?r:""});var n=[].slice.call(document.querySelectorAll(""+g.STICKY_CONTENT));e(n).each(function(t,n){var r=e(n).data("margin-right");"undefined"!=typeof r&&e(n).css("margin-right",r).removeData("margin-right")});var r=e(document.body).data("padding-right");e(document.body).removeData("padding-right"),document.body.style.paddingRight=r?r:""},u._getScrollbarWidth=function(){var e=document.createElement("div");e.className=f.SCROLLBAR_MEASURER,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},s._jQueryInterface=function(t,n){return this.each(function(){var i=e(this).data(r),a=o({},d,e(this).data(),"object"==typeof t&&t?t:{});if(i||(i=new s(this,a),e(this).data(r,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError('No method n
vendor: 4,345 bytes, lines 6-7
6amed "'+t+'"');i[t](n)}else a.show&&i.show(n)})},i(s,null,[{key:"VERSION",get:function(){return n}},{key:"Default",get:function(){return d}}]),s}();return e(document).on(p.CLICK_DATA_API,g.DATA_TOGGLE,function(t){var n,i=this,a=l.getSelectorFromElement(this);a&&(n=document.querySelector(a));var s=e(n).data(r)?"toggle":o({},e(n).data(),e(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var u=e(n).one(p.SHOW,function(t){ 7t.isDefaultPrevented()||u.one(p.HIDDEN,function(){e(i).is(":visible")&&i.focus()})});m._jQueryInterface.call(e(n),s,this)}),e.fn[t]=m._jQueryInterface,e.fn[t].Constructor=m,e.fn[t].noConflict=function(){return e.fn[t]=u,m._jQueryInterface},m}(t),g=function(e){var t="tooltip",r="4.1.3",a="bs.tooltip",s="."+a,u=e.fn[t],c="bs-tooltip",d=new RegExp("(^|\\s)"+c+"\\S+","g"),h={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"},p={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},f={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},g={SHOW:"show",OUT:"out"},m={HIDE:"hide"+s,HIDDEN:"hidden"+s,SHOW:"show"+s,SHOWN:"shown"+s,INSERTED:"inserted"+s,CLICK:"click"+s,FOCUSIN:"focusin"+s,FOCUSOUT:"focusout"+s,MOUSEENTER:"mouseenter"+s,MOUSELEAVE:"mouseleave"+s},v={FADE:"fade",SHOW:"show"},y={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},_={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},b=function(){function u(e,t){if("undefined"==typeof n)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var b=u.prototype;return b.enable=function(){this._isEnabled=!0},b.disable=function(){this._isEnabled=!1},b.toggleEnabled=function(){this._isEnabled=!this._isEnabled},b.toggle=function(t){if(this._isEnabled)if(t){var n=this.constructor.DATA_KEY,r=e(t.currentTarget).data(n);r||(r=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,r)),r._activeTrigger.click=!r._activeTrigger.click,r._isWithActiveTrigger()?r._enter(null,r):r._leave(null,r)}else{if(e(this.getTipElement()).hasClass(v.SHOW))return void this._leave(null,this);this._enter(null,this)}},b.dispose=function(){clearTimeout(this._timeout),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),e(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},b.show=function(){var t=this;if("none"===e(this.element).css("display"))throw new Error("Please use show on visible elements");var r=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(r);var i=e.contains(this.element.ownerDocument.documentElement,this.element);if(r.isDefaultPrevented()||!i)return;var a=this.getTipElement(),o=l.getUID(this.constructor.NAME);a.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&e(a).addClass(v.FADE);var s="function"==typeof this.config.placement?this.config.placement.call(this,a,this.element):this.config.placement,u=this._getAttachment(s);this.addAttachmentClass(u);var c=this.config.container===!1?document.body:e(document).find(this.config.container);e(a).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(a).appendTo(c),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new n(this.element,a,{placement:u,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:y.ARROW}
7,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){t._handlePopperPlacementChange(e)}}),e(a).addClass(v.SHOW),"ontouchstart"in document.documentElement&&e(document.body).children().on("mouseover",null,e.noop);var d=function(){t.config.animation&&t._fixTransition();var n=t._hoverState;t._hoverState=null,e(t.element).trigger(t.constructor.Event.SHOWN),n===g.OUT&&t._leave(null,t)};if(e(this.tip).hasClass(v.FADE)){var h=l.getTransitionDurationFromElement(this.tip);e(this.tip).one(l.TRANSITION_END,d).emulateTransitionEnd(h)}else d()}},b.hide=function(t){var n=this,r=this.getTipElement(),i=e.Event(this.constructor.Event.HIDE),a=function(){n._hoverState!==g.SHOW&&r.parentNode&&r.parentNode.removeChild(r),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),e(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),t&&t()};if(e(this.element).trigger(i),!i.isDefaultPrevented()){if(e(r).removeClass(v.SHOW),"ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),this._activeTrigger[_.CLICK]=!1,this._activeTrigger[_.FOCUS]=!1,this._activeTrigger[_.HOVER]=!1,e(this.tip).hasClass(v.FADE)){var o=l.getTransitionDurationFromElement(r);e(r).one(l.TRANSITION_END,a).emulateTransitionEnd(o)}else a();this._hoverState=""}},b.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},b.isWithContent=function(){return Boolean(this.getTitle())},b.addAttachmentClass=function(t){e(this.getTipElement()).addClass(c+"-"+t)},b.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},b.setContent=function(){var t=this.getTipElement();this.setElementContent(e(t.querySelectorAll(y.TOOLTIP_INNER)),this.getTitle()),e(t).removeClass(v.FADE+" "+v.SHOW)},b.setElementContent=function(t,n){var r=this.config.html;"object"==typeof n&&(n.nodeType||n.jquery)?r?e(n).parent().is(t)||t.empty().append(n):t.text(e(n).text()):t[r?"html":"text"](n)},b.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},b._getAttachment=function(e){return p[e.toUpperCase()]},b._setListeners=function(){var t=this,n=this.config.trigger.split(" ");n.forEach(function(n){if("click"===n)e(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(e){return t.toggle(e)});else if(n!==_.MANUAL){var r=n===_.HOVER?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i=n===_.HOVER?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;e(t.element).on(r,t.config.selector,function(e){return t._enter(e)}).on(i,t.config.selector,function(e){return t._leave(e)})}e(t.element).closest(".modal").on("hide.bs.modal",function(){return t.hide()})}),this.config.selector?this.config=o({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},b._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},b._enter=function(t,n){var r=this.constructor.DATA_KEY;return n=n||e(t.currentTarget).data(r),n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(r,n)),t&&(n._activeTrigger["focusin"===t.type?_.FOCUS:_.HOVER]=!0),e(n.getTipElement()).hasClass(v.SHOW)||n._hoverState===g.SHOW?void(n._hoverState=g.SHOW):(clearTimeout(n._timeout),n._hoverState=g.SHOW,n.config.delay&&n.config.delay.show?void(n._timeout=setTimeout(function(){n._hoverState===g.SHOW&&n.show()},n.config.delay.show)):void n.show())},b._leave=function(t,n){var r=this.constructor.DATA_KEY;if(n=n||e(t.currentTarget).data(r),n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(r,n)),t&&(n._activeTrigger["focusout"===t.type?_.FOCUS:_.HOVER]=!1),!n._isWithActiveTrigger())return clearTimeout(n._timeout),n._hoverState=g.OUT,n.config.delay&&n.config.delay.hide?void(n._timeout=setTimeout(function(){n._hoverState===g.OUT&&n.hide()},n.config.delay.hide)):void n.hide()},b._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},b._getConfig=function(n){return n=o({},this.constructor.Default,e(this.element).data(),"object"==typeof n&&n?n:{}),"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),"number"==typeof n.title&&(n.title=n.title.toString()),"number"==typeof n.content&&(n.content=n.content.toString()),l.typeCheckConfig(t,n,this.constructor.DefaultType),n},b._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},b._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(d);null!==n&&n.length&&t.removeClass(n.join(""))},b._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},b._fixTransition=function(){var t=this.getTipElement(),n=this.config.animation;null===t.getAttribute("x-placement")&&(e(t).removeClass(v.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},u._jQueryInterface=function(t){return this.each(function(){var n=e(this).data(a),r="object"==typeof t&&t;if((n||!/dispose|hide/.test(t))&&(n||(n=new u(this,r),e(this).data(a,n)),"string"==typeof t)){if("undefined"==typeof n[t])throw new TypeError('No method n
7amed "'+t+'"');n[t]()}})},i(u,null,[{key:"VERSION",get:function(){return r}},{key:"Default",get:function(){return f}},{key:"NAME",get:function(){return t}},{key:"DATA_KEY",get:function(){return a}},{key:"Event",get:function(){return m}},{key:"EVENT_KEY",get:function(){return s}},{key:"DefaultType",get:function(){return h}}]),u}();return e.fn[t]=b._jQueryInterface,e.fn[t].Constructor=b,e.fn[t].noConflict=function(){return e.fn[t]=u,b._jQueryInterface},b}(t,n),m=function(e){var t="popover",n="4.1.3",r="bs.popover",a="."+r,l=e.fn[t],u="bs-popover",c=new RegExp("(^|\\s)"+u+"\\S+","g"),d=o({},g.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),h=o({},g.DefaultType,{content:"(string|element|function)"}),p={FADE:"fade",SHOW:"show"},f={TITLE:".popover-header",CONTENT:".popover-body"},m={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,INSERTED:"inserted"+a,CLICK:"click"+a,FOCUSIN:"focusin"+a,FOCUSOUT:"focusout"+a,MOUSEENTER:"mouseenter"+a,MOUSELEAVE:"mouseleave"+a},v=function(o){function l(){return o.apply(this,arguments)||this}s(l,o);var g=l.prototype;return g.isWithContent=function(){return this.getTitle()||this._getContent()},g.addAttachmentClass=function(t){e(this.getTipElement()).addClass(u+"-"+t)},g.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},g.setContent=function(){var t=e(this.getTipElement());this.setElementContent(t.find(f.TITLE),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(t.find(f.CONTENT),n),t.removeClass(p.FADE+" "+p.SHOW)},g._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},g._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(c);null!==n&&n.length>0&&t.removeClass(n.join(""))},l._jQueryInterface=function(t){return this.each(function(){var n=e(this).data(r),i="object"==typeof t?t:null;if((n||!/destroy|hide/.test(t))&&(n||(n=new l(this,i),e(this).data(r,n)),"string"==typeof t)){if("undefined"==typeof n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},i(l,null,[{key:"VERSION",get:function(){return n}},{key:"Default",get:function(){return d}},{key:"NAME",get:function(){return t}},{key:"DATA_KEY",get:function(){return r}},{key:"Event",get:function(){return m}},{key:"EVENT_KEY",get:function(){return a}},{key:"DefaultType",get:function(){return h}}]),l}(g);return e.fn[t]=v._jQueryInterface,e.fn[t].Constructor=v,e.fn[t].noConflict=function(){return e.fn[t]=l,v._jQueryInterface},v}(t),v=function(e){var t="scrollspy",n="4.1.3",r="bs.scrollspy",a="."+r,s=".data-api",u=e.fn[t],c={offset:10,method:"auto",target:""},d={offset:"number",method:"string",target:"(string|element)"},h={ACTIVATE:"activate"+a,SCROLL:"scroll"+a,LOAD_DATA_API:"load"+a+s},p={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},f={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},g={OFFSET:"offset",POSITION:"position"},m=function(){function s(t,n){var r=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(n),this._selector=this._config.target+" "+f.NAV_LINKS+","+(this._config.target+" "+f.LIST_ITEMS+",")+(this._config.target+" "+f.DROPDOWN_ITEMS),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on(h.SCROLL,function(e){return r._process(e)}),this.refresh(),this._process()}var u=s.prototype;return u.refresh=function(){var t=this,n=this._scrollElement===this._scrollElement.window?g.OFFSET:g.POSITION,r="auto"===this._config.method?n:this._config.method,i=r===g.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight();var a=[].slice.call(document.querySelectorAll(this._selector));a.map(function(t){var n,a=l.getSelectorFromElement(t);
7if(a&&(n=document.querySelector(a)),n){var o=n.getBoundingClientRect();if(o.width||o.height)return[e(n)[r]().top+i,a]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},u.dispose=function(){e.removeData(this._element,r),e(this._scrollElement).off(a),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},u._getConfig=function(n){if(n=o({},c,"object"==typeof n&&n?n:{}),"string"!=typeof n.target){var r=e(n.target).attr("id");r||(r=l.getUID(t),e(n.target).attr("id",r)),n.target="#"+r}return l.typeCheckConfig(t,n,d),n},u._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},u._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},u._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},u._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var r=this._targets[this._targets.length-1];return void(this._activeTarget!==r&&this._activate(r))}if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var i=this._offsets.length,a=i;a--;){var o=this._activeTarget!==this._targets[a]&&e>=this._offsets[a]&&("undefined"==typeof this._offsets[a+1]||e<this._offsets[a+1]);o&&this._activate(this._targets[a])}},u._activate=function(t){this._activeTarget=t,this._clear();var n=this._selector.split(",");n=n.map(function(e){return e+'[data-target="'+t+'"],'+(e+'[href="'+t+'"]')});var r=e([].slice.call(document.querySelectorAll(n.join(","))));r.hasClass(p.DROPDOWN_ITEM)?(r.closest(f.DROPDOWN).find(f.DROPDOWN_TOGGLE).addClass(p.ACTIVE),r.addClass(p.ACTIVE)):(r.addClass(p.ACTIVE),r.parents(f.NAV_LIST_GROUP).prev(f.NAV_LINKS+", "+f.LIST_ITEMS).addClass(p.ACTIVE),r.parents(f.NAV_LIST_GROUP).prev(f.NAV_ITEMS).children(f.NAV_LINKS).addClass(p.ACTIVE)),e(this._scrollElement).trigger(h.ACTIVATE,{relatedTarget:t})},u._clear=function(){var t=[].slice.call(document.querySelectorAll(this._selector));e(t).filter(f.ACTIVE).removeClass(p.ACTIVE)},s._jQueryInterface=function(t){return this.each(function(){var n=e(this).data(r),i="object"==typeof t&&t;if(n||(n=new s(this,i),e(this).data(r,n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},i(s,null,[{key:"VERSION",get:function(){return n}},{key:"Default",get:function(){return c}}]),s}();return e(window).on(h.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(f.DATA_SPY)),n=t.length,r=n;r--;){var i=e(t[r]);m._jQueryInterface.call(i,i.data())}}),e.fn[t]=m._jQueryInterface,e.fn[t].Constructor=m,e.fn[t].noConflict=function(){return e.fn[t]=u,m._jQueryInterface},m}(t),y=function(e){var t="tab",n="4.1.3",r="bs.tab",a="."+r,o=".data-api",s=e.fn[t],u={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,CLICK_DATA_API:"click"+a+o},c={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},d={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",ACTIVE_UL:"> li > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},h=function(){function t(e){this._element=e}var a=t.prototype;return a.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&e(this._element).hasClass(c.ACTIVE)||e(this._element).hasClass(c.DISABLED))){var n,r,i=e(this._element).closest(d.NAV_LIST_GROUP)[0],a=l.getSelectorFromElement(this._element);if(i){var o="UL"===i.nodeName?d.ACTIVE_UL:d.ACTIVE;r=e.makeArray(e(i).find(o)),r=r[r.length-1]}var s=e.Event(u.HIDE,{relatedTarget:this._element}),h=e.Event(u.SHOW,{relatedTarget:r});if(r&&e(r).trigger(s),e(this._element).trigger(h),!h.isDefaultPrevented()&&!s.isDefaultPrevented()){a&&(n=document.querySelector(a)),this._activate(this._element,i);var p=function(){var n=e.Event(u.HIDDEN,{relatedTarget:t._element}),i=e.Event(u.SHOWN,{relatedTarget:r});e(r).trigger(n),e(t._element).trigger(i)};n?this._activate(n,n.parentNode,p):p()}}},a.dispose=function(){e.removeData(this._element,r),this._element=null},a._activate=function(t,n,r){var i,a=this;
7i="UL"===n.nodeName?e(n).find(d.ACTIVE_UL):e(n).children(d.ACTIVE);var o=i[0],s=r&&o&&e(o).hasClass(c.FADE),u=function(){return a._transitionComplete(t,o,r)};if(o&&s){var h=l.getTransitionDurationFromElement(o);e(o).one(l.TRANSITION_END,u).emulateTransitionEnd(h)}else u()},a._transitionComplete=function(t,n,r){if(n){e(n).removeClass(c.SHOW+" "+c.ACTIVE);var i=e(n.parentNode).find(d.DROPDOWN_ACTIVE_CHILD)[0];i&&e(i).removeClass(c.ACTIVE),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(e(t).addClass(c.ACTIVE),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),l.reflow(t),e(t).addClass(c.SHOW),t.parentNode&&e(t.parentNode).hasClass(c.DROPDOWN_MENU)){var a=e(t).closest(d.DROPDOWN)[0];if(a){var o=[].slice.call(a.querySelectorAll(d.DROPDOWN_TOGGLE));e(o).addClass(c.ACTIVE)}t.setAttribute("aria-expanded",!0)}r&&r()},t._jQueryInterface=function(n){return this.each(function(){var i=e(this),a=i.data(r);if(a||(a=new t(this),i.data(r,a)),"string"==typeof n){if("undefined"==typeof a[n])throw new TypeError('No method named "'+n+'"');a[n]()}})},i(t,null,[{key:"VERSION",get:function(){return n}}]),t}();return e(document).on(u.CLICK_DATA_API,d.DATA_TOGGLE,function(t){t.preventDefault(),h._jQueryInterface.call(e(this),"show")}),e.fn[t]=h._jQueryInterface,e.fn[t].Constructor=h,e.fn[t].noConflict=function(){return e.fn[t]=s,h._jQueryInterface},h}(t);!function(e){if("undefined"==typeof e)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=e.fn.jquery.split(" ")[0].split("."),n=1,r=2,i=9,a=1,o=4;if(t[0]<r&&t[1]<i||t[0]===n&&t[1]===i&&t[2]<a||t[0]>=o)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(t),e.Util=l,e.Alert=u,e.Button=c,e.Carousel=d,e.Collapse=h,e.Dropdown=p,e.Modal=f,e.Popover=m,e.Scrollspy=v,e.Tab=y,e.Tooltip=g,Object.defineProperty(e,"__esModule",{value:!0})})},function(e,t,n){var r,i;/*! 8 * jQuery JavaScript Library v3.3.1 9 * https://jquery.com/ 10 * 11 * Includes Sizzle.js 12 * https://sizzlejs.com/ 13 * 14 * Copyright JS Foundation and other contributors 15 * Released under the MIT license 16 * https://jquery.org/license 17 * 18 * Date: 2018-01-20T17:24Z 19 */ 20!function(t,n){"use strict";"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,a){"use strict";function o(e,t,n){t=t||ce;var r,i=t.createElement("script");if(i.text=e,n)for(r in we)n[r]&&(i[r]=n[r]);t.head.appendChild(i).parentNode.removeChild(i)}function s(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?me[ve.call(e)]||"object":typeof e}function l(e){var t=!!e&&"length"in e&&e.length,n=s(e);return!Ee(e)&&!Se(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function u(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function c(e,t,n){return Ee(t)?ke.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?ke.grep(e,function(e){return e===t!==n}):"string"!=typeof t?ke.grep(e,function(e){return ge.call(t,e)>-1!==n}):ke.filter(t,e,n)}function d(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function h(e){var t={};return ke.each(e.match(He)||[],function(e,n){t[n]=!0}),t}function p(e){return e}function f(e){throw e}function g(e,t,n,r){var i;try{e&&Ee(i=e.promise)?i.call(e).done(t).fail(n):e&&Ee(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}function m(){ce.removeEventListener("DOMContentLoaded",m),n.removeEventListener("load",m),ke.ready()}function v(e,t){return t.toUpperCase()}function y(e){return e.replace(Ve,"ms-").replace(We,v)}function _(){this.expando=ke.expando+_.uid++}function b(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Ge.test(e)?JSON.parse(e):e)}function T(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(Ye,"-$&").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n=b(n)}catch(i){}qe.set(e,t,n)}else n=void 0;return n}function E(e,t,n,r){var i,a,o=20,s=r?function(){return r.cur()}:function(){return ke.css(e,t,"")},l=s(),u=n&&n[3]||(ke.cssNumber[t]?"":"px"),c=(ke.cssNumber[t]||"px"!==u&&+l)&&Ke.exec(ke.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;o--;)ke.style(e,t,c+u),(1-a)*(1-(a=s()/l||.5))<=0&&(o=0),c/=a;c=2*c,ke.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}function S(e){var t,n=e.ownerDocument,r=e.nodeName,i=et[r];return i?i:(t=n.body.appendChild(n.createElement(r)),i=ke.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),et[r]=i,i)}function w(e,t){for(var n,r,i=[],a=0,o=e.length;a<o;a++)r=e[a],r.style&&(n=r.style.display,t?("none"===n&&(i[a]=$e.get(r,"display")||null,i[a]||(r.style.display="")),""===r.style.display&&Ze(r)&&(i[a]=S(r))):"none"!==n&&(i[a]="none",$e.set(r,"display",n)));for(a=0;a<o;a++)null!=i[a]&&(e[a].style.display=i[a]);return e}function C(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&u(e,t)?ke.merge([e],n):n}function k(e,t){for(var n=0,r=e.length;n<r;n++)$e.set(e[n],"globalEval",!t||$e.get(t[n],"globalEval"))}function D(e,t,n,r,i){for(var a,o,l,u,c,d,h=t.createDocumentFragment(),p=[],f=0,g=e.length;f<g;f++)if(a=e[f],a||0===a)if("object"===s(a))ke.merge(p,a.nodeType?[a]:a);else if(at.test(a)){for(o=o||h.appendChild(t.createElement("div")),l=(nt.exec(a)||["",""])[1].toLowerCase(),u=it[l]||it._default,o.innerHTML=u[1]+ke.htmlPrefilter(a)+u[2],d=u[0];d--;)o=o.lastChild;ke.merge(p,o.childNodes),o=h.firstChild,o.textContent=""}else p.push(t.createTextNode(a));for(h.textContent="",f=0;a=p[f++];)if(r&&ke.inArray(a,r)>-1)i&&i.push(a);else if(c=ke.contains(a.ownerDocument,a),o=C(h.appendChild(a),"script"),c&&k(o),n)for(d=0;a=o[d++];)rt.test(a.type||"")&&n.push(a);return h}function x(){return!0}function A(){return!1}function I(){try{return ce.activeElement}catch(e){}}function O(e,t,n,r,i,a){var o,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)O(e,s,n,r,t[s],a);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=A;else if(!i)return e;return 1===a&&(o=i,i=function(e){return ke().off(e),o.apply(this,arguments)},i.guid=o.guid||(o.guid=ke.guid++)),e.each(function(){ke.event.add(this,t,i,r,n)})}function P(e,t){return u(e,"table")&&u(11!==t.nodeType?t:t.firstChild,"tr")?ke(e).children("tbody")[0]||e:e}function M(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function R(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function L(e,t){var n,r,i,a,o,s,l,u;if(1===t.nodeType){if($e.hasData(e)&&(a=$e.access(e),o=$e.set(t,a),u=a.events)){delete o.handle,o.events={};for(i in u)for(n=0,r=u[i].length;n<r;n++)ke.event.add(t,i,u[i][n])}qe.hasData(e)&&(s=qe.access(e),l=ke.extend({},s),qe.set(t,l))}}function N(e,t){var n=t.nodeName.toLowerCase();
vendor: 4,707 bytes, line 20
20"input"===n&&tt.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function U(e,t,n,r){t=pe.apply([],t);var i,a,s,l,u,c,d=0,h=e.length,p=h-1,f=t[0],g=Ee(f);if(g||h>1&&"string"==typeof f&&!Te.checkClone&&ht.test(f))return e.each(function(i){var a=e.eq(i);g&&(t[0]=f.call(this,i,a.html())),U(a,t,n,r)});if(h&&(i=D(t,e[0].ownerDocument,!1,e,r),a=i.firstChild,1===i.childNodes.length&&(i=a),a||r)){for(s=ke.map(C(i,"script"),M),l=s.length;d<h;d++)u=i,d!==p&&(u=ke.clone(u,!0,!0),l&&ke.merge(s,C(u,"script"))),n.call(e[d],u,d);if(l)for(c=s[s.length-1].ownerDocument,ke.map(s,R),d=0;d<l;d++)u=s[d],rt.test(u.type||"")&&!$e.access(u,"globalEval")&&ke.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?ke._evalUrl&&ke._evalUrl(u.src):o(u.textContent.replace(pt,""),c,u))}return e}function H(e,t,n){for(var r,i=t?ke.filter(t,e):e,a=0;null!=(r=i[a]);a++)n||1!==r.nodeType||ke.cleanData(C(r)),r.parentNode&&(n&&ke.contains(r.ownerDocument,r)&&k(C(r,"script")),r.parentNode.removeChild(r));return e}function j(e,t,n){var r,i,a,o,s=e.style;return n=n||gt(e),n&&(o=n.getPropertyValue(t)||n[t],""!==o||ke.contains(e.ownerDocument,e)||(o=ke.style(e,t)),!Te.pixelBoxStyles()&&ft.test(o)&&mt.test(t)&&(r=s.width,i=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=r,s.minWidth=i,s.maxWidth=a)),void 0!==o?o+"":o}function B(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function F(e){if(e in Et)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Tt.length;n--;)if(e=Tt[n]+t,e in Et)return e}function V(e){var t=ke.cssProps[e];return t||(t=ke.cssProps[e]=F(e)||e),t}function W(e,t,n){var r=Ke.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function z(e,t,n,r,i,a){var o="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;o<4;o+=2)"margin"===n&&(l+=ke.css(e,n+Qe[o],!0,i)),r?("content"===n&&(l-=ke.css(e,"padding"+Qe[o],!0,i)),"margin"!==n&&(l-=ke.css(e,"border"+Qe[o]+"Width",!0,i))):(l+=ke.css(e,"padding"+Qe[o],!0,i),"padding"!==n?l+=ke.css(e,"border"+Qe[o]+"Width",!0,i):s+=ke.css(e,"border"+Qe[o]+"Width",!0,i));return!r&&a>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-s-.5))),l}function $(e,t,n){var r=gt(e),i=j(e,t,r),a="border-box"===ke.css(e,"boxSizing",!1,r),o=a;if(ft.test(i)){if(!n)return i;i="auto"}return o=o&&(Te.boxSizingReliable()||i===e.style[t]),("auto"===i||!parseFloat(i)&&"inline"===ke.css(e,"display",!1,r))&&(i=e["offset"+t[0].toUpperCase()+t.slice(1)],o=!0),i=parseFloat(i)||0,i+z(e,t,n||(a?"border":"content"),o,r,i)+"px"}function q(e,t,n,r,i){return new q.prototype.init(e,t,n,r,i)}function G(){wt&&(ce.hidden===!1&&n.requestAnimationFrame?n.requestAnimationFrame(G):n.setTimeout(G,ke.fx.interval),ke.fx.tick())}function Y(){return n.setTimeout(function(){St=void 0}),St=Date.now()}function X(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)n=Qe[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function K(e,t,n){for(var r,i=(J.tweeners[t]||[]).concat(J.tweeners["*"]),a=0,o=i.length;a<o;a++)if(r=i[a].call(n,t,e))return r}function Q(e,t,n){var r,i,a,o,s,l,u,c,d="width"in t||"height"in t,h=this,p={},f=e.style,g=e.nodeType&&Ze(e),m=$e.get(e,"fxshow");n.queue||(o=ke._queueHooks(e,"fx"),null==o.unqueued&&(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,h.always(function(){h.always(function(){o.unqueued--,ke.queue(e,"fx").length||o.empty.fire()})}));for(r in t)if(i=t[r],Ct.test(i)){if(delete t[r],a=a||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;g=!0}p[r]=m&&m[r]||ke.style(e,r)}if(l=!ke.isEmptyObject(t),l||!ke.isEmptyObject(p)){d&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],u=m&&m.display,null==u&&(u=$e.get(e,"display")),c=ke.css(e,"display"),"none"===c&&(u?c=u:(w([e],!0),u=e.style.display||u,c=ke.css(e,"display"),w([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===ke.css(e,"float")&&(l||(h.done(function(){f.display=u}),null==u&&(c=f.display,u="none"===c?"":c)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",h.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),l=!1;for(r in p)l||(m?"hidden"in m&&(g=m.hidden):m=$e.access(e,"fxshow",{display:u}),a&&(m.hidden=!g),g&&w([e],!0),h.done(function(){g||w([e]),$e.remove(e,"fxshow");for(r in p)ke.style(e,r,p[r])})),l=K(g?m[r]:0,r,h),r in m||(m[r]=l.start,g&&(l.end=l.start,l.start=0))}}function Z(e,t){var n,r,i,a,o;for(n in e)if(r=y(n),i=t[r],a=e[n],Array.isArray(a)&&(i=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),o=ke.cssHooks[r],o&&"expand"in o){a=o.expand(a),delete e[r];
vendor: 4,117 bytes, line 20
20for(n in a)n in e||(e[n]=a[n],t[n]=i)}else t[r]=i}function J(e,t,n){var r,i,a=0,o=J.prefilters.length,s=ke.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var t=St||Y(),n=Math.max(0,u.startTime+u.duration-t),r=n/u.duration||0,a=1-r,o=0,l=u.tweens.length;o<l;o++)u.tweens[o].run(a);return s.notifyWith(e,[u,a,n]),a<1&&l?n:(l||s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:ke.extend({},t),opts:ke.extend(!0,{specialEasing:{},easing:ke.easing._default},n),originalProperties:t,originalOptions:n,startTime:St||Y(),duration:n.duration,tweens:[],createTween:function(t,n){var r=ke.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return t?(s.notifyWith(e,[u,1,0]),s.resolveWith(e,[u,t])):s.rejectWith(e,[u,t]),this}}),c=u.props;for(Z(c,u.opts.specialEasing);a<o;a++)if(r=J.prefilters[a].call(u,e,c,u.opts))return Ee(r.stop)&&(ke._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return ke.map(c,K,u),Ee(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),ke.fx.timer(ke.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}function ee(e){var t=e.match(He)||[];return t.join(" ")}function te(e){return e.getAttribute&&e.getAttribute("class")||""}function ne(e){return Array.isArray(e)?e:"string"==typeof e?e.match(He)||[]:[]}function re(e,t,n,r){var i;if(Array.isArray(t))ke.each(t,function(t,i){n||Ut.test(e)?r(e,i):re(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==s(t))r(e,t);else for(i in t)re(e+"["+i+"]",t[i],n,r)}function ie(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,a=t.toLowerCase().match(He)||[];if(Ee(n))for(;r=a[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function ae(e,t,n,r){function i(s){var l;return a[s]=!0,ke.each(e[s]||[],function(e,s){var u=s(t,n,r);return"string"!=typeof u||o||a[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),i(u),!1)}),l}var a={},o=e===Xt;return i(t.dataTypes[0])||!a["*"]&&i("*")}function oe(e,t){var n,r,i=ke.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&ke.extend(!0,e,r),e}function se(e,t,n){for(var r,i,a,o,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){l.unshift(i);break}if(l[0]in n)a=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){a=i;break}o||(o=i)}a=a||o}if(a)return a!==l[0]&&l.unshift(a),n[a]}function le(e,t,n,r){var i,a,o,s,l,u={},c=e.dataTypes.slice();if(c[1])for(o in e.converters)u[o.toLowerCase()]=e.converters[o];for(a=c.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=c.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(o=u[l+" "+a]||u["* "+a],!o)for(i in u)if(s=i.split(" "),s[1]===a&&(o=u[l+" "+s[0]]||u["* "+s[0]])){o===!0?o=u[i]:u[i]!==!0&&(a=s[0],c.unshift(s[1]));break}if(o!==!0)if(o&&e["throws"])t=o(t);else try{t=o(t)}catch(d){return{state:"parsererror",error:o?d:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}var ue=[],ce=n.document,de=Object.getPrototypeOf,he=ue.slice,pe=ue.concat,fe=ue.push,ge=ue.indexOf,me={},ve=me.toString,ye=me.hasOwnProperty,_e=ye.toString,be=_e.call(Object),Te={},Ee=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},Se=function(e){return null!=e&&e===e.window},we={type:!0,src:!0,noModule:!0},Ce="3.3.1",ke=function(e,t){return new ke.fn.init(e,t)},De=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;ke.fn=ke.prototype={jquery:Ce,constructor:ke,length:0,toArray:function(){return he.call(this)},get:function(e){return null==e?he.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ke.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ke.each(this,e)},map:function(e){return this.pushStack(ke.map(this,function(t,n){return e.call(t,n,t)}
vendor: 7,150 bytes, lines 20-30
20))},slice:function(){return this.pushStack(he.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:fe,sort:ue.sort,splice:ue.splice},ke.extend=ke.fn.extend=function(){var e,t,n,r,i,a,o=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof o&&(u=o,o=arguments[s]||{},s++),"object"==typeof o||Ee(o)||(o={}),s===l&&(o=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)n=o[t],r=e[t],o!==r&&(u&&r&&(ke.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,a=n&&Array.isArray(n)?n:[]):a=n&&ke.isPlainObject(n)?n:{},o[t]=ke.extend(u,a,r)):void 0!==r&&(o[t]=r));return o},ke.extend({expando:"jQuery"+(Ce+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==ve.call(e))&&(!(t=de(e))||(n=ye.call(t,"constructor")&&t.constructor,"function"==typeof n&&_e.call(n)===be))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){o(e)},each:function(e,t){var n,r=0;if(l(e))for(n=e.length;r<n&&t.call(e[r],r,e[r])!==!1;r++);else for(r in e)if(t.call(e[r],r,e[r])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(De,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(l(Object(e))?ke.merge(n,"string"==typeof e?[e]:e):fe.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:ge.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],a=0,o=e.length,s=!n;a<o;a++)r=!t(e[a],a),r!==s&&i.push(e[a]);return i},map:function(e,t,n){var r,i,a=0,o=[];if(l(e))for(r=e.length;a<r;a++)i=t(e[a],a,n),null!=i&&o.push(i);else for(a in e)i=t(e[a],a,n),null!=i&&o.push(i);return pe.apply([],o)},guid:1,support:Te}),"function"==typeof Symbol&&(ke.fn[Symbol.iterator]=ue[Symbol.iterator]),ke.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){me["[object "+t+"]"]=t.toLowerCase()});var xe=/*! 21 * Sizzle CSS Selector Engine v2.3.3 22 * https://sizzlejs.com/ 23 * 24 * Copyright jQuery Foundation and other contributors 25 * Released under the MIT license 26 * http://jquery.org/license 27 * 28 * Date: 2016-08-08 29 */ 30function(e){function t(e,t,n,r){var i,a,o,s,l,u,c,h=t&&t.ownerDocument,f=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==f&&9!==f&&11!==f)return n;if(!r&&((t?t.ownerDocument||t:F)!==M&&P(t),t=t||M,L)){if(11!==f&&(l=ve.exec(e)))if(i=l[1]){if(9===f){if(!(o=t.getElementById(i)))return n;if(o.id===i)return n.push(o),n}else if(h&&(o=h.getElementById(i))&&j(t,o)&&o.id===i)return n.push(o),n}else{if(l[2])return Z.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&E.getElementsByClassName&&t.getElementsByClassName)return Z.apply(n,t.getElementsByClassName(i)),n}if(E.qsa&&!q[e+" "]&&(!N||!N.test(e))){if(1!==f)h=t,c=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(Te,Ee):t.setAttribute("id",s=B),u=k(e),a=u.length;a--;)u[a]="#"+s+" "+p(u[a]);c=u.join(","),h=ye.test(e)&&d(t.parentNode)||t}if(c)try{return Z.apply(n,h.querySelectorAll(c)),n}catch(g){}finally{s===B&&t.removeAttribute("id")}}}return x(e.replace(se,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>S.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[B]=!0,e}function i(e){var t=M.createElement("fieldset");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function a(e,t){for(var n=e.split("|"),r=n.length;r--;)S.attrHandle[n[r]]=t}function o(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function u(e){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&we(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function c(e){return r(function(t){return t=+t,r(function(n,r){for(var i,a=e([],n.length,t),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))})})}function d(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function h(){}function p(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function f(e,t,n){var r=t.dir,i=t.next,a=i||r,o=n&&"parentNode"===a,s=W++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i);return!1}:function(t,n,l){var u,c,d,h=[V,s];if(l){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||o)if(d=t[B]||(t[B]={}),c=d[t.uniqueID]||(d[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((u=c[a])&&u[0]===V&&u[1]===s)return h[2]=u[2];if(c[a]=h,h[2]=e(t,n,l))return!0}return!1}}function g(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function m(e,n,r){for(var i=0,a=n.length;i<a;i++)t(e,n[i],r);return r}function v(e,t,n,r,i){for(var a,o=[],s=0,l=e.length,u=null!=t;s<l;s++)(a=e[s])&&(n&&!n(a,r,i)||(o.push(a),u&&t.push(s)));return o}function y(e,t,n,i,a,o){return i&&!i[B]&&(i=y(i)),a&&!a[B]&&(a=y(a,o)),r(function(r,o,s,l){var u,c,d,h=[],p=[],f=o.length,g=r||m(t||"*",s.nodeType?[s]:s,[]),y=!e||!r&&t?g:v(g,h,e,s,l),_=n?a||(r?e:f||i)?[]:o:y;if(n&&n(y,_,s,l),i)for(u=v(_,p),i(u,[],s,l),c=u.length;c--;)(d=u[c])&&(_[p[c]]=!(y[p[c]]=d));if(r){if(a||e){if(a){for(u=[],c=_.length;c--;)(d=_[c])&&u.push(y[c]=d);a(null,_=[],u,l)}for(c=_.length;c--;)(d=_[c])&&(u=a?ee(r,d):h[c])>-1&&(r[u]=!(o[u]=d))}}else _=v(_===o?_.splice(f,_.length):_),a?a(null,o,_,l):Z.apply(o,_)})}function _(e){for(var t,n,r,i=e.length,a=S.relative[e[0].type],o=a||S.relative[" "],s=a?1:0,l=f(function(e){return e===t},o,!0),u=f(function(e){return ee(t,e)>-1},o,!0),c=[function(e,n,r){var i=!a&&(r||n!==A)||((t=n).nodeType?l(e,n,r):u(e,n,r));return t=null,i}];s<i;s++)if(n=S.relative[e[s].type])c=[f(g(c),n)];else{if(n=S.filter[e[s].type].apply(null,e[s].matches),n[B]){for(r=++s;r<i&&!S.relative[e[r].type];r++);return y(s>1&&g(c),s>1&&p(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),n,s<r&&_(e.slice(s,r)),r<i&&_(e=e.slice(r)),r<i&&p(e))}c.push(n)}return g(c)}function b(e,n){var i=n.length>0,a=e.length>0,o=function(r,o,s,l,u){var c,d,h,p=0,f="0",g=r&&[],m=[],y=A,_=r||a&&S.find.TAG("*",u),b=V+=null==y?1:Math.random()||.1,T=_.length;for(u&&(A=o===M||o||u);f!==T&&null!=(c=_[f]);f++){if(a&&c){for(d=0,o||c.ownerDocument===M||(P(c),s=!L);h=e[d++];)if(h(c,o||M,s)){l.push(c);break}u&&(V=b)}i&&((c=!h&&c)&&p--,r&&g.push(c))}if(p+=f,i&&f!==p){for(d=0;h=n[d++];)h(g,m,o,s);if(r){if(p>0)for(;f--;)g[f]||m[f]||(m[f]=K.call(l));m=v(m)}Z.apply(l,m),u&&!r&&m.length>0&&p+n.length>1&&t.uniqueSort(l)}return u&&(V=b,A=y),g};return i?r(o):o}
vendor: 13,008 bytes, line 30
30var T,E,S,w,C,k,D,x,A,I,O,P,M,R,L,N,U,H,j,B="sizzle"+1*new Date,F=e.document,V=0,W=0,z=n(),$=n(),q=n(),G=function(e,t){return e===t&&(O=!0),0},Y={}.hasOwnProperty,X=[],K=X.pop,Q=X.push,Z=X.push,J=X.slice,ee=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",re="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ie="\\["+ne+"*("+re+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+re+"))|)"+ne+"*\\]",ae=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ie+")*)|.*)\\)|)",oe=new RegExp(ne+"+","g"),se=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),le=new RegExp("^"+ne+"*,"+ne+"*"),ue=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),ce=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),de=new RegExp(ae),he=new RegExp("^"+re+"$"),pe={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},fe=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,_e=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),be=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Ee=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Se=function(){P()},we=f(function(e){return e.disabled===!0&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{Z.apply(X=J.call(F.childNodes),F.childNodes),X[F.childNodes.length].nodeType}catch(Ce){Z={apply:X.length?function(e,t){Q.apply(e,J.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}E=t.support={},C=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},P=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:F;return r!==M&&9===r.nodeType&&r.documentElement?(M=r,R=M.documentElement,L=!C(M),F!==M&&(n=M.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Se,!1):n.attachEvent&&n.attachEvent("onunload",Se)),E.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),E.getElementsByTagName=i(function(e){return e.appendChild(M.createComment("")),!e.getElementsByTagName("*").length}),E.getElementsByClassName=me.test(M.getElementsByClassName),E.getById=i(function(e){return R.appendChild(e).id=B,!M.getElementsByName||!M.getElementsByName(B).length}),E.getById?(S.filter.ID=function(e){var t=e.replace(_e,be);return function(e){return e.getAttribute("id")===t}},S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&L){var n=t.getElementById(e);return n?[n]:[]}}):(S.filter.ID=function(e){var t=e.replace(_e,be);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},S.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&L){var n,r,i,a=t.getElementById(e);if(a){if(n=a.getAttributeNode("id"),n&&n.value===e)return[a];for(i=t.getElementsByName(e),r=0;a=i[r++];)if(n=a.getAttributeNode("id"),n&&n.value===e)return[a]}return[]}}),S.find.TAG=E.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):E.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[i++];)1===n.nodeType&&r.push(n);return r}return a},S.find.CLASS=E.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&L)return t.getElementsByClassName(e)},U=[],N=[],(E.qsa=me.test(M.querySelectorAll))&&(i(function(e){R.appendChild(e).innerHTML="<a id='"+B+"'></a><select id='"+B+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&N.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||N.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+B+"-]").length||N.push("~="),e.querySelectorAll(":checked").length||N.push(":checked"),e.querySelectorAll("a#"+B+"+*").length||N.push(".#.+[+~]")}),i(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=M.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&N.push("name"+ne+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&N.push(":enabled",":disabled"),R.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&N.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),N.push(",.*:")})),(E.matchesSelector=me.test(H=R.matches||R.webkitMatchesSelector||R.mozMatchesSelector||R.oMatchesSelector||R.msMatchesSelector))&&i(function(e){E.disconnectedMatch=H.call(e,"*"),H.call(e,"[s!='']:x"),U.push("!=",ae)}),N=N.length&&new RegExp(N.join("|")),U=U.length&&new RegExp(U.join("|")),t=me.test(R.compareDocumentPosition),j=t||me.test(R.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},G=t?function(e,t){if(e===t)return O=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!E.sortDetached&&t.compareDocumentPosition(e)===n?e===M||e.ownerDocument===F&&j(F,e)?-1:t===M||t.ownerDocument===F&&j(F,t)?1:I?ee(I,e)-ee(I,t):0:4&n?-1:1)}:function(e,t){if(e===t)return O=!0,0;var n,r=0,i=e.parentNode,a=t.parentNode,s=[e],l=[t];if(!i||!a)return e===M?-1:t===M?1:i?-1:a?1:I?ee(I,e)-ee(I,t):0;if(i===a)return o(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;s[r]===l[r];)r++;return r?o(s[r],l[r]):s[r]===F?-1:l[r]===F?1:0},M):M},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==M&&P(e),n=n.replace(ce,"='$1']"),E.matchesSelector&&L&&!q[n+" "]&&(!U||!U.test(n))&&(!N||!N.test(n)))try{var r=H.call(e,n);if(r||E.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return t(n,M,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==M&&P(e),j(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==M&&P(e);var n=S.attrHandle[t.toLowerCase()],r=n&&Y.call(S.attrHandle,t.toLowerCase())?n(e,t,!L):void 0;return void 0!==r?r:E.attributes||!L?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(Te,Ee)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(O=!E.detectDuplicates,I=!E.sortStable&&e.slice(0),e.sort(G),O){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return I=null,e},w=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=w(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=w(t);return n},S=t.selectors={cacheLength:50,createPseudo:r,match:pe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(_e,be),e[3]=(e[3]||e[4]||e[5]||"").replace(_e,be),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&de.test(n)&&(t=k(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(_e,be).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&z(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var a=t.attr(i,e);return null==a?"!="===n:!n||(a+="","="===n?a===r:"!="===n?a!==r:"^="===n?r&&0===a.indexOf(r):"*="===n?r&&a.indexOf(r)>-1:"$="===n?r&&a.slice(-r.length)===r:"~="===n?(" "+a.replace(oe," ")+" ").indexOf(r)>-1:"|="===n&&(a===r||a.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var a="nth"!==e.slice(0,3),o="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,h,p,f,g=a!==o?"nextSibling":"previousSibling",m=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s,_=!1;if(m){if(a){for(;g;){for(h=t;h=h[g];)if(s?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;f=g="only"===e&&!f&&"nextSibling"}return!0}if(f=[o?m.firstChild:m.lastChild],o&&y){for(h=m,d=h[B]||(h[B]={}),c=d[h.uniqueID]||(d[h.uniqueID]={}),u=c[e]||[],p=u[0]===V&&u[1],_=p&&u[2],h=p&&m.childNodes[p];h=++p&&h&&h[g]||(_=p=0)||f.pop();)if(1===h.nodeType&&++_&&h===t){c[e]=[V,p,_];break}}else if(y&&(h=t,d=h[B]||(h[B]={}),c=d[h.uniqueID]||(d[h.uniqueID]={}),u=c[e]||[],p=u[0]===V&&u[1],_=p),_===!1)for(;(h=++p&&h&&h[g]||(_=p=0)||f.pop())&&((s?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++_||(y&&(d=h[B]||(h[B]={}),c=d[h.uniqueID]||(d[h.uniqueID]={}),c[e]=[V,_]),h!==t)););return _-=i,_===r||_%r===0&&_/r>=0}}},PSEUDO:function(e,n){var i,a=S.pseudos[e]||S.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return a[B]?a(n):a.length>1?(i=[e,e,"",n],S.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=a(e,n),o=i.length;o--;)r=ee(e,i[o]),e[r]=!(t[r]=i[o])}):function(e){return a(e,0,i)}):a}},pseudos:{not:r(function(e){var t=[],n=[],i=D(e.replace(se,"$1"));return i[B]?r(function(e,t,n,r){for(var a,o=i(e,null,r,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))}):function(e,r,a){return t[0]=e,i(t,null,a,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(_e,be),function(t){return(t.textContent||t.innerText||w(t)).indexOf(e)>-1}}),lang:r(function(e){return he.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(_e,be).toLowerCase(),function(t){var n;do if(n=L?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===R},focus:function(e){return e===M.activeElement&&(!M.hasFocus||M.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:u(!1),disabled:u(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!S.pseudos.empty(e)},header:function(e){return ge.test(e.nodeName)},input:function(e){return fe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[n<0?n+t:n]}),even:c(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:c(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:c(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:c(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},S.pseudos.nth=S.pseudos.eq;for(T in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})S.pseudos[T]=s(T);for(T in{submit:!0,reset:!0})S.pseudos[T]=l(T);return h.prototype=S.filters=S.pseudos,S.setFilters=new h,k=t.tokenize=function(e,n){var r,i,a,o,s,l,u,c=$[e+" "];if(c)return n?0:c.slice(0);for(s=e,l=[],u=S.preFilter;s;){r&&!(i=le.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(a=[])),r=!1,(i=ue.exec(s))&&(r=i.shift(),a.push({value:r,type:i[0].replace(se," ")}),s=s.slice(r.length));
vendor: 20,144 bytes, lines 30-31
30for(o in S.filter)!(i=pe[o].exec(s))||u[o]&&!(i=u[o](i))||(r=i.shift(),a.push({value:r,type:o,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?t.error(e):$(e,l).slice(0)},D=t.compile=function(e,t){var n,r=[],i=[],a=q[e+" "];if(!a){for(t||(t=k(e)),n=t.length;n--;)a=_(t[n]),a[B]?r.push(a):i.push(a);a=q(e,b(i,r)),a.selector=e}return a},x=t.select=function(e,t,n,r){var i,a,o,s,l,u="function"==typeof e&&e,c=!r&&k(e=u.selector||e);if(n=n||[],1===c.length){if(a=c[0]=c[0].slice(0),a.length>2&&"ID"===(o=a[0]).type&&9===t.nodeType&&L&&S.relative[a[1].type]){if(t=(S.find.ID(o.matches[0].replace(_e,be),t)||[])[0],!t)return n;u&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(i=pe.needsContext.test(e)?0:a.length;i--&&(o=a[i],!S.relative[s=o.type]);)if((l=S.find[s])&&(r=l(o.matches[0].replace(_e,be),ye.test(a[0].type)&&d(t.parentNode)||t))){if(a.splice(i,1),e=r.length&&p(a),!e)return Z.apply(n,r),n;break}}return(u||D(e,c))(r,t,!L,n,!t||ye.test(e)&&d(t.parentNode)||t),n},E.sortStable=B.split("").sort(G).join("")===B,E.detectDuplicates=!!O,P(),E.sortDetached=i(function(e){return 1&e.compareDocumentPosition(M.createElement("fieldset"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||a("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),E.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||a("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||a(te,function(e,t,n){var r;if(!n)return e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(n);ke.find=xe,ke.expr=xe.selectors,ke.expr[":"]=ke.expr.pseudos,ke.uniqueSort=ke.unique=xe.uniqueSort,ke.text=xe.getText,ke.isXMLDoc=xe.isXML,ke.contains=xe.contains,ke.escapeSelector=xe.escape;var Ae=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&ke(e).is(n))break;r.push(e)}return r},Ie=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},Oe=ke.expr.match.needsContext,Pe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;ke.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ke.find.matchesSelector(r,e)?[r]:[]:ke.find.matches(e,ke.grep(t,function(e){return 1===e.nodeType}))},ke.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(ke(e).filter(function(){for(t=0;t<r;t++)if(ke.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)ke.find(e,i[t],n);return r>1?ke.uniqueSort(n):n},filter:function(e){return this.pushStack(c(this,e||[],!1))},not:function(e){return this.pushStack(c(this,e||[],!0))},is:function(e){return!!c(this,"string"==typeof e&&Oe.test(e)?ke(e):e||[],!1).length}});var Me,Re=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Le=ke.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Me,"string"==typeof e){if(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Re.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ke?t[0]:t,ke.merge(this,ke.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:ce,!0)),Pe.test(r[1])&&ke.isPlainObject(t))for(r in t)Ee(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=ce.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):Ee(e)?void 0!==n.ready?n.ready(e):e(ke):ke.makeArray(e,this)};Le.prototype=ke.fn,Me=ke(ce);var Ne=/^(?:parents|prev(?:Until|All))/,Ue={children:!0,contents:!0,next:!0,prev:!0};ke.fn.extend({has:function(e){var t=ke(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ke.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,a=[],o="string"!=typeof e&&ke(e);if(!Oe.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&ke.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?ke.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?ge.call(ke(e),this[0]):ge.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ke.uniqueSort(ke.merge(this.get(),ke(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ke.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Ae(e,"parentNode")},parentsUntil:function(e,t,n){return Ae(e,"parentNode",n)},next:function(e){return d(e,"nextSibling")},prev:function(e){return d(e,"previousSibling")},nextAll:function(e){return Ae(e,"nextSibling")},prevAll:function(e){return Ae(e,"previousSibling")},nextUntil:function(e,t,n){return Ae(e,"nextSibling",n)},prevUntil:function(e,t,n){return Ae(e,"previousSibling",n)},siblings:function(e){return Ie((e.parentNode||{}).firstChild,e)},children:function(e){return Ie(e.firstChild)},contents:function(e){return u(e,"iframe")?e.contentDocument:(u(e,"template")&&(e=e.content||e),ke.merge([],e.childNodes))}},function(e,t){ke.fn[e]=function(n,r){var i=ke.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=ke.filter(r,i)),this.length>1&&(Ue[e]||ke.uniqueSort(i),Ne.test(e)&&i.reverse()),this.pushStack(i)}});var He=/[^\x20\t\r\n\f]+/g;ke.Callbacks=function(e){e="string"==typeof e?h(e):ke.extend({},e);var t,n,r,i,a=[],o=[],l=-1,u=function(){for(i=i||e.once,r=t=!0;o.length;l=-1)for(n=o.shift();++l<a.length;)a[l].apply(n[0],n[1])===!1&&e.stopOnFalse&&(l=a.length,n=!1);e.memory||(n=!1),t=!1,i&&(a=n?[]:"")},c={add:function(){return a&&(n&&!t&&(l=a.length-1,o.push(n)),function r(t){ke.each(t,function(t,n){Ee(n)?e.unique&&c.has(n)||a.push(n):n&&n.length&&"string"!==s(n)&&r(n)})}(arguments),n&&!t&&u()),this},remove:function(){return ke.each(arguments,function(e,t){for(var n;(n=ke.inArray(t,a,n))>-1;)a.splice(n,1),n<=l&&l--}),this},has:function(e){return e?ke.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=o=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=o=[],n||t||(a=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],o.push(n),t||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},ke.extend({Deferred:function(e){var t=[["notify","progress",ke.Callbacks("memory"),ke.Callbacks("memory"),2],["resolve","done",ke.Callbacks("once memory"),ke.Callbacks("once memory"),0,"resolved"],["reject","fail",ke.Callbacks("once memory"),ke.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},"catch":function(e){return i.then(null,e)},pipe:function(){var e=arguments;return ke.Deferred(function(n){ke.each(t,function(t,r){var i=Ee(e[r[4]])&&e[r[4]];a[r[1]](function(){var e=i&&i.apply(this,arguments);e&&Ee(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(e,r,i){function a(e,t,r,i){return function(){var s=this,l=arguments,u=function(){var n,u;if(!(e<o)){if(n=r.apply(s,l),n===t.promise())throw new TypeError("Thenable self-resolution");u=n&&("object"==typeof n||"function"==typeof n)&&n.then,Ee(u)?i?u.call(n,a(o,t,p,i),a(o,t,f,i)):(o++,u.call(n,a(o,t,p,i),a(o,t,f,i),a(o,t,p,t.notifyWith))):(r!==p&&(s=void 0,l=[n]),(i||t.resolveWith)(s,l))}},c=i?u:function(){try{u()}catch(n){ke.Deferred.exceptionHook&&ke.Deferred.exceptionHook(n,c.stackTrace),e+1>=o&&(r!==f&&(s=void 0,l=[n]),t.rejectWith(s,l))}};e?c():(ke.Deferred.getStackHook&&(c.stackTrace=ke.Deferred.getStackHook()),n.setTimeout(c))}}var o=0;return ke.Deferred(function(n){t[0][3].add(a(0,n,Ee(i)?i:p,n.notifyWith)),t[1][3].add(a(0,n,Ee(e)?e:p)),t[2][3].add(a(0,n,Ee(r)?r:f))}).promise()},promise:function(e){return null!=e?ke.extend(e,i):i}},a={};return ke.each(t,function(e,n){var o=n[2],s=n[5];i[n[1]]=o.add,s&&o.add(function(){r=s},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),o.add(n[3].fire),a[n[0]]=function(){return a[n[0]+"With"](this===a?void 0:this,arguments),this},a[n[0]+"With"]=o.fireWith}),i.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),i=he.call(arguments),a=ke.Deferred(),o=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?he.call(arguments):n,--t||a.resolveWith(r,i)}};if(t<=1&&(g(e,a.done(o(n)).resolve,a.reject,!t),"pending"===a.state()||Ee(i[n]&&i[n].then)))return a.then();for(;n--;)g(i[n],o(n),a.reject);return a.promise()}});var je=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ke.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&je.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ke.readyException=function(e){n.setTimeout(function(){throw e})};var Be=ke.Deferred();ke.fn.ready=function(e){return Be.then(e)["catch"](function(e){ke.readyException(e)}),this},ke.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--ke.readyWait:ke.isReady)||(ke.isReady=!0,e!==!0&&--ke.readyWait>0||Be.resolveWith(ce,[ke]))}}),ke.ready.then=Be.then,"complete"===ce.readyState||"loading"!==ce.readyState&&!ce.documentElement.doScroll?n.setTimeout(ke.ready):(ce.addEventListener("DOMContentLoaded",m),n.addEventListener("load",m));var Fe=function(e,t,n,r,i,a,o){var l=0,u=e.length,c=null==n;if("object"===s(n)){i=!0;for(l in n)Fe(e,t,l,n[l],!0,a,o)}else if(void 0!==r&&(i=!0,Ee(r)||(o=!0),c&&(o?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(ke(e),n)})),t))for(;l<u;l++)t(e[l],n,o?r:r.call(e[l],l,t(e[l],n)));return i?e:c?t.call(e):u?t(e[0],n):a},Ve=/^-ms-/,We=/-([a-z])/g,ze=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};_.uid=1,_.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ze(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[y(t)]=n;else for(r in t)i[y(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][y(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){Array.isArray(t)?t=t.map(y):(t=y(t),t=t in r?[t]:t.match(He)||[]),n=t.length;for(;n--;)delete r[t[n]]}(void 0===t||ke.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ke.isEmptyObject(t)}};var $e=new _,qe=new _,Ge=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ye=/[A-Z]/g;ke.extend({hasData:function(e){return qe.hasData(e)||$e.hasData(e)},data:function(e,t,n){return qe.access(e,t,n)},removeData:function(e,t){qe.remove(e,t)},_data:function(e,t,n){return $e.access(e,t,n)},_removeData:function(e,t){$e.remove(e,t)}}),ke.fn.extend({data:function(e,t){var n,r,i,a=this[0],o=a&&a.attributes;if(void 0===e){if(this.length&&(i=qe.get(a),1===a.nodeType&&!$e.get(a,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&(r=o[n].name,0===r.indexOf("data-")&&(r=y(r.slice(5)),T(a,r,i[r])));$e.set(a,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){qe.set(this,e)}):Fe(this,function(t){var n;if(a&&void 0===t){if(n=qe.get(a,e),void 0!==n)return n;if(n=T(a,e),void 0!==n)return n}else this.each(function(){qe.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){qe.remove(this,e)})}}),ke.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=$e.get(e,t),n&&(!r||Array.isArray(n)?r=$e.access(e,t,ke.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ke.queue(e,t),r=n.length,i=n.shift(),a=ke._queueHooks(e,t),o=function(){ke.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete a.stop,i.call(e,o,a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return $e.get(e,n)||$e.access(e,n,{empty:ke.Callbacks("once memory").add(function(){$e.remove(e,[t+"queue",n])})})}}),ke.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?ke.queue(this[0],e):void 0===t?this:this.each(function(){var n=ke.queue(this,e,t);ke._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&ke.dequeue(this,e)})},dequeue:function(e){return this.each(function(){ke.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ke.Deferred(),a=this,o=this.length,s=function(){--r||i.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)n=$e.get(a[o],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var Xe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ke=new RegExp("^(?:([+-])=|)("+Xe+")([a-z%]*)$","i"),Qe=["Top","Right","Bottom","Left"],Ze=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&ke.contains(e.ownerDocument,e)&&"none"===ke.css(e,"display")},Je=function(e,t,n,r){var i,a,o={};for(a in t)o[a]=e.style[a],e.style[a]=t[a];i=n.apply(e,r||[]);for(a in t)e.style[a]=o[a];return i},et={};ke.fn.extend({show:function(){return w(this,!0)},hide:function(){return w(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Ze(this)?ke(this).show():ke(this).hide()})}});var tt=/^(?:checkbox|radio)$/i,nt=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,rt=/^$|^module$|\/(?:java|ecma)script/i,it={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};it.optgroup=it.option,it.tbody=it.tfoot=it.colgroup=it.caption=it.thead,it.th=it.td;var at=/<|&#?\w+;/;!function(){var e=ce.createDocumentFragment(),t=e.appendChild(ce.createElement("div")),n=ce.createElement("input"); 31n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),Te.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",Te.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var ot=ce.documentElement,st=/^key/,lt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ut=/^([^.]*)(?:\.(.+)|)/;ke.event={global:{},add:function(e,t,n,r,i){var a,o,s,l,u,c,d,h,p,f,g,m=$e.get(e);if(m)for(n.handler&&(a=n,n=a.handler,i=a.selector),i&&ke.find.matchesSelector(ot,i),n.guid||(n.guid=ke.guid++),(l=m.events)||(l=m.events={}),(o=m.handle)||(o=m.handle=function(t){return"undefined"!=typeof ke&&ke.event.triggered!==t.type?ke.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(He)||[""],u=t.length;u--;)s=ut.exec(t[u])||[],p=g=s[1],f=(s[2]||"").split(".").sort(),p&&(d=ke.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=ke.event.special[p]||{},c=ke.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ke.expr.match.needsContext.test(i),namespace:f.join(".")},a),(h=l[p])||(h=l[p]=[],h.delegateCount=0,d.setup&&d.setup.call(e,r,f,o)!==!1||e.addEventListener&&e.addEventListener(p,o)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),ke.event.global[p]=!0)},remove:function(e,t,n,r,i){var a,o,s,l,u,c,d,h,p,f,g,m=$e.hasData(e)&&$e.get(e);if(m&&(l=m.events)){for(t=(t||"").match(He)||[""],u=t.length;u--;)if(s=ut.exec(t[u])||[],p=g=s[1],f=(s[2]||"").split(".").sort(),p){for(d=ke.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,h=l[p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=a=h.length;a--;)c=h[a],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(h.splice(a,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(e,c));o&&!h.length&&(d.teardown&&d.teardown.call(e,f,m.handle)!==!1||ke.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)ke.event.remove(e,p+t[u],n,r,!0);ke.isEmptyObject(l)&&$e.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,a,o,s=ke.event.fix(e),l=new Array(arguments.length),u=($e.get(this,"events")||{})[s.type]||[],c=ke.event.special[s.type]||{};for(l[0]=s,t=1;t<arguments.length;t++)l[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,s)!==!1){for(o=ke.event.handlers.call(this,s,u),t=0;(i=o[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(a.namespace)||(s.handleObj=a,s.data=a.data,r=((ke.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,l),void 0!==r&&(s.result=r)===!1&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,a,o,s=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||u.disabled!==!0)){for(a=[],o={},n=0;n<l;n++)r=t[n],i=r.selector+" ",void 0===o[i]&&(o[i]=r.needsContext?ke(i,this).index(u)>-1:ke.find(i,this,null,[u]).length),o[i]&&a.push(r);a.length&&s.push({elem:u,handlers:a})}return u=this,l<t.length&&s.push({elem:u,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(ke.Event.prototype,e,{enumerable:!0,configurable:!0,get:Ee(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[ke.expando]?e:new ke.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==I()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===I()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&u(this,"input"))return this.click(),!1},_default:function(e){return u(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ke.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ke.Event=function(e,t){return this instanceof ke.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?x:A,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ke.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),void(this[ke.expando]=!0)):new ke.Event(e,t)},ke.Event.prototype={constructor:ke.Event,isDefaultPrevented:A,isPropagationStopped:A,isImmediatePropagationStopped:A,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=x,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=x,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=x,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ke.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&st.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&<.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},ke.event.addProp),ke.each({mouseenter:"mouseover",mouseleave:"mou
vendor: 10,598 bytes, line 31
31seout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){ke.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,a=e.handleObj;return i&&(i===r||ke.contains(r,i))||(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}}),ke.fn.extend({on:function(e,t,n,r){return O(this,e,t,n,r)},one:function(e,t,n,r){return O(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ke(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return t!==!1&&"function"!=typeof t||(n=t,t=void 0),n===!1&&(n=A),this.each(function(){ke.event.remove(this,e,n,t)})}});var ct=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,dt=/<script|<style|<link/i,ht=/checked\s*(?:[^=]|=\s*.checked.)/i,pt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;ke.extend({htmlPrefilter:function(e){return e.replace(ct,"<$1></$2>")},clone:function(e,t,n){var r,i,a,o,s=e.cloneNode(!0),l=ke.contains(e.ownerDocument,e);if(!(Te.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ke.isXMLDoc(e)))for(o=C(s),a=C(e),r=0,i=a.length;r<i;r++)N(a[r],o[r]);if(t)if(n)for(a=a||C(e),o=o||C(s),r=0,i=a.length;r<i;r++)L(a[r],o[r]);else L(e,s);return o=C(s,"script"),o.length>0&&k(o,!l&&C(e,"script")),s},cleanData:function(e){for(var t,n,r,i=ke.event.special,a=0;void 0!==(n=e[a]);a++)if(ze(n)){if(t=n[$e.expando]){if(t.events)for(r in t.events)i[r]?ke.event.remove(n,r):ke.removeEvent(n,r,t.handle);n[$e.expando]=void 0}n[qe.expando]&&(n[qe.expando]=void 0)}}}),ke.fn.extend({detach:function(e){return H(this,e,!0)},remove:function(e){return H(this,e)},text:function(e){return Fe(this,function(e){return void 0===e?ke.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return U(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=P(this,e);t.appendChild(e)}})},prepend:function(){return U(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=P(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return U(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return U(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ke.cleanData(C(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ke.clone(this,e,t)})},html:function(e){return Fe(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!dt.test(e)&&!it[(nt.exec(e)||["",""])[1].toLowerCase()]){e=ke.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(ke.cleanData(C(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return U(this,arguments,function(t){var n=this.parentNode;ke.inArray(this,e)<0&&(ke.cleanData(C(this)),n&&n.replaceChild(t,this))},e)}}),ke.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){ke.fn[e]=function(e){for(var n,r=[],i=ke(e),a=i.length-1,o=0;o<=a;o++)n=o===a?this:this.clone(!0),ke(i[o])[t](n),fe.apply(r,n.get());return this.pushStack(r)}});var ft=new RegExp("^("+Xe+")(?!px)[a-z%]+$","i"),gt=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},mt=new RegExp(Qe.join("|"),"i");!function(){function e(){if(u){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ot.appendChild(l).appendChild(u);var e=n.getComputedStyle(u);r="1%"!==e.top,s=12===t(e.marginLeft),u.style.right="60%",o=36===t(e.right),i=36===t(e.width),u.style.position="absolute",a=36===u.offsetWidth||"absolute",ot.removeChild(l),u=null}}function t(e){return Math.round(parseFloat(e))}var r,i,a,o,s,l=ce.createElement("div"),u=ce.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",Te.clearCloneStyle="content-box"===u.style.backgroundClip,ke.extend(Te,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),a}}))}();var vt=/^(none|table(?!-c[ea]).+)/,yt=/^--/,_t={position:"absolute",visibility:"hidden",display:"block"},bt={letterSpacing:"0",fontWeight:"400"},Tt=["Webkit","Moz","ms"],Et=ce.createElement("div").style;ke.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=j(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,a,o,s=y(t),l=yt.test(t),u=e.style;return l||(t=V(s)),o=ke.cssHooks[t]||ke.cssHooks[s],void 0===n?o&&"get"in o&&void 0!==(i=o.get(e,!1,r))?i:u[t]:(a=typeof n,"string"===a&&(i=Ke.exec(n))&&i[1]&&(n=E(e,t,i),a="number"),null!=n&&n===n&&("number"===a&&(n+=i&&i[3]||(ke.cssNumber[s]?"":"px")),Te.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,r))||(l?u.setProperty(t,n):u[t]=n)),void 0)}},css:function(e,t,n,r){var i,a,o,s=y(t),l=yt.test(t);return l||(t=V(s)),o=ke.cssHooks[t]||ke.cssHooks[s],o&&"get"in o&&(i=o.get(e,!0,n)),void 0===i&&(i=j(e,t,r)),"normal"===i&&t in bt&&(i=bt[t]),""===n||n?(a=parseFloat(i),n===!0||isFinite(a)?a||0:i):i}}),ke.each(["height","width"],function(e,t){ke.cssHooks[t]={get:function(e,n,r){if(n)return!vt.test(ke.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?$(e,t,r):Je(e,_t,function(){return $(e,t,r)})},set:function(e,n,r){var i,a=gt(e),o="border-box"===ke.css(e,"boxSizing",!1,a),s=r&&z(e,t,r,o,a);return o&&Te.scrollboxSize()===a.position&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-z(e,t,"border",!1,a)-.5)),s&&(i=Ke.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=ke.css(e,t)),W(e,n,s)}}}),ke.cssHooks.marginLeft=B(Te.reliableMarginLeft,function(e,t){if(t)return(parseFloat(j(e,"marginLeft"))||e.getBoundingClientRect().left-Je(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ke.each({margin:"",padding:"",border:"Width"},function(e,t){ke.cssHooks[e+t]={expand:function(n){for(var r=0,i={},a="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+Qe[r]+t]=a[r]||a[r-2]||a[0];return i}},"margin"!==e&&(ke.cssHooks[e+t].set=W)}),ke.fn.extend({css:function(e,t){return Fe(this,function(e,t,n){var r,i,a={},o=0;if(Array.isArray(t)){for(r=gt(e),i=t.length;o<i;o++)a[t[o]]=ke.css(e,t[o],!1,r);return a}return void 0!==n?ke.style(e,t,n):ke.css(e,t)},e,t,arguments.length>1)}}),ke.Tween=q,q.prototype={constructor:q,init:function(e,t,n,r,i,a){this.elem=e,this.prop=n,this.easing=i||ke.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(ke.cssNumber[n]?"":"px")},cur:function(){var e=q.propHooks[this.prop];return e&&e.get?e.get(this):q.propHooks._default.get(this)},run:function(e){var t,n=q.propHooks[this.prop];return this.options.duration?this.pos=t=ke.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):q.propHooks._default.set(this),this}},q.prototype.init.prototype=q.prototype,q.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ke.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){ke.fx.step[e.prop]?ke.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[ke.cssProps[e.prop]]&&!ke.cssHooks[e.prop]?e.elem[e.prop]=e.now:ke.style(e.elem,e.prop,e.now+e.unit)}}},q.propHooks.scrollTop=q.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ke.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ke.fx=q.prototype.init,ke.fx.step={};var St,wt,Ct=/^(?:toggle|show|hide)$/,kt=/queueHooks$/;ke.Animation=ke.extend(J,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return E(n.elem,e,Ke.exec(t),n),n}]},tweener:function(e,t){Ee(e)?(t=e,e=["*"]):e=e.match(He);for(var n,r=0,i=e.length;r<i;r++)n=e[r],J.tweeners[n]=J.tweeners[n]||[],J.tweeners[n].unshift(t)},prefilters:[Q],prefilter:function(e,t){t?J.prefilters.unshift(e):J.prefilters.push(e)}}),ke.speed=function(e,t,n){var r=e&&"object"==typeof e?ke.extend({},e):{complete:n||!n&&t||Ee(e)&&e,duration:e,easing:n&&t||t&&!Ee(t)&&t};return ke.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in ke.fx.speeds?r.duration=ke.fx.speeds[r.duration]:r.duration=ke.fx.speeds._default),null!=r.queue&&r.queue!==!0||(r.queue="fx"),r.old=r.complete,r.complete=function(){Ee(r.old)&&r.old.call(this),r.queue&&ke.dequeue(this,r.queue)},r},ke.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Ze).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=ke.isEmptyObject(e),a=ke.speed(t,n,r),o=function(){var t=J(this,ke.extend({},e),a);(i||$e.get(this,"finish"))&&t.stop(!0)};return o.finish=o,i||a.queue===!1?this.each(o):this.queue(a.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",a=ke.timers,o=$e.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&kt.test(i)&&r(o[i]);for(i=a.length;i--;)a[i].elem!==this||null!=e&&a[i].queue!==e||(a[i].anim.stop(n),t=!1,a.splice(i,1));!t&&n||ke.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=$e.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],a=ke.timers,o=r?r.length:0;for(n.finish=!0,ke.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1)
vendor: 7,030 bytes, line 31
31);for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),ke.each(["toggle","show","hide"],function(e,t){var n=ke.fn[t];ke.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(X(t,!0),e,r,i)}}),ke.each({slideDown:X("show"),slideUp:X("hide"),slideToggle:X("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){ke.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),ke.timers=[],ke.fx.tick=function(){var e,t=0,n=ke.timers;for(St=Date.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||ke.fx.stop(),St=void 0},ke.fx.timer=function(e){ke.timers.push(e),ke.fx.start()},ke.fx.interval=13,ke.fx.start=function(){wt||(wt=!0,G())},ke.fx.stop=function(){wt=null},ke.fx.speeds={slow:600,fast:200,_default:400},ke.fn.delay=function(e,t){return e=ke.fx?ke.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,r){var i=n.setTimeout(t,e);r.stop=function(){n.clearTimeout(i)}})},function(){var e=ce.createElement("input"),t=ce.createElement("select"),n=t.appendChild(ce.createElement("option"));e.type="checkbox",Te.checkOn=""!==e.value,Te.optSelected=n.selected,e=ce.createElement("input"),e.value="t",e.type="radio",Te.radioValue="t"===e.value}();var Dt,xt=ke.expr.attrHandle;ke.fn.extend({attr:function(e,t){return Fe(this,ke.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){ke.removeAttr(this,e)})}}),ke.extend({attr:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return"undefined"==typeof e.getAttribute?ke.prop(e,t,n):(1===a&&ke.isXMLDoc(e)||(i=ke.attrHooks[t.toLowerCase()]||(ke.expr.match.bool.test(t)?Dt:void 0)),void 0!==n?null===n?void ke.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=ke.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!Te.radioValue&&"radio"===t&&u(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(He);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),Dt={set:function(e,t,n){return t===!1?ke.removeAttr(e,n):e.setAttribute(n,n),n}},ke.each(ke.expr.match.bool.source.match(/\w+/g),function(e,t){var n=xt[t]||ke.find.attr;xt[t]=function(e,t,r){var i,a,o=t.toLowerCase();return r||(a=xt[o],xt[o]=i,i=null!=n(e,t,r)?o:null,xt[o]=a),i}});var At=/^(?:input|select|textarea|button)$/i,It=/^(?:a|area)$/i;ke.fn.extend({prop:function(e,t){return Fe(this,ke.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[ke.propFix[e]||e]})}}),ke.extend({prop:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&ke.isXMLDoc(e)||(t=ke.propFix[t]||t,i=ke.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ke.find.attr(e,"tabindex");return t?parseInt(t,10):At.test(e.nodeName)||It.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),Te.optSelected||(ke.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ke.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ke.propFix[this.toLowerCase()]=this}),ke.fn.extend({addClass:function(e){var t,n,r,i,a,o,s,l=0;if(Ee(e))return this.each(function(t){ke(this).addClass(e.call(this,t,te(this)))});if(t=ne(e),t.length)for(;n=this[l++];)if(i=te(n),r=1===n.nodeType&&" "+ee(i)+" "){for(o=0;a=t[o++];)r.indexOf(" "+a+" ")<0&&(r+=a+" ");s=ee(r),i!==s&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,a,o,s,l=0;if(Ee(e))return this.each(function(t){ke(this).removeClass(e.call(this,t,te(this)))});if(!arguments.length)return this.attr("class","");if(t=ne(e),t.length)for(;n=this[l++];)if(i=te(n),r=1===n.nodeType&&" "+ee(i)+" "){for(o=0;a=t[o++];)for(;r.indexOf(" "+a+" ")>-1;)r=r.replace(" "+a+" "," ");s=ee(r),i!==s&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):Ee(e)?this.each(function(n){ke(this).toggleClass(e.call(this,n,te(this),t),t)}):this.each(function(){var t,i,a,o;if(r)for(i=0,a=ke(this),o=ne(e);t=o[i++];)a.hasClass(t)?a.removeClass(t):a.addClass(t);else void 0!==e&&"boolean"!==n||(t=te(this),t&&$e.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":$e.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+ee(te(n))+" ").indexOf(t)>-1)return!0;return!1}});var Ot=/\r/g;ke.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=Ee(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,ke(this).val()):e,null==i?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=ke.map(i,function(e){return null==e?"":e+""})),t=ke.valHooks[this.type]||ke.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=ke.valHooks[i.type]||ke.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(Ot,""):null==n?"":n)}}}),ke.extend({valHooks:{option:{get:function(e){var t=ke.find.attr(e,"value");return null!=t?t:ee(ke.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,o="select-one"===e.type,s=o?null:[],l=o?a+1:i.length;for(r=a<0?l:o?a:0;r<l;r++)if(n=i[r],(n.selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!u(n.parentNode,"optgroup"))){if(t=ke(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,a=ke.makeArray(t),o=i.length;o--;)r=i[o],(r.selected=ke.inArray(ke.valHooks.option.get(r),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),ke.each(["radio","checkbox"],function(){ke.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=ke.inArray(ke(e).val(),t)>-1}},Te.checkOn||(ke.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),Te.focusin="onfocusin"in n;var Pt=/^(?:focusinfocus|focusoutblur)$/,Mt=function(e){e.stopPropagation()};ke.extend(ke.event,{trigger:function(e,t,r,i){var a,o,s,l,u,c,d,h,p=[r||ce],f=ye.call(e,"type")?e.type:e,g=ye.call(e,"namespace")?e.namespace.split("."):[];if(o=h=s=r=r||ce,3!==r.nodeType&&8!==r.nodeType&&!Pt.test(f+ke.event.triggered)&&(f.indexOf(".")>-1&&(g=f.split("."),f=g.shift(),g.sort()),u=f.indexOf(":")<0&&"on"+f,e=e[ke.expando]?e:new ke.Event(f,"object"==typeof e&&e),e.isTrigger=i?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:ke.makeArray(t,[e]),d=ke.event.special[f]||{}
vendor: 6,579 bytes, line 31
31,i||!d.trigger||d.trigger.apply(r,t)!==!1)){if(!i&&!d.noBubble&&!Se(r)){for(l=d.delegateType||f,Pt.test(l+f)||(o=o.parentNode);o;o=o.parentNode)p.push(o),s=o;s===(r.ownerDocument||ce)&&p.push(s.defaultView||s.parentWindow||n)}for(a=0;(o=p[a++])&&!e.isPropagationStopped();)h=o,e.type=a>1?l:d.bindType||f,c=($e.get(o,"events")||{})[e.type]&&$e.get(o,"handle"),c&&c.apply(o,t),c=u&&o[u],c&&c.apply&&ze(o)&&(e.result=c.apply(o,t),e.result===!1&&e.preventDefault());return e.type=f,i||e.isDefaultPrevented()||d._default&&d._default.apply(p.pop(),t)!==!1||!ze(r)||u&&Ee(r[f])&&!Se(r)&&(s=r[u],s&&(r[u]=null),ke.event.triggered=f,e.isPropagationStopped()&&h.addEventListener(f,Mt),r[f](),e.isPropagationStopped()&&h.removeEventListener(f,Mt),ke.event.triggered=void 0,s&&(r[u]=s)),e.result}},simulate:function(e,t,n){var r=ke.extend(new ke.Event,n,{type:e,isSimulated:!0});ke.event.trigger(r,null,t)}}),ke.fn.extend({trigger:function(e,t){return this.each(function(){ke.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ke.event.trigger(e,t,n,!0)}}),Te.focusin||ke.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){ke.event.simulate(t,e.target,ke.event.fix(e))};ke.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=$e.access(r,t);i||r.addEventListener(e,n,!0),$e.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=$e.access(r,t)-1;i?$e.access(r,t,i):(r.removeEventListener(e,n,!0),$e.remove(r,t))}}});var Rt=n.location,Lt=Date.now(),Nt=/\?/;ke.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(r){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||ke.error("Invalid XML: "+e),t};var Ut=/\[\]$/,Ht=/\r?\n/g,jt=/^(?:submit|button|image|reset|file)$/i,Bt=/^(?:input|select|textarea|keygen)/i;ke.param=function(e,t){var n,r=[],i=function(e,t){var n=Ee(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!ke.isPlainObject(e))ke.each(e,function(){i(this.name,this.value)});else for(n in e)re(n,e[n],t,i);return r.join("&")},ke.fn.extend({serialize:function(){return ke.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ke.prop(this,"elements");return e?ke.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ke(this).is(":disabled")&&Bt.test(this.nodeName)&&!jt.test(e)&&(this.checked||!tt.test(e))}).map(function(e,t){var n=ke(this).val();return null==n?null:Array.isArray(n)?ke.map(n,function(e){return{name:t.name,value:e.replace(Ht,"\r\n")}}):{name:t.name,value:n.replace(Ht,"\r\n")}}).get()}});var Ft=/%20/g,Vt=/#.*$/,Wt=/([?&])_=[^&]*/,zt=/^(.*?):[ \t]*([^\r\n]*)$/gm,$t=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,qt=/^(?:GET|HEAD)$/,Gt=/^\/\//,Yt={},Xt={},Kt="*/".concat("*"),Qt=ce.createElement("a");Qt.href=Rt.href,ke.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Rt.href,type:"GET",isLocal:$t.test(Rt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Kt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ke.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?oe(oe(e,ke.ajaxSettings),t):oe(ke.ajaxSettings,e)},ajaxPrefilter:ie(Yt),ajaxTransport:ie(Xt),ajax:function(e,t){function r(e,t,r,s){var u,h,p,b,T,E=t;c||(c=!0,l&&n.clearTimeout(l),i=void 0,o=s||"",S.readyState=e>0?4:0,u=e>=200&&e<300||304===e,r&&(b=se(f,S,r)),b=le(f,b,S,u),u?(f.ifModified&&(T=S.getResponseHeader("Last-Modified"),T&&(ke.lastModified[a]=T),T=S.getResponseHeader("etag"),T&&(ke.etag[a]=T)),204===e||"HEAD"===f.type?E="nocontent":304===e?E="notmodified":(E=b.state,h=b.data,p=b.error,u=!p)):(p=E,!e&&E||(E="error",e<0&&(e=0))),S.status=e,S.statusText=(t||E)+"",u?v.resolveWith(g,[h,E,S]):v.rejectWith(g,[S,E,p]),S.statusCode(_),_=void 0,d&&m.trigger(u?"ajaxSuccess":"ajaxError",[S,f,u?h:p]),y.fireWith(g,[S,E]),d&&(m.trigger("ajaxComplete",[S,f]),--ke.active||ke.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,a,o,s,l,u,c,d,h,p,f=ke.ajaxSetup({},t),g=f.context||f,m=f.context&&(g.nodeType||g.jquery)?ke(g):ke.event,v=ke.Deferred(),y=ke.Callbacks("once memory"),_=f.statusCode||{},b={},T={},E="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=zt.exec(o);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)S.always(e[S.status]);else for(t in e)_[t]=[_[t],e[t]];return this},abort:function(e){var t=e||E;return i&&i.abort(t),r(0,t),this}};if(v.promise(S),f.url=((e||f.url||Rt.href)+"").replace(Gt,Rt.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(He)||[""],null==f.crossDomain){u=ce.createElement("a");try{u.href=f.url,u.href=u.href,f.crossDomain=Qt.protocol+"//"+Qt.host!=u.protocol+"//"+u.host}catch(w){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=ke.param(f.data,f.traditional)),ae(Yt,f,t,S),c)return S;d=ke.event&&f.global,d&&0===ke.active++&&ke.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!qt.test(f.type),a=f.url.replace(Vt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ft,"+")):(p=f.url.slice(a.length),f.data&&(f.processData||"string"==typeof f.data)&&(a+=(Nt.test(a)?"&":"?")+f.data,delete f.data),f.cache===!1&&(a=a.replace(Wt,"$1"),p=(Nt.test(a)?"&":"?")+"_="+Lt++ +p),f.url=a+p),f.ifModified&&(ke.lastModified[a]&&S.setRequestHeader("If-Modified-Since",ke.lastModified[a]),ke.etag[a]&&S.setRequestHeader("If-None-Match",ke.etag[a])),(f.data&&f.hasContent&&f.contentType!==!1||t.contentType)&&S.setRequestHeader("Content-Type",f.contentType),S.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Kt+"; q=0.01":""):f.accepts["*"]);for(h in f.headers)S.setRequestHeader(h,f.headers[h]);
vendor: 5,779 bytes, lines 31-32
31if(f.beforeSend&&(f.beforeSend.call(g,S,f)===!1||c))return S.abort();if(E="abort",y.add(f.complete),S.done(f.success),S.fail(f.error),i=ae(Xt,f,t,S)){if(S.readyState=1,d&&m.trigger("ajaxSend",[S,f]),c)return S;f.async&&f.timeout>0&&(l=n.setTimeout(function(){S.abort("timeout")},f.timeout));try{c=!1,i.send(b,r)}catch(w){if(c)throw w;r(-1,w)}}else r(-1,"No Transport");return S},getJSON:function(e,t,n){return ke.get(e,t,n,"json")},getScript:function(e,t){return ke.get(e,void 0,t,"script")}}),ke.each(["get","post"],function(e,t){ke[t]=function(e,n,r,i){return Ee(n)&&(i=i||r,r=n,n=void 0),ke.ajax(ke.extend({url:e,type:t,dataType:i,data:n,success:r},ke.isPlainObject(e)&&e))}}),ke._evalUrl=function(e){return ke.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},ke.fn.extend({wrapAll:function(e){var t;return this[0]&&(Ee(e)&&(e=e.call(this[0])),t=ke(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return Ee(e)?this.each(function(t){ke(this).wrapInner(e.call(this,t))}):this.each(function(){var t=ke(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=Ee(e);return this.each(function(n){ke(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ke(this).replaceWith(this.childNodes)}),this}}),ke.expr.pseudos.hidden=function(e){return!ke.expr.pseudos.visible(e)},ke.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ke.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Zt={0:200,1223:204},Jt=ke.ajaxSettings.xhr();Te.cors=!!Jt&&"withCredentials"in Jt,Te.ajax=Jt=!!Jt,ke.ajaxTransport(function(e){var t,r;if(Te.cors||Jt&&!e.crossDomain)return{ 32send:function(i,a){var o,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)s[o]=e.xhrFields[o];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(o in i)s.setRequestHeader(o,i[o]);t=function(e){return function(){t&&(t=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?a(0,"error"):a(s.status,s.statusText):a(Zt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),r=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){t&&r()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(l){if(t)throw l}},abort:function(){t&&t()}}}),ke.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ke.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ke.globalEval(e),e}}}),ke.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ke.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=ke("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),ce.head.appendChild(t[0])},abort:function(){n&&n()}}}});var en=[],tn=/(=)\?(?=&|$)|\?\?/;ke.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=en.pop()||ke.expando+"_"+Lt++;return this[e]=!0,e}}),ke.ajaxPrefilter("json jsonp",function(e,t,r){var i,a,o,s=e.jsonp!==!1&&(tn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&tn.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=Ee(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(tn,"$1"+i):e.jsonp!==!1&&(e.url+=(Nt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||ke.error(i+" was not called"),o[0]},e.dataTypes[0]="json",a=n[i],n[i]=function(){o=arguments},r.always(function(){void 0===a?ke(n).removeProp(i):n[i]=a,e[i]&&(e.jsonpCallback=t.jsonpCallback,en.push(i)),o&&Ee(a)&&a(o[0]),o=a=void 0}),"script"}),Te.createHTMLDocument=function(){var e=ce.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),ke.parseHTML=function(e,t,n){if("string"!=typeof e)return[];"boolean"==typeof t&&(n=t,t=!1);var r,i,a;return t||(Te.createHTMLDocument?(t=ce.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=ce.location.href,t.head.appendChild(r)):t=ce),i=Pe.exec(e),a=!n&&[],i?[t.createElement(i[1])]:(i=D([e],t,a),a&&a.length&&ke(a).remove(),ke.merge([],i.childNodes))},ke.fn.load=function(e,t,n){var r,i,a,o=this,s=e.indexOf(" ");return s>-1&&(r=ee(e.slice(s)),e=e.slice(0,s)),Ee(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),o.length>0&&ke.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){a=arguments,o.html(r?ke("<div>").append(ke.parseHTML(e)).find(r):e)}).always(n&&function(e,t){o.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},ke.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ke.fn[t]=function(e){return this.on(t,e)}}),ke.expr.pseudos.animated=function(e){return ke.grep(ke.timers,function(t){return e===t.elem}).length},ke.offset={setOffset:function(e,t,n){var r,i,a,o,s,l,u,c=ke.css(e,"position"),d=ke(e),h={};"static"===c&&(e.style.position="relative"),s=d.offset(),a=ke.css(e,"to
32p"),l=ke.css(e,"left"),u=("absolute"===c||"fixed"===c)&&(a+l).indexOf("auto")>-1,u?(r=d.position(),o=r.top,i=r.left):(o=parseFloat(a)||0,i=parseFloat(l)||0),Ee(t)&&(t=t.call(e,n,ke.extend({},s))),null!=t.top&&(h.top=t.top-s.top+o),null!=t.left&&(h.left=t.left-s.left+i),"using"in t?t.using.call(e,h):d.css(h)}},ke.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){ke.offset.setOffset(this,e,t)});var t,n,r=this[0];if(r)return r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ke.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===ke.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&(i=ke(e).offset(),i.top+=ke.css(e,"borderTopWidth",!0),i.left+=ke.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ke.css(r,"marginTop",!0),left:t.left-i.left-ke.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===ke.css(e,"position");)e=e.offsetParent;return e||ot})}}),ke.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;ke.fn[e]=function(r){return Fe(this,function(e,r,i){var a;return Se(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===i?a?a[t]:e[r]:void(a?a.scrollTo(n?a.pageXOffset:i,n?i:a.pageYOffset):e[r]=i)},e,r,arguments.length)}}),ke.each(["top","left"],function(e,t){ke.cssHooks[t]=B(Te.pixelPosition,function(e,n){if(n)return n=j(e,t),ft.test(n)?ke(e).position()[t]+"px":n})}),ke.each({Height:"height",Width:"width"},function(e,t){ke.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){ke.fn[r]=function(i,a){var o=arguments.length&&(n||"boolean"!=typeof i),s=n||(i===!0||a===!0?"margin":"border");return Fe(this,function(t,n,i){var a;return Se(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===i?ke.css(t,n,s):ke.style(t,n,i,s)},t,o?i:void 0,o)}})}),ke.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){ke.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),ke.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),ke.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),ke.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),Ee(e))return r=he.call(arguments,2),i=function(){return e.apply(t||this,r.concat(he.call(arguments)))},i.guid=e.guid=e.guid||ke.guid++,i},ke.holdReady=function(e){e?ke.readyWait++:ke.ready(!0)},ke.isArray=Array.isArray,ke.parseJSON=JSON.parse,ke.nodeName=u,ke.isFunction=Ee,ke.isWindow=Se,ke.camelCase=y,ke.type=s,ke.now=Date.now,ke.isNumeric=function(e){var t=ke.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},r=[],i=function(){return ke}.apply(t,r),!(void 0!==i&&(e.exports=i));var nn=n.jQuery,rn=n.$;return ke.noConflict=function(e){return n.$===ke&&(n.$=rn),e&&n.jQuery===ke&&(n.jQuery=nn),ke},a||(n.jQuery=n.$=ke),ke})},function(e,t,n){(function(t){/**! 33 * @fileOverview Kickass library to create and place poppers near their reference elements. 34 * @version 1.14.5 35 * @license 36 * Copyright (c) 2016 Federico Zivolo and contributors 37 * 38 * Permission is hereby granted, free of charge, to any person obtaining a copy 39 * of this software and associated documentation files (the "Software"), to deal 40 * in the Software without restriction, including without limitation the rights 41 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 42 * copies of the Software, and to permit persons to whom the Software is 43 * furnished to do so, subject to the following conditions: 44 * 45 * The above copyright notice and this permission notice shall be included in all 46 * copies or substantial portions of the Software. 47 * 48 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 49 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 50 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 51 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 52 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 53 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 54 * SOFTWARE. 55 */ 56!function(t,n){e.exports=n()}(this,function(){"use strict";function e(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function n(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},ce))}}function r(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function i(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView,r=n.getComputedStyle(e,null);return t?r[t]:r}
vendor: 8,587 bytes, line 56
56function a(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function o(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=i(e),n=t.overflow,r=t.overflowX,s=t.overflowY;return/(auto|scroll|overlay)/.test(n+s+r)?e:o(a(e))}function s(e){return 11===e?fe:10===e?ge:fe||ge}function l(e){if(!e)return document.documentElement;for(var t=s(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&"static"===i(n,"position")?l(n):n:e?e.ownerDocument.documentElement:document.documentElement}function u(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||l(e.firstElementChild)===e)}function c(e){return null!==e.parentNode?c(e.parentNode):e}function d(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(i,0);var o=a.commonAncestorContainer;if(e!==o&&t!==o||r.contains(i))return u(o)?o:l(o);var s=c(e);return s.host?d(s.host,t):d(e,c(t).host)}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||i;return a[n]}return e[n]}function p(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=h(t,"top"),i=h(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=i*a,e.right+=i*a,e}function f(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function g(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],s(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function m(e){var t=e.body,n=e.documentElement,r=s(10)&&getComputedStyle(n);return{height:g("Height",t,n,r),width:g("Width",t,n,r)}}function v(e){return _e({},e,{right:e.left+e.width,bottom:e.top+e.height})}function y(e){var t={};try{if(s(10)){t=e.getBoundingClientRect();var n=h(e,"top"),r=h(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(a){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},l="HTML"===e.nodeName?m(e.ownerDocument):{},u=l.width||e.clientWidth||o.right-o.left,c=l.height||e.clientHeight||o.bottom-o.top,d=e.offsetWidth-u,p=e.offsetHeight-c;if(d||p){var g=i(e);d-=f(g,"x"),p-=f(g,"y"),o.width-=d,o.height-=p}return v(o)}function _(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=s(10),a="HTML"===t.nodeName,l=y(e),u=y(t),c=o(e),d=i(t),h=parseFloat(d.borderTopWidth,10),f=parseFloat(d.borderLeftWidth,10);n&&a&&(u.top=Math.max(u.top,0),u.left=Math.max(u.left,0));var g=v({top:l.top-u.top-h,left:l.left-u.left-f,width:l.width,height:l.height});if(g.marginTop=0,g.marginLeft=0,!r&&a){var m=parseFloat(d.marginTop,10),_=parseFloat(d.marginLeft,10);g.top-=h-m,g.bottom-=h-m,g.left-=f-_,g.right-=f-_,g.marginTop=m,g.marginLeft=_}return(r&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(g=p(g,t)),g}function b(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=_(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:h(n),s=t?0:h(n,"left"),l={top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:a};return v(l)}function T(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===i(e,"position")||T(a(e)))}function E(e){if(!e||!e.parentElement||s())return document.documentElement;for(var t=e.parentElement;t&&"none"===i(t,"transform");)t=t.parentElement;return t||document.documentElement}function S(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s={top:0,left:0},l=i?E(e):d(e,t);if("viewport"===r)s=b(l,i);else{var u=void 0;"scrollParent"===r?(u=o(a(t)),"BODY"===u.nodeName&&(u=e.ownerDocument.documentElement)):u="window"===r?e.ownerDocument.documentElement:r;var c=_(u,l,i);if("HTML"!==u.nodeName||T(l))s=c;else{var h=m(e.ownerDocument),p=h.height,f=h.width;s.top+=c.top-c.marginTop,s.bottom=p+c.top,s.left+=c.left-c.marginLeft,s.right=f+c.left}}n=n||0;var g="number"==typeof n;return s.left+=g?n:n.left||0,s.top+=g?n:n.top||0,s.right-=g?n:n.right||0,s.bottom-=g?n:n.bottom||0,s}function w(e){var t=e.width,n=e.height;return t*n}function C(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var o=S(n,r,a,i),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},l=Object.keys(s).map(function(e){return _e({key:e},s[e],{area:w(s[e])})}).sort(function(e,t){return t.area-e.area}),u=l.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),c=u.length>0?u[0].key:l[0].key,d=e.split("-")[1];return c+(d?"-"+d:"")}function k(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?E(t):d(t,n);return _(n,i,r)}function D(e){var t=e.ownerDocument.defaultView,n=t.getComputedStyle(e),r=parseFloat(n.marginTop)+parseFloat(n.marginBottom),i=parseFloat(n.marginLeft)+parseFloat(n.marginRight),a={width:e.offsetWidth+i,height:e.offsetHeight+r};return a}function x(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function A(e,t,n){n=n.split("-")[0];var r=D(e),i={width:r.width,height:r.height},a=["right","left"].indexOf(n)!==-1,o=a?"top":"left",s=a?"left":"top",l=a?"height":"width",u=a?"width":"height";return i[o]=t[o]+t[l]/2-r[l]/2,n===s?i[s]=t[s]-r[u]:i[s]=t[x(s)],i}function I(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function O(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=I(e,function(e){return e[t]===n});return e.indexOf(r)}function P(e,t,n){var i=void 0===n?e:e.slice(0,O(e,"name",n));return i.forEach(function(e){e["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e["function"]||e.fn;e.enabled&&r(n)&&(t.offsets.popper=v(t.offsets.popper),t.offsets.reference=v(t.offsets.reference),t=n(t,e))}),t}function M(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=k(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=C(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=A(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=P(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function R(e,t){return e.some(function(e){var n=e.name,r=e.enabled;return r&&n===t})}function L(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],a=i?""+i+n:e;if("undefined"!=typeof document.body.style[a])return a}return null}function N(){return this.state.isDestroyed=!0,R(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[L("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function U(e){var t=e.ownerDocument;return t?t.defaultView:window}function H(e,t,n,r){var i="BODY"===e.nodeName,a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),i||H(o(a.parentNode),t,n,r),r.push(a)}function j(e,t,n,r){n.updateBound=r,U(e).addEventListener("resize",n.updateBound,{passive:!0});var i=o(e);return H(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function B(){this.state.eventsEnabled||(this.state=j(this.reference,this.options,this.state,this.scheduleUpdate))}function F(e,t){return U(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEac
vendor: 4,289 bytes, line 56
56h(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function V(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=F(this.reference,this.state))}function W(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function z(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&W(t[n])&&(r="px"),e.style[n]=t[n]+r})}function $(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function q(e){return z(e.instance.popper,e.styles),$(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&z(e.arrowElement,e.arrowStyles),e}function G(e,t,n,r,i){var a=k(i,t,e,n.positionFixed),o=C(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),z(t,{position:n.positionFixed?"fixed":"absolute"}),n}function Y(e,t){var n=t.x,r=t.y,i=e.offsets.popper,a=I(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=void 0!==a?a:t.gpuAcceleration,s=l(e.instance.popper),u=y(s),c={position:i.position},d={left:Math.floor(i.left),top:Math.round(i.top),bottom:Math.round(i.bottom),right:Math.floor(i.right)},h="bottom"===n?"top":"bottom",p="right"===r?"left":"right",f=L("transform"),g=void 0,m=void 0;if(m="bottom"===h?"HTML"===s.nodeName?-s.clientHeight+d.bottom:-u.height+d.bottom:d.top,g="right"===p?"HTML"===s.nodeName?-s.clientWidth+d.right:-u.width+d.right:d.left,o&&f)c[f]="translate3d("+g+"px, "+m+"px, 0)",c[h]=0,c[p]=0,c.willChange="transform";else{var v="bottom"===h?-1:1,_="right"===p?-1:1;c[h]=m*v,c[p]=g*_,c.willChange=h+", "+p}var b={"x-placement":e.placement};return e.attributes=_e({},b,e.attributes),e.styles=_e({},c,e.styles),e.arrowStyles=_e({},e.offsets.arrow,e.arrowStyles),e}function X(e,t,n){var r=I(e,function(e){var n=e.name;return n===t}),i=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!i){var a="`"+t+"`",o="`"+n+"`";console.warn(o+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return i}function K(e,t){var n;if(!X(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var a=e.placement.split("-")[0],o=e.offsets,s=o.popper,l=o.reference,u=["left","right"].indexOf(a)!==-1,c=u?"height":"width",d=u?"Top":"Left",h=d.toLowerCase(),p=u?"left":"top",f=u?"bottom":"right",g=D(r)[c];l[f]-g<s[h]&&(e.offsets.popper[h]-=s[h]-(l[f]-g)),l[h]+g>s[f]&&(e.offsets.popper[h]+=l[h]+g-s[f]),e.offsets.popper=v(e.offsets.popper);var m=l[h]+l[c]/2-g/2,y=i(e.instance.popper),_=parseFloat(y["margin"+d],10),b=parseFloat(y["border"+d+"Width"],10),T=m-e.offsets.popper[h]-_-b;return T=Math.max(Math.min(s[c]-g,T),0),e.arrowElement=r,e.offsets.arrow=(n={},ye(n,h,Math.round(T)),ye(n,p,""),n),e}function Q(e){return"end"===e?"start":"start"===e?"end":e}function Z(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Te.indexOf(e),r=Te.slice(n+1).concat(Te.slice(0,n));return t?r.reverse():r}function J(e,t){if(R(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=S(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=x(r),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case Ee.FLIP:o=[r,i];break;case Ee.CLOCKWISE:o=Z(r);break;case Ee.COUNTERCLOCKWISE:o=Z(r,!0);break;default:o=t.behavior}return o.forEach(function(s,l){if(r!==s||o.length===l+1)return e;r=e.placement.split("-")[0],i=x(r);var u=e.offsets.popper,c=e.offsets.reference,d=Math.floor,h="left"===r&&d(u.right)>d(c.left)||"right"===r&&d(u.left)<d(c.right)||"top"===r&&d(u.bottom)>d(c.top)||"bottom"===r&&d(u.top)<d(c.bottom),p=d(u.left)<d(n.left),f=d(u.right)>d(n.right),g=d(u.top)<d(n.top),m=d(u.bottom)>
56d(n.bottom),v="left"===r&&p||"right"===r&&f||"top"===r&&g||"bottom"===r&&m,y=["top","bottom"].indexOf(r)!==-1,_=!!t.flipVariations&&(y&&"start"===a&&p||y&&"end"===a&&f||!y&&"start"===a&&g||!y&&"end"===a&&m);(h||v||_)&&(e.flipped=!0,(h||v)&&(r=o[l+1]),_&&(a=Q(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=_e({},e.offsets.popper,A(e.instance.popper,e.offsets.reference,e.placement)),e=P(e.instance.modifiers,e,"flip"))}),e}function ee(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],a=Math.floor,o=["top","bottom"].indexOf(i)!==-1,s=o?"right":"bottom",l=o?"left":"top",u=o?"width":"height";return n[s]<a(r[l])&&(e.offsets.popper[l]=a(r[l])-n[u]),n[l]>a(r[s])&&(e.offsets.popper[l]=a(r[s])),e}function te(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],o=i[2];if(!a)return e;if(0===o.indexOf("%")){var s=void 0;switch(o){case"%p":s=n;break;case"%":case"%r":default:s=r}var l=v(s);return l[t]/100*a}if("vh"===o||"vw"===o){var u=void 0;return u="vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),u/100*a}return a}function ne(e,t,n,r){var i=[0,0],a=["right","left"].indexOf(r)!==-1,o=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=o.indexOf(I(o,function(e){return e.search(/,|\s/)!==-1}));o[s]&&o[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=s!==-1?[o.slice(0,s).concat([o[s].split(l)[0]]),[o[s].split(l)[1]].concat(o.slice(s+1))]:[o];return u=u.map(function(e,r){var i=(1===r?!a:a)?"height":"width",o=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&["+","-"].indexOf(t)!==-1?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)},[]).map(function(e){return te(e,i,t,n)})}),u.forEach(function(e,t){e.forEach(function(n,r){W(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))})}),i}function re(e,t){var n=t.offset,r=e.placement,i=e.offsets,a=i.popper,o=i.reference,s=r.split("-")[0],l=void 0;return l=W(+n)?[+n,0]:ne(n,a,o,s),"left"===s?(a.top+=l[0],a.left-=l[1]):"right"===s?(a.top+=l[0],a.left+=l[1]):"top"===s?(a.left+=l[0],a.top-=l[1]):"bottom"===s&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e}function ie(e,t){var n=t.boundariesElement||l(e.instance.popper);e.instance.reference===n&&(n=l(n));var r=L("transform"),i=e.instance.popper.style,a=i.top,o=i.left,s=i[r];i.top="",i.left="",i[r]="";var u=S(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=a,i.left=o,i[r]=s,t.boundaries=u;var c=t.priority,d=e.offsets.popper,h={primary:function(e){var n=d[e];return d[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(d[e],u[e])),ye({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=d[n];return d[e]>u[e]&&!t.escapeWithReference&&(r=Math.min(d[n],u[e]-("right"===e?d.width:d.height))),ye({},n,r)}};return c.forEach(function(e){var t=["left","top"].indexOf(e)!==-1?"primary":"secondary";d=_e({},d,h[t](e))}),e.offsets.popper=d,e}function ae(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,a=i.reference,o=i.popper,s=["bottom","top"].indexOf(n)!==-1,l=s?"left":"top",u=s?"width":"height",c={start:ye({},l,a[l]),end:ye({},l,a[l]+a[u]-o[u])};e.offsets.popper=_e({},o,c[r])}return e}function oe(e){if(!X(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=I(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function se(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,a=r.reference,o=["left","right"].indexOf(n)!==-1,s=["top","left"].indexOf(n)===-1;return i[o?"left":"top"]=a[n]-(s?i[o?"width":"height"]:0),e.placement=x(t),e.offsets.popper=v(i),e}for(var le="undefined"!=typeof window&&"undefined"!=typeof document,ue=["Edge","Trident","Firefox"],ce=0,de=0;de<ue.length;de+=1)if(le&&navigator.userAgent.indexOf(ue[de])>=0){ce=1;break}var he=le&&window.Promise,pe=he?e:n,fe=le&&!(!window.MSInputMethodContext||!document.documentMode),ge=le&&/MSIE 10/.test(navigator.userAgent),me=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ve=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ye=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},_e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}
56,be=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Te=be.slice(3),Ee={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},Se={shift:{order:100,enabled:!0,fn:ae},offset:{order:200,enabled:!0,fn:re,offset:0},preventOverflow:{order:300,enabled:!0,fn:ie,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:ee},arrow:{order:500,enabled:!0,fn:K,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:J,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:se},hide:{order:800,enabled:!0,fn:oe},computeStyle:{order:850,enabled:!0,fn:Y,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:q,onLoad:G,gpuAcceleration:void 0}},we={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Se},Ce=function(){function e(t,n){var i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};me(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=pe(this.update.bind(this)),this.options=_e({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(_e({},e.Defaults.modifiers,a.modifiers)).forEach(function(t){i.options.modifiers[t]=_e({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return _e({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&r(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return ve(e,[{key:"update",value:function(){return M.call(this)}},{key:"destroy",value:function(){return N.call(this)}},{key:"enableEventListeners",value:function(){return B.call(this)}},{key:"disableEventListeners",value:function(){return V.call(this)}}]),e}();return Ce.Utils=("undefined"!=typeof window?window:t).PopperUtils,Ce.placements=be,Ce.Defaults=we,Ce})}).call(t,function(){return this}())},function(e,t,n){var r,i;!function(n,a){r=[],i=function(){return n.svg4everybody=a()}.apply(t,r),!(void 0!==i&&(e.exports=i))}(this,function(){/*! svg4everybody v2.1.9 | github.com/jonathantneal/svg4everybody */ 57function e(e,t,n){if(n){var r=document.createDocumentFragment(),i=!t.hasAttribute("viewBox")&&n.getAttribute("viewBox");i&&t.setAttribute("viewBox",i);for(var a=n.cloneNode(!0);a.childNodes.length;)r.appendChild(a.firstChild);e.appendChild(r)}}function t(t){t.onreadystatechange=function(){if(4===t.readyState){var n=t._cachedDocument;n||(n=t._cachedDocument=document.implementation.createHTMLDocument(""),n.body.innerHTML=t.responseText,t._cachedTarget={}),t._embeds.splice(0).map(function(r){var i=t._cachedTarget[r.id];i||(i=t._cachedTarget[r.id]=n.getElementById(r.id)),e(r.parent,r.svg,i)})}},t.onreadystatechange()}function n(n){function i(){for(var n=0;n<f.length;){var s=f[n],l=s.parentNode,u=r(l),c=s.getAttribute("xlink:href")||s.getAttribute("href");if(!c&&o.attributeName&&(c=s.getAttribute(o.attributeName)),u&&c){if(a)if(!o.validate||o.validate(c,u,s)){l.removeChild(s);var d=c.split("#"),m=d.shift(),v=d.join("#");if(m.length){var y=h[m];y||(y=h[m]=new XMLHttpRequest,y.open("GET",m),y.send(),y._embeds=[]),y._embeds.push({parent:l,svg:u,id:v}),t(y)}else e(l,u,document.getElementById(v))}else++n,++g}else++n}(!f.length||f.length-g>0)&&p(i,67)}var a,o=Object(n),s=/\bTrident\/[567]\b|\bMSIE (?:9|10)\.0\b/,l=/\bAppleWebKit\/(\d+)\b/,u=/\bEdge\/12\.(\d+)\b/,c=/\bEdge\/.(\d+)\b/,d=window.top!==window.self;a="polyfill"in o?o.polyfill:s.test(navigator.userAgent)||(navigator.userAgent.match(u)||[])[1]<10547||(navigator.userAgent.match(l)||[])[1]<537||c.test(navigator.userAgent)&&d;var h={}
57,p=window.requestAnimationFrame||setTimeout,f=document.getElementsByTagName("use"),g=0;a&&i()}function r(e){for(var t=e;"svg"!==t.nodeName.toLowerCase()&&(t=t.parentNode););return t}return n})},function(e,t,n){(function(t){e.exports=t.Utils=n(7)}).call(t,function(){return this}())},function(e,t,n){(function(e){"use strict";function n(t){if("string"!=e.type(t))return t;t.indexOf(":")!=-1&&"}"!=t.trim().substr(-1)&&(t="{"+t+"}");var n=t?t.indexOf("{"):-1,r={};if(n!=-1)try{r=this.str2json(t.substr(n))}catch(i){}return r}function r(e,t){try{return t?JSON.parse(e.replace(/([\$\w]+)\s*:/g,function(e,t){return'"'+t+'":'}).replace(/'([^']+)'/g,function(e,t){return'"'+t+'"'})):new Function("","var json = "+e+"; return JSON.parse(JSON.stringify(json));")()}catch(n){return!1}}function i(){for(var t="sn_utils_mq_",n=["xl","lg","md","sm","xs"],r="?",i="?",a=e("<div>").appendTo("body"),o=0;o<n.length&&(r=n[o],i=t+r,a.removeClass().addClass(i),!a.is(":visible"));o++);return a.remove(),r}function a(e){var t=0,n=0;if(!e)var e=window.event;return e.pageX||e.pageY?(t=e.pageX,n=e.pageY):(e.clientX||e.clientY)&&(t=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,n=e.clientY+document.body.scrollTop+document.documentElement.scrollTop),{x:t,y:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.options=n,t.str2json=r,t.mq=i,t.mouse=a}).call(t,n(3))},function(e,t,n){(function(t){e.exports=t.videojs=n(9)}).call(t,function(){return this}())},function(e,t,n){/** 58 * @license 59 * Video.js 7.3.0 <http://videojs.com/> 60 * Copyright Brightcove, Inc. <https://www.brightcove.com/> 61 * Available under Apache License Version 2.0 62 * <https://github.com/videojs/video.js/blob/master/LICENSE> 63 * 64 * Includes vtt.js <https://github.com/mozilla/vtt.js> 65 * Available under Apache License Version 2.0 66 * <https://github.com/mozilla/vtt.js/blob/master/LICENSE> 67 */ 68function r(e){return e&&"object"==typeof e&&"default"in e?e["default"]:e}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function s(e,t,n){return s=o()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=Function.bind.apply(e,r),o=new i;return n&&a(o,n.prototype),o},s.apply(null,arguments)}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){return t||(t=e.slice(0)),e.raw=t,e}function c(e){var t,n="info",r=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];t("log",n,r)};return t=lt(e,r),r.createLogger=function(t){return c(e+": "+t)},r.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},r.level=function(e){if("string"==typeof e){if(!r.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');n=e}return n},r.history=function(){return st?[].concat(st):[]},r.history.filter=function(e){return(st||[]).filter(function(t){return new RegExp(".*"+e+".*").test(t[0])})},r.history.clear=function(){st&&(st.length=0)},r.history.disable=function(){null!==st&&(st.length=0,st=null)},r.history.enable=function(){null===st&&(st=[])},r.error=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t("error",n,r)},r.warn=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t("warn",n,r)},r.debug=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t("debug",n,r)},r}function d(e,t){ht(e).forEach(function(n){return t(e[n],n)})}function h(e,t,n){return void 0===n&&(n=0),ht(e).reduce(function(n,r){return t(n,e[r],r)},n)}function p(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.assign?Object.assign.apply(Object,[e].concat(n)):(n.forEach(function(t){t&&d(t,function(t,n){e[n]=t})}),e)}function f(e){return!!e&&"object"==typeof e}function g(e){return f(e)&&"[object Object]"===dt.call(e)&&e.constructor===Object}function m(e,t){if(!e||!t)return"";if("function"==typeof Ge.getComputedStyle){var n=Ge.getComputedStyle(e);return n?n[t]:""}return""}function v(){var e=u(["Setting attributes in the second argument of createEl()\n has been deprecated. Use the third argument instead.\n createEl(type, properties, attributes). Attempting to set "," to ","."]);return v=function(){return e},e}function y(e){return"string"==typeof e&&/\S/.test(e)}function _(e){if(/\s/.test(e))throw new Error("class has illegal whitespace characters")}function b(e){return new RegExp("(^|\\s)"+e+"($|\\s)")}function T(){return Ye===Ge.document}function E(e){return f(e)&&1===e.nodeType}function S(){try{return Ge.parent!==Ge.self}catch(e){return!0}}function w(e){return function(t,n){if(!y(t))return Ye[e](null);y(n)&&(n=Ye.querySelector(n));var r=E(n)?n:Ye;return r[e]&&r[e](t)}}function C(e,t,n,r){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={});var i=Ye.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){var n=t[e];e.indexOf("aria-")!==-1||"role"===e||"type"===e?(ut.warn(Xe(v(),e,n)),i.setAttribute(e,n)):"textContent"===e?k(i,n):i[e]=n}
vendor: 2,310 bytes, line 68
68),Object.getOwnPropertyNames(n).forEach(function(e){i.setAttribute(e,n[e])}),r&&$(i,r),i}function k(e,t){return"undefined"==typeof e.textContent?e.innerText=t:e.textContent=t,e}function D(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function x(e,t){return _(t),e.classList?e.classList.contains(t):b(t).test(e.className)}function A(e,t){return e.classList?e.classList.add(t):x(e,t)||(e.className=(e.className+" "+t).trim()),e}function I(e,t){return e.classList?e.classList.remove(t):(_(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e}function O(e,t,n){var r=x(e,t);if("function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=!r),n!==r)return n?A(e,t):I(e,t),e}function P(e,t){Object.getOwnPropertyNames(t).forEach(function(n){var r=t[n];null===r||"undefined"==typeof r||r===!1?e.removeAttribute(n):e.setAttribute(n,r===!0?"":r)})}function M(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var r=e.attributes,i=r.length-1;i>=0;i--){var a=r[i].name,o=r[i].value;"boolean"!=typeof e[a]&&n.indexOf(","+a+",")===-1||(o=null!==o),t[a]=o}return t}function R(e,t){return e.getAttribute(t)}function L(e,t,n){e.setAttribute(t,n)}function N(e,t){e.removeAttribute(t)}function U(){Ye.body.focus(),Ye.onselectstart=function(){return!1}}function H(){Ye.onselectstart=function(){return!0}}function j(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach(function(e){void 0!==t[e]&&(n[e]=t[e])}),n.height||(n.height=parseFloat(m(e,"height"))),n.width||(n.width=parseFloat(m(e,"width"))),n}}function B(e){var t;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var n=Ye.documentElement,r=Ye.body,i=n.clientLeft||r.clientLeft||0,a=Ge.pageXOffset||r.scrollLeft,o=t.left+a-i,s=n.clientTop||r.clientTop||0,l=Ge.pageYOffset||r.scrollTop,u=t.top+l-s;return{left:Math.round(o),top:Math.round(u)}}function F(e,t){var n={},r=B(e),i=e.offsetWidth,a=e.offsetHeight,o=r.top,s=r.left,l=t.pageY,u=t.pageX;return t.changedTouches&&(u=t.changedTouches[0].pageX,l=t.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(o-l+a)/a)),n.x=Math.max(0,Math.min(1,(u-s)/i)),n}
vendor: 4,208 bytes, line 68
68function V(e){return f(e)&&3===e.nodeType}function W(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function z(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return"function"==typeof e&&(e=e()),E(e)||V(e)?e:"string"==typeof e&&/\S/.test(e)?Ye.createTextNode(e):void 0}).filter(function(e){return e})}function $(e,t){return z(t).forEach(function(t){return e.appendChild(t)}),e}function q(e,t){return $(W(e),t)}function G(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||0===e.button&&1===e.buttons)}function Y(){return mt++}function X(e){var t=e[yt];return t||(t=e[yt]=Y()),vt[t]||(vt[t]={}),vt[t]}function K(e){var t=e[yt];return!!t&&!!Object.getOwnPropertyNames(vt[t]).length}function Q(e){var t=e[yt];if(t){delete vt[t];try{delete e[yt]}catch(n){e.removeAttribute?e.removeAttribute(yt):e[yt]=null}}}function Z(e,t){var n=X(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&Q(e)}function J(e,t,n,r){n.forEach(function(n){e(t,n,r)})}function ee(e){function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped){var r=e||Ge.event;e={};for(var i in r)"layerX"!==i&&"layerY"!==i&&"keyLocation"!==i&&"webkitMovementX"!==i&&"webkitMovementY"!==i&&("returnValue"===i&&r.preventDefault||(e[i]=r[i]));if(e.target||(e.target=e.srcElement||Ye),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){r.preventDefault&&r.preventDefault(),e.returnValue=!1,r.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),e.cancelBubble=!0,r.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var a=Ye.documentElement,o=Ye.body;e.pageX=e.clientX+(a&&a.scrollLeft||o&&o.scrollLeft||0)-(a&&a.clientLeft||o&&o.clientLeft||0),e.pageY=e.clientY+(a&&a.scrollTop||o&&o.scrollTop||0)-(a&&a.clientTop||o&&o.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e}function te(e,t,n){if(Array.isArray(t))return J(te,e,t,n);var r=X(e);if(r.handlers||(r.handlers={}),r.handlers[t]||(r.handlers[t]=[]),n.guid||(n.guid=Y()),r.handlers[t].push(n),r.dispatcher||(r.disabled=!1,r.dispatcher=function(t,n){if(!r.disabled){t=ee(t);var i=r.handlers[t.type];if(i)for(var a=i.slice(0),o=0,s=a.length;o<s&&!t.isImmediatePropagationStopped();o++)try{a[o].call(e,t,n)}catch(l){ut.error(l)}}}),1===r.handlers[t].length)if(e.addEventListener){var i=!1;_t&&Tt.indexOf(t)>-1&&(i={passive:!0}),e.addEventListener(t,r.dispatcher,i)}else e.attachEvent&&e.attachEvent("on"+t,r.dispatcher)}function ne(e,t,n){if(K(e)){var r=X(e);if(r.handlers){if(Array.isArray(t))return J(ne,e,t,n);var i=function(e,t){r.handlers[t]=[],Z(e,t)};if(void 0!==t){var a=r.handlers[t];if(a){if(!n)return void i(e,t);if(n.guid)for(var o=0;o<a.length;o++)a[o].guid===n.guid&&a.splice(o--,1);Z(e,t)}}else for(var s in r.handlers)Object.prototype.hasOwnProperty.call(r.handlers||{},s)&&i(e,s)}}}function re(e,t,n){var r=K(e)?X(e):{},i=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=ee(t),r.dispatcher&&r.dispatcher.call(e,t,n),i&&!t.isPropagationStopped()&&t.bubbles===!0)re.call(null,i,t,n);else if(!i&&!t.defaultPrevented){var a=X(t.target);t.target[t.type]&&(a.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),a.disabled=!1)}return!t.defaultPrevented}function ie(e,t,n){if(Array.isArray(t))return J(ie,e,t,n);var r=function i(){ne(e,t,i),n.apply(this,arguments)};r.guid=n.guid=n.guid||Y(),te(e,t,r)}function ae(e,t){t&&(bt=t),Ge.setTimeout(wt,e)}function oe(e,t){void 0===t&&(t={});var n=t,r=n.eventBusKey;
68if(r){if(!e[r].nodeName)throw new Error('The eventBusKey "'+r+'" does not refer to an element.');e.eventBusEl_=e[r]}else e.eventBusEl_=C("span",{className:"vjs-event-bus"});return p(e,jt),e.on("dispose",function(){e.off(),Ge.setTimeout(function(){e.eventBusEl_=null},0)}),e}function se(e,t){return p(e,Bt),e.state=p({},e.state,t),"function"==typeof e.handleStateChanged&&Pt(e)&&e.on("statechanged",e.handleStateChanged),e}function le(e){return"string"!=typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}function ue(e,t){return le(e)===le(t)}function ce(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){t&&d(t,function(t,n){return g(t)?(g(e[n])||(e[n]={}),void(e[n]=ce(e[n],t))):void(e[n]=t)})}),e}function de(e,t,n){if("number"!=typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}function he(e,t,n,r){return de(e,r,n.length-1),n[r][t]}function pe(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:he.bind(null,"start",0,e),end:he.bind(null,"end",1,e)}}function fe(e,t){return Array.isArray(e)?pe(e):void 0===e||void 0===t?pe():pe([[e,t]])}function ge(e,t){var n,r,i=0;if(!t)return 0;e&&e.length||(e=fe(0,0));for(var a=0;a<e.length;a++)n=e.start(a),r=e.end(a),r>t&&(r=t),i+=r-n;return i/t}function me(e){return e instanceof me?e:("number"==typeof e?this.code=e:"string"==typeof e?this.message=e:f(e)&&("number"==typeof e.code&&(this.code=e.code),p(this,e)),void(this.message||(this.message=me.defaultMessages[this.code]||"")))}function ve(e){return void 0!==e&&null!==e&&"function"==typeof e.then}function ye(e){ve(e)&&e.then(null,function(e){})}function _e(e,t,n,r,i){void 0===i&&(i={});var a=e.textTracks();i.kind=t,n&&(i.label=n),r&&(i.language=r),i.tech=e;var o=new er.text.TrackClass(i);return a.addTrack(o),o}function be(e,t){nr[e]=nr[e]||[],nr[e].push(t)}function Te(e,t,n){e.setTimeout(function(){return Ie(t,nr[t.type],n,e)},1)}function Ee(e,t){e.forEach(function(e){return e.setTech&&e.setTech(t)})}function Se(e,t,n){return e.reduceRight(ke(n),t[n]())}function we(e,t,n,r){return t[n](e.reduce(ke(n),r))}function Ce(e,t,n,r){void 0===r&&(r=null);var i="call"+le(n),a=e.reduce(ke(i),r),o=a===ir,s=o?null:t[n](a);return De(e,n,s,o),s}function ke(e){return function(t,n){return t===ir?ir:n[e]?n[e](t):t}}function De(e,t,n,r){for(var i=e.length-1;i>=0;i--){var a=e[i];a[t]&&a[t](r,n)}}function xe(e){rr[e.id()]=null}function Ae(e,t){var n=rr[e.id()],r=null;if(void 0===n||null===n)return r=t(e),rr[e.id()]=[[t,r]],r;for(var i=0;i<n.length;i++){var a=n[i],o=a[0],s=a[1];o===t&&(r=s)}return null===r&&(r=t(e),n.push([t,r])),r}function Ie(e,t,n,r,i,a){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===i&&(i=[]),void 0===a&&(a=!1);var o=t,s=o[0],l=o.slice(1);if("string"==typeof s)Ie(e,nr[s],n,r,i,a);else if(s){var u=Ae(r,s);if(!u.setSource)return i.push(u),Ie(e,l,n,r,i,a);u.setSource(p({},e),function(t,o){return t?Ie(e,l,n,r,i,a):(i.push(u),void Ie(o,e.type===o.type?l:nr[o.type],n,r,i,a))})}else l.length?Ie(e,l,n,r,i,a):a?n(e,i):Ie(e,nr["*"],n,r,i,!0)}function Oe(e){var t=ur(e.src);return!e.type&&t&&(e.type=t),e}function Pe(e,t){var n;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function Me(e,t,n){try{e.style[t]=n}catch(r){return}}function Re(e){Cr=e}function Le(){Cr=wr}function Ne(e,t){return void 0===t&&(t=e),Cr(e,t)}function Ue(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}function He(e,t){var n=e.options[e.options.selectedIndex].value;return Ue(n,t)}function je(e,t,n){if(t)for(var r=0;r<e.options.length;
68r++)if(Ue(e.options[r].value,n)===t){e.selectedIndex=r;break}}function Be(){var e=u(["Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\n This may prevent text tracks from loading."]);return Be=function(){return e},e}function Fe(){var e=u(["\n Using the tech directly can be dangerous. I hope you know what you're doing.\n See https://github.com/videojs/video.js/issues/2617 for more info.\n "]);return Fe=function(){return e},e}function Ve(e,t,n){var r=Ve.getPlayer(e);if(r)return t&&ut.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&r.ready(n),r;var i="string"==typeof e?pt("#"+ca(e)):e;if(!E(i))throw new TypeError("The element or ID supplied is not valid. (videojs)");Ye.body.contains(i)||ut.warn("The element supplied is not included in the DOM"),t=t||{},Ve.hooks("beforesetup").forEach(function(e){var n=e(i,ce(t));return!f(n)||Array.isArray(n)?void ut.error("please return an object in beforesetup hooks"):void(t=ce(t,n))});var a=Ft.getComponent("Player");return r=new a(i,t,n),Ve.hooks("setup").forEach(function(e){return e(r)}),r}function We(e,t){return function(n){var r=this;if(!t)return new Mo(e);if(Mo&&!n){var i=t.toString().replace(/^function.+?{/,"").slice(0,-1),a=ze(i);return this[Ao]=new Mo(a),$e(this[Ao],a),this[Ao]}var o={postMessage:function(e){r.onmessage&&setTimeout(function(){r.onmessage({data:e,target:o})})}};t.call(o),this.postMessage=function(e){setTimeout(function(){o.onmessage({data:e,target:r})})},this.isThisThread=!0}}function ze(e){try{return Po.createObjectURL(new Blob([e],{type:Io}))}catch(t){var n=new Oo;
68return n.append(e),Po.createObjectURL(n.getBlob(type))}}function $e(e,t){if(e&&t){var n=e.terminate;e.objURL=t,e.terminate=function(){e.objURL&&Po.revokeObjectURL(e.objURL),n.call(e)}}}function qe(){}var Ge=r(n(10)),Ye=r(n(11)),Xe=r(n(13)),Ke=r(n(14)),Qe=r(n(21)),Ze=r(n(25)),Je=r(n(26)),et=n(27),tt=n(28),nt=r(n(29)),rt=n(31),it=r(n(51)),at=n(54),ot="7.3.0",st=[],lt=function(e,t){return function(n,r,i){var a=t.levels[r],o=new RegExp("^("+a+")$");if("log"!==n&&i.unshift(n.toUpperCase()+":"),i.unshift(e+":"),st&&st.push([].concat(i)),Ge.console){var s=Ge.console[n];s||"debug"!==n||(s=Ge.console.info||Ge.console.log),s&&a&&o.test(n)&&s[Array.isArray(i)?"apply":"call"](Ge.console,i)}}},ut=c("VIDEOJS"),ct=ut.createLogger,dt=Object.prototype.toString,ht=function(e){return f(e)?Object.keys(e):[]},pt=w("querySelector"),ft=w("querySelectorAll"),gt=Object.freeze({isReal:T,isEl:E,isInFrame:S,createEl:C,textContent:k,prependTo:D,hasClass:x,addClass:A,removeClass:I,toggleClass:O,setAttributes:P,getAttributes:M,getAttribute:R,setAttribute:L,removeAttribute:N,blockTextSelection:U,unblockTextSelection:H,getBoundingClientRect:j,findPosition:B,getPointerPosition:F,isTextNode:V,emptyEl:W,normalizeContent:z,appendContent:$,insertContent:q,isSingleLeftClick:G,$:pt,$$:ft}),mt=1,vt={},yt="vdata"+(new Date).getTime(),_t=!1;!function(){try{var e=Object.defineProperty({},"passive",{get:function(){_t=!0}});Ge.addEventListener("test",null,e),Ge.removeEventListener("test",null,e)}catch(t){}}();var bt,Tt=["touchstart","touchmove"],Et=Object.freeze({fixEvent:ee,on:te,off:ne,trigger:re,one:ie}),St=!1,wt=function(){if(T()&&bt.options.autoSetup!==!1){var e=Array.prototype.slice.call(Ye.getElementsByTagName("video")),t=Array.prototype.slice.call(Ye.getElementsByTagName("audio")),n=Array.prototype.slice.call(Ye.getElementsByTagName("video-js")),r=e.concat(t,n);if(r&&r.length>0)for(var i=0,a=r.length;i<a;i++){var o=r[i];if(!o||!o.getAttribute){ae(1);break}if(void 0===o.player){var s=o.getAttribute("data-setup");null!==s&&bt(o)}}else St||ae(1)}};T()&&"complete"===Ye.readyState?St=!0:ie(Ge,"load",function(){St=!0});var Ct=function(e){var t=Ye.createElement("style");return t.className=e,t},kt=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},Dt=function(e,t,n){t.guid||(t.guid=Y());var r=function(){return t.apply(e,arguments)};return r.guid=n?n+"_"+t.guid:t.guid,r},xt=function(e,t){var n=Date.now(),r=function(){var r=Date.now();r-n>=t&&(e.apply(void 0,arguments),n=r)};return r},At=function(e,t,n,r){void 0===r&&(r=Ge);var i,a=function(){r.clearTimeout(i),i=null},o=function(){var a=this,o=arguments,s=function(){i=null,s=null,n||e.apply(a,o)};!i&&n&&e.apply(a,o),r.clearTimeout(i),i=r.setTimeout(s,t)};return o.cancel=a,o},It=function(){};It.prototype.allowedEvents_={},It.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},te(this,e,t),this.addEventListener=n},It.prototype.addEventListener=It.prototype.on,It.prototype.off=function(e,t){ne(this,e,t)},It.prototype.removeEventListener=It.prototype.off,It.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},ie(this,e,t),this.addEventListener=n},It.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=ee(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),re(this,e)},It.prototype.dispatchEvent=It.prototype.trigger;var Ot;It.prototype.queueTrigger=function(e){var t=this;Ot||(Ot=new Map);var n=e.type||e,r=Ot.get(this);r||(r=new Map,Ot.set(this,r));var i=r.get(n);r["delete"](n),Ge.clearTimeout(i);var a=Ge.setTimeout(function(){0===r.size&&(r=null,Ot["delete"](t)),t.trigger(e)},0);r.set(n,a)};var Pt=function(e){return e instanceof It||!!e.eventBusEl_&&["on","one","off","trigger"].every(function(t){return"function"==typeof e[t]})},Mt=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},Rt=function(e){if(!e.nodeName&&!Pt(e))throw new Error("Invalid target; must be a DOM node or evented object.")},Lt=function(e){if(!Mt(e))throw new Error("Invalid event type; must be a non-empty string or array.")},Nt=function(e){if("function"!=typeof e)throw new Error("Invalid listener; must be a function.")},Ut=function(e,t){var n,r,i,a=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return a?(n=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],i=t[1]):(n=t[0],r=t[1],i=t[2]),Rt(n),Lt(r),Nt(i),i=Dt(e,i),{isTargetingSelf:a,target:n,type:r,listener:i}},Ht=function(e,t,n,r){Rt(e),e.nodeName?Et[t](e,n,r):e[t](n,r)},jt={on:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=Ut(this,n),a=i.isTargetingSelf,o=i.target,s=i.type,l=i.listener;if(Ht(o,"on",s,l),!a){var u=function(){return e.off(o,s,l)};u.guid=l.guid;var c=function(){return e.off("dispose",u)};c.guid=l.guid,Ht(this,"on","dispose",u),Ht(o,"on","dispose",c)}},one:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=Ut(this,n),a=i.isTargetingSelf,o=i.target,s=i.type,l=i.listener;if(a)Ht(o,"one",s,l);else{var u=function c(){e.off(o,s,c);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];l.apply(null,n)};u.guid=l.guid,Ht(o,"one",s,u)}},off:function(e,t,n){if(!e||Mt(e))ne(this.eventBusEl_,e,t);else{var r=e,i=t;Rt(r),Lt(i),Nt(n),n=Dt(this,n),this.off("dispose",n),r.nodeName?(ne(r,i,n),ne(r,"dispose",n)):Pt(r)&&(r.off(i,n),r.off("dispose",n))}},trigger:function(e,t){return re(this.eventBusEl_,e,t)}},Bt={state:{},setState:function(e){var t=this;"function"==typeof e&&(e=e());var n;return d(e,function(e,r){t.state[r]!==e&&(n=n||{},n[r]={from:t.state[r],to:e}),t.state[r]=e}),n&&Pt(this)&&this.trigger({changes:n,type:"statechanged"}),n}},Ft=function(){function e(e,t,n){if(!e&&this.play?this.player_=e=this:this.player_=e,this.options_=ce({},this.options_),t=this.options_=ce(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){var r=e&&e.id&&e.id()||"no_player";this.id_=r+"_component_"+Y()}this.name_=t.name||null,t.el?this.el_=t.el:t.createEl!==!1&&(this.el_=this.createEl()),t.evented!==!1&&oe(this,{eventBusKey:this.el_?"el_":null}),se(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},t.initChildren!==!1&&this.initChildren(),this.ready(n),t.reportTouchActivity!==!1&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(){if(this.trigger({type:"dispose",bubbles:!1}),this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Q(this.el_),this.el_=null),this.player_=null},t.player=function(){return this.player_},t.options=function(e){return ut.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),e?(this.options_=ce(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_}
68,t.createEl=function(e,t,n){return C(e,t,n)},t.localize=function(e,t,n){void 0===n&&(n=e);var r=this.player_.language&&this.player_.language(),i=this.player_.languages&&this.player_.languages(),a=i&&i[r],o=r&&r.split("-")[0],s=i&&i[o],l=n;return a&&a[e]?l=a[e]:s&&s[e]&&(l=s[e]),t&&(l=l.replace(/\{(\d+)\}/g,function(e,n){var r=t[n-1],i=r;return"undefined"==typeof r&&(i=e),i})),l},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return e=le(e),this.childNameIndex_[e]},t.addChild=function(t,n,r){void 0===n&&(n={}),void 0===r&&(r=this.children_.length);var i,a;if("string"==typeof t){a=le(t);var o=n.componentClass||a;n.name=a;var s=e.getComponent(o);if(!s)throw new Error("Component "+o+" does not exist");if("function"!=typeof s)return null;i=new s(this.player_||this,n)}else i=t;if(this.children_.splice(r,0,i),"function"==typeof i.id&&(this.childIndex_[i.id()]=i),a=a||i.name&&le(i.name()),a&&(this.childNameIndex_[a]=i),"function"==typeof i.el&&i.el()){var l=this.contentEl().children,u=l[r]||null;this.contentEl().insertBefore(i.el(),u)}return i},t.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){this.childIndex_[e.id()]=null,this.childNameIndex_[e.name()]=null;var r=e.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,n=this.options_.children;if(n){var r,i=this.options_,a=function(e){var n=e.name,r=e.opts;if(void 0!==i[n]&&(r=i[n]),r!==!1){r===!0&&(r={}),r.playerOptions=t.options_.playerOptions;var a=t.addChild(n,r);a&&(t[n]=a)}},o=e.getComponent("Tech");r=Array.isArray(n)?n:Object.keys(n),r.concat(Object.keys(this.options_).filter(function(e){return!r.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(function(e){var r,i;return"string"==typeof e?(r=e,i=n[r]||t.options_[r]||{}):(r=e.name,i=e),{name:r,opts:i}}).filter(function(t){var n=e.getComponent(t.opts.componentClass||le(t.name));return n&&!o.isTech(n)}).forEach(a)}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},t.$=function(e,t){return pt(e,t||this.contentEl())},t.$$=function(e,t){return ft(e,t||this.contentEl())},t.hasClass=function(e){return x(this.el_,e)},t.addClass=function(e){A(this.el_,e)},t.removeClass=function(e){I(this.el_,e)},t.toggleClass=function(e,t){O(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return R(this.el_,e)},t.setAttribute=function(e,t){L(this.el_,e,t)},t.removeAttribute=function(e){N(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t===t||(t=0),(""+t).indexOf("%")!==-1||(""+t).indexOf("px")!==-1?this.el_.style[e]=t:"auto"===t?this.el_.style[e]="":this.el_.style[e]=t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var r=this.el_.style[e],i=r.indexOf("px");return i!==-1?parseInt(r.slice(0,i),10):parseInt(this.el_["offset"+le(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if("function"==typeof Ge.getComputedStyle){var n=Ge.getComputedStyle(this.el_);t=n.getPropertyValue(e)||n[e]}if(t=parseFloat(t),0===t){var r="offset"+le(e);t=this.el_[r]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.emitTapEvents=function(){var e,t=0,n=null,r=10,i=200;this.on("touchstart",function(r){1===r.touches.length&&(n={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},t=(new Date).getTime(),e=!0)}),this.on("touchmove",function(t){if(t.touches.length>1)e=!1;else if(n){var i=t.touches[0].pageX-n.pageX,a=t.touches[0].pageY-n.pageY,o=Math.sqrt(i*i+a*a);o>r&&(e=!1)}});var a=function(){e=!1};this.on("touchleave",a),this.on("touchcancel",a),this.on("touchend",function(r){if(n=null,e===!0){var a=(new Date).getTime()-t;a<i&&(r.preventDefault(),this.trigger("tap"))}})},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=Dt(this.player(),this.player().reportUserActivity);this.on("touchstart",function(){t(),this.clearInterval(e),e=this.setInterval(t,250)});var n=function(n){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.setTimeout=function(e,t){var n,r,i=this;return e=Dt(this,e),n=Ge.setTimeout(function(){i.off("dispose",r),e()},t),r=function(){return i.clearTimeout(n)},r.guid="vjs-timeout-"+n,this.on("dispose",r),n},t.clearTimeout=function(e){Ge.clearTimeout(e);var t=function(){};return t.guid="vjs-timeout-"+e,this.off("dispose",t),e},t.setInterval=function(e,t){var n=this;e=Dt(this,e);var r=Ge.setInterval(e,t),i=function(){return n.clearInterval(r)};return i.guid="vjs-interval-"+r,this.on("dispose",i),r},t.clearInterval=function(e){Ge.clearInterval(e);var t=function(){};return t.guid="vjs-interval-"+e,this.off("dispose",t),e},t.requestAnimationFrame=function(e){var t,n,r=this;return this.supportsRaf_?(e=Dt(this,e),t=Ge.requestAnimationFrame(function(){r.off("dispose",n),e()}),n=function(){return r.cancelAnimationFrame(t)},n.guid="vjs-raf-"+t,this.on("dispose",n),t):this.setTimeout(e,1e3/60)},t.cancelAnimationFrame=function(e){if(this.supportsRaf_){Ge.cancelAnimationFrame(e);var t=function(){};return t.guid="vjs-raf-"+e,this.off("dispose",t),e}return this.clearTimeout(e)},e.registerComponent=function(t,n){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var r=e.getComponent("Tech"),i=r&&r.isTech(n),a=e===n||e.prototype.isPrototypeOf(n.prototype);if(i||!a){var o;throw o=i?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+o+".")}t=le(t),e.components_||(e.components_={});var s=e.getComponent("Player");if("Player"===t&&s&&s.players){var l=s.players,u=Object.keys(l);if(l&&u.length>0&&u.map(function(e){return l[e]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,n},e.getComponent=function(t){if(t)return t=le(t),e.components_&&e.components_[t]?e.components_[t]:void 0},e}();Ft.prototype.supportsRaf_="function"==typeof Ge.requestAnimationFrame&&"function"==typeof Ge.cancelAnimationFrame,Ft.registerComponent("Component",Ft);for(var Vt,Wt=Ge.navigator&&Ge.navigator.userAgent||"",zt=/AppleWeb
68Kit\/([\d.]+)/i.exec(Wt),$t=zt?parseFloat(zt.pop()):null,qt=/iPad/i.test(Wt),Gt=/iPhone/i.test(Wt)&&!qt,Yt=/iPod/i.test(Wt),Xt=Gt||qt||Yt,Kt=function(){var e=Wt.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),Qt=/Android/i.test(Wt),Zt=function(){var e=Wt.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t?t:null}(),Jt=Qt&&Zt<5&&$t<537,en=/Firefox/i.test(Wt),tn=/Edge/i.test(Wt),nn=!tn&&(/Chrome/i.test(Wt)||/CriOS/i.test(Wt)),rn=function(){var e=Wt.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),an=function(){var e=/MSIE\s(\d+)\.\d/.exec(Wt),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(Wt)&&/rv:11.0/.test(Wt)&&(t=11),t}(),on=/Safari/i.test(Wt)&&!nn&&!Qt&&!tn,sn=(on||Xt)&&!nn,ln=(T()&&("ontouchstart"in Ge||Ge.navigator.maxTouchPoints||Ge.DocumentTouch&&Ge.document instanceof Ge.DocumentTouch)),un=Object.freeze({IS_IPAD:qt,IS_IPHONE:Gt,IS_IPOD:Yt,IS_IOS:Xt,IOS_VERSION:Kt,IS_ANDROID:Qt,ANDROID_VERSION:Zt,IS_NATIVE_ANDROID:Jt,IS_FIREFOX:en,IS_EDGE:tn,IS_CHROME:nn,CHROME_VERSION:rn,IE_VERSION:an,IS_SAFARI:on,IS_ANY_SAFARI:sn,TOUCH_ENABLED:ln}),cn={},dn=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],hn=dn[0],pn=0;pn<dn.length;pn++)if(dn[pn][1]in Ye){ 69Vt=dn[pn];break}if(Vt)for(var fn=0;fn<Vt.length;fn++)cn[hn[fn]]=Vt[fn];me.prototype.code=0,me.prototype.message="",me.prototype.status=null,me.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],me.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var gn=0;gn<me.errorTypes.length;gn++)me[me.errorTypes[gn]]=gn,me.prototype[me.errorTypes[gn]]=gn;var mn=function(e){var t=["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(t,n,r){return e[n]&&(t[n]=e[n]),t},{cues:e.cues&&Array.prototype.map.call(e.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})});return t},vn=function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,function(e){return e.track}),r=Array.prototype.map.call(t,function(e){var t=mn(e.track);return e.src&&(t.src=e.src),t});return r.concat(Array.prototype.filter.call(e.textTracks(),function(e){return n.indexOf(e)===-1}).map(mn))},yn=function(e,t){return e.forEach(function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return n.addCue(e)})}),t.textTracks()},_n={textTracksToJson:vn,jsonToTextTracks:yn,trackToJson_:mn},bn="vjs-modal-dialog",Tn=27,En=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.opened_=r.hasBeenOpened_=r.hasBeenFilled_=!1,r.closeable(!r.options_.uncloseable),r.content(r.options_.content),r.contentEl_=C("div",{className:bn+"-content"},{role:"document"}),r.descEl_=C("p",{className:bn+"-description vjs-control-text",id:r.el().getAttribute("aria-describedby")}),k(r.descEl_,r.description()),r.el_.appendChild(r.descEl_),r.el_.appendChild(r.contentEl_),r}i(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},n.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return bn+" vjs-hidden "+e.prototype.buildCSSClass.call(this)},n.handleKeyPress=function(e){e.which===Tn&&this.closeable()&&this.close()},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},n.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpe
69n&&this.wasPlaying_&&e.pause(),this.closeable()&&this.on(this.el_.ownerDocument,"keydown",Dt(this,this.handleKeyPress)),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},n.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},n.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.closeable()&&this.off(this.el_.ownerDocument,"keydown",Dt(this,this.handleKeyPress)),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},n.closeable=function r(e){if("boolean"==typeof e){var r=this.closeable_=!!e,t=this.getChild("closeButton");if(r&&!t){var n=this.contentEl_;this.contentEl_=this.el_,t=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=n,this.on(t,"close",this.close)}!r&&t&&(this.off(t,"close",this.close),this.removeChild(t),t.dispose())}return this.closeable_},n.fill=function(){this.fillWith(this.content())},n.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,r=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),q(t,e),this.trigger("modalfill"),r?n.insertBefore(t,r):n.appendChild(t);var i=this.getChild("closeButton");i&&n.appendChild(i.el_)},n.empty=function(){this.trigger("beforemodalempty"),W(this.contentEl()),this.trigger("modalempty")},n.content=function(e){return"undefined"!=typeof e&&(this.content_=e),this.content_},n.conditionalFocus_=function(){var e=Ye.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus(),this.on(Ye,"keydown",this.handleKeyDown))},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null),this.off(Ye,"keydown",this.handleKeyDown)},n.handleKeyDown=function(e){if(9===e.which){for(var t,n=this.focusableEls_(),r=this.el_.querySelector(":focus"),i=0;i<n.length;i++)if(r===n[i]){t=i;break}Ye.activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(n[n.length-1].focus(),e.preventDefault()):e.shiftKey||t!==n.length-1||(n[0].focus(),e.preventDefault())}},n.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,function(e){return(e instanceof Ge.HTMLAnchorElement||e instanceof Ge.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof Ge.HTMLInputElement||e instanceof Ge.HTMLSelectElement||e instanceof Ge.HTMLTextAreaElement||e instanceof Ge.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof Ge.HTMLIFrameElement||e instanceof Ge.HTMLObjectElement||e instanceof Ge.HTMLEmbedElement||e.hasAttribute("tabindex")&&e.getAttribute("tabindex")!==-1||e.hasAttribute("contenteditable")})},t}(Ft);En.prototype.options_={pauseOnOpen:!0,temporary:!0},Ft.registerComponent("ModalDialog",En);var Sn=function(e){function t(t){var n;void 0===t&&(t=[]),n=e.call(this)||this,n.tracks_=[],Object.defineProperty(l(l(n)),"length",{get:function(){return this.tracks_.length}});for(var r=0;r<t.length;r++)n.addTrack(t[r]);return n}i(t,e);var n=t.prototype;return n.addTrack=function(e){var t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.tracks_[t]}}),this.tracks_.indexOf(e)===-1&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack"}))},n.removeTrack=function(e){for(var t,n=0,r=this.length;n<r;n++)if(this[n]===e){t=this[n],t.off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack"})},n.getTrackById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===e){t=i;break}}return t},t}(It);Sn.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack"};for(var wn in Sn.prototype.allowedEvents_)Sn.prototype["on"+wn]=null;var Cn=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)},kn=function(e){function t(t){var n;void 0===t&&(t=[]);for(var r=t.length-1;r>=0;r--)if(t[r].enabled){Cn(t,t[r]);break}return n=e.call(this,t)||this,n.changing_=!1,n}i(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.enabled&&Cn(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("enabledchange",function(){n.changing_||(n.changing_=!0,Cn(n,t),n.changing_=!1,n.trigger("change"))})},t}(Sn),Dn=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)},xn=function(e){function t(t){var n;void 0===t&&(t=[]);for(var r=t.length-1;r>=0;r--)if(t[r].selected){Dn(t,t[r]);break}return n=e.call(this,t)||this,n.changing_=!1,Object.defineProperty(l(l(n)),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),n}i(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.selected&&Dn(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("selectedchange",function(){n.changing_||(n.changing_=!0,Dn(n,t),n.changing_=!1,n.trigger("change"))})},t}(Sn),An=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.addTrack=function(t){e.prototype.addTrack.call(this,t),t.addEventListener("modechange",Dt(this,function(){this.queueTrigger("change")}));var n=["metadata","chapters"];n.indexOf(t.kind)===-1&&t.addEventListener("modechange",Dt(this,function(){this.trigger("selectedlanguagechange")}))},t}(Sn),In=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}
69),this.trackElements_.indexOf(e)===-1&&this.trackElements_.push(e)},t.getTrackElementByTrack_=function(e){for(var t,n=0,r=this.trackElements_.length;n<r;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},t.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_.splice(t,1);break}},e}(),On=function(){function e(t){e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var t=e.prototype;return t.setCues_=function(e){var t=this.length||0,n=0,r=e.length;this.cues_=e,this.length_=e.length;var i=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<r)for(n=t;n<r;n++)i.call(this,n)},t.getCueById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===e){t=i;break}}return t},e}(),Pn={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},Mn={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Rn={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Ln={disabled:"disabled",hidden:"hidden",showing:"showing"},Nn=function(e){function t(t){var n;void 0===t&&(t={}),n=e.call(this)||this;var r={id:t.id||"vjs_track_"+Y(),kind:t.kind||"",label:t.label||"",language:t.language||""},i=function(e){Object.defineProperty(l(l(n)),e,{get:function(){return r[e]},set:function(){}})};for(var a in r)i(a);return n}return i(t,e),t}(It),Un=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=Ye.createElement("a");n.href=e;var r,i=""===n.host&&"file:"!==n.protocol;i&&(r=Ye.createElement("div"),r.innerHTML='<a href="'+e+'"></a>',n=r.firstChild,r.setAttribute("style","display:none; position:absolute;"),Ye.body.appendChild(r));for(var a={},o=0;o<t.length;o++)a[t[o]]=n[t[o]];return"http:"===a.protocol&&(a.host=a.host.replace(/:80$/,"")),"https:"===a.protocol&&(a.host=a.host.replace(/:443$/,"")),a.protocol||(a.protocol=Ge.location.protocol),i&&Ye.body.removeChild(r),a},Hn=function(e){if(!e.match(/^https?:\/\//)){var t=Ye.createElement("div");t.innerHTML='<a href="'+e+'">x</a>',e=t.firstChild.href}return e},jn=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,n=t.exec(e);if(n)return n.pop().toLowerCase()}return""},Bn=function(e){var t=Ge.location,n=Un(e),r=":"===n.protocol?t.protocol:n.protocol,i=r+n.host!==t.protocol+t.host;return i},Fn=Object.freeze({parseUrl:Un,getAbsoluteURL:Hn,getFileExtension:jn,isCrossOrigin:Bn}),Vn=function(e,t){var n=new Ge.WebVTT.Parser(Ge,Ge.vttjs,Ge.WebVTT.StringDecoder()),r=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){r.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),r.length>0&&(Ge.console&&Ge.console.groupCollapsed&&Ge.console.groupCollapsed("Text Track parsing errors for "+t.src),r.forEach(function(e){return ut.error(e)}),Ge.console&&Ge.console.groupEnd&&Ge.console.groupEnd()),n.flush()},Wn=function(e,t){var n={uri:e},r=Bn(e);r&&(n.cors=r),Ke(n,Dt(this,function(e,n,r){if(e)return ut.error(e,n);if(t.loaded_=!0,"function"!=typeof Ge.WebVTT){if(t.tech_){var i=function(){return Vn(r,t)};t.tech_.on("vttjsloaded",i),t.tech_.on("vttjserror",function(){ut.error("vttjs failed to load, stopping trying to process "+t.src),t.tech_.off("vttjsloaded",i)})}}else Vn(r,t)}))},zn=function(e){function t(t){var n;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var r=ce(t,{kind:Rn[t.kind]||"subtitles",language:t.language||t.srclang||""}),i=Ln[r.mode]||"disabled",a=r["default"];"metadata"!==r.kind&&"chapters"!==r.kind||(i="hidden"),n=e.call(this,r)||this,n.tech_=r.tech,n.cues_=[],n.activeCues_=[];var o=new On(n.cues_),s=new On(n.activeCues_),u=!1,c=Dt(l(l(n)),function(){this.activeCues=this.activeCues,u&&(this.trigger("cuechange"),u=!1)});return"disabled"!==i&&n.tech_.ready(function(){n.tech_.on("timeupdate",c)}
vendor: 6,871 bytes, line 69
69,!0),Object.defineProperties(l(l(n)),{"default":{get:function(){return a},set:function(){}},mode:{get:function(){return i},set:function(e){var t=this;Ln[e]&&(i=e,"disabled"!==i?this.tech_.ready(function(){t.tech_.on("timeupdate",c)},!0):this.tech_.off("timeupdate",c),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?o:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return s;for(var e=this.tech_.currentTime(),t=[],n=0,r=this.cues.length;n<r;n++){var i=this.cues[n];i.startTime<=e&&i.endTime>=e?t.push(i):i.startTime===i.endTime&&i.startTime<=e&&i.startTime+.5>=e&&t.push(i)}if(u=!1,t.length!==this.activeCues_.length)u=!0;else for(var a=0;a<t.length;a++)this.activeCues_.indexOf(t[a])===-1&&(u=!0);return this.activeCues_=t,s.setCues_(this.activeCues_),s},set:function(){}}}),r.src?(n.src=r.src,Wn(r.src,l(l(n)))):n.loaded_=!0,n}i(t,e);var n=t.prototype;return n.addCue=function(e){var t=e;if(Ge.vttjs&&!(e instanceof Ge.vttjs.VTTCue)){t=new Ge.vttjs.VTTCue(e.startTime,e.endTime,e.text);for(var n in e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}for(var r=this.tech_.textTracks(),i=0;i<r.length;i++)r[i]!==this&&r[i].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},n.removeCue=function(e){for(var t=this.cues_.length;t--;){var n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(Nn);zn.prototype.allowedEvents_={cuechange:"cuechange"};var $n=function(e){function t(t){var n;void 0===t&&(t={});var r=ce(t,{kind:Mn[t.kind]||""});n=e.call(this,r)||this;var i=!1;return Object.defineProperty(l(l(n)),"enabled",{get:function(){return i},set:function(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("enabledchange"))}}),r.enabled&&(n.enabled=r.enabled),n.loaded_=!0,n}return i(t,e),t}(Nn),qn=function(e){function t(t){var n;void 0===t&&(t={});var r=ce(t,{kind:Pn[t.kind]||""});n=e.call(this,r)||this;var i=!1;return Object.defineProperty(l(l(n)),"selected",{get:function(){return i},set:function(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("selectedchange"))}}),r.selected&&(n.selected=r.selected),n}return i(t,e),t}(Nn),Gn=0,Yn=1,Xn=2,Kn=3,Qn=function(e){function t(t){var n;void 0===t&&(t={}),n=e.call(this)||this;var r,i=new zn(t);return n.kind=i.kind,n.src=i.src,n.srclang=i.language,n.label=i.label,n["default"]=i["default"],Object.defineProperties(l(l(n)),{readyState:{get:function(){return r}},track:{get:function(){return i}}}),r=Gn,i.addEventListener("loadeddata",function(){r=Xn,n.trigger({type:"load",target:l(l(n))})}),n}return i(t,e),t}(It);Qn.prototype.allowedEvents_={load:"load"},Qn.NONE=Gn,Qn.LOADING=Yn,Qn.LOADED=Xn,Qn.ERROR=Kn;var Zn={audio:{ListClass:kn,TrackClass:$n,capitalName:"Audio"},video:{ListClass:xn,TrackClass:qn,capitalName:"Video"},text:{ListClass:An,TrackClass:zn,capitalName:"Text"}};Object.keys(Zn).forEach(function(e){Zn[e].getterName=e+"Tracks",Zn[e].privateName=e+"Tracks_"});var Jn={remoteText:{ListClass:An,TrackClass:zn,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:In,TrackClass:Qn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},er=ce(Zn,Jn);Jn.names=Object.keys(Jn),Zn.names=Object.keys(Zn),er.names=[].concat(Jn.names).concat(Zn.names);var tr=function(e){function t(t,n){var r;return void 0===t&&(t={}),void 0===n&&(n=function(){}),t.reportTouchActivity=!1,r=e.call(this,null,t,n)||this,r.hasStarted_=!1,r.on("playing",function(){this.hasStarted_=!0}),r.on("loadstart",function(){this.hasStarted_=!1}),er.names.forEach(function(e){var n=er[e];t&&t[n.getterName]&&(r[n.privateName]=t[n.getterName])}),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(e){t["native"+e+"Tracks"]===!1&&(r["featuresNative"+e+"Tracks"]=!1)}),t.nativeCaptions===!1||t.nativeTextTracks===!1?r.featuresNativeTextTracks=!1:t.nativeCaptions!==!0&&t.nativeTextTracks!==!0||(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.autoRemoteTextTracks_=new er.text.ListClass,r.initTrackListeners(),t.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.name_=r.constructor.name||"Unknown Tech"),r}i(t,e);var n=t.prototype;return n.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",function(){return t.setTimeout(function(){return t.triggerSourceset(e)},1)}),this.trigger({src:e,type:"sourceset"})},n.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},n.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},n.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Dt(this,function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)},n.onDurationChange=function(e){this.duration_=this.duration()},n.buffered=function(){return fe(0,0)},n.bufferedPercent=function(){return ge(this.buffered(),this.duration_)},n.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},n.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},n.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},n.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},n.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.dispose=function(){this.clearTracks(Zn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},n.clearTracks=function(e){var t=this;e=[].concat(e),e.forEach(function(e){for(var n=t[e+"Tracks"]()||[],r=n.length;r--;){var i=n[r];"text"===e&&t.removeRemoteTextTrack(i),n.removeTrack(i)}})},n.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var n=e[t];this.removeRemoteTextTrack(n)}},n.reset=function(){},n.error=function(e){return void 0!==e&&(this.error_=new me(e),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?fe(0,0):fe()},n.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.initTrackListeners=function(){var e=this;
vendor: 6,079 bytes, line 69
69Zn.names.forEach(function(t){var n=Zn[t],r=function(){e.trigger(t+"trackchange")},i=e[n.getterName]();i.addEventListener("removetrack",r),i.addEventListener("addtrack",r),e.on("dispose",function(){i.removeEventListener("removetrack",r),i.removeEventListener("addtrack",r)})})},n.addWebVttScript_=function(){var e=this;if(!Ge.WebVTT)if(Ye.body.contains(this.el())){if(!this.options_["vtt.js"]&&g(Qe)&&Object.keys(Qe).length>0)return void this.trigger("vttjsloaded");var t=Ye.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",function(){t.onload=null,t.onerror=null}),Ge.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),r=function(e){return t.addTrack(e.track)},i=function(e){return t.removeTrack(e.track)};n.on("addtrack",r),n.on("removetrack",i),this.addWebVttScript_();var a=function(){return e.trigger("texttrackchange")},o=function(){a();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",a),"showing"===n.mode&&n.addEventListener("cuechange",a)}};o(),t.addEventListener("change",o),t.addEventListener("addtrack",o),t.addEventListener("removetrack",o),this.on("dispose",function(){n.off("addtrack",r),n.off("removetrack",i),t.removeEventListener("change",o),t.removeEventListener("addtrack",o),t.removeEventListener("removetrack",o);for(var e=0;e<t.length;e++){var s=t[e];s.removeEventListener("cuechange",a)}})},n.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return _e(this,e,t,n)},n.createRemoteTextTrack=function(e){var t=ce(e,{tech:this});return new Jn.remoteTextEl.TrackClass(t)},n.addRemoteTextTrack=function(e,t){var n=this;void 0===e&&(e={});var r=this.createRemoteTextTrack(e);return t!==!0&&t!==!1&&(ut.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),t!==!0&&this.ready(function(){return n.autoRemoteTextTracks_.addTrack(r.track)}),r},n.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},n.getVideoPlaybackQuality=function(){return{}},n.setPoster=function(){},n.playsinline=function(){},n.setPlaysinline=function(){},n.overrideNativeAudioTracks=function(){},n.overrideNativeVideoTracks=function(){},n.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=le(e),t.techs_[e]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return e=le(e),t.techs_&&t.techs_[e]?t.techs_[e]:Ge&&Ge.videojs&&Ge.videojs[e]?(ut.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),Ge.videojs[e]):void 0},t}(Ft);er.names.forEach(function(e){var t=er[e];tr.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),tr.prototype.featuresVolumeControl=!0,tr.prototype.featuresMuteControl=!0,tr.prototype.featuresFullscreenResize=!1,tr.prototype.featuresPlaybackRate=!1,tr.prototype.featuresProgressEvents=!1,tr.prototype.featuresSourceset=!1,tr.prototype.featuresTimeupdateEvents=!1,tr.prototype.featuresNativeTextTracks=!1,tr.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var r=e.sourceHandlers;r||(r=e.sourceHandlers=[]),void 0===n&&(n=r.length),r.splice(n,0,t)},e.canPlayType=function(t){for(var n,r=e.sourceHandlers||[],i=0;i<r.length;i++)if(n=r[i].canPlayType(t))return n;return""},e.selectSourceHandler=function(t,n){for(var r,i=e.sourceHandlers||[],a=0;a<i.length;a++)if(r=i[a].canHandleSource(t,n))return i[a];return null},e.canPlaySource=function(t,n){var r=e.selectSourceHandler(t,n);return r?r.canHandleSource(t,n):""};var t=["seekable","seeking","duration"];t.forEach(function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:ut.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.on("dispose",this.disposeSourceHandler)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Ft.registerComponent("Tech",tr),tr.registerTech("Tech",tr),tr.defaultTechOrder_=[];var nr={},rr={},ir={},ar={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1},or={setCurrentTime:1},sr={play:1,pause:1},lr={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL"},ur=function(e){void 0===e&&(e="");var t=jn(e),n=lr[t.toLowerCase()];return n||""},cr=function(e,t){if(!t)return"";
vendor: 4,174 bytes, line 69
69if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter(function(e){return e.src===t});if(n.length)return n[0].type;for(var r=e.$$("source"),i=0;i<r.length;i++){var a=r[i];if(a.type&&a.src&&a.src===t)return a.type}return ur(t)},dr=function Bl(e){if(Array.isArray(e)){var t=[];e.forEach(function(e){e=Bl(e),Array.isArray(e)?t=t.concat(e):f(e)&&t.push(e)}),e=t}else e="string"==typeof e&&e.trim()?[Oe({src:e})]:f(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[Oe(e)]:[];return e},hr=function(e){function t(t,n,r){var i,a=ce({createEl:!1},n);if(i=e.call(this,t,a,r)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)t.src(n.playerOptions.sources);else for(var o=0,s=n.playerOptions.techOrder;o<s.length;o++){var l=le(s[o]),u=tr.getTech(l);if(l||(u=Ft.getComponent(l)),u&&u.isSupported()){t.loadTech_(l);break}}return i}return i(t,e),t}(Ft);Ft.registerComponent("MediaLoader",hr);var pr=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.emitTapEvents(),r.enable(),r}i(t,e);var n=t.prototype;return n.createEl=function(t,n,r){void 0===t&&(t="div"),void 0===n&&(n={}),void 0===r&&(r={}),n=p({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},n),"button"===t&&ut.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),r=p({role:"button"},r),this.tabIndex_=n.tabIndex;var i=e.prototype.createEl.call(this,t,n,r);return this.createControlTextEl(i),i},n.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},n.createControlTextEl=function(e){return this.controlTextEl_=C("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},n.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,k(this.controlTextEl_,n),this.nonIconControl||t.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!=typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!=typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},n.handleClick=function(e){},n.handleFocus=function(e){te(Ye,"keydown",Dt(this,this.handleKeyPress))},n.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.trigger("click")):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},n.handleBlur=function(e){ne(Ye,"keydown",Dt(this,this.handleKeyPress))},t}(Ft);Ft.registerComponent("ClickableComponent",pr);var fr=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.update(),t.on("posterchange",Dt(l(l(r)),r.update)),r}i(t,e);var n=t.prototype;return n.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},n.createEl=function(){var e=C("div",{className:"vjs-poster",tabIndex:-1});return e},n.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},n.setSrc=function(e){var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t},n.handleClick=function(e){this.player_.controls()&&(this.player_.paused()?ye(this.player_.play()):this.player_.pause())},t}(pr);Ft.registerComponent("PosterImage",fr);var gr="#222",mr="#ccc",vr={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',
69script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'},yr=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var a=Dt(l(l(i)),i.updateDisplay);return t.on("loadstart",Dt(l(l(i)),i.toggleDisplay)),t.on("texttrackchange",a),t.on("loadstart",Dt(l(l(i)),i.preselectTrack)),t.ready(Dt(l(l(i)),function(){if(t.tech_&&t.tech_.featuresNativeTextTracks)return void this.hide();t.on("fullscreenchange",a),t.on("playerresize",a),Ge.addEventListener("orientationchange",a),t.on("dispose",function(){return Ge.removeEventListener("orientationchange",a)});for(var e=this.options_.playerOptions.tracks||[],n=0;n<e.length;n++)this.player_.addRemoteTextTrack(e[n],!0);this.preselectTrack()})),i}i(t,e);var n=t.prototype;return n.preselectTrack=function(){for(var e,t,n,r={captions:1,subtitles:1},i=this.player_.textTracks(),a=this.player_.cache_.selectedLanguage,o=0;o<i.length;o++){var s=i[o];a&&a.enabled&&a.language===s.language?s.kind===a.kind?n=s:n||(n=s):a&&!a.enabled?(n=null,e=null,t=null):s["default"]&&("descriptions"!==s.kind||e?s.kind in r&&!t&&(t=s):e=s)}n?n.mode="showing":t?t.mode="showing":e&&(e.mode="showing")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true" 70})},n.clearDisplay=function(){"function"==typeof Ge.WebVTT&&Ge.WebVTT.processCues(Ge,[],this.el_)},n.updateDisplay=function(){var e=this.player_.textTracks();this.clearDisplay();for(var t=null,n=null,r=e.length;r--;){var i=e[r];"showing"===i.mode&&("descriptions"===i.kind?t=i:n=i)}n?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(n)):t&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(t))},n.updateForTrack=function(e){if("function"==typeof Ge.WebVTT&&e.activeCues){for(var t=[],n=0;n<e.activeCues.length;n++)t.push(e.activeCues[n]);if(Ge.WebVTT.processCues(Ge,t,this.el_),this.player_.textTrackSettings)for(var r=this.player_.textTrackSettings.getValues(),i=t.length;i--;){var a=t[i];if(a){var o=a.displayState;if(r.color&&(o.firstChild.style.color=r.color),r.textOpacity&&Me(o.firstChild,"color",Pe(r.color||"#fff",r.textOpacity)),r.backgroundColor&&(o.firstChild.style.backgroundColor=r.backgroundColor),r.backgroundOpacity&&Me(o.firstChild,"backgroundColor",Pe(r.backgroundColor||"#000",r.backgroundOpacity)),r.windowColor&&(r.windowOpacity?Me(o,"backgroundColor",Pe(r.windowColor,r.windowOpacity)):o.style.backgroundColor=r.windowColor),r.edgeStyle&&("dropshadow"===r.edgeStyle?o.firstChild.style.textShadow="2px 2px 3px "+gr+", 2px 2px 4px "+gr+", 2px 2px 5px "+gr:"raised"===r.edgeStyle?o.firstChild.style.textShadow="1px 1px "+gr+", 2px 2px "+gr+", 3px 3px "+gr:"depressed"===r.edgeStyle?o.firstChild.style.textShadow="1px 1px "+mr+", 0 1px "+mr+", -1px -1px "+gr+", 0 -1px "+gr:"uniform"===r.edgeStyle&&(o.firstChild.style.textShadow="0 0 4px "+gr+", 0 0 4px "+gr+", 0 0 4px "+gr+", 0 0 4px "+gr)),r.fontPercent&&1!==r.fontPercent){var s=Ge.parseFloat(o.style.fontSize);o.style.fontSize=s*r.fontPercent+"px",o.style.height="auto",o.style.top="auto",o.style.bottom="2px"}r.fontFamily&&"default"!==r.fontFamily&&("small-caps"===r.fontFamily?o.firstChild.style.fontVariant="small-caps":o.firstChild.style.fontFamily=vr[r.fontFamily])}}}},t}(Ft);Ft.registerComponent("TextTrackDisplay",yr);var _r=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.createEl=function(){var t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"Video Player"),r=C("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[n])}),i=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return i.appendChild(r),i},t}(Ft);Ft.registerComponent("LoadingSpinner",_r);var br=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={}),e="button",t=p({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},t),n=p({type:"button"},n);var r=Ft.prototype.createEl.call(this,e,t,n);return this.createControlTextEl(r),r},n.addChild=function(e,t){void 0===t&&(t={});var n=this.constructor.name;return ut.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),Ft.prototype.addChild.call(this,e,t)},n.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyPress=function(t){32!==t.which&&13!==t.which&&e.prototype.handleKeyPress.call(this,t)},t}(pr);Ft.registerComponent("Button",br);var Tr=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.mouseused_=!1,r.on("mousedown",r.handleMouseDown),r}i(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY)return void ye(t);var n=this.player_.getChild("controlBar"),r=n&&n.getChild("playToggle");if(!r)return void this.player_.focus();
vendor: 12,521 bytes, line 70
70var i=function(){return r.focus()};ve(t)?t.then(i,function(){}):this.setTimeout(i,1)},n.handleKeyPress=function(t){this.mouseused_=!1,e.prototype.handleKeyPress.call(this,t)},n.handleMouseDown=function(e){this.mouseused_=!0},t}(br);Tr.prototype.controlText_="Play Video",Ft.registerComponent("BigPlayButton",Tr);var Er=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.controlText(n&&n.controlText||r.localize("Close")),r}i(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t}(br);Ft.registerComponent("CloseButton",Er);var Sr=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.on(t,"play",r.handlePlay),r.on(t,"pause",r.handlePause),r.on(t,"ended",r.handleEnded),r}i(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},n.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},t}(br);Sr.prototype.controlText_="Play",Ft.registerComponent("PlayToggle",Sr);var wr=function(e,t){e=e<0?0:e;var n=Math.floor(e%60),r=Math.floor(e/60%60),i=Math.floor(e/3600),a=Math.floor(t/60%60),o=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(i=r=n="-"),i=i>0||o>0?i+":":"",r=((i||a>=10)&&r<10?"0"+r:r)+":",n=n<10?"0"+n:n,i+r+n},Cr=wr,kr=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.throttledUpdateContent=xt(Dt(l(l(r)),r.updateContent),25),r.on(t,"timeupdate",r.throttledUpdateContent),r}i(t,e);var n=t.prototype;return n.createEl=function(t){var n=this.buildCSSClass(),r=e.prototype.createEl.call(this,"div",{className:n+" vjs-time-control vjs-control",innerHTML:'<span class="vjs-control-text">'+this.localize(this.labelText_)+"Â </span>"});return this.contentEl_=C("span",{className:n+"-display"},{"aria-live":"off"}),this.updateTextNode_(),r.appendChild(this.contentEl_),r},n.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},n.updateTextNode_=function(){if(this.contentEl_){for(;this.contentEl_.firstChild;)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=Ye.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},n.formatTime_=function(e){return Ne(e)},n.updateFormattedTime_=function(e){var t=this.formatTime_(e);t!==this.formattedTime_&&(this.formattedTime_=t,this.requestAnimationFrame(this.updateTextNode_))},n.updateContent=function(e){},t}(Ft);kr.prototype.labelText_="Time",kr.prototype.controlText_="Time",Ft.registerComponent("TimeDisplay",kr);var Dr=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.on(t,"ended",r.handleEnded),r}i(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(t)},n.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},t}(kr);Dr.prototype.labelText_="Current Time",Dr.prototype.controlText_="Current Time",Ft.registerComponent("CurrentTimeDisplay",Dr);var xr=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.on(t,"durationchange",r.updateContent),r.on(t,"loadedmetadata",r.throttledUpdateContent),r}i(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(e){var t=this.player_.duration();t&&this.duration_!==t&&(this.duration_=t,this.updateFormattedTime_(t))},t}(kr);xr.prototype.labelText_="Duration",xr.prototype.controlText_="Duration",Ft.registerComponent("DurationDisplay",xr);var Ar=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"})},t}(Ft);Ft.registerComponent("TimeDivider",Ar);var Ir=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.on(t,"durationchange",r.throttledUpdateContent),r.on(t,"ended",r.handleEnded),r}i(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.formatTime_=function(t){return"-"+e.prototype.formatTime_.call(this,t)},n.updateContent=function(e){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},n.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(0)},t}(kr);Ir.prototype.labelText_="Remaining Time",Ir.prototype.controlText_="Remaining Time",Ft.registerComponent("RemainingTimeDisplay",Ir);var Or=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.updateShowing(),r.on(r.player(),"durationchange",r.updateShowing),r}i(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=C("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+"Â </span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},n.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},n.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(Ft);Ft.registerComponent("LiveDisplay",Or);var Pr=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}i(t,e);var n=t.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(t,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),n.className=n.className+" vjs-slider",n=p({tabIndex:0},n),r=p({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),e.prototype.createEl.call(this,t,n,r)},n.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||nn||e.preventDefault(),U(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e)},n.handleMouseMove=function(e){},n.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;H(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},n.update=function(){if(this.el_){var e=this.getPercent(),t=this.bar;if(t){("number"!=typeof e||e!==e||e<0||e===1/0)&&(e=0);var n=(100*e).toFixed(2)+"%",r=t.el().style;return this.vertical()?r.height=n:r.width=n,e}}},n.calculateDistance=function(e){var t=F(this.el_,e);return this.vertical()?t.y:t.x},n.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},n.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepBack()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepForward())},n.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},n.handleClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},n.vertical=function(e){return void 0===e?this.vertical_||!1:(this.vertical_=!!e,void(this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")))},t}(Ft);Ft.registerComponent("Slider",Pr);var Mr=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.partEls_=[],r.on(t,"progress",r.update),r}i(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Loaded")+"</span>: 0%</span>"})},n.dispose=function(){this.partEls_=null,e.prototype.dispose.call(this)},n.update=function(e){var t=this.player_.buffered(),n=this.player_.duration(),r=this.player_.bufferedEnd(),i=this.partEls_,a=function(e,t){var n=e/t||0;return 100*(n>=1?1:n)+"%"};this.el_.style.width=a(r,n);for(var o=0;o<t.length;o++){var s=t.start(o),l=t.end(o),u=i[o];u||(u=this.el_.appendChild(C()),i[o]=u),u.style.left=a(s,r),u.style.width=a(l-s,r)}for(var c=i.length;c>t.length;c--)this.el_.removeChild(i[c-1]);i.length=t.length},t}(Ft);Ft.registerComponent("LoadProgressBar",Mr);var Rr=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},n.update=function(e,t,n){var r=j(this.el_),i=j(this.player_.el()),a=e.width*t;if(i&&r){var o=e.left-i.left+a,s=e.width-a+(i.right-e.right),l=r.width/2;o<l?l+=l-o:s<l&&(l=s),l<0?l=0:l>r.width&&(l=r.width),this.el_.style.right="-"+l+"px",k(this.el_,n)}},t}(Ft);Ft.registerComponent("TimeTooltip",Rr);var Lr=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:'<span class="vjs-control-text"><span>'+this.localize("Progress")+"</span>: 0%</span>"})},n.update=function(e,t){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var r=n.player_.scrubbing()?n.player_.getCache().currentTime:n.player_.currentTime(),i=Ne(r,n.player_.duration()),a=n.getChild("timeTooltip");a&&a.update(e,t,i)})},t}(Ft);Lr.prototype.options_={children:[]},Xt||Qt||Lr.prototype.options_.children.push("timeTooltip"),Ft.registerComponent("PlayProgressBar",Lr);var Nr=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.update=xt(Dt(l(l(r)),r.update),25),r}i(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame(function(){var r=n.player_.duration(),i=Ne(t*r,r);n.el_.style.left=e.width*t+"px",n.getChild("timeTooltip").update(e,t,i)})},t}(Ft);Nr.prototype.options_={children:["timeTooltip"]},Ft.registerComponent("MouseTimeDisplay",Nr);var Ur=5,Hr=30,jr=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.setEventHandlers_(),r}i(t,e);var n=t.prototype;return n.setEventHandlers_=function(){var e=this;this.update=xt(Dt(this,this.update),Hr),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.updateInterval=null,this.on(this.player_,["playing"],function(){e.clearInterval(e.updateInterval),e.updateInterval=e.setInterval(function(){e.requestAnimationFrame(function(){e.update(
70)})},Hr)}),this.on(this.player_,["ended","pause","waiting"],function(){e.clearInterval(e.updateInterval)}),this.on(this.player_,["timeupdate","ended"],this.update)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update_=function(e,t){var n=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[Ne(e,n),Ne(n,n)],"{1} of {2}")),this.bar.update(j(this.el_),t)},n.update=function(t){var n=e.prototype.update.call(this);return this.update_(this.getCurrentTime_(),n),n},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.handleEnded=function(e){this.update_(this.player_.duration(),1)},n.getPercent=function(){var e=this.getCurrentTime_()/this.player_.duration();return e>=1?1:e||0},n.handleMouseDown=function(t){G(t)&&(t.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},n.handleMouseMove=function(e){if(G(e)){var t=this.calculateDistance(e)*this.player_.duration();t===this.player_.duration()&&(t-=.1),this.player_.currentTime(t)}},n.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},n.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},n.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&ye(this.player_.play())},n.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+Ur)},n.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-Ur)},n.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleAction(t)):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t}(Pr);jr.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},Xt||Qt||jr.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),jr.prototype.playerEvent="timeupdate",Ft.registerComponent("SeekBar",jr);var Br=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.handleMouseMove=xt(Dt(l(l(r)),r.handleMouseMove),25),r.throttledHandleMouseSeek=xt(Dt(l(l(r)),r.handleMouseSeek),25),r.enable(),r}i(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("mouseTimeDisplay"),r=t.el(),i=j(r),a=F(r,e).x;a>1?a=1:a<0&&(a=0),n&&n.update(i,a)}},n.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},n.enabled=function(){return this.enabled_}
vendor: 5,412 bytes, line 70
70,n.disable=function(){this.children().forEach(function(e){return e.disable&&e.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},n.enable=function(){this.children().forEach(function(e){return e.enable&&e.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseUp(e),this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t}(Ft);Br.prototype.options_={children:["seekBar"]},Ft.registerComponent("ProgressControl",Br);var Fr=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.on(t,"fullscreenchange",r.handleFullscreenChange),Ye[cn.fullscreenEnabled]===!1&&r.disable(),r}i(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(br);Fr.prototype.controlText_="Fullscreen",Ft.registerComponent("FullscreenToggle",Fr);var Vr=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})},Wr=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(Ft);Ft.registerComponent("VolumeLevel",Wr);var zr=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.on("slideractive",r.updateLastVolume_),r.on(t,"volumechange",r.updateARIAAttributes),t.ready(function(){return r.updateARIAAttributes()}),r}i(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(t){G(t)&&e.prototype.handleMouseDown.call(this,t)},n.handleMouseMove=function(e){G(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",function(){0===e.player_.volume()&&e.player_.lastVolume_(t)})},t}(Pr);zr.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},zr.prototype.playerEvent="volumechange",Ft.registerComponent("VolumeBar",zr);var $r=function(e){function t(t,n){var r;return void 0===n&&(n={}),n.vertical=n.vertical||!1,("undefined"==typeof n.volumeBar||g(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),r=e.call(this,t,n)||this,Vr(l(l(r)),t),r.throttledHandleMouseMove=xt(Dt(l(l(r)),r.handleMouseMove),25),r.on("mousedown",r.handleMouseDown),r.on("touchstart",r.handleMouseDown),r.on(r.volumeBar,["focus","slideractive"],function(){r.volumeBar.addClass("vjs-slider-active"),r.addClass("vjs-slider-active"),r.trigger("slideractive")}),r.on(r.volumeBar,["blur","sliderinactive"],function(){r.volumeBar.removeClass("vjs-slider-active"),r.removeClass("vjs-slider-active"),r.trigger("sliderinactive")}),r}i(t,e);var n=t.prototype;return n.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},n.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},n.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(Ft);$r.prototype.options_={children:["volumeBar"]}
70,Ft.registerComponent("VolumeControl",$r);var qr=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})},Gr=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,qr(l(l(r)),t),r.on(t,["loadstart","volumechange"],r.update),r}i(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var r=n<.1?.1:n;this.player_.volume(r),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(e){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var e=this.player_.volume(),t=3;Xt&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)I(this.el_,"vjs-vol-"+n);A(this.el_,"vjs-vol-"+t)},n.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume(),t=e?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)},t}(br);Gr.prototype.controlText_="Mute",Ft.registerComponent("MuteToggle",Gr);var Yr=function(e){function t(t,n){var r;return void 0===n&&(n={}),"undefined"!=typeof n.inline?n.inline=n.inline:n.inline=!0,("undefined"==typeof n.volumeControl||g(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),r=e.call(this,t,n)||this,r.on(t,["loadstart"],r.volumePanelState_),r.on(r.volumeControl,["slideractive"],r.sliderActive_),r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_),r}i(t,e);var n=t.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},n.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},t}(Ft);Yr.prototype.options_={children:["muteToggle","volumeControl"]},Ft.registerComponent("VolumePanel",Yr);var Xr=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,n&&(r.menuButton_=n.menuButton),r.focusedChild_=-1,r.on("keydown",r.handleKeyPress),r}i(t,e);var n=t.prototype;return n.addItem=function(e){this.addChild(e),e.on("click",Dt(this,function(t){this.menuButton_&&(this.menuButton_.unpressButton(),"CaptionSettingsMenuItem"!==e.name()&&this.menuButton_.focus())}))},n.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=C(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),te(n,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),n},n.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},n.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepForward()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepBack())},n.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},n.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},n.focus=function(e){void 0===e&&(e=0);var t=this.children().slice(),n=t.length&&t[0].className&&/vjs-menu-title/.test(t[0].className);n&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(Ft);Ft.registerComponent("Menu",Xr);var Kr=function(e){function t(t,n){var r;void 0===n&&(n={}),r=e.call(this,t,n)||this,r.menuButton_=new br(t,n),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var i=br.prototype.buildCSSClass();return r.menuButton_.el_.className=r.buildCSSClass()+" "+i,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(
70),r.enabled_=!0,r.on(r.menuButton_,"tap",r.handleClick),r.on(r.menuButton_,"click",r.handleClick),r.on(r.menuButton_,"focus",r.handleFocus),r.on(r.menuButton_,"blur",r.handleBlur),r.on("keydown",r.handleSubmenuKeyPress),r}i(t,e);var n=t.prototype;return n.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},n.createMenu=function(){var e=new Xr(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=C("li",{className:"vjs-menu-title",innerHTML:le(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,e.children_.unshift(t),D(t,e.contentEl())}if(this.items=this.createItems(),this.items)for(var n=0;n<this.items.length;n++)e.addItem(this.items[n]);return e},n.createItems=function(){},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var t="vjs-menu-button";t+=this.options_.inline===!0?"-inline":"-popup";var n=br.prototype.buildCSSClass();return"vjs-menu-button "+t+" "+n+" "+e.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var t="vjs-menu-button";return t+=this.options_.inline===!0?"-inline":"-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},n.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},n.handleClick=function(e){this.one(this.menu.contentEl(),"mouseleave",Dt(this,function(e){this.unpressButton(),this.el_.blur()})),this.buttonPressed_?this.unpressButton():this.pressButton()},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleFocus=function(){te(Ye,"keydown",Dt(this,this.handleKeyPress))},n.handleBlur=function(){ne(Ye,"keydown",Dt(this,this.handleKeyPress))},n.handleKeyPress=function(e){27===e.which||9===e.which?(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus())):38!==e.which&&40!==e.which||this.buttonPressed_||(this.pressButton(),e.preventDefault())},n.handleSubmenuKeyPress=function(e){27!==e.which&&9!==e.which||(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus()))},n.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Xt&&S())return;this.menu.focus()}},n.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},n.disable=function(){ 71this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},n.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(Ft);Ft.registerComponent("MenuButton",Kr);var Qr=function(e){function t(t,n){var r,i=n.tracks;if(r=e.call(this,t,n)||this,r.items.length<=1&&r.hide(),!i)return l(r);var a=Dt(l(l(r)),r.update);return i.addEventListener("removetrack",a),i.addEventListener("addtrack",a),r.player_.on("ready",a),r.player_.on("dispose",function(){i.removeEventListener("removetrack",a),i.removeEventListener("addtrack",a)}),r}return i(t,e),t}(Kr);Ft.registerComponent("TrackButton",Qr);var Zr=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.selectable=n.selectable,r.isSelected_=n.selected||!1,r.multiSelectable=n.multiSelectable,r.selected(r.isSelected_),r.selectable?r.multiSelectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitemradio"):r.el_.setAttribute("role","menuitem"),r}i(t,e);var n=t.prototype;return n.createEl=function(t,n,r){return this.nonIconControl=!0,e.prototype.createEl.call(this,"li",p({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},n),r)},n.handleClick=function(e){this.selected(!0)},n.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","fal
71se"),this.controlText(""),this.isSelected_=!1))},t}(pr);Ft.registerComponent("MenuItem",Zr);var Jr=function(e){function t(t,n){var r,i=n.track,a=t.textTracks();n.label=i.label||i.language||"Unknown",n.selected="showing"===i.mode,r=e.call(this,t,n)||this,r.track=i;var o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleTracksChange.apply(l(l(r)),t)},s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleSelectedLanguageChange.apply(l(l(r)),t)};if(t.on(["loadstart","texttrackchange"],o),a.addEventListener("change",o),a.addEventListener("selectedlanguagechange",s),r.on("dispose",function(){t.off(["loadstart","texttrackchange"],o),a.removeEventListener("change",o),a.removeEventListener("selectedlanguagechange",s)}),void 0===a.onchange){var u;r.on(["tap","click"],function(){if("object"!=typeof Ge.Event)try{u=new Ge.Event("change")}catch(e){}u||(u=Ye.createEvent("Event"),u.initEvent("change",!0,!0)),a.dispatchEvent(u)})}return r.handleTracksChange(),r}i(t,e);var n=t.prototype;return n.handleClick=function(t){var n=this.track.kind,r=this.track.kinds,i=this.player_.textTracks();if(r||(r=[n]),e.prototype.handleClick.call(this,t),i)for(var a=0;a<i.length;a++){var o=i[a];o===this.track&&r.indexOf(o.kind)>-1?"showing"!==o.mode&&(o.mode="showing"):"disabled"!==o.mode&&(o.mode="disabled")}},n.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},n.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},n.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(Zr);Ft.registerComponent("TextTrackMenuItem",Jr);var ei=function(e){function t(t,n){return n.track={player:t,kind:n.kind,kinds:n.kinds,"default":!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,e.call(this,t,n)||this}i(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,r=0,i=t.length;r<i;r++){var a=t[r];if(this.options_.kinds.indexOf(a.kind)>-1&&"showing"===a.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,r=0,i=t.length;r<i;r++){var a=t[r];if(["captions","descriptions","subtitles"].indexOf(a.kind)>-1&&"showing"===a.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(Jr);Ft.registerComponent("OffTextTrackMenuItem",ei);var ti=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.textTracks(),e.call(this,t,n)||this}i(t,e);var n=t.prototype;return n.createItems=function(e,t){void 0===e&&(e=[]),void 0===t&&(t=Jr);var n;this.label_&&(n=this.label_+" off"),e.push(new ei(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var i=0;i<r.length;i++){var a=r[i];if(this.kinds_.indexOf(a.kind)>-1){var o=new t(this.player_,{track:a,selectable:!0,multiSelectable:!1});o.addClass("vjs-"+a.kind+"-menu-item"),e.push(o)}}return e},t}(Qr);Ft.registerComponent("TextTrackButton",ti);var ni=function(e){function t(t,n){var r,i=n.track,a=n.cue,o=t.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=a.text,n.selected=a.startTime<=o&&o<a.endTime,r=e.call(this,t,n)||this,r.track=i,r.cue=a,i.addEventListener("cuechange",Dt(l(l(r)),r.update)),r}i(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},n.update=function(e){var t=this.cue,n=this.player_.currentTime();this.selected(t.startTime<=n&&n<t.endTime)},t}(Zr);Ft.registerComponent("ChaptersTrackMenuItem",ni);var ri=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}i(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},n.update=function(t){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChapter
vendor: 17,482 bytes, line 71
71sTrack()),e.prototype.update.call(this)},n.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_)}}},n.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(le(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},n.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,r=t.length;n<r;n++){var i=t[n],a=new ni(this.player_,{track:this.track_,cue:i});e.push(a)}return e},t}(ti);ri.prototype.kind_="chapters",ri.prototype.controlText_="Chapters",Ft.registerComponent("ChaptersButton",ri);var ii=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var a=t.textTracks(),o=Dt(l(l(i)),i.handleTracksChange);return a.addEventListener("change",o),i.on("dispose",function(){a.removeEventListener("change",o)}),i}i(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,r=0,i=t.length;r<i;r++){var a=t[r];if(a.kind!==this.kind_&&"showing"===a.mode){n=!0;break}}n?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(ti);ii.prototype.kind_="descriptions",ii.prototype.controlText_="Descriptions",Ft.registerComponent("DescriptionsButton",ii);var ai=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}i(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(ti);ai.prototype.kind_="subtitles",ai.prototype.controlText_="Subtitles",Ft.registerComponent("SubtitlesButton",ai);var oi=function(e){function t(t,n){var r;return n.track={player:t,kind:n.kind,label:n.kind+" settings",selectable:!1,"default":!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",r=e.call(this,t,n)||this,r.addClass("vjs-texttrack-settings"),r.controlText(", opens "+n.kind+" settings dialog"),r}i(t,e);var n=t.prototype;return n.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(Jr);Ft.registerComponent("CaptionSettingsMenuItem",oi);var si=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}i(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new oi(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(ti);si.prototype.kind_="captions",si.prototype.controlText_="Captions",Ft.registerComponent("CaptionsButton",si);var li=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.createEl=function(t,n,r){var i='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);"captions"===this.options_.track.kind&&(i+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Captions")+"</span>\n "),i+="</span>";var a=e.prototype.createEl.call(this,t,p({innerHTML:i},n),r);return a},t}(Jr);Ft.registerComponent("SubsCapsMenuItem",li);var ui=function(e){function t(t,n){var r;return void 0===n&&(n={}),r=e.call(this,t,n)||this,r.label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(r.player_.language_)>-1&&(r.label_="captions"),r.menuButton_.controlText(le(r.label_)),r}i(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new oi(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,li)},t}(ti);ui.prototype.kinds_=["captions","subtitles"],ui.prototype.controlText_="Subtitles",Ft.registerComponent("SubsCapsButton",ui);var ci=function(e){function t(t,n){var r,i=n.track,a=t.audioTracks();n.label=i.label||i.language||"Unknown",n.selected=i.enabled,r=e.call(this,t,n)||this,r.track=i,r.addClass("vjs-"+i.kind+"-menu-item");var o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleTracksChange.apply(l(l(r)),t)};return a.addEventListener("change",o),r.on("dispose",function(){a.removeEventListener("change",o)}),r}i(t,e);var n=t.prototype;return n.createEl=function(t,n,r){var i='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);"main-desc"===this.options_.track.kind&&(i+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Descriptions")+"</span>\n "),i+="</span>";var a=e.prototype.createEl.call(this,t,p({innerHTML:i},n),r);return a},n.handleClick=function(t){var n=this.player_.audioTracks();e.prototype.handleClick.call(this,t);for(var r=0;r<n.length;r++){var i=n[r];i.enabled=i===this.track}},n.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(Zr);Ft.registerComponent("AudioTrackMenuItem",ci);var di=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.audioTracks(),e.call(this,t,n)||this}i(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),n=0;n<t.length;n++){var r=t[n];e.push(new ci(this.player_,{track:r,selectable:!0,multiSelectable:!1}))}return e},t}(Qr);di.prototype.controlText_="Audio Track",Ft.registerComponent("AudioTrackButton",di);var hi=function(e){function t(t,n){var r,i=n.rate,a=parseFloat(i,10);return n.label=i,n.selected=1===a,n.selectable=!0,n.multiSelectable=!1,r=e.call(this,t,n)||this,r.label=i,r.rate=a,r.on(t,"ratechange",r.update),r}i(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(Zr);hi.prototype.contentElType="button",Ft.registerComponent("PlaybackRateMenuItem",hi);var pi=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.updateVisibility(),r.updateLabel(),r.on(t,"loadstart",r.updateVisibility),r.on(t,"ratechange",r.updateLabel),r}i(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelEl_=C("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),t.appendChild(this.labelEl_),t},n.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},n.createMenu=function(){var e=new Xr(this.player()),t=this.playbackRates();if(t)for(var n=t.length-1;n>=0;n--)e.addChild(new hi(this.player(),{rate:t[n]+"x"}));return e},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(e){for(var t=this.player().playbackRate(),n=this.playbackRates(),r=n[0],i=0;i<n.length;i++)if(n[i]>t){r=n[i];break}this.player().playbackRate(r)},n.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},t}(Kr);pi.prototype.controlText_="Playback Rate",Ft.registerComponent("PlaybackRateMenuButton",pi);var fi=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(Ft);Ft.registerComponent("Spacer",fi);var gi=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){var t=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML="Â ",t},t}(fi);Ft.registerComponent("CustomControlSpacer",gi);var mi=function(e){function t(){return e.apply(this,arguments)||this}i(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(Ft);mi.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},Ft.registerComponent("ControlBar",mi);var vi=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,r.on(t,"error",r.open),r}i(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},n.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(En);vi.prototype.options_=ce(En.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Ft.registerComponent("ErrorDisplay",vi);var yi="vjs-text-track-settings",_i=["#000","Black"],bi=["#00F","Blue"],Ti=["#0FF","Cyan"],Ei=["#0F0","Green"],Si=["#F0F","Magenta"],wi=["#F00","Red"],Ci=["#FFF","White"],ki=["#FF0","Yellow"],Di=["1","Opaque"],xi=["0.5","Semi-Transparent"],Ai=["0","Transparent"],Ii={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[_i,Ci,wi,Ei,bi,ki,Si,Ti]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[Di,xi,Ai]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[Ci,_i,wi,Ei,bi,ki,Si,Ti]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],"default":2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[Di,xi]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[Ai,xi,Di]}};Ii.windowColor.options=Ii.backgroundColor.options;var Oi=function(e){function t(t,n){var r;return n.temporary=!1,r=e.call(this,t,n)||this,r.updateDisplay=Dt(l(l(r)),r.updateDisplay),r.fill(),r.hasBeenOpened_=r.hasBeenFilled_=!0,r.endDialog=C("p",{className:"vjs-control-text",textContent:r.localize("End of dialog window.")}),r.el().appendChild(r.endDialog),r.setDefaults(),void 0===n.persistTextTrackSettings&&(r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings),r.on(r.$(".vjs-done-button"),"click",function(){r.saveSettings(),r.close()}),r.on(r.$(".vjs-default-button"),"click",function(){r.setDefaults(),r.updateDisplay()}),d(Ii,function(e){r.on(r.$(e.selector),"change",r.updateDisplay)}),r.options_.persistTextTrackSettings&&r.restoreSettings(),r}i(t,e);var n=t.prototype;return n.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},n.createElSelect_=function(e,t,n){var r=this;void 0===t&&(t=""),void 0===n&&(n="label");var i=Ii[e],a=i.id.replace("%s",this.id_),o=[t,a].join(" ").trim();return["<"+n+' id="'+a+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(i.label),"</"+n+">",'<select aria-labelledby="'+o+'">'].concat(i.options.map(function(e){var t=a+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+o+" "+t+'">',r.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")},n.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return C("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return C("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},n.createElControls_=function(){var e=this.localize("restore all settings to the default values");return C("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var e=this;return h(Ii,function(t,n,r){var i=He(e.$(n.selector),n.parser);return void 0!==i&&(t[r]=i),t},{})},n.setValues=function(e){var t=this;d(Ii,function(n,r){je(t.$(n.selector),e[r],n.parser)})},n.setDefaults=function(){var e=this;d(Ii,function(t){var n=t.hasOwnProperty("default")?t["default"]:0;e.$(t.selector).selectedIndex=n})},n.restoreSettings=function(){var e;try{e=JSON.parse(Ge.localStorage.getItem(yi))}catch(t){ut.warn(t)}e&&this.setValues(e)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?Ge.localStorage.setItem(yi,JSON.stringify(e)):Ge.localStorage.removeItem(yi)}catch(t){ut.warn(t)}}},n.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null,this.off(Ye,"keydown",this.handleKeyDown);var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;
71t?t.focus():n&&n.focus()},t}(En);Ft.registerComponent("TextTrackSettings",Oi);var Pi=function(e){function t(t,n){var r,i=n.ResizeObserver||Ge.ResizeObserver;null===n.ResizeObserver&&(i=!1);var a=ce({createEl:!i,reportTouchActivity:!1},n);return r=e.call(this,t,a)||this,r.ResizeObserver=n.ResizeObserver||Ge.ResizeObserver,r.loadListener_=null,r.resizeObserver_=null,r.debouncedHandler_=At(function(){r.resizeHandler()},100,!1,l(l(r))),i?(r.resizeObserver_=new r.ResizeObserver(r.debouncedHandler_),r.resizeObserver_.observe(t.el())):(r.loadListener_=function(){r.el_&&r.el_.contentWindow&&te(r.el_.contentWindow,"resize",r.debouncedHandler_)},r.one("load",r.loadListener_)),r}i(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager"})},n.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},n.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.el_&&this.el_.contentWindow&&ne(this.el_.contentWindow,"resize",this.debouncedHandler_),this.loadListener_&&this.off("load",this.loadListener_),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null},t}(Ft);Ft.registerComponent("ResizeManager",Pi);var Mi=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),r=[],i="";if(!n.length)return!1;for(var a=0;a<n.length;a++){var o=n[a].src;o&&r.indexOf(o)===-1&&r.push(o)}return!!r.length&&(1===r.length&&(i=r[0]),e.triggerSourceset(i),!0)},Ri=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=Ye.createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var n=Ye.createDocumentFragment();t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",Ge.Element.prototype.appendChild.call(this,n),this.innerHTML}}),Li=function(e,t){for(var n={},r=0;r<e.length&&(n=Object.getOwnPropertyDescriptor(e[r],t),!(n&&n.set&&n.get));r++);return n.enumerable=!0,n.configurable=!0,n},Ni=function(e){return Li([e.el(),Ge.HTMLMediaElement.prototype,Ge.Element.prototype,Ri],"innerHTML")},Ui=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},r=Ni(e),i=function(n){return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=n.apply(t,i);return Mi(e),o}};["append","appendChild","insertAdjacentHTML"].forEach(function(e){t[e]&&(n[e]=t[e],t[e]=i(n[e]))}),Object.defineProperty(t,"innerHTML",ce(r,{set:i(r.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(n).forEach(function(e){t[e]=n[e]}),Object.defineProperty(t,"innerHTML",r)},e.one("sourceset",t.resetSourceWatch_)}},Hi=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?Hn(Ge.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return Ge.Element.prototype.setAttribute.call(this,"src",e),e}}),ji=function(e){return Li([e.el(),Ge.HTMLMediaElement.prototype,Hi],"src")},Bi=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=ji(e),r=t.setAttribute,i=t.load;Object.defineProperty(t,"src",ce(n,{set:function(r){var i=n.set.call(t,r);return e.triggerSourceset(t.src),i}})),t.setAttribute=function(n,i){var a=r.call(t,n,i);return/src/i.test(n)&&e.triggerSourceset(t.src),a},t.load=function(){var n=i.call(t);return Mi(e)||(e.triggerSourceset(""),Ui(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):Mi(e)||Ui(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=i,t.setAttribute=r,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},Fi=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i=t.source,a=!1;if(i&&(r.el_.currentSrc!==i.src||t.tag&&3===t.tag.initNetworkState_)?r.setSource(i):r.handleLateInit_(r.el_),t.enableSourceset&&r.setupSourcesetHandling_(),r.el_.hasChildNodes()){for(var o=r.el_.childNodes,s=o.length,l=[];s--;){var u=o[s],c=u.nodeName.toLowerCase();"track"===c&&(r.featuresNativeTextTracks?(r.remoteTextTrackEls().addTrackElement_(u),r.remoteTextTracks().addTrack(u.track),r.textTracks().addTrack(u.track),a||r.el_.hasAttribute("crossorigin")||!Bn(u.src)||(a=!0)):l.push(u))}for(var d=0;d<l.length;d++)r.el_.removeChild(l[d])}return r.proxyNativeTracks_(),r.featuresNativeTextTracks&&a&&ut.warn(Xe(Be())),r.restoreMetadataTracksInIOSNativePlayer_(),(ln||Gt||Jt)&&t.nativeControlsForTouch===!0&&r.setControls(!0),r.proxyWebkitFullscreen_(),r.triggerReady(),r}i(t,e);var n=t.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.dis
vendor: 6,770 bytes, lines 71-72
71poseMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){Bi(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){var e,t=this.textTracks(),n=function(){e=[];for(var n=0;n<t.length;n++){var r=t[n];"metadata"===r.kind&&e.push({track:r,storedMode:r.mode})}};n(),t.addEventListener("change",n),this.on("dispose",function(){return t.removeEventListener("change",n)});var r=function i(){for(var n=0;n<e.length;n++){var r=e[n];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}t.removeEventListener("change",i)};this.on("webkitbeginfullscreen",function(){t.removeEventListener("change",n),t.removeEventListener("change",r),t.addEventListener("change",r)}),this.on("webkitendfullscreen",function(){t.removeEventListener("change",n),t.addEventListener("change",n),t.removeEventListener("change",r)})},n.overrideNative_=function(e,t){var n=this;if(t===this["featuresNative"+e+"Tracks"]){var r=e.toLowerCase();this[r+"TracksListeners_"]&&Object.keys(this[r+"TracksListeners_"]).forEach(function(e){var t=n.el()[r+"Tracks"];t.removeEventListener(e,n[r+"TracksListeners_"][e])}),this["featuresNative"+e+"Tracks"]=!t,this[r+"TracksListeners_"]=null,this.proxyNativeTracksForType_(r)}},n.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},n.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},n.proxyNativeTracksForType_=function(e){var t=this,n=Zn[e],r=this.el()[n.getterName],i=this[n.getterName]();if(this["featuresNative"+n.capitalName+"Tracks"]&&r&&r.addEventListener){var a={change:function(e){i.trigger({type:"change",target:i,currentTarget:i,srcElement:i})},addtrack:function(e){i.addTrack(e.track)},removetrack:function(e){i.removeTrack(e.track)}},o=function(){for(var e=[],t=0;t<i.length;t++){for(var n=!1,a=0;a<r.length;a++)if(r[a]===i[t]){n=!0;break}n||e.push(i[t])}for(;e.length;)i.removeTrack(e.shift())};this[n.getterName+"Listeners_"]=a,Object.keys(a).forEach(function(e){var n=a[e];r.addEventListener(e,n),t.on("dispose",function(t){return r.removeEventListener(e,n)})}),this.on("loadstart",o),this.on("dispose",function(e){return t.off("loadstart",o)})}},n.proxyNativeTracks_=function(){var e=this;Zn.names.forEach(function(t){e.proxyNativeTracksForType_(t)})},n.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=Ye.createElement("video");var r=this.options_.tag&&M(this.options_.tag),i=ce({},r);ln&&this.options_.nativeControlsForTouch===!0||delete i.controls,P(e,p(i,{id:this.options_.techId,"class":"vjs-tech"}))}e.playerId=this.options_.playerId}"undefined"!=typeof this.options_.preload&&L(e,"preload",this.options_.preload);for(var a=["loop","muted","playsinline","autoplay"],o=0;o<a.length;o++){var s=a[o],l=this.options_[s];"undefined"!=typeof l&&(l?L(e,s,s):N(e,s),e[s]=l)}return e},n.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,n=function(){t=!0};this.on("loadstart",n);var r=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",r),void this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",r),t||this.trigger("loadstart")})}var i=["loadstart"];i.push("loadedmetadata"),e.readyState>=2&&i.push("loadeddata"),e.readyState>=3&&i.push("canplay"),e.readyState>=4&&i.push("canplaythrough"),this.ready(function(){i.forEach(function(e){this.trigger(e)},this)})}},n.setCurrentTime=function(e){try{this.el_.currentTime=e}catch(t){ut(t,"Video is not ready. (Video.js)")}},n.duration=function(){ 72var e=this;if(this.el_.duration===1/0&&Qt&&nn&&0===this.el_.currentTime){var t=function n(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",n))};return this.on("timeupdate",t),NaN}return this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)})}},n.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=Ge.navigator&&Ge.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},n.enterFullScreen=function(){var e=this.el_;e.paused&&e.networkState<=e.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){e.pause(),e.webkitEnterFullScreen()},0)):e.webkitEnterFullScreen()},n.exitFullScreen=function(){this.el_.webkitExitFullScreen()},n.src=function(e){return void 0===e?this.el_.src:void this.setSrc(e)},n.reset=function(){t.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(e){this.el_.controls=!!e},n.addTextTrack=function(t,n,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,r):e.prototype.addTextTrack.call(this,t,n,r)},n.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=Ye.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t["default"]&&(n["default"]=t["default"]),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},n.addRemoteTextTrack=function(t,n){var r=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(r),r},n.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var n=this.$$("track"),r=n.length;r--;)t!==n[r]&&t!==n[r].track||this.el().removeChild(n[r])},n.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return"undefined"!=typeof this.el().webkitDroppedFrameCount&&"undefined"!=typeof this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),Ge.performance&&"function"==typeof Ge.performance.now?e.creationTime=Ge.performance.now():Ge.performance&&Ge.performance.timing&&"number"==typeof Ge.performance.timing.navigationStart&&(e.creationTime=Ge.Date.now()-Ge.performance.timing.navigationStart),e},t}(tr);
vendor: 4,261 bytes, line 72
72if(T()){Fi.TEST_VID=Ye.createElement("video");var Vi=Ye.createElement("track");Vi.kind="captions",Vi.srclang="en",Vi.label="English",Fi.TEST_VID.appendChild(Vi)}Fi.isSupported=function(){try{Fi.TEST_VID.volume=.5}catch(e){return!1}return!(!Fi.TEST_VID||!Fi.TEST_VID.canPlayType)},Fi.canPlayType=function(e){return Fi.TEST_VID.canPlayType(e)},Fi.canPlaySource=function(e,t){return Fi.canPlayType(e.type)},Fi.canControlVolume=function(){try{var e=Fi.TEST_VID.volume;return Fi.TEST_VID.volume=e/2+.1,e!==Fi.TEST_VID.volume}catch(t){return!1}},Fi.canMuteVolume=function(){try{var e=Fi.TEST_VID.muted;return Fi.TEST_VID.muted=!e,Fi.TEST_VID.muted?L(Fi.TEST_VID,"muted","muted"):N(Fi.TEST_VID,"muted","muted"),e!==Fi.TEST_VID.muted}catch(t){return!1}},Fi.canControlPlaybackRate=function(){if(Qt&&nn&&rn<58)return!1;try{var e=Fi.TEST_VID.playbackRate;return Fi.TEST_VID.playbackRate=e/2+.1,e!==Fi.TEST_VID.playbackRate}catch(t){return!1}},Fi.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(Ye.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(Ye.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(Ye.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(Ye.createElement("audio"),"innerHTML",{get:e,set:e})}catch(t){return!1}return!0},Fi.supportsNativeTextTracks=function(){return sn||Xt&&nn},Fi.supportsNativeVideoTracks=function(){return!(!Fi.TEST_VID||!Fi.TEST_VID.videoTracks)},Fi.supportsNativeAudioTracks=function(){return!(!Fi.TEST_VID||!Fi.TEST_VID.audioTracks)},Fi.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],Fi.prototype.featuresVolumeControl=Fi.canControlVolume(),Fi.prototype.featuresMuteControl=Fi.canMuteVolume(),Fi.prototype.featuresPlaybackRate=Fi.canControlPlaybackRate(),Fi.prototype.featuresSourceset=Fi.canOverrideAttributes(),Fi.prototype.movingMediaElementInDOM=!Xt,Fi.prototype.featuresFullscreenResize=!0,Fi.prototype.featuresProgressEvents=!0,Fi.prototype.featuresTimeupdateEvents=!0,Fi.prototype.featuresNativeTextTracks=Fi.supportsNativeTextTracks(),Fi.prototype.featuresNativeVideoTracks=Fi.supportsNativeVideoTracks(),Fi.prototype.featuresNativeAudioTracks=Fi.supportsNativeAudioTracks();var Wi=Fi.TEST_VID&&Fi.TEST_VID.constructor.prototype.canPlayType,zi=/^application\/(?:x-|vnd\.apple\.)mpegurl/i;Fi.patchCanPlayType=function(){Zt>=4&&!en&&!nn&&(Fi.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&zi.test(e)?"maybe":Wi.call(this,e)})},Fi.unpatchCanPlayType=function(){var e=Fi.TEST_VID.constructor.prototype.canPlayType;return Fi.TEST_VID.constructor.prototype.canPlayType=Wi,e},Fi.patchCanPlayType(),Fi.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&!function(){try{e.load()}catch(t){}}()}},Fi.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),n=t.length;n--;)e.removeChild(t[n]);e.removeAttribute("src"),"function"==typeof e.load&&!function(){try{e.load()}catch(t){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){Fi.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){Fi.prototype["set"+le(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","played","networkState","readyState","videoWidth","videoHeight"].forEach(function(e){Fi.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate"].forEach(function(e){Fi.prototype["set"+le(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){Fi.prototype[e]=function(){return this.el_[e]()}}),tr.withSourceHandlers(Fi),Fi.nativeSourceHandler={},Fi.nativeSourceHandler.canPlayType=function(e){try{return Fi.TEST_
vendor: 4,617 bytes, line 72
72VID.canPlayType(e)}catch(t){return""}},Fi.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Fi.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=jn(e.src);return Fi.nativeSourceHandler.canPlayType("video/"+n)}return""},Fi.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},Fi.nativeSourceHandler.dispose=function(){},Fi.registerSourceHandler(Fi.nativeSourceHandler),tr.registerTech("Html5",Fi);var $i=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],qi={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Gi=["tiny","xsmall","small","medium","large","xlarge","huge"],Yi={};Gi.forEach(function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Yi[e]="vjs-layout-"+t});var Xi={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Ki=function(e){function t(n,r,i){var a;if(n.id=n.id||r.id||"vjs_video_"+Y(),r=p(t.getTagSettings(n),r),r.initChildren=!1,r.createEl=!1,r.evented=!1,r.reportTouchActivity=!1,!r.language)if("function"==typeof n.closest){var o=n.closest("[lang]");o&&o.getAttribute&&(r.language=o.getAttribute("lang"))}else for(var s=n;s&&1===s.nodeType;){if(M(s).hasOwnProperty("lang")){r.language=s.getAttribute("lang");break}s=s.parentNode}if(a=e.call(this,null,r,i)||this,a.log=ct(a.id_),a.isPosterFromTech_=!1,a.queuedCallbacks_=[],a.isReady_=!1,a.hasStarted_=!1,a.userActive_=!1,!a.options_||!a.options_.techOrder||!a.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(a.tag=n,a.tagAttributes=n&&M(n),a.language(a.options_.language),r.languages){var u={};Object.getOwnPropertyNames(r.languages).forEach(function(e){u[e.toLowerCase()]=r.languages[e]}),a.languages_=u}else a.languages_=t.prototype.options_.languages;a.cache_={},a.poster_=r.poster||"",a.controls_=!!r.controls,a.cache_.lastVolume=1,n.controls=!1,n.removeAttribute("controls"),n.hasAttribute("autoplay")?a.options_.autoplay=!0:a.autoplay(a.options_.autoplay),a.scrubbing_=!1,a.el_=a.createEl(),a.cache_.lastPlaybackRate=a.defaultPlaybackRate(),oe(l(l(a)),{eventBusKey:"el_"});var c=ce(a.options_);if(r.plugins){var d=r.plugins;Object.keys(d).forEach(function(e){if("function"!=typeof this[e])throw new Error('plugin "'+e+'" does not exist');this[e](d[e])},l(l(a)))}a.options_.playerOptions=c,a.middleware_=[],a.initChildren(),a.isAudio("audio"===n.nodeName.toLowerCase()),a.controls()?a.addClass("vjs-controls-enabled"):a.addClass("vjs-controls-disabled"),a.el_.setAttribute("role","region"),a.isAudio()?a.el_.setAttribute("aria-label",a.localize("Audio Player")):a.el_.setAttribute("aria-label",a.localize("Video Player")),a.isAudio()&&a.addClass("vjs-audio"),a.flexNotSupported_()&&a.addClass("vjs-no-flex"),Xt||a.addClass("vjs-workinghover"),t.players[a.id_]=l(l(a));var h=ot.split(".")[0];return a.addClass("vjs-v"+h),a.userActive(!0),a.reportUserActivity(),a.one("play",a.listenForUserActivity_),a.on("fullscreenchange",a.handleFullscreenChange_),a.on("stageclick",a.handleStageClick_),a.breakpoints(a.options_.breakpoints),a.responsive(a.options_.responsive),a.changingSrc_=!1,a.playWaitingForReady_=!1,a.playOnLoadstart_=null,a}i(t,e);var n=t.prototype;return n.dispose=function(){this.trigger("dispose"),this.off("dispose"),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),xe(this),e.prototype.dispose.call(this)},n.createEl=function(){var t,n=this.tag,r=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),i="video-js"===this.tag.tagName.toLowerCase();r?t=this.el_=n.parentNode:i||(t=this.el_=e.prototype.createEl.call(this,"div"));var a=M(n);if(i){for(t=this.el_=n,n=this.tag=Ye.createElement("video");t.children.length;)n.appendChild(t.firstChild);x(t,"video-js")||A(t,"video-js"),t.appendChild(n),r=this.playerElIngest_=t,Object.keys(t).forEach(function(e){n[e]=t[e]})}if(n.setAttribute("tabindex","-1"),a.tabindex="-1",an&&(n.setAttribute("role","application"),a.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in a&&delete a.width,"height"in a&&delete a.height,Object.getOwnPropertyNames(a).forEac
72h(function(e){i&&"class"===e||t.setAttribute(e,a[e]),i&&n.setAttribute(e,a[e])}),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=t.player=this,this.addClass("vjs-paused"),Ge.VIDEOJS_NO_DYNAMIC_STYLE!==!0){this.styleEl_=Ct("vjs-styles-dimensions");var o=pt(".vjs-styles-defaults"),s=pt("head");s.insertBefore(this.styleEl_,o?o.nextSibling:s.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio);for(var l=n.getElementsByTagName("a"),u=0;u<l.length;u++){var c=l.item(u);A(c,"vjs-hidden"),c.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!r&&n.parentNode.insertBefore(t,n),D(n,t),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_=t,t},n.width=function(e){return this.dimension("width",e)},n.height=function(e){return this.dimension("height",e)},n.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t)return this[n]=void 0,void this.updateStyleEl_();var r=parseFloat(t);return isNaN(r)?void ut.error('Improper value "'+t+'" supplied for for '+e):(this[n]=r,void this.updateStyleEl_())},n.fluid=function(e){return void 0===e?!!this.fluid_:(this.fluid_=!!e,e?(this.addClass("vjs-fluid"),this.fill(!1)):this.removeClass("vjs-fluid"),void this.updateStyleEl_())},n.fill=function(e){return void 0===e?!!this.fill_:(this.fill_=!!e,void(e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")))},n.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},n.updateStyleEl_=function(){if(Ge.VIDEOJS_NO_DYNAMIC_STYLE===!0){var e="number"==typeof this.width_?this.width_:this.options_.width,t="number"==typeof this.height_?this.height_:this.options_.height,n=this.tech_&&this.tech_.el();return void(n&&(e>=0&&(n.width=e),t>=0&&(n.height=t)))}var r,i,a,o;a=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";var s=a.split(":"),l=s[1]/s[0];r=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/l:this.videoWidth()||300,i=void 0!==this.height_?this.height_:r*l,o=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(o),kt(this.styleEl_,"\n ."+o+" {\n width: "+r+"px;\n height: "+i+"px;\n }\n\n ."+o+".vjs-fluid {\n padding-top: "+100*l+"%;\n }\n ")},n.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_();var r=le(e),i=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==r&&this.tag&&(tr.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=r,this.isReady_=!1;var a="string"!=typeof this.autoplay()&&this.autoplay(),o={source:t,autoplay:a,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+i+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};er.names.forEach(function(e){var t=er[e];o[t.getterName]=n[t.privateName]}),p(o,this.options_[r]),p(o,this.options_[i]),p(o,this.options_[e.toLowerCase()]),this.tag&&(o.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(o.startTime=this.cache_.currentTime);var s=tr.getTech(e);if(!s)throw new Error("No Tech named '"+r+"' exists! '"+r+"' should be registered using videojs.registerTech()'");this.tech_=new s(o),this.tech_.ready(Dt(this,this.handleTechReady_),!0),_n.jsonToTextTracks(this.textTracksJson_||[],this.tech_),$i.forEach(function(e){n.on(n.tech_,e,n["handleTech"+le(e)+"_"])}
72),Object.keys(qi).forEach(function(e){n.on(n.tech_,e,function(t){return 0===n.tech_.playbackRate()&&n.tech_.seeking()?void n.queuedCallbacks_.push({callback:n["handleTech"+qi[e]+"_"].bind(n),event:t}):void n["handleTech"+qi[e]+"_"](t)})}),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"sourceset",this.handleTechSourceset_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===r&&this.tag||D(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},n.unloadTech_=function(){var e=this;er.names.forEach(function(t){var n=er[t];e[n.privateName]=e[n.getterName]()}),this.textTracksJson_=_n.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},n.tech=function(e){return void 0===e&&ut.warn(Xe(Fe())),this.tech_},n.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mousedown",this.handleTechClick_),this.on(this.tech_,"dblclick",this.handleTechDoubleClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},n.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mousedown",this.handleTechClick_),this.off(this.tech_,"dblclick",this.handleTechDoubleClick_)},n.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},n.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay())},n.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"==typeof e){var n,r=function(){var e=t.muted();t.muted(!0);var n=t.play();if(n&&n.then&&n["catch"])return n["catch"](function(n){t.muted(e)})};if("any"===e?(n=this.play(),n&&n.then&&n["catch"]&&n["catch"](function(){return r()})):n="muted"===e?r():this.play(),n&&n.then&&n["catch"])return n.then(function(){t.trigger({type:"autoplay-success",autoplay:e})})["catch"](function(n){t.trigger({type:"autoplay-failure",autoplay:e})})}},n.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,n="";"string"!=typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=cr(this,t)),this.cache_.source=ce({},e,{src:t,type:n});for(var r=this.cache_.sources.filter(function(e){return e.src&&e.src===t}),i=[],a=this.$$("source"),o=[],s=0;s<a.length;s++){var l=M(a[s]);i.push(l),l.src&&l.src===t&&o.push(l.src)}o.length&&!r.length?this.cache_.sources=i:r.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},n.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var n=function(e){return t.updateSourceCaches_(e)},r=this.currentSource().src,i=e.src;if(r&&!/^blob:/.test(r)&&/^blob:/.test(i)&&(!this.lastSource_||this.lastSource_.tech!==i&&this.lastSource_.player!==r)&&(n=function(){}),n(i),!e.src){var a=function o(e){if("sourceset"!==e.type){var n=t.techGet("currentSrc");t.lastSource_.tech=n,t.updateSourceCaches_(n)}t.tech_.off(["sourceset","loadstart"],o)};this.tech_.one(["sourceset","loadstart"],a)}}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},n.hasStarted=function(e){return void 0===e?this.hasStarted_:void(e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")))},n.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},n.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},n.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting"),this.one("timeupdate",function(){return e.removeClass("vjs-waiting")})},n.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},n.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},n.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},n.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},n.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.trigger("seeked")},n.handleTechFirstPlay_=function(){this.options_.starttime&&(ut.warn("Passing the `starttime` option to the player will be deprecated
72in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},n.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},n.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},n.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},n.handleTechClick_=function(e){G(e)&&this.controls_&&(this.paused()?ye(this.play()):this.pause())},n.handleTechDoubleClick_=function(e){if(this.controls_){var t=Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(t){return t.contains(e.target)});t||(this.isFullscreen()?this.exitFullscreen():this.requestFullscreen())}},n.handleTechTap_=function(){this.userActive(!this.userActive())},n.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},n.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},n.handleTechTouchEnd_=function(e){e.preventDefault()},n.handleFullscreenChange_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},n.handleStageClick_=function(){this.reportUserActivity()},n.handleTechFullscreenChange_=function(e,t){t&&this.isFullscreen(t.isFullscreen),this.trigger("fullscreenchange")},n.handleTechError_=function(){var e=this.tech_.error();this.error(e)},n.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},n.getCache=function(){return this.cache_},n.techCall_=function(e,t){this.ready(function(){if(e in or)return we(this.middleware_,this.tech_,e,t);if(e in sr)return Ce(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(n){throw ut(n),n}},!0)},n.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in ar)return Se(this.middleware_,this.tech_,e);if(e in sr)return Ce(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw ut("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw ut("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw ut(t),t}}},n.play=function(){var e=this,t=this.options_.Promise||Ge.Promise;return t?new t(function(t){e.play_(t)}):this.play_()},n.play_=function(e){var t=this;if(void 0===e&&(e=ye),this.playOnLoadstart_&&this.off("loadstart",this.playOnLoadstart_),this.isReady_){if(!this.changingSrc_&&(this.src()||this.currentSrc()))return void e(this.techGet_("play"));this.playOnLoadstart_=function(){t.playOnLoadstart_=null,e(t.play())},this.one("loadstart",this.playOnLoadstart_)}else{if(this.playWaitingForReady_)return;this.playWaitingForReady_=!0,this.ready(function(){t.playWaitingForReady_=!1,e(t.play())})}},n.pause=function(){this.techCall_("pause")},n.paused=function(){return this.techGet_("paused")!==!1},n.played=function(){return this.techGet_("played")||fe(0,0)},n.scrubbing=function(e){return"undefined"==typeof e?this.scrubbing_:(this.scrubbing_=!!e,void(e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")))},n.currentTime=function(e){return"undefined"!=typeof e?(e<0&&(e=0),void this.techCall_("setCurrentTime",e)):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},n.duration=function(e){return void 0===e?void 0!==this.cache_.duration?this.cache_.duration:NaN:(e=parseFloat(e),e<0&&(e=1/0),void(e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),this.trigger("durationchange"))))},n.remainingTime=function(){return this.duration()-this.currentTime()},n.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},n.buffered=function r(){var r=this.techGet_("buffered");return r&&r.length||(r=fe(0,0)),r},n.bufferedPercent=function(){return ge(this.buffered(),this.duration())},n.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},n.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},n.muted=function(e){return void 0!==e?void this.techCall_("setMuted",e):this.techGet_("muted")||!1},n.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},n.lastVolume_=function(e){return void 0!==e&&0!==e?void(this.cache_.lastVolume=e):this.cache_.lastVolume},n.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},n.isFullscreen=function(e){return void 0!==e?void(this.isFullscreen_=!!e):!!this.isFullscreen_},n.requestFullscreen=function(){var e=cn;this.isFullscreen(!0),e.requestFullscreen?(te(Ye,e.fullscreenchange,Dt(this,function t(n){this.isFullscreen(Ye[e.fullscreenElement]),this.isFullscreen()===!1&&ne(Ye,e.fullscreenchange,t),this.trigger("fullscreenchange")})),this.el_[e.requestFullscreen]()):this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):(this.enterFullWindow(),this.trigger("fullscreenchange"))},n.exitFullscreen=function(){var e=cn;this.isFullscreen(!1),e.requestFullscreen?Ye[e.exitFullscreen]():this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):(this.exitFullWindow(),this.trigger("fullscreenchange"))},n.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=Ye.documentElement.style.overflow,te(Ye,"keydown",Dt(this,this.fullWindowOnEscKey)),Ye.documentElement.style.overflow="hidden",A(Ye.body,"vjs-full-window"),this.trigger("enterFullWindow")}
72,n.fullWindowOnEscKey=function(e){27===e.keyCode&&(this.isFullscreen()===!0?this.exitFullscreen():this.exitFullWindow())},n.exitFullWindow=function(){this.isFullWindow=!1,ne(Ye,"keydown",this.fullWindowOnEscKey),Ye.documentElement.style.overflow=this.docOrigOverflow,I(Ye.body,"vjs-full-window"),this.trigger("exitFullWindow")},n.canPlayType=function(e){for(var t,n=0,r=this.options_.techOrder;n<r.length;n++){var i=r[n],a=tr.getTech(i);if(a||(a=Ft.getComponent(i)),a){if(a.isSupported()&&(t=a.canPlayType(e)))return t}else ut.error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.')}return""},n.selectSource=function(e){var t,n=this,r=this.options_.techOrder.map(function(e){return[e,tr.getTech(e)]}).filter(function(e){var t=e[0],n=e[1];return n?n.isSupported():(ut.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),i=function(e,t,n){var r;return e.some(function(e){return t.some(function(t){if(r=n(e,t))return!0})}),r},a=function(e){return function(t,n){return e(n,t)}},o=function(e,t){var r=e[0],i=e[1];if(i.canPlaySource(t,n.options_[r.toLowerCase()]))return{source:t,tech:r}};return t=this.options_.sourceOrder?i(e,r,a(o)):i(r,e,o),t||!1},n.src=function(e){var t=this;if("undefined"==typeof e)return this.cache_.src||"";var n=dr(e);return n.length?(this.changingSrc_=!0,this.cache_.sources=n,this.updateSourceCaches_(n[0]),void Te(this,n[0],function(e,r){t.middleware_=r,t.cache_.sources=n,t.updateSourceCaches_(e);var i=t.src_(e);return i?n.length>1?t.src(n.slice(1)):(t.changingSrc_=!1,t.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void t.triggerReady()):void Ee(r,t.tech_)})):void this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)},n.src_=function(e){var t=this,n=this.selectSource([e]);return!n||(ue(n.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1):(this.changingSrc_=!0,this.loadTech_(n.tech,n.source),this.tech_.ready(function(){t.changingSrc_=!1}),!1))},n.load=function(){this.techCall_("load")},n.reset=function(){this.tech_&&this.tech_.clearTracks("text"),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset")},n.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},n.currentSource=function(){return this.cache_.source||{}},n.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},n.currentType=function(){return this.currentSource()&&this.currentSource().type||""},n.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},n.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"==typeof e&&/(any|play|muted)/.test(e)?(this.options_.autoplay=e,this.manualAutoplay_(e),t=!1):e?this.options_.autoplay=!0:this.options_.autoplay=!1,t=t||this.options_.autoplay,this.tech_&&this.techCall_("setAutoplay",t)},n.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},n.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},n.poster=function(e){return void 0===e?this.poster_:(e||(e=""),void(e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))))},n.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},n.controls=function(e){return void 0===e?!!this.controls_:(e=!!e,void(this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"), 73this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControl
73sListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))))},n.usingNativeControls=function(e){return void 0===e?!!this.usingNativeControls_:(e=!!e,void(this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))))},n.error=function(e){return void 0===e?this.error_||null:null===e?(this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close())):(this.error_=new me(e),this.addClass("vjs-error"),ut.error("(CODE:"+this.error_.code+" "+me.errorTypes[this.error_.code]+")",this.error_.message,this.error_),void this.trigger("error"))},n.reportUserActivity=function(e){this.userActivity_=!0},n.userActive=function(e){if(void 0===e)return this.userActive_;if(e=!!e,e!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},n.listenForUserActivity_=function(){var e,t,n,r=Dt(this,this.reportUserActivity),i=function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,r())},a=function(){r(),this.clearInterval(e),e=this.setInterval(r,250)},o=function(t){r(),this.clearInterval(e)};this.on("mousedown",a),this.on("mousemove",i),this.on("mouseup",o),this.on("keydown",r),this.on("keyup",r);var s;this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(s);var e=this.options_.inactivityTimeout;e<=0||(s=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))}},250)},n.playbackRate=function(e){return void 0!==e?void this.techCall_("setPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1},n.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},n.isAudio=function(e){return void 0!==e?void(this.isAudio_=!!e):!!this.isAudio_},n.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},n.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},n.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e,n=t.track;if(n||(n=e),this.tech_)return this.tech_.removeRemoteTextTrack(n)},n.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},n.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},n.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},n.language=function(e){return void 0===e?this.language_:void(this.language_=String(e).toLowerCase())},n.languages=function(){return ce(t.prototype.options_.languages,this.languages_)},n.toJSON=function(){var e=ce(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var r=t[n];r=ce(r),r.player=void 0,e.tracks[n]=r}return e},n.createModal=function(e,t){var n=this;t=t||{},t.content=e||"";var r=new En(this,t);return this.addChild(r),r.on("dispose",function(){n.removeChild(r)}),r.open(),r},n.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<Gi.length;n++){var r=Gi[n],i=this.breakpoints_[r];if(t<=i){if(e===r)return;e&&this.removeClass(Yi[e]),this.addClass(Yi[r]),this.breakpoint_=r;break}}},n.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},n.breakpoints=function(e){return void 0===e?p(this.breakpoints_):(this.breakpoint_="",this.breakpoints_=p({},Xi,e),this.updateCurrentBreakpoint_(),p(this.breakpoints_))},n.responsive=function(e){if(void 0===e)return this.responsive_;e=Boolean(e);var t=this.responsive_;if(e!==t)return this.responsive_=e,e?(this.on("playerresize",this.updateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.updateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e},n.currentBreakpoint=function(){return this.breakpoint_},n.currentBreakpointClass=function(){return Yi[this.breakpoint_]||""},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=M(e),r=n["data-setup"];if(x(e,"vjs-fill")&&(n.fill=!0),x(e,"vjs-fluid")&&(n.fluid=!0),null!==r){var i=Ze(r||"{}"),a=i[0],o=i[1];a&&ut.error(a),p(n,o)}if(p(t,n),e.hasChildNodes())for(var s=e.childNodes,l=0,u=s.length;l<u;l++){var c=s[l],d=c.nodeName.toLowerCase();"source"===d?t.sources.push(M(c)):"track"===d&&t.tracks.push(M(c))}return t},n.flexNotSupported_=function(){var e=Ye.createElement("i");
vendor: 5,014 bytes, line 73
73return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},t}(Ft);er.names.forEach(function(e){var t=er[e];Ki.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),Ki.players={};var Qi=Ge.navigator;Ki.prototype.options_={techOrder:tr.defaultTechOrder_,html5:{},flash:{},inactivityTimeout:2e3,playbackRates:[],children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Qi&&(Qi.languages&&Qi.languages[0]||Qi.userLanguage||Qi.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",breakpoints:{},responsive:!1},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){Ki.prototype[e]=function(){return this.techGet_(e)}}),$i.forEach(function(e){Ki.prototype["handleTech"+le(e)+"_"]=function(){return this.trigger(e)}}),Ft.registerComponent("Player",Ki);var Zi="plugin",Ji="activePlugins_",ea={},ta=function(e){return ea.hasOwnProperty(e)},na=function(e){return ta(e)?ea[e]:void 0},ra=function(e,t){e[Ji]=e[Ji]||{},e[Ji][t]=!0},ia=function(e,t,n){var r=(n?"before":"")+"pluginsetup";e.trigger(r,t),e.trigger(r+":"+t.name,t)},aa=function(e,t){var n=function(){ia(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return ra(this,e),ia(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach(function(e){n[e]=t[e]}),n},oa=function(e,t){return t.prototype.name=e,function(){ia(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var a=s(t,[this].concat(r));return this[e]=function(){return a},ia(this,a.getEventHash()),a}},sa=function(){function e(t){if(this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,oe(this),delete this.trigger,se(this,this.constructor.defaultState),ra(t,this.name),this.dispose=Dt(this,this.dispose),t.on("dispose",this.dispose)}var t=e.prototype;return t.version=function(){return this.constructor.VERSION},t.getEventHash=function(e){return void 0===e&&(e={}),e.name=this.name,e.plugin=this.constructor,e.instance=this,e},t.trigger=function(e,t){return void 0===t&&(t={}),re(this.eventBusEl_,e,this.getEventHash(t))},t.handleStateChanged=function(e){},t.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[Ji][e]=!1,this.player=this.state=null,t[e]=oa(e,ea[e])},e.isBasic=function(t){var n="string"==typeof t?na(t):t;return"function"==typeof n&&!e.prototype.isPrototypeOf(n.prototype)},e.registerPlugin=function(t,n){if("string"!=typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+typeof t+".");if(ta(t))ut.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(Ki.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+typeof n+".");return ea[t]=n,t!==Zi&&(e.isBasic(n)?Ki.prototype[t]=aa(t,n):Ki.prototype[t]=oa(t,n)),n},e.deregisterPlugin=function(e){if(e===Zi)throw new Error("Cannot de-register base plugin.");ta(e)&&(delete ea[e],delete Ki.prototype[e])},e.getPlugins=function(e){void 0===e&&(e=Object.keys(ea));var t;return e.forEach(function(e){var n=na(e);n&&(t=t||{},t[e]=n)}),t},e.getPluginVersion=function(e){var t=na(e);return t&&t.VERSION||""},e}();sa.getPlugin=na,sa.BASE_PLUGIN_NAME=Zi,sa.registerPlugin(Zi,sa),Ki.prototype.usingPlugin=function(e){return!!this[Ji]&&this[Ji][e]===!0},Ki.prototype.hasPlugin=function(e){return!!ta(e)};var la=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&&(e.super_=t)},ua=function(e,t){void 0===t&&(t={});var n=function(){e.apply(this,arguments)},r={};"object"==typeof t?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),r=t):"function"==typeof t&&(n=t),la(n,e);for(var i in r)r.hasOwnProperty(i)&&(n.prototype[i]=r[i]);return n},ca=function(e){return 0===e.indexOf("#")?e.slice(1):e};if(Ve.hooks_={},Ve.hooks=function(e,t){return Ve.hooks_[e]=Ve.hooks_[e]||[],t&&(Ve.hooks_[e]=Ve.hooks_[e].concat(t)),Ve.hooks_[e]},Ve.hook=function(e,t){Ve.hooks(e,t)},Ve.hookOnce=function(e,t){Ve.hooks(e,[].concat(t).map(function(t){var n=function r(){return Ve.removeHook(e,r),t.apply(void 0,arguments)};return n}))},Ve.removeHook=function(e,t){var n=Ve.hooks(e).indexOf(t);return!(n<=-1)&&(Ve.hooks_[e]=Ve.hooks_[e].slice(),Ve.hooks_[e].splice(n,1),!0)},Ge.VIDEOJS_NO_DYNAMIC_STYLE!==!0&&T()){var da=pt(".vjs-styles-defaults");
vendor: 10,993 bytes, lines 73-79
73if(!da){da=Ct("vjs-styles-defaults");var ha=pt("head");ha&&ha.insertBefore(da,ha.firstChild),kt(da,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}ae(1,Ve),Ve.VERSION=ot,Ve.options=Ki.prototype.options_,Ve.getPlayers=function(){return Ki.players},Ve.getPlayer=function(e){var t,n=Ki.players;if("string"==typeof e){var r=ca(e),i=n[r];if(i)return i;t=pt("#"+r)}else t=e;if(E(t)){var a=t,o=a.player,s=a.playerId;if(o||n[s])return o||n[s]}},Ve.getAllPlayers=function(){return Object.keys(Ki.players).map(function(e){return Ki.players[e]}).filter(Boolean)},Ve.players=Ki.players,Ve.getComponent=Ft.getComponent,Ve.registerComponent=function(e,t){tr.isTech(t)&&ut.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Ft.registerComponent.call(Ft,e,t)},Ve.getTech=tr.getTech,Ve.registerTech=tr.registerTech,Ve.use=be,Object.defineProperty(Ve,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(Ve.middleware,"TERMINATOR",{value:ir,writeable:!1,enumerable:!0}),Ve.browser=un,Ve.TOUCH_ENABLED=ln,Ve.extend=ua,Ve.mergeOptions=ce,Ve.bind=Dt,Ve.registerPlugin=sa.registerPlugin,Ve.deregisterPlugin=sa.deregisterPlugin,Ve.plugin=function(e,t){return ut.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),sa.registerPlugin(e,t)},Ve.getPlugins=sa.getPlugins,Ve.getPlugin=sa.getPlugin,Ve.getPluginVersion=sa.getPluginVersion,Ve.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),Ve.options.languages=ce(Ve.options.languages,(n={},n[e]=t,n)),Ve.options.languages[e]},Ve.log=ut,Ve.createLogger=ct,Ve.createTimeRange=Ve.createTimeRanges=fe,Ve.formatTime=Ne,Ve.setFormatTime=Re,Ve.resetFormatTime=Le,Ve.parseUrl=Un,Ve.isCrossOrigin=Bn,Ve.EventTarget=It,Ve.on=te,Ve.one=ie,Ve.off=ne,Ve.trigger=re,Ve.xhr=Ke,Ve.TextTrack=zn,Ve.AudioTrack=$n,Ve.VideoTrack=qn,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){Ve[e]=function(){return ut.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),gt[e].apply(null,arguments)}}),Ve.computedStyle=m,Ve.dom=gt,Ve.url=Fn;/** 74 * @videojs/http-streaming 75 * @version 1.4.1 76 * @copyright 2018 Brightcove, Inc 77 * @license Apache-2.0 78 */ 79var pa=function(e,t){return/^[a-z]+:/i.test(t)?t:(/\/\//i.test(e)||(e=Je.buildAbsoluteURL(Ge.location.href,e)),Je.buildAbsoluteURL(e,t))},fa=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ga=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),ma=function Fl(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:Fl(i,t,n)}if("value"in r)return r.value;var a=r.get;if(void 0!==a)return a.call(n)},va=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)},ya=function(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},_a=function(){function e(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(l){i=!0,a=l}finally{try{!r&&s["return"]&&s["return"]()}finally{if(i)throw a}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),ba=Ve.mergeOptions,Ta=Ve.EventTarget,Ea=Ve.log,Sa=function(e,t){["AUDIO","SUBTITLES"].forEach(function(n){for(var r in e.mediaGroups[n])for(var i in e.mediaGroups[n][r]){var a=e.mediaGroups[n][r][i];t(a,n,r,i)}})},wa=function(e,t,n){var r=t.slice();n=n||0;for(var i=Math.min(e.length,t.length+n),a=n;a<i;a++)r[a-n]=ba(e[a],r[a-n]);return r},Ca=function(e,t){e.resolvedUri||(e.resolvedUri=pa(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=pa(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=pa(t,e.map.uri))},ka=function(e,t){var n=ba(e,{}),r=n.playlists[t.uri];if(!r)return null;if(r.segments&&t.segments&&r.segments.length===t.segments.length&&r.mediaSequence===t.mediaSequence)return null;var i=ba(r,t);r.segments&&(i.segments=wa(r.segments,t.segments,t.mediaSequence-r.mediaSequence)),i.segments.forEach(function(e){Ca(e,i.resolvedUri)});for(var a=0;a<n.playlists.length;a++)n.playlists[a].uri===t.uri&&(n.playlists[a]=i);return n.playlists[t.uri]=i,n},Da=function(e){for(var t=e.playlists.length;t--;){var n=e.playlists[t];e.playlists[n.uri]=n,n.resolvedUri=pa(e.uri,n.uri),n.id=t,n.attributes||(n.attributes={},Ea.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute."))}},xa=function(e){Sa(e,function(t){t.uri&&(t.resolvedUri=pa(e.uri,t.uri))})},Aa=function(e,t){var n=e.segments[e.segments.length-1],r=void 0;return r=t&&n&&n.duration?1e3*n.duration:500*(e.targetDuration||10)},Ia=function(e){function t(e,n,r){fa(this,t);var i=ya(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(i.srcUrl=e,i.hls_=n,i.withCredentials=r,!i.srcUrl)throw new Error("A non-empty playlist URL is required");return i.state="HAVE_NOTHING",i.on("mediaupdatetimeout",function(){"HAVE_METADATA"===i.state&&(i.state="HAVE_CURRENT_METADATA",i.request=i.hls_.xhr({uri:pa(i.master.uri,i.media().uri),withCredentials:i.withCredentials},function(e,t){if(i.request)return e?i.playlistRequestError(i.request,i.media().uri,"HAVE_METADATA"):void i.haveMetadata(i.request,i.media().uri)}))}),i}return va(t,e),ga(t,[{key:"playlistRequestError",value:function(e,t,n){this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[t],status:e.status,message:"HLS playlist request error at URL: "+t,responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")}},{key:"haveMetadata",value:function(e,t){var n=this;this.request=null,this.state="HAVE_METADATA";var r=new et.Parser;r.push(e.responseText),r.end(),r.manifest.uri=t,r.manifest.attributes=r.manifest.attributes||{};var i=ka(this.master,r.manifest);this.targetDuration=r.manifest.targetDuration,i?(this.master=i,this.media_=this.master.playlists[r.manifest.uri]):this.trigger("playlistunchanged"),this.media().endList||(Ge.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=Ge.setTimeout(function(){n.trigger("mediaupdatetimeout")},Aa(this.media(),!!i))),this.trigger("loadedplaylist")}},{key:"dispose",value:function(){this.stopRequest(),Ge.clearTimeout(this.mediaUpdateTimeout)}},{key:"stopRequest",value:function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}},{key:"media",value:function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"==typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}var r=!this.media_||e.uri!==this.media_.uri;if(this.master.playlists[e.uri].endList)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(r&&(this.trigger("mediachanging"),this.trigger("mediachange")));if(r){if(this.state="SWITCHING_MEDIA",this.request){if(pa(this.master.uri,e.uri)===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.request=this.hls_.xhr({uri:pa(this.master.uri,e.uri),withCredentials:this.withCredentials},function(r,i){if(t.request){if(r)return t.playlistRequestError(t.request,e.uri,n);t.haveMetadata(i,e.uri),"HAVE_MASTER"===n?t.trigger("loadedmetadata"):t.trigger("mediachange")}})}}},{key:"pause",value:function(){this.stopRequest(),Ge.clearTimeout(this.mediaUpdateTimeout),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}},{key:"load",value:function(e){var t=this;Ge.clearTimeout(this.mediaUpdateTimeout);var n=this.media();if(e){var r=n?n.targetDuration/2*1e3:5e3;return void(this.mediaUpdateTimeout=Ge.setTimeout(function(){return t.load()},r))}return this.started?void(n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist")):void this.start()}},{key:"start",value:function(){var e=this;this.started=!0,this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"HLS playlist request error at URL: "+e.srcUrl,responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");var r=new et.Parser;return r.push(n.responseText),r.end(),e.state="HAVE_MASTER",r.manifest.uri=e.srcUrl,r.manifest.playlists?(e.master=r.manifest,Da(e.master),xa(e.master),e.trigger("loadedplaylist"),void(e.request||e.media(r.manifest.playlists[0]))):(e.master={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:Ge.location.href,playlists:[{uri:e.srcUrl,id:0}]},e.master.playlists[e.srcUrl]=e.master.playlists[0],e.master.playlists[0].resolvedUri=e.srcUrl,e.master.playlists[0].attributes=e.master.playlists[0].attributes||{},e.haveMetadata(n,e.srcUrl),e.trigger("loadedmetadata"))}})}}]),t}(Ta),Oa=Ve.createTimeRange,Pa=function(e,t){var n=0,r=t-e.mediaSequence,i=e.segments[r];if(i){if("undefined"!=typeof i.start)return{result:i.start,precise:!0};if("undefined"!=typeof i.end)return{result:i.end-i.duration,precise:!0}}for(;r--;){if(i=e.segments[r],"undefined"!=typeof i.end)return{result:n+i.end,precise:!0};if(n+=i.duration,"undefined"!=typeof i.start)return{result:n+i.start,precise:!0}}return{result:n,precise:!1}},Ma=function(e,t){for(var n=0,r=void 0,i=t-e.mediaSequence;i<e.segments.length;i++){if(r=e.segments[i],"undefined"!=typeof r.start)return{result:r.start-n,precise:!0};if(n+=r.duration,"undefined"!=typeof r.end)return{result:r.end-n,precise:!0}}return{result:-1,precise:!1}},Ra=function(e,t,n){var r=void 0,i=void 0;return"undefined"==typeof t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence?0:(r=Pa(e,t),r.precise?r.result:(i=Ma(e,t),i.precise?i.result:r.result+n))},La=function(e,t,n){if(!e)return 0;if("number"!=typeof n&&(n=0),"undefined"==typeof t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return Ge.Infinity}
79return Ra(e,t,n)},Na=function(e,t,n){var r=0;if(t>n){var i=[n,t];t=i[0],n=i[1]}if(t<0){for(var a=t;a<Math.min(0,n);a++)r+=e.targetDuration;t=0}for(var o=t;o<n;o++)r+=e.segments[o].duration;return r},Ua=function(e){if(!e.segments.length)return 0;for(var t=e.segments.length-1,n=e.segments[t].duration||e.targetDuration,r=n+2*e.targetDuration;t--&&(n+=e.segments[t].duration,!(n>=r)););return Math.max(0,t)},Ha=function(e,t,n){if(!e||!e.segments)return null;if(e.endList)return La(e);if(null===t)return null;t=t||0;var r=n?Ua(e):e.segments.length;return Ra(e,e.mediaSequence+r,t)},ja=function(e,t){var n=!0,r=t||0,i=Ha(e,t,n);return null===i?Oa():Oa(r,i)},Ba=function(e){return e-Math.floor(e)===0},Fa=function(e,t){if(Ba(t))return t+.1*e;for(var n=t.toString().split(".")[1].length,r=1;r<=n;r++){var i=Math.pow(10,r),a=t*i;if(Ba(a)||r===n)return(a+e)/i}},Va=Fa.bind(null,1),Wa=Fa.bind(null,-1),za=function(e,t,n,r){var i=void 0,a=void 0,o=e.segments.length,s=t-r;if(s<0){if(n>0)for(i=n-1;i>=0;i--)if(a=e.segments[i],s+=Wa(a.duration),s>0)return{mediaIndex:i,startTime:r-Na(e,n,i)};return{mediaIndex:0,startTime:t}}if(n<0){for(i=n;i<0;i++)if(s-=e.targetDuration,s<0)return{mediaIndex:0,startTime:t};n=0}for(i=n;i<o;i++)if(a=e.segments[i],s-=Va(a.duration),s<0)return{mediaIndex:i,startTime:r+Na(e,n,i)};return{mediaIndex:o-1,startTime:t}},$a=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},qa=function(e){return e.excludeUntil&&e.excludeUntil===1/0},Ga=function(e){var t=$a(e);return!e.disabled&&!t},Ya=function(e){return e.disabled},Xa=function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},Ka=function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].map)return!0;return!1},Qa=function(e,t){return t.attributes&&t.attributes[e]},Za=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;
79if(!Qa("BANDWIDTH",n))return NaN;var i=e*n.attributes.BANDWIDTH;return(i-8*r)/t},Ja=function(e,t){if(1===e.playlists.length)return!0;var n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(function(e){return!!Ga(e)&&(e.attributes.BANDWIDTH||0)<n}).length},eo={duration:La,seekable:ja,safeLiveIndex:Ua,getMediaInfoForTime:za,isEnabled:Ga,isDisabled:Ya,isBlacklisted:$a,isIncompatible:qa,playlistEnd:Ha,isAes:Xa,isFmp4:Ka,hasAttribute:Qa,estimateSegmentRequestTime:Za,isLowestEnabledRendition:Ja},to=Ve.xhr,no=Ve.mergeOptions,ro=function(){var e=function t(e,n){e=no({timeout:45e3},e);var r=t.beforeRequest||Ve.Hls.xhr.beforeRequest;if(r&&"function"==typeof r){var i=r(e);i&&(e=i)}var a=to(e,function(e,t){var r=a.response;!e&&r&&(a.responseTime=Date.now(),a.roundTripTime=a.responseTime-a.requestTime,a.bytesReceived=r.byteLength||r.length,a.bandwidth||(a.bandwidth=Math.floor(a.bytesReceived/a.roundTripTime*8*1e3))),t.headers&&(a.responseHeaders=t.headers),e&&"ETIMEDOUT"===e.code&&(a.timedout=!0),e||a.aborted||200===t.statusCode||206===t.statusCode||0===t.statusCode||(e=new Error("XHR Failed with a response of: "+(a&&(r||a.responseText)))),n(e,a)}),o=a.abort;return a.abort=function(){return a.aborted=!0,o.apply(a,arguments)},a.uri=e.uri,a.requestTime=Date.now(),a};return e},io=function(e,t){return e.start(t)+"-"+e.end(t)},ao=function(e,t){var n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},oo=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},so=function(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n];ArrayBuffer.isView(r)?t[n]={bytes:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength}:t[n]=r}),t},lo=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},uo=function(e){for(var t=Array.prototype.slice.call(e),n=16,r="",i=void 0,a=void 0,o=0;o<t.length/n;o++)i=t.slice(o*n,o*n+n).map(ao).join(""),a=t.slice(o*n,o*n+n).map(oo).join(""),r+=i+" "+a+"\n";return r},co=function(e){var t=e.bytes;return uo(t)},ho=function(e){var t="",n=void 0;for(n=0;n<e.length;n++)t+=io(e,n)+" ";return t},po=Object.freeze({createTransferableMessage:so,initSegmentId:lo,hexDump:uo,tagDump:co,textRanges:ho}),fo=1/30,go=3*fo,mo=function(e,t){var n=[],r=void 0;if(e&&e.length)for(r=0;r<e.length;r++)t(e.start(r),e.end(r))&&n.push([e.start(r),e.end(r)]);return Ve.createTimeRanges(n)},vo=function(e,t){return mo(e,function(e,n){return e-fo<=t&&n+fo>=t})},yo=function(e,t){return mo(e,function(e){return e-fo>=t})},_o=function(e){if(e.length<2)return Ve.createTimeRanges();for(var t=[],n=1;n<e.length;n++){var r=e.end(n-1),i=e.start(n);t.push([r,i])}return Ve.createTimeRanges(t)},bo=function(e){var t=[];if(!e||!e.length)return"";for(var n=0;n<e.length;n++)t.push(e.start(n)+" => "+e.end(n));return t.join(", ")},To=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=e.length?e.end(e.length-1):0;return(r-t)/n},Eo=function(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},So=function(e,t,n){var r=t.player_;if(n.captions&&n.captions.length){e.inbandTextTracks_||(e.inbandTextTracks_={});for(var i in n.captionStreams)if(!e.inbandTextTracks_[i]){r.tech_.trigger({type:"usage",name:"hls-608"});var a=r.textTracks().getTrackById(i);a?e.inbandTextTracks_[i]=a:e.inbandTextTracks_[i]=r.addRemoteTextTrack({kind:"captions",id:i,label:i},!1).track}}n.metadata&&n.metadata.length&&!e.metadataTrack_&&(e.metadataTrack_=r.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=n.metadata.dispatchType)},wo=function(e,t,n){var r=void 0,i=void 0;if(n&&n.cues)for(r=n.cues.length;r--;)i=n.cues[r],i.startTime<=t&&i.endTime>=e&&n.removeCue(i)},Co=function(e){Object.defineProperties(e.frame,{id:{get:function(){return Ve.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return Ve.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return Ve.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})},ko=function(e){var t=void 0;return t=isNaN(e)||Math.abs(e)===1/0?Number.MAX_VALUE:e},Do=function(e,t,n){var r=Ge.WebKitDataCue||Ge.VTTCue;if(t&&t.forEach(function(e){var t=e.stream;this.inbandTextTracks_[t].addCue(new r(e.startTime+this.timestampOffset,e.endTime+this.timestampOffset,e.text))},e),n){var i=ko(e.mediaSource_.duration);if(n.forEach(function(e){var t=e.cueTime+this.timestampOffset;
vendor: 64,530 bytes, lines 79-81
79e.frames.forEach(function(e){var n=new r(t,t,e.value||e.url||e.data||"");n.frame=e,n.value=e,Co(n),this.metadataTrack_.addCue(n)},this)},e),e.metadataTrack_&&e.metadataTrack_.cues&&e.metadataTrack_.cues.length){for(var a=e.metadataTrack_.cues,o=[],s=0;s<a.length;s++)a[s]&&o.push(a[s]);var l=o.reduce(function(e,t){var n=e[t.startTime]||[];return n.push(t),e[t.startTime]=n,e},{}),u=Object.keys(l).sort(function(e,t){return Number(e)-Number(t)});u.forEach(function(e,t){var n=l[e],r=Number(u[t+1])||i;n.forEach(function(e){e.endTime=r})})}}},xo="undefined"!=typeof window?window:{},Ao="undefined"==typeof Symbol?"__target":Symbol(),Io="application/javascript",Oo=xo.BlobBuilder||xo.WebKitBlobBuilder||xo.MozBlobBuilder||xo.MSBlobBuilder,Po=xo.URL||xo.webkitURL||Po&&Po.msURL,Mo=xo.Worker;if(Mo){var Ro,Lo=ze("self.onmessage = function () {}"),No=new Uint8Array(1);try{Ro=new Mo(Lo),Ro.postMessage(No,[No.buffer])}catch(Uo){Mo=null}finally{Po.revokeObjectURL(Lo),Ro&&Ro.terminate()}}var Ho=new We("./transmuxer-worker.worker.js",function(e,t){var n=this;(function(){var e,t,r,i,a,o,s,l,u,c,d,h,p,f,g,m,v,y,_,b,T,E,S,w,C,k,D,x,A,I,O,P,M,R,L,N,U=Math.pow(2,32)-1;!function(){var e;if(S={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(e in S)S.hasOwnProperty(e)&&(S[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);w=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),k=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),C=new Uint8Array([0,0,0,1]),D=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),x=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),A={video:D,audio:x},P=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),O=new Uint8Array([0,0,0,0,0,0,0,0]),M=new Uint8Array([0,0,0,0,0,0,0,0]),R=M,L=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),N=M,I=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),e=function(e){var t,n,r,i=[],a=0;for(t=1;t<arguments.length;t++)i.push(arguments[t]);for(t=i.length;t--;)a+=i[t].byteLength;for(n=new Uint8Array(a+8),r=new DataView(n.buffer,n.byteOffset,n.byteLength),r.setUint32(0,n.byteLength),n.set(e,4),t=0,a=8;t<i.length;t++)n.set(i[t],a),a+=i[t].byteLength;return n},t=function(){return e(S.dinf,e(S.dref,P))},r=function(t){return e(S.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,t.audioobjecttype<<3|t.samplingfrequencyindex>>>1,t.samplingfrequencyindex<<7|t.channelcount<<3,6,1,2]))},i=function(){return e(S.ftyp,w,C,w,k)},m=function(t){return e(S.hdlr,A[t])},a=function(t){return e(S.mdat,t)},g=function(t){var n=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,t.duration>>>24&255,t.duration>>>16&255,t.duration>>>8&255,255&t.duration,85,196,0,0]);return t.samplerate&&(n[12]=t.samplerate>>>24&255,n[13]=t.samplerate>>>16&255,n[14]=t.samplerate>>>8&255,n[15]=255&t.samplerate),e(S.mdhd,n)},f=function(t){return e(S.mdia,g(t),m(t.type),s(t))},o=function(t){return e(S.mfhd,new Uint8Array([0,0,0,0,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t]))},s=function(n){return e(S.minf,"video"===n.type?e(S.vmhd,I):e(S.smhd,O),t(),y(n))},l=function(t,n){for(var r=[],i=n.length;i--;)r[i]=b(n[i]);return e.apply(null,[S.moof,o(t)].concat(r))},u=function(t){for(var n=t.length,r=[];n--;)r[n]=h(t[n]);return e.apply(null,[S.moov,d(4294967295)].concat(r).concat(c(t)))},c=function(t){for(var n=t.length,r=[];n--;)r[n]=T(t[n]);return e.apply(null,[S.mvex].concat(r))},d=function(t){var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return e(S.mvhd,n)},v=function(t){var n,r,i=t.samples||[],a=new Uint8Array(4+i.length);for(r=0;r<i.length;r++)n=i[r].flags,a[r+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return e(S.sdtp,a)},y=function(t){return e(S.stbl,_(t),e(S.stts,N),e(S.stsc,R),e(S.stsz,L),e(S.stco,M))},function(){var t,n;_=function(r){return e(S.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===r.type?t(r):n(r))},t=function(t){var n,r=t.sps||[],i=t.pps||[],a=[],o=[];for(n=0;n<r.length;n++)a.push((65280&r[n].byteLength)>>>8),a.push(255&r[n].byteLength),a=a.concat(Array.prototype.slice.call(r[n]));for(n=0;n<i.length;n++)o.push((65280&i[n].byteLength)>>>8),o.push(255&i[n].byteLength),o=o.concat(Array.prototype.slice.call(i[n]));return e(S.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&t.width)>>8,255&t.width,(65280&t.height)>>8,255&t.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),e(S.avcC,new Uint8Array([1,t.profileIdc,t.profileCompatibility,t.levelIdc,255].concat([r.length]).concat(a).concat([i.length]).concat(o))),e(S.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])))},n=function(t){return e(S.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&t.channelcount)>>8,255&t.channelcount,(65280&t.samplesize)>>8,255&t.samplesize,0,0,0,0,(65280&t.samplerate)>>8,255&t.samplerate,0,0]),r(t))}}(),p=function(t){var n=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,0,(4278190080&t.duration)>>24,(16711680&t.duration)>>16,(65280&t.duration)>>8,255&t.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&t.width)>>8,255&t.width,0,0,(65280&t.height)>>8,255&t.height,0,0]);return e(S.tkhd,n)},b=function(t){var n,r,i,a,o,s,l;return n=e(S.tfhd,new Uint8Array([0,0,0,58,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),s=Math.floor(t.baseMediaDecodeTime/(U+1)),l=Math.floor(t.baseMediaDecodeTime%(U+1)),r=e(S.tfdt,new Uint8Array([1,0,0,0,s>>>24&255,s>>>16&255,s>>>8&255,255&s,l>>>24&255,l>>>16&255,l>>>8&255,255&l])),o=92,"audio"===t.type?(i=E(t,o),e(S.traf,n,r,i)):(a=v(t),i=E(t,a.length+o),e(S.traf,n,r,i,a))},h=function(t){return t.duration=t.duration||4294967295,e(S.trak,p(t),f(t))},T=function(t){var n=new Uint8Array([0,0,0,0,(4278190080&t.id)>>24,(16711680&t.id)>>16,(65280&t.id)>>8,255&t.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==t.type&&(n[n.length-1]=0),e(S.trex,n)},function(){var t,n,r;r=function(e,t){var n=0,r=0,i=0,a=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(r=2),void 0!==e[0].flags&&(i=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,n|r|i|a,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},n=function(t,n){var i,a,o,s;for(a=t.samples||[],n+=20+16*a.length,i=r(a,n),s=0;s<a.length;s++)o=a[s],i=i.concat([(4278190080&o.duration)>>>24,(16711680&o.duration)>>>16,(65280&o.duration)>>>8,255&o.duration,(4278190080&o.size)>>>24,(16711680&o.size)>>>16,(65280&o.size)>>>8,255&o.size,o.flags.isLeading<<2|o.flags.dependsOn,o.flags.isDependedOn<<6|o.flags.hasRedundancy<<4|o.flags.paddingValue<<1|o.flags.isNonSyncSample,61440&o.flags.degradationPriority,15&o.flags.degradationPriority,(4278190080&o.compositionTimeOffset)>>>24,(16711680&o.compositionTimeOffset)>>>16,(65280&o.compositionTimeOffset)>>>8,255&o.compositionTimeOffset]);return e(S.trun,new Uint8Array(i))},t=function(t,n){var i,a,o,s;for(a=t.samples||[],n+=20+8*a.length,i=r(a,n),s=0;s<a.length;s++)o=a[s],i=i.concat([(4278190080&o.duration)>>>24,(16711680&o.duration)>>>16,(65280&o.duration)>>>8,255&o.duration,(4278190080&o.size)>>>24,(16711680&o.size)>>>16,(65280&o.size)>>>8,255&o.size]);return e(S.trun,new Uint8Array(i))},E=function(e,r){return"audio"===e.type?t(e,r):n(e,r)}}();var H,j,B,F,V,W={ftyp:i,mdat:a,moof:l,moov:u,initSegment:function(e){var t,n=i(),r=u(e);return t=new Uint8Array(n.byteLength+r.byteLength),t.set(n),t.set(r,n.byteLength),t}},z=function(e){return e>>>0},$={toUnsigned:z},q=$.toUnsigned;H=function(e,t){var n,r,i,a,o,s=[];if(!t.length)return null;for(n=0;n<e.byteLength;)r=q(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]),i=j(e.subarray(n+4,n+8)),a=r>1?n+r:e.byteLength,i===t[0]&&(1===t.length?s.push(e.subarray(n+8,a)):(o=H(e.subarray(n+8,a),t.slice(1)),o.length&&(s=s.concat(o)))),n=a;return s},j=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])},B=function(e){var t={},n=H(e,["moov","trak"]);return n.reduce(function(e,t){var n,r,i,a,o;return(n=H(t,["tkhd"])[0])?(r=n[0],i=0===r?12:20,a=q(n[i]<<24|n[i+1]<<16|n[i+2]<<8|n[i+3]),(o=H(t,["mdia","mdhd"])[0])?(r=o[0],i=0===r?12:20,e[a]=q(o[i]<<24|o[i+1]<<16|o[i+2]<<8|o[i+3]),e):null):null},t)},F=function(e,t){var n,r,i;return n=H(t,["moof","traf"]),r=[].concat.apply([],n.map(function(t){return H(t,["tfhd"]).map(function(n){var r,i,a;return r=q(n[4]<<24|n[5]<<16|n[6]<<8|n[7]),i=e[r]||9e4,a=H(t,["tfdt"]).map(function(e){var t,n;return t=e[0],n=q(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),1===t&&(n*=Math.pow(2,32),n+=q(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),n})[0],a=a||1/0,a/i})})),i=Math.min.apply(null,r),isFinite(i)?i:0},V=function(e){var t=H(e,["moov","trak"]),n=[];return t.forEach(function(e){var t=H(e,["mdia","hdlr"]),r=H(e,["tkhd"]);t.forEach(function(e,t){var i,a,o,s=j(e.subarray(8,12)),l=r[t];"vide"===s&&(i=new DataView(l.buffer,l.byteOffset,l.byteLength),a=i.getUint8(0),o=0===a?i.getUint32(12):i.getUint32(20),n.push(o))})}),n};var G={findBox:H,parseType:j,timescale:B,startTime:F,videoTrackIds:V},Y=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var r;return!!e[t]&&(r=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(r,1),r>-1)},this.trigger=function(t){var n,r,i,a;if(n=e[t])if(2===arguments.length)for(i=n.length,r=0;r<i;++r)n[r].call(this,arguments[1]);else{for(a=[],r=arguments.length,r=1;r<arguments.length;++r)a.push(arguments[r]);for(i=n.length,r=0;r<i;++r)n[r].apply(this,a)}},this.dispose=function(){e={}}}};Y.prototype.pipe=function(e){return this.on("data",function(t){e.push(t)}),this.on("done",function(t){e.flush(t)}),e},Y.prototype.push=function(e){this.trigger("data",e)},Y.prototype.flush=function(e){this.trigger("done",e)};var X=Y,K=function(e){var t,n,r=[],i=[];for(r.byteLength=0,t=0;t<e.length;t++)n=e[t],"access_unit_delimiter_rbsp"===n.nalUnitType?(r.length&&(r.duration=n.dts-r.dts,i.push(r)),r=[n],r.byteLength=n.data.byteLength,r.pts=n.pts,r.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(r.keyFrame=!0),r.duration=n.dts-r.dts,r.byteLength+=n.data.byteLength,r.push(n));return i.length&&(!r.duration||r.duration<=0)&&(r.duration=i[i.length-1].duration),i.push(r),i},Q=function(e){var t,n,r=[],i=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=e[0].pts,i.dts=e[0].dts,t=0;t<e.length;t++)n=e[t],n.keyFrame?(r.length&&(i.push(r),i.byteLength+=r.byteLength,i.nalCount+=r.nalCount,i.duration+=r.duration),r=[n],r.nalCount=n.length,r.byteLength=n.byteLength,r.pts=n.pts,r.dts=n.dts,r.duration=n.duration):(r.duration+=n.duration,r.nalCount+=n.length,r.byteLength+=n.byteLength,r.push(n));return i.length&&r.duration<=0&&(r.duration=i[i.length-1].duration),i.byteLength+=r.byteLength,i.nalCount+=r.nalCount,i.duration+=r.duration,i.push(r),i},Z=function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},J=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},ee=function(e,t){var n=J();return n.dataOffset=t,n.compositionTimeOffset=e.pts-e.dts,n.duration=e.duration,n.size=4*e.length,n.size+=e.byteLength,e.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},te=function(e,t){var n,r,i,a,o,s=t||0,l=[];for(n=0;n<e.length;n++)for(a=e[n],r=0;r<a.length;r++)o=a[r],i=ee(o,s),s+=i.size,l.push(i);return l},ne=function(e){var t,n,r,i,a,o,s=0,l=e.byteLength,u=e.nalCount,c=l+4*u,d=new Uint8Array(c),h=new DataView(d.buffer);for(t=0;t<e.length;t++)for(i=e[t],n=0;n<i.length;n++)for(a=i[n],r=0;r<a.length;r++)o=a[r],h.setUint32(s,o.data.byteLength),s+=4,d.set(o.data,s),s+=o.data.byteLength;return d},re={groupNalsIntoFrames:K,groupFramesIntoGops:Q,extendFirstKeyFrame:Z,generateSampleTable:te,concatenateNalData:ne},ie=9e4,ae=function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))},oe=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},se=function(e,t){var n,r,i=e.minSegmentDts;return t||(i-=e.timelineStartInfo.dts),n=e.timelineStartInfo.baseMediaDecodeTime,n+=i,n=Math.max(0,n),"audio"===e.type&&(r=e.samplerate/ie,n*=r,n=Math.floor(n)),n},le={clearDtsInfo:oe,calculateTrackBaseMediaDecodeTime:se,collectDtsInfo:ae},ue=4,ce=128,de=function(e){for(var t=0,n={payloadType:-1,payloadSize:0},r=0,i=0;t<e.byteLength&&e[t]!==ce;){for(;255===e[t];)r+=255,t++;for(r+=e[t++];255===e[t];)i+=255,t++;if(i+=e[t++],!n.payload&&r===ue){n.payloadType=r,n.payloadSize=i,n.payload=e.subarray(t,t+i);break}t+=i,r=0,i=0}return n},he=function(e){return 181!==e.payload[0]?null:49!==(e.payload[1]<<8|e.payload[2])?null:"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])?null:3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},pe=function(e,t){var n,r,i,a,o=[];if(!(64&t[0]))return o;for(r=31&t[0],n=0;n<r;n++)i=3*n,a={type:3&t[i+2],pts:e},4&t[i+2]&&(a.ccData=t[i+3]<<8|t[i+4],o.push(a));return o},fe=function(e){for(var t,n,r=e.byteLength,i=[],a=1;a<r-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(i.push(a+2),a+=2):a++;if(0===i.length)return e;t=r-i.length,n=new Uint8Array(t);var o=0;for(a=0;a<t;o++,a++)o===i[0]&&(o++,i.shift()),n[a]=e[o];return n},ge={parseSei:de,parseUserData:he,parseCaptionPackets:pe,discardEmulationPreventionBytes:fe,USER_DATA_REGISTERED_ITU_T_T35:ue},me=function Jt(){Jt.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new Ee(0,0),new Ee(0,1),new Ee(1,0),new Ee(1,1)],this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("done",this.trigger.bind(this,"done"))},this)};me.prototype=new X,me.prototype.push=function(e){var t,n,r;if("sei_rbsp"===e.nalUnitType&&(t=ge.parseSei(e.escapedRBSP),t.payloadType===ge.USER_DATA_REGISTERED_ITU_T_T35&&(n=ge.parseUserData(t)))){if(e.dts<this.latestDts_)return void(this.ignoreNextEqualDts_=!0);if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));r=ge.parseCaptionPackets(e.pts,n),this.captionPackets_=this.captionPackets_.concat(r),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},me.prototype.flush=function(){return this.captionPackets_.length?(this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2&&this.dispatchCea608Packet(e)},this),this.captionPackets_.length=0,void this.ccStreams_.forEach(function(e){e.flush()},this)):void this.ccStreams_.forEach(function(e){e.flush()},this)},me.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},me.prototype.dispatchCea608Packet=function(e){this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},me.prototype.setsChannel1Active=function(e){return 4096===(30720&e.ccData)},me.prototype.setsChannel2Active=function(e){return 6144===(30720&e.ccData)};var ve={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176, 80306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},ye=function(e){return null===e?"":(e=ve[e]||e,String.fromCharCode(e))},_e=14,be=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Te=function(){for(var e=[],t=_e+1;t--;)e.push("");return e},Ee=function en(e,t){en.prototype.init.call(this),this.field_=e||0,this.dataChannel_=t||0,this.name_="CC"+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(e){var t,n,r,i,a;if(t=32639&e.ccData,t===this.lastControlCode_)return void(this.lastControlCode_=null);if(4096===(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),r=t>>>8,i=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=Te();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Te();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=Te()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(r,i))r=(3&r)<<8,a=ye(r|i),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(r,i))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),r=(3&r)<<8,a=ye(r|i),this[this.mode_](e.pts,a),this.column_++;else if(this.isMidRowCode(r,i))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14===(14&i)&&this.addFormatting(e.pts,["i"]),1===(1&i)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(r,i))this.column_+=3&i;else if(this.isPAC(r,i)){var o=be.indexOf(7968&t);"rollUp"===this.mode_&&this.setRollUp(e.pts,o),o!==this.row_&&(this.clearFormatting(e.pts),this.row_=o),1&i&&this.formatting_.indexOf("u")===-1&&this.addFormatting(e.pts,["u"]),16===(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(i)&&14===(14&i)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(r)&&(0===i&&(i=null),a=ye(r),a+=ye(i),this[this.mode_](e.pts,a),this.column_+=a.length)}};Ee.prototype=new X,Ee.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e){return e.trim()}).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},Ee.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Te(),this.nonDisplayed_=Te(),this.lastControlCode_=null,this.column_=0,this.row_=_e,this.rollUpRows_=2,this.formatting_=[]},Ee.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Ee.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},Ee.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},Ee.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},Ee.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},Ee.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},Ee.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},Ee.prototype.isNormalChar=function(e){return e>=32&&e<=127},Ee.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=_e,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=Te(),this.displayed_=Te()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},Ee.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var n=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,n)},Ee.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[],this[this.mode_](e,t)}},Ee.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];n+=t,this.nonDisplayed_[this.row_]=n},Ee.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},Ee.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<_e+1;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},Ee.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n};var Se={CaptionStream:me,Cea608Stream:Ee},we={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Ce=8589934592,ke=4294967296,De=function(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>ke;)e+=n*Ce;return e},xe=function tn(e){var t,n;tn.prototype.init.call(this),this.type_=e,this.push=function(e){e.type===this.type_&&(void 0===n&&(n=e.dts),e.dts=De(e.dts,n),e.pts=De(e.pts,n),t=e.dts,this.trigger("data",e))},this.flush=function(){n=t,this.trigger("done")},this.discontinuity=function(){n=void 0,t=void 0}};xe.prototype=new X;var Ae,Ie={TimestampRolloverStream:xe,handleRollover:De},Oe=function(e,t,n){var r,i="";for(r=t;r<n;r++)i+="%"+("00"+e[r].toString(16)).slice(-2);return i},Pe=function(e,t,n){return decodeURIComponent(Oe(e,t,n))},Me=function(e,t,n){return unescape(Oe(e,t,n))},Re=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},Le={TXXX:function(e){var t;if(3===e.data[0]){for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Pe(e.data,1,t),e.value=Pe(e.data,t+1,e.data.length).replace(/\0*$/,"");break}e.data=e.value}},WXXX:function(e){var t;if(3===e.data[0])for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Pe(e.data,1,t),e.url=Pe(e.data,t+1,e.data.length);break}},PRIV:function(e){var t;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=Me(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}};Ae=function(e){var t,n={debug:!(!e||!e.debug),descriptor:e&&e.descriptor},r=0,i=[],a=0;if(Ae.prototype.init.call(this),this.dispatchType=we.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(t=0;t<n.descriptor.length;t++)this.dispatchType+=("00"+n.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,o,s,l,u,c;if("timed-metadata"===e.type){if(e.dataAlignmentIndicator&&(a=0,i.length=0),0===i.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))return void(n.debug&&console.log("Skipping unrecognized metadata packet"));if(i.push(e),a+=e.data.byteLength,1===i.length&&(r=Re(e.data.subarray(6,10)),r+=10),!(a<r)){for(t={data:new Uint8Array(r),frames:[],pts:i[0].pts,dts:i[0].dts},u=0;u<r;)t.data.set(i[0].data.subarray(0,r-u),u),u+=i[0].data.byteLength,a-=i[0].data.byteLength,i.shift();o=10,64&t.data[5]&&(o+=4,o+=Re(t.data.subarray(10,14)),r-=Re(t.data.subarray(16,20)));do{if(s=Re(t.data.subarray(o+4,o+8)),s<1)return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.");if(c=String.fromCharCode(t.data[o],t.data[o+1],t.data[o+2],t.data[o+3]),l={id:c,data:t.data.subarray(o+10,o+s+10)},l.key=l.id,Le[l.id]&&(Le[l.id](l),"com.apple.streaming.transportStreamTimestamp"===l.owner)){var d=l.data,h=(1&d[3])<<30|d[4]<<22|d[5]<<14|d[6]<<6|d[7]>>>2;h*=4,h+=3&d[7],l.timeStamp=h,void 0===t.pts&&void 0===t.dts&&(t.pts=l.timeStamp,t.dts=l.timeStamp),this.trigger("timestamp",l)}t.frames.push(l),o+=10,o+=s}while(o<r);this.trigger("data",t)}}}},Ae.prototype=new X;var Ne,Ue,He,je=Ae,Be=Ie.TimestampRolloverStream,Fe=188,Ve=71;Ne=function(){var e=new Uint8Array(Fe),t=0;Ne.prototype.init.call(this),this.push=function(n){var r,i=0,a=Fe;for(t?(r=new Uint8Array(n.byteLength+t),r.set(e.subarray(0,t)),r.set(n,t),t=0):r=n;a<r.byteLength;)r[i]!==Ve||r[a]!==Ve?(i++,a++):(this.trigger("data",r.subarray(i,a)),i+=Fe,a+=Fe);i<r.byteLength&&(e.set(r.subarray(i),0),t=r.byteLength-i)},this.flush=function(){t===Fe&&e[0]===Ve&&(this.trigger("data",e),t=0),this.trigger("done")}},Ne.prototype=new X,Ue=function(){var e,t,n,r;Ue.prototype.init.call(this),r=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,r){var i=0;r.payloadUnitStartIndicator&&(i+=e[i]+1),"pat"===r.type?t(e.subarray(i),r):n(e.subarray(i),r)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],r.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=r.pmtPid},n=function(e,t){var n,i,a,o;if(1&e[5]){for(r.programMapTable={video:null,audio:null,"timed-metadata":{}},n=(15&e[1])<<8|e[2],i=3+n-4,a=(15&e[10])<<8|e[11],o=12+a;o<i;){var s=e[o],l=(31&e[o+1])<<8|e[o+2];s===we.H264_STREAM_TYPE&&null===r.programMapTable.video?r.programMapTable.video=l:s===we.ADTS_STREAM_TYPE&&null===r.programMapTable.audio?r.programMapTable.audio=l:s===we.METADATA_STREAM_TYPE&&(r.programMapTable["timed-metadata"][l]=s),o+=((15&e[o+3])<<8|e[o+4])+5}t.programMapTable=r.programMapTable}},this.push=function(t){var n={},r=4;if(n.payloadUnitStartIndicator=!!(64&t[1]),n.pid=31&t[1],n.pid<<=8,n.pid|=t[2],(48&t[3])>>>4>1&&(r+=t[r]+1),0===n.pid)n.type="pat",e(t.subarray(r),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",e(t.subarray(r),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,r,n]):this.processPes_(t,r,n)},this.processPes_=function(e,t,n){n.pid===this.programMapTable.video?n.streamType=we.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=we.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}},Ue.prototype=new X,Ue.STREAM_TYPES={h264:27,adts:15},He=function(){var e=this,t={data:[],size:0},n={data:[],size:0},r={data:[],size:0},i=function(e,t){var n;t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=0!==(4&e[6]),n=e[7],192&n&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&n&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8])},a=function(t,n,r){var a,o=new Uint8Array(t.size),s={type:n},l=0,u=0,c=!1;if(t.data.length&&!(t.size<9)){for(s.trackId=t.data[0].pid,l=0;l<t.data.length;l++)a=t.data[l],o.set(a.data,u),u+=a.data.byteLength;i(o,s),c="video"===n||s.packetLength<=t.size,(r||c)&&(t.size=0,t.data.length=0),c&&e.trigger("data",s)}};He.prototype.init.call(this),this.push=function(i){({pat:function(){},pes:function(){var e,o;switch(i.streamType){case we.H264_STREAM_TYPE:case we.H264_STREAM_TYPE:e=t,o="video";break;case we.ADTS_STREAM_TYPE:e=n,o="audio";break;case we.METADATA_STREAM_TYPE:e=r,o="timed-metadata";break;default:return}i.payloadUnitStartIndicator&&a(e,o,!0),e.data.push(i),e.size+=i.data.byteLength},pmt:function(){var t={type:"metadata",tracks:[]},n=i.programMapTable;null!==n.video&&t.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+n.video,codec:"avc",type:"video"}),null!==n.audio&&t.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+n.audio,codec:"adts",type:"audio"}),e.trigger("data",t)}})[i.type]()},this.flush=function(){a(t,"video"),a(n,"audio"),a(r,"timed-metadata"),this.trigger("done")}},He.prototype=new X;var We={PAT_PID:0,MP2T_PACKET_LENGTH:Fe,TransportPacketStream:Ne,TransportParseStream:Ue,ElementaryStream:He,TimestampRolloverStream:Be,CaptionStream:Se.CaptionStream,Cea608Stream:Se.Cea608Stream,MetadataStream:je};for(var ze in we)we.hasOwnProperty(ze)&&(We[ze]=we[ze]);var $e,qe=We,Ge=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];$e=function(){var e;$e.prototype.init.call(this),this.push=function(t){var n,r,i,a,o,s,l=0,u=0;if("audio"===t.type)for(e?(a=e,e=new Uint8Array(a.byteLength+t.data.byteLength),e.set(a),e.set(t.data,a.byteLength)):e=t.data;l+5<e.length;)if(255===e[l]&&240===(246&e[l+1])){if(r=2*(1&~e[l+1]),n=(3&e[l+3])<<11|e[l+4]<<3|(224&e[l+5])>>5,o=1024*((3&e[l+6])+1),s=9e4*o/Ge[(60&e[l+2])>>>2],i=l+n,e.byteLength<i)return;if(this.trigger("data",{pts:t.pts+u*s,dts:t.dts+u*s,sampleCount:o,audioobjecttype:(e[l+2]>>>6&3)+1,channelcount:(1&e[l+2])<<2|(192&e[l+3])>>>6,samplerate:Ge[(60&e[l+2])>>>2],samplingfrequencyindex:(60&e[l+2])>>>2,samplesize:16,data:e.subarray(l+7+r,i)}),e.byteLength===i)return void(e=void 0);u++,e=e.subarray(i)}else l++},this.flush=function(){this.trigger("done")}},$e.prototype=new X;var Ye,Xe=$e;Ye=function(e){var t=e.byteLength,n=0,r=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+r},this.loadWord=function(){var i=e.byteLength-t,a=new Uint8Array(4),o=Math.min(4,t);if(0===o)throw new Error("no bytes available");a.set(e.subarray(i,i+o)),n=new DataView(a.buffer).getUint32(0),r=8*o,t-=o},this.skipBits=function(e){var i;r>e?(n<<=e,r-=e):(e-=r,i=Math.floor(e/8),e-=8*i,t-=i,this.loadWord(),n<<=e,r-=e)},this.readBits=function(e){var i=Math.min(r,e),a=n>>>32-i;return r-=i,r>0?n<<=i:t>0&&this.loadWord(),i=e-i,i>0?a<<i|this.readBits(i):a},this.skipLeadingZeros=function(){var e;for(e=0;e<r;++e)if(0!==(n&2147483648>>>e))return n<<=e,r-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var Ke,Qe,Ze,Je=Ye;Qe=function(){var e,t,n=0;Qe.prototype.init.call(this),this.push=function(r){var i;for(t?(i=new Uint8Array(t.byteLength+r.data.byteLength),i.set(t),i.set(r.data,t.byteLength),t=i):t=r.data;n<t.byteLength-3;n++)if(1===t[n+2]){e=n+5;break}for(;e<t.byteLength;)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}n+3!==e-2&&this.trigger("data",t.subarray(n+3,e-2));do e++;while(1!==t[e]&&e<t.length);n=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(n+3,e-2)),n=e-2,e+=3;break;default:e+=3}t=t.subarray(n),e-=n,n=0},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(n+3)),t=null,n=0,this.trigger("done")}},Qe.prototype=new X,Ze={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},Ke=function(){var e,t,n,r,i,a,o,s=new Qe;Ke.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,r=e.dts,s.push(e))},s.on("data",function(o){var s={trackId:t,pts:n,dts:r,data:o};switch(31&o[0]){case 5:s.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:s.nalUnitType="sei_rbsp",s.escapedRBSP=i(o.subarray(1));break;case 7:s.nalUnitType="seq_parameter_set_rbsp",s.escapedRBSP=i(o.subarray(1)),s.config=a(s.escapedRBSP);break;case 8:s.nalUnitType="pic_parameter_set_rbsp";break;case 9:s.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",s)}),s.on("done",function(){e.trigger("done")}),this.flush=function(){s.flush()},o=function(e,t){var n,r,i=8,a=8;for(n=0;n<e;n++)0!==a&&(r=t.readExpGolomb(),a=(i+r+256)%256),i=0===a?i:a},i=function(e){for(var t,n,r=e.byteLength,i=[],a=1;a<r-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(i.push(a+2),a+=2):a++;if(0===i.length)return e;t=r-i.length,n=new Uint8Array(t);var o=0;for(a=0;a<t;o++,a++)o===i[0]&&(o++,i.shift()),n[a]=e[o];return n},a=function(e){var t,n,r,i,a,s,l,u,c,d,h,p,f,g,m=0,v=0,y=0,_=0,b=1;if(t=new Je(e),n=t.readUnsignedByte(),i=t.readUnsignedByte(),r=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),Ze[n]&&(a=t.readUnsignedExpGolomb(),3===a&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(h=3!==a?8:12,g=0;g<h;g++)t.readBoolean()&&(g<6?o(16,t):o(64,t));if(t.skipUnsignedExpGolomb(),s=t.readUnsignedExpGolomb(),0===s)t.readUnsignedExpGolomb();else if(1===s)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),g=0;g<l;g++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),u=t.readUnsignedExpGolomb(),c=t.readUnsignedExpGolomb(),d=t.readBits(1),0===d&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(m=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb(),y=t.readUnsignedExpGolomb(),_=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(f=t.readUnsignedByte()){case 1:p=[1,1];break;case 2:p=[12,11];break;case 3:p=[10,11];break;case 4:p=[16,11];break;case 5:p=[40,33];break;case 6:p=[24,11];break;case 7:p=[20,11];break;case 8:p=[32,11];break;case 9:p=[80,33];break;case 10:p=[18,11];break;case 11:p=[15,11];break;case 12:p=[64,33];break;case 13:p=[160,99];break;case 14:p=[4,3];break;case 15:p=[3,2];break;case 16:p=[2,1];break;case 255:p=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}p&&(b=p[0]/p[1])}return{profileIdc:n,levelIdc:r,profileCompatibility:i,width:Math.ceil((16*(u+1)-2*m-2*v)*b),height:(2-d)*(c+1)*16-2*y-2*_}}},Ke.prototype=new X;var et,tt={H264Stream:Ke,NalByteStream:Qe};et=function(){var e=new Uint8Array,t=0;et.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.parseId3TagSize=function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9],r=e[t+5],i=(16&r)>>4;return i?n+20:n+10},this.parseAdtsSize=function(e,t){var n=(224&e[t+5])>>5,r=e[t+4]<<3,i=6144&e[t+3];return i|r|n},this.push=function(n){var r,i,a,o,s=0,l=0;for(e.length?(o=e.length,e=new Uint8Array(n.byteLength+o),e.set(e.subarray(0,o)),e.set(n,o)):e=n;e.length-l>=3;)if(e[l]!=="I".charCodeAt(0)||e[l+1]!=="D".charCodeAt(0)||e[l+2]!=="3".charCodeAt(0))if(e[l]&!0&&240===(240&e[l+1])){if(e.length-l<7)break;if(s=this.parseAdtsSize(e,l),s>e.length)break;a={type:"audio",data:e.subarray(l,l+s),pts:t,dts:t},this.trigger("data",a),l+=s}else l++;else{if(e.length-l<10)break;if(s=this.parseId3TagSize(e,l),s>e.length)break;i={type:"timed-metadata",data:e.subarray(l,l+s)},this.trigger("data",i),l+=s}r=e.length-l,e=r>0?e.subarray(l):new Uint8Array}},et.prototype=new X;var nt,rt,it,at,ot,st,lt=et,ut=[33,16,5,32,164,27],ct=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],dt=function(e){for(var t=[];e--;)t.push(0);return t},ht=function(e){return Object.keys(e).reduce(function(t,n){return t[n]=new Uint8Array(e[n].reduce(function(e,t){return e.concat(t)},[])),t},{})},pt={96e3:[ut,[227,64],dt(154),[56]],88200:[ut,[231],dt(170),[56]],64e3:[ut,[248,192],dt(240),[56]],48e3:[ut,[255,192],dt(268),[55,148,128],dt(54),[112]],44100:[ut,[255,192],dt(268),[55,163,128],dt(84),[112]],32e3:[ut,[255,192],dt(268),[55,234],dt(226),[112]],24e3:[ut,[255,192],dt(268),[55,255,128],dt(268),[111,112],dt(126),[224]],16e3:[ut,[255,192],dt(268),[55,255,128],dt(268),[111,255],dt(269),[223,108],dt(195),[1,192]],12e3:[ct,dt(268),[3,127,248],dt(268),[6,255,240],dt(268),[13,255,224],dt(268),[27,253,128],dt(259),[56]],11025:[ct,dt(268),[3,127,248],dt(268),[6,255,240],dt(268),[13,255,224],dt(268),[27,255,192],dt(268),[55,175,128],dt(108),[112]],8e3:[ct,dt(268),[3,121,16],dt(47),[7]]},ft=ht(pt),gt=9e4;nt=function(e){return e*gt},rt=function(e,t){return e*t},it=function(e){return e/gt},at=function(e,t){return e/t},ot=function(e,t){return nt(at(e,t))},st=function(e,t){return rt(it(e),t)};var mt,vt,yt,_t,bt,Tt,Et,St={secondsToVideoTs:nt,secondsToAudioTs:rt,videoTsToSeconds:it,audioTsToSeconds:at,audioTsToVideoTs:ot,videoTsToAudioTs:st},wt=tt.H264Stream,Ct=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],kt=["width","height","profileIdc","levelIdc","profileCompatibility"],Dt=9e4;bt=function(e){return e[0]==="I".charCodeAt(0)&&e[1]==="D".charCodeAt(0)&&e[2]==="3".charCodeAt(0)},Tt=function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},Et=function(e){var t,n,r=0;for(t=0;t<e.length;t++)n=e[t],r+=n.data.byteLength;return r},vt=function(e,t){var n=[],r=0,i=0,a=0,o=1/0;t=t||{},vt.prototype.init.call(this),this.push=function(t){le.collectDtsInfo(e,t),e&&Ct.forEach(function(n){e[n]=t[n]}),n.push(t)},this.setEarliestDts=function(t){i=t-e.timelineStartInfo.baseMediaDecodeTime},this.setVideoBaseMediaDecodeTime=function(e){o=e},this.setAudioAppendStart=function(e){a=e},this.flush=function(){var i,a,o,s;return 0===n.length?void this.trigger("done","AudioSegmentStream"):(i=this.trimAdtsFramesByEarliestDts_(n),e.baseMediaDecodeTime=le.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),this.prefixWithSilence_(e,i),e.samples=this.generateSampleTable_(i),o=W.mdat(this.concatenateFrameData_(i)),n=[],a=W.moof(r,[e]),s=new Uint8Array(a.byteLength+o.byteLength),r++,s.set(a),s.set(o,a.byteLength),le.clearDtsInfo(e),this.trigger("data",{track:e,boxes:s}),void this.trigger("done","AudioSegmentStream"))},this.prefixWithSilence_=function(e,t){var n,r,i,s=0,l=0,u=0,c=0;if(t.length&&(n=St.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),s=Math.ceil(Dt/(e.samplerate/1024)),a&&o&&(l=n-Math.max(a,o),u=Math.floor(l/s),c=u*s),!(u<1||c>Dt/2))){for(r=ft[e.samplerate],r||(r=t[0].data),i=0;i<u;i++)t.splice(i,0,{data:r});e.baseMediaDecodeTime-=Math.floor(St.videoTsToAudioTs(c,e.samplerate))}},this.trimAdtsFramesByEarliestDts_=function(t){return e.minSegmentDts>=i?t:(e.minSegmentDts=1/0,t.filter(function(t){return t.dts>=i&&(e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),e.minSegmentPts=e.minSegmentDts,!0)}))},this.generateSampleTable_=function(e){var t,n,r=[];for(t=0;t<e.length;t++)n=e[t],r.push({size:n.data.byteLength,duration:1024});return r},this.concatenateFrameData_=function(e){var t,n,r=0,i=new Uint8Array(Et(e));for(t=0;t<e.length;t++)n=e[t],i.set(n.data,r),r+=n.data.byteLength;return i}},vt.prototype=new X,mt=function(e,t){var n,r,i=0,a=[],o=[];t=t||{},mt.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){le.collectDtsInfo(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||n||(n=t.config,e.sps=[t.data],kt.forEach(function(t){e[t]=n[t]},this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,e.pps=[t.data]),a.push(t)},this.flush=function(){for(var n,r,s,l,u,c;a.length&&"access_unit_delimiter_rbsp"!==a[0].nalUnitType;)a.shift();if(0===a.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(n=re.groupNalsIntoFrames(a),s=re.groupFramesIntoGops(n),s[0][0].keyFrame||(r=this.getGopForFusion_(a[0],e),r?(s.unshift(r),s.byteLength+=r.byteLength,s.nalCount+=r.nalCount,s.pts=r.pts,s.dts=r.dts,s.duration+=r.duration):s=re.extendFirstKeyFrame(s)),o.length){var d;if(d=t.alignGopsAtEnd?this.alignGopsAtEnd_(s):this.alignGopsAtStart_(s),!d)return this.gopCache_.unshift({gop:s.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");le.clearDtsInfo(e),s=d}le.collectDtsInfo(e,s),e.samples=re.generateSampleTable(s),u=W.mdat(re.concatenateNalData(s)),e.baseMediaDecodeTime=le.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",s.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),this.gopCache_.unshift({gop:s.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),l=W.moof(i,[e]),c=new Uint8Array(l.byteLength+u.byteLength),i++,c.set(l),c.set(u,l.byteLength),this.trigger("data",{track:e,boxes:c}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.resetStream_=function(){le.clearDtsInfo(e),n=void 0,r=void 0},this.getGopForFusion_=function(t){var n,r,i,a,o,s=45e3,l=1e4,u=1/0;for(o=0;o<this.gopCache_.length;o++)a=this.gopCache_[o],i=a.gop,e.pps&&Tt(e.pps[0],a.pps[0])&&e.sps&&Tt(e.sps[0],a.sps[0])&&(i.dts<e.timelineStartInfo.dts||(n=t.dts-i.dts-i.duration,n>=-l&&n<=s&&(!r||u>n)&&(r=a,u=n)));return r?r.gop:null},this.alignGopsAtStart_=function(e){var t,n,r,i,a,s,l,u;for(a=e.byteLength,s=e.nalCount,l=e.duration,t=n=0;t<o.length&&n<e.length&&(r=o[t],i=e[n],r.pts!==i.pts);)i.pts>r.pts?t++:(n++,a-=i.byteLength,s-=i.nalCount,l-=i.duration);return 0===n?e:n===e.length?null:(u=e.slice(n),u.byteLength=a,u.duration=l,u.nalCount=s,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(e){var t,n,r,i,a,s;for(t=o.length-1,n=e.length-1,a=null,s=!1;t>=0&&n>=0;){if(r=o[t],i=e[n],r.pts===i.pts){s=!0;break}r.pts>i.pts?t--:(t===o.length-1&&(a=n),n--)}if(!s&&null===a)return null;var l;if(l=s?n:a,0===l)return e;var u=e.slice(l),c=u.reduce(function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e},{byteLength:0,duration:0,nalCount:0});return u.byteLength=c.byteLength,u.duration=c.duration,u.nalCount=c.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){o=e}},mt.prototype=new X,_t=function(e,t){this.numberOfTracks=0,this.metadataStream=t,"undefined"!=typeof e.remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,_t.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBoxes.push(e.boxes),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track),void("audio"===e.track.type&&(this.audioTrack=e.track)))}},_t.prototype=new X,_t.prototype.flush=function(e){var t,n,r,i,a=0,o={captions:[],captionStreams:{},metadata:[],info:{}},s=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}for(this.videoTrack?(s=this.videoTrack.timelineStartInfo.pts,kt.forEach(function(e){o.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(s=this.audioTrack.timelineStartInfo.pts,Ct.forEach(function(e){o.info[e]=this.audioTrack[e]},this)),1===this.pendingTracks.length?o.type=this.pendingTracks[0].type:o.type="combined",this.emittedTracks+=this.pendingTracks.length,r=W.initSegment(this.pendingTracks),o.initSegment=new Uint8Array(r.byteLength),o.initSegment.set(r),o.data=new Uint8Array(this.pendingBytes),i=0;i<this.pendingBoxes.length;i++)o.data.set(this.pendingBoxes[i],a),a+=this.pendingBoxes[i].byteLength;for(i=0;i<this.pendingCaptions.length;i++)t=this.pendingCaptions[i],t.startTime=t.startPts-s,t.startTime/=9e4,t.endTime=t.endPts-s,t.endTime/=9e4,o.captionStreams[t.stream]=!0,o.captions.push(t);for(i=0;i<this.pendingMetadata.length;i++)n=this.pendingMetadata[i],n.cueTime=n.pts-s,n.cueTime/=9e4,o.metadata.push(n);o.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",o),this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},yt=function(e){var t,n,r=this,i=!0;yt.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var t={};this.transmuxPipeline_=t,t.type="aac",t.metadataStream=new qe.MetadataStream,t.aacStream=new lt,t.audioTimestampRolloverStream=new qe.TimestampRolloverStream("audio"),t.timedMetadataTimestampRolloverStream=new qe.TimestampRolloverStream("timed-metadata"),t.adtsStream=new Xe,t.coalesceStream=new _t(e,t.metadataStream),t.headOfPipeline=t.aacStream,t.aacStream.pipe(t.audioTimestampRolloverStream).pipe(t.adtsStream),t.aacStream.pipe(t.timedMetadataTimestampRolloverStream).pipe(t.metadataStream).pipe(t.coalesceStream),t.metadataStream.on("timestamp",function(e){t.aacStream.setTimestamp(e.timeStamp)}),t.aacStream.on("data",function(i){"timed-metadata"!==i.type||t.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:r.baseMediaDecodeTime},codec:"adts",type:"audio"},t.coalesceStream.numberOfTracks++,t.audioSegmentStream=new vt(n,e),t.adtsStream.pipe(t.audioSegmentStream).pipe(t.coalesceStream))}),t.coalesceStream.on("data",this.trigger.bind(this,"data")),t.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var i={};this.transmuxPipeline_=i,i.type="ts",i.metadataStream=new qe.MetadataStream,i.packetStream=new qe.TransportPacketStream,i.parseStream=new qe.TransportParseStream,i.elementaryStream=new qe.ElementaryStream,i.videoTimestampRolloverStream=new qe.TimestampRolloverStream("video"),i.audioTimestampRolloverStream=new qe.TimestampRolloverStream("audio"),i.timedMetadataTimestampRolloverStream=new qe.TimestampRolloverStream("timed-metadata"),i.adtsStream=new Xe,i.h264Stream=new wt,i.captionStream=new qe.CaptionStream,i.coalesceStream=new _t(e,i.metadataStream),i.headOfPipeline=i.packetStream,i.packetStream.pipe(i.parseStream).pipe(i.elementaryStream),i.elementaryStream.pipe(i.videoTimestampRolloverStream).pipe(i.h264Stream),i.elementaryStream.pipe(i.audioTimestampRolloverStream).pipe(i.adtsStream),i.elementaryStream.pipe(i.timedMetadataTimestampRolloverStream).pipe(i.metadataStream).pipe(i.coalesceStream),i.h264Stream.pipe(i.captionStream).pipe(i.coalesceStream),i.elementaryStream.on("data",function(a){var o;if("metadata"===a.type){for(o=a.tracks.length;o--;)t||"video"!==a.tracks[o].type?n||"audio"!==a.tracks[o].type||(n=a.tracks[o],n.timelineStartInfo.baseMediaDecodeTime=r.baseMediaDecodeTime):(t=a.tracks[o],t.timelineStartInfo.baseMediaDecodeTime=r.baseMediaDecodeTime);t&&!i.videoSegmentStream&&(i.coalesceStream.numberOfTracks++,i.videoSegmentStream=new mt(t,e),i.videoSegmentStream.on("timelineStartInfo",function(e){n&&(n.timelineStartInfo=e,i.audioSegmentStream.setEarliestDts(e.dts))}),i.videoSegmentStream.on("processedGopsInfo",r.trigger.bind(r,"gopInfo")),i.videoSegmentStream.on("baseMediaDecodeTime",function(e){n&&i.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),i.h264Stream.pipe(i.videoSegmentStream).pipe(i.coalesceStream)), 81n&&!i.audioSegmentStream&&(i.coalesceStream.numberOfTracks++,i.audioSegmentStream=new vt(n,e),i.adtsStream.pipe(i.audioSegmentStream).pipe(i.coalesceStream))}}),i.coalesceStream.on("data",this.trigger.bind(this,"data")),i.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(e){var r=this.transmuxPipeline_;this.baseMediaDecodeTime=e,n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,le.clearDtsInfo(n),n.timelineStartInfo.baseMediaDecodeTime=e,r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[],r.videoTimestampRolloverStream.discontinuity()),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,le.clearDtsInfo(t),r.captionStream.reset(),t.timelineStartInfo.baseMediaDecodeTime=e),r.timedMetadataTimestampRolloverStream&&r.timedMetadataTimestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.push=function(e){if(i){var t=bt(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),i=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){i=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},yt.prototype=new X;var xt,At,It={Transmuxer:yt,VideoSegmentStream:mt,AudioSegmentStream:vt,AUDIO_PROPERTIES:Ct,VIDEO_PROPERTIES:kt},Ot=G.parseType,Pt=function(e){return new Date(1e3*e-20828448e5)},Mt=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},Rt=function(e){var t,n,r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=[];for(t=0;t+4<e.length;t+=n)if(n=r.getUint32(t),t+=4,n<=0)i.push("<span style='color:red;'>MALFORMED DATA</span>");else switch(31&e[t]){case 1:i.push("slice_layer_without_partitioning_rbsp");break;case 5:i.push("slice_layer_without_partitioning_rbsp_idr");break;case 6:i.push("sei_rbsp");break;case 7:i.push("seq_parameter_set_rbsp");break;case 8:i.push("pic_parameter_set_rbsp");break;case 9:i.push("access_unit_delimiter_rbsp");break;default:i.push("UNKNOWN NAL - "+e[t]&31)}return i},Lt={avc1:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{dataReferenceIndex:t.getUint16(6),width:t.getUint16(24),height:t.getUint16(26),horizresolution:t.getUint16(28)+t.getUint16(30)/16,vertresolution:t.getUint16(32)+t.getUint16(34)/16,frameCount:t.getUint16(40),depth:t.getUint16(74),config:xt(e.subarray(78,e.byteLength))}},avcC:function(e){var t,n,r,i,a=new DataView(e.buffer,e.byteOffset,e.byteLength),o={configurationVersion:e[0],avcProfileIndication:e[1],profileCompatibility:e[2],avcLevelIndication:e[3],lengthSizeMinusOne:3&e[4],sps:[],pps:[]},s=31&e[5];for(r=6,i=0;i<s;i++)n=a.getUint16(r),r+=2,o.sps.push(new Uint8Array(e.subarray(r,r+n))),r+=n;for(t=e[r],r++,i=0;i<t;i++)n=a.getUint16(r),r+=2,o.pps.push(new Uint8Array(e.subarray(r,r+n))),r+=n;return o},btrt:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{bufferSizeDB:t.getUint32(0),maxBitrate:t.getUint32(4),avgBitrate:t.getUint32(8)}},esds:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),esId:e[6]<<8|e[7],streamPriority:31&e[8],decoderConfig:{objectProfileIndication:e[11],streamType:e[12]>>>2&63,bufferSize:e[13]<<16|e[14]<<8|e[15],maxBitrate:e[16]<<24|e[17]<<16|e[18]<<8|e[19],avgBitrate:e[20]<<24|e[21]<<16|e[22]<<8|e[23],decoderConfigDescriptor:{tag:e[24],length:e[25],audioObjectType:e[26]>>>3&31,samplingFrequencyIndex:(7&e[26])<<1|e[27]>>>7&1,channelConfiguration:e[27]>>>3&15}}}},ftyp:function(e){for(var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={majorBrand:Ot(e.subarray(0,4)),minorVersion:t.getUint32(4),compatibleBrands:[]},r=8;r<e.byteLength;)n.compatibleBrands.push(Ot(e.subarray(r,r+4))),r+=4;return n},dinf:function(e){return{boxes:xt(e)}},dref:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),dataReferences:xt(e.subarray(8))}},hdlr:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),handlerType:Ot(e.subarray(8,12)),name:""},r=8;for(r=24;r<e.byteLength;r++){if(0===e[r]){r++;break}n.name+=String.fromCharCode(e[r])}return n.name=decodeURIComponent(escape(n.name)),n},mdat:function(e){return{byteLength:e.byteLength,nals:Rt(e)}},mdhd:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=4,i={version:n.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),language:""};return 1===i.version?(r+=4,i.creationTime=Pt(n.getUint32(r)),r+=8,i.modificationTime=Pt(n.getUint32(r)),r+=4,i.timescale=n.getUint32(r),r+=8,i.duration=n.getUint32(r)):(i.creationTime=Pt(n.getUint32(r)),r+=4,i.modificationTime=Pt(n.getUint32(r)),r+=4,i.timescale=n.getUint32(r),r+=4,i.duration=n.getUint32(r)),r+=4,t=n.getUint16(r),i.language+=String.fromCharCode((t>>10)+96),i.language+=String.fromCharCode(((992&t)>>5)+96),i.language+=String.fromCharCode((31&t)+96),i},mdia:function(e){return{boxes:xt(e)}},mfhd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),sequenceNumber:e[4]<<24|e[5]<<16|e[6]<<8|e[7]}},minf:function(e){return{boxes:xt(e)}},mp4a:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={dataReferenceIndex:t.getUint16(6),channelcount:t.getUint16(16),samplesize:t.getUint16(18),samplerate:t.getUint16(24)+t.getUint16(26)/65536};return e.byteLength>28&&(n.streamDescriptor=xt(e.subarray(28))[0]),n},moof:function(e){return{boxes:xt(e)}},moov:function(e){return{boxes:xt(e)}},mvex:function(e){return{boxes:xt(e)}},mvhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=4,r={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4))};return 1===r.version?(n+=4,r.creationTime=Pt(t.getUint32(n)),n+=8,r.modificationTime=Pt(t.getUint32(n)),n+=4,r.timescale=t.getUint32(n),n+=8,r.duration=t.getUint32(n)):(r.creationTime=Pt(t.getUint32(n)),n+=4,r.modificationTime=Pt(t.getUint32(n)),n+=4,r.timescale=t.getUint32(n),n+=4,r.duration=t.getUint32(n)),n+=4,r.rate=t.getUint16(n)+t.getUint16(n+2)/16,n+=4,r.volume=t.getUint8(n)+t.getUint8(n+1)/8,n+=2,n+=2,n+=8,r.matrix=new Uint32Array(e.subarray(n,n+36)),n+=36,n+=24,r.nextTrackId=t.getUint32(n),r},pdin:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),rate:t.getUint32(4),initialDelay:t.getUint32(8)}},sdtp:function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]};for(t=4;t<e.byteLength;t++)n.samples.push({dependsOn:(48&e[t])>>4,isDependedOn:(12&e[t])>>2,hasRedundancy:3&e[t]});return n},sidx:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:n.getUint32(4),timescale:n.getUint32(8),earliestPresentationTime:n.getUint32(12),firstOffset:n.getUint32(16)},i=n.getUint16(22);for(t=24;i;t+=12,i--)r.references.push({referenceType:(128&e[t])>>>7,referencedSize:2147483647&n.getUint32(t),subsegmentDuration:n.getUint32(t+4),startsWithSap:!!(128&e[t+8]),sapType:(112&e[t+8])>>>4,sapDeltaTime:268435455&n.getUint32(t+8)});return r},smhd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),balance:e[4]+e[5]/256}},stbl:function(e){return{boxes:xt(e)}},stco:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),chunkOffsets:[]},i=n.getUint32(4);for(t=8;i;t+=4,i--)r.chunkOffsets.push(n.getUint32(t));return r},stsc:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=n.getUint32(4),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleToChunks:[]};for(t=8;r;t+=12,r--)i.sampleToChunks.push({firstChunk:n.getUint32(t),samplesPerChunk:n.getUint32(t+4),sampleDescriptionIndex:n.getUint32(t+8)});return i},stsd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleDescriptions:xt(e.subarray(8))}},stsz:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleSize:n.getUint32(4),entries:[]};for(t=12;t<e.byteLength;t+=4)r.entries.push(n.getUint32(t));return r},stts:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),timeToSamples:[]},i=n.getUint32(4);for(t=8;i;t+=8,i--)r.timeToSamples.push({sampleCount:n.getUint32(t),sampleDelta:n.getUint32(t+4)});return r},styp:function(e){return Lt.ftyp(e)},tfdt:function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4)),baseMediaDecodeTime:e[4]<<24|e[5]<<16|e[6]<<8|e[7]};return 1===t.version&&(t.baseMediaDecodeTime*=Math.pow(2,32),t.baseMediaDecodeTime+=e[8]<<24|e[9]<<16|e[10]<<8|e[11]),t},tfhd:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:n.getUint32(4)},i=1&r.flags[2],a=2&r.flags[2],o=8&r.flags[2],s=16&r.flags[2],l=32&r.flags[2],u=65536&r.flags[0],c=131072&r.flags[0];return t=8,i&&(t+=4,r.baseDataOffset=n.getUint32(12),t+=4),a&&(r.sampleDescriptionIndex=n.getUint32(t),t+=4),o&&(r.defaultSampleDuration=n.getUint32(t),t+=4),s&&(r.defaultSampleSize=n.getUint32(t),t+=4),l&&(r.defaultSampleFlags=n.getUint32(t)),u&&(r.durationIsEmpty=!0),!i&&c&&(r.baseDataOffsetIsMoof=!0),r},tkhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=4,r={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4))};return 1===r.version?(n+=4,r.creationTime=Pt(t.getUint32(n)),n+=8,r.modificationTime=Pt(t.getUint32(n)),n+=4,r.trackId=t.getUint32(n),n+=4,n+=8,r.duration=t.getUint32(n)):(r.creationTime=Pt(t.getUint32(n)),n+=4,r.modificationTime=Pt(t.getUint32(n)),n+=4,r.trackId=t.getUint32(n),n+=4,n+=4,r.duration=t.getUint32(n)),n+=4,n+=8,r.layer=t.getUint16(n),n+=2,r.alternateGroup=t.getUint16(n),n+=2,r.volume=t.getUint8(n)+t.getUint8(n+1)/8,n+=2,n+=2,r.matrix=new Uint32Array(e.subarray(n,n+36)),n+=36,r.width=t.getUint16(n)+t.getUint16(n+2)/16,n+=4,r.height=t.getUint16(n)+t.getUint16(n+2)/16,r},traf:function(e){return{boxes:xt(e)}},trak:function(e){return{boxes:xt(e)}},trex:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:t.getUint32(4),defaultSampleDescriptionIndex:t.getUint32(8),defaultSampleDuration:t.getUint32(12),defaultSampleSize:t.getUint32(16),sampleDependsOn:3&e[20],sampleIsDependedOn:(192&e[21])>>6,sampleHasRedundancy:(48&e[21])>>4,samplePaddingValue:(14&e[21])>>1,sampleIsDifferenceSample:!!(1&e[21]),sampleDegradationPriority:t.getUint16(22)}},trun:function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=1&n.flags[2],a=4&n.flags[2],o=1&n.flags[1],s=2&n.flags[1],l=4&n.flags[1],u=8&n.flags[1],c=r.getUint32(4),d=8;for(i&&(n.dataOffset=r.getInt32(d),d+=4),a&&c&&(t={flags:Mt(e.subarray(d,d+4))},d+=4,o&&(t.duration=r.getUint32(d),d+=4),s&&(t.size=r.getUint32(d),d+=4),u&&(t.compositionTimeOffset=r.getUint32(d),d+=4),n.samples.push(t),c--);c--;)t={},o&&(t.duration=r.getUint32(d),d+=4),s&&(t.size=r.getUint32(d),d+=4),l&&(t.flags=Mt(e.subarray(d,d+4)),d+=4),u&&(t.compositionTimeOffset=r.getUint32(d),d+=4),n.samples.push(t);return n},"url ":function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4))}},vmhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),graphicsmode:t.getUint16(4),opcolor:new Uint16Array([t.getUint16(6),t.getUint16(8),t.getUint16(10)])}}};xt=function(e){for(var t,n,r,i,a,o=0,s=[],l=new ArrayBuffer(e.length),u=new Uint8Array(l),c=0;c<e.length;++c)u[c]=e[c];for(t=new DataView(l);o<e.byteLength;)n=t.getUint32(o),r=Ot(e.subarray(o+4,o+8)),i=n>1?o+n:e.byteLength,a=(Lt[r]||function(e){return{data:e}})(e.subarray(o+8,i)),a.size=n,a.type=r,s.push(a),o=i;return s},At=function(e,t){var n;return t=t||0,n=new Array(2*t+1).join(" "),e.map(function(e,r){return n+e.type+"\n"+Object.keys(e).filter(function(e){return"type"!==e&&"boxes"!==e}).map(function(t){var r=n+" "+t+": ",i=e[t];if(i instanceof Uint8Array||i instanceof Uint32Array){var a=Array.prototype.slice.call(new Uint8Array(i.buffer,i.byteOffset,i.byteLength)).map(function(e){return" "+("00"+e.toString(16)).slice(-2)}).join("").match(/.{1,24}/g);return a?1===a.length?r+"<"+a.join("").slice(1)+">":r+"<\n"+a.map(function(e){return n+" "+e}).join("\n")+"\n"+n+" >":r+"<>"}return r+JSON.stringify(i,null,2).split("\n").map(function(e,t){return 0===t?e:n+" "+e}).join("\n")}).join("\n")+(e.boxes?"\n"+At(e.boxes,t+1):"")}).join("\n")};var Nt={inspect:xt,textify:At,parseTfdt:Lt.tfdt,parseHdlr:Lt.hdlr,parseTfhd:Lt.tfhd,parseTrun:Lt.trun},Ut=ge.discardEmulationPreventionBytes,Ht=Se.CaptionStream,jt=function(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(n<i.size)return i;n-=i.size}return null},Bt=function(e,t,n){var r,i,a,o,s=new DataView(e.buffer,e.byteOffset,e.byteLength),l=[];for(i=0;i+4<e.length;i+=a)if(a=s.getUint32(i),i+=4,!(a<=0))switch(31&e[i]){case 6:var u=e.subarray(i+1,i+1+a),c=jt(i,t);r={nalUnitType:"sei_rbsp",size:a,data:u,escapedRBSP:Ut(u),trackId:n},c?(r.pts=c.pts,r.dts=c.dts,o=c):(r.pts=o.pts,r.dts=o.dts),l.push(r)}return l},Ft=function(e,t,n){var r=t,i=n.defaultSampleDuration||0,a=n.defaultSampleSize||0,o=n.trackId,s=[];return e.forEach(function(e){var t=Nt.parseTrun(e),n=t.samples;n.forEach(function(e){void 0===e.duration&&(e.duration=i),void 0===e.size&&(e.size=a),e.trackId=o,e.dts=r,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),e.pts=r+e.compositionTimeOffset,r+=e.duration}),s=s.concat(n)}),s},Vt=function(e,t){var n=G.findBox(e,["moof","traf"]),r=G.findBox(e,["mdat"]),i={},a=[];return r.forEach(function(e,t){var r=n[t];a.push({mdat:e,traf:r})}),a.forEach(function(e){var n,r,a=e.mdat,o=e.traf,s=G.findBox(o,["tfhd"]),l=Nt.parseTfhd(s[0]),u=l.trackId,c=G.findBox(o,["tfdt"]),d=c.length>0?Nt.parseTfdt(c[0]).baseMediaDecodeTime:0,h=G.findBox(o,["trun"]);t===u&&h.length>0&&(n=Ft(h,d,l),r=Bt(a,n,u),i[u]||(i[u]=[]),i[u]=i[u].concat(r))}),i},Wt=function(e,t,n){var r;return t?(r=Vt(e,t),{seiNals:r[t],timescale:n}):null},zt=function(){var e,t,n,r,i,a=!1;this.isInitialized=function(){return a},this.init=function(){e=new Ht,a=!0,e.on("data",function(e){e.startTime=e.startPts/r,e.endTime=e.endPts/r,i.captions.push(e),i.captionStreams[e.stream]=!0})},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length)&&(n!==e[0]||r!==t[n])},this.parse=function(e,a,o){var s;if(!this.isInitialized())return null;if(!a||!o)return null;if(this.isNewInit(a,o))n=a[0],r=o[n];else if(!n||!r)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,a,o)}return s=Wt(e,n,r),null!==s&&s.seiNals?(this.pushNals(s.seiNals),this.flushStream(),i):null},this.pushNals=function(t){return this.isInitialized()&&t&&0!==t.length?void t.forEach(function(t){e.push(t)}):null},this.flushStream=function(){return this.isInitialized()?void e.flush():null},this.clearParsedCaptions=function(){i.captions=[],i.captionStream
81s={}},this.resetCaptionStream=function(){return this.isInitialized()?void e.reset():null},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],n=null,r=null,i?this.clearParsedCaptions():i={captions:[],captionStreams:{}},this.resetCaptionStream()},this.reset()},$t=zt,qt={generator:W,probe:G,Transmuxer:It.Transmuxer,AudioSegmentStream:It.AudioSegmentStream,VideoSegmentStream:It.VideoSegmentStream,CaptionParser:$t},Gt=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Yt=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Xt=function(e,t){t.on("data",function(t){var n=t.initSegment;t.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};var r=t.data;t.data=r.buffer,e.postMessage({action:"data",segment:t,byteOffset:r.byteOffset,byteLength:r.byteLength},[t.data])}),t.captionStream&&t.captionStream.on("data",function(t){e.postMessage({action:"caption",data:t})}),t.on("done",function(t){e.postMessage({action:"done"})}),t.on("gopInfo",function(t){e.postMessage({action:"gopInfo",gopInfo:t})})},Kt=function(){function e(t,n){Gt(this,e),this.options=n||{},this.self=t,this.init()}return Yt(e,[{key:"init",value:function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new qt.Transmuxer(this.options),Xt(this.self,this.transmuxer)}},{key:"push",value:function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)}},{key:"reset",value:function(){this.init()}},{key:"setTimestampOffset",value:function(e){var t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(9e4*t))}},{key:"setAudioAppendStart",value:function(e){this.transmuxer.setAudioAppendStart(Math.ceil(9e4*e.appendStart))}},{key:"flush",value:function(e){this.transmuxer.flush()}},{key:"resetCaptions",value:function(){this.transmuxer.resetCaptions()}},{key:"alignGopsWith",value:function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())}}]),e}(),Qt=function(e){e.onmessage=function(t){return"init"===t.data.action&&t.data.options?void(this.messageHandlers=new Kt(e,t.data.options)):(this.messageHandlers||(this.messageHandlers=new Kt(e)),void(t.data&&t.data.action&&"init"!==t.data.action&&this.messageHandlers[t.data.action]&&this.messageHandlers[t.data.action](t.data)))}},Zt=new Qt(n);return Zt})()}),jo={videoCodec:"avc1",videoObjectTypeIndicator:".4d400d",audioProfile:"2"},Bo=function(e){return e.map(function(e){return e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,n){var r=("00"+Number(t).toString(16)).slice(-2),i=("00"+Number(n).toString(16)).slice(-2);return"avc1."+r+"00"+i})})},Fo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t={codecCount:0},n=void 0;return t.codecCount=e.split(",").length,t.codecCount=t.codecCount||2,n=/(^|\s|,)+(avc[13])([^ ,]*)/i.exec(e),n&&(t.videoCodec=n[2],t.videoObjectTypeIndicator=n[3]),t.audioProfile=/(^|\s|,)+mp4a.[0-9A-Fa-f]+\.([0-9A-Fa-f]+)/i.exec(e),t.audioProfile=t.audioProfile&&t.audioProfile[2],t},Vo=function(e){return e.replace(/avc1\.(\d+)\.(\d+)/i,function(e){return Bo([e])[0]})},Wo=function(e,t,n){return e+"/"+t+'; codecs="'+n.filter(function(e){return!!e}).join(", ")+'"'},zo=function(e){return e.segments&&e.segments.length&&e.segments[0].map?"mp4":"mp2t"},$o=function(e){var t=e.attributes||{};return t.CODECS?Fo(t.CODECS):jo},qo=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var n=e.mediaGroups.AUDIO[t];if(!n)return null;for(var r in n){var i=n[r];if(i["default"]&&i.playlists)return Fo(i.playlists[0].attributes.CODECS).audioProfile}return null},Go=function(e,t){var n=zo(t),r=$o(t),i=t.attributes||{},a=!0,o=!1;if(!t)return[];if(e.mediaGroups.AUDIO&&i.AUDIO){var s=e.mediaGroups.AUDIO[i.AUDIO];if(s){o=!0,a=!1;for(var l in s)if(!s[l].uri&&!s[l].playlists){a=!0;break}}}o&&!r.audioProfile&&(a||(r.audioProfile=qo(e,i.AUDIO)),r.audioProfile||(Ve.log.warn("Multiple audio tracks present but no audio codec string is specified. Attempting to use the default audio codec (mp4a.40.2)"),r.audioProfile=jo.audioProfile));var u={};r.videoCodec&&(u.video=""+r.videoCodec+r.videoObjectTypeIndicator),r.audioProfile&&(u.audio="mp4a.40."+r.audioProfile);
vendor: 22,971 bytes, lines 81-82
81var c=Wo("audio",n,[u.audio]),d=Wo("video",n,[u.video]),h=Wo("video",n,[u.video,u.audio]);return o?!a&&u.video?[d,c]:a||u.video?[h,c]:[c,c]:u.video?[h]:[c]},Yo=function(e){var t={type:"",parameters:{}},n=e.trim().split(";");return t.type=n.shift().trim(),n.forEach(function(e){var n=e.trim().split("=");if(n.length>1){var r=n[0].replace(/"/g,"").trim(),i=n[1].replace(/"/g,"").trim();t.parameters[r]=i}}),t},Xo=function(e){return/mp4a\.\d+.\d+/i.test(e)},Ko=function(e){return/avc1\.[\da-f]+/i.test(e)},Qo=function(e,t,n){if("undefined"==typeof t||null===t||!e.length)return[];var r=Math.ceil(9e4*(t-n+3)),i=void 0;for(i=0;i<e.length&&!(e[i].pts>r);i++);return e.slice(i)},Zo=function(e,t,n){if(!t.length)return e;if(n)return t.slice();var r=t[0].pts,i=0;for(i;i<e.length&&!(e[i].pts>=r);i++);return e.slice(0,i).concat(t)},Jo=function(e,t,n,r){for(var i=Math.ceil(9e4*(t-r)),a=Math.ceil(9e4*(n-r)),o=e.slice(),s=e.length;s--&&!(e[s].pts<=a););if(s===-1)return o;for(var l=s+1;l--&&!(e[l].pts<=i););return l=Math.max(l,0),o.splice(l,s-l+1),o},es=function(e,t,n){var r=null,i=null,a=0,o=[],s=[];if(!e&&!t)return Ve.createTimeRange();if(!e)return t.buffered;if(!t)return e.buffered;if(n)return e.buffered;if(0===e.buffered.length&&0===t.buffered.length)return Ve.createTimeRange();for(var l=e.buffered,u=t.buffered,c=l.length;c--;)o.push({time:l.start(c),type:"start"}),o.push({time:l.end(c),type:"end"});for(c=u.length;c--;)o.push({time:u.start(c),type:"start"}),o.push({time:u.end(c),type:"end"});for(o.sort(function(e,t){return e.time-t.time}),c=0;c<o.length;c++)"start"===o[c].type?(a++,2===a&&(r=o[c].time)):"end"===o[c].type&&(a--,1===a&&(i=o[c].time)),null!==r&&null!==i&&(s.push([r,i]),r=null,i=null);return Ve.createTimeRanges(s)},ts=function(e,t){var n=e.addSourceBuffer(t),r=Object.create(null);r.updating=!1,r.realBuffer_=n;var i=function(e){"function"==typeof n[e]?r[e]=function(){return n[e].apply(n,arguments)}:"undefined"==typeof r[e]&&Object.defineProperty(r,e,{get:function(){return n[e]},set:function(t){return n[e]=t}})};for(var a in n)i(a);return r},ns=function(e){function t(e,n){fa(this,t);var r=ya(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,Ve.EventTarget));r.timestampOffset_=0,r.pendingBuffers_=[],r.bufferUpdating_=!1,r.mediaSource_=e,r.codecs_=n,r.audioCodec_=null,r.videoCodec_=null,r.audioDisabled_=!1,r.appendAudioInitSegment_=!0,r.gopBuffer_=[],r.timeMapping_=0,r.safeAppend_=Ve.browser.IE_VERSION>=11;var i={remux:!1,alignGopsAtEnd:r.safeAppend_};return r.codecs_.forEach(function(e){Xo(e)?r.audioCodec_=e:Ko(e)&&(r.videoCodec_=e)}),r.transmuxer_=new Ho,r.transmuxer_.postMessage({action:"init",options:i}),r.transmuxer_.onmessage=function(e){return"data"===e.data.action?r.data_(e):"done"===e.data.action?r.done_(e):"gopInfo"===e.data.action?r.appendGopInfo_(e):void 0},Object.defineProperty(r,"timestampOffset",{get:function(){return this.timestampOffset_},set:function(e){"number"==typeof e&&e>=0&&(this.timestampOffset_=e,this.appendAudioInitSegment_=!0,this.gopBuffer_.length=0,this.timeMapping_=0,this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e}))}}),Object.defineProperty(r,"appendWindowStart",{get:function(){return(this.videoBuffer_||this.audioBuffer_).appendWindowStart},set:function(e){this.videoBuffer_&&(this.videoBuffer_.appendWindowStart=e),this.audioBuffer_&&(this.audioBuffer_.appendWindowStart=e)}}),Object.defineProperty(r,"updating",{get:function(){return!!(this.bufferUpdating_||!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.updating||this.videoBuffer_&&this.videoBuffer_.updating)}}),Object.defineProperty(r,"buffered",{get:function(){return es(this.videoBuffer_,this.audioBuffer_,this.audioDisabled_)}}),r}return va(t,e),ga(t,[{key:"data_",value:function(e){var t=e.data.segment;t.data=new Uint8Array(t.data,e.data.byteOffset,e.data.byteLength),t.initSegment=new Uint8Array(t.initSegment.data,t.initSegment.byteOffset,t.initSegment.byteLength),So(this,this.mediaSource_,t),this.pendingBuffers_.push(t)}},{key:"done_",value:function(e){return"closed"===this.mediaSource_.readyState?void(this.pendingBuffers_.length=0):void this.processPendingSegments_()}},{key:"createRealSourceBuffers_",value:function(){var e=this,t=["audio","video"];t.forEach(function(n){if(e[n+"Codec_"]&&!e[n+"Buffer_"]){var r=null;if(e.mediaSource_[n+"Buffer_"])r=e.mediaSource_[n+"Buffer_"],r.updating=!1;else{var i=n+"Codec_",a=n+'/mp4;codecs="'+e[i]+'"';r=ts(e.mediaSource_.nativeMediaSource_,a),e.mediaSource_[n+"Buffer_"]=r}e[n+"Buffer_"]=r,["update","updatestart","updateend"].forEach(function(i){r.addEventListener(i,function(){if("audio"!==n||!e.audioDisabled_){"updateend"===i&&(e[n+"Buffer_"].updating=!1);var r=t.every(function(t){return!("audio"!==t||!e.audioDisabled_)||(n===t||!e[t+"Buffer_"]||!e[t+"Buffer_"].updating)});return r?e.trigger(i):void 0}})})}})}},{key:"appendBuffer",value:function(e){if(this.bufferUpdating_=!0,this.audioBuffer_&&this.audioBuffer_.buffered.length){var t=this.audioBuffer_.buffered;this.transmuxer_.postMessage({action:"setAudioAppendStart",appendStart:t.end(t.length-1)})}this.videoBuffer_&&this.transmuxer_.postMessage({action:"alignGopsWith",gopsToAlignWith:Qo(this.gopBuffer_,this.mediaSource_.player_?this.mediaSource_.player_.currentTime():null,this.timeMapping_)}),this.transmuxer_.postMessage({action:"push",data:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength},[e.buffer]),this.transmuxer_.postMessage({action:"flush"})}},{key:"appendGopInfo_",value:function(e){this.gopBuffer_=Zo(this.gopBuffer_,e.data.gopInfo,this.safeAppend_)}},{key:"remove",value:function(e,t){if(this.videoBuffer_&&(this.videoBuffer_.updating=!0,this.videoBuffer_.remove(e,t),this.gopBuffer_=Jo(this.gopBuffer_,e,t,this.timeMapping_)),!this.audioDisabled_&&this.audioBuffer_&&(this.audioBuffer_.updating=!0,this.audioBuffer_.remove(e,t)),wo(e,t,this.metadataTrack_),this.inbandTextTracks_)for(var n in this.inbandTextTracks_)wo(e,t,this.inbandTextTracks_[n])}},{key:"processPendingSegments_",value:function(){var e={video:{segments:[],bytes:0},audio:{segments:[],bytes:0},captions:[],metadata:[]};e=this.pendingBuffers_.reduce(function(e,t){var n=t.type,r=t.data,i=t.initSegment;return e[n].segments.push(r),e[n].bytes+=r.byteLength,e[n].initSegment=i,t.captions&&(e.captions=e.captions.concat(t.captions)),t.info&&(e[n].info=t.info),t.metadata&&(e.metadata=e.metadata.concat(t.metadata)),e},e),this.videoBuffer_||this.audioBuffer_||(0===e.video.bytes&&(this.videoCodec_=null),0===e.audio.bytes&&(this.audioCodec_=null),this.createRealSourceBuffers_()),e.audio.info&&this.mediaSource_.trigger({type:"audioinfo",info:e.audio.info}),e.video.info&&this.mediaSource_.trigger({type:"videoinfo",info:e.video.info}),this.appendAudioInitSegment_&&(!this.audioDisabled_&&this.audioBuffer_&&(e.audio.segments.unshift(e.audio.initSegment),e.audio.bytes+=e.audio.initSegment.byteLength),this.appendAudioInitSegment_=!1);var t=!1;this.videoBuffer_&&e.video.bytes?(e.video.segments.unshift(e.video.initSegment),e.video.bytes+=e.video.initSegment.byteLength,this.concatAndAppendSegments_(e.video,this.videoBuffer_),Do(this,e.captions,e.metadata)):!this.videoBuffer_||!this.audioDisabled_&&this.audioBuffer_||(t=!0),!this.audioDisabled_&&this.audioBuffer_&&this.concatAndAppendSegments_(e.audio,this.audioBuffer_),this.pendingBuffers_.length=0,t&&this.trigger("updateend"),this.bufferUpdating_=!1}},{key:"concatAndAppendSegments_",value:function(e,t){var n=0,r=void 0;if(e.bytes){r=new Uint8Array(e.bytes),e.segments.forEach(function(e){r.set(e,n),n+=e.byteLength});try{t.updating=!0,t.appendBuffer(r)}catch(i){this.mediaSource_.player_&&this.mediaSource_.player_.error({code:-3,type:"APPEND_BUFFER_ERR",message:i.message,originalError:i})}}}},{key:"abort",value:function(){this.videoBuffer_&&this.videoBuffer_.abort(),!this.audioDisabled_&&this.audioBuffer_&&this.audioBuffer_.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"reset"}),this.pendingBuffers_.length=0,this.bufferUpdating_=!1}}]),t}(Ve.EventTarget),rs=function(e){function t(){fa(this,t);var e=ya(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),n=void 0;e.nativeMediaSource_=new Ge.MediaSource;for(n in e.nativeMediaSource_)n in t.prototype||"function"!=typeof e.nativeMediaSource_[n]||(e[n]=e.nativeMediaSource_[n].bind(e.nativeMediaSource_));return e.duration_=NaN,Object.defineProperty(e,"duration",{get:function(){return this.duration_===1/0?this.duration_:this.nativeMediaSource_.duration},set:function(e){if(this.duration_=e,e!==1/0)return void(this.nativeMediaSource_.duration=e)}}),Object.defineProperty(e,"seekable",{get:function(){return this.duration_===1/0?Ve.createTimeRanges([[0,this.nativeMediaSource_.duration]]):this.nativeMediaSource_.seekable}}),Object.defineProperty(e,"readyState",{get:function(){return this.nativeMediaSource_.readyState}}),Object.defineProperty(e,"activeSourceBuffers",{get:function(){return this.activeSourceBuffers_}}),e.sourceBuffers=[],e.activeSourceBuffers_=[],e.updateActiveSourceBuffers_=function(){if(e.activeSourceBuffers_.length=0,1===e.sourceBuffers.length){var t=e.sourceBuffers[0];return t.appendAudioInitSegment_=!0,t.audioDisabled_=!t.audioCodec_,void e.activeSourceBuffers_.push(t)}for(var n=!1,r=!0,i=0;i<e.player_.audioTracks().length;i++){var a=e.player_.audioTracks()[i];if(a.enabled&&"main"!==a.kind){n=!0,r=!1;break}}e.sourceBuffers.forEach(function(t,i){if(t.appendAudioInitSegment_=!0,t.videoCodec_&&t.audioCodec_)t.audioDisabled_=n;else if(t.videoCodec_&&!t.audioCodec_)t.audioDisabled_=!0,r=!1;else if(!t.videoCodec_&&t.audioCodec_&&(t.audioDisabled_=i?r:!r,t.audioDisabled_))return;e.activeSourceBuffers_.push(t)})},e.onPlayerMediachange_=function(){e.sourceBuffers.forEach(function(e){e.appendAudioInitSegment_=!0})},e.onHlsReset_=function(){e.sourceBuffers.forEach(function(e){e.transmuxer_&&e.transmuxer_.postMessage({action:"resetCaptions"})})},e.onHlsSegmentTimeMapping_=function(t){e.sourceBuffers.forEach(function(e){return e.timeMapping_=t.mapping})},["sourceopen","sourceclose","sourceended"].forEach(function(e){this.nativeMediaSource_.addEventListener(e,this.trigger.bind(this))},e),e.on("sourceopen",function(t){var n=Ye.querySelector('[src="'+e.url_+'"]');n&&(e.player_=Ve(n.parentNode),e.player_.tech_.on("hls-reset",e.onHlsReset_),e.player_.tech_.on("hls-segment-time-mapping",e.onHlsSegmentTimeMapping_),e.player_.audioTracks&&e.player_.audioTracks()&&(e.player_.audioTracks().on("change",e.updateActiveSourceBuffers_),e.player_.audioTracks().on("addtrack",e.updateActiveSourceBuffers_),e.player_.audioTracks().on("removetrack",e.updateActiveSourceBuffers_)),e.player_.on("mediachange",e.onPlayerMediachange_))}),e.on("sourceended",function(t){for(var n=ko(e.duration),r=0;r<e.sourceBuffers.length;r++){var i=e.sourceBuffers[r],a=i.metadataTrack_&&i.metadataTrack_.cues;a&&a.length&&(a[a.length-1].endTime=n)}}),e.on("sourceclose",function(e){this.sourceBuffers.forEach(function(e){e.transmuxer_&&e.transmuxer_.terminate()}),this.sourceBuffers.length=0,this.player_&&(this.player_.audioTracks&&this.player_.audioTracks()&&(this.player_.audioTracks().off("change",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("addtrack",this.updateActiveSourceBuffers_),this.player_.audioTracks().off("removetrack",this.updateActiveSourceBuffers_)),this.player_.el_&&(this.player_.off("mediachange",this.onPlayerMediachange_),this.player_.tech_.off("hls-reset",this.onHlsReset_),this.player_.tech_.off("hls-segment-time-mapping",this.onHlsSegmentTimeMapping_)))}),e}return va(t,e),ga(t,[{key:"addSeekableRange_",value:function(e,t){var n=void 0;if(this.duration!==1/0)throw n=new Error("MediaSource.addSeekableRange() can only be invoked when the duration is Infinity"),n.name="InvalidStateError",n.code=11,n;(t>this.nativeMediaSource_.duration||isNaN(this.nativeMediaSource_.duration))&&(this.nativeMediaSource_.duration=t)}},{key:"addSourceBuffer",value:function(e){var t=void 0,n=Yo(e);if(/^(video|audio)\/mp2t$/i.test(n.type)){var r=[];n.parameters&&n.parameters.codecs&&(r=n.parameters.codecs.split(","),r=Bo(r),r=r.filter(function(e){ 82return Xo(e)||Ko(e)})),0===r.length&&(r=["avc1.4d400d","mp4a.40.2"]),t=new ns(this,r),0!==this.sourceBuffers.length&&(this.sourceBuffers[0].createRealSourceBuffers_(),t.createRealSourceBuffers_(),this.sourceBuffers[0].audioDisabled_=!0)}else t=this.nativeMediaSource_.addSourceBuffer(e);return this.sourceBuffers.push(t),t}}]),t}(Ve.EventTarget),is=0;Ve.mediaSources={};var as=function(e,t){var n=Ve.mediaSources[e];if(!n)throw new Error("Media Source not found (Video.js)");n.trigger({type:"sourceopen",swfId:t})},os=function(){return!!Ge.MediaSource&&!!Ge.MediaSource.isTypeSupported&&Ge.MediaSource.isTypeSupported('video/mp4;codecs="avc1.4d400d,mp4a.40.2"')},ss=function(){if(this.MediaSource={open:as,supportsNativeMediaSources:os},os())return new rs;throw new Error("Cannot use create a virtual MediaSource for this video")};ss.open=as,ss.supportsNativeMediaSources=os;var ls={createObjectURL:function(e){var t="blob:vjs-media-source/",n=void 0;return e instanceof rs?(n=Ge.URL.createObjectURL(e.nativeMediaSource_),e.url_=n,n):e instanceof rs?(n=t+is,is++,Ve.mediaSources[n]=e,n):(n=Ge.URL.createObjectURL(e),e.url_=n,n)}};Ve.MediaSource=ss,Ve.URL=ls;var us=Ve.EventTarget,cs=Ve.mergeOptions,ds=function(e,t){for(var n=cs(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod}),r=0;r<t.playlists.length;r++){var i=ka(n,t.playlists[r]);i&&(n=i)}return Sa(t,function(e,t,r,i){if(e.playlists&&e.playlists.length){var a=e.playlists[0].uri,o=ka(n,e.playlists[0]);o&&(n=o,n.mediaGroups[t][r][i].playlists[0]=n.playlists[a])}}),n},hs=function(e){function t(e,n,r,i){fa(this,t);var a=ya(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(a.hls_=n,a.withCredentials=r,!e)throw new Error("A non-empty playlist URL or playlist is required");return a.on("minimumUpdatePeriod",function(){a.refreshXml_()}),a.on("mediaupdatetimeout",function(){a.refreshMedia_()}),"string"==typeof e?(a.srcUrl=e,a.state="HAVE_NOTHING",ya(a)):(a.masterPlaylistLoader_=i,a.state="HAVE_METADATA",a.started=!0,a.media(e),Ge.setTimeout(function(){a.trigger("loadedmetadata")},0),a)}return va(t,e),ga(t,[{key:"dispose",value:function(){this.stopRequest(),Ge.clearTimeout(this.mediaUpdateTimeout)}},{key:"stopRequest",value:function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}},{key:"media",value:function(e){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var t=this.state;if("string"==typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}var n=!this.media_||e.uri!==this.media_.uri;this.state="HAVE_METADATA",n&&(this.media_&&this.trigger("mediachanging"),this.media_=e,this.refreshMedia_(),"HAVE_MASTER"!==t&&this.trigger("mediachange"))}},{key:"pause",value:function(){this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1)}},{key:"load",value:function(){return this.started?void this.trigger("loadedplaylist"):void this.start()}},{key:"parseMasterXml",value:function(){var e=tt.parse(this.masterXml_,{manifestUri:this.srcUrl,clientOffset:this.clientOffset_});e.uri=this.srcUrl;for(var t=0;t<e.playlists.length;t++){var n="placeholder-uri-"+t;e.playlists[t].uri=n,e.playlists[n]=e.playlists[t]}return Sa(e,function(t,n,r,i){if(t.playlists&&t.playlists.length){var a="placeholder-uri-"+n+"-"+r+"-"+i;t.playlists[0].uri=a,e.playlists[a]=t.playlists[0]}}),Da(e),xa(e),e}},{key:"start",value:function(){var e=this;this.started=!0,this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"DASH playlist request error at URL: "+e.srcUrl,responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.masterXml_=n.responseText,n.responseHeaders&&n.responseHeaders.date?e.masterLoaded_=Date.parse(n.responseHeaders.date):e.masterLoaded_=Date.now(),e.syncClientServerClock_(e.onClientServerClockSync_.bind(e))}})}},{key:"syncClientServerClock_",value:function(e){var t=this,n=tt.parseUTCTiming(this.masterXml_);return null===n?(this.clientOffset_=this.masterLoaded_-Date.now(),e()):"DIRECT"===n.method?(this.clientOffset_=n.value-Date.now(),e()):void(this.request=this.hls_.xhr({uri:pa(this.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},function(r,i){if(t.request){if(r)return t.clientOffset_=t.masterLoaded_-Date.now(),e();var a=void 0;a="HEAD"===n.method?i.responseHeaders&&i.responseHeaders.date?Date.parse(i.responseHeaders.date):t.masterLoaded_:Date.parse(i.responseText),t.clientOffset_=a-Date.now(),e()}}))}},{key:"onClientServerClockSync_",value:function(){var e=this;this.master=this.parseMasterXml(),this.state="HAVE_MASTER",this.trigger("loadedplaylist"),this.media_||this.media(this.master.playlists[0]),Ge.setTimeout(function(){e.trigger("loadedmetadata")},0),this.master.minimumUpdatePeriod&&Ge.setTimeout(function(){e.trigger("minimumUpdatePeriod")},this.master.minimumUpdatePeriod)}},{key:"refreshXml_",value:function(){var e=this;this.request=this.hls_.xhr({uri:this.srcUrl,withCredentials:this.withCredentials},function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"DASH playlist request error at URL: "+e.srcUrl,responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.masterXml_=n.responseText;var r=e.parseMasterXml();e.master=ds(e.master,r),Ge.setTimeout(function(){e.trigger("minimumUpdatePeriod")},e.master.minimumUpdatePeriod)}})}},{key:"refreshMedia_",value:function(){var e=this,t=void 0,n=void 0;this.masterPlaylistLoader_?(t=this.masterPlaylistLoader_.master,n=this.masterPlaylistLoader_.parseMasterXml()):(t=this.master,n=this.parseMasterXml());var r=ds(t,n);r?(this.masterPlaylistLoader_?this.masterPlaylistLoader_.master=r:this.master=r,this.media_=r.playlists[this.media_.uri]):this.trigger("playlistunchanged"),this.media().endList||(this.mediaUpdateTimeout=Ge.setTimeout(function(){e.trigger("mediaupdatetimeout")},Aa(this.media(),!!r))),this.trigger("loadedplaylist")}}]),t}(us),ps=function(e){return Ve.log.debug?Ve.log.debug.bind(Ve,"VHS:",e+" >"):function(){}},fs=function(){function e(t,n,r,i){fa(this,e),this.callbacks_=[],this.pendingCallback_=null,this.timestampOffset_=0,this.mediaSource=t,this.processedAppend_=!1,this.type_=r,this.mimeType_=n,this.logger_=ps("SourceUpdater["+r+"]["+n+"]"),"closed"===t.readyState?t.addEventListener("sourceopen",this.createSourceBuffer_.bind(this,n,i)):this.createSourceBuffer_(n,i)}return ga(e,[{key:"createSourceBuffer_",value:function(e,t){var n=this;return this.sourceBuffer_=this.mediaSource.addSourceBuffer(e),this.logger_("created SourceBuffer"),t&&(t.trigger("sourcebufferadded"),this.mediaSource.sourceBuffers.length<2)?void t.on("sourcebufferadded",function(){n.start_()}):void this.start_()}},{key:"start_",value:function(){var e=this;this.started_=!0,this.onUpdateendCallback_=function(){var t=e.pendingCallback_;e.pendingCallback_=null,e.logger_("buffered ["+bo(e.buffered())+"]"),t&&t(),e.runCallback_()},this.sourceBuffer_.addEventListener("updateend",this.onUpdateendCallback_),this.runCallback_()}},{key:"abort",value:function(e){var t=this;this.processedAppend_&&this.queueCallback_(function(){t.sourceBuffer_.abort()},e)}},{key:"appendBuffer",value:function(e,t){var n=this;this.processedAppend_=!0,this.queueCallback_(function(){n.sourceBuffer_.appendBuffer(e)},t)}},{key:"buffered",value:function(){return this.sourceBuffer_?this.sourceBuffer_.buffered:Ve.createTimeRanges()}},{key:"remove",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qe;this.processedAppend_&&this.queueCallback_(function(){n.logger_("remove ["+e+" => "+t+"]"),n.sourceBuffer_.remove(e,t)},r)}},{key:"updating",value:function(){return!this.sourceBuffer_||this.sourceBuffer_.updating||this.pendingCallback_}},{key:"timestampOffset",value:function(e){var t=this;return"undefined"!=typeof e&&(this.queueCallback_(function(){t.sourceBuffer_.timestampOffset=e}),this.timestampOffset_=e),this.timestampOffset_}},{key:"queueCallback_",value:function(e,t){this.callbacks_.push([e.bind(this),t]),this.runCallback_()}},{key:"runCallback_",value:function(){var e=void 0;!this.updating()&&this.callbacks_.length&&this.started_&&(e=this.callbacks_.shift(),this.pendingCallback_=e[1],e[0]())}},{key:"dispose",value:function(){this.sourceBuffer_.removeEventListener("updateend",this.onUpdateendCallback_),this.sourceBuffer_&&"open"===this.mediaSource.readyState&&this.sourceBuffer_.abort()}}]),e}(),gs={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,BUFFER_LOW_WATER_LINE_RATE:1},ms={FAILURE:2,TIMEOUT:-101,ABORTED:-102},vs=function(e){var t=void 0,n=void 0;return n=e.offset+e.length-1,t=e.offset,"bytes="+t+"-"+n},ys=function(e){var t={};return e.byterange&&(t.Range=vs(e.byterange)),t},_s=function(e){e.forEach(function(e){e.abort()})},bs=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}},Ts=function(e){var t=e.target,n=Date.now()-t.requestTime,r={bandwidth:1/0,bytesReceived:0,roundTripTime:n||0};return r.bytesReceived=e.loaded,r.bandwidth=Math.floor(r.bytesReceived/r.roundTripTime*8*1e3),r},Es=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:ms.TIMEOUT,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:ms.ABORTED,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:ms.FAILURE,xhr:t}:null},Ss=function(e,t){return function(n,r){var i=r.response,a=Es(n,r);if(a)return t(a,e);if(16!==i.byteLength)return t({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:ms.FAILURE,xhr:r},e);var o=new DataView(i);return e.key.bytes=new Uint32Array([o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)]),t(null,e)}},ws=function(e,t,n){return function(r,i){var a=i.response,o=Es(r,i);return o?n(o,e):0===a.byteLength?n({status:i.status,message:"Empty HLS segment content at URL: "+i.uri,code:ms.FAILURE,xhr:i},e):(e.map.bytes=new Uint8Array(i.response),t.isInitialized()||t.init(),e.map.timescales=nt.timescale(e.map.bytes),e.map.videoTrackIds=nt.videoTrackIds(e.map.bytes),n(null,e))}},Cs=function(e,t,n){return function(r,i){var a=i.response,o=Es(r,i),s=void 0;return o?n(o,e):0===a.byteLength?n({status:i.status,message:"Empty HLS segment content at URL: "+i.uri,code:ms.FAILURE,xhr:i},e):(e.stats=bs(i),e.key?e.encryptedBytes=new Uint8Array(i.response):e.bytes=new Uint8Array(i.response),e.map&&e.map.bytes&&(t.isInitialized()||t.init(),s=t.parse(e.bytes,e.map.videoTrackIds,e.map.timescales),s&&s.captions&&(e.captionStream
82s=s.captionStreams,e.fmp4Captions=s.captions)),n(null,e))}},ks=function(e,t,n){var r=function i(r){if(r.data.source===t.requestId){e.removeEventListener("message",i);var a=r.data.decrypted;return t.bytes=new Uint8Array(a.bytes,a.byteOffset,a.byteLength),n(null,t)}};e.addEventListener("message",r),e.postMessage(so({source:t.requestId,encrypted:t.encryptedBytes,key:t.key.bytes,iv:t.key.iv}),[t.encryptedBytes.buffer,t.key.bytes.buffer])},Ds=function(e){return e.reduce(function(e,t){return t.code>e.code?t:e})},xs=function(e,t,n){var r=[],i=0;return function(a,o){if(a&&(_s(e),r.push(a)),i+=1,i===e.length){if(o.endOfAllRequests=Date.now(),r.length>0){var s=Ds(r);return n(s,o)}return o.encryptedBytes?ks(t,o,n):n(null,o)}}},As=function(e,t){return function(n){return e.stats=Ve.mergeOptions(e.stats,Ts(n)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),t(n,e)}},Is=function(e,t,n,r,i,a,o){var s=[],l=xs(s,n,o);if(i.key){var u=Ve.mergeOptions(t,{uri:i.key.resolvedUri,responseType:"arraybuffer"}),c=Ss(i,l),d=e(u,c);s.push(d)}if(i.map&&!i.map.bytes){var h=Ve.mergeOptions(t,{uri:i.map.resolvedUri,responseType:"arraybuffer",headers:ys(i.map)}),p=ws(i,r,l),f=e(h,p);s.push(f)}var g=Ve.mergeOptions(t,{uri:i.resolvedUri,responseType:"arraybuffer",headers:ys(i)}),m=Cs(i,r,l),v=e(g,m);return v.addEventListener("progress",As(i,a)),s.push(v),function(){return _s(s)}},Os=function(e,t){var n=void 0;return e?(n=Ge.getComputedStyle(e),n?n[t]:""):""},Ps=function(e,t){var n=e.slice();e.sort(function(e,r){var i=t(e,r);return 0===i?n.indexOf(e)-n.indexOf(r):i})},Ms=function(e,t){var n=void 0,r=void 0;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||Ge.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(r=t.attributes.BANDWIDTH),r=r||Ge.Number.MAX_VALUE,n-r},Rs=function(e,t){var n=void 0,r=void 0;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||Ge.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(r=t.attributes.RESOLUTION.width),r=r||Ge.Number.MAX_VALUE,n===r&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-r},Ls=function(e,t,n,r,i){var a=e.playlists.map(function(e){var t=void 0,n=void 0,r=void 0;return t=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,n=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height,r=e.attributes.BANDWIDTH,r=r||Ge.Number.MAX_VALUE,{bandwidth:r,width:t,height:n,playlist:e}});Ps(a,function(e,t){return e.bandwidth-t.bandwidth}),a=a.filter(function(e){return!eo.isIncompatible(e.playlist)});var o=a.filter(function(e){return eo.isEnabled(e.playlist)});o.length||(o=a.filter(function(e){return!eo.isDisabled(e.playlist)}));var s=o.filter(function(e){return e.bandwidth*gs.BANDWIDTH_VARIANCE<t}),l=s[s.length-1],u=s.filter(function(e){return e.bandwidth===l.bandwidth})[0];if(i===!1){var c=u||o[0]||a[0];return c?c.playlist:null}var d=s.filter(function(e){return e.width&&e.height});Ps(d,function(e,t){return e.width-t.width});var h=d.filter(function(e){return e.width===n&&e.height===r});l=h[h.length-1];var p=h.filter(function(e){return e.bandwidth===l.bandwidth})[0],f=void 0,g=void 0,m=void 0;p||(f=d.filter(function(e){return e.width>n||e.height>r}),g=f.filter(function(e){return e.width===f[0].width&&e.height===f[0].height}),l=g[g.length-1],m=g.filter(function(e){return e.bandwidth===l.bandwidth})[0]);var v=m||p||u||o[0]||a[0];return v?v.playlist:null},Ns=function(){return Ls(this.playlists.master,this.systemBandwidth,parseInt(Os(this.tech_.el(),"width"),10),parseInt(Os(this.tech_.el(),"height"),10),this.limitRenditionByPlayerDimensions)},Us=function(e){var t=e.master,n=e.currentTime,r=e.bandwidth,i=e.duration,a=e.segmentDuration,o=e.timeUntilRebuffer,s=e.currentTimeline,l=e.syncController,u=t.playlists.filter(function(e){return!eo.isIncompatible(e)}),c=u.filter(eo.isEnabled);c.length||(c=u.filter(function(e){return!eo.isDisabled(e)}));var d=c.filter(eo.hasAttribute.bind(null,"BANDWIDTH")),h=d.map(function(e){var t=l.getSyncPoint(e,i,s,n),u=t?1:2,c=eo.estimateSegmentRequestTime(a,r,e),d=c*u-o;return{playlist:e,rebufferingImpact:d}}),p=h.filter(function(e){return e.rebufferingImpact<=0});return Ps(p,function(e,t){return Ms(t.playlist,e.playlist)}),p.length?p[0]:(Ps(h,function(e,t){return e.rebufferingImpact-t.rebufferingImpact}),h[0]||null)},Hs=function(){var e=this.playlists.master.playlists.filter(eo.isEnabled);Ps(e,function(e,t){return Ms(e,t)});var t=e.filter(function(e){return Fo(e.attributes.CODECS).videoCodec});return t[0]||null},js=function(e,t,n){for(var r in n)if(!e[r]){t.trigger({type:"usage",name:"hls-608"});var i=t.textTracks().getTrackById(r);i?e[r]=i:e[r]=t.addRemoteTextTrack({kind:"captions",id:r,label:r},!1).track}},Bs=function(e){var t=e.inbandTextTracks,n=e.captionArray,r=e.timestampOffset;if(n){var i=window.WebKitDataCue||window.VTTCue;
vendor: 51,661 bytes, lines 82-84
82n.forEach(function(e){var n=e.stream,a=e.startTime,o=e.endTime;t[n]&&(a+=r,o+=r,t[n].addCue(new i(a,o,e.text)))})}},Fs=500,Vs=function(e,t,n){if(!e||!t)return!1;var r=e.segments,i=n===r.length;return e.endList&&"open"===t.readyState&&i},Ws=function(e){return"number"==typeof e&&isFinite(e)},zs=function(e,t,n){return"main"===e&&t&&n?n.containsAudio||n.containsVideo?t.containsVideo&&!n.containsVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.containsVideo&&n.containsVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null},$s=function(e,t,n){var r=void 0;return r=e.length&&e.start(0)>0&&e.start(0)<t?e.start(0):t-30,Math.min(r,t-n)},qs=function(e){var t=e.segment,n=t.start,r=t.end,i=e.playlist,a=i.mediaSequence,o=i.id,s=i.segments,l=void 0===s?[]:s,u=e.mediaIndex,c=e.timeline;return["appending ["+u+"] of ["+a+", "+(a+l.length)+"] from playlist ["+o+"]","["+n+" => "+r+"] in timeline ["+c+"]"].join(" ")},Gs=function(e){function t(e){fa(this,t);var n=ya(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(!e)throw new TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");return n.bandwidth=e.bandwidth,n.throughput={rate:0,count:0},n.roundTrip=NaN,n.resetStats_(),n.mediaIndex=null,n.hasPlayed_=e.hasPlayed,n.currentTime_=e.currentTime,n.seekable_=e.seekable,n.seeking_=e.seeking,n.duration_=e.duration,n.mediaSource_=e.mediaSource,n.hls_=e.hls,n.loaderType_=e.loaderType,n.startingMedia_=void 0,n.segmentMetadataTrack_=e.segmentMetadataTrack,n.goalBufferLength_=e.goalBufferLength,n.sourceType_=e.sourceType,n.inbandTextTracks_=e.inbandTextTracks,n.state_="INIT",n.checkBufferTimeout_=null,n.error_=void 0,n.currentTimeline_=-1,n.pendingSegment_=null,n.mimeType_=null,n.sourceUpdater_=null,n.xhrOptions_=null,n.activeInitSegmentId_=null,n.initSegments_={},n.captionParser_=new rt.CaptionParser,n.decrypter_=e.decrypter,n.syncController_=e.syncController,n.syncPoint_={segmentIndex:0,time:0},n.syncController_.on("syncinfoupdate",function(){return n.trigger("syncinfoupdate")}),n.mediaSource_.addEventListener("sourceopen",function(){return n.ended_=!1}),n.fetchAtBuffer_=!1,n.logger_=ps("SegmentLoader["+n.loaderType_+"]"),Object.defineProperty(n,"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e)}}),n}return va(t,e),ga(t,[{key:"resetStats_",value:function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0}},{key:"dispose",value:function(){this.state="DISPOSED",this.pause(),this.abort_(),this.sourceUpdater_&&this.sourceUpdater_.dispose(),this.resetStats_(),this.captionParser_.reset()}},{key:"abort",value:function(){return"WAITING"!==this.state?void(this.pendingSegment_&&(this.pendingSegment_=null)):(this.abort_(),this.state="READY",void(this.paused()||this.monitorBuffer_()))}},{key:"abort_",value:function(){this.pendingSegment_&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null}},{key:"error",value:function(e){return"undefined"!=typeof e&&(this.error_=e),this.pendingSegment_=null,this.error_}},{key:"endOfStream",value:function(){this.ended_=!0,this.pause(),this.trigger("ended")}},{key:"buffered_",value:function(){return this.sourceUpdater_?this.sourceUpdater_.buffered():Ve.createTimeRanges()}},{key:"initSegment",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;var n=lo(e),r=this.initSegments_[n];return t&&!r&&e.bytes&&(this.initSegments_[n]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,timescales:e.timescales,videoTrackIds:e.videoTrackIds}),r||e}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&(this.sourceUpdater_||this.mimeType_&&"INIT"===this.state)&&!this.paused()}},{key:"load",value:function(){if(this.monitorBuffer_(),this.playlist_)return this.syncController_.setDateTimeMapping(this.playlist_),"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))}},{key:"init_",value:function(){return this.state="READY",this.sourceUpdater_=new fs(this.mediaSource_,this.mimeType_,this.loaderType_,this.sourceBufferEmitter_),this.resetEverything(),this.monitorBuffer_()}},{key:"playlist",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){var n=this.playlist_,r=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,this.hasPlayed_()||(e.syncInfo={mediaSequence:e.mediaSequence,time:0});var i=n?n.id:null;if(this.logger_("playlist update ["+i+" => "+e.id+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==e.uri)return void(null!==this.mediaIndex&&this.resyncLoader());var a=e.mediaSequence-n.mediaSequence;this.logger_("live window shift ["+a+"]"),null!==this.mediaIndex&&(this.mediaIndex-=a),r&&(r.mediaIndex-=a,r.mediaIndex>=0&&(r.segment=e.segments[r.mediaIndex])),this.syncController_.saveExpiredSegmentInfo(n,e)}}},{key:"pause",value:function(){this.checkBufferTimeout_&&(Ge.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}},{key:"paused",value:function(){return null===this.checkBufferTimeout_}},{key:"mimeType",value:function(e,t){this.mimeType_||(this.mimeType_=e,this.sourceBufferEmitter_=t,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_())}},{key:"resetEverything",value:function(e){this.ended_=!1,this.resetLoader(),this.remove(0,this.duration_(),e),this.captionParser_.clearAllCaptions(),this.trigger("reseteverything")}},{key:"resetLoader",value:function(){this.fetchAtBuffer_=!1,this.resyncLoader()}},{key:"resyncLoader",value:function(){this.mediaIndex=null,this.syncPoint_=null,this.abort()}},{key:"remove",value:function(e,t,n){if(this.sourceUpdater_&&this.sourceUpdater_.remove(e,t,n),wo(e,t,this.segmentMetadataTrack_),this.inbandTextTracks_)for(var r in this.inbandTextTracks_)wo(e,t,this.inbandTextTracks_[r])}},{key:"monitorBuffer_",value:function(){this.checkBufferTimeout_&&Ge.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=Ge.setTimeout(this.monitorBufferTick_.bind(this),1)}},{key:"monitorBufferTick_",value:function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&Ge.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=Ge.setTimeout(this.monitorBufferTick_.bind(this),Fs)}},{key:"fillBuffer_",value:function(){if(!this.sourceUpdater_.updating()){this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var e=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(e){var t=Vs(this.playlist_,this.mediaSource_,e.mediaIndex);return t?void this.endOfStream():void((e.mediaIndex!==this.playlist_.segments.length-1||"ended"!==this.mediaSource_.readyState||this.seeking_())&&((e.timeline!==this.currentTimeline_||null!==e.startOfSegment&&e.startOfSegment<this.sourceUpdater_.timestampOffset())&&(this.syncController_.reset(),e.timestampOffset=e.startOfSegment,this.captionParser_.clearAllCaptions()),this.loadSegment_(e)))}}}},{key:"checkBuffer_",value:function(e,t,n,r,i,a){var o=0,s=void 0;e.length&&(o=e.end(e.length-1));var l=Math.max(0,o-i);if(!t.segments.length)return null;if(l>=this.goalBufferLength_())return null;if(!r&&l>=1)return null;if(null===a)return n=this.getSyncSegmentCandidate_(t),this.generateSegmentInfo_(t,n,null,!0);if(null!==n){var u=t.segments[n];return s=u&&u.end?u.end:o,this.generateSegmentInfo_(t,n+1,s,!1)}if(this.fetchAtBuffer_){var c=eo.getMediaInfoForTime(t,o,a.segmentIndex,a.time);n=c.mediaIndex,s=c.startTime}else{var d=eo.getMediaInfoForTime(t,i,a.segmentIndex,a.time);n=d.mediaIndex,s=d.startTime}return this.generateSegmentInfo_(t,n,s,!1)}},{key:"getSyncSegmentCandidate_",value:function(e){var t=this;if(this.currentTimeline_===-1)return 0;var n=e.segments.map(function(e,t){return{timeline:e.timeline,segmentIndex:t}}).filter(function(e){return e.timeline===t.currentTimeline_});return n.length?n[Math.min(n.length-1,1)].segmentIndex:Math.max(e.segments.length-1,0)}},{key:"generateSegmentInfo_",value:function(e,t,n,r){if(t<0||t>=e.segments.length)return null;var i=e.segments[t];return{requestId:"segment-loader-"+Math.random(),uri:i.resolvedUri,mediaIndex:t,isSyncRequest:r,startOfSegment:n,playlist:e,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:i.timeline,duration:i.duration,segment:i}}},{key:"abortRequestEarly_",value:function(e){if(this.hls_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH)return!1;if(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return!1;var t=this.currentTime_(),n=e.bandwidth,r=this.pendingSegment_.duration,i=eo.estimateSegmentRequestTime(r,n,this.playlist_,e.bytesReceived),a=To(this.buffered_(),t,this.hls_.tech_.playbackRate())-1;if(i<=a)return!1;var o=Us({master:this.hls_.playlists.master,currentTime:t,bandwidth:n,duration:this.duration_(),segmentDuration:r,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(o){var s=i-a,l=s-o.rebufferingImpact,u=.5;return a<=fo&&(u=1),!(!o.playlist||o.playlist.uri===this.playlist_.uri||l<u)&&(this.bandwidth=o.playlist.attributes.BANDWIDTH*gs.BANDWIDTH_VARIANCE+1,this.abort(),this.trigger("earlyabort"),!0)}}},{key:"handleProgress_",value:function(e,t){this.pendingSegment_&&t.requestId===this.pendingSegment_.requestId&&!this.abortRequestEarly_(t.stats)&&this.trigger("progress")}},{key:"loadSegment_",value:function(e){this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),e.abortRequests=Is(this.hls_.xhr,this.xhrOptions_,this.decrypter_,this.captionParser_,this.createSimplifiedSegmentObj_(e),this.handleProgress_.bind(this),this.segmentRequestFinished_.bind(this))}},{key:"trimBackBuffer_",value:function(e){var t=$s(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)}},{key:"createSimplifiedSegmentObj_",value:function(e){var t=e.segment,n={resolvedUri:t.resolvedUri,byterange:t.byterange,requestId:e.requestId};if(t.key){var r=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);n.key={resolvedUri:t.key.resolvedUri,iv:r}}return t.map&&(n.map=this.initSegment(t.map)),n}},{key:"segmentRequestFinished_",value:function(e,t){if(this.mediaRequests+=1,t.stats&&(this.mediaBytesTransferred+=t.stats.bytesReceived,this.mediaTransferDuration+=t.stats.roundTripTime),!this.pendingSegment_)return void(this.mediaRequestsAborted+=1);if(t.requestId===this.pendingSegment_.requestId){if(e)return this.pendingSegment_=null,this.state="READY",e.code===ms.ABORTED?void(this.mediaRequestsAborted+=1):(this.pause(),e.code===ms.TIMEOUT?(this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,void this.trigger("bandwidthupdate")):(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error")));this.bandwidth=t.stats.bandwidth,this.roundTrip=t.stats.roundTripTime,t.map&&(t.map=this.initSegment(t.map,!0)),this.processSegmentResponse_(t)}}},{key:"processSegmentResponse_",value:function(e){var t=this.pendingSegment_;t.bytes=e.bytes,e.map&&(t.segment.map.bytes=e.map.bytes),t.endOfAllRequests=e.endOfAllRequests,e.fmp4Captions&&(js(this.inbandTextTracks_,this.hls_.tech_,e.captionStreams),Bs({inbandTextTracks:this.inbandTextTracks_,captionArray:e.fmp4Captions,timestampOffset:0}),this.captionParser_.clearParsedCaptions()),this.handleSegment_()}},{key:"handleSegment_",value:function(){var e=this;if(!this.pendingSegment_)return void(this.state="READY");var t=this.pendingSegment_,n=t.segment,r=this.syncController_.probeSegmentInfo(t);"undefined"==typeof this.startingMedia_&&r&&(r.containsAudio||r.containsVideo)&&(this.startingMedia_={containsAudio:r.containsAudio,containsVideo:r.containsVideo});var i=zs(this.loaderType_,this.startingMedia_,r);if(i)return this.error({message:i,blacklistDuration:1/0}),void this.trigger("error");if(t.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");null!==t.timestampOffset&&t.timestampOffset!==this.sourceUpdater_.timestampOffset()&&(this.sourceUpdater_.timestampOffset(t.timestampOffset),this.trigger("timestampoffset"));var a=this.syncController_.mappingForTimeline(t.timeline);if(null!==a&&this.trigger({type:"segmenttimemapping",mapping:a}),this.state="APPENDING",n.map){var o=lo(n.map);if(!this.activeInitSegmentId_||this.activeInitSegmentId_!==o){var s=this.initSegment(n.map);this.sourceUpdater_.appendBuffer(s.bytes,function(){e.activeInitSegmentId_=o})}}t.byteLength=t.bytes.byteLength,"number"==typeof n.start&&"number"==typeof n.end?this.mediaSecondsLoaded+=n.end-n.start:this.mediaSecondsLoaded+=n.duration,this.logger_(qs(t)),this.sourceUpdater_.appendBuffer(t.bytes,this.handleUpdateEnd_.bind(this))}},{key:"handleUpdateEnd_",value:function(){if(!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_,t=e.segment,n=null!==this.mediaIndex;if(this.pendingSegment_=null,this.recordThroughput_(e),this.addSegmentMetadataCue_(e),this.state="READY",this.mediaIndex=e.mediaIndex,this.fetchAtBuffer_=!0,this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate"),t.end&&this.currentTime_()-t.end>3*e.playlist.targetDuration)return void this.resetEverything();n&&this.trigger("bandwidthupdate"),this.trigger("progress");var r=Vs(e.playlist,this.mediaSource_,e.mediaIndex+1);r&&this.endOfStream(),this.paused()||this.monitorBuffer_()}},{key:"recordThroughput_",value:function(e){var t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,r=Math.floor(e.byteLength/n*8*1e3);this.throughput.rate+=(r-t)/++this.throughput.count}},{key:"addSegmentMetadataCue_",value:function(e){if(this.segmentMetadataTrack_){var t=e.segment,n=t.start,r=t.end;if(Ws(n)&&Ws(r)){wo(n,r,this.segmentMetadataTrack_);var i=Ge.WebKitDataCue||Ge.VTTCue,a={bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.uri,start:n,end:r},o=JSON.stringify(a),s=new i(n,r,o);s.value=a,this.segmentMetadataTrack_.addCue(s)}}}}]),t}(Ve.EventTarget),Ys=function(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))},Xs=new Uint8Array("\n\n".split("").map(function(e){return e.charCodeAt(0)})),Ks=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};fa(this,t);var r=ya(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.mediaSource_=null,r.subtitlesTrack_=null,r}return va(t,e),ga(t,[{key:"buffered_",value:function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues.length)return Ve.createTimeRanges();var e=this.subtitlesTrack_.cues,t=e[0].startTime,n=e[e.length-1].startTime;return Ve.createTimeRanges([[t,n]])}},{key:"initSegment",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;var n=lo(e),r=this.initSegments_[n];if(t&&!r&&e.bytes){var i=Xs.byteLength+e.bytes.byteLength,a=new Uint8Array(i);a.set(e.bytes),a.set(Xs,e.bytes.byteLength),this.initSegments_[n]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:a}}return r||e}},{key:"couldBeginLoading_",value:function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}},{key:"init_",value:function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}},{key:"track",value:function(e){return"undefined"==typeof e?this.subtitlesTrack_:(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_(), 83this.subtitlesTrack_)}},{key:"remove",value:function(e,t){wo(e,t,this.subtitlesTrack_)}},{key:"fillBuffer_",value:function(){var e=this;this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var t=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(t=this.skipEmptySegments_(t)){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline)){var n=function(){e.state="READY",e.paused()||e.monitorBuffer_()};return this.syncController_.one("timestampoffset",n),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(t)}}},{key:"skipEmptySegments_",value:function(e){for(;e&&e.segment.empty;)e=this.generateSegmentInfo_(e.playlist,e.mediaIndex+1,e.startOfSegment+e.duration,e.isSyncRequest);return e}},{key:"handleSegment_",value:function(){var e=this;if(!this.pendingSegment_||!this.subtitlesTrack_)return void(this.state="READY");this.state="APPENDING";var t=this.pendingSegment_,n=t.segment;if("function"!=typeof Ge.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var r=function(){e.handleSegment_()};return this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",r),void this.subtitlesTrack_.tech_.one("vttjserror",function(){e.subtitlesTrack_.tech_.off("vttjsloaded",r),e.error({message:"Error loading vtt.js"}),e.state="READY",e.pause(),e.trigger("error")})}n.requested=!0;try{this.parseVTTCues_(t)}catch(i){return this.error({message:i.message}),this.state="READY",this.pause(),this.trigger("error")}return this.updateTimeMapping_(t,this.syncController_.timelines[t.timeline],this.playlist_),t.isSyncRequest?(this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY")):(t.byteLength=t.bytes.byteLength,this.mediaSecondsLoaded+=n.duration,t.cues.length&&this.remove(t.cues[0].endTime,t.cues[t.cues.length-1].endTime),t.cues.forEach(function(t){e.subtitlesTrack_.addCue(t)}),void this.handleUpdateEnd_())}},{key:"parseVTTCues_",value:function(e){var t=void 0,n=!1;"function"==typeof Ge.TextDecoder?t=new Ge.TextDecoder("utf8"):(t=Ge.WebVTT.StringDecoder(),n=!0);var r=new Ge.WebVTT.Parser(Ge,Ge.vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},r.oncue=e.cues.push.bind(e.cues),r.ontimestampmap=function(t){return e.timestampmap=t},r.onparsingerror=function(e){Ve.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var i=e.segment.map.bytes;n&&(i=Ys(i)),r.parse(i)}var a=e.bytes;n&&(a=Ys(a)),r.parse(a),r.flush()}},{key:"updateTimeMapping_",value:function(e,t,n){var r=e.segment;if(t){if(!e.cues.length)return void(r.empty=!0);var i=e.timestampmap,a=i.MPEGTS/9e4-i.LOCAL+t.mapping;if(e.cues.forEach(function(e){e.startTime+=a,e.endTime+=a}),!n.syncInfo){var o=e.cues[0].startTime,s=e.cues[e.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(o,s-r.duration)}}}}}]),t}(Gs),Qs=function(e,t){for(var n=e.cues,r=0;r<n.length;r++){var i=n[r];if(t>=i.adStartTime&&t<=i.adEndTime)return i}return null},Zs=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(e.segments)for(var r=n,i=void 0,a=0;a<e.segments.length;a++){var o=e.segments[a];if(i||(i=Qs(t,r+o.duration/2)),i){if("cueIn"in o){i.endTime=r,i.adEndTime=r,r+=o.duration,i=null;continue}if(r<i.endTime){r+=o.duration;continue}i.endTime+=o.duration}else if("cueOut"in o&&(i=new Ge.VTTCue(r,r+o.duration,o.cueOut),i.adStartTime=r,i.adEndTime=r+parseFloat(o.cueOut),t.addCue(i)),"cueOutCont"in o){var s=void 0,l=void 0,u=o.cueOutCont.split("/").map(parseFloat),c=_a(u,2);s=c[0],l=c[1],i=new Ge.VTTCue(r,r+o.duration,""),i.adStartTime=r-s,i.adEndTime=i.adStartTime+l,t.addCue(i)}r+=o.duration}},Js=it.inspect,el=[{name:"VOD",run:function(e,t,n,r,i){if(n!==1/0){var a={time:0,segmentIndex:0};return a}return null}},{name:"ProgramDateTime",run:function(e,t,n,r,i){if(!e.datetimeToDisplayTime)return null;var a=t.segments||[],o=null,s=null;i=i||0;for(var l=0;l<a.length;l++){var u=a[l];if(u.dateTimeObject){var c=u.dateTimeObject.getTime()/1e3,d=c+e.datetimeToDisplayTime,h=Math.abs(i-d);if(null!==s&&s<h)break;s=h,o={time:d,segmentIndex:l}}}return o}},{name:"Segment",run:function(e,t,n,r,i){var a=t.segments||[],o=null,s=null;i=i||0;for(var l=0;l<a.length;l++){var u=a[l];if(u.timeline===r&&"undefined"!=typeof u.start){var c=Math.abs(i-u.start);if(null!==s&&s<c)break;(!o||null===s||s>=c)&&(s=c,o={time:u.start,segmentIndex:l})}}return o}},{name:"Discontinuity",run:function(e,t,n,r,i){var a=null;if(i=i||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var o=null,s=0;s<t.discontinuityStarts.length;s++){var l=t.discontinuityStarts[s],u=t.discontinuitySequence+s+1,c=e.discontinuities[u];if(c){var d=Math.abs(i-c.time);if(null!==o&&o<d)break;(!a||null===o||o>=d)&&(o=d,a={time:c.time,segmentIndex:l})}}return a}},{name:"Playlist",run:function(e,t,n,r,i){if(t.syncInfo){var a={time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence};return a}return null}}],tl=function(e){function t(){fa(this,t);var e=ya(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.inspectCache_=void 0,e.timelines=[],e.discontinuities=[],e.datetimeToDisplayTime=null,e.logger_=ps("SyncController"),e}return va(t,e),ga(t,[{key:"getSyncPoint",value:function(e,t,n,r){var i=this.runStrategies_(e,t,n,r);return i.length?this.selectSyncPoint_(i,{key:"time",value:r}):null}},{key:"getExpiredTime",value:function(e,t){if(!e||!e.segments)return null;var n=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!n.length)return null;var r=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return r.segmentIndex>0&&(r.time*=-1),Math.abs(r.time+Na(e,r.segmentIndex,0))}},{key:"runStrategies_",value:function(e,t,n,r){for(var i=[],a=0;a<el.length;a++){var o=el[a],s=o.run(this,e,t,n,r);s&&(s.strategy=o.name,i.push({strategy:o.name,syncPoint:s}))}return i}},{key:"selectSyncPoint_",value:function(e,t){for(var n=e[0].syncPoint,r=Math.abs(e[0].syncPoint[t.key]-t.value),i=e[0].strategy,a=1;a<e.length;a++){var o=Math.abs(e[a].syncPoint[t.key]-t.value);o<r&&(r=o,n=e[a].syncPoint,i=e[a].strategy)}return this.logger_("syncPoint for ["+t.key+": "+t.value+"] chosen with strategy"+(" ["+i+"]: [time:"+n.time+",")+(" segmentIndex:"+n.segmentIndex+"]")),n}},{key:"saveExpiredSegmentInfo",value:function(e,t){for(var n=t.mediaSequence-e.mediaSequence,r=n-1;r>=0;r--){var i=e.segments[r];if(i&&"undefined"!=typeof i.start){t.syncInfo={mediaSequence:e.mediaSequence+r,time:i.start},this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+","+(" mediaSequence: "+t.syncInfo.mediaSequence+"]")),this.trigger("syncinfoupdate");break}}}},{key:"setDateTimeMapping",value:function(e){if(!this.datetimeToDisplayTime&&e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0].dateTimeObject.getTime()/1e3;this.datetimeToDisplayTime=-t}}},{key:"reset",value:function(){this.inspectCache_=void 0}},{key:"probeSegmentInfo",value:function(e){var t=e.segment,n=e.playlist,r=void 0;return r=t.map?this.probeMp4Segment_(e):this.probeTsSegment_(e),r&&this.calculateSegmentTimeMapping_(e,r)&&(this.saveDiscontinuitySyncInfo_(e),n.syncInfo||(n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:t.start})),r}},{key:"probeMp4Segment_",value:function(e){var t=e.segment,n=nt.timescale(t.map.bytes),r=nt.startTime(n,e.bytes);return null!==e.timestampOffset&&(e.timestampOffset-=r),{start:r,end:r+t.duration}}},{key:"probeTsSegment_",value:function(e){var t=Js(e.bytes,this.inspectCache_),n=void 0,r=void 0;return t?(t.video&&2===t.video.length?(this.inspectCache_=t.video[1].dts,n=t.video[0].dtsTime,r=t.video[1].dtsTime):t.audio&&2===t.audio.length&&(this.inspectCache_=t.audio[1].dts,n=t.audio[0].dtsTime,r=t.audio[1].dtsTime),{start:n,end:r,containsVideo:t.video&&2===t.video.length,containsAudio:t.audio&&2===t.audio.length}):null}},{key:"timestampOffsetForTimeline",value:function(e){return"undefined"==typeof this.timelines[e]?null:this.timelines[e].time}},{key:"mappingForTimeline",value:function(e){return"undefined"==typeof this.timelines[e]?null:this.timelines[e].mapping}},{key:"calculateSegmentTimeMapping_",value:function(e,t){var n=e.segment,r=this.timelines[e.timeline];if(null!==e.timestampOffset)r={time:e.startOfSegment,mapping:e.startOfSegment-t.start},this.timelines[e.timeline]=r,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": "+("[time: "+r.time+"] [mapping: "+r.mapping+"]")),n.start=e.startOfSegment,n.end=t.end+r.mapping;else{if(!r)return!1;n.start=t.start+r.mapping,n.end=t.end+r.mapping}return!0}},{key:"saveDiscontinuitySyncInfo_",value:function(e){var t=e.playlist,n=e.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(var r=0;r<t.discontinuityStarts.length;r++){var i=t.discontinuityStarts[r],a=t.discontinuitySequence+r+1,o=i-e.mediaIndex,s=Math.abs(o);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>s){var l=void 0;l=o<0?n.start-Na(t,e.mediaIndex,i):n.end+Na(t,e.mediaIndex+1,i),this.discontinuities[a]={time:l,accuracy:s}}}}}]),t}(Ve.EventTarget),nl=new We("./decrypter-worker.worker.js",function(e,t){var n=this;(function(){function e(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}var t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=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)},a=function(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},o=function(){var e=[[[],[],[],[],[]],[[],[],[],[],[]]],t=e[0],n=e[1],r=t[4],i=n[4],a=void 0,o=void 0,s=void 0,l=[],u=[],c=void 0,d=void 0,h=void 0,p=void 0,f=void 0,g=void 0;for(a=0;a<256;a++)u[(l[a]=a<<1^283*(a>>7))^a]=a;for(o=s=0;!r[o];o^=c||1,s=u[s]||1)for(p=s^s<<1^s<<2^s<<3^s<<4,p=p>>8^255&p^99,r[o]=p,i[p]=o,h=l[d=l[c=l[o]]],g=16843009*h^65537*d^257*c^16843008*o,f=257*l[p]^16843008*p,a=0;a<4;a++)t[a][o]=f=f<<24^f>>>8,n[a][p]=g=g<<24^g>>>8;for(a=0;a<5;a++)t[a]=t[a].slice(0),n[a]=n[a].slice(0);return e},s=null,l=function(){function e(n){t(this,e),s||(s=o()),this._tables=[[s[0][0].slice(),s[0][1].slice(),s[0][2].slice(),s[0][3].slice(),s[0][4].slice()],[s[1][0].slice(),s[1][1].slice(),s[1][2].slice(),s[1][3].slice(),s[1][4].slice()]];var r=void 0,i=void 0,a=void 0,l=void 0,u=void 0,c=this._tables[0][4],d=this._tables[1],h=n.length,p=1;if(4!==h&&6!==h&&8!==h)throw new Error("Invalid aes key size");for(l=n.slice(0),u=[],this._key=[l,u],r=h;r<4*h+28;r++)a=l[r-1],(r%h===0||8===h&&r%h===4)&&(a=c[a>>>24]<<24^c[a>>16&255]<<16^c[a>>8&255]<<8^c[255&a],r%h===0&&(a=a<<8^a>>>24^p<<24,p=p<<1^283*(p>>7))),l[r]=l[r-h]^a;for(i=0;r;i++,r--)a=l[3&i?r:r-4],r<=4||i<4?u[i]=a:u[i]=d[0][c[a>>>24]]^d[1][c[a>>16&255]]^d[2][c[a>>8&255]]^d[3][c[255&a]]}return e.prototype.decrypt=function(e,t,n,r,i,a){var o=this._key[1],s=e^o[0],l=r^o[1],u=n^o[2],c=t^o[3],d=void 0,h=void 0,p=void 0,f=o.length/4-2,g=void 0,m=4,v=this._tables[1],y=v[0],_=v[1],b=v[2],T=v[3],E=v[4];for(g=0;g<f;g++)d=y[s>>>24]^_[l>>16&255]^b[u>>8&255]^T[255&c]^o[m],h=y[l>>>24]^_[u>>16&255]^b[c>>8&255]^T[255&s]^o[m+1],p=y[u>>>24]^_[c>>16&255]^b[s>>8&255]^T[255&l]^o[m+2],c=y[c>>>24]^_[s>>16&255]^b[l>>8&255]^T[255&u]^o[m+3],m+=4,s=d,l=h,u=p;for(g=0;g<4;g++)i[(3&-g)+a]=E[s>>>24]<<24^E[l>>16&255]<<16^E[u>>8&255]<<8^E[255&c]^o[m++],d=s,s=l,l=u,u=c,c=d},e}(),u=function(){function e(){t(this,e),this.listeners={}}return e.prototype.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e].splice(n,1),n>-1},e.prototype.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,r=0;r<n;++r)t[r].call(this,arguments[1]);else for(var i=Array.prototype.slice.call(arguments,1),a=t.length,o=0;o<a;++o)t[o].apply(this,i)},e.prototype.dispose=function(){this.listeners={}},e.prototype.pipe=function(e){this.on("data",function(t){e.push(t)})},e}(),c=function(e){function n(){t(this,n);var r=a(this,e.call(this,u));return r.jobs=[],r.delay=1,r.timeout_=null,r}return i(n,e),n.prototype.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},n.prototype.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},n}(u),d=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},h=function(e,t,n){var r=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),i=new l(Array.prototype.slice.call(t)),a=new Uint8Array(e.byteLength),o=new Int32Array(a.buffer),s=void 0,u=void 0,c=void 0,h=void 0,p=void 0,f=void 0,g=void 0,m=void 0,v=void 0;for(s=n[0],u=n[1],c=n[2],h=n[3],v=0;v<r.length;v+=4)p=d(r[v]),f=d(r[v+1]),g=d(r[v+2]),m=d(r[v+3]),i.decrypt(p,f,g,m,o,v),o[v]=d(o[v]^s),o[v+1]=d(o[v+1]^u),o[v+2]=d(o[v+2]^c),o[v+3]=d(o[v+3]^h),s=p,u=f,c=g,h=m;return a},p=function(){function n(r,i,a,o){t(this,n);var s=n.STEP,l=new Int32Array(r.buffer),u=new Uint8Array(r.byteLength),h=0;for(this.asyncStream_=new c,this.asyncStream_.push(this.decryptChunk_(l.subarray(h,h+s),i,a,u)),h=s;h<l.length;h+=s)a=new Uint32Array([d(l[h-4]),d(l[h-3]),d(l[h-2]),d(l[h-1])]),this.asyncStream_.push(this.decryptChunk_(l.subarray(h,h+s),i,a,u));this.asyncStream_.push(function(){o(null,e(u))})}return n.prototype.decryptChunk_=function(e,t,n,r){return function(){var i=h(e,t,n);r.set(i,e.byteOffset)}},r(n,null,[{key:"STEP",get:function(){return 32e3}}]),n}(),f=function(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n];ArrayBuffer.isView(r)?t[n]={bytes:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength}:t[n]=r}),t},g=function(e){e.onmessage=function(t){var n=t.data,r=new Uint8Array(n.encrypted.bytes,n.encrypted.byteOffset,n.encrypted.byteLength),i=new Uint32Array(n.key.bytes,n.key.byteOffset,n.key.byteLength/4),a=new Uint32Array(n.iv.bytes,n.iv.byteOffset,n.iv.byteLength/4);new p(r,i,a,function(t,r){e.postMessage(f({source:n.source,decrypted:r}),[r.buffer])})}},m=new g(n);return m})()}),rl=function(e){var t=e["default"]?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},il=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},al=function(e,t){t.activePlaylistLoader=e,e.load()},ol=function(e,t){return function(){var n=t.segmentLoaders,r=n[e],i=n.main,a=t.mediaTypes[e],o=a.activeTrack(),s=a.activeGroup(o),l=a.activePlaylistLoader;if(il(r,a),s){if(!s.playlistLoader)return void(l&&i.resetEverything());r.resyncLoader(),al(s.playlistLoader,a)}}},sl=function(e,t){return function(){var n=t.segmentLoaders,r=n[e],i=n.main,a=t.mediaTypes[e],o=a.activeTrack(),s=a.activeGroup(o),l=a.activePlaylistLoader;if(il(r,a),s){if(!s.playlistLoader)return void i.resetEverything();if(l===s.playlistLoader)return void al(s.playlistLoader,a);r.track&&r.track(o),r.resetEverything(),al(s.playlistLoader,a)}}},ll={AUDIO:function(e,t){return function(){var n=t.segmentLoaders[e],r=t.mediaTypes[e],i=t.blacklistCurrentPlaylist;il(n,r);var a=r.activeTrack(),o=r.activeGroup(),s=(o.filter(function(e){return e["default"]})[0]||o[0]).id,l=r.tracks[s];if(a===l)return void i({message:"Problem encountered loading the default audio track."});Ve.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(var u in r.tracks)r.tracks[u].enabled=r.tracks[u]===l;r.onTrackChanged()}},SUBTITLES:function(e,t){return function(){var n=t.segmentLoaders[e],r=t.mediaTypes[e];Ve.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),il(n,r);var i=r.activeTrack();i&&(i.mode="disabled"),r.onTrackChanged()}}},ul={AUDIO:function(e,t,n){if(t){var r=n.tech,i=n.requestOptions,a=n.segmentLoaders[e];t.on("loadedmetadata",function(){var e=t.media();a.playlist(e,i),(!r.paused()||e.endList&&"none"!==r.preload())&&a.load()}),t.on("loadedplaylist",function(){a.playlist(t.media(),i),r.paused()||a.load()}),t.on("error",ll[e](e,n))}},SUBTITLES:function(e,t,n){var r=n.tech,i=n.requestOptions,a=n.segmentLoaders[e],o=n.mediaTypes[e];t.on("loadedmetadata",function(){var e=t.media();a.playlist(e,i),a.track(o.activeTrack()),(!r.paused()||e.endList&&"none"!==r.preload())&&a.load()}),t.on("loadedplaylist",function(){a.playlist(t.media(),i),r.paused()||a.load()}),t.on("error",ll[e](e,n))}},cl=function(e,t){return function(n){return n.attributes[e]===t}},dl=function(e){return function(t){return t.resolvedUri===e}},hl={AUDIO:function(e,t){var n=t.hls,r=t.sourceType,i=t.segmentLoaders[e],a=t.requestOptions.withCredentials,o=t.master,s=o.mediaGroups,l=o.playlists,u=t.mediaTypes[e],c=u.groups,d=u.tracks,h=t.masterPlaylistLoader;s[e]&&0!==Object.keys(s[e]).length||(s[e]={main:{"default":{"default":!0}}});for(var p in s[e]){c[p]||(c[p]=[]);var f=l.filter(cl(e,p));for(var g in s[e][p]){var m=s[e][p][g],v=f.filter(dl(m.resolvedUri));v.length&&delete m.resolvedUri;var y=void 0;if(y=m.resolvedUri?new Ia(m.resolvedUri,n,a):m.playlists&&"dash"===r?new hs(m.playlists[0],n,a,h):null,m=Ve.mergeOptions({id:g,playlistLoader:y},m),ul[e](e,m.playlistLoader,t),c[p].push(m),"undefined"==typeof d[g]){var _=new Ve.AudioTrack({id:g,kind:rl(m),enabled:!1,language:m.language,"default":m["default"],label:g});d[g]=_}}}i.on("error",ll[e](e,t))},SUBTITLES:function(e,t){var n=t.tech,r=t.hls,i=t.sourceType,a=t.segmentLoaders[e],o=t.requestOptions.withCredentials,s=t.master.mediaGroups,l=t.mediaTypes[e],u=l.groups,c=l.tracks,d=t.masterPlaylistLoader;for(var h in s[e]){u[h]||(u[h]=[]);for(var p in s[e][h])if(!s[e][h][p].forced){var f=s[e][h][p],g=void 0;if("hls"===i?g=new Ia(f.resolvedUri,r,o):"dash"===i&&(g=new hs(f.playlists[0],r,o,d)),f=Ve.mergeOptions({id:p,playlistLoader:g},f),ul[e](e,f.playlistLoader,t),u[h].push(f),"undefined"==typeof c[p]){var m=n.addRemoteTextTrack({id:p,kind:"subtitles","default":f["default"]&&f.autoselect,language:f.language,label:p},!1).track;c[p]=m}}}a.on("error",ll[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var n=t.tech,r=t.master.mediaGroups,i=t.mediaTypes[e],a=i.groups,o=i.tracks;for(var s in r[e]){a[s]||(a[s]=[]);for(var l in r[e][s]){var u=r[e][s][l];if(u.instreamId.match(/CC\d/)&&(a[s].push(Ve.mergeOptions({id:l},u)),"undefined"==typeof o[l])){var c=n.addRemoteTextTrack({id:u.instreamId,kind:"captions","default":u["default"]&&u.autoselect,language:u.language,label:l},!1).track;o[l]=c}}}}},pl=function(e,t){return function(n){var r=t.masterPlaylistLoader,i=t.mediaTypes[e].groups,a=r.media();if(!a)return null;var o=null;return a.attributes[e]&&(o=i[a.attributes[e]]),o=o||i.main,"undefined"==typeof n?o:null===n?null:o.filter(function(e){return e.id===n.id})[0]||null}},fl={AUDIO:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var r in n)if(n[r].enabled)return n[r];return null}},SUBTITLES:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var r in n)if("showing"===n[r].mode)return n[r];return null}}},gl=function(e){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){hl[t](t,e)});var t=e.mediaTypes,n=e.masterPlaylistLoader,r=e.tech,i=e.hls;["AUDIO","SUBTITLES"].forEach(function(n){t[n].activeGroup=pl(n,e),t[n].activeTrack=fl[n](n,e),t[n].onGroupChanged=ol(n,e),t[n].onTrackChanged=sl(n,e)});var a=t.AUDIO.activeGroup(),o=(a.filter(function(e){return e["default"]})[0]||a[0]).id;t.AUDIO.tracks[o].enabled=!0,t.AUDIO.onTrackChanged(),n.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(e){return t[e].onGroupChanged()})});var s=function(){t.AUDIO.onTrackChanged(),r.trigger({type:"usage",name:"hls-audio-change"})};r.audioTracks().addEventListener("change",s),r.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),i.on("dispose",function(){r.audioTracks().removeEventListener("change",s),r.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)}),r.clearTracks("audio");for(var l in t.AUDIO.tracks)r.audioTracks().addTrack(t.AUDIO.tracks[l])},ml=function(){var e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(t){e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:qe,activeTrack:qe,onGroupChanged:qe,onTrackChanged:qe}}),e},vl=120,yl=void 0,_l=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred"],bl=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},Tl=function(e){function t(e){fa(this,t);var n=ya(this,(t.__proto__||Object.getPrototypeOf(t)).call(this)),r=e.url,i=e.withCredentials,a=e.tech,o=e.bandwidth,s=e.externHls,l=e.useCueTags,u=e.blacklistDuration,c=e.enableLowInitialPlaylist,d=e.sourceType,h=e.seekTo;if(!r)throw new Error("A non-empty playlist URL is required");yl=s,n.withCredentials=i,n.tech_=a,n.hls_=a.hls,n.seekTo_=h,n.sourceType_=d,n.useCueTags_=l,n.blacklistDuration=u,n.enableLowInitialPlaylist=c,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:n.withCredentials,timeout:null},n.mediaTypes_=ml(),n.mediaSource=new Ve.MediaSource,n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_.bind(n)),n.seekable_=Ve.createTimeRanges(),n.hasPlayed_=function(){return!1},n.syncController_=new tl(e),n.segmentMetadataTrack_=a.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new nl,n.inbandTextTracks_={};var p={hls:n.hls_,mediaSource:n.mediaSource,currentTime:n.tech_.currentTime.bind(n.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.mediaSource.duration},hasPlayed:function(){return n.hasPlayed_()},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:o,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_};return n.masterPlaylistLoader_="dash"===n.sourceType_?new hs(r,n.hls_,n.withCredentials):new Ia(r,n.hls_,n.withCredentials),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new Gs(Ve.mergeOptions(p,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),e),n.audioSegmentLoader_=new Gs(Ve.mergeOptions(p,{loaderType:"audio"}),e),n.subtitleSegmentLoader_=new Ks(Ve.mergeOptions(p,{loaderType:"vtt"}),e),n.setupSegmentLoaderListeners_(),_l.forEach(function(e){n[e+"_"]=bl.bind(n,e)}),n.logger_=ps("MPC"),n.masterPlaylistLoader_.load(),n}return va(t,e),ga(t,[{key:"setupMasterPlaylistLoaderListeners_",value:function(){var e=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var t=e.masterPlaylistLoader_.media(),n=1.5*e.masterPlaylistLoader_.targetDuration*1e3;Ja(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,t.endList&&"none"!==e.tech_.preload()&&(e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load()),gl({sourceType:e.sourceType_,segmentLoaders:{AUDIO:e.audioSegmentLoader_,SUBTITLES:e.subtitleSegmentLoader_,main:e.mainSegmentLoader_},tech:e.tech_,requestOptions:e.requestOptions_,masterPlaylistLoader:e.masterPlaylistLoader_,hls:e.hls_,master:e.master(),mediaTypes:e.mediaTypes_,blacklistCurrentPlaylist:e.blacklistCurrentPlaylist.bind(e)}),e.triggerPresenceUsage_(e.master(),t);try{e.setupSourceBuffers_()}catch(r){return Ve.log.warn("Failed to create SourceBuffers",r),e.mediaSource.endOfStream("decode")}e.setupFirstPlay(),e.trigger("selectedinitialmedia")}),this.masterPlaylistLoader_.on("loadedplaylist",function(){var t=e.masterPlaylistLoader_.media();if(!t){e.excludeUnsupportedVariants_();var n=void 0;return e.enableLowInitialPlaylist&&(n=e.selectInitialPlaylist()),n||(n=e.selectPlaylist()),e.initialMedia_=n,void e.masterPlaylistLoader_.media(e.initialMedia_)}if(e.useCueTags_&&e.updateAdCues_(t),e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.updateDuration(),e.tech_.paused()||(e.mainSegmentLoader_.load(),e.audioSegmentLoader_&&e.audioSegmentLoader_.load()),!t.endList){var r=function(){var t=e.seekable();0!==t.length&&e.mediaSource.addSeekableRange_(t.start(0),t.end(0))};if(e.duration()!==1/0){var i=function a(){e.duration()===1/0?r():e.tech_.one("durationchange",a)};e.tech_.one("durationchange",i)}else r()}}),this.masterPlaylistLoader_.on("error",function(){e.blacklistCurrentPlaylist(e.masterPlaylistLoader_.error)}),this.masterPlaylistLoader_.on("mediachanging",function(){e.mainSegmentLoader_.abort(),e.mainSegmentLoader_.pause()}),this.masterPlaylistLoader_.on("mediachange",function(){var t=e.masterPlaylistLoader_.media(),n=1.5*e.masterPlaylistLoader_.targetDuration*1e3;Ja(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load(),e.tech_.trigger({type:"mediachange",bubbles:!0})}),this.masterPlaylistLoader_.on("playlistunchanged",function(){var t=e.masterPlaylistLoader_.media(),n=e.stuckAtPlaylistEnd_(t);n&&(e.blacklistCurrentPlaylist({message:"Playlist no longer updating."}),e.tech_.trigger("playliststuck"))}),this.masterPlaylistLoader_.on("renditiondisabled",function(){e.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})}),this.masterPlaylistLoader_.on("renditionenabled",function(){e.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})}},{key:"triggerPresenceUsage_",value:function(e,t){var n=e.mediaGroups||{},r=!0,i=Object.keys(n.AUDIO);for(var a in n.AUDIO)for(var o in n.AUDIO[a]){var s=n.AUDIO[a][o];s.uri||(r=!1)}r&&this.tech_.trigger({type:"usage",name:"hls-demuxed"}),Object.keys(n.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"hls-webvtt"}),yl.Playlist.isAes(t)&&this.tech_.trigger({type:"usage",name:"hls-aes"}),yl.Playlist.isFmp4(t)&&this.tech_.trigger({type:"usage",name:"hls-fmp4"}),i.length&&Object.keys(n.AUDIO[i[0]]).length>1&&this.tech_.trigger({type:"usage",name:"hls-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"})}},{key:"setupSegmentLoaderListeners_",value:function(){var e=this;this.mainSegmentLoader_.on("bandwidthupdate",function(){var t=e.selectPlaylist(),n=e.masterPlaylistLoader_.media(),r=e.tech_.buffered(),i=r.length?r.end(r.length-1)-e.tech_.currentTime():0,a=e.bufferLowWaterLine();(!n.endList||e.duration()<gs.MAX_BUFFER_LOW_WATER_LINE||t.attributes.BANDWIDTH<n.attributes.BANDWIDTH||i>=a)&&e.masterPlaylistLoader_.media(t),e.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("progress",function(){e.trigger("progress")}),this.mainSegmentLoader_.on("error",function(){e.blacklistCurrentPlaylist(e.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){e.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){e.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("ended",function(){e.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(){e.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},vl)}),this.mainSegmentLoader_.on("reseteverything",function(){e.tech_.trigger("hls-reset")}),this.mainSegmentLoader_.on("segmenttimemapping",function(t){e.tech_.trigger({type:"hls-segment-time-mapping",mapping:t.mapping})}),this.audioSegmentLoader_.on("ended",function(){e.onEndOfStream()})}},{key:"mediaSecondsLoaded_",value:function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}},{key:"load",value:function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}},{key:"smoothQualityChange_",value:function(){var e=this.selectPlaylist();e!==this.masterPlaylistLoader_.media()&&(this.masterPlaylistLoader_.media(e),this.mainSegmentLoader_.resetLoader())}},{key:"fastQualityChange_",value:function(){var e=this,t=this.selectPlaylist();t!==this.masterPlaylistLoader_.media()&&(this.masterPlaylistLoader_.media(t),this.mainSegmentLoader_.resetEverything(function(){Ve.browser.IE_VERSION||Ve.browser.IS_EDGE?e.tech_.setCurrentTime(e.tech_.currentTime()+.04):e.tech_.setCurrentTime(e.tech_.currentTime())}))}},{key:"play",value:function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.seekTo_(0),this.hasPlayed_()&&this.load();var e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.seekTo_(e.end(e.length-1)):void 0}}},{key:"setupFirstPlay",value:function(){var e=this,t=this.masterPlaylistLoader_.media();if(!t||this.tech_.paused()||this.hasPlayed_())return!1;if(!t.endList){var n=this.seekable();if(!n.length)return!1;if(Ve.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",function(){e.trigger("firstplay"),e.seekTo_(n.end(0)),e.hasPlayed_=function(){return!0}}),!1;this.trigger("firstplay"),this.seekTo_(n.end(0))}return this.hasPlayed_=function(){return!0},this.load(),!0}},{key:"handleSourceOpen_",value:function(){try{this.setupSourceBuffers_()}catch(e){return Ve.log.warn("Failed to create Source Buffers",e),this.mediaSource.endOfStream("decode")}if(this.tech_.autoplay()){var t=this.tech_.play();"undefined"!=typeof t&&"function"==typeof t.then&&t.then(null,function(e){})}this.trigger("sourceopen")}},{key:"onEndOfStream",value:function(){var e=this.mainSegmentLoader_.ended_;this.mediaTypes_.AUDIO.activePlaylistLoader&&(e=!this.mainSegmentLoader_.startingMedia_||this.mainSegmentLoader_.startingMedia_.containsVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_),e&&this.mediaSource.endOfStream()}},{key:"stuckAtPlaylistEnd_",value:function(e){var t=this.seekable();if(!t.length)return!1;var n=this.syncController_.getExpiredTime(e,this.mediaSource.duration);if(null===n)return!1;var r=yl.Playlist.playlistEnd(e,n),i=this.tech_.currentTime(),a=this.tech_.buffered();if(!a.length)return r-i<=go;var o=a.end(a.length-1);return o-i<=go&&r-o<=go}},{key:"blacklistCurrentPlaylist",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1],n=void 0,r=void 0;if(n=e.playlist||this.masterPlaylistLoader_.media(),t=t||e.blacklistDuration||this.blacklistDuration,!n){this.error=e;try{return this.mediaSource.endOfStream("network")}catch(i){return this.trigger("error")}}var a=1===this.masterPlaylistLoader_.master.playlists.filter(Ga).length;return a?(Ve.log.warn("Problem encountered with the current HLS playlist. Trying again since it is the final playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(a)):(n.excludeUntil=Date.now()+1e3*t,this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"}),r=this.selectPlaylist(),Ve.log.warn("Problem encountered with the current HLS playlist."+(e.message?" "+e.message:"")+" Switching to another playlist."),this.masterPlaylistLoader_.media(r))}},{key:"pauseLoading",value:function(){this.mainSegmentLoader_.pause(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.pause(), 84this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.pause()}},{key:"setCurrentTime",value:function(e){var t=vo(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0}},{key:"duration",value:function(){return this.masterPlaylistLoader_?this.mediaSource?this.mediaSource.duration:yl.Playlist.duration(this.masterPlaylistLoader_.media()):0}},{key:"seekable",value:function(){return this.seekable_}},{key:"onSyncInfoUpdate_",value:function(){var e=void 0,t=void 0;if(this.masterPlaylistLoader_){var n=this.masterPlaylistLoader_.media();if(n){var r=this.syncController_.getExpiredTime(n,this.mediaSource.duration);if(null!==r&&(e=yl.Playlist.seekable(n,r),0!==e.length)){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(n=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),r=this.syncController_.getExpiredTime(n,this.mediaSource.duration),null===r)return;if(t=yl.Playlist.seekable(n,r),0===t.length)return}t?t.start(0)>e.end(0)||e.start(0)>t.end(0)?this.seekable_=e:this.seekable_=Ve.createTimeRanges([[t.start(0)>e.start(0)?t.start(0):e.start(0),t.end(0)<e.end(0)?t.end(0):e.end(0)]]):this.seekable_=e,this.logger_("seekable updated ["+bo(this.seekable_)+"]"),this.tech_.trigger("seekablechanged")}}}}},{key:"updateDuration",value:function(){var e=this,t=this.mediaSource.duration,n=yl.Playlist.duration(this.masterPlaylistLoader_.media()),r=this.tech_.buffered(),i=function a(){e.mediaSource.duration=n,e.tech_.trigger("durationchange"),e.mediaSource.removeEventListener("sourceopen",a)};r.length>0&&(n=Math.max(n,r.end(r.length-1))),t!==n&&("open"!==this.mediaSource.readyState?this.mediaSource.addEventListener("sourceopen",i):i())}},{key:"dispose",value:function(){var e=this;this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),["AUDIO","SUBTITLES"].forEach(function(t){var n=e.mediaTypes_[t].groups;for(var r in n)n[r].forEach(function(e){e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose()}},{key:"master",value:function(){return this.masterPlaylistLoader_.master}},{key:"media",value:function(){return this.masterPlaylistLoader_.media()||this.initialMedia_}},{key:"setupSourceBuffers_",value:function(){var e=this.masterPlaylistLoader_.media(),t=void 0;if(e&&"open"===this.mediaSource.readyState){if(t=Go(this.masterPlaylistLoader_.master,e),t.length<1)return this.error="No compatible SourceBuffer configuration for the variant stream:"+e.resolvedUri,this.mediaSource.endOfStream("decode");this.configureLoaderMimeTypes_(t),this.excludeIncompatibleVariants_(e)}}},{key:"configureLoaderMimeTypes_",value:function(e){var t=e.length>1&&e[0].indexOf(",")===-1&&e[0]!==e[1]?new Ve.EventTarget:null;this.mainSegmentLoader_.mimeType(e[0],t),e[1]&&this.audioSegmentLoader_.mimeType(e[1],t)}},{key:"excludeUnsupportedVariants_",value:function(){this.master().playlists.forEac
84h(function(e){e.attributes.CODECS&&Ge.MediaSource&&Ge.MediaSource.isTypeSupported&&!Ge.MediaSource.isTypeSupported('video/mp4; codecs="'+Vo(e.attributes.CODECS)+'"')&&(e.excludeUntil=1/0)})}},{key:"excludeIncompatibleVariants_",value:function(e){var t=2,n=null,r=void 0;e.attributes.CODECS&&(r=Fo(e.attributes.CODECS),n=r.videoCodec,t=r.codecCount),this.master().playlists.forEach(function(e){var r={codecCount:2,videoCodec:null};e.attributes.CODECS&&(r=Fo(e.attributes.CODECS)),r.codecCount!==t&&(e.excludeUntil=1/0),r.videoCodec!==n&&(e.excludeUntil=1/0)})}},{key:"updateAdCues_",value:function(e){var t=0,n=this.seekable();n.length&&(t=n.start(0)),Zs(e,this.cueTagsTrack_,t)}},{key:"goalBufferLength",value:function(){var e=this.tech_.currentTime(),t=gs.GOAL_BUFFER_LENGTH,n=gs.GOAL_BUFFER_LENGTH_RATE,r=Math.max(t,gs.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*n,r)}},{key:"bufferLowWaterLine",value:function(){var e=this.tech_.currentTime(),t=gs.BUFFER_LOW_WATER_LINE,n=gs.BUFFER_LOW_WATER_LINE_RATE,r=Math.max(t,gs.MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*n,r)}}]),t}(Ve.EventTarget),El=function(e,t,n){return function(r){var i=e.master.playlists[t],a=qa(i),o=Ga(i);return"undefined"==typeof r?o:(r?delete i.disabled:i.disabled=!0,r===o||a||(n(),r?e.trigger("renditionenabled"):e.trigger("renditiondisabled")),r)}},Sl=function Vl(e,t,n){fa(this,Vl);var r=e.masterPlaylistController_,i=e.options_.smoothQualityChange,a=i?"smooth":"fast",o=r[a+"QualityChange_"].bind(r);if(t.attributes.RESOLUTION){var s=t.attributes.RESOLUTION;this.width=s.width,this.height=s.height}this.bandwidth=t.attributes.BANDWIDTH,this.id=n,this.enabled=El(e.playlists,t.uri,o)},wl=function(e){var t=e.playlists;e.representations=function(){return t.master.playlists.filter(function(e){return!qa(e)}).map(function(t,n){return new Sl(e,t,t.uri)})}},Cl=["seeking","seeked","pause","playing","error"],kl=function(){function e(t){var n=this;fa(this,e),this.tech_=t.tech,this.seekable=t.seekable,this.seekTo=t.seekTo,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=ps("PlaybackWatcher"),this.logger_("initialize");var r=function(){return n.monitorCurrentTime_()},i=function(){return n.techWaiting_()},a=function(){return n.cancelTimer_()},o=function(){return n.fixesBadSeeks_()};this.tech_.on("seekablechanged",o),this.tech_.on("waiting",i),this.tech_.on(Cl,a),this.tech_.on("canplay",r),this.dispose=function(){n.logger_("dispose"),n.tech_.off("seekablechanged",o),n.tech_.off("waiting",i),n.tech_.off(Cl,a),n.tech_.off("canplay",r),n.checkCurrentTimeTimeout_&&Ge.clearTimeout(n.checkCurrentTimeTimeout_),n.cancelTimer_()}}return ga(e,[{key:"monitorCurrentTime_",value:function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&Ge.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=Ge.setTimeout(this.monitorCurrentTime_.bind(this),250)}},{key:"checkCurrentTime_",value:function(){if(this.tech_.seeking()&&this.fixesBadSeeks_())return this.consecutiveUpdates=0,void(this.lastRecordedTime=this.tech_.currentTime());if(!this.tech_.paused()&&!this.tech_.seeking()){var e=this.tech_.currentTime(),t=this.tech_.buffered();return this.lastRecordedTime===e&&(!t.length||e+go>=t.end(t.length-1))?this.techWaiting_():void(this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e))}}},{key:"cancelTimer_",value:function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null}},{key:"fixesBadSeeks_",value:function(){var e=this.tech_.seeking(),t=this.seekable(),n=this.tech_.currentTime(),r=void 0;if(e&&this.afterSeekableWindow_(t,n)){var i=t.end(t.length-1);r=i}if(e&&this.beforeSeekableWindow_(t,n)){var a=t.start(0);r=a+go}return"undefined"!=typeof r&&(this.logger_("Trying to seek outside of seekable at time "+n+" with "+("seekable range "+bo(t)+". Seeking to ")+(r+".")),this.seekTo(r),!0)}},{key:"waiting_",value:function(){if(!this.techWaiting_()){var e=this.tech_.currentTime(),t=this.tech_.buffered(),n=vo(t,e);return n.length&&e+3<=n.end(0)?(this.cancelTimer_(),this.seekTo(e),this.logger_("Stopped at "+e+" while inside a buffered region "+("["+n.start(0)+" -> "+n.end(0)+"]. Attempting to resume ")+"playback by seeking to the current time."),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}}},{key:"techWaiting_",value:function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_())return!0;
84if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t)){var n=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.seekTo(n),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var r=this.tech_.buffered(),i=yo(r,t);if(this.videoUnderflow_(i,r,t))return this.cancelTimer_(),this.seekTo(t),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;if(i.length>0){var a=i.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+a+", seeking to "+i.start(0)),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*a,t),!0}return!1}},{key:"afterSeekableWindow_",value:function(e,t){return!!e.length&&t>e.end(e.length-1)+go}},{key:"beforeSeekableWindow_",value:function(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-go)}},{key:"videoUnderflow_",value:function(e,t,n){if(0===e.length){var r=this.gapFromVideoUnderflow_(t,n);if(r)return this.logger_("Encountered a gap in video from "+r.start+" to "+r.end+". Seeking to current time "+n),!0}return!1}},{key:"skipTheGap_",value:function(e){var t=this.tech_.buffered(),n=this.tech_.currentTime(),r=yo(t,n);this.cancelTimer_(),0!==r.length&&n===e&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",e,"nextRange start:",r.start(0)),this.seekTo(r.start(0)+fo),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))}},{key:"gapFromVideoUnderflow_",value:function(e,t){for(var n=_o(e),r=0;r<n.length;r++){var i=n.start(r),a=n.end(r);if(t-i<4&&t-i>2)return{start:i,end:a}}return null}}]),e}(),Dl={errorInterval:30,getSource:function(e){var t=this.tech({IWillNotUseThisInPlugins:!0}),n=t.currentSource_;return e(n)}},xl=function Wl(e,t){var n=0,r=0,i=Ve.mergeOptions(Dl,t);e.ready(function(){e.trigger({type:"usage",name:"hls-error-reload-initialized"})});var a=function(){r&&e.currentTime(r)},o=function(t){null!==t&&void 0!==t&&(r=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",a),e.src(t),e.trigger({type:"usage",name:"hls-error-reload"}),e.play())},s=function(){return Date.now()-n<1e3*i.errorInterval?void e.trigger({type:"usage",name:"hls-error-reload-canceled"}):i.getSource&&"function"==typeof i.getSource?(n=Date.now(),i.getSource.call(e,o)):void Ve.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},l=function c(){e.off("loadedmetadata",a),e.off("error",s),e.off("dispose",c)},u=function(t){l(),Wl(e,t)};e.on("error",s),e.on("dispose",l),e.reloadSourceOnError=u},Al=function(e){xl(this,e)},Il="1.4.1";Ve.use("*",function(e){return{setSource:function(e,t){t(null,e)},setCurrentTime:function(t){return e.vhs&&e.currentSource().src===e.vhs.source_.src&&e.vhs.setCurrentTime(t),t},play:function(){e.vhs&&e.currentSource().src===e.vhs.source_.src&&e.vhs.setCurrentTime(e.currentTime())}}});var Ol={PlaylistLoader:Ia,Playlist:eo,Decrypter:at.Decrypter,AsyncStream:at.AsyncStream,decrypt:at.decrypt,utils:po,STANDARD_PLAYLIST_SELECTOR:Ns,INITIAL_PLAYLIST_SELECTOR:Hs,comparePlaylistBandwidth:Ms,comparePlaylistResolution:Rs,xhr:ro()};["GOAL_BUFFER_LENGTH","MAX_GOAL_BUFFER_LENGTH","GOAL_BUFFER_LENGTH_RATE","BUFFER_LOW_WATER_LINE","MAX_BUFFER_LOW_WATER_LINE","BUFFER_LOW_WATER_LINE_RATE","BANDWIDTH_VARIANCE"].forEach(function(e){Object.defineProperty(Ol,e,{get:function(){return Ve.log.warn("using Hls."+e+" is UNSAFE be sure you know what you are doing"),gs[e]},set:function(t){return Ve.log.warn("using Hls."+e+" is UNSAFE be sure you know what you are doing"),"number"!=typeof t||t<0?void Ve.log.warn("value of Hls."+e+" must be greater than or equal to 0"):void(gs[e]=t)}})});var Pl=function(e){var t=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i;if(t.test(e))return"hls";var n=/^application\/dash\+xml/i;return n.test(e)?"dash":null},Ml=function(e,t){for(var n=t.media(),r=-1,i=0;i<e.length;i++)if(e[i].id===n.uri){r=i;break}e.selectedIndex_=r,e.trigger({selectedIndex:r,type:"change"})},Rl=function(e,t){t.representations().forEach(function(t){e.addQualityLevel(t)}),Ml(e,t.playlists)};Ol.canPlaySource=function(){return Ve.log.warn("HLS is no longer a tech. Please remove it from your player'
84s techOrder.")};var Ll=function(e,t,n){if(!e)return e;var r={};for(var i in e)r[i]={audioContentType:'audio/mp4; codecs="'+n.attributes.CODECS+'"',videoContentType:'video/mp4; codecs="'+t.attributes.CODECS+'"'},t.contentProtection&&t.contentProtection[i]&&t.contentProtection[i].pssh&&(r[i].pssh=t.contentProtection[i].pssh),"string"==typeof e[i]&&(r[i].url=e[i]);return Ve.mergeOptions(e,r)},Nl=function(e){if("dash"===e.options_.sourceType){var t=Ve.players[e.tech_.options_.playerId];if(t.eme){var n=Ll(e.source_.keySystems,e.playlists.media(),e.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader.media());n&&(t.currentSource().keySystems=n,t.eme.initializeMediaKeys&&t.eme.initializeMediaKeys())}}};Ol.supportsNativeHls=function(){var e=Ye.createElement("video");if(!Ve.getTech("Html5").isSupported())return!1;var t=["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"];return t.some(function(t){return/maybe|probably/i.test(e.canPlayType(t))})}(),Ol.supportsNativeDash=function(){return!!Ve.getTech("Html5").isSupported()&&/maybe|probably/i.test(Ye.createElement("video").canPlayType("application/dash+xml"))}(),Ol.supportsTypeNatively=function(e){return"hls"===e?Ol.supportsNativeHls:"dash"===e&&Ol.supportsNativeDash},Ol.isSupported=function(){return Ve.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var Ul=Ve.getComponent("Component"),Hl=function(e){function t(e,n,r){fa(this,t);var i=ya(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,n,r.hls));if(n.options_&&n.options_.playerId){var a=Ve(n.options_.playerId);a.hasOwnProperty("hls")||Object.defineProperty(a,"hls",{get:function(){return Ve.log.warn("player.hls is deprecated. Use player.tech().hls instead."),n.trigger({type:"usage",name:"hls-player-access"}),i}}),a.vhs=i,a.dash=i}if(i.tech_=n,i.source_=e,i.stats={},i.setOptions_(),i.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(i.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return i.on(Ye,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){var t=Ye.fullscreenElement||Ye.webkitFullscreenElement||Ye.mozFullScreenElement||Ye.msFullscreenElement;t&&t.contains(i.tech_.el())&&i.masterPlaylistController_.smoothQualityChange_()}),i.on(i.tech_,"seeking",function(){this.tech_.seeking()&&0===this.tech_.currentTime()&&this.tech_.player_.loop()&&this.setCurrentTime(0)}),i.on(i.tech_,"error",function(){this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()}),i.on(i.tech_,"play",i.play),i}return va(t,e),ga(t,[{key:"setOptions_",value:function(){var e=this;this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions!==!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,"number"!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=gs.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===gs.INITIAL_BANDWIDTH,["withCredentials","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange"].forEach(function(t){"undefined"!=typeof e.source_[t]&&(e.options_[t]=e.source_[t])}),this.bandwidth=this.options_.bandwidth,this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions}},{key:"src",value:function(e,t){var n=this;e&&(this.setOptions_(),this.options_.url=this.source_.src,this.options_.tech=this.tech_,this.options_.externHls=Ol,this.options_.sourceType=Pl(t),this.options_.seekTo=function(e){n.tech_.setCurrentTime(e),n.setCurrentTime(e)},this.masterPlaylistController_=new Tl(this.options_),this.playbackWatcher_=new kl(Ve.mergeOptions(this.options_,{seekable:function(){return n.seekable()}})),this.masterPlaylistController_.on("error",function(){var e=Ve.players[n.tech_.options_.playerId];e.error(n.masterPlaylistController_.error)}),this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):Ol.STANDARD_PLAYLIST_SELECTOR.bind(this),this.masterPlaylistController_.selectInitialPlaylist=Ol.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(e){this.masterPlaylistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=e,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth}
84,set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e=1/(this.bandwidth||1),t=void 0;t=this.throughput>0?1/this.throughput:0;var n=Math.floor(1/(e+t));return n},set:function(){Ve.log.error('The "systemBandwidth" property is read-only')}}}),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},buffered:{get:function(){return Eo(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return Eo(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.masterPlaylistController_.on("selectedinitialmedia",function(){wl(n),Nl(n)}),this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")}),this.tech_.ready(function(){return n.setupQualityLevels_()}),this.tech_.el()&&this.tech_.src(Ve.URL.createObjectURL(this.masterPlaylistController_.mediaSource)))}},{key:"setupQualityLevels_",value:function(){var e=this,t=Ve.players[this.tech_.options_.playerId];t&&t.qualityLevels&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",function(){Rl(e.qualityLevels_,e)}),this.playlists.on("mediachange",function(){Ml(e.qualityLevels_,e.playlists)}))}},{key:"play",value:function(){this.masterPlaylistController_.play()}},{key:"setCurrentTime",value:function(e){this.masterPlaylistController_.setCurrentTime(e)}},{key:"duration",value:function(){return this.masterPlaylistController_.duration()}},{key:"seekable",value:function(){return this.masterPlaylistController_.seekable()}},{key:"dispose",value:function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),ma(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dispose",this).call(this)}}]),t}(Ul),jl={name:"videojs-http-streaming",VERSION:Il,canHandleSource:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ve.mergeOptions(Ve.options,t);return jl.canPlayType(e.type,n)},handleSource:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ve.mergeOptions(Ve.options,n);return t.hls=new Hl(e,t,r),t.hls.xhr=ro(),t.hls.src(e.src,e.type),t.hls},canPlayType:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ve.mergeOptions(Ve.options,t),r=n.hls.overrideNative,i=Pl(e),a=i&&(!Ol.supportsTypeNatively(i)||r);return a?"maybe":""}};"undefined"!=typeof Ve.MediaSource&&"undefined"!=typeof Ve.URL||(Ve.MediaSource=ss,Ve.URL=ls),ss.supportsNativeMediaSources()&&Ve.getTech("Html5").registerSourceHandler(jl,0),Ve.HlsHandler=Hl,Ve.HlsSourceHandler=jl,Ve.Hls=Ol,Ve.use||Ve.registerComponent("Hls",Ol),Ve.options.hls=Ve.options.hls||{},Ve.registerPlugin?Ve.registerPlugin("reloadSourceOnError",Al):Ve.plugin("reloadSourceOnError",Al),e.exports=Ve},function(e,t){(function(t){var n;n="undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(t,function(){return this}())},function(e,t,n){(function(t){var r,i="undefined"!=typeof t?t:"undefined"!=typeof window?window:{},a=n(12);"undefined"!=typeof document?r=document:(r=i["__GLOBAL_DOCUMENT_CACHE@4"],r||(r=i["__GLOBAL_DOCUMENT_CACHE@4"]=a)),e.exports=r}).call(t,function(){return this}())},function(e,t){},function(e,t){function n(e){return e.replace(/\n\r?\s*/g,"")}e.exports=function(e){for(var t="",r=0;r<arguments.length;r++)t+=n(e[r])+(arguments[r+1]||"");return t}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<e.length;n++)t(e[n])}function i(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function a(e,t,n){var r=e;return d(t)?(n=t,"string"==typeof e&&(r={uri:e})):r=p(t,{uri:e}),r.callback=n,r}function o(e,t,n){return t=a(e,t,n),s(t)}function s(e){function t(){4===c.readyState&&setTimeout(a,0)}function n(){var e=void 0;if(e=c.response?c.response:c.responseText||l(c),b)try{e=JSON.parse(e)}catch(t){}return e}function r(e){return clearTimeout(f),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,u(e,T)}function a(){if(!p){var t;clearTimeout(f),t=e.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var r=T,i=null;return 0!==t?(r={body:n(),statusCode:t,method:m,headers:{},url:g,rawRequest:c},c.getAllResponseHeaders&&(r.headers=h(c.getAllResponseHeaders()))):i=new Error("Internal XMLHttpRequest Error"),u(i,r,r.body)}}if("undefined"==typeof e.callback)throw new Error("callback argument missing");var s=!1,u=function(t,n,r){s||(s=!0,e.callback(t,n,r))},c=e.xhr||null;c||(c=e.cors||e.useXDR?new o.XDomainRequest:new o.XMLHttpRequest);var d,p,f,g=c.url=e.uri||e.url,m=c.method=e.method||"GET",v=e.body||e.data,y=c.headers=e.headers||{},_=!!e.sync,b=!1,T={body:void 0,headers:{},statusCode:0,method:m,url:g,rawRequest:c};if("json"in e&&e.json!==!1&&(b=!0,y.accept||y.Accept||(y.Accept="application/json"),"GET"!==m&&"HEAD"!==m&&(y["content-type"]||y["Content-Type"]||(y["Content-Type"]="application/json"),v=JSON.stringify(e.json===!0?v:e.json))),c.onreadystatechange=t,c.onload=a,c.onerror=r,c.onprogress=function(){},c.onabort=function(){p=!0},c.ontimeout=r,c.open(m,g,!_,e.username,e.password),_||(c.withCredentials=!!e.withCredentials),!_&&e.t
84imeout>0&&(f=setTimeout(function(){if(!p){p=!0,c.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",r(e)}},e.timeout)),c.setRequestHeader)for(d in y)y.hasOwnProperty(d)&&c.setRequestHeader(d,y[d]);else if(e.headers&&!i(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(c.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(c),c.send(v||null),c}function l(e){if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;return""!==e.responseType||t?null:e.responseXML}function u(){}var c=n(10),d=n(15),h=n(16),p=n(20);e.exports=o,o.XMLHttpRequest=c.XMLHttpRequest||u,o.XDomainRequest="withCredentials"in new o.XMLHttpRequest?o.XMLHttpRequest:c.XDomainRequest,r(["get","put","post","patch","head","delete"],function(e){o["delete"===e?"del":e]=function(t,n,r){return n=a(t,n,r),n.method=e.toUpperCase(),s(n)}})},function(e,t){function n(e){var t=r.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}e.exports=n;var r=Object.prototype.toString},function(e,t,n){var r=n(17),i=n(18),a=function(e){return"[object Array]"===Object.prototype.toString.call(e)};e.exports=function(e){if(!e)return{};var t={};return i(r(e).split("\n"),function(e){var n=e.indexOf(":"),i=r(e.slice(0,n)).toLowerCase(),o=r(e.slice(n+1));"undefined"==typeof t[i]?t[i]=o:a(t[i])?t[i].push(o):t[i]=[t[i],o]}),t}},function(e,t){function n(e){return e.replace(/^\s*|\s*$/g,"")}t=e.exports=n,t.left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}},function(e,t,n){"use strict";var r=n(19),i=Object.prototype.toString,a=Object.prototype.hasOwnProperty,o=function(e,t,n){for(var r=0,i=e.length;r<i;r++)a.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))},s=function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)},l=function(e,t,n){for(var r in e)a.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))},u=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===i.call(e)?o(e,t,a):"string"==typeof e?s(e,t,a):l(e,t,a)};e.exports=u},function(e,t){"use strict";var n=Function.prototype.toString,r=/^\s*class\b/,i=function(e){try{var t=n.call(e);return r.test(t)}catch(i){return!1}},a=function(e){try{return!i(e)&&(n.call(e),!0)}catch(t){return!1}},o=Object.prototype.toString,s="[object Function]",l="[object GeneratorFunction]",u="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if("function"==typeof e&&!e.prototype)return!0;if(u)return a(e);if(i(e))return!1;var t=o.call(e);return t===s||t===l}},function(e,t){function n(){for(var e={},t=0;t<arguments.length;t++){var n=arguments[t];for(var i in n)r.call(n,i)&&(e[i]=n[i])}return e}e.exports=n;var r=Object.prototype.hasOwnProperty},function(e,t,n){var r=n(10),i=e.exports={WebVTT:n(22),VTTCue:n(23),VTTRegion:n(24)};r.vttjs=i,r.WebVTT=i.WebVTT;var a=i.VTTCue,o=i.VTTRegion,s=r.VTTCue,l=r.VTTRegion;i.shim=function(){r.VTTCue=a,r.VTTRegion=o},i.restore=function(){r.VTTCue=s,r.VTTRegion=l},r.VTTCue||i.shim()},function(e,t){function n(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function r(e){function t(e,t,n,r){return 3600*(0|e)+60*(0|t)+(0|n)+(0|r)/1e3}var n=e.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function i(){this.values=m(null)}function a(e,t,n,r){var i=r?e.split(r):[e];for(var a in i)if("string"==typeof i[a]){var o=i[a].split(n);if(2===o.length){var s=o[0],l=o[1];t(s,l)}}}function o(e,t,o){function s(){var t=r(e);if(null===t)throw new n(n.Errors.BadTimeStamp,"Malformed timestamp: "+c);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function l(e,t){var n=new i;a(e,function(e,t){switch(e){case"region":for(var r=o.length-1;r>=0;r--)if(o[r].id===t){n.set(e,o[r].region);break}break;case"vertical":n.alt(e,t,["rl","lr"]);break;case"line":var i=t.split(","),a=i[0];n.integer(e,a),n.percent(e,a)?n.set("snapToLines",!1):null,n.alt(e,a,["auto"]),2===i.length&&n.alt("lineAlign",i[1],["start","middle","end"]);break;case"position":i=t.split(","),n.percent(e,i[0]),2===i.length&&n.alt("positionAlign",i[1],["start","middle","end"]);break;case"size":n.percent(e,t);break;case"align":n.alt(e,t,["start","middle","end","left","right"])}},/:/,/\s/),t.region=n.get("region",null),t.vertical=n.get("vertical",""),t.line=n.get("line","auto"),t.lineAlign=n.get("lineAlign","start"),t.snapToLines=n.get("snapToLines",!0),t.size=n.get("size",100),t.align=n.get("align","middle"),t.position=n.get("position",{start:0,left:0,middle:50,end:100,right:100},t.align),t.positionAlign=n.get("positionAlign",{start:"start",left:"start",middle:"middle",end:"end",right:"end"},t.align)}function u(){e=e.replace(/^\s+/,"")}var c=e;if(u(),t.startTime=s(),u(),"-->"!==e.substr(0,3))throw new n(n.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+c);e=e.substr(3),u(),t.endTime=s(),u(),l(e,t)}function s(e,t){function n(){function e(e){return t=t.substr(e.length),e}if(!t)return null;var n=t.match(/^([^<]*)(<[^>
vendor: 6,745 bytes, lines 84-85
84]*>?)?/);return e(n[1]?n[1]:n[2])}function i(e){return v[e]}function a(e){for(;f=e.match(/&(amp|lt|gt|lrm|rlm|nbsp);/);)e=e.replace(f[0],i);return e}function o(e,t){return!b[t.localName]||b[t.localName]===e.localName}function s(t,n){var r=y[t];if(!r)return null;var i=e.document.createElement(r);i.localName=r;var a=_[t];return a&&n&&(i[a]=n.trim()),i}for(var l,u=e.document.createElement("div"),c=u,d=[];null!==(l=n());)if("<"!==l[0])c.appendChild(e.document.createTextNode(a(l)));else{if("/"===l[1]){d.length&&d[d.length-1]===l.substr(2).replace(">","")&&(d.pop(),c=c.parentNode);continue}var h,p=r(l.substr(1,l.length-2));if(p){h=e.document.createProcessingInstruction("timestamp",p),c.appendChild(h);continue}var f=l.match(/^<([^.\s\/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!f)continue;if(h=s(f[1],f[3]),!h)continue;if(!o(c,h))continue;f[2]&&(h.className=f[2].substr(1).replace("."," ")),d.push(f[1]),c.appendChild(h),c=h}return u}function l(e){for(var t=0;t<T.length;t++){var n=T[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function u(e){function t(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function n(e){if(!e||!e.length)return null;var r=e.pop(),i=r.textContent||r.innerText;if(i){var a=i.match(/^.*(\n|\r)/);return a?(e.length=0,a[0]):i}return"ruby"===r.tagName?n(e):r.childNodes?(t(e,r),n(e)):void 0}var r,i=[],a="";if(!e||!e.childNodes)return"ltr";for(t(i,e);a=n(i);)for(var o=0;o<a.length;o++)if(r=a.charCodeAt(o),l(r))return"rtl";return"ltr"}function c(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,r=0,i=0;i<n.length&&n[i]!==t;i++)"showing"===n[i].mode&&r++;return++r*-1}function d(){}function h(e,t,n){d.call(this),this.cue=t,this.cueDiv=s(e,t.text);var r={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(r,this.cueDiv),this.div=e.document.createElement("div"),r={direction:u(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl", 85unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(r),this.div.appendChild(this.cueDiv);var i=0;switch(t.positionAlign){case"start":i=t.position;break;case"middle":i=t.position-t.size/2;break;case"end":i=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(i,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(i,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function p(e){var t,n,r,i;if(e.div){n=e.div.offsetHeight,r=e.div.offsetWidth,i=e.div.offsetTop;var a=(a=e.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();e=e.div.getBoundingClientRect(),t=a?Math.max(a[0]&&a[0].height||0,e.height/a.length):0}this.left=e.left,this.right=e.right,this.top=e.top||i,this.height=e.height||n,this.bottom=e.bottom||i+(e.height||n),this.width=e.width||r,this.lineHeight=void 0!==t?t:e.lineHeight}function f(e,t,n,r){function i(e,t){for(var i,a=new p(e),o=1,s=0;s<t.length;s++){for(;e.overlapsOppositeAxis(n,t[s])||e.within(n)&&e.overlapsAny(r);)e.move(t[s]);if(e.within(n))return e;var l=e.intersectPercentage(n);o>l&&(i=new p(e),o=l),e=new p(a)}return i||a}var a=new p(t),o=t.cue,s=c(o),l=[];if(o.snapToLines){var u;switch(o.vertical){case"":l=["+y","-y"],u="height";break;case"rl":l=["+x","-x"],u="width";break;case"lr":l=["-x","+x"],u="width"}var d=a.lineHeight,h=d*Math.round(s),f=n[u]+d,g=l[0];Math.abs(h)>f&&(h=h<0?-1:1,h*=Math.ceil(f/d)*d),s<0&&(h+=""===o.vertical?n.height:n.width,l=l.reverse()),a.move(g,h)}else{var m=a.lineHeight/n.height*100;switch(o.lineAlign){case"middle":s-=m/2;break;case"end":s-=m}switch(o.vertical){case"":t.applyStyles({top:t.formatStyle(s,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(s,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(s,"%")})}l=["+y","-x","+x","-y"],a=new p(t)}var v=i(a,l);t.move(v.toCSSCompatValues(n))}function g(){}var m=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();n.prototype=m(Error.prototype),n.prototype.constructor=n,n.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},i.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){var n;return!!((n=t.match(/^([\d]{1,3})(\.[\d]*)?%$/))&&(t=parseFloat(t),t>=0&&t<=100))&&(this.set(e,t),!0)}};var v={"&":"&","<":"<",">":">","‎":"â","‏":"â"," ":"Â "},y={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},_={v:"title",lang:"lang"},b={rt:"ruby"},T=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551
vendor: 6,494 bytes, line 85
85],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];d.prototype.applyStyles=function(e,t){t=t||this.div;for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},d.prototype.formatStyle=function(e,t){return 0===e?0:e+t},h.prototype=m(d.prototype),h.prototype.constructor=h,p.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},p.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},p.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},p.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},p.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},p.prototype.intersectPercentage=function(e){var t=Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left)),n=Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top)),r=t*n;return r/(this.height*this.width)},p.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},p.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,r=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e;var i={left:e.left,right:e.right,top:e.top||r,height:e.height||t,bottom:e.bottom||r+(e.height||t),width:e.width||n};return i},g.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},g.convertCueToDOMTree=function(e,t){return e&&t?s(e,t):null};var E=.05,S="sans-serif",w="1.5%";g.processCues=function(e,t,n){function r(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i=e.document.createElement("div");if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",i.style.margin=w,n.appendChild(i),r(t)){var a=[],o=p.getSimpleBoxPosition(i),s=Math.round(o.height*E*100)/100,l={font:s+"px "+S};!function(){for(var n,r,s=0;s<t.length;s++)r=t[s],n=new h(e,r,l),i.appendChild(n.div),f(e,n,o,a),r.displayState=n.div,a.push(p.getSimpleBoxPosition(n))}()}else for(var u=0;u<t.length;u++)i.appendChild(t[u].displayState)},g.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},g.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof n))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){function t(){for(var e=c.buffer,t=0;t<e.length&&"\r"!==e[t]&&"\n"!==e[t];)++t;var n=e.substr(0,t);return"\r"===e[t]&&++t,"\n"===e[t]&&++t,c.buffer=e.substr(t),n}function s(e){var t=new i;if(a(e,function(e,n){switch(e){case"id":t.set(e,n);break;case"width":t.percent(e,n);break;case"lines":t.integer(e,n);break;case"regionanchor":case"viewportanchor":var r=n.split(",");if(2!==r.length)break;var a=new i;if(a.percent("x",r[0]),a.percent("y",r[1]),!a.has("x")||!a.has("y"))break;t.set(e+"X",a.get("x")),t.set(e+"Y",a.get("y"));break;case"scroll":t.alt(e,n,["up"])}},/=/,/\s/),t.has("id")){var n=new(c.vttjs.VTTRegion||c.window.VTTRegion);n.width=t.get("width",100),n.lines=t.get("lines",3),n.regionAnchorX=t.get("regionanchorX",0),n.regionAnchorY=t.get("regionanchorY",100),n.viewportAnchorX=t.get("viewportanchorX",0),n.viewportAnchorY=t.get("viewportanchorY",100),n.scroll=t.get("scroll",""),c.onregion&&c.onregion(n),c.regionList.push({id:t.get("id"),region:n})}}function l(e){var t=new i;a(e,function(e,n){switch(e){case"MPEGT":t.integer(e+"S",n);break;case"LOCA":t.set(e+"L",r(n))}},/[^\d]:/,/,/),c.ontimestampmap&&c.ontimestampmap({MPEGTS:t.get("MPEGTS"),LOCAL:t.get("LOCAL")})}function u(e){e.match(/X-TIMESTAMP-MAP/)?a(e,function(e,t){switch(e){case"X-TIMESTAMP-MAP":l(t)}},/=/):a(e,function(e,t){switch(e){case"Region":s(t)}},/:/)}var c=this;e&&(c.buffer+=c.decoder.decode(e,{stream:!0}));try{var d;if("INITIAL"===c.state){if(!/\r\n|\n/.test(c.buffer))return this;d=t();var h=d.match(/^WEBVTT([ \t].*)?$/);if(!h||!h[0])throw new n(n.Errors.BadSignature);c.state="HEADER"}for(var p=!1;c.buffer;){if(!/\r\n|\n/.test(c.buffer))return this;switch(p?p=!1:d=t(),c.state){case"HEADER":/:/.test(d)?u(d):d||(c.state="ID");continue;case"NOTE":d||(c.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(d)){c.state="NOTE";break}if(!d)continue;if(c.cue=new(c.vttjs.VTTCue||c.window.VTTCue)(0,0,""),c.state="CUE",d.indexOf("-->")===-1){c.cue.id=d;continue}case"CUE":try{o(d,c.cue,c.regionList)}catch(f){c.reportOrThrowError(f),c.cue=null,c.state="BADCUE";continue}c.state="CUETEXT";continue;case"CUETEXT":var g=d.indexOf("-->")!==-1;if(!d||g&&(p=!0)){c.oncue&&c.oncue(c.cue),c.cue=null,c.state="ID";continue}c.cue.text&&(c.cue.text+="\n"),c.cue.text+=d;continue;case"BADCUE":d||(c.state="ID");continue}}}catch(f){c.reportOrThrowError(f),"CUETEXT"===c.state&&c.cue&&c.oncue&&c.oncue(c.cue),c.cue=null,c.state="INITIAL"===c.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new n(n.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},e.exports=g},function(e,t){function n(e){if("string"!=typeof e)return!1;var t=o[e.toLowerCase()];return!!t&&e.toLowerCase()}function r(e){if("string"!=typeof e)return!1;var t=s[e.toLowerCase()];return!!t&&e.toLowerCase()}function i(e,t,i){this.hasBeenReset=!1;var o="",s=!1,l=e,u=t,c=i,d=null,h="",p=!0,f="auto",g="start",m=50,v="middle",y=50,_="middle";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return o}
85,set:function(e){o=""+e}},pauseOnExit:{enumerable:!0,get:function(){return s},set:function(e){s=!!e}},startTime:{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");l=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");u=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return c},set:function(e){c=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return d},set:function(e){d=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return h},set:function(e){var t=n(e);if(t===!1)throw new SyntaxError("An invalid or illegal string was specified.");h=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return p},set:function(e){p=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return f},set:function(e){if("number"!=typeof e&&e!==a)throw new SyntaxError("An invalid number or illegal string was specified.");f=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return g},set:function(e){var t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");g=t,this.hasBeenReset=!0}},position:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");m=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return v},set:function(e){var t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");v=t,this.hasBeenReset=!0}},size:{enumerable:!0,get:function(){return y},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");y=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return _},set:function(e){var t=r(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");_=t,this.hasBeenReset=!0}}}),this.displayState=void 0}var a="auto",o={"":1,lr:1,rl:1},s={start:1,middle:1,end:1,left:1,right:1};i.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=i},function(e,t){function n(e){if("string"!=typeof e)return!1;var t=a[e.toLowerCase()];return!!t&&e.toLowerCase()}function r(e){return"number"==typeof e&&e>=0&&e<=100}function i(){var e=100,t=3,i=0,a=100,o=0,s=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!r(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return a}
vendor: 7,236 bytes, line 85
85,set:function(e){if(!r(e))throw new Error("RegionAnchorX must be between 0 and 100.");a=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!r(e))throw new Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!r(e))throw new Error("ViewportAnchorY must be between 0 and 100.");s=e}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(e){if(!r(e))throw new Error("ViewportAnchorX must be between 0 and 100.");o=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var t=n(e);if(t===!1)throw new SyntaxError("An invalid or illegal string was specified.");l=t}}})}var a={"":!0,up:!0};e.exports=i},function(e,t){function n(e,t){var n,r=null;try{n=JSON.parse(e,t)}catch(i){r=i}return[r,n]}e.exports=n},function(e,t,n){!function(t){var n=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/\?#]*\/)*.*?)??(;.*?)?(\?.*?)?(#.*?)?$/,r=/^([^\/?#]*)(.*)$/,i=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g,o={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),t=t.trim(),!t){if(!n.alwaysNormalize)return e;var i=o.parseURL(e);if(!i)throw new Error("Error trying to parse base URL.");return i.path=o.normalizePath(i.path),o.buildURLFromParts(i)}var a=o.parseURL(t);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return n.alwaysNormalize?(a.path=o.normalizePath(a.path),o.buildURLFromParts(a)):t;var s=o.parseURL(e);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var l=r.exec(s.path);s.netLoc=l[1],s.path=l[2]}s.netLoc&&!s.path&&(s.path="/");var u={scheme:s.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(u.netLoc=s.netLoc,"/"!==a.path[0]))if(a.path){var c=s.path,d=c.substring(0,c.lastIndexOf("/")+1)+a.path;u.path=o.normalizePath(d)}else u.path=s.path,a.params||(u.params=s.params,a.query||(u.query=s.query));return null===u.path&&(u.path=n.alwaysNormalize?o.normalizePath(a.path):a.path),o.buildURLFromParts(u)},parseURL:function(e){var t=n.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(i,"");e.length!==(e=e.replace(a,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}};e.exports=o}(this)},function(e,t){"use strict";var n=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=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)},a=function(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},o=function(){function e(){n(this,e),this.listeners={}}return e.prototype.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e].splice(n,1),n>-1},e.prototype.trigger=function(e){var t=this.listeners[e],n=void 0,r=void 0,i=void 0;if(t)if(2===arguments.length)for(r=t.length,n=0;n<r;++n)t[n].call(this,arguments[1]);else for(i=Array.prototype.slice.call(arguments,1),r=t.length,n=0;n<r;++n)t[n].apply(this,i)},e.prototype.dispose=function(){this.listeners={}},e.prototype.pipe=function(e){this.on("data",function(t){e.push(t)})},e}(),s=function(e){function t(){n(this,t);var r=a(this,e.call(this));return r.buffer="",r}return i(t,e),t.prototype.push=function(e){var t=void 0;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t}(o),l=function(){var e="[^=]*",t='"[^"]*"|[^,]*',n="(?:"+e+")=(?:"+t+")";return new RegExp("(?:^|,)("+n+")")},u=function(e){for(var t=e.split(l()),n={},r=t.length,i=void 0;r--;)""!==t[r]&&(i=/([^=]*)=(.*)/.exec(t[r]).slice(1),i[0]=i[0].replace(/^\s+|\s+$/g,""),i[1]=i[1].replace(/^\s+|\s+$/g,""),i[1]=i[1].replace(/^['"](.*)['"]$/g,"$1"),n[i[0]]=i[1]);return n},c=function(e){function t(){n(this,t);var r=a(this,e.call(this));return r.customParsers=[],r}return i(t,e),t.prototype.push=function(e){var t=void 0,n=void 0;if(e=e.replace(/^[\u0000\s]+|[\u0000\s]+$/g,""),0!==e.length){if("#"!==e[0])return void this.trigger("data",{type:"uri",uri:e});for(var r=0;r<this.customParsers.length;r++)if(this.customParsers[r].call(this,e))return;if(0!==e.indexOf("#EXT"))return void this.trigger("data",{type:"comment",text:e.slice(1)});if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e))return void this.trigger("data",{type:"tag",tagType:"m3u"});if(t=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e))return n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),void this.trigger("data",n);if(t=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"totalduration"},t[1]&&(n.duration=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e))return n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),void this.trigger("data",n);if(t=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"byterange"},t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),void this.trigger("data",n);if(t=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e))return n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),void this.trigger("data",n);if(t=/^#EXT-X-MAP:?(.*)$/.exec(e)){if(n={type:"tag",tagType:"map"},t[1]){var i=u(t[1]);if(i.URI&&(n.uri=i.URI),i.BYTERANGE){var a=i.BYTERANGE.split("@"),o=a[0],s=a[1];n.byterange={},o&&(n.byterange.length=parseInt(o,10)),s&&(n.byterange.offset=parseInt(s,10))}}return void this.trigger("data",n)}if(t=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e)){if(n={type:"tag",tagType:"stream-inf"},t[1]){if(n.attributes=u(t[1]),n.attributes.RESOLUTION){var l=n.attributes.RESOLUTION.split("x"),c={};l[0]&&(c.width=parseInt(l[0],10)),l[1]&&(c.height=parseInt(l[1],10)),n.attributes.RESOLUTION=c}
85n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}return void this.trigger("data",n)}return(t=/^#EXT-X-MEDIA:?(.*)$/.exec(e))?(n={type:"tag",tagType:"media"},t[1]&&(n.attributes=u(t[1])),void this.trigger("data",n)):(t=/^#EXT-X-ENDLIST/.exec(e))?void this.trigger("data",{type:"tag",tagType:"endlist"}):(t=/^#EXT-X-DISCONTINUITY/.exec(e))?void this.trigger("data",{type:"tag",tagType:"discontinuity"}):(t=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e))?(n={type:"tag",tagType:"program-date-time"},t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),void this.trigger("data",n)):(t=/^#EXT-X-KEY:?(.*)$/.exec(e))?(n={type:"tag",tagType:"key"},t[1]&&(n.attributes=u(t[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void this.trigger("data",n)):(t=/^#EXT-X-START:?(.*)$/.exec(e))?(n={type:"tag",tagType:"start"},t[1]&&(n.attributes=u(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void this.trigger("data",n)):(t=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e))?(n={type:"tag",tagType:"cue-out-cont"},t[1]?n.data=t[1]:n.data="",void this.trigger("data",n)):(t=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e))?(n={type:"tag",tagType:"cue-out"},t[1]?n.data=t[1]:n.data="",void this.trigger("data",n)):(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e))?(n={type:"tag",tagType:"cue-in"},t[1]?n.data=t[1]:n.data="",void this.trigger("data",n)):void this.trigger("data",{type:"tag",data:e.slice(4)})}},t.prototype.addParser=function(e){var t=this,n=e.expression,r=e.customType,i=e.dataParser,a=e.segment;"function"!=typeof i&&(i=function(e){return e}),this.customParsers.push(function(e){var o=n.exec(e);if(o)return t.trigger("data",{type:"custom",data:i(e),customType:r,segment:a}),!0})},t}(o),d=function(e){function t(){n(this,t);var i=a(this,e.call(this));i.lineStream=new s,i.parseStream=new c,i.lineStream.pipe(i.parseStream);var o=i,l=[],u={},d=void 0,h=void 0,p=function(){},f={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},g=0;return i.manifest={allowCache:!0,discontinuityStarts:[],segments:[]},i.parseStream.on("data",function(e){var t=void 0,n=void 0;({tag:function(){(({"allow-cache":function(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function i(){var i={};"length"in e&&(u.byterange=i,i.length=e.length,"offset"in e||(this.trigger("info",{message:"defaulting offset to zero"}),e.offset=0)),"offset"in e&&(u.byterange=i,i.offset=e.offset)},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.duration>0&&(u.duration=e.duration),0===e.duration&&(u.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=l},key:function(){return e.attributes?"NONE"===e.attributes.METHOD?void(h=null):e.attributes.URI?(e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),h={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void("undefined"!=typeof e.attributes.IV&&(h.iv=e.attributes.IV))):void this.trigger("warn",{message:"ignoring key declaration without URI"}):void this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){return isFinite(e.number)?void(this.manifest.mediaSequence=e.number):void this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){return isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,void(g=e.number)):void this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){return/VOD|EVENT/.test(e.playlistType)?void(this.manifest.playlistType=e.playlistType):void this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){d={}
85,e.uri&&(d.uri=e.uri),e.byterange&&(d.byterange=e.byterange)},"stream-inf":function(){return this.manifest.playlists=l,this.manifest.mediaGroups=this.manifest.mediaGroups||f,e.attributes?(u.attributes||(u.attributes={}),void r(u.attributes,e.attributes)):void this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||f,!(e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME))return void this.trigger("warn",{message:"ignoring incomplete or missing media group"});var r=this.manifest.mediaGroups[e.attributes.TYPE];r[e.attributes["GROUP-ID"]]=r[e.attributes["GROUP-ID"]]||{},t=r[e.attributes["GROUP-ID"]],n={"default":/yes/i.test(e.attributes.DEFAULT)},n["default"]?n.autoselect=!0:n.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(n.language=e.attributes.LANGUAGE),e.attributes.URI&&(n.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(n.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(n.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(n.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=n},discontinuity:function(){g+=1,u.discontinuity=!0,this.manifest.discontinuityStarts.push(l.length)},"program-date-time":function(){"undefined"==typeof this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),u.dateTimeString=e.dateTimeString,u.dateTimeObject=e.dateTimeObject},targetduration:function(){return!isFinite(e.duration)||e.duration<0?void this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):void(this.manifest.targetDuration=e.duration)},totalduration:function(){return!isFinite(e.duration)||e.duration<0?void this.trigger("warn",{message:"ignoring invalid total duration: "+e.duration}):void(this.manifest.totalDuration=e.duration)},start:function(){return!e.attributes||isNaN(e.attributes["TIME-OFFSET"])?void this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"}):void(this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE})},"cue-out":function(){u.cueOut=e.data},"cue-out-cont":function(){u.cueOutCont=e.data},"cue-in":function(){u.cueIn=e.data}})[e.tagType]||p).call(o)},uri:function(){u.uri=e.uri,l.push(u),!this.manifest.targetDuration||"duration"in u||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),u.duration=this.manifest.targetDuration),h&&(u.key=h),u.timeline=g,d&&(u.map=d),u={}},comment:function(){},custom:function(){e.segment?(u.custom=u.custom||{},u.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(o)}),i}return i(t,e),t.prototype.push=function(e){this.lineStream.push(e)},t.prototype.end=function(){this.lineStream.push("\n")},t.prototype.addParser=function(e){this.parseStream.addParser(e)},t}(o);t.LineStream=s,t.ParseStream=c,t.Parser=d},function(e,t,n){(function(e){/*! @name mpd-parser @version 0.7.0 @license Apache-2.0 */ 86"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e["default"]:e}function i(e,t){return t={exports:{}},e(t,t.exports),t.exports}function a(e){for(var t=o.atob(e),n=new Uint8Array(t.length),r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}Object.defineProperty(t,"__esModule",{value:!0});var o=r(n(10)),s="0.7.0",l=function(e){return!!e&&"object"==typeof e},u=function se(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t){return Object.keys(t).forEach(function(n){Array.isArray(e[n])&&Array.isArray(t[n])?e[n]=e[n].concat(t[n]):l(e[n])&&l(t[n])?e[n]=se(e[n],t[n]):e[n]=t[n]}),e},{})},c=function(e){return Object.keys(e).map(function(t){return e[t]})},d=function(e,t){for(var n=[],r=e;r<t;r++)n.push(r);return n},h=function(e){return e.reduce(function(e,t){return e.concat(t)},[])},p=function(e){if(!e.length)return[];for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t},f=function(e,t){return e.reduce(function(e,n,r){return n[t]&&e.push(r),e},[])},g=function(e){var t=c(e.reduce(function(e,t){var n=t.attributes.id+(t.attributes.lang||"");if(e[n]){var r;t.segments[0].discontinuity=!0,(r=e[n].segments).push.apply(r,t.segments),t.attributes.contentProtection&&(e[n].attributes.contentProtection=t.attributes.contentProtection)}else e[n]=t;return e},{}));return t.map(function(e){return e.discontinuityStarts=f(e.segments,"discontinuity"),e})},m=function(e){var t,n=e.attributes,r=e.segments,i={attributes:(t={NAME:n.id,BANDWIDTH:n.bandwidth,CODECS:n.codecs},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:"",targetDuration:n.duration,segments:r,mediaSequence:r.length?r[0].number:1};return n.contentProtection&&(i.contentProtection=n.contentProtection),i},v=function(e){var t,n=e.attributes,r=e.segments;return"undefined"==typeof r&&(r=[{uri:n.baseUrl,timeline:n.periodIndex,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration),{attributes:(t={NAME:n.id,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:n.baseUrl||"",targetDuration:n.duration,segments:r,mediaSequence:r.length?r[0].number:1}},y=function(e){return e.reduce(function(e,t){var n=t.attributes.role&&t.attributes.role.value||"main",r=t.attributes.lang||"",i="main";return r&&(i=t.attributes.lang+" ("+n+")"),e[i]&&e[i].playlists[0].attributes.BANDWIDTH>t.attributes.bandwidth?e:(e[i]={language:r,autoselect:!0,"default":"main"===n,playlists:[m(t)],uri:""},e)},{})},_=function(e){return e.reduce(function(e,t){var n=t.attributes.lang||"text";return e[n]?e:(e[n]={language:n,"default":!1,autoselect:!1,playlists:[v(t)],uri:""},e)},{})},b=function(e){var t,n=e.attributes,r=e.segments,i={attributes:(t={NAME:n.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:n.width,height:n.height},CODECS:n.codecs,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:"",targetDuration:n.duration,segments:r,mediaSequence:r.length?r[0].number:1};return n.contentProtection&&(i.contentProtection=n.contentProtection),i},T=function(e){var t;if(!e.length)return{};var n=e[0].attributes,r=n.sourceDuration,i=n.minimumUpdatePeriod,a=void 0===i?0:i,o=function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video"===t.contentType},s=function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio"===t.contentType},l=function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType},u=g(e.filter(o)).map(b),c=g(e.filter(s)),d=e.filter(l),h={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(t={AUDIO:{},VIDEO:{}},t["CLOSED-CAPTIONS"]={},t.SUBTITLES={},t),uri:"",duration:r,playlists:u,minimumUpdatePeriod:1e3*a};return c.length&&(h.mediaGroups.AUDIO.audio=y(c)),d.length&&(h.mediaGroups.SUBTITLES.subs=_(d)),h},E="undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{},S=i(function(e,t){!function(t){var n=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/\?#]*\/)*.*?)??(;.*?)?(\?.*?)?(#.*?)?$/,r=/^([^\/?#]*)(.*)$/,i=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/).*?(?=\/)/g,o={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),t=t.trim(),!t){if(!n.alwaysNormalize)return e;var i=o.parseURL(e);if(!i)throw new Error("Error trying to parse base URL.");return i.path=o.normalizePath(i.path),o.buildURLFromParts(i)}var a=o.parseURL(t);if(!a)throw new Error("Error trying to parse relative URL.");
vendor: 5,241 bytes, line 86
86if(a.scheme)return n.alwaysNormalize?(a.path=o.normalizePath(a.path),o.buildURLFromParts(a)):t;var s=o.parseURL(e);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var l=r.exec(s.path);s.netLoc=l[1],s.path=l[2]}s.netLoc&&!s.path&&(s.path="/");var u={scheme:s.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(u.netLoc=s.netLoc,"/"!==a.path[0]))if(a.path){var c=s.path,d=c.substring(0,c.lastIndexOf("/")+1)+a.path;u.path=o.normalizePath(d)}else u.path=s.path,a.params||(u.params=s.params,a.query||(u.query=s.query));return null===u.path&&(u.path=n.alwaysNormalize?o.normalizePath(a.path):a.path),o.buildURLFromParts(u)},parseURL:function(e){var t=n.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(i,"");e.length!==(e=e.replace(a,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}};e.exports=o}(E)}),w=function(e,t){return/^[a-z]+:/i.test(t)?t:(/\/\//i.test(e)||(e=S.buildAbsoluteURL(o.location.href,e)),S.buildAbsoluteURL(e,t))},C=function(e){var t=e.baseUrl,n=void 0===t?"":t,r=e.source,i=void 0===r?"":r,a=e.range,o=void 0===a?"":a,s={uri:i,resolvedUri:w(n||"",i)};if(o){var l=o.split("-"),u=parseInt(l[0],10),c=parseInt(l[1],10);s.byterange={length:c-u,offset:u}}return s},k=function(e,t,n){var r=e.NOW,i=e.clientOffset,a=e.availabilityStartTime,o=e.timescale,s=void 0===o?1:o,l=e.start,u=void 0===l?0:l,c=e.minimumUpdatePeriod,d=void 0===c?0:c,h=(r+i)/1e3,p=a+u,f=h+d,g=f-p;return Math.ceil((g*s-t)/n)},D=function(e,t){for(var n=e.type,r=void 0===n?"static":n,i=e.minimumUpdatePeriod,a=void 0===i?0:i,o=e.media,s=void 0===o?"":o,l=e.sourceDuration,u=e.timescale,c=void 0===u?1:u,d=e.startNumber,h=void 0===d?1:d,p=e.periodIndex,f=[],g=-1,m=0;m<t.length;m++){var v=t[m],y=v.d,_=v.r||0,b=v.t||0;g<0&&(g=b),b&&b>g&&(g=b);var T=void 0;if(_<0){var E=m+1;T=E===t.length?"dynamic"===r&&a>0&&s.indexOf("$Number$")>0?k(e,g,y):(l*c-g)/y:(t[E].t-g)/y}else T=_+1;for(var S=h+f.length+T,w=h+f.length;w<S;)f.push({number:w,duration:y/c,time:g,timeline:p}),g+=y,w++}return f},x={"static":function(e){var t=e.duration,n=e.timescale,r=void 0===n?1:n,i=e.sourceDuration;return{start:0,end:Math.ceil(i/(t/r))}},dynamic:function(e){var t=e.NOW,n=e.clientOffset,r=e.availabilityStartTime,i=e.timescale,a=void 0===i?1:i,o=e.duration,s=e.start,l=void 0===s?0:s,u=e.minimumUpdatePeriod,c=void 0===u?0:u,d=e.timeShiftBufferDepth,h=void 0===d?1/0:d,p=(t+n)/1e3,f=r+l,g=p+c,m=g-f,v=Math.ceil(m*a/o),y=Math.floor((p-f-h)*a/o),_=Math.floor((p-f)*a/o);return{start:Math.max(0,y),end:Math.min(v,_)}}},A=function(e){return function(t,n){var r=e.duration,i=e.timescale,a=void 0===i?1:i,o=e.periodIndex,s=e.startNumber,l=void 0===s?1:s;return{number:l+t,duration:r/a,timeline:o,time:n*r}}},I=function(e){var t=e.type,n=void 0===t?"static":t,r=e.duration,i=e.timescale,a=void 0===i?1:i,o=e.sourceDuration,s=x[n](e),l=s.start,u=s.end,c=d(l,u).map(A(e));if("static"===n){var h=c.length-1;c[h].duration=o-r/a*h}return c},O=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,P=function(e){return function(t,n,r,i){if("$$"===t)return"$";if("undefined"==typeof e[n])return t;var a=""+e[n];return"RepresentationID"===n?a:(i=r?parseInt(i,10):1,a.length>=i?a:""+new Array(i-a.length+1).join("0")+a)}},M=function(e,t){return e.replace(O,P(t))},R=function(e,t){return e.duration||t?e.duration?I(e):D(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodIndex}]},L=function(e,t){var n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},r=e.initialization,i=void 0===r?{sourceURL:"",range:""}:r,a=C({baseUrl:e.baseUrl,source:M(i.sourceURL,n),range:i.range}),o=R(e,t);return o.map(function(t){n.Number=t.number,n.Time=t.time;var r=M(e.media||"",n);return{uri:r,timeline:t.timeline,duration:t.duration,resolvedUri:w(e.baseUrl||"",r),map:a,number:t.number}})},N={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"},U=function(e,t){var n=e.baseUrl,r=e.initialization,i=void 0===r?{}:r,a=C({baseUrl:n,source:i.sourceURL,range:i.range}),o=C({baseUrl:n,source:t.media,range:t.mediaRange});return o.map=a,o},H=function(e,t){var n=e.duration,r=e.segmentUrls,i=void 0===r?[]:r;if(!n&&!t||n&&t)throw new Error(N.SEGMENT_TIME_UNSPECIFIED);var a,o=i.map(function(t){return U(e,t)});n&&(a=I(e)),t&&(a=D(e,t));var s=a.map(function(e,t){if(o[t]){var n=o[t];return n.timeline=e.timeline,n.duration=e.duration,n.number=e.number,n}}).filter(function(e){return e});return s},j=function(e){var t=e.baseUrl,n=e.initialization,r=void 0===n?{}:n,i=e.sourceDuration,a=e.timescale,o=void 0===a?1:a,s=e.indexRange,l=void 0===s?"":s,u=e.duration;if(!t)throw new Error(N.NO_BASE_URL);var c=C({baseUrl:t,source:r.sourceURL,range:r.range}),d=C({baseUrl:t,source:t,range:l});if(d.map=c,u){var h=I(e);
86h.length&&(d.duration=h[0].duration,d.timeline=h[0].timeline)}else i&&(d.duration=i/o,d.timeline=0);return d.number=0,[d]},B=function(e){var t,n,r=e.attributes,i=e.segmentInfo;if(i.template?(n=L,t=u(r,i.template)):i.base?(n=j,t=u(r,i.base)):i.list&&(n=H,t=u(r,i.list)),!n)return{attributes:r};var a=n(t,i.timeline);if(t.duration){var o=t,s=o.duration,l=o.timescale,c=void 0===l?1:l;t.duration=s/c}else a.length?t.duration=a.reduce(function(e,t){return Math.max(e,Math.ceil(t.duration))},0):t.duration=0;return{attributes:t,segments:a}},F=function(e){return e.map(B)},V=function(e,t){return p(e.childNodes).filter(function(e){var n=e.tagName;return n===t})},W=function(e){return e.textContent.trim()},z=function(e){var t=31536e3,n=2592e3,r=86400,i=3600,a=60,o=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/,s=o.exec(e);if(!s)return 0;var l=s.slice(1),u=l[0],c=l[1],d=l[2],h=l[3],p=l[4],f=l[5];return parseFloat(u||0)*t+parseFloat(c||0)*n+parseFloat(d||0)*r+parseFloat(h||0)*i+parseFloat(p||0)*a+parseFloat(f||0)},$=function(e){var t=/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/;return t.test(e)&&(e+="Z"),Date.parse(e)},q={mediaPresentationDuration:function(e){return z(e)},availabilityStartTime:function(e){return $(e)/1e3},minimumUpdatePeriod:function(e){return z(e)},timeShiftBufferDepth:function(e){return z(e)},start:function(e){return z(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?z(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},G=function(e){return e&&e.attributes?p(e.attributes).reduce(function(e,t){var n=q[t.name]||q.DEFAULT;return e[t.name]=n(t.value),e},{}):{}},Y={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},X=function(e,t){return t.length?h(e.map(function(e){return t.map(function(t){return w(e,W(t))})})):e},K=function(e){var t=V(e,"SegmentTemplate")[0],n=V(e,"SegmentList")[0],r=n&&V(n,"SegmentURL").map(function(e){return u({tag:"SegmentURL"},G(e))}),i=V(e,"SegmentBase")[0],a=n||t,o=a&&V(a,"SegmentTimeline")[0],s=n||i||t,l=s&&V(s,"Initialization")[0],c=t&&G(t);c&&l?c.initialization=l&&G(l):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});var d={template:c,timeline:o&&V(o,"S").map(function(e){return G(e)}),list:n&&u(G(n),{segmentUrls:r,initialization:G(l)}),base:i&&u(G(i),{initialization:G(l)})};return Object.keys(d).forEach(function(e){d[e]||delete d[e]}),d},Q=function(e,t,n){return function(r){var i=V(r,"BaseURL"),a=X(t,i),o=u(e,G(r)),s=K(r);return a.map(function(e){return{segmentInfo:u(n,s),attributes:u(o,{baseUrl:e})}})}},Z=function(e){return e.reduce(function(e,t){var n=G(t),r=Y[n.schemeIdUri];if(r){e[r]={attributes:n};var i=V(t,"cenc:pssh")[0];if(i){var o=W(i),s=o&&a(o);e[r].pssh=s}}return e},{})},J=function(e,t,n){return function(r){var i=G(r),a=X(t,V(r,"BaseURL")),o=V(r,"Role")[0],s={role:G(o)},l=u(e,i,s),c=Z(V(r,"ContentProtection"));Object.keys(c).length&&(l=u(l,{contentProtection:c}));var d=K(r),p=V(r,"Representation"),f=u(n,d);return h(p.map(Q(l,a,f)))}},ee=function(e,t){return function(n,r){var i=X(t,V(n,"BaseURL")),a=G(n),s=parseInt(a.id,10),l=o.isNaN(s)?r:s,c=u(e,{periodIndex:l}),d=V(n,"AdaptationSet"),p=K(n);return h(d.map(J(c,i,p)))}},te=function(e,t){void 0===t&&(t={});var n=t,r=n.manifestUri,i=void 0===r?"":r,a=n.NOW,o=void 0===a?Date.now():a,s=n.clientOffset,l=void 0===s?0:s,u=V(e,"Period");if(!u.length)throw new Error(N.INVALID_NUMBER_OF_PERIOD);var c=G(e),d=X([i],V(e,"BaseURL"));return c.sourceDuration=c.mediaPresentationDuration||0,c.NOW=o,c.clientOffset=l,h(u.map(ee(c,d)))},ne=function(e){if(""===e)throw new Error(N.DASH_EMPTY_MANIFEST);var t=new o.DOMParser,n=t.parseFromString(e,"application/xml"),r=n&&"MPD"===n.documentElement.tagName?n.documentElement:null;if(!r||r&&r.getElementsByTagName("parsererror").length>0)throw new Error(N.DASH_INVALID_XML);return r},re=function(e){var t=V(e,"UTCTiming")[0];if(!t)return null;var n=G(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(N.UNSUPPORTED_UTC_TIMING_SCHEME)}return n},ie=s,ae=function(e,t){return T(F(te(ne(e),t)))},oe=function(e){return re(ne(e))};t.VERSION=ie,t.parse=ae,t.parseUTCTiming=oe}).call(t,function(){return this}())},function(e,t,n){"use strict";var r,i,a,o,s,l=n(30).toUnsigned;r=function(e,t){var n,a,o,s,u,c=[];if(!t.length)return null;for(n=0;n<e.byteLength;)a=l(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]),o=i(e.subarray(n+4,n+8)),s=a>1?n+a:e.byteLength,o===t[0]&&(1===t.length?c.push(e.subarray(n+8,s)):(u=r(e.subarray(n+8,s),t.slice(1)),u.length&&(c=c.concat(u)))),n=s;return c},i=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])},a=function(e){var t={},n=r(e,["moov","trak"]);return n.reduce(function(e,t){var n,i,a,o,s;return(n=r(t,["tkhd"])[0])?(i=n[0],a=0===i?12:20,o=l(n[a]<<24|n[a+1]<<16|n[a+2]<<8|n[a+3]),(s=r(t,["mdia","mdhd"])[0])?(i=s[0],a=0===i?12:20,e[o
vendor: 24,777 bytes, lines 86-87
86]=l(s[a]<<24|s[a+1]<<16|s[a+2]<<8|s[a+3]),e):null):null},t)},o=function(e,t){var n,i,a;return n=r(t,["moof","traf"]),i=[].concat.apply([],n.map(function(t){return r(t,["tfhd"]).map(function(n){var i,a,o;return i=l(n[4]<<24|n[5]<<16|n[6]<<8|n[7]),a=e[i]||9e4,o=r(t,["tfdt"]).map(function(e){var t,n;return t=e[0],n=l(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),1===t&&(n*=Math.pow(2,32),n+=l(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),n})[0],o=o||1/0,o/a})})),a=Math.min.apply(null,i),isFinite(a)?a:0},s=function(e){var t=r(e,["moov","trak"]),n=[];return t.forEach(function(e){var t=r(e,["mdia","hdlr"]),a=r(e,["tkhd"]);t.forEach(function(e,t){var r,o,s,l=i(e.subarray(8,12)),u=a[t];"vide"===l&&(r=new DataView(u.buffer,u.byteOffset,u.byteLength),o=r.getUint8(0),s=0===o?r.getUint32(12):r.getUint32(20),n.push(s))})}),n},e.exports={findBox:r,parseType:i,timescale:a,startTime:o,videoTrackIds:s}},function(e,t){var n=function(e){return e>>>0};e.exports={toUnsigned:n}},function(e,t,n){e.exports={generator:n(32),probe:n(29),Transmuxer:n(33).Transmuxer,AudioSegmentStream:n(33).AudioSegmentStream,VideoSegmentStream:n(33).VideoSegmentStream,CaptionParser:n(49)}},function(e,t){"use strict";var n,r,i,a,o,s,l,u,c,d,h,p,f,g,m,v,y,_,b,T,E,S,w,C,k,D,x,A,I,O,P,M,R,L,N,U,H=Math.pow(2,32)-1;!function(){var e;if(w={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(e in w)w.hasOwnProperty(e)&&(w[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);C=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),D=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),k=new Uint8Array([0,0,0,1]),x=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),A=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),I={video:x,audio:A},M=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),P=new Uint8Array([0,0,0,0,0,0,0,0]),R=new Uint8Array([0,0,0,0,0,0,0,0]),L=R,N=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),U=R,O=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),n=function(e){var t,n,r,i=[],a=0;for(t=1;t<arguments.length;t++)i.push(arguments[t]);for(t=i.length;t--;)a+=i[t].byteLength;for(n=new Uint8Array(a+8),r=new DataView(n.buffer,n.byteOffset,n.byteLength),r.setUint32(0,n.byteLength),n.set(e,4),t=0,a=8;t<i.length;t++)n.set(i[t],a),a+=i[t].byteLength;return n},r=function(){return n(w.dinf,n(w.dref,M))},i=function(e){return n(w.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},a=function(){return n(w.ftyp,C,k,C,D)},v=function(e){return n(w.hdlr,I[e])},o=function(e){return n(w.mdat,e)},m=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),n(w.mdhd,t)},g=function(e){return n(w.mdia,m(e),v(e.type),l(e))},s=function(e){return n(w.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},l=function(e){return n(w.minf,"video"===e.type?n(w.vmhd,O):n(w.smhd,P),r(),_(e))},u=function(e,t){for(var r=[],i=t.length;i--;)r[i]=T(t[i]);return n.apply(null,[w.moof,s(e)].concat(r))},c=function(e){for(var t=e.length,r=[];t--;)r[t]=p(e[t]);return n.apply(null,[w.moov,h(4294967295)].concat(r).concat(d(e)))},d=function(e){for(var t=e.length,r=[];t--;)r[t]=E(e[t]);return n.apply(null,[w.mvex].concat(r))},h=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return n(w.mvhd,t)},y=function(e){var t,r,i=e.samples||[],a=new Uint8Array(4+i.length);for(r=0;r<i.length;r++)t=i[r].flags,a[r+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return n(w.sdtp,a)},_=function(e){return n(w.stbl,b(e),n(w.stts,U),n(w.stsc,L),n(w.stsz,N),n(w.stco,R))},function(){var e,t;b=function(r){return n(w.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===r.type?e(r):t(r))},e=function(e){var t,r=e.sps||[],i=e.pps||[],a=[],o=[];for(t=0;t<r.length;t++)a.push((65280&r[t].byteLength)>>>8),a.push(255&r[t].byteLength),a=a.concat(Array.prototype.slice.call(r[t]));for(t=0;t<i.length;t++)o.push((65280&i[t].byteLength)>>>8),o.push(255&i[t].byteLength),o=o.concat(Array.prototype.slice.call(i[t]));return n(w.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),n(w.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length]).concat(a).concat([i.length]).concat(o))),n(w.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])))},t=function(e){return n(w.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),i(e))}}(),f=function(e){var t=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return n(w.tkhd,t)},T=function(e){var t,r,i,a,o,s,l;return t=n(w.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),s=Math.floor(e.baseMediaDecodeTime/(H+1)),l=Math.floor(e.baseMediaDecodeTime%(H+1)),r=n(w.tfdt,new Uint8Array([1,0,0,0,s>>>24&255,s>>>16&255,s>>>8&255,255&s,l>>>24&255,l>>>16&255,l>>>8&255,255&l])),o=92,"audio"===e.type?(i=S(e,o),n(w.traf,t,r,i)):(a=y(e),i=S(e,a.length+o),n(w.traf,t,r,i,a))},p=function(e){return e.duration=e.duration||4294967295,n(w.trak,f(e),g(e))},E=function(e){var t=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),n(w.trex,t)},function(){var e,t,r;r=function(e,t){var n=0,r=0,i=0,a=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(r=2),void 0!==e[0].flags&&(i=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,n|r|i|a,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},t=function(e,t){var i,a,o,s;for(a=e.samples||[],t+=20+16*a.length,i=r(a,t),s=0;s<a.length;s++)o=a[s],i=i.concat([(4278190080&o.duration)>>>24,(16711680&o.duration)>>>16,(65280&o.duration)>>>8,255&o.duration,(4278190080&o.size)>>>24,(16711680&o.size)>>>16,(65280&o.size)>>>8,255&o.size,o.flags.isLeading<<2|o.flags.dependsOn,o.flags.isDependedOn<<6|o.flags.hasRedundancy<<4|o.flags.paddingValue<<1|o.flags.isNonSyncSample,61440&o.flags.degradationPriority,15&o.flags.degradationPriority,(4278190080&o.compositionTimeOffset)>>>24,(16711680&o.compositionTimeOffset)>>>16,(65280&o.compositionTimeOffset)>>>8,255&o.compositionTimeOffset]);return n(w.trun,new Uint8Array(i))},e=function(e,t){var i,a,o,s;for(a=e.samples||[],t+=20+8*a.length,i=r(a,t),s=0;s<a.length;s++)o=a[s],i=i.concat([(4278190080&o.duration)>>>24,(16711680&o.duration)>>>16,(65280&o.duration)>>>8,255&o.duration,(4278190080&o.size)>>>24,(16711680&o.size)>>>16,(65280&o.size)>>>8,255&o.size]);return n(w.trun,new Uint8Array(i))},S=function(n,r){return"audio"===n.type?e(n,r):t(n,r)}}(),e.exports={ftyp:a,mdat:o,moof:u,moov:c,initSegment:function(e){var t,n=a(),r=c(e);return t=new Uint8Array(n.byteLength+r.byteLength),t.set(n),t.set(r,n.byteLength),t}}},function(e,t,n){"use strict";var r,i,a,o,s,l,u,c=n(34),d=n(32),h=n(35),p=n(36),f=n(37),g=n(43),m=n(44).H264Stream,v=n(46),y=n(47),_=n(48),b=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],T=["width","height","profileIdc","levelIdc","profileCompatibility"],E=9e4;s=function(e){return e[0]==="I".charCodeAt(0)&&e[1]==="D".charCodeAt(0)&&e[2]==="3".charCodeAt(0)},l=function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},u=function(e){var t,n,r=0;for(t=0;t<e.length;t++)n=e[t],r+=n.data.byteLength;return r},i=function(e,t){var n=[],r=0,a=0,o=0,s=1/0;t=t||{},i.prototype.init.call(this),this.push=function(t){p.collectDtsInfo(e,t),e&&b.forEach(function(n){e[n]=t[n]}),n.push(t)},this.setEarliestDts=function(t){a=t-e.timelineStartInfo.baseMediaDecodeTime},this.setVideoBaseMediaDecodeTime=function(e){s=e},this.setAudioAppendStart=function(e){o=e},this.flush=function(){var i,a,o,s;return 0===n.length?void this.trigger("done","AudioSegmentStream"):(i=this.trimAdtsFramesByEarliestDts_(n),e.baseMediaDecodeTime=p.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),this.prefixWithSilence_(e,i),e.samples=this.generateSampleTable_(i),o=d.mdat(this.concatenateFrameData_(i)),n=[],a=d.moof(r,[e]),s=new Uint8Array(a.byteLength+o.byteLength),r++,s.set(a),s.set(o,a.byteLength),p.clearDtsInfo(e),this.trigger("data",{track:e,boxes:s}),void this.trigger("done","AudioSegmentStream"))},this.prefixWithSilence_=function(e,t){var n,r,i,a=0,l=0,u=0,c=0;if(t.length&&(n=_.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),a=Math.ceil(E/(e.samplerate/1024)),o&&s&&(l=n-Math.max(o,s),u=Math.floor(l/a),c=u*a),!(u<1||c>E/2))){for(r=y[e.samplerate],r||(r=t[0].data),i=0;i<u;i++)t.splice(i,0,{data:r});e.baseMediaDecodeTime-=Math.floor(_.videoTsToAudioTs(c,e.samplerate))}},this.trimAdtsFramesByEarliestDts_=function(t){return e.minSegmentDts>=a?t:(e.minSegmentDts=1/0,t.filter(function(t){return t.dts>=a&&(e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),e.minSegmentPts=e.minSegmentDts,!0)}))},this.generateSampleTable_=function(e){var t,n,r=[];for(t=0;t<e.length;t++)n=e[t],r.push({size:n.data.byteLength,duration:1024});return r},this.concatenateFrameData_=function(e){var t,n,r=0,i=new Uint8Array(u(e));for(t=0;t<e.length;t++)n=e[t],i.set(n.data,r),r+=n.data.byteLength;return i}},i.prototype=new c,r=function(e,t){var n,i,a=0,o=[],s=[];t=t||{},r.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){p.collectDtsInfo(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||n||(n=t.config,e.sps=[t.data],T.forEach(function(t){e[t]=n[t]},this)),"pic_parameter_set_rbsp"!==t.nalUnitType||i||(i=t.data,e.pps=[t.data]),o.push(t)},this.flush=function(){for(var n,r,i,l,u,c;o.length&&"access_unit_delimiter_rbsp"!==o[0].nalUnitType;)o.shift();if(0===o.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(n=h.groupNalsIntoFrames(o),i=h.groupFramesIntoGops(n),i[0][0].keyFrame||(r=this.getGopForFusion_(o[0],e),r?(i.unshift(r),i.byteLength+=r.byteLength,i.nalCount+=r.nalCount,i.pts=r.pts,i.dts=r.dts,i.duration+=r.duration):i=h.extendFirstKeyFrame(i)),s.length){var f;if(f=t.alignGopsAtEnd?this.alignGopsAtEnd_(i):this.alignGopsAtStart_(i),!f)return this.gopCache_.unshift({gop:i.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),o=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");p.clearDtsInfo(e),i=f}p.collectDtsInfo(e,i),e.samples=h.generateSampleTable(i),u=d.mdat(h.concatenateNalData(i)),e.baseMediaDecodeTime=p.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",i.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),this.gopCache_.unshift({gop:i.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),o=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),l=d.moof(a,[e]),c=new Uint8Array(l.byteLength+u.byteLength),a++,c.set(l),c.set(u,l.byteLength),this.trigger("data",{track:e,boxes:c}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.resetStream_=function(){p.clearDtsInfo(e),n=void 0,i=void 0},this.getGopForFusion_=function(t){var n,r,i,a,o,s=45e3,u=1e4,c=1/0;for(o=0;o<this.gopCache_.length;o++)a=this.gopCache_[o],i=a.gop,e.pps&&l(e.pps[0],a.pps[0])&&e.sps&&l(e.sps[0],a.sps[0])&&(i.dts<e.timelineStartInfo.dts||(n=t.dts-i.dts-i.duration,n>=-u&&n<=s&&(!r||c>n)&&(r=a,c=n)));return r?r.gop:null},this.alignGopsAtStart_=function(e){var t,n,r,i,a,o,l,u;for(a=e.byteLength,o=e.nalCount,l=e.duration,t=n=0;t<s.length&&n<e.length&&(r=s[t],i=e[n],r.pts!==i.pts);)i.pts>r.pts?t++:(n++,a-=i.byteLength,o-=i.nalCount,l-=i.duration);return 0===n?e:n===e.length?null:(u=e.slice(n),u.byteLength=a,u.duration=l,u.nalCount=o,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(e){var t,n,r,i,a,o;for(t=s.length-1,n=e.length-1,a=null,o=!1;t>=0&&n>=0;){if(r=s[t],i=e[n],r.pts===i.pts){o=!0;break}r.pts>i.pts?t--:(t===s.length-1&&(a=n),n--)}if(!o&&null===a)return null;var l;if(l=o?n:a,0===l)return e;var u=e.slice(l),c=u.reduce(function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e},{byteLength:0,duration:0,nalCount:0});return u.byteLength=c.byteLength,u.duration=c.duration,u.nalCount=c.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){s=e}},r.prototype=new c,o=function(e,t){this.numberOfTracks=0,this.metadataStream=t,"undefined"!=typeof e.remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,o.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBoxes.push(e.boxes),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track),void("audio"===e.track.type&&(this.audioTrack=e.track)))}},o.prototype=new c,o.prototype.flush=function(e){var t,n,r,i,a=0,o={captions:[],captionStreams:{},metadata:[],info:{}},s=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}for(this.videoTrack?(s=this.videoTrack.timelineStartInfo.pts,T.forEach(function(e){o.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(s=this.audioTrack.timelineStartInfo.pts,b.forEach(function(e){o.info[e]=this.audioTrack[e]},this)),1===this.pendingTracks.length?o.type=this.pendingTracks[0].type:o.type="combined",this.emittedTracks+=this.pendingTracks.length,r=d.initSegment(this.pendingTracks),o.initSegment=new Uint8Array(r.byteLength),o.initSegment.set(r),o.data=new Uint8Array(this.pendingBytes),i=0;i<this.pendingBoxes.length;i++)o.data.set(this.pendingBoxes[i],a),a+=this.pendingBoxes[i].byteLength;for(i=0;i<this.pendingCaptions.length;i++)t=this.pendingCaptions[i],t.startTime=t.startPts-s,t.startTime/=9e4,t.endTime=t.endPts-s,t.endTime/=9e4,o.captionStreams[t.stream]=!0,o.captions.push(t);for(i=0;i<this.pendingMetadata.length;i++)n=this.pendingMetadata[i],n.cueTime=n.pts-s,n.cueTime/=9e4,o.metadata.push(n);o.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",o),this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},a=function(e){var t,n,l=this,u=!0; 87a.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var t={};this.transmuxPipeline_=t,t.type="aac",t.metadataStream=new f.MetadataStream,t.aacStream=new v,t.audioTimestampRolloverStream=new f.TimestampRolloverStream("audio"),t.timedMetadataTimestampRolloverStream=new f.TimestampRolloverStream("timed-metadata"),t.adtsStream=new g,t.coalesceStream=new o(e,t.metadataStream),t.headOfPipeline=t.aacStream,t.aacStream.pipe(t.audioTimestampRolloverStream).pipe(t.adtsStream),t.aacStream.pipe(t.timedMetadataTimestampRolloverStream).pipe(t.metadataStream).pipe(t.coalesceStream),t.metadataStream.on("timestamp",function(e){t.aacStream.setTimestamp(e.timeStamp)}),t.aacStream.on("data",function(r){"timed-metadata"!==r.type||t.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:l.baseMediaDecodeTime},codec:"adts",type:"audio"},t.coalesceStream.numberOfTracks++,t.audioSegmentStream=new i(n,e),t.adtsStream.pipe(t.audioSegmentStream).pipe(t.coalesceStream))}),t.coalesceStream.on("data",this.trigger.bind(this,"data")),t.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var a={};this.transmuxPipeline_=a,a.type="ts",a.metadataStream=new f.MetadataStream,a.packetStream=new f.TransportPacketStream,a.parseStream=new f.TransportParseStream,a.elementaryStream=new f.ElementaryStream,a.videoTimestampRolloverStream=new f.TimestampRolloverStream("video"),a.audioTimestampRolloverStream=new f.TimestampRolloverStream("audio"),a.timedMetadataTimestampRolloverStream=new f.TimestampRolloverStream("timed-metadata"),a.adtsStream=new g,a.h264Stream=new m,a.captionStream=new f.CaptionStream,a.coalesceStream=new o(e,a.metadataStream),a.headOfPipeline=a.packetStream,a.packetStream.pipe(a.parseStream).pipe(a.elementaryStream),a.elementaryStream.pipe(a.videoTimestampRolloverStream).pipe(a.h264Stream),a.elementaryStream.pipe(a.audioTimestampRolloverStream).pipe(a.adtsStream),a.elementaryStream.pipe(a.timedMetadataTimestampRolloverStream).pipe(a.metadataStream).pipe(a.coalesceStream),a.h264Stream.pipe(a.captionStream).pipe(a.coalesceStream),a.elementaryStream.on("data",function(o){var s;if("metadata"===o.type){for(s=o.tracks.length;s--;)t||"video"!==o.tracks[s].type?n||"audio"!==o.tracks[s].type||(n=o.tracks[s],n.timelineStartInfo.baseMediaDecodeTime=l.baseMediaDecodeTime):(t=o.tracks[s],t.timelineStartInfo.baseMediaDecodeTime=l.baseMediaDecodeTime);t&&!a.videoSegmentStream&&(a.coalesceStream.numberOfTracks++,a.videoSegmentStream=new r(t,e),a.videoSegmentStream.on("timelineStartInfo",function(e){n&&(n.timelineStartInfo=e,a.audioSegmentStream.setEarliestDts(e.dts))}),a.videoSegmentStream.on("processedGopsInfo",l.trigger.bind(l,"gopInfo")),a.videoSegmentStream.on("baseMediaDecodeTime",function(e){n&&a.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),a.h264Stream.pipe(a.videoSegmentStream).pipe(a.coalesceStream)),n&&!a.audioSegmentStream&&(a.coalesceStream.numberOfTracks++,a.audioSegmentStream=new i(n,e),a.adtsStream.pipe(a.audioSegmentStream).pipe(a.coalesceStream))}}),a.coalesceStream.on("data",this.trigger.bind(this,"data")),a.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(e){var r=this.transmuxPipeline_;this.baseMediaDecodeTime=e,n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,p.clearDtsInfo(n),n.timelineStartInfo.baseMediaDecodeTime=e,r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[],r.videoTimestampRolloverStream.discontinuity()),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,p.clearDtsInfo(t),r.captionStream.reset(),t.timelineStartInfo.baseMediaDecodeTime=e),r.timedMetadataTimestampRolloverStream&&r.timedMetadataTimestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.push=function(e){if(u){var t=s(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),u=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){u=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},a.prototype=new c,e.exports={Transmuxer:a,VideoSegmentStream:r,AudioSegmentStream:i,AUDIO_PROPERTIES:b,VIDEO_PROPERTIES:T}},function(e,t){"use strict";var n=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var r;return!!e[t]&&(r=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(r,1),r>-1)},this.trigger=function(t){var n,r,i,a;if(n=e[t])if(2===arguments.length)for(i=n.length,r=0;r<i;++r)n[r].call(this,arguments[1]);else{for(a=[],r=arguments.length,r=1;r<arguments.length;++r)a.push(arguments[r]);for(i=n.length,r=0;r<i;++r)n[r].apply(this,a)}},this.dispose=function(){e={}}}};n.prototype.pipe=function(e){return this.on("data",function(t){e.push(t)}),this.on("done",function(t){e.flush(t)}),e},n.prototype.push=function(e){this.trigger("data",e)},n.prototype.flush=function(e){this.trigger("done",e)},e.exports=n},function(e,t){var n=function(e){var t,n,r=[],i=[];for(r.byteLength=0,t=0;t<e.length;t++)n=e[t],"access_unit_delimiter_rbsp"===n.nalUnitType?(r.length&&(r.duration=n.dts-r.dts,i.push(r)),r=[n],r.byteLength=n.data.byteLength,r.pts=n.pts,r.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(r.keyFrame=!0),r.duration=n.dts-r.dts,r.byteLength+=n.data.byteLength,r.push(n));return i.length&&(!r.duration||r.duration<=0)&&(r.duration=i[i.length-1].duration),i.push(r),i},r=function(e){var t,n,r=[],i=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=e[0].pts,i.dts=e[0].dts,t=0;t<e.length;t++)n=e[t],n.keyFrame?(r.length&&(i.push(r),i.byteLength+=r.byteLength,i.nalCount+=r.nalCount,i.duration+=r.duration),r=[n],r.nalCount=n.length,r.byteLength=n.byteLength,r.pts=n.pts,r.dts=n.dts,r.duration=n.duration):(r.duration+=n.duration,r.nalCount+=n.length,r.byteLength+=n.byteLength,r.push(n));return i.length&&r.duration<=0&&(r.duration=i[i.length-1].duration),i.byteLength+=r.byteLength,i.nalCount+=r.nalCount,i.duration+=r.duration,i.push(r),i},i=function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},a=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},o=function(e,t){var n=a();return n.dataOffset=t,n.compositionTimeOffset=e.pts-e.dts,n.duration=e.duration,n.size=4*e.length,n.size+=e.byteLength,e.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},s=function(e,t){var n,r,i,a,s,l=t||0,u=[];for(n=0;n<e.length;n++)for(a=e[n],r=0;r<a.length;r++)s=a[r],i=o(s,l),l+=i.size,u.push(i);return u},l=function(e){var t,n,r,i,a,o,s=0,l=e.byteLength,u=e.nalCount,c=l+4*u,d=new Uint8Array(c),h=new DataView(d.buffer);for(t=0;t<e.length;t++)for(i=e[t],n=0;n<i.length;n++)for(a=i[n],r=0;r<a.length;r++)o=a[r],h.setUint32(s,o.data.byteLength),s+=4,d.set(o.data,s),s+=o.data.byteLength;return d};e.exports={groupNalsIntoFrames:n,groupFramesIntoGops:r,extendFirstKeyFrame:i,generateSampleTable:s,concatenateNalData:l}},function(e,t){var n=9e4,r=function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))},i=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},a=function(e,t){var r,i,a=e.minSegmentDts;return t||(a-=e.timelineStartInfo.dts),r=e.timelineStartInfo.baseMediaDecodeTime,r+=a,r=M
87ath.max(0,r),"audio"===e.type&&(i=e.samplerate/n,r*=i,r=Math.floor(r)),r};e.exports={clearDtsInfo:i,calculateTrackBaseMediaDecodeTime:a,collectDtsInfo:r}},function(e,t,n){"use strict";var r,i,a,o=n(34),s=n(38),l=n(40),u=n(41).TimestampRolloverStream,c=n(40),d=188,h=71;r=function(){var e=new Uint8Array(d),t=0;r.prototype.init.call(this),this.push=function(n){var r,i=0,a=d;for(t?(r=new Uint8Array(n.byteLength+t),r.set(e.subarray(0,t)),r.set(n,t),t=0):r=n;a<r.byteLength;)r[i]!==h||r[a]!==h?(i++,a++):(this.trigger("data",r.subarray(i,a)),i+=d,a+=d);i<r.byteLength&&(e.set(r.subarray(i),0),t=r.byteLength-i)},this.flush=function(){t===d&&e[0]===h&&(this.trigger("data",e),t=0),this.trigger("done")}},r.prototype=new o,i=function(){var e,t,n,r;i.prototype.init.call(this),r=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,r){var i=0;r.payloadUnitStartIndicator&&(i+=e[i]+1),"pat"===r.type?t(e.subarray(i),r):n(e.subarray(i),r)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],r.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=r.pmtPid},n=function(e,t){var n,i,a,o;if(1&e[5]){for(r.programMapTable={video:null,audio:null,"timed-metadata":{}},n=(15&e[1])<<8|e[2],i=3+n-4,a=(15&e[10])<<8|e[11],o=12+a;o<i;){var s=e[o],u=(31&e[o+1])<<8|e[o+2];s===l.H264_STREAM_TYPE&&null===r.programMapTable.video?r.programMapTable.video=u:s===l.ADTS_STREAM_TYPE&&null===r.programMapTable.audio?r.programMapTable.audio=u:s===l.METADATA_STREAM_TYPE&&(r.programMapTable["timed-metadata"][u]=s),o+=((15&e[o+3])<<8|e[o+4])+5}t.programMapTable=r.programMapTable}},this.push=function(t){var n={},r=4;if(n.payloadUnitStartIndicator=!!(64&t[1]),n.pid=31&t[1],n.pid<<=8,n.pid|=t[2],(48&t[3])>>>4>1&&(r+=t[r]+1),0===n.pid)n.type="pat",e(t.subarray(r),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",e(t.subarray(r),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,r,n]):this.processPes_(t,r,n)},this.processPes_=function(e,t,n){n.pid===this.programMapTable.video?n.streamType=l.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=l.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}},i.prototype=new o,i.STREAM_TYPES={h264:27,adts:15},a=function(){var e=this,t={data:[],size:0},n={data:[],size:0},r={data:[],size:0},i=function(e,t){var n;t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=0!==(4&e[6]),n=e[7],192&n&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&n&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8])},o=function(t,n,r){var a,o=new Uint8Array(t.size),s={type:n},l=0,u=0,c=!1;if(t.data.length&&!(t.size<9)){for(s.trackId=t.data[0].pid,l=0;l<t.data.length;l++)a=t.data[l],o.set(a.data,u),u+=a.data.byteLength;i(o,s),c="video"===n||s.packetLength<=t.size,(r||c)&&(t.size=0,t.data.length=0),c&&e.trigger("data",s)}};a.prototype.init.call(this),this.push=function(i){({pat:function(){},pes:function(){var e,a;switch(i.streamType){case l.H264_STREAM_TYPE:case c.H264_STREAM_TYPE:e=t,a="video";break;case l.ADTS_STREAM_TYPE:e=n,a="audio";break;case l.METADATA_STREAM_TYPE:e=r,a="timed-metadata";break;default:return}i.payloadUnitStartIndicator&&o(e,a,!0),e.data.push(i),e.size+=i.data.byteLength},pmt:function(){var t={type:"metadata",tracks:[]},n=i.programMapTable;null!==n.video&&t.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+n.video,codec:"avc",type:"video"}),null!==n.audio&&t.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+n.audio,codec:"adts",type:"audio"}),e.trigger("data",t)}})[i.type]()},this.flush=function(){o(t,"video"),o(n,"audio"),o(r,"timed-metadata"),this.trigger("done")}},a.prototype=new o;var p={PAT_PID:0,MP2T_PACKET_LENGTH:d,TransportPacketStream:r,TransportParseStream:i,ElementaryStream:a,TimestampRolloverStream:u,CaptionStream:s.CaptionStream,Cea608Stream:s.Cea608Stream,MetadataStream:n(42)};for(var f in l)l.hasOwnProperty(f)&&(p[f]=l[f]);e.exports=p},function(e,t,n){"use strict";var r=n(34),i=n(39),a=function(){a.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new d(0,0),new d(0,1),new d(1,0),new d(1,1)],this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("done",this.trigger.bind(this,"done"))},this)};a.prototype=new r,a.prototype.push=function(e){var t,n,r;
87if("sei_rbsp"===e.nalUnitType&&(t=i.parseSei(e.escapedRBSP),t.payloadType===i.USER_DATA_REGISTERED_ITU_T_T35&&(n=i.parseUserData(t)))){if(e.dts<this.latestDts_)return void(this.ignoreNextEqualDts_=!0);if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));r=i.parseCaptionPackets(e.pts,n),this.captionPackets_=this.captionPackets_.concat(r),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},a.prototype.flush=function(){return this.captionPackets_.length?(this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2&&this.dispatchCea608Packet(e)},this),this.captionPackets_.length=0,void this.ccStreams_.forEach(function(e){e.flush()},this)):void this.ccStreams_.forEach(function(e){e.flush()},this)},a.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},a.prototype.dispatchCea608Packet=function(e){this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},a.prototype.setsChannel1Active=function(e){return 4096===(30720&e.ccData)},a.prototype.setsChannel2Active=function(e){return 6144===(30720&e.ccData)};var o={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},s=function(e){return null===e?"":(e=o[e]||e,String.fromCharCode(e))},l=14,u=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],c=function(){for(var e=[],t=l+1;t--;)e.push("");return e},d=function(e,t){d.prototype.init.call(this),this.field_=e||0,this.dataChannel_=t||0,this.name_="CC"+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(e){var t,n,r,i,a;if(t=32639&e.ccData,t===this.lastControlCode_)return void(this.lastControlCode_=null);if(4096===(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),r=t>>>8,i=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=c();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=c();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=c()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(r,i))r=(3&r)<<8,a=s(r|i),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(r,i))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),r=(3&r)<<8,a=s(r|i),this[this.mode_](e.pts,a),this.column_++;else if(this.isMidRowCode(r,i))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14===(14&i)&&this.addFormatting(e.pts,["i"]),1===(1&i)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(r,i))this.column_+=3&i;else if(this.isPAC(r,i)){var o=u.indexOf(7968&t);"rollUp"===this.mode_&&this.setRollUp(e.pts,o),o!==this.row_&&(this.clearFormatting(e.pts),this.row_=o),1&i&&this.formatting_.indexOf("u")===-1&&this.addFormatting(e.pts,["u"]),16===(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(i)&&14===(14&i)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(r)&&(0===i&&(i=null),a=s(r),a+=s(i),this[this.mode_](e.pts,a),this.column_+=a.length)}};d.prototype=new r,d.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e){return e.trim()}).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream
vendor: 10,708 bytes, line 87
87:this.name_})},d.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=c(),this.nonDisplayed_=c(),this.lastControlCode_=null,this.column_=0,this.row_=l,this.rollUpRows_=2,this.formatting_=[]},d.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},d.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},d.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},d.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},d.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},d.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},d.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},d.prototype.isNormalChar=function(e){return e>=32&&e<=127},d.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=l,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=c(),this.displayed_=c()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},d.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var n=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,n)},d.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},"");this.formatting_=[],this[this.mode_](e,t)}},d.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];n+=t,this.nonDisplayed_[this.row_]=n},d.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},d.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<l+1;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},d.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},e.exports={CaptionStream:a,Cea608Stream:d}},function(e,t){"use strict";var n=4,r=128,i=function(e){for(var t=0,i={payloadType:-1,payloadSize:0},a=0,o=0;t<e.byteLength&&e[t]!==r;){for(;255===e[t];)a+=255,t++;for(a+=e[t++];255===e[t];)o+=255,t++;if(o+=e[t++],!i.payload&&a===n){i.payloadType=a,i.payloadSize=o,i.payload=e.subarray(t,t+o);break}t+=o,a=0,o=0}return i},a=function(e){return 181!==e.payload[0]?null:49!==(e.payload[1]<<8|e.payload[2])?null:"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])?null:3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},o=function(e,t){var n,r,i,a,o=[];if(!(64&t[0]))return o;for(r=31&t[0],n=0;n<r;n++)i=3*n,a={type:3&t[i+2],pts:e},4&t[i+2]&&(a.ccData=t[i+3]<<8|t[i+4],o.push(a));return o},s=function(e){for(var t,n,r=e.byteLength,i=[],a=1;a<r-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(i.push(a+2),a+=2):a++;if(0===i.length)return e;t=r-i.length,n=new Uint8Array(t);var o=0;for(a=0;a<t;o++,a++)o===i[0]&&(o++,i.shift()),n[a]=e[o];return n};e.exports={parseSei:i,parseUserData:a,parseCaptionPackets:o,discardEmulationPreventionBytes:s,USER_DATA_REGISTERED_ITU_T_T35:n}},function(e,t){"use strict";e.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},function(e,t,n){"use strict";var r=n(34),i=8589934592,a=4294967296,o=function(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>a;)e+=n*i;return e},s=function(e){var t,n;s.prototype.init.call(this),this.type_=e,this.push=function(e){e.type===this.type_&&(void 0===n&&(n=e.dts),e.dts=o(e.dts,n),e.pts=o(e.pts,n),t=e.dts,this.trigger("data",e))},this.flush=function(){n=t,this.trigger("done")},this.discontinuity=function(){n=void 0,t=void 0}};s.prototype=new r,e.exports={TimestampRolloverStream:s,handleRollover:o}},function(e,t,n){"use strict";var r,i=n(34),a=n(40),o=function(e,t,n){var r,i="";for(r=t;r<n;r++)i+="%"+("00"+e[r].toString(16)).slice(-2);return i},s=function(e,t,n){return decodeURIComponent(o(e,t,n))},l=function(e,t,n){return unescape(o(e,t,n))},u=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},c={TXXX:function(e){var t;if(3===e.data[0]){for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=s(e.data,1,t),e.value=s(e.data,t+1,e.data.length).replace(/\0*$/,"");break}e.data=e.value}},WXXX:function(e){var t;if(3===e.data[0])for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=s(e.data,1,t),e.url=s(e.data,t+1,e.data.length);break}},PRIV:function(e){var t;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=l(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}};r=function(e){var t,n={debug:!(!e||!e.debug),descriptor:e&&e.descriptor},i=0,o=[],s=0;if(r.prototype.init.call(this),this.dispatchType=a.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(t=0;t<n.descriptor.length;t++)this.dispatchType+=("00"+n.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,r,a,l,d,h;if("timed-metadata"===e.type){if(e.dataAlignmentIndicator&&(s=0,o.length=0),0===o.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))return void(n.debug&&console.log("Skipping unrecognized metadata packet"));if(o.push(e),s+=e.data.byteLength,1===o.length&&(i=u(e.data.subarray(6,10)),i+=10),!(s<i)){for(t={data:new Uint8Array(i),frames:[],pts:o[0].pts,dts:o[0].dts},d=0;d<i;)t.data.set(o[0].data.subarray(0,i-d),d),d+=o[0].data.byteLength,s-=o[0].data.byteLength,o.shift();r=10,64&t.data[5]&&(r+=4,r+=u(t.data.subarray(10,14)),i-=u(t.data.subarray(16,20)));do{if(a=u(t.data.subarray(r+4,r+8)),a<1)return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.");if(h=String.fromCharCode(t.data[r],t.data[r+1],t.data[r+2],t.data[r+3]),l={id:h,data:t.data.subarray(r+10,r+a+10)},l.key=l.id,c[l.id]&&(c[l.id](l),"com.apple.streaming.transportStreamTimestamp"===l.owner)){var p=l.data,f=(1&p[3])<<30|p[4]<<22|p[5]<<14|p[6]<<6|p[7]>>>2;f*=4,f+=3&p[7],l.timeStamp=f,void 0===t.pts&&void 0===t.dts&&(t.pts=l.timeStamp,t.dts=l.timeStamp),this.trigger("timestamp",l)}t.frames.push(l),r+=10,r+=a}while(r<i);this.trigger("data",t)}}}},r.prototype=new i,e.exports=r},function(e,t,n){"use strict";var r,i=n(34),a=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];r=function(){var e;r.prototype.init.call(this),this.push=function(t){var n,r,i,o,s,l,u=0,c=0;if("audio"===t.type)for(e?(o=e,e=new Uint8Array(o.byteLength+t.data.byteLength),e.set(o),e.set(t.data,o.byteLength)):e=t.data;u+5<e.length;)if(255===e[u]&&240===(246&e[u+1])){if(r=2*(1&~e[u+1]),n=(3&e[u+3])<<11|e[u+4]<<3|(224&e[u+5])>>5,s=1024*((3&e[u+6])+1),l=9e4*s/a[(60&e[u+2])>>>2],i=u+n,e.byteLength<i)return;if(this.trigger("data",{pts:t.pts+c*l,dts:t.dts+c*l,sampleCount:s,audioobjecttype:(e[u+2]>>>6&3)+1,channelcount:(1&e[u+2])<<2|(192&e[u+3])>>>6,samplerate:a[(60&e[u+2])>>>2],samplingfrequencyindex:(60&e[u+2])>>>2,samplesize:16,data:e.subarray(u+7+r,i)}),e.byteLength===i)return void(e=void 0);c++,e=e.subarray(i)}else u++},this.flush=function(){this.trigger("done")}},r.prototype=new i,e.exports=r},function(e,t,n){"use strict";var r,i,a,o=n(34),s=n(45);i=function(){var e,t,n=0;i.prototype.init.call(this),this.push=function(r){var i;for(t?(i=new Uint8Array(t.byteLength+r.data.byteLength),i.set(t),i.set(r.data,t.byteLength),t=i):t=r.data;n<t.byteLength-3;n++)if(1===t[n+2]){e=n+5;break}for(;e<t.byteLength;)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}n+3!==e-2&&this.trigger("data",t.subarray(n+3,e-2));do e++;while(1!==t[e]&&e<t.length);n=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(n+3,e-2)),n=e-2,e+=3;break;default:e+=3}t=t.subarray(n),e-=n,n=0},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(n+3)),t=null,n=0,this.trigger("done")}},i.prototype=new o,a={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},r=function(){var e,t,n,o,l,u,c,d=new i;r.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,o=e.dts,d.push(e))},d.on("data",function(r){var i={trackId:t,pts:n,dts:o,data:r};switch(31&r[0]){case 5:i.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:i.nalUnitType="sei_rbsp",i.escapedRBSP=l(r.subarray(1));break;case 7:i.nalUnitType="seq_parameter_set_rbsp",i.escapedRBSP=l(r.subarray(1)),i.config=u(i.escapedRBSP);break;case 8:i.nalUnitType="pic_parameter_set_rbsp";break;case 9:i.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",i)}),d.on("done",function(){e.trigger("done")}),this.flush=function(){d.flush()},c=function(e,t){var n,r,i=8,a=8;for(n=0;n<e;n++)0!==a&&(r=t.readExpGolomb(),a=(i+r+256)%256),i=0===a?i:a},l=function(e){for(var t,n,r=e.byteLength,i=[],a=1;a<r-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(i.push(a+2),a+=2):a++;if(0===i.length)return e;t=r-i.length,n=new Uint8Array(t);var o=0;for(a=0;a<t;o++,a++)o===i[0]&&(o++,i.shift()),n[a]=e[o];return n},u=function(e){var t,n,r,i,o,l,u,d,h,p,f,g,m,v,y=0,_=0,b=0,T=0,E=1;if(t=new s(e),n=t.readUnsignedByte(),i=t.readUnsignedByte(),r=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),a[n]&&(o=t.readUnsignedExpGolomb(),3===o&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(f=3!==o?8:12,v=0;v<f;v++)t.readBoolean()&&(v<6?c(16,t):c(64,t));if(t.skipUnsignedExpGolomb(),l=t.readUnsignedExpGolomb(),0===l)t.readUnsignedExpGolomb();else if(1===l)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),u=t.readUnsignedExpGolomb(),v=0;v<u;v++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),d=t.readUnsignedExpGolomb(),h=t.readUnsignedExpGolomb(),p=t.readBits(1),0===p&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(y=t.readUnsignedExpGolomb(),_=t.readUnsignedExpGolomb(),b=t.readUnsignedExpGolomb(),T=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(m=t.readUnsignedByte()){case 1:g=[1,1];break;case 2:g=[12,11];break;case 3:g=[10,11];break;case 4:g=[16,11];break;case 5:g=[40,33];break;
87case 6:g=[24,11];break;case 7:g=[20,11];break;case 8:g=[32,11];break;case 9:g=[80,33];break;case 10:g=[18,11];break;case 11:g=[15,11];break;case 12:g=[64,33];break;case 13:g=[160,99];break;case 14:g=[4,3];break;case 15:g=[3,2];break;case 16:g=[2,1];break;case 255:g=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}g&&(E=g[0]/g[1])}return{profileIdc:n,levelIdc:r,profileCompatibility:i,width:Math.ceil((16*(d+1)-2*y-2*_)*E),height:(2-p)*(h+1)*16-2*b-2*T}}},r.prototype=new o,e.exports={H264Stream:r,NalByteStream:i}},function(e,t){"use strict";var n;n=function(e){var t=e.byteLength,n=0,r=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+r},this.loadWord=function(){var i=e.byteLength-t,a=new Uint8Array(4),o=Math.min(4,t);if(0===o)throw new Error("no bytes available");a.set(e.subarray(i,i+o)),n=new DataView(a.buffer).getUint32(0),r=8*o,t-=o},this.skipBits=function(e){var i;r>e?(n<<=e,r-=e):(e-=r,i=Math.floor(e/8),e-=8*i,t-=i,this.loadWord(),n<<=e,r-=e)},this.readBits=function(e){var i=Math.min(r,e),a=n>>>32-i;return r-=i,r>0?n<<=i:t>0&&this.loadWord(),i=e-i,i>0?a<<i|this.readBits(i):a},this.skipLeadingZeros=function(){var e;for(e=0;e<r;++e)if(0!==(n&2147483648>>>e))return n<<=e,r-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()},e.exports=n},function(e,t,n){"use strict";var r,i=n(34);r=function(){var e=new Uint8Array,t=0;r.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.parseId3TagSize=function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9],r=e[t+5],i=(16&r)>>4;return i?n+20:n+10},this.parseAdtsSize=function(e,t){var n=(224&e[t+5])>>5,r=e[t+4]<<3,i=6144&e[t+3];return i|r|n},this.push=function(n){var r,i,a,o,s=0,l=0;for(e.length?(o=e.length,e=new Uint8Array(n.byteLength+o),e.set(e.subarray(0,o)),e.set(n,o)):e=n;e.length-l>=3;)if(e[l]!=="I".charCodeAt(0)||e[l+1]!=="D".charCodeAt(0)||e[l+2]!=="3".charCodeAt(0))if(e[l]&!0&&240===(240&e[l+1])){if(e.length-l<7)break;if(s=this.parseAdtsSize(e,l),s>e.length)break;a={type:"audio",data:e.subarray(l,l+s),pts:t,dts:t},this.trigger("data",a),l+=s}else l++;else{if(e.length-l<10)break;if(s=this.parseId3TagSize(e,l),s>e.length)break;i={type:"timed-metadata",data:e.subarray(l,l+s)},this.trigger("data",i),l+=s}r=e.length-l,e=r>0?e.subarray(l):new Uint8Array}},r.prototype=new i,e.exports=r; 88},function(e,t){var n=[33,16,5,32,164,27],r=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],i=function(e){for(var t=[];e--;)t.push(0);return t},a=function(e){return Object.keys(e).reduce(function(t,n){return t[n]=new Uint8Array(e[n].reduce(function(e,t){return e.concat(t)},[])),t},{})},o={96e3:[n,[227,64],i(154),[56]],88200:[n,[231],i(170),[56]],64e3:[n,[248,192],i(240),[56]],48e3:[n,[255,192],i(268),[55,148,128],i(54),[112]],44100:[n,[255,192],i(268),[55,163,128],i(84),[112]],32e3:[n,[255,192],i(268),[55,234],i(226),[112]],24e3:[n,[255,192],i(268),[55,255,128],i(268),[111,112],i(126),[224]],16e3:[n,[255,192],i(268),[55,255,128],i(268),[111,255],i(269),[223,108],i(195),[1,192]],12e3:[r,i(268),[3,127,248],i(268),[6,255,240],i(268),[13,255,224],i(268),[27,253,128],i(259),[56]],11025:[r,i(268),[3,127,248],i(268),[6,255,240],i(268),[13,255,224],i(268),[27,255,192],i(268),[55,175,128],i(108),[112]],8e3:[r,i(268),[3,121,16],i(47),[7]]};e.exports=a(o)},function(e,t){var n,r,i,a,o,s,l=9e4;n=function(e){return e*l},r=function(e,t){return e*t},i=function(e){return e/l},a=function(e,t){return e/t},o=function(e,t){return n(a(e,t))},s=function(e,t){return r(i(e),t)},e.exports={secondsToVideoTs:n,secondsToAudioTs:r,videoTsToSeconds:i,audioTsToSeconds:a,audioTsToVideoTs:o,videoTsToAudioTs:s}},function(e,t,n){"use strict";var r=n(39).discardEmulationPreventionBytes,i=n(38).CaptionStream,a=n(29),o=n(50),s=function(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];
vendor: 16,144 bytes, line 88
88if(n<i.size)return i;n-=i.size}return null},l=function(e,t,n){var i,a,o,l,u=new DataView(e.buffer,e.byteOffset,e.byteLength),c=[];for(a=0;a+4<e.length;a+=o)if(o=u.getUint32(a),a+=4,!(o<=0))switch(31&e[a]){case 6:var d=e.subarray(a+1,a+1+o),h=s(a,t);i={nalUnitType:"sei_rbsp",size:o,data:d,escapedRBSP:r(d),trackId:n},h?(i.pts=h.pts,i.dts=h.dts,l=h):(i.pts=l.pts,i.dts=l.dts),c.push(i)}return c},u=function(e,t,n){var r=t,i=n.defaultSampleDuration||0,a=n.defaultSampleSize||0,s=n.trackId,l=[];return e.forEach(function(e){var t=o.parseTrun(e),n=t.samples;n.forEach(function(e){void 0===e.duration&&(e.duration=i),void 0===e.size&&(e.size=a),e.trackId=s,e.dts=r,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),e.pts=r+e.compositionTimeOffset,r+=e.duration}),l=l.concat(n)}),l},c=function(e,t){var n=a.findBox(e,["moof","traf"]),r=a.findBox(e,["mdat"]),i={},s=[];return r.forEach(function(e,t){var r=n[t];s.push({mdat:e,traf:r})}),s.forEach(function(e){var n,r,s=e.mdat,c=e.traf,d=a.findBox(c,["tfhd"]),h=o.parseTfhd(d[0]),p=h.trackId,f=a.findBox(c,["tfdt"]),g=f.length>0?o.parseTfdt(f[0]).baseMediaDecodeTime:0,m=a.findBox(c,["trun"]);t===p&&m.length>0&&(n=u(m,g,h),r=l(s,n,p),i[p]||(i[p]=[]),i[p]=i[p].concat(r))}),i},d=function(e,t,n){var r;return t?(r=c(e,t),{seiNals:r[t],timescale:n}):null},h=function(){var e,t,n,r,a,o=!1;this.isInitialized=function(){return o},this.init=function(){e=new i,o=!0,e.on("data",function(e){e.startTime=e.startPts/r,e.endTime=e.endPts/r,a.captions.push(e),a.captionStreams[e.stream]=!0})},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length)&&(n!==e[0]||r!==t[n])},this.parse=function(e,i,o){var s;if(!this.isInitialized())return null;if(!i||!o)return null;if(this.isNewInit(i,o))n=i[0],r=o[n];else if(!n||!r)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,i,o)}return s=d(e,n,r),null!==s&&s.seiNals?(this.pushNals(s.seiNals),this.flushStream(),a):null},this.pushNals=function(t){return this.isInitialized()&&t&&0!==t.length?void t.forEach(function(t){e.push(t)}):null},this.flushStream=function(){return this.isInitialized()?void e.flush():null},this.clearParsedCaptions=function(){a.captions=[],a.captionStreams={}},this.resetCaptionStream=function(){return this.isInitialized()?void e.reset():null},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],n=null,r=null,a?this.clearParsedCaptions():a={captions:[],captionStreams:{}},this.resetCaptionStream()},this.reset()};e.exports=h},function(e,t,n){"use strict";var r,i,a=n(29).parseType,o=function(e){return new Date(1e3*e-20828448e5)},s=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},l=function(e){var t,n,r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=[];for(t=0;t+4<e.length;t+=n)if(n=r.getUint32(t),t+=4,n<=0)i.push("<span style='color:red;'>MALFORMED DATA</span>");else switch(31&e[t]){case 1:i.push("slice_layer_without_partitioning_rbsp");break;case 5:i.push("slice_layer_without_partitioning_rbsp_idr");break;case 6:i.push("sei_rbsp");break;case 7:i.push("seq_parameter_set_rbsp");break;case 8:i.push("pic_parameter_set_rbsp");break;case 9:i.push("access_unit_delimiter_rbsp");break;default:i.push("UNKNOWN NAL - "+e[t]&31)}return i},u={avc1:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{dataReferenceIndex:t.getUint16(6),width:t.getUint16(24),height:t.getUint16(26),horizresolution:t.getUint16(28)+t.getUint16(30)/16,vertresolution:t.getUint16(32)+t.getUint16(34)/16,frameCount:t.getUint16(40),depth:t.getUint16(74),config:r(e.subarray(78,e.byteLength))}},avcC:function(e){var t,n,r,i,a=new DataView(e.buffer,e.byteOffset,e.byteLength),o={configurationVersion:e[0],avcProfileIndication:e[1],profileCompatibility:e[2],avcLevelIndication:e[3],lengthSizeMinusOne:3&e[4],sps:[],pps:[]},s=31&e[5];for(r=6,i=0;i<s;i++)n=a.getUint16(r),r+=2,o.sps.push(new Uint8Array(e.subarray(r,r+n))),r+=n;for(t=e[r],r++,i=0;i<t;i++)n=a.getUint16(r),r+=2,o.pps.push(new Uint8Array(e.subarray(r,r+n))),r+=n;return o},btrt:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{bufferSizeDB:t.getUint32(0),maxBitrate:t.getUint32(4),avgBitrate:t.getUint32(8)}},esds:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),esId:e[6]<<8|e[7],streamPriority:31&e[8],decoderConfig:{objectProfileIndication:e[11],streamType:e[12]>>>2&63,bufferSize:e[13]<<16|e[14]<<8|e[15],maxBitrate:e[16]<<24|e[17]<<16|e[18]<<8|e[19],avgBitrate:e[20]<<24|e[21]<<16|e[22]<<8|e[23],decoderConfigDescriptor:{tag:e[24],length:e[25],audioObjectType:e[26]>>>3&31,samplingFrequencyIndex:(7&e[26])<<1|e[27]>>>7&1,channelConfiguration:e[27]>>>3&15}}}},ftyp:function(e){for(var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={majorBrand:a(e.subarray(0,4)),minorVersion:t.getUint32(4),compatibleBrands:[]},r=8;r<e.byteLength;)n.compatibleBrands.push(a(e.subarray(r,r+4))),r+=4;return n},dinf:function(e){return{boxes:r(e)}},dref:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),dataReferences:r(e.subarray(8))}},hdlr:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),handlerType:a(e.subarray(8,12)),name:""},r=8;for(r=24;r<e.byteLength;r++){if(0===e[r]){r++;break}n.name+=String.fromCharCode(e[r])}return n.name=decodeURIComponent(escape(n.name)),n},mdat:function(e){return{byteLength:e.byteLength,nals:l(e)}},mdhd:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=4,i={version:n.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),language:""};return 1===i.version?(r+=4,i.creationTime=o(n.getUint32(r)),r+=8,i.modificationTime=o(n.getUint32(r)),r+=4,i.timescale=n.getUint32(r),r+=8,i.duration=n.getUint32(r)):(i.creationTime=o(n.getUint32(r)),r+=4,i.modificationTime=o(n.getUint32(r)),r+=4,i.timescale=n.getUint32(r),r+=4,i.duration=n.getUint32(r)),r+=4,t=n.getUint16(r),i.language+=String.fromCharCode((t>>10)+96),i.language+=String.fromCharCode(((992&t)>>5)+96),i.language+=String.fromCharCode((31&t)+96),i},mdia:function(e){return{boxes:r(e)}},mfhd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),sequenceNumber:e[4]<<24|e[5]<<16|e[6]<<8|e[7]}},minf:function(e){return{boxes:r(e)}},mp4a:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={dataReferenceIndex:t.getUint16(6),channelcount:t.getUint16(16),samplesize:t.getUint16(18),samplerate:t.getUint16(24)+t.getUint16(26)/65536};return e.byteLength>28&&(n.streamDescriptor=r(e.subarray(28))[0]),n},moof:function(e){return{boxes:r(e)}},moov:function(e){return{boxes:r(e)}},mvex:function(e){return{boxes:r(e)}},mvhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=4,r={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4))};return 1===r.version?(n+=4,r.creationTime=o(t.getUint32(n)),n+=8,r.modificationTime=o(t.getUint32(n)),n+=4,r.timescale=t.getUint32(n),n+=8,r.duration=t.getUint32(n)):(r.creationTime=o(t.getUint32(n)),n+=4,r.modificationTime=o(t.getUint32(n)),n+=4,r.timescale=t.getUint32(n),n+=4,r.duration=t.getUint32(n)),n+=4,r.rate=t.getUint16(n)+t.getUint16(n+2)/16,n+=4,r.volume=t.getUint8(n)+t.getUint8(n+1)/8,n+=2,n+=2,n+=8,r.matrix=new Uint32Array(e.subarray(n,n+36)),n+=36,n+=24,r.nextTrackId=t.getUint32(n),r},pdin:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4)),rate:t.getUint32(4),initialDelay:t.getUint32(8)}},sdtp:function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]};for(t=4;t<e.byteLength;t++)n.samples.push({dependsOn:(48&e[t])>>4,isDependedOn:(12&e[t])>>2,hasRedundancy:3&e[t]});return n},sidx:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:n.getUint32(4),timescale:n.getUint32(8),earliestPresentationTime:n.getUint32(12),firstOffset:n.getUint32(16)},i=n.getUint16(22);for(t=24;i;t+=12,i--)r.references.push({referenceType:(128&e[t])>>>7,referencedSize:2147483647&n.getUint32(t),subsegmentDuration:n.getUint32(t+4),startsWithSap:!!(128&e[t+8]),sapType:(112&e[t+8])>>>4,sapDeltaTime:268435455&n.getUint32(t+8)});return r},smhd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),balance:e[4]+e[5]/256}},stbl:function(e){return{boxes:r(e)}},stco:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),chunkOffsets:[]},i=n.getUint32(4);for(t=8;i;t+=4,i--)r.chunkOffsets.push(n.getUint32(t));return r},stsc:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=n.getUint32(4),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleToChunks:[]};for(t=8;r;t+=12,r--)i.sampleToChunks.push({firstChunk:n.getUint32(t),samplesPerChunk:n.getUint32(t+4),sampleDescriptionIndex:n.getUint32(t+8)});return i},stsd:function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleDescriptions:r(e.subarray(8))}},stsz:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),sampleSize:n.getUint32(4),entries:[]};for(t=12;t<e.byteLength;t+=4)r.entries.push(n.getUint32(t));return r},stts:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),timeToSamples:[]},i=n.getUint32(4);for(t=8;i;t+=8,i--)r.timeToSamples.push({sampleCount:n.getUint32(t),sampleDelta:n.getUint32(t+4)});return r},styp:function(e){return u.ftyp(e)},tfdt:function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4)),baseMediaDecodeTime:e[4]<<24|e[5]<<16|e[6]<<8|e[7]};return 1===t.version&&(t.baseMediaDecodeTime*=Math.pow(2,32),t.baseMediaDecodeTime+=e[8]<<24|e[9]<<16|e[10]<<8|e[11]),t},tfhd:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:n.getUint32(4)},i=1&r.flags[2],a=2&r.flags[2],o=8&r.flags[2],s=16&r.flags[2],l=32&r.flags[2],u=65536&r.flags[0],c=131072&r.flags[0];return t=8,i&&(t+=4,r.baseDataOffset=n.getUint32(12),t+=4),a&&(r.sampleDescriptionIndex=n.getUint32(t),t+=4),o&&(r.defaultSampleDuration=n.getUint32(t),t+=4),s&&(r.defaultSampleSize=n.getUint32(t),t+=4),l&&(r.defaultSampleFlags=n.getUint32(t)),u&&(r.durationIsEmpty=!0),!i&&c&&(r.baseDataOffsetIsMoof=!0),r},tkhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=4,r={version:t.getUint8(0),flags:new Uint8Array(e.subarray(1,4))};return 1===r.version?(n+=4,r.creationTime=o(t.getUint32(n)),n+=8,r.modificationTime=o(t.getUint32(n)),n+=4,r.trackId=t.getUint32(n),n+=4,n+=8,r.duration=t.getUint32(n)):(r.creationTime=o(t.getUint32(n)),n+=4,r.modificationTime=o(t.getUint32(n)),n+=4,r.trackId=t.getUint32(n),n+=4,n+=4,r.duration=t.getUint32(n)),n+=4,n+=8,r.layer=t.getUint16(n),n+=2,r.alternateGroup=t.getUint16(n),n+=2,r.volume=t.getUint8(n)+t.getUint8(n+1)/8,n+=2,n+=2,r.matrix=new Uint32Array(e.subarray(n,n+36)),n+=36,r.width=t.getUint16(n)+t.getUint16(n+2)/16,n+=4,r.height=t.getUint16(n)+t.getUint16(n+2)/16,r},traf:function(e){return{boxes:r(e)}},trak:function(e){return{boxes:r(e)}},trex:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:t.getUint32(4),defaultSampleDescriptionIndex:t.getUint32(8),defaultSampleDuration:t.getUint32(12),defaultSampleSize:t.getUint32(16),sampleDependsOn:3&e[20],sampleIsDependedOn:(192&e[21])>>6,sampleHasRedundancy:(48&e[21])>>4,samplePaddingValue:(14&e[21])>>1,sampleIsDifferenceSample:!!(1&e[21]),sampleDegradationPriority:t.getUint16(22)}},trun:function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=1&n.flags[2],a=4&n.flags[2],o=1&n.flags[1],l=2&n.flags[1],u=4&n.flags[1],c=8&n.flags[1],d=r.getUint32(4),h=8;for(i&&(n.dataOffset=r.getInt32(h),h+=4),a&&d&&(t={flags:s(e.subarray(h,h+4))},h+=4,o&&(t.duration=r.getUint32(h),h+=4),l&&(t.size=r.getUint32(h),h+=4),c&&(t.compositionTimeOffset=r.getUint32(h),h+=4),n.samples.push(t),d--);d--;)t={},o&&(t.duration=r.getUint32(h),h+=4),l&&(t.size=r.getUint32(h),h+=4),u&&(t.flags=s(e.subarray(h,h+4)),h+=4),c&&(t.compositionTimeOffset=r.getUint32(h),h+=4),n.samples.push(t);return n},"url ":function(e){return{version:e[0],flags:new Uint8Array(e.subarray(1,4))}},vmhd:function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength);return{version:e[0],flags:new Uint8Array(e.subarray(1,4)),graphicsmode:t.getUint16(4),opcolor:new Uint16Array([t.getUint16(6),t.getUint16(8),t.getUint16(10)])}}};r=function(e){for(var t,n,r,i,o,s=0,l=[],c=new ArrayBuffer(e.length),d=new Uint8Array(c),h=0;h<e.length;++h)d[h]=e[h];for(t=new DataView(c);s<e.byteLength;)n=t.getUint32(s),r=a(e.subarray(s+4,s+8)),i=n>1?s+n:e.byteLength,o=(u[r]||function(e){return{data:e}})(e.subarray(s+8,i)),o.size=n,o.type=r,l.push(o),s=i;return l},i=function(e,t){var n;return t=t||0,n=new Array(2*t+1).join(" "),e.map(function(e,r){return n+e.type+"\n"+Object.keys(e).filter(function(e){return"type"!==e&&"boxes"!==e}).map(function(t){var r=n+" "+t+": ",i=e[t];if(i instanceof Uint8Array||i instanceof Uint32Array){var a=Array.prototype.slice.call(new Uint8Array(i.buffer,i.byteOffset,i.byteLength)).map(function(e){return" "+("00"+e.toString(16)).slice(-2)}).join("").match(/.{1,24}/g);return a?1===a.length?r+"<"+a.join("").slice(1)+">":r+"<\n"+a.map(function(e){return n+" "+e}).join("\n")+"\n"+n+" >":r+"<>"}return r+JSON.stringify(i,null,2).split("\n").map(function(e,t){return 0===t?e:n+" "+e}).join("\n")}).join("\n")+(e.boxes?"\n"+i(e.boxes,t+1):"")}).join("\n")},e.exports={inspect:r,textify:i,parseTfdt:u.tfdt,parseHdlr:u.hdlr,parseTfhd:u.tfhd,parseTrun:u.trun}},function(e,t,n){"use strict";var r=n(40),i=n(41).handleRollover,a={};a.ts=n(52),a.aac=n(53);var o=9e4,s=188,l=71,u=function(e){return e[0]==="I".charCodeAt(0)&&e[1]==="D".charCodeAt(0)&&e[2]==="3".charCodeAt(0)},c=function(e,t){for(var n,r,i=0,o=s;o<e.byteLength;)if(e[i]!==l||e[o]!==l)i++,o++;else{switch(n=e.subarray(i,o),r=a.ts.parseType(n,t.pid)){case"pat":t.pid||(t.pid=a.ts.parsePat(n));break;case"pmt":t.table||(t.table=a.ts.parsePmt(n))}if(t.pid&&t.table)return;i+=s,o+=s}},d=function(e,t,n){for(var r,i,o,u,c,d=0,h=s,p=!1;h<e.byteLength;)if(e[d]!==l||e[h]!==l)d++,h++;else{switch(r=e.subarray(d,h),i=a.ts.parseType(r,t.pid)){case"pes":o=a.ts.parsePesType(r,t.table),u=a.ts.parsePayloadUnitStartIndicator(r),"audio"===o&&u&&(c=a.ts.parsePesTime(r),c&&(c.type="audio",n.audio.push(c),p=!0))}if(p)break;d+=s,h+=s}for(h=e.byteLength,d=h-s,p=!1;d>=0;)if(e[d]!==l||e[h]!==l)d--,h--;else{switch(r=e.subarray(d,h),i=a.ts.parseType(r,t.pid)){case"pes":o=a.ts.parsePesType(r,t.table),u=a.ts.parsePayloadUnitStartIndicator(r),"audio"===o&&u&&(c=a.ts.parsePesTime(r),c&&(c.type="audio",n.audio.push(c),p=!0))}if(p)break;d-=s,h-=s}},h=function(e,t,n){for(var r,i,o,u,c,d,h,p,f=0,g=s,m=!1,v={data:[],size:0};g<e.byteLength;)if(e[f]!==l||e[g]!==l)f++,g++;else{switch(r=e.subarray(f,g),i=a.ts.parseType(r,t.pid)){case"pes":if(o=a.ts.parsePesType(r,t.table),u=a.ts.parsePayloadUnitStartIndicator(r),"video"===o&&(u&&!m&&(c=a.ts.parsePesTime(r),c&&(c.type="video",n.video.push(c),m=!0)),!n.firstKeyFrame)){if(u&&0!==v.size){for(d=new Uint8Array(v.size),h=0;v.data.length;)p=v.data.shift(),d.set(p,h),h+=p.byteLength;a.ts.videoPacketContainsKeyFrame(d)&&(n.firstKeyFrame=a.ts.parsePesTime(d),n.firstKeyFrame.type="video"),v.size=0}v.data.push(r),v.size+=r.byteLength}}if(m&&n.firstKeyFrame)break;f+=s,g+=s}for(g=e.byteLength,f=g-s,m=!1;f>=0;)if(e[f]!==l||e[g]!==l)f--,g--;else{switch(r=e.subarray(f,g),i=a.ts.parseType(r,t.pid)){case"pes":o=a.ts.parsePesType(r,t.table),u=a.ts.parsePayloadUnitStartIndicator(r),"video"===o&&u&&(c=a.ts.parsePesTime(r),c&&(c.type="video",n.video.push(c),m=!0))}if(m)break;f-=s,g-=s}},p=function(e,t){if(e.audio&&e.audio.length){var n=t;
88"undefined"==typeof n&&(n=e.audio[0].dts),e.audio.forEach(function(e){e.dts=i(e.dts,n),e.pts=i(e.pts,n),e.dtsTime=e.dts/o,e.ptsTime=e.pts/o})}if(e.video&&e.video.length){var r=t;if("undefined"==typeof r&&(r=e.video[0].dts),e.video.forEach(function(e){e.dts=i(e.dts,r),e.pts=i(e.pts,r),e.dtsTime=e.dts/o,e.ptsTime=e.pts/o}),e.firstKeyFrame){var a=e.firstKeyFrame;a.dts=i(a.dts,r),a.pts=i(a.pts,r),a.dtsTime=a.dts/o,a.ptsTime=a.dts/o}}},f=function(e){for(var t,n=!1,r=0,i=null,s=null,l=0,u=0;e.length-u>=3;){var c=a.aac.parseType(e,u);switch(c){case"timed-metadata":if(e.length-u<10){n=!0;break}if(l=a.aac.parseId3TagSize(e,u),l>e.length){n=!0;break}null===s&&(t=e.subarray(u,u+l),s=a.aac.parseAacTimestamp(t)),u+=l;break;case"audio":if(e.length-u<7){n=!0;break}if(l=a.aac.parseAdtsSize(e,u),l>e.length){n=!0;break}null===i&&(t=e.subarray(u,u+l),i=a.aac.parseSampleRate(t)),r++,u+=l;break;default:u++}if(n)return null}if(null===i||null===s)return null;var d=o/i,h={audio:[{type:"audio",dts:s,pts:s},{type:"audio",dts:s+1024*r*d,pts:s+1024*r*d}]};return h},g=function(e){var t={pid:null,table:null},n={};c(e,t);for(var i in t.table)if(t.table.hasOwnProperty(i)){var a=t.table[i];switch(a){case r.H264_STREAM_TYPE:n.video=[],h(e,t,n),0===n.video.length&&delete n.video;break;case r.ADTS_STREAM_TYPE:n.audio=[],d(e,t,n),0===n.audio.length&&delete n.audio}}return n},m=function(e,t){var n,r=u(e);return n=r?f(e):g(e),n&&(n.audio||n.video)?(p(n,t),n):null};e.exports={inspect:m}},function(e,t,n){"use strict";var r=n(40),i=function(e){var t=31&e[1];return t<<=8,t|=e[2]},a=function(e){return!!(64&e[1])},o=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},s=function(e,t){var n=i(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},l=function(e){var t=a(e),n=4+o(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},u=function(e){var t={},n=a(e),r=4+o(e);if(n&&(r+=e[r]+1),1&e[r+5]){var i,s,l;i=(15&e[r+1])<<8|e[r+2],s=3+i-4,l=(15&e[r+10])<<8|e[r+11];for(var u=12+l;u<s;){var c=r+u;t[(31&e[c+1])<<8|e[c+2]]=e[c],u+=((15&e[c+3])<<8|e[c+4])+5}return t}},c=function(e,t){var n=i(e),a=t[n];switch(a){case r.H264_STREAM_TYPE:return"video";case r.ADTS_STREAM_TYPE:return"audio";case r.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},d=function(e){var t=a(e);if(!t)return null;var n=4+o(e);if(n>=e.byteLength)return null;var r,i=null;return r=e[n+7],192&r&&(i={},i.pts=(14&e[n+9])<<27|(255&e[n+10])<<20|(254&e[n+11])<<12|(255&e[n+12])<<5|(254&e[n+13])>>>3,i.pts*=4,i.pts+=(6&e[n+13])>>>1,i.dts=i.pts,64&r&&(i.dts=(14&e[n+14])<<27|(255&e[n+15])<<20|(254&e[n+16])<<12|(255&e[n+17])<<5|(254&e[n+18])>>>3,i.dts*=4,i.dts+=(6&e[n+18])>>>1)),i},h=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},p=function(e){for(var t,n=4+o(e),r=e.subarray(n),i=0,a=0,s=!1;a<r.byteLength-3;a++)if(1===r[a+2]){i=a+5;break}for(;i<r.byteLength;)switch(r[i]){case 0:if(0!==r[i-1]){i+=2;break}if(0!==r[i-2]){i++;break}a+3!==i-2&&(t=h(31&r[a+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(s=!0));do i++;while(1!==r[i]&&i<r.length);a=i-2,i+=3;break;case 1:if(0!==r[i-1]||0!==r[i-2]){i+=3;break}t=h(31&r[a+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(s=!0),a=i-2,i+=3;break;default:i+=3}return r=r.subarray(a),i-=a,a=0,r&&r.byteLength>3&&(t=h(31&r[a+3]),"slice_layer_without_partitioning_rbsp_idr"===t&&(s=!0)),s};e.exports={parseType:s,parsePat:l,parsePmt:u,parsePayloadUnitStartIndicator:a,parsePesType:c,parsePesTime:d,videoPacketContainsKeyFrame:p}},function(e,t){"use strict";var n=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],r=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},i=function(e,t,n){var r,i="";for(r=t;r<n;r++)i+="%"+("00"+e[r].toString(16)).slice(-2);return i},a=function(e,t,n){return unescape(i(e,t,n))},o=function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9],r=e[t+5],i=(16&r)>>4;return i?n+20:n+10},s=function(e,t){var n=(224&e[t+5])>>5,r=e[t+4]<<3,i=6144&e[t+3];return i|r|n}
vendor: 5,192 bytes, line 88
88,l=function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":e[t]&!0&&240===(240&e[t+1])?"audio":null},u=function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240===(246&e[t+1]))return n[(60&e[t+2])>>>2];t++}return null},c=function(e){var t,n,i,o;t=10,64&e[5]&&(t+=4,t+=r(e.subarray(10,14)));do{if(n=r(e.subarray(t+4,t+8)),n<1)return null;if(o=String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3]),"PRIV"===o){i=e.subarray(t+10,t+n+10);for(var s=0;s<i.byteLength;s++)if(0===i[s]){var l=a(i,0,s);if("com.apple.streaming.transportStreamTimestamp"===l){var u=i.subarray(s+1),c=(1&u[3])<<30|u[4]<<22|u[5]<<14|u[6]<<6|u[7]>>>2;return c*=4,c+=3&u[7]}break}}t+=10,t+=n}while(t<e.byteLength);return null};e.exports={parseId3TagSize:o,parseAdtsSize:s,parseType:l,parseSampleRate:u,parseAacTimestamp:c}},function(e,t,n){"use strict";var r=n(55),i=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=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)},s=function(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},l=function(){var e=[[[],[],[],[],[]],[[],[],[],[],[]]],t=e[0],n=e[1],r=t[4],i=n[4],a=void 0,o=void 0,s=void 0,l=[],u=[],c=void 0,d=void 0,h=void 0,p=void 0,f=void 0,g=void 0;for(a=0;a<256;a++)u[(l[a]=a<<1^283*(a>>7))^a]=a;for(o=s=0;!r[o];o^=c||1,s=u[s]||1)for(p=s^s<<1^s<<2^s<<3^s<<4,p=p>>8^255&p^99,r[o]=p,i[p]=o,h=l[d=l[c=l[o]]],g=16843009*h^65537*d^257*c^16843008*o,f=257*l[p]^16843008*p,a=0;a<4;a++)t[a][o]=f=f<<24^f>>>8,n[a][p]=g=g<<24^g>>>8;for(a=0;a<5;a++)t[a]=t[a].slice(0),n[a]=n[a].slice(0);return e},u=null,c=function(){function e(t){i(this,e),u||(u=l()),this._tables=[[u[0][0].slice(),u[0][1].slice(),u[0][2].slice(),u[0][3].slice(),u[0][4].slice()],[u[1][0].slice(),u[1][1].slice(),u[1][2].slice(),u[1][3].slice(),u[1][4].slice()]];var n=void 0,r=void 0,a=void 0,o=void 0,s=void 0,c=this._tables[0][4],d=this._tables[1],h=t.length,p=1;if(4!==h&&6!==h&&8!==h)throw new Error("Invalid aes key size");for(o=t.slice(0),s=[],this._key=[o,s],n=h;n<4*h+28;n++)a=o[n-1],(n%h===0||8===h&&n%h===4)&&(a=c[a>>>24]<<24^c[a>>16&255]<<16^c[a>>8&255]<<8^c[255&a],n%h===0&&(a=a<<8^a>>>24^p<<24,p=p<<1^283*(p>>7))),o[n]=o[n-h]^a;for(r=0;n;r++,n--)a=o[3&r?n:n-4],n<=4||r<4?s[r]=a:s[r]=d[0][c[a>>>24]]^d[1][c[a>>16&255]]^d[2][c[a>>8&255]]^d[3][c[255&a]]}return e.prototype.decrypt=function(e,t,n,r,i,a){var o=this._key[1],s=e^o[0],l=r^o[1],u=n^o[2],c=t^o[3],d=void 0,h=void 0,p=void 0,f=o.length/4-2,g=void 0,m=4,v=this._tables[1],y=v[0],_=v[1],b=v[2],T=v[3],E=v[4];for(g=0;g<f;g++)d=y[s>>>24]^_[l>>16&255]^b[u>>8&255]^T[255&c]^o[m],h=y[l>>>24]^_[u>>16&255]^b[c>>8&255]^T[255&s]^o[m+1],p=y[u>>>24]^_[c>>16&255]^b[s>>8&255]^T[255&l]^o[m+2],c=y[c>>>24]^_[s>>16&255]^b[l>>8&255]^T[255&u]^o[m+3],m+=4,s=d,l=h,u=p;for(g=0;g<4;g++)i[(3&-g)+a]=E[s>>>24]<<24^E[l>>16&255]<<16^E[u>>8&255]<<8^E[255&c]^o[m++],d=s,s=l,l=u,u=c,c=d},e}(),d=function(){function e(){i(this,e),this.listeners={}}return e.prototype.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},e.prototype.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e].splice(n,1),n>-1},e.prototype.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,r=0;r<n;++r)t[r].call(this,arguments[1]);else for(var i=Array.prototype.slice.call(arguments,1),a=t.length,o=0;o<a;++o)t[o].apply(this,i)},e.prototype.dispose=function(){this.listeners={}},e.prototype.pipe=function(e){this.on("data",function(t){e.push(t)})},e}(),h=function(e){function t(){i(this,t);var n=s(this,e.call(this,d));return n.jobs=[],n.delay=1,n.timeout_=null,n}return o(t,e),t.prototype.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},t.prototype.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},t}(d),p=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},f=function(e,t,n){var r=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),i=new c(Array.prototype.slice.call(t)),a=new Uint8Array(e.byteLength),o=new Int32Array(a.buffer),s=void 0,l=void 0,u=void 0,d=void 0,h=void 0,f=void 0,g=void 0,m=void 0,v=void 0;for(s=n[0],l=n[1],u=n[2],d=n[3],v=0;v<r.length;v+=4)h=p(r[v]),f=p(r[v+1]),g=p(r[v+2]),m=p(r[v+3]),i.decrypt(h,f,g,m,o,v),o[v]=p(o[v]^s),o[v+1]=p(o[v+1]^l),o[v+2]=p(o[v+2]^u),o[v+3]=p(o[v+3]^d),s=h,l=f,u=g,d=m;return a},g=function(){function e(t,n,a,o){i(this,e);
88var s=e.STEP,l=new Int32Array(t.buffer),u=new Uint8Array(t.byteLength),c=0;for(this.asyncStream_=new h,this.asyncStream_.push(this.decryptChunk_(l.subarray(c,c+s),n,a,u)),c=s;c<l.length;c+=s)a=new Uint32Array([p(l[c-4]),p(l[c-3]),p(l[c-2]),p(l[c-1])]),this.asyncStream_.push(this.decryptChunk_(l.subarray(c,c+s),n,a,u));this.asyncStream_.push(function(){o(null,r.unpad(u))})}return e.prototype.decryptChunk_=function(e,t,n,r){return function(){var i=f(e,t,n);r.set(i,e.byteOffset)}},a(e,null,[{key:"STEP",get:function(){return 32e3}}]),e}();t.decrypt=f,t.Decrypter=g,t.AsyncStream=h},function(e,t){"use strict";function n(e){var t=i[e.byteLength%16||0],n=new Uint8Array(e.byteLength+t.length);return n.set(e),n.set(t,e.byteLength),n}function r(e){return e.subarray(0,e.byteLength-e[e.byteLength-1])}var i=void 0;i=[[16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16],[15,15,15,15,15,15,15,15,15,15,15,15,15,15,15],[14,14,14,14,14,14,14,14,14,14,14,14,14,14],[13,13,13,13,13,13,13,13,13,13,13,13,13],[12,12,12,12,12,12,12,12,12,12,12,12],[11,11,11,11,11,11,11,11,11,11,11],[10,10,10,10,10,10,10,10,10,10],[9,9,9,9,9,9,9,9,9],[8,8,8,8,8,8,8,8],[7,7,7,7,7,7,7],[6,6,6,6,6,6],[5,5,5,5,5],[4,4,4,4],[3,3,3],[2,2],[1]];var a="1.0.2";t.pad=n,t.unpad=r,t.VERSION=a},function(e,t,n){!function(t,r){var i=n(9);e.exports=r(i["default"]||i)}(this,function(e){"use strict";function t(){YT.ready(function(){o.isApiReady=!0;for(var e=0;e<o.apiReadyQueue.length;++e)o.apiReadyQueue[e].initYTPlayer()})}function n(e,t){var n=!1,r=document.createElement("script"),i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(r,i),r.onload=function(){n||(n=!0,t())},r.onreadystatechange=function(){n||"complete"!==this.readyState&&"loaded"!==this.readyState||(n=!0,t())},r.src=e}function r(){var e=".vjs-youtube .vjs-iframe-blocker { display: none; }.vjs-youtube.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-youtube .vjs-poster { background-size: cover; }.vjs-youtube-mobile .vjs-big-play-button { display: none; }",t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e)),t.appendChild(n)}var i=e.browser.IS_IOS||e.browser.IS_NATIVE_ANDROID,a=e.getTech("Tech"),o=e.extend(a,{constructor:function(e,t){a.call(this,e,t),this.setPoster(e.poster),this.setSrc(this.options_.source,!0),this.setTimeout(function(){this.el_&&(this.el_.parentNode.className+=" vjs-youtube",i&&(this.el_.parentNode.className+=" vjs-youtube-mobile"),o.isApiReady?this.initYTPlayer():o.apiReadyQueue.push(this))}.bind(this))},dispose:function(){if(this.ytPlayer)this.ytPlayer.stopVideo&&this.ytPlayer.stopVideo(),this.ytPlayer.destroy&&this.ytPlayer.destroy();else{var e=o.apiReadyQueue.indexOf(this);e!==-1&&o.apiReadyQueue.splice(e,1)}this.ytPlayer=null,this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-youtube","").replace(" vjs-youtube-mobile",""),this.el_.parentNode.removeChild(this.el_),a.prototype.dispose.call(this)},createEl:function(){var e=document.createElement("div");e.setAttribute("id",this.options_.techId),e.setAttribute("style","width:100%;height:100%;top:0;left:0;position:absolute"),e.setAttribute("class","vjs-tech");var t=document.createElement("div");if(t.appendChild(e),!i&&!this.options_.ytControls){var n=document.createElement("div");n.setAttribute("class","vjs-iframe-blocker"),n.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),n.onclick=function(){this.pause()}.bind(this),t.appendChild(n)}return t},initYTPlayer:function(){var e={controls:0,modestbranding:1,rel:0,showinfo:0,loop:this.options_.loop?1:0};if("undefined"!=typeof this.options_.autohide&&(e.autohide=this.options_.autohide),"undefined"!=typeof this.options_.cc_load_policy&&(e.cc_load_policy=this.options_.cc_load_policy),"undefined"!=typeof this.options_.ytControls&&(e.controls=this.options_.ytControls),"undefined"!=typeof this.options_.disablekb&&(e.disablekb=this.options_.disablekb),"undefined"!=typeof this.options_.color&&(e.color=this.options_.color),e.controls?"undefined"!=typeof this.options_.fs&&
88(e.fs=this.options_.fs):e.fs=0,this.options_.source.src.indexOf("end=")!==-1){var t=this.options_.source.src.match(/end=([0-9]*)/);this.options_.end=parseInt(t[1])}if("undefined"!=typeof this.options_.end&&(e.end=this.options_.end),"undefined"!=typeof this.options_.hl?e.hl=this.options_.hl:"undefined"!=typeof this.options_.language&&(e.hl=this.options_.language.substr(0,2)),"undefined"!=typeof this.options_.iv_load_policy&&(e.iv_load_policy=this.options_.iv_load_policy),"undefined"!=typeof this.options_.list?e.list=this.options_.list:this.url&&"undefined"!=typeof this.url.listId&&(e.list=this.url.listId),"undefined"!=typeof this.options_.listType&&(e.listType=this.options_.listType),"undefined"!=typeof this.options_.modestbranding&&(e.modestbranding=this.options_.modestbranding),"undefined"!=typeof this.options_.playlist&&(e.playlist=this.options_.playlist),"undefined"!=typeof this.options_.playsinline&&(e.playsinline=this.options_.playsinline), 89"undefined"!=typeof this.options_.rel&&(e.rel=this.options_.rel),"undefined"!=typeof this.options_.showinfo&&(e.showinfo=this.options_.showinfo),this.options_.source.src.indexOf("start=")!==-1){var n=this.options_.source.src.match(/start=([0-9]*)/);this.options_.start=parseInt(n[1])}if("undefined"!=typeof this.options_.start&&(e.start=this.options_.start),"undefined"!=typeof this.options_.theme&&(e.theme=this.options_.theme),"undefined"!=typeof this.options_.customVars){var r=this.options_.customVars;Object.keys(r).forEach(function(t){e[t]=r[t]})}this.activeVideoId=this.url?this.url.videoId:null,this.activeList=e.list;var i={videoId:this.activeVideoId,playerVars:e,events:{onReady:this.onPlayerReady.bind(this),onPlaybackQualityChange:this.onPlayerPlaybackQualityChange.bind(this),onPlaybackRateChange:this.onPlayerPlaybackRateChange.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onVolumeChange:this.onPlayerVolumeChange.bind(this),onError:this.onPlayerError.bind(this)}};"undefined"!=typeof this.options_.enablePrivacyEnhancedMode&&this.options_.enablePrivacyEnhancedMode&&(i.host="https://www.youtube-nocookie.com"),this.ytPlayer=new YT.Player(this.options_.techId,i)},onPlayerReady:function(){this.options_.muted&&this.ytPlayer.mute();var e=this.ytPlayer.getAvailablePlaybackRates();e.length>1&&(this.featuresPlaybackRate=!0),this.playerReady_=!0,this.triggerReady(),this.playOnReady?this.play():this.cueOnReady&&(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)},onPlayerPlaybackQualityChange:function(){},onPlayerPlaybackRateChange:function(){this.trigger("ratechange")},onPlayerStateChange:function(e){var t=e.data;if(t!==this.lastState&&!this.errorNumber)switch(this.lastState=t,t){case-1:this.trigger("loadstart"),this.trigger("loadedmetadata"),this.trigger("durationchange"),this.trigger("ratechange");break;case YT.PlayerState.ENDED:this.trigger("ended");break;case YT.PlayerState.PLAYING:this.trigger("timeupdate"),this.trigger("durationchange"),this.trigger("playing"),this.trigger("play"),this.isSeeking&&this.onSeeked();break;case YT.PlayerState.PAUSED:this.trigger("canplay"),this.isSeeking?this.onSeeked():this.trigger("pause");break;case YT.PlayerState.BUFFERING:this.player_.trigger("timeupdate"),this.player_.trigger("waiting")}},onPlayerVolumeChange:function(){this.trigger("volumechange")},onPlayerError:function(e){this.errorNumber=e.data,this.trigger("pause"),this.trigger("error")},error:function(){var e=1e3+this.errorNumber;switch(this.errorNumber){case 5:return{code:e,message:"Error while trying to play the video"};case 2:case 100:return{code:e,message:"Unable to find the video"};case 101:case 150:return{code:e,message:"Playback on other Websites has been disabled by the video owner."}}return{code:e,message:"YouTube unknown error ("+this.errorNumber+")"}},loadVideoById_:function(e){var t={videoId:e};this.options_.start&&(t.startSeconds=this.options_.start),this.options_.end&&(t.endEnd=this.options_.end),this.ytPlayer.loadVideoById(t)},cueVideoById_:function(e){var t={videoId:e};this.options_.start&&(t.startSeconds=this.options_.start),this.options_.end&&(t.endEnd=this.options_.end),this.ytPlayer.cueVideoById(t)},src:function(e){return e&&this.setSrc({src:e}),this.source},poster:function(){return i?null:this.poster_},setPoster:function(e){this.poster_=e},setSrc:function(e){e&&e.src&&(delete this.errorNumber,this.source=e,this.url=o.parseUrl(e.src),this.options_.poster||this.url.videoId&&(this.poster_="https://img.youtube.com/vi/"+this.url.videoId+"/0.jpg",this.trigger("posterchange"),this.checkHighResPoster()),this.options_.autoplay&&!i?this.isReady_?this.play():this.playOnReady=!0:this.activeVideoId!==this.url.videoId&&(this.isReady_?(this.cueVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId):this.cueOnReady=!0))},autoplay:function(){return this.options_.autoplay},setAutoplay:function(e){this.options_.autoplay=e},loop:function(){return this.options_.loop},setLoop:function(e){this.options_.loop=e},play:function(){this.url&&this.url.videoId&&(this.wasPausedBeforeSeek=!1,this.isReady_?(this.url.listId&&(this.activeList===this.url.listId?this.ytPlayer.playVideo():(this.ytPlayer.loadPlaylist(this.url.listId),this.activeList=this.url.listId)),this.activeVideoId===this.url.videoId?this.ytPlayer.playVideo():(this.loadVideoById_(this.url.videoId),this.activeVideoId=this.url.videoId)):(this.trigger("waiting"),this.playOnReady=!0))},pause:function(){this.ytPlayer&&this.ytPlayer.pauseVideo()},paused:function(){return!this.ytPlayer||this.lastState!==YT.PlayerState.PLAYING&&this.lastState!==YT.PlayerState.BUFFERING},currentTime:function(){return this.ytPlayer?this.ytPlayer.getCurrentTime():0},setCurrentTime:function(e){this.lastState===YT.PlayerState.PAUSED&&(this.timeBeforeSeek=this.currentTime()),this.isSeeking||(this.wasPausedBeforeSeek=this.paused()),this.ytPlayer.seekTo(e,!0),this.trigger("timeupdate"),this.trigger("seeking"),this.isSeeking=!0,this.lastState===YT.PlayerState.PAUSED&&this.timeBeforeSeek!==e&&(clearInterval(this.checkSeekedInPauseInterval),this.checkSeekedInPauseInterval=setInterval(function(){this.lastState===YT.PlayerState.PAUSED&&this.isSeeking?this.currentTime()!==this.timeBeforeSeek&&(this.trigger("timeupdate"),this.onSeeked()):clearInterval(this.checkSeekedInPauseInterval)}.bind(this),250))},seeking:function(){return this.isSeeking},seekable:function(){return this.ytPlayer?e.createTimeRange(0,this.ytPlayer.getDuration()):e.createTimeRange()},onSeeked:function(){clearInterval(this.checkSeekedInPauseInterval),this.isSeeking=!1,this.wasPausedBeforeSeek&&this.pause(),this.trigger("seeked")},playbackRate:function(){return this.ytPlayer?this.ytPlayer.getPlaybackRate():1},setPlaybackRate:function(e){this.ytPlayer&&this.ytPlayer.setPlaybackRate(e)},duration:function(){return this.ytPlayer?this.ytPlayer.getDuration():0},currentSrc:function(){return this.source&&this.source.src},ended:function(){return!!this.ytPlayer&&this.lastState===YT.PlayerState.ENDED},volume:function(){return this.ytPlayer?this.ytPlayer.getVolume()/100:1},setVolume:function(e){this.ytPlayer&&this.ytPlayer.setVolume(100*e)},muted:function(){return!!this.ytPlayer&&this.ytPlayer.isMuted()},setMuted:function(e){this.ytPlayer&&(this.muted(!0),e?this.ytPlayer.mute():this.ytPlayer.unMute(),this.setTimeout(function(){this.trigger("volumechange")},50))},buffered:function(){if(!this.ytPlayer||!this.ytPlayer.getVideoLoadedFraction)return e.createTimeRange();var t=this.ytPlayer.getVideoLoadedFraction()*this.ytPlayer.getDuration();return e.createTimeRange(0,t)},preload:function(){},load:function(){},reset:function(){},networkState:function(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 3:return 2;default:return 1}},readyState:function(){if(!this.ytPlayer)return 0;switch(this.ytPlayer.getPlayerState()){case-1:return 0;case 5:return 1;case 3:return 2;default:return 4}},supportsFullScreen:function(){return document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled},checkHighResPoster:function(){var e="https://img.youtube.com/vi/"+this.url.videoId+"/maxresdefault.jpg";try{var t=new Image;t.onload=function(){if("naturalHeight"in t){if(t.naturalHeight<=90||t.naturalWi
89dth<=120)return}else if(t.height<=90||t.width<=120)return;this.poster_=e,this.trigger("posterchange")}.bind(this),t.onerror=function(){},t.src=e}catch(n){}}});o.isSupported=function(){return!0},o.canPlaySource=function(e){return o.canPlayType(e.type)},o.canPlayType=function(e){return"video/youtube"===e},o.parseUrl=function(e){var t={videoId:null},n=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,r=e.match(n);r&&11===r[2].length&&(t.videoId=r[2]);var i=/[?&]list=([^#\&\?]+)/;return r=e.match(i),r&&r[1]&&(t.listId=r[1]),t},o.apiReadyQueue=[],"undefined"!=typeof document&&(n("https://www.youtube.com/iframe_api",t),r()),"undefined"!=typeof e.registerTech?e.registerTech("Youtube",o):e.registerComponent("Youtube",o)})},function(e,t,n){(function(e){"use strict";var t=e("[data-module]");t.each(function(t,r){var i=e(r).first(),a=i.attr("data-module"),o=n(58)("./"+a)["default"];new o(i)})}).call(t,n(3))},function(e,t,n){function r(e){return n(i(e))}function i(e){return a[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}var a={"./audio-player":59,"./audio-player.js":59,"./base":61,"./base.js":61,"./buy-show":62,"./buy-show.js":62,"./calendar-block":63,"./calendar-block.js":63,"./calendar-sticky":82,"./calendar-sticky.js":82,"./dom-ready":84,"./dom-ready.js":84,"./easter":88,"./easter.js":88,"./gmaps":89,"./gmaps.js":89,"./header-utils":91,"./header-utils.js":91,"./history-sticky":92,"./history-sticky.js":92,"./image-sticky":93,"./image-sticky.js":93,"./index":57,"./index.js":57,"./nav-sticky":94,"./nav-sticky.js":94,"./scroll-today":95,"./scroll-today.js":95,"./swiper-slider":96,"./swiper-slider.js":96,"./video-js":98,"./video-js.js":98};r.keys=function(){return Object.keys(a)},r.resolve=i,e.exports=r,r.id=58},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(60),s=r(o),l=function(){function t(n){i(this,t),this.$element=n,this.args=e.extend(!0,{},this.defaults(),Utils.options(n.attr("data-module-args"))),this.bind()}return a(t,[{key:"defaults",value:function(){return{}}}]),a(t,[{key:"bind",value:function(){var t=this;t.playerTrack={$parent:t.$element.find(".sn_audio_track"),track:t.$element.find(".sn_audio_track .track")[0]},t.playerControls={$parent:t.$element.find(".sn_audio_controls"),$play:t.$element.find(".sn_audio_controls .play"),$pause:t.$element.find(".sn_audio_controls .pause"),$stop:t.$element.find(".sn_audio_controls .stop")},t.playerTimes={$current:t.$element.find(".sn_audio_times .current"),$end:t.$element.find(".sn_audio_times .end")},t.audioElement=t.$element.find("audio")[0],t.changeTime=!0,t.mq=["lg","xl"],s["default"].create(t.playerTrack.track,{connect:[!0,!1],start:0,range:{min:0,max:100}}),t.playerControls.$play.on("click",function(n){n.preventDefault(),t.audioElement.play(),e(document).trigger("sn:pauseAudioPlayers",[t.$element])}),t.playerControls.$pause.on("click",function(e){e.preventDefault(),t.audioElement.pause()}),t.playerControls.$stop.on("click",function(e){e.preventDefault(),t.audioElement.pause(),t.audioElement.currentTime=0}),t.$element.on("click mousemove",function(e){e.preventDefault()}),t.audioElement.addEventListener("play",function(){t.playerControls.$parent.addClass("_playing")}),t.audioElement.addEventListener("pause",function(){t.playerControls.$parent.removeClass("_playing")}),t.audioElement.addEventListener("loadedmetadata",function(){var e=t.audioElement.duration;t.playerTrack.track.noUiSlider.updateOptions({range:{min:0,max:e}}),t.playerTimes.$end.text(t.getMinSec(e,!0))}),t.audioElement.addEventListener("loadeddata",function(){t.playerTrack.$parent.removeClass("_disabled")}),t.audioElement.addEventListener("timeupdate",function(){t.playerTimes.$current.text(t.getMinSec(t.audioElement.currentTime,!0)),t.changeTime&&t.playerTrack.track.noUiSlider.set(t.audioElement.currentTime),t.audioElement.currentTime>0?t.playerControls.$parent.addClass("_stoppable"):t.playerControls.$parent.removeClass("_stoppable")}),t.playerTrack.track.noUiSlider.on("start",function(e){t.changeTime=!1}),t.playerTrack.track.noUiSlider.on("end",function(){t.changeTime=!0}),t.playerTrack.track.noUiSlider.on("change",function(){t.changeTime=!1,t.audioElement.currentTime=t.playerTrack.track.noUiSlider.get(),t.changeTime=!0}
89),e(document).on("sn:pauseAudioPlayers",function(e,n){n[0]!=t.$element[0]&&t.audioElement.pause()}),t.checkLockSlides(),e(window).on("resize",function(){t.checkLockSlides()})}},{key:"getMinSec",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Math.floor(e/60),r=Math.floor(e%60);return r=r<10&&t?"0"+r:r,t?n+":"+r:{min:n,sec:r}}},{key:"checkLockSlides",value:function(){var t=this;t.$parentSwiper=t.$element.parents(".swiper-container"),t.$parentSwiper.length&&e.inArray(Utils.mq(),t.mq)!=-1?(t.$element.on("mouseenter",function(){e(document).trigger("sn:lockSwipes",[t.$parentSwiper])}),t.$element.on("mouseleave",function(){e(document).trigger("sn:unlockSwipes",[t.$parentSwiper])})):(t.$element.off("mouseenter"),t.$element.off("mouseleave"))}}]),t}();t["default"]=l}).call(t,n(3))},function(e,t,n){var r,i,a;/*! nouislider - 12.1.0 - 10/25/2018 */ 90!function(n){i=[],r=n,a="function"==typeof r?r.apply(t,i):r,!(void 0!==a&&(e.exports=a))}(function(){"use strict";function e(e){return"object"==typeof e&&"function"==typeof e.to&&"function"==typeof e.from}function t(e){e.parentElement.removeChild(e)}function n(e){return null!==e&&void 0!==e}function r(e){e.preventDefault()}function i(e){return e.filter(function(e){return!this[e]&&(this[e]=!0)},{})}function a(e,t){return Math.round(e/t)*t}function o(e,t){var n=e.getBoundingClientRect(),r=e.ownerDocument,i=r.documentElement,a=g(r);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(a.x=0),t?n.top+a.y-i.clientTop:n.left+a.x-i.clientLeft}function s(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function l(e,t,n){n>0&&(h(e,t),setTimeout(function(){p(e,t)},n))}function u(e){return Math.max(Math.min(e,100),0)}function c(e){return Array.isArray(e)?e:[e]}function d(e){e=String(e);var t=e.split(".");return t.length>1?t[1].length:0}function h(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function p(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function f(e,t){return e.classList?e.classList.contains(t):new RegExp("\\b"+t+"\\b").test(e.className)}function g(e){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(e.compatMode||""),r=t?window.pageXOffset:n?e.documentElement.scrollLeft:e.body.scrollLeft,i=t?window.pageYOffset:n?e.documentElement.scrollTop:e.body.scrollTop;return{x:r,y:i}}function m(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function v(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(n){}return e}function y(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function _(e,t){return 100/(t-e)}function b(e,t){return 100*t/(e[1]-e[0])}function T(e,t){return b(e,e[0]<0?t+Math.abs(e[0]):t-e[0])}function E(e,t){return t*(e[1]-e[0])/100+e[0]}function S(e,t){for(var n=1;e>=t[n];)n+=1;return n}function w(e,t,n){if(n>=e.slice(-1)[0])return 100;var r=S(n,e),i=e[r-1],a=e[r],o=t[r-1],s=t[r];return o+T([i,a],n)/_(o,s)}function C(e,t,n){if(n>=100)return e.slice(-1)[0];var r=S(n,t),i=e[r-1],a=e[r],o=t[r-1],s=t[r];return E([i,a],(n-o)*_(o,s))}function k(e,t,n,r){if(100===r)return r;var i=S(r,e),o=e[i-1],s=e[i];return n?r-o>(s-o)/2?s:o:t[i-1]?e[i-1]+a(r-e[i-1],t[i-1]):r}function D(e,t,n){var r;if("number"==typeof t&&(t=[t]),!Array.isArray(t))throw new Error("noUiSlider ("+ee+"): 'range' contains invalid value.");if(r="min"===e?0:"max"===e?100:parseFloat(e),!s(r)||!s(t[0]))throw new Error("noUiSlider ("+ee+"): 'range' value isn't numeric.");n.xPct.push(r),n.xVal.push(t[0]),r?n.xSteps.push(!isNaN(t[1])&&t[1]):isNaN(t[1])||(n.xSteps[0]=t[1]),n.xHighestCompleteStep.push(0)}function x(e,t,n){if(!t)return!0;n.xSteps[e]=b([n.xVal[e],n.xVal[e+1]],t)/_(n.xPct[e],n.xPct[e+1]);var r=(n.xVal[e+1]-n.xVal[e])/n.xNumSteps[e],i=Math.ceil(Number(r.toFixed(3))-1),a=n.xVal[e]+n.xNumSteps[e]*i;n.xHighestCompleteStep[e]=a}function A(e,t,n){this.xPct=[],this.xVal=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=t;var r,i=[];for(r in e)e.hasOwnProperty(r)&&i.push([e[r],r]);for(i.length&&"object"==typeof i[0][0]?i.sort(function(e,t){return e[0][0]-t[0][0]}):i.sort(function(e,t){return e[0]-t[0]}),r=0;r<i.length;r++)D(i[r][1],i[r][0],this);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)x(r,this.xNumSteps[r],this)}function I(t){if(e(t))return!0;throw new Error("noUiSlider ("+ee+"): 'format' requires 'to' and 'from' methods.")}function O(e,t){if(!s(t))throw new Error("noUiSlider ("+ee+"): 'step' is not numeric.");e.singleStep=t}function P(e,t){if("object"!=typeof t||Array.isArray(t))throw new Error("noUiSlider ("+ee+"): 'range' is not an object.");if(void 0===t.min||void 0===t.max)throw new Error("noUiSlider ("+ee+"): Missing 'min' or 'max' in 'range'.");if(t.min===t.max)throw new Error("noUiSlider ("+ee+"): 'range' 'min' and 'max' cannot be equal.");e.spectrum=new A(t,e.snap,e.singleStep)}function M(e,t){if(t=c(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider ("+ee+"): 'start' option is incorrect.");e.handles=t.length,e.start=t}function R(e,t){if(e.snap=t,"boolean"!=typeof t)throw new Error("noUiSlider ("+ee+"): 'snap' option must be a boolean.")}function L(e,t){if(e.animate=t,"boolean"!=typeof t)throw new Error("noUiSlider ("+ee+"): 'animate' option must be a boolean.")}function N(e,t){if(e.animationDuration=t,"number"!=typeof t)throw new Error("noUiSlider ("+ee+"): 'animationDuration' option must be a number.")}function U(e,t){var n,r=[!1];if("lower"===t?t=[!0,!1]:"upper"===t&&(t=[!1,!0]),t===!0||t===!1){for(n=1;n<e.handles;n++)r.push(t);r.push(!1)}else{if(!Array.isArray(t)||!t.length||t.length!==e.handles+1)throw new Error("noUiSlider ("+ee+"): 'connect' option doesn't match handle count.");r=t}e.connect=r}function H(e,t){switch(t){case"horizontal":e.ort=0;break;case"vertical":e.ort=1;break;default:throw new Error("noUiSlider ("+ee+"): 'orientation' option is invali
90d.")}}function j(e,t){if(!s(t))throw new Error("noUiSlider ("+ee+"): 'margin' option must be numeric.");if(0!==t&&(e.margin=e.spectrum.getMargin(t),!e.margin))throw new Error("noUiSlider ("+ee+"): 'margin' option is only supported on linear sliders.")}function B(e,t){if(!s(t))throw new Error("noUiSlider ("+ee+"): 'limit' option must be numeric.");if(e.limit=e.spectrum.getMargin(t),!e.limit||e.handles<2)throw new Error("noUiSlider ("+ee+"): 'limit' option is only supported on linear sliders with 2 or more handles.")}function F(e,t){if(!s(t)&&!Array.isArray(t))throw new Error("noUiSlider ("+ee+"): 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(t)&&2!==t.length&&!s(t[0])&&!s(t[1]))throw new Error("noUiSlider ("+ee+"): 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==t){if(Array.isArray(t)||(t=[t,t]),e.padding=[e.spectrum.getMargin(t[0]),e.spectrum.getMargin(t[1])],e.padding[0]===!1||e.padding[1]===!1)throw new Error("noUiSlider ("+ee+"): 'padding' option is only supported on linear sliders.");if(e.padding[0]<0||e.padding[1]<0)throw new Error("noUiSlider ("+ee+"): 'padding' option must be a positive number(s).");if(e.padding[0]+e.padding[1]>=100)throw new Error("noUiSlider ("+ee+"): 'padding' option must not exceed 100% of the range.")}}function V(e,t){switch(t){case"ltr":e.dir=0;break;case"rtl":e.dir=1;break;default:throw new Error("noUiSlider ("+ee+"): 'direction' option was not recognized.")}}function W(e,t){if("string"!=typeof t)throw new Error("noUiSlider ("+ee+"): 'behaviour' must be a string containing options.");var n=t.indexOf("tap")>=0,r=t.indexOf("drag")>=0,i=t.indexOf("fixed")>=0,a=t.indexOf("snap")>=0,o=t.indexOf("hover")>=0,s=t.indexOf("unconstrained")>=0;if(i){if(2!==e.handles)throw new Error("noUiSlider ("+ee+"): 'fixed' behaviour must be used with 2 handles");j(e,e.start[1]-e.start[0])}if(s&&(e.margin||e.limit))throw new Error("noUiSlider ("+ee+"): 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:n||a,drag:r,fixed:i,snap:a,hover:o,unconstrained:s}}function z(e,t){if(t!==!1)if(t===!0){e.tooltips=[];for(var n=0;n<e.handles;n++)e.tooltips.push(!0)}else{if(e.tooltips=c(t),e.tooltips.length!==e.handles)throw new Error("noUiSlider ("+ee+"): must pass a formatter for all handles.");e.tooltips.forEach(function(e){if("boolean"!=typeof e&&("object"!=typeof e||"function"!=typeof e.to))throw new Error("noUiSlider ("+ee+"): 'tooltips' must be passed a formatter or 'false'.")})}}function $(e,t){e.ariaFormat=t,I(t)}function q(e,t){e.format=t,I(t)}function G(e,t){if(e.keyboardSupport=t,"boolean"!=typeof t)throw new Error("noUiSlider ("+ee+"): 'keyboardSupport' option must be a boolean.")}function Y(e,t){e.documentElement=t}function X(e,t){if("string"!=typeof t&&t!==!1)throw new Error("noUiSlider ("+ee+"): 'cssPrefix' must be a string or `false`.");e.cssPrefix=t}function K(e,t){if("object"!=typeof t)throw new Error("noUiSlider ("+ee+"): 'cssClasses' must be an object.");if("string"==typeof e.cssPrefix){e.cssClasses={};for(var n in t)t.hasOwnProperty(n)&&(e.cssClasses[n]=e.cssPrefix+t[n])}else e.cssClasses=t}function Q(e){var t={margin:0,limit:0,padding:0,animate:!0,animationDuration:300,ariaFormat:te,format:te},r={step:{r:!1,t:O},start:{r:!0,t:M},connect:{r:!0,t:U},direction:{r:!0,t:V},snap:{r:!1,t:R},animate:{r:!1,t:L},animationDuration:{r:!1,t:N},range:{r:!0,t:P},orientation:{r:!1,t:H},margin:{r:!1,t:j},limit:{r:!1,t:B},padding:{r:!1,t:F},behaviour:{r:!0,t:W},ariaFormat:{r:!1,t:$},format:{r:!1,t:q},tooltips:{r:!1,t:z},keyboardSupport:{r:!0,t:G},documentElement:{r:!1,t:Y},cssPrefix:{r:!0,t:X}
90,cssClasses:{r:!0,t:K}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"}};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(r).forEach(function(a){if(!n(e[a])&&void 0===i[a]){if(r[a].r)throw new Error("noUiSlider ("+ee+"): '"+a+"' is required.");return!0}r[a].t(t,n(e[a])?e[a]:i[a])}),t.pips=e.pips;var a=document.createElement("div"),o=void 0!==a.style.msTransform,s=void 0!==a.style.transform;t.transformRule=s?"transform":o?"msTransform":"webkitTransform";var l=[["left","top"],["right","bottom"]];return t.style=l[t.dir][t.ort],t}function Z(e,n,a){function s(e,t){var n=Ce.createElement("div");return t&&h(n,t),e.appendChild(n),n}function d(e,t){var r=s(e,n.cssClasses.origin),i=s(r,n.cssClasses.handle);return i.setAttribute("data-handle",t),n.keyboardSupport&&i.setAttribute("tabindex","0"),i.setAttribute("role","slider"),i.setAttribute("aria-orientation",n.ort?"vertical":"horizontal"),0===t?h(i,n.cssClasse
90s.handleLower):t===n.handles-1&&h(i,n.cssClasses.handleUpper),r}function _(e,t){return!!t&&s(e,n.cssClasses.connect)}function b(e,t){var r=s(t,n.cssClasses.connects);de=[],he=[],he.push(_(r,e[0]));for(var i=0;i<n.handles;i++)de.push(d(t,i)),be[i]=i,he.push(_(r,e[i+1]))}function T(e){return h(e,n.cssClasses.target),0===n.dir?h(e,n.cssClasses.ltr):h(e,n.cssClasses.rtl),0===n.ort?h(e,n.cssClasses.horizontal):h(e,n.cssClasses.vertical),s(e,n.cssClasses.base)}function E(e,t){return!!n.tooltips[t]&&s(e.firstChild,n.cssClasses.tooltip)}function S(){var e=de.map(E);V("update",function(t,r,i){if(e[r]){var a=t[r];n.tooltips[r]!==!0&&(a=n.tooltips[r].to(i[r])),e[r].innerHTML=a}})}function w(){V("update",function(e,t,r,i,a){be.forEach(function(e){var t=de[e],i=q(_e,e,0,!0,!0,!0),o=q(_e,e,100,!0,!0,!0),s=a[e],l=n.ariaFormat.to(r[e]);i=Ee.fromStepping(i).toFixed(1),o=Ee.fromStepping(o).toFixed(1),s=Ee.fromStepping(s).toFixed(1),t.children[0].setAttribute("aria-valuemin",i),t.children[0].setAttribute("aria-valuemax",o),t.children[0].setAttribute("aria-valuenow",s),t.children[0].setAttribute("aria-valuetext",l)})})}function C(e,t,n){if("range"===e||"steps"===e)return Ee.xVal;if("count"===e){if(t<2)throw new Error("noUiSlider ("+ee+"): 'values' (>= 2) required for mode 'count'.");var r=t-1,i=100/r;for(t=[];r--;)t[r]=r*i;t.push(100),e="positions"}return"positions"===e?t.map(function(e){return Ee.fromStepping(n?Ee.getStep(e):e)}):"values"===e?n?t.map(function(e){return Ee.fromStepping(Ee.getStep(Ee.toStepping(e)))}):t:void 0}function k(e,t,n){function r(e,t){return(e+t).toFixed(7)/1}var a={},o=Ee.xVal[0],s=Ee.xVal[Ee.xVal.length-1],l=!1,u=!1,c=0;return n=i(n.slice().sort(function(e,t){return e-t})),n[0]!==o&&(n.unshift(o),l=!0),n[n.length-1]!==s&&(n.push(s),u=!0),n.forEach(function(i,o){var s,d,h,p,f,g,m,v,y,_,b=i,T=n[o+1],E="steps"===t;if(E&&(s=Ee.xNumSteps[o]),s||(s=T-b),b!==!1&&void 0!==T)for(s=Math.max(s,1e-7),d=b;d<=T;d=r(d,s)){for(p=Ee.toStepping(d),f=p-c,v=f/e,y=Math.round(v),_=f/y,h=1;h<=y;h+=1)g=c+h*_,a[g.toFixed(5)]=[Ee.fromStepping(g),0];m=n.indexOf(d)>-1?Ie:E?Oe:Ae,!o&&l&&(m=0),d===T&&u||(a[p.toFixed(5)]=[d,m]),c=p}}),a}function D(e,t,r){function i(e,t){var r=t===n.cssClasses.value,i=r?c:d,a=r?l:u;return t+" "+i[n.ort]+" "+a[e]}function a(e,a,l){if(l=t?t(a,l):l,l!==xe){var u=s(o,!1);u.className=i(l,n.cssClasses.marker),u.style[n.style]=e+"%",l>Ae&&(u=s(o,!1),u.className=i(l,n.cssClasses.value),u.setAttribute("data-value",a),u.style[n.style]=e+"%",u.innerHTML=r.to(a))}}var o=Ce.createElement("div"),l=[];l[Ae]=n.cssClasses.valueNormal,l[Ie]=n.cssClasses.valueLarge,l[Oe]=n.cssClasses.valueSub;var u=[];u[Ae]=n.cssClasses.markerNormal,u[Ie]=n.cssClasses.markerLarge,u[Oe]=n.cssClasses.markerSub;
90var c=[n.cssClasses.valueHorizontal,n.cssClasses.valueVertical],d=[n.cssClasses.markerHorizontal,n.cssClasses.markerVertical];return h(o,n.cssClasses.pips),h(o,0===n.ort?n.cssClasses.pipsHorizontal:n.cssClasses.pipsVertical),Object.keys(e).forEach(function(t){a(t,e[t][0],e[t][1])}),o}function x(){fe&&(t(fe),fe=null)}function A(e){x();var t=e.mode,n=e.density||1,r=e.filter||!1,i=e.values||!1,a=e.stepped||!1,o=C(t,i,a),s=k(n,t,o),l=e.format||{to:Math.round};return fe=ye.appendChild(D(s,r,l))}function I(){var e=ce.getBoundingClientRect(),t="offset"+["Width","Height"][n.ort];return 0===n.ort?e.width||ce[t]:e.height||ce[t]}function O(e,t,r,i){var a=function(a){return!!(a=P(a,i.pageOffset,i.target||t))&&(!(ye.hasAttribute("disabled")&&!i.doNotReject)&&(!(f(ye,n.cssClasses.tap)&&!i.doNotReject)&&(!(e===ge.start&&void 0!==a.buttons&&a.buttons>1)&&((!i.hover||!a.buttons)&&(ve||a.preventDefault(),a.calcPoint=a.points[n.ort],void r(a,i))))))},o=[];return e.split(" ").forEach(function(e){t.addEventListener(e,a,!!ve&&{passive:!0}),o.push([e,a])}),o}function P(e,t,n){var r,i,a=0===e.type.indexOf("touch"),o=0===e.type.indexOf("mouse"),s=0===e.type.indexOf("pointer");if(0===e.type.indexOf("MSPointer")&&(s=!0),a){var l=function(e){return e.target===n||n.contains(e.target)};if("touchstart"===e.type){var u=Array.prototype.filter.call(e.touches,l);if(u.length>1)return!1;r=u[0].pageX,i=u[0].pageY}else{var c=Array.prototype.find.call(e.changedTouches,l);if(!c)return!1;r=c.pageX,i=c.pageY}}return t=t||g(Ce),(o||s)&&(r=e.clientX+t.x,i=e.clientY+t.y),e.pageOffset=t,e.points=[r,i],e.cursor=o||s,e}function M(e){var t=e-o(ce,n.ort),r=100*t/I();return r=u(r),n.dir?100-r:r}function R(e){var t=100,n=!1;return de.forEach(function(r,i){if(!r.hasAttribute("disabled")){var a=Math.abs(_e[i]-e);(a<t||100===a&&100===t)&&(n=i,t=a)}}),n}function L(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&U(e,t)}function N(e,t){if(navigator.appVersion.indexOf("MSIE 9")===-1&&0===e.buttons&&0!==t.buttonsProperty)return U(e,t);var r=(n.dir?-1:1)*(e.calcPoint-t.startCalcPoint),i=100*r/t.baseSize;Y(r>0,i,t.locations,t.handleNumbers)}function U(e,t){t.handle&&(p(t.handle,n.cssClasses.active),Te-=1),t.listeners.forEach(function(e){ke.removeEventListener(e[0],e[1])}),0===Te&&(p(ye,n.cssClasses.drag),Z(),e.cursor&&(De.style.cursor="",De.removeEventListener("selectstart",r))),t.handleNumbers.forEach(function(e){z("change",e),z("set",e),z("end",e)})}function H(e,t){var i;if(1===t.handleNumbers.length){var a=de[t.handleNumbers[0]];if(a.hasAttribute("disabled"))return!1;
vendor: 4,096 bytes, line 90
90i=a.children[0],Te+=1,h(i,n.cssClasses.active)}e.stopPropagation();var o=[],s=O(ge.move,ke,N,{target:e.target,handle:i,listeners:o,startCalcPoint:e.calcPoint,baseSize:I(),pageOffset:e.pageOffset,handleNumbers:t.handleNumbers,buttonsProperty:e.buttons,locations:_e.slice()}),l=O(ge.end,ke,U,{target:e.target,handle:i,listeners:o,doNotReject:!0,handleNumbers:t.handleNumbers}),u=O("mouseout",ke,L,{target:e.target,handle:i,listeners:o,doNotReject:!0,handleNumbers:t.handleNumbers});o.push.apply(o,s.concat(l,u)),e.cursor&&(De.style.cursor=getComputedStyle(e.target).cursor,de.length>1&&h(ye,n.cssClasses.drag),De.addEventListener("selectstart",r,!1)),t.handleNumbers.forEach(function(e){z("start",e)})}function j(e){e.stopPropagation();var t=M(e.calcPoint),r=R(t);return r!==!1&&(n.events.snap||l(ye,n.cssClasses.tap,n.animationDuration),J(r,t,!0,!0),Z(),z("slide",r,!0),z("update",r,!0),z("change",r,!0),z("set",r,!0),void(n.events.snap&&H(e,{handleNumbers:[r]})))}function B(e){var t=M(e.calcPoint),n=Ee.getStep(t),r=Ee.fromStepping(n);Object.keys(we).forEach(function(e){"hover"===e.split(".")[0]&&we[e].forEach(function(e){e.call(pe,r)})})}function F(e){e.fixed||de.forEach(function(e,t){O(ge.start,e.children[0],H,{handleNumbers:[t]})}),e.tap&&O(ge.start,ce,j,{}),e.hover&&O(ge.move,ce,B,{hover:!0}),e.drag&&he.forEach(function(t,r){if(t!==!1&&0!==r&&r!==he.length-1){var i=de[r-1],a=de[r],o=[t];h(t,n.cssClasses.draggable),e.fixed&&(o.push(i.children[0]),o.push(a.children[0])),o.forEach(function(e){O(ge.start,e,H,{handles:[i,a],handleNumbers:[r-1,r]})})}})}function V(e,t){we[e]=we[e]||[],we[e].push(t),"update"===e.split(".")[0]&&de.forEach(function(e,t){z("update",t)})}function W(e){var t=e&&e.split(".")[0],n=t&&e.substring(t.length);Object.keys(we).forEach(function(e){var r=e.split(".")[0],i=e.substring(r.length);t&&t!==r||n&&n!==i||delete we[e]})}function z(e,t,r){Object.keys(we).forEach(function(i){var a=i.split(".")[0];e===a&&we[i].forEach(function(e){e.call(pe,Se.map(n.format.to),t,Se.slice(),r||!1,_e.slice())})})}function $(e){return e+"%"}function q(e,t,r,i,a,o){return de.length>1&&!n.events.unconstrained&&(i&&t>0&&(r=Math.max(r,e[t-1]+n.margin)),a&&t<de.length-1&&(r=Math.min(r,e[t+1]-n.margin))),de.length>1&&n.limit&&(i&&t>0&&(r=Math.min(r,e[t-1]+n.limit)),a&&t<de.length-1&&(r=Math.max(r,e[t+1]-n.limit))),n.padding&&(0===t&&(r=Math.max(r,n.padding[0])),t===de.length-1&&(r=Math.min(r,100-n.padding[1]))),r=Ee.getStep(r),r=u(r),!(r===e[t]&&!o)&&r}function G(e,t){var r=n.ort;return(r?t:e)+", "+(r?e:t)}function Y(e,t,n,r){var i=n.slice(),a=[!e,e],o=[e,!e];r=r.slice(),e&&r.reverse(),r.length>1?r.forEach(function(e,n){var r=q(i,e,i[e]+t,a[n],o[n],!1);r===!1?t=0:(t=r-i[e],i[e]=r)}):a=o=[!0];var s=!1;r.forEach(function(e,r){s=J(e,n[e]+t,a[r],o[r])||s}),s&&r.forEach(function(e){z("update",e),z("slide",e)})}function X(e,t){return n.dir?100-e-t:e}function K(e,t){_e[e]=t,Se[e]=Ee.fromStepping(t);var r="translate("+G($(X(t,0)-Pe),"0")+")";de[e].style[n.transformRule]=r,te(e),te(e+1)}function Z(){be.forEach(function(e){var t=_e[e]>50?-1:1,n=3+(de.length+t*e);de[e].style.zIndex=n})}function J(e,t,n,r){return t=q(_e,e,t,n,r,!1),t!==!1&&(K(e,t),!0)}function te(e){if(he[e]){var t=0,r=100;0!==e&&(t=_e[e-1]),e!==he.length-1&&(r=_e[e]);var i=r-t,a="translate("+G($(X(t,i)),"0")+")",o="scale("+G(i/100,"1")+")";he[e].style[n.transformRule]=a+" "+o}}function ne(e,t){return null===e||e===!1||void 0===e?_e[t]:("number"==typeof e&&(e=String(e)),e=n.format.from(e),e=Ee.toStepping(e),e===!1||isNaN(e)?_e[t]:e)}function re(e,t){var r=c(e),i=void 0===_e[0];t=void 0===t||!!t,n.animate&&!i&&l(ye,n.cssClasses.tap,n.animationDuration),be.forEach(function(e){J(e,ne(r[e],e),!0,!1)}),be.forEach(function(e){J(e,_e[e],!0,!0)}),Z(),be.forEach(function(e){z("update",e),null!==r[e]&&t&&z("set",e)})}function ie(e){re(n.start,e)}function ae(e,t,n){var r=[];if(e=Number(e),!(e>=0&&e<be.length))throw new Error("noUiSlider ("+ee+"): invalid handle number, got: "+e);for(var i=0;i<be.length;i++)r[i]=null;r[e]=t,re(r,n)}function oe(){var e=Se.map(n.format.to);return 1===e.length?e[0]:e}
90function se(){for(var e in n.cssClasses)n.cssClasses.hasOwnProperty(e)&&p(ye,n.cssClasses[e]);for(;ye.firstChild;)ye.removeChild(ye.firstChild);delete ye.noUiSlider}function le(){return _e.map(function(e,t){var n=Ee.getNearbySteps(e),r=Se[t],i=n.thisStep.step,a=null;i!==!1&&r+i>n.stepAfter.startValue&&(i=n.stepAfter.startValue-r),a=r>n.thisStep.startValue?n.thisStep.step:n.stepBefore.step!==!1&&r-n.stepBefore.highestStep,100===e?i=null:0===e&&(a=null);var o=Ee.countStepDecimals();return null!==i&&i!==!1&&(i=Number(i.toFixed(o))),null!==a&&a!==!1&&(a=Number(a.toFixed(o))),[a,i]})}function ue(e,t){var r=oe(),i=["margin","limit","padding","range","animate","snap","step","format"];i.forEach(function(t){void 0!==e[t]&&(a[t]=e[t])});var o=Q(a);i.forEach(function(t){void 0!==e[t]&&(n[t]=o[t])}),Ee=o.spectrum,n.margin=o.margin,n.limit=o.limit,n.padding=o.padding,n.pips&&A(n.pips),_e=[],re(e.start||r,t)}var ce,de,he,pe,fe,ge=m(),me=y(),ve=me&&v(),ye=e,_e=[],be=[],Te=0,Ee=n.spectrum,Se=[],we={},Ce=e.ownerDocument,ke=n.documentElement||Ce.documentElement,De=Ce.body,xe=-1,Ae=0,Ie=1,Oe=2,Pe="rtl"===Ce.dir||1===n.ort?0:100;return ce=T(ye),b(n.connect,ce),F(n.events),re(n.start),pe={destroy:se,steps:le,on:V,off:W,get:oe,set:re,setHandle:ae,reset:ie,__moveHandles:function(e,t,n){Y(e,t,_e,n)},options:a,updateOptions:ue,target:ye,removePips:x,pips:A},n.pips&&A(n.pips),n.tooltips&&S(),w(),pe}function J(e,t){if(!e||!e.nodeName)throw new Error("noUiSlider ("+ee+"): create requires a single element, got: "+e);if(e.noUiSlider)throw new Error("noUiSlider ("+ee+"): Slider was already initialized.");var n=Q(t,e),r=Z(e,n,t);return e.noUiSlider=r,r}var ee="12.1.0";A.prototype.getMargin=function(e){var t=this.xNumSteps[0];if(t&&e/t%1!==0)throw new Error("noUiSlider ("+ee+"): 'limit', 'margin' and 'padding' must be divisible by step.");return 2===this.xPct.length&&b(this.xVal,e)},A.prototype.toStepping=function(e){return e=w(this.xVal,this.xPct,e)},A.prototype.fromStepping=function(e){return C(this.xVal,this.xPct,e)},A.prototype.getStep=function(e){return e=k(this.xPct,this.xSteps,this.snap,e)},A.prototype.getNearbySteps=function(e){var t=S(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},A.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(d);return Math.max.apply(null,e)},A.prototype.convert=function(e){return this.getStep(this.toStepping(e))};var te={to:function(e){return void 0!==e&&e.toFixed(2)},from:Number};return{__spectrum:A,version:ee,create:J}})},function(e,t,n){(function(e){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function t(r){n(this,t),this.$element=r,this.args=e.extend(!0,{},this.defaults(),Utils.options(r.attr("data-module-args"))),this.bind()}return r(t,[{key:"defaults",value:function(){return{}}}]),r(t,[{key:"bind",value:function(){}}]),t}();t["default"]=i}).call(t,n(3))},function(e,t,n){(function(e){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function t(r){n(this,t),this.$element=r,this.args=e.extend(!0,{},this.defaults(),Utils.options(r.attr("data-module-args"))),this.bind()}return r(t,[{key:"defaults",value:function(){return{}}}]),r(t,[{key:"bind",value:function(){var t=this;t.$dropdown=t.$element.find(".dropdown"),t.$dropdownMenu=t.$element.find(".dropdown-menu"),t.$dropdownItems=t.$element.find(".dropdown-menu .dropdown_in"),t.$dropdownToggle=t.$element.find(".dropdown-toggle"),t.$dropdown.on("shown.bs.dropdown hidden.bs.dropdown",function(){e(document).trigger("sn:bannerBuySh
90ow")}),e(".sn_dropdown_banner_buy").on("click",function(n){n.preventDefault(),n.stopPropagation(),t.$dropdown.hasClass("show")||t.$dropdownToggle.dropdown("toggle"),e("body,html").animate({scrollTop:t.$element.offset().top-e(".sn_header").outerHeight()},800)})}}]),t}();t["default"]=i}).call(t,n(3))},function(e,t,n){(function(e,r){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(64),l=n(72),u=i(l),c=n(73),d=i(c),h=n(74),p=i(h),f=n(75),g=i(f),m=n(76),v=i(m);n(77),n(78),n(81);var y=function(){function t(n){a(this,t),this.$element=n,this.args=e.extend(!0,{},this.defaults(),Utils.options(n.attr("data-module-args"))),this.bind()}return o(t,[{key:"defaults",value:function(){return{features:{strings:{at:""},disabled_dates:""},params:{plugins:[u["default"],d["default"],p["default"]],locales:[g["default"],v["default"]],locale:"it",initialView:"dayGridMonth",fixedWeekCount:!1,contentHeight:"auto",headerToolbar:{left:"",center:"",right:""},dayHeaderFormat:{weekday:"long"},eventContent:function(e){var t=e.event.extendedProps.place_value,n=document.createElement("div"),r=document.createElement("div"),i=document.createElement("div"),a=document.createElement("div");!e.event.extendedProps.image||"theater_malibran"!=t&&"theater_fenice"!=t||(i=document.createElement("img"),i.setAttribute("src",e.event.extendedProps.image),i.setAttribute("loading","lazy"),r.innerHTML=i.outerHTML,r.classList.add("_ratio")),a.classList.add("_title"),a.innerHTML=e.event.title,n.appendChild(r),n.appendChild(a),"theater_malibran"!=t&&"theater_fenice"!=t||n.classList.add("_border");var o=[n];return{domNodes:o}},firstDay:1,buttonText:{month:"Calendario",list:"Lista"},events:""}}}}]),o(t,[{key:"bind",value:function(){function t(){var e=(new Date).getFullYear(),t=e+1;return e+":"+t}var n=this,i=this,a=this.$element.find(".sn_calendar_block_table").get(0);""===i.args.params.events?i.args.params.events=[]:i.args.params.events=JSON.parse(i.args.params.events);var o=new s.Calendar(a,i.args.params),l=document.documentElement.lang;"en-US"==l&&o.setOption("locale","en-gb"),o.render(),this.addEventClass(o),o.on("datesSet",function(){n.addEventClass(o)}),o.on("eventClick",function(e){var t="",n=e.event.extendedProps.entrance,r=e.event.extendedProps.turn;t="free"==n?"it-IT"==l?"Ingresso libero":"Free admission":"book"==n?"it-IT"==l?"Prenota":"Book":"donation"==n?"it-IT"==l?"Donazione":"Donation":"invitation"==n?"it-IT"==l?"Su invito":"By invitation only":"subscription"==n?"it-IT"==l?"Iscrizione":"Subscribe":"school"==n?"it-IT"==l?"Riservato alle scuole":"Reserved for schools":"tournee"==n?"it-IT"==l?"Scopri di più":"Find out more":"it-IT"==l?"Acquista":"Buy tickets";var a={image:e.event.extendedProps.image,category:e.event.extendedProps.category,title:e.event.title,date:e.event.start,place:e.event.extendedProps.place,other_place:e.event.extendedProps.other_place,entrance:t,link:e.event.extendedProps.link,next_events:e.event.extendedProps.next_events,turn:r};a.date=i.formatDate(a.date,l).charAt(0).toUpperCase()+i.formatDate(a.date,l).slice(1),i.openPopup(a)}),this.closePopup(),this.viewSwitch(o),this.activeDay(),this.oddEvenColor();var u=this.$element.find(".ssnt-select2");u.each(function(e,t){if(t.id){var n=r("select.ssnt-select2[id="+t.id+"]");if(i.initSelect(n,l,o),"select_month"==t.id){var a=new Date,s=a.getMonth();n.val(s).trigger("change")}}});var c=[];i.args.features&&i.args.features.disabled_dates&&(c=Object.values(JSON.parse(i.args.features.disabled_dates))),r(".datepicker").datepicker({defaultDate:d,dateFormat:"mm-dd-yy",changeMonth:!0,changeYear:!0,yearRange:t(),showButtonPanel:!0,prevText:"",nextText:"",prevIcon:"ui-icon-circle-triangle-w",nextIcon:"ui-icon-circle-triangle-e",beforeShow:function(e,t){setTimeout(function(){t.dpDiv.css({top:r(".datepicker").offset().top,left
90:r(".datepicker").offset().left})},0)},beforeShowDay:function(e){r.datepicker.formatDate("yy-mm-dd",e);return[!0,""]},onSelect:function(t,n){var r=e(document).find('[data-list-id="'+t+'"]');if(r.length){var i=r.offset().top;e("html,body").animate({scrollTop:i-70},"fast")}else console.log("No event found")},onChangeMonthYear:function(t,n,a){var s=new Date(t,n-1,1);i.updateList(s);var u=r.datepicker.regional["it-IT"===l?"it":""],c=u.monthNames[n-1];"it-IT"===l&&(c=c.charAt(0).toLowerCase()+c.slice(1)),e(".sn_calendar_block_list_month_name").text(c+" "+t);var d=(parseInt(n)+1).toString().padStart(2,"0"),h=t+"-"+d+"-01";o.gotoDate(h),e("#select_month").val(n-1),e("#select_month").trigger("change"),e("#select_year").val(t),e("#select_year").trigger("change")}});var d=new Date,h=d.getFullYear(),p=d.getMonth()+1,f=r.datepicker.regional["it-IT"===l?"it":""],g=f.monthNames[p-1];"it-IT"===l&&(g=g.charAt(0).toLowerCase()+g.slice(1)),r(".sn_calendar_block_list_month_name").text(g+" "+h),"it-IT"==l?r.datepicker.setDefaults(r.datepicker.regional.it):r.datepicker.setDefaults(r.datepicker.regional[""]),r(".btn-calendar").on("click",function(){r(".datepicker").trigger("focus")})}},{key:"initSelect",value:function(e,t,n){function i(){r("select.ssnt-select2[id='select_year']").on("change",function(e){l=!0;var t=r(this).val(),i=r("select.ssnt-select2[id='select_month']").val(),a=new Date(t,i,1),s=(parseInt(i)+1).toString().padStart(2,"0"),u=t+"-"+s+"-01";n.gotoDate(u),r(".datepicker").datepicker("setDate",a),o.updateList(a),setTimeout(function(){l=!1},100)})}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=t.val(),r=[];r.push(n);for(var i=parseInt(n)+1,a=0;a<11;a++)12==i&&(i=0),r.push(i+""),i++;return r}var o=this,s=e.parent(),l=!1;e.select2({theme:"default",language:t,width:"100%",placeholder:null,dropdownParent:s,allowClear:!1,minimumResultsForSearch:1/0,sorter:function(e){return e.sort(function(e,t){return a().indexOf(e.id)-a().indexOf(t.id)})}}),r("select.ssnt-select2[id='select_month']").on("change",function(e){var t=r(this).val(),i=r("select.ssnt-select2[id='select_year']").val(),a=(new Date).getFullYear(),s=(new Date).getMonth();l||(i==a&&t<s?(i=a+1,r("select.ssnt-select2[id='select_year']").val(i).trigger("change.select2")):i>a&&t>=s&&(i=a,r("select.ssnt-select2[id='select_year']").val(i).trigger("change.select2")));var u=new Date(i,t,1),c=(parseInt(t)+1).toString().padStart(2,"0"),d=i+"-"+c+"-01";n.gotoDate(d),r(".datepicker").datepicker("setDate",u),o.updateList(u)}),i()}},{key:"formatDate",value:function(e,t){var n=this;return e instanceof Date&&!isNaN(e)||(e=new Date(e)),e.toLocaleString(t,{weekday:"long"})+" "+("0"+e.getDate()).slice(-2)+"/"+("0"+(e.getMonth()+1)).slice(-2)+" "+n.args.features.strings.at+" "+("0"+e.getHours()).slice(-2)+":"+("0"+e.getMinutes()).slice(-2)}},{key:"addEventClass",value:function(e){var t=this,n=e.getEvents();n.forEach(function(t){var n=t.startStr.split("T"),r=e.el.querySelector('td[data-date="'+n[0]+'"]');r&&r.classList.add("_has_event")}),t.scrollToday()}},{key:"setPlace",value:function(e){var t="";return t="Altre Sedi"==e.place||"In other locations"==e.place?e.other_place?e.other_place:"it-IT"==lang?"Altre sedi":"In other locations":e.place; 91}},{key:"openPopup",value:function(e){var t=this,n=document.documentElement.lang,r=document.querySelector(".sn_calendar_block_popup_wrap"),i=t.setPlace(e),a='<strong class="sn_calendar_block_popup_date">'+e.date+'</strong> â <span class="sn_calendar_block_popup_place">'+i+"</span>";if(e.next_events){var o=new Date;e.next_events.forEach(function(e){i=t.setPlace(e),o=t.formatDate(e.start,n).charAt(0).toUpperCase()+t.formatDate(e.start,n).slice(1),a+='<br><strong class="sn_calendar_block_popup_date">'+o+'</strong> â <span class="sn_calendar_block_popup_place">'+i+"</span>"})}e.image?(r.querySelector(".sn_calendar_block_popup_figure").classList.remove("d-none"),r.querySelector(".sn_calendar_block_popup_figure img").setAttribute("src",e.image)):(r.querySelector(".sn_calendar_block_popup_figure").classList.add("d-none"),r.querySelector(".sn_calendar_block_popup_figure img").removeAttribute("src")),r.querySelector(".sn_calendar_block_popup_category").innerHTML=e.category,r.querySelector(".sn_calendar_block_popup_t
91itle").innerHTML=e.title,r.querySelector(".sn_calendar_block_popup_info").innerHTML=a,r.querySelector(".sn_calendar_block_popup_button").setAttribute("href",e.link),r.querySelector(".sn_calendar_block_popup_button").innerHTML=e.turn?e.turn:e.entrance,r.classList.add("_open")}},{key:"closePopup",value:function(){e(".sn_calendar_block_popup_close").on("click",function(){e(".sn_calendar_block_popup_wrap").removeClass("_open"),e(".fc-daygrid-day").removeClass("_active")}),e(document).on("click",".sn_calendar_block_popup_wrap",function(t){t.stopPropagation();var n=e(this).find(".sn_calendar_block_popup");n.is(t.target)||0!==n.has(t.target).length||(e(".sn_calendar_block_popup_wrap").removeClass("_open"),e(".fc-daygrid-day").removeClass("_active"))})}},{key:"changeMonth",value:function(e){var t=this,n=document.documentElement.lang,r=document.querySelector('[data-month="title"]'),i=document.querySelector('[data-month="prev"]'),a=document.querySelector('[data-month="next"]'),o=new Date;r.innerHTML=o.toLocaleString(n,{month:"long",year:"numeric"}),i.addEventListener("click",function(){e.prev(),o=e.getDate(),r.innerHTML=o.toLocaleString(n,{month:"long",year:"numeric"}),t.updateList(o)}),a.addEventListener("click",function(){e.next(),o=e.getDate(),r.innerHTML=o.toLocaleString(n,{month:"long",year:"numeric"}),t.updateList(o)})}},{key:"viewSwitch",value:function(e){document.querySelectorAll("[data-view]").forEach(function(t){t.addEventListener("click",function(){var n=t.dataset.view;document.querySelector("[data-view]._active").classList.remove("_active"),t.classList.add("_active"),document.querySelector("[data-view-id]._active").classList.remove("_active"),document.querySelector('[data-view-id="'+n+'"]').classList.add("_active"),"table"==n&&e.updateSize()})})}},{key:"updateList",value:function(e){var t=e.getMonth()+1,n=e.getFullYear();document.querySelectorAll("[data-list-month]._active").forEach(function(e){e.classList.remove("_active")}),document.querySelectorAll('[data-list-month="'+t+'"][data-list-year="'+n+'"]').forEach(function(e){e.classList.add("_active")}),this.oddEvenColor()}},{key:"activeDay",value:function(){e(".fc-daygrid-event").on("click",function(){var t=e(this).closest(".fc-daygrid-day");t.addClass("_active"),e(document).on("click",function(e){t.is(e.target)||0!==t.has(e.target).length||t.removeClass("_active")})})}},{key:"oddEvenColor",value:function(){e(".sn_calendar_block_list_row").removeClass("_even");for(var t=document.querySelectorAll(".sn_calendar_block_list_row._active"),n=0;n<t.length;n++)n%2==0&&t[n].classList.add("_even")}},{key:"scrollToday",value:function(){e(window).bind("load",function(){var t=e("[data-today]").data("today");if("undefined"!=typeof t){var n=e(document).find('[data-list-id="'+t+'"]'),r=null;n.offset()&&(r=n.offset().top);var i=Utils.mq(),a=["xs","sm","md"];e.inArray(i,a)!==-1&&r&&(e("html,body").animate({scrollTop:r-70},0),setTimeout(function(){e(".sn_header").addClass("_fix")},200))}})}}]),t}();t["default"]=y}).call(t,n(3),n(3))},function(e,t,n){/*! 92 FullCalendar v5.11.3 93 Docs & License: https://fullcalendar.io/ 94 (c) 2022 Adam Shaw 95 */ 96"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(65);var r=n(66),i=n(70),a=function(e){function t(t,n){void 0===n&&(n={});var a=e.call(this)||this;return a.isRendering=!1,a.isRendered=!1,a.currentClassNames=[],a.customContentRenderId=0,a.handleAction=function(e){switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":a.renderRunner.tryDrain()}},a.handleData=function(e){a.currentData=e,a.renderRunner.request(e.calendarOptions.rerenderDelay)},a.handleRenderRequest=function(){if(a.isRendering){a.isRendered=!0;var e=a.currentData;i.flushSync(function(){i.render(i.createElement(i.CalendarRoot,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},function(t,n,o,s){return a.setClassNames(t),a.setHeight(n),i.createElement(i.CustomContentRenderContext.Provider,{value:a.customContentRenderId},i.createElement(i.CalendarContent,r.__assign({isHeightAuto:o,forPrint:s},e)))}),a.el)})}else a.isRendered&&(a.isRendered=!1,i.unmountComponentAtNode(a.el),a.setClassNames([]),a.setHeight(""))},a.el=t,a.renderRunner=new i.DelayedRunner(a.handleRenderRequest),new i.CalendarDataManager({optionOverrides:n,calendarApi:a,onAction:a.handleAction,onData:a.handleData}),a}return r.__extends(t,e),Object.defineProperty(t.prototype,"view",{get:function(){return this.currentData.viewApi}
96,enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()},t.prototype.destroy=function(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())},t.prototype.updateSize=function(){var t=this;i.flushSync(function(){e.prototype.updateSize.call(t)})},t.prototype.batchRendering=function(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")},t.prototype.pauseRendering=function(){this.renderRunner.pause("pauseRendering")},t.prototype.resumeRendering=function(){this.renderRunner.resume("pauseRendering",!0)},t.prototype.resetOptions=function(e,t){this.currentDataManager.resetOptions(e,t)},t.prototype.setClassNames=function(e){if(!i.isArraysEqual(e,this.currentClassNames)){for(var t=this.el.classList,n=0,r=this.currentClassNames;n<r.length;n++){var a=r[n];t.remove(a)}for(var o=0,s=e;o<s.length;o++){var a=s[o];t.add(a)}this.currentClassNames=e}},t.prototype.setHeight=function(e){i.applyStyleProp(this.el,"height",e)},t}(i.CalendarApi);
96t.Calendar=a,Object.keys(i).forEach(function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return i[e]}})})},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t["default"]=e,Object.freeze(t)}function i(e){function t(e){r.push(e)}e();var n=c.options.debounceRendering,r=[];for(c.options.debounceRendering=t,c.render(c.createElement(p,{}),document.createElement("div"));r.length;)r.shift()();c.options.debounceRendering=n}function a(e){var t=c.createContext(e),n=t.Provider;return t.Provider=function(){var e=this,t=!this.getChildContext,r=n.apply(this,arguments);if(t){var i=[];this.shouldComponentUpdate=function(t){e.props.value!==t.value&&i.forEach(function(e){e.context=t.value,e.forceUpdate()})},this.sub=function(e){i.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){i.splice(i.indexOf(e),1),t&&t.call(e)}}}return r},t}function o(e){c.render(null,e)}var s=n(66),l=n(67),u=n(68),c=r(l),d=r(u),h="undefined"!=typeof globalThis?globalThis:window;h.FullCalendarVDom?console.warn("FullCalendar VDOM already loaded"):h.FullCalendarVDom={Component:c.Component,createElement:c.createElement,render:c.render,createRef:c.createRef,Fragment:c.Fragment,createContext:a,createPortal:d.createPortal,flushSync:i,unmountComponentAtNode:o};var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s.__extends(t,e),t.prototype.render=function(){return c.createElement("div",{})},t.prototype.componentDidMount=function(){this.setState({})},t}(c.Component)},function(e,t,n){var r,i;(function(n){var a,o,s,l,u,c,d,h,p,f,g,m,v,y,_,b,T,E,S,w,C,k,D,x,A;!function(a){function o(e,t){return e!==s&&("function"==typeof Object.create?Object.defineProperty(e,"__esModule",{value:!0}):e.__esModule=!0),function(n,r){return e[n]=t?t(n,r):r}}var s="object"==typeof n?n:"object"==typeof self?self:"object"==typeof this?this:{};r=[t],i=function(e){a(o(s,o(e)))}.apply(t,r),!(void 0!==i&&(e.exports=i))}(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])};a=function(e,n){function r(){this.constructor=e}if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)},o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},l=function(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o},u=function(e,t){return function(n,r){t(n,r,e)}},c=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},d=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,a){function o(e){try{l(r.next(e))}catch(t){a(t)}}function s(e){try{l(r["throw"](e))}catch(t){a(t)}}function l(e){e.done?n(e.value):i(e.value).then(o,s)}l((r=r.apply(e,t||[])).next())})},h=function(e,t){function n(e){return function(t){return r([e,t])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,a&&(o=2&n[0]?a["return"]:n[0]?a["throw"]||((o=a["return"])&&o.call(a),0):a.next)&&!(o=o.call(a,n[1])).done)return o;switch(a=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return l.label++,{value:n[1],done:!1};case 5:l.label++,a=n[1],n=[0];continue;case 7:n=l.ops.pop(),l.trys.pop();continue;default:if(o=l.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){l=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){l.label=n[1];break}if(6===n[0]&&l.label<o[1]){l.label=o[1],o=n;break}if(o&&l.label<o[2]){l.label=o[2],l.ops.push(n);break}o[2]&&l.ops.pop(),l.trys.pop();continue}n=t.call(e,l)}catch(r){n=[6,r],a=0}finally{i=o=0}
vendor: 4,701 bytes, line 96
96if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,a,o,s,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:n(0),"throw":n(1),"return":n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s},p=function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||A(t,e,n)},A=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&("get"in i?t.__esModule:!i.writable&&!i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]},f=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},g=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=a["return"])&&n.call(a)}finally{if(i)throw i.error}}return o},m=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e},v=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r},y=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},_=function(e){return this instanceof _?(this.v=e,this):new _(e)},b=function(e,t,n){function r(e){c[e]&&(u[e]=function(t){return new Promise(function(n,r){d.push([e,t,n,r])>1||i(e,t)})})}function i(e,t){try{a(c[e](t))}catch(n){l(d[0][3],n)}}function a(e){e.value instanceof _?Promise.resolve(e.value.v).then(o,s):l(d[0][2],e)}function o(e){i("next",e)}function s(e){i("throw",e)}function l(e,t){e(t),d.shift(),d.length&&i(d[0][0],d[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u,c=n.apply(e,t||[]),d=[];return u={},r("next"),r("throw"),r("return"),u[Symbol.asyncIterator]=function(){return this},u},T=function(e){function t(t,i){n[t]=e[t]?function(n){return(r=!r)?{value:_(e[t](n)),done:"return"===t}:i?i(n):n}:i}var n,r;return n={},t("next"),t("throw",function(e){throw e}),t("return"),n[Symbol.iterator]=function(){return this},n},E=function(e){function t(t){r[t]=e[t]&&function(r){return new Promise(function(i,a){r=e[t](r),n(i,a,r.done,r.value)})}}function n(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e[Symbol.asyncIterator];return i?i.call(e):(e="function"==typeof f?f(e):e[Symbol.iterator](),r={},t("next"),t("throw"),t("return"),r[Symbol.asyncIterator]=function(){return this},r)},S=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};var n=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e["default"]=t};w=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&A(t,e,r);return n(t,e),t},C=function(e){return e&&e.__esModule?e:{"default":e}},k=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},D=function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n},x=function(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)},e("__extends",a),e("__assign",o),e("__rest",s),e("__decorate",l),e("__param",u),e("__metadata",c),e("__awaiter",d),e("__generator",h),e("__exportStar",p),e("__createBinding",A),e("__values",f),e("__read",g),e("__spread",m),e("__spreadArrays",v),e("__spreadArray",y),e("__await",_),e("__asyncGenerator",b),e("__asyncDelegator",T),e("__asyncValues",E),e("__makeTemplateOb
96ject",S),e("__importStar",w),e("__importDefault",C),e("__classPrivateFieldGet",k),e("__classPrivateFieldSet",D),e("__classPrivateFieldIn",x)})}).call(t,function(){return this}())},function(e,t,n){(function(e){function n(e,t){for(var n in t)e[n]=t[n];return e}function r(e){var t=e.parentNode;t&&t.removeChild(e)}function i(e,t,n){var r,i,o,s={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?k.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return a(e,s,r,i,null)}function a(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==i?++x:i};return null==i&&null!=D.vnode&&D.vnode(a),a}function o(e){return e.children}function s(e,t){this.props=e,this.context=t}function l(e,t){if(null==t)return e.__?l(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?l(e):null}function u(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return u(e)}}function c(e){(!e.__d&&(e.__d=!0)&&I.push(e)&&!d.__r++||O!==D.debounceRendering)&&((O=D.debounceRendering)||setTimeout)(d)}function d(){for(var e;d.__r=I.length;)e=I.sort(function(e,t){return e.__v.__b-t.__v.__b}),I=[],e.some(function(e){var t,r,i,a,o,s;e.__d&&(o=(a=(t=e).__v).__e,(s=t.__P)&&(r=[],(i=n({},a)).__v=a.__v+1,_(s,a,i,t.__n,void 0!==s.ownerSVGElement,null!=a.__h?[o]:null,r,null==o?l(a):o,a.__h),b(r,a),a.__e!=o&&u(a)))})}function h(e,t,n,r,i,s,u,c,d,h){var g,m,v,y,b,T,w,C=r&&r.__k||R,k=C.length;for(n.__k=[],g=0;g<t.length;g++)if(null!=(y=n.__k[g]=null==(y=t[g])||"boolean"==typeof y?null:"string"==typeof y||"number"==typeof y||"bigint"==typeof y?a(null,y,null,null,y):Array.isArray(y)?a(o,{children:y},null,null,null):y.__b>0?a(y.type,y.props,y.key,y.ref?y.ref:null,y.__v):y)){if(y.__=n,y.__b=n.__b+1,null===(v=C[g])||v&&y.key==v.key&&y.type===v.type)C[g]=void 0;else for(m=0;m<k;m++){if((v=C[m])&&y.key==v.key&&y.type===v.type){C[m]=void 0;break}v=null}_(e,y,v=v||M,i,s,u,c,d,h),b=y.__e,(m=y.ref)&&v.ref!=m&&(w||(w=[]),v.ref&&w.push(v.ref,null,y),w.push(m,y.__c||b,y)),null!=b?(null==T&&(T=b),"function"==typeof y.type&&y.__k===v.__k?y.__d=d=p(y,d,e):d=f(e,y,v,C,b,d),"function"==typeof n.type&&(n.__d=d)):d&&v.__e==d&&d.parentNode!=e&&(d=l(v))}for(n.__e=T,g=k;g--;)null!=C[g]&&("function"==typeof n.type&&null!=C[g].__e&&C[g].__e==n.__d&&(n.__d=l(r,g+1)),S(C[g],C[g]));if(w)for(g=0;g<w.length;g++)E(w[g],w[++g],w[++g])}function p(e,t,n){for(var r,i=e.__k,a=0;i&&a<i.length;a++)(r=i[a])&&(r.__=e,t="function"==typeof r.type?p(r,t,n):f(n,r,r,i,r.__e,t));return t}function f(e,t,n,r,i,a){var o,s,l;if(void 0!==t.__d)o=t.__d,t.__d=void 0;else if(null==n||i!=a||null==i.parentNode)e:if(null==a||a.parentNode!==e)e.appendChild(i),o=null;else{for(s=a,l=0;(s=s.nextSibling)&&l<r.length;l+=2)if(s==i)break e;e.insertBefore(i,a),o=a}return void 0!==o?o:i.nextSibling}function g(e,t,n,r,i){var a;for(a in n)"children"===a||"key"===a||a in t||v(e,a,null,n[a],r);for(a in t)i&&"function"!=typeof t[a]||"children"===a||"key"===a||"value"===a||"checked"===a||n[a]===t[a
vendor: 4,834 bytes, line 96
96]||v(e,a,t[a],n[a],r)}function m(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||L.test(t)?n:n+"px"}function v(t,n,r,i,a){var o;e:if("style"===n)if("string"==typeof r)t.style.cssText=r;else{if("string"==typeof i&&(t.style.cssText=i=""),i)for(n in i)r&&n in r||m(t.style,n,"");if(r)for(n in r)i&&r[n]===i[n]||m(t.style,n,r[n])}else if("o"===n[0]&&"n"===n[1])o=n!==(n=n.replace(/Capture$/,"")),n=n.toLowerCase()in t?n.toLowerCase().slice(2):n.slice(2),t.l||(t.l={}),t.l[n+o]=r,r?i||t.addEventListener(n,o?y:e,o):t.removeEventListener(n,o?y:e,o);else if("dangerouslySetInnerHTML"!==n){if(a)n=n.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("href"!==n&&"list"!==n&&"form"!==n&&"tabIndex"!==n&&"download"!==n&&n in t)try{t[n]=null==r?"":r;break e}catch(t){}"function"==typeof r||(null!=r&&(!1!==r||"a"===n[0]&&"r"===n[1])?t.setAttribute(n,r):t.removeAttribute(n))}}function e(e){this.l[e.type+!1](D.event?D.event(e):e)}function y(e){this.l[e.type+!0](D.event?D.event(e):e)}function _(e,t,r,i,a,l,u,c,d){var p,f,g,m,v,y,_,b,E,S,C,k,x,A=t.type;if(void 0!==t.constructor)return null;null!=r.__h&&(d=r.__h,c=t.__e=r.__e,t.__h=null,l=[c]),(p=D.__b)&&p(t);try{e:if("function"==typeof A){if(b=t.props,E=(p=A.contextType)&&i[p.__c],S=p?E?E.props.value:p.__:i,r.__c?_=(f=t.__c=r.__c).__=f.__E:("prototype"in A&&A.prototype.render?t.__c=f=new A(b,S):(t.__c=f=new s(b,S),f.constructor=A,f.render=w),E&&E.sub(f),f.props=b,f.state||(f.state={}),f.context=S,f.__n=i,g=f.__d=!0,f.__h=[]),null==f.__s&&(f.__s=f.state),null!=A.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=n({},f.__s)),n(f.__s,A.getDerivedStateFromProps(b,f.__s))),m=f.props,v=f.state,g)null==A.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==A.getDerivedStateFromProps&&b!==m&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(b,S),!f.__e&&null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(b,f.__s,S)||t.__v===r.__v){f.props=b,f.state=f.__s,t.__v!==r.__v&&(f.__d=!1),f.__v=t,t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(e){e&&(e.__=t)}),f.__h.length&&u.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(b,f.__s,S),null!=f.componentDidUpdate&&f.__h.push(function(){f.componentDidUpdate(m,v,y)})}if(f.context=S,f.props=b,f.__v=t,f.__P=e,C=D.__r,k=0,"prototype"in A&&A.prototype.render)f.state=f.__s,f.__d=!1,C&&C(t),p=f.render(f.props,f.state,f.context);else do f.__d=!1,C&&C(t),p=f.render(f.props,f.state,f.context),f.state=f.__s;while(f.__d&&++k<25);f.state=f.__s,null!=f.getChildContext&&(i=n(n({},i),f.getChildContext())),g||null==f.getSnapshotBeforeUpdate||(y=f.getSnapshotBeforeUpdate(m,v)),x=null!=p&&p.type===o&&null==p.key?p.props.children:p,h(e,Array.isArray(x)?x:[x],t,r,i,a,l,u,c,d),f.base=t.__e,t.__h=null,f.__h.length&&u.push(f),_&&(f.__E=f.__=null),f.__e=!1}else null==l&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=T(r.__e,t,r,i,a,l,u,d);(p=D.diffed)&&p(t)}catch(e){t.__v=null,(d||null!=l)&&(t.__e=c,t.__h=!!d,l[l.indexOf(c)]=null),D.__e(e,t,r)}}function b(e,t){D.__c&&D.__c(t,e),e.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(t){D.__e(t,e.__v)}})}function T(e,t,n,i,a,o,s,u){var c,d,p,f=n.props,m=t.props,y=t.type,_=0;if("svg"===y&&(a=!0),null!=o)for(;_<o.length;_++)if((c=o[_])&&"setAttribute"in c==!!y&&(y?c.localName===y:3===c.nodeType)){e=c,o[_]=null;break}if(null==e){if(null===y)return document.createTextNode(m);e=a?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,m.is&&m),o=null,u=!1}if(null===y)f===m||u&&e.data===m||(e.data=m);else{if(o=o&&k.call(e.childNodes),d=(f=n.props||M).dangerouslySetInnerHTML,p=m.dangerouslySetInnerHTML,!u){if(null!=o)for(f={},_=0;_<e.attributes.length;_++)f[e.attributes[_].name]=e.attributes[_].value;(p||d)&&(p&&(d&&p.__html==d.__html||p.__html===e.innerHTML)||(e.innerHTML=p&&p.__html||""))}if(g(e,m,f,a,u),p)t.__k=[];else if(_=t.props.children,h(e,Array.isArray(_)?_:[_],t,n,i,a&&"foreignObject"!==y,o,s,o?o[0]:n.__k&&l(n,0),u),null!=o)for(_=o.length;_--;)null!=o[_]&&r(o[_]);u||("value"in m&&void 0!==(_=m.value)&&(_!==e.value||"progress"===y&&!_||"option"===y&&_!==f.value)&&v(e,"value",_,f.value,!1),"checked"in m&&void 0!==(_=m.checked)&&_!==e.checked&&v(e,"checked",_,f.checked,!1))}return e}function E(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){D.__e(e,n)}}function S(e,t,n){var i,a;if(D.unmount&&D.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||E(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){D.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(a=0;a<i.length;a++)i[a]&&S(i[a],t,"function"!=typeof e.type);n||null==e.__e||r(e.__e),e.__=e.__e=e.__d=void 0}function w(e,t,n){return this.constructor(e,n)}
96function C(e,t,n){var r,a,s;D.__&&D.__(e,t),a=(r="function"==typeof n)?null:n&&n.__k||t.__k,s=[],_(t,e=(!r&&n||t).__k=i(o,null,[e]),a||M,M,void 0!==t.ownerSVGElement,!r&&n?[n]:a?null:t.firstChild?k.call(t.childNodes):null,s,!r&&n?n:a?a.__e:t.firstChild,r),b(s,e)}var k,D,x,A,I,O,P,M={},R=[],L=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;k=R.slice,D={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&null!=a.getDerivedStateFromError&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},x=0,A=function(e){return null!=e&&void 0===e.constructor},s.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=n({},this.state),"function"==typeof e&&(e=e(n({},r),this.props)),e&&n(r,e),null!=e&&this.__v&&(t&&this.__h.push(t),c(this))},s.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),c(this))},s.prototype.render=o,I=[],d.__r=0,P=0,t.Component=s,t.Fragment=o,t.cloneElement=function(e,t,r){var i,o,s,l=n({},e.props);for(s in t)"key"==s?i=t[s]:"ref"==s?o=t[s]:l[s]=t[s];return arguments.length>2&&(l.children=arguments.length>3?k.call(arguments,2):r),a(e.type,l,i||e.key,o||e.ref,null)},t.createContext=function(e,t){var n={__c:t="__cC"+P++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(c)},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n},t.createElement=i,t.createRef=function(){return{current:null}},t.h=i,t.hydrate=function N(e,t){C(e,t,N)},t.isValidElement=A,t.options=D,t.render=C,t.toChildArray=function U(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){U(e,t)}):t.push(e)),t}}).call(t,n(3))},function(e,t,n){function r(e,t){for(var n in t)e[n]=t[n];return e}function i(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function a(e){this.props=e}function o(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:i(this.props,e)}function r(t){return this.shouldComponentUpdate=n,O.createElement(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}function s(e){function t(t){var n=r({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=R,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function l(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),e.__c.__H=null),null!=(e=r({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return l(e,t,n)})),e}function u(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return u(e,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function c(){this.__u=0,this.t=null,this.__b=null}function d(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function h(e){function t(t){if(n||(n=e()).then(function(e){r=e["default"]||e},function(e){i=e}),i)throw i;if(!r)throw n;return O.createElement(r,t)}var n,r,i;return t.displayName="Lazy",t.__f=!0,t}function p(){this.u=null,this.o=null}function f(e){return this.getChildContext=function(){return e.context},e.children}function g(e){var t=this,n=e.i;t.componentWillUnmount=function(){O.render(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),O.render(O.createElement(f,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function m(e,t){var n=O.createElement(g,{__v:e,i:t});return n.containerInfo=t,n}
96function v(e,t,n){return null==t.__k&&(t.textContent=""),O.render(e,t),"function"==typeof n&&n(),e?e.__c:null}function y(e,t,n){return O.hydrate(e,t),"function"==typeof n&&n(),e?e.__c:null}function _(){}function b(){return this.cancelBubble}function T(){return this.defaultPrevented}function E(e){return O.createElement.bind(null,e)}function S(e){return!!e&&e.$$typeof===B}function w(e){return S(e)?O.cloneElement.apply(null,arguments):e}function C(e){return!!e.__k&&(O.render(null,e),!0)}function k(e){return e&&(e.base||1===e.nodeType&&e)||null}function D(e){e()}function x(e){return e}function A(){return[!1,D]}function I(e,t){var n=t(),r=P.useState({p:{__:n,h:t}}),i=r[0].p,a=r[1];return P.useLayoutEffect(function(){i.__=n,i.h=t,i.__!==t()&&a({p:i})},[e,n,t]),P.useEffect(function(){return i.__!==i.h()&&a({p:i}),e(function(){i.__!==i.h()&&a({p:i})})},[e]),n}var O=n(67),P=n(69);(a.prototype=new O.Component).isPureReactComponent=!0,a.prototype.shouldComponentUpdate=function(e,t){return i(this.props,e)||i(this.state,t)};var M=O.options.__b;O.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),M&&M(e)};var R="undefined"!=typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.forward_ref")||3911,L=function(e,t){return null==e?null:O.toChildArray(O.toChildArray(e).map(t))},N={map:L,forEach:L,count:function(e){return e?O.toChildArray(e).length:0},only:function(e){var t=O.toChildArray(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:O.toChildArray},U=O.options.__e;O.options.__e=function(e,t,n,r){if(e.then)for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);U(e,t,n,r)};var H=O.options.unmount;O.options.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),H&&H(e)},(c.prototype=new O.Component).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=d(r.__v),a=!1,o=function(){a||(a=!0,n.__R=null,i?i(s):s())};n.__R=o;var s=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=u(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(o,o)},c.prototype.componentWillUnmount=function(){this.t=[]},c.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=l(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&O.createElement(O.Fragment,null,e.fallback);return i&&(i.__h=null),[O.createElement(O.Fragment,null,t.__a?null:e.children),i]};var j=function(e,t,n){if(++n[1]===n[0]&&e.o["delete"](t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(p.prototype=new O.Component).__a=function(e){var t=this,n=d(t.__v),r=t.o.get(e);return r[0]++,function(i){var a=function(){t.props.revealOrder?(r.push(i),j(t,e,r)):i()};n?n(a):a()}},p.prototype.render=function(e){this.u=null,this.o=new Map;var t=O.toChildArray(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},p.prototype.componentDidUpdate=p.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){j(e,n,t)})};var B="undefined"!=typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,F=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,V="undefined"!=typeof document,W=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};O.Component.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(O.Component.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var z=O.options.event;O.options.event=function(e){return z&&(e=z(e)),e.persist=_,e.isPropagationStopped=b,e.isDefaultPrevented=T,e.nativeEvent=e};var $,q={configurable:!0,get:function(){return this["class"]}},G=O.options.vnode;O.options.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var i=-1===t.indexOf("-");for(var a in r={},n){var o=n[a];V&&"children"===a&&"noscript"===t||"value"===a&&"defaultValue"in n&&null==o||("defaultValue"===a&&"value"in n&&null==n.value?a="value":"download"===a&&!0===o?o="":/ondoubleclick/i.test(a)?a="ondblclick":/^onchange(textarea|input)/i.test(a+t)&&!W(n.type)?a="onin
96put":/^onfocus$/i.test(a)?a="onfocusin":/^onblur$/i.test(a)?a="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(a)?a=a.toLowerCase():i&&F.test(a)?a=a.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===o&&(o=void 0),/^oninput$/i.test(a)&&(a=a.toLowerCase(),r[a]&&(a="oninputCapture")),r[a]=o)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=O.toChildArray(n.children).forEach(function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)})),"select"==t&&null!=r.defaultValue&&(r.value=O.toChildArray(n.children).forEach(function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value})),e.props=r,n["class"]!=n.className&&(q.enumerable="className"in n,null!=n.className&&(r["class"]=n.className),Object.defineProperty(r,"className",q))}e.$$typeof=B,G&&G(e)};var Y=O.options.__r;O.options.__r=function(e){Y&&Y(e),$=e.__c};var X={ReactCurrentDispatcher:{current:{readContext:function(e){return $.__n[e.__c].props.value}}}},K=function(e,t){return e(t)},Q=function(e,t){return e(t)},Z=O.Fragment,J=P.useLayoutEffect,ee={useState:P.useState,useId:P.useId,useReducer:P.useReducer,useEffect:P.useEffect,useLayoutEffect:P.useLayoutEffect,useInsertionEffect:J,useTransition:A,useDeferredValue:x,useSyncExternalStore:I,startTransition:D,useRef:P.useRef,useImperativeHandle:P.useImperativeHandle,useMemo:P.useMemo,useCallback:P.useCallback,useContext:P.useContext,useDebugValue:P.useDebugValue,version:"17.0.2",Children:N,render:v,hydrate:y,unmountComponentAtNode:C,createPortal:m,createElement:O.createElement,createContext:O.createContext,createFactory:E,cloneElement:w,createRef:O.createRef,Fragment:O.Fragment,isValidElement:S,findDOMNode:k,Component:O.Component,PureComponent:a,memo:o,forwardRef:s,flushSync:Q,unstable_batchedUpdates:K,StrictMode:Z,Suspense:c,SuspenseList:p,lazy:h,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:X};Object.defineProperty(t,"Component",{enumerable:!0,get:function(){return O.Component}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return O.Fragment}}),Object.defineProperty(t,"createContext",{enumerable:!0,get:function(){return O.createContext}}),Object.defineProperty(t,"createElement",{enumerable:!0,get:function(){return O.createElement}}),Object.defineProperty(t,"createRef",{enumerable:!0,get:function(){return O.createRef}}),t.Children=N,t.PureComponent=a,t.StrictMode=Z,t.Suspense=c,t.SuspenseList=p,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,t.cloneElement=w,t.createFactory=E,t.createPortal=m,t["default"]=ee,t.findDOMNode=k,t.flushSync=Q,t.forwardRef=s,t.hydrate=y,t.isValidElement=S,t.lazy=h,t.memo=o,t.render=v,t.startTransition=D,t.unmountComponentAtNode=C,t.unstable_batchedUpdates=K,t.useDeferredValue=x,t.useInsertionEffect=J,t.useSyncExternalStore=I,t.useTransition=A,t.version="17.0.2",Object.keys(P).forEach(function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{ 97enumerable:!0,get:function(){return P[e]}})})},function(e,t,n){function r(e,t){y.options.__h&&y.options.__h(g,e,_||t),_=0;var n=g.__H||(g.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:T}),n.__[e]}function i(e){return _=1,a(p,e)}function a(e,t,n){var i=r(f++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):p(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=g,!g.u)){g.u=!0;var a=g.shouldComponentUpdate;g.shouldComponentUpdate=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter(function(e){return e.__c});if(r.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var o=!1;return r.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),!!o&&(!a||a.call(this,e,t,n))}}return i.__N||i.__}function o(e,t){var n=r(f++,4);!y.options.__s&&h(n.__H,t)&&(n.__=e,n.o=t,g.__h.push(n))}function s(e,t){var n=r(f++,7);return h(n.__H,t)?(n.__V=e(),n.o=t,n.__h=e,n.__V):n.__}function l(){for(var e;e=b.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(c),e.__H.__h.forEach(d),e.__H.__h=[]}catch(t){e.__H.__h=[],y.options.__e(t,e.__v)}}function u(e){var t,n=function(){clearTimeout(r),D&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);D&&(t=requestAnimationFrame(n))}function c(e){var t=g,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),g=t}function d(e){var t=g;e.__c=e.__(),g=t}function h(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function p(e,t){return"function"==typeof t?t(e):t}var f,g,m,v,y=n(67),_=0,b=[],T=[],E=y.options.__b,S=y.options.__r,w=y.options.diffed,C=y.options.__c,k=y.options.unmount;y.options.__b=function(e){"function"!=typeof e.type||e.i||e.type===y.Fragment?e.
97i||(e.i=e.__&&e.__.i?e.__.i:""):e.i=(e.__&&e.__.i?e.__.i:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),g=null,E&&E(e)},y.options.__r=function(e){S&&S(e),f=0;var t=(g=e.__c).__H;t&&(m===g?(t.__h=[],g.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=T,e.__N=e.o=void 0})):(t.__h.forEach(c),t.__h.forEach(d),t.__h=[])),m=g},y.options.diffed=function(e){w&&w(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==b.push(t)&&v===y.options.requestAnimationFrame||((v=y.options.requestAnimationFrame)||u)(l)),t.__H.__.forEach(function(e){e.o&&(e.__H=e.o),e.__V!==T&&(e.__=e.__V),e.o=void 0,e.__V=T})),m=g=null},y.options.__c=function(e,t){t.some(function(e){try{e.__h.forEach(c),e.__h=e.__h.filter(function(e){return!e.__||d(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],y.options.__e(n,e.__v)}}),C&&C(e,t)},y.options.unmount=function(e){k&&k(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{c(e)}catch(e){t=e}}),n.__H=void 0,t&&y.options.__e(t,n.__v))};var D="function"==typeof requestAnimationFrame;t.useCallback=function(e,t){return _=8,s(function(){return e},t)},t.useContext=function(e){var t=g.context[e.__c],n=r(f++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(g)),t.props.value):e.__},t.useDebugValue=function(e,t){y.options.useDebugValue&&y.options.useDebugValue(t?t(e):e)},t.useEffect=function(e,t){var n=r(f++,3);!y.options.__s&&h(n.__H,t)&&(n.__=e,n.o=t,g.__H.__h.push(n))},t.useErrorBoundary=function(e){var t=r(f++,10),n=i();return t.__=e,g.componentDidCatch||(g.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},t.useId=function(){var e=r(f++,11);return e.__||(e.__="P"+function(e){for(var t=0,n=e.length;n>0;)t=(t<<5)-t+e.charCodeAt(--n)|0;return t}(g.__v.i)+f),e.__},t.useImperativeHandle=function(e,t,n){_=6,o(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==n?n:n.concat(e))},t.useLayoutEffect=o,t.useMemo=s,t.useReducer=a,t.useRef=function(e){return _=5,s(function(){return{current:e}},[])},t.useState=i},function(e,t,n){/*! 98 FullCalendar v5.11.3 99 Docs & License: https://fullcalendar.io/ 100 (c) 2022 Adam Shaw 101 */ 102"use strict";function r(e){e.parentNode&&e.parentNode.removeChild(e)}function i(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(a(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function a(e,t){var n=e.matches||e.matchesSelector||e.msMatchesSelector;return n.call(e,t)}function o(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],i=0;i<n.length;i+=1)for(var a=n[i].querySelectorAll(t),o=0;o<a.length;o+=1)r.push(a[o]);return r}function s(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],i=0;i<n.length;i+=1)for(var o=n[i].children,s=0;s<o.length;s+=1){var l=o[s];t&&!a(l,t)||r.push(l)}return r}function l(e,t){for(var n in t)u(e,n,t[n])}function u(e,t,n){null==n?e.style[t]="":"number"==typeof n&&Ua.test(t)?e.style[t]=n+"px":e.style[t]=n}function c(e){var t,n;return null!==(n=null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])&&void 0!==n?n:e.target}function d(e){return e.getRootNode?e.getRootNode():document}function h(){return Ha+=1,"fc-dom-"+Ha}function p(e){e.preventDefault()}function f(e,t){return function(n){var r=i(n.target,e);r&&t.call(r,n,r)}}function g(e,t,n,r){var i=f(n,r);return e.addEventListener(t,i),function(){e.removeEventListener(t,i)}}function m(e,t,n,r){var i;return g(e,"mouseover",t,function(e,t){if(t!==i){i=t,n(e,t);var a=function(e){i=null,r(e,t),t.removeEventListener("mouseleave",a)};t.addEventListener("mouseleave",a)}})}function v(e,t){var n=function(r){t(r),ja.forEach(function(t){e.removeEventListener(t,n)})};ja.forEach(function(t){e.addEventListener(t,n)})}function y(e){return Ra.__assign({onClick:e},_(e))}function _(e){return{tabIndex:0,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}function b(){return Ba+=1,String(Ba)}function T(){document.body.classList.add("fc-not-allowed")}function E(){document.body.classList.remove("fc-not-allowed")}function S(e){e.classList.add("fc-unselectable"),e.addEventListener("selectstart",p)}function w(e){e.classList.remove("fc-unselectable"),e.removeEventListener("selectstart",p)}function C(e){e.addEventListener("contextmenu",p)}function k(e){e.removeEventListener("contextmenu",p)}function D(e){var t,n,r=[],i=[];for("string"==typeof e?i=e.split(/\s*,\s*/):"function"==typeof e?i=[e]:Array.isArray(e)&&(i=e),t=0;t<i.length;t+=1)n=i[t],"string"==typeof n?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r}function x(e,t,n){var r,i;for(r=0;r<n.length;r+=1)if(i=A(e,t,n[r]))return i;return 0}function A(e,t,n){return n.func?n.func(e,t):I(e[n.field],t[n.field])*(n.order||1)}function I(e,t){return e||t?null==t?-1:null==e?1:"string"==typeof e||"string"==typeof t?String(e).localeCompare(String(t)):e-t:0}function O(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function P(e,t,n){return"function"==typeof e?e.apply(void 0,t):"str
102ing"==typeof e?t.reduce(function(e,t,n){return e.replace("$"+n,t||"")},e):n}function M(e,t){return e-t}function R(e){return e%1===0}function L(e){var t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}function N(e,t){var n=ne(e);return n[2]+=7*t,re(n)}function U(e,t){var n=ne(e);return n[2]+=t,re(n)}function H(e,t){var n=ne(e);return n[6]+=t,re(n)}function j(e,t){return B(e,t)/7}function B(e,t){return(t.valueOf()-e.valueOf())/864e5}function F(e,t){return(t.valueOf()-e.valueOf())/36e5}function V(e,t){return(t.valueOf()-e.valueOf())/6e4}function W(e,t){return(t.valueOf()-e.valueOf())/1e3}function z(e,t){var n=G(e),r=G(t);return{years:0,months:0,days:Math.round(B(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}function $(e,t){var n=q(e,t);return null!==n&&n%7===0?n/7:null}function q(e,t){return ae(e)===ae(t)?Math.round(B(e,t)):null}function G(e){return re([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function Y(e){return re([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}function X(e){return re([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}function K(e){return re([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}function Q(e,t,n){var r=e.getUTCFullYear(),i=Z(e,r,t,n);if(i<1)return Z(e,r-1,t,n);var a=Z(e,r+1,t,n);return a>=1?Math.min(i,a):i}function Z(e,t,n,r){var i=re([t,0,1+J(t,n,r)]),a=G(e),o=Math.round(B(i,a));return Math.floor(o/7)+1}function J(e,t,n){var r=7+t-n,i=(7+re([e,0,r]).getUTCDay()-t)%7;return-i+r-1}function ee(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function te(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function ne(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function re(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function ie(e){return!isNaN(e.valueOf())}function ae(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function oe(e,t,n,r){return{instanceId:b(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function se(e,t){var n={};if(t)for(var r in t){for(var i=[],a=e.length-1;a>=0;a-=1){var o=e[a][r];if("object"==typeof o&&o)i.unshift(o);else if(void 0!==o){n[r]=o;break}}i.length&&(n[r]=se(i))}for(var a=e.length-1;a>=0;a-=1){var s=e[a];for(var l in s)l in n||(n[l]=s[l])}return n}function le(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function ue(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function ce(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];t[i]=!0}return t}function de(e,t){for(var n={},r=0;r<e.length;r+=1){var i=t(e[r],r);n[i[0]]=i[1]}return n}function he(e){var t=[];for(var n in e)t.push(e[n]);return t}function pe(e,t){if(e===t)return!0;for(var n in e)if(Va.call(e,n)&&!(n in t))return!1;for(var n in t)if(Va.call(t,n)&&e[n]!==t[n])return!1;return!0}function fe(e,t){var n=[];for(var r in e)Va.call(e,r)&&(r in t||n.push(r));for(var r in t)Va.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function ge(e,t,n){if(void 0===n&&(n={}),e===t)return!0;for(var r in t)if(!(r in e&&me(e[r],t[r],n[r])))return!1;for(var r in e)if(!(r in t))return!1;return!0}function me(e,t,n){return e===t||n===!0||!!n&&n(e,t)}function ve(e,t,n,r){void 0===t&&(t=0),void 0===r&&(r=1);var i=[];null==n&&(n=Object.keys(e).length);for(var a=t;a<n;a+=r){var o=e[a];void 0!==o&&i.push(o)}return i}function ye(e,t,n,r){for(var i=0;i<r.length;i+=1){var a=r[i].parse(e,n);if(a){var o=e.allDay;return null==o&&(o=t,null==o&&(o=a.allDayGuess,null==o&&(o=!1))),{allDay:o,duration:a.duration,typeData:a.typeData,typeId:i}}}return null}function _e(e,t,n){var r=n.dateEnv,i=n.pluginHooks,a=n.options,o=e.defs,s=e.instances;s=le(s,function(e){return!o[e.defId].recurringDef});for(var l in o){var u=o[l];if(u.recurringDef){var c=u.recurringDef.duration;c||(c=u.allDay?a.defaultAllDayEventDuration:a.defaultTimedEventDuration);for(var d=be(u,c,t,r,i.recurringTypes),h=0,p=d;h<p.length;h++){var f=p[h],g=oe(l,{start:f,end:r.add(f,c)});s[g.instanceId]=g}}}return{defs:o,instances:s}}function be(e,t,n,r,i){var a=i[e.recurringDef.typeId],o=a.expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(o=o.map(G)),o}function Te(e,t){var n;return"string"==typeof e?Ee(e):"object"==typeof e&&e?Se(e):"number"==typeof e?Se((n={},n[t||"milliseconds"]=e,n)):null}function Ee(e){var t=za.exec(e);if(t){var n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}function Se(e){var t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function we(e,t){return e.years===t.years&&e.months===t.months&&e.days===t.days&&e.milliseconds===t.milliseconds}function Ce(e){return e.years||e.months||e.milliseconds?0:e.days}function ke(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function De(e,t){return{years:e.years-t.years,months:e.months-t.months,days:e.days-t.days,milliseconds:e.milliseconds-t.milliseconds}}function xe(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function Ae(e){return Oe(e)/365}function Ie(e){return Oe(e)/30}function Oe(e){return Re(e)/864e5}function Pe(e){return Re(e)/6e4}function Me(e){return Re(e)/1e3}
102function Re(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function Le(e,t){for(var n=null,r=0;r<Wa.length;r+=1){var i=Wa[r];if(t[i]){var a=e[i]/t[i];if(!R(a)||null!==n&&n!==a)return null;n=a}else if(e[i])return null}return n}function Ne(e){var t=e.milliseconds;if(t){if(t%1e3!==0)return{unit:"millisecond",value:t};if(t%6e4!==0)return{unit:"second",value:t/1e3};if(t%36e5!==0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7===0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function Ue(e,t,n){void 0===n&&(n=!1);var r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",Be(t,!0)))),r}function He(e){return e.toISOString().replace(/T.*$/,"")}function je(e){return O(e.getUTCHours(),2)+":"+O(e.getUTCMinutes(),2)+":"+O(e.getUTCSeconds(),2)}function Be(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),a=Math.round(r%60);return t?n+O(i,2)+":"+O(a,2):"GMT"+n+i+(a?":"+O(a,2):"")}function Fe(e,t){for(var n=0,r=0;r<e.length;)e[r]===t?(e.splice(r,1),n+=1):r+=1;return n}function Ve(e,t,n){if(e===t)return!0;var r,i=e.length;if(i!==t.length)return!1;for(r=0;r<i;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}function We(e,t,n){var r,i;return function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];if(r){if(!Ve(r,a)){n&&n(i);var s=e.apply(this,a);t&&t(s,i)||(i=s)}}else i=e.apply(this,a);return r=a,i}}function ze(e,t,n){var r,i,a=this;return function(o){if(r){if(!pe(r,o)){n&&n(i);var s=e.call(a,o);t&&t(s,i)||(i=s)}}else i=e.call(a,o);return r=o,i}}function $e(e,t,n){var r=this,i=[],a=[];return function(o){for(var s=i.length,l=o.length,u=0;u<s;u+=1)if(o[u]){if(!Ve(i[u],o[u])){n&&n(a[u]);var c=e.apply(r,o[u]);t&&t(c,a[u])||(a[u]=c)}}else n&&n(a[u]);for(;u<l;u+=1)a[u]=e.apply(r,o[u]);return i=o,a.splice(l),a}}function qe(e,t,n){var r=this,i={},a={};return function(o){var s={};for(var l in o)if(a[l])if(Ve(i[l],o[l]))s[l]=a[l];else{n&&n(a[l]);var u=e.apply(r,o[l]);s[l]=t&&t(u,a[l])?a[l]:u}else s[l]=e.apply(r,o[l]);return i=o,a=s,s}}function Ge(e,t,n){var r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?function(e){return Be(e.timeZoneOffset)}:0===r&&t.week?function(e){return Ze(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week)}:Ye(e,t,n)}function Ye(e,t,n){e=Ra.__assign({},e),t=Ra.__assign({},t),Xe(e,t),e.timeZone="UTC";var r,i=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){var a=Ra.__assign({},e);delete a.minute,r=new Intl.DateTimeFormat(n.locale.codes,a)}return function(a){var o,s=a.marker;o=r&&!s.getUTCMinutes()?r:i;var l=o.format(s);return Ke(l,a,e,t,n)}}function Xe(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit")),"long"===e.timeZoneName&&(e.timeZoneName="short"),t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}function Ke(e,t,n,r,i){return e=e.replace(Ka,""),"short"===n.timeZoneName&&(e=Qe(e,"UTC"===i.timeZone||null==t.timeZoneOffset?"UTC":Be(t.timeZoneOffset))),r.omitCommas&&(e=e.replace(Ya,"").trim()),r.omitZeroMinute&&(e=e.replace(":00","")),r.meridiem===!1?e=e.replace(Ga,"").trim():"narrow"===r.meri
102diem?e=e.replace(Ga,function(e,t){return t.toLocaleLowerCase()}):"short"===r.meridiem?e=e.replace(Ga,function(e,t){return t.toLocaleLowerCase()+"m"}):"lowercase"===r.meridiem&&(e=e.replace(Ga,function(e){return e.toLocaleLowerCase()})),e=e.replace(Xa," "),e=e.trim()}function Qe(e,t){var n=!1;return e=e.replace(Qa,function(){return n=!0,t}),n||(e+=" "+t),e}function Ze(e,t,n,r,i){var a=[];return"long"===i?a.push(n):"short"!==i&&"narrow"!==i||a.push(t),"long"!==i&&"short"!==i||a.push(" "),a.push(r.simpleNumberFormat.format(e)),"rtl"===r.options.direction&&a.reverse(),a.join("")}function Je(e,t,n){return n.getMarkerYear(e)!==n.getMarkerYear(t)?5:n.getMarkerMonth(e)!==n.getMarkerMonth(t)?4:n.getMarkerDay(e)!==n.getMarkerDay(t)?2:ae(e)!==ae(t)?1:0}function et(e,t){var n={};for(var r in e)r in qa&&!(qa[r]<=t)||(n[r]=e[r]);return n}function tt(e,t,n,r){for(var i=0;i<e.length;){var a=e.indexOf(t,i);if(a===-1)break;var o=e.substr(0,a);i=a+t.length;for(var s=e.substr(i),l=0;l<n.length;){var u=n.indexOf(r,l);if(u===-1)break;var c=n.substr(0,u);l=u+r.length;var d=n.substr(l);if(o===c&&s===d)return{before:o,after:s}}}return null}function nt(e,t){var n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function rt(e,t,n,r){var i=nt(e,n.calendarSystem),a=t?nt(t,n.calendarSystem):null;return{date:i,start:i,end:a,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}function it(e){return"object"==typeof e&&e?new Za(e):"string"==typeof e?new Ja(e):"function"==typeof e?new eo(e):null}function at(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?pe(e,t):e===t}function ot(e){return se(e,ao)}function st(e,t){var n={},r={};for(var i in t)i in e&&(n[i]=t[i](e[i]));for(var i in e)i in t||(r[i]=e[i]);return{refined:n,extra:r}}function lt(e){return e}function ut(e,t,n,r){for(var i=pt(),a=wt(n),o=0,s=e;o<s.length;o++){var l=s[o],u=Et(l,t,n,r,a);u&&ct(u,i)}return i}function ct(e,t){return void 0===t&&(t=pt()),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function dt(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],i=gt(e,function(e){return ht(r,e)});return i.defs[r.defId]=r,i.instances[n.instanceId]=n,i}return pt()}function ht(e,t){return Boolean(e.groupId&&e.groupId===t.groupId)}function pt(){return{defs:{},instances:{}}}function ft(e,t){return{defs:Ra.__assign(Ra.__assign({},e.defs),t.defs),instances:Ra.__assign(Ra.__assign({},e.instances),t.instances)}}function gt(e,t){var n=le(e.defs,t),r=le(e.instances,function(e){return n[e.defId]});return{defs:n,instances:r}}function mt(e,t){var n=e.defs,r=e.instances,i={},a={};for(var o in n)t.defs[o]||(i[o]=n[o]);for(var s in r)!t.instances[s]&&i[r[s].defId]&&(a[s]=r[s]);return{defs:i,instances:a}}function vt(e,t){return Array.isArray(e)?ut(e,null,t,!0):"object"==typeof e&&e?ut([e],null,t,!0):null!=e?String(e):null}function yt(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}function _t(e,t){var n=vt(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function bt(e){return e.reduce(Tt,lo)}function Tt(e,t){return{display:null!=t.display?t.display:e.display,startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}function Et(e,t,n,r,i){void 0===i&&(i=wt(n));var a=St(e,n,i),o=a.refined,s=a.extra,l=Dt(t,n),u=ye(o,l,n.dateEnv,n.pluginHooks.recurringTypes);if(u){var c=Ct(o,s,t?t.sourceId:"",u.allDay,Boolean(u.duration),n);return c.recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:c,instance:null}}var d=kt(o,l,n,r);if(d){var c=Ct(o,s,t?t.sourceId:"",d.allDay,d.hasEnd,n),h=oe(c.defId,d.range,d.forcedStartTzo,d.forcedEndTzo);return{def:c,instance:h}}return null}function St(e,t,n){return void 0===n&&(n=wt(t)),st(e,n)}function wt(e){return Ra.__assign(Ra.__assign(Ra.__assign({},so),ho),e.pluginHooks.eventRefiners)}function Ct(e,t,n,r,i,a){for(var o={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:b(),sourceId:n,allDay:r,hasEnd:i,interactive:e.interactive,ui:_t(e,a),extendedProps:Ra.__assign(Ra.__assign({},e.extendedProps||{}),t)},s=0,l=a.pluginHooks.eventDefMemberAdders;s<l.length;s++){var u=l[s];Ra.__assign(o,u(e))}return Object.freeze(o.ui.classNames),Object.freeze(o.extendedProps),o}function kt(e,t,n,r){var i,a,o=e.allDay,s=null,l=!1,u=null,c=null!=e.start?e.start:e.date;if(i=n.dateEnv.createMarkerMeta(c))s=i.marker;else if(!r)return null;return null!=e.end&&(a=n.dateEnv.createMarkerMeta(e.end)),null==o&&(o=null!=t?t:(!i||i.isTimeUnspecified)&&(!a||a.isTimeUnspecified)),o&&s&&(s=G(s)),a&&(u=a.marker,o&&(u=G(u)),s&&u<=s&&(u=null)),u?l=!0:r||(l=n.options.forceEventDuration||!1,u=n.dateEnv.add(s,o?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration)),{allDay:o,hasEnd:l,range:{start:s,end:u},forcedStartTzo:i?i.forcedTzo:null,forcedEndTzo:a?a.forcedTzo:null}}function Dt(e,t){var n=null;return e&&(n=e.defaultAllDay),null==n&&(n=t.options.defaultAllDay),n}function xt(e){var t=Math.floor(B(e.start,e.end))||1,n=G(e.start),r=U(n,t);return{start:n,end:r}}function At(e,t){void 0===t&&(t=Te(0));var n=null,r=null;if(e.end){r=G(e.end);var i=e.end.valueOf()-r.valueOf();i&&i>=Re(t)&&(r=U(r,1))}return e.start&&(n=G(e.start),r&&r<=n&&(r=U(n,1))),{start:n,end:r}}function It(e){var t=At(e);return B(t.start,t.end)>1}function Ot(e,t,n,r){return"year"===r?Te(n.diffWholeYears(e,t),"year"):"month"===r?Te(n.diffWholeMonths(e,t),"month"):z(e,t)}function Pt(e,t){var n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),n||r?n&&r&&r<n?null:{start:n,end:r}:null}function Mt(e,t){var n,r,i=[],a=t.start;for(e.sort(Rt),n=0;n<e.length;n+=1)r=e[n],r.start>a&&i.push({start:a,end:r.start}),r.end>a&&(a=r.end);return a<t.end&&i.push({start:a,end:t.end}),i}function Rt(e,t){return e.start.valueOf()-t.start.valueOf()}function Lt(e,t){var n=e.start,r=e.end,i=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(i={start:n,end:r}),i}function Nt(e,t){return(null===e.start?null:e.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===e.end?null:e.end.valueOf())===(null===t.end?null:t.end.valueOf())}function Ut(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function Ht(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function jt(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function Bt(e,t){return null!=t.start&&e<t.start?t.start:null!=t.end&&e>=t.end?new Date(t.end.valueOf()-1):e}function Ft(e,t,n,r){var i={},a={},o={},s=[],l=[],u=$t(e.defs,t);for(var c in e.defs){var d=e.defs[c],h=u[d.defId];"inverse-background"===h.display&&(d.groupId?(i[d.groupId]=[],o[d.groupId]||(o[d.groupId]=d)):a[c]=[])}
102for(var p in e.instances){var f=e.instances[p],d=e.defs[f.defId],h=u[d.defId],g=f.range,m=!d.allDay&&r?At(g,r):g,v=Lt(m,n);v&&("inverse-background"===h.display?d.groupId?i[d.groupId].push(v):a[f.defId].push(v):"none"!==h.display&&("background"===h.display?s:l).push({def:d,ui:h,instance:f,range:v,isStart:m.start&&m.start.valueOf()===v.start.valueOf(),isEnd:m.end&&m.end.valueOf()===v.end.valueOf()}))}for(var y in i)for(var _=i[y],b=Mt(_,n),T=0,E=b;T<E.length;T++){var S=E[T],d=o[y],h=u[d.defId];s.push({def:d,ui:h,instance:null,range:S,isStart:!1,isEnd:!1})}for(var c in a)for(var _=a[c],b=Mt(_,n),w=0,C=b;w<C.length;w++){var S=C[w];s.push({def:e.defs[c],ui:u[c],instance:null,range:S,isStart:!1,isEnd:!1})}return{bg:s,fg:l}}function Vt(e){return"background"===e.ui.display||"inverse-background"===e.ui.display}function Wt(e,t){e.fcSeg=t}function zt(e){return e.fcSeg||e.parentNode.fcSeg||null}function $t(e,t){return ue(e,function(e){return qt(e,t)})}function qt(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),bt(n)}function Gt(e,t){var n=e.map(Yt);return n.sort(function(e,n){return x(e,n,t)}),n.map(function(e){return e._seg})}function Yt(e){var t=e.eventRange,n=t.def,r=t.instance?t.instance.range:t.range,i=r.start?r.start.valueOf():0,a=r.end?r.end.valueOf():0;return Ra.__assign(Ra.__assign(Ra.__assign({},n.extendedProps),n),{id:n.publicId,start:i,end:a,duration:a-i,allDay:Number(n.allDay),_seg:e})}function Xt(e,t){for(var n=t.pluginHooks,r=n.isDraggableTransformers,i=e.eventRange,a=i.def,o=i.ui,s=o.startEditable,l=0,u=r;l<u.length;l++){var c=u[l];s=c(s,a,o,t)}return s}function Kt(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function Qt(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function Zt(e,t,n,r,i,a,o){var s=n.dateEnv,l=n.options,u=l.displayEventTime,c=l.displayEventEnd,d=e.eventRange.def,h=e.eventRange.instance;null==u&&(u=r!==!1),null==c&&(c=i!==!1);var p=h.range.start,f=h.range.end,g=a||e.start||e.eventRange.range.start,m=o||e.end||e.eventRange.range.end,v=G(p).valueOf()===G(g).valueOf(),y=G(H(f,-1)).valueOf()===G(H(m,-1)).valueOf();return u&&!d.allDay&&(v||y)?(g=v?p:g,m=y?f:m,c&&d.hasEnd?s.formatRange(g,m,t,{forcedStartTzo:a?null:h.forcedStartTzo,forcedEndTzo:o?null:h.forcedEndTzo}):s.format(g,t,{forcedTzo:a?null:h.forcedStartTzo})):""}function Jt(e,t,n){var r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&jt(t,r.start)}}function en(e){var t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}function tn(e){return e.instance?e.instance.instanceId:e.def.defId+":"+e.range.start.toISOString()}function nn(e,t){var n=e.eventRange,r=n.def,i=n.instance,a=r.url;if(a)return{href:a};var o=t.emitter,s=t.options,l=s.eventInteractive;return null==l&&(l=r.interactive,null==l&&(l=Boolean(o.hasHandlers("eventClick")))),l?_(function(e){o.trigger("eventClick",{el:e.target,event:new vo(t,r,i),jsEvent:e,view:t.viewApi})}):{}}function rn(e,t,n){var r=an(e,t),i=r.range;if(!i.start)return null;if(!i.end){if(null==n)return null;i.end=t.add(i.start,n)}return r}function an(e,t){var n=st(e,po),r=n.refined,i=n.extra,a=r.start?t.createMarkerMeta(r.start):null,o=r.end?t.createMarkerMeta(r.end):null,s=r.allDay;return null==s&&(s=a&&a.isTimeUnspecified&&(!o||o.isTimeUnspecified)),Ra.__assign({range:{start:a?a.marker:null,end:o?o.marker:null},allDay:s},i)}function on(e,t){return Nt(e.range,t.range)&&e.allDay===t.allDay&&sn(e,t)}function sn(e,t){for(var n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(var n in e)if(!(n in t))return!1;return!0}function ln(e,t){return Ra.__assign(Ra.__assign({},cn(e.range,t,e.allDay)),{allDay:e.allDay})}
102function un(e,t,n){return Ra.__assign(Ra.__assign({},cn(e,t,n)),{timeZone:t.timeZone})}function cn(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function dn(e,t,n){var r=St({editable:!1},n),i=Ct(r.refined,r.extra,"",e.allDay,!0,n);return{def:i,ui:qt(i,t),instance:oe(i.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function hn(e,t,n){n.emitter.trigger("select",Ra.__assign(Ra.__assign({},fn(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function pn(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}function fn(e,t){for(var n={},r=0,i=t.pluginHooks.dateSpanTransforms;r<i.length;r++){var a=i[r];Ra.__assign(n,a(e,t))}return Ra.__assign(n,ln(e,t.dateEnv)),n}function gn(e,t,n){var r=n.dateEnv,i=n.options,a=t;return e?(a=G(a),a=r.add(a,i.defaultAllDayEventDuration)):a=r.add(a,i.defaultTimedEventDuration),a}function mn(e,t,n,r){var i=$t(e.defs,t),a=pt();for(var o in e.defs){var s=e.defs[o];a.defs[o]=vn(s,i[o],n,r)}for(var l in e.instances){var u=e.instances[l],s=a.defs[u.defId];a.instances[l]=yn(u,s,i[u.defId],n,r)}return a}function vn(e,t,n,r){var i=n.standardProps||{};null==i.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(i.hasEnd=!0);var a=Ra.__assign(Ra.__assign(Ra.__assign({},e),i),{ui:Ra.__assign(Ra.__assign({},e.ui),i.ui)});n.extendedProps&&(a.extendedProps=Ra.__assign(Ra.__assign({},a.extendedProps),n.extendedProps));for(var o=0,s=r.pluginHooks.eventDefMutationAppliers;o<s.length;o++){var l=s[o];l(a,n,r)}return!a.hasEnd&&r.options.forceEventDuration&&(a.hasEnd=!0),a}function yn(e,t,n,r,i){var a=i.dateEnv,o=r.standardProps&&r.standardProps.allDay===!0,s=r.standardProps&&r.standardProps.hasEnd===!1,l=Ra.__assign({},e);return o&&(l.range=xt(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:a.add(l.range.start,r.datesDelta),end:a.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:a.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:a.add(l.range.end,r.endDelta)}),s&&(l.range={start:l.range.start,end:gn(t.allDay,l.range.start,i)}),t.allDay&&(l.range={start:G(l.range.start),end:G(l.range.end)}),l.range.end<l.range.start&&(l.range.end=gn(t.allDay,l.range.start,i)),l}function _n(e,t,n){void 0===n&&(n=bn(t));var r;if("string"==typeof e?r={url:e}:"function"==typeof e||Array.isArray(e)?r={events:e}:"object"==typeof e&&e&&(r=e),r){var i=st(r,n),a=i.refined,o=i.extra,s=Tn(a,t);if(s)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:a.defaultAllDay,eventDataTransform:a.eventDataTransform,success:a.success,failure:a.failure,publicId:a.id||"",sourceId:b(),sourceDefId:s.sourceDefId,meta:s.meta,ui:_t(a,t),extendedProps:o}}return null}function bn(e){return Ra.__assign(Ra.__assign(Ra.__assign({},so),go),e.pluginHooks.eventSourceRefiners)}function Tn(e,t){for(var n=t.pluginHooks.eventSourceDefs,r=n.length-1;r>=0;r-=1){var i=n[r],a=i.parseMeta(e);if(a)return{sourceDefId:r,meta:a}}return null}function En(e,t){switch(t.type){case"CHANGE_DATE":return t.dateMarker;default:return e}}function Sn(e,t){var n=e.initialDate;return null!=n?t.createMarker(n):wn(e.now,t)}function wn(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}function Cn(e){var t,n,r=e._def,i=e._instance;return{defs:(t={},t[r.defId]=r,t),instances:i?(n={},n[i.instanceId]=i,n):{}}}function kn(e,t,n){var r=e.defs,i=e.instances,a=[],o=n?n.instanceId:"";for(var s in i){var l=i[s],u=r[l.defId];l.instanceId!==o&&a.push(new vo(t,u,l))}return a}function Dn(e,t){yo[e]=t}function xn(e){return new yo[e]}function An(e){var t=Eo.exec(e);if(t){var n=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number("0."+t[12]):0));if(ie(n)){var r=null;return t[13]&&(r=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}function In(e){for(var t=e.length>0?e[0].code:"en",n=wo.concat(e),r={en:ko},i=0,a=n;i<a.length;i++){var o=a[i];
102r[o.code]=o}return{map:r,defaultCode:t}}function On(e,t){return"object"!=typeof e||Array.isArray(e)?Pn(e,t):Rn(e.code,[e.code],e)}function Pn(e,t){var n=[].concat(e||[]),r=Mn(n,t)||ko;return Rn(e,n,r)}function Mn(e,t){for(var n=0;n<e.length;n+=1)for(var r=e[n].toLocaleLowerCase().split("-"),i=r.length;i>0;i-=1){var a=r.slice(0,i).join("-");if(t[a])return t[a]}return null}function Rn(e,t,n){var r=se([Co,n],["buttonText"]);delete r.code;var i=r.week;return delete r.week,{codeArg:e,codes:t,week:i,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function Ln(e,t){void 0===t&&(t={});var n=Un(t),r=it(t),i=n.createMarkerMeta(e);return i?n.format(i.marker,r,{forcedTzo:i.forcedTzo}):""}function Nn(e,t,n){var r=Un("object"==typeof n&&n?n:{}),i=it(n),a=r.createMarkerMeta(e),o=r.createMarkerMeta(t);return a&&o?r.formatRange(a.marker,o.marker,i,{forcedStartTzo:a.forcedTzo,forcedEndTzo:o.forcedTzo,isEndExclusive:n.isEndExclusive,defaultSeparator:no.defaultRangeSeparator}):""}function Un(e){var t=On(e.locale||"en",In([]).map);return new So(Ra.__assign(Ra.__assign({timeZone:no.timeZone,calendarSystem:"gregory"},e),{locale:t}))}function Hn(e,t){return ut(jn(e),null,t)}function jn(e){var t;return t=e===!0?[{}]:Array.isArray(e)?e.filter(function(e){return e.daysOfWeek}):"object"==typeof e&&e?[e]:[],t=t.map(function(e){return Ra.__assign(Ra.__assign({},Do),e)})}function Bn(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function Fn(e,t){var n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function Vn(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}}function Wn(e,t){return{left:Math.min(Math.max(e.left,t.left),t.right),top:Math.min(Math.max(e.top,t.top),t.bottom)}}function zn(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}function $n(e,t){return{left:e.left-t.left,top:e.top-t.top}}function qn(){return null==bo&&(bo=Gn()),bo}function Gn(){if("undefined"==typeof document)return!0;var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);var t=e.querySelector("div"),n=t.offsetHeight>0;return document.body.removeChild(e),n}function Yn(e,t,n){var r=[];e&&r.push(e),t&&r.push(t);var i={"":bt(r)};return n&&Ra.__assign(i,n),i}function Xn(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!jt(r.activeRange,e)),isOther:Boolean(r&&!jt(r.currentRange,e)),isToday:Boolean(t&&jt(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function Kn(e,t){var n=["fc-day","fc-day-"+Fa[e.dow]];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}function Qn(e,t){var n=["fc-slot","fc-slot-"+Fa[e.dow]];return e.isDisabled?n.push("fc-slot-disabled"):(e.isToday&&(n.push("fc-slot-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-slot-past"),e.isFuture&&n.push("fc-slot-future")),n}function Zn(e,t,n,r){void 0===n&&(n="day"),void 0===r&&(r=!0);var i=e.dateEnv,a=e.options,o=e.calendarApi,s=i.format(t,"week"===n?Oo:Io); 103if(a.navLinks){var l=i.toDate(t),u=function(e){var r="day"===n?a.navLinkDayClick:"week"===n?a.navLinkWeekClick:null;"function"==typeof r?r.call(o,i.toDate(t),e):("string"==typeof r&&(n=r),o.zoomTo(t,n))};return Ra.__assign({title:P(a.navLinkHint,[s,l],s),"data-navlink":""},r?y(u):{onClick:u})}return{"aria-label":s}}function Jn(){return null===Po&&(Po=er()),Po}function er(){var e=document.createElement("div");l(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);var t=e.firstChild,n=t.getBoundingClientRect().left>e.getBoundingClientRect().left;return r(e),n}function tr(){return To||(To=nr()),To}function nr(){var e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);var t=rr(e);return document.body.removeChild(e),t}function rr(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function ir(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,i=parseInt(n.borderRightWidth,10)||0,a=parseInt(n.borderTopWidth,10)||0,o=parseInt(n.borderBottomWidth,10)||0,s=rr(e),l=s.y-r-i,u=s.x-a-o,c={borderLeft:r,borderRight:i,borderTop:a,borderBottom:o,scrollbarBottom:u,scrollbarLeft:0,scrollbarRight:0};return Jn()&&"rtl"===n.direction?c.scrollbarLeft=l:c.scrollbarRight=l,t&&(c.paddingLeft=parseInt(n.paddingLeft,10)||0,c.paddingRight=parseInt(n.paddingRight,10)||0,c.paddingTop=parseInt(n.paddingTop,10)||0,c.paddingBottom=parseInt(n.paddingBottom,10)||0),c}function ar(e,t,n){void 0===t&&(t=!1);var r=n?e.getBoundingClientRect():or(e),i=ir(e,t),a={left:r.left+i.borderLeft+i.scrollbarLeft,right:r.right-i.borderRight-i.scrollbarRight,top:r.top+i.borderTop,bottom:r.bottom-i.borderBottom-i.scrollbarBottom};return t&&(a.left+=i.paddingLeft,a.right-=i.paddingRight,a.top+=i.paddingTop,a.bottom-=i.paddingBottom),a}function or(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function sr(e){for(var t=cr(e),n=e.getBoundingClientRect(),r=0,i=t;r<i.length;r++){var a=i[r],o=Fn(n,a.getBoundingClientRect());if(!o)return null;n=o}return n}function lr(e){return e.getBoundingClientRect().height+ur(e)}function ur(e){var t=window.getComputedStyle(e);return parseInt(t.marginTop,10)+parseInt(t.marginBottom,10)}function cr(e){for(var t=[];e instanceof HTMLElement;){var n=window.getComputedStyle(e);
103if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function dr(e,t,n){var r=!1,i=function(){r||(r=!0,t.apply(this,arguments))},a=function(){r||(r=!0,n&&n.apply(this,arguments))},o=e(i,a);o&&"function"==typeof o.then&&o.then(i,a)}function hr(e,t,n){(e[t]||(e[t]=[])).push(n)}function pr(e,t,n){n?e[t]&&(e[t]=e[t].filter(function(e){return e!==n})):delete e[t]}function fr(e,t,n,r,i,a,o,s,l,u,c,d,h){return{dateEnv:i,options:n,pluginHooks:o,emitter:u,dispatch:s,getCurrentData:l,calendarApi:c,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:a,isRtl:"rtl"===n.direction,addResizeHandler:function(e){u.on("_resize",e)},removeResizeHandler:function(e){u.off("_resize",e)},createScrollResponder:function(e){return new jo(e,u,Te(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:d,unregisterInteractiveComponent:h}}function gr(e){var t=Object.create(this.prototype.propEquality);Ra.__assign(t,e),this.prototype.propEquality=t}function mr(e){var t=Object.create(this.prototype.stateEquality);Ra.__assign(t,e),this.prototype.stateEquality=t}function vr(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function yr(e){return{id:b(),deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,contentTypeHandlers:e.contentTypeHandlers||{},listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function _r(e,t){function n(e){for(var t=0,a=e;t<a.length;t++){var o=a[t];r[o.id]||(r[o.id]=!0,n(o.deps),i=Tr(i,o))}}var r={},i={reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};return e&&n(e),n(t),i}function br(){var e,t=[],n=[];return function(r,i){return e&&Ve(r,t)&&Ve(i,n)||(e=_r(r,i)),t=r,n=i,e}}function Tr(e,t){return{reducers:e.reducers.concat(t.reducers),isLoadingFuncs:e.isLoadingFuncs.concat(t.isLoadingFuncs),contextInit:e.contextInit.concat(t.contextInit),eventRefiners:Ra.__assign(Ra.__assign({},e.eventRefiners),t.eventRefiners),eventDefMemberAdders:e.eventDefMemberAdders.concat(t.eventDefMemberAdders),eventSourceRefiners:Ra.__assign(Ra.__assign({},e.eventSourceRefiners),t.eventSourceRefiners),isDraggableTransformers:e.isDraggableTransformers.concat(t.isDraggableTransformers),eventDragMutationMassagers:e.eventDragMutationMassagers.concat(t.eventDragMutationMassagers),eventDefMutationAppliers:e.eventDefMutationAppliers.concat(t.eventDefMutationAppliers),dateSelectionTransformers:e.dateSelectionTransformers.concat(t.dateSelectionTransformers),datePointTransforms:e.datePointTransforms.concat(t.datePointTransforms),dateSpanTransforms:e.dateSpanTransforms.concat(t.dateSpanTransforms),views:Ra.__assign(Ra.__assign({},e.views),t.views),viewPropsTransformers:e.viewPropsTransformers.concat(t.viewPropsTransformers),isPropsValid:t.isPropsValid||e.isPropsValid,externalDefTransforms:e.externalDefTransforms.concat(t.externalDefTransforms),viewContainerAppends:e.viewContainerAppends.concat(t.viewContainerAppends),eventDropTransformers:e.eventDropTransformers.concat(t.eventDropTransformers),calendarInteractions:e.calendarInteractions.concat(t.calendarInteractions),componentInteractions:e.componentInteractions.concat(t.componentInteractions),theme
103Classes:Ra.__assign(Ra.__assign({},e.themeClasses),t.themeClasses),eventSourceDefs:e.eventSourceDefs.concat(t.eventSourceDefs),cmdFormatter:t.cmdFormatter||e.cmdFormatter,recurringTypes:e.recurringTypes.concat(t.recurringTypes),namedTimeZonedImpl:t.namedTimeZonedImpl||e.namedTimeZonedImpl,initialView:e.initialView||t.initialView,elementDraggingImpl:e.elementDraggingImpl||t.elementDraggingImpl,optionChangeHandlers:Ra.__assign(Ra.__assign({},e.optionChangeHandlers),t.optionChangeHandlers),scrollGridImpl:t.scrollGridImpl||e.scrollGridImpl,contentTypeHandlers:Ra.__assign(Ra.__assign({},e.contentTypeHandlers),t.contentTypeHandlers),listenerRefiners:Ra.__assign(Ra.__assign({},e.listenerRefiners),t.listenerRefiners),optionRefiners:Ra.__assign(Ra.__assign({},e.optionRefiners),t.optionRefiners),propSetHandlers:Ra.__assign(Ra.__assign({},e.propSetHandlers),t.propSetHandlers)}}function Er(e,t){var n,r={};for(n in e)Sr(n,r,e,t);for(n in t)Sr(n,r,e,t);return r}function Sr(e,t,n,r){if(t[e])return t[e];var i=wr(e,t,n,r);return i&&(t[e]=i),i}function wr(e,t,n,r){var i=n[e],a=r[e],o=function(e){return i&&null!==i[e]?i[e]:a&&null!==a[e]?a[e]:null},s=o("component"),l=o("superType"),u=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");u=Sr(l,t,n,r)}return!s&&u&&(s=u.component),s?{type:e,component:s,defaults:Ra.__assign(Ra.__assign({},u?u.defaults:{}),i?i.rawOptions:{}),overrides:Ra.__assign(Ra.__assign({},u?u.overrides:{}),a?a.rawOptions:{})}:null}function Cr(e){return La.createElement(qo.Consumer,null,function(t){return La.createElement(Go,Ra.__assign({renderId:t},e))})}function kr(){var e,t,n=[];return function(r,i){return t&&pe(t,i)&&r===e||(e=r,t=i,n=Dr(r,i)),n}}function Dr(e,t){return"function"==typeof e&&(e=e(t)),yt(e)}function xr(e,t){return"function"==typeof e?e(t,La.createElement):e}function Ar(e){return ue(e,Ir)}function Ir(e){var t="function"==typeof e?{component:e}:e,n=t.component;return t.content&&(n=Or(t)),{superType:t.type,component:n,rawOptions:t}}function Or(e){return function(t){return La.createElement(Bo.Consumer,null,function(n){return La.createElement(Xo,{viewSpec:n.viewSpec},function(r,i){var a=Ra.__assign(Ra.__assign({},t),{nextDayThreshold:n.options.nextDayThreshold});return La.createElement($o,{hookProps:a,classNames:e.classNames,content:e.content,didMount:e.didMount,willUnmount:e.willUnmount,elRef:r},function(e,t,n,r){return La.createElement("div",{className:i.concat(t).join(" "),ref:e},r)})})})}}function Pr(e,t,n,r){var i=Ar(e),a=Ar(t.views),o=Er(i,a);return ue(o,function(e){return Mr(e,a,t,n,r)})}function Mr(e,t,n,r,i){var a=e.overrides.duration||e.defaults.duration||r.duration||n.duration,o=null,s="",l="",u={};if(a&&(o=Rr(a))){var c=Ne(o);s=c.unit,1===c.value&&(l=s,u=t[s]?t[s].rawOptions:{})}var d=function(t){var n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null},h=function(t){var n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null};return{type:e.type,component:e.component,duration:o,durationUnit:s,singleUnit:l,optionDefaults:e.defaults,optionOverrides:Ra.__assign(Ra.__assign({},u),e.overrides),buttonTextOverride:d(r)||d(n)||e.overrides.buttonText,buttonTextDefault:d(i)||e.defaults.buttonText||d(no)||e.type,buttonTitleOverride:h(r)||h(n)||e.overrides.buttonHint,buttonTitleDefault:h(i)||e.defaults.buttonHint||h(no)}}function Rr(e){var t=JSON.stringify(e),n=Ko[t];return void 0===n&&(n=Te(e),Ko[t]=n),n}function Lr(e,t){switch(t.type){case"CHANGE_VIEW_TYPE":e=t.viewType}return e}function Nr(e,t){var n;switch(t.type){case"SET_OPTION":return Ra.__assign(Ra.__assign({},e),(n={},n[t.optionName]=t.rawOptionValue,n));default:return e}}function Ur(e,t,n,r){var i;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if(i=r.buildPrev(e,n),i.isValid)return i;break;case"NEXT":if(i=r.buildNext(e,n),i.isValid)return i}return e}function Hr(e,t,n){var r=t?t.activeRange:null;return Vr({},Kr(e,n),r,n)}function jr(e,t,n,r){var i=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return Vr(e,t.sources,i,r);
103case"REMOVE_EVENT_SOURCE":return Wr(e,t.sourceId);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?zr(e,i,r):e;case"FETCH_EVENT_SOURCES":return qr(e,t.sourceIds?ce(t.sourceIds):Xr(e,r),i,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return Yr(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function Br(e,t,n){var r=t?t.activeRange:null;return qr(e,Xr(e,n),r,!0,n)}function Fr(e){for(var t in e)if(e[t].isFetching)return!0;return!1}function Vr(e,t,n,r){for(var i={},a=0,o=t;a<o.length;a++){var s=o[a];i[s.sourceId]=s}return n&&(i=zr(i,n,r)),Ra.__assign(Ra.__assign({},e),i)}function Wr(e,t){return le(e,function(e){return e.sourceId!==t})}function zr(e,t,n){return qr(e,le(e,function(e){return $r(e,t,n)}),t,!1,n)}function $r(e,t,n){return Qr(e,n)?!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end:!e.latestFetchId}function qr(e,t,n,r,i){var a={};for(var o in e){var s=e[o];t[o]?a[o]=Gr(s,n,r,i):a[o]=s}return a}function Gr(e,t,n,r){var i=r.options,a=r.calendarApi,o=r.pluginHooks.eventSourceDefs[e.sourceDefId],s=b();return o.fetch({eventSource:e,range:t,isRefetch:n,context:r},function(n){var o=n.rawEvents;i.eventSourceSuccess&&(o=i.eventSourceSuccess.call(a,o,n.xhr)||o),e.success&&(o=e.success.call(a,o,n.xhr)||o),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:s,fetchRange:t,rawEvents:o})},function(n){console.warn(n.message,n),i.eventSourceFailure&&i.eventSourceFailure.call(a,n),e.failure&&e.failure(n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:s,fetchRange:t,error:n})}),Ra.__assign(Ra.__assign({},e),{isFetching:!0,latestFetchId:s})}function Yr(e,t,n,r){var i,a=e[t];return a&&n===a.latestFetchId?Ra.__assign(Ra.__assign({},e),(i={},i[t]=Ra.__assign(Ra.__assign({},a),{isFetching:!1,fetchRange:r}),i)):e}function Xr(e,t){return le(e,function(e){return Qr(e,t)})}function Kr(e,t){var n=bn(t),r=[].concat(e.eventSources||[]),i=[];e.initialEvents&&r.unshift(e.initialEvents),e.events&&r.unshift(e.events);for(var a=0,o=r;a<o.length;a++){var s=o[a],l=_n(s,t,n);l&&i.push(l)}return i}function Qr(e,t){var n=t.pluginHooks.eventSourceDefs;return!n[e.sourceDefId].ignoreRange}function Zr(e,t,n,r,i){switch(t.type){case"RECEIVE_EVENTS":return Jr(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,i);case"ADD_EVENTS":return ni(e,t.eventStore,r?r.activeRange:null,i);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return ft(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?_e(e,r.activeRange,i):e;case"REMOVE_EVENTS":return mt(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return ii(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return gt(e,function(e){return!e.sourceId});case"REMOVE_ALL_EVENTS":return pt();default:return e}}function Jr(e,t,n,r,i,a){if(t&&n===t.latestFetchId){var o=ut(ei(i,t,a),t,a);return r&&(o=_e(o,r,a)),ft(ii(e,t.sourceId),o)}return e}function ei(e,t,n){var r=n.options.eventDataTransform,i=t?t.eventDataTransform:null;return i&&(e=ti(e,i)),r&&(e=ti(e,r)),e}function ti(e,t){var n;if(t){n=[];for(var r=0,i=e;r<i.length;r++){var a=i[r],o=t(a);o?n.push(o):null==o&&n.push(a)}}else n=e;return n}function ni(e,t,n,r){return n&&(t=_e(t,n,r)),ft(e,t)}function ri(e,t,n){var r=e.defs,i=ue(e.instances,function(e){var i=r[e.defId];return i.allDay||i.recurringDef?e:Ra.__assign(Ra.__assign({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})});return{defs:r,instances:i}}function ii(e,t){return gt(e,function(e){return e.sourceId!==t})}function ai(e,t){return{defs:e.defs,instances:le(e.instances,function(e){return!t[e.instanceId]})}}function oi(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function si(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function li(e,t){var n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function ui(e,t){var n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function ci(e,t,n,r,i){var a=e.headerToolbar?di(e.headerToolbar,e,t,n,r,i):null,o=e.footerToolbar?di(e.footerToolbar,e,t,n,r,i):null;return{header:a,footer:o}}function di(e,t,n,r,i,a){var o={},s=[],l=!1;for(var u in e){var c=e[u],d=hi(c,t,n,r,i,a);o[u]=d.widgets,s.push.apply(s,d.viewsWithButtons),l=l||d.hasTitle}return{sectionWidgets:o,viewsWithButtons:s,hasTitle:l}}function hi(e,t,n,r,i,a){var o="rtl"===t.direction,s=t.customButtons||{},l=n.buttonText||{},u=t.buttonText||{},c=n.buttonHints||{},d=t.buttonHints||{},h=e?e.split(" "):[],p=[],f=!1,g=h.map(function(e){return e.split(",").map(function(e){if("title"===e)return f=!0,{buttonName:e};var n,h,g,m,v,y;if(n=s[e])g=function(e){n.click&&n.click.call(e.target,e,e.target)},(m=r.getCustomButtonIconClass(n))||(m=r.getIconClass(e,o))||(v=n.text),y=n.hint||n.text;else if(h=i[e]){p.push(e),g=function(){a.changeView(e)},(v=h.buttonTextOverride)||(m=r.getIconClass(e,o))||(v=h.buttonTextDefault);var _=h.buttonTextOverride||h.buttonTextDefault;y=P(h.buttonTitleOverride||h.buttonTitleDefault||t.viewHint,[_,e],_)}else if(a[e])if(g=function(){a[e]()},(v=l[e])||(m=r.getIconClass(e,o))||(v=u[e]),"prevYear"===e||"nextYear"===e){var b="prevYear"===e?"prev":"next";y=P(c[b]||d[b],[u.year||"year","year"],u[e])}else y=function(t){return P(c[e]||d[e],[u[t]||t,t],u[e])};return{buttonName:e,buttonClick:g,buttonIcon:m,buttonText:v,buttonHint:y}})});return{widgets:g,viewsWithButtons:p,hasTitle:f}}function pi(e,t,n,r,i){e=e.toUpperCase();var a=null;"GET"===e?t=fi(t,n):a=gi(n);var o=new XMLHttpRequest;o.open(e,t,!0),"GET"!==e&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){if(o.status>=200&&o.status<400){var e=!1,t=void 0;try{t=JSON.parse(o.responseText),e=!0}catch(n){}e?r(t,o):i("Failure parsing JSON",o)}else i("Request failed",o)},o.onerror=function(){i("Request failed",o)},o.send(a)}function fi(e,t){return e+(e.indexOf("?")===-1?"?":"&")+gi(t)}function gi(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}
103function mi(e,t,n){var r,i,a,o,s=n.dateEnv,l=n.options,u={};return r=e.startParam,null==r&&(r=l.startParam),i=e.endParam,null==i&&(i=l.endParam),a=e.timeZoneParam,null==a&&(a=l.timeZoneParam),o="function"==typeof e.extraParams?e.extraParams():e.extraParams||{},Ra.__assign(u,o),u[r]=s.formatIso(t.start),u[i]=s.formatIso(t.end),"local"!==s.timeZone&&(u[a]=s.timeZone),u}function vi(e,t,n,r){for(var i=e?ce(e):null,a=G(n.start),o=n.end,s=[];a<o;){var l=void 0;i&&!i[a.getUTCDay()]||(l=t?r.add(a,t):a,s.push(l)),a=U(a,1)}return s}function yi(e,t){for(var n=he(t.getCurrentData().eventSources),r=[],i=0,a=e;i<a.length;i++){for(var o=a[i],s=!1,l=0;l<n.length;l+=1)if(n[l]._raw===o){n.splice(l,1),s=!0;break}s||r.push(o)}for(var u=0,c=n;u<c.length;u++){var d=c[u];t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:d.sourceId})}for(var h=0,p=r;h<p.length;h++){var f=p[h];t.calendarApi.addEventSource(f)}}function _i(e,t){t.emitter.trigger("datesSet",Ra.__assign(Ra.__assign({},un(e.activeRange,t.dateEnv)),{view:t.viewApi}))}function bi(e,t){var n=t.emitter;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",kn(e,t))}function Ti(){function e(e,t){e===n&&t===r||(e.innerHTML=t),n=e,r=t}function t(){n.innerHTML="",n=null,r=""}var n=null,r="";return{render:e,destroy:t}}function Ei(){function e(e,r){var a=Array.prototype.slice.call(r);if(e!==n||!Ve(i,a)){for(var o=0,s=a;o<s.length;o++){var l=s[o];e.appendChild(l)}t()}n=e,i=a}function t(){i.forEach(r),i=[],n=null}var n=null,i=[];return{render:e,destroy:t}}function Si(e,t,n){var r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,it(t.titleFormat||wi(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}function wi(e){var t=e.currentRangeUnit;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};var n=q(e.currentRange.start,e.currentRange.end);return null!==n&&n>1?{year:"numeric",month:"short",day:"numeric"}:{year:"numeric",month:"long",day:"numeric"}}function Ci(e,t,n,r,i,a,o,s){var l=On(t||o.defaultCode,o.map);return new So({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:a.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:i,cmdFormatter:a.cmdFormatter,defaultSeparator:s})}function ki(e,t){var n=t.themeClasses[e.themeSystem]||zo;return new n(e)}function Di(e){var t=e.dateProfileGeneratorClass||Qo;return new t(e)}function xi(e,t,n){return new fo(e,t,n)}function Ai(e){return ue(e,function(e){return e.ui})}function Ii(e,t,n){var r={"":t};for(var i in e){var a=e[i];a.sourceId&&n[a.sourceId]&&(r[i]=n[a.sourceId])}return r}function Oi(e){var t=e.options;return{eventUiSingleBase:_t({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"==typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:_t({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function Pi(e,t){for(var n=0,r=t.pluginHooks.isLoadingFuncs;n<r.length;n++){var i=r[n];if(i(e))return!0}return!1}function Mi(e){return Hn(e.options.businessHours,e)}function Ri(e,t){for(var n in e)console.warn("Unknown option '"+n+"'"+(t?" for view '"+t+"'":""))}function Li(e,t){return Ft(e.eventStore,e.eventUiBases,e.dateProfile.activeRange,t?e.nextDayThreshold:null).fg}function Ni(e){return e.span.end}function Ui(e){return e.index+":"+e.span.start}function Hi(e){for(var t=[],n=0,r=e;n<r.length;n++){for(var i=r[n],a=[],o={span:i.span,entries:[i]},s=0,l=t;s<l.length;s++){var u=l[s];Bi(u.span,o.span)?o={entries:u.entries.concat(o.entries),span:ji(u.span,o.span)}:a.push(u)}a.push(o),t=a}return t}function ji(e,t){return{start:Math.min(e.start,t.start),end:Math.max(e.end,t.end)}}function Bi(e,t){var n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function Fi(e,t,n){e.splice(t,0,n)}function Vi(e,t,n){var r=0,i=e.length;if(!i||t<n(e[r]))return[0,0];if(t>n(e[i-1]))return[i,0];for(;r<i;){var a=Math.floor(r+(i-r)/2),o=n(e[a]);if(t<o)i=a;else{if(!(t>o))return[a,1];r=a+1}}return[r,0]}function Wi(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}function zi(e){var t;return t={},t[e.component.uid]=e,t}function $i(e){var t=st(e,bs),n=t.refined,r=t.extra;return{startTime:n.startTime||null,duration:n.duration||null,create:null==n.create||n.create,sourceId:n.sourceId,leftoverProps:r}}function qi(e,t,n,r,i,a){var o=n.build(i,void 0,!1),s=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:a,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:o.isValid&&!jt(t.currentRange,i),isPrevEnabled:s.isValid,isNextEnabled:l.isValid}}function Gi(e){return e.map(function(e){return new e})}function Yi(e,t){return it(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}function Xi(e){return e.text}function Ki(e){var t=G(e),n=U(t,1);return{start:t,end:n}}function Qi(e,t,n){return e||Yi(t,n)}function Zi(e,t){var n=e.activeRange;return t?n:{start:H(n.start,e.slotMinTime.milliseconds),end:H(n.end,e.slotMaxTime.milliseconds-864e5)}}
103function Ji(e,t,n){var r=e.mutatedEvents.instances;for(var i in r)if(!Ht(t.validRange,r[i].range))return!1;return ta({eventDrag:e},n)}function ea(e,t,n){return!!Ht(t.validRange,e.range)&&ta({dateSelection:e},n)}function ta(e,t){var n=t.getCurrentData(),r=Ra.__assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||na)(r,t)}function na(e,t,n,r){return void 0===n&&(n={}),!(e.eventDrag&&!ra(e,t,n,r))&&!(e.dateSelection&&!ia(e,t,n,r))}function ra(e,t,n,r){var i=t.getCurrentData(),a=e.eventDrag,o=a.mutatedEvents,s=o.defs,l=o.instances,u=$t(s,a.isEvent?e.eventUiBases:{"":i.selectionConfig});r&&(u=ue(u,r));var c=ai(e.eventStore,a.affectedEvents.instances),d=c.defs,h=c.instances,p=$t(d,e.eventUiBases);for(var f in l){var g=l[f],m=g.range,v=u[g.defId],y=s[g.defId];if(!aa(v.constraints,m,c,e.businessHours,t))return!1;var _=t.options.eventOverlap,b="function"==typeof _?_:null;for(var T in h){var E=h[T];if(Ut(m,E.range)){var S=p[E.defId].overlap;if(S===!1&&a.isEvent)return!1;if(v.overlap===!1)return!1;if(b&&!b(new vo(t,d[E.defId],E),new vo(t,y,g)))return!1}}for(var w=i.eventStore,C=0,k=v.allows;C<k.length;C++){var D=k[C],x=Ra.__assign(Ra.__assign({},n),{range:g.range,allDay:y.allDay}),A=w.defs[y.defId],I=w.instances[f],O=void 0;if(O=A?new vo(t,A,I):new vo(t,y),!D(fn(x,t),O))return!1}}return!0}function ia(e,t,n,r){var i=e.eventStore,a=i.defs,o=i.instances,s=e.dateSelection,l=s.range,u=t.getCurrentData().selectionConfig;if(r&&(u=r(u)),!aa(u.constraints,l,i,e.businessHours,t))return!1;var c=t.options.selectOverlap,d="function"==typeof c?c:null;for(var h in o){var p=o[h];if(Ut(l,p.range)){if(u.overlap===!1)return!1;if(d&&!d(new vo(t,a[p.defId],p),null))return!1}}for(var f=0,g=u.allows;f<g.length;f++){var m=g[f],v=Ra.__assign(Ra.__assign({},n),s);if(!m(fn(v,t),null))return!1}return!0}function aa(e,t,n,r,i){for(var a=0,o=e;a<o.length;a++){var s=o[a];if(!la(oa(s,t,n,r,i),t))return!1}return!0}function oa(e,t,n,r,i){return"businessHours"===e?sa(_e(r,t,i)):"string"==typeof e?sa(gt(n,function(t){return t.groupId===e})):"object"==typeof e&&e?sa(_e(e,t,i)):[]}function sa(e){var t=e.instances,n=[];for(var r in t)n.push(t[r].range);return n}function la(e,t){for(var n=0,r=e;n<r.length;n++){var i=r[n];if(Ht(i,t))return!0}return!1}function ua(e){for(var t=o(e,".fc-scrollgrid-shrink"),n=0,r=0,i=t;r<i.length;r++){var a=i[r];n=Math.max(n,L(a))}return Math.ceil(n)}function ca(e,t){return e.liquid&&t.liquid}function da(e,t){return null!=t.maxHeight||ca(e,t)}function ha(e,t,n,r){var i=n.expandRows,a="function"==typeof t.content?t.content(n):La.createElement("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:i?n.clientHeight:""}},n.tableColGroupNode,La.createElement(r?"thead":"tbody",{role:"presentation"},"function"==typeof t.rowContent?t.rowContent(n):t.rowContent));return a}function pa(e,t){return Ve(e,t,pe)}function fa(e,t){for(var n=[],r=0,i=e;r<i.length;r++)for(var a=i[r],o=a.span||1,s=0;s<o;s+=1)n.push(La.createElement("col",{style:{width:"shrink"===a.width?ga(t):a.width||"",minWidth:a.minWidth||""}}));return La.createElement.apply(void 0,Ra.__spreadArray(["colgroup",{}],n))}function ga(e){return null==e?4:e}function ma(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];if("shrink"===r.width)return!0}return!1}function va(e,t){var n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function ya(e,t){var n=["fc-scrollgrid-section","fc-scrollgrid-section-"+e.type,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function _a(e){return La.createElement("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function ba(e){var t=e.stickyHeaderDates;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function Ta(e){var t=e.stickyFooterScrollbar;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function Ea(e,t){for(var n=0,r=e;n<r.length;n++){var i=r[n];if(i.key===t)return i}return null}function Sa(e){return La.createElement("div",{className:"fc-event-main-frame"},e.timeText&&La.createElement("div",{className:"fc-event-time"},e.timeText),La.createElement("div",{className:"fc-event-title-container"},La.createElement("div",{className:"fc-event-title fc-sticky"},e.event.title||La.createElement(La.Fragment,null,"Â "))))}function wa(e){var t=e.date,n=e.dateEnv,r=Xn(t,e.todayRange,null,e.dateProfile);return Ra.__assign(Ra.__assign(Ra.__assign({date:n.toDate(t),view:e.viewApi},r),{dayNumberText:e.showDayNumber?n.format(t,zs):""}),e.extraProps)}function Ca(e){return La.createElement("div",{className:"fc-"+e})}function ka(e){var t=e.event.title;return t&&La.createElement("div",{className:"fc-event-title"},e.event.title)}function Da(e){return e.text}function xa(e){return e.text}function Aa(e){if(e.allDayDate)return{start:e.allDayDate,end:U(e.allDayDate,1)};var t=e.hiddenSegs;return{start:Ia(t),end:Pa(t)}}function Ia(e){return e.reduce(Oa).eventRange.range.start}function Oa(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function Pa(e){return e.reduce(Ma).eventRange.range.end}function Ma(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}
103Object.defineProperty(t,"__esModule",{value:!0});var Ra=n(66),La=n(71),Na=function(){function e(e,t){this.context=e,this.internalEventSource=t}return e.prototype.remove=function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},e.prototype.refetch=function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(e.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0}),e}(),Ua=/(top|left|right|bottom|width|height)$/i,Ha=0,ja=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"],Ba=0,Fa=["sun","mon","tue","wed","thu","fri","sat"],Va=Object.prototype.hasOwnProperty,Wa=["years","months","days","milliseconds"],za=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/,$a={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},qa={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Ga=/\s*([ap])\.?m\.?/i,Ya=/,/g,Xa=/\s+/g,Ka=/\u200e/g,Qa=/UTC|GMT/,Za=function(){function e(e){var t={},n={},r=0;for(var i in e)i in $a?(n[i]=e[i],r=Math.max($a[i],r)):(t[i]=e[i],i in qa&&(r=Math.max(qa[i],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=We(Ge)}return e.prototype.format=function(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)},e.prototype.formatRange=function(e,t,n,r){var i=this,a=i.standardDateProps,o=i.extendedSettings,s=Je(e.marker,t.marker,n.calendarSystem);if(!s)return this.format(e,n);var l=s;!(l>1)||"numeric"!==a.year&&"2-digit"!==a.year||"numeric"!==a.month&&"2-digit"!==a.month||"numeric"!==a.day&&"2-digit"!==a.day||(l=1);var u=this.format(e,n),c=this.format(t,n);if(u===c)return u;var d=et(a,l),h=Ge(d,o,n),p=h(e),f=h(t),g=tt(u,p,c,f),m=o.separator||r||n.defaultSeparator||"";return g?g.before+p+m+f+g.after:u+m+c},e.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}},e}(),Ja=function(){function e(e){this.cmdStr=e}return e.prototype.format=function(e,t,n){return t.cmdFormatter(this.cmdStr,rt(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return n.cmdFormatter(this.cmdStr,rt(e,t,n,r))},e}(),eo=function(){function e(e){ 104this.func=e}return e.prototype.format=function(e,t,n){return this.func(rt(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return this.func(rt(e,t,n,r))},e}(),to={navLinkDayClick:lt,navLinkWeekClick:lt,duration:Te,bootstrapFontAwesome:lt,buttonIcons:lt,customButtons:lt,defaultAllDayEventDuration:Te,defaultTimedEventDuration:Te,nextDayThreshold:Te,scrollTime:Te,scrollTimeReset:Boolean,slotMinTime:Te,slotMaxTime:Te,dayPopoverFormat:it,slotDuration:Te,snapDuration:Te,headerToolbar:lt,footerToolbar:lt,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:it,dayHeaderClassNames:lt,dayHeaderContent:lt,dayHeaderDidMount:lt,dayHeaderWillUnmount:lt,dayCellClassNames:lt,dayCellContent:lt,dayCellDidMount:lt,dayCellWillUnmount:lt,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:lt,weekNumbers:Boolean,weekNumberClassNames:lt,weekNumberContent:lt,weekNumberDidMount:lt,weekNumberWillUnmount:lt,editable:Boolean,viewClassNames:lt,viewDidMount:lt,viewWillUnmount:lt,nowIndicator:Boolean,nowIndicatorClassNames:lt,nowIndicatorContent:lt,nowIndicatorDidMount:lt,nowIndicatorWillUnmount:lt,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:lt,locale:lt,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:lt,eventOrder:D,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:lt,contentHeight:lt,direction:String,weekNumberFormat:it,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:lt,initialDate:lt,now:lt,eventDataTransform:lt,stickyHeaderDates:lt,stickyFooterScrollbar:lt,viewHeight:lt,defaultAllDay:Boolean,eventSourceFailure:lt,eventSourceSuccess:lt,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:lt,eventConstraint:lt,eventAllow:lt,eventBackgroun
vendor: 4,114 bytes, line 104
104dColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:lt,eventContent:lt,eventDidMount:lt,eventWillUnmount:lt,selectConstraint:lt,selectOverlap:lt,selectAllow:lt,droppable:Boolean,unselectCancel:String,slotLabelFormat:lt,slotLaneClassNames:lt,slotLaneContent:lt,slotLaneDidMount:lt,slotLaneWillUnmount:lt,slotLabelClassNames:lt,slotLabelContent:lt,slotLabelDidMount:lt,slotLabelWillUnmount:lt,dayMaxEvents:lt,dayMaxEventRows:lt,dayMinWidth:Number,slotLabelInterval:Te,allDayText:String,allDayClassNames:lt,allDayContent:lt,allDayDidMount:lt,allDayWillUnmount:lt,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:it,rerenderDelay:Number,moreLinkText:lt,moreLinkHint:lt,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:lt,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Te,hiddenDays:lt,monthMode:Boolean,fixedWeekCount:Boolean,validRange:lt,visibleRange:lt,titleFormat:lt,eventInteractive:Boolean,noEventsText:String,viewHint:lt,navLinkHint:lt,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:lt,moreLinkClassNames:lt,moreLinkContent:lt,moreLinkDidMount:lt,moreLinkWillUnmount:lt},no={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" â ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30},ro={datesSet:lt,eventsSet:lt,eventAdd:lt,eventChange:lt,eventRemove:lt,windowResize:lt,eventClick:lt,eventMouseEnter:lt,eventMouseLeave:lt,select:lt,unselect:lt,loading:lt,_unmount:lt,_beforeprint:lt,_afterprint:lt,_noEventDrop:lt,_noEventResize:lt,_resize:lt,_scrollRequest:lt},io={buttonText:lt,buttonHints:lt,views:lt,plugins:lt,initialEvents:lt,events:lt,eventSources:lt},ao={headerToolbar:at,footerToolbar:at,buttonText:at,buttonHints:at,buttonIcons:at,dateIncrement:at},oo={type:String,component:lt,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:lt,usesMinMaxTime:Boolean,classNames:lt,content:lt,didMount:lt,willUnmount:lt},so={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:lt,overlap:lt,allow:lt,className:yt,classNames:yt,color:String,backgroundColor:String,borderColor:String,textColor:String},lo={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]},uo={id:String,groupId:String,title:String,url:String,interactive:Boolean},co={start:lt,end:lt,date:lt,allDay:Boolean},ho=Ra.__assign(Ra.__assign(Ra.__assign({},uo),co),{extendedProps:lt}),po={start:lt,end:lt,allDay:Boolean},fo=function(){function e(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}return Object.defineProperty(e.prototype,"calendar",{get:function(){return this.getCurrentData().calendarApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.getCurrentData().viewTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}
104,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)},enumerable:!1,configurable:!0}),e.prototype.getOption=function(e){return this.getCurrentData().options[e]},e}(),go={id:String,defaultAllDay:Boolean,url:String,format:String,events:lt,eventDataTransform:lt,success:lt,failure:lt},mo=function(){function e(){}return e.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},e.prototype.dispatch=function(e){return this.currentDataManager.dispatch(e)},Object.defineProperty(e.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),e.prototype.batchRendering=function(e){e()},e.prototype.updateSize=function(){this.trigger("_resize",!0)},e.prototype.setOption=function(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})},e.prototype.getOption=function(e){return this.currentDataManager.currentCalendarOptionsInput[e]},e.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},e.prototype.on=function(e,t){var n=this.currentDataManager;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn("Unknown listener name '"+e+"'")},e.prototype.off=function(e,t){this.currentDataManager.emitter.off(e,t)},e.prototype.trigger=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(t=this.currentDataManager.emitter).trigger.apply(t,Ra.__spreadArray([e],n))},e.prototype.changeView=function(e,t){var n=this;this.batchRendering(function(){if(n.unselect(),t)if(t.start&&t.end)n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),n.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{var r=n.getCurrentData().dateEnv;n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(t)})}else n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})})},e.prototype.zoomTo=function(e,t){var n,r=this.getCurrentData();t=t||"day",n=r.viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})},e.prototype.getUnitViewSpec=function(e){var t,n,r=this.getCurrentData(),i=r.viewSpecs,a=r.toolbarConfig,o=[].concat(a.header?a.header.viewsWithButtons:[],a.footer?a.footer.viewsWithButtons:[]);for(var s in i)o.push(s);for(t=0;t<o.length;t+=1)if(n=i[o[t]],n&&n.singleUnit===e)return n;return null},e.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},e.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},e.prototype.prevYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})},e.prototype.nextYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})},e.prototype.today=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:wn(e.calendarOptions.now,e.dateEnv)})},e.prototype.gotoDate=function(e){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})},e.prototype.incrementDate=function(e){var t=this.getCurrentData(),n=Te(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))},e.prototype.getDate=function(){var e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)},e.prototype.formatDate=function(e,t){var n=this.getCurrentData().dateEnv;return n.format(n.createMarker(e),it(t))},e.prototype.formatRange=function(e,t,n){var r=this.getCurrentData().dateEnv;return r.formatRange(r.createMarker(e),r.createMarker(t),it(n),n)},e.prototype.formatIso=function(e,t){var n=this.getCurrentData().dateEnv;return n.formatIso(n.createMarker(e),{omitTime:t})},e.prototype.select=function(e,t){var n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};var r=this.getCurrentData(),i=rn(n,r.dateEnv,Te({days:1}));i&&(this.dispatch({type:"SELECT_DATES",selection:i}),hn(i,null,r))},e.prototype.unselect=function(e){var t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),pn(e,t))},e.prototype.addEvent=function(e,t){if(e instanceof vo){var n=e._def,r=e._instance,i=this.getCurrentData();return i.eventStore.defs[n.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:ct({def:n,instance:r})}),this.triggerEventAdd(e)),e}var a,o=this.getCurrentData();if(t instanceof Na)a=t.internalEventSource;
104else if("boolean"==typeof t)t&&(a=he(o.eventSources)[0]);else if(null!=t){var s=this.getEventSourceById(t);if(!s)return console.warn('Could not find an event source with ID "'+t+'"'),null;a=s.internalEventSource}var l=Et(e,a,o,!1);if(l){var u=new vo(o,l.def,l.def.recurringDef?null:l.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:ct(l)}),this.triggerEventAdd(u),u}return null},e.prototype.triggerEventAdd=function(e){var t=this,n=this.getCurrentData().emitter;n.trigger("eventAdd",{event:e,relatedEvents:[],revert:function(){t.dispatch({type:"REMOVE_EVENTS",eventStore:Cn(e)})}})},e.prototype.getEventById=function(e){var t=this.getCurrentData(),n=t.eventStore,r=n.defs,i=n.instances;e=String(e);for(var a in r){var o=r[a];if(o.publicId===e){if(o.recurringDef)return new vo(t,o,null);for(var s in i){var l=i[s];if(l.defId===o.defId)return new vo(t,o,l)}}}return null},e.prototype.getEvents=function(){var e=this.getCurrentData();return kn(e.eventStore,e)},e.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},e.prototype.getEventSources=function(){var e=this.getCurrentData(),t=e.eventSources,n=[];for(var r in t)n.push(new Na(e,t[r]));return n},e.prototype.getEventSourceById=function(e){var t=this.getCurrentData(),n=t.eventSources;e=String(e);for(var r in n)if(n[r].publicId===e)return new Na(t,n[r]);return null},e.prototype.addEventSource=function(e){var t=this.getCurrentData();if(e instanceof Na)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var n=_n(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new Na(t,n)):null},e.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},e.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})},e.prototype.scrollToTime=function(e){var t=Te(e);t&&this.trigger("_scrollRequest",{time:t})},e}(),vo=function(){function e(e,t,n){this._context=e,this._def=t,this._instance=n||null}return e.prototype.setProp=function(e,t){var n,r;if(e in co)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=uo[e](t),this.mutate({standardProps:{publicId:t}});else if(e in uo)t=uo[e](t),this.mutate({standardProps:(n={},n[e]=t,n)});else if(e in so){var i=so[e](t);"color"===e?i={backgroundColor:t,borderColor:t}:"editable"===e?i={startEditable:t,durationEditable:t}:(r={},r[e]=t,i=r),this.mutate({standardProps:{ui:i}})}else console.warn("Could not set prop '"+e+"'. Use setExtendedProp instead.")},e.prototype.setExtendedProp=function(e,t){var n;this.mutate({extendedProps:(n={},n[e]=t,n)})},e.prototype.setStart=function(e,t){void 0===t&&(t={});var n=this._context.dateEnv,r=n.createMarker(e);if(r&&this._instance){var i=this._instance.range,a=Ot(i.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:a}):this.mutate({startDelta:a})}},e.prototype.setEnd=function(e,t){void 0===t&&(t={});var n,r=this._context.dateEnv;if((null==e||(n=r.createMarker(e)))&&this._instance)if(n){var i=Ot(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:i})}else this.mutate({standardProps:{hasEnd:!1}})},e.prototype.setDates=function(e,t,n){void 0===n&&(n={});var r,i=this._context.dateEnv,a={allDay:n.allDay},o=i.createMarker(e);if(o&&(null==t||(r=i.createMarker(t)))&&this._instance){var s=this._instance.range;n.allDay===!0&&(s=xt(s));var l=Ot(s.start,o,i,n.granularity);if(r){var u=Ot(s.end,r,i,n.granularity);we(l,u)?this.mutate({datesDelta:l,standardProps:a}):this.mutate({startDelta:l,endDelta:u,standardProps:a})}else a.hasEnd=!1,this.mutate({datesDelta:l,standardProps:a})}},e.prototype.moveStart=function(e){var t=Te(e);t&&this.mutate({startDelta:t})},e.prototype.moveEnd=function(e){var t=Te(e);t&&this.mutate({endDelta:t})},e.prototype.moveDates=function(e){var t=Te(e);t&&this.mutate({datesDelta:t})},e.prototype.setAllDay=function(e,t){void 0===t&&(t={});var n={allDay:e},r=t.maintainDuration;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})},e.prototype.formatRange=function(e){var t=this._context.dateEnv,n=this._instance,r=it(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})},e.prototype.mutate=function(t){var n=this._instance;if(n){var r=this._def,i=this._context,a=i.getCurrentData().eventStore,o=dt
104(a,n.instanceId),s={"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}};o=mn(o,s,t,i);var l=new e(i,r,n);this._def=o.defs[r.defId],this._instance=o.instances[n.instanceId],i.dispatch({type:"MERGE_EVENTS",eventStore:o}),i.emitter.trigger("eventChange",{oldEvent:l,event:this,relatedEvents:kn(o,i,n),revert:function(){i.dispatch({type:"RESET_EVENTS",eventStore:a})}})}},e.prototype.remove=function(){var e=this._context,t=Cn(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert:function(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})},Object.defineProperty(e.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new Na(this._context,this._context.getCurrentData().eventSources[e]):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startStr",{get:function(){var e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endStr",{get:function(){var e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._def.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._def.title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._def.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"display",{get:function(){return this._def.ui.display||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!1,configurable:!0}),e.prototype.toPlainObject=function(e){void 0===e&&(e={});var t=this._def,n=t.ui,r=this,i=r.startStr,a=r.endStr,o={};return t.title&&(o.title=t.title),i&&(o.start=i),a&&(o.end=a),t.publicId&&(o.id=t.publicId),t.groupId&&(o.groupId=t.groupId),t.url&&(o.url=t.url),n.display&&"auto"!==n.display&&(o.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?o.color=n.backgroundColor:(n.backgroundColor&&(o.backgroundColor=n.backgroundColor),n.borderColor&&(o.borderColor=n.borderColor)),n.textColor&&(o.textColor=n.textColor),n.classNames.length&&(o.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Ra.__assign(o,t.extendedProps):o.extendedProps=t.extendedProps),o},e.prototype.toJSON=function(){return this.toPlainObject()},e}(),yo={},_o=function(){function e(){}return e.prototype.getMarkerYear=function(e){return e.getUTCFullYear()},e.prototype.getMarkerMonth=function(e){return e.getUTCMonth()},e.prototype.getMarkerDay=function(e){return e.getUTCDate()},e.prototype.arrayToMarker=function(e){return re(e)},e.prototype.markerToArray=function(e){return ne(e)},e}();Dn("gregory",_o);var bo,To,Eo=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/,So=function(){function e(e){var t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=xn(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=null!=e.weekText?e.weekText:e.locale.options.weekText,this.weekTextLong=(null!=e.weekTextLong?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}return e.prototype.createMarker=function(e){var t=this.createMarkerMeta(e);return null===t?null:t.marker},e.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):re(ee(new Date))},e.prototype.createMarkerMeta=function(e){if("string"==typeof e)return this.parse(e);var t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=re(e)),null!==t&&ie(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},e.prototype.parse=function(e){var t=An(e);if(null===t)return null;var n=t.marker,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}},e.prototype.getYear=function(e){return this.calendarSystem.getMarkerYear(e)},e.prototype.getMonth=function(e){return this.calendarSystem.getMarkerMonth(e)},e.prototype.add=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.subtract=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.addYears=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.addMonths=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.diffWholeYears=function(e,t){var n=this.calendarSystem;return ae(e)===ae(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null},e.prototype.diffWholeMonths=function(e,t){var n=this.calendarSystem;return ae(e)===ae(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null},e.prototype.greatestWholeUnit=function(e,t){var n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:(n=this.diffWholeMonths(e,t),null!==n?{unit:"month",value:n}:(n=$(e,t),null!==n?{unit:"week",value:n}:(n=q(e,t),null!==n?{unit:"day",value:n}:(n=F(e,t),R(n)?{unit:"hour",value:n}:(n=V(e,t),R(n)?{unit:"minute",value:n}:(n=W(e,t),R(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))},e.prototype.countDurationsBetween=function(e,t,n){var r;return n.years&&(r=this.diffWholeYears(e,t),null!==r)?r/Ae(n):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/Ie(n):n.days&&(r=q(e,t),null!==r)?r/Oe(n):(t.valueOf()-e.valueOf())/Re(n)},e.prototype.startOf=function(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?G(e):"hour"===t?Y(e):"minute"===t?X(e):"second"===t?K(e):null},e.prototype.startOfYear=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},e.prototype.startOfMonth=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},e.prototype.startOfWeek=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},e.prototype.computeWeekNumber=function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):Q(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,n){return void 0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},e.prototype.formatRange=function(e,t,n,r){return void 0===r&&(r={}),r.isEndExclusive&&(t=H(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)},e.prototype.formatIso=function(e,t){void 0===t&&(t={});var n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),Ue(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?re(ee(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?re(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-te(ne(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(ne(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?te(ne(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(ne(e))*60):new Date(e.valueOf()-(t||0))},e}(),wo=[],Co={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},ko=Ra.__assign(Ra.__assign({},Co),{buttonHints:{prev:"Previous $0",next:"Next $0",today:function(e,t){return"day"===t?"Today":"This "+e}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(e){return"Show "+e+" more event"+(1===e?"":"s")}}),Do={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"}
104,xo=pt(),Ao=function(){function e(){this.getKeysForEventDefs=We(this._getKeysForEventDefs),this.splitDateSelection=We(this._splitDateSpan),this.splitEventStore=We(this._splitEventStore),this.splitIndividualUi=We(this._splitIndividualUi),this.splitEventDrag=We(this._splitInteraction),this.splitEventResize=We(this._splitInteraction),this.eventUiBuilders={}}return e.prototype.splitProps=function(e){var t=this,n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),i=this.splitDateSelection(e.dateSelection),a=this.splitIndividualUi(e.eventUiBases,r),o=this.splitEventStore(e.eventStore,r),s=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),u={};this.eventUiBuilders=ue(n,function(e,n){return t.eventUiBuilders[n]||We(Yn)});for(var c in n){var d=n[c],h=o[c]||xo,p=this.eventUiBuilders[c];u[c]={businessHours:d.businessHours||e.businessHours,dateSelection:i[c]||null,eventStore:h,eventUiBases:p(e.eventUiBases[""],d.ui,a[c]),eventSelection:h.instances[e.eventSelection]?e.eventSelection:"",eventDrag:s[c]||null,eventResize:l[c]||null}}return u},e.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=this.getKeysForDateSpan(e),r=0,i=n;r<i.length;r++){var a=i[r];t[a]=e}return t},e.prototype._getKeysForEventDefs=function(e){var t=this;return ue(e.defs,function(e){return t.getKeysForEventDef(e)})},e.prototype._splitEventStore=function(e,t){var n=e.defs,r=e.instances,i={};for(var a in n)for(var o=0,s=t[a];o<s.length;o++){var l=s[o];i[l]||(i[l]=pt()),i[l].defs[a]=n[a]}for(var u in r)for(var c=r[u],d=0,h=t[c.defId];d<h.length;d++){var l=h[d];i[l]&&(i[l].instances[u]=c)}return i},e.prototype._splitIndividualUi=function(e,t){var n={};for(var r in e)if(r)for(var i=0,a=t[r];i<a.length;i++){var o=a[i];n[o]||(n[o]={}),n[o][r]=e[r]}return n},e.prototype._splitInteraction=function(e){var t={};if(e){var n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),i=this._splitEventStore(e.mutatedEvents,r),a=function(r){t[r]||(t[r]={affectedEvents:n[r]||xo,mutatedEvents:i[r]||xo,isEvent:e.isEvent})};for(var o in n)a(o);for(var o in i)a(o)}return t},e}(),Io=it({year:"numeric",month:"long",day:"numeric"}),Oo=it({week:"long"}),Po=null,Mo=function(){function e(){this.handlers={},this.thisContext=null}return e.prototype.setThisContext=function(e){this.thisContext=e},e.prototype.setOptions=function(e){this.options=e},e.prototype.on=function(e,t){hr(this.handlers,e,t)},e.prototype.off=function(e,t){pr(this.handlers,e,t)},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=this.handlers[e]||[],i=this.options&&this.options[e],a=[].concat(i||[],r),o=0,s=a;o<s.length;o++){var l=s[o];l.apply(this.thisContext,t)}},e.prototype.hasHandlers=function(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])},e}(),Ro=function(){function e(e,t,n,r){this.els=t;var i=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(i.left),r&&this.buildElVerticals(i.top)}return e.prototype.buildElHorizontals=function(e){for(var t=[],n=[],r=0,i=this.els;r<i.length;r++){var a=i[r],o=a.getBoundingClientRect();t.push(o.left-e),n.push(o.right-e)}this.lefts=t,this.rights=n},e.prototype.buildElVerticals=function(e){for(var t=[],n=[],r=0,i=this.els;r<i.length;r++){var a=i[r],o=a.getBoundingClientRect();t.push(o.top-e),n.push(o.bottom-e)}this.tops=t,this.bottoms=n},e.prototype.leftToIndex=function(e){var t,n=this,r=n.lefts,i=n.rights,a=r.length;for(t=0;t<a;t+=1)if(e>=r[t]&&e<i[t])return t},e.prototype.topToIndex=function(e){var t,n=this,r=n.tops,i=n.bottoms,a=r.length;for(t=0;t<a;t+=1)if(e>=r[t]&&e<i[t])return t},e.prototype.getWidth=function(e){return this.rights[e]-this.lefts[e]},e.prototype.getHeight=function(e){return this.bottoms[e]-this.tops[e]},e}(),Lo=function(){function e(){}return e.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},e.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},e.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0}
104,e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},e.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},e.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},e}(),No=function(e){function t(t){var n=e.call(this)||this;return n.el=t,n}return Ra.__extends(t,e),t.prototype.getScrollTop=function(){return this.el.scrollTop},t.prototype.getScrollLeft=function(){return this.el.scrollLeft; 105},t.prototype.setScrollTop=function(e){this.el.scrollTop=e},t.prototype.setScrollLeft=function(e){this.el.scrollLeft=e},t.prototype.getScrollWidth=function(){return this.el.scrollWidth},t.prototype.getScrollHeight=function(){return this.el.scrollHeight},t.prototype.getClientHeight=function(){return this.el.clientHeight},t.prototype.getClientWidth=function(){return this.el.clientWidth},t}(Lo),Uo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra.__extends(t,e),t.prototype.getScrollTop=function(){return window.pageYOffset},t.prototype.getScrollLeft=function(){return window.pageXOffset},t.prototype.setScrollTop=function(e){window.scroll(window.pageXOffset,e)},t.prototype.setScrollLeft=function(e){window.scroll(e,window.pageYOffset)},t.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},t.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},t.prototype.getClientHeight=function(){return document.documentElement.clientHeight},t.prototype.getClientWidth=function(){return document.documentElement.clientWidth},t}(Lo),Ho=function(){function e(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}return e.prototype.setIconOverride=function(e){var t,n;if("object"==typeof e&&e){t=Ra.__assign({},this.iconClasses);for(n in e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else e===!1&&(this.iconClasses={})},e.prototype.applyIconOverridePrefix=function(e){var t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e},e.prototype.getClass=function(e){return this.classes[e]||""},e.prototype.getIconClass=function(e,t){var n;return n=t&&this.rtlIconClasses?this.rtlIconClasses[e]||this.iconClasses[e]:this.iconClasses[e],n?this.baseIconClass+" "+n:""},e.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},e}();Ho.prototype.classes={},Ho.prototype.iconClasses={},Ho.prototype.baseIconClass="",Ho.prototype.iconOverridePrefix="";var jo=function(){function e(e,t,n,r){var i=this;this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=function(e){i.queuedRequest=Ra.__assign({},i.queuedRequest||{},e),i.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}return e.prototype.detach=function(){this.emitter.off("_scrollRequest",this.handleScrollRequest)},e.prototype.update=function(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()},e.prototype.fireInitialScroll=function(){this.handleScrollRequest({time:this.scrollTime})},e.prototype.drain=function(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)},e}(),Bo=La.createContext({}),Fo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra.__extends(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this.debug&&console.log(fe(e,this.props),fe(t,this.state)),!ge(this.props,e,this.propEquality)||!ge(this.state,t,this.stateEquality)},t.prototype.safeSetState=function(e){ge(this.state,Ra.__assign(Ra.__assign({},this.state),e),this.stateEquality)||this.setState(e)},t.addPropsEquality=gr,t.addStateEquality=mr,t.contextType=Bo,t}(La.Component);Fo.prototype.propEquality={},Fo.prototype.stateEquality={};var Vo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra.__extends(t,e),t.contextType=Bo,t}(Fo),Wo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.uid=b(),t}return Ra.__extends(t,e),t.prototype.prepareHits=function(){},t.prototype.queryHit=function(e,t,n,r){return null},t.prototype.isValidSegDownEl=function(e){return!this.props.eventDrag&&!this.props.eventResize&&!i(e,".fc-event-mirror")},t.prototype.isValidDateDownEl=function(e){return!(i(e,".fc-event:not(.fc-bg-event)")||i(e,".fc-more-link")||i(e,"a[data-navlink]")||i(e,".fc-popover"))},t}(Vo),zo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra.__extends(t,e),t}(Ho);zo.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},zo.prototype.baseIconClass="fc-icon",zo.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},zo.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},zo.prototype.iconOverrideOption="buttonIcons",zo.prototype.iconOverrideCustomButtonOption="icon",zo.prototype.iconOverridePrefix="fc-icon-";var $o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=La.createRef(),t.handleRootEl=function(e){vr(t.rootElRef,e),t.props.elRef&&vr(t.props.elRef,e)},t}return Ra.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.hookProps;return La.createElement(Yo,{hookProps:n,didMount:t.didMount,willUnmount:t.willUnmount,elRef:this.handleRootEl},function(r){return La.createElement(Cr,{hookProps:n,content:t.content,defaultContent:t.defaultContent,backupElRef:e.rootElRef},function(e,i){return t.children(r,Dr(t.classNames,n),e,i)})})},t}(Vo),qo=La.createContext(0),Go=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.innerElRef=La.createRef(),t}return Ra.__extends(t,e),t.prototype.render=function(){return this.props.children(this.innerElRef,this.renderInnerContent())},t.prototype.componentDidMount=function(){this.updateCustomContent()},t.prototype.componentDidUpdate=function(){this.updateCustomContent()},t.prototype.componentWillUnmount=function(){this.customContentInfo&&this.customContentInfo.destroy&&this.customContentInfo.destroy()},t.prototype.renderInnerContent=function(){var e=this.customContentInfo,t=this.getInnerContent(),n=this.getContentMeta(t);return e&&e.contentKey===n.contentKey?e&&(e.contentVal=t[n.contentKey]):(e&&(e.destroy&&e.destroy(),e=this.customContentInfo=null),n.contentKey&&(e=this.customContentInfo=Ra.__assign({contentKey:n.contentKey,contentVal:t[n.contentKey]},n.buildLifecycleFuncs()))),e?[]:t},t.prototype.getInnerContent=function(){var e=this.props,t=xr(e.content,e.hookProps);return void 0===t&&(t=xr(e.defaultContent,e.hookProps)),null==t?null:t},t.prototype.getContentMeta=function(e){var t=this.context.pluginHooks.contentTypeHandlers,n="",r=null;if(e)for(var i in t)if(void 0!==e[i]){n=i,r=t[i];break}return{contentKey:n,buildLifecycleFuncs:r}},t.prototype.updateCustomContent=function(){this.customContentInfo&&this.customContentInfo.render(this.innerElRef.current||this.props.backupElRef.current,this.customContentInfo.contentVal)},t}(Vo),Yo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&vr(t.props.elRef,e)},t}return Ra.__extends(t,e),t.prototype.render=function(){return this.props.children(this.handleRootEl)},t.prototype.componentDidMount=function(){var e=this.props.didMount;e&&e(Ra.__assign(Ra.__assign({},this.props.hookProps),{el:this.rootEl}))},t.prototype.componentWillUnmount=function(){var e=this.props.willUnmount;e&&e(Ra.__assign(Ra.__assign({},this.props.hookProps),{el:this.rootEl}))},t}(Vo),Xo=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.normalizeClassNames=kr(),t}return Ra.__extends(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=n.options,i={view:n.viewApi},a=this.normalizeClassNames(r.viewClassNames,i);return La.createElement(Yo,{hookProps:i,didMount:r.viewDidMount,willUnmount:r.viewWillUnmount,elRef:t.elRef},function(e){return t.children(e,["fc-"+t.viewSpec.type+"-view","fc-view"].concat(a))})},t}(Vo),Ko={},Qo=function(){function e(e){this.props=e,this.nowDate=wn(e.nowInput,e.dateEnv),this.initHiddenDays()}return e.prototype.buildPrev=function(e,t,n){var r=this.props.dateEnv,i=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,-1,n)},e.prototype.buildNext=function(e,t,n){var r=this.props.dateEnv,i=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(i,1,n)},e.prototype.build=function(e,t,n){void 0===n&&(n=!0);var r,i,a,o,s,l,u=this.props;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(e=Bt(e,r)),i=this.buildCurrentRangeInfo(e,t),a=/^(year|month|week|day)$/.test(i.unit),o=this.buildRenderRange(this.trimHiddenDays(i.range),i.unit,a),o=this.trimHiddenDays(o),s=o,u.showNonCurrentDates||(s=Lt(s,i.range)),s=this.adjustActiveRange(s),s=Lt(s,r),l=Ut(i.range,r),{validRange:r,currentRange:i.range,currentRangeUnit:i.unit,isRangeAllDay:a,activeRange:s,renderRange:o,slotMinTime:u.slotMinTime,slotMaxTime:u.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(i.duration)}},e.prototype.buildValidRange=function(){var e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this.props,i=null,a=null,o=null;return r.duration?(i=r.duration,a=r.durationUnit,o=this.buildRangeFromDuration(e,t,i,a)):(n=this.props.dayCount)?(a="day",o=this.buildRangeFromDayCount(e,t,n)):(o=this.buildCustomVisibleRange(e))?a=r.dateEnv.greatestWholeUnit(o.start,o.end).unit:(i=this.getFallbackDuration(),a=Ne(i).unit,o=this.buildRangeFromDuration(e,t,i,a)),{duration:i,unit:a,range:o}},e.prototype.getFallbackDuration=function(){return Te({day:1})},e.prototype.adjustActiveRange=function(e){var t=this.props,n=t.dateEnv,r=t.usesMinMaxTime,i=t.slotMinTime,a=t.slotMaxTime,o=e.start,s=e.end;return r&&(Oe(i)<0&&(o=G(o),o=n.add(o,i)),Oe(a)>1&&(s=G(s),s=U(s,-1),s=n.add(s,a))),{start:o,end:s}},e.prototype.buildRangeFromDuration=function(e,t,n,r){function i(){a=u.startOf(e,c),o=u.add(a,n),s={start:a,end:o}}var a,o,s,l=this.props,u=l.dateEnv,c=l.dateAlignment;if(!c){var d=this.props.dateIncrement;c=d&&Re(d)<Re(n)?Ne(d).unit:r}
105return Oe(n)<=1&&this.isHiddenDay(a)&&(a=this.skipHiddenDays(a,t),a=G(a)),i(),this.trimHiddenDays(s)||(e=this.skipHiddenDays(e,t),i()),s},e.prototype.buildRangeFromDayCount=function(e,t,n){var r,i=this.props,a=i.dateEnv,o=i.dateAlignment,s=0,l=e;o&&(l=a.startOf(l,o)),l=G(l),l=this.skipHiddenDays(l,t),r=l;do r=U(r,1),this.isHiddenDay(r)||(s+=1);while(s<n);return{start:l,end:r}},e.prototype.buildCustomVisibleRange=function(e){var t=this.props,n=t.visibleRangeInput,r="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,i=this.refineRange(r);return!i||null!=i.start&&null!=i.end?i:null},e.prototype.buildRenderRange=function(e,t,n){return e},e.prototype.buildDateIncrement=function(e){var t,n=this.props.dateIncrement;return n?n:(t=this.props.dateAlignment)?Te(1,t):e?e:Te({days:1})},e.prototype.refineRange=function(e){if(e){var t=Pt(e,this.props.dateEnv);return t&&(t=At(t)),t}return null},e.prototype.initHiddenDays=function(){var e,t=this.props.hiddenDays||[],n=[],r=0;for(this.props.weekends===!1&&t.push(0,6),e=0;e<7;e+=1)(n[e]=t.indexOf(e)!==-1)||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},e.prototype.trimHiddenDays=function(e){var t=e.start,n=e.end;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null},e.prototype.isHiddenDay=function(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]},e.prototype.skipHiddenDays=function(e,t,n){for(void 0===t&&(t=1),void 0===n&&(n=!1);this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=U(e,t);return e},e}(),Zo={ignoreRange:!0,parseMeta:function(e){return Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}},Jo=yr({eventSourceDefs:[Zo]}),es={parseMeta:function(e){return"function"==typeof e.events?e.events:null},fetch:function(e,t,n){var r=e.context.dateEnv,i=e.eventSource.meta;dr(i.bind(null,un(e.range,r)),function(e){t({rawEvents:e})},n)}},ts=yr({eventSourceDefs:[es]}),ns={method:String,extraParams:lt,startParam:String,endParam:String,timeZoneParam:String},rs={parseMeta:function(e){return!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,t,n){var r=e.eventSource.meta,i=mi(r,e.range,e.context);pi(r.method,r.url,i,function(e,n){t({rawEvents:e,xhr:n})},function(e,t){n({message:e,xhr:t})})}},is=yr({eventSourceRefiners:ns,eventSourceDefs:[rs]}),as={daysOfWeek:lt,startTime:Te,endTime:Te,duration:Te,startRecur:lt,endRecur:lt},os={parse:function(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){var n={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null},r=void 0;return e.duration&&(r=e.duration),!r&&e.startTime&&e.endTime&&(r=De(e.endTime,e.startTime)),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:r,typeData:n}}return null},expand:function(e,t,n){var r=Lt(t,{start:e.startRecur,end:e.endRecur});return r?vi(e.daysOfWeek,e.startTime,r,n):[]}},ss=yr({recurringTypes:[os],eventRefiners:as}),ls=yr({optionChangeHandlers:{events:function(e,t){yi([e],t)},eventSources:yi}}),us=[Jo,ts,is,ss,ls,yr({isLoadingFuncs:[function(e){return Fr(e.eventSources)}],contentTypeHandlers:{html:Ti,domNodes:Ei},propSetHandlers:{dateProfile:_i,eventStore:bi}})],cs=function(){function e(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}return e.prototype.request=function(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))},e.prototype.pause=function(e){void 0===e&&(e="");var t=this.pauseDepths;t[e]=(t[e]||0)+1,this.clearTimeout()},e.prototype.resume=function(e,t){void 0===e&&(e="");var n=this.pauseDepths;if(e in n){if(t)delete n[e];else{n[e]-=1;var r=n[e];r<=0&&delete n[e]}this.tryDrain()}},e.prototype.isPaused=function(){return Object.keys(this.pauseDepths).length},e.prototype.tryDrain=function(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}},e.prototype.clear=function(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}},e.prototype.clearTimeout=function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)},e.prototype.drained=function(){this.drainedOption&&this.drainedOption()},e}(),ds=function(){function e(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new cs(this.drain.bind(this))}return e.prototype.request=function(e,t){this.queue.push(e),this.delayedRunner.request(t)},e.prototype.pause=function(e){this.delayedRunner.pause(e)},e.prototype.resume=function(e,t){this.delayedRunner.resume(e,t)},e.prototype.drain=function(){for(var e=this.queue;e.length;){for(var t=[],n=void 0;n=e.shift();)this.runTask(n),t.push(n);this.drained(t)}},e.prototype.runTask=function(e){this.runTaskOption&&this.runTaskOption(e)},e.prototype.drained=function(e){this.drainedOption&&this.drainedOption(e)},e}(),hs=function(){function e(e){var t=this;this.computeOptionsData=We(this._computeOptionsData),this.computeCurrentViewData=We(this._computeCurrentViewData),this.organizeRawLocales=We(In),this.buildLocale=We(On),this.buildPluginHooks=br(),this.buildDateEnv=We(Ci),this.buildTheme=We(ki),this.parseToolbars=We(ci),this.buildViewSpecs=We(Pr),this.buildDateProfileGenerator=ze(Di),this.buildViewApi=We(xi),this.buildViewUiProps=ze(Oi),this.buildEventUiBySource=We(Ai,pe),this.buildEventUiBases=We(Ii),this.parseContextBusinessHours=ze(Mi),this.buildTitle=We(Si),this.emitter=new Mo,this.actionRunner=new ds(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.getCurrentData=function(){return t.data},this.dispatch=function(e){t.actionRunner.request(e)},this.props=e,this.actionRunner.pause();var n={},r=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),i=r.calendarOptions.initialView||r.pluginHooks.initialView,a=this.computeCurrentViewData(i,r,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(a.options);var o=Sn(r.calendarOptions,r.dateEnv),s=a.dateProfileGenerator.build(o);jt(s.activeRange,o)||(o=s.currentRange.start);for(var l={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},u=0,c=r.pluginHooks.contextInit;u<c.length;u++){var d=c[u];d(l)}for(var h=Hr(r.calendarOptions,s,l),p={dynamicOptionOverrides:n,currentViewType:i,currentDate:o,dateProfile:s,businessHours:this.parseContextBusinessHours(l),eventSources:h,eventUiBases:{},eventStore:pt(),renderableEventStore:pt(),dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(l).selectionConfig},f=Ra.__assign(Ra.__assign({},l),p),g=0,m=r.pluginHooks.reducers;g<m.length;g++){var v=m[g];Ra.__assign(p,v(null,null,f))}Pi(p,l)&&this.emitter.trigger("loading",!0),this.state=p,this.updateData(),this.actionRunner.resume()}return e.prototype.resetOptions=function(e,t){var n=this.props;n.optionOverrides=t?Ra.__assign(Ra.__assign({},n.optionOverrides),e):e,this.actionRunner.request({type:"NOTHING"})},e.prototype._handleAction=function(e){var t=this,n=t.props,r=t.state,i=t.emitter,a=Nr(r.dynamicOptionOverrides,e),o=this.computeOptionsData(n.optionOverrides,a,n.calendarApi),s=Lr(r.currentViewType,e),l=this.computeCurrentViewData(s,o,n.optionOverrides,a);n.calendarApi.currentDataManager=this,i.setThisContext(n.calendarApi),i.setOptions(l.options);var u={dateEnv:o.dateEnv,options:o.calendarOptions,pluginHooks:o.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:i,getCurrentData:this.getCurrentData},c=r.currentDate,d=r.dateProfile;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(d=l.dateProfileGenerator.build(c)),c=En(c,e),d=Ur(d,e,c,l.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&jt
105(d.currentRange,c)||(c=d.currentRange.start);for(var h=jr(r.eventSources,e,d,u),p=Zr(r.eventStore,e,h,d,u),f=Fr(h),g=f&&!l.options.progressiveEventRendering?r.renderableEventStore||p:p,m=this.buildViewUiProps(u),v=m.eventUiSingleBase,y=m.selectionConfig,_=this.buildEventUiBySource(h),b=this.buildEventUiBases(g.defs,v,_),T={dynamicOptionOverrides:a,currentViewType:s,currentDate:c,dateProfile:d,eventSources:h,eventStore:p,renderableEventStore:g,selectionConfig:y,eventUiBases:b,businessHours:this.parseContextBusinessHours(u),dateSelection:oi(r.dateSelection,e),eventSelection:si(r.eventSelection,e),eventDrag:li(r.eventDrag,e),eventResize:ui(r.eventResize,e)},E=Ra.__assign(Ra.__assign({},u),T),S=0,w=o.pluginHooks.reducers;S<w.length;S++){var C=w[S];Ra.__assign(T,C(r,e,E))}var k=Pi(r,u),D=Pi(T,u);!k&&D?i.trigger("loading",!0):k&&!D&&i.trigger("loading",!1),this.state=T,n.onAction&&n.onAction(e)},e.prototype.updateData=function(){var e=this,t=e.props,n=e.state,r=this.data,i=this.computeOptionsData(t.optionOverrides,n.dynamicOptionOverrides,t.calendarApi),a=this.computeCurrentViewData(n.currentViewType,i,t.optionOverrides,n.dynamicOptionOverrides),o=this.data=Ra.__assign(Ra.__assign(Ra.__assign({viewTitle:this.buildTitle(n.dateProfile,a.options,i.dateEnv),calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},i),a),n),s=i.pluginHooks.optionChangeHandlers,l=r&&r.calendarOptions,u=i.calendarOptions;if(l&&l!==u){l.timeZone!==u.timeZone&&(n.eventSources=o.eventSources=Br(o.eventSources,n.dateProfile,o),n.eventStore=o.eventStore=ri(o.eventStore,r.dateEnv,o.dateEnv));for(var c in s)l[c]!==u[c]&&s[c](u[c],o)}t.onData&&t.onData(o)},e.prototype._computeOptionsData=function(e,t,n){var r=this.processRawCalendarOptions(e,t),i=r.refinedOptions,a=r.pluginHooks,o=r.localeDefaults,s=r.availableLocaleData,l=r.extra;Ri(l);var u=this.buildDateEnv(i.timeZone,i.locale,i.weekNumberCalculation,i.firstDay,i.weekText,a,s,i.defaultRangeSeparator),c=this.buildViewSpecs(a.views,e,t,o),d=this.buildTheme(i,a),h=this.parseToolbars(i,e,d,c,n);return{calendarOptions:i,pluginHooks:a,dateEnv:u,viewSpecs:c,theme:d,toolbarConfig:h,localeDefaults:o,availableRawLocales:s.map}},e.prototype.processRawCalendarOptions=function(e,t){var n=ot([no,e,t]),r=n.locales,i=n.locale,a=this.organizeRawLocales(r),o=a.map,s=this.buildLocale(i||a.defaultCode,o).options,l=this.buildPluginHooks(e.plugins||[],us),u=this.currentCalendarOptionsRefiners=Ra.__assign(Ra.__assign(Ra.__assign(Ra.__assign(Ra.__assign({},to),ro),io),l.listenerRefiners),l.optionRefiners),c={},d=ot([no,s,e,t]),h={},p=this.currentCalendarOptionsInput,f=this.currentCalendarOptionsRefined,g=!1;for(var m in d)"plugins"!==m&&(d[m]===p[m]||ao[m]&&m in p&&ao[m](p[m],d[m])?h[m]=f[m]:u[m]?(h[m]=u[m](d[m]),g=!0):c[m]=p[m]);return g&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=h),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:l,availableLocaleData:a,localeDefaults:s,extra:c}},e.prototype._computeCurrentViewData=function(e,t,n,r){var i=t.viewSpecs[e];if(!i)throw new Error('viewType "'+e+"\" is not available. Please make sure you've loaded all neccessary plugins");var a=this.processRawViewOptions(i,t.pluginHooks,t.localeDefaults,n,r),o=a.refinedOptions,s=a.extra;Ri(s);var l=this.buildDateProfileGenerator({dateProfileGeneratorClass:i.optionDefaults.dateProfileGeneratorClass,duration:i.duration,durationUnit:i.durationUnit,usesMinMaxTime:i.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:o.slotMinTime,slotMaxTime:o.slotMaxTime,showNonCurrentDates:o.showNonCurrentDates,dayCount:o.dayCount,dateAlignment:o.dateAlignment,dateIncrement:o.dateIncrement,hiddenDays:o.hiddenDays,weekends:o.weekends,nowInput:o.now,validRangeInput:o.validRange,visibleRangeInput:o.visibleRange,monthMode:o.monthMode,fixedWeekCount:o.fixedWeekCount}),u=this.buildViewApi(e,this.getCurrentData,t.dateEnv);return{viewSpec:i,options:o,dateProfileGenerator:l,viewApi:u}},e.prototype.processRawViewOptions=function(e,t,n,r,i){var a=ot([no,e.optionDefaults,n,r,e.optionOverrides,i]),o=Ra.__assign(Ra.__assign(Ra.__assign(Ra.__assign(Ra.__assign(Ra.__assign({},to),ro),io),oo),t.listenerRefiners),t.optionRefiners),s={},l=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,c=!1,d={};for(var h in a)a[h]===l[h]||ao[h]&&ao[h](a[h],l[h])?s[h]=u[h]:(a[h]===this.currentCalendarOptionsInput[h]||ao[h]&&ao[h](a[h],this.currentCalendarOptionsInput[h])?h in this.currentCalendarOptionsRefined&&(s[h]=this.currentCalendarOptionsRefined[h]):o[h]?s[h]=o[h](a[h]):d[h]=a[h],c=!0);return c&&(this.currentViewOptionsInput=a,this.currentViewOptionsRefined=s),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:d}},e}(),ps=function(e){function t(t){var n=e.call(this,t)||this;return n.handleData=function(e){n.dataManager?n.setState(e):n.state=e},n.dataManager=new hs({optionOverrides:t.optionOverrides,calendarApi:t.calendarApi,onData:n.handleData}),n}return Ra.__extends(t,e),t.prototype.render=function(){return this.props.children(this.state)},t.prototype.componentDidUpdate=function(e){var t=this.props.optionOverrides;t!==e.optionOverrides&&this.dataManager.resetOptions(t)},t}(La.Component),fs=function(){function e(e){this.timeZoneName=e}return e}(),gs=function(){function e(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}return e.prototype.addSegs=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var i=r[n];this.insertEntry(i,t)}return t},e.prototype.insertEntry=function(e,t){var n=this.findInsertion(e);return this.isInsertionValid(n,e)?(this.insertEntryAt(e,n),1):this.handleInvalidInsertion(n,e,t)},e.prototype.isInsertionValid=function(e,t){return(this.maxCoord===-1||e.levelCoord+t.thickness<=this.maxCoord)&&(this.maxStackCnt===-1||e.stackCnt<this.maxStackCnt)},e.prototype.handleInvalidInsertion=function(e,t,n){return this.allowReslicing&&e.touchingEntry?this.splitEntry(t,e.touchingEntry,n):(n.push(t),0)},e.prototype.splitEntry=function(e,t,n){var r=0,i=[],a=e.span,o=t.span;return a.start<o.start&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:a.start,end:o.start}},i)),a.end>o.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:o.end,end:a.end}},i)),r?(n.push.apply(n,Ra.__spreadArray([{index:e.index,thickness:e.thickness,span:Bi(o,a)}],i)),r):(n.push(e),0)},e.prototype.insertEntryAt=function(e,t){var n=this,r=n.entriesByLevel,i=n.levelCoords;t.lateral===-1?(Fi(i,t.level,t.levelCoord),Fi(r,t.level,[e])):Fi(r[t.level],t.lateral,e),this.stackCnts[Ui(e)]=t.stackCnt},e.prototype.findInsertion=function(e){for(var t=this,n=t.levelCoords,r=t.entriesByLevel,i=t.strictOrder,a=t.stackCnts,o=n.length,s=0,l=-1,u=-1,c=null,d=0,h=0;h<o;h+=1){var p=n[h];if(!i&&p>=s+e.thickness)break;for(var f=r[h],g=void 0,m=Vi(f,e.span.start,Ni),v=m[0]+m[1];(g=f[v])&&g.span.start<e.span.end;){var y=p+g.thickness;y>s&&(s=y,c=g,l=h,u=v),y===s&&(d=Math.max(d,a[Ui(g)]+1)),v+=1}}var _=0;if(c)for(_=l+1;_<o&&n[_]<s;)_+=1;var b=-1;return _<o&&n[_]===s&&(b=Vi(r[_],e.span.end,Ni)[0]),{touchingLevel:l,touchingLateral:u,touchingEntry:c,stackCnt:d,levelCoord:s,level:_,lateral:b}},e.prototype.toRects=function(){for(var e=this,t=e.entriesByLevel,n=e.levelCoords,r=t.length,i=[],a=0;a<r;a+=1)for(var o=t[a],s=n[a],l=0,u=o;l<u.length;l++){var c=u[l];i.push(Ra.__assign(Ra.__assign({},c),{levelCoord:s}))}return i},e}(),ms=function(){function e(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}return e.prototype.destroy=function(){},e}(),vs={},ys=function(){function e(e,t){this.emitter=new Mo}return e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}(),_s={},bs={startTime:Te,duration:Te,create:Boolean,sourceId:String},Ts=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props.widgetGroups.map(function(t){return e.renderWidgetGroup(t)});return La.createElement.apply(void 0,Ra.__spreadArray(["div",{className:"fc-toolbar-chunk"}],t))},t.prototype.renderWidgetGroup=function(e){for(var t=this.props,n=this.context.theme,r=[],i=!0,a=0,o=e;a<o.length;a++){var s=o[a],l=s.buttonName,u=s.buttonClick,c=s.buttonText,d=s.buttonIcon,h=s.buttonHint;if("title"===l)i=!1,r.push(La.createElement("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{var p=l===t.activeButton,f=!t.isTodayEnabled&&"today"===l||!t.isPrevEnabled&&"prev"===l||!t.isNextEnabled&&"next"===l,g=["fc-"+l+"-button",n.getClass("button")];p&&g.push(n.getClass("buttonActive")),r.push(La.createElement("button",{type:"button",title:"function"==typeof h?h(t.navUnit):h,disabled:f,"aria-pressed":p,className:g.join(" "),onClick:u},c||(d?La.createElement("span",{className:d}):"")))}}if(r.length>1){var m=i&&n.getClass("buttonGroup")||"";return La.createElement.apply(void 0,Ra.__spreadArray(["div",{className:m}],r))}return r[0]},t}(Vo),Es=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra.__extends(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.model,i=n.extraClassName,a=!1,o=r.sectionWidgets,s=o.center;o.left?(a=!0,e=o.left):e=o.start,o.right?(a=!0,t=o.right):t=o.end;var l=[i||"","fc-toolbar",a?"fc-toolbar-ltr":""];return La.createElement("div",{className:l.join(" ")},this.renderSection("start",e||[]),this.renderSection("center",s||[]),this.renderSection("end",t||[]))},t.prototype.renderSection=function(e,t){var n=this.props;return La.createElement(Ts,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})},t}(Vo),Ss=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={availableWidth:null},t.handleEl=function(e){t.el=e,vr(t.props.elRef,e),t.updateAvailableWidth()},t.handleResize=function(){t.updateAvailableWidth()},t}return Ra.__extends(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.state,r=t.aspectRatio,i=["fc-view-harness",r||t.liquid||t.height?"fc-view-harness-active":"fc-view-harness-
105passive"],a="",o="";return r?null!==n.availableWidth?a=n.availableWidth/r:o=1/r*100+"%":a=t.height||"",La.createElement("div",{"aria-labelledby":t.labeledById,ref:this.handleEl,className:i.join(" "),style:{height:a,paddingBottom:o}},t.children)},t.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},t.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},t}(Vo),ws=function(e){function t(t){var n=e.call(this,t)||this;return n.handleSegClick=function(e,t){var r=n.component,a=r.context,o=zt(t);if(o&&r.isValidSegDownEl(e.target)){var s=i(e.target,".fc-event-forced-url"),l=s?s.querySelector("a[href]").href:"";a.emitter.trigger("eventClick",{el:t,event:new vo(r.context,o.eventRange.def,o.eventRange.instance),jsEvent:e,view:a.viewApi}),l&&!e.defaultPrevented&&(window.location.href=l)}},n.destroy=g(t.el,"click",".fc-event",n.handleSegClick),n}return Ra.__extends(t,e),t}(ms),Cs=function(e){function t(t){var n=e.call(this,t)||this;return n.handleEventElRemove=function(e){e===n.currentSegEl&&n.handleSegLeave(null,n.currentSegEl)},n.handleSegEnter=function(e,t){zt(t)&&(n.currentSegEl=t,n.triggerEvent("eventMouseEnter",e,t))},n.handleSegLeave=function(e,t){n.currentSegEl&&(n.currentSegEl=null,n.triggerEvent("eventMouseLeave",e,t))},n.removeHoverListeners=m(t.el,".fc-event",n.handleSegEnter,n.handleSegLeave),n}return Ra.__extends(t,e),t.prototype.destroy=function(){this.removeHoverListeners()},t.prototype.triggerEvent=function(e,t,n){var r=this.component,i=r.context,a=zt(n);t&&!r.isValidSegDownEl(t.target)||i.emitter.trigger(e,{el:n,event:new vo(i,a.eventRange.def,a.eventRange.instance),jsEvent:t,view:i.viewApi})},t}(ms),ks=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildViewContext=We(fr),t.buildViewPropTransformers=We(Gi),t.buildToolbarProps=We(qi),t.headerRef=La.createRef(),t.footerRef=La.createRef(),t.interactionsStore={},t.state={viewLabelId:h()},t.registerInteractiveComponent=function(e,n){var r=Wi(e,n),i=[ws,Cs],a=i.concat(t.props.pluginHooks.componentInteractions),o=a.map(function(e){return new e(r)});t.interactionsStore[e.uid]=o,vs[e.uid]=r},t.unregisterInteractiveComponent=function(e){var n=t.interactionsStore[e.uid];if(n){for(var r=0,i=n;r<i.length;r++){var a=i[r];a.destroy()}delete t.interactionsStore[e.uid]}delete vs[e.uid]},t.resizeRunner=new cs(function(){t.props.emitter.trigger("_resize",!0),t.props.emitter.trigger("windowResize",{view:t.props.viewApi})}),t.handleWindowResize=function(e){var n=t.props.options;n.handleWindowResize&&e.target===window&&t.resizeRunner.request(n.windowResizeDelay)},t}return Ra.__extends(t,e),t.prototype.render=function(){var e,t=this.props,n=t.toolbarConfig,r=t.options,i=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,wn(t.options.now,t.dateEnv),t.viewTitle),a=!1,o="";t.isHeightAuto||t.forPrint?o="":null!=r.height?a=!0:null!=r.contentHeight?o=r.contentHeight:e=Math.max(r.aspectRatio,.5); 106var s=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),l=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return La.createElement(Bo.Provider,{value:s},n.header&&La.createElement(Es,Ra.__assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:l},i)),La.createElement(Ss,{liquid:a,height:o,aspectRatio:e,labeledById:l},this.renderView(t),this.buildAppendContent()),n.footer&&La.createElement(Es,Ra.__assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},i)))},t.prototype.componentDidMount=function(){var e=this.props;this.calendarInteractions=e.pluginHooks.calendarInteractions.map(function(t){return new t(e)}),window.addEventListener("resize",this.handleWindowResize);var t=e.pluginHooks.propSetHandlers;for(var n in t)t[n](e[n],e)},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.pluginHooks.propSetHandlers;for(var r in n)t[r]!==e[r]&&n[r](t[r],t)},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(var e=0,t=this.calendarInteractions;e<t.length;e++){var n=t[e];n.destroy()}this.props.emitter.trigger("_unmount")},t.prototype.buildAppendContent=function(){var e=this.props,t=e.pluginHooks.viewContainerAppends.map(function(t){return t(e)});return La.createElement.apply(void 0,Ra.__spreadArray([La.Fragment,{}],t))},t.prototype.renderView=function(e){for(var t=e.pluginHooks,n=e.viewSpec,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},i=this.buildViewPropTransformers(t.viewPropsTransformers),a=0,o=i;a<o.length;a++){var s=o[a];Ra.__assign(r,s.transform(r,e))}var l=n.component;return La.createElement(l,Ra.__assign({},r))},t}(Fo),Ds=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={forPrint:!1},t.handleBeforePrint=function(){t.setState({forPrint:!0})},t.handleAfterPrint=function(){t.setState({forPrint:!1})},t}return Ra.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.options,n=this.state.forPrint,r=n||"auto"===t.height||"auto"===t.contentHeight,i=r||null==t.height?"":t.height,a=["fc",n?"fc-media-print":"fc-media-screen","fc-direction-"+t.direction,e.theme.getClass("root")
106];return qn()||a.push("fc-liquid-hack"),e.children(a,i,r,n)},t.prototype.componentDidMount=function(){var e=this.props.emitter;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)},t.prototype.componentWillUnmount=function(){var e=this.props.emitter;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)},t}(Vo),xs="fc-col-header-cell",As=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra.__extends(t,e),t.prototype.render=function(){var e=this.context,t=e.dateEnv,n=e.options,r=e.theme,i=e.viewApi,a=this.props,o=a.date,s=a.dateProfile,l=Xn(o,a.todayRange,null,s),u=[xs].concat(Kn(l,r)),c=t.format(o,a.dayHeaderFormat),d=!l.isDisabled&&a.colCnt>1?Zn(this.context,o):{},h=Ra.__assign(Ra.__assign(Ra.__assign({date:t.toDate(o),view:i},a.extraHookProps),{text:c}),l);return La.createElement($o,{hookProps:h,classNames:n.dayHeaderClassNames,content:n.dayHeaderContent,defaultContent:Xi,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},function(e,t,n,r){return La.createElement("th",Ra.__assign({ref:e,role:"columnheader",className:u.concat(t).join(" "),"data-date":l.isDisabled?void 0:He(o),colSpan:a.colSpan},a.extraDataAttrs),La.createElement("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&La.createElement("a",Ra.__assign({ref:n,className:["fc-col-header-cell-cushion",a.isSticky?"fc-sticky":""].join(" ")},d),r)))})},t}(Vo),Is=it({weekday:"long"}),Os=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra.__extends(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.dateEnv,r=t.theme,i=t.viewApi,a=t.options,o=U(new Date(2592e5),e.dow),s={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=[xs].concat(Kn(s,r),e.extraClassNames||[]),u=n.format(o,e.dayHeaderFormat),c=Ra.__assign(Ra.__assign(Ra.__assign(Ra.__assign({date:o},s),{view:i}),e.extraHookProps),{text:u});return La.createElement($o,{hookProps:c,classNames:a.dayHeaderClassNames,content:a.dayHeaderContent,defaultContent:Xi,didMount:a.dayHeaderDidMount,willUnmount:a.dayHeaderWillUnmount},function(t,r,i,a){return La.createElement("th",Ra.__assign({ref:t,role:"columnheader",className:l.concat(r).join(" "),colSpan:e.colSpan},e.extraDataAttrs),La.createElement("div",{className:"fc-scrollgrid-sync-inner"},La.createElement("a",{"aria-label":n.format(o,Is),className:["fc-col-header-cell-cushion",e.isSticky?"fc-sticky":""].join(" "),ref:i},a)))})},t}(Vo),Ps=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.initialNowDate=wn(n.options.now,n.dateEnv),r.initialNowQueriedMs=(new Date).valueOf(),r.state=r.computeTiming().currentState,r}return Ra.__extends(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.state;return t.children(n.nowDate,n.todayRange)},t.prototype.componentDidMount=function(){this.setTimeout()},t.prototype.componentDidUpdate=function(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},t.prototype.componentWillUnmount=function(){this.clearTimeout()},t.prototype.computeTiming=function(){var e=this,t=e.props,n=e.context,r=H(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),i=n.dateEnv.startOf(r,t.unit),a=n.dateEnv.add(i,Te(1,t.unit)),o=a.valueOf()-r.valueOf();return o=Math.min(864e5,o),{currentState:{nowDate:i,todayRange:Ki(i)},nextState:{nowDate:a,todayRange:Ki(a)},waitMs:o}},t.prototype.setTimeout=function(){var e=this,t=this.computeTiming(),n=t.nextState,r=t.waitMs;this.timeoutId=setTimeout(function(){e.setState(n,function(){e.setTimeout()})},r)},t.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},t.contextType=Bo,t}(La.Component),Ms=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createDayHeaderFormatter=We(Qi),t}return Ra.__extends(t,e),t.prototype.render=function(){var e=this.context,t=this.props,n=t.dates,r=t.dateProfile,i=t.datesRepDistinctDays,a=t.renderIntro,o=this.createDayHeaderFormatter(e.options.dayHeaderFormat,i,n.length);return La.createElement(Ps,{unit:"day"},function(e,t){return La.createElement("tr",{role:"row"},a&&a("day"),n.map(function(e){return i?La.createElement(As,{key:e.toISOString(),date:e,dateProfile:r,todayRange:t,colCnt:n.length,dayHeaderFormat:o}):La.createElement(Os,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:o})}))})},t}(Vo),Rs=function(){function e(e,t){for(var n=e.start,r=e.end,i=[],a=[],o=-1;n<r;
106)t.isHiddenDay(n)?i.push(o+.5):(o+=1,i.push(o),a.push(n)),n=U(n,1);this.dates=a,this.indices=i,this.cnt=a.length}return e.prototype.sliceRange=function(e){var t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(U(e.end,-1)),r=Math.max(0,t),i=Math.min(this.cnt-1,n);return r=Math.ceil(r),i=Math.floor(i),r<=i?{firstIndex:r,lastIndex:i,isStart:t===r,isEnd:n===i}:null},e.prototype.getDateDayIndex=function(e){var t=this.indices,n=Math.floor(B(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},e}(),Ls=function(){function e(e,t){var n,r,i,a=e.dates;if(t){for(r=a[0].getUTCDay(),n=1;n<a.length&&a[n].getUTCDay()!==r;n+=1);i=Math.ceil(a.length/n)}else i=1,n=a.length;this.rowCnt=i,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}return e.prototype.buildCells=function(){for(var e=[],t=0;t<this.rowCnt;t+=1){for(var n=[],r=0;r<this.colCnt;r+=1)n.push(this.buildCell(t,r));e.push(n)}return e},e.prototype.buildCell=function(e,t){var n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}},e.prototype.buildHeaderDates=function(){for(var e=[],t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e},e.prototype.sliceRange=function(e){var t=this.colCnt,n=this.daySeries.sliceRange(e),r=[];if(n)for(var i=n.firstIndex,a=n.lastIndex,o=i;o<=a;){var s=Math.floor(o/t),l=Math.min((s+1)*t,a+1);r.push({row:s,firstCol:o%t,lastCol:(l-1)%t,isStart:n.isStart&&o===i,isEnd:n.isEnd&&l-1===a}),o=l}return r},e}(),Ns=function(){function e(){this.sliceBusinessHours=We(this._sliceBusinessHours),this.sliceDateSelection=We(this._sliceDateSpan),this.sliceEventStore=We(this._sliceEventStore),this.sliceEventDrag=We(this._sliceInteraction),this.sliceEventResize=We(this._sliceInteraction),this.forceDayIfListItem=!1}return e.prototype.sliceProps=function(e,t,n,r){for(var i=[],a=4;a<arguments.length;a++)i[a-4]=arguments[a];var o=e.eventUiBases,s=this.sliceEventStore.apply(this,Ra.__spreadArray([e.eventStore,o,t,n],i));return{dateSelectionSegs:this.sliceDateSelection.apply(this,Ra.__spreadArray([e.dateSelection,o,r],i)),businessHourSegs:this.sliceBusinessHours.apply(this,Ra.__spreadArray([e.businessHours,t,n,r],i)),fgEventSegs:s.fg,bgEventSegs:s.bg,eventDrag:this.sliceEventDrag.apply(this,Ra.__spreadArray([e.eventDrag,o,t,n],i)),eventResize:this.sliceEventResize.apply(this,Ra.__spreadArray([e.eventResize,o,t,n],i)),eventSelection:e.eventSelection}},e.prototype.sliceNowDate=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this._sliceDateSpan.apply(this,Ra.__spreadArray([{range:{start:e,end:H(e,1)},allDay:!1},{},t],n))},e.prototype._sliceBusinessHours=function(e,t,n,r){for(var i=[],a=4;a<arguments.length;a++)i[a-4]=arguments[a];return e?this._sliceEventStore.apply(this,Ra.__spreadArray([_e(e,Zi(t,Boolean(n)),r),{},t,n],i)).bg:[]},e.prototype._sliceEventStore=function(e,t,n,r){for(var i=[],a=4;a<arguments.length;a++)i[a-4]=arguments[a];if(e){var o=Ft(e,t,Zi(n,Boolean(r)),r);return{bg:this.sliceEventRanges(o.bg,i),fg:this.sliceEventRanges(o.fg,i)}}return{bg:[],fg:[]}},e.prototype._sliceInteraction=function(e,t,n,r){for(var i=[],a=4;a<arguments.length;a++)i[a-4]=arguments[a];if(!e)return null;var o=Ft(e.mutatedEvents,t,Zi(n,Boolean(r)),r);return{segs:this.sliceEventRanges(o.fg,i),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}},e.prototype._sliceDateSpan=function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];if(!e)return[];for(var a=dn(e,t,n),o=this.sliceRange.apply(this,Ra.__spreadArray([e.range],r)),s=0,l=o;s<l.length;s++){var u=l[s];u.eventRange=a}return o},e.prototype.sliceEventRanges=function(e,t){for(var n=[],r=0,i=e;r<i.length;r++){var a=i[r];n.push.apply(n,this.sliceEventRange(a,t))}return n},e.prototype.sliceEventRange=function(e,t){var n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:U(n.start,1)});for(var r=this.sliceRange.apply(this,Ra.__spreadArray([n],t)),i=0,a=r;i<a.length;i++){var o=a[i];o.eventRange=e,o.isStart=e.isStart&&o.isStart,o.isEnd=e.isEnd&&o.isEnd}return r},e}(),Us=/^(visible|hidden)$/,Hs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleEl=function(e){t.el=e,vr(t.props.elRef,e)},t}return Ra.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.liquid,n=e.liquidIsAbsolute,r=t&&n,i=["fc-scroller"];return t&&(n?i.push("fc-scroller-liquid-absolute"):i.push("fc-scroller-liquid")),La.createElement("div",{ref:this.handleEl,className:i.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)},t.prototype.needsXScrolling=function(){if(Us.test(this.props.overflowX))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1){var i=n[r];if(i.getBoundingClientRect().width>t)return!0}return!1},t.prototype.needsYScrolling=function(){if(Us.test(this.props.overflowY))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1){var i=n[r];if(i.getBoundingClientRect().height>t)return!0}return!1},t.prototype.getXScrollbarWidth=function(){return Us.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},t.prototype.getYScrollbarWidth=function(){return Us.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},t}(Vo),js=function(){function e(e){var t=this;this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(e,n){var r=t,i=r.depths,a=r.currentMap,o=!1,s=!1;null!==e?(o=n in a,a[n]=e,i[n]=(i[n]||0)+1,s=!0):(i[n]-=1,i[n]||(delete a[n],delete t.callbackMap[n],o=!0)),t.masterCallback&&(o&&t.masterCallback(null,String(n)),s&&t.masterCallback(e,String(n)))}}return e.prototype.createRef=function(e){var t=this,n=this.callbackMap[e];return n||(n=this.callbackMap[e]=function(n){t.handleValue(n,String(e))}),n},e.prototype.collect=function(e,t,n){return ve(this.currentMap,e,t,n)},e.prototype.getAll=function(){return he(this.currentMap)},e}(),Bs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processCols=We(function(e){return e},pa),t.renderMicroColGroup=We(fa),t.scrollerRefs=new js,t.scrollerElRefs=new js(t._handleScrollerEl.bind(t)),t.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},t.handleSizing=function(){t.safeSetState(Ra.__assign({shrinkWidth:t.computeShrinkWidth()},t.computeScrollerDims()))},t}return Ra.__extends(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.state,r=e.context,i=t.sections||[],a=this.processCols(t.cols),o=this.renderMicroColGroup(a,n.shrinkWidth),s=va(t.liquid,r);t.collapsibleWidth&&s.push("fc-scrollgrid-collapsible");for(var l,u=i.length,c=0,d=[],h=[],p=[];c<u&&"header"===(l=i[c]).type;)d.push(this.renderSection(l,o,!0)),c+=1;for(;c<u&&"body"===(l=i[c]).type;)h.push(this.renderSection(l,o,!1)),c+=1;for(;c<u&&"footer"===(l=i[c]).type;)p.push(this.renderSection(l,o,!0)),c+=1;var f=!qn(),g={role:"rowgroup"};return La.createElement("table",{role:"grid",className:s.join(" "),style:{height:t.height}},Boolean(!f&&d.length)&&La.createElement.apply(void 0,Ra.__spreadArray(["thead",g],d)),Boolean(!f&&h.length)&&La.createElement.apply(void 0,Ra.__spreadArray(["tbody",g],h)),Boolean(!f&&p.length)&&La.createElement.apply(void 0,Ra.__spreadArray(["tfoot",g],p)),f&&La.createElement.apply(void 0,Ra.__spreadArray(Ra.__spreadArray(Ra.__spreadArray(["tbody",g],d),h),p)))},t.prototype.renderSection=function(e,t,n){return"outerContent"in e?La.createElement(La.Fragment,{key:e.key},e.outerContent):La.createElement("tr",{key:e.key,role:"presentation",className:ya(e,this.props.liquid
106).join(" ")},this.renderChunkTd(e,t,e.chunk,n))},t.prototype.renderChunkTd=function(e,t,n,r){if("outerContent"in n)return n.outerContent;var i=this.props,a=this.state,o=a.forceYScrollbars,s=a.scrollerClientWidths,l=a.scrollerClientHeights,u=da(i,e),c=ca(i,e),d=i.liquid?o?"scroll":u?"auto":"hidden":"visible",h=e.key,p=ha(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:i.collapsibleWidth||void 0===s[h]?null:s[h],clientHeight:void 0!==l[h]?l[h]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}},r);return La.createElement(r?"th":"td",{ref:n.elRef,role:"presentation"},La.createElement("div",{className:"fc-scroller-harness"+(c?" fc-scroller-harness-liquid":"")},La.createElement(Hs,{ref:this.scrollerRefs.createRef(h),elRef:this.scrollerElRefs.createRef(h),overflowY:d,overflowX:i.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},p)))},t.prototype._handleScrollerEl=function(e,t){var n=Ea(this.props.sections,t);n&&vr(n.chunk.scrollerElRef,e)},t.prototype.componentDidMount=function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)},t.prototype.componentDidUpdate=function(){this.handleSizing()},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},t.prototype.computeShrinkWidth=function(){return ma(this.props.cols)?ua(this.scrollerElRefs.getAll()):0},t.prototype.computeScrollerDims=function(){var e=tr(),t=this,n=t.scrollerRefs,r=t.scrollerElRefs,i=!1,a={},o={};for(var s in n.currentMap){var l=n.currentMap[s];if(l&&l.needsYScrolling()){i=!0;break}}for(var u=0,c=this.props.sections;u<c.length;u++){var d=c[u],s=d.key,h=r.currentMap[s];if(h){var p=h.parentNode;a[s]=Math.floor(p.getBoundingClientRect().width-(i?e.y:0)),o[s]=Math.floor(p.getBoundingClientRect().height)}}return{forceYScrollbars:i,scrollerClientWidths:a,scrollerClientHeights:o}},t}(Vo);Bs.addStateEquality({scrollerClientWidths:pe,scrollerClientHeights:pe});var Fs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elRef=La.createRef(),t}return Ra.__extends(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=n.options,i=t.seg,a=i.eventRange,o=a.ui,s={event:new vo(n,a.def,a.instance),view:n.viewApi,timeText:t.timeText,textColor:o.textColor,backgroundColor:o.backgroundColor,borderColor:o.borderColor,isDraggable:!t.disableDragging&&Xt(i,n),isStartResizable:!t.disableResizing&&Kt(i,n),isEndResizable:!t.disableResizing&&Qt(i),isMirror:Boolean(t.isDragging||t.isResizing||t.isDateSelecting),isStart:Boolean(i.isStart),isEnd:Boolean(i.isEnd),isPast:Boolean(t.isPast),isFuture:Boolean(t.isFuture),isToday:Boolean(t.isToday),isSelected:Boolean(t.isSelected),isDragging:Boolean(t.isDragging),isResizing:Boolean(t.isResizing)},l=en(s).concat(o.classNames);return La.createElement($o,{hookProps:s,classNames:r.eventClassNames,content:r.eventContent,defaultContent:t.defaultContent,didMount:r.eventDidMount,willUnmount:r.eventWillUnmount,elRef:this.elRef},function(e,n,r,i){return t.children(e,l.concat(n),r,i,s)})},t.prototype.componentDidMount=function(){Wt(this.elRef.current,this.props.seg)},t.prototype.componentDidUpdate=function(e){var t=this.props.seg;t!==e.seg&&Wt(this.elRef.current,t)},t}(Vo),Vs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra.__extends(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=t.seg,i=n.options.eventTimeFormat||t.defaultTimeFormat,a=Zt(r,i,n,t.defaultDisplayEventTime,t.defaultDisplayEventEnd);return La.createElement(Fs,{seg:r,timeText:a,disableDragging:t.disableDragging,disableResizing:t.disableResizing,defaultContent:t.defaultContent||Sa,isDragging:t.isDragging,isResizing:t.isResizing,isDateSelecting:t.isDateSelecting,isSelected:t.isSelected,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday},function(e,i,a,o,s){return La.createElement("a",Ra.__assign({className:t.extraClassNames.concat(i).join(" "),style:{borderColor:s.borderColor,backgroundColor:s.backgroundColor},ref:e},nn(r,n)),La.createElement("div",{className:"fc-event-main",ref:a,style:{color:s.textColor}},o),s.isStartResizable&&La.createElement("div",{className:"fc-event-resizer fc-event-resizer-start"}),s.isEndResizable&&La.createElement("div",{className:"fc-event-resizer fc-event-resizer-end"}))})},t}(Vo),Ws=function(e){return La.createElement(Bo.Consumer,null,function(t){var n=t.options,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return La.createElement($o,{hookProps:r,classNames:n.nowIndicatorClassNames,content:n.nowIndicatorContent,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},e.children)})},zs=it({day:"numeric"}),$s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ra.__extends(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=n.options,i=wa({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraProps:t.extraHookProps,viewApi:n.viewApi,dateEnv:n.dateEnv});return La.createElement(Cr,{hookProps:i,content:r.dayCellContent,defaultContent:t.defaultContent},t.children)},t}(Vo),qs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refineHookProps=ze(wa),t.normalizeClassNames=kr(),t}return Ra.__extends(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=n.options,i=this.refineHookProps({date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,showDayNumber:t.showDayNumber,extraProps:t.extraHookProps,viewApi:n.viewApi,dateEnv:n.dateEnv}),a=Kn(i,n.theme).concat(i.isDisabled?[]:this.normalizeClassNames(r.dayCellClassNames,i)),o=i.isDisabled?{}:{"data-date":He(t.date)};return La.createElement(Yo,{hookProps:i,didMount:r.dayCellDidMount,willUnmount:r.dayCellWillUnmount,elRef:t.elRef},function(e){return t.children(e,a,o,i.isDisabled)})},t}(Vo),Gs=function(e){return La.createElement(Fs,{defaultContent:ka,seg:e.seg,timeText:"",disableDragging:!0,disableResizing:!0,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},function(e,t,n,r,i){return La.createElement("div",{ref:e,className:["fc-bg-event"].concat(t).join(" "),style:{backgroundColor:i.backgroundColor}},r)})},Ys=function(e){return La.createElement(Bo.Consumer,null,function(t){var n=t.dateEnv,r=t.options,i=e.date,a=r.weekNumberFormat||e.defaultFormat,o=n.computeWeekNumber(i),s=n.format(i,a),l={num:o,text:s,date:i};return La.createElement($o,{hookProps:l,classNames:r.weekNumberClassNames,content:r.
106weekNumberContent,defaultContent:Da,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},e.children)})},Xs=10,Ks=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={titleId:h()},t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&vr(t.props.elRef,e)},t.handleDocumentMouseDown=function(e){var n=c(e);t.rootEl.contains(n)||t.handleCloseClick()},t.handleDocumentKeyDown=function(e){"Escape"===e.key&&t.handleCloseClick()},t.handleCloseClick=function(){var e=t.props.onClose;e&&e()},t}return Ra.__extends(t,e),t.prototype.render=function(){var e=this.context,t=e.theme,n=e.options,r=this,i=r.props,a=r.state,o=["fc-popover",t.getClass("popover")].concat(i.extraClassNames||[]);return La.createPortal(La.createElement("div",Ra.__assign({id:i.id,className:o.join(" "),"aria-labelledby":a.titleId},i.extraAttrs,{ref:this.handleRootEl}),La.createElement("div",{className:"fc-popover-header "+t.getClass("popoverHeader")},La.createElement("span",{className:"fc-popover-title",id:a.titleId},i.title),La.createElement("span",{className:"fc-popover-close "+t.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),La.createElement("div",{className:"fc-popover-body "+t.getClass("popoverContent")},i.children)),i.parentEl)},t.prototype.componentDidMount=function(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()},t.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)},t.prototype.updateSize=function(){var e=this.context.isRtl,t=this.props,n=t.alignmentEl,r=t.alignGridTop,a=this.rootEl,o=sr(n);if(o){var s=a.getBoundingClientRect(),u=r?i(n,".fc-scrollgrid").getBoundingClientRect().top:o.top,c=e?o.right-s.width:o.left;u=Math.max(u,Xs),c=Math.min(c,document.documentElement.clientWidth-Xs-s.width),c=Math.max(c,Xs);var d=a.offsetParent.getBoundingClientRect();l(a,{top:u-d.top,left:c-d.left})}},t}(Vo),Qs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,e?t.context.registerInteractiveComponent(t,{el:e,useEventCenter:!1}):t.context.unregisterInteractiveComponent(t)},t}return Ra.__extends(t,e),t.prototype.render=function(){var e=this.context,t=e.options,n=e.dateEnv,r=this.props,i=r.startDate,a=r.todayRange,o=r.dateProfile,s=n.format(i,t.dayPopoverFormat);return La.createElement(qs,{date:i,dateProfile:o,todayRange:a,elRef:this.handleRootEl},function(e,t,n){return La.createElement(Ks,{elRef:e,id:r.id,title:s,extraClassNames:["fc-more-popover"].concat(t),extraAttrs:n,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},La.createElement($s,{date:i,dateProfile:o,todayRange:a},function(e,t){return t&&La.createElement("div",{className:"fc-more-popover-misc",ref:e},t)}),r.children)})},t.prototype.queryHit=function(e,t,n,r){var i=this,a=i.rootEl,o=i.props;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:o.dateProfile,dateSpan:Ra.__assign({allDay:!0,range:{start:o.startDate,end:o.endDate}},o.extraDateSpan),dayEl:a,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null},t}(Wo),Zs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.linkElRef=La.createRef(),t.state={isPopoverOpen:!1,popoverId:h()},t.handleClick=function(e){function n(e){var t=e.eventRange,n=t.def,r=t.instance,i=t.range;return{event:new vo(a,n,r),start:a.dateEnv.toDate(i.start),end:a.dateEnv.toDate(i.end),isStart:e.isStart,isEnd:e.isEnd}}
106var r=t,i=r.props,a=r.context,o=a.options.moreLinkClick,s=Aa(i).start;"function"==typeof o&&(o=o({date:s,allDay:Boolean(i.allDayDate),allSegs:i.allSegs.map(n),hiddenSegs:i.hiddenSegs.map(n),jsEvent:e,view:a.viewApi})),o&&"popover"!==o?"string"==typeof o&&a.calendarApi.zoomTo(s,o):t.setState({isPopoverOpen:!0})},t.handlePopoverClose=function(){t.setState({isPopoverOpen:!1})},t}return Ra.__extends(t,e),t.prototype.render=function(){var e=this,t=this,n=t.props,r=t.state;return La.createElement(Bo.Consumer,null,function(t){var i=t.viewApi,a=t.options,o=t.calendarApi,s=a.moreLinkText,l=n.moreCnt,u=Aa(n),c="function"==typeof s?s.call(o,l):"+"+l+" "+s,d=P(a.moreLinkHint,[l],c),h={num:l,shortText:"+"+l,text:c,view:i};return La.createElement(La.Fragment,null,Boolean(n.moreCnt)&&La.createElement($o,{elRef:e.linkElRef,hookProps:h,classNames:a.moreLinkClassNames,content:a.moreLinkContent,defaultContent:n.defaultContent||xa,didMount:a.moreLinkDidMount,willUnmount:a.moreLinkWillUnmount},function(t,i,a,o){return n.children(t,["fc-more-link"].concat(i),a,o,e.handleClick,d,r.isPopoverOpen,r.isPopoverOpen?r.popoverId:"")}),r.isPopoverOpen&&La.createElement(Qs,{id:r.popoverId,startDate:u.start,endDate:u.end,dateProfile:n.dateProfile,todayRange:n.todayRange,extraDateSpan:n.extraDateSpan,parentEl:e.parentEl,alignmentEl:n.alignmentElRef.current,alignGridTop:n.alignGridTop,onClose:e.handlePopoverClose},n.popoverContent()))})},t.prototype.componentDidMount=function(){this.updateParentEl()},t.prototype.componentDidUpdate=function(){this.updateParentEl()},t.prototype.updateParentEl=function(){this.linkElRef.current&&(this.parentEl=i(this.linkElRef.current,".fc-view-harness"))},t}(Vo),Js="5.11.3";t.BASE_OPTION_DEFAULTS=no,t.BASE_OPTION_REFINERS=to,t.BaseComponent=Vo,t.BgEvent=Gs,t.CalendarApi=mo,t.CalendarContent=ks,t.CalendarDataManager=hs,t.CalendarDataProvider=ps,t.CalendarRoot=Ds,t.ContentHook=Cr,t.CustomContentRenderContext=qo,t.DateComponent=Wo,t.DateEnv=So,t.DateProfileGenerator=Qo,t.DayCellContent=$s,t.DayCellRoot=qs,t.DayHeader=Ms,t.DaySeriesM
106odel=Rs,t.DayTableModel=Ls,t.DelayedRunner=cs,t.ElementDragging=ys,t.ElementScrollController=No,t.Emitter=Mo,t.EventApi=vo,t.EventRoot=Fs,t.EventSourceApi=Na,t.Interaction=ms,t.MoreLinkRoot=Zs,t.MountHook=Yo,t.NamedTimeZoneImpl=fs,t.NowIndicatorRoot=Ws,t.NowTimer=Ps,t.PositionCache=Ro,t.RefMap=js,t.RenderHook=$o,t.ScrollController=Lo,t.ScrollResponder=jo,t.Scroller=Hs,t.SegHierarchy=gs,t.SimpleScrollGrid=Bs,t.Slicer=Ns,t.Splitter=Ao,t.StandardEvent=Vs,t.TableDateCell=As,t.TableDowCell=Os,t.Theme=Ho,t.ViewApi=fo,t.ViewContextType=Bo,t.ViewRoot=Xo,t.WeekNumberRoot=Ys,t.WindowScrollController=Uo,t.addDays=U,t.addDurations=ke,t.addMs=H,t.addWeeks=N,t.allowContextMenu=k,t.allowSelection=w,t.applyMutationToEventStore=mn,t.applyStyle=l,t.applyStyleProp=u,t.asCleanDays=Ce,t.asRoughMinutes=Pe,t.asRoughMs=Re,t.asRoughSeconds=Me,t.binarySearch=Vi,t.buildClassNameNormalizer=kr,t.buildEntryKey=Ui,t.buildEventApis=kn,t.buildEventRangeKey=tn,t.buildHashFromArray=de,t.buildIsoString=Ue,t.buildNavLinkAttrs=Zn,t.buildSegCompareObj=Yt,t.buildSegTimeText=Zt,t.collectFromHash=ve,t.combineEventUis=bt,t.compareByFieldSpec=A,t.compareByFieldSpecs=x,t.compareNumbers=M,t.compareObjs=ge,t.computeEarliestSegStart=Ia,t.computeEdges=ir,t.computeFallbackHeaderFormat=Yi,t.computeHeightAndMargins=lr,t.computeInnerRect=ar,t.computeRect=or,t.computeSegDraggable=Xt,t.computeSegEndResizable=Qt,t.computeSegStartResizable=Kt,t.computeShrinkWidth=ua,t.computeSmallestCellWidth=L,t.computeVisibleDayRange=At,t.config=_s,t.constrainPoint=Wn,t.createAriaClickAttrs=y,t.createDuration=Te,t.createEmptyEventStore=pt,t.createEventInstance=oe,t.createEventUi=_t,t.createFormatter=it,t.createPlugin=yr,t.diffDates=Ot,t.diffDayAndTime=z,t.diffDays=B,t.diffPoints=$n,t.diffWeeks=j,t.diffWholeDays=q,t.diffWholeWeeks=$,t.disableCursor=T,t.elementClosest=i,t.elementMatches=a,t.enableCursor=E,t.eventTupleToStore=ct,t.filterEventStoreDefs=gt,t.filterHash=le,t.findDirectChildren=s,t.findElements=o,t.flexibleCompare=I,t.formatDate=Ln,t.formatDayString=He,t.formatIsoTimeString=je,t.formatRange=Nn,t.getAllowYScrolling=da,t.getCanVGrowWithinCell=qn,t.getClippingParents=cr,t.getDateMeta=Xn,t.getDayClassNames=Kn,t.getDefaultEventEnd=gn,t.getElRoot=d,t.getElSeg=zt,t.getEntrySpanEnd=Ni,t.getEventClassNames=en,t.getEventTargetViaRoot=c,t.getIsRtlScrollbarOnLeft=Jn,t.getRectCenter=zn,t.getRelevantEvents=dt,t.getScrollGridClassNames=va,t.getScrollbarWidths=tr,t.getSectionClassNames=ya,t.getSectionHasLiquidHeight=ca,t.getSegAnchorAttrs=nn,t.getSegMeta=Jt,t.getSlotClassNames=Qn,t.getStickyFooterScrollbar=Ta,t.getStickyHeaderDates=ba,t.getUnequalProps=fe,t.getUniqueDomId=h,t.globalLocales=wo,t.globalPlugins=us,t.greatestDurationDenominator=Ne,t.groupIntersectingEntries=Hi,t.guid=b,t.hasBgRendering=Vt,t.hasShrinkWidth=ma,t.identity=lt,t.interactionSettingsStore=vs,t.interactionSettingsToStore=zi,t.intersectRanges=Lt,t.intersectRects=Fn,t.intersectSpans=Bi,t.isArraysEqual=Ve,t.isColPropsEqual=pa,t.isDateSelectionValid=ea,t.isDateSpansEqual=on,t.isInt=R,t.isInteractionValid=Ji,t.isMultiDayRange=It,t.isPropsEqual=pe,t.isPropsValid=na,t.isValidDate=ie,t.joinSpans=ji,t.listenBySelector=g,t.mapHash=ue,t.memoize=We,t.memoizeArraylike=$e,t.memoizeHashlike=qe,t.memoizeObjArg=ze,t.mergeEventStores=ft,t.multiplyDuration=xe,t.padStart=O,t.parseBusinessHours=Hn,t.parseClassNames=yt,t.parseDragMeta=$i,t.parseEventDef=Ct,t.parseFieldSpecs=D,t.parseMarker=An,t.pointInsideRect=Bn,t.preventContextMenu=C,t.preventDefault=p,t.preventSelection=S,t.rangeContainsMarker=jt,t.rangeContainsRange=Ht,t.rangesEqual=Nt,t.rangesIntersect=Ut,t.refineEventDef=St,t.refineProps=st,t.removeElement=r,t.removeExact=Fe,t.renderChunkContent=ha,t.renderFill=Ca,t.renderMicroColGroup=fa,t.renderScrollShim=_a,t.requestJson=pi,t.sanitizeShrinkWidth=ga,t.setElSeg=Wt,t.setRef=vr,t.sliceEventStore=Ft,t.sliceEvents=Li,t.sortEventSegs=Gt,t.startOfDay=G,t.translateRect=Vn,t.triggerDateSelect=hn,t.unpromisify=dr,t.version=Js,t.whenTransitionDone=v,t.wholeDivideDurations=Le,Object.keys(La).forEach(function(e){"default"===e||t.hasOwnProperty(e)||Object.defineProperty(t,e,{enumerable:!0,get:function(){return La[e]}})})},function(e,t){"use strict";
106if(Object.defineProperty(t,"__esModule",{value:!0}),"undefined"==typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var n=FullCalendarVDom.Component,r=FullCalendarVDom.createElement,i=FullCalendarVDom.render,a=FullCalendarVDom.createRef,o=FullCalendarVDom.Fragment,s=FullCalendarVDom.createContext,l=FullCalendarVDom.createPortal,u=FullCalendarVDom.flushSync,c=FullCalendarVDom.unmountComponentAtNode;t.Component=n, 107t.Fragment=o,t.createContext=s,t.createElement=r,t.createPortal=l,t.createRef=a,t.flushSync=u,t.render=i,t.unmountComponentAtNode=c},function(e,t,n){/*! 108 FullCalendar v5.11.3 109 Docs & License: https://fullcalendar.io/ 110 (c) 2022 Adam Shaw 111 */ 112"use strict";function r(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];for(var i=0,a=e;i<a.length;i++){var o=a[i];n[o.row].push(o)}return n}function i(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];for(var i=0,a=e;i<a.length;i++){var o=a[i];n[o.firstCol].push(o)}return n}function a(e,t){var n=[];if(e){for(var r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var i=0,a=e.segs;i<a.length;i++){var o=a[i];n[o.row].segs.push(o)}}else for(var r=0;r<t;r+=1)n[r]=null;return n}function o(e){return e.dayNumberText}function s(e){var t=e.eventRange.ui.display;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}function l(e){return y.createElement(y.Fragment,null,y.createElement("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&y.createElement("div",{className:"fc-event-time"},e.timeText),y.createElement("div",{className:"fc-event-title"},e.event.title||y.createElement(y.Fragment,null,"Â ")))}function u(e){for(var t=[],n=[],r=0,i=e;r<i.length;r++){var a=i[r];t.push(a.seg),a.isVisible||n.push(a.seg)}return{allSegs:t,invisibleSegs:n}}function c(e,t,n,r,i,a,o){var s=new x;s.allowReslicing=!0,s.strictOrder=r,t===!0||n===!0?(s.maxCoord=a,s.hiddenConsumes=!0):"number"==typeof t?s.maxStackCnt=t:"number"==typeof n&&(s.maxStackCnt=n,s.hiddenConsumes=!0);for(var l=[],u=[],c=0;c<e.length;c+=1){var h=e[c],f=h.eventRange.instance.instanceId,g=i[f];null!=g?l.push({index:c,thickness:g,span:{start:h.firstCol,end:h.lastCol+1}}):u.push(h)}for(var m=s.addSegs(l),v=s.toRects(),y=d(v,e,o),_=y.singleColPlacements,b=y.multiColPlacements,T=y.leftoverMargins,E=[],S=[],w=0,C=u;w<C.length;w++){var h=C[w];b[h.firstCol].push({seg:h,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(var k=h.firstCol;k<=h.lastCol;k+=1)_[k].push({seg:p(h,k,k+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(var k=0;k<o.length;k+=1)E.push(0);for(var D=0,A=m;D<A.length;D++){var I=A[D],h=e[I.index],O=I.span;b[O.start].push({seg:p(h,O.start,O.end,o),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(var k=O.start;k<O.end;k+=1)E[k]+=1,_[k].push({seg:p(h,k,k+1,o),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(var k=0;k<o.length;k+=1)S.push(T[k]);return{singleColPlacements:_,multiColPlacements:b,moreCnts:E,moreMarginTops:S}}function d(e,t,n){for(var r=h(e,n.length),i=[],a=[],o=[],s=0;s<n.length;s+=1){for(var l=r[s],u=[],c=0,d=0,f=0,g=l;f<g.length;f++){var m=g[f],v=t[m.index];u.push({seg:p(v,s,s+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:m.levelCoord,marginTop:m.levelCoord-c}),c=m.levelCoord+m.thickness}var y=[];c=0,d=0;for(var _=0,b=l;_<b.length;_++){var m=b[_],v=t[m.index],T=m.span.end-m.span.start>1,E=m.span.start===s;d+=m.levelCoord-c,c=m.levelCoord+m.thickness,T?(d+=m.thickness,E&&y.push({seg:p(v,m.span.start,m.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:m.levelCoord,marginTop:0})):E&&(y.push({seg:p(v,m.span.start,m.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:m.levelCoord,marginTop:d}),d=0)}i.push(u),a.push(y),o.push(d)}return{singleColPlacements:i,multiColPlacements:a,leftoverMargins:o}}function h(e,t){for(var n=[],r=0;r<t;r+=1)n.push([]);for(var i=0,a=e;i<a.length;i++)for(var o=a[i],r=o.span.start;r<o.span.end;r+=1)n[r].push(o);return n}function p(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;var i=e.eventRange,a=i.range,o=y.intersectRanges(a,{start:r[t].date,end:y.addDays(r[n-1].date,1)});return _.__assign(_.__assign({},e),{firstCol:t,lastCol:n-1,eventRange:{def:i.def,ui:_.__assign(_.__assign({},i.ui),{durationEditable:!1}),instance:i.instance,range:o},isStart:e.isStart&&o.start.valueOf()===a.start.valueOf(),isEnd:e.isEnd&&o.end.valueOf()===a.end.valueOf()})}function f(e,t){if(!e.length)return[];var n=g(t);return e.map(function(e){return{seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0}})}function g(e){for(var t={},n=0,r=e;n<r.length;n++)for(var i=r[n],a=0,o=i;a<o.length;a++){var s=o[a];t[s.seg.eventRange.instance.instanceId]=s.absoluteTop}return t}function m(e){return e.eventRange.def.allDay}
112function v(e,t){var n=new y.DaySeriesModel(e.renderRange,t);return new y.DayTableModel(n,/year|month|week/.test(e.currentRangeUnit))}Object.defineProperty(t,"__esModule",{value:!0});var y=n(70),_=n(66),b=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.headerElRef=y.createRef(),t}return _.__extends(t,e),t.prototype.renderSimpleLayout=function(e,t){var n=this,r=n.props,i=n.context,a=[],o=y.getStickyHeaderDates(i.options);return e&&a.push({type:"header",key:"header",isSticky:o,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),a.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),y.createElement(y.ViewRoot,{viewSpec:i.viewSpec},function(e,t){return y.createElement("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},y.createElement(y.SimpleScrollGrid,{liquid:!r.isHeightAuto&&!r.forPrint,collapsibleWidth:r.forPrint,cols:[],sections:a}))})},t.prototype.renderHScrollLayout=function(e,t,n,r){var i=this.context.pluginHooks.scrollGridImpl;if(!i)throw new Error("No ScrollGrid implementation");var a=this,o=a.props,s=a.context,l=!o.forPrint&&y.getStickyHeaderDates(s.options),u=!o.forPrint&&y.getStickyFooterScrollbar(s.options),c=[];return e&&c.push({type:"header",key:"header",isSticky:l,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),c.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),u&&c.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:y.renderScrollShim}]}),y.createElement(y.ViewRoot,{viewSpec:s.viewSpec},function(e,t){return y.createElement("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},y.createElement(i,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,colGroups:[{cols:[{span:n,minWidth:r}]}],sections:c}))})},t}(y.DateComponent),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _.__extends(t,e),t.prototype.render=function(){var e=this.props,t=y.buildNavLinkAttrs(this.context,e.date);return y.createElement(y.DayCellContent,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraHookProps:e.extraHookProps,defaultContent:o},function(n,r){return(r||e.forceDayTop)&&y.createElement("div",{className:"fc-daygrid-day-top",ref:n},y.createElement("a",_.__assign({id:e.dayNumberId,className:"fc-daygrid-day-number"},t),r||y.createElement(y.Fragment,null,"Â ")))})},t}(y.BaseComponent),E=y.createFormatter({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _.__extends(t,e),t.prototype.render=function(){var e=this.props;return y.createElement(y.StandardEvent,_.__assign({}
112,e,{extraClassNames:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:E,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))},t}(y.BaseComponent),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _.__extends(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context,r=n.options.eventTimeFormat||E,i=y.buildSegTimeText(t.seg,r,n,!0,t.defaultDisplayEventEnd);return y.createElement(y.EventRoot,{seg:t.seg,timeText:i,defaultContent:l,isDragging:t.isDragging,isResizing:!1,isDateSelecting:!1,isSelected:t.isSelected,isPast:t.isPast,isFuture:t.isFuture,isToday:t.isToday},function(e,r,i,a){return y.createElement("a",_.__assign({className:["fc-daygrid-event","fc-daygrid-dot-event"].concat(r).join(" "),ref:e},y.getSegAnchorAttrs(t.seg,n)),a)})},t}(y.BaseComponent),C=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.compileSegs=y.memoize(u),t}return _.__extends(t,e),t.prototype.render=function(){var e=this.props,t=this.compileSegs(e.singlePlacements),n=t.allSegs,r=t.invisibleSegs;return y.createElement(y.MoreLinkRoot,{dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:function(){var t=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return y.createElement(y.Fragment,null,n.map(function(n){var r=n.eventRange.instance.instanceId;return y.createElement("div",{className:"fc-daygrid-event-harness",key:r,style:{visibility:t[r]?"hidden":""}},s(n)?y.createElement(w,_.__assign({seg:n,isDragging:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},y.getSegMeta(n,e.todayRange))):y.createElement(S,_.__assign({seg:n,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},y.getSegMeta(n,e.todayRange))))}))}},function(e,t,n,r,i,a,o,s){return y.createElement("a",_.__assign({ref:e,className:["fc-daygrid-more-link"].concat(t).join(" "),title:a,"aria-expanded":o,"aria-controls":s},y.createAriaClickAttrs(i)),r)})},t}(y.BaseComponent),k=y.createFormatter({week:"narrow"}),D=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=y.createRef(),t.state={dayNumberId:y.getUniqueDomId()},t.handleRootEl=function(e){y.setRef(t.rootElRef,e),y.setRef(t.props.elRef,e)},t}return _.__extends(t,e),t.prototype.render=function(){var e=this,t=e.context,n=e.props,r=e.state,i=e.rootElRef,a=n.date,o=n.dateProfile,s=y.buildNavLinkAttrs(t,a,"week");return y.createElement(y.DayCellRoot,{date:a,dateProfile:o,todayRange:n.todayRange,showDayNumber:n.showDayNumber,extraHookProps:n.extraHookProps,elRef:this.handleRootEl},function(e,t,l,u){return y.createElement("td",_.__assign({ref:e,role:"gridcell",className:["fc-daygrid-day"].concat(t,n.extraClassNames||[]).join(" ")},l,n.extraDataAttrs,n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),y.createElement("div",{className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",ref:n.innerElRef},n.showWeekNumber&&y.createElement(y.WeekNumberRoot,{date:a,defaultFormat:k},function(e,t,n,r){return y.createElement("a",_.__assign({ref:e,className:["fc-daygrid-week-number"].concat(t).join(" ")},s),r)}),!u&&y.createElement(T,{date:a,dateProfile:o,showDayNumber:n.showDayNumber,dayNumberId:r.dayNumberId,forceDayTop:n.forceDayTop,todayRange:n.todayRange,extraHookProps:n.extraHookProps}),y.createElement("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,y.createElement("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},y.createElement(C,{allDayDate:a,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:i,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}
112))),y.createElement("div",{className:"fc-daygrid-day-bg"},n.bgContent)))})},t}(y.DateComponent),x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hiddenConsumes=!1,t.forceHidden={},t}return _.__extends(t,e),t.prototype.addSegs=function(t){for(var n=this,r=e.prototype.addSegs.call(this,t),i=this.entriesByLevel,a=function(e){return!n.forceHidden[y.buildEntryKey(e)]},o=0;o<i.length;o+=1)i[o]=i[o].filter(a);return r},t.prototype.handleInvalidInsertion=function(t,n,r){var i=this,a=i.entriesByLevel,o=i.forceHidden,s=t.touchingEntry,l=t.touchingLevel,u=t.touchingLateral;if(this.hiddenConsumes&&s){var c=y.buildEntryKey(s);if(!o[c])if(this.allowReslicing){var d=_.__assign(_.__assign({},s),{span:y.intersectSpans(s.span,n.span)}),h=y.buildEntryKey(d);o[h]=!0,a[l][u]=d,this.splitEntry(s,n,r)}else o[c]=!0,r.push(s)}return e.prototype.handleInvalidInsertion.call(this,t,n,r)},t}(y.SegHierarchy),A=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellElRefs=new y.RefMap,t.frameElRefs=new y.RefMap,t.fgElRefs=new y.RefMap,t.segHarnessRefs=new y.RefMap,t.rootElRef=y.createRef(),t.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},t}return _.__extends(t,e),t.prototype.render=function(){var e=this,t=this,n=t.props,r=t.state,a=t.context,o=a.options,s=n.cells.length,l=i(n.businessHourSegs,s),u=i(n.bgEventSegs,s),d=i(this.getHighlightSegs(),s),h=i(this.getMirrorSegs(),s),p=c(y.sortEventSegs(n.fgEventSegs,o.eventOrder),n.dayMaxEvents,n.dayMaxEventRows,o.eventOrderStrict,r.eventInstanceHeights,r.maxContentHeight,n.cells),g=p.singleColPlacements,m=p.multiColPlacements,v=p.moreCnts,_=p.moreMarginTops,b=n.eventDrag&&n.eventDrag.affectedInstances||n.eventResize&&n.eventResize.affectedInstances||{};return y.createElement("tr",{ref:this.rootElRef,role:"row"},n.renderIntro&&n.renderIntro(),n.cells.map(function(t,r){var i=e.renderFgSegs(r,n.forPrint?g[r]:m[r],n.todayRange,b),a=e.renderFgSegs(r,f(h[r],m),n.todayRange,{},Boolean(n.eventDrag),Boolean(n.eventResize),!1);return y.createElement(D,{key:t.key,elRef:e.cellElRefs.createRef(t.key),innerElRef:e.frameElRefs.createRef(t.key),dateProfile:n.dateProfile,date:t.date,showDayNumber:n.showDayNumbers,showWeekNumber:n.showWeekNumbers&&0===r,forceDayTop:n.showWeekNumbers,todayRange:n.todayRange,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,extraHookProps:t.extraHookProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:v[r],moreMarginTop:_[r],singlePlacements:g[r],fgContentElRef:e.fgElRefs.createRef(t.key),fgContent:y.createElement(y.Fragment,null,y.createElement(y.Fragment,null,i),y.createElement(y.Fragment,null,a)),bgContent:y.createElement(y.Fragment,null,e.renderFillSegs(d[r],"highlight"),e.renderFillSegs(l[r],"non-business"),e.renderFillSegs(u[r],"bg-event"))})}))},t.prototype.componentDidMount=function(){this.updateSizing(!0)},t.prototype.componentDidUpdate=function(e,t){var n=this.props;this.updateSizing(!y.isPropsEqual(e,n))},t.prototype.getHighlightSegs=function(){var e=this.props;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs},t.prototype.getMirrorSegs=function(){var e=this.props;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]},t.prototype.renderFgSegs=function(e,t,n,r,i,a,o){var l=this.context,u=this.props.eventSelection,c=this.state.framePositions,d=1===this.props.cells.length,h=i||a||o,p=[];if(c)for(var f=0,g=t;f<g.length;f++){var m=g[f],v=m.seg,b=v.eventRange.instance.instanceId,T=b+":"+e,E=m.isVisible&&!r[b],C=m.isAbsolute,k="",D="";C&&(l.isRtl?(D=0,k=c.lefts[v.lastCol]-c.lefts[v.firstCol]):(k=0,D=c.rights[v.firstCol]-c.rights[v.lastCol])),p.push(y.createElement("div",{className:"fc-daygrid-event-harness"+(C?" fc-daygrid-event-harness-abs":""),key:T,ref:h?null:this.segHarnessRefs.createRef(T),style:{visibility:E?"":"hidden",marginTop:C?"":m.marginTop,top:C?m.absoluteTop:"",left:k,right:D}},s(v)?y.createElement(w,_.__assign({seg:v,isDragging:i,isSelected:b===u,defaultDisplayEventEnd:d},y.getSegMeta(v,n))):y.createElement(S,_.__assign({seg:v,isDragging:i,isResizing:a,isDateSelecting:o,isSelected:b===u,defaultDisplayEventEnd:d},y.getSegMeta(v,n)))))}return p}
112,t.prototype.renderFillSegs=function(e,t){var n=this.context.isRtl,r=this.props.todayRange,i=this.state.framePositions,a=[];if(i)for(var o=0,s=e;o<s.length;o++){var l=s[o],u=n?{right:0,left:i.lefts[l.lastCol]-i.lefts[l.firstCol]}:{left:0,right:i.rights[l.firstCol]-i.rights[l.lastCol]};a.push(y.createElement("div",{key:y.buildEventRangeKey(l.eventRange),className:"fc-daygrid-bg-harness",style:u},"bg-event"===t?y.createElement(y.BgEvent,_.__assign({seg:l},y.getSegMeta(l,r))):y.renderFill(t)))}return y.createElement.apply(void 0,_.__spreadArray([y.Fragment,{}],a))},t.prototype.updateSizing=function(e){var t=this,n=t.props,r=t.frameElRefs;if(!n.forPrint&&null!==n.clientWidth){if(e){var i=n.cells.map(function(e){return r.currentMap[e.key]});if(i.length){var a=this.rootElRef.current;this.setState({framePositions:new y.PositionCache(a,i,(!0),(!1))})}}var o=this.state.eventInstanceHeights,s=this.queryEventInstanceHeights(),l=n.dayMaxEvents===!0||n.dayMaxEventRows===!0;this.safeSetState({eventInstanceHeights:_.__assign(_.__assign({},o),s),maxContentHeight:l?this.computeMaxContentHeight():null})}},t.prototype.queryEventInstanceHeights=function(){var e=this.segHarnessRefs.currentMap,t={};for(var n in e){var r=Math.round(e[n].getBoundingClientRect().height),i=n.split(":")[0];t[i]=Math.max(t[i]||0,r)}return t},t.prototype.computeMaxContentHeight=function(){var e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top},t.prototype.getCellEls=function(){var e=this.cellElRefs.currentMap;return this.props.cells.map(function(t){return e[t.key]})},t}(y.DateComponent);A.addStateEquality({eventInstanceHeights:y.isPropsEqual});var I=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitBusinessHourSegs=y.memoize(r),t.splitBgEventSegs=y.memoize(r),t.splitFgEventSegs=y.memoize(r),t.splitDateSelectionSegs=y.memoize(r),t.splitEventDrag=y.memoize(a),t.splitEventResize=y.memoize(a),t.rowRefs=new y.RefMap,t.handleRootEl=function(e){t.rootEl=e,e?t.context.registerInteractiveComponent(t,{el:e,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t}return _.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.dateProfile,r=t.dayMaxEventRows,i=t.dayMaxEvents,a=t.expandRows,o=t.cells.length,s=this.splitBusinessHourSegs(t.businessHourSegs,o),l=this.splitBgEventSegs(t.bgEventSegs,o),u=this.splitFgEventSegs(t.fgEventSegs,o),c=this.splitDateSelectionSegs(t.dateSelectionSegs,o),d=this.splitEventDrag(t.eventDrag,o),h=this.splitEventResize(t.eventResize,o),p=i===!0||r===!0;p&&!a&&(p=!1,r=null,i=null);var f=["fc-daygrid-body",p?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",a?"":"fc-daygrid-body-natural"];return y.createElement("div",{className:f.join(" "),ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},y.createElement(y.NowTimer,{unit:"day"},function(p,f){return y.createElement(y.Fragment,null,y.createElement("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:t.clientWidth,minWidth:t.tableMinWidth,height:a?t.clientHeight:""}},t.colGroupNode,y.createElement("tbody",{role:"presentation"},t.cells.map(function(a,p){return y.createElement(A,{ref:e.rowRefs.createRef(p),key:a.length?a[0].date.toISOString():p,showDayNumbers:o>1,showWeekNumbers:t.showWeekNumbers,todayRange:f,dateProfile:n,cells:a,renderIntro:t.renderRowIntro,businessHourSegs:s[p],eventSelection:t.eventSelection,bgEventSegs:l[p].filter(m),fgEventSegs:u[p],dateSelectionSegs:c[p],eventDrag:d[p],eventResize:h[p],dayMaxEvents:i,dayMaxEventRows:r,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint})}))))}))},t.prototype.prepareHits=function(){this.rowPositions=new y.PositionCache(this.rootEl,this.rowRefs.collect().map(function(e){return e.getCellEls()[0]}),(!1),(!0)),this.colPositions=new y.PositionCache(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),(!0),(!1))},t.prototype.queryHit=function(e,t){var n=this,r=n.colPositions,i=n.rowPositions,a=r.leftToIndex(e),o=i.topToIndex(t);if(null!=o&&null!=a){var s=this.props.cells[o][a];return{dateProfile:this.props.dateProfile,dateSpan:_.__assign({range:this.getCellRange(o,a),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(o,a),rect:{left:r.lefts[a],right:r.rights[a],top:i.tops[o],bottom:i.bottoms[o]},layer:0}}return null},t.prototype.getCellEl=function(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]},t.prototype.getCellRange=function(e,t){var n=this.props.cells[e][t].date,r=y.addDays(n,1);return{start:n,end:r}},t}(y.DateComponent),O=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.forceDayIfListItem=!0,t}return _.__extends(t,e),t.prototype.sliceRange=function(e,t){return t.sliceRange(e)},t}(y.Slicer),P=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.slicer=new O,t.tableRef=y.createRef(),t}return _.__extends(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context;return y.createElement(I,_.__assign({ref:this.tableRef},this.slicer.sliceProps(t,t.dateProfile,t.nextDayThreshold,n,t.dayTableModel),{dateProfile:t.dateProfile,cells:t.dayTableModel.cells,colGroupNode:t.colGroupNode,tableMinWidth:t.tableMinWidth,renderRowIntro:t.renderRowIntro,dayMaxEvents:t.dayMaxEvents,dayMaxEventRows:t.dayMaxEventRows,showWeekNumbers:t.showWeekNumbers,expandRows:t.expandRows,headerAlignElRef:t.headerAlignElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint}))},t}(y.DateComponent),M=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayTableModel=y.memoize(v),t.headerRef=y.createRef(),t.tableRef=y.createRef(),t}return _.__extends(t,e),t.prototype.render=function(){var e=this,t=this.context,n=t.options,r=t.dateProfileGenerator,i=this.props,a=this.buildDayTableModel(i.dateProfile,r),o=n.dayHeaders&&y.createElement(y.DayHeader,{ref:this.headerRef,dateProfile:i.dateProfile,dates:a.headerDates,datesRepDistinctDays:1===a.rowCnt}),s=function(t){return y.createElement(P,{ref:e.tableRef,dateProfile:i.dateProfile,dayTableModel:a,businessHours:i.businessHours,dateSelection:i.dateSelection,eventStore:i.eventStore,eventUiBases:i.eventUiBases,eventSelection:i.eventSelection,eventDrag:i.eventDrag,eventResize:i.eventResize,nextDayThreshold:n.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.weekNumbers,expandRows:!i.isHeightAuto,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:i.forPrint})};return n.dayMinWidth?this.renderHScrollLayout(o,s,a.colCnt,n.dayMinWidth):this.renderSimpleLayout(o,s)},t}(b),R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _.__extends(t,e),t.prototype.buildRenderRange=function(t,n,r){var i,a=this.props.dateEnv,o=e.prototype.buildRenderRange.call(this,t,n,r),s=o.start,l=o.end;if(/^(year|month)$/.test(n)&&(s=a.startOfWeek(s),i=a.startOfWeek(l),i.valueOf()!==l.valueOf()&&(l=y.addWeeks(i,1))),this.props.monthMode&&this.props.fixedWeekCount){var u=Math.ceil(y.diffWeeks(s,l));l=y.addWeeks(l,6-u)}return{start:s,end:l}},t}(y.DateProfileGenerator),L=y.createPlugin({initialView:"dayGridMonth",views:{dayGrid:{component:M,dateProfileGeneratorClass:R},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}});t.DayGridView=M,t.DayTable=P,t.DayTableSlicer=O,t.Table=I,t.TableView=b,t.buildDayTableModel=v,t["default"]=L},function(e,t,n){/*! 113 FullCalendar v5.11.3 114 Docs & License: https://fullcalendar.io/ 115 (c) 2022 Adam Shaw 116 */ 117"use strict";function r(e){var t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return I.createElement(I.ViewContextType.Consumer,null,function(n){if(!e.isLabeled)return I.createElement("td",{className:t.join(" "),"data-time":e.isoTimeStr});var r=n.dateEnv,a=n.options,o=n.viewApi,s=null==a.slotLabelFormat?R:Array.isArray(a.slotLabelFormat)?I.createFormatter(a.slotLabelFormat[0]):I.createFormatter(a.slotLabelFormat),l={level:0,time:e.time,date:r.toDate(e.date),view:o,text:r.format(e.date,s)};return I.createElement(I.RenderHook,{hookProps:l,classNames:a.slotLabelClassNames,content:a.slotLabelContent,defaultContent:i,didMount:a.slotLabelDidMount,willUnmount:a.slotLabelWillUnmount},function(n,r,i,a){return I.createElement("td",{ref:n,className:t.concat(r).join(" "),"data-time":e.isoTimeStr},I.createElement("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},I.createElement("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:i},a)))})})}function i(e){return e.text}function a(e){return e.text}function o(e,t){return t.map(function(t){return e[t.key]})}function s(e,t){var n,r=[];for(n=0;n<t;n+=1)r.push([]);if(e)for(n=0;n<e.length;n+=1)r[e[n].col].push(e[n]);return r}function l(e,t){var n=[];if(e){for(var r=0;r<t;r+=1)n[r]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var i=0,a=e.segs;i<a.length;i++){var o=a[i];n[o.col].segs.push(o)}}else for(var r=0;r<t;r+=1)n[r]=null;return n}function u(e){return e.shortText}
117function c(e,t,n){var r=new I.SegHierarchy;null!=t&&(r.strictOrder=t),null!=n&&(r.maxStackCnt=n);var i=r.addSegs(e),a=I.groupIntersectingEntries(i),o=d(r);o=m(o,1);var s=v(o);return{segRects:s,hiddenGroups:a}}function d(e){var t=e.entriesByLevel,n=y(function(e,t){return e+":"+t},function(r,i){var a=g(e,r,i),o=h(a,n),s=t[r][i];return[O.__assign(O.__assign({},s),{nextLevelNodes:o[0]}),s.thickness+o[1]]});return h(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}function h(e,t){if(!e)return[[],0];for(var n=e.level,r=e.lateralStart,i=e.lateralEnd,a=r,o=[];a<i;)o.push(t(n,a)),a+=1;return o.sort(p),[o.map(f),o[0][1]]}function p(e,t){return t[1]-e[1]}function f(e){return e[0]}function g(e,t,n){for(var r=e.levelCoords,i=e.entriesByLevel,a=i[t][n],o=r[t]+a.thickness,s=r.length,l=t;l<s&&r[l]<o;l+=1);for(;l<s;l+=1){for(var u=i[l],c=void 0,d=I.binarySearch(u,a.span.start,I.getEntrySpanEnd),h=d[0]+d[1],p=h;(c=u[p])&&c.span.start<a.span.end;)p+=1;if(h<p)return{level:l,lateralStart:h,lateralEnd:p}}return null}function m(e,t){var n=y(function(e,t,n){return I.buildEntryKey(e)},function(e,r,i){var a,o=e.nextLevelNodes,s=e.thickness,l=s+i,u=s/l,c=[];if(o.length)for(var d=0,h=o;d<h.length;d++){var p=h[d];if(void 0===a){var f=n(p,r,l);a=f[0],c.push(f[1])}else{var f=n(p,a,0);c.push(f[1])}}else a=t;var g=(a-r)*u;return[a-g,O.__assign(O.__assign({},e),{thickness:g,nextLevelNodes:c})]});return e.map(function(e){return n(e,0,0)[1]})}function v(e){function t(e,t,n){for(var i=0,a=0,o=e;a<o.length;a++){var s=o[a];i=Math.max(r(s,t,n),i)}return i}var n=[],r=y(function(e,t,n){return I.buildEntryKey(e)},function(e,r,i){var a=O.__assign(O.__assign({},e),{levelCoord:r,stackDepth:i,stackForward:0});return n.push(a),a.stackForward=t(e.nextLevelNodes,r+e.thickness,i+1)+1});return t(e,0,0),n}function y(e,t){var n={};return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=e.apply(void 0,r);return a in n?n[a]:n[a]=t.apply(void 0,r)}}function _(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=0);var i=[];if(n)for(var a=0;a<e.length;a+=1){var o=e[a],s=n.computeDateTop(o.start,t),l=Math.max(s+(r||0),n.computeDateTop(o.end,t));i.push({start:Math.round(s),end:Math.round(l)})}return i}function b(e,t,n,r){for(var i=[],a=[],o=0;o<e.length;o+=1){var s=t[o];s?i.push({index:o,thickness:1,span:s}):a.push(e[o])}for(var l=c(i,n,r),u=l.segRects,d=l.hiddenGroups,h=[],p=0,f=u;p<f.length;p++){var g=f[p];h.push({seg:e[g.index],rect:g})}for(var m=0,v=a;m<v.length;m++){var y=v[m];h.push({seg:y,rect:null})}return{segPlacements:h,hiddenGroups:d}}function T(e,t){var n=t.todayRange,r=t.nowDate,i=t.eventSelection,a=t.eventDrag,o=t.eventResize,s=(a?a.affectedInstances:null)||(o?o.affectedInstances:null)||{};return I.createElement(I.Fragment,null,e.map(function(e){var t=e.eventRange.instance.instanceId;return I.createElement("div",{key:t,style:{visibility:s[t]?"hidden":""}},I.createElement(z,O.__assign({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:t===i,isShort:!1},I.getSegMeta(e,n,r))))}))}function E(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}function S(e,t){return e.map(function(e){return t[e.index]})}function w(e,t){return t.map(function(t){return e[t.key]})}function C(e,t){var n=t||e,r=I.wholeDivideDurations(e,n);return null===r&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}function k(e,t,n){for(var r=[],i=0,a=e.headerDates;i<a.length;i++){var o=a[i];r.push({start:n.add(o,t.slotMinTime),end:n.add(o,t.slotMaxTime)})}return r}function D(e,t,n,r,i){for(var a=new Date(0),o=e,s=I.createDuration(0),l=n||x(r),u=[];I.asRoughMs(o)<I.asRoughMs(t);){var c=i.add(a,o),d=null!==I.wholeDivideDurations(s,l);u.push({date:c,time:o,key:c.toISOString(),isoTimeStr:I.formatIsoTimeString(c),isLabeled:d}),o=I.addDurations(o,r),s=I.addDurations(s,r)}return u}function x(e){var t,n,r;for(t=Q.length-1;t>=0;t-=1)if(n=I.createDuration(Q[t]),r=I.wholeDivideDurations(n,e),null!==r&&r>1)return n;return e}function A(e,t){var n=new I.DaySeriesModel(e.renderRange,t);return new I.DayTableModel(n,(!1))}Object.defineProperty(t,"__esModule",{value:!0});var I=n(70),O=n(66),P=n(72),M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O.__extends(t,e),t.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},t.prototype.getKeysForDateSpan=function(e){return e.allDay?["allDay"]:["timed"]},t.prototype.getKeysForEventDef=function(e){return e.allDay?I.hasBgRendering(e)?["timed","allDay"]:["allDay"]:["timed"]},t}(I.Splitter),R=I.createFormatter({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"}),L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O.__extends(t,e),t.prototype.render=function(){return this.props.slatMetas.map(function(e){return I.createElement("tr",{key:e.key},I.createElement(r,O.__assign({},e)))})},t}(I.BaseComponent),N=I.createFormatter({week:"short"}),U=5,H=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;
117return t.allDaySplitter=new M,t.headerElRef=I.createRef(),t.rootElRef=I.createRef(),t.scrollerElRef=I.createRef(),t.state={slatCoords:null},t.handleScrollTopRequest=function(e){var n=t.scrollerElRef.current;n&&(n.scrollTop=e)},t.renderHeadAxis=function(e,n){void 0===n&&(n="");var r=t.context.options,i=t.props.dateProfile,a=i.renderRange,o=I.diffDays(a.start,a.end),s=1===o?I.buildNavLinkAttrs(t.context,a.start,"week"):{};return r.weekNumbers&&"day"===e?I.createElement(I.WeekNumberRoot,{date:a.start,defaultFormat:N},function(e,t,r,i){return I.createElement("th",{ref:e,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(t).join(" ")},I.createElement("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:n}},I.createElement("a",O.__assign({ref:r,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},s),i)))}):I.createElement("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},I.createElement("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},t.renderTableRowAxis=function(e){var n=t.context,r=n.options,i=n.viewApi,o={text:r.allDayText,view:i};return I.createElement(I.RenderHook,{hookProps:o,classNames:r.allDayClassNames,content:r.allDayContent,defaultContent:a,didMount:r.allDayDidMount,willUnmount:r.allDayWillUnmount},function(t,n,r,i){return I.createElement("td",{ref:t,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(n).join(" ")},I.createElement("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(null==e?" fc-timegrid-axis-frame-liquid":""),style:{height:e}},I.createElement("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:r},i)))})},t.handleSlatCoords=function(e){t.setState({slatCoords:e})},t}return O.__extends(t,e),t.prototype.renderSimpleLayout=function(e,t,n){var r=this,i=r.context,a=r.props,o=[],s=I.getStickyHeaderDates(i.options);return e&&o.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(o.push({type:"body",key:"all-day",chunk:{content:t}}),o.push({type:"body",key:"all-day-divider",outerContent:I.createElement("tr",{role:"presentation",className:"fc-scrollgrid-section"},I.createElement("td",{className:"fc-timegrid-divider "+i.theme.getClass("tableCellShaded")}))})),o.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(i.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),I.createElement(I.ViewRoot,{viewSpec:i.viewSpec,elRef:this.rootElRef},function(e,t){return I.createElement("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},I.createElement(I.SimpleScrollGrid,{liquid:!a.isHeightAuto&&!a.forPrint,collapsibleWidth:a.forPrint,cols:[{width:"shrink"}],sections:o}))})},t.prototype.renderHScrollLayout=function(e,t,n,r,i,a,o){var s=this,l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");var u=this,c=u.context,d=u.props,h=!d.forPrint&&I.getStickyHeaderDates(c.options),p=!d.forPrint&&I.getStickyFooterScrollbar(c.options),f=[];e&&f.push({type:"header",key:"header",isSticky:h,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return I.createElement("tr",{role:"presentation"},s.renderHeadAxis("day",e.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(f.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return I.createElement("tr",{role:"presentation"},s.renderTableRowAxis(e.rowSyncHeights[0]))}},{key:"cols",content:t}]}),f.push({key:"all-day-divider",type:"body",outerContent:I.createElement("tr",{role:"presentation",className:"fc-scrollgrid-section"},I.createElement("td",{colSpan:2,className:"fc-timegrid-divider "+c.theme.getClass("tableCellShaded")}))}));var g=c.options.nowIndicator;return f.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(c.options.expandRows),chunks:[{key:"axis",content:function(e){return I.createElement("div",{className:"fc-timegrid-axis-chunk"},I.createElement("table",{"aria-hidden":!0,style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,I.createElement("tbody",null,I.createElement(L,{slatMetas:a}))),I.createElement("div",{className:"fc-timegrid-now-indicator-container"},I.createElement(I.NowTimer,{unit:g?"minute":"day"},function(e){var t=g&&o&&o.safeComputeTop(e);return"number"==typeof t?I.createElement(I.NowIndicatorRoot,{isAxis:!0,date:e},function(e,n,r,i){return I.createElement("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(n).join(" "),style:{to
117p:t}},i)}):null})))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),p&&f.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:I.renderScrollShim},{key:"cols",content:I.renderScrollShim}]}),I.createElement(I.ViewRoot,{viewSpec:c.viewSpec,elRef:this.rootElRef},function(e,t){return I.createElement("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},I.createElement(l,{liquid:!d.isHeightAuto&&!d.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:i}]}],sections:f}))})},t.prototype.getAllDayMaxEventProps=function(){var e=this.context.options,t=e.dayMaxEvents,n=e.dayMaxEventRows;return t!==!0&&n!==!0||(t=void 0,n=U),{dayMaxEvents:t,dayMaxEventRows:n}},t}(I.DateComponent),j=function(){function e(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}return e.prototype.safeComputeTop=function(e){var t=this.dateProfile;if(I.rangeContainsMarker(t.currentRange,e)){var n=I.startOfDay(e),r=e.valueOf()-n.valueOf();if(r>=I.asRoughMs(t.slotMinTime)&&r<I.asRoughMs(t.slotMaxTime))return this.computeTimeTop(I.createDuration(r))}return null},e.prototype.computeDateTop=function(e,t){return t||(t=I.startOfDay(e)),this.computeTimeTop(I.createDuration(e.valueOf()-t.valueOf()))},e.prototype.computeTimeTop=function(e){var t,n,r=this,i=r.positions,a=r.dateProfile,o=i.els.length,s=(e.milliseconds-I.asRoughMs(a.slotMinTime))/I.asRoughMs(this.slotDuration);return s=Math.max(0,s),s=Math.min(o,s),t=Math.floor(s),t=Math.min(t,o-1),n=s-t,i.tops[t]+i.getHeight(t)*n},e}(),B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O.__extends(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context,i=n.options,a=t.slatElRefs;return I.createElement("tbody",null,t.slatMetas.map(function(e,o){var s={time:e.time,date:n.dateEnv.toDate(e.date),view:n.viewApi},l=["fc-timegrid-slot","fc-timegrid-slot-lane",e.isLabeled?"":"fc-timegrid-slot-minor"];return I.createElement("tr",{key:e.key,ref:a.createRef(e.key)},t.axis&&I.createElement(r,O.__assign({},e)),I.createElement(I.RenderHook,{hookProps:s,classNames:i.slotLaneClassNames,content:i.slotLaneContent,didMount:i.slotLaneDidMount,willUnmount:i.slotLaneWillUnmount},function(t,n,r,i){return I.createElement("td",{ref:t,className:l.concat(n).join(" "),"data-time":e.isoTimeStr},i)}))}))},t}(I.BaseComponent),F=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=I.createRef(),t.slatElRefs=new I.RefMap,t}return O.__extends(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.context;return I.createElement("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},I.createElement("table",{"aria-hidden":!0,className:n.theme.getClass("table"),style:{minWidth:t.tableMinWidth,width:t.clientWidth,height:t.minHeight}},t.tableColGroupNode,I.createElement(B,{slatElRefs:this.slatElRefs,axis:t.axis,slatMetas:t.slatMetas})))},t.prototype.componentDidMount=function(){this.updateSizing()},t.prototype.componentDidUpdate=function(){this.updateSizing()},t.prototype.componentWillUnmount=function(){this.props.onCoords&&this.props.onCoords(null)},t.prototype.updateSizing=function(){var e=this,t=e.context,n=e.props;if(n.onCoords&&null!==n.clientWidth){var r=this.rootElRef.current;r.offsetHeight&&n.onCoords(new j(new I.PositionCache(this.rootElRef.current,o(this.slatElRefs.currentMap,n.slatMetas),(!1),(!0)),this.props.dateProfile,t.options.slotDuration))}},t}(I.BaseComponent),V=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=I.createRef(),t}return O.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props;return I.createElement(I.MoreLinkRoot,{allDayDate:null,moreCnt:t.hiddenSegs.length,allSegs:t.hiddenSegs,hiddenSegs:t.hiddenSegs,alignmentElRef:this.rootElRef,defaultContent:u,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,todayRange:t.todayRange,popoverContent:function(){return T(t.hiddenSegs,t)}},function(n,r,i,a,o,s,l,u){return I.createElement("a",{ref:function(t){I.setRef(n,t),I.setRef(e.rootElRef,t)},className:["fc-timegrid-more-link"].concat(r).join(" "),style:{to
117p:t.top,bottom:t.bottom},onClick:o,title:s,"aria-expanded":l,"aria-controls":u},I.createElement("div",{ref:i,className:"fc-timegrid-more-link-inner fc-sticky"},a))})},t}(I.BaseComponent),W=I.createFormatter({hour:"numeric",minute:"2-digit",meridiem:!1}),z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O.__extends(t,e),t.prototype.render=function(){var e=["fc-timegrid-event","fc-v-event"];return this.props.isShort&&e.push("fc-timegrid-event-short"),I.createElement(I.StandardEvent,O.__assign({},this.props,{defaultTimeFormat:W,extraClassNames:e}))},t}(I.BaseComponent),$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O.__extends(t,e),t.prototype.render=function(){var e=this.props;return I.createElement(I.DayCellContent,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraHookProps:e.extraHookProps},function(e,t){return t&&I.createElement("div",{className:"fc-timegrid-col-misc",ref:e},t)})},t}(I.BaseComponent),q=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sortEventSegs=I.memoize(I.sortEventSegs),t}return O.__extends(t,e),t.prototype.render=function(){var e=this,t=this,n=t.props,r=t.context,i=r.options.selectMirror,a=n.eventDrag&&n.eventDrag.segs||n.eventResize&&n.eventResize.segs||i&&n.dateSelectionSegs||[],o=n.eventDrag&&n.eventDrag.affectedInstances||n.eventResize&&n.eventResize.affectedInstances||{},s=this.sortEventSegs(n.fgEventSegs,r.options.eventOrder);return I.createElement(I.DayCellRoot,{elRef:n.elRef,date:n.date,dateProfile:n.dateProfile,todayRange:n.todayRange,extraHookProps:n.extraHookProps},function(t,r,l){return I.createElement("td",O.__assign({ref:t,role:"gridcell",className:["fc-timegrid-col"].concat(r,n.extraClassNames||[]).join(" ")},l,n.extraDataAttrs),I.createElement("div",{className:"fc-timegrid-col-frame"},I.createElement("div",{className:"fc-timegrid-col-bg"},e.renderFillSegs(n.businessHourSegs,"non-business"),e.renderFillSegs(n.bgEventSegs,"bg-event"),e.renderFillSegs(n.dateSelectionSegs,"highlight")),I.createElement("div",{className:"fc-timegrid-col-events"},e.renderFgSegs(s,o,!1,!1,!1)),I.createElement("div",{className:"fc-timegrid-col-events"},e.renderFgSegs(a,{},Boolean(n.eventDrag),Boolean(n.eventResize),Boolean(i))),I.createElement("div",{className:"fc-timegrid-now-indicator-container"},e.renderNowIndicator(n.nowIndicatorSegs)),I.createElement($,{date:n.date,dateProfile:n.dateProfile,todayRange:n.todayRange,extraHookProps:n.extraHookProps})))})},t.prototype.renderFgSegs=function(e,t,n,r,i){var a=this.props;return a.forPrint?T(e,a):this.renderPositionedFgSegs(e,t,n,r,i)},t.prototype.renderPositionedFgSegs=function(e,t,n,r,i){var a=this,o=this.context.options,s=o.eventMaxStack,l=o.eventShortHeight,u=o.eventOrderStrict,c=o.eventMinHeight,d=this.props,h=d.date,p=d.slatCoords,f=d.eventSelection,g=d.todayRange,m=d.nowDate,v=n||r||i,y=_(e,h,p,c),T=b(e,y,u,s),S=T.segPlacements,w=T.hiddenGroups;return I.createElement(I.Fragment,null,this.renderHiddenGroups(w,e),S.map(function(e){var o=e.seg,s=e.rect,u=o.eventRange.instance.instanceId,c=v||Boolean(!t[u]&&s),d=E(s&&s.span),h=!v&&s?a.computeSegHStyle(s):{left:0,right:0},p=Boolean(s)&&s.stackForward>0,y=Boolean(s)&&s.span.end-s.span.start<l;return I.createElement("div",{className:"fc-timegrid-event-harness"+(p?" fc-timegrid-event-harness-inset":""),key:u,style:O.__assign(O.__assign({visibility:c?"":"hidden"},d),h)},I.createElement(z,O.__assign({seg:o,isDragging:n,isResizing:r,isDateSelecting:i,isSelected:u===f,isShort:y},I.getSegMeta(o,g,m))))}))},t.prototype.renderHiddenGroups=function(e,t){var n=this.props,r=n.extraDateSpan,i=n.dateProfile,a=n.todayRange,o=n.nowDate,s=n.eventSelection,l=n.eventDrag,u=n.eventResize;return I.createElement(I.Fragment,null,e.map(function(e){var n=E(e.span),c=S(e.entries,t);return I.createElement(V,{key:I.buildIsoString(I.computeEarliestSegStart(c)),hiddenSegs:c,top:n.top,bottom:n.bottom,extraDateSpan:r,dateProfile:i,todayRange:a,nowDate:o,eventSelection:s,eventDrag:l,eventResize:u})}))},t.prototype.renderFillSegs=function(e,t){var n=this,r=n.props,i=n.context,a=_(e,r.date,r.slatCoords,i.options.eventMinHeight),o=a.map(function(n,i){var a=e[i];return I.createElement("div",{key:I.buildEventRangeKey(a.eventRange),className:"fc-timegrid-bg-harness",style:E(n)},"bg-event"===t?I.createElement(I.BgEvent,O.__assign({seg:a},I.getSegMeta(a,r.todayRange,r.nowDate))):I.renderFill(t))});return I.createElement(I.Fragment,null,o)},t.prototype.renderNowIndicator=function(e){var t=this.props,n=t.slatCoords,r=t.date;return n?e.map(function(e,t){return I.createElement(I.NowIndicatorRoot,{isAxis:!1,date:r,key:t},function(t,i,a,o){return I.createElement("div",{ref:t,className:["fc-timegrid-now-indicator-line"].concat(i).join(" "),style:{to
117p:n.computeDateTop(e.start,r)}},o)})}):null},t.prototype.computeSegHStyle=function(e){var t,n,r=this.context,i=r.isRtl,a=r.options,o=a.slotEventOverlap,s=e.levelCoord,l=e.levelCoord+e.thickness;o&&(l=Math.min(1,s+2*(l-s))),i?(t=1-l,n=s):(t=s,n=1-l);var u={zIndex:e.stackDepth+1,left:100*t+"%",right:100*n+"%"};return o&&!e.stackForward&&(u[i?"marginLeft":"marginRight"]=20),u},t}(I.BaseComponent),G=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitFgEventSegs=I.memoize(s),t.splitBgEventSegs=I.memoize(s),t.splitBusinessHourSegs=I.memoize(s),t.splitNowIndicatorSegs=I.memoize(s),t.splitDateSelectionSegs=I.memoize(s),t.splitEventDrag=I.memoize(l),t.splitEventResize=I.memoize(l),t.rootElRef=I.createRef(),t.cellElRefs=new I.RefMap,t}return O.__extends(t,e),t.prototype.render=function(){var e=this,t=this,n=t.props,r=t.context,i=r.options.nowIndicator&&n.slatCoords&&n.slatCoords.safeComputeTop(n.nowDate),a=n.cells.length,o=this.splitFgEventSegs(n.fgEventSegs,a),s=this.splitBgEventSegs(n.bgEventSegs,a),l=this.splitBusinessHourSegs(n.businessHourSegs,a),u=this.splitNowIndicatorSegs(n.nowIndicatorSegs,a),c=this.splitDateSelectionSegs(n.dateSelectionSegs,a),d=this.splitEventDrag(n.eventDrag,a),h=this.splitEventResize(n.eventResize,a);return I.createElement("div",{className:"fc-timegrid-cols",ref:this.rootElRef},I.createElement("table",{role:"presentation",style:{minWidth:n.tableMinWidth,width:n.clientWidth}},n.tableColGroupNode,I.createElement("tbody",{role:"presentation"},I.createElement("tr",{role:"row"},n.axis&&I.createElement("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},I.createElement("div",{className:"fc-timegrid-col-frame"},I.createElement("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof i&&I.createElement(I.NowIndicatorRoot,{isAxis:!0,date:n.nowDate},function(e,t,n,r){return I.createElement("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(t).join(" "),style:{top:i}},r)})))),n.cells.map(function(t,r){return I.createElement(q,{key:t.key,elRef:e.cellElRefs.createRef(t.key),dateProfile:n.dateProfile,date:t.date,nowDate:n.nowDate,todayRange:n.todayRange,extraHookProps:t.extraHookProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,fgEventSegs:o[r],bgEventSegs:s[r],businessHourSegs:l[r],nowIndicatorSegs:u[r],dateSelectionSegs:c[r],eventDrag:d[r],eventResize:h[r],slatCoords:n.slatCoords,eventSelection:n.eventSelection,forPrint:n.forPrint})})))))},t.prototype.componentDidMount=function(){this.updateCoords()},t.prototype.componentDidUpdate=function(){this.updateCoords()},t.prototype.updateCoords=function(){var e=this.props;e.onColCoords&&null!==e.clientWidth&&e.onColCoords(new I.PositionCache(this.rootElRef.current,w(this.cellElRefs.currentMap,e.cells),(!0),(!1)))},t}(I.BaseComponent),Y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processSlotOptions=I.memoize(C),t.state={slatCoords:null},t.handleRootEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t.handleScrollRequest=function(e){var n=t.props.onScrollTopRequest,r=t.state.slatCoords;if(n&&r){if(e.time){var i=r.computeTimeTop(e.time);i=Math.ceil(i),i&&(i+=1),n(i)}return!0}return!1},t.handleColCoords=function(e){t.colCoords=e},t.handleSlatCoords=function(e){t.setState({slatCoords:e}),t.props.onSlatCoords&&t.props.onSlatCoords(e)},t}return O.__extends(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.state;return I.createElement("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},I.createElement(F,{axis:t.axis,dateProfile:t.dateProfile,slatMetas:t.slatMetas,clientWidth:t.clientWidth,minHeight:t.expandRows?t.clientHeight:"",tableMinWidth:t.tableMinWidth,tableColGroupNode:t.axis?t.tableColGroupNode:null,onCoords:this.handleSlatCoords}),I.createElement(G,{cells:t.cells,axis:t.axis,dateProfile:t.dateProfile,businessHourSegs:t.businessHourSegs,bgEventSegs:t.bgEventSegs,fgEventSegs:t.fgEventSegs,dateSelectionSegs:t.dateSelectionSegs,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,todayRange:t.todayRange,nowDate:t.nowDate,
117nowIndicatorSegs:t.nowIndicatorSegs,clientWidth:t.clientWidth,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,slatCoords:n.slatCoords,onColCoords:this.handleColCoords,forPrint:t.forPrint}))},t.prototype.componentDidMount=function(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},t.prototype.componentDidUpdate=function(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)},t.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},t.prototype.queryHit=function(e,t){var n=this.context,r=n.dateEnv,i=n.options,a=this.colCoords,o=this.props.dateProfile,s=this.state.slatCoords,l=this.processSlotOptions(this.props.slotDuration,i.snapDuration),u=l.snapDuration,c=l.snapsPerSlot,d=a.leftToIndex(e),h=s.positions.topToIndex(t);if(null!=d&&null!=h){var p=this.props.cells[d],f=s.positions.tops[h],g=s.positions.getHeight(h),m=(t-f)/g,v=Math.floor(m*c),y=h*c+v,_=this.props.cells[d].date,b=I.addDurations(o.slotMinTime,I.multiplyDuration(u,y)),T=r.add(_,b),E=r.add(T,u);return{dateProfile:o,dateSpan:O.__assign({range:{start:T,end:E},allDay:!1},p.extraDateSpan),dayEl:a.els[d],rect:{left:a.lefts[d],right:a.rights[d],top:f,bottom:f+g},layer:0}}return null},t}(I.DateComponent),X=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return O.__extends(t,e),t.prototype.sliceRange=function(e,t){for(var n=[],r=0;r<t.length;r+=1){var i=I.intersectRanges(e,t[r]);i&&n.push({start:i.start,end:i.end,isStart:i.start.valueOf()===e.start.valueOf(),isEnd:i.end.valueOf()===e.end.valueOf(),col:r})}return n},t}(I.Slicer),K=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayRanges=I.memoize(k),t.slicer=new X,t.timeColsRef=I.createRef(),t}return O.__extends(t,e),t.prototype.render=function(){var e=this,t=this,n=t.props,r=t.context,i=n.dateProfile,a=n.dayTableModel,o=r.options.nowIndicator,s=this.buildDayRanges(a,i,r.dateEnv);return I.createElement(I.NowTimer,{unit:o?"minute":"day"},function(t,l){return I.createElement(Y,O.__assign({ref:e.timeColsRef},e.slicer.sliceProps(n,i,null,r,s),{forPrint:n.forPrint,axis:n.axis,dateProfile:i,slatMetas:n.slatMetas,slotDuration:n.slotDuration,cells:a.cells[0],tableColGroupNode:n.tableColGroupNode,tableMinWidth:n.tableMinWidth,clientWidth:n.clientWidth,clientHeight:n.clientHeight,expandRows:n.expandRows,nowDate:t,nowIndicatorSegs:o&&e.slicer.sliceNowDate(t,r,s),todayRange:l,onScrollTopRequest:n.onScrollTopRequest,onSlatCoords:n.onSlatCoords}))})},t}(I.DateComponent),Q=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}],Z=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildTimeColsModel=I.memoize(A),t.buildSlatMetas=I.memoize(D),t}return O.__extends(t,e),t.prototype.render=function(){var e=this,t=this.context,n=t.options,r=t.dateEnv,i=t.dateProfileGenerator,a=this.props,o=a.dateProfile,s=this.buildTimeColsModel(o,i),l=this.allDaySplitter.splitProps(a),u=this.buildSlatMetas(o.slotMinTime,o.slotMaxTime,n.slotLabelInterval,n.slotDuration,r),c=n.dayMinWidth,d=!c,h=c,p=n.dayHeaders&&I.createElement(I.DayHeader,{dates:s.headerDates,dateProfile:o,datesRepDistinctDays:!0,renderIntro:d?this.renderHeadAxis:null}),f=n.allDaySlot!==!1&&function(t){return I.createElement(P.DayTable,O.__assign({},l.allDay,{dateProfile:o,dayTableModel:s,nextDayThreshold:n.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:d?e.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:a.forPrint},e.getAllDayMaxEventProps()))},g=function(t){return I.createElement(K,O.__assign({},l.timed,{dayTableModel:s,dateProfile:o,axis:d,slotDuration:n.slotDuration,slatMetas:u,forPrint:a.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:e.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:e.handleScrollTopRequest}))};return h?this.renderHScrollLayout(p,f,g,s.colCnt,c,u,this.state.slatCoords):this.renderSimpleLayout(p,f,g)},t}(H),J={allDaySlot:Boolean},ee=I.createPlugin({initialView:"timeGridWeek",optionRefiners:J,views:{timeGrid:{component:Z,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});t.DayTimeCols=K,t.DayTimeColsSlicer=X,t.DayTimeColsView=Z,t.TimeCols=Y,t.TimeColsSlatsCoords=j,t.TimeColsView=H,t.buildDayRanges=k,t.buildSlatMetas=D,t.buildTimeColsModel=A,t["default"]=ee},function(e,t,n){/*! 118 FullCalendar v5.11.3 119 Docs & License: https://fullcalendar.io/ 120 (c) 2022 Adam Shaw 121 */ 122"use strict";function r(e){return 0===e.button&&!e.ctrlKey}function i(){E+=1,setTimeout(function(){E-=1},b.config.touchMouseIgnoreWait)}function a(){S+=1,1===S&&window.addEventListener("touchmove",s,{passive:!1})}function o(){S-=1,S||window.removeEventListener("touchmove",s,{passive:!1})}function s(e){w&&e.preventDefault()}function l(e){var t=e.tagName;return"HTML"===t||"BODY"===t}function u(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&b.isDateSpansEqual(e.dateSpan,t.dateSpan)}function c(e,t){for(var n={},r=0,i=t.pluginHooks.datePointTransforms;r<i.length;r++){var a=i[r];T.__assign(n,a(e,t))}return T.__assign(n,d(e,t.dateEnv)),n}function d(e,t){return{date:t.toDate(e.range.start),dateStr:t.formatIso(e.range.start,{omitTime:e.allDay}),allDay:e.allDay}}function h(e){var t=e.context.options,n=t.selectLongPressDelay;return null==n&&(n=t.longPressDelay),n}function p(e,t,n){var r=e.dateSpan,i=t.dateSpan,a=[r.range.start,r.range.end,i.range.start,i.range.end];a.sort(b.compareNumbers);for(var o={},s=0,l=n;s<l.length;s++){var u=l[s],c=u(e,t);if(c===!1)return null;c&&T.__assign(o,c)}return o.range={start:a[0],end:a[3]},o.allDay=r.allDay,o}function f(e,t,n){var r=e.dateSpan,i=t.dateSpan,a=r.range.start,o=i.range.start,s={};r.allDay!==i.allDay&&(s.allDay=i.allDay,s.hasEnd=t.context.options.allDayMaintainDuration,i.allDay&&(a=b.startOfDay(a)));var l=b.diffDates(a,o,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);l.milliseconds&&(s.allDay=!1);for(var u={datesDelta:l,standardProps:s},c=0,d=n;c<d.length;c++){var h=d[c];h(u,e,t)}return u}function g(e){var t=e.context.options,n=t.eventLongPressDelay;return null==n&&(n=t.longPressDelay),n}function m(e,t,n,r){var i=e.context.dateEnv,a=e.dateSpan.range.start,o=t.dateSpan.range.start,s=b.diffDates(a,o,i,e.largeUnit);if(n){if(i.add(r.start,s)<r.end)return{startDelta:s}}else if(i.add(r.end,s)>r.start)return{endDelta:s};return null}function v(e,t,n){for(var r=T.__assign({},t.leftoverProps),i=0,a=n.pluginHooks.externalDefTransforms;i<a.length;i++){var o=a[i];T.__assign(r,o(e,t))}var s=b.refineEventDef(r,n),l=s.refined,u=s.extra,c=b.parseEventDef(l,u,t.sourceId,e.allDay,n.options.forceEventDuration||Boolean(t.duration),n),d=e.range.start;e.allDay&&t.startTime&&(d=n.dateEnv.add(d,t.startTime));var h=t.duration?n.dateEnv.add(d,t.duration):b.getDefaultEventEnd(e.allDay,d,n),p=b.createEventInstance(c.defId,{start:d,end:h});return{def:c,instance:p}}function y(e){var t=_(e,"event"),n=t?JSON.parse(t):{create:!1};return b.parseDragMeta(n)}function _(e,t){var n=b.config.dataAttrPrefix,r=(n?n+"-":"")+t;return e.getAttribute("data-"+r)||""}
122Object.defineProperty(t,"__esModule",{value:!0});var b=n(70),T=n(66);b.config.touchMouseIgnoreWait=500;var E=0,S=0,w=!1,C=function(){function e(e){var t=this;this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=function(e){if(!t.shouldIgnoreMouse()&&r(e)&&t.tryStart(e)){var n=t.createEventFromMouse(e,!0);t.emitter.trigger("pointerdown",n),t.initScrollWatch(n),t.shouldIgnoreMove||document.addEventListener("mousemove",t.handleMouseMove),document.addEventListener("mouseup",t.handleMouseUp)}},this.handleMouseMove=function(e){var n=t.createEventFromMouse(e);t.recordCoords(n),t.emitter.trigger("pointermove",n)},this.handleMouseUp=function(e){document.removeEventListener("mousemove",t.handleMouseMove),document.removeEventListener("mouseup",t.handleMouseUp),t.emitter.trigger("pointerup",t.createEventFromMouse(e)),t.cleanup()},this.handleTouchStart=function(e){if(t.tryStart(e)){t.isTouchDragging=!0;var n=t.createEventFromTouch(e,!0);t.emitter.trigger("pointerdown",n),t.initScrollWatch(n);var r=e.target;t.shouldIgnoreMove||r.addEventListener("touchmove",t.handleTouchMove),r.addEventListener("touchend",t.handleTouchEnd),r.addEventListener("touchcancel",t.handleTouchEnd),window.addEventListener("scroll",t.handleTouchScroll,!0)}},this.handleTouchMove=function(e){var n=t.createEventFromTouch(e);t.recordCoords(n),t.emitter.trigger("pointermove",n)},this.handleTouchEnd=function(e){if(t.isDragging){var n=e.target;n.removeEventListener("touchmove",t.handleTouchMove),n.removeEventListener("touchend",t.handleTouchEnd),n.removeEventListener("touchcancel",t.handleTouchEnd),window.removeEventListener("scroll",t.handleTouchScroll,!0),t.emitter.trigger("pointerup",t.createEventFromTouch(e)),t.cleanup(),t.isTouchDragging=!1,i()}},this.handleTouchScroll=function(){t.wasTouchScroll=!0},this.handleScroll=function(e){if(!t.shouldIgnoreMove){var n=window.pageXOffset-t.prevScrollX+t.prevPageX,r=window.pageYOffset-t.prevScrollY+t.prevPageY;t.emitter.trigger("pointermove",{origEvent:e,isTouch:t.isTouchDragging,subjectEl:t.subjectEl,pageX:n,pageY:r,deltaX:n-t.origPageX,deltaY:r-t.origPageY})}},this.containerEl=e,this.emitter=new b.Emitter,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),a()}return e.prototype.destroy=function(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),o()},e.prototype.tryStart=function(e){var t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!b.elementClosest(n,this.handleSelector))&&(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0)},e.prototype.cleanup=function(){w=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()},e.prototype.querySubjectEl=function(e){return this.selector?b.elementClosest(e.target,this.selector):this.containerEl},e.prototype.shouldIgnoreMouse=function(){return E||this.isTouchDragging},e.prototype.cancelTouchScroll=function(){this.isDragging&&(w=!0)},e.prototype.initScrollWatch=function(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))},e.prototype.recordCoords=function(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)},e.prototype.destroyScrollWatch=function(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)},e.prototype.createEventFromMouse=function(e,t){var n=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}},e.prototype.createEventFromTouch=function(e,t){var n,r,i=e.touches,a=0,o=0;return i&&i.length?(n=i[0].pageX,r=i[0].pageY):(n=e.pageX,r=e.pageY),t?(this.origPageX=n,this.origPageY=r):(a=n-this.origPageX,o=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:r,deltaX:a,deltaY:o}},e}(),k=function(){function e(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}return e.prototype.start=function(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.pageXOffset,this.origScreenY=n-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()},e.prototype.handleMove=function(e,t){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=t-window.pageYOffset-this.origScreenY,this.updateElPosition()},e.prototype.setIsVisible=function(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)},e.prototype.stop=function(e,t){var n=this,r=function(){n.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(r,this.revertDuration):setTimeout(r,0)},e.prototype.doRevertAnimation=function(e,t){var n=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",b.applyStyle(n,{left:r.left,top:r.top}),b.whenTransitionDone(n,function(){n.style.transition="",e()})},e.prototype.cleanup=function(){this.mirrorEl&&(b.removeElement(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null},e.prototype.updateElPosition=function(){this.sourceEl&&this.isVisible&&b.applyStyle(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})},e.prototype.getMirrorEl=function(){var e=this.sourceElRect,t=this.mirrorEl;return t||(t=this.mirrorEl=this.sourceEl.cloneNode(!0),t.classList.add("fc-unselectable"),t.classList.add("fc-event-dragging"),b.applyStyle(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t},e}(),D=function(e){function t(t,n){var r=e.call(this)||this;
122return r.handleScroll=function(){r.scrollTop=r.scrollController.getScrollTop(),r.scrollLeft=r.scrollController.getScrollLeft(),r.handleScrollChange()},r.scrollController=t,r.doesListening=n,r.scrollTop=r.origScrollTop=t.getScrollTop(),r.scrollLeft=r.origScrollLeft=t.getScrollLeft(),r.scrollWidth=t.getScrollWidth(),r.scrollHeight=t.getScrollHeight(),r.clientWidth=t.getClientWidth(),r.clientHeight=t.getClientHeight(),r.clientRect=r.computeClientRect(),r.doesListening&&r.getEventTarget().addEventListener("scroll",r.handleScroll),r}return T.__extends(t,e),t.prototype.destroy=function(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)},t.prototype.getScrollTop=function(){return this.scrollTop},t.prototype.getScrollLeft=function(){return this.scrollLeft},t.prototype.setScrollTop=function(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())},t.prototype.setScrollLeft=function(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())},t.prototype.getClientWidth=function(){return this.clientWidth},t.prototype.getClientHeight=function(){return this.clientHeight},t.prototype.getScrollWidth=function(){return this.scrollWidth},t.prototype.getScrollHeight=function(){return this.scrollHeight},t.prototype.handleScrollChange=function(){},t}(b.ScrollController),x=function(e){function t(t,n){return e.call(this,new b.ElementScrollController(t),n)||this}return T.__extends(t,e),t.prototype.getEventTarget=function(){return this.scrollController.el},t.prototype.computeClientRect=function(){return b.computeInnerRect(this.scrollController.el)},t}(D),A=function(e){function t(t){return e.call(this,new b.WindowScrollController,t)||this}return T.__extends(t,e),t.prototype.getEventTarget=function(){return window},t.prototype.computeClientRect=function(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}},t.prototype.handleScrollChange=function(){this.clientRect=this.computeClientRect()},t}(D),I="function"==typeof performance?performance.now:Date.now,O=function(){function e(){var e=this;this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=function(){if(e.isAnimating){var t=e.computeBestEdge(e.pointerScreenX+window.pageXOffset,e.pointerScreenY+window.pageYOffset);if(t){var n=I();e.handleSide(t,(n-e.msSinceRequest)/1e3),e.requestAnimation(n)}else e.isAnimating=!1}}}return e.prototype.start=function(e,t,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))},e.prototype.handleMove=function(e,t){if(this.isEnabled){var n=e-window.pageXOffset,r=t-window.pageYOffset,i=null===this.pointerScreenY?0:r-this.pointerScreenY,a=null===this.pointerScreenX?0:n-this.pointerScreenX;i<0?this.everMovedUp=!0:i>0&&(this.everMovedDown=!0),a<0?this.everMovedLeft=!0:a>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(I()))}},e.prototype.stop=function(){if(this.isEnabled){this.isAnimating=!1;for(var e=0,t=this.scrollCaches;e<t.length;e++){var n=t[e];n.destroy()}this.scrollCaches=null}},e.prototype.requestAnimation=function(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)},e.prototype.handleSide=function(e,t){var n=e.scrollCache,r=this.edgeThreshold,i=r-e.distance,a=i*i/(r*r)*this.maxVelocity*t,o=1;switch(e.name){case"left":o=-1;case"right":n.setScrollLeft(n.getScrollLeft()+a*o);break;case"top":o=-1;case"bottom":n.setScrollTop(n.getScrollTop()+a*o)}},e.prototype.computeBestEdge=function(e,t){for(var n=this.edgeThreshold,r=null,i=this.scrollCaches||[],a=0,o=i;a<o.length;a++){var s=o[a],l=s.clientRect,u=e-l.left,c=l.right-e,d=t-l.top,h=l.bottom-t;u>
122=0&&c>=0&&d>=0&&h>=0&&(d<=n&&this.everMovedUp&&s.canScrollUp()&&(!r||r.distance>d)&&(r={scrollCache:s,name:"top",distance:d}),h<=n&&this.everMovedDown&&s.canScrollDown()&&(!r||r.distance>h)&&(r={scrollCache:s,name:"bottom",distance:h}),u<=n&&this.everMovedLeft&&s.canScrollLeft()&&(!r||r.distance>u)&&(r={scrollCache:s,name:"left",distance:u}),c<=n&&this.everMovedRight&&s.canScrollRight()&&(!r||r.distance>c)&&(r={scrollCache:s,name:"right",distance:c}))}return r},e.prototype.buildCaches=function(e){return this.queryScrollEls(e).map(function(e){return e===window?new A((!1)):new x(e,(!1))})},e.prototype.queryScrollEls=function(e){for(var t=[],n=0,r=this.scrollQuery;n<r.length;n++){var i=r[n];"object"==typeof i?t.push(i):t.push.apply(t,Array.prototype.slice.call(b.getElRoot(e).querySelectorAll(i)))}return t},e}(),P=function(e){function t(t,n){var r=e.call(this,t)||this;r.containerEl=t,r.delay=null,r.minDistance=0,r.touchScrollAllowed=!0,r.mirrorNeedsRevert=!1,r.isInteracting=!1,r.isDragging=!1,r.isDelayEnded=!1,r.isDistanceSurpassed=!1,r.delayTimeoutId=null,r.onPointerDown=function(e){r.isDragging||(r.isInteracting=!0,r.isDelayEnded=!1,r.isDistanceSurpassed=!1,b.preventSelection(document.body),b.preventContextMenu(document.body),e.isTouch||e.origEvent.preventDefault(),r.emitter.trigger("pointerdown",e),r.isInteracting&&!r.pointer.shouldIgnoreMove&&(r.mirror.setIsVisible(!1),r.mirror.start(e.subjectEl,e.pageX,e.pageY),r.startDelay(e),r.minDistance||r.handleDistanceSurpassed(e)))},r.onPointerMove=function(e){if(r.isInteracting){if(r.emitter.trigger("pointermove",e),!r.isDistanceSurpassed){var t=r.minDistance,n=void 0,i=e.deltaX,a=e.deltaY;n=i*i+a*a,n>=t*t&&r.handleDistanceSurpassed(e)}r.isDragging&&("scroll"!==e.origEvent.type&&(r.mirror.handleMove(e.pageX,e.pageY),r.autoScroller.handleMove(e.pageX,e.pageY)),r.emitter.trigger("dragmove",e))}},r.onPointerUp=function(e){r.isInteracting&&(r.isInteracting=!1,b.allowSelection(document.body),b.allowContextMenu(document.body),r.emitter.trigger("pointerup",e),r.isDragging&&(r.autoScroller.stop(),r.tryStopDrag(e)),r.delayTimeoutId&&(clearTimeout(r.delayTimeoutId),r.delayTimeoutId=null))};var i=r.pointer=new C(t);return i.emitter.on("pointerdown",r.onPointerDown),i.emitter.on("pointermove",r.onPointerMove),i.emitter.on("pointerup",r.onPointerUp),n&&(i.selector=n),r.mirror=new k,r.autoScroller=new O,r}return T.__extends(t,e),t.prototype.destroy=function(){this.pointer.destroy(),this.onPointerUp({})},t.prototype.startDelay=function(e){var t=this;"number"==typeof this.delay?this.delayTimeoutId=setTimeout(function(){t.delayTimeoutId=null,t.handleDelayEnd(e)},this.delay):this.handleDelayEnd(e)},t.prototype.handleDelayEnd=function(e){this.isDelayEnded=!0,this.tryStartDrag(e)},t.prototype.handleDistanceSurpassed=function(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)},t.prototype.tryStartDrag=function(e){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),this.touchScrollAllowed===!1&&this.pointer.cancelTouchScroll()))},t.prototype.tryStopDrag=function(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))},t.prototype.stopDrag=function(e){this.isDragging=!1,this.emitter.trigger("dragend",e)},t.prototype.setIgnoreMove=function(e){this.pointer.shouldIgnoreMove=e},t.prototype.setMirrorIsVisible=function(e){this.mirror.setIsVisible(e)},t.prototype.setMirrorNeedsRevert=function(e){this.mirrorNeedsRevert=e},t.prototype.setAutoScrollEnabled=function(e){this.autoScroller.isEnabled=e},t}(b.ElementDragging),M=function(){function e(e){this.origRect=b.computeRect(e),this.scrollCaches=b.getClippingParents(e).map(function(e){return new x(e,(!0))})}return e.prototype.destroy=function(){for(var e=0,t=this.scrollCaches;e<t.length;e++){var n=t[e];n.destroy()}},e.prototype.computeLeft=function(){for(var e=this.origRect.left,t=0,n=this.scrollCaches;t<n.length;t++){var r=n[t];e+=r.origScrollLeft-r.getScrollLeft()}return e},e.prototype.computeTop=function(){for(var e=this.origRect.top,t=0,n=this.scrollCaches;t<n.length;t++){var r=n[t];e+=r.origScrollTop-r.getScrollTop()}return e},e.prototype.isWithinClipping=function(e,t){for(var n={left:e,top:t},r=0,i=this.scrollCaches;r<i.length;r++){var a=i[r];if(!l(a.getEventTarget())&&!b.pointInsideRect(n,a.clientRect))return!1}return!0},e}(),R=function(){function e(e,t){var n=this;this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=function(e){var t=n.dragging;n.initialHit=null,n.movingHit=null,n.finalHit=null,n.prepareHits(),n.processFirstCoord(e),n.initialHit||!n.requireInitial?(t.setIgnoreMove(!1),n.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=function(e){n.emitter.trigger("dragstart",e),n.handleMove(e,!0)},this.handleDragMove=function(e){n.emitter.trigger("dragmove",e),n.handleMove(e)},this.handlePointerUp=function(e){n.releaseHits(),n.emitter.trigger("pointerup",e)},this.handleDragEnd=function(e){n.movingHit&&n.emitter.trigger("hitupdate",null,!0,e),n.finalHit=n.movingHit,n.movingHit=null,n.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new b.Emitter}
122return e.prototype.processFirstCoord=function(e){var t,n={left:e.pageX,top:e.pageY},r=n,i=e.subjectEl;i instanceof HTMLElement&&(t=b.computeRect(i),r=b.constrainPoint(r,t));var a=this.initialHit=this.queryHitForOffset(r.left,r.top);if(a){if(this.useSubjectCenter&&t){var o=b.intersectRects(t,a.rect);o&&(r=b.getRectCenter(o))}this.coordAdjust=b.diffPoints(r,n)}else this.coordAdjust={left:0,top:0}},e.prototype.handleMove=function(e,t){var n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);!t&&u(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))},e.prototype.prepareHits=function(){this.offsetTrackers=b.mapHash(this.droppableStore,function(e){return e.component.prepareHits(),new M(e.el)})},e.prototype.releaseHits=function(){var e=this.offsetTrackers;for(var t in e)e[t].destroy();this.offsetTrackers={}},e.prototype.queryHitForOffset=function(e,t){var n=this,r=n.droppableStore,i=n.offsetTrackers,a=null;for(var o in r){var s=r[o].component,l=i[o];if(l&&l.isWithinClipping(e,t)){var u=l.computeLeft(),c=l.computeTop(),d=e-u,h=t-c,p=l.origRect,f=p.right-p.left,g=p.bottom-p.top;if(d>=0&&d<f&&h>=0&&h<g){var m=s.queryHit(d,h,f,g);m&&b.rangeContainsRange(m.dateProfile.activeRange,m.dateSpan.range)&&(!a||m.layer>a.layer)&&(m.componentId=o,m.context=s.context,m.rect.left+=u,m.rect.right+=u,m.rect.top+=c,m.rect.bottom+=c,a=m)}}}return a},e}(),L=function(e){function t(t){var n=e.call(this,t)||this;n.handlePointerDown=function(e){var t=n.dragging,r=e.origEvent.target;t.setIgnoreMove(!n.component.isValidDateDownEl(r))},n.handleDragEnd=function(e){var t=n.component,r=n.dragging.pointer;if(!r.wasTouchScroll){var i=n.hitDragging,a=i.initialHit,o=i.finalHit;if(a&&o&&u(a,o)){var s=t.context,l=T.__assign(T.__assign({},c(a.dateSpan,s)),{dayEl:a.dayEl,jsEvent:e.origEvent,view:s.viewApi||s.calendarApi.view});s.emitter.trigger("dateClick",l)}}},n.dragging=new P(t.el),n.dragging.autoScroller.isEnabled=!1;var r=n.hitDragging=new R(n.dragging,b.interactionSettingsToStore(t));return r.emitter.on("pointerdown",n.handlePointerDown),r.emitter.on("dragend",n.handleDragEnd),n}return T.__extends(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t}(b.Interaction),N=function(e){function t(t){var n=e.call(this,t)||this;n.dragSelection=null,n.handlePointerDown=function(e){var t=n,r=t.component,i=t.dragging,a=r.context.options,o=a.selectable&&r.isValidDateDownEl(e.origEvent.target);i.setIgnoreMove(!o),i.delay=e.isTouch?h(r):null},n.handleDragStart=function(e){n.component.context.calendarApi.unselect(e)},n.handleHitUpdate=function(e,t){var r=n.component.context,i=null,a=!1;if(e){var o=n.hitDragging.initialHit,s=e.componentId===o.componentId&&n.isHitComboAllowed&&!n.isHitComboAllowed(o,e);s||(i=p(o,e,r.pluginHooks.dateSelectionTransformers)),i&&b.isDateSelectionValid(i,e.dateProfile,r)||(a=!0,i=null)}i?r.dispatch({type:"SELECT_DATES",selection:i}):t||r.dispatch({type:"UNSELECT_DATES"}),a?b.disableCursor():b.enableCursor(),t||(n.dragSelection=i)},n.handlePointerUp=function(e){n.dragSelection&&(b.triggerDateSelect(n.dragSelection,e,n.component.context),n.dragSelection=null)};var r=t.component,i=r.context.options,a=n.dragging=new P(t.el);a.touchScrollAllowed=!1,a.minDistance=i.selectMinDistance||0,a.autoScroller.isEnabled=i.dragScroll;var o=n.hitDragging=new R(n.dragging,b.interactionSettingsToStore(t));return o.emitter.on("pointerdown",n.handlePointerDown),o.emitter.on("dragstart",n.handleDragStart),o.emitter.on("hitupdate",n.handleHitUpdate),o.emitter.on("pointerup",n.handlePointerUp),n}return T.__extends(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t}(b.Interaction),U=function(e){function t(n){var r=e.call(this,n)||this;r.subjectEl=null,r.subjectSeg=null,r.isDragging=!1,r.eventRange=null,r.relevantEvents=null,r.receivingContext=null,r.validMutation=null,r.mutatedRelevantEvents=null,r.handlePointerDown=function(e){var t=e.origEvent.target,n=r,i=n.component,a=n.dragging,o=a.mirror,s=i.context.options,l=i.context;r.subjectEl=e.subjectEl;var u=r.subjectSeg=b.getElSeg(e.subjectEl),c=r.eventRange=u.eventRange,d=c.instance.instanceId;r.relevantEvents=b.getRelevantEvents(l.getCurrentData().eventStore,d),a.minDistance=e.isTouch?0:s.eventDragMinDistance,a.delay=e.isTouch&&d!==i.props.eventSelection?g(i):null,s.fixedMirrorParent?o.parentNode=s.fixedMirrorParent:o.parentNode=b.elementClosest(t,".fc"),o.revertDuration=s.dragRevertDuration;var h=i.isValidSegDownEl(t)&&!b.elementClosest(t,".fc-event-resizer");a.setIgnoreMove(!h),r.isDragging=h&&e.subjectEl.classList.contains("fc-event-draggable")},r.handleDragStart=function(e){var t=r.component.context,n=r.eventRange,i=n.instance.instanceId;e.isTouch?i!==r.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:i}):t.dispatch({type:"UNSELECT_EVENT"}),r.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger("eventDragStart",{el:r.subjectEl,event:new b.EventApi(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi}))},r.handleHitUpdate=function(e,t){if(r.isDragging){var n=r.relevantEvents,i=r.hitDragging.initialHit,a=r.component.context,o=null,s=null,l=null,c=!1,d={affectedEvents:n,mutatedEvents:b.createEmptyEventStore(),isEvent:!0};if(e){o=e.context;var h=o.options;a===o||h.editable&&h.droppable?(s=f(i,e,o.getCurrentData().pluginHooks.eventDragMutationMassagers),s&&(l=b.applyMutationToEventStore(n,o.getCurrentData().eventUiBases,s,o),d.mutatedEvents=l,b.isInteractionValid(d,e.dateProfile,o)||(c=!0,s=null,l=null,d.mutatedEvents=b.createEmptyEventStore()))):o=null}
122r.displayDrag(o,d),c?b.disableCursor():b.enableCursor(),t||(a===o&&u(i,e)&&(s=null),r.dragging.setMirrorNeedsRevert(!s),r.dragging.setMirrorIsVisible(!e||!b.getElRoot(r.subjectEl).querySelector(".fc-event-mirror")),r.receivingContext=o,r.validMutation=s,r.mutatedRelevantEvents=l)}},r.handlePointerUp=function(){r.isDragging||r.cleanup()},r.handleDragEnd=function(e){if(r.isDragging){var t=r.component.context,n=t.viewApi,i=r,a=i.receivingContext,o=i.validMutation,s=r.eventRange.def,l=r.eventRange.instance,u=new b.EventApi(t,s,l),d=r.relevantEvents,h=r.mutatedRelevantEvents,p=r.hitDragging.finalHit;if(r.clearDrag(),t.emitter.trigger("eventDragStop",{el:r.subjectEl,event:u,jsEvent:e.origEvent,view:n}),o){if(a===t){var f=new b.EventApi(t,h.defs[s.defId],l?h.instances[l.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:h});for(var g={oldEvent:u,event:f,relatedEvents:b.buildEventApis(h,t,l),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:d})}},m={},v=0,y=t.getCurrentData().pluginHooks.eventDropTransformers;v<y.length;v++){var _=y[v];T.__assign(m,_(o,t))}t.emitter.trigger("eventDrop",T.__assign(T.__assign(T.__assign({},g),m),{el:e.subjectEl,delta:o.datesDelta,jsEvent:e.origEvent,view:n})),t.emitter.trigger("eventChange",g)}else if(a){var E={event:u,relatedEvents:b.buildEventApis(d,t,l),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:d})}};t.emitter.trigger("eventLeave",T.__assign(T.__assign({},E),{draggedEl:e.subjectEl,view:n}
122)),t.dispatch({type:"REMOVE_EVENTS",eventStore:d}),t.emitter.trigger("eventRemove",E);var S=h.defs[s.defId],w=h.instances[l.instanceId],C=new b.EventApi(a,S,w);a.dispatch({type:"MERGE_EVENTS",eventStore:h});var k={event:C,relatedEvents:b.buildEventApis(h,a,w),revert:function(){a.dispatch({type:"REMOVE_EVENTS",eventStore:h})}};a.emitter.trigger("eventAdd",k),e.isTouch&&a.dispatch({type:"SELECT_EVENT",eventInstanceId:l.instanceId}),a.emitter.trigger("drop",T.__assign(T.__assign({},c(p.dateSpan,a)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:p.context.viewApi})),a.emitter.trigger("eventReceive",T.__assign(T.__assign({},k),{draggedEl:e.subjectEl,view:p.context.viewApi}))}}else t.emitter.trigger("_noEventDrop")}r.cleanup()};var i=r.component,a=i.context.options,o=r.dragging=new P(n.el);o.pointer.selector=t.SELECTOR,o.touchScrollAllowed=!1,o.autoScroller.isEnabled=a.dragScroll;var s=r.hitDragging=new R(r.dragging,b.interactionSettingsStore);return s.useSubjectCenter=n.useEventCenter,s.emitter.on("pointerdown",r.handlePointerDown),s.emitter.on("dragstart",r.handleDragStart),s.emitter.on("hitupdate",r.handleHitUpdate),s.emitter.on("pointerup",r.handlePointerUp),s.emitter.on("dragend",r.handleDragEnd),r}return T.__extends(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.displayDrag=function(e,t){var n=this.component.context,r=this.receivingContext;r&&r!==e&&(r===n?r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:b.createEmptyEventStore(),isEvent:!0}}):r.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},t.prototype.clearDrag=function(){var e=this.component.context,t=this.receivingContext;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})},t.prototype.cleanup=function(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null},t.SELECTOR=".fc-event-draggable, .fc-event-resizable",t}(b.Interaction),H=function(e){function t(t){var n=e.call(this,t)||this;n.draggingSegEl=null,n.draggingSeg=null,n.eventRange=null,n.relevantEvents=null,n.validMutation=null,n.mutatedRelevantEvents=null,n.handlePointerDown=function(e){var t=n.component,r=n.querySegEl(e),i=b.getElSeg(r),a=n.eventRange=i.eventRange;n.dragging.minDistance=t.context.options.eventDragMinDistance,n.dragging.setIgnoreMove(!n.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&n.component.props.eventSelection!==a.instance.instanceId)},n.handleDragStart=function(e){var t=n.component.context,r=n.eventRange;n.relevantEvents=b.getRelevantEvents(t.getCurrentData().eventStore,n.eventRange.instance.instanceId);var i=n.querySegEl(e);n.draggingSegEl=i,n.draggingSeg=b.getElSeg(i),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:i,event:new b.EventApi(t,r.def,r.instance),jsEvent:e.origEvent,view:t.viewApi})},n.handleHitUpdate=function(e,t,r){var i=n.component.context,a=n.relevantEvents,o=n.hitDragging.initialHit,s=n.eventRange.instance,l=null,c=null,d=!1,h={affectedEvents:a,mutatedEvents:b.createEmptyEventStore(),isEvent:!0};if(e){var p=e.componentId===o.componentId&&n.isHitComboAllowed&&!n.isHitComboAllowed(o,e);p||(l=m(o,e,r.subjectEl.classList.contains("fc-event-resizer-start"),s.range))}l&&(c=b.applyMutationToEventStore(a,i.getCurrentData().eventUiBases,l,i),h.mutatedEvents=c,b.isInteractionValid(h,e.dateProfile,i)||(d=!0,l=null,c=null,h.mutatedEvents=null)),c?i.dispatch({type:"SET_EVENT_RESIZE",state:h}):i.dispatch({type:"UNSET_EVENT_RESIZE"}),d?b.disableCursor():b.enableCursor(),t||(l&&u(o,e)&&(l=null),n.validMutation=l,n.mutatedRelevantEvents=c)},n.handleDragEnd=function(e){var t=n.component.context,r=n.eventRange.def,i=n.eventRange.instance,a=new b.EventApi(t,r,i),o=n.relevantEvents,s=n.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:n.draggingSegEl,event:a,jsEvent:e.origEvent,view:t.viewApi}),n.validMutation){var l=new b.EventApi(t,s.defs[r.defId],i?s.instances[i.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:s});var u={oldEvent:a,event:l,relatedEvents:b.buildEventApis(s,t,i),revert:function(){t.dispatch({type:"MERGE_EVENTS",eventStore:o})}};t.emitter.trigger("eventResize",T.__assign(T.__assign({},u),{el:n.draggingSegEl,startDelta:n.validMutation.startDelta||b.createDuration(0),endDelta:n.validMutation.endDelta||b.createDuration(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",u)}else t.emitter.trigger("_noEventResize");n.draggingSeg=null,n.relevantEvents=null,n.validMutation=null};var r=t.component,i=n.dragging=new P(t.el);i.pointer.selector=".fc-event-resizer",i.touchScrollAllowed=!1,i.autoScroller.isEnabled=r.context.options.dragScroll;var a=n.hitDragging=new R(n.dragging,b.interactionSettingsToStore(t));return a.emitter.on("pointerdown",n.handlePointerDown),a.emitter.on("dragstart",n.handleDragStart),a.emitter.on("hitupdate",n.handleHitUpdate),a.emitter.on("dragend",n.handleDragEnd),n}return T.__extends(t,e),t.prototype.destroy=function(){this.dragging.destroy()},t.prototype.querySegEl=function(e){return b.elementClosest(e.subjectEl,".fc-event")},t}(b.Interaction),j=function(){function e(e){var t=this;this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=function(e){e.jsEvent&&(t.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=function(e){var n=t.context.options.unselectCancel,r=b.getEventTargetViaRoot(e.origEvent);t.matchesCancel=!!b.elementClosest(r,n),t.matchesEvent=!!b.elementClosest(r,U.SELECTOR)},this.onDocumentPointerUp=function(e){var n=t.context,r=t.documentPointer,i=n.getCurrentData();if(!r.wasTouchScroll){if(i.dateSelection&&!t.isRecentPointerDateSelect){var a=n.options.unselectAuto;!a||a&&t.matchesCancel||n.calendarApi.unselect(e)}i.eventSelection&&!t.matchesEvent&&n.dispatch({type:"UNSELECT_EVENT"})}t.isRecentPointerDateSelect=!1};var n=this.documentPointer=new C(document);n.shouldIgnoreMove=!0,n.shouldWatchScroll=!1,n.emitter.on("pointerdown",this.onDocumentPointerDown),n.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}return e.prototype.destroy=function(){ 123this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()},e}
123(),B={fixedMirrorParent:b.identity},F={dateClick:b.identity,eventDragStart:b.identity,eventDragStop:b.identity,eventDrop:b.identity,eventResizeStart:b.identity,eventResizeStop:b.identity,eventResize:b.identity,drop:b.identity,eventReceive:b.identity,eventLeave:b.identity},V=function(){function e(e,t){var n=this;this.receivingContext=null,this.droppableEvent=null,this.suppliedDragMeta=null,this.dragMeta=null,this.handleDragStart=function(e){n.dragMeta=n.buildDragMeta(e.subjectEl)},this.handleHitUpdate=function(e,t,r){var i=n.hitDragging.dragging,a=null,o=null,s=!1,l={affectedEvents:b.createEmptyEventStore(),mutatedEvents:b.createEmptyEventStore(),isEvent:n.dragMeta.create};e&&(a=e.context,n.canDropElOnCalendar(r.subjectEl,a)&&(o=v(e.dateSpan,n.dragMeta,a),l.mutatedEvents=b.eventTupleToStore(o),s=!b.isInteractionValid(l,e.dateProfile,a),s&&(l.mutatedEvents=b.createEmptyEventStore(),o=null))),n.displayDrag(a,l),i.setMirrorIsVisible(t||!o||!document.querySelector(".fc-event-mirror")),s?b.disableCursor():b.enableCursor(),t||(i.setMirrorNeedsRevert(!o),n.receivingContext=a,n.droppableEvent=o)},this.handleDragEnd=function(e){var t=n,r=t.receivingContext,i=t.droppableEvent;if(n.clearDrag(),r&&i){var a=n.hitDragging.finalHit,o=a.context.viewApi,s=n.dragMeta;if(r.emitter.trigger("drop",T.__assign(T.__assign({},c(a.dateSpan,r)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:o})),s.create){var l=b.eventTupleToStore(i);r.dispatch({type:"MERGE_EVENTS",eventStore:l}),e.isTouch&&r.dispatch({type:"SELECT_EVENT",eventInstanceId:i.instance.instanceId}),r.emitter.trigger("eventReceive",{event:new b.EventApi(r,i.def,i.instance),relatedEvents:[],revert:function(){r.dispatch({type:"REMOVE_EVENTS",eventStore:l})},draggedEl:e.subjectEl,view:o})}}n.receivingContext=null,n.droppableEvent=null};var r=this.hitDragging=new R(e,b.interactionSettingsStore);r.requireInitial=!1,r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("dragend",this.handleDragEnd),this.suppliedDragMeta=t}return e.prototype.buildDragMeta=function(e){return"object"==typeof this.suppliedDragMeta?b.parseDragMeta(this.suppliedDragMeta):"function"==typeof this.suppliedDragMeta?b.parseDragMeta(this.suppliedDragMeta(e)):y(e)},e.prototype.displayDrag=function(e,t){var n=this.receivingContext;n&&n!==e&&n.dispatch({type:"UNSET_EVENT_DRAG"}),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})},e.prototype.clearDrag=function(){this.receivingContext&&this.receivingContext.dispatch({type:"UNSET_EVENT_DRAG"})},e.prototype.canDropElOnCalendar=function(e,t){var n=t.options.dropAccept;return"function"==typeof n?n.call(t.calendarApi,e):"string"!=typeof n||!n||Boolean(b.elementMatches(e,n))},e}();b.config.dataAttrPrefix="";var W=function(){function e(e,t){var n=this;void 0===t&&(t={}),this.handlePointerDown=function(e){var t=n.dragging,r=n.settings,i=r.minDistance,a=r.longPressDelay;t.minDistance=null!=i?i:e.isTouch?0:b.BASE_OPTION_DEFAULTS.eventDragMinDistance,t.delay=e.isTouch?null!=a?a:b.BASE_OPTION_DEFAULTS.longPressDelay:0},this.handleDragStart=function(e){e.isTouch&&n.dragging.delay&&e.subjectEl.classList.contains("fc-event")&&n.dragging.mirror.getMirrorEl().classList.add("fc-event-selected")},this.settings=t;var r=this.dragging=new P(e);r.touchScrollAllowed=!1,null!=t.itemSelector&&(r.pointer.selector=t.itemSelector),null!=t.appendTo&&(r.mirror.parentNode=t.appendTo),r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),new V(r,t.eventData)}return e.prototype.destroy=function(){this.dragging.destroy()},e}(),z=function(e){function t(t){var n=e.call(this,t)||this;n.shouldIgnoreMove=!1,n.mirrorSelector="",n.currentMirrorEl=null,n.handlePointerDown=function(e){n.emitter.trigger("pointerdown",e),n.shouldIgnoreMove||n.emitter.trigger("dragstart",e)},n.handlePointerMove=function(e){n.shouldIgnoreMove||n.emitter.trigger("dragmove",e)},n.handlePointerUp=function(e){n.emitter.trigger("pointerup",e),n.shouldIgnoreMove||n.emitter.trigger("dragend",e)};var r=n.pointer=new C(t);return r.emitter.on("pointerdown",n.handlePointerDown),r.emitter.on("pointermove",n.handlePointerMove),r.emitter.on("pointerup",n.handlePointerUp),n}return T.__extends(t,e),t.prototype.destroy=function(){this.pointer.destroy()},t.prototype.setIgnoreMove=function(e){this.shouldIgnoreMove=e},t.prototype.setMirrorIsVisible=function(e){if(e)this.currentMirrorEl&&(this.currentMirrorEl.style.visibility="",this.currentMirrorEl=null);else{var t=this.mirrorSelector?document.querySelector(this.mirrorSelector):null;t&&(this.currentMirrorEl=t,t.style.visibility="hidden")}},t}(b.ElementDragging),$=function(){function e(e,t){var n=document;e===document||e instanceof Element?(n=e,t=t||{}):t=e||{};var r=this.dragging=new z(n);"string"==typeof t.itemSelector?r.pointer.selector=t.itemSelector:n===document&&(r.pointer.selector="[data-event]"),"string"==typeof t.mirrorSelector&&(r.mirrorSelector=t.mirrorSelector),new V(r,t.eventData)}return e.prototype.destroy=function(){this.dragging.destroy()},e}(),q=b.createPlugin({componentInteractions:[L,N,U,H],calendarInteractions:[j],elementDraggingImpl:P,optionRefiners:B,listenerRefiners:F});t.Draggable=W,t.FeaturefulElementDragging=P,t.PointerDragging=C,t.ThirdPartyDraggable=$,t["default"]=q},function(e,t){"use strict";
vendor: 5,570 bytes, lines 123-127
123Object.defineProperty(t,"__esModule",{value:!0});var n={code:"it",week:{dow:1,doy:4},buttonText:{prev:"Prec",next:"Succ",today:"Oggi",month:"Mese",week:"Settimana",day:"Giorno",list:"Agenda"},weekText:"Sm",allDayText:"Tutto il giorno",moreLinkText:function(e){return"+altri "+e},noEventsText:"Non ci sono eventi da visualizzare"};t["default"]=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={code:"en-gb",week:{dow:1,doy:4},buttonHints:{prev:"Previous $0",next:"Next $0",today:"This $0"},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(e){return"Show ".concat(e," more event").concat(1===e?"":"s")}};t["default"]=n},function(e,t,n){var r,i,a;(function(o){!function(o){i=[n(3)],r=o,a="function"==typeof r?r.apply(t,i):r,!(void 0!==a&&(e.exports=a))}(function(e){var t=function(){if(e&&e.fn&&e.fn.select2&&e.fn.select2.amd)var t=e.fn.select2.amd;var t;return function(){if(!t||!t.requirejs){t?n=t:t={};/** 124 * @license almond 0.3.3 Copyright jQuery Foundation and other contributors. 125 * Released under MIT license, http://github.com/requirejs/almond/LICENSE 126 */ 127var e,n,r;!function(t){function i(e,t){return T.call(e,t)}function a(e,t){var n,r,i,a,o,s,l,u,c,d,h,p,f=t&&t.split("/"),g=_.map,m=g&&g["*"]||{};if(e){for(e=e.split("/"),o=e.length-1,_.nodeIdCompat&&S.test(e[o])&&(e[o]=e[o].replace(S,"")),"."===e[0].charAt(0)&&f&&(p=f.slice(0,f.length-1),e=p.concat(e)),c=0;c<e.length;c++)if(h=e[c],"."===h)e.splice(c,1),c-=1;else if(".."===h){if(0===c||1===c&&".."===e[2]||".."===e[c-1])continue;c>0&&(e.splice(c-1,2),c-=2)}e=e.join("/")}if((f||m)&&g){for(n=e.split("/"),c=n.length;c>0;c-=1){if(r=n.slice(0,c).join("/"),f)for(d=f.length;d>0;d-=1)if(i=g[f.slice(0,d).join("/")],i&&(i=i[r])){a=i,s=c;break}if(a)break;!l&&m&&m[r]&&(l=m[r],u=c)}!a&&l&&(a=l,s=u),a&&(n.splice(0,s,a),e=n.join("/"))}return e}function o(e,n){return function(){var r=E.call(arguments,0);return"string"!=typeof r[0]&&1===r.length&&r.push(null),f.apply(t,r.concat([e,n]))}}function s(e){return function(t){return a(t,e)}}function l(e){return function(t){v[e]=t}}function u(e){if(i(y,e)){var n=y[e];delete y[e],b[e]=!0,p.apply(t,n)}if(!i(v,e)&&!i(b,e))throw new Error("No "+e);return v[e]}function c(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function d(e){return e?c(e):[]}function h(e){return function(){return _&&_.config&&_.config[e]||{}}}var p,f,g,m,v={},y={},_={},b={},T=Object.prototype.hasOwnProperty,E=[].slice,S=/\.js$/;g=function(e,t){var n,r=c(e),i=r[0],o=t[1];return e=r[1],i&&(i=a(i,o),n=u(i)),i?e=n&&n.normalize?n.normalize(e,s(o)):a(e,o):(e=a(e,o),r=c(e),i=r[0],e=r[1],i&&(n=u(i))),{f:i?i+"!"+e:e,n:e,pr:i,p:n}},m={require:function(e){return o(e)},exports:function(e){var t=v[e];return"undefined"!=typeof t?t:v[e]={}},module:function(e){return{id:e,uri:"",exports:v[e],config:h(e)}}},p=function(e,n,r,a){var s,c,h,p,f,_,T,E=[],S=typeof r;if(a=a||e,_=d(a),"undefined"===S||"function"===S){for(n=!n.length&&r.length?["require","exports","module"]:n,f=0;f<n.length;f+=1)if(p=g(n[f],_),c=p.f,"require"===c)E[f]=m.require(e);else if("exports"===c)E[f]=m.exports(e),T=!0;else if("module"===c)s=E[f]=m.module(e);else if(i(v,c)||i(y,c)||i(b,c))E[f]=u(c);else{if(!p.p)throw new Error(e+" missing "+c);p.p.load(p.n,o(a,!0),l(c),{}),E[f]=v[c]}h=r?r.apply(v[e],E):void 0,e&&(s&&s.exports!==t&&s.exports!==v[e]?v[e]=s.exports:h===t&&T||(v[e]=h))}else e&&(v[e]=r)},e=n=f=function(e,n,r,i,a){if("string"==typeof e)return m[e]?m[e](n):u(g(e,d(n)).f);if(!e.splice){if(_=e,_.deps&&f(_.deps,_.callback),!n)return;n.splice?(e=n,n=r,r=null):e=t}return n=n||function(){},"function"==typeof r&&(r=i,i=a),i?p(t,e,n,r):setTimeout(function(){p(t,e,n,r)},4),f},f.config=function(e){return f(e)},e._defined=v,r=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),i(v,e)||i(y,e)||(y[e]=[e,t,n])},r.amd={jQuery:!0}}(),t.requirejs=e,t.require=n,t.define=r}}(),t.define("almond",function(){}),t.define("jquery",[],function(){var t=e||o;return null==t&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(e){function t(e){var t=e.prototype,n=[];for(var r in t){var i=t[r];"function"==typeof i&&"constructor"!==r&&n.push(r)}return n}var n={};n.Extend=function(e,t){function n(){this.constructor=e}var r={}.hasOwnProperty;for(var i in t)r.call(t,i)&&(e[i]=t[i]);return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e},n.Decorate=function(e,n){function r(){var t=Array.prototype.unshift,r=n.prototype.constructor.length,i=e.prototype.constructor;r>0&&(t.call(arguments,e.prototype.constructor),i=n.prototype.constructor),i.apply(this,arguments)}function i(){this.constructor=r}var a=t(n),o=t(e);n.displayName=e.displayName,r.prototype=new i;for(var s=0;s<o.length;s++){var l=o[s];r.prototype[l]=e.prototype[l]}for(var u=(function(e){var t=function(){};e in r.prototype&&(t=r.prototype[e]);var i=n.prototype[e];return function(){var e=Array.prototype.unshift;return e.call(arguments,t),i.apply(this,arguments)}}),c=0;c<a.length;c++){var d=a[c];r.prototype[d]=u(d)}return r};var r=function(){this.listeners={}};r.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},r.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1
127);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=e,e in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},r.prototype.invoke=function(e,t){for(var n=0,r=e.length;n<r;n++)e[n].apply(this,t)},n.Observable=r,n.generateChars=function(e){for(var t="",n=0;n<e;n++){var r=Math.floor(36*Math.random());t+=r.toString(36)}return t},n.bind=function(e,t){return function(){e.apply(t,arguments)}},n._convertData=function(e){for(var t in e){var n=t.split("-"),r=e;if(1!==n.length){for(var i=0;i<n.length;i++){var a=n[i];a=a.substring(0,1).toLowerCase()+a.substring(1),a in r||(r[a]={}),i==n.length-1&&(r[a]=e[t]),r=r[a]}delete e[t]}}return e},n.hasScroll=function(t,n){var r=e(n),i=n.style.overflowX,a=n.style.overflowY;return(i!==a||"hidden"!==a&&"visible"!==a)&&("scroll"===i||"scroll"===a||(r.innerHeight()<n.scrollHeight||r.innerWidth()<n.scrollWidth))},n.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},n.__cache={};var i=0;return n.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null!=t?t:(t=e.id?"select2-data-"+e.id:"select2-data-"+(++i).toString()+"-"+n.generateChars(4),e.setAttribute("data-select2-id",t),t)},n.StoreData=function(e,t,r){var i=n.GetUniqueElementId(e);n.__cache[i]||(n.__cache[i]={}),n.__cache[i][t]=r},n.GetData=function(t,r){var i=n.GetUniqueElementId(t);return r?n.__cache[i]&&null!=n.__cache[i][r]?n.__cache[i][r]:e(t).data(r):n.__cache[i]},n.RemoveData=function(e){var t=n.GetUniqueElementId(e);null!=n.__cache[t]&&delete n.__cache[t],e.removeAttribute("data-select2-id")},n.copyNonInternalCssClasses=function(e,t){var n=e.getAttribute("class").trim().split(/\s+/);n=n.filter(function(e){return 0===e.indexOf("select2-")});var r=t.getAttribute("class").trim().split(/\s+/);r=r.filter(function(e){return 0!==e.indexOf("select2-")});var i=n.concat(r);e.setAttribute("class",i.join(" "))},n}),t.define("select2/results",["jquery","./utils"],function(e,t){function n(e,t,r){this.$element=e,this.data=r,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(t){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var r=e('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),i=this.options.get("translations").get(t.message);r.append(n(i(t.args))),r[0].className+=" select2-results__message",this.$results.append(r)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(e){this.hideLoading();var t=[];if(null==e.results||0===e.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var r=e.results[n],i=this.option(r);t.push(i)}this.$results.append(t)},n.prototype.position=function(e,t){var n=t.find(".select2-results");n.append(e)},n.prototype.sort=function(e){var t=this.options.get("sorter");return t(e)},n.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");t.length>0?t.first().trigger("mouseenter"):e.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var n=this;this.data.current(function(r){var i=r.map(function(e){return e.id.toString()}),a=n.$results.find(".select2-results__option--selectable");a.each(function(){var n=e(this),r=t.GetData(this,"data"),a=""+r.id;null!=r.element&&r.element.selected||null==r.element&&i.indexOf(a)>-1?(this.classList.add("select2-results__option--selected"),n.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),n.attr("aria-selected","false"))})})},n.prototype.showLoading=function(e){this.hideLoading();var t=this.options.get("translations").get("searching"),n={disabled:!0,loading:!0,text:t(e)},r=this.option(n);r.className+=" loading-results",this.$results.prepend(r)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(n){var r=document.createElement("li");r.classList.add("select2-results__option"),r.classList.add("select2-results__option--selectable");var i={role:"option"},a=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;(null!=n.element&&a.call(n.element,":disabled")||null==n.element&&n.disabled)&&(i["aria-disabled"]="true",r.classList.remove("select2-results__option--selectable"),r.classList.add("select2-results__option--disabled")),null==n.id&&r.classList.remove("select2-results__option--selectable"),null!=n._resultId&&(r.id=n._resultId),n.title&&(r.title=n.title),n.children&&(i.role="group",i["aria-label"]=n.text,r.classList.remove("select2-results__option--selectable"),r.classList.add("select2-results__option--group"));for(var o in i){var s=i[o];r.setAttribute(o,s)}if(n.children){var l=e(r),u=document.createElement("strong");u.className="select2-results__group",this.template(n,u);for(var c=[],d=0;d<n.children.length;d++){var h=n.children[d],p=this.option(h);c.push(p)}var f=e("<ul></ul>",{"class":"select2-results__options select2-results__options--nested",role:"none"});f.append(c),l.append(u),l.append(f)}else this.template(n,r);return t.StoreData(r,"data",n),r},n.prototype.bind=function(n,r){var i=this,a=n.id+"-results";this.$results.attr("id",a),n.on("results:all",function(e){i.clear(),i.append(e.data),n.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),n.on("results:append",function(e){i.append(e.data),n.isOpen()&&i.setClasses()}),n.on("query",function(e){i.hideMessages(),i.showLoading(e)}
vendor: 5,071 bytes, line 127
127),n.on("select",function(){n.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect")&&i.highlightFirstItem())}),n.on("unselect",function(){n.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect")&&i.highlightFirstItem())}),n.on("open",function(){i.$results.attr("aria-expanded","true"),i.$results.attr("aria-hidden","false"),i.setClasses(),i.ensureHighlightVisible()}),n.on("close",function(){i.$results.attr("aria-expanded","false"),i.$results.attr("aria-hidden","true"),i.$results.removeAttr("aria-activedescendant")}),n.on("results:toggle",function(){var e=i.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),n.on("results:select",function(){var e=i.getHighlightedResults();if(0!==e.length){var n=t.GetData(e[0],"data");e.hasClass("select2-results__option--selected")?i.trigger("close",{}):i.trigger("select",{data:n})}}),n.on("results:previous",function(){var e=i.getHighlightedResults(),t=i.$results.find(".select2-results__option--selectable"),n=t.index(e);if(!(n<=0)){var r=n-1;0===e.length&&(r=0);var a=t.eq(r);a.trigger("mouseenter");var o=i.$results.offset().top,s=a.offset().top,l=i.$results.scrollTop()+(s-o);0===r?i.$results.scrollTop(0):s-o<0&&i.$results.scrollTop(l)}}),n.on("results:next",function(){var e=i.getHighlightedResults(),t=i.$results.find(".select2-results__option--selectable"),n=t.index(e),r=n+1;if(!(r>=t.length)){var a=t.eq(r);a.trigger("mouseenter");var o=i.$results.offset().top+i.$results.outerHeight(!1),s=a.offset().top+a.outerHeight(!1),l=i.$results.scrollTop()+s-o;0===r?i.$results.scrollTop(0):s>o&&i.$results.scrollTop(l)}}),n.on("results:focus",function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")}),n.on("results:message",function(e){i.displayMessage(e)}),e.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=i.$results.scrollTop(),n=i.$results.get(0).scrollHeight-t+e.deltaY,r=e.deltaY>0&&t-e.deltaY<=0,a=e.deltaY<0&&n<=i.$results.height();r?(i.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):a&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(n){var r=e(this),a=t.GetData(this,"data");return r.hasClass("select2-results__option--selected")?void(i.options.get("multiple")?i.trigger("unselect",{originalEvent:n,data:a}):i.trigger("close",{})):void i.trigger("select",{originalEvent:n,data:a})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(n){var r=t.GetData(this,"data");i.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),i.trigger("results:focus",{data:r,element:e(this)})})},n.prototype.getHighlightedResults=function(){var e=this.$results.find(".select2-results__option--highlighted");return e},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var e=this.getHighlightedResults();if(0!==e.length){var t=this.$results.find(".select2-results__option--selectable"),n=t.index(e),r=this.$results.offset().top,i=e.offset().top,a=this.$results.scrollTop()+(i-r),o=i-r;a-=2*e.outerHeight(!1),n<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(a)}},n.prototype.template=function(t,n){var r=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),a=r(t,n);null==a?n.style.display="none":"string"==typeof a?n.innerHTML=i(a):e(n).append(a)},n}),t.define("select2/keys",[],function(){var e={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return e}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(e,t,n){function r(e,t){this.$element=e,this.options=t,r.__super__.constructor.call(this)}return t.Extend(r,t.Observable),r.prototype.render=function(){var n=e('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=t.GetData(this.$element[0],"old-tabindex")?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n,n},r.prototype.bind=function(e,t){var r=this,i=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){r.trigger("focus",e)}),this.$selection.on("blur",function(e){r._handleBlur(e)}),this.$selection.on("keydown",function(e){r.trigger("keypress",e),e.which===n.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){r.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){r.update(e.data)}),e.on("open",function(){r.$selection.attr("aria-expanded","true"),r.$selection.attr("aria-owns",i),r._attachCloseHandler(e)}),e.on("close",function(){r.$selection.attr("aria-expanded","fal
127se"),r.$selection.removeAttr("aria-activedescendant"),r.$selection.removeAttr("aria-owns"),r.$selection.trigger("focus"),r._detachCloseHandler(e)}),e.on("enable",function(){r.$selection.attr("tabindex",r._tabindex),r.$selection.attr("aria-disabled","false")}),e.on("disable",function(){r.$selection.attr("tabindex","-1"),r.$selection.attr("aria-disabled","true")})},r.prototype._handleBlur=function(t){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||e.contains(n.$selection[0],document.activeElement)||n.trigger("blur",t)},1)},r.prototype._attachCloseHandler=function(n){e(document.body).on("mousedown.select2."+n.id,function(n){var r=e(n.target),i=r.closest(".select2"),a=e(".select2.select2-container--open");a.each(function(){if(this!=i[0]){var e=t.GetData(this,"element");e.select2("close")}})})},r.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},r.prototype.position=function(e,t){var n=t.find(".selection");n.append(e)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,r){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(e,t){var n=this;i.__super__.bind.apply(this,arguments);var r=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",r),this.$selection.attr("aria-controls",r),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),e.on("focus",function(t){e.isOpen()||n.$selection.trigger("focus")})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){if(0===e.length)return void this.clear();var t=e[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(t,n);n.empty().append(r);var i=t.title||t.text;i?n.attr("title",i):n.removeAttr("title")},i}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(e,t,n){function r(e,t){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},r.prototype.bind=function(t,i){var a=this;r.__super__.bind.apply(this,arguments);var o=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",o),this.$selection.on("click",function(e){a.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(t){if(!a.isDisabled()){var r=e(this),i=r.parent(),o=n.GetData(i[0],"data");a.trigger("unselect",{originalEvent:t,data:o})}}),this.$selection.on("keydown",".select2-selection__choice__remove",function(e){a.isDisabled()||e.stopPropagation()})},r.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},r.prototype.display=function(e,t){var n=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(n(e,t))},r.prototype.selectionContainer=function(){var t=e('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">×</span></button><span class="select2-selection__choice__display"></span></li>');return t},r.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],r=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",i=0;i<e.length;i++){var a=e[i],o=this.selectionContainer(),s=this.display(a,o),l=r+n.generateChars(4)+"-";l+=a.id?a.id:n.generateChars(4),o.find(".select2-selection__choice__display").append(s).attr("id",l);var u=a.title||a.text;u&&o.attr("title",u);var c=this.options.get("translations").get("removeItem"),d=o.find(".select2-selection__choice__remove");d.attr("title",c()),d.attr("aria-label",c()),d.attr("aria-describedby",l),n.StoreData(o[0],"data",a),t.push(o)}var h=this.$selection.find(".select2-selection__rendered");h.append(t)}},r}),t.define("select2/selection/placeholder",[],function(){function e(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();n.html(this.display(t)),n[0].classList.add("select2-selection__placeholder"),n[0].classList.remove("select2-selection__choice");var r=t.title||t.text||n.text();return this.$selection.find(".select2-selection__rendered").attr("title",r),n},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id,r=t.length>1;if(r||n)return e.call(this,t);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e}
127),t.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(e,t,n){function r(){}return r.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){r._handleClear(e)}),t.on("keypress",function(e){r._handleKeyboardClear(e,t)})},r.prototype._handleClear=function(e,t){if(!this.isDisabled()){var r=this.$selection.find(".select2-selection__clear");if(0!==r.length){t.stopPropagation();var i=n.GetData(r[0],"data"),a=this.$element.val();this.$element.val(this.placeholder.id);var o={data:i};if(this.trigger("clear",o),o.prevented)return void this.$element.val(a);for(var s=0;s<i.length;s++)if(o={data:i[s]},this.trigger("unselect",o),o.prevented)return void this.$element.val(a);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}},r.prototype._handleKeyboardClear=function(e,n,r){r.isOpen()||n.which!=t.DELETE&&n.which!=t.BACKSPACE||this._handleClear(n)},r.prototype.update=function(t,r){if(t.call(this,r),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),!(this.$selection.find(".select2-selection__placeholder").length>0||0===r.length)){var i=this.$selection.find(".select2-selection__rendered").attr("id"),a=this.options.get("translations").get("removeAllItems"),o=e('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">×</span></button>');o.attr("title",a()),o.attr("aria-label",a()),o.attr("aria-describedby",i),n.StoreData(o[0],"data",r),this.$selection.prepend(o),this.$selection[0].classList.add("select2-selection--clearable")}},r}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(e,t,n){function r(e,t,n){e.call(this,t,n)}return r.prototype.render=function(t){var n=this.options.get("translations").get("search"),r=e('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>');this.$searchContainer=r,this.$search=r.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",n());var i=t.call(this);return this._transferTabIndex(),i.append(this.$searchContainer),i},r.prototype.bind=function(e,r,i){var a=this,o=r.id+"-results",s=r.id+"-container";e.call(this,r,i),a.$search.attr("aria-describedby",s),r.on("open",function(){a.$search.attr("aria-controls",o),a.$search.trigger("focus")}),r.on("close",function(){a.$search.val(""),a.resizeSearch(),a.$search.removeAttr("aria-controls"),a.$search.removeAttr("aria-activedescendant"),a.$search.trigger("focus")}),r.on("enable",function(){a.$search.prop("disabled",!1),a._transferTabIndex()}),r.on("disable",function(){a.$search.prop("disabled",!0)}),r.on("focus",function(e){a.$search.trigger("focus")}),r.on("results:focus",function(e){e.data._resultId?a.$search.attr("aria-activedescendant",e.data._resultId):a.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){a.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){a._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){e.stopPropagation(),a.trigger("keypress",e),a._keyUpPrevented=e.isDefaultPrevented();var r=e.which;if(r===n.BACKSPACE&&""===a.$search.val()){var i=a.$selection.find(".select2-selection__choice").last();if(i.length>0){var o=t.GetData(i[0],"data");a.searchRemoveChoice(o),e.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(e){a.$search.val()&&e.stopPropagation()});var l=document.documentMode,u=l&&l<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){return u?void a.$selection.off("input.search input.searchcheck"):void a.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){if(u&&"input"===e.type)return void a.$selection.off("input.search input.searchcheck");var t=e.which;t!=n.SHIFT&&t!=n.CTRL&&t!=n.ALT&&t!=n.TAB&&a.handleSearch(e)})},r.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},r.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},r.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),n&&this.$search.trigger("focus")},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},r.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";if(""===this.$search.attr("placeholder")){var t=this.$search.val().length+1;e=.75*t+"em"}this.$search.css("width",e)},r}),t.define("select2/selection/selectionCss",["../utils"],function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),r=this.options.get("selectionCssClass")||"";return r.indexOf(":all:")!==-1&&(r=r.replace(":all:",""),e.copyNonInternalCssClasse
vendor: 4,451 bytes, line 127
127s(n[0],this.$element[0])),n.addClass(r),n},t}),t.define("select2/selection/eventRelay",["jquery"],function(e){function t(){}return t.prototype.bind=function(t,n,r){var i=this,a=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];t.call(this,n,r),n.on("*",function(t,n){if(a.indexOf(t)!==-1){n=n||{};var r=e.Event("select2:"+t,{params:n});i.$element.trigger(r),o.indexOf(t)!==-1&&(n.prevented=r.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(e,t){function n(e){this.dict=e||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(e){return this.dict[e]},n.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},n._cache={},n.loadPath=function(e){if(!(e in n._cache)){var r=t(e);n._cache[e]=r}return new n(n._cache[e])},n}),t.define("select2/diacritics",[],function(){var e={"â¶":"A","A":"A","Ã":"A","Ã":"A","Ã":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ä":"A","Ä":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ç ":"A","Ã":"A","Ç":"A","Ả":"A","Ã
":"A","Ǻ":"A","Ç":"A","È":"A","È":"A","Ạ":"A","Ậ":"A","Ặ":"A","á¸":"A","Ä":"A","Ⱥ":"A","Ɐ":"A","ê²":"AA","Ã":"AE","Ǽ":"AE","Ç¢":"AE","ê´":"AO","ê¶":"AU","ê¸":"AV","êº":"AV","ê¼":"AY","â·":"B","ï¼¢":"B","á¸":"B","á¸":"B","á¸":"B","É":"B","Æ":"B","Æ":"B","â¸":"C","ï¼£":"C","Ä":"C","Ä":"C","Ä":"C","Ä":"C","Ã":"C","á¸":"C","Æ":"C","È»":"C","ê¾":"C","â¹":"D","D":"D","á¸":"D","Ä":"D","á¸":"D","á¸":"D","á¸":"D","á¸":"D","Ä":"D","Æ":"D","Æ":"D","Æ":"D","ê¹":"D","DZ":"DZ","Ç":"DZ","Dz":"Dz","Ç
":"Dz","âº":"E","ï¼¥":"E","Ã":"E","Ã":"E","Ã":"E","á»":"E","Ế":"E","á»":"E","á»":"E","Ẽ":"E","Ä":"E","á¸":"E","á¸":"E","Ä":"E","Ä":"E","Ã":"E","Ẻ":"E","Ä":"E","È":"E","È":"E","Ẹ":"E","á»":"E","Ȩ":"E","á¸":"E","Ä":"E","á¸":"E","á¸":"E","Æ":"E","Æ":"E","â»":"F","F":"F","á¸":"F","Æ":"F","ê»":"F","â¼":"G","ï¼§":"G","Ç´":"G","Ä":"G","Ḡ":"G","Ä":"G","Ä ":"G","Ǧ":"G","Ä¢":"G","Ǥ":"G","Æ":"G","ê ":"G","ê½":"G","ê¾":"G","â½":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","È":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","â±§":"H","â±µ":"H","ê":"H","â¾":"I","I":"I","Ã":"I","Ã":"I","Ã":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ã":"I","Ḯ":"I","á»":"I","Ç":"I","È":"I","È":"I","á»":"I","Ä®":"I","Ḭ":"I","Æ":"I","â¿":"J","J":"J","Ä´":"J","É":"J","â":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Æ":"K","Ⱪ":"K","ê":"K","ê":"K","ê":"K","ê¢":"K","â":"L","L":"L","Ä¿":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ä»":"L","Ḽ":"L","Ḻ":"L","Å":"L","Ƚ":"L","â±¢":"L","â± ":"L","ê":"L","ê":"L","ê":"L","Ç":"LJ","Ç":"Lj","â":"M","ï¼":"M","Ḿ":"M","á¹":"M","á¹":"M","â±®":"M","Æ":"M","â":"N","ï¼®":"N","Ǹ":"N","Å":"N","Ã":"N","á¹":"N","Å":"N","á¹":"N","Å
":"N","á¹":"N","á¹":"N","È ":"N","Æ":"N","ê":"N","ê¤":"N","Ç":"NJ","Ç":"Nj","â":"O","O":"O","Ã":"O","Ã":"O","Ã":"O","á»":"O","á»":"O","á»":"O","á»":"O","Ã":"O","á¹":"O","Ȭ":"O","á¹":"O","Å":"O","á¹":"O","á¹":"O","Å":"O","È®":"O","Ȱ":"O","Ã":"O","Ȫ":"O","á»":"O","Å":"O","Ç":"O","È":"O","È":"O","Æ ":"O","á»":"O","á»":"O","á» ":"O","á»":"O","Ợ":"O","á»":"O","á»":"O","Ǫ":"O","Ǭ":"O","Ã":"O","Ǿ":"O","Æ":"O","Æ":"O","ê":"O","ê":"O","Å":"OE","Æ¢":"OI","ê":"OO","È¢":"OU","â
":"P","ï¼°":"P","á¹":"P","á¹":"P","Ƥ":"P","â±£":"P","ê":"P","ê":"P","ê":"P","â":"Q","ï¼±":"Q","ê":"Q","ê":"Q","É":"Q","â":"R","ï¼²":"R","Å":"R","á¹":"R","Å":"R","È":"R","È":"R","á¹":"R","á¹":"R","Å":"R","á¹":"R","É":"R","Ɽ":"R","ê":"R","ê¦":"R","ê":"R","â":"S","ï¼³":"S","áº":"S","Å":"S","Ṥ":"S","Å":"S","á¹ ":"S","Å ":"S","Ṧ":"S","á¹¢":"S","Ṩ":"S","È":"S","Å":"S","â±¾":"S","ê¨":"S","ê":"S","â":"T","ï¼´":"T","Ṫ":"T","Ť":"T","Ṭ":"T","È":"T","Å¢":"T","á¹°":"T","á¹®":"T","Ŧ":"T","Ƭ":"T","Æ®":"T","Ⱦ":"T","ê":"T","ê¨":"TZ","â":"U","ï¼µ":"U","Ã":"U","Ã":"U","Ã":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ã":"U","Ç":"U","Ç":"U","Ç":"U","Ç":"U","Ủ":"U","Å®":"U","Ű":"U","Ç":"U","È":"U","È":"U","Ư":"U","Ừ":"U","Ứ":"U","á»®":"U","Ử":"U","á»°":"U","Ụ":"U","á¹²":"U","Ų":"U","á¹¶":"U","á¹´":"U","É":"U","â":"V","ï¼¶":"V","á¹¼":"V","á¹¾":"V","Ʋ":"
127V","ê":"V","É ":"V","ê ":"VY","â":"W","ï¼·":"W","áº":"W","áº":"W","Å´":"W","áº":"W","áº":"W","áº":"W","â±²":"W","â":"X","X":"X","áº":"X","áº":"X","â":"Y","ï¼¹":"Y","Ỳ":"Y","Ã":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","áº":"Y","Ÿ":"Y","á»¶":"Y","á»´":"Y","Ƴ":"Y","É":"Y","Ỿ":"Y","â":"Z","Z":"Z","Ź":"Z","áº":"Z","Å»":"Z","Ž":"Z","áº":"Z","áº":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","ê¢":"Z","â":"a","ï½":"a","áº":"a","à ":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","Ä":"a","Ä":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","Ç¡":"a","ä":"a","Ç":"a","ả":"a","Ã¥":"a","Ç»":"a","Ç":"a","È":"a","È":"a","ạ":"a","áº":"a","ặ":"a","á¸":"a","Ä ":"a","â±¥":"a","É":"a","ê³":"aa","æ":"ae","ǽ":"ae","Ç£":"ae","êµ":"ao","ê·":"au","ê¹":"av","ê»":"av","ê½":"ay","â":"b","ï½":"b","á¸":"b","Ḡ":"b","á¸":"b","Æ":"b","Æ":"b","É":"b","â":"c","ï½":"c","Ä":"c","Ä":"c","Ä":"c","Ä":"c","ç":"c","á¸":"c","Æ":"c","ȼ":"c","ê¿":"c","â":"c","â":"d","ï½":"d","á¸":"d","Ä":"d","á¸":"d","á¸":"d","á¸":"d","á¸":"d","Ä":"d","Æ":"d","É":"d","É":"d", 128"êº":"d","dz":"dz","Ç":"dz","â":"e","ï½ ":"e","è":"e","é":"e","ê":"e","á»":"e","ế":"e","á» ":"e","á»":"e","ẽ":"e","Ä":"e","á¸":"e","á¸":"e","Ä":"e","Ä":"e","ë":"e","ẻ":"e","Ä":"e","È ":"e","È":"e","ẹ":"e","á»":"e","È©":"e","á¸":"e","Ä":"e","á¸":"e","á¸":"e","É":"e","É":"e","Ç":"e","â":"f","ï½":"f","á¸":"f","Æ":"f","ê¼":"f","â":"g","ï½":"g","ǵ":"g","Ä":"g","ḡ":"g","Ä":"g","Ä¡":"g","ǧ":"g","Ä£":"g","Ç¥":"g","É ":"g","ê¡":"g","áµ¹":"g","ê¿":"g","â":"h","ï½":"h","Ä¥":"h","ḣ":"h","ḧ":"h","È":"h","ḥ":"h","ḩ":"h","ḫ":"h","áº":"h","ħ":"h","ⱨ":"h","â±¶":"h","É¥":"h","Æ":"hv","â":"i","ï½":"i","ì":"i","Ã":"i","î":"i","Ä©":"i","Ä«":"i","Ä":"i","ï":"i","ḯ":"i","á»":"i","Ç":"i","È":"i","È":"i","á»":"i","į":"i","á¸":"i","ɨ":"i","ı":"i","â":"j","ï½":"j","ĵ":"j","ǰ":"j","É":"j","â":"k","ï½":"k","ḱ":"k","Ç©":"k","ḳ":"k","Ä·":"k","ḵ":"k","Æ":"k","ⱪ":"k","ê":"k","ê":"k","ê ":"k","ê£":"k","â":"l","ï½":"l","Å":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","Å¿":"l","Å":"l","Æ":"l","É«":"l","ⱡ":"l","ê":"l","ê":"l","ê":"l","Ç":"lj","â":"m","ï½":"m","ḿ":"m","á¹":"m","á¹":"m","ɱ":"m","ɯ":"m","â":"n","ï½":"n","ǹ":"n","Å":"n","ñ":"n","á¹ ":"n","Å":"n","á¹":"n","Å":"n","á¹":"n","á¹":"n","Æ":"n","ɲ":"n","Å":"n","ê":"n","ê¥":"n","Ç":"nj","â":"o","ï½":"o","ò":"o","ó":"o","ô":"o","á»":"o","á»":"o","á»":"o","á»":"o","õ":"o","á¹":"o","È":"o","á¹":"o","Å":"o","á¹":"o","á¹":"o","Å":"o","ȯ":"o","ȱ":"o","ö":"o","È«":"o","á»":"o","Å":"o","Ç":"o","È":"o","È":"o","Æ¡":"o","á»":"o","á»":"o","ỡ":"o","á»":"o","ợ":"o","á»":"o","á»":"o","Ç«":"o","Ç":"o","ø":"o","Ç¿":"o","É":"o","ê":"o","ê":"o","ɵ":"o","Å":"oe","Æ£":"oi","È£":"ou","ê":"oo","â":"p","ï½":"p","á¹":"p","á¹":"p","Æ¥":"p","áµ½":"p","ê":"p","ê":"p","ê":"p","â ":"q","ï½":"q","É":"q","ê":"q","ê":"q","â¡":"r","ï½":"r","Å":"r","á¹":"r","Å":"r","È":"r","È":"r","á¹":"r","á¹":"r","Å":"r","á¹":"r","É":"r","ɽ":"r","ê":"r","ê§":"r","ê":"r","â¢":"s","ï½":"s","Ã":"s","Å":"s","á¹¥":"s","Å":"s","ṡ":"s","Å¡":"s","á¹§":"s","á¹£":"s","ṩ":"s","È":"s","Å":"s","È¿":"s","ê©":"s","ê ":"s","áº":"s","â£":"t","ï½":"t","ṫ":"t","áº":"t","Å¥":"t","á¹":"t","È":"t","Å£":"t","á¹±":"t","ṯ":"t","ŧ":"t","Æ":"t","Ê":"t","ⱦ":"t","ê":"t","ê©":"tz","â¤":"u","ï½":"u","ù":"u","ú":"u","û":"u","Å©":"u","á¹¹":"u","Å«":"u","á¹»":"u","Å":"u","ü":"u","Ç":"u","Ç":"u","Ç":"u","Ç":"u","á»§":"u","ů":"u","ű":"u","Ç":"u","È":"u","È":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","á»":"u","á»±":"u","ụ":"u","á¹³":"u","ų":"u","á¹·":"u","á¹µ":"u","Ê":"u","â¥":"v","ï½":"v","á¹½":"v","ṿ":"v","Ê":"v","ê":"v","Ê":"v","ê¡":"vy","â¦":"w","ï½":"w","áº":"w","áº":"w","ŵ":"w","áº":"w","Ạ":"w","áº":"w","áº":"w","â±³":"w","â§":"x","ï½":"x","áº":"x","áº":"x","â¨":"y","ï½":"y","ỳ":"y","ý":"y","Å·":"y","ỹ":"y","ȳ":"y","áº":"y","ÿ":"y","á»·":"y","áº":"y","ỵ":"y","Æ´":"y","É":"y","ỿ":"y","â©":"z","ï½":"z","ź":"z","áº":"z","ż":"z","ž":"z","áº":"z","áº":"z","ƶ":"z","È¥":"z","É":"z","ⱬ":"z","ê£":"z","Î":"Î","Î":"Î","Î":"Î","Î":"Î","Ϊ":"Î","Î":"Î","Î":"Î¥","Ϋ":"Î¥","Î":"Ω","ά":"α","Î":"ε","ή":"η","ί":"ι","Ï":"ι","Î":"ι","Ï":"ο","Ï":"Ï ","Ï":"Ï ","ΰ":"Ï ","Ï":"Ï","Ï":"Ï","â":"'"};return e}),t.define("select2/data/base",["../utils"],function(e){function t(e,n){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(e,t){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,n){var r=t.id+"-result-";return r+=e.generateChars(4),r+=null!=n.id?"-"+n.id.toString():"-"+e.generateChars(4)},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(e,t,n){function r(e,t){this.$element=e,this.options=t,r.__super__.constructor.call(this)}return t.Extend(r,e),r.prototype.current=function(e){var t=this,r=Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(e){return t.item(n(e))});e(r)},r.prototype.select=function(e){var t=this;if(e.selected=!0,null!=e.element&&"option"===e.element.tagName.toLowerCase())return e.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(n){var r=[];e=[e],e.push.apply(e,n);for(var i=0;i<e.length;i++){var a=e[i].id;r.indexOf(a)===-1&&r.push(a)}t.$element.val(r),t.$element.trigger("input").trigger("change")});else{var n=e.id;this.$element.val(n),this.$element.trigger("input").trigger("change")}},r.prototype.unselect=function(e){var t=this;if(this.$element.prop("multiple"))return e.selected=!1,null!=e.element&&"option"===e.element.tagName.toLowerCase()?(e.element.selected=!1,void this.$element.trigger("input").trigger("change")):void this.current(function(n){for(var r=[],i=0;i<n.length;i++){var a=n[i].id;a!==e.id&&r.indexOf(a)===-1&&r.push(a)}t.$element.val(r),t.$element.trigger("input").trigger("change")})},r.prototype.bind=function(e,t){var n=this;this.container=e,e.on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},r.prototype.destroy=function(){this.$element.find("*").each(function(){t.RemoveData(this)})},r.prototype.query=function(e,t){var r=[],i=this,a=this.$element.children();a.each(function(){if("option"===this.tagName.toLowerCase()||"optgroup"===this.tagName.toLowerCase()){var t=n(this),a=i.item(t),o=i.matches(e,a);null!==o&&r.push(o)}}),t({results:r})},r.prototype.addOptions=function(e){this.$element.append(e)},r.prototype.option=function(e){var r;e.children?(r=document.createElement("optgroup"),r.label=e.text):(r=document.createElement("option"),void 0!==r.textContent?r.textContent=e.text:r.innerText=e.text),void 0!==e.id&&(r.value=e.id),e.disabled&&(r.disabled=!0),e.selected&&(r.selected=!0),e.title&&(r.title=e.title);var i=this._normalizeItem(e);return i.element=r,t.StoreData(r,"data",i),n(r)},r.prototype.item=function(e){var r={};if(r=t.GetData(e[0],"data"),null!=r)return r;var i=e[0];if("option"===i.tagName.toLowerCase())r={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if("optgroup"===i.tagName.toLowerCase()){r={text:e.prop("label"),children:[],title:e.prop("title")};for(var a=e.children("option"),o=[],s=0;s<a.length;s++){var l=n(a[s]),u=this.item(l);o.push(u)}r.children=o}return r=this._normalizeItem(r),r.element=e[0],t.StoreData(e[0],"data",r),r},r.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e}),e=n.extend({},{text:""},e);var t={selected:!1,disabled:!1};
vendor: 5,019 bytes, line 128
128return null!=e.id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),n.extend({},t,e)},r.prototype.matches=function(e,t){var n=this.options.get("matcher");return n(e,t)},r}),t.define("select2/data/array",["./select","../utils","jquery"],function(e,t,n){function r(e,t){this._dataToConvert=t.get("data")||[],r.__super__.constructor.call(this,e,t)}return t.Extend(r,e),r.prototype.bind=function(e,t){r.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},r.prototype.select=function(e){var t=this.$element.find("option").filter(function(t,n){return n.value==e.id.toString()});0===t.length&&(t=this.option(e),this.addOptions(t)),r.__super__.select.call(this,e)},r.prototype.convertToOptions=function(e){function t(e){return function(){return n(this).val()==e.id}}for(var r=this,i=this.$element.find("option"),a=i.map(function(){return r.item(n(this)).id}).get(),o=[],s=0;s<e.length;s++){var l=this._normalizeItem(e[s]);if(a.indexOf(l.id)>=0){var u=i.filter(t(l)),c=this.item(u),d=n.extend(!0,{},l,c),h=this.option(d);u.replaceWith(h)}else{var p=this.option(l);if(l.children){var f=this.convertToOptions(l.children);p.append(f)}o.push(p)}}return o},r}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,n){function r(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),r.__super__.constructor.call(this,e,t)}return t.Extend(r,e),r.prototype._applyDefaults=function(e){var t={data:function(e){return n.extend({},e,{q:e.term})},transport:function(e,t,r){var i=n.ajax(e);return i.then(t),i.fail(r),i}};return n.extend({},t,e,!0)},r.prototype.processResults=function(e){return e},r.prototype.query=function(e,t){function r(){var n=a.transport(a,function(n){var r=i.processResults(n,e);i.options.get("debug")&&window.console&&console.error&&(r&&r.results&&Array.isArray(r.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(r)},function(){"status"in n&&(0===n.status||"0"===n.status)||i.trigger("results:message",{message:"errorLoading"})});i._request=n}var i=this;null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null);var a=n.extend({type:"GET"},this.ajaxOptions);"function"==typeof a.url&&(a.url=a.url.call(this.$element,e)),"function"==typeof a.data&&(a.data=a.data.call(this.$element,e)),this.ajaxOptions.delay&&null!=e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(r,this.ajaxOptions.delay)):r()},r}),t.define("select2/data/tags",["jquery"],function(e){function t(e,t,n){var r=n.get("tags"),i=n.get("createTag");void 0!==i&&(this.createTag=i);var a=n.get("insertTag");if(void 0!==a&&(this.insertTag=a),e.call(this,t,n),Array.isArray(r))for(var o=0;o<r.length;o++){var s=r[o],l=this._normalizeItem(s),u=this.option(l);this.$element.append(u)}}return t.prototype.query=function(e,t,n){function r(e,a){for(var o=e.results,s=0;s<o.length;s++){var l=o[s],u=null!=l.children&&!r({results:l.children},!0),c=(l.text||"").toUpperCase(),d=(t.term||"").toUpperCase(),h=c===d;if(h||u)return!a&&(e.data=o,void n(e))}if(a)return!0;var p=i.createTag(t);if(null!=p){var f=i.option(p);f.attr("data-select2-tag","true"),i.addOptions([f]),i.insertTag(o,p)}e.results=o,n(e)}var i=this;return this._removeOldTags(),null==t.term||null!=t.page?void e.call(this,t,n):void e.call(this,t,r)},t.prototype.createTag=function(e,t){if(null==t.term)return null;var n=t.term.trim();return""===n?null:{id:n,text:n}},t.prototype.insertTag=function(e,t,n){t.unshift(n)},t.prototype._removeOldTags=function(t){var n=this.$element.find("option[data-select2-tag]");n.each(function(){this.selected||e(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(e){function t(e,t,n){var r=n.get("tokenizer");void 0!==r&&(this.tokenizer=r),e.call(this,t,n)}return t.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},t.prototype.query=function(t,n,r){function i(t){var n=o._normalizeItem(t),r=o.$element.find("option").filter(function(){return e(this).val()===n.id});if(!r.length){var i=o.option(n);i.attr("data-select2-tag",!0),o._removeOldTags(),o.addOptions([i])}a(n)}function a(e){o.trigger("select",{data:e})}var o=this;n.term=n.term||"";var s=this.tokenizer(n,this.options,i);s.term!==n.term&&(this.$search.length&&(this.$search.val(s.term),this.$search.trigger("focus")),n.term=s.term),t.call(this,n,r)},t.prototype.tokenizer=function(t,n,r,i){for(var a=r.get("tokenSeparators")||[],o=n.term,s=0,l=this.createTag||function(e){return{id:e.term,text:e.term}};s<o.length;){var u=o[s];if(a.indexOf(u)!==-1){var c=o.substr(0,s),d=e.extend({},n,{term:c}),h=l(d);null!=h?(i(h),o=o.substr(s+1)||"",s=0):s++}else s++}
128return{term:o}},t}),t.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",t.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),t.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){return t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void e.call(this,t,n)},e}),t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(){r._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var r=this;this._checkIfMaximumSelected(function(){e.call(r,t,n)})},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current(function(e){var r=null!=e?e.length:0;return n.maximumSelectionLength>0&&r>=n.maximumSelectionLength?void n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):void(t&&t())})},e}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,t.Observable),n.prototype.render=function(){var t=e('<span class="select2-dropdown"><span class="select2-results"></span></span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),t.define("select2/dropdown/search",["jquery"],function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),r=this.options.get("translations").get("search"),i=e('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=i,this.$search=i.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",r()),n.prepend(i),n},t.prototype.bind=function(t,n,r){var i=this,a=n.id+"-results";t.call(this,n,r),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(t){e(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),n.on("open",function(){i.$search.attr("tabindex",0),i.$search.attr("aria-controls",a),i.$search.trigger("focus"),window.setTimeout(function(){i.$search.trigger("focus")},0)}),n.on("close",function(){i.$search.attr("tabindex",-1),i.$search.removeAttr("aria-controls"),i.$search.removeAttr("aria-activedescendant"),i.$search.val(""),i.$search.trigger("blur")}),n.on("focus",function(){n.isOpen()||i.$search.trigger("focus")}),n.on("results:all",function(e){if(null==e.query.term||""===e.query.term){var t=i.showSearch(e);t?i.$searchContainer[0].classList.remove("select2-search--hide"):i.$searchContainer[0].classList.add("select2-search--hide")}}),n.on("results:focus",function(e){e.data._resultId?i.$search.attr("aria-activedescendant",e.data._resultId):i.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(e){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),t.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,r)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),r=t.length-1;r>=0;r--){var i=t[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},e}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(e){function t(e,t,n,r){this.lastParams={},e.call(this,t,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("query",function(e){r.lastParams=e,r.loading=!0}),t.on("query:append",function(e){r.lastParams=e,r.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var t=e.contains(document.documentElement,this.$loadingMore[0]);if(!this.loading&&t){var n=this.$results.offset().top+this.$results.outerHeight(!1),r=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1);n+50>=r&&this.loadMore()}},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return t.html(n(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,t){function n(t,n,r){this.$dropdownParent=e(r.get("dropdownParent")||document.body),t.call(this,n,r)}return n.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("open",function(){r._showDropdown(),r._attachPositioningHandler(t),r._bindContainerResultHandlers(t)}),t.on("close",function(){r._hideDropdown(),r._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},n.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(t){var n=e("<span></span>"),r=t.call(this);return n.append(r),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(e,t){if(!this._containerResultsHandlersBound){var n=this;t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},n.prototype._attachPositioningHandler=function(n,r){var i=this,a="scroll.
128select2."+r.id,o="resize.select2."+r.id,s="orientationchange.select2."+r.id,l=this.$container.parents().filter(t.hasScroll);l.each(function(){t.StoreData(this,"select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),l.on(a,function(n){var r=t.GetData(this,"select2-scroll-position");e(this).scrollTop(r.y)}),e(window).on(a+" "+o+" "+s,function(e){i._positionDropdown(),i._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,r){var i="scroll.select2."+r.id,a="resize.select2."+r.id,o="orientationchange.select2."+r.id,s=this.$container.parents().filter(t.hasScroll);s.off(i),e(window).off(i+" "+a+" "+o)},n.prototype._positionDropdown=function(){var t=e(window),n=this.$dropdown[0].classList.contains("select2-dropdown--above"),r=this.$dropdown[0].classList.contains("select2-dropdown--below"),i=null,a=this.$container.offset();a.bottom=a.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=a.top,o.bottom=a.top+o.height;var s={height:this.$dropdown.outerHeight(!1)},l={top:t.scrollTop(),bottom:t.scrollTop()+t.height()},u=l.top<a.top-s.height,c=l.bottom>a.bottom+s.height,d={left:a.left,top:o.bottom},h=this.$dropdownParent;"static"===h.css("position")&&(h=h.offsetParent());var p={top:0,left:0};(e.contains(document.body,h[0])||h[0].isConnected)&&(p=h.offset()),d.top-=p.top,d.left-=p.left,n||r||(i="below"),c||!u||n?!u&&c&&n&&(i="below"):i="above",("above"==i||n&&"below"!==i)&&(d.top=o.top-p.top-s.height),null!=i&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+i),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+i)),this.$dropdownContainer.css(d)},n.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},n.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(t){for(var n=0,r=0;r<t.length;r++){var i=t[r];i.children?n+=e(i.children):n++}return n}function t(e,t,n,r){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,r)}return t.prototype.showSearch=function(t,n){return!(e(n.data.results)<this.minimumResultsForSearch)&&t.call(this,n)},t}),t.define("select2/dropdown/selectOnClose",["../utils"],function(e){function t(){}return t.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("close",function(e){r._handleSelectOnClose(e)})},t.prototype._handleSelectOnClose=function(t,n){if(n&&null!=n.originalSelect2Event){var r=n.originalSelect2Event;if("select"===r._type||"unselect"===r._type)return}var i=this.getHighlightedResults();if(!(i.length<1)){var a=e.GetData(i[0],"data");null!=a.element&&a.element.selected||null==a.element&&a.selected||this.trigger("select",{data:a})}},t}),t.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var r=this;e.call(this,t,n),t.on("select",function(e){r._selectTriggered(e)}),t.on("unselect",function(e){r._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),t.define("select2/dropdown/dropdownCss",["../utils"],function(e){function t(){}return t.prototype.render=function(t){var n=t.call(this),r=this.options.get("dropdownCssClass")||"";return r.indexOf(":all:")!==-1&&(r=r.replace(":all:",""),e.copyNonInternalCssClasses(n[0],this.$element[0])),n.addClass(r),n},t}),t.define("select2/dropdown/tagsSearchHighlight",["../utils"],function(e){function t(){}return t.prototype.highlightFirstItem=function(t){var n=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(n.length>0){var r=n.first(),i=e.GetData(r[0],"data"),a=i.element;if(a&&a.getAttribute&&"true"===a.getAttribute("data-select2-tag"))return void r.trigger("mouseenter")}t.call(this)},t}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var t=e.input.length-e.maximum,n="Please delete "+t+" character";return 1!=t&&(n+="s"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Please enter "+t+" or more characters";return n},loadingMore:function(){return"Loading more resultsâ¦"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searchingâ¦"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}}),t.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],function(e,t,n,r,i,a,o,s,l,u,c,d,h,p,f,g,m,v,y,_,b,T,E,S,w,C,k,D,x,A,I){function O(){this.reset()}O.prototype.apply=function(c){if(c=e.extend(!0,{},this.defaults,c),null==c.dataAdapter&&(null!=c.ajax?c.dataAdapter=f:null!=c.data?c.dataAdapter=p:c.dataAdapter=h,c.minimumInputLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,v)),c.maximumInputLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,y)),c.maximumSelectionLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,_)),c.tags&&(c.dataAdapter=u.Decorate(c.dataAdapter,g)),null==c.tokenSeparators&&null==c.tokenizer||(c.dataAdapter=u.Decorate(c.dataAdapter,m))),null==c.resultsAdapter&&(c.resultsAdapter=t,null!=c.ajax&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,S)),null!=c.placeholder&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,E)),c.selectOnClose&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,k)),c.tags&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,A))),null==c.dropdownAdapter){if(c.multiple)c.dropdownAdapter=b;else{var d=u.Decorate(b,T);c.dropdownAdapter=d}0!==c.minimumResultsForSearch&&(c.dropdownAdapter=u.Decorate(c.dropdownAdapter,C)),c.closeOnSelect&&(c.dropdownAdapter=u.Decorate(c.dropdownAdapter,D)),null!=c.dropdownCssClass&&(c.dropdownAdapter=u.Decorate(c.dropdownAdapter,x)),c.dropdownAdapter=u.Decorate(c.dropdownAdapter,w)}null==c.selectionAdapter&&(c.multiple?c.selectionAdapter=r:c.selectionAdapter=n,null!=c.placeholder&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,i)),c.allowClear&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,a)),c.multiple&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,o)),null!=c.selectionCssClass&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,s
128)),c.selectionAdapter=u.Decorate(c.selectionAdapter,l)),c.language=this._resolveLanguage(c.language),c.language.push("en");for(var I=[],O=0;O<c.language.length;O++){var P=c.language[O];I.indexOf(P)===-1&&I.push(P)}return c.language=I,c.translations=this._processTranslations(c.language,c.debug),c},O.prototype.reset=function(){function t(e){function t(e){return d[e]||e}return e.replace(/[^\u0000-\u007E]/g,t)}function n(r,i){if(null==r.term||""===r.term.trim())return i;if(i.children&&i.children.length>0){for(var a=e.extend(!0,{},i),o=i.children.length-1;o>=0;o--){var s=i.children[o],l=n(r,s);null==l&&a.children.splice(o,1)}return a.children.length>0?a:n(r,a)}var u=t(i.text).toUpperCase(),c=t(r.term).toUpperCase();return u.indexOf(c)>-1?i:null}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:u.escapeMarkup,language:{},matcher:n,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},O.prototype.applyFromElement=function(e,t){var n=e.language,r=this.defaults.language,i=t.prop("lang"),a=t.closest("[lang]").prop("lang"),o=Array.prototype.concat.call(this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(r),this._resolveLanguage(a));return e.language=o,e},O.prototype._resolveLanguage=function(t){if(!t)return[];if(e.isEmptyObject(t))return[];if(e.isPlainObject(t))return[t];var n;n=Array.isArray(t)?t:[t];for(var r=[],i=0;i<n.length;i++)if(r.push(n[i]),"string"==typeof n[i]&&n[i].indexOf("-")>0){var a=n[i].split("-"),o=a[0];r.push(o)}return r},O.prototype._processTranslations=function(t,n){for(var r=new c,i=0;i<t.length;i++){var a=new c,o=t[i];if("string"==typeof o)try{a=c.loadPath(o)}catch(s){try{o=this.defaults.amdLanguageBase+o,a=c.loadPath(o)}catch(l){n&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else a=e.isPlainObject(o)?new c(o):o;r.extend(a)}return r},O.prototype.set=function(t,n){var r=e.camelCase(t),i={};i[r]=n;var a=u._convertData(i);e.extend(!0,this.defaults,a)};var P=new O;return P}),t.define("select2/options",["jquery","./defaults","./utils"],function(e,t,n){function r(e,n){this.options=e,null!=n&&this.fromElement(n),null!=n&&(this.options=t.applyFromElement(this.options,n)),this.options=t.apply(this.options)}return r.prototype.fromElement=function(t){function r(e,t){return t.toUpperCase()}var i=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.autocomplete&&t.prop("autocomplete")&&(this.options.autocomplete=t.prop("autocomplete")),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),n.GetData(t[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),n.StoreData(t[0],"data",n.GetData(t[0],"select2Tags")),n.StoreData(t[0],"tags",!0)),n.GetData(t[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",n.GetData(t[0],"ajaxUrl")),n.StoreData(t[0],"ajax-Url",n.GetData(t[0],"ajaxUrl")));for(var a={},o=0;o<t[0].attributes.length;o++){var s=t[0].attributes[o].name,l="data-";if(s.substr(0,l.length)==l){var u=s.substring(l.length),c=n.GetData(t[0],u),d=u.replace(/-([a-z])/g,r);a[d]=c}}e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset&&(a=e.extend(!0,{},t[0].dataset,a));var h=e.extend(!0,{},n.GetData(t[0]),a);h=n._convertData(h);for(var p in h)i.indexOf(p)>-1||(e.isPlainObject(this.options[p])?e.extend(this.options[p],h[p]):this.options[p]=h[p]);return this},r.prototype.get=function(e){return this.options[e]},r.prototype.set=function(e,t){this.options[e]=t},r}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,n,r){var i=function(e,r){null!=n.GetData(e[0],"select2")&&n.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),r=r||{},this.options=new t(r,e),i.__super__.constructor.call(this);var a=e.attr("tabindex")||0;n.StoreData(e[0],"old-tabindex",a),e.attr("tabindex","-1");var o=this.options.get("dataAdapter");this.dataAdapter=new o(e,this.options);var s=this.render();this._placeContainer(s);var l=this.options.get("selectionAdapter");this.selection=new l(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var u=this.options.get("dropdownAdapter");this.dropdown=new u(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var c=this.options.get("resultsAdapter");this.results=new c(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var d=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){d.trigger("selection:update",{data:e})}),e[0].classList.add("select2-hidden-accessible"), 129e.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(e[0],"select2",this),e.data("select2",this)};return n.Extend(i,n.Observable),i.prototype._generateId=function(e){var t="";return t=null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.generateChars(4),t=t.replace(/(:|\.|\[|\]|,)/g,""),t="select2-"+t},i.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},i.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var r=this._resolveWidth(e,"style");return null!=r?r:this._resolveWidth(e,"element")}if("element"==t){var i=e.outerWidth(!1);return i<=0?"auto":i+"px"}if("style"==t){var a=e.attr("style");if("string"!=typeof a)return null;for(var o=a.split(";"),s=0,l=o.length;s<l;s+=1){var u=o[s].replace(/\s/g,""),c=u.match(n);if(null!==c&&c.length>=1)return c[1]}return null}if("computedstyle"==t){var d=window.getComputedStyle(e[0]);return d.width}return t},i.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},i.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",function(){e.dataAdapter.current(function(t){e.trigger("selection:update",{data:t})})}),this.$element.on("focus.select2",function(t){e.trigger("focus",t)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(t){e._syncA(),e._syncS(t)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},i.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,n){e.trigger(t,n)})},i.prototype._registerSelectionEvents=function(){var e=this,t=["toggle","focus"];this.selection.on("toggle",function(){e.toggleDropdown()}),this.selection.on("focus",function(t){e.focus(t)}),this.selection.on("*",function(n,r){t.indexOf(n)===-1&&e.trigger(n,r)})},i.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,n){e.trigger(t,n)})},i.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,n){e.trigger(t,n)})},i.prototype._registerEvents=function(){var e=this;this.on("open",function(){e.$container[0].classList.add("select2-container--open")}),this.on("close",function(){e.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){e.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){e.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){e.$container[0].classList.remove("select2-container--focus")}),this.on("query",function(t){e.isOpen()||e.trigger("open",{}),this.dataAdapter.query(t,function(n){e.trigger("results:all",{data:n,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(n){e.trigger("results:append",{data:n,query:t})})}
vendor: 4,715 bytes, line 129
129),this.on("keypress",function(t){var n=t.which;e.isOpen()?n===r.ESC||n===r.UP&&t.altKey?(e.close(t),t.preventDefault()):n===r.ENTER||n===r.TAB?(e.trigger("results:select",{}),t.preventDefault()):n===r.SPACE&&t.ctrlKey?(e.trigger("results:toggle",{}),t.preventDefault()):n===r.UP?(e.trigger("results:previous",{}),t.preventDefault()):n===r.DOWN&&(e.trigger("results:next",{}),t.preventDefault()):(n===r.ENTER||n===r.SPACE||n===r.DOWN&&t.altKey)&&(e.open(),t.preventDefault())})},i.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},i.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&e.addedNodes.length>0)for(var n=0;n<e.addedNodes.length;n++){var r=e.addedNodes[n];if(r.selected)return!0}else{if(e.removedNodes&&e.removedNodes.length>0)return!0;if(Array.isArray(e))return e.some(function(e){return t._isChangeMutation(e)})}return!1},i.prototype._syncSubtree=function(e){var t=this._isChangeMutation(e),n=this;t&&this.dataAdapter.current(function(e){n.trigger("selection:update",{data:e})})},i.prototype.trigger=function(e,t){var n=i.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in r){var a=r[e],o={prevented:!1,name:e,args:t};if(n.call(this,a,o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},i.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},i.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},i.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},i.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},i.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},i.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=e&&0!==e.length||(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},i.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(t){e=t}),e},i.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var t=e[0];Array.isArray(t)&&(t=t.map(function(e){return e.toString()})),this.$element.val(t).trigger("input").trigger("change")},i.prototype.destroy=function(){n.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},i.prototype.render=function(){var t=e('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),n.StoreData(t[0],"element",this.$element),t},i}),t.define("jquery-mousewheel",["jquery"],function(e){return e}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(e,t,n,r,i){if(null==e.fn.select2){var a=["open","close","destroy"];e.fn.select2=function(t){if(t=t||{},"object"==typeof t)return this.each(function(){var r=e.extend(!0,{},t);new n(e(this),r)}),this;if("string"==typeof t){var r,o=Array.prototype.slice.call(arguments,1
129);return this.each(function(){var e=i.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),r=e[t].apply(e,o)}),a.indexOf(t)>-1?this:r}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=r),n}),{define:t.define,require:t.require}}(),n=t.require("jquery.select2");return e.fn.select2.amd=t,n})}).call(t,n(3))},function(e,t,n){var r,i,a;/*! 130 * jQuery UI Datepicker 1.13.2 131 * http://jqueryui.com 132 * 133 * Copyright jQuery Foundation and other contributors 134 * Released under the MIT license. 135 * http://jquery.org/license 136 */ 137!function(o){"use strict";i=[n(3),n(79),n(80)],r=o,a="function"==typeof r?r.apply(t,i):r,!(void 0!==a&&(e.exports=a))}(function(e){"use strict";function t(e){for(var t,n;e.length&&e[0]!==document;){if(t=e.css("position"),("absolute"===t||"relative"===t||"fixed"===t)&&(n=parseInt(e.css("zIndex"),10),!isNaN(n)&&0!==n))return n;e=e.parent()}return 0}function n(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=r(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function r(t){var n="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",n,function(){e(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&e(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&e(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",n,i)}function i(){e.datepicker._isDisabledDatepicker(o.inline?o.dpDiv.parent()[0]:o.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&e(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&e(this).addClass("ui-datepicker-next-hover"))}function a(t,n){e.extend(t,n);for(var r in n)null==n[r]&&(t[r]=n[r]);return t}e.extend(e.ui,{datepicker:{version:"1.13.2"}});var o;return e.extend(n.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return a(this._defaults,e||{}),this},_attachDatepicker:function(t,n){var r,i,a;r=t.nodeName.toLowerCase(),i="div"===r||"span"===r,t.id||(this.uuid+=1,t.id="dp"+this.uuid),a=this._newInst(e(t),i),a.settings=e.extend({},n||{}),"input"===r?this._connectDatepicker(t,a):i&&this._inlineDatepicker(t,a)},_newInst:function(t,n){var i=t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:i,input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:n,dpDiv:n?r(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,n){var r=e(t);n.append=e([]),n.trigger=e([]),r.hasClass(this.markerClassName)||(this._attachments(r,n),r.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(n),e.data(t,"datepicker",n),n.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,n){var r,i,a,o=this._get(n,"appendText"),s=this._get(n,"isRTL");n.append&&n.append.remove(),o&&(n.append=e("<span>").addClass(this._appendClass).text(o),t[s?"before":"after"](n.append)),t.off("focus",this._showDatepicker),n.trigger&&n.trigger.remove(),r=this._get(n,"showOn"),"focu
137s"!==r&&"both"!==r||t.on("focus",this._showDatepicker),"button"!==r&&"both"!==r||(i=this._get(n,"buttonText"),a=this._get(n,"buttonImage"),this._get(n,"buttonImageOnly")?n.trigger=e("<img>").addClass(this._triggerClass).attr({src:a,alt:i,title:i}):(n.trigger=e("<button type='button'>").addClass(this._triggerClass),a?n.trigger.html(e("<img>").attr({src:a,alt:i,title:i})):n.trigger.text(i)),t[s?"before":"after"](n.trigger),n.trigger.on("click",function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,n,r,i,a=new Date(2009,11,20),o=this._get(e,"dateFormat");o.match(/[DM]/)&&(t=function(e){for(n=0,r=0,i=0;i<e.length;i++)e[i].length>n&&(n=e[i].length,r=i);return r},a.setMonth(t(this._get(e,o.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(t(this._get(e,o.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),e.input.attr("size",this._formatDate(e,a).length)}},_inlineDatepicker:function(t,n){var r=e(t);r.hasClass(this.markerClassName)||(r.addClass(this.markerClassName).append(n.dpDiv),e.data(t,"datepicker",n),this._setDate(n,this._getDefaultDate(n),!0),this._updateDatepicker(n),this._updateAlternate(n),n.settings.disabled&&this._disableDatepicker(t),n.dpDiv.css("display","block"))},_dialogDatepicker:function(t,n,r,i,o){var s,l,u,c,d,h=this._dialogInst;return h||(this.uuid+=1,s="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+s+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),h=this._dialogInst=this._newInst(this._dialogInput,!1),h.settings={},e.data(this._dialogInput[0],"datepicker",h)),a(h.settings,i||{}),n=n&&n.constructor===Date?this._formatDate(h,n):n,this._dialogInput.val(n),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(l=document.documentElement.clientWidth,u=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+c,u/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),h.settings.onSelect=r,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",h),this},_destroyDatepicker:function(t){var n,r=e(t),i=e.data(t,"datepicker");r.hasClass(this.markerClassName)&&(n=t.nodeName.toLowerCase(),e.removeData(t,"datepicker"),"input"===n?(i.append.remove(),i.trigger.remove(),r.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==n&&"span"!==n||r.removeClass(this.markerClassName).empty(),o===i&&(o=null,this._curInst=null))},_enableDatepicker:function(t){var n,r,i=e(t),a=e.data(t,"datepicker");i.hasClass(this.markerClassName)&&(n=t.nodeName.toLowerCase(),"input"===n?(t.disabled=!1,a.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==n&&"span"!==n||(r=i.children("."+this._inlineClass),r.children().removeClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var n,r,i=e(t),a=e.data(t,"datepicker");i.hasClass(this.markerClassName)&&(n=t.nodeName.toLowerCase(),"input"===n?(t.disabled=!0,a.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==n&&"span"!==n||(r=i.children("."+this._inlineClass),r.children().addClass("ui-state-disabled"),r.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(n){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,n,r){var i,o,s,l,u=this._getInst(t);return 2===arguments.length&&"string"==typeof n?"defaults"===n?e.extend({},e.datepicker._defaults):u?"all"===n?e.extend({},u.settings):this._get(u,n):null:(i=n||{},"string"==typeof n&&(i={},i[n]=r),void(u&&(this._curInst===u&&this._hideDatepicker(),o=this._getDateDatepicker(t,!0),s=this._getMinMaxDate(u,"min"),l=this._getMinMaxDate(u,"max"),a(u.settings,i),null!==s&&void 0!==i.dateFormat&&void 0===i.minDate&&(u.settings.minDate=this._formatDate(u,s)),null!==l&&void 0!==i.dateFormat&&void 0===i.maxDate&&(u.settings.maxDate=this._formatDate(u,l)),"disabled"in i&&(i.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),u),this._autoSize(u),this._setDate(u,o),this._updateAlternate(u),this._updateDatepicker(u))))},_changeDatepicker:function(e,t,n){this._optionDatepicker(e,t,n)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var n=this._getInst(e);n&&(this._setDate(n,t),this._updateDatepicker(n),this._updateAlternate(n))},_getDateDatepicker:function(e,t){var n=this._getInst(e);return n&&!n.inline&&this._setDateFromField(n,t),n?this._getDate(n):null},_doKeyDown:function(t){var n,r,i,a=e.datepicker._getInst(t.target),o=!0,s=a.dpDiv.is(".ui-datepicker-rtl");if(a._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),o=!1;break;case 13:return i=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",a.dpDiv),i[0]&&e.datepicker._selectDay(t.target,a.selectedMonth,a.selectedYear,i[0]),n=e.datepicker._get(a,"onSelect"),n?(r=e.datepicker._formatDate(a),n.apply(a.input?a.input[0]:null,[r,a])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker._get(a,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),o=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),o=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,s?1:-1,"D"),o=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),o=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,s?-1:1,"D"),o=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker._get(a,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),o=t.ctrlKey||t.metaKey;break;default:o=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):o=!1;o&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var n,r,i=e.datepicker._getInst(t.target);if(e.datepicker._get(i,"constrainInput"))return n=e.datepicker._possibleChars(e.datepicker._get(i,"dateFormat")),r=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||r<" "||!n||n.indexOf(r)>-1},_doKeyUp:function(t){var n,r=e.datepicker._getInst(t.target);if(r.input.val()!==r.lastVal)try{n=e.datepicker.parseDate(e.datepicker._get(r,"dateFormat"),r.input?r.input.val():null,e.datepicker._getFormatConfig(r)),n&&(e.datepicker._setDateFromField(r),e.datepicker._updateAlternate(r),e.datepicker._updateDatepicker(r))}catch(i){}return!0},_showDatepicker:function(n){if(n=n.target||n,"input"!==n.nodeName.toLowerCase()&&(n=e("input",n.parentNode)[0]),!e.datepicker._isDisabledDatepicker(n)&&e.datepicker._lastInput!==n){var r,i,o,s,l,u,c;r=e.datepicker._getInst(n),e.datepicker._curInst&&e.datepicker._curInst!==r&&(e.datepicker._curInst.dpDiv.stop(!0,!0),r&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),i=e.datepicker._get(r,"beforeShow"),o=i?i.apply(n,[n,r]):{},o!==!1&&(a(r.settings,o),r.lastVal=null,e.datepicker._lastInput=n,e.datepicker._setDateFromField(r),e.datepicker._inDialog&&(n.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(n),e.datepicker._pos[1]+=n.offsetHeight),s=!1,e(n).parents().each(function(){return s|="fixed"===e(this).css("position"),!s}),l={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,r.dpDiv.empty(),r.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(r),l=e.datepicker._checkOffset(r,l,s),r.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":s?"fixed":"absolute",display:"none",left:l.left+"px",to
vendor: 11,807 bytes, line 137
137p:l.top+"px"}),r.inline||(u=e.datepicker._get(r,"showAnim"),c=e.datepicker._get(r,"duration"),r.dpDiv.css("z-index",t(e(n))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[u]?r.dpDiv.show(u,e.datepicker._get(r,"showOptions"),c):r.dpDiv[u||"show"](u?c:null),e.datepicker._shouldFocusInput(r)&&r.input.trigger("focus"),e.datepicker._curInst=r))}},_updateDatepicker:function(t){this.maxRows=4,o=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var n,r=this._getNumberOfMonths(t),a=r[1],s=17,l=t.dpDiv.find("."+this._dayOverClass+" a"),u=e.datepicker._get(t,"onUpdateDatepicker");l.length>0&&i.apply(l.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),a>1&&t.dpDiv.addClass("ui-datepicker-multi-"+a).css("width",s*a+"em"),t.dpDiv[(1!==r[0]||1!==r[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(n=t.yearshtml,setTimeout(function(){n===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year").first().replaceWith(t.yearshtml),n=t.yearshtml=null},0)),u&&u.apply(t.input?t.input[0]:null,[t])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,n,r){var i=t.dpDiv.outerWidth(),a=t.dpDiv.outerHeight(),o=t.input?t.input.outerWidth():0,s=t.input?t.input.outerHeight():0,l=document.documentElement.clientWidth+(r?0:e(document).scrollLeft()),u=document.documentElement.clientHeight+(r?0:e(document).scrollTop());return n.left-=this._get(t,"isRTL")?i-o:0,n.left-=r&&n.left===t.input.offset().left?e(document).scrollLeft():0,n.top-=r&&n.top===t.input.offset().top+s?e(document).scrollTop():0,n.left-=Math.min(n.left,n.left+i>l&&l>i?Math.abs(n.left+i-l):0),n.top-=Math.min(n.top,n.top+a>u&&u>a?Math.abs(a+s):0),n},_findPos:function(t){for(var n,r=this._getInst(t),i=this._get(r,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.pseudos.hidden(t));)t=t[i?"previousSibling":"nextSibling"];return n=e(t).offset(),[n.left,n.top]},_hideDatepicker:function(t){var n,r,i,a,o=this._curInst;!o||t&&o!==e.data(t,"datepicker")||this._datepickerShowing&&(n=this._get(o,"showAnim"),r=this._get(o,"duration"),i=function(){e.datepicker._tidyDialog(o)},e.effects&&(e.effects.effect[n]||e.effects[n])?o.dpDiv.hide(n,e.datepicker._get(o,"showOptions"),r,i):o.dpDiv["slideDown"===n?"slideUp":"fadeIn"===n?"fadeOut":"hide"](n?r:null,i),n||i(),this._datepickerShowing=!1,a=this._get(o,"onClose"),a&&a.apply(o.input?o.input[0]:null,[o.input?o.input.val():"",o]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var n=e(t.target),r=e.datepicker._getInst(n[0]);(n[0].id===e.datepicker._mainDivId||0!==n.parents("#"+e.datepicker._mainDivId).length||n.hasClass(e.datepicker.markerClassName)||n.closest("."+e.datepicker._triggerClass).length||!e.datepicker._datepickerShowing||e.datepicker._inDialog&&e.blockUI)&&(!n.hasClass(e.datepicker.markerClassName)||e.datepicker._curInst===r)||e.datepicker._hideDatepicker()}},_adjustDate:function(t,n,r){var i=e(t),a=this._getInst(i[0]);this._isDisabledDatepicker(i[0])||(this._adjustInstDate(a,n,r),this._updateDatepicker(a))},_gotoToday:function(t){var n,r=e(t),i=this._getInst(r[0]);this._get(i,"gotoCurrent")&&i.currentDay?(i.selectedDay=i.currentDay,i.drawMonth=i.selectedMonth=i.currentMonth,i.drawYear=i.selectedYear=i.currentYear):(n=new Date,i.selectedDay=n.getDate(),i.drawMonth=i.selectedMonth=n.getMonth(),i.drawYear=i.selectedYear=n.getFullYear()),this._notifyChange(i),this._adjustDate(r)},_selectMonthYear:function(t,n,r){var i=e(t),a=this._getInst(i[0]);a["selected"+("M"===r?"Month":"Year")]=a["draw"+("M"===r?"Month":"Year")]=parseInt(n.options[n.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(i)},_selectDay:function(t,n,r,i){var a,o=e(t);e(i).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||(a=this._getInst(o[0]),a.selectedDay=a.currentDay=parseInt(e("a",i).attr("data-date")),a.selectedMonth=a.currentMonth=n,a.selectedYear=a.currentYear=r,this._selectDate(t,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(t){var n=e(t);this._selectDate(n,"")},_selectDate:function(t,n){var r,i=e(t),a=this._getInst(i[0]);n=null!=n?n:this._formatDate(a),a.input&&a.input.val(n),this._updateAlternate(a),r=this._get(a,"onSelect"),r?r.apply(a.input?a.input[0]:null,[n,a]):a.input&&a.input.trigger("change"),a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!=typeof a.input[0]&&a.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var n,r,i,a=this._get(t,"altField");a&&(n=this._get(t,"altFormat")||this._get(t,"dateFormat"),r=this._getDate(t),i=this.formatDate(n,r,this._getFormatConfig(t)),e(document).find(a).val(i))},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,n=new Date(e.getTime());return n.setDate(n.getDate()+4-(n.getDay()||7)),t=n.getTime(),n.setMonth(0),n.setDate(1),Math.floor(Math.round((t-n)/864e5)/7)+1},parseDate:function(t,n,r){if(null==t||null==n)throw"Invalid arguments";if(n="object"==typeof n?n.toString():n+"",""===n)return null;var i,a,o,s,l=0,u=(r?r.shortYearCutoff:null)||this._defaults.shortYearCutoff,c="string"!=typeof u?u:(new Date).getFullYear()%100+parseInt(u,10),d=(r?r.dayNamesShort:null)||this._defaults.dayNamesShort,h=(r?r.dayNames:null)||this._defaults.dayNames,p=(r?r.monthNamesShort:null)||this._defaults.monthNamesShort,f=(r?r.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,v=-1,y=-1,_=!1,b=function(e){var n=i+1<t.length&&t.charAt(i+1)===e;return n&&i++,n},T=function(e){var t=b(e),r="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,i="y"===e?r:1,a=new RegExp("^\\d{"+i+","+r+"}"),o=n.substring(l).match(a);if(!o)throw"Missing number at position "+l;return l+=o[0].length,parseInt(o[0],10)},E=function(t,r,i){var a=-1,o=e.map(b(t)?i:r,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(e.each(o,function(e,t){var r=t[1];if(n.substr(l,r.length).toLowerCase()===r.toLowerCase())return a=t[0],l+=r.length,!1}),a!==-1)return a+1;throw"Unknown name at position "+l},S=function(){if(n.charAt(l)!==t.charAt(i))throw"Unexpected literal at position "+l;l++};for(i=0;i<t.length;i++)if(_)"'"!==t.charAt(i)||b("'")?S():_=!1;else switch(t.charAt(i)){case"d":v=T("d");break;case"D":E("D",d,h);break;case"o":y=T("o");break;case"m":m=T("m");break;case"M":m=E("M",p,f);break;case"y":g=T("y");break;case"@":s=new Date(T("@")),g=s.getFullYear(),m=s.getMonth()+1,v=s.getDate();break;case"!":s=new Date((T("!")-this._ticksTo1970)/1e4),g=s.getFullYear(),m=s.getMonth()+1,v=s.getDate();break;case"'":b("'")?S():_=!0;break;default:S()}if(l<n.length&&(o=n.substr(l),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(g===-1?g=(new Date).getFullYear():g<100&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(g<=c?0:-100)),y>-1)for(m=1,v=y;;){if(a=this._getDaysInMonth(g,m-1),v<=a)break;m++,v-=a}if(s=this._daylightSavingAdjust(new Date(g,m-1,v)),s.getFullYear()!==g||s.getMonth()+1!==m||s.getDate()!==v)throw"Invalid date";return s},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,n){if(!t)return"";var r,i=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,a=(n?n.dayNames:null)||this._defaults.dayNames,o=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,s=(n?n.monthNames:null)||this._defaults.monthNames,l=function(t){var n=r+1<e.length&&e.charAt(r+1)===t;return n&&r++,n},u=function(e,t,n){var r=""+t;if(l(e))for(;r.length<n;)r="0"+r;return r},c=function(e,t,n,r){return l(e)?r[t]:n[t]},d="",h=!1;if(t)for(r=0;r<e.length;r++)if(h)"'"!==e.charAt(r)||l("'")?d+=e.charAt(r):h=!1;else switch(e.charAt(r)){case"d":d+=u("d",t.getDate(),2);break;case"D":d+=c("D",t.getDay(),i,a);break;case"o":d+=u("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=u("m",t.getMonth()+1,2);break;case"M":d+=c("M",t.getMonth(),o,s);break;case"y":d+=l("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":d+=t.getTime();break;case"!":d+=1e4*t.getTime()+this._ticksTo1970;break;case"'":l("'")?d+="'":h=!0;break;default:d+=e.charAt(r)}return d},_possibleChars:function(e){var t,n="",r=!1,i=function(n){var r=t+1<e.length&&e.charAt(t+1)===n;return r&&t++,r};for(t=0;t<e.length;t++)if(r)"'"!==e.charAt(t)||i("'")?n+=e.charAt(t):r=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":n+="0123456789";break;case"D":case"M":return null;case"'":i("'")?n+="'":r=!0;break;default:n+=e.charAt(t)}return n},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var n=this._get(e,"dateFormat"),r=e.lastVal=e.input?e.input.val():null,i=this._getDefaultDate(e),a=i,o=this._getFormatConfig(e);try{a=this.parseDate(n,r,o)||i}catch(s){r=t?"":r}e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),e.currentDay=r?a.getDate():0,e.currentMonth=r?a.getMonth():0,e.currentYear=r?a.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,n,r){var i=function(e){var t=new Date;return t.setDate(t.getDate()+e),t},a=function(n){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),n,e.datepicker._getFormatConfig(t))}catch(r){}for(var i=(n.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,a=i.getFullYear(),o=i.getMonth(),s=i.getDate(),l=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,u=l.exec(n);u;){switch(u[2]||"d"){case"d":case"D":s+=parseInt(u[1],10);break;case"w":case"W":s+=7*parseInt(u[1],10);break;case"m":case"M":o+=parseInt(u[1],10),s=Math.min(s,e.datepicker._getDaysInMonth(a,o));break;case"y":case"Y":a+=parseInt(u[1],10),s=Math.min(s,e.datepicker._getDaysInMonth(a,o))}u=l.exec(n)}return new Date(a,o,s)},o=null==n||""===n?r:"string"==typeof n?a(n):"number"==typeof n?isNaN(n)?r:i(n):new Date(n.getTime());return o=o&&"Invalid Date"===o.toString()?r:o,o&&(o.setHours(0),o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0)),this._daylightSavingAdjust(o)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,n){var r=!t,i=e.selectedMonth,a=e.selectedYear,o=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=o.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=o.getMonth(),e.drawYear=e.selectedYear=e.currentYear=o.getFullYear(),i===e.selectedMonth&&a===e.selectedYear||n||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(r?"":this._formatDate(e))},_getDate:function(e){var t=!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return t},_attachHandlers:function(t){var n=this._get(t,"stepMonths"),r="#"+t.id.replace(/\\\\/g,"\\");
vendor: 4,399 bytes, line 137
137t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){e.datepicker._adjustDate(r,-n,"M")},next:function(){e.datepicker._adjustDate(r,+n,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(r)},selectDay:function(){return e.datepicker._selectDay(r,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(r,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(r,this,"Y"),!1}};e(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var n,r,i,a,o,s,l,u,c,d,h,p,f,g,m,v,y,_,b,T,E,S,w,C,k,D,x,A,I,O,P,M,R,L,N,U,H,j,B,F=new Date,V=this._daylightSavingAdjust(new Date(F.getFullYear(),F.getMonth(),F.getDate())),W=this._get(t,"isRTL"),z=this._get(t,"showButtonPanel"),$=this._get(t,"hideIfNoPrevNext"),q=this._get(t,"navigationAsDateFormat"),G=this._getNumberOfMonths(t),Y=this._get(t,"showCurrentAtPos"),X=this._get(t,"stepMonths"),K=1!==G[0]||1!==G[1],Q=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),Z=this._getMinMaxDate(t,"min"),J=this._getMinMaxDate(t,"max"),ee=t.drawMonth-Y,te=t.drawYear;if(ee<0&&(ee+=12,te--),J)for(n=this._daylightSavingAdjust(new Date(J.getFullYear(),J.getMonth()-G[0]*G[1]+1,J.getDate())),n=Z&&n<Z?Z:n;this._daylightSavingAdjust(new Date(te,ee,1))>n;)ee--,ee<0&&(ee=11,te--);for(t.drawMonth=ee,t.drawYear=te,r=this._get(t,"prevText"),r=q?this.formatDate(r,this._daylightSavingAdjust(new Date(te,ee-X,1)),this._getFormatConfig(t)):r,i=this._canAdjustMonth(t,-1,te,ee)?e("<a>").attr({"class":"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:r}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"e":"w")).text(r))[0].outerHTML:$?"":e("<a>").attr({"class":"ui-datepicker-prev ui-corner-all ui-state-disabled",title:r}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"e":"w")).text(r))[0].outerHTML,a=this._get(t,"nextText"),a=q?this.formatDate(a,this._daylightSavingAdjust(new Date(te,ee+X,1)),this._getFormatConfig(t)):a,o=this._canAdjustMonth(t,1,te,ee)?e("<a>").attr({"class":"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:a}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"w":"e")).text(a))[0].outerHTML:$?"":e("<a>").attr({"class":"ui-datepicker-next ui-corner-all ui-state-disabled",title:a}).append(e("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(W?"w":"e")).text(a))[0].outerHTML,s=this._get(t,"currentText"),l=this._get(t,"gotoCurrent")&&t.currentDay?Q:V,s=q?this.formatDate(s,l,this._getFormatConfig(t)):s,u="",t.inline||(u=e("<button>").attr({type:"button","class":"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),c="",z&&(c=e("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(W?u:"").append(this._isInRange(t,l)?e("<button>").attr({type:"button","class":"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(s):"").append(W?"":u)[0].outerHTML),d=parseInt(this._get(t,"firstDay"),10),d=isNaN(d)?0:d,h=this._get(t,"showWeek"),p=this._get(t,"dayNames"),f=this._get(t,"dayNamesMin"),g=this._get(t,"monthNames"),m=this._get(t,"monthNamesShort"),v=this._get(t,"beforeShowDay"),y=this._get(t,"showOtherMonths"),_=this._get(t,"selectOtherMonths"),b=this._getDefaultDate(t),T="",S=0;S<G[0];S++){for(w="",this.maxRows=4,C=0;C<G[1];C++){if(k=this._daylightSavingAdjust(new Date(te,ee,t.selectedDay)),D=" ui-corner-all",x="",K){if(x+="<div class='ui-datepicker-group",G[1]>1)switch(C){case 0:x+=" ui-datepicker-group-first",D=" ui-corner-"+(W?"right":"left");break;case G[1]-1:x+=" ui-datepicker-group-last",D=" ui-corner-"+(W?"left":"right");break;default:x+=" ui-datepicker-group-middle",D=""}x+="'>"}for(x+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+D+"'>"+(/all|left/.test(D)&&0===S?W?o:i:"")+(/all|right/.test(D)&&0===S?W?i:o:"")+this._generateMonthYearHeader(t,ee,te,Z,J,S>0||C>0,g,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",A=h?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",E=0;
vendor: 5,933 bytes, lines 137-138
137E<7;E++)I=(E+d)%7,A+="<th scope='col'"+((E+d+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+p[I]+"'>"+f[I]+"</span></th>";for(x+=A+"</tr></thead><tbody>",O=this._getDaysInMonth(te,ee),te===t.selectedYear&&ee===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,O)),P=(this._getFirstDayOfMonth(te,ee)-d+7)%7,M=Math.ceil((P+O)/7),R=K&&this.maxRows>M?this.maxRows:M,this.maxRows=R,L=this._daylightSavingAdjust(new Date(te,ee,1-P)),N=0;N<R;N++){for(x+="<tr>",U=h?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(L)+"</td>":"",E=0;E<7;E++)H=v?v.apply(t.input?t.input[0]:null,[L]):[!0,""],j=L.getMonth()!==ee,B=j&&!_||!H[0]||Z&&L<Z||J&&L>J,U+="<td class='"+((E+d+6)%7>=5?" ui-datepicker-week-end":"")+(j?" ui-datepicker-other-month":"")+(L.getTime()===k.getTime()&&ee===t.selectedMonth&&t._keyEvent||b.getTime()===L.getTime()&&b.getTime()===k.getTime()?" "+this._dayOverClass:"")+(B?" "+this._unselectableClass+" ui-state-disabled":"")+(j&&!y?"":" "+H[1]+(L.getTime()===Q.getTime()?" "+this._currentClass:"")+(L.getTime()===V.getTime()?" ui-datepicker-today":""))+"'"+(j&&!y||!H[2]?"":" title='"+H[2].replace(/'/g,"'")+"'")+(B?"":" data-handler='selectDay' data-event='click' data-month='"+L.getMonth()+"' data-year='"+L.getFullYear()+"'")+">"+(j&&!y?" ":B?"<span class='ui-state-default'>"+L.getDate()+"</span>":"<a class='ui-state-default"+(L.getTime()===V.getTime()?" ui-state-highlight":"")+(L.getTime()===Q.getTime()?" ui-state-active":"")+(j?" ui-priority-secondary":"")+"' href='#' aria-current='"+(L.getTime()===Q.getTime()?"true":"false")+"' data-date='"+L.getDate()+"'>"+L.getDate()+"</a>")+"</td>", 138L.setDate(L.getDate()+1),L=this._daylightSavingAdjust(L);x+=U+"</tr>"}ee++,ee>11&&(ee=0,te++),x+="</tbody></table>"+(K?"</div>"+(G[0]>0&&C===G[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),w+=x}T+=w}return T+=c,t._keyEvent=!1,T},_generateMonthYearHeader:function(e,t,n,r,i,a,o,s){var l,u,c,d,h,p,f,g,m=this._get(e,"changeMonth"),v=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),_=this._get(e,"selectMonthLabel"),b=this._get(e,"selectYearLabel"),T="<div class='ui-datepicker-title'>",E="";if(a||!m)E+="<span class='ui-datepicker-month'>"+o[t]+"</span>";else{for(l=r&&r.getFullYear()===n,u=i&&i.getFullYear()===n,E+="<select class='ui-datepicker-month' aria-label='"+_+"' data-handler='selectMonth' data-event='change'>",c=0;c<12;c++)(!l||c>=r.getMonth())&&(!u||c<=i.getMonth())&&(E+="<option value='"+c+"'"+(c===t?" selected='selected'":"")+">"+s[c]+"</option>");E+="</select>"}if(y||(T+=E+(!a&&m&&v?"":" ")),!e.yearshtml)if(e.yearshtml="",a||!v)T+="<span class='ui-datepicker-year'>"+n+"</span>";else{for(d=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),p=function(e){var t=e.match(/c[+\-].*/)?n+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(t)?h:t},f=p(d[0]),g=Math.max(f,p(d[1]||"")),f=r?Math.max(f,r.getFullYear()):f,g=i?Math.min(g,i.getFullYear()):g,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+b+"' data-handler='selectYear' data-event='change'>";f<=g;f++)e.yearshtml+="<option value='"+f+"'"+(f===n?" selected='selected'":"")+">"+f+"</option>";e.yearshtml+="</select>",T+=e.yearshtml,e.yearshtml=null}return T+=this._get(e,"yearSuffix"),y&&(T+=(!a&&m&&v?"":" ")+E),T+="</div>"},_adjustInstDate:function(e,t,n){var r=e.selectedYear+("Y"===n?t:0),i=e.selectedMonth+("M"===n?t:0),a=Math.min(e.selectedDay,this._getDaysInMonth(r,i))+("D"===n?t:0),o=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(r,i,a)));e.selectedDay=o.getDate(),e.drawMonth=e.selectedMonth=o.getMonth(),e.drawYear=e.selectedYear=o.getFullYear(),"M"!==n&&"Y"!==n||this._notifyChange(e)},_restrictMinMax:function(e,t){var n=this._getMinMaxDate(e,"min"),r=this._getMinMaxDate(e,"max"),i=n&&t<n?n:t;return r&&i>r?r:i},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,n,r){var i=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(n,r+(t<0?t:i[0]*i[1]),1));return t<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var n,r,i=this._getMinMaxDate(e,"min"),a=this._getMinMaxDate(e,"max"),o=null,s=null,l=this._get(e,"yearRange");return l&&(n=l.split(":"),r=(new Date).getFullYear(),o=parseInt(n[0],10),s=parseInt(n[1],10),n[0].match(/[+\-].*/)&&(o+=r),n[1].match(/[+\-].*/)&&(s+=r)),(!i||t.getTime()>=i.getTime())&&(!a||t.getTime()<=a.getTime())&&(!o||t.getFullYear()>=o)&&(!s||t.getFullYear()<=s)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,n,r){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var i=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(r,n,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),i,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);
138var n=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n)):this.each(function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(n)):e.datepicker._attachDatepicker(this,t)}):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(n))},e.datepicker=new n,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.13.2",e.datepicker})},function(e,t,n){var r,i,a;!function(o){"use strict";i=[n(3)],r=o,a="function"==typeof r?r.apply(t,i):r,!(void 0!==a&&(e.exports=a))}(function(e){"use strict";return e.ui=e.ui||{},e.ui.version="1.13.2"})},function(e,t,n){var r,i,a;/*! 139 * jQuery UI Keycode 1.13.2 140 * http://jqueryui.com 141 * 142 * Copyright jQuery Foundation and other contributors 143 * Released under the MIT license. 144 * http://jquery.org/license 145 */ 146!function(o){"use strict";i=[n(3),n(79)],r=o,a="function"==typeof r?r.apply(t,i):r,!(void 0!==a&&(e.exports=a))}(function(e){"use strict";return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})},function(e,t,n){var r,i,a;!function(o){"use strict";i=[n(78)],r=o,a="function"==typeof r?r.apply(t,i):r,!(void 0!==a&&(e.exports=a))}(function(e){"use strict";return e.regional.it={closeText:"Chiudi",prevText:"Prec",nextText:"Succ",currentText:"Oggi",monthNames:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthNamesShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],dayNames:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],dayNamesShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayNamesMin:["Do","Lu","Ma","Me","Gi","Ve","Sa"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},e.setDefaults(e.regional.it),e.regional.it})},function(e,t,n){(function(e){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n(83);var a=function(){function t(n){r(this,t),this.$element=n,this.args=e.extend(!0,{},this.defaults(),Utils.options(n.attr("data-module-args"))),this.bind()}return i(t,[{key:"defaults",value:function(){return{ajax:"",toggle:".months_list .ym_link"}}}]),i(t,[{key:"bind",value:function(){var t=this,n=t.$element.find(t.args.toggle);t.calcSlideCta(),e(window).on("resize",function(){t.calcSlideCta()}),t.setHoverEvents(),n.on("click",function(){var n=e(this),r=null;t.$element.find(".sn_calendar_sticky_i._cta").hide(),"undefined"==typeof n.data("days")?e.ajax({type:"POST",url:t.args.ajax,data:{action:"calendar",y:n.data("y"),m:n.data("m")},dataType:"json",success:function(e){e&&(n.attr("data-days",JSON.stringify(e)),r=e,t.updateCalendar(n,r),t.calcSlideCta())},error:function(e){console.log("Error!")}}):(r=n.data("days"),e(document).on("e_addedCalendarSlides",function(){t.calcSlideCta()})),t.updateCalendar(n,r)})}},{key:"updateCalendar",value:function(t,n){var r=this;r.$element.find(".sn_calendar_sticky_toggle").html(t.html()),e(document).trigger("e_removeCalendarSlides"),e(document).trigger("e_addCalendarSlides",[n])}},{key:"setHoverEvents",value:function(){e(".sn_calendar_sticky_i._day .dropdown").on("mouseenter click",function(t){e(this).find(".dropdown-toggle._has_events").dropdown("toggle")}
146),e(".sn_calendar_sticky_i._day .dropdown").on("mouseleave",function(t){e(this).removeClass("show"),e(this).find(".dropdown-toggle").blur(),e(this).find(".dropdown-menu").removeClass("show")})}},{key:"calcSlideCta",value:function(){var t=this,n=t.$element.find(".sn_calendar_sticky_i._cta");if(n.length){var r=0;t.$element.find(".sn_calendar_sticky_i:visible").not("._cta").each(function(){r+=e(this).outerWidth()}),r<=e(window).width()-520?(n.width(e(window).width()-r),n.show()):n.hide()}}}]),t}();t["default"]=a}).call(t,n(3))},function(e,t,n){(function(e){/*! 147 * Bootstrap v4.1.3 (https://getbootstrap.com/) 148 * Copyright 2011-2018 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) 149 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) 150 */ 151!function(e,r){r(t,n(3))}(this,function(t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){a(e,t,n[t])})}return e}function s(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function l(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function u(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},Ee))}}function c(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function d(e,t){if(1!==e.nodeType)return[];var n=getComputedStyle(e,null);return t?n[t]:n}function h(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function p(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=d(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/(auto|scroll|overlay)/.test(n+i+r)?e:p(h(e))}function f(e){return 11===e?ke:10===e?De:ke||De}function g(e){if(!e)return document.documentElement;for(var t=f(10)?document.body:null,n=e.offsetParent;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?["TD","TABLE"].indexOf(n.nodeName)!==-1&&"static"===d(n,"position")?g(n):n:e?e.ownerDocument.documentElement:document.documentElement}function m(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||g(e.firstElementChild)===e)}function v(e){return null!==e.parentNode?v(e.parentNode):e}function y(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(i,0);var o=a.commonAncestorContainer;if(e!==o&&t!==o||r.contains(i))return m(o)?o:g(o);var s=v(e);return s.host?y(s.host,t):y(e,v(t).host)}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var i=e.ownerDocument.documentElement,a=e.ownerDocument.scrollingElement||i;return a[n]}return e[n]}function b(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=_(t,"top"),i=_(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=i*a,e.right+=i*a,e}function T(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function E(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],f(10)?n["offset"+e]+r["margin"+("Height"===e?"Top":"Left")]+r["margin"+("Height"===e?"Bottom":"Right")]:0)}function S(){var e=document.body,t=document.documentElement,n=f(10)&&getComputedStyle(t);return{height:E("Height",e,t,n),width:E("Width",e,t,n)}}function w(e){return Oe({},e,{right:e.left+e.width,bottom:e.top+e.height})}function C(e){var t={};try{if(f(10)){t=e.getBoundingClientRect();var n=_(e,"top"),r=_(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(i){}var a={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top}
vendor: 5,942 bytes, line 151
151,o="HTML"===e.nodeName?S():{},s=o.width||e.clientWidth||a.right-a.left,l=o.height||e.clientHeight||a.bottom-a.top,u=e.offsetWidth-s,c=e.offsetHeight-l;if(u||c){var h=d(e);u-=T(h,"x"),c-=T(h,"y"),a.width-=u,a.height-=c}return w(a)}function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=f(10),i="HTML"===t.nodeName,a=C(e),o=C(t),s=p(e),l=d(t),u=parseFloat(l.borderTopWidth,10),c=parseFloat(l.borderLeftWidth,10);n&&"HTML"===t.nodeName&&(o.top=Math.max(o.top,0),o.left=Math.max(o.left,0));var h=w({top:a.top-o.top-u,left:a.left-o.left-c,width:a.width,height:a.height});if(h.marginTop=0,h.marginLeft=0,!r&&i){var g=parseFloat(l.marginTop,10),m=parseFloat(l.marginLeft,10);h.top-=u-g,h.bottom-=u-g,h.left-=c-m,h.right-=c-m,h.marginTop=g,h.marginLeft=m}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(h=b(h,t)),h}function D(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=k(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:_(n),s=t?0:_(n,"left"),l={top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:a};return w(l)}function x(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===d(e,"position")||x(h(e)))}function A(e){if(!e||!e.parentElement||f())return document.documentElement;for(var t=e.parentElement;t&&"none"===d(t,"transform");)t=t.parentElement;return t||document.documentElement}function I(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],a={top:0,left:0},o=i?A(e):y(e,t);if("viewport"===r)a=D(o,i);else{var s=void 0;"scrollParent"===r?(s=p(h(t)),"BODY"===s.nodeName&&(s=e.ownerDocument.documentElement)):s="window"===r?e.ownerDocument.documentElement:r;var l=k(s,o,i);if("HTML"!==s.nodeName||x(o))a=l;else{var u=S(),c=u.height,d=u.width;a.top+=l.top-l.marginTop,a.bottom=c+l.top,a.left+=l.left-l.marginLeft,a.right=d+l.left}}return a.left+=n,a.top+=n,a.right-=n,a.bottom-=n,a}function O(e){var t=e.width,n=e.height;return t*n}function P(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(e.indexOf("auto")===-1)return e;var o=I(n,r,a,i),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},l=Object.keys(s).map(function(e){return Oe({key:e},s[e],{area:O(s[e])})}).sort(function(e,t){return t.area-e.area}),u=l.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),c=u.length>0?u[0].key:l[0].key,d=e.split("-")[1];return c+(d?"-"+d:"")}function M(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=r?A(t):y(t,n);return k(n,i,r)}function R(e){var t=getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight),i={width:e.offsetWidth+r,height:e.offsetHeight+n};return i}function L(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function N(e,t,n){n=n.split("-")[0];var r=R(e),i={width:r.width,height:r.height},a=["right","left"].indexOf(n)!==-1,o=a?"top":"left",s=a?"left":"top",l=a?"height":"width",u=a?"width":"height";return i[o]=t[o]+t[l]/2-r[l]/2,n===s?i[s]=t[s]-r[u]:i[s]=t[L(s)],i}function U(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function H(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=U(e,function(e){return e[t]===n});return e.indexOf(r)}function j(e,t,n){var r=void 0===n?e:e.slice(0,H(e,"name",n));return r.forEach(function(e){e["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e["function"]||e.fn;e.enabled&&c(n)&&(t.offsets.popper=w(t.offsets.popper),t.offsets.reference=w(t.offsets.reference),t=n(t,e))}),t}function B(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=M(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=P(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=N(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=j(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function F(e,t){return e.some(function(e){var n=e.name,r=e.enabled;return r&&n===t})}function V(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var i=t[r],a=i?""+i+n:e;if("undefined"!=typeof document.body.style[a])return a}return null}function W(){return this.state.isDestroyed=!0,F(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[V("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function z(e){var t=e.ownerDocument;return t?t.defaultView:window}function $(e,t,n,r){var i="BODY"===e.nodeName,a=i?e.ownerDocument.defaultView:e;a.addEventListener(t,n,{passive:!0}),i||$(p(a.parentNode),t,n,r),r.push(a)}function q(e,t,n,r){n.updateBound=r,z(e).addEventListener("resize",n.updateBound,{passive:!0});var i=p(e);return $(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function G(){this.state.eventsEnabled||(this.state=q(this.reference,this.options,this.state,this.scheduleUpdate))}function Y(e,t){return z(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEac
151h(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function X(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Y(this.reference,this.state))}function K(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function Q(e,t){Object.keys(t).forEach(function(n){var r="";["width","height","top","right","bottom","left"].indexOf(n)!==-1&&K(t[n])&&(r="px"),e.style[n]=t[n]+r})}function Z(e,t){Object.keys(t).forEach(function(n){var r=t[n];r!==!1?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function J(e){return Q(e.instance.popper,e.styles),Z(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&Q(e.arrowElement,e.arrowStyles),e}function ee(e,t,n,r,i){var a=M(i,t,e,n.positionFixed),o=P(n.placement,a,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),Q(t,{position:n.positionFixed?"fixed":"absolute"}),n}function te(e,t){var n=t.x,r=t.y,i=e.offsets.popper,a=U(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o=void 0!==a?a:t.gpuAcceleration,s=g(e.instance.popper),l=C(s),u={position:i.position},c={left:Math.floor(i.left),top:Math.round(i.top),bottom:Math.round(i.bottom),right:Math.floor(i.right)},d="bottom"===n?"top":"bottom",h="right"===r?"left":"right",p=V("transform"),f=void 0,m=void 0;if(m="bottom"===d?-l.height+c.bottom:c.top,f="right"===h?-l.width+c.right:c.left,o&&p)u[p]="translate3d("+f+"px, "+m+"px, 0)",u[d]=0,u[h]=0,u.willChange="transform";else{var v="bottom"===d?-1:1,y="right"===h?-1:1;u[d]=m*v,u[h]=f*y,u.willChange=d+", "+h}var _={"x-placement":e.placement};return e.attributes=Oe({},_,e.attributes),e.styles=Oe({},u,e.styles),e.arrowStyles=Oe({},e.offsets.arrow,e.arrowStyles),e}function ne(e,t,n){var r=U(e,function(e){var n=e.name;return n===t}),i=!!r&&e.some(function(e){return e.name===n&&e.enabled&&e.order<r.order});if(!i){var a="`"+t+"`",o="`"+n+"`";console.warn(o+" modifier is required by "+a+" modifier in order to work, be sure to include it before "+a+"!")}return i}function re(e,t){var n;if(!ne(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(r=e.instance.popper.querySelector(r),!r)return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var i=e.placement.split("-")[0],a=e.offsets,o=a.popper,s=a.reference,l=["left","right"].indexOf(i)!==-1,u=l?"height":"width",c=l?"Top":"Left",h=c.toLowerCase(),p=l?"left"
151:"top",f=l?"bottom":"right",g=R(r)[u];s[f]-g<o[h]&&(e.offsets.popper[h]-=o[h]-(s[f]-g)),s[h]+g>o[f]&&(e.offsets.popper[h]+=s[h]+g-o[f]),e.offsets.popper=w(e.offsets.popper);var m=s[h]+s[u]/2-g/2,v=d(e.instance.popper),y=parseFloat(v["margin"+c],10),_=parseFloat(v["border"+c+"Width"],10),b=m-e.offsets.popper[h]-y-_;return b=Math.max(Math.min(o[u]-g,b),0),e.arrowElement=r,e.offsets.arrow=(n={},Ie(n,h,Math.round(b)),Ie(n,p,""),n),e}function ie(e){return"end"===e?"start":"start"===e?"end":e}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Me.indexOf(e),r=Me.slice(n+1).concat(Me.slice(0,n));return t?r.reverse():r}function oe(e,t){if(F(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=I(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=L(r),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case Re.FLIP:o=[r,i];break;case Re.CLOCKWISE:o=ae(r);break;case Re.COUNTERCLOCKWISE:o=ae(r,!0);break;default:o=t.behavior}return o.forEach(function(s,l){if(r!==s||o.length===l+1)return e;r=e.placement.split("-")[0],i=L(r);var u=e.offsets.popper,c=e.offsets.reference,d=Math.floor,h="left"===r&&d(u.right)>d(c.left)||"right"===r&&d(u.left)<d(c.right)||"top"===r&&d(u.bottom)>d(c.top)||"bottom"===r&&d(u.top)<d(c.bottom),p=d(u.left)<d(n.left),f=d(u.right)>d(n.right),g=d(u.top)<d(n.top),m=d(u.bottom)>d(n.bottom),v="left"===r&&p||"right"===r&&f||"top"===r&&g||"bottom"===r&&m,y=["top","bottom"].indexOf(r)!==-1,_=!!t.flipVariations&&(y&&"start"===a&&p||y&&"end"===a&&f||!y&&"start"===a&&g||!y&&"end"===a&&m);(h||v||_)&&(e.flipped=!0,(h||v)&&(r=o[l+1]),_&&(a=ie(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=Oe({},e.offsets.popper,N(e.instance.popper,e.offsets.reference,e.placement)),e=j(e.instance.modifiers,e,"flip"))}),e}function se(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],a=Math.floor,o=["top","bottom"].indexOf(i)!==-1,s=o?"right":"bottom",l=o?"left":"top",u=o?"width":"height";return n[s]<a(r[l])&&(e.offsets.popper[l]=a(r[l])-n[u]),n[l]>a(r[s])&&(e.offsets.popper[l]=a(r[s])),e}function le(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],o=i[2];if(!a)return e;if(0===o.indexOf("%")){var s=void 0;switch(o){case"%p":s=n;break;case"%":case"%r":default:s=r}var l=w(s);return l[t]/100*a}if("vh"===o||"vw"===o){var u=void 0;return u="vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0),u/100*a}return a}function ue(e,t,n,r){var i=[0,0],a=["right","left"].indexOf(r)!==-1,o=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=o.indexOf(U(o,function(e){return e.search(/,|\s/)!==-1}));o[s]&&o[s].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=s!==-1?[o.slice(0,s).concat([o[s].split(l)[0]]),[o[s].split(l)[1]].concat(o.slice(s+1))]:[o];return u=u.map(function(e,r){var i=(1===r?!a:a)?"height":"width",o=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&["+","-"].indexOf(t)!==-1?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)},[]).map(function(e){return le(e,i,t,n)})}),u.forEach(function(e,t){e.forEach(function(n,r){K(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))})}),i}function ce(e,t){var n=t.offset,r=e.placement,i=e.offsets,a=i.popper,o=i.reference,s=r.split("-")[0],l=void 0;return l=K(+n)?[+n,0]:ue(n,a,o,s),"left"===s?(a.top+=l[0],a.left-=l[1]):"right"===s?(a.top+=l[0],a.left+=l[1]):"top"===s?(a.left+=l[0],a.top-=l[1]):"bottom"===s&&(a.left+=l[0],a.top+=l[1]),e.popper=a,e}function de(e,t){var n=t.boundariesElement||g(e.instance.popper);e.instance.reference===n&&(n=g(n));var r=V("transform"),i=e.instance.popper.style,a=i.top,o=i.left,s=i[r];i.top="",i.left="",i[r]="";var l=I(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);i.top=a,i.left=o,i[r]=s,t.boundaries=l;var u=t.priority,c=e.offsets.popper,d={primary:function(e){var n=c[e];return c[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(c[e],l[e])),Ie({},e,n)}
151,secondary:function(e){var n="right"===e?"left":"top",r=c[n];return c[e]>l[e]&&!t.escapeWithReference&&(r=Math.min(c[n],l[e]-("right"===e?c.width:c.height))),Ie({},n,r)}};return u.forEach(function(e){var t=["left","top"].indexOf(e)!==-1?"primary":"secondary";c=Oe({},c,d[t](e))}),e.offsets.popper=c,e}function he(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var i=e.offsets,a=i.reference,o=i.popper,s=["bottom","top"].indexOf(n)!==-1,l=s?"left":"top",u=s?"width":"height",c={start:Ie({},l,a[l]),end:Ie({},l,a[l]+a[u]-o[u])};e.offsets.popper=Oe({},o,c[r])}return e}function pe(e){if(!ne(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=U(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===!0)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===!1)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function fe(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,a=r.reference,o=["left","right"].indexOf(n)!==-1,s=["top","left"].indexOf(n)===-1;return i[o?"left":"top"]=a[n]-(s?i[o?"width":"height"]:0),e.placement=L(t),e.offsets.popper=w(i),e}n=n&&n.hasOwnProperty("default")?n["default"]:n;for(var ge=function(e){function t(e){return{}.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()}function n(){return{bindType:a,delegateType:a,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}}function r(t){var n=this,r=!1;return e(this).one(l.TRANSITION_END,function(){r=!0}),setTimeout(function(){r||l.triggerTransitionEnd(n)},t),this}function i(){e.fn.emulateTransitionEnd=r,e.event.special[l.TRANSITION_END]=n()}var a="transitionend",o=1e6,s=1e3,l={TRANSITION_END:"bsTransitionEnd",getUID:function(e){do e+=~~(Math.random()*o);while(document.getElementById(e));return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");t&&"#"!==t||(t=e.getAttribute("href")||"");try{return document.querySelector(t)?t:null}catch(n){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var n=e(t).css("transition-duration"),r=parseFloat(n);return r?(n=n.split(",")[0],parseFloat(n)*s):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(t){e(t).trigger(a)},supportsTransitionEnd:function(){return Boolean(a)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,n,r){for(var i in r)if(Object.prototype.hasOwnProperty.call(r,i)){var a=r[i],o=n[i],s=o&&l.isElement(o)?"element":t(o);if(!new RegExp(a).test(s))throw new Error(e.toUpperCase()+": "+('Option "'+i+'" provided type "'+s+'" ')+('but expected type "'+a+'".'))}}};return i(),l}(n),me=function(e){var t="alert",n="4.1.3",r="bs.alert",a="."+r,o=".data-api",s=e.fn[t],l={DISMISS:'[data-dismiss="alert"]'},u={CLOSE:"close"+a,CLOSED:"closed"+a,CLICK_DATA_API:"click"+a+o},c={ALERT:"alert",FADE:"fade",SHOW:"show"},d=function(){function t(e){this._element=e}var a=t.prototype;return a.close=function(e){var t=this._element;e&&(t=this._getRootElement(e));var n=this._triggerCloseEvent(t);n.isDefaultPrevented()||this._removeElement(t)},a.dispose=function(){e.removeData(this._element,r),this._element=null},a._getRootElement=function(t){var n=ge.getSelectorFromElement(t),r=!1;return n&&(r=document.querySelector(n)),r||(r=e(t).closest("."+c.ALERT)[0]),r},a._triggerCloseEvent=function(t){var n=e.Event(u.CLOSE);return e(t).trigger(n),n},a._removeElement=function(t){var n=this;if(e(t).removeClass(c.SHOW),!e(t).hasClass(c.FADE))return void this._destroyElement(t);var r=ge.getTransitionDurationFromElement(t);e(t).one(ge.TRANSITION_END,function(e){return n._destroyElement(t,e)}).emulateTransitionEnd(r)},a._destroyElement=function(t){e(t).detach().trigger(u.CLOSED).remove()},t._jQueryInterface=function(n){return this.each(function(){var i=e(this),a=i.data(r);a||(a=new t(this),i.data(r,a)),"close"===n&&a[n](this)})},t._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},i(t,null,[{key:"VERSION",get:function(){return n}}]),t}();return e(document).on(u.CLICK_DATA_API,l.DISMISS,d._handleDismiss(new d)),e.fn[t]=d._jQueryInterface,e.fn[t].Constructor=d,e.fn[t].noConflict=function(){return e.fn[t]=s,d._jQueryInterface},d}(n),ve=function(e){var t="button",n="4.1.3",r="bs.button",a="."+r,o=".data-api",s=e.fn[t],l={ACTIVE:"active",BUTTON:"bt
151n",FOCUS:"focus"},u={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},c={CLICK_DATA_API:"click"+a+o,FOCUS_BLUR_DATA_API:"focus"+a+o+" "+("blur"+a+o)},d=function(){function t(e){this._element=e}var a=t.prototype;return a.toggle=function(){var t=!0,n=!0,r=e(this._element).closest(u.DATA_TOGGLE)[0];if(r){var i=this._element.querySelector(u.INPUT);if(i){if("radio"===i.type)if(i.checked&&this._element.classList.contains(l.ACTIVE))t=!1;else{var a=r.querySelector(u.ACTIVE);a&&e(a).removeClass(l.ACTIVE)}if(t){if(i.hasAttribute("disabled")||r.hasAttribute("disabled")||i.classList.contains("disabled")||r.classList.contains("disabled"))return;i.checked=!this._element.classList.contains(l.ACTIVE),e(i).trigger("change")}i.focus(),n=!1}}n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(l.ACTIVE)),t&&e(this._element).toggleClass(l.ACTIVE)},a.dispose=function(){e.removeData(this._element,r),this._element=null},t._jQueryInterface=function(n){return this.each(function(){var i=e(this).data(r);i||(i=new t(this),e(this).data(r,i)),"toggle"===n&&i[n]()})},i(t,null,[{key:"VERSION",get:function(){return n}}]),t}();return e(document).on(c.CLICK_DATA_API,u.DATA_TOGGLE_CARROT,function(t){t.preventDefault();var n=t.target;e(n).hasClass(l.BUTTON)||(n=e(n).closest(u.BUTTON)),d._jQueryInterface.call(e(n),"toggle")}).on(c.FOCUS_BLUR_DATA_API,u.DATA_TOGGLE_CARROT,function(t){var n=e(t.target).closest(u.BUTTON)[0];e(n).toggleClass(l.FOCUS,/^focus(in)?$/.test(t.type))}),e.fn[t]=d._jQueryInterface,e.fn[t].Constructor=d,e.fn[t].noConflict=function(){return e.fn[t]=s,d._jQueryInterface},d}(n),ye=(function(e){var t="carousel",n="4.1.3",r="bs.carousel",a="."+r,s=".data-api",l=e.fn[t],u=37,c=39,d=500,h={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},p={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},f={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},g={SLIDE:"slide"+a,SLID:"slid"+a,KEYDOWN:"keydown"+a,MOUSEENTER:"mouseenter"+a,MOUSELEAVE:"mouseleave"+a,TOUCHEND:"touchend"+a,LOAD_DATA_API:"load"+a+s,CLICK_DATA_API:"click"+a+s},m={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},v={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},y=function(){function s(t,n){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(n),this._element=e(t)[0],this._indicatorsElement=this._element.querySelector(v.INDICATORS),this._addEventListeners()}var l=s.prototype;return l.next=function(){this._isSliding||this._slide(f.NEXT)},l.nextWhenVisible=function(){!document.hidden&&e(this._element).is(":visible")&&"hidden"!==e(this._element).css("visibility")&&this.next()},l.prev=function(){this._isSliding||this._slide(f.PREV)},l.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(v.NEXT_PREV)&&(ge.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},l.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},l.to=function(t){var n=this;this._activeElement=this._element.querySelector(v.ACTIVE_ITEM);var r=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0)){if(this._isSliding)return void e(this._element).one(g.SLID,function(){return n.to(t)});if(r===t)return this.pause(),void this.cycle();var i=t>r?f.NEXT:f.PREV;this._slide(i,this._items[t])}},l.dispose=function(){e(this._element).off(a),e.removeData(this._element,r),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},l._getConfig=function(e){return e=o({},h,e),ge.typeCheckConfig(t,e,p),e},l._addEventListeners=function(){var t=this;this._config.keyboard&&e(this._element).on(g.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&(e(this._element).on(g.MOUSEENTER,function(e){return t.pause(e)}).on(g.MOUSELEAVE,function(e){return t.cycle(e)}),"ontouchstart"in document.documentElement&&e(this._element).on(g.TOUCHEND,function(){t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},d+t._config.interval)}))},l._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case u:e.preventDefault(),this.prev();break;case c:e.preventDefault(),this.next()}},l._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(v.ITEM)):[],this._items.indexOf(e)},l._getItemByDirection=function(e,t){var n=e===f.NEXT,r=e===f.PREV,i=this._getItemIndex(t),a=this._items.length-1,o=r&&0===i||n&&i===a;if(o&&!this._config.wrap)return t;var s=e===f.PREV?-1:1,l=(i+s)%this._items.length;return l===-1?this._items[this._items.length-1]:this._items[l]},l._triggerSlideEvent=function(t,n){var r=this._getItemIndex(t),i=this._getItemIndex(this._element.querySelector(v.ACTIVE_ITEM)),a=e.Event(g.SLIDE,{relatedTarget:t,direction:n,from:i,to:r});return e(this._element).trigger(a),a},l._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(v.ACTIVE));e(n).removeClass(m.ACTIVE);var r=this._indicatorsElement.children[this._getItemIndex(t)];r&&e(r).addClass(m.ACTIVE)}},l._slide=function(t,n){var r,i,a,o=this,s=this._element.querySelector(v.ACTIVE_ITEM),l=this._getItemIndex(s),u=n||s&&this._getItemByDirection(t,s),c=this._getItemIndex(u),d=Boolean(this._interval);if(t===f.NEXT?(r=m.LEFT,i=m.NEXT,a=f.LEFT):(r=m.RIGHT,i=m.PREV,a=f.RIGHT),u&&e(u).hasClass(m.ACTIVE))return void(this._isSliding=!1);var h=this._triggerSlideEvent(u,a);if(!h.isDefaultPrevented()&&s&&u){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(u);var p=e.Event(g.SLID,{relatedTarget:u,direction:a,from:l,to:c});if(e(this._element).hasClass(m.SLIDE)){e(u).addClass(i),ge.reflow(u),e(s).addClass(r),e(u).addClass(r);var y=ge.getTransitionDurationFromElement(s);e(s).one(ge.TRANSITION_END,function(){e(u).removeClass(r+" "+i).addClass(m.ACTIVE),e(s).removeClass(m.ACTIVE+" "+i+" "+r),o._isSliding=!1,setTimeout(function(){return e(o._element).trigger(p)},0)}).emulateTransitionEnd(y)}else e(s).removeClass(m.ACTIVE),e(u).addClass(m.ACTIVE),this._isSliding=!1,e(this._element).trigger(p);d&&this.cycle()}},s._jQueryInterface=function(t){return this.each(function(){var n=e(this).data(r),i=o({},h,e(this).data());"object"==typeof t&&(i=o({},i,t));var a="string"==typeof t?t:i.slide;if(n||(n=new s(this,i),e(this).data(r,n)),"number"==typeof t)n.to(t);else if("string"==typeof a){if("undefined"==typeof n[a])throw new TypeError('No method n
151amed "'+a+'"');n[a]()}else i.interval&&(n.pause(),n.cycle())})},s._dataApiClickHandler=function(t){var n=ge.getSelectorFromElement(this);if(n){var i=e(n)[0];if(i&&e(i).hasClass(m.CAROUSEL)){var a=o({},e(i).data(),e(this).data()),l=this.getAttribute("data-slide-to");l&&(a.interval=!1),s._jQueryInterface.call(e(i),a),l&&e(i).data(r).to(l),t.preventDefault()}}},i(s,null,[{key:"VERSION",get:function(){return n}},{key:"Default",get:function(){return h}}]),s}();return e(document).on(g.CLICK_DATA_API,v.DATA_SLIDE,y._dataApiClickHandler),e(window).on(g.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(v.DATA_RIDE)),n=0,r=t.length;n<r;n++){var i=e(t[n]);y._jQueryInterface.call(i,i.data())}}),e.fn[t]=y._jQueryInterface,e.fn[t].Constructor=y,e.fn[t].noConflict=function(){return e.fn[t]=l,y._jQueryInterface},y}(n)),_e=function(e){var t="collapse",n="4.1.3",r="bs.collapse",a="."+r,s=".data-api",l=e.fn[t],u={toggle:!0,parent:""},c={toggle:"boolean",parent:"(string|element)"},d={SHOW:"show"+a,SHOWN:"shown"+a,HIDE:"hide"+a,HIDDEN:"hidden"+a,CLICK_DATA_API:"click"+a+s},h={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},p={WIDTH:"width",HEIGHT:"height"},f={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},g=function(){function a(t,n){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(n),this._triggerArray=e.makeArray(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],'+('[data-toggle="collapse"][data-target="#'+t.id+'"]')));for(var r=[].slice.call(document.querySelectorAll(f.DATA_TOGGLE)),i=0,a=r.length;i<a;i++){var o=r[i],s=ge.getSelectorFromElement(o),l=[].slice.call(document.querySelectorAll(s)).filter(function(e){return e===t});null!==s&&l.length>0&&(this._selector=s,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var s=a.prototype;return s.toggle=function(){e(this._element).hasClass(h.SHOW)?this.hide():this.show()},s.show=function(){var t=this;if(!this._isTransitioning&&!e(this._element).hasClass(h.SHOW)){var n,i;if(this._parent&&(n=[].slice.call(this._parent.querySelectorAll(f.ACTIVES)).filter(function(e){return e.getAttribute("data-parent")===t._config.parent}),0===n.length&&(n=null)),!(n&&(i=e(n).not(this._selector).data(r),i&&i._isTransitioning))){var o=e.Event(d.SHOW);if(e(this._element).trigger(o),!o.isDefaultPrevented()){n&&(a._jQueryInterface.call(e(n).not(this._selector),"hide"),i||e(n).data(r,null));var s=this._getDimension();e(this._element).removeClass(h.COLLAPSE).addClass(h.COLLAPSING),this._element.style[s]=0,this._triggerArray.length&&e(this._triggerArray).removeClass(h.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var l=function(){e(t._element).removeClass(h.COLLAPSING).addClass(h.COLLAPSE).addClass(h.SHOW),t._element.style[s]="",t.setTransitioning(!1),e(t._element).trigger(d.SHOWN)},u=s[0].toUpperCase()+s.slice(1),c="scroll"+u,p=ge.getTransitionDurationFromElement(this._element);e(this._element).one(ge.TRANSITION_END,l).emulateTransitionEnd(p),this._element.style[s]=this._element[c]+"px"}}}},s.hide=function(){var t=this;if(!this._isTransitioning&&e(this._element).hasClass(h.SHOW)){var n=e.Event(d.HIDE);if(e(this._element).trigger(n),!n.isDefaultPrevented()){var r=this._getDimension();this._element.style[r]=this._element.getBoundingClientRect()[r]+"px",ge.reflow(this._element),e(this._element).addClass(h.COLLAPSING).removeClass(h.COLLAPSE).removeClass(h.SHOW);var i=this._triggerArray.length;if(i>0)for(var a=0;a<i;a++){var o=this._triggerArray[a],s=ge.getSelectorFromElement(o);if(null!==s){var l=e([].slice.call(document.querySelectorAll(s))); 152l.hasClass(h.SHOW)||e(o).addClass(h.COLLAPSED).attr("aria-expanded",!1)}}this.setTransitioning(!0);var u=function(){t.setTransitioning(!1),e(t._element).removeClass(h.COLLAPSING).addClass(h.COLLAPSE).trigger(d.HIDDEN)};this._element.style[r]="";var c=ge.getTransitionDurationFromElement(this._element);e(this._element).one(ge.TRANSITION_END,u).emulateTransitionEnd(c)}}},s.setTransitioning=function(e){this._isTransitioning=e},s.dispose=function(){e.removeData(this._element,r),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},s._getConfig=function(e){return e=o({}
152,u,e),e.toggle=Boolean(e.toggle),ge.typeCheckConfig(t,e,c),e},s._getDimension=function(){var t=e(this._element).hasClass(p.WIDTH);return t?p.WIDTH:p.HEIGHT},s._getParent=function(){var t=this,n=null;ge.isElement(this._config.parent)?(n=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(n=this._config.parent[0])):n=document.querySelector(this._config.parent);var r='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',i=[].slice.call(n.querySelectorAll(r));return e(i).each(function(e,n){t._addAriaAndCollapsedClass(a._getTargetFromElement(n),[n])}),n},s._addAriaAndCollapsedClass=function(t,n){if(t){var r=e(t).hasClass(h.SHOW);n.length&&e(n).toggleClass(h.COLLAPSED,!r).attr("aria-expanded",r)}},a._getTargetFromElement=function(e){var t=ge.getSelectorFromElement(e);return t?document.querySelector(t):null},a._jQueryInterface=function(t){return this.each(function(){var n=e(this),i=n.data(r),s=o({},u,n.data(),"object"==typeof t&&t?t:{});if(!i&&s.toggle&&/show|hide/.test(t)&&(s.toggle=!1),i||(i=new a(this,s),n.data(r,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError('No method named "'+t+'"');i[t]()}})},i(a,null,[{key:"VERSION",get:function(){return n}},{key:"Default",get:function(){return u}}]),a}();return e(document).on(d.CLICK_DATA_API,f.DATA_TOGGLE,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var n=e(this),i=ge.getSelectorFromElement(this),a=[].slice.call(document.querySelectorAll(i));e(a).each(function(){var t=e(this),i=t.data(r),a=i?"toggle":n.data();g._jQueryInterface.call(t,a)})}),e.fn[t]=g._jQueryInterface,e.fn[t].Constructor=g,e.fn[t].noConflict=function(){return e.fn[t]=l,g._jQueryInterface},g}(n),be="undefined"!=typeof window&&"undefined"!=typeof document,Te=["Edge","Trident","Firefox"],Ee=0,Se=0;Se<Te.length;Se+=1)if(be&&navigator.userAgent.indexOf(Te[Se])>=0){Ee=1;break}var we=be&&window.Promise,Ce=we?l:u,ke=be&&!(!window.MSInputMethodContext||!document.documentMode),De=be&&/MSIE 10/.test(navigator.userAgent),xe=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Ae=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Ie=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pe=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Me=Pe.slice(3),Re={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},Le={shift:{order:100,enabled:!0,fn:he},offset:{order:200,enabled:!0,fn:ce,offset:0},preventOverflow:{order:300,enabled:!0,fn:de,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:se},arrow:{order:500,enabled:!0,fn:re,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:oe,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:fe},hide:{order:800,enabled:!0,fn:pe},computeStyle:{order:850,enabled:!0,fn:te,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:J,onLoad:ee,gpuAcceleration:void 0}},Ne={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Le},Ue=function(){function e(t,n){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};xe(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=Ce(this.update.bind(this)),this.options=Oe({},e.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Oe({}
152,e.Defaults.modifiers,i.modifiers)).forEach(function(t){r.options.modifiers[t]=Oe({},e.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return Oe({name:e},r.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&c(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return Ae(e,[{key:"update",value:function(){return B.call(this)}},{key:"destroy",value:function(){return W.call(this)}},{key:"enableEventListeners",value:function(){return G.call(this)}},{key:"disableEventListeners",value:function(){return X.call(this)}}]),e}();Ue.Utils=("undefined"!=typeof window?window:e).PopperUtils,Ue.placements=Pe,Ue.Defaults=Ne;var He=function(e){var t="dropdown",n="4.1.3",r="bs.dropdown",a="."+r,s=".data-api",l=e.fn[t],u=27,c=32,d=9,h=38,p=40,f=3,g=new RegExp(h+"|"+p+"|"+u),m={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,CLICK:"click"+a,CLICK_DATA_API:"click"+a+s,KEYDOWN_DATA_API:"keydown"+a+s,KEYUP_DATA_API:"keyup"+a+s},v={DISABLED:"disabled",SHOW:"show",DROPUP:"dropup",DROPRIGHT:"dropright",DROPLEFT:"dropleft",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",POSITION_STATIC:"position-static"},y={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",MENU:".dropdown-menu",NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)"},_={TOP:"top-start",TOPEND:"top-end",BOTTOM:"bottom-start",BOTTOMEND:"bottom-end",RIGHT:"right-start",RIGHTEND:"right-end",LEFT:"left-start",LEFTEND:"left-end"},b={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},T={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},E=function(){function s(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var l=s.prototype;return l.toggle=function(){if(!this._element.disabled&&!e(this._element).hasClass(v.DISABLED)){var t=s._getParentFromElement(this._element),n=e(this._menu).hasClass(v.SHOW);if(s._clearMenus(),!n){var r={relatedTarget:this._element},i=e.Event(m.SHOW,r);if(e(t).trigger(i),!i.isDefaultPrevented()){if(!this._inNavbar){if("undefined"==typeof Ue)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var a=this._element;"parent"===this._config.reference?a=t:ge.isElement(this._config.reference)&&(a=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(a=this._config.reference[0])),"scrollParent"!==this._config.boundary&&e(t).addClass(v.POSITION_STATIC),this._popper=new Ue(a,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===e(t).closest(y.NAVBAR_NAV).length&&e(document.body).children().on("mouseover",null,e.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),e(this._menu).toggleClass(v.SHOW),e(t).toggleClass(v.SHOW).trigger(e.Event(m.SHOWN,r))}}}},l.dispose=function(){e.removeData(this._element,r),e(this._element).off(a),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},l.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},l._addEventListeners=function(){var t=this;e(this._element).on(m.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},l._getConfig=function(n){return n=o({},this.constructor.Default,e(this._element).data(),n),ge.typeCheckConfig(t,n,this.constructor.DefaultType),n},l._getMenuElement=function(){if(!this._menu){var e=s._getParentFromElement(this._element);e&&(this._menu=e.querySelector(y.MENU))}return this._menu},l._getPlacement=function(){var t=e(this._element.parentNode),n=_.BOTTOM;return t.hasClass(v.DROPUP)?(n=_.TOP,e(this._menu).hasClass(v.MENURIGHT)&&(n=_.TOPEND)):t.hasClass(v.DROPRIGHT)?n=_.RIGHT:t.hasClass(v.DROPLEFT)?n=_.LEFT:e(this._menu).hasClass(v.MENURIGHT)&&(n=_.BOTTOMEND),n}
152,l._detectNavbar=function(){return e(this._element).closest(".navbar").length>0},l._getPopperConfig=function(){var e=this,t={};"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=o({},t.offsets,e._config.offset(t.offsets)||{}),t}:t.offset=this._config.offset;var n={placement:this._getPlacement(),modifiers:{offset:t,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(n.modifiers.applyStyle={enabled:!1}),n},s._jQueryInterface=function(t){return this.each(function(){var n=e(this).data(r),i="object"==typeof t?t:null;if(n||(n=new s(this,i),e(this).data(r,n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},s._clearMenus=function(t){if(!t||t.which!==f&&("keyup"!==t.type||t.which===d))for(var n=[].slice.call(document.querySelectorAll(y.DATA_TOGGLE)),i=0,a=n.length;i<a;i++){var o=s._getParentFromElement(n[i]),l=e(n[i]).data(r),u={relatedTarget:n[i]};if(t&&"click"===t.type&&(u.clickEvent=t),l){var c=l._menu;if(e(o).hasClass(v.SHOW)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&t.which===d)&&e.contains(o,t.target))){var h=e.Event(m.HIDE,u);e(o).trigger(h),h.isDefaultPrevented()||("ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),n[i].setAttribute("aria-expanded","false"),e(c).removeClass(v.SHOW),e(o).removeClass(v.SHOW).trigger(e.Event(m.HIDDEN,u)))}}}},s._getParentFromElement=function(e){var t,n=ge.getSelectorFromElement(e);return n&&(t=document.querySelector(n)),t||e.parentNode},s._dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!(t.which===c||t.which!==u&&(t.which!==p&&t.which!==h||e(t.target).closest(y.MENU).length)):g.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!e(this).hasClass(v.DISABLED))){var n=s._getParentFromElement(this),r=e(n).hasClass(v.SHOW);if(!r&&(t.which!==u||t.which!==c)||r&&(t.which===u||t.which===c)){if(t.which===u){var i=n.querySelector(y.DATA_TOGGLE);e(i).trigger("focus")}return void e(this).trigger("click")}var a=[].slice.call(n.querySelectorAll(y.VISIBLE_ITEMS));if(0!==a.length){var o=a.indexOf(t.target);t.which===h&&o>0&&o--,t.which===p&&o<a.length-1&&o++,o<0&&(o=0),a[o].focus()}}},i(s,null,[{key:"VERSION",get:function(){return n}},{key:"Default",get:function(){return b}},{key:"DefaultType",get:function(){return T}}]),s}();return e(document).on(m.KEYDOWN_DATA_API,y.DATA_TOGGLE,E._dataApiKeydownHandler).on(m.KEYDOWN_DATA_API,y.MENU,E._dataApiKeydownHandler).on(m.CLICK_DATA_API+" "+m.KEYUP_DATA_API,E._clearMenus).on(m.CLICK_DATA_API,y.DATA_TOGGLE,function(t){t.preventDefault(),t.stopPropagation(),E._jQueryInterface.call(e(this),"toggle")}).on(m.CLICK_DATA_API,y.FORM_CHILD,function(e){e.stopPropagation()}),e.fn[t]=E._jQueryInterface,e.fn[t].Constructor=E,e.fn[t].noConflict=function(){return e.fn[t]=l,E._jQueryInterface},E}(n,Ue),je=function(e){var t="modal",n="4.1.3",r="bs.modal",a="."+r,s=".data-api",l=e.fn[t],u=27,c={backdrop:!0,keyboard:!0,focus:!0,show:!0},d={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},h={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,FOCUSIN:"focusin"+a,RESIZE:"resize"+a,CLICK_DISMISS:"click.dismiss"+a,KEYDOWN_DISMISS:"keydown.dismiss"+a,MOUSEUP_DISMISS:"mouseup.dismiss"+a,MOUSEDOWN_DISMISS:"mousedown.dismiss"+a,CLICK_DATA_API:"click"+a+s},p={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},f={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top"},g=function(){function s(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(f.DIALOG),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._scrollbarWidth=0}var l=s.prototype;return l.toggle=function(e){return this._isShown?this.hide():this.show(e)},l.show=function(t){var n=this;if(!this._isTransitioning&&!this._isShown){e(this._element).hasClass(p.FADE)&&(this._isTransitioning=!0);var r=e.Event(h.SHOW,{relatedTarget:t});e(this._element).trigger(r),this._isShown||r.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),e(document.body).addClass(p.OPEN),this._setEscapeEvent(),this._setResizeEvent(),e(this._element).on(h.CLICK_DISMISS,f.DATA_DISMISS,function(e){return n.hide(e)}),e(this._dialog).on(h.MOUSEDOWN_DISMISS,function(){e(n._element).one(h.MOUSEUP_DISMISS,function(t){e(t.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return n._showElement(t)}))}},l.hide=function(t){var n=this;if(t&&t.preventDefault(),!this._isTransitioning&&this._isShown){var r=e.Event(h.HIDE);if(e(this._element).trigger(r),this._isShown&&!r.isDefaultPrevented()){this._isShown=!1;var i=e(this._element).hasClass(p.FADE);if(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),e(document).off(h.FOCUSIN),e(this._element).removeClass(p.SHOW),e(this._element).off(h.CLICK_DISMISS),e(this._dialog).off(h.MOUSEDOWN_DISMISS),i){var a=ge.getTransitionDurationFromElement(this._element);e(this._element).one(ge.TRANSITION_END,function(e){return n._hideModal(e)}).emulateTransitionEnd(a)}else this._hideModal()}}},l.dispose=function(){e.removeData(this._element,r),e(window,document,this._element,this._backdrop).off(a),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},l.handleUpdate=function(){this._adjustDialog()},l._getConfig=function(e){return e=o({},c,e),ge.typeCheckConfig(t,e,d),e},l._showElement=function(t){var n=this,r=e(this._element).hasClass(p.FADE);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,r&&ge.reflow(this._element),e(this._element).addClass(p.SHOW),this._config.focus&&this._enforceFocus();var i=e.Event(h.SHOWN,{relatedTarget:t}),a=function(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,e(n._element).trigger(i)};if(r){var o=ge.getTransitionDurationFromElement(this._element);e(this._dialog).one(ge.TRANSITION_END,a).emulateTransitionEnd(o)}else a()},l._enforceFocus=function(){var t=this;e(document).off(h.FOCUSIN).on(h.FOCUSIN,function(n){document!==n.target&&t._element!==n.target&&0===e(t._element).has(n.target).length&&t._element.focus()})},l._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?e(this._element).on(h.KEYDOWN_DISMISS,function(e){e.which===u&&(e.preventDefault(),t.hide())}):this._isShown||e(this._element).off(h.KEYDOWN_DISMISS)},l._setResizeEvent=function(){var t=this;this._isShown?e(window).on(h.RESIZE,function(e){return t.handleUpdate(e)}):e(window).off(h.RESIZE)},l._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){e(document.body).removeClass(p.OPEN),t._resetAdjustments(),t._resetScrollbar(),e(t._element).trigger(h.HIDDEN)})},l._removeBackdrop=function(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)},l._showBackdrop=function(t){var n=this,r=e(this._element).hasClass(p.FADE)?p.FADE:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=p.BACKDROP,r&&this._backdrop.classList.add(r),e(this._backdrop).appendTo(document.body),e(this._element).on(h.CLICK_DISMISS,function(e){return n._ignoreBackdropClick?void(n._ignoreBackdropClick=!1):void(e.target===e.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide()))}),r&&ge.reflow(this._backdrop),e(this._backdrop).addClass(p.SHOW),!t)return;if(!r)return void t();var i=ge.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(ge.TRANSITION_END,t).emulateTransitionEnd(i)}else if(!this._isShown&&this._backdrop){e(this._backdrop).removeClass(p.SHOW);var a=function(){n._removeBackdrop(),t&&t()};if(e(this._element).hasClass(p.FADE)){var o=ge.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(ge.TRANSITION_END,a).emulateTransitionEnd(o)}else a()}else t&&t()},l._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},l._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},l._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},l._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var n=[].slice.call(document.querySelectorAll(f.FIXED_CONTENT)),r=[].slice.call(document.querySelectorAll(f.STICKY_CONTENT));e(n).each(function(n,r){var i=r.style.paddingRight,a=e(r).css("padding-right");e(r).data("padding-right",i).css("padding-right",parseFloat(a)+t._scrollbarWidth+"px")}),e(r).each(function(n,r){var i=r.style.marginRight,a=e(r).css("margin-right");e(r).data("margin-right",i).css("margin-right",parseFloat(a)-t._scrollbarWidth+"px")});var i=document.body.style.paddingRight,a=e(document.body).css("padding-right");e(document.body).data("padding-right",i).css("padding-right",parseFloat(a)+this._scrollbarWidth+"px")}},l._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(f.FIXED_CONTENT));e(t).each(function(t,n){var r=e(n).data("padding-right");e(n).removeData("padding-right"),n.style.paddingRight=r?r:""});var n=[].slice.call(document.querySelectorAll(""+f.STICKY_CONTENT));e(n).each(function(t,n){var r=e(n).data("margin-right");"undefined"!=typeof r&&e(n).css("margin-right",r).removeData("margin-right")});var r=e(document.body).data("padding-right");e(document.body).removeData("padding-right"),document.body.style.paddingRight=r?r:""},l._getScrollbarWidth=function(){var e=document.createElement("div");e.className=p.SCROLLBAR_MEASURER,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},s._jQueryInterface=function(t,n){return this.each(function(){var i=e(this).data(r),a=o({},c,e(this).data(),"object"==typeof t&&t?t:{});if(i||(i=new s(this,a),e(this).data(r,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError('No method n
152amed "'+t+'"');i[t](n)}else a.show&&i.show(n)})},i(s,null,[{key:"VERSION",get:function(){return n}},{key:"Default",get:function(){return c}}]),s}();return e(document).on(h.CLICK_DATA_API,f.DATA_TOGGLE,function(t){var n,i=this,a=ge.getSelectorFromElement(this);a&&(n=document.querySelector(a));var s=e(n).data(r)?"toggle":o({},e(n).data(),e(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var l=e(n).one(h.SHOW,function(t){t.isDefaultPrevented()||l.one(h.HIDDEN,function(){e(i).is(":visible")&&i.focus()})});g._jQueryInterface.call(e(n),s,this)}),e.fn[t]=g._jQueryInterface,e.fn[t].Constructor=g,e.fn[t].noConflict=function(){return e.fn[t]=l,g._jQueryInterface},g}(n),Be=function(e){var t="tooltip",n="4.1.3",r="bs.tooltip",a="."+r,s=e.fn[t],l="bs-tooltip",u=new RegExp("(^|\\s)"+l+"\\S+","g"),c={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"},d={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},h={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},p={SHOW:"show",OUT:"out"},f={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,INSERTED:"inserted"+a,CLICK:"click"+a,FOCUSIN:"focusin"+a,FOCUSOUT:"focusout"+a,MOUSEENTER:"mouseenter"+a,MOUSELEAVE:"mouseleave"+a},g={FADE:"fade",SHOW:"show"},m={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner",ARROW:".arrow"},v={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},y=function(){function s(e,t){if("undefined"==typeof Ue)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var y=s.prototype;return y.enable=function(){this._isEnabled=!0},y.disable=function(){this._isEnabled=!1},y.toggleEnabled=function(){this._isEnabled=!this._isEnabled},y.toggle=function(t){if(this._isEnabled)if(t){var n=this.constructor.DATA_KEY,r=e(t.currentTarget).data(n);r||(r=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,r)),r._activeTrigger.click=!r._activeTrigger.click,r._isWithActiveTrigger()?r._enter(null,r):r._leave(null,r)}else{if(e(this.getTipElement()).hasClass(g.SHOW))return void this._leave(null,this);this._enter(null,this)}},y.dispose=function(){clearTimeout(this._timeout),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),e(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},y.show=function(){var t=this;if("none"===e(this.element).css("display"))throw new Error("Please use show on visible elements");var n=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(n);var r=e.contains(this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!r)return;var i=this.getTipElement(),a=ge.getUID(this.constructor.NAME);i.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&e(i).addClass(g.FADE);var o="function"==typeof this.config.placement?this.config.placement.call(this,i,this.element):this.config.placement,s=this._getAttachment(o);this.addAttachmentClass(s);var l=this.config.container===!1?document.body:e(document).find(this.config.container);e(i).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(i).appendTo(l),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new Ue(this.element,i,{placement:s,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:m.ARROW}
152,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){t._handlePopperPlacementChange(e)}}),e(i).addClass(g.SHOW),"ontouchstart"in document.documentElement&&e(document.body).children().on("mouseover",null,e.noop);var u=function(){t.config.animation&&t._fixTransition();var n=t._hoverState;t._hoverState=null,e(t.element).trigger(t.constructor.Event.SHOWN),n===p.OUT&&t._leave(null,t)};if(e(this.tip).hasClass(g.FADE)){var c=ge.getTransitionDurationFromElement(this.tip);e(this.tip).one(ge.TRANSITION_END,u).emulateTransitionEnd(c)}else u()}},y.hide=function(t){var n=this,r=this.getTipElement(),i=e.Event(this.constructor.Event.HIDE),a=function(){n._hoverState!==p.SHOW&&r.parentNode&&r.parentNode.removeChild(r),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),e(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),t&&t()};if(e(this.element).trigger(i),!i.isDefaultPrevented()){if(e(r).removeClass(g.SHOW),"ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),this._activeTrigger[v.CLICK]=!1,this._activeTrigger[v.FOCUS]=!1,this._activeTrigger[v.HOVER]=!1,e(this.tip).hasClass(g.FADE)){var o=ge.getTransitionDurationFromElement(r);e(r).one(ge.TRANSITION_END,a).emulateTransitionEnd(o)}else a();this._hoverState=""}},y.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},y.isWithContent=function(){return Boolean(this.getTitle())},y.addAttachmentClass=function(t){e(this.getTipElement()).addClass(l+"-"+t)},y.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},y.setContent=function(){var t=this.getTipElement();this.setElementContent(e(t.querySelectorAll(m.TOOLTIP_INNER)),this.getTitle()),e(t).removeClass(g.FADE+" "+g.SHOW)},y.setElementContent=function(t,n){var r=this.config.html;"object"==typeof n&&(n.nodeType||n.jquery)?r?e(n).parent().is(t)||t.empty().append(n):t.text(e(n).text()):t[r?"html":"text"](n)},y.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},y._getAttachment=function(e){return d[e.toUpperCase()]},y._setListeners=function(){var t=this,n=this.config.trigger.split(" ");n.forEach(function(n){if("click"===n)e(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(e){return t.toggle(e)});else if(n!==v.MANUAL){var r=n===v.HOVER?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,i=n===v.HOVER?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;e(t.element).on(r,t.config.selector,function(e){return t._enter(e)}).on(i,t.config.selector,function(e){return t._leave(e)})}e(t.element).closest(".modal").on("hide.bs.modal",function(){return t.hide()})}),this.config.selector?this.config=o({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},y._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},y._enter=function(t,n){var r=this.constructor.DATA_KEY;return n=n||e(t.currentTarget).data(r),n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(r,n)),t&&(n._activeTrigger["focusin"===t.type?v.FOCUS:v.HOVER]=!0),e(n.getTipElement()).hasClass(g.SHOW)||n._hoverState===p.SHOW?void(n._hoverState=p.SHOW):(clearTimeout(n._timeout),n._hoverState=p.SHOW,n.config.delay&&n.config.delay.show?void(n._timeout=setTimeout(function(){n._hoverState===p.SHOW&&n.show()},n.config.delay.show)):void n.show())},y._leave=function(t,n){var r=this.constructor.DATA_KEY;if(n=n||e(t.currentTarget).data(r),n||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(r,n)),t&&(n._activeTrigger["focusout"===t.type?v.FOCUS:v.HOVER]=!1),!n._isWithActiveTrigger())return clearTimeout(n._timeout),n._hoverState=p.OUT,n.config.delay&&n.config.delay.hide?void(n._timeout=setTimeout(function(){n._hoverState===p.OUT&&n.hide()},n.config.delay.hide)):void n.hide()},y._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},y._getConfig=function(n){return n=o({},this.constructor.Default,e(this.element).data(),"object"==typeof n&&n?n:{}),"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),"number"==typeof n.title&&(n.title=n.title.toString()),"number"==typeof n.content&&(n.content=n.content.toString()),ge.typeCheckConfig(t,n,this.constructor.DefaultType),n},y._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},y._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(u);null!==n&&n.length&&t.removeClass(n.join(""))},y._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},y._fixTransition=function(){var t=this.getTipElement(),n=this.config.animation;null===t.getAttribute("x-placement")&&(e(t).removeClass(g.FADE),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},s._jQueryInterface=function(t){return this.each(function(){var n=e(this).data(r),i="object"==typeof t&&t;if((n||!/dispose|hide/.test(t))&&(n||(n=new s(this,i),e(this).data(r,n)),"string"==typeof t)){if("undefined"==typeof n[t])throw new TypeError('No method n
152amed "'+t+'"');n[t]()}})},i(s,null,[{key:"VERSION",get:function(){return n}},{key:"Default",get:function(){return h}},{key:"NAME",get:function(){return t}},{key:"DATA_KEY",get:function(){return r}},{key:"Event",get:function(){return f}},{key:"EVENT_KEY",get:function(){return a}},{key:"DefaultType",get:function(){return c}}]),s}();return e.fn[t]=y._jQueryInterface,e.fn[t].Constructor=y,e.fn[t].noConflict=function(){return e.fn[t]=s,y._jQueryInterface},y}(n,Ue),Fe=function(e){var t="popover",n="4.1.3",r="bs.popover",a="."+r,l=e.fn[t],u="bs-popover",c=new RegExp("(^|\\s)"+u+"\\S+","g"),d=o({},Be.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),h=o({},Be.DefaultType,{content:"(string|element|function)"}),p={FADE:"fade",SHOW:"show"},f={TITLE:".popover-header",CONTENT:".popover-body"},g={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,INSERTED:"inserted"+a,CLICK:"click"+a,FOCUSIN:"focusin"+a,FOCUSOUT:"focusout"+a,MOUSEENTER:"mouseenter"+a,MOUSELEAVE:"mouseleave"+a},m=function(o){function l(){return o.apply(this,arguments)||this}s(l,o);var m=l.prototype;return m.isWithContent=function(){return this.getTitle()||this._getContent()},m.addAttachmentClass=function(t){e(this.getTipElement()).addClass(u+"-"+t)},m.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},m.setContent=function(){var t=e(this.getTipElement());this.setElementContent(t.find(f.TITLE),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(t.find(f.CONTENT),n),t.removeClass(p.FADE+" "+p.SHOW)},m._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},m._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(c);null!==n&&n.length>0&&t.removeClass(n.join(""))},l._jQueryInterface=function(t){return this.each(function(){var n=e(this).data(r),i="object"==typeof t?t:null;if((n||!/destroy|hide/.test(t))&&(n||(n=new l(this,i),e(this).data(r,n)),"string"==typeof t)){if("undefined"==typeof n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}); 153},i(l,null,[{key:"VERSION",get:function(){return n}},{key:"Default",get:function(){return d}},{key:"NAME",get:function(){return t}},{key:"DATA_KEY",get:function(){return r}},{key:"Event",get:function(){return g}},{key:"EVENT_KEY",get:function(){return a}},{key:"DefaultType",get:function(){return h}}]),l}(Be);return e.fn[t]=m._jQueryInterface,e.fn[t].Constructor=m,e.fn[t].noConflict=function(){return e.fn[t]=l,m._jQueryInterface},m}(n),Ve=function(e){var t="scrollspy",n="4.1.3",r="bs.scrollspy",a="."+r,s=".data-api",l=e.fn[t],u={offset:10,method:"auto",target:""},c={offset:"number",method:"string",target:"(string|element)"},d={ACTIVATE:"activate"+a,SCROLL:"scroll"+a,LOAD_DATA_API:"load"+a+s},h={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active"},p={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},f={OFFSET:"offset",POSITION:"position"},g=function(){function s(t,n){var r=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(n),this._selector=this._config.target+" "+p.NAV_LINKS+","+(this._config.target+" "+p.LIST_ITEMS+",")+(this._config.target+" "+p.DROPDOWN_ITEMS),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on(d.SCROLL,function(e){return r._process(e)}),this.refresh(),this._process()}var l=s.prototype;return l.refresh=function(){var t=this,n=this._scrollElement===this._scrollElement.window?f.OFFSET:f.POSITION,r="auto"===this._config.method?n:this._config.method,i=r===f.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight();var a=[].slice.call(document.querySelectorAll(this._selector));a.map(function(t){var n,a=ge.getSelectorFromElement(t);
153if(a&&(n=document.querySelector(a)),n){var o=n.getBoundingClientRect();if(o.width||o.height)return[e(n)[r]().top+i,a]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},l.dispose=function(){e.removeData(this._element,r),e(this._scrollElement).off(a),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},l._getConfig=function(n){if(n=o({},u,"object"==typeof n&&n?n:{}),"string"!=typeof n.target){var r=e(n.target).attr("id");r||(r=ge.getUID(t),e(n.target).attr("id",r)),n.target="#"+r}return ge.typeCheckConfig(t,n,c),n},l._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},l._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},l._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},l._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=n){var r=this._targets[this._targets.length-1];return void(this._activeTarget!==r&&this._activate(r))}if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var i=this._offsets.length,a=i;a--;){var o=this._activeTarget!==this._targets[a]&&e>=this._offsets[a]&&("undefined"==typeof this._offsets[a+1]||e<this._offsets[a+1]);o&&this._activate(this._targets[a])}},l._activate=function(t){this._activeTarget=t,this._clear();var n=this._selector.split(",");n=n.map(function(e){return e+'[data-target="'+t+'"],'+(e+'[href="'+t+'"]')});var r=e([].slice.call(document.querySelectorAll(n.join(","))));r.hasClass(h.DROPDOWN_ITEM)?(r.closest(p.DROPDOWN).find(p.DROPDOWN_TOGGLE).addClass(h.ACTIVE),r.addClass(h.ACTIVE)):(r.addClass(h.ACTIVE),r.parents(p.NAV_LIST_GROUP).prev(p.NAV_LINKS+", "+p.LIST_ITEMS).addClass(h.ACTIVE),r.parents(p.NAV_LIST_GROUP).prev(p.NAV_ITEMS).children(p.NAV_LINKS).addClass(h.ACTIVE)),e(this._scrollElement).trigger(d.ACTIVATE,{relatedTarget:t})},l._clear=function(){var t=[].slice.call(document.querySelectorAll(this._selector));e(t).filter(p.ACTIVE).removeClass(h.ACTIVE)},s._jQueryInterface=function(t){return this.each(function(){var n=e(this).data(r),i="object"==typeof t&&t;if(n||(n=new s(this,i),e(this).data(r,n)),"string"==typeof t){if("undefined"==typeof n[t])throw new TypeError('No method named "'+t+'"');n[t]()}})},i(s,null,[{key:"VERSION",get:function(){return n}},{key:"Default",get:function(){return u}}]),s}();return e(window).on(d.LOAD_DATA_API,function(){for(var t=[].slice.call(document.querySelectorAll(p.DATA_SPY)),n=t.length,r=n;r--;){var i=e(t[r]);g._jQueryInterface.call(i,i.data())}}),e.fn[t]=g._jQueryInterface,e.fn[t].Constructor=g,e.fn[t].noConflict=function(){return e.fn[t]=l,g._jQueryInterface},g}(n),We=function(e){var t="tab",n="4.1.3",r="bs.tab",a="."+r,o=".data-api",s=e.fn[t],l={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,CLICK_DATA_API:"click"+a+o},u={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},c={DROPDOWN:".dropdown",NAV_LIST_GROUP:".nav, .list-group",ACTIVE:".active",ACTIVE_UL:"> li > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},d=function(){function t(e){this._element=e}var a=t.prototype;return a.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&e(this._element).hasClass(u.ACTIVE)||e(this._element).hasClass(u.DISABLED))){var n,r,i=e(this._element).closest(c.NAV_LIST_GROUP)[0],a=ge.getSelectorFromElement(this._element);if(i){var o="UL"===i.nodeName?c.ACTIVE_UL:c.ACTIVE;r=e.makeArray(e(i).find(o)),r=r[r.length-1]}var s=e.Event(l.HIDE,{relatedTarget:this._element}),d=e.Event(l.SHOW,{relatedTarget:r});if(r&&e(r).trigger(s),e(this._element).trigger(d),!d.isDefaultPrevented()&&!s.isDefaultPrevented()){a&&(n=document.querySelector(a)),this._activate(this._element,i);var h=function(){var n=e.Event(l.HIDDEN,{relatedTarget:t._element}),i=e.Event(l.SHOWN,{relatedTarget:r});e(r).trigger(n),e(t._element).trigger(i)};n?this._activate(n,n.parentNode,h):h()}}},a.dispose=function(){e.removeData(this._element,r),this._element=null},a._activate=function(t,n,r){var i,a=this;i="UL"===n.nodeName?e(n).find(c.ACTIVE_UL):e(n).children(c.ACTIVE);var o=i[0],s=r&&o&&e(o).hasClass(u.FADE),l=function(){return a._transitionComplete(t,o,r)};if(o&&s){var d=ge.getTransitionDurationFromElement(o);e(o).one(ge.TRANSITION_END,l).emulateTransitionEnd(d)}else l()},a._transitionComplete=function(t,n,r){if(n){e(n).removeClass(u.SHOW+" "+u.ACTIVE);var i=e(n.parentNode).find(c.DROPDOWN_ACTIVE_CHILD)[0];i&&e(i).removeClass(u.ACTIVE),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(e(t).addClass(u.ACTIVE),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),ge.reflow(t),e(t).addClass(u.
153SHOW),t.parentNode&&e(t.parentNode).hasClass(u.DROPDOWN_MENU)){var a=e(t).closest(c.DROPDOWN)[0];if(a){var o=[].slice.call(a.querySelectorAll(c.DROPDOWN_TOGGLE));e(o).addClass(u.ACTIVE)}t.setAttribute("aria-expanded",!0)}r&&r()},t._jQueryInterface=function(n){return this.each(function(){var i=e(this),a=i.data(r);if(a||(a=new t(this),i.data(r,a)),"string"==typeof n){if("undefined"==typeof a[n])throw new TypeError('No method named "'+n+'"');a[n]()}})},i(t,null,[{key:"VERSION",get:function(){return n}}]),t}();return e(document).on(l.CLICK_DATA_API,c.DATA_TOGGLE,function(t){t.preventDefault(),d._jQueryInterface.call(e(this),"show")}),e.fn[t]=d._jQueryInterface,e.fn[t].Constructor=d,e.fn[t].noConflict=function(){return e.fn[t]=s,d._jQueryInterface},d}(n);!function(e){if("undefined"==typeof e)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=e.fn.jquery.split(" ")[0].split("."),n=1,r=2,i=9,a=1,o=4;if(t[0]<r&&t[1]<i||t[0]===n&&t[1]===i&&t[2]<a||t[0]>=o)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(n),t.Util=ge,t.Alert=me,t.Button=ve,t.Carousel=ye,t.Collapse=_e,t.Dropdown=He,t.Modal=je,t.Popover=Fe,t.Scrollspy=Ve,t.Tab=We,t.Tooltip=Be,Object.defineProperty(t,"__esModule",{value:!0})})}).call(t,function(){return this}())},function(e,t,n){(function(e,r){"use strict";function i(e){return e&&e.__esModule?e:{"default":e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(85),l=(i(s),n(86)),u=function(){function t(n){a(this,t),this.$element=n,this.args=e.extend(!0,{},this.defaults(),Utils.options(n.attr("data-module-args"))),this.bind()}return o(t,[{key:"defaults",value:function(){return{}}}]),o(t,[{key:"bind",value:function(){function t(e){var t=null,n=[];return location.search.substr(1).split("&").forEach(function(r){n=r.split("="),n[0]===e&&(t=decodeURIComponent(n[1]))}),t}function n(){new l(e("#promo_modal"),{background:!0},function(){setTimeout(function(){e("#promo_modal").modal("show")},100)})}function i(e,t,n){var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3);var i="expires="+r.toUTCString();document.cookie=e+"="+t+";"+i+";path=/"}function a(e){for(var t=e+"=",n=decodeURIComponent(document.cookie),r=n.split(";"),i=0;i<r.length;i++){for(var a=r[i];" "==a.charAt(0);)a=a.substring(1);if(0==a.indexOf(t))return a.substring(t.length,a.length)}return""}var o=this;e(".sn_modal").appendTo(e("body")),e(".sn_video_popup").appendTo(e("body")),e(".sn_video_popup_close, .sn_video_popup_bd").on("click",function(){e(this).parents(".sn_video_popup").removeClass("_in"),e(document).trigger("sn:videoJsStop",[e(this).parents(".sn_video_popup").find(".video-js").attr("id")])}),e("[data-video-popup]").on("click",function(){e('[data-video-popup-target="'+e(this).data("videoPopup")+'"]').addClass("_in"),e(document).trigger("sn:videoJsPlay",[e('[data-video-popup-target="'+e(this).data("videoPopup")+'"]').find(".video-js").attr("id")])}),e(".sn_image_text_collapse_toggle").on("click",function(){e(this).siblings(".sn_image_text_collapse_content").collapse("toggle"),e(this).parent().toggleClass("_show")}),e('.sn_tabs_nav a[data-toggle="tab"]').on("shown.bs.tab",function(t){var n=e(t.target),r=e(this).parents(".sn_tabs_nav");o.moveTabsPill(n,r)}),e(".hd_link").on("click",function(e){e.preventDefault();var t=r(this).data("url"),n=r(this).data("filename"),i=document.createElement("a");i.style.display="none",document.body.appendChild(i),i.setAttribute("target","_blank"),i.setAttribute("download",n),i.href=t,i.click(),window.URL.revokeObjectURL(i.href),document.body.removeChild(i)}),e(document).ready(function(){o.checkTabsPill()}),e(window).resize(function(){o.checkTabsPill()}),navigator.userAgent.match(/Trident\/7\./)&&e("body").on("mousewheel",function(){event.preventDefault();var e=event.wheelDelta,t=window.pageYOffset;window.scrollTo(0,t-e)}),t("h")&&e("#"+t("h")).length&&(setTimeout(function(){window.scrollTo(0,0)},1),e(window).on("load",function(){var n=e("#"+t("h")).offset().top;
153e(".sn_header").length&&(n-=e(".sn_header").outerHeight()),e(".sn_menu_page").length&&(n-=e(".sn_menu_page").outerHeight()),e(".sn_banner_buy_show_sticky").length&&(n-=e(".sn_banner_buy_show_sticky").outerHeight()),e("body, html").animate({scrollTop:n},700)})),e(".sn_list_download_toggle").on("click",function(){e(this).parent().hide(),e(this).parents(".sn_list_download").find(".sn_list_download_links_all").show()}),r(document).ready(function(e){var t=a("visited");"yes"!=t&&(i("visited","yes"),n())}),this.scrollClick()}},{key:"moveTabsPill",value:function(e,t){t.find(".sn_tabs_nav_pill").css({left:e.offset().left-t.offset().left,right:r(window).outerWidth()-e.outerWidth()-e.offset().left-(r(window).outerWidth()-r(".sn_tabs_nav").outerWidth()-r(".sn_tabs_nav").offset().left)})}},{key:"checkTabsPill",value:function(){var t=this;e('.sn_tabs_nav a[data-toggle="tab"]').each(function(){if(e(this).hasClass("active")){var n=e(this),r=e(this).parents(".sn_tabs_nav");t.moveTabsPill(n,r)}})}},{key:"scrollClick",value:function(){var t=this;e("a[data-anchor]").on("click",function(n){n.preventDefault();var r=this.dataset.anchor,i=e('[data-anchor-id="'+r+'"]');t.jumpToAnchor(i),setTimeout(function(){i.focus()},1e3)})}},{key:"jumpToAnchor",value:function(t){var n=e(".sn_header").outerHeight();e("html, body").animate({scrollTop:t.offset().top-n-30},1e3)}}]),t}();t["default"]=u}).call(t,n(3),n(3))},function(e,t,n){var r,i,a;!function(o){"use strict";i=[n(3)],r=o,a="function"==typeof r?r.apply(t,i):r,!(void 0!==a&&(e.exports=a))}(function(e){var t=-1,n=-1,r=function(e){return parseFloat(e)||0},i=function(t){var n=1,i=e(t),a=null,o=[];return i.each(function(){var t=e(this),i=t.offset().top-r(t.css("margin-top")),s=o.length>0?o[o.length-1]:null;null===s?o.push(t):Math.floor(Math.abs(a-i))<=n?o[o.length-1]=s.add(t):o.push(t),a=i}),o},a=function(t){var n={byRow:!0,property:"height",target:null,remove:!1};return"object"==typeof t?e.extend(n,t):("boolean"==typeof t?n.byRow=t:"remove"===t&&(n.remove=!0),n)},o=e.fn.matchHeight=function(t){var n=a(t);if(n.remove){var r=this;return this.css(n.property,""),e.each(o._groups,function(e,t){t.elements=t.elements.not(r)}),this}return this.length<=1&&!n.target?this:(o._groups.push({elements:this,options:n}),o._apply(this,n),this)};o.version="0.7.2",o._groups=[],o._throttle=80,o._maintainScroll=!1,o._beforeUpdate=null,o._afterUpdate=null,o._rows=i,o._parse=r,o._parseOptions=a,o._apply=function(t,n){var s=a(n),l=e(t),u=[l],c=e(window).scrollTop(),d=e("html").outerHeight(!0),h=l.parents().filter(":hidden");return h.each(function(){var t=e(this);t.data("style-cache",t.attr("style"))}),h.css("display","block"),s.byRow&&!s.target&&(l.each(function(){var t=e(this),n=t.css("display");"inline-block"!==n&&"flex"!==n&&"inline-flex"!==n&&(n="block"),t.data("style-cache",t.attr("style")),t.css({display:n,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),u=i(l),l.each(function(){var t=e(this);t.attr("style",t.data("style-cache")||"")})),e.each(u,function(t,n){var i=e(n),a=0;if(s.target)a=s.target.outerHeight(!1);else{if(s.byRow&&i.length<=1)return void i.css(s.property,"");i.each(function(){var t=e(this),n=t.attr("style"),r=t.css("display");"inline-block"!==r&&"flex"!==r&&"inline-flex"!==r&&(r="block");var i={display:r};i[s.property]="",t.css(i),t.outerHeight(!1)>a&&(a=t.outerHeight(!1)),n?t.attr("style",n):t.css("display","")})}i.each(function(){var t=e(this),n=0;s.target&&t.is(s.target)||("border-box"!==t.css("box-sizing")&&(n+=r(t.css("border-top-width"))+r(t.css("border-bottom-width")),n+=r(t.css("padding-top"))+r(t.css("padding-bottom"))),t.css(s.property,a-n+"px"))})}),h.each(function(){var t=e(this);t.attr("style",t.data("style-cache")||null)}),o._maintainScroll&&e(window).scrollTop(c/d*e("html").outerHeight(!0)),this},o._applyDataApi=function(){var t={};e("[data-match-height], [data-mh]").each(function(){var n=e(this),r=n.attr("data-mh")||n.attr("data-match-height");r in t?t[r]=t[r].add(n):t[r]=n}),e.each(t,function(){this.matchHeight(!0)})};var s=function(t){o._beforeUpdate&&o._beforeUpdate(t,o._groups),e.each(o._groups,function(){o._apply(this.elements,this.options)}),o._afterUpdate&&o._afterUpdate(t,o._groups)};o._update=function(r,i){if(i&&"resize"===i.type){var a=e(window).width();if(a===t)return;t=a}r?n===-1&&(n=setTimeout(function(){s(i),n=-1},o._throttle)):s(i)},e(o._applyDataApi);var l=e.fn.on?"on":"bind";e(window)[l]("load",function(e){o._update(!1,e)}),e(window)[l]("resize orientationchange",function(e){o._update(!0,e)})})},function(e,t,n){var r,i;/*! 154 * imagesLoaded v4.1.4 155 * JavaScript is all like "You images are done yet or what?" 156 * MIT License 157 */ 158!function(a,o){"use strict";r=[n(87)],i=function(e){return o(a,e)}.apply(t,r),!(void 0!==i&&(e.exports=i))}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t){for(var n in t)e[n]=t[n];return e}function r(e){if(Array.isArray(e))return e;var t="object"==typeof e&&"number"==typeof e.length;return t?u.call(e):[e]}function i(e,t,a){if(!(this instanceof i))return new i(e,t,a);var o=e;return"string"==typeof e&&(o=document.querySelectorAll(e)),o?(this.elements=r(o),this.options=n({},this.options),"function"==typeof t?a=t:n(this.options,t),a&&this.on("always",a),this.getImages(),s&&(this.jqDeferred=new s.Deferred),void setTimeout(this.check.bind(this))):void l.error("Bad element for imagesLoaded "+(o||e))}function a(e){this.img=e}function o(e,t){this.url=e,this.element=t,this.img=new Image}var s=e.jQuery,l=e.console,u=Array.prototype.slice;i.prototype=Object.create(t.prototype),i.prototype.options={},i.prototype.getImages=function(){this.images=[],this.elements.forEac
vendor: 4,455 bytes, line 158
158h(this.addElementImages,this)},i.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),this.options.background===!0&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&c[t]){for(var n=e.querySelectorAll("img"),r=0;r<n.length;r++){var i=n[r];this.addImage(i)}if("string"==typeof this.options.background){var a=e.querySelectorAll(this.options.background);for(r=0;r<a.length;r++){var o=a[r];this.addElementBackgroundImages(o)}}}};var c={1:!0,9:!0,11:!0};return i.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var n=/url\((['"])?(.*?)\1\)/gi,r=n.exec(t.backgroundImage);null!==r;){var i=r&&r[2];i&&this.addBackground(i,e),r=n.exec(t.backgroundImage)}},i.prototype.addImage=function(e){var t=new a(e);this.images.push(t)},i.prototype.addBackground=function(e,t){var n=new o(e,t);this.images.push(n)},i.prototype.check=function(){function e(e,n,r){setTimeout(function(){t.progress(e,n,r)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},i.prototype.progress=function(e,t,n){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&l&&l.log("progress: "+n,e,t)},i.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},a.prototype=Object.create(t.prototype),a.prototype.check=function(){var e=this.getIsImageComplete();return e?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},a.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},a.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},a.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},a.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},a.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},a.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},o.prototype=Object.create(a.prototype),o.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var e=this.getIsImageComplete();e&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},o.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},o.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},i.makeJQueryPlugin=function(t){t=t||e.jQuery,t&&(s=t,s.fn.imagesLoaded=function(e,t){var n=new i(this,e,t);return n.jqDeferred.promise(s(this))})},i.makeJQueryPlugin(),i})},function(e,t,n){var r,i;!function(a,o){r=o,i="function"==typeof r?r.call(t,n,t,e):r,!(void 0!==i&&(e.exports=i))}("undefined"!=typeof window?window:this,function(){"use strict";function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},r=n[e]=n[e]||[];return r.indexOf(t)==-1&&r.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{},r=n[e]=n[e]||{};return r[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var r=n.indexOf(t);return r!=-1&&n.splice(r,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var r=this._onceEvents&&this._onceEvents[e],i=0;i<n.length;i++){var a=n[i],o=r&&r[a];o&&(this.off(e,a),delete r[a]),a.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})},function(e,t,n){(function(e){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
158Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function t(e){n(this,t),this.$element=e,this.eggs=[],this.opening=Math.floor(2*Math.random())+1,this.bind()}return r(t,[{key:"bind",value:function(){var t=this;this.eggs=this.$element.find(".egg"),this.modal=e(".sn_easter_message"),this.modal.on("show.bs.modal",function(){return t.$element.css("right",window.innerWidth-document.body.clientWidth+"px")}),this.modal.on("hidden.bs.modal",function(){return t.$element.css("right","0px")}),window.addEventListener("load",function(){t.eggs.each(function(n,r){e(r).animate({bottom:r.dataset.bottom},Number.parseInt(r.dataset.duration),function(){t.opening===n?(r.classList.add("shaking"),setTimeout(function(){r.classList.remove("shaking"),r.classList.add("_opened"),setTimeout(function(){t.modal.modal("show")},2e3)},8e3-Number.parseInt(r.dataset.duration)+1e3)):(r.classList.add("shake"),r.addEventListener("click",function(e){var n=e.target;n.classList.remove("shake"),n.classList.add("_opened"),setTimeout(function(){t.modal.modal("show")},2e3)}))})})})}}]),t}();t["default"]=i}).call(t,n(3))},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(90),s=r(o),l=function(){function t(n){i(this,t),this.$element=n,this.args=e.extend(!0,{},this.defaults(),Utils.options(n.attr("data-module-args"))),this.bind()}return a(t,[{key:"defaults",value:function(){return{gmaps:{key:"AIzaSyC5H2KACzPvWeZ86mfVEbfn2vrn6yxG-W0"},options:{center:{lat:0,lng:0},zoom:17,zoomControl:!1,mapTypeControl:!1,scaleControl:!1,streetViewControl:!1,rotateControl:!1,fullscreenControl:!1},marker:{position:{lat:0,lng:0},icon:"wp-content/themes/teatro-la-fenice/assets/images/obj/marker.png"}}}}]),a(t,[{key:"bind",value:function(){var e=this;s["default"].KEY=this.args.gmaps.key,s["default"].load(function(t){e.map=new t.maps.Map(e.$element[0],e.args.options),e.marker=new t.maps.Marker(e.args.marker),e.marker.setMap(e.map),t.maps.event.addDomListener(window,"resize",function(){var n=e.map.getCenter();t.maps.event.trigger(e.map,"resize"),e.map.setCenter(n)});var n=new t.maps.InfoWindow({content:e.args.gmaps.infowindow});t.maps.event.addListener(e.marker,"click",function(){n.open(e.map,e.marker)})})}}]),t}();t["default"]=l}).call(t,n(3))},function(e,t,n){var r,i;!function(a,o){if(null===a)throw new Error("Google-maps package can be used only in browser");r=o,i="function"==typeof r?r.call(t,n,t,e):r,!(void 0!==i&&(e.exports=i))}("undefined"!=typeof window?window:null,function(){"use strict";var e="3.31",t=null,n=null,r=!1,i=[],a=[],o=null,s={};s.URL="https://maps.googleapis.com/maps/api/js",s.KEY=null,s.LIBRARIES=[],s.CLIENT=null,s.CHANNEL=null,s.LANGUAGE=null,s.REGION=null,s.VERSION=e,s.WINDOW_CALLBACK_NAME="__google_maps_api_provider_initializator__",s._googleMockApiObject={},s.load=function(e){null===n?r===!0?e&&i.push(e):(r=!0,window[s.WINDOW_CALLBACK_NAME]=function(){l(e)},s.createLoader()):e&&e(n)},s.createLoader=function(){t=document.createElement("script"),t.type="text/javascript",t.src=s.createUrl(),document.body.appendChild(t)},s.isLoaded=function(){return null!==n},s.createUrl=function(){var e=s.URL;return e+="?callback="+s.WINDOW_CALLBACK_NAME,s.KEY&&(e+="&key="+s.KEY),s.LIBRARIES.length>0&&(e+="&libraries="+s.LIBRARIES.join(",")),s.CLIENT&&(e+="&client="+s.CLIENT),s.CHANNEL&&(e+="&channel="+s.CHANNEL),s.LANGUAGE&&(e+="&language="+s.LANGUAGE),s.REGION&&(e+="®ion="+s.REGION),s.VERSION&&(e+="&v="+s.VERSION),e},s.release=function(l){var u=function(){s.KEY=null,s.LIBRARIES=[],s.CLIENT=null,s.CHANNEL=null,s.LANGUAGE=null,
158s.REGION=null,s.VERSION=e,n=null,r=!1,i=[],a=[],"undefined"!=typeof window.google&&delete window.google,"undefined"!=typeof window[s.WINDOW_CALLBACK_NAME]&&delete window[s.WINDOW_CALLBACK_NAME],null!==o&&(s.createLoader=o,o=null),null!==t&&(t.parentElement.removeChild(t),t=null),l&&l()};r?s.load(function(){u()}):u()},s.onLoad=function(e){a.push(e)},s.makeMock=function(){o=s.createLoader,s.createLoader=function(){window.google=s._googleMockApiObject,window[s.WINDOW_CALLBACK_NAME]()}};var l=function(e){var t;for(r=!1,null===n&&(n=window.google),t=0;t<a.length;t++)a[t](n);for(e&&e(n),t=0;t<i.length;t++)i[t](n);i=[]};return s})},function(e,t,n){(function(e){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function t(r){n(this,t),this.$element=r,this.args=e.extend(!0,{},this.defaults(),Utils.options(r.attr("data-module-args"))),this.bind()}return r(t,[{key:"defaults",value:function(){return{}}}]),r(t,[{key:"bind",value:function(){var t=this;t.$header=e(".sn_header"),t.$body=e("body"),e(window).on("load",function(){t.initHeaderOffset=t.$header.offset().top}),e(window).on("resize",function(){t.$header.removeClass("_fix"),t.initHeaderOffset=t.$header.offset().top,t.affixHeader()}),e(window).on("scroll",function(){t.affixHeader()}),e(".sn_menu_toggle").on("click",function(){t.$header.hasClass("_open")?t.closeMenu():t.openMenu()}),e(".sn_header_menu_backdrop").on("click",function(){t.closeMenu()});var n=e(".sn_header_menu_mobile");n.find(".collapse").on("show.bs.collapse",function(){n.children("li").removeClass("_open"),e(this).parents("li").addClass("_open")}).on("hide.bs.collapse",function(){e(this).parents("li").removeClass("_open")});var r=e(".sn_header_search");e(".sn_search_toggle").on("click",function(){r.hasClass("_open")?r.removeClass("_open"):r.addClass("_open")}),e(".sn_header_search_backdrop").on("click",function(){r.removeClass("_open")})}},{key:"affixHeader",value:function(){var t=this,n=e(window).scrollTop();n>t.initHeaderOffset?t.$header.addClass("_fix"):t.$header.removeClass("_fix")}},{key:"closeMenu",value:function(){var e=this;e.$header.removeClass("_open"),e.$body.removeClass("_noscroll")}},{key:"openMenu",value:function(){var e=this;e.$header.addClass("_open"),e.$body.addClass("_noscroll")}}]),t}();t["default"]=i}).call(t,n(3))},function(e,t,n){(function(e){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function t(r){n(this,t),this.$element=r,this.args=e.extend(!0,{},this.defaults(),Utils.options(r.attr("data-module-args"))),this.bind()}return r(t,[{key:"defaults",value:function(){return{elements:{century:{target:".sn_history_affix_y_affix",parent:".sn_history_affix_y"},decade:{target:".sn_history_affix_i_year",parent:".sn_history_affix_i"}},headersOffset:0,checkOnScroll:!0,mq:!0}}}]),r(t,[{key:"bind",value:function(){var t=this;t.calculateOffset(),e(window).on("resize",function(){t.calculateOffset()}),t.args.mq="lg"==Utils.mq()||"xl"==Utils.mq(),e(window).on("resize",function(){t.args.mq="lg"==Utils.mq()||"xl"==Utils.mq()}),e(window).on("scroll resize",function(){t.args.mq&&(e(window).scrollTop()+t.args.headersOffset<t.$element.offset().top?(t.resetAllSliders(),t.resetAllYears(!0)):(t.checkTopBottomElements(t.args.elements.century),t.checkTopBottomElements(t.args.elements.decade)))}),t.$element.parents(".sn_tabs").length&&t.$element.parents(".sn_tabs").find('a[data-toggle="tab"]').on("shown.bs.tab",function(n){t.$element.parents(e(n.target).attr("href")).length&&t.args.mq&&(e(window).scrollTop()+t.args.headersOffset<t.$element.offset().top?(t.resetAllSliders(),t.resetAllYears(!0)):(t.checkTopBottomElements(t.args.elements.century),t.checkTopBottomElements(t.args.elements.decade)))}),e(document).on("sn:swiperChangeHistorySticky",function(n,r){r.parents('[data-module="history-sticky"]')[0]===t.$element[0]&&t.args.mq&&e("body, html").animate({scrollTop:r.offset().top-t.args.headersOffset},800,function(){})}),e(document).on("sn:swiperNextChangeHistorySticky",function(e,n,r){n.parents('[data-module="history-sticky"]')[0]===t.$element[0]&&t.args.mq&&(t.resetAllSliders(n),t.resetAllYears(!1),n.addClass("_swiper_changed"),n.parents(t.args.elements.decade.parent).find(t.args.elements.decade.target).addClass("_out").animate({opacity:0}
158,400),n.parents(t.args.elements.century.parent).find(t.args.elements.century.target).hasClass("_out")||n.parents(t.args.elements.century.parent).find(t.args.elements.century.target).addClass("_out").stop().animate({opacity:0},400))}),e(document).on("sn:swiperPrevChangeHistorySticky",function(e,n){t.resetSlider(n)})}},{key:"checkTopBottomElements",value:function(t){var n=this,r=e(window).scrollTop(),i=e(window).outerHeight();e(n.$element).find(t.parent).each(function(a){var o=e(this).offset().top;if(r+i>=o){var s=e(this).find(t.target),l=Math.round(o-(r+n.args.headersOffset)),u=Math.round(o+e(this).outerHeight()-(r+e(this).find(t.target).outerHeight())-n.args.headersOffset);u<=0?s.addClass("_over").removeClass("_fix").css("top",""):(s.removeClass("_over"),l<=0?(s.addClass("_fix").css("top",n.args.headersOffset+"px"),s.hasClass("_out")||(n.resetAllYears(),n.resetAllSliders())):s.removeClass("_fix").css("top",""))}})}},{key:"resetAllSliders",value:function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=this;t=n&&n.length?r.$element.find("._swiper_changed").not(n).removeClass("_swiper_changed"):r.$element.find("._swiper_changed").removeClass("_swiper_changed"),t.length&&e(document).trigger("sn:slideBackHistorySticky",[t])}},{key:"resetAllYears",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this;t.$element.find("._out").removeClass("_out").animate({opacity:1},400),e&&t.$element.find("._fix").removeClass("_fix").css("top",""),t.$element.find("._over").removeClass("_over")}},{key:"resetSlider",value:function(e){var t=this;e.removeClass("_swiper_changed"),e.parents(t.args.elements.century.parent).find("._out").removeClass("_out").animate({opacity:1},400)}},{key:"calculateOffset",value:function(){var t=this;t.args.headersOffset=0,e(".sn_header").length&&(t.args.headersOffset+=e(".sn_header").outerHeight()),e(".sn_menu_page").length&&(t.args.headersOffset+=e(".sn_menu_page").outerHeight()),e(".sn_banner_buy_show_sticky").length&&(t.args.headersOffset+=e(".sn_banner_buy_show_sticky").outerHeight())}}]),t}();t["default"]=i}).call(t,n(3))},function(e,t,n){(function(e){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(86),o=function(){function t(n){r(this,t),this.$element=n,this.args=e.extend(!0,{},this.defaults(),Utils.options(n.attr("data-module-args"))),this.bind()}return i(t,[{key:"defaults",value:function(){return{target:null,headersOffset:0}}}]),i(t,[{key:"bind",value:function(){var t=this;t.initTargetOffset=0,t.boundaryBottom=0,t.$target=t.$element.find(t.args.target),a(t.$element,function(){t.resetAffix()}),e(window).on("scroll",function(){t.affixBlock()}),e(window).on("resize",function(){t.resetAffix()}),e(document).on("sn:bannerBuyShow",function(){t.resetAffix()}),t.$element.find(".sn_block_accordion_content").on("shown.bs.collapse hidden.bs.collapse",function(){t.resetAffix()}),t.$element.parents(".sn_tabs").length&&t.$element.parents(".sn_tabs").find('a[data-toggle="tab"]').on("shown.bs.tab",function(n){t.$element.parents(e(n.target).attr("href")).length&&t.resetAffix()})}},{key:"setHeights",value:function(){var t=this,n=0;if(t.$element.hasClass("_img_simple")){var r=parseInt(t.$target.css("padding-top"))+parseInt(t.$target.css("padding-bottom"));n=t.$target.find("img").height()+r}else n=e(window).outerHeight()-t.args.headersOffset;t.$target.css("height",n),t.$element.css("min-height",n)}},{key:"affixBlock",value:function(){var t=this,n=e(window).scrollTop();n<t.initTargetOffset&&(t.$target.removeClass("_bottom"),t.$target.removeClass("_fix"),t.$target.css("top","")),n>=t.initTargetOffset&&(t.$target.removeClass("_bottom"),t.$target.addClass("_fix"),t.$target.css("top",t.args.headersOffset+"px")),t.$target.offset().top+t.$target.outerHeight()>t.boundaryBottom&&(t.$target.removeClass("_fix"),t.$target.addClass("_bottom"),t.$target.css("top",""))}},{key:"resetAffix",value:function(){var e=this;e.calculateOffset(),e.$target.removeClass("_bottom"),e.$target.removeClass("_fix"),e.$target.css("top",""),e.setHeights(),e.initTargetOffset=e.$target.offset().top-e.args.headersOffset,e.boun
158daryBottom=e.$element.offset().top+e.$element.outerHeight(),e.affixBlock()}},{key:"calculateOffset",value:function(){var t=this;t.args.headersOffset=0,e(".sn_header").length&&(t.args.headersOffset+=e(".sn_header").outerHeight()),e(".sn_menu_page").length&&(t.args.headersOffset+=e(".sn_menu_page").outerHeight())}}]),t}();t["default"]=o}).call(t,n(3))},function(e,t,n){(function(e){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function t(r){n(this,t),this.$element=r,this.args=e.extend(!0,{},this.defaults(),Utils.options(r.attr("data-module-args"))),this.bind()}return r(t,[{key:"defaults",value:function(){return{}}}]),r(t,[{key:"bind",value:function(){var t=this;e(window).on("load",function(){t.initBlockOffset=t.$element.offset().top-e(".sn_header").outerHeight()}),e(window).on("resize",function(){t.$element.removeClass("_fix"),t.initBlockOffset=t.$element.offset().top-e(".sn_header").outerHeight(),t.affixBlock()}),e(window).on("scroll",function(){t.affixBlock()})}},{key:"affixBlock",value:function(){var t=this,n=e(window).scrollTop();n>t.initBlockOffset?t.$element.addClass("_fix"):t.$element.removeClass("_fix")}}]),t}();t["default"]=i}).call(t,n(3))},function(e,t,n){(function(e){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function t(r){n(this,t),this.$element=r,this.args=e.extend(!0,{},this.defaults(),Utils.options(r.attr("data-module-args"))),this.bind()}return r(t,[{key:"defaults",value:function(){return{}}}]),r(t,[{key:"bind",value:function(){this.clickToScroll()}},{key:"clickToScroll",value:function(){var t=this;t.$element.on("click",function(){var n=t.args.today,r=e(document).find('[data-list-id="'+n+'"]'),i=r.offset().top;e("html,body").animate({scrollTop:i-70},"fast")})}}]),t}();t["default"]=i}).call(t,n(3))},function(e,t,n){(function(e){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),o=n(97),s=r(o),l=function(){function t(n){i(this,t),this.$element=n,this.args=e.extend(!0,{},this.defaults(),Utils.options(n.attr("data-module-args"))),this.bind()}return a(t,[{key:"defaults",value:function(){return{slider:{},params:{pagination:{formatFractionCurrent:function(e){return e<10?"0"+e:e},formatFractionTotal:function(e){return e<10?"0"+e:e},renderFraction:function(e,t){return'<span class="'+e+'"></span><span class="'+t+'"></span>'},renderBullet:function(e,t){return e++,'<span class="'+t+'"><span>'+(e<10?"0"+e:e)+"</span></span>"}}}}}}]),a(t,[{key:"bind",value:function(){var t=this;t.customInit(),t.$element.parents(".sn_tabs").length&&t.$element.parents(".sn_tabs").find('a[data-toggle="tab"]').on("shown.bs.tab",function(n){t.$element.parents(e(n.target).attr("href")).length&&t.customInit()})}},{key:"customInit",value:function(){var t=this;t.$element.parents(".tab-pane").length&&!t.$element.parents(".tab-pane.active").length||(t.$swiper=new s["default"](t.$element,t.args.params),t.args.slider.autoHeight&&(t.checkAndSetAutoHeight(),e(window).on("resize",function(){t.checkAndSetAutoHeight()})),t.bindEvents())}},{key:"checkAndSetAutoHeight",value:function(){var t=this;if(e.inArray(Utils.mq(),t.args.slider.autoHeight)){if(!t.$element.hasClass("_autoHeight")){t.$element.removeClass("_noAutoHeight"),t.$element.addClass("_autoHeight"),t.$swiper.destroy(),t.$swiper=null;var n=e.extend(t.args.params,{autoHeight:!0});
158t.$swiper=new s["default"](t.$element,n),t.bindEvents(),t.offEvents()}}else t.$element.hasClass("_noAutoHeight")||(t.$element.removeClass("_autoHeight"),t.$element.addClass("_noAutoHeight"),t.$swiper.destroy(),t.$swiper=null,t.$swiper=new s["default"](t.$element,t.args.params),t.bindEvents(),t.offEvents())}},{key:"changeText",value:function(t){var n=this,r=e(n.$element).find(".swiper-slide").eq(t.realIndex).find(n.args.slider.changeText.origin).clone().html(),i=e(n.$element).parents(n.args.slider.changeText.parents).find(n.args.slider.changeText.target),a=n.args.params.speed?n.args.params.speed/2:250;i.animate({opacity:0},a,function(){i.html(r),i.animate({opacity:1},a)})}},{key:"bindEvents",value:function(){var t=this;if(t.args.slider.changeText&&(t.changeText(t.$swiper),t.$swiper.on("slideChangeTransitionStart",function(){t.changeText(t.$swiper)})),t.args.slider.destroyReload){var n=e.inArray(Utils.mq(),t.args.slider.destroyReload);t.reloaded=n!=-1?n:-1,e(window).on("resize",function(){n=e.inArray(Utils.mq(),t.args.slider.destroyReload),n!=-1&&n!=t.reloaded&&(t.$swiper.destroy(),t.$swiper=new s["default"](t.$element,t.args.params),t.changeText(t.$swiper),t.$swiper.on("slideChangeTransitionStart",function(){t.changeText(t.$swiper)}),t.reloaded=n)})}t.$element.hasClass("sn_calendar_sticky_ct")&&(e(document).on("e_removeCalendarSlides",function(){var n=[];e.each(t.$swiper.slides,function(e,r){0!==e&&e!==t.$swiper.slides.length-1&&n.push(e)}),t.$swiper.removeSlide(n)}),e(document).on("e_addCalendarSlides",function(n,r){var i=[],a="",o="";e.each(r,function(t,n){o="","undefined"!=typeof n.events&&(o="_has_events"),a='<div class="swiper-slide sn_calendar_sticky_i _day">',a+='<div class="dropdown">',a+='<a class="dropdown-toggle '+o+'" href="javascript:;"><div>'+n.number+'<div class="info"> <strong>'+n.short_month+"</strong>"+n.short_day+"</div></div></a>",""!==o&&(a+='<div class="dropdown-menu">',e.each(n.events,function(e,t){a+='<a href="'+t.url+'">',a+='<div class="start_time">',a+='<figure style="background-image: url('+t.image+');"></figure>',a+="<span>"+t.start_time+"</span>",a+="</div>",a+='<div class="title">'+t.title+"</div>",a+="</a>"}),a+="</div>"),a+="</div>",a+="</div>",i.push(a)}),t.$swiper.addSlide(1,i),e(".sn_calendar_sticky_i._day .dropdown").on("mouseenter click",function(t){e(this).find(".dropdown-toggle._has_events").dropdown("toggle")}
158),e(".sn_calendar_sticky_i._day .dropdown").on("mouseleave",function(t){e(this).removeClass("show"),e(this).find(".dropdown-toggle").blur(),e(this).find(".dropdown-menu").removeClass("show")}),e(document).trigger("e_addedCalendarSlides")})),t.$element.parents('[data-module="history-sticky"]').length&&(t.$swiper.on("slideChangeTransitionStart",function(){e(document).trigger("sn:swiperChangeHistorySticky",[e(t.$element)])}),t.$swiper.on("slideNextTransitionEnd",function(){e(document).trigger("sn:swiperNextChangeHistorySticky",[e(t.$element),t.$swiper.realIndex])}),t.$swiper.on("slidePrevTransitionStart",function(){0==t.$swiper.realIndex&&e(document).trigger("sn:swiperPrevChangeHistorySticky",[e(t.$element)])}),e(document).on("sn:slideBackHistorySticky",function(e,n){n[0]===t.$element[0]&&t.$swiper.slideTo(0,400,!1)})),e(document).on("sn:lockSwipes",function(e,n){n[0]===t.$element[0]&&(t.$swiper.allowTouchMove=!1)}),e(document).on("sn:unlockSwipes",function(e,n){n[0]===t.$element[0]&&(t.$swiper.allowTouchMove=!0)})}},{key:"offEvents",value:function(){var e=this;e.$swiper.off("slideChangeTransitionStart"),e.$swiper.off("slideNextTransitionEnd"),e.$swiper.off("slidePrevTransitionStart")}}]),t}();t["default"]=l}).call(t,n(3))},function(e,t,n){!function(t,n){e.exports=n()}(this,function(){"use strict";function e(e,t){var n=[],r=0;if(e&&!t&&e instanceof Le)return e;if(e)if("string"==typeof e){var i,a,o=e.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var s="div";for(0===o.indexOf("<li")&&(s="ul"),0===o.indexOf("<tr")&&(s="tbody"),0!==o.indexOf("<td")&&0!==o.indexOf("<th")||(s="tr"),0===o.indexOf("<tbody")&&(s="table"),0===o.indexOf("<option")&&(s="select"),a=Me.createElement(s),a.innerHTML=o,r=0;r<a.childNodes.length;r+=1)n.push(a.childNodes[r])}else for(i=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||Me).querySelectorAll(e.trim()):[Me.getElementById(e.trim().split("#")[1])],r=0;r<i.length;r+=1)i[r]&&n.push(i[r])}else if(e.nodeType||e===Re||e===Me)n.push(e);else if(e.length>0&&e[0].nodeType)for(r=0;r<e.length;r+=1)n.push(e[r]);return new Le(n)}function t(e){for(var t=[],n=0;n<e.length;n+=1)t.indexOf(e[n])===-1&&t.push(e[n]);return t}function n(e){if("undefined"==typeof e)return this;for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var r=0;r<this.length;r+=1)"undefined"!=typeof this[r]&&"undefined"!=typeof this[r].classList&&this[r].classList.add(t[n]);return this}function r(e){for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var r=0;r<this.length;r+=1)"undefined"!=typeof this[r]&&"undefined"!=typeof this[r].classList&&this[r].classList.remove(t[n]);return this}function i(e){return!!this[0]&&this[0].classList.contains(e)}function a(e){for(var t=e.split(" "),n=0;n<t.length;n+=1)for(var r=0;r<this.length;r+=1)"undefined"!=typeof this[r]&&"undefined"!=typeof this[r].classList&&this[r].classList.toggle(t[n]);return this}function o(e,t){var n=arguments;{if(1!==arguments.length||"string"!=typeof e){for(var r=0;r<this.length;r+=1)if(2===n.length)this[r].setAttribute(e,t);else for(var i in e)this[r][i]=e[i],this[r].setAttribute(i,e[i]);return this}if(this[0])return this[0].getAttribute(e)}}function s(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function l(e,t){var n;{if("undefined"!=typeof t){for(var r=0;r<this.length;r+=1)n=this[r],n.dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[e]=t;return this}if(n=this[0]){if(n.dom7ElementDataStorage&&e in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[e];var i=n.getAttribute("data-"+e);if(i)return i;return}}}function u(e){for(var t=0;t<this.length;t+=1){var n=this[t].style;n.webkitTransform=e,n.transform=e}return this}function c(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t+=1){var n=this[t].style;n.webkitTransitionDuration=e,n.transitionDuration=e}return this}function d(){function t(t){var n=t.target;if(n){var r=t.target.dom7EventData||[];if(r.indexOf(t)<0&&r.unshift(t),e(n).is(s))l.apply(n,r);else for(var i=e(n).parents(),a=0;a<i.length;a+=1)e(i[a]).is(s)&&l.apply(i[a],r)}}function n(e){var t=e&&e.target?e.target.dom7EventData||[]:[];t.indexOf(e)<0&&t.unshift(e),l.apply(this,t)}for(var r,i=[],a=arguments.length;a--;)i[a]=arguments[a];var o=i[0],s=i[1],l=i[2],u=i[3];"function"==typeof i[1]&&(r=i,o=r[0],l=r[1],u=r[2],s=void 0),u||(u=!1);for(var c,d=o.split(" "),h=0;h<this.length;h+=1){var p=this[h];if(s)for(c=0;c<d.length;c+=1){var f=d[c];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[f]||(p.dom7LiveListeners[f]=[]),p.dom7LiveListeners[f].push({listener:l,proxyListener:t}),p.addEventListener(f,t,u)}else for(c=0;c<d.length;c+=1){var g=d[c];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[g]||(p.dom7Listeners[g]=[]),p.dom7Listeners[g].push({listener:l,proxyListener:n}),p.addEventListener(g,n,u)}}return this}function h(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=t[0],i=t[1],a=t[2],o=t[3];"function"==typeof t[1]&&(e=t,r=e[0],a=e[1],o=e[2],i=void 0),o||(o=!1);for(var s=r.split(" "),l=0;l<s.length;l+=1)for(var u=s[l],c=0;c<this.length;c+=1){var d=this[c],h=void 0;if(!i&&d.dom7Listeners?h=d.dom7Listeners[u]:i&&d.dom7LiveListeners&&(h=d.dom7LiveListeners[u]),h&&h.length)for(var p=h.length-1;p>=0;p-=1){var f=h[p];a&&f.listener===a?(d.removeEventListener(u,f.proxyListener,o),h.splice(p,1)):a||(d.removeEventListener(u,f.proxyListener,o),h.splice(p,1))}}return this}function p(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=e[0].split(" "),r=e[1],i=0;i<n.length;i+=1)for(var a=n[i],o=0;o<this.length;o+=1){var s=this[o],l=void 0;try{l=new Re.CustomEvent(a,{detail:r,bubbles:!0,cancelable:!0})}catch(u){l=Me.createEvent("Event"),l.initEvent(a,!0,!0),l.detail=r}s.dom7EventData=e.filter(function(e,t){return t>0}),s.dispatchEvent(l),s.dom7EventData=[],delete s.dom7EventData}return this}function f(e){function t(a){if(a.target===this)for(e.call(this,a),n=0;n<r.length;n+=1)i.off(r[n],t)}var n,r=["webkitTransitionEnd","transitionend"],i=this;if(e)for(n=0;n<r.length;n+=1)i.on(r[n],t);return this}function g(e){if(this.length>0){if(e){ 159var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+
159parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function m(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}function v(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),n=Me.body,r=e.clientTop||n.clientTop||0,i=e.clientLeft||n.clientLeft||0,a=e===Re?Re.scrollY:e.scrollTop,o=e===Re?Re.scrollX:e.scrollLeft;return{top:t.top+a-r,left:t.left+o-i}}return null}function y(){return this[0]?Re.getComputedStyle(this[0],null):{}}function _(e,t){var n;if(1===arguments.length){if("string"!=typeof e){for(n=0;n<this.length;n+=1)for(var r in e)this[n].style[r]=e[r];return this}if(this[0])return Re.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(n=0;n<this.length;n+=1)this[n].style[e]=t;return this}return this}function b(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(e.call(this[t],t,this[t])===!1)return this;return this}function T(e){if("undefined"==typeof e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function E(e){if("undefined"==typeof e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function S(t){var n,r,i=this[0];if(!i||"undefined"==typeof t)return!1;if("string"==typeof t){if(i.matches)return i.matches(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);for(n=e(t),r=0;r<n.length;r+=1)if(n[r]===i)return!0;return!1}if(t===Me)return i===Me;if(t===Re)return i===Re;if(t.nodeType||t instanceof Le){for(n=t.nodeType?[t]:t,r=0;r<n.length;r+=1)if(n[r]===i)return!0;return!1}return!1}function w(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}}function C(e){if("undefined"==typeof e)return this;var t,n=this.length;return e>n-1?new Le([]):e<0?(t=n+e,new Le(t<0?[]:[this[t]])):new Le([this[e]])}function k(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n,r=0;r<e.length;r+=1){n=e[r];for(var i=0;i<this.length;i+=1)if("string"==typeof n){var a=Me.createElement("div");for(a.innerHTML=n;a.firstChild;)this[i].appendChild(a.firstChild)}else if(n instanceof Le)for(var o=0;o<n.length;o+=1)this[i].appendChild(n[o]);else this[i].appendChild(n)}return this}function D(e){var t,n;for(t=0;t<this.length;t+=1)if("string"==typeof e){var r=Me.createElement("div");for(r.innerHTML=e,n=r.childNodes.length-1;n>=0;n-=1)this[t].insertBefore(r.childNodes[n],this[t].childNodes[0])}else if(e instanceof Le)for(n=0;n<e.length;n+=1)this[t].insertBefore(e[n],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function x(t){return new Le(this.length>0?t?this[0].nextElementSibling&&e(this[0].nextElementSibling).is(t)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])}function A(t){var n=[],r=this[0];if(!r)return new Le([]);for(;r.nextElementSibling;){var i=r.nextElementSibling;t?e(i).is(t)&&n.push(i):n.push(i),r=i}return new Le(n)}function I(t){if(this.length>0){var n=this[0];return new Le(t?n.previousElementSibling&&e(n.previousElementSibling).is(t)?[n.previousElementSibling]:[]:n.previousElementSibling?[n.previousElementSibling]:[])}return new Le([])}function O(t){var n=[],r=this[0];if(!r)return new Le([]);for(;r.previousElementSibling;){var i=r.previousElementSibling;t?e(i).is(t)&&n.push(i):n.push(i),r=i}return new Le(n)}function P(n){for(var r=[],i=0;i<this.length;i+=1)null!==this[i].parentNode&&(n?e(this[i].parentNode).is(n)&&r.push(this[i].parentNode):r.push(this[i].parentNode));return e(t(r))}function M(n){for(var r=[],i=0;i<this.length;i+=1)for(var a=this[i].parentNode;a;)n?e(a).is(n)&&r.push(a):r.push(a),a=a.parentNode;return e(t(r))}function R(e){var t=this;return"undefined"==typeof e?new Le([]):(t.is(e)||(t=t.parents(e).eq(0)),t)}function L(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(e),i=0;i<r.length;i+=1)t.push(r[i]);return new Le(t)}function N(n){for(var r=[],i=0;i<this.length;i+=1)for(var a=this[i].childNodes,o=0;o<a.length;o+=1)n?1===a[o].nodeType&&e(a[o]).is(n)&&r.push(a[o]):1===a[o].nodeType&&r.push(a[o]);return new Le(t(r))}function U(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function H(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r,i,a=this;for(r=0;r<t.length;r+=1){var o=e(t[r]);for(i=0;i<o.length;i+=1)a[a.length]=o[i],a.length+=1}return a}function j(){var e,t,n=this,r=n.$el;e="undefined"!=typeof n.params.width?n.params.width:r[0].clientWidth,t="undefined"!=typeof n.params.height?n.params.height:r[0].clientHeight,0===e&&n.isHorizontal()||0===t&&n.isVertical()||
159(e=e-parseInt(r.css("padding-left"),10)-parseInt(r.css("padding-right"),10),t=t-parseInt(r.css("padding-top"),10)-parseInt(r.css("padding-bottom"),10),Ue.extend(n,{width:e,height:t,size:n.isHorizontal()?e:t}))}function B(){var e=this,t=e.params,n=e.$wrapperEl,r=e.size,i=e.rtlTranslate,a=e.wrongRTL,o=e.virtual&&t.virtual.enabled,s=o?e.virtual.slides.length:e.slides.length,l=n.children("."+e.params.slideClass),u=o?e.virtual.slides.length:l.length,c=[],d=[],h=[],p=t.slidesOffsetBefore;"function"==typeof p&&(p=t.slidesOffsetBefore.call(e));var f=t.slidesOffsetAfter;"function"==typeof f&&(f=t.slidesOffsetAfter.call(e));var g=e.snapGrid.length,m=e.snapGrid.length,v=t.spaceBetween,y=-p,_=0,b=0;if("undefined"!=typeof r){"string"==typeof v&&v.indexOf("%")>=0&&(v=parseFloat(v.replace("%",""))/100*r),e.virtualSize=-v,i?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""});var T;t.slidesPerColumn>1&&(T=Math.floor(u/t.slidesPerColumn)===u/e.params.slidesPerColumn?u:Math.ceil(u/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(T=Math.max(T,t.slidesPerView*t.slidesPerColumn)));for(var E,S=t.slidesPerColumn,w=T/S,C=w-(t.slidesPerColumn*w-u),k=0;k<u;k+=1){E=0;var D=l.eq(k);if(t.slidesPerColumn>1){var x=void 0,A=void 0,I=void 0;"column"===t.slidesPerColumnFill?(A=Math.floor(k/S),I=k-A*S,(A>C||A===C&&I===S-1)&&(I+=1,I>=S&&(I=0,A+=1)),x=A+I*T/S,D.css({"-webkit-box-ordinal-group":x,"-moz-box-ordinal-group":x,"-ms-flex-order":x,"-webkit-order":x,order:x})):(I=Math.floor(k/w),A=k-I*w),D.css("margin-"+(e.isHorizontal()?"top":"left"),0!==I&&t.spaceBetween&&t.spaceBetween+"px").attr("data-swiper-column",A).attr("data-swiper-row",I)}if("none"!==D.css("display")){if("auto"===t.slidesPerView){var O=Re.getComputedStyle(D[0],null),P=D[0].style.transform,M=D[0].style.webkitTransform;P&&(D[0].style.transform="none"),M&&(D[0].style.webkitTransform="none"),E=t.roundLengths?e.isHorizontal()?D.outerWidth(!0):D.outerHeight(!0):e.isHorizontal()?parseFloat(O.getPropertyValue("width"))+parseFloat(O.getPropertyValue("margin-left"))+parseFloat(O.getPropertyValue("margin-right")):parseFloat(O.getPropertyValue("height"))+
vendor: 4,826 bytes, line 159
159parseFloat(O.getPropertyValue("margin-top"))+parseFloat(O.getPropertyValue("margin-bottom")),P&&(D[0].style.transform=P),M&&(D[0].style.webkitTransform=M),t.roundLengths&&(E=Math.floor(E))}else E=(r-(t.slidesPerView-1)*v)/t.slidesPerView,t.roundLengths&&(E=Math.floor(E)),l[k]&&(e.isHorizontal()?l[k].style.width=E+"px":l[k].style.height=E+"px");l[k]&&(l[k].swiperSlideSize=E),h.push(E),t.centeredSlides?(y=y+E/2+_/2+v,0===_&&0!==k&&(y=y-r/2-v),0===k&&(y=y-r/2-v),Math.abs(y)<.001&&(y=0),t.roundLengths&&(y=Math.floor(y)),b%t.slidesPerGroup===0&&c.push(y),d.push(y)):(t.roundLengths&&(y=Math.floor(y)),b%t.slidesPerGroup===0&&c.push(y),d.push(y),y=y+E+v),e.virtualSize+=E+v,_=E,b+=1}}e.virtualSize=Math.max(e.virtualSize,r)+f;var R;if(i&&a&&("slide"===t.effect||"coverflow"===t.effect)&&n.css({width:e.virtualSize+t.spaceBetween+"px"}),He.flexbox&&!t.setWrapperSize||(e.isHorizontal()?n.css({width:e.virtualSize+t.spaceBetween+"px"}):n.css({height:e.virtualSize+t.spaceBetween+"px"})),t.slidesPerColumn>1&&(e.virtualSize=(E+t.spaceBetween)*T,e.virtualSize=Math.ceil(e.virtualSize/t.slidesPerColumn)-t.spaceBetween,e.isHorizontal()?n.css({width:e.virtualSize+t.spaceBetween+"px"}):n.css({height:e.virtualSize+t.spaceBetween+"px"}),t.centeredSlides)){R=[];for(var L=0;L<c.length;L+=1){var N=c[L];t.roundLengths&&(N=Math.floor(N)),c[L]<e.virtualSize+c[0]&&R.push(N)}c=R}if(!t.centeredSlides){R=[];for(var U=0;U<c.length;U+=1){var H=c[U];t.roundLengths&&(H=Math.floor(H)),c[U]<=e.virtualSize-r&&R.push(H)}c=R,Math.floor(e.virtualSize-r)-Math.floor(c[c.length-1])>1&&c.push(e.virtualSize-r)}if(0===c.length&&(c=[0]),0!==t.spaceBetween&&(e.isHorizontal()?i?l.css({marginLeft:v+"px"}):l.css({marginRight:v+"px"}):l.css({marginBottom:v+"px"})),t.centerInsufficientSlides){var j=0;if(h.forEach(function(e){j+=e+(t.spaceBetween?t.spaceBetween:0)}),j-=t.spaceBetween,j<r){var B=(r-j)/2;c.forEach(function(e,t){c[t]=e-B}),d.forEach(function(e,t){d[t]=e+B})}}Ue.extend(e,{slides:l,snapGrid:c,slidesGrid:d,slidesSizesGrid:h}),u!==s&&e.emit("slidesLengthChange"),c.length!==g&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),d.length!==m&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()}}function F(e){var t,n=this,r=[],i=0;if("number"==typeof e?n.setTransition(e):e===!0&&n.setTransition(n.params.speed),"auto"!==n.params.slidesPerView&&n.params.slidesPerView>1)for(t=0;t<Math.ceil(n.params.slidesPerView);t+=1){var a=n.activeIndex+t;if(a>n.slides.length)break;r.push(n.slides.eq(a)[0])}else r.push(n.slides.eq(n.activeIndex)[0]);for(t=0;t<r.length;t+=1)if("undefined"!=typeof r[t]){var o=r[t].offsetHeight;i=o>i?o:i}i&&n.$wrapperEl.css("height",i+"px")}function V(){for(var e=this,t=e.slides,n=0;n<t.length;n+=1)t[n].swiperSlideOffset=e.isHorizontal()?t[n].offsetLeft:t[n].offsetTop}function W(t){void 0===t&&(t=this&&this.translate||0);var n=this,r=n.params,i=n.slides,a=n.rtlTranslate;if(0!==i.length){"undefined"==typeof i[0].swiperSlideOffset&&n.updateSlidesOffset();var o=-t;a&&(o=t),i.removeClass(r.slideVisibleClass),n.visibleSlidesIndexes=[],n.visibleSlides=[];for(var s=0;s<i.length;s+=1){var l=i[s],u=(o+(r.centeredSlides?n.minTranslate():0)-l.swiperSlideOffset)/(l.swiperSlideSize+r.spaceBetween);if(r.watchSlidesVisibility){var c=-(o-l.swiperSlideOffset),d=c+n.slidesSizesGrid[s],h=c>=0&&c<n.size||d>0&&d<=n.size||c<=0&&d>=n.size;h&&(n.visibleSlides.push(l),n.visibleSlidesIndexes.push(s),i.eq(s).addClass(r.slideVisibleClass))}l.progress=a?-u:u}n.visibleSlides=e(n.visibleSlides)}}function z(e){void 0===e&&(e=this&&this.translate||0);var t=this,n=t.params,r=t.maxTranslate()-t.minTranslate(),i=t.progress,a=t.isBeginning,o=t.isEnd,s=a,l=o;0===r?(i=0,a=!0,o=!0):(i=(e-t.minTranslate())/r,a=i<=0,o=i>=1),Ue.extend(t,{progress:i,isBeginning:a,isEnd:o}),(n.watchSlidesProgress||n.watchSlidesVisibility)&&t.updateSlidesProgress(e),a&&!s&&t.emit("reachBeginning toEdge"),o&&!l&&t.emit("reachEnd toEdge"),(s&&!a||l&&!o)&&t.emit("fromEdge"),t.emit("progress",i)}function $(){var e=this,t=e.slides,n=e.params,r=e.$wrapperEl,i=e.activeIndex,a=e.realIndex,o=e.virtual&&n.virtual.enabled;t.removeClass(n.slideActiveClass+" "+n.slideNextClass+" "+n.slidePrevClass+" "+n.slideDuplicateActiveClass+" "+n.slideDuplicateNextClass+" "+n.slideDuplicatePrevClass);var s;s=o?e.$wrapperEl.find("."+n.slideClass+'[data-swiper-slide-index="'+i+'"]'):t.eq(i),s.addClass(n.slideActiveClass),n.loop&&(s.hasClass(n.slideDuplicateClass)?r.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+a+'"]').addClass(n.slideDuplicateActiveClass):r.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]').addClass(n.slideDuplicateActiveClass));var l=s.nextAll("."+n.slideClass).eq(0).addClass(n.slideNextClass);
159n.loop&&0===l.length&&(l=t.eq(0),l.addClass(n.slideNextClass));var u=s.prevAll("."+n.slideClass).eq(0).addClass(n.slidePrevClass);n.loop&&0===u.length&&(u=t.eq(-1),u.addClass(n.slidePrevClass)),n.loop&&(l.hasClass(n.slideDuplicateClass)?r.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass):r.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass),u.hasClass(n.slideDuplicateClass)?r.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass):r.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass))}function q(e){var t,n=this,r=n.rtlTranslate?n.translate:-n.translate,i=n.slidesGrid,a=n.snapGrid,o=n.params,s=n.activeIndex,l=n.realIndex,u=n.snapIndex,c=e;if("undefined"==typeof c){for(var d=0;d<i.length;d+=1)"undefined"!=typeof i[d+1]?r>=i[d]&&r<i[d+1]-(i[d+1]-i[d])/2?c=d:r>=i[d]&&r<i[d+1]&&(c=d+1):r>=i[d]&&(c=d);o.normalizeSlideIndex&&(c<0||"undefined"==typeof c)&&(c=0)}if(t=a.indexOf(r)>=0?a.indexOf(r):Math.floor(c/o.slidesPerGroup),t>=a.length&&(t=a.length-1),c===s)return void(t!==u&&(n.snapIndex=t,n.emit("snapIndexChange")));var h=parseInt(n.slides.eq(c).attr("data-swiper-slide-index")||c,10);Ue.extend(n,{snapIndex:t,realIndex:h,previousIndex:s,activeIndex:c}),n.emit("activeIndexChange"),n.emit("snapIndexChange"),l!==h&&n.emit("realIndexChange"),n.emit("slideChange")}function G(t){var n=this,r=n.params,i=e(t.target).closest("."+r.slideClass)[0],a=!1;if(i)for(var o=0;o<n.slides.length;o+=1)n.slides[o]===i&&(a=!0);return i&&a?(n.clickedSlide=i,n.virtual&&n.params.virtual.enabled?n.clickedIndex=parseInt(e(i).attr("data-swiper-slide-index"),10):n.clickedIndex=e(i).index(),void(r.slideToClickedSlide&&void 0!==n.clickedIndex&&n.clickedIndex!==n.activeIndex&&n.slideToClickedSlide())):(n.clickedSlide=void 0,void(n.clickedIndex=void 0))}function Y(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this,n=t.params,r=t.rtlTranslate,i=t.translate,a=t.$wrapperEl;if(n.virtualTranslate)return r?-i:i;var o=Ue.getTranslate(a[0],e);return r&&(o=-o),o||0}function X(e,t){var n=this,r=n.rtlTranslate,i=n.params,a=n.$wrapperEl,o=n.progress,s=0,l=0,u=0;n.isHorizontal()?s=r?-e:e:l=e,i.roundLengths&&(s=Math.floor(s),l=Math.floor(l)),i.virtualTranslate||(He.transforms3d?a.transform("translate3d("+s+"px, "+l+"px, "+u+"px)"):a.transform("translate("+s+"px, "+l+"px)")),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?s:l;var c,d=n.maxTranslate()-n.minTranslate();c=0===d?0:(e-n.minTranslate())/d,c!==o&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function K(){return-this.snapGrid[0]}function Q(){return-this.snapGrid[this.snapGrid.length-1]}function Z(e,t){var n=this;n.$wrapperEl.transition(e),n.emit("setTransition",e,t)}function J(e,t){void 0===e&&(e=!0);var n=this,r=n.activeIndex,i=n.params,a=n.previousIndex;i.autoHeight&&n.updateAutoHeight();var o=t;if(o||(o=r>a?"next":r<a?"prev":"reset"),n.emit("transitionStart"),e&&r!==a){if("reset"===o)return void n.emit("slideResetTransitionStart");n.emit("slideChangeTransitionStart"),"next"===o?n.emit("slideNextTransitionStart"):n.emit("slidePrevTransitionStart")}}function ee(e,t){void 0===e&&(e=!0);var n=this,r=n.activeIndex,i=n.previousIndex;n.animating=!1,n.setTransition(0);var a=t;if(a||(a=r>i?"next":r<i?"prev":"reset"),n.emit("transitionEnd"),e&&r!==i){if("reset"===a)return void n.emit("slideResetTransitionEnd");n.emit("slideChangeTransitionEnd"),"next"===a?n.emit("slideNextTransitionEnd"):n.emit("slidePrevTransitionEnd")}}function te(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0);var i=this,a=e;a<0&&(a=0);var o=i.params,s=i.snapGrid,l=i.slidesGrid,u=i.previousIndex,c=i.activeIndex,d=i.rtlTranslate;if(i.animating&&o.preventInteractionOnTransition)return!1;var h=Math.floor(a/o.slidesPerGroup);h>=s.length&&(h=s.length-1),(c||o.initialSlide||0)===(u||0)&&n&&i.emit("beforeSlideChangeStart");var p=-s[h];if(i.updateProgress(p),o.normalizeSlideIndex)for(var f=0;f<l.length;f+=1)-Math.floor(100*p)>=Math.floor(100*l[f])&&(a=f);if(i.initialized&&a!==c){if(!i.allowSlideNext&&p<i.translate&&p<i.minTranslate())return!1;if(!i.allowSlidePrev&&p>i.translate&&p>i.maxTranslate()&&(c||0)!==a)return!1}var g;return g=a>c?"next":a<c?"prev":"reset",d&&-p===i.translate||!d&&p===i.translate?(i.updateActiveIndex(a),o.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),"slide"!==o.effect&&i.setTranslate(p),"reset"!==g&&(i.transitionStart(n,g),i.transitionEnd(n,g)),!1):(0!==t&&He.transition?(i.setTransition(t),i.setTranslate(p),i.updateActiveIndex(a),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,g),i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(e){i&&!i.destroyed&&e.target===this&&(i.$wrapperEl[0].removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].removeEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,g))}),i.$wrapperEl[0].addEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.$wrapperEl[0].addEventListener("webkitTransitionEnd",i.onSlideToWrapperTransitionEnd))):(i.setTransition(0),i.setTranslate(p),i.updateActiveIndex(a),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,g),i.transitionEnd(n,g)),!0)}function ne(e,t,n,r){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===n&&(n=!0);var i=this,a=e;return i.params.loop&&(a+=i.loopedSlides),i.slideTo(a,t,n,r)}function re(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r=this,i=r.params,a=r.animating;
159return i.loop?!a&&(r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft,r.slideTo(r.activeIndex+i.slidesPerGroup,e,t,n)):r.slideTo(r.activeIndex+i.slidesPerGroup,e,t,n)}function ie(e,t,n){function r(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var i=this,a=i.params,o=i.animating,s=i.snapGrid,l=i.slidesGrid,u=i.rtlTranslate;if(a.loop){if(o)return!1;i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft}var c,d=u?i.translate:-i.translate,h=r(d),p=s.map(function(e){return r(e)}),f=(l.map(function(e){return r(e)}),s[p.indexOf(h)],s[p.indexOf(h)-1]);return"undefined"!=typeof f&&(c=l.indexOf(f),c<0&&(c=i.activeIndex-1)),i.slideTo(c,e,t,n)}function ae(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r=this;return r.slideTo(r.activeIndex,e,t,n)}function oe(e,t,n){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var r=this,i=r.activeIndex,a=Math.floor(i/r.params.slidesPerGroup);if(a<r.snapGrid.length-1){var o=r.rtlTranslate?r.translate:-r.translate,s=r.snapGrid[a],l=r.snapGrid[a+1];o-s>(l-s)/2&&(i=r.params.slidesPerGroup)}return r.slideTo(i,e,t,n)}function se(){var t,n=this,r=n.params,i=n.$wrapperEl,a="auto"===r.slidesPerView?n.slidesPerViewDynamic():r.slidesPerView,o=n.clickedIndex;if(r.loop){if(n.animating)return;t=parseInt(e(n.clickedSlide).attr("data-swiper-slide-index"),10),r.centeredSlides?o<n.loopedSlides-a/2||o>n.slides.length-n.loopedSlides+a/2?(n.loopFix(),o=i.children("."+r.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+r.slideDuplicateClass+")").eq(0).index(),Ue.nextTick(function(){n.slideTo(o)})):n.slideTo(o):o>n.slides.length-a?(n.loopFix(),o=i.children("."+r.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+r.slideDuplicateClass+")").eq(0).index(),Ue.nextTick(function(){n.slideTo(o)})):n.slideTo(o)}else n.slideTo(o)}function le(){var t=this,n=t.params,r=t.$wrapperEl;r.children("."+n.slideClass+"."+n.slideDuplicateClass).remove();var i=r.children("."+n.slideClass);if(n.loopFillGroupWithBlank){var a=n.slidesPerGroup-i.length%n.slidesPerGroup;if(a!==n.slidesPerGroup){for(var o=0;o<a;o+=1){var s=e(Me.createElement("div")).addClass(n.slideClass+" "+n.slideBlankClass);r.append(s)}i=r.children("."+n.slideClass)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=i.length),t.loopedSlides=parseInt(n.loopedSlides||n.slidesPerView,10),t.loopedSlides+=n.loopAdditionalSlides,t.loopedSlides>i.length&&(t.loopedSlides=i.length);var l=[],u=[];i.each(function(n,r){var a=e(r);n<t.loopedSlides&&u.push(r),n<i.length&&n>=i.length-t.loopedSlides&&l.push(r),a.attr("data-swiper-slide-index",n)});for(var c=0;c<u.length;c+=1)r.append(e(u[c].cloneNode(!0)).addClass(n.slideDuplicateClass));for(var d=l.length-1;d>=0;d-=1)r.prepend(e(l[d].cloneNode(!0)).addClass(n.slideDuplicateClass))}function ue(){var e,t=this,n=t.params,r=t.activeIndex,i=t.slides,a=t.loopedSlides,o=t.allowSlidePrev,s=t.allowSlideNext,l=t.snapGrid,u=t.rtlTranslate;t.allowSlidePrev=!0,t.allowSlideNext=!0;var c=-l[r],d=c-t.getTranslate();if(r<a){e=i.length-3*a+r,e+=a;var h=t.slideTo(e,0,!1,!0);h&&0!==d&&t.setTranslate((u?-t.translate:t.translate)-d)}else if("auto"===n.slidesPerView&&r>=2*a||r>=i.length-a){e=-i.length+r+a,e+=a;var p=t.slideTo(e,0,!1,!0);p&&0!==d&&t.setTranslate((u?-t.translate:t.translate)-d)}t.allowSlidePrev=o,t.allowSlideNext=s}function ce(){var e=this,t=e.$wrapperEl,n=e.params,r=e.slides;t.children("."+n.slideClass+"."+n.slideDuplicateClass).remove(),r.removeAttr("data-swiper-slide-index")}function de(e){var t=this;if(!(He.touch||!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked)){var n=t.el;n.style.cursor="move",n.style.cursor=e?"-webkit-grabbing":"-webkit-grab",n.style.cursor=e?"-moz-grabbin":"-moz-grab",n.style.cursor=e?"grabbing":"grab"}}function he(){var e=this;He.touch||e.params.watchOverflow&&e.isLocked||(e.el.style.cursor="")}function pe(e){var t=this,n=t.$wrapperEl,r=t.params;if(r.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(var i=0;i<e.length;i+=1)e[i]&&n.append(e[i]);else n.append(e);
vendor: 4,951 bytes, line 159
159r.loop&&t.loopCreate(),r.observer&&He.observer||t.update()}function fe(e){var t=this,n=t.params,r=t.$wrapperEl,i=t.activeIndex;n.loop&&t.loopDestroy();var a=i+1;if("object"==typeof e&&"length"in e){for(var o=0;o<e.length;o+=1)e[o]&&r.prepend(e[o]);a=i+e.length}else r.prepend(e);n.loop&&t.loopCreate(),n.observer&&He.observer||t.update(),t.slideTo(a,0,!1)}function ge(e,t){var n=this,r=n.$wrapperEl,i=n.params,a=n.activeIndex,o=a;i.loop&&(o-=n.loopedSlides,n.loopDestroy(),n.slides=r.children("."+i.slideClass));var s=n.slides.length;if(e<=0)return void n.prependSlide(t);if(e>=s)return void n.appendSlide(t);for(var l=o>e?o+1:o,u=[],c=s-1;c>=e;c-=1){var d=n.slides.eq(c);d.remove(),u.unshift(d)}if("object"==typeof t&&"length"in t){for(var h=0;h<t.length;h+=1)t[h]&&r.append(t[h]);l=o>e?o+t.length:o}else r.append(t);for(var p=0;p<u.length;p+=1)r.append(u[p]);i.loop&&n.loopCreate(),i.observer&&He.observer||n.update(),i.loop?n.slideTo(l+n.loopedSlides,0,!1):n.slideTo(l,0,!1)}function me(e){var t=this,n=t.params,r=t.$wrapperEl,i=t.activeIndex,a=i;n.loop&&(a-=t.loopedSlides,t.loopDestroy(),t.slides=r.children("."+n.slideClass));var o,s=a;if("object"==typeof e&&"length"in e){for(var l=0;l<e.length;l+=1)o=e[l],t.slides[o]&&t.slides.eq(o).remove(),o<s&&(s-=1);s=Math.max(s,0)}else o=e,t.slides[o]&&t.slides.eq(o).remove(),o<s&&(s-=1),s=Math.max(s,0);n.loop&&t.loopCreate(),n.observer&&He.observer||t.update(),n.loop?t.slideTo(s+t.loopedSlides,0,!1):t.slideTo(s,0,!1)}function ve(){for(var e=this,t=[],n=0;n<e.slides.length;n+=1)t.push(n);e.removeSlide(t)}function ye(t){var n=this,r=n.touchEventsData,i=n.params,a=n.touches;if(!n.animating||!i.preventInteractionOnTransition){var o=t;if(o.originalEvent&&(o=o.originalEvent),r.isTouchEvent="touchstart"===o.type,(r.isTouchEvent||!("which"in o)||3!==o.which)&&!(!r.isTouchEvent&&"button"in o&&o.button>0||r.isTouched&&r.isMoved)){if(i.noSwiping&&e(o.target).closest(i.noSwipingSelector?i.noSwipingSelector:"."+i.noSwipingClass)[0])return void(n.allowClick=!0);if(!i.swipeHandler||e(o).closest(i.swipeHandler)[0]){a.currentX="touchstart"===o.type?o.targetTouches[0].pageX:o.pageX,a.currentY="touchstart"===o.type?o.targetTouches[0].pageY:o.pageY;var s=a.currentX,l=a.currentY,u=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,c=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(!u||!(s<=c||s>=Re.screen.width-c)){if(Ue.extend(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=s,a.startY=l,r.touchStartTime=Ue.now(),n.allowClick=!0,n.updateSize(),n.swipeDirection=void 0,i.threshold>0&&(r.allowThresholdMove=!1),"touchstart"!==o.type){var d=!0;e(o.target).is(r.formElements)&&(d=!1),Me.activeElement&&e(Me.activeElement).is(r.formElements)&&Me.activeElement!==o.target&&Me.activeElement.blur();var h=d&&n.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||h)&&o.preventDefault()}n.emit("touchStart",o)}}}}}function _e(t){var n=this,r=n.touchEventsData,i=n.params,a=n.touches,o=n.rtlTranslate,s=t;if(s.originalEvent&&(s=s.originalEvent),!r.isTouched)return void(r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",s));if(!r.isTouchEvent||"mousemove"!==s.type){var l="touchmove"===s.type?s.targetTouches[0].pageX:s.pageX,u="touchmove"===s.type?s.targetTouches[0].pageY:s.pageY;if(s.preventedByNestedSwiper)return a.startX=l,void(a.startY=u);if(!n.allowTouchMove)return n.allowClick=!1,void(r.isTouched&&(Ue.extend(a,{startX:l,startY:u,currentX:l,currentY:u}),r.touchStartTime=Ue.now()));if(r.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop)if(n.isVertical()){if(u<a.startY&&n.translate<=n.maxTranslate()||u>a.startY&&n.translate>=n.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(l<a.startX&&n.translate<=n.maxTranslate()||l>a.startX&&n.translate>=n.minTranslate())return;if(r.isTouchEvent&&Me.activeElement&&s.target===Me.activeElement&&e(s.target).is(r.formElements))return r.isMoved=!0,void(n.allowClick=!1);if(r.allowTouchCallbacks&&n.emit("touchMove",s),!(s.targetTouches&&s.targetTouches.length>1)){a.currentX=l,a.currentY=u;var c=a.currentX-a.startX,d=a.currentY-a.startY;if(!(n.params.threshold&&Math.sqrt(Math.pow(c,2)+Math.pow(d,2))<n.params.threshold)){if("undefined"==typeof r.isScrolling){var h;n.isHorizontal()&&a.currentY===a.startY||n.isVertical()&&a.currentX===a.startX?r.isScrolling=!1:c*c+d*d>=25&&(h=180*Math.atan2(Math.abs(d),Math.abs(c))/Math.PI,r.isScrolling=n.isHorizontal()?h>i.touchAngle:90-h>i.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",s),"undefined"==typeof r.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(r.startMoving=!0)),r.isScrolling)return void(r.isTouched=!1);if(r.startMoving){n.allowClick=!1,s.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&s.stopPropagation(),r.isMoved||(i.loop&&n.loopFix(),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating&&n.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce
vendor: 1,040 bytes, line 159
159=!1,!i.grabCursor||n.allowSlideNext!==!0&&n.allowSlidePrev!==!0||n.setGrabCursor(!0),n.emit("sliderFirstMove",s)),n.emit("sliderMove",s),r.isMoved=!0;var p=n.isHorizontal()?c:d;a.diff=p,p*=i.touchRatio,o&&(p=-p),n.swipeDirection=p>0?"prev":"next",r.currentTranslate=p+r.startTranslate;var f=!0,g=i.resistanceRatio;if(i.touchReleaseOnEdges&&(g=0),p>0&&r.currentTranslate>n.minTranslate()?(f=!1,i.resistance&&(r.currentTranslate=n.minTranslate()-1+Math.pow(-n.minTranslate()+r.startTranslate+p,g))):p<0&&r.currentTranslate<n.maxTranslate()&&(f=!1,i.resistance&&(r.currentTranslate=n.maxTranslate()+1-Math.pow(n.maxTranslate()-r.startTranslate-p,g))),f&&(s.preventedByNestedSwiper=!0),!n.allowSlideNext&&"next"===n.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&"prev"===n.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),i.threshold>0){if(!(Math.abs(p)>i.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);
vendor: 5,773 bytes, lines 159-160
159if(!r.allowThresholdMove)return r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,void(a.diff=n.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}i.followFinger&&((i.freeMode||i.watchSlidesProgress||i.watchSlidesVisibility)&&(n.updateActiveIndex(),n.updateSlidesClasses()),i.freeMode&&(0===r.velocities.length&&r.velocities.push({position:a[n.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:a[n.isHorizontal()?"currentX":"currentY"],time:Ue.now()})),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}}}}}function be(e){var t=this,n=t.touchEventsData,r=t.params,i=t.touches,a=t.rtlTranslate,o=t.$wrapperEl,s=t.slidesGrid,l=t.snapGrid,u=e;if(u.originalEvent&&(u=u.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",u),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&r.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);r.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);var c=Ue.now(),d=c-n.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(u),t.emit("tap",u),d<300&&c-n.lastClickTime>300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),n.clickTimeout=Ue.nextTick(function(){t&&!t.destroyed&&t.emit("click",u)},300)),d<300&&c-n.lastClickTime<300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),t.emit("doubleTap",u))),n.lastClickTime=Ue.now(),Ue.nextTick(function(){t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||0===i.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;var h;if(h=r.followFinger?a?t.translate:-t.translate:-n.currentTranslate,r.freeMode){if(h<-t.minTranslate())return void t.slideTo(t.activeIndex);if(h>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(r.freeModeMomentum){if(n.velocities.length>1){var p=n.velocities.pop(),f=n.velocities.pop(),g=p.position-f.position,m=p.time-f.time;t.velocity=g/m,t.velocity/=2,Math.abs(t.velocity)<r.freeModeMinimumVelocity&&(t.velocity=0),(m>150||Ue.now()-p.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=r.freeModeMomentumVelocityRatio,n.velocities.length=0;var v=1e3*r.freeModeMomentumRatio,y=t.velocity*v,_=t.translate+y;a&&(_=-_);var b,T,E=!1,S=20*Math.abs(t.velocity)*r.freeModeMomentumBounceRatio;if(_<t.maxTranslate())r.freeModeMomentumBounce?(_+t.maxTranslate()<-S&&(_=t.maxTranslate()-S),b=t.maxTranslate(),E=!0,n.allowMomentumBounce=!0):_=t.maxTranslate(),r.loop&&r.centeredSlides&&(T=!0);else if(_>t.minTranslate())r.freeModeMomentumBounce?(_-t.minTranslate()>S&&(_=t.minTranslate()+S),b=t.minTranslate(),E=!0,n.allowMomentumBounce=!0):_=t.minTranslate(),r.loop&&r.centeredSlides&&(T=!0);else if(r.freeModeSticky){for(var w,C=0;C<l.length;C+=1)if(l[C]>-_){w=C;break}_=Math.abs(l[w]-_)<Math.abs(l[w-1]-_)||"next"===t.swipeDirection?l[w]:l[w-1],_=-_}if(T&&t.once("transitionEnd",function(){t.loopFix()}),0!==t.velocity)v=a?Math.abs((-_-t.translate)/t.velocity):Math.abs((_-t.translate)/t.velocity);else if(r.freeModeSticky)return void t.slideToClosest();r.freeModeMomentumBounce&&E?(t.updateProgress(b),t.setTransition(v),t.setTranslate(_),t.transitionStart(!0,t.swipeDirection),t.animating=!0,o.transitionEnd(function(){t&&!t.destroyed&&n.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(r.speed),t.setTranslate(b),o.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))})):t.velocity?(t.updateProgress(_),t.setTransition(v),t.setTranslate(_),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,o.transitionEnd(function(){t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(_),t.updateActiveIndex(),t.updateSlidesClasses()}else if(r.freeModeSticky)return void t.slideToClosest();return void((!r.freeModeMomentum||d>=r.longSwipesMs)&&(t.updateProgress(), 160t.updateActiveIndex(),t.updateSlidesClasses()))}for(var k=0,D=t.slidesSizesGrid[0],x=0;x<s.length;x+=r.slidesPerGroup)"undefined"!=typeof s[x+r.slidesPerGroup]?h>=s[x]&&h<s[x+r.slidesPerGroup]&&(k=x,D=s[x+r.slidesPerGroup]-s[x]):h>=s[x]&&(k=x,D=s[s.length-1]-s[s.length-2]);var A=(h-s[k])/D;if(d>r.longSwipesMs){if(!r.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(A>=r.longSwipesRatio?t.slideTo(k+r.slidesPerGroup):t.slideTo(k)),"prev"===t.swipeDirection&&(A>1-r.longSwipesRatio?t.slideTo(k+r.slidesPerGroup):t.slideTo(k))}else{if(!r.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(k+r.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(k)}}function Te(){var e=this,t=e.params,n=e.el;if(!n||0!==n.offsetWidth){t.breakpoints&&e.setBreakpoint();var r=e.allowSlideNext,i=e.allowSlidePrev,a=e.snapGrid;if(e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),t.freeMode){var o=Math.min(Math.max(e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(o),e.updateActiveIndex(),e.updateSlidesClasses(),t.autoHeight&&e.updateAutoHeight()}else e.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);e.allowSlidePrev=i,e.allowSlideNext=r,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}}function Ee(e){var t=this;t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}function Se(){var e=this,t=e.params,n=e.touchEvents,r=e.el,i=e.wrapperEl;e.onTouchStart=ye.bind(e),e.onTouchMove=_e.bind(e),e.onTouchEnd=be.bind(e),e.onClick=Ee.bind(e);var a="container"===t.touchEventsTarget?r:i,o=!!t.nested;
160if(He.touch||!He.pointerEvents&&!He.prefixedPointerEvents){if(He.touch){var s=!("touchstart"!==n.start||!He.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};a.addEventListener(n.start,e.onTouchStart,s),a.addEventListener(n.move,e.onTouchMove,He.passiveListener?{passive:!1,capture:o}:o),a.addEventListener(n.end,e.onTouchEnd,s)}(t.simulateTouch&&!Ye.ios&&!Ye.android||t.simulateTouch&&!He.touch&&Ye.ios)&&(a.addEventListener("mousedown",e.onTouchStart,!1),Me.addEventListener("mousemove",e.onTouchMove,o),Me.addEventListener("mouseup",e.onTouchEnd,!1))}else a.addEventListener(n.start,e.onTouchStart,!1),Me.addEventListener(n.move,e.onTouchMove,o),Me.addEventListener(n.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&a.addEventListener("click",e.onClick,!0),e.on(Ye.ios||Ye.android?"resize orientationchange observerUpdate":"resize observerUpdate",Te,!0)}function we(){var e=this,t=e.params,n=e.touchEvents,r=e.el,i=e.wrapperEl,a="container"===t.touchEventsTarget?r:i,o=!!t.nested;if(He.touch||!He.pointerEvents&&!He.prefixedPointerEvents){if(He.touch){var s=!("onTouchStart"!==n.start||!He.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};a.removeEventListener(n.start,e.onTouchStart,s),a.removeEventListener(n.move,e.onTouchMove,o),a.removeEventListener(n.end,e.onTouchEnd,s)}(t.simulateTouch&&!Ye.ios&&!Ye.android||t.simulateTouch&&!He.touch&&Ye.ios)&&(a.removeEventListener("mousedown",e.onTouchStart,!1),Me.removeEventListener("mousemove",e.onTouchMove,o),Me.removeEventListener("mouseup",e.onTouchEnd,!1))}else a.removeEventListener(n.start,e.onTouchStart,!1),Me.removeEventListener(n.move,e.onTouchMove,o),Me.removeEventListener(n.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&a.removeEventListener("click",e.onClick,!0),e.off(Ye.ios||Ye.android?"resize orientationchange observerUpdate":"resize observerUpdate",Te)}function Ce(){var e=this,t=e.activeIndex,n=e.initialized,r=e.loopedSlides;void 0===r&&(r=0);var i=e.params,a=i.breakpoints;if(a&&(!a||0!==Object.keys(a).length)){var o=e.getBreakpoint(a);if(o&&e.currentBreakpoint!==o){var s=o in a?a[o]:void 0;s&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(function(e){var t=s[e];"undefined"!=typeof t&&("slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?s[e]=parseFloat(t):s[e]=parseInt(t,10):s[e]="auto")});var l=s||e.originalParams,u=i.loop&&l.slidesPerView!==i.slidesPerView;Ue.extend(e.params,l),Ue.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=o,u&&n&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-r+e.loopedSlides,0,!1)),e.emit("breakpoint",l)}}}function ke(e){var t=this;if(e){var n=!1,r=[];Object.keys(e).forEach(function(e){r.push(e)}),r.sort(function(e,t){return parseInt(e,10)-parseInt(t,10)});for(var i=0;i<r.length;i+=1){var a=r[i];t.params.breakpointsInverse?a<=Re.innerWidth&&(n=a):a>=Re.innerWidth&&!n&&(n=a)}return n||"max"}}function De(){var e=this,t=e.classNames,n=e.params,r=e.rtl,i=e.$el,a=[];a.push(n.direction),n.freeMode&&a.push("free-mode"),He.flexbox||a.push("no-flexbox"),n.autoHeight&&a.push("autoheight"),r&&a.push("rtl"),n.slidesPerColumn>1&&a.push("multirow"),Ye.android&&a.push("android"),Ye.ios&&a.push("ios"),(Qe.isIE||Qe.isEdge)&&(He.pointerEvents||He.prefixedPointerEvents)&&a.push("wp8-"+n.direction),a.forEach(function(e){t.push(n.containerModifierClass+e)}),i.addClass(t.join(" "))}function xe(){var e=this,t=e.$el,n=e.classNames;t.removeClass(n.join(" "))}function Ae(e,t,n,r,i,a){function o(){a&&a()}var s;e.complete&&i?o():t?(s=new Re.Image,s.onload=o,s.onerror=o,r&&(s.sizes=r),n&&(s.srcset=n),t&&(s.src=t)):o()}function Ie(){function e(){"undefined"!=typeof t&&null!==t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}var t=this;t.imagesToLoad=t.$el.find("img");for(var n=0;n<t.imagesToLoad.length;n+=1){var r=t.imagesToLoad[n];t.loadImage(r,r.currentSrc||r.getAttribute("src"),r.srcset||r.getAttribute("srcset"),r.sizes||r.getAttribute("sizes"),!0,e)}}function Oe(){var e=this,t=e.isLocked;e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),t&&t!==e.isLocked&&(e.isEnd=!1,e.navigation.update())}function Pe(){var e="onwheel",t=e in Me;if(!t){var n=Me.createElement("div");n.setAttribute(e,"return;"),t="function"==typeof n[e]}return!t&&Me.implementation&&Me.implementation.hasFeature&&Me.implementation.hasFeature("","")!==!0&&(t=Me.implementation.hasFeature("Events.wheel","3.0")),t}var Me="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,Re="undefined"==typeof window?{document:Me,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,Le=function(e){for(var t=this,n=0;n<e.length;n+=1)t[n]=e[n];return t.length=e.length,this};e.fn=Le.prototype,e.Class=Le,e.Dom7=Le;var Ne={addClass:n,removeClass:r,hasClass:i,toggleClass:a,attr:o,removeAttr:s,data:l,transform:u,transition:c,on:d,off:h,trigger:p,transitionEnd:f,outerWidth:g,outerHeight:m,offset:v,css:_,each:b,html:T,text:E,is:S,index:w,eq:C,append:k,prepend:D,next:x,nextAll:A,prev:I,prevAll:O,parent:P,parents:M,closest:R,find:L,children:N,remove:U,add:H,styles:y};Object.keys(Ne).forEach(function(t){e.fn[t]=Ne[t]});var Ue={deleteProps:function(e){var t=e;Object.keys(t).forEach(function(e){try{t[e]=null}catch(n){}try{delete t[e]}catch(n){}})},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e,t){void 0===t&&(t="x");var n,r,i,a=Re.getComputedStyle(e,null);return Re.WebKitCSSMatrix?(r=a.transform||a.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),i=new Re.WebKitCSSMatrix("none"===r?"":r)):(i=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),n=i.toString().split(",")),"x"===t&&(r=Re.WebKitCSSMatrix?i.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===t&&(r=Re.WebKitCSSMatrix?i.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),r||0},parseUrlQuery:function(e){var t,n,r,i,a={},o=e||Re.location.href;if("string"==typeof o&&o.length)for(o=o.indexOf("?")>-1?o.replace(/\S*\?/,""):"",n=o.split("&").filter(function(e){return""!==e}),i=n.length,t=0;t<i;t+=1)r=n[t].replace(/#\S+/g,"").split("="),a[decodeURIComponent(r[0])]="undefined"==typeof r[1]?void 0:decodeURIComponent(r[1])||"";return a},isObject:function(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=Object(e[0]),r=1;r<e.length;r+=1){var i=e[r];if(void 0!==i&&null!==i)for(var a=Object.keys(Object(i)),o=0,s=a.length;o<s;o+=1){var l=a[o],u=Object.getOwnPropertyDescriptor(i,l);void 0!==u&&u.enumerable&&(Ue.isObject(n[l])&&Ue.isObject(i[l])?Ue.extend(n[l],i[l]):!Ue.isObject(n[l])&&Ue.isObject(i[l])?(n[l]={},Ue.extend(n[l],i[l])):n[l]=i[l])}}return n}},He=function(){var e=Me.createElement("div");return{touch:Re.Modernizr&&Re.Modernizr.touch===!0||function(){return!!("ontouchstart"in Re||Re.DocumentTouch&&Me instanceof Re.DocumentTouch)}(),pointerEvents:!!(Re.navigator.pointerEnabled||Re.PointerEvent||"maxTouchPoints"in Re.navigator),prefixedPointerEvents:!!Re.navigator.msPointerEnabled,transition:function(){var t=e.style;return"transition"in t||"webkitTransition"in t||"MozTransition"in t}(),transforms3d:Re.Modernizr&&Re.Modernizr.csstransforms3d===!0||function(){var t=e.style;return"webkitPerspective"in t||"MozPerspective"in t||"OPerspective"in t||"MsPerspective"in t||"perspective"in t}(),flexbox:function(){for(var t=e.style,n="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),r=0;r<n.length;r+=1)if(n[r]in t)return!0;return!1}(),observer:function(){return"MutationObserver"in Re||"WebkitMutationObserver"in Re}(),passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});Re.addEventListener("testPassiveListener",null,t)}catch(n){}return e}(),gestures:function(){return"ongesturestart"in Re}()}}(),je=function(e){void 0===e&&(e={});var t=this;t.params=e,t.eventsListeners={}
160,t.params&&t.params.on&&Object.keys(t.params.on).forEach(function(e){t.on(e,t.params.on[e])})},Be={components:{configurable:!0}};je.prototype.on=function(e,t,n){var r=this;if("function"!=typeof t)return r;var i=n?"unshift":"push";return e.split(" ").forEach(function(e){r.eventsListeners[e]||(r.eventsListeners[e]=[]),r.eventsListeners[e][i](t)}),r},je.prototype.once=function(e,t,n){function r(){for(var n=[],a=arguments.length;a--;)n[a]=arguments[a];t.apply(i,n),i.off(e,r)}var i=this;return"function"!=typeof t?i:i.on(e,r,n)},je.prototype.off=function(e,t){var n=this;return n.eventsListeners?(e.split(" ").forEach(function(e){"undefined"==typeof t?n.eventsListeners[e]=[]:n.eventsListeners[e]&&n.eventsListeners[e].length&&n.eventsListeners[e].forEach(function(r,i){r===t&&n.eventsListeners[e].splice(i,1)})}),n):n},je.prototype.emit=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=this;if(!n.eventsListeners)return n;var r,i,a;"string"==typeof e[0]||Array.isArray(e[0])?(r=e[0],i=e.slice(1,e.length),a=n):(r=e[0].events,i=e[0].data,a=e[0].context||n);var o=Array.isArray(r)?r:r.split(" ");return o.forEach(function(e){if(n.eventsListeners&&n.eventsListeners[e]){var t=[];n.eventsListeners[e].forEach(function(e){t.push(e)}),t.forEach(function(e){e.apply(a,i)})}}),n},je.prototype.useModulesParams=function(e){var t=this;t.modules&&Object.keys(t.modules).forEach(function(n){var r=t.modules[n];r.params&&Ue.extend(e,r.params)})},je.prototype.useModules=function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach(function(n){var r=t.modules[n],i=e[n]||{};r.instance&&Object.keys(r.instance).forEach(function(e){var n=r.instance[e];"function"==typeof n?t[e]=n.bind(t):t[e]=n}),r.on&&t.on&&Object.keys(r.on).forEach(function(e){t.on(e,r.on[e])}),r.create&&r.create.bind(t)(i)})},Be.components.set=function(e){var t=this;t.use&&t.use(e)},je.installModule=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this;r.prototype.modules||(r.prototype.modules={});var i=e.name||Object.keys(r.prototype.modules).length+"_"+Ue.now();return r.prototype.modules[i]=e,e.proto&&Object.keys(e.proto).forEach(function(t){r.prototype[t]=e.proto[t]}),e["static"]&&Object.keys(e["static"]).forEach(function(t){r[t]=e["static"][t]}),e.install&&e.install.apply(r,t),r},je.use=function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];var r=this;return Array.isArray(e)?(e.forEach(function(e){return r.installModule(e)}),r):r.installModule.apply(r,[e].concat(t))},Object.defineProperties(je,Be);var Fe={updateSize:j,updateSlides:B,updateAutoHeight:F,updateSlidesOffset:V,updateSlidesProgress:W,updateProgress:z,updateSlidesClasses:$,updateActiveIndex:q,updateClickedSlide:G},Ve={getTranslate:Y,setTranslate:X,minTranslate:K,maxTranslate:Q},We={setTransition:Z,transitionStart:J,transitionEnd:ee},ze={slideTo:te,slideToLoop:ne,slideNext:re,slidePrev:ie,slideReset:ae,slideToClosest:oe,slideToClickedSlide:se},$e={loopCreate:le,loopFix:ue,loopDestroy:ce},qe={setGrabCursor:de,unsetGrabCursor:he},Ge={appendSlide:pe,prependSlide:fe,addSlide:ge,removeSlide:me,removeAllSlides:ve},Ye=function(){var e=Re.navigator.userAgent,t={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:Re.cordova||Re.phonegap,phonegap:Re.cordova||Re.phonegap},n=e.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),r=e.match(/(Android);?[\s\/]+([\d.]+)?/),i=e.match(/(iPad).*OS\s([\d_]+)/),a=e.match(/(iPod)(.*OS\s([\d_]+))?/),o=!i&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(n&&(t.os="windows",t.osVersion=n[2],t.windows=!0),r&&!n&&(t.os="android",t.osVersion=r[2],t.android=!0,t.androidChrome=e.toLowerCase().indexOf("chrome")>=0),(i||o||a)&&(t.os="ios",t.ios=!0),o&&!a&&(t.osVersion=o[2].replace(/_/g,"."),t.iphone=!0),i&&(t.osVersion=i[2].replace(/_/g,"."),t.ipad=!0),a&&(t.osVersion=a[3]?a[3].replace(/_/g,"."):null,t.iphone=!0),t.ios&&t.osVersion&&e.indexOf("Version/")>=0&&"10"===t.osVersion.split(".")[0]&&(t.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),t.desktop=!(t.os||t.android||t.webView),t.webView=(o||i||a)&&e.match(/.*AppleWeb
160Kit(?!.*Safari)/i),t.os&&"ios"===t.os){var s=t.osVersion.split("."),l=Me.querySelector('meta[name="viewport"]');t.minimalUi=!t.webView&&(a||o)&&(1*s[0]===7?1*s[1]>=1:1*s[0]>7)&&l&&l.getAttribute("content").indexOf("minimal-ui")>=0}return t.pixelRatio=Re.devicePixelRatio||1,t}(),Xe={attachEvents:Se,detachEvents:we},Ke={setBreakpoint:Ce,getBreakpoint:ke},Qe=function(){function e(){var e=Re.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}return{isIE:!!Re.navigator.userAgent.match(/Trident/g)||!!Re.navigator.userAgent.match(/MSIE/g),isEdge:!!Re.navigator.userAgent.match(/Edge/g),isSafari:e(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(Re.navigator.userAgent)}}(),Ze={addClasses:De,removeClasses:xe},Je={loadImage:Ae,preloadImages:Ie},et={checkOverflow:Oe},tt={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},nt={update:Fe,translate:Ve,transition:We,slide:ze,loop:$e,grabCursor:qe,manipulation:Ge,events:Xe,breakpoints:Ke,checkOverflow:et,classes:Ze,images:Je},rt={},it=function(t){function n(){for(var r,i=[],a=arguments.length;a--;)i[a]=arguments[a];var o,s;1===i.length&&i[0].constructor&&i[0].constructor===Object?s=i[0]:(r=i,o=r[0],s=r[1]),s||(s={}),s=Ue.extend({},s),o&&!s.el&&(s.el=o),t.call(this,s),Object.keys(nt).forEach(function(e){Object.keys(nt[e]).forEach(function(t){n.prototype[t]||(n.prototype[t]=nt[e][t])})});var l=this;"undefined"==typeof l.modules&&(l.modules={}),Object.keys(l.modules).forEach(function(e){var t=l.modules[e];if(t.params){var n=Object.keys(t.params)[0],r=t.params[n];if("object"!=typeof r||null===r)return;if(!(n in s&&"enabled"in r))return;s[n]===!0&&(s[n]={enabled:!0}),"object"!=typeof s[n]||"enabled"in s[n]||(s[n].enabled=!0),s[n]||(s[n]={enabled:!1})}});var u=Ue.extend({},tt);l.useModulesParams(u),l.params=Ue.extend({},u,rt,s),l.originalParams=Ue.extend({},l.params),l.passedParams=Ue.extend({},s),l.$=e;var c=e(l.params.el);if(o=c[0]){if(c.length>1){var d=[];return c.each(function(e,t){var r=Ue.extend({},s,{el:t});d.push(new n(r))}),d}o.swiper=l,c.data("swiper",l);var h=c.children("."+l.params.wrapperClass);return Ue.extend(l,{$el:c,el:o,$wrapperEl:h,wrapperEl:h[0],classNames:[],slides:e(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===l.params.direction},isVertical:function(){return"vertical"===l.params.direction},rtl:"rtl"===o.dir.toLowerCase()||"rtl"===c.css("direction"),rtlTranslate:"horizontal"===l.params.direction&&("rtl"===o.dir.toLowerCase()||"rtl"===c.css("direction")),wrongRTL:"-webkit-box"===h.css("display"),activeIndex:0,realIndex:0,isBeg
160inning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEvents:function(){var e=["touchstart","touchmove","touchend"],t=["mousedown","mousemove","mouseup"];return He.pointerEvents?t=["pointerdown","pointermove","pointerup"]:He.prefixedPointerEvents&&(t=["MSPointerDown","MSPointerMove","MSPointerUp"]),l.touchEventsTouch={start:e[0],move:e[1],end:e[2]},l.touchEventsDesktop={start:t[0],move:t[1],end:t[2]},He.touch||!l.params.simulateTouch?l.touchEventsTouch:l.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:Ue.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.useModules(),l.params.init&&l.init(),l}}t&&(n.__proto__=t),n.prototype=Object.create(t&&t.prototype),n.prototype.constructor=n;var r={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return n.prototype.slidesPerViewDynamic=function(){var e=this,t=e.params,n=e.slides,r=e.slidesGrid,i=e.size,a=e.activeIndex,o=1;if(t.centeredSlides){for(var s,l=n[a].swiperSlideSize,u=a+1;u<n.length;u+=1)n[u]&&!s&&(l+=n[u].swiperSlideSize,o+=1,l>i&&(s=!0));for(var c=a-1;c>=0;c-=1)n[c]&&!s&&(l+=n[c].swiperSlideSize,o+=1,l>i&&(s=!0))}else for(var d=a+1;d<n.length;d+=1)r[d]-r[a]<i&&(o+=1);return o},n.prototype.update=function(){function e(){var e=t.rtlTranslate?t.translate*-1:t.translate,n=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(n),t.updateActiveIndex(),t.updateSlidesClasses()}var t=this;if(t&&!t.destroyed){var n=t.snapGrid,r=t.params;r.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();var i;t.params.freeMode?(e(),t.params.autoHeight&&t.updateAutoHeight()):(i=("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),i||e()),r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}},n.prototype.init=function(){var e=this;e.initialized||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit),e.attachEvents(),e.initialized=!0,e.emit("init"))},n.prototype.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var n=this,r=n.params,i=n.$el,a=n.$wrapperEl,o=n.slides;return"undefined"==typeof n.params||n.destroyed?null:(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),r.loop&&n.loopDestroy(),t&&(n.removeClasses(),i.removeAttr("style"),a.removeAttr("style"),o&&o.length&&o.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(function(e){n.off(e)}),e!==!1&&(n.$el[0].swiper=null,n.$el.data("swiper",null),Ue.deleteProps(n)),n.destroyed=!0,null)},n.extendDefaults=function(e){Ue.extend(rt,e)},r.extendedDefaults.get=function(){return rt},r.defaults.get=function(){return tt},r.Class.get=function(){return t},r.$.get=function(){return e},Object.defineProperties(n,r),n}(je),at={name:"device",proto:{device:Ye},"static":{device:Ye}},ot={name:"support",proto:{support:He},"static":{support:He}},st={name:"browser",proto:{browser:Qe},"static":{browser:Qe}},lt={name:"resize",create:function(){var e=this;Ue.extend(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){var e=this;Re.addEventListener("resize",e.resize.resizeHandler),Re.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy:function(){var e=this;Re.removeEventListener("resize",e.resize.resizeHandler),Re.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}},ut={func:Re.MutationObserver||Re.WebkitMutationObserver,attach:function(e,t){void 0===t&&(t={});var n=this,r=ut.func,i=new r(function(e){if(1===e.length)return void n.emit("observerUpdate",e[0]);var t=function(){n.emit("observerUpdate",e[0])};Re.requestAnimationFrame?Re.requestAnimationFrame(t):Re.setTimeout(t,0)});i.observe(e,{attributes:"undefined"==typeof t.attributes||t.attributes,childList:"undefined"==typeof t.childList||t.childList,characterData:"undefined"==typeof t.characterData||t.characterData}),n.observer.observers.push(i)},init:function(){var e=this;if(He.observer&&e.params.observer){if(e.params.observeParents)for(var t=e.$el.parents(),n=0;n<t.length;n+=1)e.observer.attach(t[n]);e.observer.attach(e.$el[0],{childList:!1}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy:function(){var e=this;
160e.observer.observers.forEach(function(e){e.disconnect()}),e.observer.observers=[]}},ct={name:"observer",params:{observer:!1,observeParents:!1},create:function(){var e=this;Ue.extend(e,{observer:{init:ut.init.bind(e),attach:ut.attach.bind(e),destroy:ut.destroy.bind(e),observers:[]}})},on:{init:function(){var e=this;e.observer.init()},destroy:function(){var e=this;e.observer.destroy()}}},dt={update:function(e){function t(){n.updateSlides(),n.updateProgress(),n.updateSlidesClasses(),n.lazy&&n.params.lazy.enabled&&n.lazy.load()}var n=this,r=n.params,i=r.slidesPerView,a=r.slidesPerGroup,o=r.centeredSlides,s=n.params.virtual,l=s.addSlidesBefore,u=s.addSlidesAfter,c=n.virtual,d=c.from,h=c.to,p=c.slides,f=c.slidesGrid,g=c.renderSlide,m=c.offset;n.updateActiveIndex();var v,y=n.activeIndex||0;v=n.rtlTranslate?"right":n.isHorizontal()?"left":"top";var _,b;o?(_=Math.floor(i/2)+a+l,b=Math.floor(i/2)+a+u):(_=i+(a-1)+l,b=a+u);var T=Math.max((y||0)-b,0),E=Math.min((y||0)+_,p.length-1),S=(n.slidesGrid[T]||0)-(n.slidesGrid[0]||0);if(Ue.extend(n.virtual,{from:T,to:E,offset:S,slidesGrid:n.slidesGrid}),d===T&&h===E&&!e)return n.slidesGrid!==f&&S!==m&&n.slides.css(v,S+"px"),void n.updateProgress();if(n.params.virtual.renderExternal)return n.params.virtual.renderExternal.call(n,{offset:S,from:T,to:E,slides:function(){for(var e=[],t=T;t<=E;t+=1)e.push(p[t]);return e}()}),void t();var w=[],C=[];if(e)n.$wrapperEl.find("."+n.params.slideClass).remove();else for(var k=d;k<=h;k+=1)(k<T||k>E)&&n.$wrapperEl.find("."+n.params.slideClass+'[data-swiper-slide-index="'+k+'"]').remove();for(var D=0;D<p.length;D+=1)D>=T&&D<=E&&("undefined"==typeof h||e?C.push(D):(D>h&&C.push(D),D<d&&w.push(D)));
160C.forEach(function(e){n.$wrapperEl.append(g(p[e],e))}),w.sort(function(e,t){return t-e}).forEach(function(e){n.$wrapperEl.prepend(g(p[e],e))}),n.$wrapperEl.children(".swiper-slide").css(v,S+"px"),t()},renderSlide:function(t,n){var r=this,i=r.params.virtual;if(i.cache&&r.virtual.cache[n])return r.virtual.cache[n];var a=e(i.renderSlide?i.renderSlide.call(r,t,n):'<div class="'+r.params.slideClass+'" data-swiper-slide-index="'+n+'">'+t+"</div>");return a.attr("data-swiper-slide-index")||a.attr("data-swiper-slide-index",n),i.cache&&(r.virtual.cache[n]=a),a},appendSlide:function(e){var t=this;t.virtual.slides.push(e),t.virtual.update(!0)},prependSlide:function(e){var t=this;if(t.virtual.slides.unshift(e),t.params.virtual.cache){var n=t.virtual.cache,r={};Object.keys(n).forEach(function(e){r[e+1]=n[e]}),t.virtual.cache=r}t.virtual.update(!0),t.slideNext(0)}},ht={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var e=this;Ue.extend(e,{virtual:{update:dt.update.bind(e),appendSlide:dt.appendSlide.bind(e),prependSlide:dt.prependSlide.bind(e),renderSlide:dt.renderSlide.bind(e),slides:e.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){var e=this;if(e.params.virtual.enabled){e.classNames.push(e.params.containerModifierClass+"virtual");var t={watchSlidesProgress:!0};Ue.extend(e.params,t),Ue.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update(
160)}},setTranslate:function(){var e=this;e.params.virtual.enabled&&e.virtual.update()}}},pt={handle:function(e){var t=this,n=t.rtlTranslate,r=e;r.originalEvent&&(r=r.originalEvent);var i=r.keyCode||r.charCode;if(!t.allowSlideNext&&(t.isHorizontal()&&39===i||t.isVertical()&&40===i))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&37===i||t.isVertical()&&38===i))return!1;if(!(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey||Me.activeElement&&Me.activeElement.nodeName&&("input"===Me.activeElement.nodeName.toLowerCase()||"textarea"===Me.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(37===i||39===i||38===i||40===i)){var a=!1;if(t.$el.parents("."+t.params.slideClass).length>0&&0===t.$el.parents("."+t.params.slideActiveClass).length)return;var o=Re.innerWidth,s=Re.innerHeight,l=t.$el.offset();n&&(l.left-=t.$el[0].scrollLeft);for(var u=[[l.left,l.top],[l.left+t.width,l.top],[l.left,l.top+t.height],[l.left+t.width,l.top+t.height]],c=0;c<u.length;c+=1){var d=u[c];d[0]>=0&&d[0]<=o&&d[1]>=0&&d[1]<=s&&(a=!0)}if(!a)return}t.isHorizontal()?(37!==i&&39!==i||(r.preventDefault?r.preventDefault():r.returnValue=!1),(39===i&&!n||37===i&&n)&&t.slideNext(),(37===i&&!n||39===i&&n)&&t.slidePrev()):(38!==i&&40!==i||(r.preventDefault?r.preventDefault():r.returnValue=!1),40===i&&t.slideNext(),38===i&&t.slidePrev()),t.emit("keyPress",i)}},enable:function(){var t=this;t.keyboard.enabled||(e(Me).on("keydown",t.keyboard.handle),t.keyboard.enabled=!0)},disable:function(){var t=this;t.keyboard.enabled&&(e(Me).off("keydown",t.keyboard.handle),t.keyboard.enabled=!1)}},ft={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){var e=this;Ue.extend(e,{keyboard:{enabled:!1,enable:pt.enable.bind(e),disable:pt.disable.bind(e),handle:pt.handle.bind(e)}})},on:{init:function(){var e=this;e.params.keyboard.enabled&&e.keyboard.enable()},destroy:function(){var e=this;e.keyboard.enabled&&e.keyboard.disable()}}},gt={lastScrollTime:Ue.now(),event:function(){return Re.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":Pe()?"wheel":"mousewheel"}(),normalize:function(e){var t=10,n=40,r=800,i=0,a=0,o=0,s=0;return"detail"in e&&(a=e.detail),"wheelDelta"in e&&(a=-e.wheelDelta/120),"wheelDeltaY"in e&&(a=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(i=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(i=a,a=0),o=i*t,s=a*t,"deltaY"in e&&(s=e.deltaY),"deltaX"in e&&(o=e.deltaX),(o||s)&&e.deltaMode&&(1===e.deltaMode?(o*=n,s*=n):(o*=r,s*=r)),o&&!i&&(i=o<1?-1:1),s&&!a&&(a=s<1?-1:1),{spinX:i,spinY:a,pixelX:o,pixelY:s}},handleMouseEnter:function(){var e=this;e.mouseEntered=!0},handleMouseLeave:function(){var e=this;e.mouseEntered=!1},handle:function(e){var t=e,n=this,r=n.params.mousewheel;if(!n.mouseEntered&&!r.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var i=0,a=n.rtlTranslate?-1:1,o=gt.normalize(t);if(r.forceToAxis)if(n.isHorizontal()){if(!(Math.abs(o.pixelX)>Math.abs(o.pixelY)))return!0;i=o.pixelX*a}else{if(!(Math.abs(o.pixelY)>Math.abs(o.pixelX)))return!0;i=o.pixelY}else i=Math.abs(o.pixelX)>Math.abs(o.pixelY)?-o.pixelX*a:-o.pixelY;if(0===i)return!0;if(r.invert&&(i=-i),n.params.freeMode){n.params.loop&&n.loopFix();var s=n.getTranslate()+i*r.sensitivity,l=n.isBeginning,u=n.isEnd;if(s>=n.minTranslate()&&(s=n.minTranslate()),s<=n.maxTranslate()&&(s=n.maxTranslate()),n.setTransition(0),n.setTranslate(s),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!l&&n.isBeginning||!u&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky&&(clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=Ue.nextTick(function(){n.slideToClosest(); 161},300)),n.emit("scroll",t),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),s===n.minTranslate()||s===n.maxTranslate())return!0}else{if(Ue.now()-n.mousewheel.lastScrollTime>60)if(i<0)if(n.isEnd&&!n.params.loop||n.animating){if(r.releaseOnEdges)return!0}else n.slideNext(),n.emit("scroll",t);else if(n.isBeginning&&!n.params.loop||n.animating){if(r.releaseOnEdges)return!0}else n.slidePrev(),n.emit("scroll",t);n.mousewheel.lastScrollTime=(new Re.Date).getTime()}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},enable:function(){var t=this;if(!gt.event)return!1;if(t.mousewheel.enabled)return!1;var n=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(n=e(t.params.mousewheel.eventsTarged)),n.on("mouseenter",t.mousewheel.handleMouseEnter),n.on("mouseleave",t.mousewheel.handleMouseLeave),n.on(gt.event,t.mousewheel.handle),t.mousewheel.enabled=!0,!0},disable:function(){var t=this;if(!gt.event)return!1;if(!t.mousewheel.enabled)return!1;var n=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(n=e(t.params.mousewheel.eventsTarged)),n.off(gt.event,t.mousewheel.handle),t.mousewheel.enabled=!1,!0}},mt={name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var e=this;Ue.extend(e,{mousewheel:{enabled:!1,enable:gt.enable.bind(e),disable:gt.disable.bind(e),handle:gt.handle.bind(e),handleMouseEnter:gt.handleMouseEnter.bind(e),handleMouseLeave:gt.handleMouseLeave.bind(e),lastScrollTime:Ue.now()}})},on:{init:function(){var e=this;e.params.mousewheel.enabled&&e.mousewheel.enable()},destroy:function(){var e=this;e.mousewheel.enabled&&e.mousewheel.disable()}}},vt={update:function(){var e=this,t=e.params.navigation;if(!e.params.loop){var n=e.navigation,r=n.$nextEl,i=n.$prevEl;i&&i.length>0&&(e.isBeginning?i.addClass(t.disabledClass):i.removeClass(t.disabledClass),i[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass)),r&&r.length>0&&(e.isEnd?r.addClass(t.disabledClass):r.removeClass(t.disabledClass),r[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(e){var t=this;e.preventDefault(),t.isBeginning&&!t.params.loop||t.slidePrev()},onNextClick:function(e){var t=this;e.preventDefault(),t.isEnd&&!t.params.loop||t.slideNext()},init:function(){var t=this,n=t.params.navigation;if(n.nextEl||n.prevEl){var r,i;n.nextEl&&(r=e(n.nextEl),t.params.uniqueNavElements&&"string"==typeof n.nextEl&&r.length>1&&1===t.$el.find(n.nextEl).length&&(r=t.$el.find(n.nextEl))),n.prevEl&&(i=e(n.prevEl),t.params.uniqueNavElements&&"string"==typeof n.prevEl&&i.length>1&&1===t.$el.find(n.prevEl).length&&(i=t.$el.find(n.prevEl))),r&&r.length>0&&r.on("click",t.navigation.onNextClick),i&&i.length>0&&i.on("click",t.navigation.onPrevClick),Ue.extend(t.navigation,{$nextEl:r,nextEl:r&&r[0],$prevEl:i,prevEl:i&&i[0]})}},destroy:function(){var e=this,t=e.navigation,n=t.$nextEl,r=t.$prevEl;
vendor: 4,379 bytes, line 161
161n&&n.length&&(n.off("click",e.navigation.onNextClick),n.removeClass(e.params.navigation.disabledClass)),r&&r.length&&(r.off("click",e.navigation.onPrevClick),r.removeClass(e.params.navigation.disabledClass))}},yt={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){var e=this;Ue.extend(e,{navigation:{init:vt.init.bind(e),update:vt.update.bind(e),destroy:vt.destroy.bind(e),onNextClick:vt.onNextClick.bind(e),onPrevClick:vt.onPrevClick.bind(e)}})},on:{init:function(){var e=this;e.navigation.init(),e.navigation.update()},toEdge:function(){var e=this;e.navigation.update()},fromEdge:function(){var e=this;e.navigation.update()},destroy:function(){var e=this;e.navigation.destroy()},click:function(t){var n=this,r=n.navigation,i=r.$nextEl,a=r.$prevEl;!n.params.navigation.hideOnClick||e(t.target).is(a)||e(t.target).is(i)||(i&&i.toggleClass(n.params.navigation.hiddenClass),a&&a.toggleClass(n.params.navigation.hiddenClass))}}},_t={update:function(){var t=this,n=t.rtl,r=t.params.pagination;if(r.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var i,a=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,o=t.pagination.$el,s=t.params.loop?Math.ceil((a-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(i=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup),i>a-1-2*t.loopedSlides&&(i-=a-2*t.loopedSlides),i>s-1&&(i-=s),i<0&&"bullets"!==t.params.paginationType&&(i=s+i)):i="undefined"!=typeof t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===r.type&&t.pagination.bullets&&t.pagination.bullets.length>0){var l,u,c,d=t.pagination.bullets;if(r.dynamicBullets&&(t.pagination.bulletSize=d.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),o.css(t.isHorizontal()?"width":"height",t.pagination.bulletSize*(r.dynamicMainBullets+4)+"px"),r.dynamicMainBullets>1&&void 0!==t.previousIndex&&(t.pagination.dynamicBulletIndex+=i-t.previousIndex,t.pagination.dynamicBulletIndex>r.dynamicMainBullets-1?t.pagination.dynamicBulletIndex=r.dynamicMainBullets-1:t.pagination.dynamicBulletIndex<0&&(t.pagination.dynamicBulletIndex=0)),l=i-t.pagination.dynamicBulletIndex,u=l+(Math.min(d.length,r.dynamicMainBullets)-1),c=(u+l)/2),d.removeClass(r.bulletActiveClass+" "+r.bulletActiveClass+"-next "+r.bulletActiveClass+"-next-next "+r.bulletActiveClass+"-prev "+r.bulletActiveClass+"-prev-prev "+r.bulletActiveClass+"-main"),o.length>1)d.each(function(t,n){var a=e(n),o=a.index();o===i&&a.addClass(r.bulletActiveClass),r.dynamicBullets&&(o>=l&&o<=u&&a.addClass(r.bulletActiveClass+"-main"),o===l&&a.prev().addClass(r.bulletActiveClass+"-prev").prev().addClass(r.bulletActiveClass+"-prev-prev"),o===u&&a.next().addClass(r.bulletActiveClass+"-next").next().addClass(r.bulletActiveClass+"-next-next"))});else{var h=d.eq(i);if(h.addClass(r.bulletActiveClass),r.dynamicBullets){for(var p=d.eq(l),f=d.eq(u),g=l;g<=u;g+=1)d.eq(g).addClass(r.bulletActiveClass+"-main");p.prev().addClass(r.bulletActiveClass+"-prev").prev().addClass(r.bulletActiveClass+"-prev-prev"),f.next().addClass(r.bulletActiveClass+"-next").next().addClass(r.bulletActiveClass+"-next-next")}}if(r.dynamicBullets){var m=Math.min(d.length,r.dynamicMainBullets+4),v=(t.pagination.bulletSize*m-t.pagination.bulletSize)/2-c*t.pagination.bulletSize,y=n?"right":"left";d.css(t.isHorizontal()?y:"top",v+"px")}}if("fraction"===r.type&&(o.find("."+r.currentClass).text(r.formatFractionCurrent(i+1)),o.find("."+r.totalClass).text(r.formatFractionTotal(s))),"progressbar"===r.type){var _;_=r.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";var b=(i+1)/s,T=1,E=1;"horizontal"===_?T=b:E=b,o.find("."+r.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+T+") scaleY("+E+")").transition(t.params.speed)}"custom"===r.type&&r.renderCustom?(o.html(r.renderCustom(t,i+1,s)),t.emit("paginationRender",t,o[0])):t.emit("paginationUpdate",t,o[0]),o[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](r.lockClass)}},render:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var n=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,r=e.pagination.$el,i="";
vendor: 4,262 bytes, line 161
161if("bullets"===t.type){for(var a=e.params.loop?Math.ceil((n-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length,o=0;o<a;o+=1)i+=t.renderBullet?t.renderBullet.call(e,o,t.bulletClass):"<"+t.bulletElement+' class="'+t.bulletClass+'"></'+t.bulletElement+">";r.html(i),e.pagination.bullets=r.find("."+t.bulletClass)}"fraction"===t.type&&(i=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):'<span class="'+t.currentClass+'"></span> / <span class="'+t.totalClass+'"></span>',r.html(i)),"progressbar"===t.type&&(i=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'<span class="'+t.progressbarFillClass+'"></span>',r.html(i)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])}},init:function(){var t=this,n=t.params.pagination;if(n.el){var r=e(n.el);0!==r.length&&(t.params.uniqueNavElements&&"string"==typeof n.el&&r.length>1&&1===t.$el.find(n.el).length&&(r=t.$el.find(n.el)),"bullets"===n.type&&n.clickable&&r.addClass(n.clickableClass),r.addClass(n.modifierClass+n.type),"bullets"===n.type&&n.dynamicBullets&&(r.addClass(""+n.modifierClass+n.type+"-dynamic"),t.pagination.dynamicBulletIndex=0,n.dynamicMainBullets<1&&(n.dynamicMainBullets=1)),"progressbar"===n.type&&n.progressbarOpposite&&r.addClass(n.progressbarOppositeClass),n.clickable&&r.on("click","."+n.bulletClass,function(n){n.preventDefault();var r=e(this).index()*t.params.slidesPerGroup;t.params.loop&&(r+=t.loopedSlides),t.slideTo(r)}),Ue.extend(t.pagination,{$el:r,el:r[0]}))}},destroy:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var n=e.pagination.$el;n.removeClass(t.hiddenClass),n.removeClass(t.modifierClass+t.type),e.pagination.bullets&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&n.off("click","."+t.bulletClass)}}},bt={name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){var e=this;Ue.extend(e,{pagination:{init:_t.init.bind(e),render:_t.render.bind(e),update:_t.update.bind(e),destroy:_t.destroy.bind(e),dynamicBulletIndex:0}})},on:{init:function(){var e=this;e.pagination.init(),e.pagination.render(),e.pagination.update()},activeIndexChange:function(){var e=this;e.params.loop?e.pagination.update():"undefined"==typeof e.snapIndex&&e.pagination.update()},snapIndexChange:function(){var e=this;e.params.loop||e.pagination.update()},slidesLengthChange:function(){var e=this;e.params.loop&&(e.pagination.render(),e.pagination.update())},snapGridLengthChange:function(){var e=this;e.params.loop||(e.pagination.render(),e.pagination.update())},destroy:function(){var e=this;e.pagination.destroy()},click:function(t){var n=this;n.params.pagination.el&&n.params.pagination.hideOnClick&&n.pagination.$el.length>0&&!e(t.target).hasClass(n.params.pagination.bulletClass)&&n.pagination.$el.toggleClass(n.params.pagination.hiddenClass)}}},Tt={setTranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,n=e.rtlTranslate,r=e.progress,i=t.dragSize,a=t.trackSize,o=t.$dragEl,s=t.$el,l=e.params.scrollbar,u=i,c=(a-i)*r;n?(c=-c,c>0?(u=i-c,c=0):-c+i>a&&(u=a+c)):c<0?(u=i+c,c=0):c+i>a&&(u=a-c),e.isHorizontal()?(He.transforms3d?o.transform("translate3d("+c+"px, 0, 0)"):o.transform("translateX("+c+"px)"),o[0].style.width=u+"px"):(He.transforms3d?o.transform("translate3d(0px, "+c+"px, 0)"):o.transform("translateY("+c+"px)"),o[0].style.height=u+"px"),l.hide&&(clearTimeout(e.scrollbar.timeout),s[0].style.opacity=1,e.scrollbar.timeout=setTimeout(function(){s[
vendor: 8,794 bytes, line 161
1610].style.opacity=0,s.transition(400)},1e3))}},setTransition:function(e){var t=this;t.params.scrollbar.el&&t.scrollbar.el&&t.scrollbar.$dragEl.transition(e)},updateSize:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,n=t.$dragEl,r=t.$el;n[0].style.width="",n[0].style.height="";var i,a=e.isHorizontal()?r[0].offsetWidth:r[0].offsetHeight,o=e.size/e.virtualSize,s=o*(a/e.size);i="auto"===e.params.scrollbar.dragSize?a*o:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?n[0].style.width=i+"px":n[0].style.height=i+"px",o>=1?r[0].style.display="none":r[0].style.display="",e.params.scrollbarHide&&(r[0].style.opacity=0),Ue.extend(t,{trackSize:a,divider:o,moveDivider:s,dragSize:i}),t.$el[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)}},setDragPosition:function(e){var t,n=this,r=n.scrollbar,i=n.rtlTranslate,a=r.$el,o=r.dragSize,s=r.trackSize;t=n.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY;var l;l=(t-a.offset()[n.isHorizontal()?"left":"top"]-o/2)/(s-o),l=Math.max(Math.min(l,1),0),i&&(l=1-l);var u=n.minTranslate()+(n.maxTranslate()-n.minTranslate())*l;n.updateProgress(u),n.setTranslate(u),n.updateActiveIndex(),n.updateSlidesClasses()},onDragStart:function(e){var t=this,n=t.params.scrollbar,r=t.scrollbar,i=t.$wrapperEl,a=r.$el,o=r.$dragEl;t.scrollbar.isTouched=!0,e.preventDefault(),e.stopPropagation(),i.transition(100),o.transition(100),r.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),a.transition(0),n.hide&&a.css("opacity",1),t.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this,n=t.scrollbar,r=t.$wrapperEl,i=n.$el,a=n.$dragEl;t.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,n.setDragPosition(e),r.transition(0),i.transition(0),a.transition(0),t.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this,n=t.params.scrollbar,r=t.scrollbar,i=r.$el;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,n.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=Ue.nextTick(function(){i.css("opacity",0),i.transition(400)},1e3)),t.emit("scrollbarDragEnd",e),n.snapOnRelease&&t.slideToClosest())},enableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,n=e.touchEventsTouch,r=e.touchEventsDesktop,i=e.params,a=t.$el,o=a[0],s=!(!He.passiveListener||!i.passiveListeners)&&{passive:!1,capture:!1},l=!(!He.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};He.touch?(o.addEventListener(n.start,e.scrollbar.onDragStart,s),o.addEventListener(n.move,e.scrollbar.onDragMove,s),o.addEventListener(n.end,e.scrollbar.onDragEnd,l)):(o.addEventListener(r.start,e.scrollbar.onDragStart,s),Me.addEventListener(r.move,e.scrollbar.onDragMove,s),Me.addEventListener(r.end,e.scrollbar.onDragEnd,l))}},disableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,n=e.touchEventsTouch,r=e.touchEventsDesktop,i=e.params,a=t.$el,o=a[0],s=!(!He.passiveListener||!i.passiveListeners)&&{passive:!1,capture:!1},l=!(!He.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};He.touch?(o.removeEventListener(n.start,e.scrollbar.onDragStart,s),o.removeEventListener(n.move,e.scrollbar.onDragMove,s),o.removeEventListener(n.end,e.scrollbar.onDragEnd,l)):(o.removeEventListener(r.start,e.scrollbar.onDragStart,s),Me.removeEventListener(r.move,e.scrollbar.onDragMove,s),Me.removeEventListener(r.end,e.scrollbar.onDragEnd,l))}},init:function(){var t=this;if(t.params.scrollbar.el){var n=t.scrollbar,r=t.$el,i=t.params.scrollbar,a=e(i.el);t.params.uniqueNavElements&&"string"==typeof i.el&&a.length>1&&1===r.find(i.el).length&&(a=r.find(i.el));var o=a.find("."+t.params.scrollbar.dragClass);0===o.length&&(o=e('<div class="'+t.params.scrollbar.dragClass+'"></div>'),a.append(o)),Ue.extend(n,{$el:a,el:a[0],$dragEl:o,dragEl:o[0]}),i.draggable&&n.enableDraggable()}},destroy:function(){var e=this;e.scrollbar.disableDraggable()}},Et={name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){var e=this;Ue.extend(e,{scrollbar:{init:Tt.init.bind(e),destroy:Tt.destroy.bind(e),updateSize:Tt.updateSize.bind(e),setTranslate:Tt.setTranslate.bind(e),setTransition:Tt.setTransition.bind(e),enableDraggable:Tt.enableDraggable.bind(e),disableDraggable:Tt.disableDraggable.bind(e),setDragPosition:Tt.setDragPosition.bind(e),onDragStart:Tt.onDragStart.bind(e),onDragMove:Tt.onDragMove.bind(e),onDragEnd:Tt.onDragEnd.bind(e),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){var e=this;e.scrollbar.init(),e.scrollbar.updateSize(),e.scrollbar.setTranslate()},update:function(){var e=this;e.scrollbar.updateSize()},resize:function(){var e=this;e.scrollbar.updateSize()},observerUpdate:function(){var e=this;e.scrollbar.updateSize()},setTranslate:function(){var e=this;e.scrollbar.setTranslate()},setTransition:function(e){var t=this;t.scrollbar.setTransition(e)},destroy:function(){var e=this;e.scrollbar.destroy()}}},St={setTransform:function(t,n){var r=this,i=r.rtl,a=e(t),o=i?-1:1,s=a.attr("data-swiper-parallax")||"0",l=a.attr("data-swiper-parallax-x"),u=a.attr("data-swiper-parallax-y"),c=a.attr("data-swiper-parallax-scale"),d=a.attr("data-swiper-parallax-opacity");if(l||u?(l=l||"0",u=u||"0"):r.isHorizontal()?(l=s,u="0"):(u=s,l="0"),l=l.indexOf("%")>=0?parseInt(l,10)*n*o+"%":l*n*o+"px",u=u.indexOf("%")>=0?parseInt(u,10)*n+"%":u*n+"px","undefined"!=typeof d&&null!==d){var h=d-(d-1)*(1-Math.abs(n));a[0].style.opacity=h}if("undefined"==typeof c||null===c)a.transform("translate3d("+l+", "+u+", 0px)");else{var p=c-(c-1)*(1-Math.abs(n));a.transform("translate3d("+l+", "+u+", 0px) scale("+p+")")}},setTranslate:function(){var t=this,n=t.$el,r=t.slides,i=t.progress,a=t.snapGrid;n.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(e,n){t.parallax.setTransform(n,i)}),r.each(function(n,r){var o=r.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(o+=Math.ceil(n/2)-i*(a.length-1)),o=Math.min(Math.max(o,-1),1),e(r).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(e,n){t.parallax.setTransform(n,o)})})},setTransition:function(t){void 0===t&&(t=this.params.speed);var n=this,r=n.$el;r.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(n,r){var i=e(r),a=parseInt(i.attr("data-swiper-parallax-duration"),10)||t;0===t&&(a=0),i.transition(a)})}},wt={name:"parallax",params:{parallax:{enabled:!1}},create:function(){var e=this;Ue.extend(e,{parallax:{setTransform:St.setTransform.bind(e),setTranslate:St.setTranslate.bind(e),setTransition:St.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;e.params.parallax.enabled&&(e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},init:function(){var e=this;e.params.parallax&&e.parallax.setTranslate()},setTranslate:function(){var e=this;e.params.parallax&&e.parallax.setTranslate()},setTransition:function(e){var t=this;t.params.parallax&&t.parallax.setTransition(e)}}},Ct={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,n=e.targetTouches[0].pageY,r=e.targetTouches[1].pageX,i=e.targetTouches[1].pageY,a=Math.sqrt(Math.pow(r-t,2)+Math.pow(i-n,2));return a},onGestureStart:function(t){var n=this,r=n.params.zoom,i=n.zoom,a=i.gesture;if(i.fakeGestureTouched=!1,i.fakeGestureMoved=!1,!He.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;i.fakeGestureTouched=!0,a.scaleStart=Ct.getDistanceBetweenTouches(t)}return a.$slideEl&&a.$slideEl.length||(a.$slideEl=e(t.target).closest(".swiper-slide"),0===a.$slideEl.length&&(a.$slideEl=n.slides.eq(n.activeIndex)),a.$imageEl=a.$slideEl.find("img, svg, canvas"),a.$imageWrapEl=a.$imageEl.parent("."+r.containerClass),a.maxRatio=a.$imageWrapEl.attr("data-swiper-zoom")||r.maxRatio,0!==a.$imageWrapEl.length)?(a.$imageEl.transition(0),void(n.zoom.isScaling=!0)):void(a.$imageEl=void 0)},onGestureChange:function(e){var t=this,n=t.params.zoom,r=t.zoom,i=r.gesture;if(!He.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;r.fakeGestureMoved=!0,i.scaleMove=Ct.getDistanceBetweenTouches(e)}i.$imageEl&&0!==i.$imageEl.length&&(He.gestures?t.zoom.scale=e.scale*r.currentScale:r.scale=i.scaleMove/i.scaleStart*r.currentScale,r.scale>i.maxRatio&&(r.scale=i.maxRatio-1+Math.pow(r.scale-i.maxRatio+1,.5)),r.scale<n.minRatio&&(r.scale=n.minRatio+1-Math.pow(n.minRatio-r.scale+1,.5)),i.$imageEl.transform("translate3d(0,
1610,0) scale("+r.scale+")"))},onGestureEnd:function(e){var t=this,n=t.params.zoom,r=t.zoom,i=r.gesture;if(!He.gestures){if(!r.fakeGestureTouched||!r.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!Ye.android)return;r.fakeGestureTouched=!1,r.fakeGestureMoved=!1}i.$imageEl&&0!==i.$imageEl.length&&(r.scale=Math.max(Math.min(r.scale,i.maxRatio),n.minRatio),i.$imageEl.transition(t.params.speed).transform("translate3d(0,0,0) scale("+r.scale+")"),r.currentScale=r.scale,r.isScaling=!1,1===r.scale&&(i.$slideEl=void 0))},onTouchStart:function(e){var t=this,n=t.zoom,r=n.gesture,i=n.image;r.$imageEl&&0!==r.$imageEl.length&&(i.isTouched||(Ye.android&&e.preventDefault(),i.isTouched=!0,i.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,i.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this,n=t.zoom,r=n.gesture,i=n.image,a=n.velocity;if(r.$imageEl&&0!==r.$imageEl.length&&(t.allowClick=!1,i.isTouched&&r.$slideEl)){i.isMoved||(i.width=r.$imageEl[0].offsetWidth,i.height=r.$imageEl[0].offsetHeight,i.startX=Ue.getTranslate(r.$imageWrapEl[0],"x")||0,i.startY=Ue.getTranslate(r.$imageWrapEl[0],"y")||0,r.slideWidth=r.$slideEl[0].offsetWidth,r.slideHeight=r.$slideEl[0].offsetHeight,r.$imageWrapEl.transition(0),t.rtl&&(i.startX=-i.startX,i.startY=-i.startY));var o=i.width*n.scale,s=i.height*n.scale;if(!(o<r.slideWidth&&s<r.slideHeight)){if(i.minX=Math.min(r.slideWidth/2-o/2,0),i.maxX=-i.minX,i.minY=Math.min(r.slideHeight/2-s/2,0),i.maxY=-i.minY,i.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,i.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!i.isMoved&&!n.isScaling){if(t.isHorizontal()&&(Math.floor(i.minX)===Math.floor(i.startX)&&i.touchesCurrent.x<i.touchesStart.x||Math.floor(i.maxX)===Math.floor(i.startX)&&i.touchesCurrent.x>i.touchesStart.x))return void(i.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(i.minY)===Math.floor(i.startY)&&i.touchesCurrent.y<i.touchesStart.y||Math.floor(i.maxY)===Math.floor(i.startY)&&i.touchesCurrent.y>i.touchesStart.y))return void(i.isTouched=!1)}e.preventDefault(),e.stopPropagation(),i.isMoved=!0,i.currentX=i.touchesCurrent.x-i.touchesStart.x+i.startX,i.currentY=i.touchesCurrent.y-i.touchesStart.y+i.startY,i.currentX<i.minX&&(i.currentX=i.minX+1-Math.pow(i.minX-i.currentX+1,.8)),i.currentX>i.maxX&&(i.currentX=i.maxX-1+Math.pow(i.currentX-i.maxX+1,.8)),i.currentY<i.minY&&(i.currentY=i.minY+1-Math.pow(i.minY-i.currentY+1,.8)),i.currentY>i.maxY&&(i.currentY=i.maxY-1+Math.pow(i.currentY-i.maxY+1,.8)),a.prevPositionX||(a.prevPositionX=i.touchesCurrent.x),a.prevPositionY||(a.prevPositionY=i.touchesCurrent.y),a.prevTime||(a.prevTime=Date.now()),a.x=(i.touchesCurrent.x-a.prevPositionX)/(Date.now()-a.prevTime)/2,a.y=(i.touchesCurrent.y-a.prevPositionY)/(Date.now()-a.prevTime)/2,Math.abs(i.touchesCurrent.x-a.prevPositionX)<2&&(a.x=0),Math.abs(i.touchesCurrent.y-a.prevPositionY)<2&&(a.y=0),a.prevPositionX=i.touchesCurrent.x,a.prevPositionY=i.touchesCurrent.y,a.prevTime=Date.now(),r.$imageWrapEl.transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}}},onTouchEnd:function(){var e=this,t=e.zoom,n=t.gesture,r=t.image,i=t.velocity;if(n.$imageEl&&0!==n.$imageEl.length){if(!r.isTouched||!r.isMoved)return r.isTouched=!1,void(r.isMoved=!1);r.isTouched=!1,r.isMoved=!1;var a=300,o=300,s=i.x*a,l=r.currentX+s,u=i.y*o,c=r.currentY+u;0!==i.x&&(a=Math.abs((l-r.currentX)/i.x)),0!==i.y&&(o=Math.abs((c-r.currentY)/i.y));var d=Math.max(a,o);r.currentX=l,r.currentY=c;var h=r.width*t.scale,p=r.height*t.scale;r.minX=Math.min(n.slideWidth/2-h/2,0),r.maxX=-r.minX,r.minY=Math.min(n.slideHeight/2-p/2,0),r.maxY=-r.minY,r.currentX=Math.max(Math.min(r.currentX,r.maxX),r.minX),r.currentY=Math.max(Math.min(r.currentY,r.maxY),r.minY),n.$imageWrapEl.transition(d).transform("translate3d("+r.currentX+"px, "+r.currentY+"px,0)")}},onTransitionEnd:function(){var e=this,t=e.zoom,n=t.gesture;n.$slideEl&&e.previousIndex!==e.activeIndex&&(n.$imageEl.transform("translate3d(0,0,0) scale(1)"),n.$imageWrapEl.transform("translate3d(0,
1610,0)"),n.$slideEl=void 0,n.$imageEl=void 0,n.$imageWrapEl=void 0,t.scale=1,t.currentScale=1)},toggle:function(e){var t=this,n=t.zoom;n.scale&&1!==n.scale?n.out():n["in"](e)},"in":function(t){var n=this,r=n.zoom,i=n.params.zoom,a=r.gesture,o=r.image;if(a.$slideEl||(a.$slideEl=n.clickedSlide?e(n.clickedSlide):n.slides.eq(n.activeIndex),a.$imageEl=a.$slideEl.find("img, svg, canvas"),a.$imageWrapEl=a.$imageEl.parent("."+i.containerClass)),a.$imageEl&&0!==a.$imageEl.length){a.$slideEl.addClass(""+i.zoomedSlideClass);var s,l,u,c,d,h,p,f,g,m,v,y,_,b,T,E,S,w;"undefined"==typeof o.touchesStart.x&&t?(s="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,l="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(s=o.touchesStart.x,l=o.touchesStart.y),r.scale=a.$imageWrapEl.attr("data-swiper-zoom")||i.maxRatio,r.currentScale=a.$imageWrapEl.attr("data-swiper-zoom")||i.maxRatio,t?(S=a.$slideEl[0].offsetWidth,w=a.$slideEl[0].offsetHeight,u=a.$slideEl.offset().left,c=a.$slideEl.offset().top,d=u+S/2-s,h=c+w/2-l,g=a.$imageEl[0].offsetWidth,m=a.$imageEl[0].offsetHeight,v=g*r.scale,y=m*r.scale,_=Math.min(S/2-v/2,0),b=Math.min(w/2-y/2,0),T=-_,E=-b,p=d*r.scale,f=h*r.scale,p<_&&(p=_),p>T&&(p=T),f<b&&(f=b),f>E&&(f=E)):(p=0,f=0),a.$imageWrapEl.transition(300).transform("translate3d("+p+"px, "+f+"px,0)"),a.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+r.scale+")")}},out:function(){var t=this,n=t.zoom,r=t.params.zoom,i=n.gesture;i.$slideEl||(i.$slideEl=t.clickedSlide?e(t.clickedSlide):t.slides.eq(t.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent("."+r.containerClass)),i.$imageEl&&0!==i.$imageEl.length&&(n.scale=1,n.currentScale=1,i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideEl.removeClass(""+r.zoomedSlideClass),i.$slideEl=void 0)},enable:function(){var e=this,t=e.zoom;if(!t.enabled){t.enabled=!0;var n=!("touchstart"!==e.touchEvents.start||!He.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};He.gestures?(e.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,n),e.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,n),e.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,n)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,".swiper-slide",t.onGestureStart,n),e.$wrapperEl.on(e.touchEvents.move,".swiper-slide",t.onGestureChange,n),e.$wrapperEl.on(e.touchEvents.end,".swiper-slide",t.onGestureEnd,n)),e.$wrapperEl.on(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}},disable:function(){var e=this,t=e.zoom;if(t.enabled){e.zoom.enabled=!1;var n=!("touchstart"!==e.touchEvents.start||!He.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};He.gestures?(e.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,n),e.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,n),e.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,n)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,".swiper-slide",t.onGestureStart,n),e.$wrapperEl.off(e.touchEvents.move,".swiper-slide",t.onGestureChange,n),e.$wrapperEl.off(e.touchEvents.end,".swiper-slide",t.onGestureEnd,n)),e.$wrapperEl.off(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}}},kt={name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(function(n){t[n]=Ct[n].bind(e)}),Ue.extend(e,{zoom:t})},on:{init:function(){var e=this;e.params.zoom.enabled&&e.zoom.enable()},destroy:function(){var e=this;e.zoom.disable()},touchStart:function(e){var t=this;t.zoom.enabled&&t.zoom.onTouchStart(e)},touchEnd:function(e){var t=this;t.zoom.enabled&&t.zoom.onTouchEnd(e)},doubleTap:function(e){var t=this;t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&t.zoom.toggle(e)},transitionEnd:function(){var e=this;e.zoom.enabled&&e.params.zoom.enabled&&e.zoom.onTransitionEnd()}}},Dt={loadInSlide:function(t,n){void 0===n&&(n=!0);var r=this,i=r.params.lazy;if("undefined"!=typeof t&&0!==r.slides.length){var a=r.virtual&&r.params.virtual.enabled,o=a?r.$wrapperEl.children("."+r.params.slideClass+'[data-swiper-slide-index="'+t+'"]'):r.slides.eq(t),s=o.find("."+i.elementClass+":not(."+i.loadedClass+"):not(."+i.loadingClass+")");!o.hasClass(i.elementClass)||o.hasClass(i.loadedClass)||o.hasClass(i.loadingClass)||(s=s.add(o[0])),0!==s.length&&s.each(function(t,a){var s=e(a);s.addClass(i.loadingClass);var l=s.attr("data-background"),u=s.attr("data-src"),c=s.attr("data-srcset"),d=s.attr("data-sizes");r.loadImage(s[0],u||l,c,d,!1,function(){if("undefined"!=typeof r&&null!==r&&r&&(!r||r.params)&&!r.destroyed){
vendor: 23,361 bytes, lines 161-162
161if(l?(s.css("background-image",'url("'+l+'")'),s.removeAttr("data-background")):(c&&(s.attr("srcset",c),s.removeAttr("data-srcset")),d&&(s.attr("sizes",d),s.removeAttr("data-sizes")),u&&(s.attr("src",u),s.removeAttr("data-src"))),s.addClass(i.loadedClass).removeClass(i.loadingClass),o.find("."+i.preloaderClass).remove(),r.params.loop&&n){var e=o.attr("data-swiper-slide-index");if(o.hasClass(r.params.slideDuplicateClass)){var t=r.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+r.params.slideDuplicateClass+")");r.lazy.loadInSlide(t.index(),!1)}else{var a=r.$wrapperEl.children("."+r.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');r.lazy.loadInSlide(a.index(),!1)}}r.emit("lazyImageReady",o[0],s[0])}}),r.emit("lazyImageLoad",o[0],s[0])})}},load:function(){function t(e){if(l){if(i.children("."+a.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(o[e])return!0;return!1}function n(t){return l?e(t).attr("data-swiper-slide-index"):e(t).index()}var r=this,i=r.$wrapperEl,a=r.params,o=r.slides,s=r.activeIndex,l=r.virtual&&a.virtual.enabled,u=a.lazy,c=a.slidesPerView;if("auto"===c&&(c=0),r.lazy.initialImageLoaded||(r.lazy.initialImageLoaded=!0),r.params.watchSlidesVisibility)i.children("."+a.slideVisibleClass).each(function(t,n){var i=l?e(n).attr("data-swiper-slide-index"):e(n).index();r.lazy.loadInSlide(i)});else if(c>1)for(var d=s;d<s+c;d+=1)t(d)&&r.lazy.loadInSlide(d);else r.lazy.loadInSlide(s);if(u.loadPrevNext)if(c>1||u.loadPrevNextAmount&&u.loadPrevNextAmount>1){for(var h=u.loadPrevNextAmount,p=c,f=Math.min(s+p+Math.max(h,p),o.length),g=Math.max(s-Math.max(p,h),0),m=s+c;m<f;m+=1)t(m)&&r.lazy.loadInSlide(m);for(var v=g;v<s;v+=1)t(v)&&r.lazy.loadInSlide(v)}else{var y=i.children("."+a.slideNextClass);y.length>0&&r.lazy.loadInSlide(n(y));var _=i.children("."+a.slidePrevClass);_.length>0&&r.lazy.loadInSlide(n(_))}}},xt={name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading", 162loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){var e=this;Ue.extend(e,{lazy:{initialImageLoaded:!1,load:Dt.load.bind(e),loadInSlide:Dt.loadInSlide.bind(e)}})},on:{beforeInit:function(){var e=this;e.params.lazy.enabled&&e.params.preloadImages&&(e.params.preloadImages=!1)},init:function(){var e=this;e.params.lazy.enabled&&!e.params.loop&&0===e.params.initialSlide&&e.lazy.load()},scroll:function(){var e=this;e.params.freeMode&&!e.params.freeModeSticky&&e.lazy.load()},resize:function(){var e=this;e.params.lazy.enabled&&e.lazy.load()},scrollbarDragMove:function(){var e=this;e.params.lazy.enabled&&e.lazy.load()},transitionStart:function(){var e=this;e.params.lazy.enabled&&(e.params.lazy.loadOnTransitionStart||!e.params.lazy.loadOnTransitionStart&&!e.lazy.initialImageLoaded)&&e.lazy.load()},transitionEnd:function(){var e=this;e.params.lazy.enabled&&!e.params.lazy.loadOnTransitionStart&&e.lazy.load()}}},At={LinearSpline:function(e,t){var n=function(){var e,t,n;return function(r,i){for(t=-1,e=r.length;e-t>1;)n=e+t>>1,r[n]<=i?t=n:e=n;return e}}();this.x=e,this.y=t,this.lastIndex=e.length-1;var r,i;return this.interpolate=function(e){return e?(i=n(this.x,e),r=i-1,(e-this.x[r])*(this.y[i]-this.y[r])/(this.x[i]-this.x[r])+this.y[r]):0},this},getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new At.LinearSpline(t.slidesGrid,e.slidesGrid):new At.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){function n(e){var t=a.rtlTranslate?-a.translate:a.translate;"slide"===a.params.controller.by&&(a.controller.getInterpolateFunction(e),i=-a.controller.spline.interpolate(-t)),i&&"container"!==a.params.controller.by||(r=(e.maxTranslate()-e.minTranslate())/(a.maxTranslate()-a.minTranslate()),i=(t-a.minTranslate())*r+e.minTranslate()),a.params.controller.inverse&&(i=e.maxTranslate()-i),e.updateProgress(i),e.setTranslate(i,a),e.updateActiveIndex(),e.updateSlidesClasses()}var r,i,a=this,o=a.controller.control;if(Array.isArray(o))for(var s=0;s<o.length;s+=1)o[s]!==t&&o[s]instanceof it&&n(o[s]);else o instanceof it&&t!==o&&n(o)},setTransition:function(e,t){function n(t){t.setTransition(e,i),0!==e&&(t.transitionStart(),t.params.autoHeight&&Ue.nextTick(function(){t.updateAutoHeight()}),t.$wrapperEl.transitionEnd(function(){a&&(t.params.loop&&"slide"===i.params.controller.by&&t.loopFix(),t.transitionEnd())}))}var r,i=this,a=i.controller.control;if(Array.isArray(a))for(r=0;r<a.length;r+=1)a[r]!==t&&a[r]instanceof it&&n(a[r]);else a instanceof it&&t!==a&&n(a)}},It={name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var e=this;Ue.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:At.getInterpolateFunction.bind(e),setTranslate:At.setTranslate.bind(e),setTransition:At.setTransition.bind(e)}})},on:{update:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},resize:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},observerUpdate:function(){var e=this;e.controller.control&&e.controller.spline&&(e.controller.spline=void 0,delete e.controller.spline)},setTranslate:function(e,t){var n=this;n.controller.control&&n.controller.setTranslate(e,t)},setTransition:function(e,t){var n=this;n.controller.control&&n.controller.setTransition(e,t)}}},Ot={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(t){var n=this,r=n.params.a11y;if(13===t.keyCode){var i=e(t.target);n.navigation&&n.navigation.$nextEl&&i.is(n.navigation.$nextEl)&&(n.isEnd&&!n.params.loop||n.slideNext(),n.isEnd?n.a11y.notify(r.lastSlideMessage):n.a11y.notify(r.nextSlideMessage)),n.navigation&&n.navigation.$prevEl&&i.is(n.navigation.$prevEl)&&(n.isBeginning&&!n.params.loop||n.slidePrev(),n.isBeginning?n.a11y.notify(r.firstSlideMessage):n.a11y.notify(r.prevSlideMessage)),n.pagination&&i.is("."+n.params.pagination.bulletClass)&&i[0].click()}},notify:function(e){var t=this,n=t.a11y.liveRegion;0!==n.length&&(n.html(""),n.html(e))},updateNavigation:function(){var e=this;if(!e.params.loop){var t=e.navigation,n=t.$nextEl,r=t.$prevEl;r&&r.length>0&&(e.isBeginning?e.a11y.disableEl(r):e.a11y.enableEl(r)),n&&n.length>0&&(e.isEnd?e.a11y.disableEl(n):e.a11y.enableEl(n))}},updatePagination:function(){var t=this,n=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each(function(r,i){var a=e(i);t.a11y.makeElFocusable(a),t.a11y.addElRole(a,"button"),t.a11y.addElLabel(a,n.paginationBulletMessage.replace(/{{index}}/,a.index()+1))})},init:function(){var e=this;e.$el.append(e.a11y.liveRegion);var t,n,r=e.params.a11y;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(n=e.navigation.$prevEl),t&&(e.a11y.makeElFocusable(t),e.a11y.addElRole(t,"button"),e.a11y.addElLabel(t,r.nextSlideMessage),t.on("keydown",e.a11y.onEnterKey)),n&&(e.a11y.makeElFocusable(n),e.a11y.addElRole(n,"button"),e.a11y.addElLabel(n,r.prevSlideMessage),n.on("keydown",e.a11y.onEnterKey)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown","."+e.params.pagination.bulletClass,e.a11y.onEnterKey)},destroy:function(){var e=this;e.a11y.liveRegion&&e.a11y.liveRegion.length>0&&e.a11y.liveRegion.remove();var t,n;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(n=e.navigation.$prevEl),t&&t.off("keydown",e.a11y.onEnterKey),n&&n.off("keydown",e.a11y.onEnterKey),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.off("keydown","."+e.params.pagination.bulletClass,e.a11y.onEnterKey)}},Pt={name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var t=this;Ue.extend(t,{a11y:{liveRegion:e('<span class="'+t.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(Ot).forEach(function(e){t.a11y[e]=Ot[e].bind(t)})},on:{init:function(){var e=this;e.params.a11y.enabled&&(e.a11y.init(),e.a11y.updateNavigation())},toEdge:function(){var e=this;e.params.a11y.enabled&&e.a11y.updateNavigation()},fromEdge:function(){var e=this;e.params.a11y.enabled&&e.a11y.updateNavigation()},paginationUpdate:function(){var e=this;e.params.a11y.enabled&&e.a11y.updatePagination()},destroy:function(){var e=this;e.params.a11y.enabled&&e.a11y.destroy()}}},Mt={init:function(){var e=this;if(e.params.history){if(!Re.history||!Re.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);var t=e.history;t.initialized=!0,t.paths=Mt.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||Re.addEventListener("popstate",e.history.setHistoryPopState))}},destroy:function(){var e=this;e.params.history.replaceState||Re.removeEventListener("popstate",e.history.setHistoryPopState)},setHistoryPopState:function(){var e=this;e.history.paths=Mt.getPathValues(),e.history.scrollToSlide(e.params.speed,e.history.paths.value,!1)},getPathValues:function(){var e=Re.location.pathname.slice(1).split("/").filter(function(e){return""!==e}),t=e.length,n=e[t-2],r=e[t-1];return{key:n,value:r}},setHistory:function(e,t){var n=this;if(n.history.initialized&&n.params.history.enabled){var r=n.slides.eq(t),i=Mt.slugify(r.attr("data-history"));Re.location.pathname.includes(e)||(i=e+"/"+i);var a=Re.history.state;a&&a.value===i||(n.params.history.replaceState?Re.history.replaceState({value:i},null,i):Re.history.pushState({value:i},null,i))}},slugify:function(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,n){var r=this;if(t)for(var i=0,a=r.slides.length;i<a;i+=1){var o=r.slides.eq(i),s=Mt.slugify(o.attr("data-history"));if(s===t&&!o.hasClass(r.params.slideDuplicateClass)){var l=o.index();r.slideTo(l,e,n)}}else r.slideTo(0,e,n)}},Rt={name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var e=this;Ue.extend(e,{history:{init:Mt.init.bind(e),setHistory:Mt.setHistory.bind(e),setHistoryPopState:Mt.setHistoryPopState.bind(e),scrollToSlide:Mt.scrollToSlide.bind(e),destroy:Mt.destroy.bind(e)}})},on:{init:function(){var e=this;e.params.history.enabled&&e.history.init()},destroy:function(){var e=this;e.params.history.enabled&&e.history.destroy()},transitionEnd:function(){var e=this;e.history.initialized&&e.history.setHistory(e.params.history.key,e.activeIndex)}}},Lt={onHashCange:function(){var e=this,t=Me.location.hash.replace("#",""),n=e.slides.eq(e.activeIndex).attr("data-hash");if(t!==n){var r=e.$wrapperEl.children("."+e.params.slideClass+'[data-hash="'+t+'"]').index();if("undefined"==typeof r)return;e.slideTo(r)}},setHash:function(){var e=this;if(e.hashNavigation.initialized&&e.params.hashNavigation.enabled)if(e.params.hashNavigation.replaceState&&Re.history&&Re.history.replaceState)Re.history.replaceState(null,null,"#"+e.slides.eq(e.activeIndex).attr("data-hash")||"");else{var t=e.slides.eq(e.activeIndex),n=t.attr("data-hash")||t.attr("data-history");Me.location.hash=n||""}},init:function(){var t=this;if(!(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)){t.hashNavigation.initialized=!0;var n=Me.location.hash.replace("#","");if(n)for(var r=0,i=0,a=t.slides.length;i<a;i+=1){var o=t.slides.eq(i),s=o.attr("data-hash")||o.attr("data-history");if(s===n&&!o.hasClass(t.params.slideDuplicateClass)){var l=o.index();t.slideTo(l,r,t.params.runCallbacksOnInit,!0)}}t.params.hashNavigation.watchState&&e(Re).on("hashchange",t.hashNavigation.onHashCange)}},destroy:function(){var t=this;t.params.hashNavigation.watchState&&e(Re).off("hashchange",t.hashNavigation.onHashCange)}},Nt={name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var e=this;Ue.extend(e,{hashNavigation:{initialized:!1,init:Lt.init.bind(e),destroy:Lt.destroy.bind(e),setHash:Lt.setHash.bind(e),onHashCange:Lt.onHashCange.bind(e)}})},on:{init:function(){var e=this;e.params.hashNavigation.enabled&&e.hashNavigation.init()},destroy:function(){var e=this;e.params.hashNavigation.enabled&&e.hashNavigation.destroy()},transitionEnd:function(){var e=this;e.hashNavigation.initialized&&e.hashNavigation.setHash()}}},Ut={run:function(){var e=this,t=e.slides.eq(e.activeIndex),n=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(n=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),e.autoplay.timeout=Ue.nextTick(function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay"))},n)},start:function(){var e=this;return"undefined"==typeof e.autoplay.timeout&&(!e.autoplay.running&&(e.autoplay.running=!0,e.emit("autoplayStart"),e.autoplay.run(),!0))},stop:function(){var e=this;return!!e.autoplay.running&&("undefined"!=typeof e.autoplay.timeout&&(e.autoplay.timeout&&(clearTimeout(e.autoplay.timeout),e.autoplay.timeout=void 0),e.autoplay.running=!1,e.emit("autoplayStop"),!0))},pause:function(e){var t=this;t.autoplay.running&&(t.autoplay.paused||(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?(t.$wrapperEl[0].addEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].addEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd)):(t.autoplay.paused=!1,t.autoplay.run())))}},Ht={name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;Ue.extend(e,{autoplay:{running:!1,paused:!1,run:Ut.run.bind(e),start:Ut.start.bind(e),stop:Ut.stop.bind(e),pause:Ut.pause.bind(e),onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){var e=this;e.params.autoplay.enabled&&e.autoplay.start()},beforeTransitionStart:function(e,t){var n=this;n.autoplay.running&&(t||!n.params.autoplay.disableOnInteraction?n.autoplay.pause(e):n.autoplay.stop())},sliderFirstMove:function(){var e=this;e.autoplay.running&&(e.params.autoplay.disableOnInteraction?e.autoplay.stop():e.autoplay.pause())},destroy:function(){var e=this;e.autoplay.running&&e.autoplay.stop()}}},jt={setTranslate:function(){for(var e=this,t=e.slides,n=0;n<t.length;n+=1){var r=e.slides.eq(n),i=r[0].swiperSlideOffset,a=-i;e.params.virtualTranslate||(a-=e.translate);var o=0;e.isHorizontal()||(o=a,a=0);var s=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(r[0].progress),0):1+Math.min(Math.max(r[0].progress,-1),0);r.css({opacity:s}).transform("translate3d("+a+"px, "+o+"px, 0px)")}},setTransition:function(e){var t=this,n=t.slides,r=t.$wrapperEl;if(n.transition(e),t.params.virtualTranslate&&0!==e){var i=!1;n.transitionEnd(function(){if(!i&&t&&!t.destroyed){i=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)r.trigger(e[n])}})}}},Bt={name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){var e=this;Ue.extend(e,{fadeEffect:{setTranslate:jt.setTranslate.bind(e),setTransition:jt.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("fade"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"fade");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};Ue.extend(e.params,t),Ue.extend(e.originalParams,t)}},setTranslate:function(){var e=this;"fade"===e.params.effect&&e.fadeEffect.setTranslate()},setTransition:function(e){var t=this;"fade"===t.params.effect&&t.fadeEffect.setTransition(e)}}},Ft={setTranslate:function(){var t,n=this,r=n.$el,i=n.$wrapperEl,a=n.slides,o=n.width,s=n.height,l=n.rtlTranslate,u=n.size,c=n.params.cubeEffect,d=n.isHorizontal(),h=n.virtual&&n.params.virtual.enabled,p=0;c.shadow&&(d?(t=i.find(".swiper-cube-shadow"),0===t.length&&(t=e('<div class="swiper-cube-shadow"></div>'),i.append(t)),t.css({height:o+"px"})):(t=r.find(".swiper-cube-shadow"),0===t.length&&(t=e('<div class="swiper-cube-shadow"></div>'),r.append(t))));for(var f=0;f<a.length;f+=1){var g=a.eq(f),m=f;h&&(m=parseInt(g.attr("data-swiper-slide-index"),10));var v=90*m,y=Math.floor(v/360);l&&(v=-v,y=Math.floor(-v/360));var _=Math.max(Math.min(g[0].progress,1),-1),b=0,T=0,E=0;m%4===0?(b=4*-y*u,E=0):(m-1)%4===0?(b=0,E=4*-y*u):(m-2)%4===0?(b=u+4*y*u,E=u):(m-3)%4===0&&(b=-u,E=3*u+4*u*y),l&&(b=-b),d||(T=b,b=0);var S="rotateX("+(d?0:-v)+"deg) rotateY("+(d?v:0)+"deg) translate3d("+b+"px, "+T+"px, "+E+"px)";if(_<=1&&_>-1&&(p=90*m+90*_,l&&(p=90*-m-90*_)),g.transform(S),c.slideShadows){var w=d?g.find(".swiper-slide-shadow-left"):g.find(".swiper-slide-shadow-top"),C=d?g.find(".swiper-slide-shadow-right"):g.find(".swiper-slide-shadow-bottom");0===w.length&&(w=e('<div class="swiper-slide-shadow-'+(d?"left":"top")+'"></div>'),g.append(w)),0===C.length&&(C=e('<div class="swiper-slide-shadow-'+(d?"right":"bottom")+'"></div>'),g.append(C)),w.length&&(w[0].style.opacity=Math.max(-_,0)),C.length&&(C[0].style.opacity=Math.max(_,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -"+u/2+"px","-moz-transform-origin":"50% 50% -"+u/2+"px","-ms-transform-origin":"50% 50% -"+u/2+"px","transform-origin":"50% 50% -"+u/2+"px"}),c.shadow)if(d)t.transform("translate3d(0px, "+(o/2+c.shadowOffset)+"px, "+-o/2+"px) rotateX(90deg) rotateZ(0deg) scale("+c.shadowScale+")");else{var k=Math.abs(p)-90*Math.floor(Math.abs(p)/90),D=1.5-(Math.sin(2*k*Math.PI/360)/2+Math.cos(2*k*Math.PI/360)/2),x=c.shadowScale,A=c.shadowScale/D,I=c.shadowOffset;t.transform("scale3d("+x+", 1, "+A+") translate3d(0px, "+(s/2+I)+"px, "+-s/2/A+"px) rotateX(-90deg)")}var O=Qe.isSafari||Qe.isUiWebView?-u/2:0;i.transform("translate3d(0px,0,"+O+"px) rotateX("+(n.isHorizontal()?0:p)+"deg) rotateY("+(n.isHorizontal()?-p:0)+"deg)")},setTransition:function(e){var t=this,n=t.$el,r=t.slides;r.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.cubeEffect.shadow&&!t.isHorizontal()&&n.find(".swiper-cube-shadow").transition(e)}},Vt={name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){var e=this;Ue.extend(e,{cubeEffect:{setTranslate:Ft.setTranslate.bind(e),setTransition:Ft.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("cube"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"cube"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};Ue.extend(e.params,t),Ue.extend(e.originalParams,t)}},setTranslate:function(){var e=this;"cube"===e.params.effect&&e.cubeEffect.setTranslate()},setTransition:function(e){var t=this;"cube"===t.params.effect&&t.cubeEffect.setTransition(e)}}},Wt={setTranslate:function(){for(var t=this,n=t.slides,r=t.rtlTranslate,i=0;i<n.length;i+=1){var a=n.eq(i),o=a[0].progress;t.params.flipEffect.limitRotation&&(o=Math.max(Math.min(a[0].progress,1),-1));var s=a[0].swiperSlideOffset,l=-180*o,u=l,c=0,d=-s,h=0;if(t.isHorizontal()?r&&(u=-u):(h=d,d=0,c=-u,u=0),a[0].style.zIndex=-Math.abs(Math.round(o))+n.length,t.params.flipEffect.slideShadows){var p=t.isHorizontal()?a.find(".swiper-slide-shadow-left"):a.find(".swiper-slide-shadow-top"),f=t.isHorizontal()?a.find(".swiper-slide-shadow-right"):a.find(".swiper-slide-shadow-bottom");0===p.length&&(p=e('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"left":"top")+'"></div>'),a.append(p)),0===f.length&&(f=e('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"right":"bottom")+'"></div>'),a.append(f)),p.length&&(p[0].style.opacity=Math.max(-o,0)),f.length&&(f[0].style.opacity=Math.max(o,0))}a.transform("translate3d("+d+"px, "+h+"px, 0px) rotateX("+c+"deg) rotateY("+u+"deg)")}},setTransition:function(e){var t=this,n=t.slides,r=t.activeIndex,i=t.$wrapperEl;if(n.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var a=!1;n.eq(r).transitionEnd(function(){if(!a&&t&&!t.destroyed){a=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],n=0;n<e.length;n+=1)i.trigger(e[n])}})}}},zt={name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){var e=this;Ue.extend(e,{flipEffect:{setTranslate:Wt.setTranslate.bind(e),setTransition:Wt.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;if("flip"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"flip"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};Ue.extend(e.params,t),Ue.extend(e.originalParams,t)}},setTranslate:function(){var e=this;"flip"===e.params.effect&&e.flipEffect.setTranslate()},setTransition:function(e){var t=this;"flip"===t.params.effect&&t.flipEffect.setTransition(e)}}},$t={setTranslate:function(){for(var t=this,n=t.width,r=t.height,i=t.slides,a=t.$wrapperEl,o=t.slidesSizesGrid,s=t.params.coverflowEffect,l=t.isHorizontal(),u=t.translate,c=l?-u+n/2:-u+r/2,d=l?s.rotate:-s.rotate,h=s.depth,p=0,f=i.length;p<f;p+=1){var g=i.eq(p),m=o[p],v=g[0].swiperSlideOffset,y=(c-v-m/2)/m*s.modifier,_=l?d*y:0,b=l?0:d*y,T=-h*Math.abs(y),E=l?0:s.stretch*y,S=l?s.stretch*y:0;Math.abs(S)<.001&&(S=0),Math.abs(E)<.001&&(E=0),Math.abs(T)<.001&&(T=0),Math.abs(_)<.001&&(_=0),Math.abs(b)<.001&&(b=0);var w="translate3d("+S+"px,"+E+"px,"+T+"px) rotateX("+b+"deg) rotateY("+_+"deg)";if(g.transform(w),g[0].style.zIndex=-Math.abs(Math.round(y))+1,s.slideShadows){var C=l?g.find(".swiper-slide-shadow-left"):g.find(".swiper-slide-shadow-top"),k=l?g.find(".swiper-slide-shadow-right"):g.find(".swiper-slide-shadow-bottom");
1620===C.length&&(C=e('<div class="swiper-slide-shadow-'+(l?"left":"top")+'"></div>'),g.append(C)),0===k.length&&(k=e('<div class="swiper-slide-shadow-'+(l?"right":"bottom")+'"></div>'),g.append(k)),C.length&&(C[0].style.opacity=y>0?y:0),k.length&&(k[0].style.opacity=-y>0?-y:0)}}if(He.pointerEvents||He.prefixedPointerEvents){var D=a[0].style;D.perspectiveOrigin=c+"px 50%"}},setTransition:function(e){var t=this;t.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},qt={name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){var e=this;Ue.extend(e,{coverflowEffect:{setTranslate:$t.setTranslate.bind(e),setTransition:$t.setTransition.bind(e)}})},on:{beforeInit:function(){var e=this;"coverflow"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"coverflow"),e.classNames.push(e.params.containerModifierClass+"3d"),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate:function(){var e=this;"coverflow"===e.params.effect&&e.coverflowEffect.setTranslate()},setTransition:function(e){var t=this;"coverflow"===t.params.effect&&t.coverflowEffect.setTransition(e)}}},Gt={init:function(){var e=this,t=e.params,n=t.thumbs,r=e.constructor;n.swiper instanceof r?(e.thumbs.swiper=n.swiper,Ue.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Ue.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):Ue.isObject(n.swiper)&&(e.thumbs.swiper=new r(Ue.extend({},n.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),e.thumbs.swiperCreated=!0),e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",e.thumbs.onThumbClick)},onThumbClick:function(){var t=this,n=t.thumbs.swiper;if(n){var r=n.clickedIndex,i=n.clickedSlide;if(!(i&&e(i).hasClass(t.params.thumbs.slideThumbActiveClass)||"undefined"==typeof r||null===r)){var a;if(a=n.params.loop?parseInt(e(n.clickedSlide).attr("data-swiper-slide-index"),10):r,t.params.loop){var o=t.activeIndex;t.slides.eq(o).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,o=t.activeIndex);var s=t.slides.eq(o).prevAll('[data-swiper-slide-index="'+a+'"]').eq(0).index(),l=t.slides.eq(o).nextAll('[data-swiper-slide-index="'+a+'"]').eq(0).index();a="undefined"==typeof s?l:"undefined"==typeof l?s:l-o<o-s?l:s}t.slideTo(a)}}},update:function(e){var t=this,n=t.thumbs.swiper;if(n){var r="auto"===n.params.slidesPerView?n.slidesPerViewDynamic():n.params.slidesPerView;if(t.realIndex!==n.realIndex){var i,a=n.activeIndex;if(n.params.loop){n.slides.eq(a).hasClass(n.params.slideDuplicateClass)&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,a=n.activeIndex);var o=n.slides.eq(a).prevAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index(),s=n.slides.eq(a).nextAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index();i="undefined"==typeof o?s:"undefined"==typeof s?o:s-a===a-o?a:s-a<a-o?s:o}else i=t.realIndex;n.visibleSlidesIndexes.indexOf(i)<0&&(n.params.centeredSlides?i=i>a?i-Math.floor(r/2)+1:i+Math.floor(r/2)-1:i>a&&(i=i-r+1),n.slideTo(i,e?0:void 0))}var l=1,u=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(l=t.params.slidesPerView),n.slides.removeClass(u),n.params.loop)for(var c=0;c<l;c+=1)n.$wrapperEl.children('[data-swiper-slide-index="'+(t.realIndex+c)+'"]').addClass(u);else for(var d=0;d<l;d+=1)n.slides.eq(t.realIndex+d).addClass(u)}}},Yt={name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){var e=this;Ue.extend(e,{thumbs:{swiper:null,init:Gt.init.bind(e),update:Gt.update.bind(e),onThumbClick:Gt.onThumbClick.bind(e)}})},on:{beforeInit:function(){var e=this,t=e.params,n=t.thumbs;n&&n.swiper&&(e.thumbs.init(),e.thumbs.update(!0))},slideChange:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},update:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},resize:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},observerUpdate:function(){var e=this;e.thumbs.swiper&&e.thumbs.update()},setTransition:function(e){var t=this,n=t.thumbs.swiper;n&&n.setTransition(e)},beforeDestroy:function(){var e=this,t=e.thumbs.swiper;t&&e.thumbs.swiperCreated&&t&&t.destroy()}}},Xt=[at,ot,st,lt,ct,ht,ft,mt,yt,bt,Et,wt,kt,xt,It,Pt,Rt,Nt,Ht,Bt,Vt,zt,qt,Yt];return"undefined"==typeof it.use&&(it.use=it.Class.use,it.installModule=it.Class.installModule),it.use(Xt),it})},function(e,t,n){(function(e){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
162Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=function(){function t(r){n(this,t),this.$element=r,this.args=e.extend(!0,{},this.defaults(),Utils.options(r.attr("data-module-args"))),this.bind()}return r(t,[{key:"defaults",value:function(){return{themeLink:"",url:"",settings:{muted:!1,loop:!0,controls:!0,autoplay:!1,fluid:!0,techOrder:["youtube"],sources:[],youtube:{modestbranding:1,controls:0,iv_load_policy:3,rel:0,showinfo:1,theme:"dark",color:"red"}}}}}]),r(t,[{key:"bind",value:function(){var t=this,n='<span class="sn_sprite _play"><svg viewBox="0 0 80 80"><use xlink:href="'+t.args.themeLink+'/assets/images/icons.svg#play"/></svg></span>';t.args.settings.sources.push({type:"video/youtube",src:t.args.url}),t.videoJsApi=videojs(t.$element[0],t.args.settings),e(t.videoJsApi.bigPlayButton.el_).append(n),this.args.settings.muted&&t.videoJsApi.muted(!0),this.args.settings.autoplay&&t.videoJsApi.on("ready",function(){t.videoJsApi.muted(!0),t.videoJsApi.play()}),t.videoJsApi.on("ended",function(){t.args.settings.loop&&t.videoJsApi.play()}),e(document).on("sn:videoJsPlay",function(n,r){r==e(t.videoJsApi.el_).attr("id")&&t.videoJsApi.play()}),e(document).on("sn:videoJsStop",function(n,r){r==e(t.videoJsApi.el_).attr("id")&&(t.videoJsApi.pause(),t.videoJsApi.currentTime(0))})}}]),t}();t["default"]=i}).call(t,n(3))}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.