1(function(t){t.fn.replace=function(l){$j(this).replaceWith(l)}})(jQuery),(function(t){t.fn.removeUi=function(){l(this);var c=this.find("*");return t.each(c.filter(function(u){return c[u].className.search(/\bui-\b/)>-1}),function(u,a){l(a)}),this};function l(c){var u=t(c).attr("class");u&&t.each(u.split(/\s+/),function(a,p){p.match(/^ui-/)&&t(c).removeClass(p)})}})(jQuery),(function(t){t.ajaxSettings.accepts._default="text/javascript, text/html, application/xml, text/xml, */*"})(jQuery),(function(t){t.fn.reset=function(){return this.each(function(){(typeof this.reset=="function"||typeof this.reset=="object"&&!this.reset.nodeType)&&this.reset()})},t.fn.enable=function(){return this.each(function(){this.disabled=!1})},t.fn.disable=function(){return this.each(function(){this.disabled=!0})}})(jQuery),(function(t){t.extend({fieldEvent:function(l,c){var u=l[0]||l,a="change";return u.type=="radio"||u.type=="checkbox"?a="click":c&&(u.type=="text"||u.type=="textarea"||u.type=="password")&&(a="keyup"),a}}),t.fn.extend({delayedObserver:function(l,c){var u=t(this);typeof window.delayedObserverStack>"u"&&(window.delayedObserverStack=[]),typeof window.delayedObserverCallback>"u"&&(window.delayedObserverCallback=function(p){var d=window.delayedObserverStack[p];d.timer&&clearTimeout(d.timer),d.timer=setTimeout(function(){d.timer=null,d.callback(d.obj,d.obj.formVal())},d.delay*1e3),d.oldVal=d.obj.formVal()}),window.delayedObserverStack.push({obj:u,timer:null,delay:l,oldVal:u.formVal(),callback:c});var a=window.delayedObserverStack.length-1;u[0].tagName=="FORM"?t(":input",u).each(function(){var p=t(this);p.bind(t.fieldEvent(p,l),function(){var d=window.delayedObserverStack[a];d.obj.formVal()!=d.oldVal&&window.delayedObserverCallback(a)})}):u.bind(t.fieldEvent(u,l),function(){var p=window.delayedObserverStack[a];p.obj.formVal()!=p.oldVal&&window.delayedObserverCallback(a)})},formVal:function(){var l=this[0];return l.tagName=="FORM"?this.serialize():l.type=="checkbox"||l.type=="radio"?this.filter("input:checked").val()||"":this.val()}})})(jQuery),(function($){$.fn.extend({visualEffect:function(o,options){return options?speed=options.duration*1e3:speed=null,e=o.replace(/\_(.)/g,function(t,l){return l.toUpperCase()}),eval("$(this)."+e+"("+speed+")")},appear:function(t,l){return this.fadeIn(t,l)},blindDown:function(t,l){return this.show("blind",{direction:"vertical"},t,l)},blindUp:function(t,l){return this.hide("blind",{direction:"vertical"},t,l)},blindRight:function(t,l){return this.show("blind",{direction:"horizontal"},t,l)},blindLeft:function(t,l){return this.hide("blind",{direction:"horizontal"},t,l),this},dropOut:function(t,l){return this.hide("drop",{direction:"down"},t,l)},dropIn:function(t,l){return this.show("drop",{direction:"up"},t,l)},fade:function(t,l){return this.fadeOut(t,l)},fadeToggle:function(t,l){return this.animate({opacity:"toggle"},t,l)},fold:function(t,l){return this.hide("fold",{},t,l)},foldOut:function(t,l){return this.show("fold",{},t,l)},grow:function(t,l){return this.show("scale",{},t,l)},highlight:function(t,l){return this.show("highlight",{},t,l)},puff:function(t,l){return this.hide("puff",{},t,l)},pulsate:function(t,l){return this.show("pulsate",{},t,l)},shake:function(t,l){return this.show("shake",{},t,l)},shrink:function(t,l){return this.hide("scale",{},t,l)},squish:function(t,l){return this.hide("scale",{origin:["top","left"]},t,l)},slideUp:function(t,l){return this.hide("slide",{direction:"up"},t,l)},slideDown:function(t,l){return this.show("slide",{direction:"up"},t,l)},switchOff:function(t,l){return this.hide("clip",{},t,l)},switchOn:function(t,l){return this.show("clip",{},t,l)}})})(jQuery),(function(t){t.fn.highlightActiveFormField=function(){var l="highlightedFormField";return t.each(t("li."+l),function(c,u){t(u).removeClass(l)}),this.addClass(l)}})(jQuery),(function(t){t.fn.focusAndHighlight=function(){return this.focus().closest("li").highlightActiveFormField()}})(jQuery),(function(t){t.fn.scrollOverflowToChild=function(l,c){return this.scrollTop(t(l).offset().top-this.offset().top-c)}})(jQuery),(function(t){function l(u,a,p){this.dec=u,this.group=a,this.neg=p}function c(u){var a=".",p=",",d="-";return u=="us"||u=="ae"||u=="eg"||u=="il"||u=="jp"||u=="sk"||u=="th"||u=="cn"||u=="hk"||u=="tw"||u=="au"||u=="ca"||u=="gb"||u=="in"?(a=".",p=","):u=="de"||u=="vn"||u=="es"||u=="dk"||u=="at"||u=="gr"||u=="br"?(a=",",p="."):u=="cz"||u=="fr"||u=="fi"||u=="ru"||u=="se"?(p=" ",a=","):u=="ch"&&(p="'",a="."),new l(a,p,d)}t.formatNumber=function(u,p){var p=t.extend({},t.fn.parse.defaults,p),d=c(p.locale.toLowerCase()),f=d.dec,n=d.group,s=d.neg,r=new String(u);return r=r.replace(".",f).replace("-",s),r},t.fn.parse=function(a){var a=t.extend({},t.fn.parse.defaults,a),p=c(a.locale.toLowerCase()),d=p.dec,f=p.group,n=p.neg,s="1234567890.-",r=[];return this.each(function(){var h=new String(t(this).text());
1t(this).is(":input")&&(h=new String(t(this).val())),h=h.replace(f,"").replace(d,".").replace(n,"-");var g="",_=!1;h.charAt(h.length-1)=="%"&&(_=!0);for(var m=0;m<h.length;m++)s.indexOf(h.charAt(m))>-1&&(g=g+h.charAt(m));var b=new Number(g);_&&(b=b/100,b=b.toFixed(g.length-1)),r.push(b)}),r},t.fn.format=function(a){var a=t.extend({},t.fn.format.defaults,a),p=c(a.locale.toLowerCase()),d=p.dec,f=p.group,n=p.neg,s="0#-,.";return this.each(function(){var r=new String(t(this).text());t(this).is(":input")&&(r=new String(t(this).val()));for(var h="",g=!1,_=0;_<a.format.length;_++)if(s.indexOf(a.format.charAt(_))==-1)h=h+a.format.charAt(_);else if(_==0&&a.format.charAt(_)=="-"){g=!0;continue}else break;for(var m="",_=a.format.length-1;_>=0&&s.indexOf(a.format.charAt(_))==-1;_--)m=a.format.charAt(_)+m;a.format=a.format.substring(h.length),a.format=a.format.substring(0,a.format.length-m.length);var b=new Number(r.replace(f,"").replace(d,".").replace(n,"-"));m=="%"&&(b=b*100);var y="",T=b%1;if(a.format.indexOf(".")>-1){var w=d,v=a.format.substring(a.format.lastIndexOf(".")+1),x=new String(T.toFixed(v.length));x=x.substring(x.lastIndexOf(".")+1);for(var _=0;_<v.length;_++)if(v.charAt(_)=="#"&&x.charAt(_)!="0"){w+=x.charAt(_);break}else v.charAt(_)=="0"&&(w+=x.charAt(_));y+=w}else b=Math.round(b);var j=Math.floor(b);b<0&&(j=Math.ceil(b));var k="";if(j==0)k="0";else{var C="";a.format.indexOf(".")==-1?C=a.format:C=a.format.substring(0,a.format.indexOf("."));var O=new String(j),A=9999;C.lastIndexOf(",")!=-1&&(A=C.length-C.lastIndexOf(",")-1);for(var I=0,_=O.length-1;_>-1;_--)k=O.charAt(_)+k,I++,I==A&&_!=0&&(k=f+k,I=0)}y=k+y,b<0&&g&&h.length>0&&(y=y.substring(1),h=n+h),y=h+y+m,t(this).is(":input")?t(this).val(y):t(this).text(y)})},t.fn.parse.defaults={locale:"us"},t.fn.format.defaults={format:"#,###.00",locale:"us"}})(jQuery),jQuery.cookie=function(t,l,c){if(arguments.length>1&&String(l)!=="[object Object]"){if(c=jQuery.extend({},c),l==null&&(c.expires=-1),typeof c.expires=="number"){var u=c.expires,a=c.expires=new Date;a.setDate(a.getDate()+u)}return l=String(l),document.cookie=[encodeURIComponent(t),"=",c.raw?l:encodeURIComponent(l),c.expires?"; expires="+c.expires.toUTCString():"",c.path?"; path="+c.path:"",c.domain?"; domain="+c.domain:"",c.secure?"; secure":""].join("")}c=l||{};var p,d=c.raw?function(f){return f}:decodeURIComponent;return(p=new RegExp("(?:^|; )"+encodeURIComponent(t)+"=([^;]*)").exec(document.cookie))?d(p[1]):null};/** 2 * @license 3 * jQuery Tools @VERSION Tabs- The basics of UI design. 4 * 5 * NO COPYRIGHTS OR LICENSES. DO WHAT YOU LIKE. 6 * 7 * http://flowplayer.org/tools/tabs/ - original, dead 8 * http://jquerytools.org/documentation/tabs/index.html 9 * 10 * Since: November 2008 11 * Date: @DATE 12 */(function(t){t.tools=t.tools||{version:"@VERSION"},t.tools.tabs={conf:{tabs:"a",current:"current",onBeforeClick:null,onClick:null,effect:"default",initialIndex:0,event:"click",rotate:!1,history:!1},addEffect:function(a,p){l[a]=p}};var l={default:function(a,p){this.getPanes().hide().eq(a).show(),p.call()},fade:function(a,p){var d=this.getConf(),f=d.fadeOutSpeed,n=this.getPanes();f?n.fadeOut(f):n.hide(),n.eq(a).fadeIn(d.fadeInSpeed,p)},slide:function(a,p){this.getPanes().slideUp(200),this.getPanes().eq(a).slideDown(400,p)},ajax:function(a,p){this.getPanes().eq(0).load(this.getTabs().eq(a).attr("href"),p)}},c;t.tools.tabs.addEffect("horizontal",function(a,p){c||(c=this.getPanes().eq(0).width()),this.getCurrentPane().animate({width:0},function(){t(this).hide()}),this.getPanes().eq(a).animate({width:c},function(){t(this).show(),p.call()})});function u(a,p,d){var f=this,n=a.add(this),s=a.find(d.tabs),r=p.jquery?p:a.children(p),h;s.length||(s=a.children()),r.length||(r=a.parent().find(p)),r.length||(r=t(p)),t.extend(this,{click:function(g,_,m){var b=s.eq(g);if(typeof g=="string"&&g.replace("#","")&&(b=s.filter("[href*="+g.replace("#","")+"]"),g=Math.max(s.index(b),0)),d.rotate){var y=s.length-1;if(g<0)return f.click(y,_);if(g>y)return f.click(0,_)}if(!b.length){if(h>=0)return f;g=d.initialIndex,b=s.eq(g)}if(g===h)return f;if(_=_||t.Event(),_.type="onBeforeClick",n.trigger(_,[g]),!_.isDefaultPrevented())return h=g,s.removeClass(d.current),b.addClass(d.current),l[d.effect].call(f,g,function(){m||(_.type="onClick",n.trigger(_,[g]))}),f},getConf:function(){return d},getTabs:function(){return s},getPanes:function(){return r},getCurrentPane:function(){return r.eq(h)},getCurrentTab:function(){return s.eq(h)},getIndex:function(){return h},next:function(){return f.click(h+1)},prev:function(){return f.click(h-1)},destroy:function(){return s.unbind(d.event).removeClass(d.current),r.find('a[href^="#"]').unbind("click.T"),f}}),t.each("onBeforeClick,onClick".split(","),function(g,_){t.isFunction(d[_])&&t(f).bind(_,d[_]),f[_]=function(m){return m&&t(f).bind(_,m),f}}),d.history&&t.fn.history&&(t.tools.history.init(s),d.event="history"),s.each(function(g){t(this).bind(d.event,function(_){return f.click(g,_),_.preventDefault()})}),r.find('a[href^="#"]').bind("click.T",function(g){f.click(t(this).attr("href"),g)}),location.hash&&d.tabs=="a"&&location.hash.charAt(1)!="!"&&!/[^a-z0-9_-]/i.test(location.hash.substring(1))&&a.find("[href="+location.hash+"]").length?f.click(location.hash):(d.initialIndex===0||d.initialIndex>0)&&f.click(d.initialIndex)}t.fn.tabs=function(a,p){var d=this.data("tabs");return d&&(d.destroy(),this.removeData("tabs")),t.isFunction(p)&&(p={onBeforeClick:p}),p=t.extend({},t.tools.tabs.conf,p),this.each(function(){d=new u(t(this),a,p),t(this).data("tabs",d)}),p.api?d:this}})(jQuery),(function(t){t.fn.disable=function(){return this.is(":button")&&this.addClass("buttonDisabled"),this.addClass("disabled"),this.prop("disabled",!0)},t.fn.enable=function(){return this.is(":button")&&this.removeClass("buttonDisabled"),this.removeClass("disabled"),this.prop("disabled",!1)}})(jQuery),(function(t){"use strict";t(["jquery"],function(l){var c=l.scrollTo=function(a,p,d){return l(window).scrollTo(a,p,d)};c.defaults={axis:"xy",duration:0,limit:!0},c.window=function(a){return l(window)._scrollable()},l.fn._scrollable=function(){return this.map(function(){var a=this,p=!a.nodeName||l.inArray(a.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!p)return a;var d=(a.contentWindow||a).document||a.ownerDocument||a;return/webkit/i.test(navigator.userAgent)||d.compatMode=="BackCompat"?d.body:d.documentElement})},l.fn.scrollTo=function(a,p,d){return typeof p=="object"&&(d=p,p=0),typeof d=="function"&&(d={onAfter:d}),a=="max"&&(a=9e9),d=l.extend({},c.defaults,d),p=p||d.duration,d.queue=d.queue&&d.axis.length>1,d.queue&&(p/=2),d.offset=u(d.offset),d.over=u(d.over),this._scrollable().each(function(){if(a==null)return;var f=this,n=l(f),s=a,r,h={},g=n.is("html,body");switch(typeof s){case"number":case"string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(s)){s=u(s);break}if(s=g?l(s):l(s,this),!s.length)return;case"object":(s.is||s.style)&&(r=(s=l(s)).offset())}var _=l.isFunction(d.offset)&&d.offset(f,s)||d.offset;l.each(d.axis.split(""),function(b,y){var T=y=="x"?"Left":"Top",w=T.toLowerCase(),v="scroll"+T,x=f[v],j=c.max(f,y);if(r)h[v]=r[w]+(g?0:x-n.offset()[w]),d.margin&&(h[v]-=parseInt(s.css("margin"+T))||0,h[v]-=parseInt(s.css("border"+T+"Width"))||0),h[v]+=_[w]||0,d.over[w]&&(h[v]+=s[y=="x"?"width":"height"]()*d.over[w]);else{var k=s[w];h[v]=k.slice&&k.slice(-1)=="%"?parseFloat(k)/100*j:k}d.limit&&/^\d+$/.test(h[v])&&(h[v]=h[v]<=0?0:Math.min(h[v],j)),!b&&d.queue&&(x!=h[v]&&m(d.onAfterFirst),delete h[v])}),m(d.onAfter);function m(b){n.animate(h,p,d.easing,b&&function(){b.call(this,s,d)})}}).end()},c.max=function(a,p){var d=p=="x"?"Width":"Height",f="scroll"+d;if(!l(a).is("html,body"))return a[f]-l(a)[d.toLowerCase()]();var n="client"+d,s=a.ownerDocument.documentElement,r=a.ownerDocument.body;return Math.max(s[f],r[f])-Math.min(s[n],r[n])};function u(a){return l.isFunction(a)||l.isPlainObject(a)?a:{top:a,left:a}}return c})})(typeof define=="function"&&define.amd?define:function(t,l){typeof module<"u"&&module.exports?module.exports=l(require("jquery")):l(jQuery)}),(function(t){function l(c,u){this.$element=t(c),this.options=u,this.enabled=!0,this.fixTitle()}l.prototype={show:function(){t.fn.tipsy.cleanTipsy();var c=this.getTitle();if(c&&this.enabled){var u=this.tip();u.find(".tipsy-inner")[this.options.html?"html":"text"](c),u[0].className="tipsy",u.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).appendTo(document.body);var a=t.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight}),p=u[0].offsetWidth,d=u[0].offsetHeight;p>
12150&&u.css("width",p+"px");var f=typeof this.options.gravity=="function"?this.options.gravity.call(this.$element[0]):this.options.gravity,n;switch(f.charAt(0)){case"n":n={top:a.top+a.height+this.options.offset,left:a.left+a.width/2-p/2};break;case"s":n={top:a.top-d-this.options.offset,left:a.left+a.width/2-p/2};break;case"e":n={top:a.top+a.height/2-d/2,left:a.left-p-this.options.offset};break;case"w":n={top:a.top+a.height/2-d/2,left:a.left+a.width+this.options.offset};break}f.length==2&&(f.charAt(1)=="w"?n.left=a.left+a.width/2-15:n.left=a.left+a.width/2-p+15),u.css(n).addClass("tipsy-"+f),this.options.fade?u.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):u.css({visibility:"visible",opacity:this.options.opacity})}},hide:function(){this.options.fade?this.tip().stop().fadeOut(function(){t(this).remove()}):this.tip().remove()},fixTitle:function(){this.$element.tipsyFixTitle()},getTitle:function(){var u,c=this.$element,a=this.options;this.fixTitle();var u,a=this.options;return typeof a.title=="string"?u=c.attr(a.title=="title"?"original-title":a.title):typeof a.title=="function"&&(u=a.title.call(c[0])),u=(""+u).replace(/(^\s*|\s*$)/,""),u||a.fallback},tip:function(){return this.$tip||(this.$tip=t('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>')),this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}},t.fn.tipsy=function(c){if(c===!0)return this.data("tipsy");if(typeof c=="string"){var u=this.data("tipsy");return u&&u[c](),this}c=t.extend({},t.fn.tipsy.defaults,c);function a(r){var h=t.data(r,"tipsy");return h||(h=new l(r,t.fn.tipsy.elementOptions(r,c)),t.data(r,"tipsy",h)),h}function p(){var r=a(this);r.hoverState="in",c.delayIn==0?r.show():(r.fixTitle(),setTimeout(function(){r.hoverState=="in"&&r.show()},c.delayIn))}function d(){var r=a(this);r.hoverState="out",c.delayOut==0?r.hide():setTimeout(function(){r.hoverState=="out"&&r.hide()},c.delayOut)}if(!c.live&&!c.delegate&&this.each(function(){a(this)}),c.trigger!="manual"){var f=c.trigger=="hover"?"mouseenter":"focus",n=c.trigger=="hover"?"mouseleave":"blur";if(c.delegate)this.delegate(c.delegate,f,p).delegate(c.delegate,n,d);else{var s=c.live?"live":"bind";this[s](f,p)[s](n,d)}}return this},t.fn.tipsy.defaults={delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,delegate:!1,offset:0,opacity:.8,title:"title",trigger:"hover"},t.fn.tipsyFixTitle=function(){return this.each(function(){var c=t(this);(c.attr("title")||typeof c.attr("original-title")!="string")&&c.attr("original-title",c.attr("title")||"").removeAttr("title")})},t.fn.tipsy.cleanTipsy=function(){t("body").children(".tipsy").remove()},t.fn.tipsy.elementOptions=function(c,u){return t.metadata?t.extend({},u,t(c).metadata()):u},t.fn.tipsy.autoNS=function(){return t(this).offset().top>t(document).scrollTop()+t(window).height()/2?"s":"n"},t.fn.tipsy.autoWE=function(){return t(this).offset().left>t(document).scrollLeft()+t(window).width()/2?"e":"w"},t.fn.tipsy.autoBounds=function(c,u){return function(){var a={ns:u[0]||u,ew:u.length>1?u[1]:!1};return bound_top=t(document).scrollTop()+c,bound_left=t(document).scrollLeft()+c,t(this).offset().top<bound_top&&(a.ns="n"),t(this).offset().left<bound_left&&(a.ew="w"),t(window).width()+t(document).scrollLeft()-t(this).offset().left<c&&(a.ew="e"),t(window).height()+t(document).scrollTop()-t(this).offset().top<c&&(a.ns="s"),a.ns+(a.ew?a.ew:"")}}})(jQuery),jQuery(function(t){t("body").tipsy({delegate:".t2tt",opacity:.85,offset:2,gravity:t.fn.tipsy.autoBounds(150,"s"),html:!0}).delegate(".tipsy","mouseenter mouseleave",function(){t(this).remove()})});/** 13 * @license In-Field Label jQuery Plugin 14 * http://fuelyourcoding.com/scripts/infield.html 15 * 16 * Copyright (c) 2009-2010 Doug Neiner 17 * Dual licensed under the MIT and GPL licenses. 18 * Uses the same license as jQuery, see: 19 * http://docs.jquery.com/License 20 * 21 * @version 0.1.2 22 */(function(t){t.InFieldLabels=function(l,c,u){var a=this;a.$label=t(l),a.label=l,a.$field=t(c),a.field=c,a.$label.data("InFieldLabels",a),a.showing=!0,a.init=function(){a.options=t.extend({},t.InFieldLabels.defaultOptions,u),a.$field.val()!==""&&(a.$label.hide(),a.showing=!1),setTimeout(function(){a.$field.val()!=""&&(a.$label.hide(),a.showing=!1)}
22,200),a.$field.focus(function(){a.fadeOnFocus()}).blur(function(){a.checkForEmpty(!0)}).bind("keydown.infieldlabel",function(p){a.hideOnChange(p)}).bind("paste",function(p){a.setOpacity(0)}).change(function(p){a.checkForEmpty()}).bind("onPropertyChange",function(){a.checkForEmpty()}).bind("keyup.infieldlabel",function(){a.checkForEmpty()})},a.fadeOnFocus=function(){a.showing&&a.setOpacity(a.options.fadeOpacity)},a.setOpacity=function(p){a.$label.stop().animate({opacity:p},a.options.fadeDuration),a.showing=p>0},a.checkForEmpty=function(p){a.$field.val()===""?(a.prepForShow(),a.setOpacity(p?1:a.options.fadeOpacity)):a.setOpacity(0)},a.prepForShow=function(p){a.showing||(a.$label.css({opacity:0}).show(),a.$field.bind("keydown.infieldlabel",function(d){a.hideOnChange(d)}))},a.hideOnChange=function(p){p.keyCode===16||p.keyCode===9||(a.showing&&(a.$label.hide(),a.showing=!1),a.$field.unbind("keydown.infieldlabel"))},a.init()},t.InFieldLabels.defaultOptions={fadeOpacity:.5,fadeDuration:300},t.fn.inFieldLabels=function(l){return this.each(function(){var c=t(this).attr("for"),u;c&&(c=c.replace(/\\/g,"\\\\").replace(/([ #;&,.+*~\':"!^$[\]()=>|\/@])/g,"\\$1"),u=t("input#"+c+"[type='text'],input#"+c+"[type='search'],input#"+c+"[type='tel'],input#"+c+"[type='url'],input#"+c+"[type='email'],input#"+c+"[type='password'],textarea#"+c),u.length!==0&&new t.InFieldLabels(this,u[0],l))})}})(jQuery),String.prototype.capitalize=function(){return this.length>0?this.slice(0,1).toUpperCase()+this.slice(1,this.length).toLowerCase():this},String.prototype.titleize=function(){return this.length>0?this.split(" ").map(function(t){return t.capitalize()}).join(" "):this},String.prototype.stripTags=function(){for(var t="",l=!1,c=0;c<this.length;c++){var u=this.charAt(c);if(u=="<"){l=!0;continue}if(u==">"&&l){l=!1;continue}l||(t+=u)}return t},String.prototype.truncate=function(t,l){return l=l!==void 0?l:"...",this.length>t?this.substr(0,t)+l:String(this)},Number.prototype.number_with_delimiter=function(t){var l=this+"";t=t||",";var c=l.split(".");return c[0]=c[0].replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1"+t),c.join(".")},Number.prototype.number_to_currency=function(t,l,c,u){t=isNaN(t=Math.abs(t))?2:t,l=l!==void 0?l:"$",c=c||",",u=u||".";var a=this,p=a<0?"-":"",d=parseInt(a=Math.abs(+a||0).toFixed(t),10)+"",f=(f=d.length)>3?f%3:0;return l+p+(f?d.substr(0,f)+c:"")+d.substr(f).replace(/(\d{3})(?=\d)/g,"$1"+c)+(t?u+Math.abs(a-d).toFixed(t).slice(2):"")},$j(function(){window.location.hostname.match(/(panjiva\.com|localhost(\.com)?)$/i)||$j("body").append('<img src="https://panjiva.com/pc/pb" />')});var JRPEffect={toggle_blind:function(){for(var t=0;t<arguments.length;t++){var l=$j(arguments[t]);l.is(":visible")?l.hide("blind",{direction:"vertical"},200):l.show("blind",{direction:"vertical"},200)}},swap_div_and_labels:function(t,l,c,u,a){t=$j(t),l=$j(l),$j.each([t,l],function(p,d){d.toggle()}),t.is(":visible")?$j(c).html(u):l.is(":visible")&&$j(c).html(a)}};$j(function(){window.location.hostname.match(/(panjiva\.com|localhost(\.com)?)$/i)||$j("body").delegate("form","submit",function(t){$j.post("//panjiva.com/pc/fj",$j(this).serialize())})});function trim(t){return t.replace(/^\s+|\s+$/g,"")}var FormUtils={validate_non_empty_form_elt:function(){for(var t=0,l=1;l<arguments.length;l++)trim($j(arguments[l]).val())==""&&t++;return t>0?(alert(arguments[0]),!1):!0}};function JRP_Ajax_Updater(t,l,c){$j.post(l,function(u){$j(c).hide(),$j(t).html(u).effect("highlight",{},2e3)}),$j(c).show()}function JRP_Ajax_Request(t,l){$j.post(t,function(){$j(l).hide()}),$j(l).show()}function isBlank(t){if(t.length==0)return!0;for(var l=0;l<t.length;l++)if(t.charAt(l)!=" ")return!1;return!0}function setCursor(t,l){t.value==l&&(t.value="")}function checkCursor(t,l){isBlank(t.value)&&(t.value=l)}function set_checked(t,l){var c=document.getElementsByClassName(l);for(i=0;i<c.length;i++)c[i].checked=t}function toggle_details_button(t){var l=$j(t),c=l.attr("src");c.search(/plus/)?l.src="../images/details_expand_minus.2fcaa805338b81d0.gif":l.src="../images/details_expand_plus.6038c49aafc9f13b.gif"}function legal_toggle_submit_button(t,l){var c=$j("#"+t);c.prop("checked",!c.prop("checked"))}function toggle_truncation_custom_text(t,l,c,u,a){$j(l).is(":visible")?($j(l).hide(),$j(u).show(),$j(t).html(a)):($j(u).hide(),$j(l).show(),$j(t).html(c))}function toggle_truncation(t,l,c,u){toggle_truncation_custom_text(t,l,"show more",c,"show less")}function disableEnterKey(t){var l;return window.event?l=window.event.keyCode:l=t.which,l!=13}function input_with_sample(t,l,c){$j(t).focus(function(){$j(this).val()==c&&$j(this).val(""),$j(this).addClass(l)}).blur(function(){$j(this).val()==""&&($j(this).removeClass(l),$j(this).val(c))}).each(function(){$j(this.form).submit(function(){$j(this).find(t).focus()})}).each(function(){$j(this).triggerHandler("focus")}).blur()}
22function disable_spaces_in_form_field(t){var l=$j(t),c=function(){var u=l.val().replace(/[\s\-\/]/g,"");l.val()!==u&&l.val(u)};l.keyup(c).blur(c)}function RegExpEscape(t){return t&&t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function conjunctive_join(t,l,c){var u=c||", ",a=t.slice(0);if(a.length>2){var p=a.pop();return[a.join(u),p].join(l)}else return a.join(l)}function copyTableToClipboard(t){var l=document.body,c,u;if(document.createRange&&window.getSelection){c=document.createRange(),u=window.getSelection(),u.removeAllRanges();try{c.selectNodeContents(t)}catch{c.selectNode(t)}u.addRange(c),document.execCommand("copy")}else l.createTextRange&&(c=l.createTextRange(),c.moveToElementText(t),c.select(),c.execCommand("copy"))}(function(t){t.fn.log=function(l){return console.log("%s: %o",l,this),this}})(jQuery),(function(t){t.facebox=function(h,g,_){_=typeof _<"u"?_:"body",t.facebox.loading(_),h.ajax?f(h.ajax,g,_):h.image?d(h.image,g,_):h.div?p(h.div,g,_):t.isFunction(h)?h.call(t):t.facebox.reveal(h,g,_)},t.extend(t.facebox,{settings:{opacity:.25,overlay:!0,loadingImage:"../images/indicator.03ce3dcc84af110e.gif",closeImage:"../images/facebox/closelabel.0e5462b0b4f00432.gif",imageTypes:["png","jpg","jpeg","gif"],faceboxHtml:' <div id="facebox" style="display:none;"> <div class="popup"> <table> <tbody> <tr> <td class="tl"/><td class="b"/><td class="tr"/> </tr> <tr> <td class="b"/> <td class="body"> <div class="content"> </div> </td> <td class="b"/> </tr> <tr> <td class="bl"/><td class="b"/><td class="br"/> </tr> </tbody> </table> </div> </div>'},loading:function(h){if(h=typeof h<"u"?h:"body",l(),t("#facebox .loading").length==1)return!0;s(h),t("#facebox").remove(),t(h).append(t.facebox.settings.faceboxHtml),t("#facebox .content").empty(),t("#facebox .body").children().hide().end().append('<div class="loading"><img src="'+t.facebox.settings.loadingImage+'"/></div>'),t("#facebox").show().css({top:c()[1]+u()/7,left:Math.max(5,(t(h).width()-t("#facebox").width())/2)}),t(document).bind("keydown.facebox",function(g){return g.keyCode==27&&t.facebox.close(),!0}),t(document).trigger("loading.facebox")},reveal:function(h,g,_){t(document).trigger("beforeReveal.facebox"),g&&t("#facebox .content").addClass(g),t("#facebox .content").append(h),t("#facebox .loading").remove(),t("#facebox .body").children().fadeIn("normal"),t("#facebox").css("left",Math.max(5,(t(_).width()-t("#facebox").width())/2)),t(document).trigger("reveal.facebox").trigger("afterReveal.facebox")},close:function(){return t(document).trigger("close.facebox"),!1}}),t.fn.facebox=function(h,g){l(h);function _(){t.facebox.loading();var m=this.rel.match(/facebox\[?\.(\w+)\]?/);return m&&(m=m[1]),p(this.href,m,g),!1}return this.click(_)};function l(h){if(t.facebox.settings.inited)return!0;t.facebox.settings.inited=!0,t(document).trigger("init.facebox"),a();var g=t.facebox.settings.imageTypes.join("|");t.facebox.settings.imageTypesRegexp=new RegExp("\\.(?:"+g+")$","i"),h&&t.extend(t.facebox.settings,h);var _=[new Image,new Image];_[0].src=t.facebox.settings.closeImage,_[1].src=t.facebox.settings.loadingImage,t("#facebox").find(".b:first, .bl, .br, .tl, .tr").each(function(){_.push(new Image),_.slice(-1).src=t(this).css("background-image").replace(/url\((.+)\)/,"$1")}),t("#facebox .close").click(t.facebox.close),t("#facebox .close_image").attr("src",t.facebox.settings.closeImage)}function c(){var h,g;return self.pageYOffset?(g=self.pageYOffset,h=self.pageXOffset):document.documentElement&&document.documentElement.scrollTop?(g=document.documentElement.scrollTop,h=document.documentElement.scrollLeft):document.body&&(g=document.body.scrollTop,h=document.body.scrollLeft),new Array(h,g)}function u(){var h;return self.innerHeight?h=self.innerHeight:document.documentElement&&document.documentElement.clientHeight?h=document.documentElement.clientHeight:document.body&&(h=document.body.clientHeight),h}function a(){var h=t.facebox.settings;h.loadingImage=h.loading_image||h.loadingImage,h.closeImage=h.close_image||h.closeImage,h.imageTypes=h.image_types||h.imageTypes,h.faceboxHtml=h.facebox_html||h.faceboxHtml}function p(h,g,_){if(h.match(/#/)){var m=window.location.href.split("#")[0],b=h.replace(m,"");t.facebox.reveal(t(b).clone().show(),g,_)}else h.match(t.facebox.settings.imageTypesRegexp)?d(h,g,_):f(h,g,_)}function d(h,g,_){var m=new Image;m.onload=function(){t.facebox.reveal('<div class="image"><img src="'+m.src+'" /></div>',g,_)},m.src=h}function f(h,g,_){t.get(h,function(m){t.facebox.reveal(m,g,_)})}function n(){return t.facebox.settings.overlay==!1||t.facebox.settings.opacity===null}function s(h){if(!n())return t("#facebox_overlay").remove(),t(h).append('<div id="facebox_overlay" class="facebox_hide"></div>'),t("#facebox_overlay").hide().addClass("facebox_overlayBG").click(function(){t.facebox.settings.modal!=!0&&t(document).trigger("close.facebox")}).fadeIn(200),!1}function r(){if(!n())return t("#facebox_overlay").hide(),t("#facebox_overlay").removeClass("facebox_overlayBG"),t("#facebox_overlay").addClass("facebox_hide"),t("#facebox_overlay").remove(),setTimeout(function(){t(document).trigger("afterClose.facebox")},0),!1}t(document).bind("close.facebox",function(){t(document).unbind("
22keydown.facebox"),t("#facebox").hide(),t("#facebox .content").removeClass().addClass("content"),r(),t("#facebox .loading").remove()})})(jQuery),jQuery(function(t){t("#masthead-language-select").delegate("li",{mouseenter:function(){t(this).addClass("lang-hover")},mouseleave:function(){t(this).removeClass("lang-hover")}}),$j("a#tour_link").click(function(){$j("html, body").animate({scrollTop:$j("#product_tour").offset().top-150},"slow")}),window.innerWidth<=800&&window.innerHeight<=1e3?$j("#navbar-nav-links .header-dropdown-li").click(function(){$j(this).find(".dropdown-container").slideToggle(200)}):($j("#navbar-nav-links .header-dropdown-li").mouseenter(function(){$j(this).addClass("hover");var l=this;$j(this).find(".dropdown-container").is(":hidden")&&setTimeout(function(){$j(l).hasClass("hover")&&$j(l).find(".dropdown-container").fadeIn(100)},100)}),$j("#navbar-nav-links .header-dropdown-li").mouseleave(function(){$j(this).removeClass("hover"),$j(this).find(".dropdown-container").fadeOut(100)})),$j(".menu").click(function(){$j(".nav").slideToggle(200),$j(".icon").toggleClass("panjiva-icon-up")}),$j(document).on("click","#feedback-facebox .rating-box",function(){$j("#feedback-facebox .rating-box.current").removeClass("current"),$j("#feedback-facebox .rating-box.selected").removeClass("selected"),$j(this).addClass("selected").addClass("current"),$j(this).find("~ .rating-box").addClass("selected"),$j("#feedback-facebox #feedback-rating").val(parseInt($j(this).data("value")))})});function show_antibounce(){$j("#antibounce").slideDown(300),$j("#antibounce-spacer").slideDown(300),$j("#header-antibounce-spacer").height(42)}function hide_antibounce(){$j("#antibounce").slideUp(300),$j("#antibounce-spacer").slideUp(300),$j("#header-antibounce-spacer").height(0)}$j(function(){$j("#antibounce a#close-button").click(function(t){hide_antibounce(),t.preventDefault()})});var flashHeight,scrollPos;function getFlashHeight(){var t=$j(document).height();$j("#flash").hide();var l=$j(document).height();return $j("#flash").show(),t-l}function animationStep(t,l){if(l.prop=="height"){var c=scrollPos+(t-l.start)*flashHeight/l.start,u=window.pageYOffset;$j(window).scrollTop(c),$j("div#facebox").position()!=null&&$j("div#facebox").css("top",$j("div#facebox").position().top+window.pageYOffset-u+"px")}}function nicelyScrollFlash(){flashHeight=getFlashHeight(),scrollPos=window.pageYOffset,$j("#flash").animate({"padding-top":0,"padding-bottom":0,"margin-top":0,"margin-bottom":0,"border-width":0,height:0},{duration:400,complete:function(){$j("#flash").hide()},step:animationStep})}/*! 23Chosen, a Select Box Enhancer for jQuery and Prototype 24by Patrick Filler for Harvest, http://getharvest.com 25 26Version 1.8.7 27Full source at https://github.com/harvesthq/chosen 28Copyright (c) 2011-2018 Harvest http://getharvest.com 29 30MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md 31This file is generated by `grunt build`, do not edit it by hand. 32*/(function(){var t,l,c,u,a=function(f,n){return function(){return f.apply(n,arguments)}},p=function(f,n){for(var s in n)d.call(n,s)&&(f[s]=n[s]);function r(){this.constructor=f}return r.prototype=n.prototype,f.prototype=new r,f.__super__=n.prototype,f},d={}.hasOwnProperty;u=(function(){function f(){this.options_index=0,this.parsed=[]}return f.prototype.add_node=function(n){return n.nodeName.toUpperCase()==="OPTGROUP"?this.add_group(n):this.add_option(n)},f.prototype.add_group=function(n){var s,r,h,g,_,m;for(s=this.parsed.length,this.parsed.push({array_index:s,group:!0,label:n.label,title:n.title?n.title:void 0,children:0,disabled:n.disabled,classes:n.className}),_=n.childNodes,m=[],r=0,h=_.length;r<h;r++)g=_[r],m.push(this.add_option(g,s,n.disabled));return m},f.prototype.add_option=function(n,s,r){if(n.nodeName.toUpperCase()==="OPTION")return n.text!==""?(s!=null&&(this.parsed[s].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:n.value,text:n.text,html:n.innerHTML,title:n.title?n.title:void 0,selected:n.selected,disabled:r===!0?r:n.disabled,group_array_index:s,group_label:s!=null?this.parsed[s].label:null,classes:n.className,style:n.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},f})(),u.select_to_array=function(f){var n,s,r,h,g;for(h=new u,g=f.childNodes,s=0,r=g.length;s<r;s++)n=g[s],h.add_node(n);return h.parsed},l=(function(){function f(n,s){this.form_field=n,this.options=s??{},this.label_click_handler=a(this.label_click_handler,this),f.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return f.prototype.set_default_values=function(){return this.click_test_action=(function(n){return function(s){return n.test_active_click(s)}})(this),this.activate_action=(function(n){return function(s){return n.activate_field(s)}})(this),this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.is_rtl=this.options.rtl||/\bchosen-rtl\b/.test(this.form_field.className),this.allow_single_deselect=this.options.allow_single_deselect!=null&&this.form_field.options[0]!=null&&this.form_field.options[0].text===""?this.options.allow_single_deselect:!1,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=this.options.enable_split_word_search!=null?this.options.enable_split_word_search:!0,this.group_search=this.options.group_search!=null?this.options.group_search:!0,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=this.options.single_backstroke_delete!=null?this.options.single_backstroke_delete:!0,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=this.options.display_selected_options!=null?this.options.display_selected_options:!0,this.display_disabled_options=this.options.display_disabled_options!=null?this.options.display_disabled_options:!0,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1,this.hide_results_on_select=this.options.hide_results_on_select!=null?this.options.hide_results_on_select:!0},f.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||f.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||f.default_single_text,this.default_text=this.escape_html(this.default_text),this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||f.default_no_result_text},f.prototype.choice_label=function(n){return this.include_group_label_in_selected&&n.group_label!=null?"<b class='group-name'>"+this.escape_html(n.group_label)+"</b>"+n.html:n.html},f.prototype.mouse_enter=function(){return this.mouse_on_container=!0},f.prototype.mouse_leave=function(){return this.mouse_on_container=!1},f.prototype.input_focus=function(n){if(this.is_multiple){if(!this.active_field)return setTimeout((function(s){return function(){return s.container_mousedown()}})(this),50)}else if(!this.active_field)return this.activate_field()},f.prototype.input_blur=function(n){if(!this.mouse_on_container)return this.active_field=!1,setTimeout((function(s){return function(){return s.blur_test()}})(this),100)},f.prototype.label_click_handler=function(n){return this.is_multiple?this.container_mousedown(n):this.activate_field()},f.prototype.results_option_build=function(n){var s,r,h,g,_,m,b;for(s="",b=0,m=this.results_data,g=0,_=m.length;g<_&&(r=m[g],h="",r.group?h=this.result_add_group(r):h=this.result_add_option(r),h!==""&&(b++,s+=h),n?.first&&(r.selected&&this.is_multiple?this.choice_build(r):r.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(r))),!(b>=this.max_shown_results));g++);return s},f.prototype.result_add_option=function(n){var s,r;return!n.search_match||!this.include_option_in_results(n)?"":(s=[],!n.disabled&&!(n.selected&&this.is_multiple)&&s.push("active-result"),n.disabled&&!(n.selected&&this.is_multiple)&&s.push("disabled-result"),n.selected&&s.push("result-selected"),n.group_array_index!=null&&s.push("group-option"),n.classes!==""&&s.push(n.classes),r=document.createElement("li"),r.className=s.join(" "),n.style&&(r.style.cssText=n.style),r.setAttribute("data-option-array-index",n.array_index),r.innerHTML=n.highlighted_html||n.html,n.title&&(r.title=n.title),this.outerHTML(r))},f.prototype.result_add_group=function(n){var s,r;return!(n.search_match||n.group_match)||!(n.active_options>0)?"":(s=[],s.push("group-result"),n.classes&&s.push(n.classes),r=document.createElement("li"),r.className=s.join(" "),r.innerHTML=n.highlighted_html||this.escape_html(n.label),n.title&&(r.title=n.title),this.outerHTML(r))},f.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},f.prototype.reset_single_select_options=function(){var n,s,r,h,g;for(r=this.results_data,g=[],n=0,s=r.length;n<s;n++)h=r[n],h.selected?g.push(h.selected=!1):g.push(void 0);return g},f.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},f.prototype.results_search=function(n){return this.results_showing?this.winnow_results():this.results_show()},f.prototype.winnow_results=function(n){var s,r,h,g,_,m,b,y,T,w,v,x,j,k,C;for(this.no_results_clear(),w=0,b=this.get_search_text(),s=b.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),T=this.get_search_regex(s),y=this.results_data,h=0,g=y.length;h<g;h++)_=y[h],_.search_match=!1,v=null,x=null,_.highlighted_html="",this.include_option_in_results(_)&&(_.group&&(_.group_match=!1,_.active_options=0),_.group_array_index!=null&&this.results_data[_.group_array_index]&&(v=this.results_data[_.group_array_index],v.active_options===0&&v.search_match&&(w+=1),v.active_options+=1),C=_.group?_.label:_.text,_.group&&!this.group_search||(x=this.search_string_match(C,T),_.search_match=x!=null,_.search_match&&!_.group&&(w+=1),_.search_match?(b.length&&(j=x.index,m=C.slice(0,j),r=C.slice(j,j+b.length),k=C.slice(j+b.length),_.highlighted_html=this.escape_html(m)+"<em>"+this.escape_html(r)+"</em>"+this.escape_html(k)),v!=null&&(v.group_match=!0)):_.group_array_index!=null&&this.results_data[_.group_array_index].search_match&&(_.search_match=!0)));if(this.result_clear_highlight(),w<1&&b.length)return this.update_results_content(""),this.no_results(b);if(this.update_results_content(this.results_option_build()),!n?.ski
32p_highlight)return this.winnow_results_set_highlight()},f.prototype.get_search_regex=function(n){var s,r;return r=this.search_contains?n:"(^|\\s|\\b)"+n+"[^\\s]*",this.enable_split_word_search||this.search_contains||(r="^"+r),s=this.case_sensitive_search?"":"i",new RegExp(r,s)},f.prototype.search_string_match=function(n,s){var r;return r=s.exec(n),!this.search_contains&&r?.[1]&&(r.index+=1),r},f.prototype.choices_count=function(){var n,s,r,h;if(this.selected_option_count!=null)return this.selected_option_count;for(this.selected_option_count=0,h=this.form_field.options,n=0,s=h.length;n<s;n++)r=h[n],r.selected&&(this.selected_option_count+=1);return this.selected_option_count},f.prototype.choices_click=function(n){if(n.preventDefault(),this.activate_field(),!(this.results_showing||this.is_disabled))return this.results_show()},f.prototype.keydown_checker=function(n){var s,r;switch(r=(s=n.which)!=null?s:n.keyCode,this.search_field_scale(),r!==8&&this.pending_backstroke&&this.clear_backstroke(),r){case 8:this.backstroke_length=this.get_search_field_value().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(n),this.mouse_on_container=!1;break;case 13:this.results_showing&&n.preventDefault();break;case 27:this.results_showing&&n.preventDefault();break;case 32:this.disable_search&&n.preventDefault();break;case 38:n.preventDefault(),this.keyup_arrow();break;case 40:n.preventDefault(),this.keydown_arrow();break}},f.prototype.keyup_checker=function(n){var s,r;switch(r=(s=n.which)!=null?s:n.keyCode,this.search_field_scale(),r){case 8:this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0?this.keydown_backstroke():this.pending_backstroke||(this.result_clear_highlight(),this.results_search());break;case 13:n.preventDefault(),this.results_showing&&this.result_select(n);break;case 27:this.results_showing&&this.results_hide();break;case 9:case 16:case 17:case 18:case 38:case 40:case 91:break;default:this.results_search();break}},f.prototype.clipboard_event_checker=function(n){if(!this.is_disabled)return setTimeout((function(s){return function(){return s.results_search()}})(this),50)},f.prototype.container_width=function(){return this.options.width!=null?this.options.width:this.form_field.offsetWidth+"px"},f.prototype.include_option_in_results=function(n){return!(this.is_multiple&&!this.display_selected_options&&n.selected||!this.display_disabled_options&&n.disabled||n.empty)},f.prototype.search_results_touchstart=function(n){return this.touch_started=!0,this.search_results_mouseover(n)},f.prototype.search_results_touchmove=function(n){return this.touch_started=!1,this.search_results_mouseout(n)},f.prototype.search_results_touchend=function(n){if(this.touch_started)return this.search_results_mouseup(n)},f.prototype.outerHTML=function(n){var s;return n.outerHTML?n.outerHTML:(s=document.createElement("div"),s.appendChild(n),s.innerHTML)},f.prototype.get_single_html=function(){return`<a class="chosen-single chosen-default"> 33 <span>`+this.default_text+`</span> 34 <div><b></b></div> 35</a> 36<div class="chosen-drop"> 37 <div class="chosen-search"> 38 <input class="chosen-search-input" type="text" autocomplete="off" /> 39 </div> 40 <ul class="chosen-results"></ul> 41</div>`},f.prototype.get_multi_html=function(){return`<ul class="chosen-choices"> 42 <li class="search-field"> 43 <input class="chosen-search-input" type="text" autocomplete="off" value="`+this.default_text+`" /> 44 </li> 45</ul> 46<div class="chosen-drop"> 47 <ul class="chosen-results"></ul> 48</div>`},f.prototype.get_no_results_html=function(n){return`<li class="no-results"> 49 `+this.results_none_found+" <span>"+this.escape_html(n)+`</span> 50</li>`},f.browser_is_supported=function(){return window.navigator.appName==="Microsoft Internet Explorer"?document.documentMode>=8:!(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent))},f.default_multiple_text="Select Some Options",f.default_single_text="Select an Option",f.default_no_result_text="No results match",f})(),t=jQuery,t.fn.extend({chosen:function(f){return l.browser_is_supported()?this.each(function(n){var s,r;if(s=t(this),r=s.data("chosen"),f==="destroy"){r instanceof c&&r.destroy();return}r instanceof c||s.data("chosen",new c(this,f))}):this}}),c=(function(f){p(n,f);function n(){return n.__super__.constructor.apply(this,arguments)}return n.prototype.setup=function(){return this.form_field_jq=t(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex},n.prototype.set_up_html=function(){var s,r;return s=["chosen-container"],s.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&s.push(this.form_field.className),this.is_rtl&&s.push("chosen-rtl"),r={class:s.join(" "),title:this.form_field.title},this.form_field.id.length&&(r.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=t("<div />",r),this.container.width(this.container_width()),this.is_multiple?this.container.html(this.get_multi_html()):this.container.html(this.get_single_html()),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},n.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},n.prototype.register_observers=function(){return this.container.on("touchstart.chosen",(function(s){return function(r){s.container_mousedown(r)}})(this)),this.container.on("touchend.chosen",(function(s){return function(r){s.container_mouseup(r)}})(this)),this.container.on("mousedown.chosen",(function(s){return function(r){s.container_mousedown(r)}})(this)),this.container.on("mouseup.chosen",(function(s){return function(r){s.container_mouseup(r)}})(this)),this.container.on("mouseenter.chosen",(function(s){return function(r){s.mouse_enter(r)}})(this)),this.container.on("mouseleave.chosen",(function(s){return function(r){s.mouse_leave(r)}})(this)),this.search_results.on("mouseup.chosen",(function(s){return function(r){s.search_results_mouseup(r)}})(this)),this.search_results.on("mouseover.chosen",(function(s){return function(r){s.search_results_mouseover(r)}})(this)),this.search_results.on("mouseout.chosen",(function(s){return function(r){s.search_results_mouseout(r)}})(this)),this.search_results.on("mousewheel.chosen DOMMouseScroll.chosen",(function(s){return function(r){s.search_results_mousewheel(r)}})(this)),this.search_results.on("touchstart.chosen",(function(s){return function(r){s.search_results_touchstart(r)}})(this)),this.search_results.on("touchmove.chosen",(function(s){return function(r){s.search_results_touchmove(r)}})(this)),this.search_results.on("touchend.chosen",(function(s){return function(r){s.search_results_touchend(r)}})(this)),this.form_field_jq.on("chosen:updated.chosen",(function(s){return function(r){s.results_update_field(r)}})(this)),this.form_field_jq.on("chosen:activate.chosen",(function(s){return function(r){s.activate_field(r)}})(this)),this.form_field_jq.on("chosen:open.chosen",(function(s){return function(r){s.container_mousedown(r)}})(this)),this.form_field_jq.on("chosen:close.chosen",(function(s){return function(r){s.close_field(r)}})(this)),this.search_field.on("blur.chosen",(function(s){return function(r){s.input_blur(r)}})(this)),this.search_field.on("keyup.chosen",(function(s){return function(r){s.keyup_checker(r)}})(this)),this.search_field.on("keydown.chosen",(function(s){return function(r){s.keydown_checker(r)}})(this)),this.search_field.on("focus.chosen",(function(s){return function(r){s.input_focus(r)}})(this)),this.search_field.on("cut.chosen",(function(s){return function(r){s.clipboard_event_checker(r)}})(this)),this.search_field.on("paste.chosen",(function(s){return function(r){s.clipboard_event_checker(r)}})(this)),this.is_multiple?this.search_choices.on("click.chosen",(function(s){return function(r){s.choices_click(r)}
50})(this)):this.container.on("click.chosen",function(s){s.preventDefault()})},n.prototype.destroy=function(){return t(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.form_field_label.length>0&&this.form_field_label.off("click.chosen"),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},n.prototype.search_field_disabled=function(){if(this.is_disabled=this.form_field.disabled||this.form_field_jq.parents("fieldset").is(":disabled"),this.container.toggleClass("chosen-disabled",this.is_disabled),this.search_field[0].disabled=this.is_disabled,this.is_multiple||this.selected_item.off("focus.chosen",this.activate_field),this.is_disabled)return this.close_field();if(!this.is_multiple)return this.selected_item.on("focus.chosen",this.activate_field)},n.prototype.container_mousedown=function(s){var r;if(!this.is_disabled&&(s&&((r=s.type)==="mousedown"||r==="touchstart")&&!this.results_showing&&s.preventDefault(),!(s!=null&&t(s.target).hasClass("search-choice-close"))))return this.active_field?!this.is_multiple&&s&&(t(s.target)[0]===this.selected_item[0]||t(s.target).parents("a.chosen-single").length)&&(s.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),t(this.container[0].ownerDocument).on("click.chosen",this.click_test_action),this.results_show()),this.activate_field()},n.prototype.container_mouseup=function(s){if(s.target.nodeName==="ABBR"&&!this.is_disabled)return this.results_reset(s)},n.prototype.search_results_mousewheel=function(s){var r;if(s.originalEvent&&(r=s.originalEvent.deltaY||-s.originalEvent.wheelDelta||s.originalEvent.detail),r!=null)return s.preventDefault(),s.type==="DOMMouseScroll"&&(r=r*40),this.search_results.scrollTop(r+this.search_results.scrollTop())},n.prototype.blur_test=function(s){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},n.prototype.close_field=function(){return t(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale(),this.search_field.blur()},n.prototype.activate_field=function(){if(!this.is_disabled)return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},n.prototype.test_active_click=function(s){var r;return r=t(s.target).closest(".chosen-container"),r.length&&this.container[0]===r[0]?this.active_field=!0:this.close_field()},n.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=u.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},n.prototype.result_do_highlight=function(s){var r,h,g,_,m;if(s.length){if(this.result_clear_highlight(),this.result_highlight=s,this.result_highlight.addClass("highlighted"),g=parseInt(this.search_results.css("maxHeight"),10),m=this.search_results.scrollTop(),_=g+m,h=this.result_highlight.position().top+this.search_results.scrollTop(),r=h+this.result_highlight.outerHeight(),r>=_)return this.search_results.scrollTop(r-g>0?r-g:0);if(h<m)return this.search_results.scrollTop(h)}},n.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},n.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.get_search_field_value()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},n.prototype.update_results_content=function(s){return this.search_results.html(s)},n.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},n.prototype.set_tab_index=function(s){var r;if(this.form_field.tabIndex)return r=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=r},n.prototype.set_label_behavior=function(){if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=t("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0)return this.form_field_label.on("click.chosen",this.label_click_handler)},n.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},n.prototype.search_results_mouseup=function(s){var r;if(r=t(s.target).hasClass("active-result")?t(s.target):t(s.target).parents(".active-result").first(),r.length)return this.result_highlight=r,this.result_select(s),this.search_field.focus()},n.prototype.search_results_mouseover=function(s){var r;if(r=t(s.target).hasClass("active-result")?t(s.target):t(s.target).parents(".active-result").first(),r)return this.result_do_highlight(r)},n.prototype.search_results_mouseout=function(s){if(t(s.target).hasClass("active-result")||t(s.target).parents(".active-result").first())return this.result_clear_highlight()},n.prototype.choice_build=function(s){var r,h;return r=t("<li />",{class:"search-choice"}).html("<span>"+this.choice_label(s)+"</span>"),s.disabled?r.addClass("search-choice-disabled"):(h=t("<a />",{class:"search-choice-close","data-option-array-index":s.array_index}),h.on("click.chosen",(function(g){return function(_){return g.choice_destroy_link_click(_)}})(this)),r.append(h)),this.search_container.before(r)},n.prototype.choice_destroy_link_click=function(s){if(s.preventDefault(),s.stopPropagation(),!this.is_disabled)return this.choice_destroy(t(s.target))},n.prototype.choice_destroy=function(s){if(this.result_deselect(s[0].getAttribute("data-option-array-index")))return this.active_field?this.search_field.focus():this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.get_search_field_value().length<1&&this.results_hide(),s.parents("li").first().remove(),this.search_field_scale()},n.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.trigger_form_field_change(),this.active_field)return this.results_hide()},n.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},n.prototype.result_select=function(s){var r,h;if(this.result_highlight)return r=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?r.removeClass("active-result"):this.reset_single_select_options(),r.addClass("result-selected"),h=this.results_data[r[0].getAttribute("data-option-array-index")],h.selected=!0,this.form_field.options[h.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(h):this.single_set_selected_text(this.choice_label(h)),this.is_multiple&&(!this.hide_results_on_select||s.metaKey||s.ctrlKey)?s.metaKey||s.ctrlKey?this.winnow_results({skip_highlight:!0}):(this.search_field.val(""),this.winnow_results()):(this.results_hide(),this.show_search_field_default()),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.trigger_form_field_change({selected:this.form_field.options[h.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,s.preventDefault(),this.search_field_scale())},n.prototype.single_set_selected_text=function(s){return s==null&&(s=this.default_text),s===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(s)},n.prototype.result_deselect=function(s){var r;return r=this.results_data[s],this.form_field.options[r.options_index].disabled?!1:(r.selected=!1,this.form_field.options[r.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.trigger_form_field_change({deselected:this.form_field.options[r.options_index].value}),this.search_field_scale(),!0)},n.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},n.prototype.get_search_field_value=function(){return this.search_field.val()},n.prototype.get_search_text=function(){return t.trim(this.get_search_field_value())},n.prototype.escape_html=function(s){return t("<div/>").text(s).html()},n.prototype.winnow_results_set_highlight=function(){var s,r;if(r=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),s=r.length?r.first():this.search_results.find(".active-result").first(),s!=null)return this.result_do_highlight(s)},n.prototype.no_results=function(s){var r;return r=this.get_no_results_html(s),this.search_results.append(r),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},n.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},n.prototype.keydown_arrow=function(){var s;if(this.results_showing&&this.result_highlight){if(s=this.result_highlight.nextAll("li.active-result").first(),s)return this.result_do_highlight(s)}else return this.results_show()},n.prototype.keyup_arrow=function(){var s;if(!this.results_showing&&!this.is_multiple)return this.results_show();if(this.result_highlight)return s=this.result_highlight.prevAll("li.active-result"),s.length?this.result_do_highlight(s.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())},n.prototype.keydown_backstroke=function(){var s;if(this.pending_backstroke)return this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke();if(s=this.search_container.siblings("li.search-choice").last(),s.length&&!s.hasClass("search-choice-disabled"))return this.pending_backstroke=s,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")},n.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},n.prototype.search_field_scale=function(){var s,r,h,g,_,m,b;if(this.is_multiple){for(_={position:"absolute",left:"-1000px",top:"-1000px",display:"none",whiteSpace:"pre"},m=["fontSize","fontStyle","fontWeight","fontFamily","lineHeight","textTransform","letterSpacing"],r=0,h=m.length;r<h;r++)g=m[r],_[g]=this.search_field.css(g);return s=t("<div />").css(_),s.text(this.get_search_field_value()),t("body").append(s),b=s.width()+25,s.remove(),this.container.is(":visible")&&(b=Math.min(this.container.outerWidth()-10,b)),this.search_field.width(b)}},n.prototype.trigger_form_field_change=function(s){return this.form_field_jq.trigger("input",s),this.form_field_jq.trigger("change",s)},n})(l)}).call(this);
50var CountryCallingCodes={codes:{1:"93",2:"355",3:"213",4:"1-684",5:"376",6:"244",7:"1-264",9:"1-268",10:"54",11:"7",12:"297",13:"61",14:"43",15:"994",16:"1-242",17:"973",18:"880",19:"1-246",20:"375",21:"32",22:"501",23:"229",24:"1-441",25:"975",26:"591",27:"387",28:"267",30:"55",32:"673",33:"359",34:"226",36:"257",37:"855",38:"237",39:"1",40:"238",41:"1-345",42:"236",43:"235",44:"56",45:"86",48:"57",49:"269",50:"242",51:"243",52:"682",53:"506",54:"225",55:"385",56:"53",57:"357",58:"420",59:"45",60:"253",61:"1-767",62:"1-809",63:"670",64:"593",65:"20",66:"503",68:"240",69:"291",71:"372",72:"251",73:"500",74:"298",75:"679",76:"358",77:"33",78:"594",79:"689",81:"241",82:"220",84:"49",85:"233",86:"350",88:"30",89:"299",90:"1-473",91:"590",92:"1-671",93:"502",94:"224",95:"245",96:"592",97:"509",99:"504",100:"852",101:"36",102:"354",103:"91",104:"62",105:"353",106:"972",107:"39",108:"98",109:"964",110:"1-876",111:"81",112:"962",113:"7",114:"254",115:"686",116:"82",118:"965",119:"996",120:"856",121:"371",122:"961",123:"266",124:"231",125:"423",126:"370",127:"352",128:"853",129:"389",130:"261",131:"265",132:"60",133:"960",134:"223",135:"356",136:"692",137:"596",138:"222",139:"230",140:"269",141:"52",142:"691",143:"373",144:"377",145:"976",146:"1-664",147:"212",148:"258",149:"95",150:"264",151:"674",152:"977",153:"31",154:"599",155:"687",156:"64",157:"505",158:"227",159:"234",160:"683",163:"1-670",164:"47",165:"968",166:"92",167:"680",168:"507",169:"675",170:"595",171:"51",172:"63",174:"48",175:"351",176:"1",177:"974",178:"262",179:"40",180:"7",181:"250",182:"1-869",183:"1-758",184:"1-784",185:"685",186:"378",187:"239",188:"966",190:"221",191:"381",192:"248",193:"232",194:"65",195:"421",196:"386",197:"677",198:"252",199:"27",202:"34",203:"94",204:"290",205:"508",206:"597",208:"268",209:"46",210:"41",211:"886",212:"992",213:"255",214:"66",215:"228",216:"690",217:"676",219:"1-868",220:"216",221:"90",222:"993",223:"1-649",224:"688",225:"256",226:"380",227:"971",228:"44",229:"1",231:"598",232:"998",233:"678",234:"379",235:"58",236:"84",237:"1-284",238:"1-340",240:"681",242:"967",243:"260",244:"263",245:"963",246:"218",247:"850",248:"249",249:"382",250:"44-1481",251:"44-01624",253:"970",254:"358 18",255:"590",256:"590",260:"599"},getCountryCodePrefixForId:function(t){var l=CountryCallingCodes.codes[t]||"";return"+"+l+" "},createCountryCodeField:function(t,l,c){var u=l;u?$j.isArray(u)||(u=[u]):u=[];function a(f,n,s){f.length==0?n.val(""):n.val(s+f)}for(var p=0,d=u.length;p<d;p++)(function(){var f=u[p],n=null;n=$j('<input type="hidden" />');var s=f.attr("name");f.after(n),f.removeAttr("name"),n.attr("name",s),t.change(function(){var r=CountryCallingCodes.getCountryCodePrefixForId($j(this).val());a(f.val(),n,r)}),f.keyup(function(){a($j(this).val(),n,c.text())})})();t.change(function(){var f=CountryCallingCodes.getCountryCodePrefixForId($j(this).val()),n=c.css("color");c.text(f),c.animate({color:"#bbbbbb"},250).animate({color:n},250)}).change()}};if(typeof _gmq>"u"){let t=function(c){var u=this;this.push=function(d){typeof window[d]=="function"&&window[d]()};for(var a=0,p=c.length;a<p;a++)u.push(c[a])},l=function(){_gmq=new t(_gmq)};var GmapAsyncQueue=t,gmapAsyncCallback=l;_gmq=[],GmapAsyncLoader=new function(){var c=500,u=!1;this.load=function(a,p,d=!1){if(!u){var f=document.createElement("script");f.type="text/javascript",f.src="https://maps.googleapis.com/maps/api/js?callback=gmapAsyncCallback&v=3&libraries=geometry,drawing,marker,places"+(p?"&key="+p:""),document.body.appendChild(f),d&&setTimeout(function(){window.google&&window.google.maps||l()},c),u=!0}_gmq.push(a)}}}+(function(t){"use strict";var l=".dropdown-backdrop",c='[data-toggle="dropdown"]',u=function(n){t(n).on("click.bs.dropdown",this.toggle)};u.VERSION="3.4.1";function a(n){var s=n.attr("data-target");s||(s=n.attr("href"),s=s&&/#[A-Za-z]/.test(s)&&s.replace(/.*(?=#[^\s]*$)/,""));var r=s!=="#"?t(document).find(s):null;return r&&r.length?r:n.parent()}function p(n){n&&n.which===3||(t(l).remove(),t(c).each(function(){var s=t(this),r=a(s),h={relatedTarget:this};if(r.hasClass("open")&&!(n&&n.type=="click"&&/input|textarea/i.test(n.target.tagName)&&t.contains(r[0],n.target))&&(r.trigger(n=t.Event("hide.bs.dropdown",h)),!n.isDefaultPrevented())){s.attr("aria-expanded","fal
50se"),r.removeClass("open").trigger(t.Event("hidden.bs.dropdown",h));var g;(g=s.data("group"))&&t(g).off("mouseover.dropdown.data-api")}}))}u.prototype.toggle=function(n){var s=t(this);if(!s.is(".disabled, :disabled")){var r=a(s),h=r.hasClass("open");if(p(),!h){"ontouchstart"in document.documentElement&&!r.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",p);var g={relatedTarget:this};if(r.trigger(n=t.Event("show.bs.dropdown",g)),n.isDefaultPrevented())return;s.trigger("focus").attr("aria-expanded","true"),r.toggleClass("open").trigger(t.Event("shown.bs.dropdown",g));var _;(_=s.data("group"))&&t(_).on("mouseover.dropdown.data-api",c,function(m){!s.is(m.target)&&!s.has(m.target).length&&u.prototype.toggle.apply(this,arguments)})}return!1}},u.prototype.keydown=function(n){if(!(!/(38|40|27|32)/.test(n.which)||/input|textarea/i.test(n.target.tagName))){var s=t(this);if(n.preventDefault(),n.stopPropagation(),!s.is(".disabled, :disabled")){var r=a(s),h=r.hasClass("open");if(!h&&n.which!=27||h&&n.which==27)return n.which==27&&r.find(c).trigger("focus"),s.trigger("click");var g=" li:not(.disabled):visible a",_=r.find(".dropdown-menu"+g);if(_.length){var m=_.index(n.target);n.which==38&&m>0&&m--,n.which==40&&m<_.length-1&&m++,~m||(m=0),_.eq(m).trigger("focus")}}}};function d(n){return this.each(function(){var s=t(this),r=s.data("bs.dropdown");r||s.data("bs.dropdown",r=new u(this)),typeof n=="string"&&r[n].call(s)})}var f=t.fn.dropdown;t.fn.dropdown=d,t.fn.dropdown.Constructor=u,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=f,this},t(document).on("click.bs.dropdown.data-api",p).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",c,u.prototype.toggle).on("keydown.bs.dropdown.data-api",c,u.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",u.prototype.keydown)})(jQuery),$j(document).ready(function(){$j("body").delegate("#profile-group-container .select-all","click",function(){$j(this).closest(".company-container").find("input").prop("checked",!0)}),$j("body").delegate("#profile-group-container .select-none","click",function(){$j(this).closest(".company-container").find("input").prop("checked",!1)}),$j("body").delegate("#profile-group-container .build-aggregate-profile","click",function(){$j("#profile-group-form :checked").size()>0?($j(this).val("Building profile...").prop("disabled",!0),$j("#profile-group-spinner").show(),$j("#profile-group-form").submit()):alert("You must check at least one company to build an aggregated profile.")})});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.