PageSourceSearch

https://kps.rs/t3-assets/js/js-a716f-33511.js

js kps.rs collected 2026-10-02 13:47:57 UTC 60,858 bytes, 866 lines download raw bytes

1
2
3/*===============================
4/media/system/js/caption.js
5================================================================================*/;
6var JCaption=function(c){var e,b,a=function(f){e=jQuery.noConflict();b=f;e(b).each(function(g,h){d(h)})},d=function(i){var h=e(i),f=h.attr("title"),j=h.attr("width")||i.width,l=h.attr("align")||h.css("float")||i.style.styleFloat||"none",g=e("<p/>",{text:f,"class":b.replace(".","_")}),k=e("<div/>",{"class":b.replace(".","_")+" "+l,css:{"float":l,width:j}});h.before(k);k.append(h);if(f!==""){k.append(g)}};a(c)};
7
8
9/*===============================
10/media/system/js/core.js
11================================================================================*/;
12Joomla=window.Joomla||{},Joomla.editors=Joomla.editors||{},Joomla.editors.instances=Joomla.editors.instances||{},function(e,t){"use strict";e.submitform=function(e,o,n){o||(o=t.getElementById("adminForm")),e&&(o.task.value=e),o.noValidate=!n,n?o.hasAttribute("novalidate")&&o.removeAttribute("novalidate"):o.setAttribute("novalidate","");var r=t.createElement("input");r.style.display="none",r.type="submit",o.appendChild(r).click(),o.removeChild(r)},e.submitbutton=function(t){e.submitform(t)},e.Text={strings:{},_:function(t,o){var n=e.getOptions("joomla.jtext");return n&&(this.load(n),e.loadOptions({"joomla.jtext":null})),o=void 0===o?"":o,t=t.toUpperCase(),void 0!==this.strings[t]?this.strings[t]:o},load:function(e){for(var t in e)e.hasOwnProperty(t)&&(this.strings[t.toUpperCase()]=e[t]);return this}},e.JText=e.Text,e.optionsStorage=e.optionsStorage||null,e.getOptions=function(t,o){return e.optionsStorage||e.loadOptions(),void 0!==e.optionsStorage[t]?e.optionsStorage[t]:o},e.loadOptions=function(o){if(!o){for(var n,r,a,i=t.querySelectorAll(".joomla-script-options.new"),s=0,l=0,d=i.length;l<d;l++)n=(r=i[l]).text||r.textContent,(a=JSON.parse(n))&&(e.loadOptions(a),s++),r.className=r.className.replace(" new"," loaded");if(s)return}if(e.optionsStorage){if(o)for(var c in o)o.hasOwnProperty(c)&&(e.optionsStorage[c]=o[c])}else e.optionsStorage=o||{}},e.replaceTokens=function(e){if(/^[0-9A-F]{32}$/i.test(e)){var o,n,r,a=t.getElementsByTagName("input");for(o=0,r=a.length;o<r;o++)"hidden"==(n=a[o]).type&&"1"==n.value&&32==n.name.length&&(n.name=e)}},e.isEmail=function(e){console.warn("Joomla.isEmail() is deprecated, use the formvalidator instead");return/^[\w.!#$%&‚Äô*+\/=?^`{|}~-]+@[a-z0-9-]+(?:\.[a-z0-9-]{2,})+$/i.test(e)},e.checkAll=function(e,t){if(!e.form)return!1;t=t||"cb";var o,n,r,a=0;for(o=0,r=e.form.elements.length;o<r;o++)(n=e.form.elements[o]).type==e.type&&0===n.id.indexOf(t)&&(n.checked=e.checked,a+=n.checked?1:0);return e.form.boxchecked&&(e.form.boxchecked.value=a),!0},e.renderMessages=function(o){e.removeMessages();var n,r,a,i,s,l,d,c=t.getElementById("system-message-container");for(n in o)if(o.hasOwnProperty(n)){r=o[n],a=t.createElement("div"),d="notice"===n?"alert-info":"alert-"+n,d="message"===n?"alert-success":d,d="error"===n?"alert-error alert-danger":d,a.className="alert "+d;var u=t.createElement("button");for(u.setAttribute("type","button"),u.setAttribute("data-dismiss","alert"),u.className="close",u.innerHTML="×",a.appendChild(u),void 0!==e.JText._(n)&&((i=t.createElement("h4")).className="alert-heading",i.innerHTML=e.JText._(n),a.appendChild(i)),s=r.length-1;s>=0;s--)(l=t.createElement("div")).innerHTML=r[s],a.appendChild(l);c.appendChild(a)}},e.removeMessages=function(){for(var e=t.getElementById("system-message-container");e.firstChild;)e.removeChild(e.firstChild);e.style.display="none",e.offsetHeight,e.style.display=""},e.ajaxErrorsMessages=function(t,o,n){var r={};if("parsererror"===o){for(var a=t.responseText.trim(),i=[],s=a.length-1;s>=0;s--)i.unshift(["&#",a[s].charCodeAt(),";"].join(""));a=i.join(""),r.error=[e.JText._("JLIB_JS_AJAX_ERROR_PARSE").replace("%s",a)]}else"nocontent"===o?r.error=[e.JText._("JLIB_JS_AJAX_ERROR_NO_CONTENT")]:"timeout"===o?r.error=[e.JText._("JLIB_JS_AJAX_ERROR_TIMEOUT")]:"abort"===o?r.error=[e.JText._("JLIB_JS_AJAX_ERROR_CONNECTION_ABORT")]:t.responseJSON&&t.responseJSON.message?r.error=[e.JText._("JLIB_JS_AJAX_ERROR_OTHER").replace("%s",t.status)+" <em>"+t.responseJSON.message+"</em>"]:t.statusText?r.error=[e.JText._("JLIB_JS_AJAX_ERROR_OTHER").replace("%s",t.status)+" <em>"+t.statusText+"</em>"]:r.error=[e.JText._("JLIB_JS_AJAX_ERROR_OTHER").replace("%s",t.status)];return r},e.isChecked=function(e,o){if(void 0===o&&(o=t.getElementById("adminForm")),o.boxchecked.value=e?parseInt(o.boxchecked.value)+1:parseInt(o.boxchecked.value)-1,o.elements["checkall-toggle"]){var n,r,a,i=!0;for(n=0,a=o.elements.length;n<a;n++)if("checkbox"==(r=o.elements[n]).type&&"checkall-toggle"!=r.name&&!r.checked){i=!1;break}o.elements["checkall-toggle"].checked=i}},e.popupWindow=function(e,t,o,n,r){var a=(screen.width-o)/2,i="height="+n+",width="+o+",top="+(screen.height-n)/2+",left="+a+",scrollbars="+r+",resizable";window.open(e,t,i).window.focus()},e.tableOrdering=function(o,n,r,a){void 0===a&&(a=t.getElementById("adminForm")),a.filter_order.value=o,a.filter_order_Dir.value=n,e.submitform(r,a)},window.writeDynaList=function(e,o,n,r,a,i){console.warn("window.writeDynaList() is deprecated without a replacement!");for(var s=t.createElement("select"),l=e.split(" "),d=0;d<l.length;d++){var c=l[d].split("=");"on"!==c[0].trim().substr(0,2).toLowerCase()&&"href"!==c[0].trim().toLowerCase()&&s.setAttribute(c[0],c[1].replace(/\"/g,""))}var u,m,p,h=n==r;for(u=0;
12u<o.length;u++)if((p=o[u])[0]==n){m=h?a==p[1]:0===u;var f=t.createElement("option");f.setAttribute("value",p[1]),f.innerText=p[2],m&&f.setAttribute("selected","selected"),s.appendChild(f)}i?i.appendChild(s):t.body.appendChild(s)},window.changeDynaList=function(e,o,n,r,a){console.warn("window.changeDynaList() is deprecated without a replacement!");for(var i,s,l,d,c=t.adminForm[e],u=n==r;c.firstChild;)c.removeChild(c.firstChild);i=0;for(s in o)o.hasOwnProperty(s)&&(l=o[s])[0]==n&&((d=new Option).value=l[1],d.text=l[2],(u&&a==d.value||!u&&0===i)&&(d.selected=!0),c.options[i++]=d);c.length=i},window.radioGetCheckedValue=function(e){if(console.warn("window.radioGetCheckedValue() is deprecated without a replacement!"),!e)return"";var t,o=e.length;if(void 0===o)return e.checked?e.value:"";for(t=0;t<o;t++)if(e[t].checked)return e[t].value;return""},window.getSelectedValue=function(e,o){console.warn("window.getSelectedValue() is deprecated without a replacement!");var n=t[e][o],r=n.selectedIndex;return null!==r&&r>-1?n.options[r].value:null},window.listItemTask=function(t,o){return console.warn("window.listItemTask() is deprecated use Joomla.listItemTask() instead"),e.listItemTask(t,o)},e.listItemTask=function(e,o){var n,r=t.adminForm,a=0,i=r[e];if(!i)return!1;for(;n=r["cb"+a];)n.checked=!1,a++;return i.checked=!0,r.boxchecked.value=1,window.submitform(o),!1},window.submitbutton=function(t){console.warn("window.submitbutton() is deprecated use Joomla.submitbutton() instead"),e.submitbutton(t)},window.submitform=function(t){console.warn("window.submitform() is deprecated use Joomla.submitform() instead"),e.submitform(t)},window.saveorder=function(e,t){console.warn("window.saveorder() is deprecated without a replacement!"),window.checkAll_button(e,t)},window.checkAll_button=function(o,n){var r,a;for(console.warn("window.checkAll_button() is deprecated without a replacement!"),n=n||"saveorder",r=0;r<=o;r++){if(!(a=t.adminForm["cb"+r]))return void alert("You cannot change the order of items, as an item in the list is `Checked Out`");a.checked=!0}e.submitform(n)},e.loadingLayer=function(o,n){if(o=o||"show",n=n||t.body,"load"===o){var r=(e.getOptions("system.paths")||{}).root||"",a=t.createElement("div");a.id="loading-logo",a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.width="100%",a.style.height="100%",a.style.opacity="0.8",a.style.filter="alpha(opacity=80)",a.style.overflow="hidden",a.style["z-index"]="10000",a.style.display="none",a.style["background-color"]="#fff",a.style["background-image"]='url("'+r+'/media/jui/images/ajax-loader.gif")',a.style["background-position"]="center",a.style["background-repeat"]="no-repeat",a.style["background-attachment"]="fixed",n.appendChild(a)}else t.getElementById("loading-logo")||e.loadingLayer("load",n),t.getElementById("loading-logo").style.display="show"==o?"block":"none";return t.getElementById("loading-logo")},e.extend=function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e},e.request=function(t){(t=e.extend({url:"",method:"GET",data:null,perform:!0},t)).method=t.data?"POST":t.method.toUpperCase();try{var o=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0");if(o.open(t.method,t.url,!0),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.setRequestHeader("X-Ajax-Engine","Joomla!"),"POST"===t.method){var n=e.getOptions("csrf.token","");n&&o.setRequestHeader("X-CSRF-Token",n),t.headers&&t.headers["Content-Type"]||o.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}if(t.headers)for(var r in t.headers)t.headers.hasOwnProperty(r)&&o.setRequestHeader(r,t.headers[r]);if(o.onreadystatechange=function(){4===o.readyState&&(200===o.status?t.onSuccess&&t.onSuccess.call(window,o.responseText,o):t.onError&&t.onError.call(window,o))},t.perform){if(t.onBefore&&!1===t.onBefore.call(window,o))return o;o.send(t.data)}}catch(e){return window.console&&console.log(e),!1}return o}}(Joomla,document);
13
14
15/*===============================
16/plugins/system/t3/base-bs3/bootstrap/js/bootstrap.js
17================================================================================*/;
18/*!
19 * Bootstrap v3.4.1 (https://getbootstrap.com/)
20 * Copyright 2011-2019 Twitter, Inc.
21 * Licensed under the MIT license
22 */
23if(typeof jQuery==='undefined'){throw new Error('Bootstrap\'s JavaScript requires jQuery')}
24+function($){'use strict';var version=$.fn.jquery.split(' ')[0].split('.')
25if((version[0]<2&&version[1]<9)||(version[0]==1&&version[1]==9&&version[2]<1)||(version[0]>3)){throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4')}}(jQuery);+function($){'use strict';function transitionEnd(){var el=document.createElement('bootstrap')
26var transEndEventNames={WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd otransitionend',transition:'transitionend'}
vendor: 33,300 bytes, lines 27-576
27for(var name in transEndEventNames){if(el.style[name]!==undefined){return{end:transEndEventNames[name]}}}
28return false}
29$.fn.emulateTransitionEnd=function(duration){var called=false
30var $el=this
31$(this).one('bsTransitionEnd',function(){called=true})
32var callback=function(){if(!called)$($el).trigger($.support.transition.end)}
33setTimeout(callback,duration)
34return this}
35$(function(){$.support.transition=transitionEnd()
36if(!$.support.transition)return
37$.event.special.bsTransitionEnd={bindType:$.support.transition.end,delegateType:$.support.transition.end,handle:function(e){if($(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}})}(jQuery);+function($){'use strict';var dismiss='[data-dismiss="alert"]'
38var Alert=function(el){$(el).on('click',dismiss,this.close)}
39Alert.VERSION='3.4.1'
40Alert.TRANSITION_DURATION=150
41Alert.prototype.close=function(e){var $this=$(this)
42var selector=$this.attr('data-target')
43if(!selector){selector=$this.attr('href')
44selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'')}
45selector=selector==='#'?[]:selector
46var $parent=$(document).find(selector)
47if(e)e.preventDefault()
48if(!$parent.length){$parent=$this.closest('.alert')}
49$parent.trigger(e=$.Event('close.bs.alert'))
50if(e.isDefaultPrevented())return
51$parent.removeClass('in')
52function removeElement(){$parent.detach().trigger('closed.bs.alert').remove()}
53$.support.transition&&$parent.hasClass('fade')?$parent.one('bsTransitionEnd',removeElement).emulateTransitionEnd(Alert.TRANSITION_DURATION):removeElement()}
54function Plugin(option){return this.each(function(){var $this=$(this)
55var data=$this.data('bs.alert')
56if(!data)$this.data('bs.alert',(data=new Alert(this)))
57if(typeof option=='string')data[option].call($this)})}
58var old=$.fn.alert
59$.fn.alert=Plugin
60$.fn.alert.Constructor=Alert
61$.fn.alert.noConflict=function(){$.fn.alert=old
62return this}
63$(document).on('click.bs.alert.data-api',dismiss,Alert.prototype.close)}(jQuery);+function($){'use strict';var Button=function(element,options){this.$element=$(element)
64this.options=$.extend({},Button.DEFAULTS,options)
65this.isLoading=false}
66Button.VERSION='3.4.1'
67Button.DEFAULTS={loadingText:'loading...'}
68Button.prototype.setState=function(state){var d='disabled'
69var $el=this.$element
70var val=$el.is('input')?'val':'html'
71var data=$el.data()
72state+='Text'
73if(data.resetText==null)$el.data('resetText',$el[val]())
74setTimeout($.proxy(function(){$el[val](data[state]==null?this.options[state]:data[state])
75if(state=='loadingText'){this.isLoading=true
76$el.addClass(d).attr(d,d).prop(d,true)}else if(this.isLoading){this.isLoading=false
77$el.removeClass(d).removeAttr(d).prop(d,false)}},this),0)}
78Button.prototype.toggle=function(){var changed=true
79var $parent=this.$element.closest('[data-toggle="buttons"]')
80if($parent.length){var $input=this.$element.find('input')
81if($input.prop('type')=='radio'){if($input.prop('checked'))changed=false
82$parent.find('.active').removeClass('active')
83this.$element.addClass('active')}else if($input.prop('type')=='checkbox'){if(($input.prop('checked'))!==this.$element.hasClass('active'))changed=false
84this.$element.toggleClass('active')}
85$input.prop('checked',this.$element.hasClass('active'))
86if(changed)$input.trigger('change')}else{this.$element.attr('aria-pressed',!this.$element.hasClass('active'))
87this.$element.toggleClass('active')}}
88function Plugin(option){return this.each(function(){var $this=$(this)
89var data=$this.data('bs.button')
90var options=typeof option=='object'&&option
91if(!data)$this.data('bs.button',(data=new Button(this,options)))
92if(option=='toggle')data.toggle()
93else if(option)data.setState(option)})}
94var old=$.fn.button
95$.fn.button=Plugin
96$.fn.button.Constructor=Button
97$.fn.button.noConflict=function(){$.fn.button=old
98return this}
99$(document).on('click.bs.button.data-api','[data-toggle^="button"]',function(e){var $btn=$(e.target).closest('.btn')
100Plugin.call($btn,'toggle')
101if(!($(e.target).is('input[type="radio"], input[type="checkbox"]'))){e.preventDefault()
102if($btn.is('input,button'))$btn.trigger('focus')
103else $btn.find('input:visible,button:visible').first().trigger('focus')}}).on('focus.bs.button.data-api blur.bs.button.data-api','[data-toggle^="button"]',function(e){$(e.target).closest('.btn').toggleClass('focus',/^focus(in)?$/.test(e.type))})}(jQuery);+function($){'use strict';var Carousel=function(element,options){this.$element=$(element)
104this.$indicators=this.$element.find('.carousel-indicators')
105this.options=options
106this.paused=null
107this.sliding=null
108this.interval=null
109this.$active=null
110this.$items=null
111this.options.keyboard&&this.$element.on('keydown.bs.carousel',$.proxy(this.keydown,this))
112this.options.pause=='hover'&&!('ontouchstart'in document.documentElement)&&this.$element.on('mouseenter.bs.carousel',$.proxy(this.pause,this)).on('mouseleave.bs.carousel',$.proxy(this.cycle,this))}
113Carousel.VERSION='3.4.1'
114Carousel.TRANSITION_DURATION=600
115Carousel.DEFAULTS={interval:5000,pause:'hover',wrap:true,keyboard:true}
116Carousel.prototype.keydown=function(e){if(/input|textarea/i.test(e.target.tagName))return
117switch(e.which){case 37:this.prev();break
118case 39:this.next();break
119default:return}
120e.preventDefault()}
121Carousel.prototype.cycle=function(e){e||(this.paused=false)
122this.interval&&clearInterval(this.interval)
123this.options.interval&&!this.paused&&(this.interval=setInterval($.proxy(this.next,this),this.options.interval))
124return this}
125Carousel.prototype.getItemIndex=function(item){this.$items=item.parent().children('.item')
126return this.$items.index(item||this.$active)}
127Carousel.prototype.getItemForDirection=function(direction,active){var activeIndex=this.getItemIndex(active)
128var willWrap=(direction=='prev'&&activeIndex===0)||(direction=='next'&&activeIndex==(this.$items.length-1))
129if(willWrap&&!this.options.wrap)return active
130var delta=direction=='prev'?-1:1
131var itemIndex=(activeIndex+delta)%this.$items.length
132return this.$items.eq(itemIndex)}
133Carousel.prototype.to=function(pos){var that=this
134var activeIndex=this.getItemIndex(this.$active=this.$element.find('.item.active'))
135if(pos>(this.$items.length-1)||pos<0)return
136if(this.sliding)return this.$element.one('slid.bs.carousel',function(){that.to(pos)})
137if(activeIndex==pos)return this.pause().cycle()
138return this.slide(pos>activeIndex?'next':'prev',this.$items.eq(pos))}
139Carousel.prototype.pause=function(e){e||(this.paused=true)
140if(this.$element.find('.next, .prev').length&&$.support.transition){this.$element.trigger($.support.transition.end)
141this.cycle(true)}
142this.interval=clearInterval(this.interval)
143return this}
144Carousel.prototype.next=function(){if(this.sliding)return
145return this.slide('next')}
146Carousel.prototype.prev=function(){if(this.sliding)return
147return this.slide('prev')}
148Carousel.prototype.slide=function(type,next){var $active=this.$element.find('.item.active')
149var $next=next||this.getItemForDirection(type,$active)
150var isCycling=this.interval
151var direction=type=='next'?'left':'right'
152var that=this
153if($next.hasClass('active'))return(this.sliding=false)
154var relatedTarget=$next[0]
155var slideEvent=$.Event('slide.bs.carousel',{relatedTarget:relatedTarget,direction:direction})
156this.$element.trigger(slideEvent)
157if(slideEvent.isDefaultPrevented())return
158this.sliding=true
159isCycling&&this.pause()
160if(this.$indicators.length){this.$indicators.find('.active').removeClass('active')
161var $nextIndicator=$(this.$indicators.children()[this.getItemIndex($next)])
162$nextIndicator&&$nextIndicator.addClass('active')}
163var slidEvent=$.Event('slid.bs.carousel',{relatedTarget:relatedTarget,direction:direction})
164if($.support.transition&&this.$element.hasClass('slide')){$next.addClass(type)
165if(typeof $next==='object'&&$next.length){$next[0].offsetWidth}
166$active.addClass(direction)
167$next.addClass(direction)
168$active.one('bsTransitionEnd',function(){$next.removeClass([type,direction].join(' ')).addClass('active')
169$active.removeClass(['active',direction].join(' '))
170that.sliding=false
171setTimeout(function(){that.$element.trigger(slidEvent)},0)}).emulateTransitionEnd(Carousel.TRANSITION_DURATION)}else{$active.removeClass('active')
172$next.addClass('active')
173this.sliding=false
174this.$element.trigger(slidEvent)}
175isCycling&&this.cycle()
176return this}
177function Plugin(option){return this.each(function(){var $this=$(this)
178var data=$this.data('bs.carousel')
179var options=$.extend({},Carousel.DEFAULTS,$this.data(),typeof option=='object'&&option)
180var action=typeof option=='string'?option:options.slide
181if(!data)$this.data('bs.carousel',(data=new Carousel(this,options)))
182if(typeof option=='number')data.to(option)
183else if(action)data[action]()
184else if(options.interval)data.pause().cycle()})}
185var old=$.fn.carousel
186$.fn.carousel=Plugin
187$.fn.carousel.Constructor=Carousel
188$.fn.carousel.noConflict=function(){$.fn.carousel=old
189return this}
190var clickHandler=function(e){var $this=$(this)
191var href=$this.attr('href')
192if(href){href=href.replace(/.*(?=#[^\s]+$)/,'')}
193var target=$this.attr('data-target')||href
194var $target=$(document).find(target)
195if(!$target.hasClass('carousel'))return
196var options=$.extend({},$target.data(),$this.data())
197var slideIndex=$this.attr('data-slide-to')
198if(slideIndex)options.interval=false
199Plugin.call($target,options)
200if(slideIndex){$target.data('bs.carousel').to(slideIndex)}
201e.preventDefault()}
202$(document).on('click.bs.carousel.data-api','[data-slide]',clickHandler).on('click.bs.carousel.data-api','[data-slide-to]',clickHandler)
203$(window).on('load',function(){$('[data-ride="carousel"]').each(function(){var $carousel=$(this)
204Plugin.call($carousel,$carousel.data())})})}(jQuery);+function($){'use strict';var Collapse=function(element,options){this.$element=$(element)
205this.options=$.extend({},Collapse.DEFAULTS,options)
206this.$trigger=$('[data-toggle="collapse"][href="#'+element.id+'"],'+'[data-toggle="collapse"][data-target="#'+element.id+'"]')
207this.transitioning=null
208if(this.options.parent){this.$parent=this.getParent()}else{this.addAriaAndCollapsedClass(this.$element,this.$trigger)}
209if(this.options.toggle)this.toggle()}
210Collapse.VERSION='3.4.1'
211Collapse.TRANSITION_DURATION=350
212Collapse.DEFAULTS={toggle:true}
213Collapse.prototype.dimension=function(){var hasWidth=this.$element.hasClass('width')
214return hasWidth?'width':'height'}
215Collapse.prototype.show=function(){if(this.transitioning||this.$element.hasClass('in'))return
216var activesData
217var actives=this.$parent&&this.$parent.children('.panel').children('.in, .collapsing')
218if(actives&&actives.length){activesData=actives.data('bs.collapse')
219if(activesData&&activesData.transitioning)return}
220var startEvent=$.Event('show.bs.collapse')
221this.$element.trigger(startEvent)
222if(startEvent.isDefaultPrevented())return
223if(actives&&actives.length){Plugin.call(actives,'hide')
224activesData||actives.data('bs.collapse',null)}
225var dimension=this.dimension()
226this.$element.removeClass('collapse').addClass('collapsing')[dimension](0).attr('aria-expanded',true)
227this.$trigger.removeClass('collapsed').attr('aria-expanded',true)
228this.transitioning=1
229var complete=function(){this.$element.removeClass('collapsing').addClass('collapse in')[dimension]('')
230this.transitioning=0
231this.$element.trigger('shown.bs.collapse')}
232if(!$.support.transition)return complete.call(this)
233var scrollSize=$.camelCase(['scroll',dimension].join('-'))
234this.$element.one('bsTransitionEnd',$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize])}
235Collapse.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass('in'))return
236var startEvent=$.Event('hide.bs.collapse')
237this.$element.trigger(startEvent)
238if(startEvent.isDefaultPrevented())return
239var dimension=this.dimension()
240this.$element[dimension](this.$element[dimension]())[0].offsetHeight
241this.$element.addClass('collapsing').removeClass('collapse in').attr('aria-expanded',false)
242this.$trigger.addClass('collapsed').attr('aria-expanded',false)
243this.transitioning=1
244var complete=function(){this.transitioning=0
245this.$element.removeClass('collapsing').addClass('collapse').trigger('hidden.bs.collapse')}
246if(!$.support.transition)return complete.call(this)
247this.$element
248[dimension](0).one('bsTransitionEnd',$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION)}
249Collapse.prototype.toggle=function(){this[this.$element.hasClass('in')?'hide':'show']()}
250Collapse.prototype.getParent=function(){return $(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each($.proxy(function(i,element){var $element=$(element)
251this.addAriaAndCollapsedClass(getTargetFromTrigger($element),$element)},this)).end()}
252Collapse.prototype.addAriaAndCollapsedClass=function($element,$trigger){var isOpen=$element.hasClass('in')
253$element.attr('aria-expanded',isOpen)
254$trigger.toggleClass('collapsed',!isOpen).attr('aria-expanded',isOpen)}
255function getTargetFromTrigger($trigger){var href
256var target=$trigger.attr('data-target')||(href=$trigger.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,'')
257return $(document).find(target)}
258function Plugin(option){return this.each(function(){var $this=$(this)
259var data=$this.data('bs.collapse')
260var options=$.extend({},Collapse.DEFAULTS,$this.data(),typeof option=='object'&&option)
261if(!data&&options.toggle&&/show|hide/.test(option))options.toggle=false
262if(!data)$this.data('bs.collapse',(data=new Collapse(this,options)))
263if(typeof option=='string')data[option]()})}
264var old=$.fn.collapse
265$.fn.collapse=Plugin
266$.fn.collapse.Constructor=Collapse
267$.fn.collapse.noConflict=function(){$.fn.collapse=old
268return this}
269$(document).on('click.bs.collapse.data-api','[data-toggle="collapse"]',function(e){var $this=$(this)
270if(!$this.attr('data-target'))e.preventDefault()
271var $target=getTargetFromTrigger($this)
272var data=$target.data('bs.collapse')
273var option=data?'toggle':$this.data()
274Plugin.call($target,option)})}(jQuery);+function($){'use strict';var backdrop='.dropdown-backdrop'
275var toggle='[data-toggle="dropdown"]'
276var Dropdown=function(element){$(element).on('click.bs.dropdown',this.toggle)}
277Dropdown.VERSION='3.4.1'
278function getParent($this){var selector=$this.attr('data-target')
279if(!selector){selector=$this.attr('href')
280selector=selector&&/#[A-Za-z]/.test(selector)&&selector.replace(/.*(?=#[^\s]*$)/,'')}
281var $parent=selector!=='#'?$(document).find(selector):null
282return $parent&&$parent.length?$parent:$this.parent()}
283function clearMenus(e){if(e&&e.which===3)return
284$(backdrop).remove()
285$(toggle).each(function(){var $this=$(this)
286var $parent=getParent($this)
287var relatedTarget={relatedTarget:this}
288if(!$parent.hasClass('open'))return
289if(e&&e.type=='click'&&/input|textarea/i.test(e.target.tagName)&&$.contains($parent[0],e.target))return
290$parent.trigger(e=$.Event('hide.bs.dropdown',relatedTarget))
291if(e.isDefaultPrevented())return
292$this.attr('aria-expanded','false')
293$parent.removeClass('open').trigger($.Event('hidden.bs.dropdown',relatedTarget))})}
294Dropdown.prototype.toggle=function(e){var $this=$(this)
295if($this.is('.disabled, :disabled'))return
296var $parent=getParent($this)
297var isActive=$parent.hasClass('open')
298clearMenus()
299if(!isActive){if('ontouchstart'in document.documentElement&&!$parent.closest('.navbar-nav').length){$(document.createElement('div')).addClass('dropdown-backdrop').insertAfter($(this)).on('click',clearMenus)}
300var relatedTarget={relatedTarget:this}
301$parent.trigger(e=$.Event('show.bs.dropdown',relatedTarget))
302if(e.isDefaultPrevented())return
303$this.trigger('focus').attr('aria-expanded','true')
304$parent.toggleClass('open').trigger($.Event('shown.bs.dropdown',relatedTarget))}
305return false}
306Dropdown.prototype.keydown=function(e){if(!/(38|40|27|32)/.test(e.which)||/input|textarea/i.test(e.target.tagName))return
307var $this=$(this)
308e.preventDefault()
309e.stopPropagation()
310if($this.is('.disabled, :disabled'))return
311var $parent=getParent($this)
312var isActive=$parent.hasClass('open')
313if(!isActive&&e.which!=27||isActive&&e.which==27){if(e.which==27)$parent.find(toggle).trigger('focus')
314return $this.trigger('click')}
315var desc=' li:not(.disabled):visible a'
316var $items=$parent.find('.dropdown-menu'+desc)
317if(!$items.length)return
318var index=$items.index(e.target)
319if(e.which==38&&index>0)index--
320if(e.which==40&&index<$items.length-1)index++
321if(!~index)index=0
322$items.eq(index).trigger('focus')}
323function Plugin(option){return this.each(function(){var $this=$(this)
324var data=$this.data('bs.dropdown')
325if(!data)$this.data('bs.dropdown',(data=new Dropdown(this)))
326if(typeof option=='string')data[option].call($this)})}
327var old=$.fn.dropdown
328$.fn.dropdown=Plugin
329$.fn.dropdown.Constructor=Dropdown
330$.fn.dropdown.noConflict=function(){$.fn.dropdown=old
331return this}
332$(document).on('click.bs.dropdown.data-api',clearMenus).on('click.bs.dropdown.data-api','.dropdown form',function(e){e.stopPropagation()}).on('click.bs.dropdown.data-api',toggle,Dropdown.prototype.toggle).on('keydown.bs.dropdown.data-api',toggle,Dropdown.prototype.keydown).on('keydown.bs.dropdown.data-api','.dropdown-menu',Dropdown.prototype.keydown)}(jQuery);+function($){'use strict';var Modal=function(element,options){this.options=options
333this.$body=$(document.body)
334this.$element=$(element)
335this.$dialog=this.$element.find('.modal-dialog')
336this.$backdrop=null
337this.isShown=null
338this.originalBodyPad=null
339this.scrollbarWidth=0
340this.ignoreBackdropClick=false
341this.fixedContent='.navbar-fixed-top, .navbar-fixed-bottom'
342if(this.options.remote){this.$element.find('.modal-content').load(this.options.remote,$.proxy(function(){this.$element.trigger('loaded.bs.modal')},this))}}
343Modal.VERSION='3.4.1'
344Modal.TRANSITION_DURATION=300
345Modal.BACKDROP_TRANSITION_DURATION=150
346Modal.DEFAULTS={backdrop:true,keyboard:true,show:true}
347Modal.prototype.toggle=function(_relatedTarget){return this.isShown?this.hide():this.show(_relatedTarget)}
348Modal.prototype.show=function(_relatedTarget){var that=this
349var e=$.Event('show.bs.modal',{relatedTarget:_relatedTarget})
350this.$element.trigger(e)
351if(this.isShown||e.isDefaultPrevented())return
352this.isShown=true
353this.checkScrollbar()
354this.setScrollbar()
355this.$body.addClass('modal-open')
356this.escape()
357this.resize()
358this.$element.on('click.dismiss.bs.modal','[data-dismiss="modal"]',$.proxy(this.hide,this))
359this.$dialog.on('mousedown.dismiss.bs.modal',function(){that.$element.one('mouseup.dismiss.bs.modal',function(e){if($(e.target).is(that.$element))that.ignoreBackdropClick=true})})
360this.backdrop(function(){var transition=$.support.transition&&that.$element.hasClass('fade')
361if(!that.$element.parent().length){that.$element.appendTo(that.$body)}
362that.$element.show().scrollTop(0)
363that.adjustDialog()
364if(transition){that.$element[0].offsetWidth}
365that.$element.addClass('in')
366that.enforceFocus()
367var e=$.Event('shown.bs.modal',{relatedTarget:_relatedTarget})
368transition?that.$dialog.one('bsTransitionEnd',function(){that.$element.trigger('focus').trigger(e)}).emulateTransitionEnd(Modal.TRANSITION_DURATION):that.$element.trigger('focus').trigger(e)})}
369Modal.prototype.hide=function(e){if(e)e.preventDefault()
370e=$.Event('hide.bs.modal')
371this.$element.trigger(e)
372if(!this.isShown||e.isDefaultPrevented())return
373this.isShown=false
374this.escape()
375this.resize()
376$(document).off('focusin.bs.modal')
377this.$element.removeClass('in').off('click.dismiss.bs.modal').off('mouseup.dismiss.bs.modal')
378this.$dialog.off('mousedown.dismiss.bs.modal')
379$.support.transition&&this.$element.hasClass('fade')?this.$element.one('bsTransitionEnd',$.proxy(this.hideModal,this)).emulateTransitionEnd(Modal.TRANSITION_DURATION):this.hideModal()}
380Modal.prototype.enforceFocus=function(){$(document).off('focusin.bs.modal').on('focusin.bs.modal',$.proxy(function(e){if(document!==e.target&&this.$element[0]!==e.target&&!this.$element.has(e.target).length){this.$element.trigger('focus')}},this))}
381Modal.prototype.escape=function(){if(this.isShown&&this.options.keyboard){this.$element.on('keydown.dismiss.bs.modal',$.proxy(function(e){e.which==27&&this.hide()},this))}else if(!this.isShown){this.$element.off('keydown.dismiss.bs.modal')}}
382Modal.prototype.resize=function(){if(this.isShown){$(window).on('resize.bs.modal',$.proxy(this.handleUpdate,this))}else{$(window).off('resize.bs.modal')}}
383Modal.prototype.hideModal=function(){var that=this
384this.$element.hide()
385this.backdrop(function(){that.$body.removeClass('modal-open')
386that.resetAdjustments()
387that.resetScrollbar()
388that.$element.trigger('hidden.bs.modal')})}
389Modal.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove()
390this.$backdrop=null}
391Modal.prototype.backdrop=function(callback){var that=this
392var animate=this.$element.hasClass('fade')?'fade':''
393if(this.isShown&&this.options.backdrop){var doAnimate=$.support.transition&&animate
394this.$backdrop=$(document.createElement('div')).addClass('modal-backdrop '+animate).appendTo(this.$body)
395this.$element.on('click.dismiss.bs.modal',$.proxy(function(e){if(this.ignoreBackdropClick){this.ignoreBackdropClick=false
396return}
397if(e.target!==e.currentTarget)return
398this.options.backdrop=='static'?this.$element[0].focus():this.hide()},this))
399if(doAnimate)this.$backdrop[0].offsetWidth
400this.$backdrop.addClass('in')
401if(!callback)return
402doAnimate?this.$backdrop.one('bsTransitionEnd',callback).emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION):callback()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass('in')
403var callbackRemove=function(){that.removeBackdrop()
404callback&&callback()}
405$.support.transition&&this.$element.hasClass('fade')?this.$backdrop.one('bsTransitionEnd',callbackRemove).emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION):callbackRemove()}else if(callback){callback()}}
406Modal.prototype.handleUpdate=function(){this.adjustDialog()}
407Modal.prototype.adjustDialog=function(){var modalIsOverflowing=this.$element[0].scrollHeight>document.documentElement.clientHeight
408this.$element.css({paddingLeft:!this.bodyIsOverflowing&&modalIsOverflowing?this.scrollbarWidth:'',paddingRight:this.bodyIsOverflowing&&!modalIsOverflowing?this.scrollbarWidth:''})}
409Modal.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:'',paddingRight:''})}
410Modal.prototype.checkScrollbar=function(){var fullWindowWidth=window.innerWidth
411if(!fullWindowWidth){var documentElementRect=document.documentElement.getBoundingClientRect()
412fullWindowWidth=documentElementRect.right-Math.abs(documentElementRect.left)}
413this.bodyIsOverflowing=document.body.clientWidth<fullWindowWidth
414this.scrollbarWidth=this.measureScrollbar()}
415Modal.prototype.setScrollbar=function(){var bodyPad=parseInt((this.$body.css('padding-right')||0),10)
416this.originalBodyPad=document.body.style.paddingRight||''
417var scrollbarWidth=this.scrollbarWidth
418if(this.bodyIsOverflowing){this.$body.css('padding-right',bodyPad+scrollbarWidth)
419$(this.fixedContent).each(function(index,element){var actualPadding=element.style.paddingRight
420var calculatedPadding=$(element).css('padding-right')
421$(element).data('padding-right',actualPadding).css('padding-right',parseFloat(calculatedPadding)+scrollbarWidth+'px')})}}
422Modal.prototype.resetScrollbar=function(){this.$body.css('padding-right',this.originalBodyPad)
423$(this.fixedContent).each(function(index,element){var padding=$(element).data('padding-right')
424$(element).removeData('padding-right')
425element.style.paddingRight=padding?padding:''})}
426Modal.prototype.measureScrollbar=function(){var scrollDiv=document.createElement('div')
427scrollDiv.className='modal-scrollbar-measure'
428this.$body.append(scrollDiv)
429var scrollbarWidth=scrollDiv.offsetWidth-scrollDiv.clientWidth
430this.$body[0].removeChild(scrollDiv)
431return scrollbarWidth}
432function Plugin(option,_relatedTarget){return this.each(function(){var $this=$(this)
433var data=$this.data('bs.modal')
434var options=$.extend({},Modal.DEFAULTS,$this.data(),typeof option=='object'&&option)
435if(!data)$this.data('bs.modal',(data=new Modal(this,options)))
436if(typeof option=='string')data[option](_relatedTarget)
437else if(options.show)data.show(_relatedTarget)})}
438var old=$.fn.modal
439$.fn.modal=Plugin
440$.fn.modal.Constructor=Modal
441$.fn.modal.noConflict=function(){$.fn.modal=old
442return this}
443$(document).on('click.bs.modal.data-api','[data-toggle="modal"]',function(e){var $this=$(this)
444var href=$this.attr('href')
445var target=$this.attr('data-target')||(href&&href.replace(/.*(?=#[^\s]+$)/,''))
446var $target=$(document).find(target)
447var option=$target.data('bs.modal')?'toggle':$.extend({remote:!/#/.test(href)&&href},$target.data(),$this.data())
448if($this.is('a'))e.preventDefault()
449$target.one('show.bs.modal',function(showEvent){if(showEvent.isDefaultPrevented())return
450$target.one('hidden.bs.modal',function(){$this.is(':visible')&&$this.trigger('focus')})})
451Plugin.call($target,option,this)})}(jQuery);+function($){'use strict';var DISALLOWED_ATTRIBUTES=['sanitize','whiteList','sanitizeFn']
452var uriAttrs=['background','cite','href','itemtype','longdesc','poster','src','xlink:href']
453var ARIA_ATTRIBUTE_PATTERN=/^aria-[\w-]*$/i
454var DefaultWhitelist={'*':['class','dir','id','lang','role',ARIA_ATTRIBUTE_PATTERN],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:[]}
455var SAFE_URL_PATTERN=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi
456var DATA_URL_PATTERN=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i
457function allowedAttribute(attr,allowedAttributeList){var attrName=attr.nodeName.toLowerCase()
458if($.inArray(attrName,allowedAttributeList)!==-1){if($.inArray(attrName,uriAttrs)!==-1){return Boolean(attr.nodeValue.match(SAFE_URL_PATTERN)||attr.nodeValue.match(DATA_URL_PATTERN))}
459return true}
460var regExp=$(allowedAttributeList).filter(function(index,value){return value instanceof RegExp})
461for(var i=0,l=regExp.length;i<l;i++){if(attrName.match(regExp[i])){return true}}
462return false}
463function sanitizeHtml(unsafeHtml,whiteList,sanitizeFn){if(unsafeHtml.length===0){return unsafeHtml}
464if(sanitizeFn&&typeof sanitizeFn==='function'){return sanitizeFn(unsafeHtml)}
465if(!document.implementation||!document.implementation.createHTMLDocument){return unsafeHtml}
466var createdDocument=document.implementation.createHTMLDocument('sanitization')
467createdDocument.body.innerHTML=unsafeHtml
468var whitelistKeys=$.map(whiteList,function(el,i){return i})
469var elements=$(createdDocument.body).find('*')
470for(var i=0,len=elements.length;i<len;i++){var el=elements[i]
471var elName=el.nodeName.toLowerCase()
472if($.inArray(elName,whitelistKeys)===-1){el.parentNode.removeChild(el)
473continue}
474var attributeList=$.map(el.attributes,function(el){return el})
475var whitelistedAttributes=[].concat(whiteList['*']||[],whiteList[elName]||[])
476for(var j=0,len2=attributeList.length;j<len2;j++){if(!allowedAttribute(attributeList[j],whitelistedAttributes)){el.removeAttribute(attributeList[j].nodeName)}}}
477return createdDocument.body.innerHTML}
478var Tooltip=function(element,options){this.type=null
479this.options=null
480this.enabled=null
481this.timeout=null
482this.hoverState=null
483this.$element=null
484this.inState=null
485this.init('tooltip',element,options)}
486Tooltip.VERSION='3.4.1'
487Tooltip.TRANSITION_DURATION=150
488Tooltip.DEFAULTS={animation:true,placement:'top',selector:false,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:'hover focus',title:'',delay:0,html:false,container:false,viewport:{selector:'body',padding:0},sanitize:true,sanitizeFn:null,whiteList:DefaultWhitelist}
489Tooltip.prototype.init=function(type,element,options){this.enabled=true
490this.type=type
491this.$element=$(element)
492this.options=this.getOptions(options)
493this.$viewport=this.options.viewport&&$(document).find($.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):(this.options.viewport.selector||this.options.viewport))
494this.inState={click:false,hover:false,focus:false}
495if(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!')}
496var triggers=this.options.trigger.split(' ')
497for(var i=triggers.length;i--;){var trigger=triggers[i]
498if(trigger=='click'){this.$element.on('click.'+this.type,this.options.selector,$.proxy(this.toggle,this))}else if(trigger!='manual'){var eventIn=trigger=='hover'?'mouseenter':'focusin'
499var eventOut=trigger=='hover'?'mouseleave':'focusout'
500this.$element.on(eventIn+'.'+this.type,this.options.selector,$.proxy(this.enter,this))
501this.$element.on(eventOut+'.'+this.type,this.options.selector,$.proxy(this.leave,this))}}
502this.options.selector?(this._options=$.extend({},this.options,{trigger:'manual',selector:''})):this.fixTitle()}
503Tooltip.prototype.getDefaults=function(){return Tooltip.DEFAULTS}
504Tooltip.prototype.getOptions=function(options){var dataAttributes=this.$element.data()
505for(var dataAttr in dataAttributes){if(dataAttributes.hasOwnProperty(dataAttr)&&$.inArray(dataAttr,DISALLOWED_ATTRIBUTES)!==-1){delete dataAttributes[dataAttr]}}
506options=$.extend({},this.getDefaults(),dataAttributes,options)
507if(options.delay&&typeof options.delay=='number'){options.delay={show:options.delay,hide:options.delay}}
508if(options.sanitize){options.template=sanitizeHtml(options.template,options.whiteList,options.sanitizeFn)}
509return options}
510Tooltip.prototype.getDelegateOptions=function(){var options={}
511var defaults=this.getDefaults()
512this._options&&$.each(this._options,function(key,value){if(defaults[key]!=value)options[key]=value})
513return options}
514Tooltip.prototype.enter=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type)
515if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions())
516$(obj.currentTarget).data('bs.'+this.type,self)}
517if(obj instanceof $.Event){self.inState[obj.type=='focusin'?'focus':'hover']=true}
518if(self.tip().hasClass('in')||self.hoverState=='in'){self.hoverState='in'
519return}
520clearTimeout(self.timeout)
521self.hoverState='in'
522if(!self.options.delay||!self.options.delay.show)return self.show()
523self.timeout=setTimeout(function(){if(self.hoverState=='in')self.show()},self.options.delay.show)}
524Tooltip.prototype.isInStateTrue=function(){for(var key in this.inState){if(this.inState[key])return true}
525return false}
526Tooltip.prototype.leave=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type)
527if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions())
528$(obj.currentTarget).data('bs.'+this.type,self)}
529if(obj instanceof $.Event){self.inState[obj.type=='focusout'?'focus':'hover']=false}
530if(self.isInStateTrue())return
531clearTimeout(self.timeout)
532self.hoverState='out'
533if(!self.options.delay||!self.options.delay.hide)return self.hide()
534self.timeout=setTimeout(function(){if(self.hoverState=='out')self.hide()},self.options.delay.hide)}
535Tooltip.prototype.show=function(){var e=$.Event('show.bs.'+this.type)
536if(this.hasContent()&&this.enabled){this.$element.trigger(e)
537var inDom=$.contains(this.$element[0].ownerDocument.documentElement,this.$element[0])
538if(e.isDefaultPrevented()||!inDom)return
539var that=this
540var $tip=this.tip()
541var tipId=this.getUID(this.type)
542this.setContent()
543$tip.attr('id',tipId)
544this.$element.attr('aria-describedby',tipId)
545if(this.options.animation)$tip.addClass('fade')
546var placement=typeof this.options.placement=='function'?this.options.placement.call(this,$tip[0],this.$element[0]):this.options.placement
547var autoToken=/\s?auto?\s?/i
548var autoPlace=autoToken.test(placement)
549if(autoPlace)placement=placement.replace(autoToken,'')||'top'
550$tip.detach().css({top:0,left:0,display:'block'}).addClass(placement).data('bs.'+this.type,this)
551this.options.container?$tip.appendTo($(document).find(this.options.container)):$tip.insertAfter(this.$element)
552this.$element.trigger('inserted.bs.'+this.type)
553var pos=this.getPosition()
554var actualWidth=$tip[0].offsetWidth
555var actualHeight=$tip[0].offsetHeight
556if(autoPlace){var orgPlacement=placement
557var viewportDim=this.getPosition(this.$viewport)
558placement=placement=='bottom'&&pos.bottom+actualHeight>viewportDim.bottom?'top':placement=='top'&&pos.top-actualHeight<viewportDim.top?'bottom':placement=='right'&&pos.right+actualWidth>viewportDim.width?'left':placement=='left'&&pos.left-actualWidth<viewportDim.left?'right':placement
559$tip.removeClass(orgPlacement).addClass(placement)}
560var calculatedOffset=this.getCalculatedOffset(placement,pos,actualWidth,actualHeight)
561this.applyPlacement(calculatedOffset,placement)
562var complete=function(){var prevHoverState=that.hoverState
563that.$element.trigger('shown.bs.'+that.type)
564that.hoverState=null
565if(prevHoverState=='out')that.leave(that)}
566$.support.transition&&this.$tip.hasClass('fade')?$tip.one('bsTransitionEnd',complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION):complete()}}
567Tooltip.prototype.applyPlacement=function(offset,placement){var $tip=this.tip()
568var width=$tip[0].offsetWidth
569var height=$tip[0].offsetHeight
570var marginTop=parseInt($tip.css('margin-top'),10)
571var marginLeft=parseInt($tip.css('margin-left'),10)
572if(isNaN(marginTop))marginTop=0
573if(isNaN(marginLeft))marginLeft=0
574offset.top+=marginTop
575offset.left+=marginLeft
576$.offset.setOffset($tip[0],$.extend({using:function(props){$tip.css({top:Math.round(props.top),left
vendor: 4,510 bytes, lines 576-639
576:Math.round(props.left)})}},offset),0)
577$tip.addClass('in')
578var actualWidth=$tip[0].offsetWidth
579var actualHeight=$tip[0].offsetHeight
580if(placement=='top'&&actualHeight!=height){offset.top=offset.top+height-actualHeight}
581var delta=this.getViewportAdjustedDelta(placement,offset,actualWidth,actualHeight)
582if(delta.left)offset.left+=delta.left
583else offset.top+=delta.top
584var isVertical=/top|bottom/.test(placement)
585var arrowDelta=isVertical?delta.left*2-width+actualWidth:delta.top*2-height+actualHeight
586var arrowOffsetPosition=isVertical?'offsetWidth':'offsetHeight'
587$tip.offset(offset)
588this.replaceArrow(arrowDelta,$tip[0][arrowOffsetPosition],isVertical)}
589Tooltip.prototype.replaceArrow=function(delta,dimension,isVertical){this.arrow().css(isVertical?'left':'top',50*(1-delta/dimension)+'%').css(isVertical?'top':'left','')}
590Tooltip.prototype.setContent=function(){var $tip=this.tip()
591var title=this.getTitle()
592if(this.options.html){if(this.options.sanitize){title=sanitizeHtml(title,this.options.whiteList,this.options.sanitizeFn)}
593$tip.find('.tooltip-inner').html(title)}else{$tip.find('.tooltip-inner').text(title)}
594$tip.removeClass('fade in top bottom left right')}
595Tooltip.prototype.hide=function(callback){var that=this
596var $tip=$(this.$tip)
597var e=$.Event('hide.bs.'+this.type)
598function complete(){if(that.hoverState!='in')$tip.detach()
599if(that.$element){that.$element.removeAttr('aria-describedby').trigger('hidden.bs.'+that.type)}
600callback&&callback()}
601this.$element.trigger(e)
602if(e.isDefaultPrevented())return
603$tip.removeClass('in')
604$.support.transition&&$tip.hasClass('fade')?$tip.one('bsTransitionEnd',complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION):complete()
605this.hoverState=null
606return this}
607Tooltip.prototype.fixTitle=function(){var $e=this.$element
608if($e.attr('title')||typeof $e.attr('data-original-title')!='string'){$e.attr('data-original-title',$e.attr('title')||'').attr('title','')}}
609Tooltip.prototype.hasContent=function(){return this.getTitle()}
610Tooltip.prototype.getPosition=function($element){$element=$element||this.$element
611var el=$element[0]
612var isBody=el.tagName=='BODY'
613var elRect=el.getBoundingClientRect()
614if(elRect.width==null){elRect=$.extend({},elRect,{width:elRect.right-elRect.left,height:elRect.bottom-elRect.top})}
615var isSvg=window.SVGElement&&el instanceof window.SVGElement
616var elOffset=isBody?{top:0,left:0}:(isSvg?null:$element.offset())
617var scroll={scroll:isBody?document.documentElement.scrollTop||document.body.scrollTop:$element.scrollTop()}
618var outerDims=isBody?{width:$(window).width(),height:$(window).height()}:null
619return $.extend({},elRect,scroll,outerDims,elOffset)}
620Tooltip.prototype.getCalculatedOffset=function(placement,pos,actualWidth,actualHeight){return placement=='bottom'?{top:pos.top+pos.height,left:pos.left+pos.width/2-actualWidth/2}:placement=='top'?{top:pos.top-actualHeight,left:pos.left+pos.width/2-actualWidth/2}:placement=='left'?{top:pos.top+pos.height/2-actualHeight/2,left:pos.left-actualWidth}:{top:pos.top+pos.height/2-actualHeight/2,left:pos.left+pos.width}}
621Tooltip.prototype.getViewportAdjustedDelta=function(placement,pos,actualWidth,actualHeight){var delta={top:0,left:0}
622if(!this.$viewport)return delta
623var viewportPadding=this.options.viewport&&this.options.viewport.padding||0
624var viewportDimensions=this.getPosition(this.$viewport)
625if(/right|left/.test(placement)){var topEdgeOffset=pos.top-viewportPadding-viewportDimensions.scroll
626var bottomEdgeOffset=pos.top+viewportPadding-viewportDimensions.scroll+actualHeight
627if(topEdgeOffset<viewportDimensions.top){delta.top=viewportDimensions.top-topEdgeOffset}else if(bottomEdgeOffset>viewportDimensions.top+viewportDimensions.height){delta.top=viewportDimensions.top+viewportDimensions.height-bottomEdgeOffset}}else{var leftEdgeOffset=pos.left-viewportPadding
628var rightEdgeOffset=pos.left+viewportPadding+actualWidth
629if(leftEdgeOffset<viewportDimensions.left){delta.left=viewportDimensions.left-leftEdgeOffset}else if(rightEdgeOffset>viewportDimensions.right){delta.left=viewportDimensions.left+viewportDimensions.width-rightEdgeOffset}}
630return delta}
631Tooltip.prototype.getTitle=function(){var title
632var $e=this.$element
633var o=this.options
634title=$e.attr('data-original-title')||(typeof o.title=='function'?o.title.call($e[0]):o.title)
635return title}
636Tooltip.prototype.getUID=function(prefix){do prefix+=~~(Math.random()*1000000)
637while(document.getElementById(prefix))
638return prefix}
639Tooltip.prototype.tip=function(){if(!this.$tip){this.$tip=$(this.options.template)
vendor: 12,665 bytes, lines 640-866
640if(this.$tip.length!=1){throw new Error(this.type+' `template` option must consist of exactly 1 top-level element!')}}
641return this.$tip}
642Tooltip.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find('.tooltip-arrow'))}
643Tooltip.prototype.enable=function(){this.enabled=true}
644Tooltip.prototype.disable=function(){this.enabled=false}
645Tooltip.prototype.toggleEnabled=function(){this.enabled=!this.enabled}
646Tooltip.prototype.toggle=function(e){var self=this
647if(e){self=$(e.currentTarget).data('bs.'+this.type)
648if(!self){self=new this.constructor(e.currentTarget,this.getDelegateOptions())
649$(e.currentTarget).data('bs.'+this.type,self)}}
650if(e){self.inState.click=!self.inState.click
651if(self.isInStateTrue())self.enter(self)
652else self.leave(self)}else{self.tip().hasClass('in')?self.leave(self):self.enter(self)}}
653Tooltip.prototype.destroy=function(){var that=this
654clearTimeout(this.timeout)
655this.hide(function(){that.$element.off('.'+that.type).removeData('bs.'+that.type)
656if(that.$tip){that.$tip.detach()}
657that.$tip=null
658that.$arrow=null
659that.$viewport=null
660that.$element=null})}
661Tooltip.prototype.sanitizeHtml=function(unsafeHtml){return sanitizeHtml(unsafeHtml,this.options.whiteList,this.options.sanitizeFn)}
662function Plugin(option){return this.each(function(){var $this=$(this)
663var data=$this.data('bs.tooltip')
664var options=typeof option=='object'&&option
665if(!data&&/destroy|hide/.test(option))return
666if(!data)$this.data('bs.tooltip',(data=new Tooltip(this,options)))
667if(typeof option=='string')data[option]()})}
668var old=$.fn.tooltip
669$.fn.tooltip=Plugin
670$.fn.tooltip.Constructor=Tooltip
671$.fn.tooltip.noConflict=function(){$.fn.tooltip=old
672return this}}(jQuery);+function($){'use strict';var Popover=function(element,options){this.init('popover',element,options)}
673if(!$.fn.tooltip)throw new Error('Popover requires tooltip.js')
674Popover.VERSION='3.4.1'
675Popover.DEFAULTS=$.extend({},$.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>'})
676Popover.prototype=$.extend({},$.fn.tooltip.Constructor.prototype)
677Popover.prototype.constructor=Popover
678Popover.prototype.getDefaults=function(){return Popover.DEFAULTS}
679Popover.prototype.setContent=function(){var $tip=this.tip()
680var title=this.getTitle()
681var content=this.getContent()
682if(this.options.html){var typeContent=typeof content
683if(this.options.sanitize){title=this.sanitizeHtml(title)
684if(typeContent==='string'){content=this.sanitizeHtml(content)}}
685$tip.find('.popover-title').html(title)
686$tip.find('.popover-content').children().detach().end()[typeContent==='string'?'html':'append'](content)}else{$tip.find('.popover-title').text(title)
687$tip.find('.popover-content').children().detach().end().text(content)}
688$tip.removeClass('fade top bottom left right in')
689if(!$tip.find('.popover-title').html())$tip.find('.popover-title').hide()}
690Popover.prototype.hasContent=function(){return this.getTitle()||this.getContent()}
691Popover.prototype.getContent=function(){var $e=this.$element
692var o=this.options
693return $e.attr('data-content')||(typeof o.content=='function'?o.content.call($e[0]):o.content)}
694Popover.prototype.arrow=function(){return(this.$arrow=this.$arrow||this.tip().find('.arrow'))}
695function Plugin(option){return this.each(function(){var $this=$(this)
696var data=$this.data('bs.popover')
697var options=typeof option=='object'&&option
698if(!data&&/destroy|hide/.test(option))return
699if(!data)$this.data('bs.popover',(data=new Popover(this,options)))
700if(typeof option=='string')data[option]()})}
701var old=$.fn.popover
702$.fn.popover=Plugin
703$.fn.popover.Constructor=Popover
704$.fn.popover.noConflict=function(){$.fn.popover=old
705return this}}(jQuery);+function($){'use strict';function ScrollSpy(element,options){this.$body=$(document.body)
706this.$scrollElement=$(element).is(document.body)?$(window):$(element)
707this.options=$.extend({},ScrollSpy.DEFAULTS,options)
708this.selector=(this.options.target||'')+' .nav li > a'
709this.offsets=[]
710this.targets=[]
711this.activeTarget=null
712this.scrollHeight=0
713this.$scrollElement.on('scroll.bs.scrollspy',$.proxy(this.process,this))
714this.refresh()
715this.process()}
716ScrollSpy.VERSION='3.4.1'
717ScrollSpy.DEFAULTS={offset:10}
718ScrollSpy.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)}
719ScrollSpy.prototype.refresh=function(){var that=this
720var offsetMethod='offset'
721var offsetBase=0
722this.offsets=[]
723this.targets=[]
724this.scrollHeight=this.getScrollHeight()
725if(!$.isWindow(this.$scrollElement[0])){offsetMethod='position'
726offsetBase=this.$scrollElement.scrollTop()}
727this.$body.find(this.selector).map(function(){var $el=$(this)
728var href=$el.data('target')||$el.attr('href')
729var $href=/^#./.test(href)&&$(href)
730return($href&&$href.length&&$href.is(':visible')&&[[$href[offsetMethod]().top+offsetBase,href]])||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){that.offsets.push(this[0])
731that.targets.push(this[1])})}
732ScrollSpy.prototype.process=function(){var scrollTop=this.$scrollElement.scrollTop()+this.options.offset
733var scrollHeight=this.getScrollHeight()
734var maxScroll=this.options.offset+scrollHeight-this.$scrollElement.height()
735var offsets=this.offsets
736var targets=this.targets
737var activeTarget=this.activeTarget
738var i
739if(this.scrollHeight!=scrollHeight){this.refresh()}
740if(scrollTop>=maxScroll){return activeTarget!=(i=targets[targets.length-1])&&this.activate(i)}
741if(activeTarget&&scrollTop<offsets[0]){this.activeTarget=null
742return this.clear()}
743for(i=offsets.length;i--;){activeTarget!=targets[i]&&scrollTop>=offsets[i]&&(offsets[i+1]===undefined||scrollTop<offsets[i+1])&&this.activate(targets[i])}}
744ScrollSpy.prototype.activate=function(target){this.activeTarget=target
745this.clear()
746var selector=this.selector+'[data-target="'+target+'"],'+
747this.selector+'[href="'+target+'"]'
748var active=$(selector).parents('li').addClass('active')
749if(active.parent('.dropdown-menu').length){active=active.closest('li.dropdown').addClass('active')}
750active.trigger('activate.bs.scrollspy')}
751ScrollSpy.prototype.clear=function(){$(this.selector).parentsUntil(this.options.target,'.active').removeClass('active')}
752function Plugin(option){return this.each(function(){var $this=$(this)
753var data=$this.data('bs.scrollspy')
754var options=typeof option=='object'&&option
755if(!data)$this.data('bs.scrollspy',(data=new ScrollSpy(this,options)))
756if(typeof option=='string')data[option]()})}
757var old=$.fn.scrollspy
758$.fn.scrollspy=Plugin
759$.fn.scrollspy.Constructor=ScrollSpy
760$.fn.scrollspy.noConflict=function(){$.fn.scrollspy=old
761return this}
762$(window).on('load.bs.scrollspy.data-api',function(){$('[data-spy="scroll"]').each(function(){var $spy=$(this)
763Plugin.call($spy,$spy.data())})})}(jQuery);+function($){'use strict';var Tab=function(element){this.element=$(element)}
764Tab.VERSION='3.4.1'
765Tab.TRANSITION_DURATION=150
766Tab.prototype.show=function(){var $this=this.element
767var $ul=$this.closest('ul:not(.dropdown-menu)')
768var selector=$this.data('target')
769if(!selector){selector=$this.attr('href')
770selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'')}
771if($this.parent('li').hasClass('active'))return
772var $previous=$ul.find('.active:last a')
773var hideEvent=$.Event('hide.bs.tab',{relatedTarget:$this[0]})
774var showEvent=$.Event('show.bs.tab',{relatedTarget:$previous[0]})
775$previous.trigger(hideEvent)
776$this.trigger(showEvent)
777if(showEvent.isDefaultPrevented()||hideEvent.isDefaultPrevented())return
778var $target=$(document).find(selector)
779this.activate($this.closest('li'),$ul)
780this.activate($target,$target.parent(),function(){$previous.trigger({type:'hidden.bs.tab',relatedTarget:$this[0]})
781$this.trigger({type:'shown.bs.tab',relatedTarget:$previous[0]})})}
782Tab.prototype.activate=function(element,container,callback){var $active=container.find('> .active')
783var transition=callback&&$.support.transition&&($active.length&&$active.hasClass('fade')||!!container.find('> .fade').length)
784function next(){$active.removeClass('active').find('> .dropdown-menu > .active').removeClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',false)
785element.addClass('active').find('[data-toggle="tab"]').attr('aria-expanded',true)
786if(transition){element[0].offsetWidth
787element.addClass('in')}else{element.removeClass('fade')}
788if(element.parent('.dropdown-menu').length){element.closest('li.dropdown').addClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',true)}
789callback&&callback()}
790$active.length&&transition?$active.one('bsTransitionEnd',next).emulateTransitionEnd(Tab.TRANSITION_DURATION):next()
791$active.removeClass('in')}
792function Plugin(option){return this.each(function(){var $this=$(this)
793var data=$this.data('bs.tab')
794if(!data)$this.data('bs.tab',(data=new Tab(this)))
795if(typeof option=='string')data[option]()})}
796var old=$.fn.tab
797$.fn.tab=Plugin
798$.fn.tab.Constructor=Tab
799$.fn.tab.noConflict=function(){$.fn.tab=old
800return this}
801var clickHandler=function(e){e.preventDefault()
802Plugin.call($(this),'show')}
803$(document).on('click.bs.tab.data-api','[data-toggle="tab"]',clickHandler).on('click.bs.tab.data-api','[data-toggle="pill"]',clickHandler)}(jQuery);+function($){'use strict';var Affix=function(element,options){this.options=$.extend({},Affix.DEFAULTS,options)
804var target=this.options.target===Affix.DEFAULTS.target?$(this.options.target):$(document).find(this.options.target)
805this.$target=target.on('scroll.bs.affix.data-api',$.proxy(this.checkPosition,this)).on('click.bs.affix.data-api',$.proxy(this.checkPositionWithEventLoop,this))
806this.$element=$(element)
807this.affixed=null
808this.unpin=null
809this.pinnedOffset=null
810this.checkPosition()}
811Affix.VERSION='3.4.1'
812Affix.RESET='affix affix-top affix-bottom'
813Affix.DEFAULTS={offset:0,target:window}
814Affix.prototype.getState=function(scrollHeight,height,offsetTop,offsetBottom){var scrollTop=this.$target.scrollTop()
815var position=this.$element.offset()
816var targetHeight=this.$target.height()
817if(offsetTop!=null&&this.affixed=='top')return scrollTop<offsetTop?'top':false
818if(this.affixed=='bottom'){if(offsetTop!=null)return(scrollTop+this.unpin<=position.top)?false:'bottom'
819return(scrollTop+targetHeight<=scrollHeight-offsetBottom)?false:'bottom'}
820var initializing=this.affixed==null
821var colliderTop=initializing?scrollTop:position.top
822var colliderHeight=initializing?targetHeight:height
823if(offsetTop!=null&&scrollTop<=offsetTop)return'top'
824if(offsetBottom!=null&&(colliderTop+colliderHeight>=scrollHeight-offsetBottom))return'bottom'
825return false}
826Affix.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset
827this.$element.removeClass(Affix.RESET).addClass('affix')
828var scrollTop=this.$target.scrollTop()
829var position=this.$element.offset()
830return(this.pinnedOffset=position.top-scrollTop)}
831Affix.prototype.checkPositionWithEventLoop=function(){setTimeout($.proxy(this.checkPosition,this),1)}
832Affix.prototype.checkPosition=function(){if(!this.$element.is(':visible'))return
833var height=this.$element.height()
834var offset=this.options.offset
835var offsetTop=offset.top
836var offsetBottom=offset.bottom
837var scrollHeight=Math.max($(document).height(),$(document.body).height())
838if(typeof offset!='object')offsetBottom=offsetTop=offset
839if(typeof offsetTop=='function')offsetTop=offset.top(this.$element)
840if(typeof offsetBottom=='function')offsetBottom=offset.bottom(this.$element)
841var affix=this.getState(scrollHeight,height,offsetTop,offsetBottom)
842if(this.affixed!=affix){if(this.unpin!=null)this.$element.css('top','')
843var affixType='affix'+(affix?'-'+affix:'')
844var e=$.Event(affixType+'.bs.affix')
845this.$element.trigger(e)
846if(e.isDefaultPrevented())return
847this.affixed=affix
848this.unpin=affix=='bottom'?this.getPinnedOffset():null
849this.$element.removeClass(Affix.RESET).addClass(affixType).trigger(affixType.replace('affix','affixed')+'.bs.affix')}
850if(affix=='bottom'){this.$element.offset({top:scrollHeight-height-offsetBottom})}}
851function Plugin(option){return this.each(function(){var $this=$(this)
852var data=$this.data('bs.affix')
853var options=typeof option=='object'&&option
854if(!data)$this.data('bs.affix',(data=new Affix(this,options)))
855if(typeof option=='string')data[option]()})}
856var old=$.fn.affix
857$.fn.affix=Plugin
858$.fn.affix.Constructor=Affix
859$.fn.affix.noConflict=function(){$.fn.affix=old
860return this}
861$(window).on('load',function(){$('[data-spy="affix"]').each(function(){var $spy=$(this)
862var data=$spy.data()
863data.offset=data.offset||{}
864if(data.offsetBottom!=null)data.offset.bottom=data.offsetBottom
865if(data.offsetTop!=null)data.offset.top=data.offsetTop
866Plugin.call($spy,data)})})}(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.