1var controller;function NewsPartController(){var e,t,n,i,r,o,a,s,l=this,c=!0,d={};this.start=function(i,l,c){s=new Map;var d=this;r=!1,c,o=i,a=l,containerDiv=$("."+o)[0],containerDiv&&(e=containerDiv.getAttribute("data-id"),template=Helpers.loadTemplate("news-part","",!1,{theme:"global"}),template.done((function(e){t=Template7.compile(e),n=Template7.compile("{{#each added}} "+e+" {{/each}}"),d.syncNewsParts(),setInterval(d.syncNewsParts,15e3)})))},this.syncNewsParts=function(){r||(r=!0,$.ajax({url:"../../rest/getLatestNewsParts",data:{newsId:e,fromDate:i},contentType:"text/json",success:function(e){hasParts=e.added&&0!=e.added.length;var s=l.reviewUpdates(e);i=e.lastUpdate;var d=n(e);for(var f in $(d).prependTo($("."+o).first()).slideDown(1e3),s){var u=s[f];d=t(u);elementToRemove=$("#news-part-element-"+u.id);var h=$(d);elementToRemove.after(h),h.show(),elementToRemove.remove()}for(var f in e.deleted){u=e.deleted[f];elementToRemove=$("#news-part-element-"+u.id).first(),elementToRemove.slideUp(1e3,(function(){this.remove()}))}r=!1,1==c&&(l.scrollToPartInUrl(),c=!1,hasParts&&$("."+a).eq(0).css("display","block"))}}))},this.loadMore=function(){$.ajax({url:"../../rest/getNewsParts",data:{newsId:e,size:20,offset:Object.keys(d).length},contentType:"text/json",success:function(e){for(var t in e.added=e.added.filter((function(e){return null==s.get(e.id)})),e.added)s.set(e.added[t].id,e.added[t]),d[e.added[t].id]=!0;var i=n(e);$(i).appendTo($("."+o).first()).slideDown(1e3),e.added.length<19&&$(".news-parts-box button.part-load-more").remove()}})},this.reviewUpdates=function(e){e.deleted=e.deleted.filter((function(e){var t=s.get(e.id);return s.set(e.id,e),delete d[e.id],null==t||t.modified==e.modified}));var t=[];return e.added=e.added.filter((function(e){var n=s.get(e.id);return s.set(e.id,e),d[e.id]=!0,null==n||(n.modified<e.modified&&t.add(e),!1)})),t},this.scrollToPartInUrl=function(){var e=location.href,t=e.substring(e.lastIndexOf("#")+1,e.length);-1!=e.lastIndexOf("#")&&(console.log(t),document.getElementById(t).scrollIntoView(),toggleColor("#"+t))};this.start("news-parts-container","news-parts-header",2)}function loadMoreNewsParts(){controller.loadMore()}function toggleColor(e,t){$(e).animate({opacity:"0"},{speed:t,done:function(){$(e).animate({opacity:"1"},{speed:t})}})}$(document).ready((function(){new Box(["top","hasmore","tab","carousel","prayers","floatingAd","map2","gallery2","fixedPlayer"]);if(Helpers.init(["responsiveMenu","absoluteMenu","galleryAutoStart","playerAd","countDownTimer"]),$(".box.map.has-disabled-provinces .iran").length){const e=$(".box.map.has-disabled-provinces:first").find(".iran:first"),t=e.attr("data-enable")?Array.from(new Set(-1!==e.attr("data-enable").indexOf("-")?e.attr("data-enable").split("-"):[e.attr("data-enable")])):[],n=e.attr("data-disable")?Array.from(new Set(-1!==e.attr("data-disable").indexOf("-")?e.attr("data-disable").split("-"):[e.attr("data-disable")])):[],i=Object.values(Helpers.map).map((function(e){return e.n})),r=t.filter((function(e){return i.includes(e)})),o=n.filter((function(e){return i.includes(e)}));$.each(Helpers.map,(function(e,t){r.length>0?t.d=!r.includes(t.n):o.length>0&&(t.d=o.includes(t.n))})),setTimeout((function(){e.find("#provinces path[id]").each((function(){const e=$(this);if(void 0!==Helpers.map[e.attr("id")].n)try{e.attr("class",Helpers.map[e.attr("id")].d?"disabled-province":"enabled-province")}catch(t){console.log(t,e)}}))}),1e3)}var e=function(e,t,n,i){var r=$(e).find(".iran:first");$.ajax({url:("/api?topic={id}&size=6"+(void 0===r.attr("data-api-params")?"":r.attr("data-api-params"))).replace(/{id}/g,t),success:function(t){var r=Helpers.loadTemplate("news"),o={boxClasses:"list list-bullets list-bordered title-only hidden-img header-clean has-more has-more-bottom has-more-default bg-graylight"};r.done((function(r){t.config=o,void 0!==Helpers.map[n]&&void 0!==Helpers.map[n].u&&(t.url=Helpers.map[n].u);var a=Template7.compile(r)(t);$(e).find(".items").html(a),"function"==typeof i&&i()}))}})};"undefined"!=typeof newmap&&(Helpers.map=newmap),window.setTimeout((function(){if(!$(".map .iran").length)return!1;$(".box.map").each((function(){var t=$(this);const n=Object.keys(Helpers.map).filter((function(e){return!0!==Helpers.map[e].d}));var i=n[Helpers.randomIntFromInterval(0,n.length)],r=Helpers.map[i].id;
1e(t,r,i,(function(){t.find(".iran #provinces path[id]").removeAttr("data-active"),t.find(".iran #provinces path[data-topic="+r+"]").attr("data-active","active")}))}))}),1e3),$(document).on("click",".map .iran #provinces path[id]",(function(t){t.preventDefault();var n=$(this),i=n.parents(".map:first");void 0!==Helpers.map[n.attr("id")]&&(i.find(".items").length?$(this).is("[data-active=active]")?window.open(i.find(".items .box:first > header a").attr("href")):e(i,Helpers.map[n.attr("id")].id,n.attr("id"),(function(){i.find(".iran #provinces path[id]").removeAttr("data-active"),n.attr("data-active","active")})):window.open(Helpers.map[n.attr("id")].u))})),$(document).on("click",".pt-topic .map .iran #provinces path[id]",(function(t){t.preventDefault();var n=$(this),i=n.parents(".map:first");void 0!==Helpers.map[n.attr("id")]&&e(i,Helpers.map[n.attr("id")].id)})),$(window).resize((function(){"width=1000"===$('meta[name="viewport"]').attr("content")?$(".responsive-tools").is(":visible")||$(".responsive-tools").show(1):$(".responsive-tools").attr("style","")}));let t;detachAndAttachElements(576),$(window).on("resize",(function(){clearTimeout(t),t=setTimeout((function(){detachAndAttachElements(576)}),100)}));var n=$("meta[property='nastooh:nid']").attr("content");void 0!==n&&n&&new Item(!1,!1);var i=function(){$("#menu").stop().animate({right:"-75%"},(function(){$("#menu").hide(1)}))},r=function(){$("#menu").stop().show(1).animate({right:"0"})};if($(document).on("click",'[data-target="#menu"]',(function(e){return $("#menu").is(":visible")?i():r(),e.preventDefault(),!1})),$(document).on("click",(function(e){if(($("body").hasClass("_xs")||$("body").hasClass("_sm"))&&$("#menu").is(":visible")&&0===$(e.target).closest("#menu").length&&0===$(e.target).closest('[data-target="#menu"]').length)return i(),e.preventDefault(),!1})),$(document).on("change",".languages-menu",(function(){if(""===this.value)return!1;location.href="fa"===this.value?"//www.mehrnews.com":"//"+this.value+".mehrnews.com"})),new SportsTables({api:{base:"https://api2.nastooh.ir/sport/"},theme:"mehrnews"}),$("iframe").length&&$("iframe").each((function(){if(-1!==$(this).attr("src").indexOf("tv.mehrnews.com")){var e=$(this),t=$(".item-summary .item-img");e.parents('div[style="position: relative"]').length&&e.parents('div[style="position: relative"]').hide(1),e.insertAfter(t.find("img")),e.css({width:"100%",height:66.6*t.width()/100,position:"static"}),$(".item-summary .item-img img").hide(1)}})),$(".category-desc").length){var o=$(".category-desc");o.height()>140&&o.addClass("clipped"),$(document).on("click",".category-desc button",(function(e){e.preventDefault(),o.toggleClass("clipped")}))}if($(".box.marquee-script").length){const e=$(".box.marquee-script .marquee-container").length?$(".box.marquee-script .marquee-container"):$(".box.marquee-script > div");let t=e.attr("data-time")||Math.ceil(e.width()/25);e.css("animation-duration",t+"s")}$(".box.candidate-box").length&&$(".box.candidate-box").each((function(){const e=$(this),t=e.find(".candidate-container");let n=t.attr("data-candidates");if(void 0!==n&&n.length>0){try{n=JSON.parse(n.replace(/,(\s*[\]}])/g,"$1"));const i=t.attr("data-sort");void 0!==i&&"true"===i&&n.sort((function(e,t){return t.votes-e.votes}));let r=0;$.each(n,(function(e,n){t.append($(`\n <li class="candidate-item" id="candidate-${e}">\n <style>\n #candidate-${e} progress {\n &::-webkit-progress-value { background-color: ${n.color}; }\n &::-moz-progress-bar { background-color: ${n.color}; }\n &::-ms-fill { background-color: ${n.color}; }\n }\n </style>\n <ul class="candidate">\n <li class="candidate-title">${n.title}</li>\n <li class="candidate-votes-count">
1${n.votes.toLocaleString().toPersianDigits()}</li>\n </ul>\n <progress value="${n.votes}"></progress>\n </li>\n `)),r+=n.votes})),e.find("progress").attr("max",r),e.find(".approved-votes-count").text(r.toLocaleString().toPersianDigits())}catch(e){console.error(e)}const i=e.find(".vote-sum-count");i.text(parseInt(i.text()).toLocaleString().toPersianDigits())}})),$("body").hasClass("has-live-stream")&&function(){const e=$("#header");e.find(".live-icon-sm").length||e.find('button[data-target="#menu"]').after(`<a href="/service/live-stream" title="${"fa"===$("html").attr("lang")?"پخش Ø²ÙØ¯Ù":"Live stream"}" class="live-icon-sm"></a>`)}()})),jQuery.htmlPrefilter=function(e){return e},function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t(e.bootstrap={},e.jQuery)}(this,(function(e,t){"use strict";function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){r(e,t,n[t])}))}return e}for(var a=function(e){var t="transitionend";function n(t){var n=this,r=!1;return e(this).one(i.TRANSITION_END,(function(){r=!0})),setTimeout((function(){r||i.triggerTransitionEnd(n)}),t),this}var i={TRANSITION_END:"bsTransitionEnd",getUID:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");t&&"#"!==t||(t=e.getAttribute("href")||"");try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var n=e(t).css("transition-duration");return parseFloat(n)?(n=n.split(",")[0],1e3*parseFloat(n)):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(n){e(n).trigger(t)},supportsTransitionEnd:function(){return Boolean(t)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var o=n[r],a=t[r],s=a&&i.isElement(a)?"element":(l=a,{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(s))throw new Error(e.toUpperCase()+': Option "'+r+'" provided type "'+s+'" but expected type "'+o+'".')}var l}};return e.fn.emulateTransitionEnd=n,e.event.special[i.TRANSITION_END]={bindType:t,delegateType:t,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}},i}(t=t&&t.hasOwnProperty("default")?t.default:t),s=function(e){var t="collapse",n="bs.collapse",r="."+n,s=e.fn[t],l={toggle:!0,parent:""},c={toggle:"boolean",parent:"(string|element)"},d={SHOW:"show"+r,SHOWN:"shown"+r,HIDE:"hide"+r,HIDDEN:"hidden"+r,CLICK_DATA_API:"click"+r+".data-api"},f="show",u="collapse",h="collapsing",p="collapsed",m="width",g="height",v=".show, .collapsing",_='[data-toggle="collapse"]',b=function(){function r(t,n){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(n),this._triggerArray=e.makeArray(document.querySelectorAll('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var i=[].slice.call(document.querySelectorAll(_)),r=0,o=i.length;r<o;r++){var s=i[r],l=a.getSelectorFromElement(s),c=[].slice.call(document.querySelectorAll(l)).filter((function(e){return e===t}));null!==l&&c.length>0&&(this._selector=l,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var s=r.prototype;return s.toggle=function(){e(this._element).hasClass(f)?this.hide():this.show()},s.show=function(){var t,i,o=this;if(!this._isTransitioning&&!e(this._element).hasClass(f)&&(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(v)).filter((function(e){return e.getAttribute("data-parent")===o._config.parent}))).length&&(t=null),!(t&&(i=e(t).not(this._selector).data(n))&&i._isTransitioning))){var s=e.Event(d.SHOW);if(e(this._element).trigger(s),!s.isDefaultPrevented()){t&&(r._jQueryInterface.call(e(t).not(this._selector),"hide"),i||e(t).data(n,null));var l=this._getDimension();e(this._element).removeClass(u).addClass(h),this._element.style[l]=0,this._triggerArray.length&&e(this._triggerArray).removeClass(p).attr("aria-expanded",!0),this.setTransitioning(!0);var c="scroll"+(l[0].toUpperCase()+l.slice(1)),m=a.getTransitionDurationFromElement(this._element);e(this._element).one(a.TRANSITION_END,(function(){e(o._element).removeClass(h).addClass(u).addClass(f),o._element.style[l]="",o.setTransitioning(!1),e(o._element).trigger(d.SHOWN)})).emulateTransitionEnd(m),this._element.style[l]=this._element[c]+"px"}}},s.hide=function(){var t=this;if(!this._isTransitioning&&e(this._element).hasClass(f)){var n=e.Event(d.HIDE);if(e(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",a.reflow(this._element),e(this._element).addClass(h).removeClass(u).removeClass(f);var r=this._triggerArray.length;if(r>0)for(var o=0;o<r;o++){var s=this._triggerArray[o],l=a.getSelectorFromElement(s);if(null!==l)e([].slice.call(document.querySelectorAll(l))).hasClass(f)||e(s).addClass(p).attr("aria-expanded",!1)}this.setTransitioning(!0);this._element.style[i]="";var c=a.getTransitionDurationFromElement(this._element);e(this._element).one(a.TRANSITION_END,(function(){t.setTransitioning(!1),e(t._element).removeClass(h).addClass(u).trigger(d.HIDDEN)})).emulateTransitionEnd(c)}}},s.setTransitioning=function(e){this._isTransitioning=e},s.dispose=function(){e.removeData(this._element,n),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},s._getConfig=function(e){return(e=o({},l,e)).toggle=Boolean(e.toggle),a.typeCheckConfig(t,e,c),e},s._getDimension=function(){return e(this._element).hasClass(m)?m:g},s._getParent=function(){var t=this,n=null;a.isElement(this._config.parent)?(n=this._config.parent,void 0!==this._config.parent.jquery&&(n=this._config.parent[0])):n=document.querySelector(this._config.parent);var i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',o=[].slice.call(n.querySelectorAll(i));return e(o).each((function(e,n){t._addAriaAndCollapsedClass(r._getTargetFromElement(n),[n])})),n},s._addAriaAndCollapsedClass=function(t,n){if(t){var i=e(t).hasClass(f);n.length&&e(n).toggleClass(p,!i).attr("aria-expanded",i)}},r._getTargetFromElement=function(e){var t=a.getSelectorFromElement(e);return t?document.querySelector(t):null},r._jQueryInterface=function(t){return this.each((function(){var i=e(this),a=i.data(n),s=o({},l,i.data(),"object"==typeof t&&t?t:{});if(!a&&s.toggle&&/show|hide/.test(t)&&(s.toggle=!1),a||(a=new r(this,s),i.data(n,a)),"string"==typeof t){if(void 0===a[t])throw new TypeError('No method n
1amed "'+t+'"');a[t]()}}))},i(r,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return l}}]),r}();return e(document).on(d.CLICK_DATA_API,_,(function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var i=e(this),r=a.getSelectorFromElement(this),o=[].slice.call(document.querySelectorAll(r));e(o).each((function(){var t=e(this),r=t.data(n)?"toggle":i.data();b._jQueryInterface.call(t,r)}))})),e.fn[t]=b._jQueryInterface,e.fn[t].Constructor=b,e.fn[t].noConflict=function(){return e.fn[t]=s,b._jQueryInterface},b}(t),l="undefined"!=typeof window&&"undefined"!=typeof document,c=["Edge","Trident","Firefox"],d=0,f=0;f<c.length;f+=1)if(l&&navigator.userAgent.indexOf(c[f])>=0){d=1;break}var u=l&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),d))}};function h(e){return e&&"[object Function]"==={}.toString.call(e)}function p(e,t){if(1!==e.nodeType)return[];var n=getComputedStyle(e,null);return t?n[t]:n}function m(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function g(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=p(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+i)?e:g(m(e))}var v=l&&!(!window.MSInputMethodContext||!document.documentMode),_=l&&/MSIE 10/.test(navigator.userAgent);function b(e){return 11===e?v:10===e?_:v||_}function y(e){if(!e)return document.documentElement;for(var t=b(10)?document.body:null,n=e.offsetParent;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TD","TABLE"].indexOf(n.nodeName)&&"static"===p(n,"position")?y(n):n:e?e.ownerDocument.documentElement:document.documentElement}function w(e){return null!==e.parentNode?w(e.parentNode):e}function E(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,r=n?t:e,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var a,s,l=o.commonAncestorContainer;if(e!==l&&t!==l||i.contains(r))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&y(a.firstElementChild)!==a?y(l):l;var c=w(e);return c.host?E(c.host,t):E(e,w(t).host)}function T(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var i=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||i)[t]}return e[t]}function S(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+i+"Width"],10)}function C(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],b(10)?n["offset"+e]+i["margin"+("Height"===e?"Top":"Left")]+i["margin"+("Height"===e?"Bottom":"Right")]:0)}function D(){var e=document.body,t=document.documentElement,n=b(10)&&getComputedStyle(t);return{height:C("Height",e,t,n),width:C("Width",e,t,n)}}var O=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),A=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},N=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function I(e){return N({},e,{right:e.left+e.width,bottom:e.top+e.height})}function x(e){var t={};try{if(b(10)){t=e.getBoundingClientRect();var n=T(e,"top"),i=T(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}else t=e.getBoundingClientRect()}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?D():{},a=o.width||e.clientWidth||r.right-r.left,s=o.height||e.clientHeight||r.bottom-r.top,l=e.offsetWidth-a,c=e.offsetHeight-s;if(l||c){var d=p(e);l-=S(d,"x"),c-=S(d,"y"),r.width-=l,r.height-=c}return I(r)}function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=b(10),r="HTML"===t.nodeName,o=x(e),a=x(t),s=g(e),l=p(t),c=parseFloat(l.borderTopWidth,10),d=parseFloat(l.borderLeftWidth,10);n&&"HTML"===t.nodeName&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var f=I({top:o.top-a.top-c,left:o.left-a.left-d,width:o.width,height:o.height});
vendor: 5,565 bytes, line 1
1if(f.marginTop=0,f.marginLeft=0,!i&&r){var u=parseFloat(l.marginTop,10),h=parseFloat(l.marginLeft,10);f.top-=c-u,f.bottom-=c-u,f.left-=d-h,f.right-=d-h,f.marginTop=u,f.marginLeft=h}return(i&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(f=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=T(t,"top"),r=T(t,"left"),o=n?-1:1;return e.top+=i*o,e.bottom+=i*o,e.left+=r*o,e.right+=r*o,e}(f,t)),f}function $(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===p(e,"position")||$(m(e)))}function H(e){if(!e||!e.parentElement||b())return document.documentElement;for(var t=e.parentElement;t&&"none"===p(t,"transform");)t=t.parentElement;return t||document.documentElement}function P(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={top:0,left:0},a=r?H(e):E(e,t);if("viewport"===i)o=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=k(e,n),r=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:T(n),s=t?0:T(n,"left");return I({top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:r,height:o})}(a,r);else{var s=void 0;"scrollParent"===i?"BODY"===(s=g(m(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===i?e.ownerDocument.documentElement:i;var l=k(s,a,r);if("HTML"!==s.nodeName||$(a))o=l;else{var c=D(),d=c.height,f=c.width;o.top+=l.top-l.marginTop,o.bottom=d+l.top,o.left+=l.left-l.marginLeft,o.right=f+l.left}}return o.left+=n,o.top+=n,o.right-=n,o.bottom-=n,o}function M(e,t,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=P(n,i,o,r),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},l=Object.keys(s).map((function(e){return N({key:e},s[e],{area:(t=s[e],t.width*t.height)});var t})).sort((function(e,t){return t.area-e.area})),c=l.filter((function(e){var t=e.width,i=e.height;return t>=n.clientWidth&&i>=n.clientHeight})),d=c.length>0?c[0].key:l[0].key,f=e.split("-")[1];return d+(f?"-"+f:"")}function j(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return k(n,i?H(t):E(t,n),i)}function L(e){var t=getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function F(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function W(e,t,n){n=n.split("-")[0];var i=L(e),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",c=o?"width":"height";return r[a]=t[a]+t[l]/2-i[l]/2,r[s]=n===s?t[s]-i[c]:t[F(s)],r}function R(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function B(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var i=R(e,(function(e){return e[t]===n}));return e.indexOf(i)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&h(n)&&(t.offsets.popper=I(t.offsets.popper),t.offsets.reference=I(t.offsets.reference),t=n(t,e))})),t}function U(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=j(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=M(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=W(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=B(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function q(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function K(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var r=t[i],o=r?""+r+n:e;if(void 0!==document.body.style[o])return o}return null}function Q(){return this.state.isDestroyed=!0,q(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[K("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Y(e){var t=e.ownerDocument;return t?t.defaultView:window}function z(e,t,n,i){var r="BODY"===e.nodeName,o=r?e.ownerDocument.defaultView:e;o.addEventListener(t,n,{passive:!0}),r||z(g(o.parentNode),t,n,i),i.push(o)}function V(e,t,n,i){n.updateBound=i,Y(e).addEventListener("resize",n.updateBound,{passive:!0});var r=g(e);return z(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function G(){this.state.eventsEnabled||(this.state=V(this.reference,this.options,this.state,this.scheduleUpdate))}function J(){var e,t;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(e=this.reference,t=this.state,Y(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEac
vendor: 9,345 bytes, line 1
1h((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function Z(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function X(e,t){Object.keys(t).forEach((function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Z(t[n])&&(i="px"),e.style[n]=t[n]+i}))}function ee(e,t,n){var i=R(e,(function(e){return e.name===t})),r=!!i&&e.some((function(e){return e.name===n&&e.enabled&&e.order<i.order}));if(!r){var o="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}var te=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ne=te.slice(3);function ie(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ne.indexOf(e),i=ne.slice(n+1).concat(ne.slice(0,n));return t?i.reverse():i}var re="flip",oe="clockwise",ae="counterclockwise";function se(e,t,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(R(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return c=c.map((function(e,i){var r=(1===i?!o:o)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],a=r[2];if(!o)return e;if(0===a.indexOf("%")){return I("%p"===a?n:i)[t]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(e,r,t,n)}))})),c.forEach((function(e,t){e.forEach((function(n,i){Z(n)&&(r[t]+=n*("-"===e[i-1]?-1:1))}))})),r}var le={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets,o=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",c=s?"width":"height",d={start:A({},l,o[l]),end:A({},l,o[l]+o[c]-a[c])};e.offsets.popper=N({},a,d[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,i=e.placement,r=e.offsets,o=r.popper,a=r.reference,s=i.split("-")[0],l=void 0;return l=Z(+n)?[+n,0]:se(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||y(e.instance.popper);e.instance.reference===n&&(n=y(n));var i=K("transform"),r=e.instance.popper.style,o=r.top,a=r.left,s=r[i];r.top="",r.left="",r[i]="";var l=P(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=o,r.left=a,r[i]=s,t.boundaries=l;var c=t.priority,d=e.offsets.popper,f={primary:function(e){var n=d[e];return d[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(d[e],l[e])),A({},e,n)},secondary:function(e){var n="right"===e?"left":"top",i=d[n];return d[e]>l[e]&&!t.escapeWithReference&&(i=Math.min(d[n],l[e]-("right"===e?d.width:d.height))),A({},n,i)}};return c.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";d=N({},d,f[t](e))})),e.offsets.popper=d,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,r=e.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return n[s]<o(i[l])&&(e.offsets.popper[l]=o(i[l])-n[c]),n[l]>o(i[s])&&(e.offsets.popper[l]=o(i[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!ee(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],o=e.offsets,a=o.popper,s=o.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",d=l?"Top":"Left",f=d.toLowerCase(),u=l?"left":"top",h=l?"bottom":"right",m=L(i)[c];s[h]-m<a[f]&&(e.offsets.popper[f]-=a[f]-(s[h]-m)),s[f]+m>a[h]&&(e.offsets.popper[f]+=s[f]+m-a[h]),e.offsets.popper=I(e.offsets.popper);var g=s[f]+s[c]/2-m/2,v=p(e.instance.popper),_=parseFloat(v["margin"+d],10),b=parseFloat(v["border"+d+"Width"],10),y=g-e.offsets.popper[f]-_-b;return y=Math.max(Math.min(a[c]-m,y),0),e.arrowElement=i,e.offsets.arrow=(A(n={},f,Math.round(y)),A(n,u,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(q(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=P(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],r=F(i),o=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case re:a=[i,r];break;case oe:a=ie(i);break;case ae:a=ie(i,!0);break;default:a=t.behavior}return a.forEach((function(s,l){if(i!==s||a.length===l+1)return e;i=e.placement.split("-")[0],r=F(i);var c=e.offsets.popper,d=e.offsets.reference,f=Math.floor,u="left"===i&&f(c.right)>f(d.left)||"right"===i&&f(c.left)<f(d.right)||"top"===i&&f(c.bottom)>f(d.top)||"bottom"===i&&f(c.top)<f(d.bottom),h=f(c.left)<f(n.left),p=f(c.right)>f(n.right),m=f(c.top)<f(n.top),g=f(c.bottom)>f(n.bottom),v="left"===i&&h||"right"===i&&p||"top"===i&&m||"bottom"===i&&g,_=-1!==["top","bottom"].indexOf(i),b=!!t.flipVariations&&(_&&"start"===o&&h||_&&"end"===o&&p||!_&&"start"===o&&m||!_&&"end"===o&&g);(u||v||b)&&(e.flipped=!0,(u||v)&&(i=a[l+1]),b&&(o=function(e){return"end"===e?"start":"start"===e?"end":e}(o)),e.placement=i+(o?"-"+o:""),e.offsets.popper=N({},e.offsets.popper,W(e.instance.popper,e.offsets.reference,e.placement)),e=B(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,r=i.popper,o=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=o[n]-(s?r[a?"width":"height"]:0),e.placement=F(t),e.offsets.popper=I(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!ee(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=R(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,i=t.y,r=e.offsets.popper,o=R(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:t.gpuAcceleration,s=x(y(e.instance.popper)),l={position:r.position},c={left:Math.floor(r.left),top:Math.round(r.top),bottom:Math.round(r.bottom),right:Math.floor(r.right)},d="bottom"===n?"top":"bottom",f="right"===i?"left":"right",u=K("transform"),h=void 0,p=void 0;if(p="bottom"===d?-s.height+c.bottom:c.top,h="right"===f?-s.width+c.right:c.left,a&&u)l[u]="translate3d("+h+"px, "+p+"px, 0)",l[d]=0,l[f]=0,l.willChange="transform";else{var m="bottom"===d?-1:1,g="right"===f?-1:1;l[d]=p*m,l[f]=h*g,l.willChange=d+", "+f}var v={"x-placement":e.placement};return e.attributes=N({},v,e.attributes),e.styles=N({},l,e.styles),e.arrowStyles=N({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return X(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEach((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&X(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,r){var o=j(r,t,e,n.positionFixed),a=M(n.placement,o,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),X(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},ce={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:le},de=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=u(this.update.bind(this)),this.options=N({},e.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(N({}
1,e.Defaults.modifiers,r.modifiers)).forEach((function(t){i.options.modifiers[t]=N({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return N({name:e},i.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&h(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)})),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return O(e,[{key:"update",value:function(){return U.call(this)}},{key:"destroy",value:function(){return Q.call(this)}},{key:"enableEventListeners",value:function(){return G.call(this)}},{key:"disableEventListeners",value:function(){return J.call(this)}}]),e}();de.Utils=("undefined"!=typeof window?window:global).PopperUtils,de.placements=te,de.Defaults=ce;var fe=function(e){var t="modal",n="bs.modal",r="."+n,s=e.fn[t],l={backdrop:!0,keyboard:!0,focus:!0,show:!0},c={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},d={HIDE:"hide"+r,HIDDEN:"hidden"+r,SHOW:"show"+r,SHOWN:"shown"+r,FOCUSIN:"focusin"+r,RESIZE:"resize"+r,CLICK_DISMISS:"click.dismiss"+r,KEYDOWN_DISMISS:"keydown.dismiss"+r,MOUSEUP_DISMISS:"mouseup.dismiss"+r,MOUSEDOWN_DISMISS:"mousedown.dismiss"+r,CLICK_DATA_API:"click"+r+".data-api"},f="modal-scrollbar-measure",u="modal-backdrop",h="modal-open",p="fade",m="show",g=".modal-dialog",v='[data-toggle="modal"]',_='[data-dismiss="modal"]',b=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",y=".sticky-top",w=function(){function s(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(g),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._scrollbarWidth=0}var v=s.prototype;return v.toggle=function(e){return this._isShown?this.hide():this.show(e)},v.show=function(t){var n=this;if(!this._isTransitioning&&!this._isShown){e(this._element).hasClass(p)&&(this._isTransitioning=!0);var i=e.Event(d.SHOW,{relatedTarget:t});e(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),e(document.body).addClass(h),this._setEscapeEvent(),this._setResizeEvent(),e(this._element).on(d.CLICK_DISMISS,_,(function(e){return n.hide(e)})),e(this._dialog).on(d.MOUSEDOWN_DISMISS,(function(){e(n._element).one(d.MOUSEUP_DISMISS,(function(t){e(t.target).is(n._element)&&(n._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return n._showElement(t)})))}},v.hide=function(t){var n=this;if(t&&t.preventDefault(),!this._isTransitioning&&this._isShown){var i=e.Event(d.HIDE);if(e(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()){this._isShown=!1;var r=e(this._element).hasClass(p);if(r&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),e(document).off(d.FOCUSIN),e(this._element).removeClass(m),e(this._element).off(d.CLICK_DISMISS),e(this._dialog).off(d.MOUSEDOWN_DISMISS),r){var o=a.getTransitionDurationFromElement(this._element);e(this._element).one(a.TRANSITION_END,(function(e){return n._hideModal(e)})).emulateTransitionEnd(o)}else this._hideModal()}}},v.dispose=function(){e.removeData(this._element,n),e(window,document,this._element,this._backdrop).off(r),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},v.handleUpdate=function(){this._adjustDialog()},v._getConfig=function(e){return e=o({},l,e),a.typeCheckConfig(t,e,c),e},v._showElement=function(t){var n=this,i=e(this._element).hasClass(p);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,i&&a.reflow(this._element),e(this._element).addClass(m),this._config.focus&&this._enforceFocus();var r=e.Event(d.SHOWN,{relatedTarget:t}),o=function(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,e(n._element).trigger(r)};if(i){var s=a.getTransitionDurationFromElement(this._element);e(this._dialog).one(a.TRANSITION_END,o).emulateTransitionEnd(s)}else o()},v._enforceFocus=function(){var t=this;e(document).off(d.FOCUSIN).on(d.FOCUSIN,(function(n){document!==n.target&&t._element!==n.target&&0===e(t._element).has(n.target).length&&t._element.focus()}))},v._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?e(this._element).on(d.KEYDOWN_DISMISS,(function(e){27===e.which&&(e.preventDefault(),t.hide())})):this._isShown||e(this._element).off(d.KEYDOWN_DISMISS)},v._setResizeEvent=function(){var t=this;this._isShown?e(window).on(d.RESIZE,(function(e){return t.handleUpdate(e)})):e(window).off(d.RESIZE)},v._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop((function(){e(document.body).removeClass(h),t._resetAdjustments(),t._resetScrollbar(),e(t._element).trigger(d.HIDDEN)}))},v._removeBackdrop=function(){this._backdrop&&(e(this._backdrop).remove(),this._backdrop=null)},v._showBackdrop=function(t){var n=this,i=e(this._element).hasClass(p)?p:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=u,i&&this._backdrop.classList.add(i),e(this._backdrop).appendTo(document.body),e(this._element).on(d.CLICK_DISMISS,(function(e){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide())})),i&&a.reflow(this._backdrop),e(this._backdrop).addClass(m),!t)return;if(!i)return void t();var r=a.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(a.TRANSITION_END,t).emulateTransitionEnd(r)}else if(!this._isShown&&this._backdrop){e(this._backdrop).removeClass(m);var o=function(){n._removeBackdrop(),t&&t()};if(e(this._element).hasClass(p)){var s=a.getTransitionDurationFromElement(this._backdrop);e(this._backdrop).one(a.TRANSITION_END,o).emulateTransitionEnd(s)}else o()}else t&&t()},v._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},v._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},v._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},v._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){var n=[].slice.call(document.querySelectorAll(b)),i=[].slice.call(document.querySelectorAll(y));e(n).each((function(n,i){var r=i.style.paddingRight,o=e(i).css("padding-right");e(i).data("padding-right",r).css("padding-right",parseFloat(o)+t._scrollbarWidth+"px")})),e(i).each((function(n,i){var r=i.style.marginRight,o=e(i).css("margin-right");e(i).data("margin-right",r).css("margin-right",parseFloat(o)-t._scrollbarWidth+"px")}));var r=document.body.style.paddingRight,o=e(document.body).css("padding-right");e(document.body).data("padding-right",r).css("padding-right",parseFloat(o)+this._scrollbarWidth+"px")}},v._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(b));e(t).each((function(t,n){var i=e(n).data("padding-right");e(n).removeData("padding-right"),n.style.paddingRight=i||""}));var n=[].slice.call(document.querySelectorAll(""+y));e(n).each((function(t,n){var i=e(n).data("margin-right");void 0!==i&&e(n).css("margin-right",i).removeData("margin-right")}));
1var i=e(document.body).data("padding-right");e(document.body).removeData("padding-right"),document.body.style.paddingRight=i||""},v._getScrollbarWidth=function(){var e=document.createElement("div");e.className=f,document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},s._jQueryInterface=function(t,i){return this.each((function(){var r=e(this).data(n),a=o({},l,e(this).data(),"object"==typeof t&&t?t:{});if(r||(r=new s(this,a),e(this).data(n,r)),"string"==typeof t){if(void 0===r[t])throw new TypeError('No method named "'+t+'"');r[t](i)}else a.show&&r.show(i)}))},i(s,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return l}}]),s}();return e(document).on(d.CLICK_DATA_API,v,(function(t){var i,r=this,s=a.getSelectorFromElement(this);s&&(i=document.querySelector(s));var l=e(i).data(n)?"toggle":o({},e(i).data(),e(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var c=e(i).one(d.SHOW,(function(t){t.isDefaultPrevented()||c.one(d.HIDDEN,(function(){e(r).is(":visible")&&r.focus()}))}));w._jQueryInterface.call(e(i),l,this)})),e.fn[t]=w._jQueryInterface,e.fn[t].Constructor=w,e.fn[t].noConflict=function(){return e.fn[t]=s,w._jQueryInterface},w}(t),ue=function(e){var t="tooltip",n="bs.tooltip",r="."+n,s=e.fn[t],l="bs-tooltip",c=new RegExp("(^|\\s)"+l+"\\S+","g"),d={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"},f={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},u={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},h="show",p="out",m={HIDE:"hide"+r,HIDDEN:"hidden"+r,SHOW:"show"+r,SHOWN:"shown"+r,INSERTED:"inserted"+r,CLICK:"click"+r,FOCUSIN:"focusin"+r,FOCUSOUT:"focusout"+r,MOUSEENTER:"mouseenter"+r,MOUSELEAVE:"mouseleave"+r},g="fade",v="show",_=".tooltip-inner",b=".arrow",y="hover",w="focus",E="click",T="manual",S=function(){function s(e,t){if(void 0===de)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var S=s.prototype;return S.enable=function(){this._isEnabled=!0},S.disable=function(){this._isEnabled=!1},S.toggleEnabled=function(){this._isEnabled=!this._isEnabled},S.toggle=function(t){if(this._isEnabled)if(t){var n=this.constructor.DATA_KEY,i=e(t.currentTarget).data(n);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(e(this.getTipElement()).hasClass(v))return void this._leave(null,this);this._enter(null,this)}},S.dispose=function(){clearTimeout(this._timeout),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),e(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},S.show=function(){var t=this;if("none"===e(this.element).css("display"))throw new Error("Please use show on visible elements");var n=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(n);var i=e.contains(this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!i)return;var r=this.getTipElement(),o=a.getUID(this.constructor.NAME);r.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&e(r).addClass(g);var s="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,l=this._getAttachment(s);this.addAttachmentClass(l);var c=!1===this.config.container?document.body:e(document).find(this.config.container);e(r).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(r).appendTo(c),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new de(this.element,r,{placement:l,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:b}
1,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){t._handlePopperPlacementChange(e)}}),e(r).addClass(v),"ontouchstart"in document.documentElement&&e(document.body).children().on("mouseover",null,e.noop);var d=function(){t.config.animation&&t._fixTransition();var n=t._hoverState;t._hoverState=null,e(t.element).trigger(t.constructor.Event.SHOWN),n===p&&t._leave(null,t)};if(e(this.tip).hasClass(g)){var f=a.getTransitionDurationFromElement(this.tip);e(this.tip).one(a.TRANSITION_END,d).emulateTransitionEnd(f)}else d()}},S.hide=function(t){var n=this,i=this.getTipElement(),r=e.Event(this.constructor.Event.HIDE),o=function(){n._hoverState!==h&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),e(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),t&&t()};if(e(this.element).trigger(r),!r.isDefaultPrevented()){if(e(i).removeClass(v),"ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),this._activeTrigger[E]=!1,this._activeTrigger[w]=!1,this._activeTrigger[y]=!1,e(this.tip).hasClass(g)){var s=a.getTransitionDurationFromElement(i);e(i).one(a.TRANSITION_END,o).emulateTransitionEnd(s)}else o();this._hoverState=""}},S.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},S.isWithContent=function(){return Boolean(this.getTitle())},S.addAttachmentClass=function(t){e(this.getTipElement()).addClass(l+"-"+t)},S.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},S.setContent=function(){var t=this.getTipElement();this.setElementContent(e(t.querySelectorAll(_)),this.getTitle()),e(t).removeClass(g+" "+v)},S.setElementContent=function(t,n){var i=this.config.html;"object"==typeof n&&(n.nodeType||n.jquery)?i?e(n).parent().is(t)||t.empty().append(n):t.text(e(n).text()):t[i?"html":"text"](n)},S.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},S._getAttachment=function(e){return f[e.toUpperCase()]},S._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(n){if("click"===n)e(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if(n!==T){var i=n===y?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,r=n===y?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;e(t.element).on(i,t.config.selector,(function(e){return t._enter(e)})).on(r,t.config.selector,(function(e){return t._leave(e)}))}e(t.element).closest(".modal").on("hide.bs.modal",(function(){return t.hide()}))})),this.config.selector?this.config=o({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},S._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},S._enter=function(t,n){var i=this.constructor.DATA_KEY;(n=n||e(t.currentTarget).data(i))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusin"===t.type?w:y]=!0),e(n.getTipElement()).hasClass(v)||n._hoverState===h?n._hoverState=h:(clearTimeout(n._timeout),n._hoverState=h,n.config.delay&&n.config.delay.show?n._timeout=setTimeout((function(){n._hoverState===h&&n.show()}),n.config.delay.show):n.show())},S._leave=function(t,n){var i=this.constructor.DATA_KEY;(n=n||e(t.currentTarget).data(i))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusout"===t.type?w:y]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=p,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout((function(){n._hoverState===p&&n.hide()}),n.config.delay.hide):n.hide())},S._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},S._getConfig=function(n){return"number"==typeof(n=o({},this.constructor.Default,e(this.element).data(),"object"==typeof n&&n?n:{})).delay&&(n.delay={show:n.delay,hide:n.delay}),"number"==typeof n.title&&(n.title=n.title.toString()),"number"==typeof n.content&&(n.content=n.content.toString()),a.typeCheckConfig(t,n,this.constructor.DefaultType),n},S._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},S._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(c);null!==n&&n.length&&t.removeClass(n.join(""))},S._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},S._fixTransition=function(){var t=this.getTipElement(),n=this.config.animation;null===t.getAttribute("x-placement")&&(e(t).removeClass(g),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},s._jQueryInterface=function(t){return this.each((function(){var i=e(this).data(n),r="object"==typeof t&&t;if((i||!/dispose|hide/.test(t))&&(i||(i=new s(this,r),e(this).data(n,i)),"string"==typeof t)){if(void 0===i[t])throw new TypeError('No method n
1amed "'+t+'"');i[t]()}}))},i(s,null,[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return u}},{key:"NAME",get:function(){return t}},{key:"DATA_KEY",get:function(){return n}},{key:"Event",get:function(){return m}},{key:"EVENT_KEY",get:function(){return r}},{key:"DefaultType",get:function(){return d}}]),s}();return e.fn[t]=S._jQueryInterface,e.fn[t].Constructor=S,e.fn[t].noConflict=function(){return e.fn[t]=s,S._jQueryInterface},S}(t),he=function(e){var t="tab",n="bs.tab",r="."+n,o=e.fn[t],s={HIDE:"hide"+r,HIDDEN:"hidden"+r,SHOW:"show"+r,SHOWN:"shown"+r,CLICK_DATA_API:"click"+r+".data-api"},l="dropdown-menu",c="active",d="disabled",f="fade",u="show",h=".dropdown",p=".nav, .list-group",m=".active",g="> li > .active",v='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',_=".dropdown-toggle",b="> .dropdown-menu .active",y=function(){function t(e){this._element=e}var r=t.prototype;return r.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&e(this._element).hasClass(c)||e(this._element).hasClass(d))){var n,i,r=e(this._element).closest(p)[0],o=a.getSelectorFromElement(this._element);if(r){var l="UL"===r.nodeName?g:m;i=(i=e.makeArray(e(r).find(l)))[i.length-1]}var f=e.Event(s.HIDE,{relatedTarget:this._element}),u=e.Event(s.SHOW,{relatedTarget:i});if(i&&e(i).trigger(f),e(this._element).trigger(u),!u.isDefaultPrevented()&&!f.isDefaultPrevented()){o&&(n=document.querySelector(o)),this._activate(this._element,r);var h=function(){var n=e.Event(s.HIDDEN,{relatedTarget:t._element}),r=e.Event(s.SHOWN,{relatedTarget:i});e(i).trigger(n),e(t._element).trigger(r)};n?this._activate(n,n.parentNode,h):h()}}},r.dispose=function(){e.removeData(this._element,n),this._element=null},r._activate=function(t,n,i){var r=this,o=("UL"===n.nodeName?e(n).find(g):e(n).children(m))[0],s=i&&o&&e(o).hasClass(f),l=function(){return r._transitionComplete(t,o,i)};if(o&&s){var c=a.getTransitionDurationFromElement(o);e(o).one(a.TRANSITION_END,l).emulateTransitionEnd(c)}else l()},r._transitionComplete=function(t,n,i){if(n){e(n).removeClass(u+" "+c);var r=e(n.parentNode).find(b)[0];r&&e(r).removeClass(c),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(e(t).addClass(c),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),a.reflow(t),e(t).addClass(u),t.parentNode&&e(t.parentNode).hasClass(l)){var o=e(t).closest(h)[0];if(o){var s=[].slice.call(o.querySelectorAll(_));e(s).addClass(c)}t.setAttribute("aria-expanded",!0)}i&&i()},t._jQueryInterface=function(i){return this.each((function(){var r=e(this),o=r.data(n);if(o||(o=new t(this),r.data(n,o)),"string"==typeof i){if(void 0===o[i])throw new TypeError('No method named "'+i+'"');o[i]()}}))},i(t,null,[{key:"VERSION",get:function(){return"4.1.3"}}]),t}();return e(document).on(s.CLICK_DATA_API,v,(function(t){t.preventDefault(),y._jQueryInterface.call(e(this),"show")})),e.fn[t]=y._jQueryInterface,e.fn[t].Constructor=y,e.fn[t].noConflict=function(){return e.fn[t]=o,y._jQueryInterface},y}(t);!function(e){if(void 0===e)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=e.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||t[0]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(t),e.Util=a,e.Collapse=s,e.Modal=fe,e.Tab=he,e.Tooltip=ue,Object.defineProperty(e,"__esModule",{value:!0})})),$(document).ready((function(){controller=new NewsPartController}));
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.