if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||3<t[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(o){"use strict";o.fn.emulateTransitionEnd=function(t){var e=!1,i=this;o(this).one("bsTransitionEnd",function(){e=!0});return setTimeout(function(){e||o(i).trigger(o.support.transition.end)},t),this},o(function(){o.support.transition=function(){var t,e=document.createElement("bootstrap"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(t in i)if(void 0!==e.style[t])return{end:i[t]};return!1}(),o.support.transition&&(o.event.special.bsTransitionEnd={bindType:o.support.transition.end,delegateType:o.support.transition.end,handle:function(t){if(o(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(s){"use strict";function a(t){s(t).on("click",e,this.close)}var e='[data-dismiss="alert"]';a.VERSION="3.4.1",a.TRANSITION_DURATION=150,a.prototype.close=function(t){var e=s(this),i=e.attr("data-target"),o=(i="#"===(i=i||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,""))?[]:i,s(document).find(i));function n(){o.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),(o=o.length?o:e.closest(".alert")).trigger(t=s.Event("close.bs.alert")),t.isDefaultPrevented()||(o.removeClass("in"),s.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",n).emulateTransitionEnd(a.TRANSITION_DURATION):n())};var t=s.fn.alert;s.fn.alert=function(i){return this.each(function(){var t=s(this),e=t.data("bs.alert");e||t.data("bs.alert",e=new a(this)),"string"==typeof i&&e[i].call(t)})},s.fn.alert.Constructor=a,s.fn.alert.noConflict=function(){return s.fn.alert=t,this},s(document).on("click.bs.alert.data-api",e,a.prototype.close)}(jQuery),function(s){"use strict";function o(t,e){this.$element=s(t),this.options=s.extend({},o.DEFAULTS,e),this.isLoading=!1}function i(i){return this.each(function(){var t=s(this),e=t.data("bs.button");e||t.data("bs.button",e=new o(this,"object"==typeof i&&i)),"toggle"==i?e.toggle():i&&e.setState(i)})}o.VERSION="3.4.1",o.DEFAULTS={loadingText:"loading..."},o.prototype.setState=function(t){var e="disabled",i=this.$element,o=i.is("input")?"val":"html",n=i.data();t+="Text",null==n.resetText&&i.data("resetText",i[o]()),setTimeout(s.proxy(function(){i[o]((null==n[t]?this.options:n)[t]),"loadingText"==t?(this.isLoading=!0,i.addClass(e).attr(e,e).prop(e,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(e).removeAttr(e).prop(e,!1))},this),0)},o.prototype.toggle=function(){var t,e=!0,i=this.$element.closest('[data-toggle="buttons"]');i.length?("radio"==(t=this.$element.find("input")).prop("type")?(t.prop("checked")&&(e=!1),i.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==t.prop("type")&&(t.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),t.prop("checked",this.$element.hasClass("active")),e&&t.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};var t=s.fn.button;s.fn.button=i,s.fn.button.Constructor=o,s.fn.button.noConflict=function(){return s.fn.button=t,this},s(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var e=s(t.target).closest(".btn");i.call(e,"toggle"),s(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),(e.is("input,button")?e:e.find("input:visible,button:visible").first()).trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){s(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),function(h){"use strict";function d(t,e){this.$element=h(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=e,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",h.proxy(this.keydown,this)),"hover"!=this.options.pause||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",h.proxy(this.pause,this)).on("mouseleave.bs.carousel",h.proxy(this.cycle,this))}function n(n){return this.each(function(){var t=h(this),e=t.data("bs.carousel"),i=h.extend({},d.DEFAULTS,t.data(),"object"==typeof n&&n),o="string"==typeof n?n:i.slide;e||t.data("bs.carousel",e=new d(this,i)),"number"==typeof n?e.to(n):o?e[o]():i.interval&&e.pause().cycle()})}d.VERSION="3.4.1",d.TRANSITION_DURATION=600,d.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},d.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},d.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(h.proxy(this.next,this),this.options.interval)),this},d.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},d.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e);return("prev"==t&&0===i||"next"==t&&i==this.$items.length-1)&&!this.options.wrap?e:(e=(i+("prev"==t?-1:1))%this.$items.length,this.$items.eq(e))},d.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(i<t?"next":"prev",this.$items.eq(t))},d.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&h.support.transition&&(this.$element.trigger(h.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},d.prototype.next=function(){if(!this.sliding)return this.slide("next")},d.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},d.prototype.slide=function(t,e){var i,o,n,s=this.$element.find(".item.active"),a=e||this.getItemForDirection(t,s),e=this.interval,r="next"==t?"left":"right",l=this;return a.hasClass("active")?this.sliding=!1:(i=a[0],o=h.Event("slide.bs.carousel",{relatedTarget:i,direction:r}),this.$element.trigger(o),o.isDefaultPrevented()?void 0:(this.sliding=!0,e&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),o=h(this.$indicators.children()[this.getItemIndex(a)]))&&o.addClass("active"),n=h.Event("slid.bs.carousel",{relatedTarget:i,direction:r}),h.support.transition&&this.$element.hasClass("slide")?(a.addClass(t),"object"==typeof a&&a.length&&a[0].offsetWidth,s.addClass(r),a.addClass(r),s.one("bsTransitionEnd",function(){a.removeClass([t,r].join(" ")).addClass("active"),s.removeClass(["active",r].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(n)},0)}).emulateTransitionEnd(d.TRANSITION_DURATION)):(s.removeClass("active"),a.addClass("active"),this.sliding=!1,this.$element.trigger(n)),e&&this.cycle(),this))};function t(t){var e,i=h(this),o=(o=i.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,""),o=i.attr("data-target")||o;(o=h(document).find(o)).hasClass("carousel")&&(e=h.extend({},o.data(),i.data()),(i=i.attr("data-slide-to"))&&(e.interval=!1),n.call(o,e),i&&o.data("bs.carousel").to(i),t.preventDefault())}var e=h.fn.carousel;h.fn.carousel=n,h.fn.carousel.Constructor=d,h.fn.carousel.noConflict=function(){return h.fn.carousel=e,this};h(document).on("click.bs.carousel.data-api","[data-slide]",t).on("click.bs.carousel.data-api","[data-slide-to]",t),h(window).on("load",function(){h('[data-ride="carousel"]').each(function(){var t=h(this);n.call(t,t.data())})})}(jQuery),function(n){"use strict";function s(t,e){this.$element=n(t),this.options=n.extend({},s.DEFAULTS,e),this.$trigger=n('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()}function i(t){t=t.attr("data-target")||(t=t.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,"");return n(document).find(t)}function a(o){return this.each(function(){var t=n(this),e=t.data("bs.collapse"),i=n.extend({},s.DEFAULTS,t.data(),"object"==typeof o&&o);!e&&i.toggle&&/show|hide/.test(o)&&(i.toggle=!1),e||t.data("bs.collapse",e=new s(this,i)),"string"==typeof o&&e[o]()})}s.VERSION="3.4.1",s.TRANSITION_DURATION=350,s.DEFAULTS={toggle:!0},s.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},s.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var t=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(t&&t.length&&(o=t.data("bs.collapse"))&&o.transitioning)){var e=n.Event("show.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){t&&t.length&&(a.call(t,"hide"),o||t.data("bs.collapse",null));var i=this.dimension(),e=(this.$element.removeClass("collapse").addClass("collapsing")[i](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,function(){this.$element.removeClass("collapsing").addClass("collapse in")[i](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")});if(!n.support.transition)return e.call(this);var o=n.camelCase(["scroll",i].join("-"));this.$element.one("bsTransitionEnd",n.proxy(e,this)).emulateTransitionEnd(s.TRANSITION_DURATION)[i](this.$element[0][o])}}}},s.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var t=n.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var t=this.dimension(),e=(this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")});if(!n.support.transition)return e.call(this);this.$element[t](0).one("bsTransitionEnd",n.proxy(e,this)).emulateTransitionEnd(s.TRANSITION_DURATION)}}},s.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},s.prototype.getParent=function(){return n(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,e){e=n(e);this.addAriaAndCollapsedClass(i(e),e)},this)).end()},s.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var t=n.fn.collapse;n.fn.collapse=a,n.fn.collapse.Constructor=s,n.fn.collapse.noConflict=function(){return n.fn.collapse=t,this},n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var e=n(this),t=(e.attr("data-target")||t.preventDefault(),i(e)),e=t.data("bs.collapse")?"toggle":e.data();a.call(t,e)})}(jQuery),function(n){"use strict";function o(t){n(t).on("click.bs.dropdown",this.toggle)}var s='[data-toggle="dropdown"]';function a(t){var e=t.attr("data-target"),e="#"!==(e=e||(e=t.attr("href"))&&/#[A-Za-z]/.test(e)&&e.replace(/.*(?=#[^\s]*$)/,""))?n(document).find(e):null;return e&&e.length?e:t.parent()}function r(o){o&&3===o.which||(n(".dropdown-backdrop").remove(),n(s).each(function(){var t=n(this),e=a(t),i={relatedTarget:this};!e.hasClass("open")||o&&"click"==o.type&&/input|textarea/i.test(o.target.tagName)&&n.contains(e[0],o.target)||(e.trigger(o=n.Event("hide.bs.dropdown",i)),o.isDefaultPrevented())||(t.attr("aria-expanded","false"),e.removeClass("open").trigger(n.Event("hidden.bs.dropdown",i)))}))}o.VERSION="3.4.1",o.prototype.toggle=function(t){var e=n(this);if(!e.is(".disabled, :disabled")){var i=a(e),o=i.hasClass("open");if(r(),!o){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(n(this)).on("click",r);o={relatedTarget:this};if(i.trigger(t=n.Event("show.bs.dropdown",o)),t.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(n.Event("shown.bs.dropdown",o))}return!1}},o.prototype.keydown=function(t){if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)){var e=n(this);if(t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled")){var i=a(e),o=i.hasClass("open");if(!o&&27!=t.which||o&&27==t.which)return 27==t.which&&i.find(s).trigger("focus"),e.trigger("click");o=i.find(".dropdown-menu li:not(.disabled):visible a");o.length&&(e=o.index(t.target),38==t.which&&0<e&&e--,40==t.which&&e<o.length-1&&e++,o.eq(e=~e?e:0).trigger("focus"))}}};var t=n.fn.dropdown;n.fn.dropdown=function(i){return this.each(function(){var t=n(this),e=t.data("bs.dropdown");e||t.data("bs.dropdown",e=new o(this)),"string"==typeof i&&e[i].call(t)})},n.fn.dropdown.Constructor=o,n.fn.dropdown.noConflict=function(){return n.fn.dropdown=t,this},n(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",s,o.prototype.toggle).on("keydown.bs.dropdown.data-api",s,o.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",o.prototype.keydown)}(jQuery),function(s){"use strict";function a(t,e){this.options=e,this.$body=s(document.body),this.$element=s(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,s.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}function r(o,n){return this.each(function(){var t=s(this),e=t.data("bs.modal"),i=s.extend({},a.DEFAULTS,t.data(),"object"==typeof o&&o);e||t.data("bs.modal",e=new a(this,i)),"string"==typeof o?e[o](n):i.show&&e.show(n)})}a.VERSION="3.4.1",a.TRANSITION_DURATION=300,a.BACKDROP_TRANSITION_DURATION=150,a.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},a.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},a.prototype.show=function(i){var o=this,t=s.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(t),this.isShown||t.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',s.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){o.$element.one("mouseup.dismiss.bs.modal",function(t){s(t.target).is(o.$element)&&(o.ignoreBackdropClick=!0)})}),this.backdrop(function(){var t=s.support.transition&&o.$element.hasClass("fade"),e=(o.$element.parent().length||o.$element.appendTo(o.$body),o.$element.show().scrollTop(0),o.adjustDialog(),t&&o.$element[0].offsetWidth,o.$element.addClass("in"),o.enforceFocus(),s.Event("shown.bs.modal",{relatedTarget:i}));t?o.$dialog.one("bsTransitionEnd",function(){o.$element.trigger("focus").trigger(e)}).emulateTransitionEnd(a.TRANSITION_DURATION):o.$element.trigger("focus").trigger(e)}))},a.prototype.hide=function(t){t&&t.preventDefault(),t=s.Event("hide.bs.modal"),this.$element.trigger(t),this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),s(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),s.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",s.proxy(this.hideModal,this)).emulateTransitionEnd(a.TRANSITION_DURATION):this.hideModal())},a.prototype.enforceFocus=function(){s(document).off("focusin.bs.modal").on("focusin.bs.modal",s.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},a.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",s.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},a.prototype.resize=function(){this.isShown?s(window).on("resize.bs.modal",s.proxy(this.handleUpdate,this)):s(window).off("resize.bs.modal")},a.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},a.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},a.prototype.backdrop=function(t){var e,i=this,o=this.$element.hasClass("fade")?"fade":"";this.isShown&&this.options.backdrop?(e=s.support.transition&&o,this.$backdrop=s(document.createElement("div")).addClass("modal-backdrop "+o).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",s.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),t&&(e?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(a.BACKDROP_TRANSITION_DURATION):t())):!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),o=function(){i.removeBackdrop(),t&&t()},s.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",o).emulateTransitionEnd(a.BACKDROP_TRANSITION_DURATION):o()):t&&t()},a.prototype.handleUpdate=function(){this.adjustDialog()},a.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},a.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},a.prototype.checkScrollbar=function(){var t,e=window.innerWidth;e||(e=(t=document.documentElement.getBoundingClientRect()).right-Math.abs(t.left)),this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},a.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10),n=(this.originalBodyPad=document.body.style.paddingRight||"",this.scrollbarWidth);this.bodyIsOverflowing&&(this.$body.css("padding-right",t+n),s(this.fixedContent).each(function(t,e){var i=e.style.paddingRight,o=s(e).css("padding-right");s(e).data("padding-right",i).css("padding-right",parseFloat(o)+n+"px")}))},a.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),s(this.fixedContent).each(function(t,e){var i=s(e).data("padding-right");s(e).removeData("padding-right"),e.style.paddingRight=i||""})},a.prototype.measureScrollbar=function(){var t=document.createElement("div"),e=(t.className="modal-scrollbar-measure",this.$body.append(t),t.offsetWidth-t.clientWidth);return this.$body[0].removeChild(t),e};var t=s.fn.modal;s.fn.modal=r,s.fn.modal.Constructor=a,s.fn.modal.noConflict=function(){return s.fn.modal=t,this},s(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var e=s(this),i=e.attr("href"),o=e.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,""),n=s(document).find(o),o=n.data("bs.modal")?"toggle":s.extend({remote:!/#/.test(i)&&i},n.data(),e.data());e.is("a")&&t.preventDefault(),n.one("show.bs.modal",function(t){t.isDefaultPrevented()||n.one("hidden.bs.modal",function(){e.is(":visible")&&e.trigger("focus")})}),r.call(n,o,this)})}(jQuery),function(f){"use strict";var o=["sanitize","whiteList","sanitizeFn"],u=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],t={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},g=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,m=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function n(t,e,i){if(0===t.length)return t;if(i&&"function"==typeof i)return i(t);if(!document.implementation||!document.implementation.createHTMLDocument)return t;for(var i=document.implementation.createHTMLDocument("sanitization"),o=(i.body.innerHTML=t,f.map(e,function(t,e){return e})),n=f(i.body).find("*"),s=0,a=n.length;s<a;s++){var r=n[s],l=r.nodeName.toLowerCase();if(-1===f.inArray(l,o))r.parentNode.removeChild(r);else for(var h=f.map(r.attributes,function(t){return t}),d=[].concat(e["*"]||[],e[l]||[]),p=0,c=h.length;p<c;p++)!function(t,e){var i=t.nodeName.toLowerCase();if(-1!==f.inArray(i,e))return-1===f.inArray(i,u)||Boolean(t.nodeValue.match(g)||t.nodeValue.match(m));for(var o=f(e).filter(function(t,e){return e instanceof RegExp}),n=0,s=o.length;n<s;n++)if(i.match(o[n]))return 1}(h[p],d)&&r.removeAttribute(h[p].nodeName)}return i.body.innerHTML}function l(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)}l.VERSION="3.4.1",l.TRANSITION_DURATION=150,l.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:t},l.prototype.init=function(t,e,i){if(this.enabled=!0,this.type=t,this.$element=f(e),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&f(document).find(f.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),n=o.length;n--;){var s,a=o[n];"click"==a?this.$element.on("click."+this.type,this.options.selector,f.proxy(this.toggle,this)):"manual"!=a&&(s="hover"==a?"mouseleave":"focusout",this.$element.on(("hover"==a?"mouseenter":"focusin")+"."+this.type,this.options.selector,f.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,f.proxy(this.leave,this)))}this.options.selector?this._options=f.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(t){var e,i=this.$element.data();for(e in i)i.hasOwnProperty(e)&&-1!==f.inArray(e,o)&&delete i[e];return(t=f.extend({},this.getDefaults(),i,t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=n(t.template,t.whiteList,t.sanitizeFn)),t},l.prototype.getDelegateOptions=function(){var i={},o=this.getDefaults();return this._options&&f.each(this._options,function(t,e){o[t]!=e&&(i[t]=e)}),i},l.prototype.enter=function(t){var e=t instanceof this.constructor?t:f(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),f(t.currentTarget).data("bs."+this.type,e)),t instanceof f.Event&&(e.inState["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasClass("in")||"in"==e.hoverState)e.hoverState="in";else{if(clearTimeout(e.timeout),e.hoverState="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=setTimeout(function(){"in"==e.hoverState&&e.show()},e.options.delay.show)}},l.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},l.prototype.leave=function(t){var e=t instanceof this.constructor?t:f(t.currentTarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),f(t.currentTarget).data("bs."+this.type,e)),t instanceof f.Event&&(e.inState["focusout"==t.type?"focus":"hover"]=!1),!e.isInStateTrue()){if(clearTimeout(e.timeout),e.hoverState="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=setTimeout(function(){"out"==e.hoverState&&e.hide()},e.options.delay.hide)}},l.prototype.show=function(){var e,t,i,o,n,s,a,r=f.Event("show.bs."+this.type);this.hasContent()&&this.enabled&&(this.$element.trigger(r),n=f.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),!r.isDefaultPrevented())&&n&&(r=(e=this).tip(),n=this.getUID(this.type),this.setContent(),r.attr("id",n),this.$element.attr("aria-describedby",n),this.options.animation&&r.addClass("fade"),n="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,(a=(t=/\s?auto?\s?/i).test(n))&&(n=n.replace(t,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(n).data("bs."+this.type,this),this.options.container?r.appendTo(f(document).find(this.options.container)):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type),t=this.getPosition(),i=r[0].offsetWidth,o=r[0].offsetHeight,a&&(a=n,s=this.getPosition(this.$viewport),n="bottom"==n&&t.bottom+o>s.bottom?"top":"top"==n&&t.top-o<s.top?"bottom":"right"==n&&t.right+i>s.width?"left":"left"==n&&t.left-i<s.left?"right":n,r.removeClass(a).addClass(n)),s=this.getCalculatedOffset(n,t,i,o),this.applyPlacement(s,n),a=function(){var t=e.hoverState;e.$element.trigger("shown.bs."+e.type),e.hoverState=null,"out"==t&&e.leave(e)},f.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",a).emulateTransitionEnd(l.TRANSITION_DURATION):a())},l.prototype.applyPlacement=function(t,e){var i=this.tip(),o=i[0].offsetWidth,n=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),a=parseInt(i.css("margin-left"),10),s=(isNaN(s)&&(s=0),isNaN(a)&&(a=0),t.top+=s,t.left+=a,f.offset.setOffset(i[0],f.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),i.addClass("in"),i[0].offsetWidth),a=i[0].offsetHeight,r=("top"==e&&a!=n&&(t.top=t.top+n-a),this.getViewportAdjustedDelta(e,t,s,a)),e=(r.left?t.left+=r.left:t.top+=r.top,/top|bottom/.test(e)),o=e?2*r.left-o+s:2*r.top-n+a,s=e?"offsetWidth":"offsetHeight";i.offset(t),this.replaceArrow(o,i[0][s],e)},l.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},l.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=n(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},l.prototype.hide=function(t){var e=this,i=f(this.$tip),o=f.Event("hide.bs."+this.type);function n(){"in"!=e.hoverState&&i.detach(),e.$element&&e.$element.removeAttr("aria-describedby").trigger("hidden.bs."+e.type),t&&t()}if(this.$element.trigger(o),!o.isDefaultPrevented())return i.removeClass("in"),f.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",n).emulateTransitionEnd(l.TRANSITION_DURATION):n(),this.hoverState=null,this},l.prototype.fixTitle=function(){var t=this.$element;!t.attr("title")&&"string"==typeof t.attr("data-original-title")||t.attr("data-original-title",t.attr("title")||"").attr("title","")},l.prototype.hasContent=function(){return this.getTitle()},l.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],i="BODY"==e.tagName,o=e.getBoundingClientRect(),e=(null==o.width&&(o=f.extend({},o,{width:o.right-o.left,height:o.bottom-o.top})),window.SVGElement&&e instanceof window.SVGElement),e=i?{top:0,left:0}:e?null:t.offset(),t={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},i=i?{width:f(window).width(),height:f(window).height()}:null;return f.extend({},o,t,i,e)},l.prototype.getCalculatedOffset=function(t,e,i,o){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-o,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-o/2,left:e.left-i}:{top:e.top+e.height/2-o/2,left:e.left+e.width}},l.prototype.getViewportAdjustedDelta=function(t,e,i,o){var n,s,a={top:0,left:0};return this.$viewport&&(n=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport),/right|left/.test(t)?(t=e.top-n-s.scroll,o=e.top+n-s.scroll+o,t<s.top?a.top=s.top-t:o>s.top+s.height&&(a.top=s.top+s.height-o)):(t=e.left-n,o=e.left+n+i,t<s.left?a.left=s.left-t:o>s.right&&(a.left=s.left+s.width-o))),a},l.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},l.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},l.prototype.tip=function(){if(this.$tip||(this.$tip=f(this.options.template),1==this.$tip.length))return this.$tip;throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!")},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(t){var e=this;t&&!(e=f(t.currentTarget).data("bs."+this.type))&&(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),f(t.currentTarget).data("bs."+this.type,e)),t?(e.inState.click=!e.inState.click,e.isInStateTrue()?e.enter(e):e.leave(e)):e.tip().hasClass("in")?e.leave(e):e.enter(e)},l.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},l.prototype.sanitizeHtml=function(t){return n(t,this.options.whiteList,this.options.sanitizeFn)};var e=f.fn.tooltip;f.fn.tooltip=function(o){return this.each(function(){var t=f(this),e=t.data("bs.tooltip"),i="object"==typeof o&&o;!e&&/destroy|hide/.test(o)||(e||t.data("bs.tooltip",e=new l(this,i)),"string"==typeof o&&e[o]())})},f.fn.tooltip.Constructor=l,f.fn.tooltip.noConflict=function(){return f.fn.tooltip=e,this}}(jQuery),function(n){"use strict";function s(t,e){this.init("popover",t,e)}if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");s.VERSION="3.4.1",s.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((s.prototype=n.extend({},n.fn.tooltip.Constructor.prototype)).constructor=s).prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.setContent=function(){var t,e=this.tip(),i=this.getTitle(),o=this.getContent();this.options.html?(t=typeof o,this.options.sanitize&&(i=this.sanitizeHtml(i),"string"==t)&&(o=this.sanitizeHtml(o)),e.find(".popover-title").html("<span>"+i+'</span><button class="close">&times</button>'),e.find(".popover-content").children().detach().end()["string"==t?"html":"append"](o)):(e.find(".popover-title").text(i),e.find(".popover-content").children().detach().end().text(o)),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},s.prototype.hasContent=function(){return this.getTitle()||this.getContent()},s.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},s.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=n.fn.popover;n.fn.popover=function(o){return this.each(function(){var t=n(this),e=t.data("bs.popover"),i="object"==typeof o&&o;!e&&/destroy|hide/.test(o)||(e||t.data("bs.popover",e=new s(this,i)),"string"==typeof o&&e[o]())})},n.fn.popover.Constructor=s,n.fn.popover.noConflict=function(){return n.fn.popover=t,this}}(jQuery),function(n){"use strict";function o(t,e){this.$body=n(document.body),this.$scrollElement=n(t).is(document.body)?n(window):n(t),this.options=n.extend({},o.DEFAULTS,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",n.proxy(this.process,this)),this.refresh(),this.process()}function e(i){return this.each(function(){var t=n(this),e=t.data("bs.scrollspy");e||t.data("bs.scrollspy",e=new o(this,"object"==typeof i&&i)),"string"==typeof i&&e[i]()})}o.VERSION="3.4.1",o.DEFAULTS={offset:10},o.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},o.prototype.refresh=function(){var t=this,i="offset",o=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),n.isWindow(this.$scrollElement[0])||(i="position",o=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var t=n(this),t=t.data("target")||t.attr("href"),e=/^#./.test(t)&&n(t);return e&&e.length&&e.is(":visible")?[[e[i]().top+o,t]]:null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},o.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),o=this.options.offset+i-this.$scrollElement.height(),n=this.offsets,s=this.targets,a=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),o<=e)return a!=(t=s[s.length-1])&&this.activate(t);if(a&&e<n[0])return this.activeTarget=null,this.clear();for(t=n.length;t--;)a!=s[t]&&e>=n[t]&&(void 0===n[t+1]||e<n[t+1])&&this.activate(s[t])},o.prototype.activate=function(t){this.activeTarget=t,this.clear();t=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',t=n(t).parents("li").addClass("active");(t=t.parent(".dropdown-menu").length?t.closest("li.dropdown").addClass("active"):t).trigger("activate.bs.scrollspy")},o.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var t=n.fn.scrollspy;n.fn.scrollspy=e,n.fn.scrollspy.Constructor=o,n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=t,this},n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);e.call(t,t.data())})})}(jQuery),function(a){"use strict";function r(t){this.element=a(t)}function e(i){return this.each(function(){var t=a(this),e=t.data("bs.tab");e||t.data("bs.tab",e=new r(this)),"string"==typeof i&&e[i]()})}r.VERSION="3.4.1",r.TRANSITION_DURATION=150,r.prototype.show=function(){var t,e,i,o=this.element,n=o.closest("ul:not(.dropdown-menu)"),s=(s=o.data("target"))||(s=o.attr("href"))&&s.replace(/.*(?=#[^\s]*$)/,"");o.parent("li").hasClass("active")||(t=n.find(".active:last a"),e=a.Event("hide.bs.tab",{relatedTarget:o[0]}),i=a.Event("show.bs.tab",{relatedTarget:t[0]}),t.trigger(e),o.trigger(i),i.isDefaultPrevented())||e.isDefaultPrevented()||(i=a(document).find(s),this.activate(o.closest("li"),n),this.activate(i,i.parent(),function(){t.trigger({type:"hidden.bs.tab",relatedTarget:o[0]}),o.trigger({type:"shown.bs.tab",relatedTarget:t[0]})}))},r.prototype.activate=function(t,e,i){var o=e.find("> .active"),n=i&&a.support.transition&&(o.length&&o.hasClass("fade")||!!e.find("> .fade").length);function s(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),n?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}o.length&&n?o.one("bsTransitionEnd",s).emulateTransitionEnd(r.TRANSITION_DURATION):s(),o.removeClass("in")};function t(t){t.preventDefault(),e.call(a(this),"show")}var i=a.fn.tab;a.fn.tab=e,a.fn.tab.Constructor=r,a.fn.tab.noConflict=function(){return a.fn.tab=i,this};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',t).on("click.bs.tab.data-api",'[data-toggle="pill"]',t)}(jQuery),function(a){"use strict";function r(t,e){this.options=a.extend({},r.DEFAULTS,e),e=this.options.target===r.DEFAULTS.target?a(this.options.target):a(document).find(this.options.target),this.$target=e.on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(t),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()}function i(i){return this.each(function(){var t=a(this),e=t.data("bs.affix");e||t.data("bs.affix",e=new r(this,"object"==typeof i&&i)),"string"==typeof i&&e[i]()})}r.VERSION="3.4.1",r.RESET="affix affix-top affix-bottom",r.DEFAULTS={offset:0,target:window},r.prototype.getState=function(t,e,i,o){var n,s=this.$target.scrollTop(),a=this.$element.offset(),r=this.$target.height();return null!=i&&"top"==this.affixed?s<i&&"top":"bottom"==this.affixed?null!=i?!(s+this.unpin<=a.top)&&"bottom":!(s+r<=t-o)&&"bottom":(a=(n=null==this.affixed)?s:a.top,null!=i&&s<=i?"top":null!=o&&t-o<=a+(n?r:e)&&"bottom")},r.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(r.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},r.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},r.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=this.$element.height(),e=this.options.offset,i=e.top,o=e.bottom,n=Math.max(a(document).height(),a(document.body).height()),e=("object"!=typeof e&&(o=i=e),"function"==typeof i&&(i=e.top(this.$element)),"function"==typeof o&&(o=e.bottom(this.$element)),this.getState(n,t,i,o));if(this.affixed!=e){null!=this.unpin&&this.$element.css("top","");var i="affix"+(e?"-"+e:""),s=a.Event(i+".bs.affix");if(this.$element.trigger(s),s.isDefaultPrevented())return;this.affixed=e,this.unpin="bottom"==e?this.getPinnedOffset():null,this.$element.removeClass(r.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==e&&this.$element.offset({top:n-t-o})}};var t=a.fn.affix;a.fn.affix=i,a.fn.affix.Constructor=r,a.fn.affix.noConflict=function(){return a.fn.affix=t,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var t=a(this),e=t.data();e.offset=e.offset||{},null!=e.offsetBottom&&(e.offset.bottom=e.offsetBottom),null!=e.offsetTop&&(e.offset.top=e.offsetTop),i.call(t,e)})})}(jQuery);
!function(a,u){var h=a();a.fn.dropdownHover=function(d){return"ontouchstart"in document?this:(h=h.add(this.parent()),this.each(function(){var n,e=a(this),o=e.parent(),t={delay:a(this).data("delay"),instantlyCloseOthers:a(this).data("close-others")},r="show.bs.dropdown",i=a.extend(!0,{},{delay:500,instantlyCloseOthers:!0},d,t);function s(){h.find(":focus").blur(),!0===i.instantlyCloseOthers&&h.removeClass("open"),u.clearTimeout(n),o.addClass("open"),e.trigger(r)}o.hover(function(n){if(!o.hasClass("open")&&!e.is(n.target))return!0;s()},function(){n=u.setTimeout(function(){o.removeClass("open"),e.trigger("hide.bs.dropdown")},i.delay)}),e.hover(function(n){if(!o.hasClass("open")&&!o.is(n.target))return!0;s()}),o.find(".dropdown-submenu").each(function(){var e,o=a(this);o.hover(function(){u.clearTimeout(e),o.children(".dropdown-menu").show(),o.siblings().children(".dropdown-menu").hide()},function(){var n=o.children(".dropdown-menu");e=u.setTimeout(function(){n.hide()},i.delay)})})}))},a(document).ready(function(){a('[data-hover="dropdown"]').dropdownHover()})}(jQuery,this);
!function(e){"use strict";if("function"==typeof define&&define.amd)define(["jquery","moment"],e);else if("object"==typeof exports)module.exports=e(require("jquery"),require("moment"));else{if("undefined"==typeof jQuery)throw"bootstrap-datetimepicker requires jQuery to be loaded first";if("undefined"==typeof moment)throw"bootstrap-datetimepicker requires Moment.js to be loaded first";e(jQuery,moment)}}(function(re,ie){"use strict";var i;if(ie)return i=function(i,g){function o(){return T("h")||T("m")||T("s")}function w(){return T("y")||T("M")||T("d")}function j(){var e,t,a=re("<div>").addClass("timepicker-hours").append(re("<table>").addClass("table-condensed")),n=re("<div>").addClass("timepicker-minutes").append(re("<table>").addClass("table-condensed")),r=re("<div>").addClass("timepicker-seconds").append(re("<table>").addClass("table-condensed")),i=[(i=re("<tr>"),e=re("<tr>"),t=re("<tr>"),T("h")&&(i.append(re("<td>").append(re("<a>").attr({href:"#",tabindex:"-1",title:g.tooltips.incrementHour}).addClass("btn").attr("data-action","incrementHours").append(re("<span>").addClass(g.icons.up)))),e.append(re("<td>").append(re("<span>").addClass("timepicker-hour").attr({"data-time-component":"hours",title:g.tooltips.pickHour}).attr("data-action","showHours"))),t.append(re("<td>").append(re("<a>").attr({href:"#",tabindex:"-1",title:g.tooltips.decrementHour}).addClass("btn").attr("data-action","decrementHours").append(re("<span>").addClass(g.icons.down))))),T("m")&&(T("h")&&(i.append(re("<td>").addClass("separator")),e.append(re("<td>").addClass("separator").html(":")),t.append(re("<td>").addClass("separator"))),i.append(re("<td>").append(re("<a>").attr({href:"#",tabindex:"-1",title:g.tooltips.incrementMinute}).addClass("btn").attr("data-action","incrementMinutes").append(re("<span>").addClass(g.icons.up)))),e.append(re("<td>").append(re("<span>").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:g.tooltips.pickMinute}).attr("data-action","showMinutes"))),t.append(re("<td>").append(re("<a>").attr({href:"#",tabindex:"-1",title:g.tooltips.decrementMinute}).addClass("btn").attr("data-action","decrementMinutes").append(re("<span>").addClass(g.icons.down))))),T("s")&&(T("m")&&(i.append(re("<td>").addClass("separator")),e.append(re("<td>").addClass("separator").html(":")),t.append(re("<td>").addClass("separator"))),i.append(re("<td>").append(re("<a>").attr({href:"#",tabindex:"-1",title:g.tooltips.incrementSecond}).addClass("btn").attr("data-action","incrementSeconds").append(re("<span>").addClass(g.icons.up)))),e.append(re("<td>").append(re("<span>").addClass("timepicker-second").attr({"data-time-component":"seconds",title:g.tooltips.pickSecond}).attr("data-action","showSeconds"))),t.append(re("<td>").append(re("<a>").attr({href:"#",tabindex:"-1",title:g.tooltips.decrementSecond}).addClass("btn").attr("data-action","decrementSeconds").append(re("<span>").addClass(g.icons.down))))),f||(i.append(re("<td>").addClass("separator")),e.append(re("<td>").append(re("<button>").addClass("btn btn-primary").attr({"data-action":"togglePeriod",tabindex:"-1",title:g.tooltips.togglePeriod}))),t.append(re("<td>").addClass("separator"))),re("<div>").addClass("timepicker-picker").append(re("<table>").addClass("table-condensed").append([i,e,t])))];return T("h")&&i.push(a),T("m")&&i.push(n),T("s")&&i.push(r),i}function t(e){M({type:"dp.update",change:e="y"===e?"YYYY":e,viewDate:v.clone()})}function A(){I(null)}function e(){return(C?H:B)()}function F(e){var t,a,n,r,i=null,o=[],s={},d=e.which;for(t in D[d]="p",D)D.hasOwnProperty(t)&&"p"===D[t]&&(o.push(t),parseInt(t,10)!==d)&&(s[t]=!0);for(t in g.keyBinds)if(g.keyBinds.hasOwnProperty(t)&&"function"==typeof g.keyBinds[t]&&(n=t.split(" ")).length===o.length&&Q[d]===n[n.length-1]){for(r=!0,a=n.length-2;0<=a;a--)if(!(Q[n[a]]in s)){r=!1;break}if(r){i=g.keyBinds[t];break}}i&&(i.call(c,C),e.stopPropagation(),e.preventDefault())}function L(e){D[e.which]="r",e.stopPropagation(),e.preventDefault()}function W(e){var t=(t=re(e.target).val().trim())?Y(t):null;return I(t),e.stopImmediatePropagation(),!1}function z(e){var t={};return re.each(e,function(){var e=Y(this);e.isValid()&&(t[e.format("YYYY-MM-DD")]=!0)}),!!Object.keys(t).length&&t}function N(e){var t={};return re.each(e,function(){t[this]=!0}),!!Object.keys(t).length&&t}function a(){var e=g.format||"L LT";r=e.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(e){return(b.localeData().longDateFormat(e)||e).replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(e){return b.localeData().longDateFormat(e)||e})}),(s=g.extraFormats?g.extraFormats.slice():[]).indexOf(e)<0&&s.indexOf(r)<0&&s.push(r),f=r.toLowerCase().indexOf("a")<1&&r.replace(/\[.*?\]/g,"").indexOf("h")<1,T("y")&&(h=2),T("M")&&(h=1),T("d")&&(h=0),d=Math.max(h,d),k||I(b)}var b,v,n,f,r,s,d,l,p,c={},k=!0,u=!1,C=!1,h=0,m=[{clsName:"days",navFnc:"M",navStep:1},{clsName:"months",navFnc:"y",navStep:1},{clsName:"years",navFnc:"y",navStep:10},{clsName:"decades",navFnc:"y",navStep:100}],y=["days","months","years","decades"],V=["top","bottom","auto"],Z=["left","right","auto"],R=["default","top","bottom"],Q={up:38,38:"up",down:40,40:"down",left:37,37:"left",right:39,39:"right",tab:9,9:"tab",escape:27,27:"escape",enter:13,13:"enter",pageUp:33,33:"pageUp",pageDown:34,34:"pageDown",shift:16,16:"shift",control:17,17:"control",space:32,32:"space",t:84,84:"t",delete:46,46:"delete"},D={},U=function(){return void 0!==ie.tz&&void 0!==g.timeZone&&null!==g.timeZone&&""!==g.timeZone},x=function(e){e=null==e?ie():ie.isDate(e)||ie.isMoment(e)?ie(e):U()?ie.tz(e,s,g.useStrict,g.timeZone):ie(e,s,g.useStrict);return U()&&e.tz(g.timeZone),e},T=function(e){if("string"!=typeof e||1<e.length)throw new TypeError("isEnabled expects a single character string parameter");switch(e){case"y":return-1!==r.indexOf("Y");case"M":return-1!==r.indexOf("M");case"d":return-1!==r.toLowerCase().indexOf("d");case"h":case"H":return-1!==r.toLowerCase().indexOf("h");case"m":return-1!==r.indexOf("m");case"s":return-1!==r.indexOf("s");default:return!1}},G=function(){var e=re("<div>").addClass("bootstrap-datetimepicker-widget dropdown-menu"),t=re("<div>").addClass("datepicker").append((t=re("<thead>").append(re("<tr>").append(re("<th>").addClass("prev").attr("data-action","previous").append(re("<span>").addClass(g.icons.previous))).append(re("<th>").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",g.calendarWeeks?"6":"5")).append(re("<th>").addClass("next").attr("data-action","next").append(re("<span>").addClass(g.icons.next)))),a=re("<tbody>").append(re("<tr>").append(re("<td>").attr("colspan",g.calendarWeeks?"8":"7"))),[re("<div>").addClass("datepicker-days").append(re("<table>").addClass("table-condensed").append(t).append(re("<tbody>"))),re("<div>").addClass("datepicker-months").append(re("<table>").addClass("table-condensed").append(t.clone()).append(a.clone())),re("<div>").addClass("datepicker-years").append(re("<table>").addClass("table-condensed").append(t.clone()).append(a.clone())),re("<div>").addClass("datepicker-decades").append(re("<table>").addClass("table-condensed").append(t.clone()).append(a.clone()))])),a=re("<div>").addClass("timepicker").append(j()),n=re("<ul>").addClass("list-unstyled"),r=re("<li>").addClass("picker-switch"+(g.collapse?" accordion-toggle":"")).append((r=[],g.showTodayButton&&r.push(re("<td>").append(re("<a>").attr({"data-action":"today",title:g.tooltips.today}).append(re("<span>").addClass(g.icons.today)))),!g.sideBySide&&w()&&o()&&r.push(re("<td>").append(re("<a>").attr({"data-action":"togglePicker",title:g.tooltips.selectTime}).append(re("<span>").addClass(g.icons.time)))),g.showClear&&r.push(re("<td>").append(re("<a>").attr({"data-action":"clear",title:g.tooltips.clear}).append(re("<span>").addClass(g.icons.clear)))),g.showClose&&r.push(re("<td>").append(re("<a>").attr({"data-action":"close",title:g.tooltips.close}).append(re("<span>").addClass(g.icons.close)))),re("<table>").addClass("table-condensed").append(re("<tbody>").append(re("<tr>").append(r)))));return g.inline&&e.removeClass("dropdown-menu"),f&&e.addClass("usetwentyfour"),T("s")&&!f&&e.addClass("wider"),g.sideBySide&&w()&&o()?(e.addClass("timepicker-sbs"),"top"===g.toolbarPlacement&&e.append(r),e.append(re("<div>").addClass("row").append(t.addClass("col-md-6")).append(a.addClass("col-md-6"))),"bottom"===g.toolbarPlacement&&e.append(r),e):("top"===g.toolbarPlacement&&n.append(r),w()&&n.append(re("<li>").addClass(g.collapse&&o()?"collapse in":"").append(t)),"default"===g.toolbarPlacement&&n.append(r),o()&&n.append(re("<li>").addClass(g.collapse&&w()?"collapse":"").append(a)),"bottom"===g.toolbarPlacement&&n.append(r),e.append(n))},J=function(){var e,t=(u||i).position(),a=(u||i).offset(),n=g.widgetPositioning.vertical,r=g.widgetPositioning.horizontal;if(g.widgetParent)e=g.widgetParent.append(C);else if(i.is("input"))e=i.after(C).parent();else{if(g.inline)return void(e=i.append(C));(e=i).children().first().after(C)}if("auto"===n&&(n=a.top+1.5*C.height()>=re(window).height()+re(window).scrollTop()&&C.height()+i.outerHeight()<a.top?"top":"bottom"),"auto"===r&&(r=e.width()<a.left+C.outerWidth()/2&&a.left+C.outerWidth()>re(window).width()?"right":"left"),"top"===n?C.addClass("top").removeClass("bottom"):C.addClass("bottom").removeClass("top"),"right"===r?C.addClass("pull-right"):C.removeClass("pull-right"),0===(e="static"===e.css("position")?e.parents().filter(function(){return"static"!==re(this).css("position")}).first():e).length)throw new Error("datetimepicker component should be placed within a non-static positioned container");C.css({top:"top"===n?"auto":t.top+i.outerHeight(),bottom:"top"===n?e.outerHeight()-(e===i?0:t.top):"auto",left:"left"===r?e===i?0:t.left:"auto",right:"left"===r?"auto":e.outerWidth()-i.outerWidth()-(e===i?0:t.left)})},M=function(e){"dp.change"===e.type&&(e.date&&e.date.isSame(e.oldDate)||!e.date&&!e.oldDate)||i.trigger(e)},S=function(e){C&&(e&&(d=Math.max(h,Math.min(3,d+e))),C.find(".datepicker > div").hide().filter(".datepicker-"+m[d].clsName).show())},K=function(){var e=re("<tr>"),t=v.clone().startOf("w").startOf("d");for(!0===g.calendarWeeks&&e.append(re("<th>").addClass("cw").text("#"));t.isBefore(v.clone().endOf("w"));)e.append(re("<th>").addClass("dow").text(t.format("dd"))),t.add(1,"d");C.find(".datepicker-days thead").append(e)},X=function(e){return!0===g.disabledDates[e.format("YYYY-MM-DD")]},$=function(e){return!0===g.enabledDates[e.format("YYYY-MM-DD")]},_=function(e){return!0===g.disabledHours[e.format("H")]},ee=function(e){return!0===g.enabledHours[e.format("H")]},O=function(e,t){if(!e.isValid())return!1;if(g.disabledDates&&"d"===t&&X(e))return!1;if(g.enabledDates&&"d"===t&&!$(e))return!1;if(g.minDate&&e.isBefore(g.minDate,t))return!1;if(g.maxDate&&e.isAfter(g.maxDate,t))return!1;if(g.daysOfWeekDisabled&&"d"===t&&-1!==g.daysOfWeekDisabled.indexOf(e.day()))return!1;if(g.disabledHours&&("h"===t||"m"===t||"s"===t)&&_(e))return!1;if(g.enabledHours&&("h"===t||"m"===t||"s"===t)&&!ee(e))return!1;if(g.disabledTimeIntervals&&("h"===t||"m"===t||"s"===t)){var a=!1;if(re.each(g.disabledTimeIntervals,function(){if(e.isBetween(this[0],this[1]))return!(a=!0)}),a)return!1}return!0},te=function(){for(var e=[],t=v.clone().startOf("y").startOf("d");t.isSame(v,"y");)e.push(re("<span>").attr("data-action","selectMonth").addClass("month").text(t.format("MMM"))),t.add(1,"M");C.find(".datepicker-months td").empty().append(e)},P=function(){var e,t,a,n=C.find(".datepicker-days"),r=n.find("th"),i=[],o=[];if(w()){for(r.eq(0).find("span").attr("title",g.tooltips.prevMonth),r.eq(1).attr("title",g.tooltips.selectMonth),r.eq(2).find("span").attr("title",g.tooltips.nextMonth),n.find(".disabled").removeClass("disabled"),r.eq(1).text(v.format(g.dayViewHeaderFormat)),O(v.clone().subtract(1,"M"),"M")||r.eq(0).addClass("disabled"),O(v.clone().add(1,"M"),"M")||r.eq(2).addClass("disabled"),e=v.clone().startOf("M").startOf("w").startOf("d"),a=0;a<42;a++)0===e.weekday()&&(t=re("<tr>"),g.calendarWeeks&&t.append('<td class="cw">'+e.week()+"</td>"),i.push(t)),o=["day"],e.isBefore(v,"M")&&o.push("old"),e.isAfter(v,"M")&&o.push("new"),e.isSame(b,"d")&&!k&&o.push("active"),O(e,"d")||o.push("disabled"),e.isSame(x(),"d")&&o.push("today"),0!==e.day()&&6!==e.day()||o.push("weekend"),M({type:"dp.classify",date:e,classNames:o}),t.append('<td data-action="selectDay" data-day="'+e.format("L")+'" class="'+o.join(" ")+'">'+e.date()+"</td>"),e.add(1,"d");n.find("tbody").empty().append(i),r=C.find(".datepicker-months"),n=r.find("th"),f=r.find("tbody").find("span"),n.eq(0).find("span").attr("title",g.tooltips.prevYear),n.eq(1).attr("title",g.tooltips.selectYear),n.eq(2).find("span").attr("title",g.tooltips.nextYear),r.find(".disabled").removeClass("disabled"),O(v.clone().subtract(1,"y"),"y")||n.eq(0).addClass("disabled"),n.eq(1).text(v.year()),O(v.clone().add(1,"y"),"y")||n.eq(2).addClass("disabled"),f.removeClass("active"),b.isSame(v,"y")&&!k&&f.eq(b.month()).addClass("active"),f.each(function(e){O(v.clone().month(e),"M")||re(this).addClass("disabled")});var r=C.find(".datepicker-years"),n=r.find("th"),s=v.clone().subtract(5,"y"),d=v.clone().add(6,"y"),l="";for(n.eq(0).find("span").attr("title",g.tooltips.prevDecade),n.eq(1).attr("title",g.tooltips.selectDecade),n.eq(2).find("span").attr("title",g.tooltips.nextDecade),r.find(".disabled").removeClass("disabled"),g.minDate&&g.minDate.isAfter(s,"y")&&n.eq(0).addClass("disabled"),n.eq(1).text(s.year()+"-"+d.year()),g.maxDate&&g.maxDate.isBefore(d,"y")&&n.eq(2).addClass("disabled");!s.isAfter(d,"y");)l+='<span data-action="selectYear" class="year'+(s.isSame(b,"y")&&!k?" active":"")+(O(s,"y")?"":" disabled")+'">'+s.year()+"</span>",s.add(1,"y");r.find("td").html(l);var p,c,u,f=C.find(".datepicker-decades"),n=f.find("th"),h=ie({y:v.year()-v.year()%100-1}),m=h.clone().add(100,"y"),r=h.clone(),y="";for(n.eq(0).find("span").attr("title",g.tooltips.prevCentury),n.eq(2).find("span").attr("title",g.tooltips.nextCentury),f.find(".disabled").removeClass("disabled"),(h.isSame(ie({y:1900}))||g.minDate&&g.minDate.isAfter(h,"y"))&&n.eq(0).addClass("disabled"),n.eq(1).text(h.year()+"-"+m.year()),(h.isSame(ie({y:2e3}))||g.maxDate&&g.maxDate.isBefore(m,"y"))&&n.eq(2).addClass("disabled");!h.isAfter(m,"y");)u=h.year()+12,p=g.minDate&&g.minDate.isAfter(h,"y")&&g.minDate.year()<=u,c=g.maxDate&&g.maxDate.isAfter(h,"y")&&g.maxDate.year()<=u,y+='<span data-action="selectDecade" class="decade'+(b.isAfter(h)&&b.year()<=u?" active":"")+(O(h,"y")||p||c?"":" disabled")+'" data-selection="'+(h.year()+6)+'">'+(h.year()+1)+" - "+(h.year()+12)+"</span>",h.add(12,"y");y+="<span></span><span></span><span></span>",f.find("td").html(y),n.eq(1).text(r.year()+1+"-"+h.year())}},ae=function(){var e=C.find(".timepicker span[data-time-component]"),t=(f||(i=C.find(".timepicker [data-action=togglePeriod]"),t=b.clone().add(12<=b.hours()?-12:12,"h"),i.text(b.format("A")),O(t,"h")?i.removeClass("disabled"):i.addClass("disabled")),e.filter("[data-time-component=hours]").text(b.format(f?"HH":"hh")),e.filter("[data-time-component=minutes]").text(b.format("mm")),e.filter("[data-time-component=seconds]").text(b.format("ss")),C.find(".timepicker-hours table")),a=v.clone().startOf("d"),n=[],r=re("<tr>");for(11<v.hour()&&!f&&a.hour(12);a.isSame(v,"d")&&(f||v.hour()<12&&a.hour()<12||11<v.hour());)a.hour()%4==0&&(r=re("<tr>"),n.push(r)),r.append('<td data-action="selectHour" class="hour'+(O(a,"h")?"":" disabled")+'">'+a.format(f?"HH":"hh")+"</td>"),a.add(1,"h");t.empty().append(n);for(var i=C.find(".timepicker-minutes table"),o=v.clone().startOf("h"),s=[],d=re("<tr>"),l=1===g.stepping?5:g.stepping;v.isSame(o,"h");)o.minute()%(4*l)==0&&(d=re("<tr>"),s.push(d)),d.append('<td data-action="selectMinute" class="minute'+(O(o,"m")?"":" disabled")+'">'+o.format("mm")+"</td>"),o.add(l,"m");i.empty().append(s);for(var e=C.find(".timepicker-seconds table"),p=v.clone().startOf("m"),c=[],u=re("<tr>");v.isSame(p,"m");)p.second()%20==0&&(u=re("<tr>"),c.push(u)),u.append('<td data-action="selectSecond" class="second'+(O(p,"s")?"":" disabled")+'">'+p.format("ss")+"</td>"),p.add(5,"s");e.empty().append(c)},E=function(){C&&(P(),ae())},I=function(e){var t=k?null:b;if(e){if(e=e.clone().locale(g.locale),U()&&e.tz(g.timeZone),1!==g.stepping)for(e.minutes(Math.round(e.minutes()/g.stepping)*g.stepping).seconds(0);g.minDate&&e.isBefore(g.minDate);)e.add(g.stepping,"minutes");O(e)?(v=(b=e).clone(),n.val(b.format(r)),i.data("date",b.format(r)),k=!1,E(),M({type:"dp.change",date:b.clone(),oldDate:t})):(g.keepInvalid?M({type:"dp.change",date:e,oldDate:t}):n.val(k?"":b.format(r)),M({type:"dp.error",date:e,oldDate:t}))}else k=!0,n.val(""),i.data("date",""),M({type:"dp.change",date:!1,oldDate:t}),E()},H=function(){var t=!1;return C&&(C.find(".collapse").each(function(){var e=re(this).data("collapse");return!e||!e.transitioning||!(t=!0)}),t||(u&&u.hasClass("btn")&&u.toggleClass("active"),C.hide(),re(window).off("resize",J),C.off("click","[data-action]"),C.off("mousedown",!1),C.remove(),C=!1,M({type:"dp.hide",date:b.clone()}),n.blur(),d=0,v=b.clone())),c},Y=function(e){return void 0===g.parseInputDate?(!ie.isMoment(e)||e instanceof Date)&&(e=x(e)):e=g.parseInputDate(e),e},q={next:function(){var e=m[d].navFnc;v.add(m[d].navStep,e),P(),t(e)},previous:function(){var e=m[d].navFnc;v.subtract(m[d].navStep,e),P(),t(e)},pickerSwitch:function(){S(1)},selectMonth:function(e){e=re(e.target).closest("tbody").find("span").index(re(e.target));v.month(e),d===h?(I(b.clone().year(v.year()).month(v.month())),g.inline||H()):(S(-1),P()),t("M")},selectYear:function(e){e=parseInt(re(e.target).text(),10)||0;v.year(e),d===h?(I(b.clone().year(v.year())),g.inline||H()):(S(-1),P()),t("YYYY")},selectDecade:function(e){e=parseInt(re(e.target).data("selection"),10)||0;v.year(e),d===h?(I(b.clone().year(v.year())),g.inline||H()):(S(-1),P()),t("YYYY")},selectDay:function(e){var t=v.clone();re(e.target).is(".old")&&t.subtract(1,"M"),re(e.target).is(".new")&&t.add(1,"M"),I(t.date(parseInt(re(e.target).text(),10))),o()||g.keepOpen||g.inline||H()},incrementHours:function(){var e=b.clone().add(1,"h");O(e,"h")&&I(e)},incrementMinutes:function(){var e=b.clone().add(g.stepping,"m");O(e,"m")&&I(e)},incrementSeconds:function(){var e=b.clone().add(1,"s");O(e,"s")&&I(e)},decrementHours:function(){var e=b.clone().subtract(1,"h");O(e,"h")&&I(e)},decrementMinutes:function(){var e=b.clone().subtract(g.stepping,"m");O(e,"m")&&I(e)},decrementSeconds:function(){var e=b.clone().subtract(1,"s");O(e,"s")&&I(e)},togglePeriod:function(){I(b.clone().add(12<=b.hours()?-12:12,"h"))},togglePicker:function(e){var t,e=re(e.target),a=e.closest("ul"),n=a.find(".in"),a=a.find(".collapse:not(.in)");n&&n.length&&((t=n.data("collapse"))&&t.transitioning||(n.collapse?(n.collapse("hide"),a.collapse("show")):(n.removeClass("in"),a.addClass("in")),(e.is("span")?e:e.find("span")).toggleClass(g.icons.time+" "+g.icons.date)))},showPicker:function(){C.find(".timepicker > div:not(.timepicker-picker)").hide(),C.find(".timepicker .timepicker-picker").show()},showHours:function(){C.find(".timepicker .timepicker-picker").hide(),C.find(".timepicker .timepicker-hours").show()},showMinutes:function(){C.find(".timepicker .timepicker-picker").hide(),C.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){C.find(".timepicker .timepicker-picker").hide(),C.find(".timepicker .timepicker-seconds").show()},selectHour:function(e){e=parseInt(re(e.target).text(),10);f||(12<=b.hours()?12!==e&&(e+=12):12===e&&(e=0)),I(b.clone().hours(e)),q.showPicker.call(c)},selectMinute:function(e){I(b.clone().minutes(parseInt(re(e.target).text(),10))),q.showPicker.call(c)},selectSecond:function(e){I(b.clone().seconds(parseInt(re(e.target).text(),10))),q.showPicker.call(c)},clear:A,today:function(){var e=x();O(e,"d")&&I(e)},close:H},ne=function(e){return re(e.currentTarget).is(".disabled")||q[re(e.currentTarget).data("action")].apply(c,arguments),!1},B=function(){var e;return n.prop("disabled")||!g.ignoreReadonly&&n.prop("readonly")||C||(void 0!==n.val()&&0!==n.val().trim().length?I(Y(n.val().trim())):k&&g.useCurrent&&(g.inline||n.is("input")&&0===n.val().trim().length)&&(e=x(),"string"==typeof g.useCurrent&&(e={year:function(e){return e.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(e){return e.date(1).hours(0).seconds(0).minutes(0)},day:function(e){return e.hours(0).seconds(0).minutes(0)},hour:function(e){return e.seconds(0).minutes(0)},minute:function(e){return e.seconds(0)}}[g.useCurrent](e)),I(e)),C=G(),K(),te(),C.find(".timepicker-hours").hide(),C.find(".timepicker-minutes").hide(),C.find(".timepicker-seconds").hide(),E(),S(),re(window).on("resize",J),C.on("click","[data-action]",ne),C.on("mousedown",!1),u&&u.hasClass("btn")&&u.toggleClass("active"),J(),C.show(),g.focusOnShow&&!n.is(":focus")&&n.focus(),M({type:"dp.show"})),c};if(c.destroy=function(){H(),n.off({change:W,blur:blur,keydown:F,keyup:L,focus:g.allowInputToggle?H:""}),i.is("input")?n.off({focus:B}):u&&(u.off("click",e),u.off("mousedown",!1)),i.removeData("DateTimePicker"),i.removeData("date")},c.toggle=e,c.show=B,c.hide=H,c.disable=function(){return H(),u&&u.hasClass("btn")&&u.addClass("disabled"),n.prop("disabled",!0),c},c.enable=function(){return u&&u.hasClass("btn")&&u.removeClass("disabled"),n.prop("disabled",!1),c},c.ignoreReadonly=function(e){if(0===arguments.length)return g.ignoreReadonly;if("boolean"!=typeof e)throw new TypeError("ignoreReadonly () expects a boolean parameter");return g.ignoreReadonly=e,c},c.options=function(e){if(0===arguments.length)return re.extend(!0,{},g);if(e instanceof Object)return re.extend(!0,g,e),re.each(g,function(e,t){if(void 0===c[e])throw new TypeError("option "+e+" is not recognized!");c[e](t)}),c;throw new TypeError("options() options parameter should be an object")},c.date=function(e){if(0===arguments.length)return k?null:b.clone();if(null===e||"string"==typeof e||ie.isMoment(e)||e instanceof Date)return I(null===e?null:Y(e)),c;throw new TypeError("date() parameter must be one of [null, string, moment or Date]")},c.format=function(e){if(0===arguments.length)return g.format;if("string"==typeof e||"boolean"==typeof e&&!1===e)return g.format=e,r&&a(),c;throw new TypeError("format() expects a string or boolean:false parameter "+e)},c.timeZone=function(e){if(0===arguments.length)return g.timeZone;if("string"!=typeof e)throw new TypeError("newZone() expects a string parameter");return g.timeZone=e,c},c.dayViewHeaderFormat=function(e){if(0===arguments.length)return g.dayViewHeaderFormat;if("string"!=typeof e)throw new TypeError("dayViewHeaderFormat() expects a string parameter");return g.dayViewHeaderFormat=e,c},c.extraFormats=function(e){if(0===arguments.length)return g.extraFormats;if(!1===e||e instanceof Array)return g.extraFormats=e,s&&a(),c;throw new TypeError("extraFormats() expects an array or false parameter")},c.disabledDates=function(e){if(0===arguments.length)return g.disabledDates&&re.extend({},g.disabledDates);if(e){if(!(e instanceof Array))throw new TypeError("disabledDates() expects an array parameter");g.disabledDates=z(e),g.enabledDates=!1}else g.disabledDates=!1;return E(),c},c.enabledDates=function(e){if(0===arguments.length)return g.enabledDates&&re.extend({},g.enabledDates);if(e){if(!(e instanceof Array))throw new TypeError("enabledDates() expects an array parameter");g.enabledDates=z(e),g.disabledDates=!1}else g.enabledDates=!1;return E(),c},c.daysOfWeekDisabled=function(e){if(0===arguments.length)return g.daysOfWeekDisabled.splice(0);if("boolean"!=typeof e||e){if(!(e instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(g.daysOfWeekDisabled=e.reduce(function(e,t){return 6<(t=parseInt(t,10))||t<0||isNaN(t)||-1===e.indexOf(t)&&e.push(t),e},[]).sort(),g.useCurrent&&!g.keepInvalid){for(var t=0;!O(b,"d");){if(b.add(1,"d"),31===t)throw"Tried 31 times to find a valid date";t++}I(b)}}else g.daysOfWeekDisabled=!1;return E(),c},c.maxDate=function(e){if(0===arguments.length)return g.maxDate&&g.maxDate.clone();if("boolean"==typeof e&&!1===e)g.maxDate=!1;else{"string"!=typeof e||"now"!==e&&"moment"!==e||(e=x());var t=Y(e);if(!t.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+e);if(g.minDate&&t.isBefore(g.minDate))throw new TypeError("maxDate() date parameter is before options.minDate: "+t.format(r));g.maxDate=t,g.useCurrent&&!g.keepInvalid&&b.isAfter(e)&&I(g.maxDate),v.isAfter(t)&&(v=t.clone().subtract(g.stepping,"m"))}return E(),c},c.minDate=function(e){if(0===arguments.length)return g.minDate&&g.minDate.clone();if("boolean"==typeof e&&!1===e)g.minDate=!1;else{"string"!=typeof e||"now"!==e&&"moment"!==e||(e=x());var t=Y(e);if(!t.isValid())throw new TypeError("minDate() Could not parse date parameter: "+e);if(g.maxDate&&t.isAfter(g.maxDate))throw new TypeError("minDate() date parameter is after options.maxDate: "+t.format(r));g.minDate=t,g.useCurrent&&!g.keepInvalid&&b.isBefore(e)&&I(g.minDate),v.isBefore(t)&&(v=t.clone().add(g.stepping,"m"))}return E(),c},c.defaultDate=function(e){if(0===arguments.length)return g.defaultDate&&g.defaultDate.clone();if(e){"string"==typeof e&&(e="now"===e||"moment"===e?x():x(e));var t=Y(e);if(!t.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+e);if(!O(t))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");g.defaultDate=t,(g.defaultDate&&g.inline||""===n.val().trim())&&I(g.defaultDate)}else g.defaultDate=!1;return c},c.locale=function(e){if(0===arguments.length)return g.locale;if(ie.localeData(e))return g.locale=e,b.locale(g.locale),v.locale(g.locale),r&&a(),C&&(H(),B()),c;throw new TypeError("locale() locale "+e+" is not loaded from moment locales!")},c.stepping=function(e){return 0===arguments.length?g.stepping:(e=parseInt(e,10),(isNaN(e)||e<1)&&(e=1),g.stepping=e,c)},c.useCurrent=function(e){var t=["year","month","day","hour","minute"];if(0===arguments.length)return g.useCurrent;if("boolean"!=typeof e&&"string"!=typeof e)throw new TypeError("useCurrent() expects a boolean or string parameter");if("string"==typeof e&&-1===t.indexOf(e.toLowerCase()))throw new TypeError("useCurrent() expects a string parameter of "+t.join(", "));return g.useCurrent=e,c},c.collapse=function(e){if(0===arguments.length)return g.collapse;if("boolean"!=typeof e)throw new TypeError("collapse() expects a boolean parameter");return g.collapse!==e&&(g.collapse=e,C)&&(H(),B()),c},c.icons=function(e){if(0===arguments.length)return re.extend({},g.icons);if(e instanceof Object)return re.extend(g.icons,e),C&&(H(),B()),c;throw new TypeError("icons() expects parameter to be an Object")},c.tooltips=function(e){if(0===arguments.length)return re.extend({},g.tooltips);if(e instanceof Object)return re.extend(g.tooltips,e),C&&(H(),B()),c;throw new TypeError("tooltips() expects parameter to be an Object")},c.useStrict=function(e){if(0===arguments.length)return g.useStrict;if("boolean"!=typeof e)throw new TypeError("useStrict() expects a boolean parameter");return g.useStrict=e,c},c.sideBySide=function(e){if(0===arguments.length)return g.sideBySide;if("boolean"!=typeof e)throw new TypeError("sideBySide() expects a boolean parameter");return g.sideBySide=e,C&&(H(),B()),c},c.viewMode=function(e){if(0===arguments.length)return g.viewMode;if("string"!=typeof e)throw new TypeError("viewMode() expects a string parameter");if(-1===y.indexOf(e))throw new TypeError("viewMode() parameter must be one of ("+y.join(", ")+") value");return g.viewMode=e,d=Math.max(y.indexOf(e),h),S(),c},c.toolbarPlacement=function(e){if(0===arguments.length)return g.toolbarPlacement;if("string"!=typeof e)throw new TypeError("toolbarPlacement() expects a string parameter");if(-1===R.indexOf(e))throw new TypeError("toolbarPlacement() parameter must be one of ("+R.join(", ")+") value");return g.toolbarPlacement=e,C&&(H(),B()),c},c.widgetPositioning=function(e){if(0===arguments.length)return re.extend({},g.widgetPositioning);if("[object Object]"!=={}.toString.call(e))throw new TypeError("widgetPositioning() expects an object variable");if(e.horizontal){if("string"!=typeof e.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(e.horizontal=e.horizontal.toLowerCase(),-1===Z.indexOf(e.horizontal))throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+Z.join(", ")+")");g.widgetPositioning.horizontal=e.horizontal}if(e.vertical){if("string"!=typeof e.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(e.vertical=e.vertical.toLowerCase(),-1===V.indexOf(e.vertical))throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+V.join(", ")+")");g.widgetPositioning.vertical=e.vertical}return E(),c},c.calendarWeeks=function(e){if(0===arguments.length)return g.calendarWeeks;if("boolean"!=typeof e)throw new TypeError("calendarWeeks() expects parameter to be a boolean value");return g.calendarWeeks=e,E(),c},c.showTodayButton=function(e){if(0===arguments.length)return g.showTodayButton;if("boolean"!=typeof e)throw new TypeError("showTodayButton() expects a boolean parameter");return g.showTodayButton=e,C&&(H(),B()),c},c.showClear=function(e){if(0===arguments.length)return g.showClear;if("boolean"!=typeof e)throw new TypeError("showClear() expects a boolean parameter");return g.showClear=e,C&&(H(),B()),c},c.widgetParent=function(e){if(0===arguments.length)return g.widgetParent;if(null===(e="string"==typeof e?re(e):e)||"string"==typeof e||e instanceof re)return g.widgetParent=e,C&&(H(),B()),c;throw new TypeError("widgetParent() expects a string or a jQuery object parameter")},c.keepOpen=function(e){if(0===arguments.length)return g.keepOpen;if("boolean"!=typeof e)throw new TypeError("keepOpen() expects a boolean parameter");return g.keepOpen=e,c},c.focusOnShow=function(e){if(0===arguments.length)return g.focusOnShow;if("boolean"!=typeof e)throw new TypeError("focusOnShow() expects a boolean parameter");return g.focusOnShow=e,c},c.inline=function(e){if(0===arguments.length)return g.inline;if("boolean"!=typeof e)throw new TypeError("inline() expects a boolean parameter");return g.inline=e,c},c.clear=function(){return A(),c},c.keyBinds=function(e){return 0===arguments.length?g.keyBinds:(g.keyBinds=e,c)},c.getMoment=function(e){return x(e)},c.debug=function(e){if("boolean"!=typeof e)throw new TypeError("debug() expects a boolean parameter");return g.debug=e,c},c.allowInputToggle=function(e){if(0===arguments.length)return g.allowInputToggle;if("boolean"!=typeof e)throw new TypeError("allowInputToggle() expects a boolean parameter");return g.allowInputToggle=e,c},c.showClose=function(e){if(0===arguments.length)return g.showClose;if("boolean"!=typeof e)throw new TypeError("showClose() expects a boolean parameter");return g.showClose=e,c},c.keepInvalid=function(e){if(0===arguments.length)return g.keepInvalid;if("boolean"!=typeof e)throw new TypeError("keepInvalid() expects a boolean parameter");return g.keepInvalid=e,c},c.datepickerInput=function(e){if(0===arguments.length)return g.datepickerInput;if("string"!=typeof e)throw new TypeError("datepickerInput() expects a string parameter");return g.datepickerInput=e,c},c.parseInputDate=function(e){if(0===arguments.length)return g.parseInputDate;if("function"!=typeof e)throw new TypeError("parseInputDate() sholud be as function");return g.parseInputDate=e,c},c.disabledTimeIntervals=function(e){if(0===arguments.length)return g.disabledTimeIntervals&&re.extend({},g.disabledTimeIntervals);if(e){if(!(e instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");g.disabledTimeIntervals=e}else g.disabledTimeIntervals=!1;return E(),c},c.disabledHours=function(e){if(0===arguments.length)return g.disabledHours&&re.extend({},g.disabledHours);if(e){if(!(e instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(g.disabledHours=N(e),g.enabledHours=!1,g.useCurrent&&!g.keepInvalid){for(var t=0;!O(b,"h");){if(b.add(1,"h"),24===t)throw"Tried 24 times to find a valid date";t++}I(b)}}else g.disabledHours=!1;return E(),c},c.enabledHours=function(e){if(0===arguments.length)return g.enabledHours&&re.extend({},g.enabledHours);if(e){if(!(e instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(g.enabledHours=N(e),g.disabledHours=!1,g.useCurrent&&!g.keepInvalid){for(var t=0;!O(b,"h");){if(b.add(1,"h"),24===t)throw"Tried 24 times to find a valid date";t++}I(b)}}else g.enabledHours=!1;return E(),c},c.viewDate=function(e){if(0===arguments.length)return v.clone();if(e){if(!("string"==typeof e||ie.isMoment(e)||e instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");v=Y(e),t()}else v=b.clone();return c},i.is("input"))n=i;else if(0===(n=i.find(g.datepickerInput)).length)n=i.find("input");else if(!n.is("input"))throw new Error('CSS class "'+g.datepickerInput+'" cannot be applied to non input element');if(i.hasClass("input-group")&&(u=0===i.find(".datepickerbutton").length?i.find(".input-group-addon"):i.find(".datepickerbutton")),g.inline||n.is("input"))return b=x(),v=b.clone(),re.extend(!0,g,(l={},(p=(i.is("input")||g.inline?i:i.find("input")).data()).dateOptions&&p.dateOptions instanceof Object&&(l=re.extend(!0,l,p.dateOptions)),re.each(g,function(e){var t="date"+e.charAt(0).toUpperCase()+e.slice(1);void 0!==p[t]&&(l[e]=p[t])}),l)),c.options(g),a(),n.on({change:W,blur:g.debug?"":H,keydown:F,keyup:L,focus:g.allowInputToggle?B:""}),i.is("input")?n.on({focus:B}):u&&(u.on("click",e),u.on("mousedown",!1)),n.prop("disabled")&&c.disable(),n.is("input")&&0!==n.val().trim().length?I(Y(n.val().trim())):g.defaultDate&&void 0===n.attr("placeholder")&&I(g.defaultDate),g.inline&&B(),c;throw new Error("Could not initialize DateTimePicker without an input element")},re.fn.datetimepicker=function(a){a=a||{};var t,n=Array.prototype.slice.call(arguments,1),r=!0;if("object"==typeof a)return this.each(function(){var e,t=re(this);t.data("DateTimePicker")||(e=re.extend(!0,{},re.fn.datetimepicker.defaults,a),t.data("DateTimePicker",i(t,e)))});if("string"==typeof a)return this.each(function(){var e=re(this).data("DateTimePicker");if(!e)throw new Error('bootstrap-datetimepicker("'+a+'") method was called on an element that is not using DateTimePicker');t=e[a].apply(e,n),r=t===e}),r||-1<re.inArray(a,["destroy","hide","show","toggle"])?this:t;throw new TypeError("Invalid arguments for DateTimePicker: "+a)},re.fn.datetimepicker.defaults={timeZone:"",format:!1,dayViewHeaderFormat:"MMMM YYYY",extraFormats:!1,stepping:1,minDate:!1,maxDate:!1,useCurrent:!0,collapse:!0,locale:ie.locale(),defaultDate:!1,disabledDates:!1,enabledDates:!1,icons:{time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down",previous:"glyphicon glyphicon-chevron-left",next:"glyphicon glyphicon-chevron-right",today:"glyphicon glyphicon-screenshot",clear:"glyphicon glyphicon-trash",close:"glyphicon glyphicon-remove"},tooltips:{today:"Go to today",clear:"Clear selection",close:"Close the picker",selectMonth:"Select Month",prevMonth:"Previous Month",nextMonth:"Next Month",selectYear:"Select Year",prevYear:"Previous Year",nextYear:"Next Year",selectDecade:"Select Decade",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevCentury:"Previous Century",nextCentury:"Next Century",pickHour:"Pick Hour",incrementHour:"Increment Hour",decrementHour:"Decrement Hour",pickMinute:"Pick Minute",incrementMinute:"Increment Minute",decrementMinute:"Decrement Minute",pickSecond:"Pick Second",incrementSecond:"Increment Second",decrementSecond:"Decrement Second",togglePeriod:"Toggle Period",selectTime:"Select Time"},useStrict:!1,sideBySide:!1,daysOfWeekDisabled:!1,calendarWeeks:!1,viewMode:"days",toolbarPlacement:"default",showTodayButton:!1,showClear:!1,showClose:!1,widgetPositioning:{horizontal:"auto",vertical:"auto"},widgetParent:null,ignoreReadonly:!1,keepOpen:!1,focusOnShow:!0,inline:!1,keepInvalid:!1,datepickerInput:".datepickerinput",keyBinds:{up:function(e){var t;e&&(t=this.date()||this.getMoment(),e.find(".datepicker").is(":visible")?this.date(t.clone().subtract(7,"d")):this.date(t.clone().add(this.stepping(),"m")))},down:function(e){var t;e?(t=this.date()||this.getMoment(),e.find(".datepicker").is(":visible")?this.date(t.clone().add(7,"d")):this.date(t.clone().subtract(this.stepping(),"m"))):this.show()},"control up":function(e){var t;e&&(t=this.date()||this.getMoment(),e.find(".datepicker").is(":visible")?this.date(t.clone().subtract(1,"y")):this.date(t.clone().add(1,"h")))},"control down":function(e){var t;e&&(t=this.date()||this.getMoment(),e.find(".datepicker").is(":visible")?this.date(t.clone().add(1,"y")):this.date(t.clone().subtract(1,"h")))},left:function(e){var t;e&&(t=this.date()||this.getMoment(),e.find(".datepicker").is(":visible"))&&this.date(t.clone().subtract(1,"d"))},right:function(e){var t;e&&(t=this.date()||this.getMoment(),e.find(".datepicker").is(":visible"))&&this.date(t.clone().add(1,"d"))},pageUp:function(e){var t;e&&(t=this.date()||this.getMoment(),e.find(".datepicker").is(":visible"))&&this.date(t.clone().subtract(1,"M"))},pageDown:function(e){var t;e&&(t=this.date()||this.getMoment(),e.find(".datepicker").is(":visible"))&&this.date(t.clone().add(1,"M"))},enter:function(){this.hide()},escape:function(){this.hide()},"control space":function(e){e&&e.find(".timepicker").is(":visible")&&e.find('.btn[data-action="togglePeriod"]').click()},t:function(){this.date(this.getMoment())},delete:function(){this.clear()}},debug:!1,allowInputToggle:!1,disabledTimeIntervals:!1,disabledHours:!1,enabledHours:!1,viewDate:!1},re.fn.datetimepicker;throw new Error("bootstrap-datetimepicker requires Moment.js to be loaded first")});
