if('undefined'==typeof jQuery)throw new Error('Bootstrap\'s JavaScript requires jQuery');function debounce(i,n,s){var a;return function(){var t=this,e=arguments,o=s&&!a;clearTimeout(a),a=setTimeout(function(){a=null,s||i.apply(t,e)},n),o&&i.apply(t,e)}}function throttle(t,e){var o=!1;return function(){o||(t.apply(this,arguments),o=!0,setTimeout(function(){o=!1},e))}}function shareURL(t){var e={facebook:'https://www.facebook.com/sharer/sharer.php?u=',linkedin:'https://www.linkedin.com/shareArticle?mini=true&url=',twitter:'https://twitter.com/intent/tweet?&url='},o=window.location.href,i=t.toLowerCase().trim(),n=$.map(e,function(t,e){return e});-1!==$.inArray(i,n)?(t=document.title||'',n=location.hostname||'',n=!0==('linkedin'==i)?'&title='+encodeURIComponent(t)+'&summary=&source='+encodeURIComponent(n):'',window.open(encodeURI(e[i])+encodeURI(o)+n)):console.log('Please call the function like this: onclick="shareURL(\'facebook)\'"')}function getCurrentScrollPosition(){return window.pageYOffset||document.documentElement.scrollTop}!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';var i=!!o('html').hasClass('non-responsive'),e=o('#globalfooter .footer-heading[data-heading="toggle"]'),n=o('#globalfooter .footer-heading[data-heading="toggle"] + .footerlinks'),s=o('body').prop('clientWidth');window.matchMedia('(max-width: 767px)').matches&&e.attr('aria-expanded','false');e.click(function(t){var e;e=this,t=t,!1==i&&window.matchMedia('(max-width: 767px)').matches?(t.preventDefault(),o(e).next('ul').slideToggle(),o(e).toggleClass('open'),o(e).attr('aria-expanded',o(e).hasClass('open')?'true':'false')):o(e).next('ul').show()}),o(window).on('resize orientationchange',debounce(function(){var t=o('body').prop('clientWidth');!1==i&&t!==s&&(e.removeClass('open'),n.removeAttr('style aria-expanded'),s=t)},250))}(jQuery),function(i){'use strict';i.fn.emulateTransitionEnd=function(t){var e=!1,o=this;i(this).one('bsTransitionEnd',function(){e=!0});return setTimeout(function(){e||i(o).trigger(i.support.transition.end)},t),this},i(function(){i.support.transition=function(){var t,e=document.createElement('bootstrap'),o={WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd otransitionend',transition:'transitionend'};for(t in o)if(void 0!==e.style[t])return{end:o[t]};return!1}(),i.support.transition&&(i.event.special.bsTransitionEnd={bindType:i.support.transition.end,delegateType:i.support.transition.end,handle:function(t){if(i(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.3.7',a.TRANSITION_DURATION=150,a.prototype.close=function(t){var e=s(this),o=(o=e.attr('data-target'))||(o=e.attr('href'))&&o.replace(/.*(?=#[^\s]*$)/,''),i=s('#'===o?[]:o);function n(){i.detach().trigger('closed.bs.alert').remove()}t&&t.preventDefault(),(i=!i.length?e.closest('.alert'):i).trigger(t=s.Event('close.bs.alert')),t.isDefaultPrevented()||(i.removeClass('in'),s.support.transition&&i.hasClass('fade')?i.one('bsTransitionEnd',n).emulateTransitionEnd(a.TRANSITION_DURATION):n())};var t=s.fn.alert;s.fn.alert=function(o){return this.each(function(){var t=s(this),e=t.data('bs.alert');e||t.data('bs.alert',e=new a(this)),'string'==typeof o&&e[o].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';var i=function(t,e){this.$element=s(t),this.options=s.extend({},i.DEFAULTS,e),this.isLoading=!1};function o(o){return this.each(function(){var t=s(this),e=t.data('bs.button');e||t.data('bs.button',e=new i(this,'object'==typeof o&&o)),'toggle'==o?e.toggle():o&&e.setState(o)})}i.VERSION='3.3.7',i.DEFAULTS={loadingText:'loading...'},i.prototype.setState=function(t){var e='disabled',o=this.$element,i=o.is('input')?'val':'html',n=o.data();t+='Text',null==n.resetText&&o.data('resetText',o[i]()),setTimeout(s.proxy(function(){o[i]((null==n[t]?this.options:n)[t]),'loadingText'==t?(this.isLoading=!0,o.addClass(e).attr(e,e).prop(e,!0)):this.isLoading&&(this.isLoading=!1,o.removeClass(e).removeAttr(e).prop(e,!1))},this),0)},i.prototype.toggle=function(){var t,e=!0,o=this.$element.closest('[data-toggle="buttons"]');o.length?('radio'==(t=this.$element.find('input')).prop('type')?(t.prop('checked')&&(e=!1),o.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=o,s.fn.button.Constructor=i,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');o.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(n){'use strict';var s=function(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 o(t){var e=t.attr('data-target')||(e=t.attr('href'))&&e.replace(/.*(?=#[^\s]+$)/,'');return n(e)}function a(i){return this.each(function(){var t=n(this),e=t.data('bs.collapse'),o=n.extend({},s.DEFAULTS,t.data(),'object'==typeof i&&i);!e&&o.toggle&&/show|hide/.test(i)&&(o.toggle=!1),e||t.data('bs.collapse',e=new s(this,o)),'string'==typeof i&&e[i]()})}s.VERSION='3.3.7',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&&(i=t.data('bs.collapse'))&&i.transitioning)){var e=n.Event('show.bs.collapse');if(this.$element.trigger(e),!e.isDefaultPrevented()){t&&t.length&&(a.call(t,'hide'),i||t.data('bs.collapse',null));var o=this.dimension();this.$element.removeClass('collapse').addClass('collapsing')[o](0).attr('aria-expanded',!0),this.$trigger.removeClass('collapsed').attr('aria-expanded',!0),this.transitioning=1;var i=function(){this.$element.removeClass('collapsing').addClass('collapse in')[o](''),this.transitioning=0,this.$element.trigger('shown.bs.collapse')};if(!n.support.transition)return i.call(this);t=n.camelCase(['scroll',o].join('-'));this.$element.one('bsTransitionEnd',n.proxy(i,this)).emulateTransitionEnd(s.TRANSITION_DURATION)[o](this.$element[0][t])}}}},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 e=this.dimension();this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass('collapsing').removeClass('collapse in').attr('aria-expanded',!1),this.$trigger.addClass('collapsed').attr('aria-expanded',!1),this.transitioning=1;t=function(){this.transitioning=0,this.$element.removeClass('collapsing').addClass('collapse').trigger('hidden.bs.collapse')};if(!n.support.transition)return t.call(this);this.$element[e](0).one('bsTransitionEnd',n.proxy(t,this)).emulateTransitionEnd(s.TRANSITION_DURATION)}}},s.prototype.toggle=function(){this[this.$element.hasClass('in')?'hide':'show']()},s.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,e){e=n(e);this.addAriaAndCollapsedClass(o(e),e)},this)).end()},s.prototype.addAriaAndCollapsedClass=function(t,e){var o=t.hasClass('in');t.attr('aria-expanded',o),e.toggleClass('collapsed',!o).attr('aria-expanded',o)};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);e.attr('data-target')||t.preventDefault();t=o(e),e=t.data('bs.collapse')?'toggle':e.data();a.call(t,e)})}(jQuery),function(n){'use strict';function i(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(e);return e&&e.length?e:t.parent()}function r(i){i&&3===i.which||(n('.dropdown-backdrop').remove(),n(s).each(function(){var t=n(this),e=a(t),o={relatedTarget:this};e.hasClass('open')&&(i&&'click'==i.type&&/input|textarea/i.test(i.target.tagName)&&n.contains(e[0],i.target)||(e.trigger(i=n.Event('hide.bs.dropdown',o)),i.isDefaultPrevented()||(t.attr('aria-expanded','false'),e.removeClass('open').trigger(n.Event('hidden.bs.dropdown',o)))))}))}i.VERSION='3.3.7',i.prototype.toggle=function(t){var e=n(this);if(!e.is('.disabled, :disabled')){var o=a(e),i=o.hasClass('open');if(r(),!i){'ontouchstart'in document.documentElement&&!o.closest('.navbar-nav').length&&n(document.createElement('div')).addClass('dropdown-backdrop').insertAfter(n(this)).on('click',r);i={relatedTarget:this};if(o.trigger(t=n.Event('show.bs.dropdown',i)),t.isDefaultPrevented())return;e.trigger('focus').attr('aria-expanded','true'),o.toggleClass('open').trigger(n.Event('shown.bs.dropdown',i))}return!1}},i.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 o=a(e),i=o.hasClass('open');if(!i&&27!=t.which||i&&27==t.which)return 27==t.which&&o.find(s).trigger('focus'),e.trigger('click');e=o.find('.dropdown-menu li:not(.disabled):visible a');e.length&&(o=e.index(t.target),38==t.which&&0<o&&o--,40==t.which&&o<e.length-1&&o++,e.eq(o=!~o?0:o).trigger('focus'))}}};var t=n.fn.dropdown;n.fn.dropdown=function(o){return this.each(function(){var t=n(this),e=t.data('bs.dropdown');e||t.data('bs.dropdown',e=new i(this)),'string'==typeof o&&e[o].call(t)})},n.fn.dropdown.Constructor=i,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,i.prototype.toggle).on('keydown.bs.dropdown.data-api',s,i.prototype.keydown).on('keydown.bs.dropdown.data-api','.dropdown-menu',i.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.options.remote&&this.$element.find('.modal-content').load(this.options.remote,s.proxy(function(){this.$element.trigger('loaded.bs.modal')},this))}function n(i,n){return this.each(function(){var t=s(this),e=t.data('bs.modal'),o=s.extend({},a.DEFAULTS,t.data(),'object'==typeof i&&i);e||t.data('bs.modal',e=new a(this,o)),'string'==typeof i?e[i](n):o.show&&e.show(n)})}a.VERSION='3.3.7',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(o){var i=this,t=s.Event('show.bs.modal',{relatedTarget:o});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(){i.$element.one('mouseup.dismiss.bs.modal',function(t){s(t.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var t=s.support.transition&&i.$element.hasClass('fade');i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),t&&i.$element[0].offsetWidth,i.$element.addClass('in'),i.enforceFocus();var e=s.Event('shown.bs.modal',{relatedTarget:o});t?i.$dialog.one('bsTransitionEnd',function(){i.$element.trigger('focus').trigger(e)}).emulateTransitionEnd(a.TRANSITION_DURATION):i.$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,o=this,i=this.$element.hasClass('fade')?'fade':'';this.isShown&&this.options.backdrop?(e=s.support.transition&&i,this.$backdrop=s(document.createElement('div')).addClass('modal-backdrop '+i).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'),e=function(){o.removeBackdrop(),t&&t()},s.support.transition&&this.$element.hasClass('fade')?this.$backdrop.one('bsTransitionEnd',e).emulateTransitionEnd(a.BACKDROP_TRANSITION_DURATION):e()):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);this.originalBodyPad=document.body.style.paddingRight||'',this.bodyIsOverflowing&&this.$body.css('padding-right',t+this.scrollbarWidth)},a.prototype.resetScrollbar=function(){this.$body.css('padding-right',this.originalBodyPad)},a.prototype.measureScrollbar=function(){var t=document.createElement('div');t.className='modal-scrollbar-measure',this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var t=s.fn.modal;s.fn.modal=n,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),o=e.attr('href'),i=s(e.attr('data-target')||o&&o.replace(/.*(?=#[^\s]+$)/,'')),o=i.data('bs.modal')?'toggle':s.extend({remote:!/#/.test(o)&&o},i.data(),e.data());e.is('a')&&t.preventDefault(),i.one('show.bs.modal',function(t){t.isDefaultPrevented()||i.one('hidden.bs.modal',function(){e.is(':visible')&&e.trigger('focus')})}),n.call(i,o,this)})}(jQuery),function(l){'use strict';function d(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)}d.VERSION='3.3.7',d.TRANSITION_DURATION=150,d.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}},d.prototype.init=function(t,e,o){if(this.enabled=!0,this.type=t,this.$element=l(e),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&l(l.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 i=this.options.trigger.split(' '),n=i.length;n--;){var s,a=i[n];'click'==a?this.$element.on('click.'+this.type,this.options.selector,l.proxy(this.toggle,this)):'manual'!=a&&(s='hover'==a?'mouseleave':'focusout',this.$element.on(('hover'==a?'mouseenter':'focusin')+'.'+this.type,this.options.selector,l.proxy(this.enter,this)),this.$element.on(s+'.'+this.type,this.options.selector,l.proxy(this.leave,this)))}this.options.selector?this._options=l.extend({},this.options,{trigger:'manual',selector:''}):this.fixTitle()},d.prototype.getDefaults=function(){return d.DEFAULTS},d.prototype.getOptions=function(t){return(t=l.extend({},this.getDefaults(),this.$element.data(),t)).delay&&'number'==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},d.prototype.getDelegateOptions=function(){var o={},i=this.getDefaults();return this._options&&l.each(this._options,function(t,e){i[t]!=e&&(o[t]=e)}),o},d.prototype.enter=function(t){var e=t instanceof this.constructor?t:l(t.currentTarget).data('bs.'+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),l(t.currentTarget).data('bs.'+this.type,e)),t instanceof l.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)}},d.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},d.prototype.leave=function(t){var e=t instanceof this.constructor?t:l(t.currentTarget).data('bs.'+this.type);if(e||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),l(t.currentTarget).data('bs.'+this.type,e)),t instanceof l.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)}},d.prototype.show=function(){var e,t,o,i,n,s,a,r=l.Event('show.bs.'+this.type);this.hasContent()&&this.enabled&&(this.$element.trigger(r),o=l.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),!r.isDefaultPrevented()&&o&&(t=(e=this).tip(),s=this.getUID(this.type),this.setContent(),t.attr('id',s),this.$element.attr('aria-describedby',s),this.options.animation&&t.addClass('fade'),a='function'==typeof this.options.placement?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement,(n=(i=/\s?auto?\s?/i).test(a))&&(a=a.replace(i,'')||'top'),t.detach().css({top:0,left:0,display:'block'}).addClass(a).data('bs.'+this.type,this),this.options.container?t.appendTo(this.options.container):t.insertAfter(this.$element),this.$element.trigger('inserted.bs.'+this.type),r=this.getPosition(),o=t[0].offsetWidth,s=t[0].offsetHeight,n&&(i=a,n=this.getPosition(this.$viewport),a='bottom'==a&&r.bottom+s>n.bottom?'top':'top'==a&&r.top-s<n.top?'bottom':'right'==a&&r.right+o>n.width?'left':'left'==a&&r.left-o<n.left?'right':a,t.removeClass(i).addClass(a)),s=this.getCalculatedOffset(a,r,o,s),this.applyPlacement(s,a),a=function(){var t=e.hoverState;e.$element.trigger('shown.bs.'+e.type),e.hoverState=null,'out'==t&&e.leave(e)},l.support.transition&&this.$tip.hasClass('fade')?t.one('bsTransitionEnd',a).emulateTransitionEnd(d.TRANSITION_DURATION):a()))},d.prototype.applyPlacement=function(t,e){var o=this.tip(),i=o[0].offsetWidth,n=o[0].offsetHeight,s=parseInt(o.css('margin-top'),10),a=parseInt(o.css('margin-left'),10);isNaN(s)&&(s=0),isNaN(a)&&(a=0),t.top+=s,t.left+=a,l.offset.setOffset(o[0],l.extend({using:function(t){o.css({top:Math.round(t.top),left:Math.round(t.left)})}},t),0),o.addClass('in');var r=o[0].offsetWidth,s=o[0].offsetHeight;'top'==e&&s!=n&&(t.top=t.top+n-s);a=this.getViewportAdjustedDelta(e,t,r,s);a.left?t.left+=a.left:t.top+=a.top;e=/top|bottom/.test(e),n=e?2*a.left-i+r:2*a.top-n+s,s=e?'offsetWidth':'offsetHeight';o.offset(t),this.replaceArrow(n,o[0][s],e)},d.prototype.replaceArrow=function(t,e,o){this.arrow().css(o?'left':'top',50*(1-t/e)+'%').css(o?'top':'left','')},d.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find('.tooltip-inner')[this.options.html?'html':'text'](e),t.removeClass('fade in top bottom left right')},d.prototype.hide=function(t){var e=this,o=l(this.$tip),i=l.Event('hide.bs.'+this.type);function n(){'in'!=e.hoverState&&o.detach(),e.$element&&e.$element.removeAttr('aria-describedby').trigger('hidden.bs.'+e.type),t&&t()}if(this.$element.trigger(i),!i.isDefaultPrevented())return o.removeClass('in'),l.support.transition&&o.hasClass('fade')?o.one('bsTransitionEnd',n).emulateTransitionEnd(d.TRANSITION_DURATION):n(),this.hoverState=null,this},d.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','')},d.prototype.hasContent=function(){return this.getTitle()},d.prototype.getPosition=function(t){var e=(t=t||this.$element)[0],o='BODY'==e.tagName,i=e.getBoundingClientRect();null==i.width&&(i=l.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));e=window.SVGElement&&e instanceof window.SVGElement,e=o?{top:0,left:0}:e?null:t.offset(),t={scroll:o?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},o=o?{width:l(window).width(),height:l(window).height()}:null;return l.extend({},i,t,o,e)},d.prototype.getCalculatedOffset=function(t,e,o,i){return'bottom'==t?{top:e.top+e.height,left:e.left+e.width/2-o/2}:'top'==t?{top:e.top-i,left:e.left+e.width/2-o/2}:'left'==t?{top:e.top+e.height/2-i/2,left:e.left-o}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},d.prototype.getViewportAdjustedDelta=function(t,e,o,i){var n={top:0,left:0};if(!this.$viewport)return n;var s,a=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);return/right|left/.test(t)?(t=e.top-a-r.scroll,s=e.top+a-r.scroll+i,t<r.top?n.top=r.top-t:s>r.top+r.height&&(n.top=r.top+r.height-s)):(s=e.left-a,o=e.left+a+o,s<r.left?n.left=r.left-s:o>r.right&&(n.left=r.left+r.width-o)),n},d.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)},d.prototype.getUID=function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},d.prototype.tip=function(){if(!this.$tip&&(this.$tip=l(this.options.template),1!=this.$tip.length))throw new Error(this.type+' `template` option must consist of exactly 1 top-level element!');return this.$tip},d.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find('.tooltip-arrow')},d.prototype.enable=function(){this.enabled=!0},d.prototype.disable=function(){this.enabled=!1},d.prototype.toggleEnabled=function(){this.enabled=!this.enabled},d.prototype.toggle=function(t){var e=this;t&&((e=l(t.currentTarget).data('bs.'+this.type))||(e=new this.constructor(t.currentTarget,this.getDelegateOptions()),l(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)},d.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})};var t=l.fn.tooltip;l.fn.tooltip=function(i){return this.each(function(){var t=l(this),e=t.data('bs.tooltip'),o='object'==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data('bs.tooltip',e=new d(this,o)),'string'==typeof i&&e[i]())})},l.fn.tooltip.Constructor=d,l.fn.tooltip.noConflict=function(){return l.fn.tooltip=t,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.3.7',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=this.tip(),e=this.getTitle(),o=this.getContent();t.find('.popover-title')[this.options.html?'html':'text'](e),t.find('.popover-content').children().detach().end()[this.options.html?'string'==typeof o?'html':'append':'text'](o),t.removeClass('fade top bottom left right in'),t.find('.popover-title').html()||t.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(i){return this.each(function(){var t=n(this),e=t.data('bs.popover'),o='object'==typeof i&&i;!e&&/destroy|hide/.test(i)||(e||t.data('bs.popover',e=new s(this,o)),'string'==typeof i&&e[i]())})},n.fn.popover.Constructor=s,n.fn.popover.noConflict=function(){return n.fn.popover=t,this}}(jQuery),function(a){'use strict';function r(t){this.element=a(t)}function e(o){return this.each(function(){var t=a(this),e=t.data('bs.tab');e||t.data('bs.tab',e=new r(this)),'string'==typeof o&&e[o]()})}r.VERSION='3.3.7',r.TRANSITION_DURATION=150,r.prototype.show=function(){var t,e,o,i=this.element,n=i.closest('ul:not(.dropdown-menu)'),s=(s=i.data('target'))||(s=i.attr('href'))&&s.replace(/.*(?=#[^\s]*$)/,'');i.parent('li').hasClass('active')||(t=n.find('.active:last a'),e=a.Event('hide.bs.tab',{relatedTarget:i[0]}),o=a.Event('show.bs.tab',{relatedTarget:t[0]}),t.trigger(e),i.trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented()||(s=a(s),this.activate(i.closest('li'),n),this.activate(s,s.parent(),function(){t.trigger({type:'hidden.bs.tab',relatedTarget:i[0]}),i.trigger({type:'shown.bs.tab',relatedTarget:t[0]})})))},r.prototype.activate=function(t,e,o){var i=e.find('> .active'),n=o&&a.support.transition&&(i.length&&i.hasClass('fade')||!!e.find('> .fade').length);function s(){i.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),o&&o()}i.length&&n?i.one('bsTransitionEnd',s).emulateTransitionEnd(r.TRANSITION_DURATION):s(),i.removeClass('in')};var t=a.fn.tab;a.fn.tab=e,a.fn.tab.Constructor=r,a.fn.tab.noConflict=function(){return a.fn.tab=t,this};function o(t){t.preventDefault(),e.call(a(this),'show')}a(document).on('click.bs.tab.data-api','[data-toggle="tab"]',o).on('click.bs.tab.data-api','[data-toggle="pill"]',o)}(jQuery),function(i){var t;i('html').prop('lang')&&i('html').prop('lang'),i('html').hasClass('ku-bs');function e(t){i(t.target).prev('.panel-heading').toggleClass('open')}function o(){var t=document.getElementById('scrolltop'),e=window.pageYOffset||document.documentElement.scrollTop;t&&t.classList.toggle('in',60<e)}i('.panel-accordion').each(function(){i(this).find('.panel-heading').next('.panel-collapse').hasClass('in')&&i(this).find('.panel-heading').addClass('open')}),i('.panel-accordion').on('hide.bs.collapse',e),i('.panel-accordion').on('show.bs.collapse',e),(t=i('ul.nyheder li:not(.no-track)'))&&t.each(function(t,e){var o=i(this).find('a').prop('href')+'?utm_source=Nyheder&utm_medium=Link&utm_campaign=kudk-globalmenu';i(this).find('a').prop('href',o)}),i('#navbar_menu li.dropdown').each(function(){i(this).children('.dropdown-toggle').addClass('disabled')}),o();var n=!1;function s(){var t=document.body;t&&(window.innerWidth>t.clientWidth?(t.classList.add('has-scrollbar'),t.setAttribute('style','--scroll-bar: '+(window.innerWidth-t.clientWidth)+'px')):t.classList.remove('has-scrollbar'))}function a(){i('html, body').animate({scrollTop:0},500)}window.addEventListener('scroll',function(t){window.scrollY,n||(window.requestAnimationFrame(function(){o(),n=!1}),n=!0)}),s(),window.addEventListener('orientationchange',debounce(function(){s()},250)),window.addEventListener('resize',debounce(function(){s()},250)),i('#scrolltop').click(function(){a()}),i('#scrolltop').on('keydown',function(t){13===t.keyCode&&a()}),i(window).on('load',function(){var t;0<=window.location.hash.indexOf('collapse-')&&(t=window.location.hash,i(t).collapse('show'),i('html, body').animate({scrollTop:i(t).offset().top-50},800))})}(jQuery);
//# sourceMappingURL=bootstrap.min.js.map