PageSourceSearch

https://www.havochvatten.se/2.9c1fa1d1301cb8586f80000/91.5756d9241…/1789670322052/BODY/0/sv-template-asset.js

js havochvatten.se collected 2026-10-02 03:28:44 UTC 52,330 bytes, 108 lines download raw bytes

1(function(d){var b;"function"===typeof define&&define.amd&&(define(d),b=!0);"object"===typeof exports&&(module.exports=d(),b=!0);if(!b){var f=window.Cookies,a=window.Cookies=d();a.noConflict=function(){window.Cookies=f;return a}}})(function(){function d(){for(var f=0,a={};f<arguments.length;f++){var d=arguments[f],b;for(b in d)a[b]=d[b]}return a}function b(f){function a(){}function k(n,h,c){if("undefined"!==typeof document){c=d({path:"/"},a.defaults,c);"number"===typeof c.expires&&(c.expires=new Date(1*
2new Date+864E5*c.expires));c.expires=c.expires?c.expires.toUTCString():"";try{var e=JSON.stringify(h);/^[\{\[]/.test(e)&&(h=e)}catch(b){}h=f.write?f.write(h,n):encodeURIComponent(String(h)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent);n=encodeURIComponent(String(n)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var e="",l;for(l in c)c[l]&&(e+="; "+l,!0!==c[l]&&(e+="\x3d"+c[l].split(";")[0]));return document.cookie=n+"\x3d"+
3h+e}}function m(a,b){if("undefined"!==typeof document){for(var c={},e=document.cookie?document.cookie.split("; "):[],d=0;d<e.length;d++){var k=e[d].split("\x3d"),g=k.slice(1).join("\x3d");b||'"'!==g.charAt(0)||(g=g.slice(1,-1));try{var p=k[0].replace(/(%[0-9A-Z]{2}
3)+/g,decodeURIComponent),g=(f.read||f)(g,p)||g.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent);if(b)try{g=JSON.parse(g)}catch(m){}c[p]=g;if(a===p)break}catch(m){}}return a?c[a]:c}}a.set=k;a.get=function(a){return m(a,!1)};a.getJSON=function(a){return m(a,
4!0)};a.remove=function(a,b){k(a,"",d(b,{expires:-1}))};a.defaults={};a.withConverter=b;return a}return b(function(){})});
5function applyFocusVisiblePolyfill(c){function f(a){return a&&a!==document&&"HTML"!==a.nodeName&&"BODY"!==a.nodeName&&"classList"in a&&"contains"in a.classList?!0:!1}function k(a){a.classList.contains("focus-visible")||(a.classList.add("focus-visible"),a.setAttribute("data-focus-visible-added",""))}function m(a){a.hasAttribute("data-focus-visible-added")&&(a.classList.remove("focus-visible"),a.removeAttribute("data-focus-visible-added"))}function d(a){e=!1}function l(){document.addEventListener("mousemove",
6b);document.addEventListener("mousedown",b);document.addEventListener("mouseup",b);document.addEventListener("pointermove",b);document.addEventListener("pointerdown",b);document.addEventListener("pointerup",b);document.addEventListener("touchmove",b);document.addEventListener("touchstart",b);document.addEventListener("touchend",b)}function b(a){a.target.nodeName&&"html"===a.target.nodeName.toLowerCase()||(e=!1,document.removeEventListener("mousemove",b),document.removeEventListener("mousedown",b),
7document.removeEventListener("mouseup",b),document.removeEventListener("pointermove",b),document.removeEventListener("pointerdown",b),document.removeEventListener("pointerup",b),document.removeEventListener("touchmove",b),document.removeEventListener("touchstart",b),document.removeEventListener("touchend",b))}var e=!0,g=!1,h=null,n={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};document.addEventListener("keydown",function(a){a.metaKey||
8a.altKey||a.ctrlKey||(f(c.activeElement)&&k(c.activeElement),e=!0)},!0);document.addEventListener("mousedown",d,!0);document.addEventListener("pointerdown",d,!0);document.addEventListener("touchstart",d,!0);document.addEventListener("visibilitychange",function(a){"hidden"==document.visibilityState&&(g&&(e=!0),l())},!0);l();c.addEventListener("focus",function(a){if(f(a.target)){var b;if(!(b=e)){b=a.target;var c=b.type,d=b.tagName;b="INPUT"==d&&n[c]&&!b.readOnly||"TEXTAREA"==d&&!b.readOnly||b.isContentEditable?
9!0:!1}b&&k(a.target)}},!0);c.addEventListener("blur",function(a){f(a.target)&&(a.target.classList.contains("focus-visible")||a.target.hasAttribute("data-focus-visible-added"))&&(g=!0,window.clearTimeout(h),h=window.setTimeout(function(){g=!1;window.clearTimeout(h)},100),m(a.target))},!0);c.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&c.host?c.host.setAttribute("data-js-focus-visible",""):c.nodeType===Node.DOCUMENT_NODE&&document.documentElement.classList.add("js-focus-visible")}
10window.applyFocusVisiblePolyfill=applyFocusVisiblePolyfill;var event;try{event=new CustomEvent("focus-visible-polyfill-ready")}catch(c){event=document.createEvent("CustomEvent"),event.initCustomEvent("focus-visible-polyfill-ready",!1,!1,{})}window.dispatchEvent(event);applyFocusVisiblePolyfill(document);
11svDocReady(function(a){var d=a(".hav-clickable-container"),e=a(".hav-clickable");d.each(function(){var c=a(this);1<c.find("a").length?c.addClass("hav-multiple-links"):c.addClass("hav-clickable");if(-1<window.location.href.indexOf("/edit"))a(e).css("cursor","default");else a(".hav-clickable").on("click",function(b){b.stopPropagation();b.preventDefault();b=a(this).find("a").first().attr("href");void 0!==b&&0<b.length&&(window.location.href=b);return!1})});a(".hav-header-size").matchHeight({target:a(".hav-header")});
12a(".hav-startpage-section--first .sv-vertical .sv-row:first-child .sv-column-6:last-child .sv-archive-portlet ul li:last-child .hav-startpage__current-news .hav-startpage__current-news--image img").attr("data-object-fit","cover");a(".hav-breadcrumb__items .hav-breadcrumb__item:last-child a").attr("tabindex","-1");a(".hav-share__button").on("click",function(){a(this).toggleClass("hav-share__button--active");a(".hav-share-items").toggle();a(".hav-share__button").hasClass("hav-share__button--active")&&
13a(".hav-share__media--copy-icon").attr("src","/images/18.19121d3e1740035673c5241/1597770139325/connect-fill.svg")});a(".hav-share__media--copy").on("click",function(){a(".hav-copy").select();document.execCommand("copy");a(".hav-share__media--copy-icon").attr("src","/images/18.19121d3e1740035673c5243/1597770139342/checkmark-blue.svg")})},jQuery);
14svDocReady(function(a){function f(){var b=a(this).scrollTop();5>=Math.abs(c-b)||(b>c&&b>d?(a(".hav-header").css("top",-d),a(".hav-header").removeClass("hav-header__scrolled--down").addClass("hav-header__scrolled--up"),a(".hav-header").removeClass("hav-header__right-navigation")):(b<d?(0===b||180>b)&&a(".hav-header").removeClass("hav-header__right-navigation"):a(".hav-header").css("position","fixed"),b+a(window).height()<a(document).height()&&((0===b||180>b||900<a(window).height())&&a(".hav-header").css("top",
150),a(".hav-header").removeClass("hav-header__scrolled--up").addClass("hav-header__scrolled--down"))),c=b)}var e,c=0,d=a(".hav-header").outerHeight();a(window).on("scroll",function(a){e=!0});setInterval(function(){e&&(f(),e=!1)},250);a(document).on("click",".hav-right-navigation ol li a",function(){a(".hav-header").addClass("hav-header__right-navigation")});if(a(".hav-toc-content").length)a(window).on("wheel",function(b){0>b.originalEvent.deltaY&&a(".hav-header").removeClass("hav-header__right-navigation")})},
16jQuery);
17svDocReady(function(a){if(Cookies.get("accept_cookies")){a(".cookies").hide();var b=window._paq=window._paq||[];b.push(["requireCookieConsent"]);b.push(["addDownloadExtensions","xlsm"]);b.push(["trackPageView"]);b.push(["enableLinkTracking"]);b.push(["trackVisibleContentImpressions"]);b.push(["enableHeartBeatTimer"]);b.push(["addDownloadExtensions","xlsm"]);(function(){b.push(["setTrackerUrl","https://matomo.havochvatten.se/matomo.php"]);b.push(["setSiteId","2"]);var a=document,c=a.createElement("script"),
18a=a.getElementsByTagName("script")[0];c.type="text/javascript";
18c.async=!0;c.src="https://matomo.havochvatten.se/matomo.js";a.parentNode.insertBefore(c,a)})();window.__rekai=window.__rekai||{};window.__rekai.consentaccepted=!0}else a(".cookies").hide(),b=window._paq=window._paq||[],b.push(["requireCookieConsent"]),b.push(["addDownloadExtensions","xlsm"]),b.push(["trackPageView"]),b.push(["enableLinkTracking"]),b.push(["enableHeartBeatTimer"]),b.push(["trackVisibleContentImpressions"]),function(){b.push(["setTrackerUrl",
19"https://matomo.havochvatten.se/matomo.php"]);b.push(["setSiteId","2"]);var a=document,c=a.createElement("script"),a=a.getElementsByTagName("script")[0];c.type="text/javascript";c.async=!0;c.src="https://matomo.havochvatten.se/matomo.js";a.parentNode.insertBefore(c,a)}();a(".cookies-btn").on("click",function(d){d.preventDefault();Cookies.set("accept_cookies","true",{expires:30,path:"/"});a(".cookies").hide();b.push(["setCookieConsentGiven"]);window.__rekai=window.__rekai||{};window.__rekai.consentaccepted=
20!0});Cookies.get("accept_hiddenbar")&&(a(".cookies").hide(),window.__rekai=window.__rekai||{},window.__rekai.consentaccepted=!1,window.__rekai.blockSaveToSessionStorage=!0,window.__rekai.blockSaveToLocalStorage=!0);a(".hav-dropdown__button").on("click",function(b){a(this).toggleClass("hav-dropdown__active");a(this).parent().next(".hav-dropdown__items").toggleClass("hav-dropdown__active");a(this).parents().siblings().find(".hav-dropdown__items").removeClass("hav-dropdown__active");a(this).parents().siblings().find(".hav-dropdown__button").removeClass("hav-dropdown__active");
21a(this).parents().siblings().find(".hav-dropdown__items").attr("aria-hidden","true");a(this).parents().siblings().find(".hav-dropdown__button").attr("aria-expanded","false");"false"===a(this).attr("aria-expanded")?(a(this).attr("aria-expanded","true"),a(this).parent().siblings().attr("aria-hidden","false")):(a(this).attr("aria-expanded","false"),a(this).parent().siblings().attr("aria-hidden","true"))});a(document).on("mouseup",function(b){var c=a(".hav-dropdown__items, .hav-dropdown__button");c.is(b.target)||
220!==c.has(b.target).length||(c.removeClass("hav-dropdown__active"),c.parent().find(".hav-dropdown__button").attr("aria-expanded","false"),c.parent().find(".hav-dropdown__items").attr("aria-hidden","true"))})},jQuery);
23svDocReady(function(a){a(".hav-menu-item").on("click",".hav-menu-item-nolink",function(c){c.preventDefault();a(this).parent().find(".hav-menu-item-toggle").first().click()});a(".hav-menu-item").on("click",".hav-menu-item-toggle",function(c){c.preventDefault();var e=a(this).data("id"),b=a(this),d=a(this).parent().parent();a(this).parent();a(".hav-menu-item-active");a(b).hasClass("hav-menu-item-toggle-open")?(a(d).find("ul").slideUp("fast").removeClass("hav-menu-group-active"),a(b).removeClass("hav-menu-item-toggle-open"),
24a(b).addClass("hav-menu-item-toggle-notopen"),a(b).parent().siblings(".hav-menu").children().find(".hav-menu-item-toggle").removeClass("hav-menu-item-toggle-open").addClass("hav-menu-item-toggle-notopen")):(a(b).addClass("hav-menu-item-toggle-open"),a(b).removeClass("hav-menu-item-toggle-notopen"),!0===a(d).data("hascontentloaded")?(a(d).find("ul").first().slideDown("fast").addClass("hav-menu-group-active"),a(b).addClass("hav-menu-item-toggle-open")):a.ajax({url:"/api-menu?id\x3d"+e,cache:!1,dataType:"html"}).done(function(c){c=
25a(c).first(".hav-mobile-menu").remove().html();a(d).not(".hav-menu-item-active").not("[data-hascontentloaded\x3d'true']").not(".hav-menu-item-folder").append(c).children().next().hide().slideDown("fast");a(d).data("hascontentloaded",!0);a(b).addClass("hav-menu-item-toggle-open")}).fail(function(){location.replace("/"+e+".html")}));return!1})},jQuery);
26svDocReady(function(a){a(".hav-hamburger-menu__button").on("click",function(){a(this).toggleClass("hav-hamburger-menu__button--active");a(this).parent(".hav-hamburger-menu").toggleClass("hav-hamburger-menu--active");a(".hav-header").toggleClass("hav-header__mobile");a(".hav-main-menu").toggle();a(".hav-header").removeClass("hav-mobile-search-active");a(".hav-banner").toggle();a(this).hasClass("hav-hamburger-menu__button--active")?(a(".hav-overlay").addClass("hav-overlay--active"),a(".hav-header").addClass("hav-header--menu-active"),
27a(".hav-hamburger-menu__button").attr("aria-labelledby","hav-menu-close")):(a(".hav-overlay").removeClass("hav-overlay--active"),a(".hav-header").removeClass("hav-header--menu-active"),a(".hav-hamburger-menu__button").attr("aria-labelledby","hav-menu-open"))});a(document).on("keyup",function(b){"Escape"===b.key&&0<a(".hav-hamburger-menu__button--active").length&&(a(".hav-hamburger-menu__button--active").click(),a(".hav-hamburger-menu__button--active").focus())});a(".hav-language-picker a").on("keydown",
28function(b){if(b.shiftKey&&9===b.keyCode&&0<a(".hav-header--menu-active").length)return b.preventDefault(),a(".hav-header__contact--link").focus(),!1;if(9===b.keyCode&&0<a(".hav-header--menu-active").length)return b.preventDefault(),a(".hav-header__logotype--link").focus(),!1});a(".hav-header__logotype--link").on("keydown",function(b){if(b.shiftKey&&9===b.keyCode&&0<a(".hav-header--menu-active").length)return b.preventDefault(),a(".hav-language-picker a").focus(),!1;if(9===b.keyCode&&0<a(".hav-header--menu-active").length)return b.preventDefault(),
29a(".hav-hamburger-menu__button--active").focus(),!1});a(document).on("mouseup",function(b){if(a(".hav-header--menu-active").length){var c=a(".hav-header");c.is(b.target)||0!==c.has(b.target).length||a(".hav-hamburger-menu__button--active").click()}});var d=a(".hav-header--search.tt-input");d.on("focusin",function(){a(this).parent(".twitter-typeahead").siblings(".hav-header--search-button").addClass("hav-header--search-button-active")});d.on("focusout",function(){a(this).parent(".twitter-typeahead").siblings(".hav-header--search-button").removeClass("hav-header--search-button-active")});
30a("body").on("input",".hav-header--search.tt-input",function(){a(this).val().length?a(".hav-search-empty-button").addClass("hav-search-has-value"):a(".hav-search-empty-button").removeClass("hav-search-has-value")});a(".tt-menu").addClass("tt-empty");a(".hav-search-empty-button").on("click",function(b){b.preventDefault();a(".hav-search-empty-button").removeClass("hav-search-has-value");a(".hav-header--search").val("");a(".hav-header--items .sv-facetedsearch-portlet form + div").empty();a(".tt-dataset-jsonFile").empty();
31a(".tt-menu").addClass("tt-empty");a(".hav-header").removeClass("hav-header--menu-active")});a(".hav-header--search-button-swe").on("click",function(){var b=a(".hav-header--search.tt-input").val(),c="/hav/funktioner/sok/sok.html?headerSearch\x3dAll\x26query\x3d"+b;""===b?(a(".hav-header--search.tt-input").val(""),a(".hav-header--search.tt-input").focus()):"Ange s\u00f6kord"==b?(a(".hav-header--search.tt-input").val(""),a(".hav-header--search.tt-input").focus()):window.location=c;return!1});a(".hav-header--search-button-en").on("click",
32function(){var b="/en/search/search.html?query\x3d"+a(".hav-header--search.tt-input").val();window.location=b;return!1});a("#hav-header-search-form").on("submit",function(){return!1});a(".hav-header__mobile-search-button").on("click",function(){a(".hav-hamburger-menu__button").removeClass("hav-hamburger-menu__button--active");a(".hav-hamburger-menu__button").parent(".hav-hamburger-menu").removeClass("hav-hamburger-menu
32--active");a(".hav-header").removeClass("hav-header__mobile");a(".hav-main-menu").hide();
33a(".hav-overlay").removeClass("hav-overlay--active");a(".hav-header").removeClass("hav-header--menu-active");window.location="/hav/funktioner/sok/sok-mobil.html";return!1});a(".hav-header__mobile-en-search-button").on("click",function(){a(".hav-hamburger-menu__button").removeClass("hav-hamburger-menu__button--active");a(".hav-hamburger-menu__button").parent(".hav-hamburger-menu").removeClass("hav-hamburger-menu--active");a(".hav-header").removeClass("hav-header__mobile");a(".hav-main-menu").hide();
34a(".hav-overlay").removeClass("hav-overlay--active");a(".hav-header").removeClass("hav-header--menu-active");window.location="/en/search/search.html";return!1});a(".hav-header--search.tt-input").on("focus",function(){});d=a(".hav-header--search.tt-input");d.on("focus",function(b){a(b.target).parents("#hav-header-search-form").closest(".hav-header--items").addClass("hav-search-focus")});d.on("blur",function(a){setTimeout(function(){},500)});a(document).on("click",function(b){if(a(".hav-header--items.hav-search-focus").length){var c=
35a(".hav-header--items");c.is(b.target)||0!==c.has(b.target).length||a(".hav-header--items").removeClass("hav-search-focus")}});a(".hav-header--search.tt-input").on("keydown",function(b){if(9===b.keyCode&&0<a(".hav-startpage-search").length)return b.preventDefault(),a(".hav-header-search__count a").focus(),a("#hav-header-search-form").addClass("hav-focus"),!1});a("body").on("keydown",".hav-startpage-search ol \x3e li:last-child a",function(b){9==b.which&&a("#hav-header-search-form").removeClass("hav-focus")})},
36jQuery);
37(function(c){"function"===typeof define&&define.amd?define(["jquery"],c):"undefined"!==typeof module&&module.exports?module.exports=c(require("jquery")):c(jQuery)})(function(c){var p=-1,f=-1,g=function(a){return parseFloat(a)||0},q=function(a){var b=null,d=[];c(a).each(function(){var a=c(this),k=a.offset().top-g(a.css("margin-top")),l=0<d.length?d[d.length-1]:null;null===l?d.push(a):1>=Math.floor(Math.abs(b-k))?d[d.length-1]=l.add(a):d.push(a);b=k});return d},m=function(a){var b={byRow:!0,property:"height",
38target:null,remove:!1};if("object"===typeof a)return c.extend(b,a);"boolean"===typeof a?b.byRow=a:"remove"===a&&(b.remove=!0);return b},b=c.fn.matchHeight=function(a){a=m(a);if(a.remove){var e=this;this.css(a.property,"");c.each(b._groups,function(a,b){b.elements=b.elements.not(e)});return this}if(1>=this.length&&!a.target)return this;b._groups.push({elements:this,options:a});b._apply(this,a);return this};b.version="master";b._groups=[];b._throttle=80;b._maintainScroll=!1;b._beforeUpdate=null;b._afterUpdate=
39null;b._rows=q;b._parse=g;b._parseOptions=m;b._apply=function(a,e){var d=m(e),h=c(a),k=[h],l=c(window).scrollTop(),f=c("html").outerHeight(!0),n=h.parents().filter(":hidden");n.each(function(){var a=c(this);a.data("style-cache",a.attr("style"))});n.css("display","block");d.byRow&&!d.target&&(h.each(function(){var a=c(this),b=a.css("display");"inline-block"!==b&&"flex"!==b&&"inline-flex"!==b&&(b="block");a.data("style-cache",a.attr("style"));a.css({display:b,"padding-top":"0","padding-bottom":"0",
40"margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),k=q(h),h.each(function(){var a=c(this);a.attr("style",a.data("style-cache")||"")}));c.each(k,function(a,b){var e=c(b),f=0;if(d.target)f=d.target.outerHeight(!1);else{if(d.byRow&&1>=e.length){e.css(d.property,"");return}e.each(function(){var a=c(this),b=a.attr("style"),e=a.css("display");"inline-block"!==e&&"flex"!==e&&"inline-flex"!==e&&(e="block");e={display:e};e[d.property]=
41"";a.css(e);a.outerHeight(!1)>f&&(f=a.outerHeight(!1));b?a.attr("style",b):a.css("display","")})}e.each(function(){var a=c(this),b=0;d.target&&a.is(d.target)||("border-box"!==a.css("box-sizing")&&(b+=g(a.css("border-top-width"))+g(a.css("border-bottom-width")),b+=g(a.css("padding-top"))+g(a.css("padding-bottom"))),a.css(d.property,f-b+"px"))})});n.each(function(){var a=c(this);a.attr("style",a.data("style-cache")||null)});b._maintainScroll&&c(window).scrollTop(l/f*c("html").outerHeight(!0));return this};
42b._applyDataApi=function(){var a={};c("[data-match-height], [data-mh]").each(function(){var b=c(this),d=b.attr("data-mh")||b.attr("data-match-height");a[d]=d in a?a[d].add(b):b});c.each(a,function(){this.matchHeight(!0)})};var r=function(a){b._beforeUpdate&&b._beforeUpdate(a,b._groups);c.each(b._groups,function(){b._apply(this.elements,this.options)});b._afterUpdate&&b._afterUpdate(a,b._groups)};b._update=function(a,e){if(e&&"resize"===e.type){var d=c(window).width();if(d===p)return;p=d}a?-1===f&&
43(f=setTimeout(function(){r(e);f=-1}
43,b._throttle)):r(e)};c(b._applyDataApi);var t=c.fn.on?"on":"bind";c(window)[t]("load",function(a){b._update(!1,a)});c(window)[t]("resize orientationchange",function(a){b._update(!0,a)})});
44svDocReady(function(a){a(".hav-list-page ul").each(function(){var b=3;x=3;a(this).hasClass("hav-list-page-ten")?(a(this).children("li").slice(10).hide().addClass("hav-list__items--item-hidden"),x=b=10):a(this).hasClass("hav-list-page-five")?(a(this).children("li").slice(5).hide().addClass("hav-list__items--item-hidden"),x=b=5):a(this).hasClass("hav-list-page-twenty")?(a(this).children("li").slice(20).hide().addClass("hav-list__items--item-hidden"),x=b=20):a(this).hasClass("hav-list-page-fifty")?(a(this).children("li").slice(50).hide().addClass("hav-list__items--item-hidden"),
45x=b=50):a(this).children("li").slice(3).hide().addClass("hav-list__items--item-hidden");a(this).find("li").length>b&&a(this).find("li:gt("+b+")").hide().end().parent().append(a('\x3cdiv class\x3d"hav-list-page__show-more"\x3e\x3cbutton class\x3d"hav-button__primary hav-list-page__show-more--button"\x3eVisa fler\x3c/button\x3e\x3c/div\x3e').on("click",function(b){b.preventDefault();x+=5;a(b.target).closest(".hav-list-page").find("li").slice(0,x).slideDown();a(b.target).closest(".hav-list-page").find("li").length==
46a(b.target).closest(".hav-list-page").find("li:visible").length&&a(b.target).closest(".hav-list-page").find(".hav-list-page__show-more button").hide()}))})},jQuery);
47!function(g,f){"function"==typeof define&&define.amd?define("typeahead.js",["jquery"],function(g){return f(g)}):"object"==typeof exports?module.exports=f(require("jquery")):f(jQuery)}(this,function(g){var f=function(){return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(d){return!d||/^\s*$/.test(d)},escapeRegExChars:function(d){return d.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$\x26")},
48isString:function(d){return"string"==typeof d},isNumber:function(d){return"number"==typeof d},isArray:g.isArray,isFunction:g.isFunction,isObject:g.isPlainObject,isUndefined:function(d){return"undefined"==typeof d},isElement:function(d){return!(!d||1!==d.nodeType)},isJQuery:function(d){return d instanceof g},toStr:function(d){return f.isUndefined(d)||null===d?"":d+""},bind:g.proxy,each:function(d,e){g.each(d,function(a,b){return e(b,a)})},map:g.map,filter:g.grep,every:function(d,e){var a=!0;return d?
49(g.each(d,function(b,c){return(a=e.call(null,c,b,d))?void 0:!1}),!!a):a},some:function(d,e){var a=!1;return d?(g.each(d,function(b,c){return(a=e.call(null,c,b,d))?!1:void 0}),!!a):a},mixin:g.extend,identity:function(d){return d},clone:function(d){return g.extend(!0,{},d)},getIdGenerator:function(){var d=0;return function(){return d++}},templatify:function(d){function e(){return String(d)}return g.isFunction(d)?d:e},defer:function(d){setTimeout(d,0)},debounce:function(d,e,a){var b,c;return function(){var h,
50l,k=this,f=arguments;return h=function(){b=null;a||(c=d.apply(k,f))},l=a&&!b,clearTimeout(b),b=setTimeout(h,e),l&&(c=d.apply(k,f)),c}},throttle:function(d,e){var a,b,c,h,l,k;return l=0,k=function(){l=new Date;c=null;h=d.apply(a,b)},function(){var f=new Date,n=e-(f-l);return a=this,b=arguments,0>=n?(clearTimeout(c),c=null,l=f,h=d.apply(a,b)):c||(c=setTimeout(k,n)),h}},stringify:function(d){return f.isString(d)?d:JSON.stringify(d)},noop:function(){}}}(),B=function(){function d(a){var c={};return f.each(a,
51function(h,a){c[a]="."+h}),c}function e(){var a={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return f.isMsie()&&f.mixin(a.input,
52{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),a}var a={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-
52open",cursor:"tt-cursor",highlight:"tt-highlight"};return function(b){var c,h;return h=f.mixin({},a,b),c={css:e(),classes:h,html:{wrapper:'\x3cspan class\x3d"'+h.wrapper+'"\x3e\x3c/span\x3e',menu:'\x3cdiv class\x3d"'+
53h.menu+'"\x3e\x3c/div\x3e'},selectors:d(h)},{css:c.css,html:c.html,classes:c.classes,selectors:c.selectors,mixin:function(a){f.mixin(a,c)}}}}(),C=function(){function d(a){a&&a.el||g.error("EventBus initialized without el");this.$el=g(a.el)}var e;return e={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},f.mixin(d.prototype,{_trigger:function(a,b){var c;return c=g.Event("typeahead:"+a),(b=b||[]).unshift(c),this.$el.trigger.apply(this.$el,b),c},before:function(a){var b,
54c;return b=[].slice.call(arguments,1),c=this._trigger("before"+a,b),c.isDefaultPrevented()},trigger:function(a){var b;this._trigger(a,[].slice.call(arguments,1));(b=e[a])&&this._trigger(b,[].slice.call(arguments,1))}}),d}(),w=function(){function d(h,c,e,d){if(!e)return this;c=c.split(b);e=d?a(e,d):e;for(this._callbacks=this._callbacks||{};d=c.shift();)this._callbacks[d]=this._callbacks[d]||{sync:[],async:[]},this._callbacks[d][h].push(e);return this}function e(a,b,c){return function(){for(var e,n=
550,d=a.length;!e&&d>n;n+=1)e=!1===a[n].apply(b,c);return!e}}function a(a,b){return a.bind?a.bind(b):function(){a.apply(b,[].slice.call(arguments,0))}}var b=/\s+/,c=function(){return window.setImmediate?function(a){setImmediate(function(){a()})}:function(a){setTimeout(function(){a()},0)}}();return{onSync:function(a,b,c){return d.call(this,"sync",a,b,c)},onAsync:function(a,b,c){return d.call(this,"async",a,b,c)},off:function(a){var c;if(!this._callbacks)return this;for(a=a.split(b);c=a.shift();)delete this._callbacks[c];
56return this},trigger:function(a){var d,k,f,n,t;if(!this._callbacks)return this;a=a.split(b);for(f=[].slice.call(arguments,1);
56(d=a.shift())&&(k=this._callbacks[d]);)n=e(k.sync,this,[d].concat(f)),t=e(k.async,this,[d].concat(f)),n()&&c(t);return this}}}(),D=function(d){function e(a,c,h){for(var d,e=[],g=0,n=a.length;n>g;g++)e.push(f.escapeRegExChars(a[g]));return d=h?"\\b("+e.join("|")+")\\b":"("+e.join("|")+")",c?new RegExp(d):new RegExp(d,"i")}var a={node:null,pattern:null,tagName:"strong",className:null,
57wordsOnly:!1,caseSensitive:!1};return function(b){function c(a){var h,c,e;return(h=l.exec(a.data))&&(e=d.createElement(b.tagName),b.className&&(e.className=b.className),c=a.splitText(h.index),c.splitText(h[0].length),e.appendChild(c.cloneNode(!0)),a.parentNode.replaceChild(e,c)),!!h}function h(a,b){for(var c,e=0;e<a.childNodes.length;e++)c=a.childNodes[e],3===c.nodeType?e+=b(c)?1:0:h(c,b)}var l;b=f.mixin({},a,b);b.node&&b.pattern&&(b.pattern=f.isArray(b.pattern)?b.pattern:[b.pattern],l=e(b.pattern,
58b.caseSensitive,b.wordsOnly),h(b.node,c))}}(window.document),x=function(){function d(a,b){a=a||{};a.input||g.error("input is missing");b.mixin(this);this.$hint=g(a.hint);this.$input=g(a.input);this.query=this.$input.val();this.queryWhenFocused=this.hasFocus()?this.query:null;var c=this.$input;this.$overflowHelper=g('\x3cpre aria-hidden\x3d"true"\x3e\x3c/pre\x3e').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:c.css("font-family"),fontSize:c.css("font-size"),fontStyle:c.css("font-style"),
59fontVariant:c.css("font-variant"),fontWeight:c.css("font-weight"),wordSpacing:c.css("word-spacing"),letterSpacing:c.css("letter-spacing"),textIndent:c.css("text-indent"),textRendering:c.css("text-rendering"),textTransform:c.css("text-transform")}).insertAfter(c);this._checkLanguageDirection();0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=f.noop)}var e;return e={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},d.normalizeQuery=function(a){return f.toStr(a).replace(/^\s*/g,
60"").replace(/\s{2,}/g," ")},f.mixin(d.prototype,w,{_onBlur:function(){this.resetInputValue();this.trigger("blurred")},_onFocus:function(){this.queryWhenFocused=this.query;this.trigger("focused")},_onKeydown:function(a){var b=e[a.which||a.keyCode];this._managePreventDefault(b,a);b&&this._shouldTrigger(b,a)&&this.trigger(b+"Keyed",a)},_onInput:function(){this._setQuery(this.getInputValue());this.clearHintIfInvalid();this._checkLanguageDirection()},_managePreventDefault:function(a,b){var c;switch(a){case "up":case "down":c=
61!(b.altKey||b.ctrlKey||b.metaKey||b.shiftKey);break;default:c=!1}c&&b.preventDefault()},_shouldTrigger:function(a,b){var c;switch(a){case "tab":c=!(b.altKey||b.ctrlKey||b.metaKey||b.shiftKey);break;default:c=!0}return c},_checkLanguageDirection:function(){var a=(this.$input.css("direction")||"ltr").toLowerCase();this.dir!==a&&(this.dir=a,this.$hint.attr("dir",a),this.trigger("langDirChanged",a))},_setQuery:function(a,b){var c,h;c=this.query;h=(c=d.normalizeQuery(a)===d.normalizeQuery(c))?this.query.length!==
62a.length:!1;this.query=a;b||c?!b&&h&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},bind:function(){var a,b,c,h,d=this;return a=f.bind(this._onBlur,this),b=f.bind(this._onFocus,this),c=f.bind(this._onKeydown,this),h=f.bind(this._onInput,this),this.$input.on("blur.tt",a).on("focus.tt",b).on("keydown.tt",c),!f.isMsie()||9<f.isMsie()?this.$input.on("input.tt",h):this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(a){e[a.which||a.keyCode]||f.defer(f.bind(d._onInput,
63d,a))}),this},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getLangDir:function(){return this.dir},getQuery:function(){return this.query||""},setQuery:function(a,b){this.setInputValue(a);this._setQuery(a,b)},hasQueryChangedSinceLastFocus:function(){return this.query!==this.queryWhenFocused},getInputValue:function(){return this.$input.val()},setInputValue:function(a){this.$input.val(a);this.clearHintIfInvalid();this._checkLanguageDirection()},resetInputValue:function(){this.setInputValue(this.query)},
64getHint:function(){return this.$hint.val()},setHint:function(a){this.$hint.val(a)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var a,b;a=this.getInputValue();b=this.getHint();b=a!==b&&0===b.indexOf(a);""!==a&&b&&!this.hasOverflow()||this.clearHint()},hasFocus:function(){return this.$input.is(":focus")},hasOverflow:function(){var a=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=a},isCursorAtEnd:function(){var a,b,
65c;return a=this.$input.val().length,b=this.$input[0].selectionStart,f.isNumber(b)?b===a:document.selection?(c=document.selection.createRange(),c.moveStart("character",-a),a===c.text.length):!0},destroy:function(){this.$hint.off(".tt");this.$input.off(".tt");this.$overflowHelper.remove();
65this.$hint=this.$input=this.$overflowHelper=g("\x3cdiv\x3e")}}),d}(),z=function(){function d(b,d){b=b||{};b.templates=b.templates||{};b.templates.notFound=b.templates.notFound||b.templates.empty;b.source||g.error("missing source");
66b.node||g.error("missing node");b.name&&!/^[_a-zA-Z0-9-]+$/.test(b.name)&&g.error("invalid dataset name: "+b.name);d.mixin(this);this.highlight=!!b.highlight;this.name=b.name||c();this.limit=b.limit||5;this.displayFn=e(b.display||b.displayKey);this.templates=a(b.templates,this.displayFn);this.source=b.source.__ttAdapter?b.source.__ttAdapter():b.source;this.async=f.isUndefined(b.async)?2<this.source.length:!!b.async;this._resetLastSuggestion();this.$el=g(b.node).addClass(this.classes.dataset).addClass(this.classes.dataset+
67"-"+this.name)}function e(a){function b(c){return c[a]}return a=a||f.stringify,f.isFunction(a)?a:b}function a(a,b){function c(a){return g("\x3cdiv\x3e").text(b(a))}return{notFound:a.notFound&&f.templatify(a.notFound),pending:a.pending&&f.templatify(a.pending),header:a.header&&f.templatify(a.header),footer:a.footer&&f.templatify(a.footer),suggestion:a.suggestion||c}}var b,c;return b={val:"tt-selectable-display",obj:"tt-selectable-object"},c=f.getIdGenerator(),d.extractData=function(a){a=g(a);return a.data(b.obj)?
68{val:a.data(b.val)||"",obj:a.data(b.obj)||null}:null},f.mixin(d.prototype,w,{_overwrite:function(a,b){b=b||[];b.length?this._renderSuggestions(a,b):this.async&&this.templates.pending?this._renderPending(a):!this.async&&this.templates.notFound?this._renderNotFound(a):this._empty();this.trigger("rendered",this.name,b,!1)},_append:function(a,b){b=b||[];b.length&&this.$lastSuggestion.length?this._appendSuggestions(a,b):b.length?this._renderSuggestions(a,b):!this.$lastSuggestion.length&&this.templates.notFound&&
69this._renderNotFound(a);this.trigger("rendered",this.name,b,!0)},_renderSuggestions:function(a,b){var c;c=this._getSuggestionsFragment(a,b);this.$lastSuggestion=c.children().last();this.$el.html(c).prepend(this._getHeader(a,b)).append(this._getFooter(a,b))},_appendSuggestions:function(a,b){var c,e;c=this._getSuggestionsFragment(a,b);e=c.children().last();this.$lastSuggestion.after(c);this.$lastSuggestion=e},_renderPending:function(a){var b=this.templates.pending;this._resetLastSuggestion();b&&this.$el.html(b({query:a,
70dataset:this.name}))},_renderNotFound:function(a){var b=this.templates.notFound;this._resetLastSuggestion();b&&this.$el.html(b({query:a,dataset:this.name}))},_empty:function(){this.$el.empty();this._resetLastSuggestion()},_getSuggestionsFragment:function(a,c){var e,d=this;return e=document.createDocumentFragment(),f.each(c,function(c){var f;f=d._injectQuery(a,c);c=g(d.templates.suggestion(f)).data(b.obj,c).data(b.val,d.displayFn(c)).addClass(d.classes.suggestion+" "+d.classes.selectable);e.appendChild(c[0])}),
71this.highlight&&D({className:this.classes.highlight,node:e,pattern:a}),g(e)},_getFooter:function(a,b){return this.templates.footer?this.templates.footer({query:a,suggestions:b,dataset:this.name}):null},_getHeader:function(a,b){return this.templates.header?this.templates.header({query:a,suggestions:b,dataset:this.name}):null},_resetLastSuggestion:function(){this.$lastSuggestion=g()},_injectQuery:function(a,b){return f.isObject(b)?f.mixin({_query:a},b):b},update:function(a){function b(e){d||(d=!0,e=
72(e||[]).slice(0,c.limit),f=e.length,c._overwrite(a,e),f<c.limit&&c.async&&c.trigger("asyncRequested",a))}var c=this,e=!1,d=!1,f=0;this.cancel();this.cancel=function(){e=!0;c.cancel=g.noop;c.async&&c.trigger("asyncCanceled",a)};this.source(a,b,function(b){b=b||[];!e&&f<c.limit&&(c.cancel=g.noop,f+=b.length,c._append(a,b.slice(0,c.limit-f)),c.async&&c.trigger("asyncReceived",a))});!d&&b([])},cancel:g.noop,clear:function(){this._empty();this.cancel();this.trigger("cleared")},isEmpty:function(){return this.$el.is(":empty")},
73destroy:function(){this.$el=g("\x3cdiv\x3e")}}),d}(),v=function(){function d(e,a){var b=this;e=e||{};e.node||g.error("node is required");a.mixin(this);this.$node=g(e.node);this.query=null;this.datasets=f.map(e.datasets,function(c){var e=b.$node.find(c.node).first();return c.node=e.length?e:g("\x3cdiv\x3e").appendTo(b.$node),new z(c,a)})}return f.mixin(d.prototype,w,{_onSelectableClick:function(e){this.trigger("selectableClicked",g(e.currentTarget))}
73,_onRendered:function(e,a,b,c){this.$node.toggleClass(this.classes.empty,
74this._allDatasetsEmpty());this.trigger("datasetRendered",a,b,c)},_onCleared:function(){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty());this.trigger("datasetCleared")},_propagate:function(){this.trigger.apply(this,arguments)},_allDatasetsEmpty:function(){return f.every(this.datasets,function(e){return e.isEmpty()})},_getSelectables:function(){return this.$node.find(this.selectors.selectable)},_removeCursor:function(){var e=this.getActiveSelectable();e&&e.removeClass(this.classes.cursor)},
75_ensureVisible:function(e){var a,b,c;a=e.position().top;e=a+e.outerHeight(!0);b=this.$node.scrollTop();c=this.$node.height()+parseInt(this.$node.css("paddingTop"),10)+parseInt(this.$node.css("paddingBottom"),10);0>a?this.$node.scrollTop(b+a):e>c&&this.$node.scrollTop(b+(e-c))},bind:function(){var e,a=this;return e=f.bind(this._onSelectableClick,this),this.$node.on("click.tt",this.selectors.selectable,e),f.each(this.datasets,function(b){b.onSync("asyncRequested",a._propagate,a).onSync("asyncCanceled",
76a._propagate,a).onSync("asyncReceived",a._propagate,a).onSync("rendered",a._onRendered,a).onSync("cleared",a._onCleared,a)}),this},isOpen:function(){return this.$node.hasClass(this.classes.open)},open:function(){this.$node.addClass(this.classes.open)},close:function(){this.$node.removeClass(this.classes.open);this._removeCursor()},setLanguageDirection:function(e){this.$node.attr("dir",e)},selectableRelativeToCursor:function(e){var a,b,c,d;return b=this.getActiveSelectable(),a=this._getSelectables(),
77c=b?a.index(b):-1,d=c+e,d=(d+1)%(a.length+1)-1,d=-1>d?a.length-1:d,-1===d?null:a.eq(d)},setCursor:function(e){this._removeCursor();(e=e&&e.first())&&(e.addClass(this.classes.cursor),this._ensureVisible(e))},getSelectableData:function(e){return e&&e.length?z.extractData(e):null},getActiveSelectable:function(){var e=this._getSelectables().filter(this.selectors.cursor).first();return e.length?e:null},getTopSelectable:function(){var e=this._getSelectables().first();return e.length?e:null},update:function(e){function a(a){a.update(e)}
78var b=e!==this.query;return b&&(this.query=e,f.each(this.datasets,a)),b},empty:function(){f.each(this.datasets,function(e){e.clear()});this.query=null;this.$node.addClass(this.classes.empty)},destroy:function(){this.$node.off(".tt");this.$node=g("\x3cdiv\x3e");f.each(this.datasets,function(e){e.destroy()})}}),d}(),E=function(){function d(){v.apply(this,[].slice.call(arguments,0))}var e=v.prototype;return f.mixin(d.prototype,v.prototype,{open:function(){return!this._allDatasetsEmpty()&&this._show(),
79e.open.apply(this,[].slice.call(arguments,0))},close:function(){return this._hide(),e.close.apply(this,[].slice.call(arguments,0))},_onRendered:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),e._onRendered.apply(this,[].slice.call(arguments,0))},_onCleared:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),e._onCleared.apply(this,[].slice.call(arguments,0))},setLanguageDirection:function(a){return this.$node.css("ltr"===a?this.css.ltr:
80this.css.rtl),e.setLanguageDirection.apply(this,[].slice.call(arguments,0))},_hide:function(){this.$node.hide()},_show:function(){this.$node.css("display","block")}}),d}(),F=function(){function d(a,b){var c,d,l,k,m,n,t,y,p,A,q;a=a||{};a.input||g.error("missing input");a.menu||g.error("missing menu");a.eventBus||g.error("missing event bus");b.mixin(this);this.eventBus=a.eventBus;this.minLength=f.isNumber(a.minLength)?a.minLength:1;this.input=a.input;this.menu=a.menu;this.enabled=!0;this.active=!1;
81this.input.hasFocus()&&this.activate();this.dir=this.input.getLangDir();this._hacks();this.menu.bind().onSync("selectableClicked",this._onSelectableClicked,this).onSync("asyncRequested",this._onAsyncRequested,this).onSync("asyncCanceled",this._onAsyncCanceled,this).onSync("asyncReceived",this._onAsyncReceived,this).onSync("datasetRendered",this._onDatasetRendered,this).onSync("datasetCleared",this._onDatasetCleared,this);c=e(this,"activate","open","_onFocused");d=e(this,"deactivate","_onBlurred");
82l=e(this,"isActive","isOpen","_onEnterKeyed");k=e(this,"isActive","isOpen","_onTabKeyed");m=e(this,"isActive","_onEscKeyed");n=e(this,"isActive","open","_onUpKeyed");t=e(this,"isActive","open","_onDownKeyed");y=e(this,"isActive","isOpen","_onLeftKeyed");p=e(this,"isActive","isOpen","_onRightKeyed");A=e(this,"_openIfActive","_onQueryChanged");q=e(this,"_openIfActive","_onWhitespaceChanged");this.input.bind().onSync("focused",c,this).onSync("blurred",d,this).onSync("enterKeyed",l,this).onSync("tabKeyed",
83k,this).onSync("escKeyed",m,this).onSync("upKeyed",n,this).onSync("downKeyed",t,this).onSync("leftKeyed",y,this).onSync("rightKeyed",p,this).onSync("queryChanged",A,this).onSync("whitespaceChanged",q,this).onSync("langDirChanged",this._onLangDirChanged,this)}function e(a){var b=[].slice.call(arguments,1);return function(){var c=[].slice.call(arguments);f.each(b,function(b){return a[b].apply(a,c)})}}return f.mixin(d.prototype,{_hacks:function(){var a,b;a=this.input.$input||g("\x3cdiv\x3e");b=this.menu.$node||
84g("\x3cdiv\x3e");a.on("blur.tt",function(c){var e,d;e=document.activeElement;d=b.is(e);e=0<b.has(e).length;f.isMsie()&&(d||e)&&(c.preventDefault(),c.stopImmediatePropagation(),f.defer(function(){a.focus()}))});b.on("mousedown.tt",function(a){a.preventDefault()})},_onSelectableClicked:function(a,b){this.select(b)},_onDatasetCleared:function(){this._updateHint()},_onDatasetRendered:function(a,b,c,e){this._updateHint();this.eventBus.trigger("render",c,e,b)},_onAsyncRequested:function(a,b,c){this.eventBus.trigger("asyncrequest",
85c,b)},_onAsyncCanceled:function(a,b,c){this.eventBus.trigger("asynccancel",c,b)},_onAsyncReceived:function(a,b,c){this.eventBus.trigger("asyncreceive",c,b)},_onFocused:function(){this._minLengthMet()&&this.menu.update(this.input.getQuery())},_onBlurred:function(){this.input.hasQueryChangedSinceLastFocus()&&this.eventBus.trigger("change",this.input.getQuery())},_onEnterKeyed:function(a,b){var c;(c=this.menu.getActiveSelectable())&&this.select(c)&&b.preventDefault()},_onTabKeyed:function(a,b){var c;
86(c=this.menu.getActiveSelectable())?this.select(c)&&b.preventDefault():(c=this.menu.getTopSelectable())&&this.autocomplete(c)&&b.preventDefault()},_onEscKeyed:function(){this.close()},_onUpKeyed:function(){this.moveCursor(-1)},_onDownKeyed:function(){this.moveCursor(1)},_onLeftKeyed:function(){"rtl"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onRightKeyed:function(){"ltr"===this.dir&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},
87_onQueryChanged:function(a,b){this._minLengthMet(b)?this.menu.update(b):this.menu.empty()},_onWhitespaceChanged:function(){this._updateHint()},_onLangDirChanged:function(a,b){this.dir!==b&&(this.dir=b,this.menu.setLanguageDirection(b))},_openIfActive:function(){this.isActive()&&this.open()},_minLengthMet:function(a){return a=f.isString(a)?a:this.input.getQuery()||"",a.length>=this.minLength},_updateHint:function(){var a,b,c,e,d,g;a=this.menu.getTopSelectable();a=this.menu.getSelectableData(a);b=this.input.getInputValue();
88!a||f.isBlankString(b)||this.input.hasOverflow()?this.input.clearHint():(c=x.normalizeQuery(b),e=f.escapeRegExChars(c),d=new RegExp("^(?:"+e+")(.+$)","i"),g=d.exec(a.val),g&&this.input.setHint(b+g[1]))},isEnabled:function(){return this.enabled},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},isActive:function(){return this.active},activate:function(){return this.isActive()?!0:!this.isEnabled()||this.eventBus.before("active")?!1:(this.active=!0,this.eventBus.trigger("active"),
89!0)},deactivate:function(){return this.isActive()?this.eventBus.before("idle")?!1:(this.active=!1,this.close(),this.eventBus.trigger("idle"),!0):!0},isOpen:function(){return this.menu.isOpen()},open:function(){return this.isOpen()||this.eventBus.before("open")||(this.menu.open(),this._updateHint(),this.eventBus.trigger("open")),this.isOpen()},close:function(){return this.isOpen()&&!this.eventBus.before("close")&&(this.menu.close(),this.input.clearHint(),this.input.resetInputValue(),this.eventBus.trigger("close")),
90!this.isOpen()},setVal:function(a){this.input.setQuery(f.toStr(a))},getVal:function(){return this.input.getQuery()},select:function(a){return(a=this.menu.getSelectableData(a))&&!this.eventBus.before("select",a.obj)?(this.input.setQuery(a.val,!0),this.eventBus.trigger("select",a.obj),this.close(),!0):!1},autocomplete:function(a){var b,c,e;return b=this.input.getQuery(),c=this.menu.getSelectableData(a),e=c&&b!==c.val,e&&!this.eventBus.before("autocomplete",c.obj)?(this.input.setQuery(c.val),this.eventBus.trigger("autocomplete",
91c.obj),!0):!1},moveCursor:function(a){var b,c,e,d,f;return b=this.input.getQuery(),c=this.menu.selectableRelativeToCursor(a),e=this.menu.getSelectableData(c),d=e?e.obj:null,f=this._minLengthMet()&&this.menu.update(b),f||this.eventBus.before("cursorchange",d)?!1:(this.menu.setCursor(c),e?this.input.setInputValue(e.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",d),!0)},destroy:function(){this.input.destroy();this.menu.destroy()}}),d}();!function(){function d(a,
92b){a.each(function(){var a,c=g(this);(a=c.data(k.typeahead))&&b(a,c)})}function e(a,c){return a.clone().addClass(c.classes.hint).removeData().css(c.css.hint).css(b(a)).prop("readonly",!0).removeAttr("id n
92ame placeholder required").attr({autocomplete:"off",spellcheck:"false",tabindex:-1})}function a(a,b){a.data(k.attrs,{dir:a.attr("dir"),autocomplete:a.attr("autocomplete"),spellcheck:a.attr("spellcheck"),style:a.attr("style")});a.addClass(b.classes.input).attr({autocomplete:"off",spellcheck:!1});try{!a.attr("dir")&&
93a.attr("dir","auto")}catch(c){}return a}function b(a){return{backgroundAttachment:a.css("background-attachment"),backgroundClip:a.css("background-clip"),backgroundColor:a.css("background-color"),backgroundImage:a.css("background-image"),backgroundOrigin:a.css("background-origin"),backgroundPosition:a.css("background-position"),backgroundRepeat:a.css("background-repeat"),backgroundSize:a.css("background-size")}}function c(a){var b,c;b=a.data(k.www);c=a.parent().filter(b.selectors.wrapper);f.each(a.data(k.attrs),
94function(b,c){f.isUndefined(b)?a.removeAttr(c):a.attr(c,b)});a.removeData(k.typeahead).removeData(k.www).removeData(k.attr).removeClass(b.classes.input);c.length&&(a.detach().insertAfter(c),c.remove())}function h(a){var b,c;return b=f.isJQuery(a)||f.isElement(a),c=b?g(a).first():[],c.length?c:null}var l,k,m;l=g.fn.typeahead;k={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"};m={initialize:function(b,c){var d;return c=f.isArray(c)?c:[].slice.call(arguments,1),b=b||{},d=B(b.classNames),this.each(function(){var p,
95l,q,r,m,u;f.each(c,function(a){a.highlight=!!b.highlight});p=g(this);l=g(d.html.wrapper);q=h(b.hint);r=h(b.menu);m=!1!==b.hint&&!q;u=!1!==b.menu&&!r;m&&(q=e(p,d));u&&(r=g(d.html.menu).css(d.css.menu));q&&q.val("");p=a(p,d);(m||u)&&(l.css(d.css.wrapper),p.css(m?d.css.input:d.css.inputWithNoHint),p.wrap(l).parent().prepend(m?q:null).append(u?r:null));m=u?E:v;l=new C({el:p});q=new x({hint:q,input:p},d);r=new m({node:r,datasets:c},d);r=new F({input:q,menu:r,eventBus:l,minLength:b.minLength},d);p.data(k.www,
96d);p.data(k.typeahead,r)})},isEnabled:function(){var a;return d(this.first(),function(b){a=b.isEnabled()}),a},enable:function(){return d(this,function(a){a.enable()}),this},disable:function(){return d(this,function(a){a.disable()}),this},isActive:function(){var a;return d(this.first(),function(b){a=b.isActive()}),a},activate:function(){return d(this,function(a){a.activate()}),this},deactivate:function(){return d(this,function(a){a.deactivate()}),this},isOpen:function(){var a;return d(this.first(),
97function(b){a=b.isOpen()}),a},open:function(){return d(this,function(a){a.open()}),this},close:function(){return d(this,function(a){a.close()}),this},select:function(a){var b=!1,c=g(a);return d(this.first(),function(a){b=a.select(c)}),b},autocomplete:function(a){var b=!1,c=g(a);return d(this.first(),function(a){b=a.autocomplete(c)}),b},moveCursor:function(a){var b=!1;return d(this.first(),function(c){b=c.moveCursor(a)}),b},val:function(a){var b;return arguments.length?(d(this,function(b){b.setVal(a)}),
98this):(d(this.first(),function(a){b=a.getVal()}),b)},destroy:function(){return d(this,function(a,b){c(b);a.destroy()}),this}};g.fn.typeahead=function(a){return m[a]?m[a].apply(this,[].slice.call(arguments,1)):m.initialize.apply(this,arguments)};g.fn.typeahead.noConflict=function(){return g.fn.typeahead=l,this}}()});
99svDocReady(function(f){function c(a,b){b=b||0;jQuery.getScript(a[b],function(){b++;a.length>b&&c(a,b)})}var d=document.querySelector("#hav-footer__animation"),e=function(a,b){var c=new IntersectionObserver(function(a){a.some(function(a){return a.isIntersecting})&&(c.disconnect(),b())});c.observe(a)};svDocReady(function(){(function(a){e(d,function(){window.matchMedia("(min-width: 990px)").matches&&c(["/download/18.19121d3e1740035673c550e/1598459359811/lottie.min.js","/download/18.3b63ec651740ce1599050f42/1598459374321/hav-animation.js"])})})(jQuery)})},
100jQuery);
101svDocReady(function(a){if(a(".hav-decoration-accordion__heading").length&&(a(".hav-decoration-accordion-pv").length?(a(".hav-decoration-accordion").find(".hav-decoration-accordion-content\x3e.sv-decoration-content").hide(),a(".hav-decoration-accordion").find(".hav-decoration-accordion-content\x3e.sv-decoration-content").attr("aria-hidden","true")):(a(".hav-decoration-accordion").find(".sv-decoration-content").hide(),a(".hav-decoration-accordion").find(".sv-decoration-content").attr("aria-hidden",
102"true")),window.location.hash)){var h=window.location.hash.substring(1);a("#"+h).find(".sv-decoration-content").first().slideToggle("fast");a(parent).hasClass("hav-decoration-accordion--open")?a(parent).removeClass("hav-decoration-accordion--open"):a(parent).addClass("hav-decoration-accordion--open")}a(".hav-decoration-accordion__heading").on("click",function(b){b.preventDefault();b=a(this).closest(".hav-decoration-accordion");a(b).find(".sv-decoration-content").first().slideToggle("fast");a(b).hasClass("hav-decoration-accordion--open")?
103a(b).removeClass("hav-decoration-accordion--open"):a(b).addClass("hav-decoration-accordion--open");b=a(this).find(".hav-decoration-accordion__icon");var c=a(this).find(".hav-decoration-accordion__section-icon"),d=a(this).find(".hav-decoration-accordion__check-icon"),e=a(this).find(".hav-decoration-accordion__search-icon"),f=a(this).find(".hav-decoration-accordion-pv__number--number-icon"),g=
103a(this).find(".hav-decoration-accordion-pv__number--collapse-icon");"false"===a(this).attr("aria-expanded")?
104(a(this).attr("aria-expanded","true"),a(this).parent().siblings().children(".sv-decoration-content").attr("aria-hidden","false"),a(this).hasClass("hav-decoration-collapse")?a(this).children(".hav-decoration-accordion__icon").removeClass("hav-decoration-accordion__icon--plus").addClass("hav-decoration-accordion__icon--minus-blue"):a(this).children(".hav-decoration-accordion__icon").removeClass("hav-decoration-accordion__icon--plus").addClass("hav-decoration-accordion__icon--minus"),a(b).hasClass("hav-decoration-accordion-pv__icon")&&
105a(b).removeClass("hav-decoration-accordion-pv__icon--plus").addClass("hav-decoration-accordion-pv__icon--minus"),c&&a(c).removeClass("hav-decoration-accordion__section-icon--plus").addClass("hav-decoration-accordion__section-icon--minus"),d&&a(d).removeClass("hav-decoration-accordion__check-icon--plus").addClass("hav-decoration-accordion__check-icon--minus"),e&&a(e).removeClass("hav-decoration-accordion__search-icon--plus").addClass("hav-decoration-accordion__search-icon--minus"),f&&a(f).removeClass("hav-decoration-accordion-pv__number--number-icon-plus").addClass("hav-decoration-accordion-pv__number--number-icon-minus"),
106g&&a(g).removeClass("hav-decoration-accordion__icon--plus").addClass("hav-decoration-accordion__icon--minus")):(a(this).attr("aria-expanded","false"),a(this).parent().siblings().children(".sv-decoration-content").attr("aria-hidden","true"),a(this).hasClass("hav-decoration-collapse")?a(this).children(".hav-decoration-accordion__icon").removeClass("hav-decoration-accordion__icon--minus-blue").addClass("hav-decoration-accordion__icon--plus"):a(this).children(".hav-decoration-accordion__icon").removeClass("hav-decoration-accordion__icon--minus").addClass("hav-decoration-accordion__icon--plus"),
107a(b).hasClass("hav-decoration-accordion-pv__icon")&&a(b).removeClass("hav-decoration-accordion-pv__icon--minus").addClass("hav-decoration-accordion-pv__icon--plus"),c&&a(c).removeClass("hav-decoration-accordion__section-icon--minus").addClass("hav-decoration-accordion__section-icon--plus"),d&&a(d).removeClass("hav-decoration-accordion__check-icon--minus").addClass("hav-decoration-accordion__check-icon--plus"),e&&a(e).removeClass("hav-decoration-accordion__search-icon--minus").addClass("hav-decoration-accordion__search-icon--plus"),
108f&&a(f).removeClass("hav-decoration-accordion-pv__number--number-icon-minus").addClass("hav-decoration-accordion-pv__number--number-icon-plus"),g&&a(g).removeClass("hav-decoration-accordion__icon--minus").addClass("hav-decoration-accordion__icon--plus"))})},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.