/* --- source: /modules/jsmanager/resources/jsmin/5/resources/js/jquery/jquery.sceventsender-min.js (minified version of /5/resources/js/jquery/jquery.sceventsender.js) --- */
"function"!=typeof Object.create&&(Object.create=function(obj){function F(){}return F.prototype=obj,new F}),function($,window,document,undefined){var ScEventSender={init:function(config){if(this.config=$.extend({},$.fn.scEventSender.config,config),void 0==this.config.siteCatalyst||void 0==this.config.siteCatalyst.tl)throw"Site Catalyst not found";for(method in $.fn.scEventSender.methods)$.fn.scEventSender.methods[method](this)},sendEvent:function(element,customLink){var events={},$element=$(element),props=(void 0!==$element.attr("data-scPropsList")?$element.attr("data-scPropsList"):"").split(",");events.linkTrackVars=$element.attr("data-scPropsList")+",prop12",events.prop12=this.config.siteCatalyst.pageName;for(var i=0;i<props.length;i++)events[props[i]]=$element.attr("data-sc"+props[i]);try{this.config.siteCatalyst.tl(element,"o",customLink,events)}catch(e){"undefined"!=typeof console&&console.log(e)}},sendEventJson:function(json){json.scvars.linkTrackVars+=",prop12",json.scvars.prop12=this.config.siteCatalyst.pageName,this.config.siteCatalyst.tl(!0,"o",json.customLink,json.scvars)}};$.fn.scEventSender=function(config,argumentsConfig){config=$.extend({},config,argumentsConfig);var scEventSender=Object.create(ScEventSender);return scEventSender.init(config),scEventSender},$.fn.scEventSender.config={trackEvents:"prop12"},$.fn.scEventSender.methods={onElementClickedEvents:function(plugin){$("[data-scEventClick]").each(function(){$(this).click(function(){plugin.sendEvent(this,$(this).attr("data-scEventClick"))})})},onElementLinkClickedEvents:function(plugin){$("[data-scEventLinkClick]").each(function(){$(this).click(function(event){$self=$(this),event.preventDefault(),plugin.sendEvent(this,$(this).attr("data-scEventLinkClick"));setTimeout(function(){window.location=$self.attr("href")},600)})})},onMouseOverElementEvents:function(plugin){$("[data-scEventMouseOver]").each(function(){$(this).mouseover(function(){plugin.sendEvent(this,$(this).attr("data-scEventMouseOver"))})})},onElementPresentEvents:function(plugin){$("[data-scEventElementPresent]").each(function(){plugin.sendEvent(this,$(this).attr("data-scEventElementPresent"))})},onListenerEvents:function(plugin){$.subscribe("scEventSender.call",function(event,element,customLink){plugin.sendEvent(element,customLink)})},onListenerEventsJson:function(plugin){$.subscribe("scEventSender.callJson",function(event,json){plugin.sendEventJson(json)})}},$(function(){void 0!=window.s&&void 0!==s.tl&&(scEventSender=jQuery("body").scEventSender({siteCatalyst:s}))})}(jQuery,window,document);;
/* --- source: /modules/jsmanager/resources/jsmin/modules/jobagent/resources/js/japu-min.js (minified version of /modules/jobagent/resources/js/japu.js) --- */
!function($,window,document,undefined){function Plugin(element,options){this.element=element,this.settings=$.extend({},defaults,options),this._defaults=defaults,this._name=pluginName,this.japuWindow=null,log("Attaching JAPU to",this.element),this.init()}var pluginName="japu",defaults={windowName:"JAPU",windowProperties:"width=750,height=500,scrollbars=yes,resizable=yes,status=no,location=no,toolbar=no,menubar=no",autoOpen:!1,japuURL:"/5/jobagent/japu",forceHTTPS:!1,autoParams:{from:"jaf",id:"jai",jasource:"jas"},popup:!1},log=function(){if("object"==typeof console&&"function"==typeof console.log)try{var params=Array.prototype.slice.call(arguments);params.unshift(">>>> Job Agent >>>> japu.js >>>>"),console.log.apply(console,params)}catch(e){}};Plugin.prototype={init:function(){var openFunc=$.proxy(this.open,this);$(this.element).click(openFunc).parents("form").submit(openFunc),this.settings.autoOpen&&openFunc()},open:function(){if(1!=$.cookie("DONTSHOWJAPU")){log("Opening JAPU"),this.japuWindow=!0;var url=this.settings.japuURL,autoparams=function(element,config){var $element=$(element);if($element.is("[data-japu]")){var tmp,ret={};for(var p in config)(tmp=$element.attr("data-japu-"+p))&&(ret[p]=tmp);return ret}var classes=$element.attr("class");classes&&(classes=classes.split(" "));ret={};return $.each(classes,function(){for(var p in config)if(this.substring(0,config[p].length+1)==config[p]+"_"){ret[p]=this.substring(config[p].length+1,this.length);break}}),ret}(this.element,this.settings.autoParams);log("Adding params if any:",autoparams);for(var p in autoparams)url+="/"+encodeURIComponent(p)+"/"+encodeURIComponent(autoparams[p]);-1!=window.location.toString().search("-inline")&&(url+="/newSource/japu-listing"),this.settings.forceHTTPS&&"https:"!=window.location.protocol&&(url="https://"+window.location.host+url),this.japuWindow=window.open(url,this.settings.windowName,this.settings.windowProperties),$(this.element).data("japuWindow",this.japuWindow),this.settings.popup||(this.japuWindow.blur(),this.japuWindow.opener.focus())}else log("JAPU blocked by COOKIE")}},$.fn[pluginName]=function(options){var params=Array.prototype.slice.call(arguments),action=params.shift();return this.each(function(){$.data(this,"plugin_"+pluginName)?$.isFunction(Plugin.prototype[action])&&$.data(this,"plugin_"+pluginName)[action].apply($.data(this,"plugin_"+pluginName),params):$.data(this,"plugin_"+pluginName,new Plugin(this,action))})}}(jQuery,window,document);;
/* --- source: /modules/jsmanager/resources/jsmin/modules/jobagent/resources/js/trigger-japu-min.js (minified version of /modules/jobagent/resources/js/trigger-japu.js) --- */
!function($){$(function(){$("#SearchButton,#AdvancedSearchButton,#FooterSearchButton,#SearchForm_SearchButton").addClass("addjapu jas_japu-homepage"),$("#LatestListings,#PopularListings,#submitQuickSearch,#submitQuickSearchTop").addClass("addjapu jas_japu-homepage"),$("#fuzzysearch_button1,#fuzzysearch_button2,.zoomSubmit").addClass("addjapu jas_japu-homepage"),$("body").hasClass("nojapu")&&($(".nojapu #SearchButton, .nojapu #FooterSearchButton, .nojapu #AdvancedSearchButton").removeClass("addjapu jas_japu-homepage"),$("#SearchButton, #AdvancedSearchButton, #FooterSearchButton, #SearchForm_SearchButton, #LatestListings, #PopularListings, #submitQuickSearch, #submitQuickSearchTop, #fuzzysearch_button1, #fuzzysearch_button2, .zoomSubmit").on("click",function(){$.cookie("showJapuboxPopup","true",{path:"/",domain:document.location.hostname,secure:!1})})),$("#hotJobs").find("li a").addClass("addjapu jas_japu-homepage");$("body").on("click",".addjapu,[data-japu]",function(){var popup=$(this).is(".japopup")||$(this).is("[data-japu-popup]");$(this).japu({autoOpen:!0,popup:popup,forceHTTPS:$(this).hasClass("jsForce"),windowParams:{width:void 0,height:void 0}})})})}(jQuery);;
/* --- source: /modules/jsmanager/resources/jsmin/modules/logger/resources/js/datalayer-min.js (minified version of /modules/logger/resources/js/datalayer.js) --- */
!function($){$(function(){var log=function(){if("object"==typeof console&&"function"==typeof console.log)try{var params=Array.prototype.slice.call(arguments);params.unshift(">>>> Logger >>>> datalayer.js >>>>"),console.log.apply(console,params)}catch(e){}},queue=[],isAARequestPending=!1;$.subscribe("digitaldatalayer.analyticsRequestEnded",function(){isAARequestPending=!1,function(trackingData){if(trackingData){isAARequestPending=!0;var originalTrackingData=window.digitalData,newTrackingData=$.extend(!0,{},originalTrackingData,trackingData);if(window.digitalData=newTrackingData,"object"==typeof utag&&!("datalayer__version"in utag_data)){var events=[];for(var ev in window.digitalData.event)if("attributes"!=ev&&trackingData.event.hasOwnProperty(ev)){var value;if(value="digitalData"in window&&"event"in window.digitalData&&"attributes"in window.digitalData.event&&"dtm"in window.digitalData.event.attributes?-1!=ev.toLowerCase().indexOf("event_")?'"'+ev.toLowerCase()+'": "true"':'"event_'+ev.toLowerCase()+'": "true"':'"dtm_event_'+ev.toLowerCase()+'": "true"',"attributes"in window.digitalData.event&&"arguments"in window.digitalData.event.attributes)for(var key in window.digitalData.event.attributes.arguments)value+=', "'+key+'": "'+window.digitalData.event.attributes.arguments[key]+'"';events.push(value)}if(events.length>0){var data="{"+events.join()+"}";"view"in window.digitalData.event.attributes?utag.view(jQuery.parseJSON(data)):utag.link(jQuery.parseJSON(data))}}setTimeout(function(){$.publish("digitaldatalayer.analyticsRequestEnded")},500)}else $.publish("digitaldatalayer.queueFinished")}(queue.shift())}),$.subscribe("digitaldatalayer.queueFinished",function(){log("DDL queue is empty. No more requests to process.")});$.subscribe("tracking.digitaldatalayer",function(_,trackingData,xhr){xhr.url&&(trackingData.page||(trackingData.page={}),trackingData.page.destinationURL=xhr.url),!function(trackingData){try{var found=!1;for(var i in trackingData.event)if("attributes"!=i&&trackingData.event.hasOwnProperty(i)){found=!0;break}return found}catch(e){return!1}}(trackingData)?log("No events in data, skipping"):(queue.push(trackingData),isAARequestPending||$.publish("digitaldatalayer.analyticsRequestEnded"))}),$.ddl={findNode:function(key,create){for(var path=key.split("."),plen=path.length,root=window.digitalData,i=0;i<plen-1;i++)if(root[path[i]])root=root[path[i]];else{if(!create)return!1;root[path[i]]={},root=root[path[i]]}return root},get:function(key,defaultValue){var root=$.ddl.findNode(key),k=key.split(".").pop();return!1!==root&&void 0!==root[k]?root[k]:void 0!==defaultValue?defaultValue:void 0},set:function(key,value,force){return $.ddl._delete(key),$.ddl.append(key,value,!!force),$.ddl},_delete:function(key){return delete $.ddl.findNode(key)[key.split(".").pop()],$.ddl},append:function(key,value,force,separator){if(!force&&(""===value||"0"===value||0===value))return $.ddl;separator||(separator=",");var root=$.ddl.findNode(key,!0),lkey=key.split(".").pop();return root[lkey]&&""!==root[lkey]?root[lkey]=root[lkey]+separator+value.toString():root[lkey]=value.toString(),$.ddl},getAll:function(){return window.digitalData}}})}(jQuery);;
/* --- source: /modules/jsmanager/resources/jsmin/modules/tracking/resources/js/utag-link-min.js (minified version of /modules/tracking/resources/js/utag-link.js) --- */
!function(global,$,undefined){"use strict";function splitValues(string){return string.split(":",1)[0]}global.analyticsHelpers=global.analyticsHelpers||{},global.analyticsHelpers.sendUTag=function(data,sendAsView){if(!$.isEmptyObject(data)&&global.utag!==undefined&&global.utag_data!==undefined){var utagDataClone=$.extend(!0,{},global.utag_data);$.each(utagDataClone,function(key,value){(-1==key.indexOf("__")||key.indexOf(".")>-1||key.indexOf("_event")>-1)&&"page_type"!==key&&delete utagDataClone[key]});var eventsName=function(data){var eventsName="";return $.each(data,function(key,value){key.indexOf("_events")>-1&&value.length>0&&(eventsName.length>0&&(eventsName+="-"),eventsName+=key.substring(0,key.indexOf("__"))+"__",Array.isArray(value)?$.each(value,function(i,j){i>0&&(eventsName+="_"),eventsName+=splitValues(j)}):eventsName+=splitValues(value))}),eventsName}(data);if($.extend(data,{event_name:eventsName}),sendAsView)return void global.utag.view($.extend(utagDataClone,data));global.utag.link($.extend(utagDataClone,data))}},global.analyticsHelpers.getUTagData=function(key){return global.utag_data!==undefined&&global.utag_data[key]!==undefined?global.utag_data[key]:""},global.analyticsHelpers.addToUTagData=function(key,value){global.utag_data!==undefined&&(global.utag_data[key]=value)}}(window,jQuery,void 0);;
/* --- source: /modules/jsmanager/resources/jsmin/modules/common/resources/js/cookiepolicybanner-min.js (minified version of /modules/common/resources/js/cookiepolicybanner.js) --- */
!function($,window,document,undefined){function Plugin(element,options){this.$element=element,this.options=$.extend(defaults,options),this.init()}var defaults={dontShowCookieName:"DONTSHOWCOOKIEPOLICYBANNER"};Plugin.prototype={init:function(){1==$.cookie(this.options.dontShowCookieName)?this.hide():this.show(),$(this.$element).on("click","[data-cookiepolicy-banner-close]",$.proxy(this.close,this))},close:function(){this.setCookie(),this.hide()},setCookie:function(){$.cookie(this.options.dontShowCookieName,1,{path:"/",expires:1e5})},hide:function(){this.$element.addClass("hidden")},show:function(){this.$element.removeClass("hidden")}},$.fn.CookiePolicyBanner=function(options){return this.each(function(){$.data(this,"plugin_CookiePolicyBanner")||$.data(this,"plugin_CookiePolicyBanner",new Plugin($(this),options))})}}(jQuery,window,document);;
/* --- source: /modules/jsmanager/resources/jsmin/modules/common/resources/js/cookiepolicybanner-init-min.js (minified version of /modules/common/resources/js/cookiepolicybanner-init.js) --- */
!function($){$(function(){$("[data-cookiepolicy-banner]").each(function(){$(this).CookiePolicyBanner($(this).data("cookiepolicy-banner"))})})}(jQuery);;
/* --- source: /modules/jsmanager/resources/jsmin/modules/duplo/resources/js/stepstone/informationalbanner-min.js (minified version of /modules/duplo/resources/js/stepstone/informationalbanner.js) --- */
!function($,window,document,undefined){function Plugin(element,options){this.$element=element,this.options=$.extend(defaults,options),this.init()}var defaults={dontShowCookieName:"DONTSHOWINFOBANNER"};Plugin.prototype={init:function(){1==$.cookie(this.options.dontShowCookieName)?this.hide():this.show(),$(this.$element).on("click","[data-informational-banner-close]",$.proxy(this.close,this))},close:function(){this.setCookie(),this.hide()},setCookie:function(){$.cookie(this.options.dontShowCookieName,1,{path:"/"})},hide:function(){this.$element.addClass("hidden")},show:function(){this.$element.removeClass("hidden")}},$.fn.InformationalBanner=function(options){return this.each(function(){$.data(this,"plugin_InformationalBanner")||$.data(this,"plugin_InformationalBanner",new Plugin($(this),options))})}}(jQuery,window,document);;
/* --- source: /modules/jsmanager/resources/jsmin/modules/duplo/resources/js/stepstone/informationalbanner-init-min.js (minified version of /modules/duplo/resources/js/stepstone/informationalbanner-init.js) --- */
!function($){$(function(){$("[data-informational-banner]").each(function(){$(this).InformationalBanner($(this).data("informational-banner"))})})}(jQuery);;
/* --- source: /modules/jsmanager/resources/jsmin/modules/japubox/resources/js/disable-japu-popup-min.js (minified version of /modules/japubox/resources/js/disable-japu-popup.js) --- */
!function($,window,document){var japuOpenTriggers=["*[data-search-box-search-button]",".jsForce",'[data-japu-jasource="japu-homepage"]'],japuOpenAttributes=["data-japu","data-japu-popup","data-japu-jasource"],oldJapuOpenTriggers=['*[data-japu-jasource="resultlist-button-dashboard"]','*[data-japu-jasource="resultlist-button-dashboard-metabuster"]'];NOAUTOOPENJAPU={removeAllAttributes:function(){japuOpenTriggers.forEach(NOAUTOOPENJAPU.removeAllAttributesFromTrigger),oldJapuOpenTriggers.forEach(NOAUTOOPENJAPU.removeAllAttributesFromTrigger)},removeAllAttributesFromTrigger:function(element){$(element).each(function(){for(i=0;i<japuOpenAttributes.length;i++)$(this).removeAttr(japuOpenAttributes[i])})}};var SETJAPUBOXCOOKIE_set=function(event,element){event.preventDefault(),$.cookie("showJapuboxPopup","true",{path:"/",domain:document.location.hostname,secure:!1}),window.location.href=$(element).attr("href")},SETJAPUBOXCOOKIE_setCookieForButton=function(){$.cookie("showJapuboxPopup","true",{path:"/",domain:document.location.hostname,secure:!1}),$(document).trigger("japuboxCookieUpdate")};$(document).ready(function(){NOAUTOOPENJAPU.removeAllAttributes()}),$(".homepage-recommender .jsForce").click(function(event){SETJAPUBOXCOOKIE_set(event,this)}),$(".list-inline > li > a").click(function(event){SETJAPUBOXCOOKIE_set(event,this)}),$("span.btn").click(function(){"duploSearch"==$(this).data("japu-from")&&SETJAPUBOXCOOKIE_setCookieForButton()}),$("#SearchButton,#AdvancedSearchButton,#FooterSearchButton,#SearchForm_SearchButton").removeClass("addjapu jas_japu-homepage"),$("#LatestListings,#PopularListings,#submitQuickSearch,#submitQuickSearchTop").removeClass("addjapu jas_japu-homepage"),$("#fuzzysearch_button1,#fuzzysearch_button2,.zoomSubmit").removeClass("addjapu jas_japu-homepage"),$("#hotJobs").find("li a").removeClass("addjapu jas_japu-homepage"),$("#SearchButton, #AdvancedSearchButton, #FooterSearchButton, #SearchForm_SearchButton, #LatestListings, #PopularListings, #submitQuickSearch, #submitQuickSearchTop, #fuzzysearch_button1, #fuzzysearch_button2, .zoomSubmit").on("click",function(){$.cookie("showJapuboxPopup","true",{path:"/",domain:document.location.hostname,secure:!1})}),$("#hotJobs").find("li a").on("click",function(){$.cookie("showJapuboxPopup","true",{path:"/",domain:document.location.hostname,secure:!1})})}(jQuery,window,document);;
/* --- source: /modules/jsmanager/resources/jsmin/modules/duplo/resources/js/jquery/typeahead.bundle-min.js (minified version of /modules/duplo/resources/js/jquery/typeahead.bundle.js) --- */
/*!
* typeahead.js 0.11.1
* https://github.com/twitter/typeahead.js
* Copyright 2013-2015 Twitter, Inc. and other contributors; Licensed MIT
*/
!function(root,factory){"function"==typeof define&&define.amd?define("bloodhound",["jquery"],function(a0){return root.Bloodhound=factory(a0)}):"object"==typeof exports?module.exports=factory(require("jquery")):root.Bloodhound=factory(jQuery)}(this,function($){var _=function(){"use strict";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(str){return!str||/^\s*$/.test(str)},escapeRegExChars:function(str){return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(obj){return"string"==typeof obj},isNumber:function(obj){return"number"==typeof obj},isArray:$.isArray,isFunction:$.isFunction,isObject:$.isPlainObject,isUndefined:function(obj){return void 0===obj},isElement:function(obj){return!(!obj||1!==obj.nodeType)},isJQuery:function(obj){return obj instanceof $},toStr:function(s){return _.isUndefined(s)||null===s?"":s+""},bind:$.proxy,each:function(collection,cb){$.each(collection,function(index,value){return cb(value,index)})},map:$.map,filter:$.grep,every:function(obj,test){var result=!0;return obj?($.each(obj,function(key,val){if(!(result=test.call(null,val,key,obj)))return!1}),!!result):result},some:function(obj,test){var result=!1;return obj?($.each(obj,function(key,val){if(result=test.call(null,val,key,obj))return!1}),!!result):result},mixin:$.extend,identity:function(x){return x},clone:function(obj){return $.extend(!0,{},obj)},getIdGenerator:function(){var counter=0;return function(){return counter++}},templatify:function(obj){return $.isFunction(obj)?obj:function(){return String(obj)}},defer:function(fn){setTimeout(fn,0)},debounce:function(func,wait,immediate){var timeout,result;return function(){var later,callNow,context=this,args=arguments;return later=function(){timeout=null,immediate||(result=func.apply(context,args))},callNow=immediate&&!timeout,clearTimeout(timeout),timeout=setTimeout(later,wait),callNow&&(result=func.apply(context,args)),result}},throttle:function(func,wait){var context,args,timeout,result,previous,later;return previous=0,later=function(){previous=new Date,timeout=null,result=func.apply(context,args)},function(){var now=new Date,remaining=wait-(now-previous);return context=this,args=arguments,remaining<=0?(clearTimeout(timeout),timeout=null,previous=now,result=func.apply(context,args)):timeout||(timeout=setTimeout(later,remaining)),result}},stringify:function(val){return _.isString(val)?val:JSON.stringify(val)},noop:function(){}}}(),VERSION="0.11.1",tokenizers=function(){"use strict";function whitespace(str){return(str=_.toStr(str))?str.split(/\s+/):[]}function nonword(str){return(str=_.toStr(str))?str.split(/\W+/):[]}function getObjTokenizer(tokenizer){return function(keys){return keys=_.isArray(keys)?keys:[].slice.call(arguments,0),function(o){var tokens=[];return _.each(keys,function(k){tokens=tokens.concat(tokenizer(_.toStr(o[k])))}),tokens}}}return{nonword:nonword,whitespace:whitespace,obj:{nonword:getObjTokenizer(nonword),whitespace:getObjTokenizer(whitespace)}}}(),LruCache=function(){"use strict";function LruCache(maxSize){this.maxSize=_.isNumber(maxSize)?maxSize:100,this.reset(),this.maxSize<=0&&(this.set=this.get=$.noop)}function List(){this.head=this.tail=null}return _.mixin(LruCache.prototype,{set:function(key,val){var node,tailItem=this.list.tail;this.size>=this.maxSize&&(this.list.remove(tailItem),delete this.hash[tailItem.key],this.size--),(node=this.hash[key])?(node.val=val,this.list.moveToFront(node)):(node=new function(key,val){this.key=key,this.val=val,this.prev=this.next=null}(key,val),this.list.add(node),this.hash[key]=node,this.size++)},get:function(key){var node=this.hash[key];if(node)return this.list.moveToFront(node),node.val},reset:function(){this.size=0,this.hash={},this.list=new List}}),_.mixin(List.prototype,{add:function(node){this.head&&(node.next=this.head,this.head.prev=node),this.head=node,this.tail=this.tail||node},remove:function(node){node.prev?node.prev.next=node.next:this.head=node.next,node.next?node.next.prev=node.prev:this.tail=node.prev},moveToFront:function(node){this.remove(node),this.add(node)}}),LruCache}(),PersistentStorage=function(){"use strict";function PersistentStorage(namespace,override){this.prefix=["__",namespace,"__"].join(""),this.ttlKey="__ttl__",this.keyMatcher=new RegExp("^"+_.escapeRegExChars(this.prefix)),this.ls=override||LOCAL_STORAGE,!this.ls&&this._noop()}function now(){return(new Date).getTime()}function encode(val){return JSON.stringify(_.isUndefined(val)?null:val)}function decode(val){return $.parseJSON(val)}var LOCAL_STORAGE;try{(LOCAL_STORAGE=window.localStorage).setItem("~~~","!"),LOCAL_STORAGE.removeItem("~~~")}catch(err){LOCAL_STORAGE=null}return _.mixin(PersistentStorage.prototype,{_prefix:function(key){return this.prefix+key},_ttlKey:function(key){return this._prefix(key)+this.ttlKey},_noop:function(){this.get=this.set=this.remove=this.clear=this.isExpired=_.noop},_safeSet:function(key,val){try{this.ls.setItem(key,val)}catch(err){"QuotaExceededError"===err.name&&(this.clear(),this._noop())}},get:function(key){return this.isExpired(key)&&this.remove(key),decode(this.ls.getItem(this._prefix(key)))},set:function(key,val,ttl){return _.isNumber(ttl)?this._safeSet(this._ttlKey(key),encode(now()+ttl)):this.ls.removeItem(this._ttlKey(key)),this._safeSet(this._prefix(key),encode(val))},remove:function(key){return this.ls.removeItem(this._ttlKey(key)),this.ls.removeItem(this._prefix(key)),this},clear:function(){var i,keys=function(keyMatcher){var i,key,keys=[],len=LOCAL_STORAGE.length;for(i=0;i<len;i++)(key=LOCAL_STORAGE.key(i)).match(keyMatcher)&&keys.push(key.replace(keyMatcher,""));return keys}(this.keyMatcher);for(i=keys.length;i--;)this.remove(keys[i]);return this},isExpired:function(key){var ttl=decode(this.ls.getItem(this._ttlKey(key)));return!!(_.isNumber(ttl)&&now()>ttl)}}),PersistentStorage}(),Transport=function(){"use strict";function Transport(o){o=o||{},this.cancelled=!1,this.lastReq=null,this._send=o.transport,this._get=o.limiter?o.limiter(this._get):this._get,this._cache=!1===o.cache?new LruCache(0):sharedCache}var pendingRequestsCount=0,pendingRequests={},maxPendingRequests=6,sharedCache=new LruCache(10);return Transport.setMaxPendingRequests=function(num){maxPendingRequests=num},Transport.resetCache=function(){sharedCache.reset()},_.mixin(Transport.prototype,{_fingerprint:function(o){return(o=o||{}).url+o.type+$.param(o.data||{})},_get:function(o,cb){function done(resp){cb(null,resp),that._cache.set(fingerprint,resp)}function fail(){cb(!0)}function always(){pendingRequestsCount--,delete pendingRequests[fingerprint],that.onDeckRequestArgs&&(that._get.apply(that,that.onDeckRequestArgs),that.onDeckRequestArgs=null)}var fingerprint,jqXhr,that=this;fingerprint=this._fingerprint(o),this.cancelled||fingerprint!==this.lastReq||((jqXhr=pendingRequests[fingerprint])?jqXhr.done(done).fail(fail):pendingRequestsCount<maxPendingRequests?(pendingRequestsCount++,pendingRequests[fingerprint]=this._send(o).done(done).fail(fail).always(always)):this.onDeckRequestArgs=[].slice.call(arguments,0))},get:function(o,cb){var resp,fingerprint;cb=cb||$.noop,o=_.isString(o)?{url:o}:o||{},fingerprint=this._fingerprint(o),this.cancelled=!1,this.lastReq=fingerprint,(resp=this._cache.get(fingerprint))?cb(null,resp):this._get(o,cb)},cancel:function(){this.cancelled=!0}}),Transport}(),SearchIndex=window.SearchIndex=function(){"use strict";function SearchIndex(o){(o=o||{}).datumTokenizer&&o.queryTokenizer||$.error("datumTokenizer and queryTokenizer are both required"),this.identify=o.identify||_.stringify,this.datumTokenizer=o.datumTokenizer,this.queryTokenizer=o.queryTokenizer,this.reset()}function normalizeTokens(tokens){return tokens=_.filter(tokens,function(token){return!!token}),tokens=_.map(tokens,function(token){return token.toLowerCase()})}function newNode(){var node={};return node[IDS]=[],node[CHILDREN]={},node}var CHILDREN="c",IDS="i";return _.mixin(SearchIndex.prototype,{bootstrap:function(o){this.datums=o.datums,this.trie=o.trie},add:function(data){var that=this;data=_.isArray(data)?data:[data],_.each(data,function(datum){var id,tokens;that.datums[id=that.identify(datum)]=datum,tokens=normalizeTokens(that.datumTokenizer(datum)),_.each(tokens,function(token){var node,chars,ch;for(node=that.trie,chars=token.split("");ch=chars.shift();)(node=node[CHILDREN][ch]||(node[CHILDREN][ch]=newNode()))[IDS].push(id)})})},get:function(ids){var that=this;return _.map(ids,function(id){return that.datums[id]})},search:function(query){var tokens,matches,that=this;return tokens=normalizeTokens(this.queryTokenizer(query)),_.each(tokens,function(token){var node,chars,ch,ids;if(matches&&0===matches.length)return!1;for(node=that.trie,chars=token.split("");node&&(ch=chars.shift());)node=node[CHILDREN][ch];if(!node||0!==chars.length)return matches=[],!1;ids=node[IDS].slice(0),matches=matches?function(arrayA,arrayB){var ai=0,bi=0,intersection=[];arrayA=arrayA.sort(),arrayB=arrayB.sort();for(var lenArrayA=arrayA.length,lenArrayB=arrayB.length;ai<lenArrayA&&bi<lenArrayB;)arrayA[ai]<arrayB[bi]?ai++:arrayA[ai]>arrayB[bi]?bi++:(intersection.push(arrayA[ai]),ai++,bi++);return intersection}(matches,ids):ids}),matches?_.map(function(array){for(var seen={},uniques=[],i=0,len=array.length;i<len;i++)seen[array[i]]||(seen[array[i]]=!0,uniques.push(array[i]));return uniques}(matches),function(id){return that.datums[id]}):[]},all:function(){var values=[];for(var key in this.datums)values.push(this.datums[key]);return values},reset:function(){this.datums={},this.trie=newNode()},serialize:function(){return{datums:this.datums,trie:this.trie}}}),SearchIndex}(),Prefetch=function(){"use strict";function Prefetch(o){this.url=o.url,this.ttl=o.ttl,this.cache=o.cache,this.prepare=o.prepare,this.transform=o.transform,this.transport=o.transport,this.thumbprint=o.thumbprint,this.storage=new PersistentStorage(o.cacheKey)}var keys;return keys={data:"data",protocol:"protocol",thumbprint:"thumbprint"},_.mixin(Prefetch.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},store:function(data){this.cache&&(this.storage.set(keys.data,data,this.ttl),this.storage.set(keys.protocol,location.protocol,this.ttl),this.storage.set(keys.thumbprint,this.thumbprint,this.ttl))},fromCache:function(){var isExpired,stored={};return this.cache?(stored.data=this.storage.get(keys.data),stored.protocol=this.storage.get(keys.protocol),stored.thumbprint=this.storage.get(keys.thumbprint),isExpired=stored.thumbprint!==this.thumbprint||stored.protocol!==location.protocol,stored.data&&!isExpired?stored.data:null):null},fromNetwork:function(cb){var settings,that=this;cb&&(settings=this.prepare(this._settings()),this.transport(settings).fail(function(){cb(!0)}).done(function(resp){cb(null,that.transform(resp))}))},clear:function(){return this.storage.clear(),this}}),Prefetch}(),Remote=function(){"use strict";function Remote(o){this.url=o.url,this.prepare=o.prepare,this.transform=o.transform,this.transport=new Transport({cache:o.cache,limiter:o.limiter,transport:o.transport})}return _.mixin(Remote.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},get:function(query,cb){var settings,that=this;if(cb)return query=query||"",settings=this.prepare(query,this._settings()),this.transport.get(settings,function(err,resp){cb(err?[]:that.transform(resp))})},cancelLastRequest:function(){this.transport.cancel()}}),Remote}(),oParser=function(){"use strict";function parseRemote(o){var defaults;if(o)return defaults={url:null,cache:!0,prepare:null,replace:null,wildcard:null,limiter:null,rateLimitBy:"debounce",rateLimitWait:300,transform:_.identity,transport:null},o=_.isString(o)?{url:o}:o,!(o=_.mixin(defaults,o)).url&&$.error("remote requires url to be set"),o.transform=o.filter||o.transform,o.prepare=function(o){function prepareByReplace(query,settings){return settings.url=replace(settings.url,query),settings}function prepareByWildcard(query,settings){return settings.url=settings.url.replace(wildcard,encodeURIComponent(query)),settings}function idenityPrepare(query,settings){return settings}var prepare,replace,wildcard;if(prepare=o.prepare,replace=o.replace,wildcard=o.wildcard,prepare)return prepare;prepare=replace?prepareByReplace:o.wildcard?prepareByWildcard:idenityPrepare;return prepare}(o),o.limiter=function(o){var limiter,method,wait;limiter=o.limiter,method=o.rateLimitBy,wait=o.rateLimitWait,limiter||(limiter=/^throttle$/i.test(method)?function(wait){return function(fn){return _.throttle(fn,wait)}}(wait):function(wait){return function(fn){return _.debounce(fn,wait)}}(wait));return limiter}(o),o.transport=o.transport?callbackToDeferred(o.transport):$.ajax,delete o.replace,delete o.wildcard,delete o.rateLimitBy,delete o.rateLimitWait,o}function callbackToDeferred(fn){return function(o){var deferred=$.Deferred();return fn(o,function(resp){_.defer(function(){deferred.resolve(resp)})},function(err){_.defer(function(){deferred.reject(err)})}),deferred}}return function(o){var defaults,sorter;return defaults={initialize:!0,identify:_.stringify,datumTokenizer:null,queryTokenizer:null,sufficient:5,sorter:null,local:[],prefetch:null,remote:null},!(o=_.mixin(defaults,o||{})).datumTokenizer&&$.error("datumTokenizer is required"),!o.queryTokenizer&&$.error("queryTokenizer is required"),sorter=o.sorter,o.sorter=sorter?function(x){return x.sort(sorter)}:_.identity,o.local=_.isFunction(o.local)?o.local():o.local,o.prefetch=function(o){var defaults;return o?(defaults={url:null,ttl:864e5,cache:!0,cacheKey:null,thumbprint:"",prepare:_.identity,transform:_.identity,transport:null},o=_.isString(o)?{url:o}:o,!(o=_.mixin(defaults,o)).url&&$.error("prefetch requires url to be set"),o.transform=o.filter||o.transform,o.cacheKey=o.cacheKey||o.url,o.thumbprint=VERSION+o.thumbprint,o.transport=o.transport?callbackToDeferred(o.transport):$.ajax,o):null}(o.prefetch),o.remote=parseRemote(o.remote),o}}();return function(){"use strict";function Bloodhound(o){o=oParser(o),this.sorter=o.sorter,this.identify=o.identify,this.sufficient=o.sufficient,this.local=o.local,this.remote=o.remote?new Remote(o.remote):null,this.prefetch=o.prefetch?new Prefetch(o.prefetch):null,this.index=new SearchIndex({identify:this.identify,datumTokenizer:o.datumTokenizer,queryTokenizer:o.queryTokenizer}),!1!==o.initialize&&this.initialize()}var old;return old=window&&window.Bloodhound,Bloodhound.noConflict=function(){return window&&(window.Bloodhound=old),Bloodhound},Bloodhound.tokenizers=tokenizers,_.mixin(Bloodhound.prototype,{__ttAdapter:function(){var that=this;return this.remote?function(query,sync,async){return that.search(query,sync,async)}:function(query,sync){return that.search(query,sync)}},_loadPrefetch:function(){function done(err,data){if(err)return deferred.reject();that.add(data),that.prefetch.store(that.index.serialize()),deferred.resolve()}var deferred,serialized,that=this;return deferred=$.Deferred(),this.prefetch?(serialized=this.prefetch.fromCache())?(this.index.bootstrap(serialized),deferred.resolve()):this.prefetch.fromNetwork(done):deferred.resolve(),deferred.promise()},_initialize:function(){var that=this;return this.clear(),(this.initPromise=this._loadPrefetch()).done(function(){that.add(that.local)}),this.initPromise},initialize:function(force){return!this.initPromise||force?this._initialize():this.initPromise},add:function(data){return this.index.add(data),this},get:function(ids){return ids=_.isArray(ids)?ids:[].slice.call(arguments),this.index.get(ids)},search:function(query,sync,async){function processRemote(remote){var nonDuplicates=[];_.each(remote,function(r){!_.some(local,function(l){return that.identify(r)===that.identify(l)})&&nonDuplicates.push(r)}),async&&async(nonDuplicates)}var local,that=this;return local=this.sorter(this.index.search(query)),sync(this.remote?local.slice():local),this.remote&&local.length<this.sufficient?this.remote.get(query,processRemote):this.remote&&this.remote.cancelLastRequest(),this},all:function(){return this.index.all()},clear:function(){return this.index.reset(),this},clearPrefetchCache:function(){return this.prefetch&&this.prefetch.clear(),this},clearRemoteCache:function(){return Transport.resetCache(),this},ttAdapter:function(){return this.__ttAdapter()}}),Bloodhound}()}),function(root,factory){"function"==typeof define&&define.amd?define("typeahead.js",["jquery"],function(a0){return factory(a0)}):"object"==typeof exports?module.exports=factory(require("jquery")):factory(jQuery)}(0,function($){var _=function(){"use strict";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(str){return!str||/^\s*$/.test(str)},escapeRegExChars:function(str){return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(obj){return"string"==typeof obj},isNumber:function(obj){return"number"==typeof obj},isArray:$.isArray,isFunction:$.isFunction,isObject:$.isPlainObject,isUndefined:function(obj){return void 0===obj},isElement:function(obj){return!(!obj||1!==obj.nodeType)},isJQuery:function(obj){return obj instanceof $},toStr:function(s){return _.isUndefined(s)||null===s?"":s+""},bind:$.proxy,each:function(collection,cb){$.each(collection,function(index,value){return cb(value,index)})},map:$.map,filter:$.grep,every:function(obj,test){var result=!0;return obj?($.each(obj,function(key,val){if(!(result=test.call(null,val,key,obj)))return!1}),!!result):result},some:function(obj,test){var result=!1;return obj?($.each(obj,function(key,val){if(result=test.call(null,val,key,obj))return!1}),!!result):result},mixin:$.extend,identity:function(x){return x},clone:function(obj){return $.extend(!0,{},obj)},getIdGenerator:function(){var counter=0;return function(){return counter++}},templatify:function(obj){return $.isFunction(obj)?obj:function(){return String(obj)}},defer:function(fn){setTimeout(fn,0)},debounce:function(func,wait,immediate){var timeout,result;return function(){var later,callNow,context=this,args=arguments;return later=function(){timeout=null,immediate||(result=func.apply(context,args))},callNow=immediate&&!timeout,clearTimeout(timeout),timeout=setTimeout(later,wait),callNow&&(result=func.apply(context,args)),result}},throttle:function(func,wait){var context,args,timeout,result,previous,later;return previous=0,later=function(){previous=new Date,timeout=null,result=func.apply(context,args)},function(){var now=new Date,remaining=wait-(now-previous);return context=this,args=arguments,remaining<=0?(clearTimeout(timeout),timeout=null,previous=now,result=func.apply(context,args)):timeout||(timeout=setTimeout(later,remaining)),result}},stringify:function(val){return _.isString(val)?val:JSON.stringify(val)},noop:function(){}}}(),WWW=function(){"use strict";var defaultClassNames={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-open",cursor:"tt-cursor",highlight:"tt-highlight"};return function(o){var www,classes;return classes=_.mixin({},defaultClassNames,o),www={css:function(){var css={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 _.isMsie()&&_.mixin(css.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),css}(),classes:classes,html:function(c){return{wrapper:'<span class="'+c.wrapper+'"></span>',menu:'<div class="'+c.menu+'"></div>'}}(classes),selectors:function(classes){var selectors={};return _.each(classes,function(v,k){selectors[k]="."+v}),selectors}(classes)},{css:www.css,html:www.html,classes:www.classes,selectors:www.selectors,mixin:function(o){_.mixin(o,www)}}}}(),EventBus=function(){"use strict";function EventBus(o){o&&o.el||$.error("EventBus initialized without el"),this.$el=$(o.el)}var deprecationMap;return"typeahead:",deprecationMap={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},_.mixin(EventBus.prototype,{_trigger:function(type,args){var $e;return $e=$.Event("typeahead:"+type),(args=args||[]).unshift($e),this.$el.trigger.apply(this.$el,args),$e},before:function(type){var args;return args=[].slice.call(arguments,1),this._trigger("before"+type,args).isDefaultPrevented()},trigger:function(type){var deprecatedType;this._trigger(type,[].slice.call(arguments,1)),(deprecatedType=deprecationMap[type])&&this._trigger(deprecatedType,[].slice.call(arguments,1))}}),EventBus}(),EventEmitter=function(){"use strict";function on(method,types,cb,context){var type;if(!cb)return this;for(types=types.split(splitter),cb=context?function(fn,context){return fn.bind?fn.bind(context):function(){fn.apply(context,[].slice.call(arguments,0))}}(cb,context):cb,this._callbacks=this._callbacks||{};type=types.shift();)this._callbacks[type]=this._callbacks[type]||{sync:[],async:[]},this._callbacks[type][method].push(cb);return this}function getFlush(callbacks,context,args){return function(){for(var cancelled,i=0,len=callbacks.length;!cancelled&&i<len;i+=1)cancelled=!1===callbacks[i].apply(context,args);return!cancelled}}var splitter=/\s+/,nextTick=window.setImmediate?function(fn){setImmediate(function(){fn()})}:function(fn){setTimeout(function(){fn()},0)};return{onSync:function(types,cb,context){return on.call(this,"sync",types,cb,context)},onAsync:function(types,cb,context){return on.call(this,"async",types,cb,context)},off:function(types){var type;if(!this._callbacks)return this;for(types=types.split(splitter);type=types.shift();)delete this._callbacks[type];return this},trigger:function(types){var type,callbacks,args,syncFlush,asyncFlush;if(!this._callbacks)return this;for(types=types.split(splitter),args=[].slice.call(arguments,1);(type=types.shift())&&(callbacks=this._callbacks[type]);)syncFlush=getFlush(callbacks.sync,this,[type].concat(args)),asyncFlush=getFlush(callbacks.async,this,[type].concat(args)),syncFlush()&&nextTick(asyncFlush);return this}}}(),highlight=function(doc){"use strict";var defaults={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(o){function traverse(el,hightlightTextNode){for(var childNode,i=0;i<el.childNodes.length;i++)3===(childNode=el.childNodes[i]).nodeType?i+=hightlightTextNode(childNode)?1:0:traverse(childNode,hightlightTextNode)}var regex;(o=_.mixin({},defaults,o)).node&&o.pattern&&(o.pattern=_.isArray(o.pattern)?o.pattern:[o.pattern],regex=function(patterns,caseSensitive,wordsOnly){for(var regexStr,escapedPatterns=[],i=0,len=patterns.length;i<len;i++)escapedPatterns.push(_.escapeRegExChars(patterns[i]));return regexStr=wordsOnly?"\\b("+escapedPatterns.join("|")+")\\b":"("+escapedPatterns.join("|")+")",caseSensitive?new RegExp(regexStr):new RegExp(regexStr,"i")}(o.pattern,o.caseSensitive,o.wordsOnly),traverse(o.node,function(textNode){var match,patternNode,wrapperNode;return(match=regex.exec(textNode.data))&&(wrapperNode=doc.createElement(o.tagName),o.className&&(wrapperNode.className=o.className),(patternNode=textNode.splitText(match.index)).splitText(match[0].length),wrapperNode.appendChild(patternNode.cloneNode(!0)),textNode.parentNode.replaceChild(wrapperNode,patternNode)),!!match}))}}(window.document),Input=function(){"use strict";function Input(o,www){(o=o||{}).input||$.error("input is missing"),www.mixin(this),this.$hint=$(o.hint),this.$input=$(o.input),this.query=this.$input.val(),this.queryWhenFocused=this.hasFocus()?this.query:null,this.$overflowHelper=function($input){return $('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:$input.css("font-family"),fontSize:$input.css("font-size"),fontStyle:$input.css("font-style"),fontVariant:$input.css("font-variant"),fontWeight:$input.css("font-weight"),wordSpacing:$input.css("word-spacing"),letterSpacing:$input.css("letter-spacing"),textIndent:$input.css("text-indent"),textRendering:$input.css("text-rendering"),textTransform:$input.css("text-transform")}).insertAfter($input)}(this.$input),this._checkLanguageDirection(),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=_.noop)}function withModifier($e){return $e.altKey||$e.ctrlKey||$e.metaKey||$e.shiftKey}var specialKeyCodeMap;return specialKeyCodeMap={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},Input.normalizeQuery=function(str){return _.toStr(str).replace(/^\s*/g,"").replace(/\s{2,}/g," ")},_.mixin(Input.prototype,EventEmitter,{_onBlur:function(){this.resetInputValue(),this.trigger("blurred")},_onFocus:function(){this.queryWhenFocused=this.query,this.trigger("focused")},_onKeydown:function($e){var keyName=specialKeyCodeMap[$e.which||$e.keyCode];this._managePreventDefault(keyName,$e),keyName&&this._shouldTrigger(keyName,$e)&&this.trigger(keyName+"Keyed",$e)},_onInput:function(){this._setQuery(this.getInputValue()),this.clearHintIfInvalid(),this._checkLanguageDirection()},_managePreventDefault:function(keyName,$e){var preventDefault;switch(keyName){case"up":case"down":preventDefault=!withModifier($e);break;default:preventDefault=!1}preventDefault&&$e.preventDefault()},_shouldTrigger:function(keyName,$e){var trigger;switch(keyName){case"tab":trigger=!withModifier($e);break;default:trigger=!0}return trigger},_checkLanguageDirection:function(){var dir=(this.$input.css("direction")||"ltr").toLowerCase();this.dir!==dir&&(this.dir=dir,this.$hint.attr("dir",dir),this.trigger("langDirChanged",dir))},_setQuery:function(val,silent){var areEquivalent,hasDifferentWhitespace;hasDifferentWhitespace=!!(areEquivalent=function(a,b){return Input.normalizeQuery(a)===Input.normalizeQuery(b)}(val,this.query))&&this.query.length!==val.length,this.query=val,silent||areEquivalent?!silent&&hasDifferentWhitespace&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},bind:function(){var onBlur,onFocus,onKeydown,onInput,that=this;return onBlur=_.bind(this._onBlur,this),onFocus=_.bind(this._onFocus,this),onKeydown=_.bind(this._onKeydown,this),onInput=_.bind(this._onInput,this),this.$input.on("blur.tt",onBlur).on("focus.tt",onFocus).on("keydown.tt",onKeydown),!_.isMsie()||_.isMsie()>9?this.$input.on("input.tt",onInput):this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function($e){specialKeyCodeMap[$e.which||$e.keyCode]||_.defer(_.bind(that._onInput,that,$e))}),this},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getLangDir:function(){return this.dir},getQuery:function(){return this.query||""},setQuery:function(val,silent){this.setInputValue(val),this._setQuery(val,silent)},hasQueryChangedSinceLastFocus:function(){return this.query!==this.queryWhenFocused},getInputValue:function(){return this.$input.val()},setInputValue:function(value){this.$input.val(value),this.clearHintIfInvalid(),this._checkLanguageDirection()},resetInputValue:function(){this.setInputValue(this.query)},getHint:function(){return this.$hint.val()},setHint:function(value){this.$hint.val(value)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var val,hint,valIsPrefixOfHint;valIsPrefixOfHint=(val=this.getInputValue())!==(hint=this.getHint())&&0===hint.indexOf(val),!(""!==val&&valIsPrefixOfHint&&!this.hasOverflow())&&this.clearHint()},hasFocus:function(){return this.$input.is(":focus")},hasOverflow:function(){var constraint=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=constraint},isCursorAtEnd:function(){var valueLength,selectionStart,range;return valueLength=this.$input.val().length,selectionStart=this.$input[0].selectionStart,_.isNumber(selectionStart)?selectionStart===valueLength:!document.selection||((range=document.selection.createRange()).moveStart("character",-valueLength),valueLength===range.text.length)},destroy:function(){this.$hint.off(".tt"),this.$input.off(".tt"),this.$overflowHelper.remove(),this.$hint=this.$input=this.$overflowHelper=$("<div>")}}),Input}(),Dataset=function(){"use strict";function Dataset(o,www){(o=o||{}).templates=o.templates||{},o.templates.notFound=o.templates.notFound||o.templates.empty,o.source||$.error("missing source"),o.node||$.error("missing node"),o.name&&!function(str){return/^[_a-zA-Z0-9-]+$/.test(str)}(o.name)&&$.error("invalid dataset name: "+o.name),www.mixin(this),this.highlight=!!o.highlight,this.name=o.name||nameGenerator(),this.limit=o.limit||5,this.displayFn=function(display){return display=display||_.stringify,_.isFunction(display)?display:function(obj){return obj[display]}}(o.display||o.displayKey),this.templates=function(templates,displayFn){return{notFound:templates.notFound&&_.templatify(templates.notFound),pending:templates.pending&&_.templatify(templates.pending),header:templates.header&&_.templatify(templates.header),footer:templates.footer&&_.templatify(templates.footer),suggestion:templates.suggestion||function(context){return $("<div>").text(displayFn(context))}}}(o.templates,this.displayFn),this.source=o.source.__ttAdapter?o.source.__ttAdapter():o.source,this.async=_.isUndefined(o.async)?this.source.length>2:!!o.async,this._resetLastSuggestion(),this.$el=$(o.node).addClass(this.classes.dataset).addClass(this.classes.dataset+"-"+this.name)}var keys,nameGenerator;return keys={val:"tt-selectable-display",obj:"tt-selectable-object"},nameGenerator=_.getIdGenerator(),Dataset.extractData=function(el){var $el=$(el);return $el.data(keys.obj)?{val:$el.data(keys.val)||"",obj:$el.data(keys.obj)||null}:null},_.mixin(Dataset.prototype,EventEmitter,{_overwrite:function(query,suggestions){(suggestions=suggestions||[]).length?this._renderSuggestions(query,suggestions):this.async&&this.templates.pending?this._renderPending(query):!this.async&&this.templates.notFound?this._renderNotFound(query):this._empty(),this.trigger("rendered",this.name,suggestions,!1)},_append:function(query,suggestions){(suggestions=suggestions||[]).length&&this.$lastSuggestion.length?this._appendSuggestions(query,suggestions):suggestions.length?this._renderSuggestions(query,suggestions):!this.$lastSuggestion.length&&this.templates.notFound&&this._renderNotFound(query),this.trigger("rendered",this.name,suggestions,!0)},_renderSuggestions:function(query,suggestions){var $fragment;$fragment=this._getSuggestionsFragment(query,suggestions),this.$lastSuggestion=$fragment.children().last(),this.$el.html($fragment).prepend(this._getHeader(query,suggestions)).append(this._getFooter(query,suggestions))},_appendSuggestions:function(query,suggestions){var $fragment,$lastSuggestion;$lastSuggestion=($fragment=this._getSuggestionsFragment(query,suggestions)).children().last(),this.$lastSuggestion.after($fragment),this.$lastSuggestion=$lastSuggestion},_renderPending:function(query){var template=this.templates.pending;this._resetLastSuggestion(),template&&this.$el.html(template({query:query,dataset:this.name}))},_renderNotFound:function(query){var template=this.templates.notFound;this._resetLastSuggestion(),template&&this.$el.html(template({query:query,dataset:this.name}))},_empty:function(){this.$el.empty(),this._resetLastSuggestion()},_getSuggestionsFragment:function(query,suggestions){var fragment,that=this;return fragment=document.createDocumentFragment(),_.each(suggestions,function(suggestion){var $el,context;context=that._injectQuery(query,suggestion),$el=$(that.templates.suggestion(context)).data(keys.obj,suggestion).data(keys.val,that.displayFn(suggestion)).addClass(that.classes.suggestion+" "+that.classes.selectable),fragment.appendChild($el[0])}),this.highlight&&highlight({className:this.classes.highlight,node:fragment,pattern:query}),$(fragment)},_getFooter:function(query,suggestions){return this.templates.footer?this.templates.footer({query:query,suggestions:suggestions,dataset:this.name}):null},_getHeader:function(query,suggestions){return this.templates.header?this.templates.header({query:query,suggestions:suggestions,dataset:this.name}):null},_resetLastSuggestion:function(){this.$lastSuggestion=$()},_injectQuery:function(query,obj){return _.isObject(obj)?_.mixin({_query:query},obj):obj},update:function(query){function sync(suggestions){syncCalled||(syncCalled=!0,suggestions=(suggestions||[]).slice(0,that.limit),rendered=suggestions.length,that._overwrite(query,suggestions),rendered<that.limit&&that.async&&that.trigger("asyncRequested",query))}var that=this,canceled=!1,syncCalled=!1,rendered=0;this.cancel(),this.cancel=function(){canceled=!0,that.cancel=$.noop,that.async&&that.trigger("asyncCanceled",query)},this.source(query,sync,function(suggestions){suggestions=suggestions||[],!canceled&&rendered<that.limit&&(that.cancel=$.noop,rendered+=suggestions.length,that._append(query,suggestions.slice(0,rendered>that.limit?that.limit-rendered:that.limit)),that.async&&that.trigger("asyncReceived",query))}),!syncCalled&&sync([])},cancel:$.noop,clear:function(){this._empty(),this.cancel(),this.trigger("cleared")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=$("<div>")}}),Dataset}(),Menu=function(){"use strict";function Menu(o,www){var that=this;(o=o||{}).node||$.error("node is required"),www.mixin(this),this.$node=$(o.node),this.query=null,this.datasets=_.map(o.datasets,function(oDataset){var node=that.$node.find(oDataset.node).first();return oDataset.node=node.length?node:$("<div>").appendTo(that.$node),new Dataset(oDataset,www)})}return _.mixin(Menu.prototype,EventEmitter,{_onSelectableClick:function($e){this.trigger("selectableClicked",$($e.currentTarget))},_onRendered:function(type,dataset,suggestions,async){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetRendered",dataset,suggestions,async)},_onCleared:function(){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetCleared")},_propagate:function(){this.trigger.apply(this,arguments)},_allDatasetsEmpty:function(){return _.every(this.datasets,function(dataset){return dataset.isEmpty()})},_getSelectables:function(){return this.$node.find(this.selectors.selectable)},_removeCursor:function(){var $selectable=this.getActiveSelectable();$selectable&&$selectable.removeClass(this.classes.cursor)},_ensureVisible:function($el){var elTop,elBottom,nodeScrollTop,nodeHeight;elBottom=(elTop=$el.position().top)+$el.outerHeight(!0),nodeScrollTop=this.$node.scrollTop(),nodeHeight=this.$node.height()+parseInt(this.$node.css("paddingTop"),10)+parseInt(this.$node.css("paddingBottom"),10),elTop<0?this.$node.scrollTop(nodeScrollTop+elTop):nodeHeight<elBottom&&this.$node.scrollTop(nodeScrollTop+(elBottom-nodeHeight))},bind:function(){var onSelectableClick,that=this;return onSelectableClick=_.bind(this._onSelectableClick,this),this.$node.on("click.tt",this.selectors.selectable,onSelectableClick),_.each(this.datasets,function(dataset){dataset.onSync("asyncRequested",that._propagate,that).onSync("asyncCanceled",that._propagate,that).onSync("asyncReceived",that._propagate,that).onSync("rendered",that._onRendered,that).onSync("cleared",that._onCleared,that)}),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(dir){this.$node.attr("dir",dir)},selectableRelativeToCursor:function(delta){var $selectables,$oldCursor,oldIndex,newIndex;return $oldCursor=this.getActiveSelectable(),$selectables=this._getSelectables(),oldIndex=$oldCursor?$selectables.index($oldCursor):-1,newIndex=oldIndex+delta,newIndex=(newIndex+1)%($selectables.length+1)-1,-1===(newIndex=newIndex<-1?$selectables.length-1:newIndex)?null:$selectables.eq(newIndex)},setCursor:function($selectable){this._removeCursor(),($selectable=$selectable&&$selectable.first())&&($selectable.addClass(this.classes.cursor),this._ensureVisible($selectable))},getSelectableData:function($el){return $el&&$el.length?Dataset.extractData($el):null},getActiveSelectable:function(){var $selectable=this._getSelectables().filter(this.selectors.cursor).first();return $selectable.length?$selectable:null},getTopSelectable:function(){var $selectable=this._getSelectables().first();return $selectable.length?$selectable:null},update:function(query){function updateDataset(dataset){dataset.update(query)}var isValidUpdate=query!==this.query;return isValidUpdate&&(this.query=query,_.each(this.datasets,updateDataset)),isValidUpdate},empty:function(){_.each(this.datasets,function(dataset){dataset.clear()}),this.query=null,this.$node.addClass(this.classes.empty)},destroy:function(){this.$node.off(".tt"),this.$node=$("<div>"),_.each(this.datasets,function(dataset){dataset.destroy()})}}),Menu}(),DefaultMenu=function(){"use strict";function DefaultMenu(){Menu.apply(this,[].slice.call(arguments,0))}var s=Menu.prototype;return _.mixin(DefaultMenu.prototype,Menu.prototype,{open:function(){return!this._allDatasetsEmpty()&&this._show(),s.open.apply(this,[].slice.call(arguments,0))},close:function(){return this._hide(),s.close.apply(this,[].slice.call(arguments,0))},_onRendered:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),s._onRendered.apply(this,[].slice.call(arguments,0))},_onCleared:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),s._onCleared.apply(this,[].slice.call(arguments,0))},setLanguageDirection:function(dir){return this.$node.css("ltr"===dir?this.css.ltr:this.css.rtl),s.setLanguageDirection.apply(this,[].slice.call(arguments,0))},_hide:function(){this.$node.hide()},_show:function(){this.$node.css("display","block")}}),DefaultMenu}(),Typeahead=function(){"use strict";function Typeahead(o,www){var onFocused,onBlurred,onEnterKeyed,onTabKeyed,onEscKeyed,onUpKeyed,onDownKeyed,onLeftKeyed,onRightKeyed,onQueryChanged,onWhitespaceChanged;(o=o||{}).input||$.error("missing input"),o.menu||$.error("missing menu"),o.eventBus||$.error("missing event bus"),www.mixin(this),this.eventBus=o.eventBus,this.minLength=_.isNumber(o.minLength)?o.minLength:1,this.input=o.input,this.menu=o.menu,this.enabled=!0,this.active=!1,this.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),onFocused=c(this,"activate","open","_onFocused"),onBlurred=c(this,"deactivate","_onBlurred"),onEnterKeyed=c(this,"isActive","isOpen","_onEnterKeyed"),onTabKeyed=c(this,"isActive","isOpen","_onTabKeyed"),onEscKeyed=c(this,"isActive","_onEscKeyed"),onUpKeyed=c(this,"isActive","open","_onUpKeyed"),onDownKeyed=c(this,"isActive","open","_onDownKeyed"),onLeftKeyed=c(this,"isActive","isOpen","_onLeftKeyed"),onRightKeyed=c(this,"isActive","isOpen","_onRightKeyed"),onQueryChanged=c(this,"_openIfActive","_onQueryChanged"),onWhitespaceChanged=c(this,"_openIfActive","_onWhitespaceChanged"),this.input.bind().onSync("focused",onFocused,this).onSync("blurred",onBlurred,this).onSync("enterKeyed",onEnterKeyed,this).onSync("tabKeyed",onTabKeyed,this).onSync("escKeyed",onEscKeyed,this).onSync("upKeyed",onUpKeyed,this).onSync("downKeyed",onDownKeyed,this).onSync("leftKeyed",onLeftKeyed,this).onSync("rightKeyed",onRightKeyed,this).onSync("queryChanged",onQueryChanged,this).onSync("whitespaceChanged",onWhitespaceChanged,this).onSync("langDirChanged",this._onLangDirChanged,this)}function c(ctx){var methods=[].slice.call(arguments,1);return function(){var args=[].slice.call(arguments);_.each(methods,function(method){return ctx[method].apply(ctx,args)})}}return _.mixin(Typeahead.prototype,{_hacks:function(){var $input,$menu;$input=this.input.$input||$("<div>"),$menu=this.menu.$node||$("<div>"),$input.on("blur.tt",function($e){var active,isActive,hasActive;active=document.activeElement,isActive=$menu.is(active),hasActive=$menu.has(active).length>0,_.isMsie()&&(isActive||hasActive)&&($e.preventDefault(),$e.stopImmediatePropagation(),_.defer(function(){$input.focus()}))}),$menu.on("mousedown.tt",function($e){$e.preventDefault()})},_onSelectableClicked:function(type,$el){this.select($el)},_onDatasetCleared:function(){this._updateHint()},_onDatasetRendered:function(type,dataset,suggestions,async){this._updateHint(),this.eventBus.trigger("render",suggestions,async,dataset)},_onAsyncRequested:function(type,dataset,query){this.eventBus.trigger("asyncrequest",query,dataset)},_onAsyncCanceled:function(type,dataset,query){this.eventBus.trigger("asynccancel",query,dataset)},_onAsyncReceived:function(type,dataset,query){this.eventBus.trigger("asyncreceive",query,dataset)},_onFocused:function(){this._minLengthMet()&&this.menu.update(this.input.getQuery())},_onBlurred:function(){this.input.hasQueryChangedSinceLastFocus()&&this.eventBus.trigger("change",this.input.getQuery())},_onEnterKeyed:function(type,$e){var $selectable;($selectable=this.menu.getActiveSelectable())&&this.select($selectable)&&$e.preventDefault()},_onTabKeyed:function(type,$e){var $selectable;($selectable=this.menu.getActiveSelectable())?this.select($selectable)&&$e.preventDefault():($selectable=this.menu.getTopSelectable())&&this.autocomplete($selectable)&&$e.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())},_onQueryChanged:function(e,query){this._minLengthMet(query)?this.menu.update(query):this.menu.empty()},_onWhitespaceChanged:function(){this._updateHint()},_onLangDirChanged:function(e,dir){this.dir!==dir&&(this.dir=dir,this.menu.setLanguageDirection(dir))},_openIfActive:function(){this.isActive()&&this.open()},_minLengthMet:function(query){return(query=_.isString(query)?query:this.input.getQuery()||"").length>=this.minLength},_updateHint:function(){var $selectable,data,val,query,escapedQuery,match;$selectable=this.menu.getTopSelectable(),data=this.menu.getSelectableData($selectable),val=this.input.getInputValue(),!data||_.isBlankString(val)||this.input.hasOverflow()?this.input.clearHint():(query=Input.normalizeQuery(val),escapedQuery=_.escapeRegExChars(query),(match=new RegExp("^(?:"+escapedQuery+")(.+$)","i").exec(data.val))&&this.input.setHint(val+match[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()||!(!this.isEnabled()||this.eventBus.before("active"))&&(this.active=!0,this.eventBus.trigger("active"),!0)},deactivate:function(){return!this.isActive()||!this.eventBus.before("idle")&&(this.active=!1,this.close(),this.eventBus.trigger("idle"),!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")),!this.isOpen()},setVal:function(val){this.input.setQuery(_.toStr(val))},getVal:function(){return this.input.getQuery()},select:function($selectable){var data=this.menu.getSelectableData($selectable);return!(!data||this.eventBus.before("select",data.obj))&&(this.input.setQuery(data.val,!0),this.eventBus.trigger("select",data.obj),this.close(),!0)},autocomplete:function($selectable){var query,data;return query=this.input.getQuery(),data=this.menu.getSelectableData($selectable),!(!(data&&query!==data.val)||this.eventBus.before("autocomplete",data.obj))&&(this.input.setQuery(data.val),this.eventBus.trigger("autocomplete",data.obj),!0)},moveCursor:function(delta){var query,$candidate,data,payload;return query=this.input.getQuery(),$candidate=this.menu.selectableRelativeToCursor(delta),data=this.menu.getSelectableData($candidate),payload=data?data.obj:null,!(this._minLengthMet()&&this.menu.update(query))&&!this.eventBus.before("cursorchange",payload)&&(this.menu.setCursor($candidate),data?this.input.setInputValue(data.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",payload),!0)},destroy:function(){this.input.destroy(),this.menu.destroy()}}),Typeahead}();!function(){"use strict";function ttEach($els,fn){$els.each(function(){var typeahead,$input=$(this);(typeahead=$input.data(keys.typeahead))&&fn(typeahead,$input)})}function $elOrNull(obj){var isValid,$el;return isValid=_.isJQuery(obj)||_.isElement(obj),($el=isValid?$(obj).first():[]).length?$el:null}var old,keys,methods;old=$.fn.typeahead,keys={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"},methods={initialize:function(o,datasets){var www;return datasets=_.isArray(datasets)?datasets:[].slice.call(arguments,1),o=o||{},www=WWW(o.classNames),this.each(function(){var $input,$wrapper,$hint,$menu,defaultHint,defaultMenu,eventBus,input,menu,typeahead,MenuConstructor;_.each(datasets,function(d){d.highlight=!!o.highlight}),$input=$(this),$wrapper=$(www.html.wrapper),$hint=$elOrNull(o.hint),$menu=$elOrNull(o.menu),defaultHint=!1!==o.hint&&!$hint,defaultMenu=!1!==o.menu&&!$menu,defaultHint&&($hint=function($input,www){return $input.clone().addClass(www.classes.hint).removeData().css(www.css.hint).css(function($el){return{backgroundAttachment:$el.css("background-attachment"),backgroundClip:$el.css("background-clip"),backgroundColor:$el.css("background-color"),backgroundImage:$el.css("background-image"),backgroundOrigin:$el.css("background-origin"),backgroundPosition:$el.css("background-position"),backgroundRepeat:$el.css("background-repeat"),backgroundSize:$el.css("background-size")}}($input)).prop("readonly",!0).removeAttr("id name placeholder required").attr({autocomplete:"off",spellcheck:"false",tabindex:-1})}($input,www)),defaultMenu&&($menu=$(www.html.menu).css(www.css.menu)),$hint&&$hint.val(""),$input=function($input,www){$input.data(keys.attrs,{dir:$input.attr("dir"),autocomplete:$input.attr("autocomplete"),spellcheck:$input.attr("spellcheck"),style:$input.attr("style")}),$input.addClass(www.classes.input).attr({autocomplete:"off",spellcheck:!1});try{!$input.attr("dir")&&$input.attr("dir","auto")}catch(e){}return $input}($input,www),(defaultHint||defaultMenu)&&($wrapper.css(www.css.wrapper),$input.css(defaultHint?www.css.input:www.css.inputWithNoHint),$input.wrap($wrapper).parent().prepend(defaultHint?$hint:null).append(defaultMenu?$menu:null)),MenuConstructor=defaultMenu?DefaultMenu:Menu,eventBus=new EventBus({el:$input}),input=new Input({hint:$hint,input:$input},www),menu=new MenuConstructor({node:$menu,datasets:datasets},www),typeahead=new Typeahead({input:input,menu:menu,eventBus:eventBus,minLength:o.minLength},www),$input.data(keys.www,www),$input.data(keys.typeahead,typeahead)})},isEnabled:function(){var enabled;return ttEach(this.first(),function(t){enabled=t.isEnabled()}),enabled},enable:function(){return ttEach(this,function(t){t.enable()}),this},disable:function(){return ttEach(this,function(t){t.disable()}),this},isActive:function(){var active;return ttEach(this.first(),function(t){active=t.isActive()}),active},activate:function(){return ttEach(this,function(t){t.activate()}),this},deactivate:function(){return ttEach(this,function(t){t.deactivate()}),this},isOpen:function(){var open;return ttEach(this.first(),function(t){open=t.isOpen()}),open},open:function(){return ttEach(this,function(t){t.open()}),this},close:function(){return ttEach(this,function(t){t.close()}),this},select:function(el){var success=!1,$el=$(el);return ttEach(this.first(),function(t){success=t.select($el)}),success},autocomplete:function(el){var success=!1,$el=$(el);return ttEach(this.first(),function(t){success=t.autocomplete($el)}),success},moveCursor:function(delta){var success=!1;return ttEach(this.first(),function(t){success=t.moveCursor(delta)}),success},val:function(newVal){var query;return arguments.length?(ttEach(this,function(t){t.setVal(newVal)}),this):(ttEach(this.first(),function(t){query=t.getVal()}),query)},destroy:function(){return ttEach(this,function(typeahead,$input){!function($input){var www,$wrapper;www=$input.data(keys.www),$wrapper=$input.parent().filter(www.selectors.wrapper),_.each($input.data(keys.attrs),function(val,key){_.isUndefined(val)?$input.removeAttr(key):$input.attr(key,val)}),$input.removeData(keys.typeahead).removeData(keys.www).removeData(keys.attr).removeClass(www.classes.input),$wrapper.length&&($input.detach().insertAfter($wrapper),$wrapper.remove())}($input),typeahead.destroy()}),this}},$.fn.typeahead=function(method){return methods[method]?methods[method].apply(this,[].slice.call(arguments,1)):methods.initialize.apply(this,arguments)},$.fn.typeahead.noConflict=function(){return $.fn.typeahead=old,this}}()});;
/* --- source: /modules/jsmanager/resources/jsmin/modules/duplo/resources/js/jquery/placeholder-min.js (minified version of /modules/duplo/resources/js/jquery/placeholder.js) --- */
/*!
* jQuery Placeholder Plugin v2.3.1
* https://github.com/mathiasbynens/jquery-placeholder
*
* Copyright 2011, 2015 Mathias Bynens
* Released under the MIT license
*/
!function(factory){"function"==typeof define&&define.amd?define(["jquery"],factory):"object"==typeof module&&module.exports?factory(require("jquery")):factory(jQuery)}(function($){function clearPlaceholder(event,value){var $input=$(this);if(this.value===$input.attr(debugMode?"placeholder-x":"placeholder")&&$input.hasClass(settings.customClass))if(this.value="",$input.removeClass(settings.customClass),$input.data("placeholder-password")){if($input=$input.hide().nextAll('input[type="password"]:first').show().attr("id",$input.removeAttr("id").data("placeholder-id")),!0===event)return $input[0].value=value,value;$input.focus()}else this==safeActiveElement()&&this.select()}function setPlaceholder(event){var $replacement,$input=$(this),id=this.id;if(!event||"blur"!==event.type||!$input.hasClass(settings.customClass))if(""===this.value){if("password"===this.type){if(!$input.data("placeholder-textinput")){try{$replacement=$input.clone().prop({type:"text"})}catch(e){$replacement=$("<input>").attr($.extend(function(elem){var newAttrs={},rinlinejQuery=/^jQuery\d+$/;return $.each(elem.attributes,function(i,attr){attr.specified&&!rinlinejQuery.test(attr.name)&&(newAttrs[attr.name]=attr.value)}),newAttrs}(this),{type:"text"}))}$replacement.removeAttr("name").data({"placeholder-enabled":!0,"placeholder-password":$input,"placeholder-id":id}).bind("focus.placeholder",clearPlaceholder),$input.data({"placeholder-textinput":$replacement,"placeholder-id":id}).before($replacement)}this.value="",$input=$input.removeAttr("id").hide().prevAll('input[type="text"]:first').attr("id",$input.data("placeholder-id")).show()}else{var $passwordInput=$input.data("placeholder-password");$passwordInput&&($passwordInput[0].value="",$input.attr("id",$input.data("placeholder-id")).show().nextAll('input[type="password"]:last').hide().removeAttr("id"))}$input.addClass(settings.customClass),$input[0].value=$input.attr(debugMode?"placeholder-x":"placeholder")}else $input.removeClass(settings.customClass)}function safeActiveElement(){try{return document.activeElement}catch(exception){}}var hooks,placeholder,debugMode=!1,isOperaMini="[object OperaMini]"===Object.prototype.toString.call(window.operamini),isInputSupported="placeholder"in document.createElement("input")&&!isOperaMini&&!debugMode,isTextareaSupported="placeholder"in document.createElement("textarea")&&!isOperaMini&&!debugMode,valHooks=$.valHooks,propHooks=$.propHooks,settings={};isInputSupported&&isTextareaSupported?((placeholder=$.fn.placeholder=function(){return this}).input=!0,placeholder.textarea=!0):((placeholder=$.fn.placeholder=function(options){return settings=$.extend({},{customClass:"placeholder"},options),this.filter((isInputSupported?"textarea":":input")+"["+(debugMode?"placeholder-x":"placeholder")+"]").not("."+settings.customClass).not(":radio, :checkbox, [type=hidden]").bind({"focus.placeholder":clearPlaceholder,"blur.placeholder":setPlaceholder}).data("placeholder-enabled",!0).trigger("blur.placeholder")}).input=isInputSupported,placeholder.textarea=isTextareaSupported,hooks={get:function(element){var $element=$(element),$passwordInput=$element.data("placeholder-password");return $passwordInput?$passwordInput[0].value:$element.data("placeholder-enabled")&&$element.hasClass(settings.customClass)?"":element.value},set:function(element,value){var $replacement,$passwordInput,$element=$(element);return""!==value&&($replacement=$element.data("placeholder-textinput"),$passwordInput=$element.data("placeholder-password"),$replacement?(clearPlaceholder.call($replacement[0],!0,value)||(element.value=value),$replacement[0].value=value):$passwordInput&&(clearPlaceholder.call(element,!0,value)||($passwordInput[0].value=value),element.value=value)),$element.data("placeholder-enabled")?(""===value?(element.value=value,element!=safeActiveElement()&&setPlaceholder.call(element)):($element.hasClass(settings.customClass)&&clearPlaceholder.call(element),element.value=value),$element):(element.value=value,$element)}},isInputSupported||(valHooks.input=hooks,propHooks.value=hooks),isTextareaSupported||(valHooks.textarea=hooks,propHooks.value=hooks),$(function(){$(document).delegate("form","submit.placeholder",function(){var $inputs=$("."+settings.customClass,this).each(function(){clearPlaceholder.call(this,!0,"")});setTimeout(function(){$inputs.each(setPlaceholder)},10)})}),$(window).bind("beforeunload.placeholder",function(){var clearPlaceholders=!0;try{"javascript:void(0)"===document.activeElement.toString()&&(clearPlaceholders=!1)}catch(exception){}clearPlaceholders&&$("."+settings.customClass).each(function(){this.value=""})}))});;
/* --- source: /modules/jsmanager/resources/jsmin/modules/resultlistpage/resources/js/searchbox-min.js (minified version of /modules/resultlistpage/resources/js/searchbox.js) --- */
!function($){function Plugin(element,options){this.$element=element,this.defaults=defaults,this.options=options,this.whatSelection={},this.whereSelection={},this.$whatInput=this.$element.find("[data-search-box-what]"),this.$whereInput=this.$element.find("[data-search-box-where]"),this.$searchButton=this.$element.find("[data-search-box-search-button]"),this.$whatIcon=this.$element.find("[data-search-box-what-icon]"),this.$whereIcon=this.$element.find("[data-search-box-where-icon]"),this.$queryStructInput=this.$element.find("[data-search-box-query-struct]"),this.$companyInput=this.$element.find("[data-search-box-company]"),this.$cityInput=this.$element.find("[data-search-box-city]"),this.init()}var defaults={autosuggest:{typeaheadOptions:{hint:!0,highlight:!0,minLength:1,classNames:{input:"typeahead__input",hint:"typeahead__hint",menu:"typeahead__menu",dataset:"typeahead__dataset",suggestion:"typeahead__suggestion",empty:"typeahead__empty",open:"typeahead__menu--open",cursor:"typeahead__cursor",highlight:"typeahead__highlight"}},queryUrlTemplate:"/autosuggest/?q=%QUERY%&ap=%APPNAME%&c=%COUNTRY%&ln=%LANGUAGE%&ctp=%COMPANYTYPE%&t=%TYPE%&l=%LIMIT%&s=%QUERYSTRUCT%",queryParamValues:{limit:15,type:{what:"jd,company_cp",where:"geocity"},appName:"core",companyType:!1}}};Plugin.prototype={init:function(){this.$whatInput.on("keyup",$.proxy(this.onWhatInputEdit,this)),this.$whereInput.on("keyup",$.proxy(this.onWhereInputEdit,this)),this.$searchButton.on("click",$.proxy(this.onFormSubmit,this)),$.subscribe("jsss-update-widgets-success_criteria",$.proxy(this.updateCategorization,this)),this.options.focusWhatField&&setTimeout($.proxy(this.focusWhatField,this),10),!$.isEmptyObject(this.options.radius)&&this.options.radius.enabled&&this.initRadius(),!$.isEmptyObject(this.options.autosuggest)&&this.options.autosuggest.enabled&&this.initAutosuggest(),this.initPlaceholders()},initPlaceholders:function(){var $inputs=this.$element.find("[data-search-box-placeholder]");$inputs.length&&$inputs.placeholder()},focusWhatField:function(){this.$whatInput.focus()},initRadius:function(){var self=this,$whereContainer=this.$element.find("[data-search-box-where-container]"),$radiusContainer=$whereContainer.find("[data-search-box-radius-container]"),$input=$radiusContainer.find("[data-search-box-radius-input]"),$label=$radiusContainer.find("[data-search-box-radius-label]"),$list=$radiusContainer.find("[data-search-box-radius-list]"),$alwaysShowRadius=0!==this.$element.find("[data-alwaysShowRadius]").length;$alwaysShowRadius&&$whereContainer.addClass("search-box__where--show-radius"),this.$whereInput.on("keyup",function(){0===$(this).val().length?($alwaysShowRadius||$whereContainer.removeClass("search-box__where--show-radius"),$input.val("")):($whereContainer.addClass("search-box__where--show-radius"),$input.val($label.attr("data-search-box-radius-value")))}),$list.find("li").click(function(){$label.attr("data-search-box-radius-value",$(this).data("value")).text($(this).text()),$input.val($label.attr("data-search-box-radius-value")),self.updateActiveDropdownElement($(this))})},updateActiveDropdownElement:function($dropdownElement){var $dropdownElements=this.$element.find("[data-search-box-where-container]").find("[data-search-box-radius-container]").find("[data-search-box-radius-list]").find("[data-search-box-element]");$dropdownElements&&($dropdownElements.removeClass("active"),$dropdownElement.hasClass("js-search-box__dropdown-menu_element")&&$dropdownElement.addClass("active"))},initAutosuggest:function(){var self=this,whatSuggestions=this.getBloodhound("description","what"),whereSuggestions=this.getBloodhound("description","where"),autosuggestType=this.$whatInput.data("search-box-autosuggest-type"),isOpen=!1;whatSuggestions.initialize(),whereSuggestions.initialize(),void 0!==autosuggestType&&""!==autosuggestType&&(this.defaults.autosuggest.queryParamValues.type.what=autosuggestType),this.$whatInput.typeahead("destroy"),this.$whereInput.typeahead("destroy"),this.$whatInput.typeahead(this.defaults.autosuggest.typeaheadOptions,{name:"what-suggestions",displayKey:"description",source:whatSuggestions,templates:{suggestion:function(sample){var $template=self.$element.find("[data-search-box-autosuggest-sample-row]").clone();return $template.removeClass("hidden").removeAttr("data-search-box-autosuggest-sample-row").attr("data-search-box-autosuggest-row",""),$template.find("[data-search-box-autosuggest-sample-row-description-label]").removeAttr("data-search-box-autosuggest-sample-row-description-label").attr("data-search-box-autosuggest-row-description-label","").text(sample.description),"company"!==sample.type.toLowerCase()&&"company_cp"!==sample.type.toLowerCase()&&"candidate_centric_company"!==sample.type.toLowerCase()&&"skill_facet"!==sample.type.toLowerCase()?$template.find("[data-search-box-autosuggest-sample-row-company-label]").remove():$template.find("[data-search-box-autosuggest-sample-row-company-label]").removeAttr("data-search-box-autosuggest-sample-row-company-label").attr("data-search-box-autosuggest-row-company-label","").text(sample.typeDisplay),$template}}}).bind("typeahead:select",function(event,suggestion){self.whatSelection=self.getSelectionFromSuggestion(suggestion),self.updateQueryStruct()}).bind("typeahead:render",function(event,suggestion){self.calculateLabel()}).bind("typeahead:open",function(){isOpen=!0}).bind("typeahead:beforeclose",function(event){isOpen&&(event.preventDefault(),setTimeout(function(){isOpen=!1,self.$whatInput.typeahead("close")},100))}),this.$whereInput.typeahead(this.defaults.autosuggest.typeaheadOptions,{name:"where-suggestions",displayKey:"description",source:whereSuggestions}).bind("typeahead:select",function(event,suggestion){self.whereSelection=self.getSelectionFromSuggestion(suggestion),self.updateQueryStruct()})},calculateLabel:function(){var labelsElemets=$("span").find("[data-search-box-autosuggest-row-description-label]");labelsElemets.css("maxWidth",250);var maxWidth=$(".search-box__field-what").width(),labelWidth=0;$("span").find("[data-search-box-autosuggest-row-company-label]").each(function(index){var elementWidth=$(this).outerWidth();elementWidth>labelWidth&&(labelWidth=elementWidth)}),labelsElemets.css("maxWidth",maxWidth-labelWidth-1)},getSelectionFromSuggestion:function(suggestion){return{id:suggestion.id,description:suggestion.description,type:suggestion.type}},updateQueryStruct:function(){var selectionArray=[];$.isEmptyObject(this.whatSelection)||selectionArray.push(this.whatSelection),$.isEmptyObject(this.whereSelection)||selectionArray.push(this.whereSelection),this.$queryStructInput.val(JSON.stringify(selectionArray)),this.$companyInput.val(this.whatSelection.id||0),this.$cityInput.val(this.whereSelection.id||0)},updateWhatIcon:function(){this.$whatIcon&&""!==this.$whatInput.val()?this.$whatIcon.addClass("active"):this.$whatIcon.removeClass("active")},updateWhereIcon:function(){this.$whereIcon&&""!==this.$whereInput.val()?this.$whereIcon.addClass("active"):this.$whereIcon.removeClass("active")},onWhatInputEdit:function(){this.whatSelection.description&&this.whatSelection.description.trim().toLowerCase()!==this.$whatInput.val().trim().toLowerCase()&&(this.whatSelection={}),this.updateQueryStruct(),this.updateWhatIcon()},onWhereInputEdit:function(){this.whereSelection.description&&this.whereSelection.description.trim().toLowerCase()!==this.$whereInput.val().trim().toLowerCase()&&(this.whereSelection={}),this.updateQueryStruct(),this.updateWhereIcon()},updateCategorization:function(_,criteria){this.$whatInput.val(criteria.KEYWORDS||""),this.onWhatInputEdit(),this.initAutosuggest(),"undefined"!=typeof previousSearches&&previousSearches.show()},onFormSubmit:function(){$.cookie("showJapuboxPopup","true",{path:"/",domain:document.location.hostname,secure:!1}),this.$element.prop("action",this.getFormAction())},getFormAction:function(){return $.isEmptyObject(this.whatSelection)||"company"!==this.whatSelection.type&&"company_cp"!==this.whatSelection.type||0===parseInt(this.$companyInput.val(),10)||0!==this.$whereInput.val().length?void 0!==this.$companyInput.data("company")?(this.$whatInput.val(""),this.options.links.formActionCompany):(this.$companyInput.val(0),this.options.showDetailedResultList?this.options.links.formActionDetails:this.options.links.formActionResultlist):(this.$whatInput.val(""),this.updateQueryStruct(),this.options.links.formActionCompany)},getAutosuggestURL:function(queryType,queryValue){return this.defaults.autosuggest.queryUrlTemplate.replace("%QUERY%",encodeURIComponent(queryValue||"")).replace("%APPNAME%",encodeURIComponent(this.defaults.autosuggest.queryParamValues.appName||"")).replace("%COUNTRY%",encodeURIComponent(this.options.siteCountry||"")).replace("%LANGUAGE%",encodeURIComponent(this.options.language||"")).replace("%COMPANYTYPE%",encodeURIComponent(this.defaults.autosuggest.queryParamValues.companyType||"")).replace("%TYPE%",encodeURIComponent(this.defaults.autosuggest.queryParamValues.type[queryType]||"")).replace("%LIMIT%",encodeURIComponent(this.defaults.autosuggest.queryParamValues.limit||"")).replace("%QUERYSTRUCT%",encodeURIComponent(this.$queryStructInput.val()||""))},bloodhoundSettingsGenerator:function(queryType){var self=this;return function(query,settings){return settings.url=self.getAutosuggestURL(queryType,query),settings}},getBloodhound:function(datum,field){var self=this;return new Bloodhound({datumTokenizer:Bloodhound.tokenizers.obj.whitespace(datum),queryTokenizer:Bloodhound.tokenizers.whitespace,remote:{url:this.getAutosuggestURL(field,""),prepare:$.proxy(self.bloodhoundSettingsGenerator(field),self),filter:function(data){return $.map(data,function(sample){var typeDisplay=self.options.autosuggest.typeTranslations[sample.type]||sample.type;return"candidate_centric_company"==typeDisplay&&(typeDisplay=self.options.autosuggest.typeTranslations.company_cp),{id:sample.id,description:sample.description,type:sample.type,typeDisplay:typeDisplay}})}}})}},$.fn.searchBox=function(options){return this.each(function(){$.data(this,"plugin_searchBox")||$.data(this,"plugin_searchBox",new Plugin($(this),options))})}}(jQuery);;
/* --- source: /modules/jsmanager/resources/jsmin/modules/resultlistpage/resources/js/searchbox-init-min.js (minified version of /modules/resultlistpage/resources/js/searchbox-init.js) --- */
!function($){$(function(){$("[data-search-box]").each(function(){$(this).searchBox($(this).data("search-box"))})})}(jQuery);;
/* --- source: /modules/jsmanager/resources/jsmin/modules/resultlistpage/resources/js/recentsearches-min.js (minified version of /modules/resultlistpage/resources/js/recentsearches.js) --- */
var previousSearches={storageKey:"previous-searches",itemSeparator:"{|-|}",wordSeparator:"{#-#}",hasQuantityData:!1,inputToSearchFileds:function(result){$('input[name="ke"]').typeahead("val",result.what).typeahead("close"),$('input[name="ws"]').typeahead("val",result.where).typeahead("close"),$("[data-search-box-query-struct]").val("[]"),result.company>0&&($("[data-search-box-query-struct]").val('[{"id":"'+result.company+'","description":"'+result.what+'","type":"company_cp"}]'),$("[data-search-box-company]").val(result.company),$("[data-search-box-company]").data("company",result.company),$('input[name="ke"]').typeahead("val","").typeahead("close"))},getSearch:function(index){var resultArray=this.getFromStorage(),companyId=void 0!==(resultArray=resultArray[index].split(this.wordSeparator))[3]?resultArray[3]:0;return{what:resultArray[0],where:resultArray[1],company:companyId}},getFromStorage:function(){var resultString=this.getCookie(this.storageKey),resultArray=[];return null!==resultString&&(resultArray=(resultString=(resultString=resultString.replace(/##where:/g,this.wordSeparator)).replace(/what:/g,"").replace(/where:/g,"")).indexOf(this.itemSeparator)>-1?resultString.split(this.itemSeparator):resultString.split("|")),resultArray},saveCurrentSearch:function(){var whatSearch="",whereSearch="";try{whatSearch=$('input[name="ke"]').val(),whatSearch=this.cleanText(whatSearch)}catch(err){}try{whereSearch=$('input[name="ws"]').val(),whereSearch=this.cleanText(whereSearch)}catch(err){}var companyId=this.getParameterByName("companyID",!0);if(""!=companyId&&0!=companyId){var company=this.getParameterByName("qs",!1),companyName=""!=company?JSON.parse(company)[0].description:"";whatSearch=this.cleanText(companyName)}if(void 0!==whatSearch&&null!==whatSearch||(whatSearch=""),void 0!==whereSearch&&null!==whereSearch||(whereSearch=""),""!=whatSearch||""!=whereSearch){var query=whatSearch+this.wordSeparator+whereSearch+this.wordSeparator;this.saveToStorage(query)}},cleanText:function(text){var div=document.createElement("div");return div.appendChild(document.createTextNode(text)),div.innerHTML},saveToStorage:function(element){for(var arrayOfValues=this.getFromStorage(),patern=element.toLowerCase(),i=0;i<arrayOfValues.length;i++){0==arrayOfValues[i].toLowerCase().indexOf(patern)&&arrayOfValues.splice(i,1)}element+=(new Date).getTime();var companyId=this.getParameterByName("companyID",!0);element+=""!=companyId?this.wordSeparator+companyId:"",arrayOfValues.unshift(element),arrayOfValues=arrayOfValues.slice(0,3),this.setCookie(this.storageKey,arrayOfValues.join(this.itemSeparator),60)},renderElement:function(element,name,value){var textValue=""==value?'<span class="previous-searches__empty"></span>':value;return element.append('<p class="previous-searches__'+name+'">'+textValue+"</p>"),element},addClickEventToElement:function(element,result,elementIndex){var module=this;return element.on("click",result,function(event){module.inputToSearchFileds(event.data),$('form[name="SearchBoxName"]').append('<input type="hidden" name="rsearch" value="'+(elementIndex+1)+'">'),$("[data-search-box-search-button]").click()}),element},prepareContentForPopupVariant:function(){this.getFromStorage();for(var content=$("<ul/>"),index=0;index<this.getFromStorage().length;index++){var result=this.getSearch(index),element=$("<li/>").addClass("previous-searches-popup__link");""==result.what?(element=this.renderElement(element,"what",result.where),element=this.renderElement(element,"where",result.what)):(element=this.renderElement(element,"what",result.what),element=this.renderElement(element,"where",result.where)),element.append('<span class="previous-searches__quantity">0 '+$(".previous-searches").data("recent-searches-new")+"</span>"),(element=this.addClickEventToElement(element,result,index)).appendTo(content)}return content},show:function(){if(0!=previousSearches.getFromStorage().length){var element=$('<div class="typeahead__menu previous-searches-popup"></div>');element.append('<div class="previous-searches-popup__title">'+$(".previous-searches").data("recent-searches-translations")+"</div>"),element.append(this.prepareContentForPopupVariant()),element.appendTo($('input[name="ke"]').parent()),$(".search-box__what span.twitter-typeahead").bind("keyup click",function(){$('input[name="ke"]').typeahead("val").length>0?element.hide():(element.show(),previousSearches.getNumbers())}),$(".search-box__field-what").bind("typeahead:idle",function(){setTimeout(function(){element.hide()},200)})}},getNumbers:function(){},setCookie:function(cname,cvalue,exdays){var d=new Date;d.setTime(d.getTime()+24*exdays*60*60*1e3);var expires="expires="+d.toUTCString();document.cookie=cname+"="+encodeURIComponent(cvalue)+"; "+expires+";path=/"},getCookie:function(cname){for(var name=cname+"=",ca=document.cookie.split(";"),i=0;i<ca.length;i++){for(var c=ca[i];" "==c.charAt(0);)c=c.substring(1);if(0==c.indexOf(name))return decodeURIComponent(c.substring(name.length,c.length))}return null},getParameterByName:function(name,lowerCaseParameter){url=window.location.href,name=name.replace(/[\[\]]/g,"\\$&"),lowerCaseParameter&&(name=name.toLowerCase(),url=url.toLowerCase());var results=new RegExp("[?&]"+name+"(=([^&#]*)|&|#|$)").exec(url);return results&&results[2]?decodeURIComponent(results[2].replace(/\+/g," ")):""}};$(document).ready(function(){$(".previous-searches-collector").length&&previousSearches.saveCurrentSearch(),previousSearches.show()});;
/* --- source: /modules/jsmanager/resources/jsmin/modules/resultlistpage/resources/js/highlight-visited-min.js (minified version of /modules/resultlistpage/resources/js/highlight-visited.js) --- */
var highlightedvisited={storageKey:"highlighted-visited",storageLimit:1e3,linksToModify:[".job-element__url","[data-offer-meta-text-snippet-link]",".user-recommender__item-link",".jobitem__header a",".jobitem__location a"],elemetsToStyled:[".job-element__url",".job-element__body__title",".jobitem__title__hovered"],collectData:function(){if("undefined"!=typeof utag_data&&void 0!==utag_data.listing__listing_id){var offerID=utag_data.listing__listing_id;this.addListingToIndex(offerID)}},isInTest:function(){if("undefined"!=typeof utag_data){if(void 0!==(variant=utag_data.user__abtest_version)&&("B_MAT-548"==variant||"D_MAT-548"==variant))return!0;var variant;if(void 0!==(variant=utag_data.page_variant)&&("B_MAT-548"==variant||"D_MAT-548"==variant))return!0}return!1},addListingToIndex:function(offerID){if(isNaN(offerID))return!1;offerID=offerID.toString();var offers=this.loadFromStorage(),index=offers.indexOf(offerID);-1!=index&&offers.splice(index,1),offers.unshift(offerID),offers.length>this.storageLimit&&(offers=offers.slice(0,this.storageLimit)),this.saveToStorage(offers)},saveToStorage:function(offers){"undefined"!=typeof Storage&&localStorage.setItem(this.storageKey,JSON.stringify(offers))},loadFromStorage:function(){var offers=[];if("undefined"!=typeof Storage){var result=JSON.parse(localStorage.getItem(this.storageKey));null!=result&&(offers=result)}return offers},highlightLinks:function(){if(!this.isInTest())return!1;for(var offers=highlightedvisited.loadFromStorage(),visitedResultList=!1,i=0;i<offers.length;i++)$("[data-offer-anchor='joblisting-"+offers[i]+"']").each(function(){var element=$(this);highlightedvisited.addColorToLink(element),highlightedvisited.addParametrToLink(element),visitedResultList=!0});if("undefined"!=typeof utag_data){var status=utag_data.resultlist__listings_visibility_features;void 0!==status&&(utag_data.resultlist__listings_visibility_features=status.replace(", visited",", no visited"))}visitedResultList&&highlightedvisited.setVisitedResultList(visitedResultList)},addColorToLink:function(element){for(var i=0;i<this.elemetsToStyled.length;i++)element.find(this.elemetsToStyled[i]).css("color","#765478")},addParametrToLink:function(element){for(var i=0;i<this.linksToModify.length;i++)element.find(this.linksToModify[i]).each(function(){$(this).attr("href",$(this).attr("href")+"&visited=1_1")})},setVisitedResultList:function(status){for(var i=0;i<this.linksToModify.length;i++)$(this.linksToModify[i]).each(function(){-1==$(this).attr("href").indexOf("visited=1_1")&&$(this).attr("href",$(this).attr("href")+"&visited=1_0")});if("undefined"!=typeof utag_data){if(void 0!==(status=utag_data.resultlist__listings_visibility_features))return utag_data.resultlist__listings_visibility_features=status.replace("no visited","visited"),!0}if("undefined"!=typeof s){void 0!==(status=s.eVar17)&&(s.eVar17=status.replace("no visited","visited"))}}};;
/* --- source: /modules/jsmanager/resources/jsmin/modules/resultlistpage/resources/js/highlight-visited-show-min.js (minified version of /modules/resultlistpage/resources/js/highlight-visited-show.js) --- */
$(document).ready(function(){highlightedvisited.highlightLinks()});;
/* --- source: /modules/jsmanager/resources/jsmin/modules/jobagent/resources/js/duplo-japu-refreshcriteria-min.js (minified version of /modules/jobagent/resources/js/duplo-japu-refreshcriteria.js) --- */
!function($,window,document,undefined){function Plugin(element,options){this.$element=$(element),this.options=$.extend({},defaults,options),this._defaults=defaults,this._name=pluginName,this.init()}var pluginName="japuRefreshCriteria",defaults={};Plugin.prototype={init:function(){this.eventName=this.$element.attr("data-japu-eventName"),this.from=this.$element.attr("data-japu-from"),this.id=this.$element.attr("data-japu-id"),this.refreshCriteria(),$.subscribe("jsss-update-widgets-success_criteria",$.proxy(this.refreshCriteria,this))},refreshCriteria:function(){$.publish(this.eventName,[this.from,this.id]),window.jacriteria={from:this.from,id:this.id}}},$.fn[pluginName]=function(options){return this.each(function(){$.data(this,"plugin_"+pluginName)||$.data(this,"plugin_"+pluginName,new Plugin(this,options))})}}(jQuery,window,document);;
/* --- source: /modules/jsmanager/resources/jsmin/modules/jobagent/resources/js/duplo-japu-refreshcriteria-init-min.js (minified version of /modules/jobagent/resources/js/duplo-japu-refreshcriteria-init.js) --- */
!function($){$(function(){$("[data-japu-viewlet]").each(function(){$(this).japuRefreshCriteria($(this).data("japu-viewlet"))})})}(jQuery);;
/* --- source: /modules/jsmanager/resources/jsmin/modules/resultlistpage/resources/js/tabbedlinkbox-min.js (minified version of /modules/resultlistpage/resources/js/tabbedlinkbox.js) --- */
!function(global,$,undefined){$("[data-tab]").on("click",function(){var tabData=$(this).data("tab");try{if(void 0!==global.analyticsHelpers&&void 0!==global.analyticsHelpers.sendUTag){var utagData={page__events:["tab_click"],page__tab_name:tabData};global.analyticsHelpers.sendUTag(utagData)}}catch(e){}})}(window,jQuery);;
/* --- source: /modules/jsmanager/resources/jsmin/modules/resultlistpage/resources/js/lazyimg-min.js (minified version of /modules/resultlistpage/resources/js/lazyimg.js) --- */
!function($,window,document,undefined){function Plugin(element,options){this.$element=element,this.options=$.extend(defaults,options),this.instance=null,this.init()}var defaults={},subscribeEvents=["jsss-after-update-widgets","offerviewpage-after-recommender-load"];Plugin.prototype={init:function(){this.loadLazyImages(),this.subscribeToEvents()},subscribeToEvents:function(){var self=this;$.each(subscribeEvents,function(key,subscribeEvent){$.subscribe(subscribeEvent,$.proxy(self.loadLazyImages,self))})},loadLazyImages:function(){this.instance&&this.instance.destroy(),this.instance=this.$element.find("[data-lazy-img-item]").lazy({chainable:!1,bind:"event",afterLoad:function(element){element.removeClass("lazy")}})}},$.fn.lazyImg=function(options){return this.each(function(){$.data(this,"plugin_lazyImg")||$.data(this,"plugin_lazyImg",new Plugin($(this),options))})}}(jQuery,window,document);;
/* --- source: /modules/jsmanager/resources/jsmin/modules/resultlistpage/resources/js/lazyimg-init-min.js (minified version of /modules/resultlistpage/resources/js/lazyimg-init.js) --- */
!function($){$(function(){$("[data-lazy-img]").each(function(){$(this).lazyImg($(this).data("lazy-img"))})})}(jQuery);;
