var jq=jQuery,bp_ajax_request=null,newest_activities="",activity_last_recorded=0;
jq(document).ready(function(){"-1"==window.location.search.indexOf("new")&&jq("div.forums").length?jq("#new-topic-post").hide():jq("#new-topic-post").show();bp_init_activity();bp_init_objects(["members","groups","blogs","forums","group_members"]);var d=jq("#whats-new");if(jq.query.get("r")&&d.length){jq("#whats-new-options").animate({height:"40px"});jq("#whats-new-form textarea").animate({height:"50px"});jq.scrollTo(d,500,{offset:-125,easing:"easeOutQuad"});var b=d.val();d.val("").focus().val(b)}d.focus(function(){jq("#whats-new-options").animate({height:"40px"});
jq("#whats-new-form textarea").animate({height:"50px"});jq("#aw-whats-new-submit").prop("disabled",!1);var a=jq("form#whats-new-form");a.hasClass("submitted")&&a.removeClass("submitted");a=jq("#activity-all");a.length&&(a.hasClass("selected")?"-1"!=jq("#activity-filter-select select").val()&&(jq("#activity-filter-select select").val("-1"),jq("#activity-filter-select select").trigger("change")):(jq("#activity-filter-select select").val("-1"),a.children("a").trigger("click")))});d.blur(function(){document.activeElement==
this||this.value.match(/\S+/)||(this.value="",jq("#whats-new-options").animate({height:"40px"}),jq("form#whats-new-form textarea").animate({height:"20px"}),jq("#aw-whats-new-submit").prop("disabled",!0))});jq("#aw-whats-new-submit").on("click",function(){var a=0,c=jq(this),b=c.closest("form#whats-new-form");b.children().each(function(){(jq.nodeName(this,"textarea")||jq.nodeName(this,"input"))&&jq(this).prop("disabled",!0)});jq("div.error").remove();c.addClass("loading");c.prop("disabled",!0);b.addClass("submitted");
var c="",e=jq("#whats-new-post-in").val(),d=jq("#whats-new").val(),h=jq("#buddypress ul.activity-list li").first(),k=h,g=null;h.length&&(k.hasClass("load-newest")&&(k=h.next()),g=k.prop("class").match(/date-recorded-([0-9]+)/));g&&(a=g[1]);0<e&&(c=jq("#whats-new-post-object").val());jq.post(ajaxurl,{action:"post_update",cookie:bp_get_cookies(),_wpnonce_post_update:jq("#_wpnonce_post_update").val(),content:d,object:c,item_id:e,since:a,_bp_as_nonce:jq("#_bp_as_nonce").val()||""},function(c){b.children().each(function(){(jq.nodeName(this,
"textarea")||jq.nodeName(this,"input"))&&jq(this).prop("disabled",!1)});if("-1"==c[0]+c[1])b.prepend(c.substr(2,c.length)),jq("#"+b.attr("id")+" div.error").hide().fadeIn(200);else{0==jq("ul.activity-list").length&&(jq("div.error").slideUp(100).remove(),jq("#message").slideUp(100).remove(),jq("div.activity").append('<ul id="activity-stream" class="activity-list item-list">'));h.hasClass("load-newest")&&h.remove();jq("#activity-stream").prepend(c);jq("body").trigger("bpActivityLoaded");a||jq("#activity-stream li:first").addClass("new-update just-posted");
if(0!=jq("#latest-update").length){c=jq("#activity-stream li.new-update .activity-content .activity-inner p").html();var e=jq("#activity-stream li.new-update .activity-content .activity-header p a.view").attr("href"),d="";""!=jq("#activity-stream li.new-update .activity-content .activity-inner p").text()&&(d=c+" ");d+='<a href="'+e+'" rel="nofollow">'+BP_DTheme.view+"</a>";jq("#latest-update").slideUp(300,function(){jq("#latest-update").html(d);jq("#latest-update").slideDown(300)})}jq("li.new-update").hide().slideDown(300);
jq("li.new-update").removeClass("new-update");jq("#whats-new").val("");newest_activities="";activity_last_recorded=0}jq("#whats-new-options").animate({height:"0px"});jq("#whats-new-form textarea").animate({height:"20px"});jq("#aw-whats-new-submit").prop("disabled",!0).removeClass("loading")});return!1});jq("div.activity-type-tabs").on("click",function(a){var c=jq(a.target).parent();if("STRONG"==a.target.nodeName||"SPAN"==a.target.nodeName)c=c.parent();else if("A"!=a.target.nodeName)return!1;jq.cookie("bp-activity-oldestpage",
1,{path:"/"});a=c.attr("id").substr(9,c.attr("id").length);var b=jq("#activity-filter-select select").val();"mentions"==a&&jq("#"+c.attr("id")+" a strong").remove();bp_activity_request(a,b);return!1});jq("#activity-filter-select select").change(function(){var a=jq("div.activity-type-tabs li.selected"),a=a.length?a.attr("id").substr(9,a.attr("id").length):null,c=jq(this).val();bp_activity_request(a,c);return!1});jq("div.activity").on("click",function(a){var c=jq(a.target);if(c.hasClass("fav")||c.hasClass("unfav")){var b=
c.hasClass("fav")?"fav":"unfav";a=c.closest(".activity-item");a=a.attr("id").substr(9,a.attr("id").length);c.addClass("loading");jq.post(ajaxurl,{action:"activity_mark_"+b,cookie:bp_get_cookies(),id:a},function(a){c.removeClass("loading");c.fadeOut(200,function(){jq(this).html(a);jq(this).attr("title","fav"==b?BP_DTheme.remove_fav:BP_DTheme.mark_as_fav);jq(this).fadeIn(200)});"fav"==b?(jq(".item-list-tabs #activity-favs-personal-li").length||(jq(".item-list-tabs #activity-favorites").length||jq(".item-list-tabs ul #activity-mentions").before('<li id="activity-favorites"><a href="#">'+
BP_DTheme.my_favs+" <span>0</span></a></li>"),jq(".item-list-tabs ul #activity-favorites span").html(Number(jq(".item-list-tabs ul #activity-favorites span").html())+1)),c.removeClass("fav"),c.addClass("unfav")):(c.removeClass("unfav"),c.addClass("fav"),jq(".item-list-tabs ul #activity-favorites span").html(Number(jq(".item-list-tabs ul #activity-favorites span").html())-1),Number(jq(".item-list-tabs ul #activity-favorites span").html())||(jq(".item-list-tabs ul #activity-favorites").hasClass("selected")&&
bp_activity_request(null,null),jq(".item-list-tabs ul #activity-favorites").remove()));"activity-favorites"==jq(".item-list-tabs li.selected").attr("id")&&c.closest(".activity-item").slideUp(100)});return!1}if(c.hasClass("delete-activity")){var e=c.parents("div.activity ul li");a=e.attr("id").substr(9,e.attr("id").length);var d=c.attr("href").split("_wpnonce="),h=e.prop("class").match(/date-recorded-([0-9]+)/),d=d[1];c.addClass("loading");jq.post(ajaxurl,{action:"delete_activity",cookie:bp_get_cookies(),
id:a,_wpnonce:d},function(a){"-1"==a[0]+a[1]?(e.prepend(a.substr(2,a.length)),e.children("#message").hide().fadeIn(300)):(e.slideUp(300),h&&activity_last_recorded==h[1]&&(newest_activities="",activity_last_recorded=0))});return!1}if(c.hasClass("spam-activity"))return e=c.parents("div.activity ul li"),h=e.prop("class").match(/date-recorded-([0-9]+)/),c.addClass("loading"),jq.post(ajaxurl,{action:"bp_spam_activity",cookie:encodeURIComponent(document.cookie),id:e.attr("id").substr(9,e.attr("id").length),
_wpnonce:c.attr("href").split("_wpnonce=")[1]},function(a){"-1"===a[0]+a[1]?(e.prepend(a.substr(2,a.length)),e.children("#message").hide().fadeIn(300)):(e.slideUp(300),h&&activity_last_recorded==h[1]&&(newest_activities="",activity_last_recorded=0))}),!1;if(c.parent().hasClass("load-more")){jq("#buddypress li.load-more").addClass("loading");null==jq.cookie("bp-activity-oldestpage")&&jq.cookie("bp-activity-oldestpage",1,{path:"/"});var k=1*jq.cookie("bp-activity-oldestpage")+1,g=[];jq(".activity-list li.just-posted").each(function(){g.push(jq(this).attr("id").replace("activity-",
""))});jq.post(ajaxurl,{action:"activity_get_older_updates",cookie:bp_get_cookies(),page:k,exclude_just_posted:g.join(",")},function(a){jq("#buddypress li.load-more").removeClass("loading");jq.cookie("bp-activity-oldestpage",k,{path:"/"});jq("#buddypress ul.activity-list").append(a.contents);c.parent().hide()},"json");return!1}c.parent().hasClass("load-newest")&&(a.preventDefault(),c.parent().hide(),activity_html=jq.parseHTML(newest_activities),jq.each(activity_html,function(a,c){"LI"==c.nodeName&&
jq(c).hasClass("just-posted")&&jq("#"+jq(c).attr("id")).length&&jq("#"+jq(c).attr("id")).remove()}),jq("#buddypress ul.activity-list").prepend(newest_activities),newest_activities="")});jq("div.activity").on("click",".activity-read-more a",function(a){a=jq(a.target);var c=a.parent().attr("id").split("-"),b=c[3],c=c[0],e=jq("#"+c+"-"+b+" ."+("acomment"==c?"acomment-content":"activity-inner")+":first");jq(a).addClass("loading");jq.post(ajaxurl,{action:"get_single_activity_content",activity_id:b},function(a){jq(e).slideUp(300).html(a).slideDown(300)});
return!1});jq("form.ac-form").hide();jq(".activity-comments").length&&bp_legacy_theme_hide_comments();jq("div.activity").on("click",function(a){var c=jq(a.target);if(c.hasClass("acomment-reply")||c.parent().hasClass("acomment-reply")){c.parent().hasClass("acomment-reply")&&(c=c.parent());ids=c.attr("id").split("-");a=ids[2];var b=c.attr("href").substr(10,c.attr("href").length),e=jq("#ac-form-"+a);e.css("display","none");e.removeClass("root");jq(".ac-form").hide();e.children("div").each(function(){jq(this).hasClass("error")&&
jq(this).hide()});"comment"!=ids[1]?jq("#acomment-"+b).append(e):jq("#activity-"+a+" .activity-comments").append(e);e.parent().hasClass("activity-comments")&&e.addClass("root");e.slideDown(200);jq.scrollTo(e,500,{offset:-100,easing:"easeOutQuad"});jq("#ac-form-"+ids[2]+" textarea").focus();return!1}if("ac_form_submit"==c.attr("name")){e=c.parents("form");a=e.parent();var d=e.attr("id").split("-");a=a.hasClass("activity-comments")?d[2]:a.attr("id").split("-")[1];var h=jq("#"+e.attr("id")+" textarea");
jq("#"+e.attr("id")+" div.error").hide();c.addClass("loading").prop("disabled",!0);h.addClass("loading").prop("disabled",!0);var b={action:"new_activity_comment",cookie:bp_get_cookies(),_wpnonce_new_activity_comment:jq("#_wpnonce_new_activity_comment").val(),comment_id:a,form_id:d[2],content:h.val()},k=jq("#_bp_as_nonce_"+a).val();k&&(b["_bp_as_nonce_"+a]=k);jq.post(ajaxurl,b,function(a){c.removeClass("loading");h.removeClass("loading");if("-1"==a[0]+a[1])e.append(jq(a.substr(2,a.length)).hide().fadeIn(200));
else{var b=e.parent();e.fadeOut(200,function(){0==b.children("ul").length&&(b.hasClass("activity-comments")?b.prepend("<ul></ul>"):b.append("<ul></ul>"));var c=jq.trim(a);b.children("ul").append(jq(c).hide().fadeIn(200));e.children("textarea").val("");b.parent().addClass("has-comments")});jq("#"+e.attr("id")+" textarea").val("");jq("#activity-"+d[2]+" a.acomment-reply span").html(Number(jq("#activity-"+d[2]+" a.acomment-reply span").html())+1);var f=b.find(".show-all").find("a");if(f){var g=jq("li#activity-"+
d[2]+" a.acomment-reply span").html();f.html(BP_DTheme.show_x_comments.replace("%d",g))}}jq(c).prop("disabled",!1);jq(h).prop("disabled",!1)});return!1}if(c.hasClass("acomment-delete")){a=c.attr("href");var g=c.parent().parent(),e=g.parents("div.activity-comments").children("form"),b=a.split("_wpnonce="),b=b[1];a=a.split("cid=");a=a[1].split("&");a=a[0];c.addClass("loading");jq(".activity-comments ul .error").remove();g.parents(".activity-comments").append(e);jq.post(ajaxurl,{action:"delete_activity_comment",
cookie:bp_get_cookies(),_wpnonce:b,id:a},function(a){if("-1"==a[0]+a[1])g.prepend(jq(a.substr(2,a.length)).hide().fadeIn(200));else{a=jq("#"+g.attr("id")+" ul").children("li");var c=0;jq(a).each(function(){jq(this).is(":hidden")||c++});g.fadeOut(200,function(){g.remove()});var b=jq("#"+g.parents("#activity-stream > li").attr("id")+" a.acomment-reply span");a=b.html()-(1+c);b.html(a);(b=g.siblings(".show-all").find("a"))&&b.html(BP_DTheme.show_x_comments.replace("%d",a));0==a&&jq(g.parents("#activity-stream > li")).removeClass("has-comments")}});
return!1}if(c.hasClass("spam-activity-comment"))return a=c.attr("href"),g=c.parent().parent(),c.addClass("loading"),jq(".activity-comments ul div.error").remove(),g.parents(".activity-comments").append(g.parents(".activity-comments").children("form")),jq.post(ajaxurl,{action:"bp_spam_activity_comment",cookie:encodeURIComponent(document.cookie),_wpnonce:a.split("_wpnonce=")[1],id:a.split("cid=")[1].split("&")[0]},function(a){if("-1"==a[0]+a[1])g.prepend(jq(a.substr(2,a.length)).hide().fadeIn(200));
else{a=jq("#"+g.attr("id")+" ul").children("li");var c=0;jq(a).each(function(){jq(this).is(":hidden")||c++});g.fadeOut(200);a=g.parents("#activity-stream > li");jq("#"+a.attr("id")+" a.acomment-reply span").html(jq("#"+a.attr("id")+" a.acomment-reply span").html()-(1+c))}}),!1;if(c.parent().hasClass("show-all"))return c.parent().addClass("loading"),setTimeout(function(){c.parent().parent().children("li").fadeIn(200,function(){c.parent().remove()})},600),!1;if(c.hasClass("ac-reply-cancel"))return jq(c).closest(".ac-form").slideUp(200),
!1});jq(document).keydown(function(a){a=a||window.event;a.target?element=a.target:a.srcElement&&(element=a.srcElement);3==element.nodeType&&(element=element.parentNode);!0!=a.ctrlKey&&!0!=a.altKey&&!0!=a.metaKey&&27==(a.keyCode?a.keyCode:a.which)&&"TEXTAREA"==element.tagName&&jq(element).hasClass("ac-input")&&jq(element).parent().parent().parent().slideUp(200)});jq(".dir-search, .groups-members-search").on("click",function(a){if(!jq(this).hasClass("no-ajax")&&(a=jq(a.target),"submit"==a.attr("type"))){var c=
jq(".item-list-tabs li.selected").attr("id").split("-"),b=c[0],e=null;"members"==b&&"groups"==c[1]&&(b="group_members",e="groups/single/members");bp_filter_request(b,jq.cookie("bp-"+b+"-filter"),jq.cookie("bp-"+b+"-scope"),"div."+b,a.parent().children("label").children("input").val(),1,jq.cookie("bp-"+b+"-extras"),null,e);return!1}});jq("div.item-list-tabs").on("click",function(a){if(!jq(this).hasClass("no-ajax")&&(a=jq("SPAN"==a.target.nodeName?a.target.parentNode:a.target).parent(),"LI"==a[0].nodeName&&
!a.hasClass("last"))){var c=a.attr("id").split("-");a=c[0];if("activity"==a)return!1;var c=c[1],b=jq("#"+a+"-order-select select").val(),e=jq("#"+a+"_search").val();bp_filter_request(a,b,c,"div."+a,e,1,jq.cookie("bp-"+a+"-extras"));return!1}});jq("li.filter select").change(function(){var a=(jq(".item-list-tabs li.selected").length?jq(".item-list-tabs li.selected"):jq(this)).attr("id").split("-"),c=a[0],a=a[1],b=jq(this).val(),e=!1,d=null;jq(".dir-search input").length&&(e=jq(".dir-search input").val());
var h=jq(".groups-members-search input");h.length&&(e=h.val());"members"==c&&"groups"==a&&(c="group_members",d="groups/single/members");"friends"==c&&(c="members");bp_filter_request(c,b,a,"div."+c,e,1,jq.cookie("bp-"+c+"-extras"),null,d);return!1});jq("#buddypress").on("click",function(a){var c=jq(a.target);if(c.hasClass("button"))return!0;if(c.parent().parent().hasClass("pagination")&&!c.parent().parent().hasClass("no-ajax")){if(c.hasClass("dots")||c.hasClass("current"))return!1;var b=(jq(".item-list-tabs li.selected").length?
jq(".item-list-tabs li.selected"):jq("li.filter select")).attr("id").split("-");a=b[0];var e=!1,d=jq(c).closest(".pagination-links").attr("id"),h=null,c=c.attr("href").split("="),c=c[1];jq("div.dir-search input").length&&(e=jq(".dir-search input").val());var k=jq(".groups-members-search input");k.length&&(e=k.val());"members"==a&&"groups"==b[1]&&(a="group_members",h="groups/single/members");"admin"==a&&jq("body").hasClass("membership-requests")&&(a="requests");b=-1!==d.indexOf("pag-bottom")?"pag-bottom":
null;bp_filter_request(a,jq.cookie("bp-"+a+"-filter"),jq.cookie("bp-"+a+"-scope"),"div."+a,e,c,jq.cookie("bp-"+a+"-extras"),b,h);return!1}});jq("a.show-hide-new").on("click",function(){if(!jq("#new-topic-post").length)return!1;jq("#new-topic-post").is(":visible")?jq("#new-topic-post").slideUp(200):jq("#new-topic-post").slideDown(200,function(){jq("#topic_title").focus()});return!1});jq("#submit_topic_cancel").on("click",function(){if(!jq("#new-topic-post").length)return!1;jq("#new-topic-post").slideUp(200);
return!1});jq("#forum-directory-tags a").on("click",function(){bp_filter_request("forums","tags",jq.cookie("bp-forums-scope"),"div.forums",jq(this).html().replace(/&nbsp;/g,"-"),1,jq.cookie("bp-forums-extras"));return!1});jq("#send-invite-form").on("click","#invite-list input",function(){var a=jq("#send-invite-form > .invite").length;jq(".ajax-loader").toggle();a&&jq(this).parents("ul").find("input").prop("disabled",!0);var c=jq(this).val(),b=!0==jq(this).prop("checked")?"invite":"uninvite";a||jq(".item-list-tabs li.selected").addClass("loading");
jq.post(ajaxurl,{action:"groups_invite_user",friend_action:b,cookie:bp_get_cookies(),_wpnonce:jq("#_wpnonce_invite_uninvite_user").val(),friend_id:c,group_id:jq("#group_id").val()},function(e){jq("#message")&&jq("#message").hide();a?bp_filter_request("invite","bp-invite-filter","bp-invite-scope","div.invite",!1,1,"","",""):(jq(".ajax-loader").toggle(),"invite"==b?jq("#friend-list").append(e):"uninvite"==b&&jq("#friend-list li#uid-"+c).remove(),jq(".item-list-tabs li.selected").removeClass("loading"))})});
jq("#send-invite-form").on("click","a.remove",function(){var a=jq("#send-invite-form > .invite").length;jq(".ajax-loader").toggle();var c=jq(this).attr("id"),c=c.split("-"),c=c[1];jq.post(ajaxurl,{action:"groups_invite_user",friend_action:"uninvite",cookie:bp_get_cookies(),_wpnonce:jq("#_wpnonce_invite_uninvite_user").val(),friend_id:c,group_id:jq("#group_id").val()},function(b){a?bp_filter_request("invite","bp-invite-filter","bp-invite-scope","div.invite",!1,1,"","",""):(jq(".ajax-loader").toggle(),
jq("#friend-list #uid-"+c).remove(),jq("#invite-list #f-"+c).prop("checked",!1))});return!1});jq(".visibility-toggle-link").on("click",function(a){a.preventDefault();jq(this).parent().hide().siblings(".field-visibility-settings").show()});jq(".field-visibility-settings-close").on("click",function(a){a.preventDefault();a=jq(this).parent();var c=a.find("input:checked").parent().text();a.hide().siblings(".field-visibility-settings-toggle").children(".current-visibility-level").text(c).end().show()});
jq("#profile-edit-form input:not(:submit), #profile-edit-form textarea, #profile-edit-form select, #signup_form input:not(:submit), #signup_form textarea, #signup_form select").change(function(){var a=!0;jq("#profile-edit-form input:submit, #signup_form input:submit").on("click",function(){a=!1});window.onbeforeunload=function(c){if(a)return BP_DTheme.unsaved_changes}});jq("#friend-list a.accept, #friend-list a.reject").on("click",function(){var a=jq(this),c=jq(this).parents("#friend-list li"),b=
jq(this).parents("li div.action"),e=c.attr("id").substr(11,c.attr("id").length),d=a.attr("href").split("_wpnonce="),d=d[1];if(jq(this).hasClass("accepted")||jq(this).hasClass("rejected"))return!1;if(jq(this).hasClass("accept")){var h="accept_friendship";b.children("a.reject").css("visibility","hidden")}else h="reject_friendship",b.children("a.accept").css("visibility","hidden");a.addClass("loading");jq.post(ajaxurl,{action:h,cookie:bp_get_cookies(),id:e,_wpnonce:d},function(e){a.removeClass("loading");
"-1"==e[0]+e[1]?(c.prepend(e.substr(2,e.length)),c.children("#message").hide().fadeIn(200)):a.fadeOut(100,function(){jq(this).hasClass("accept")?(b.children("a.reject").hide(),jq(this).html(BP_DTheme.accepted).contents().unwrap()):(b.children("a.accept").hide(),jq(this).html(BP_DTheme.rejected).contents().unwrap())})});return!1});jq("#members-dir-list, #members-group-list").on("click",".friendship-button a",function(){jq(this).parent().addClass("loading");var a=jq(this).attr("id"),a=a.split("-"),
a=a[1],c=jq(this).attr("href"),c=c.split("?_wpnonce="),c=c[1].split("&"),c=c[0],b=jq(this);jq.post(ajaxurl,{action:"addremove_friend",cookie:bp_get_cookies(),fid:a,_wpnonce:c},function(a){var c=b.attr("rel"),d=b.parent();"add"==c?jq(d).fadeOut(200,function(){d.removeClass("add_friend");d.removeClass("loading");d.addClass("pending_friend");d.fadeIn(200).html(a)}):"remove"==c&&jq(d).fadeOut(200,function(){d.removeClass("remove_friend");d.removeClass("loading");d.addClass("add");d.fadeIn(200).html(a)})});
return!1});jq("#buddypress").on("click",".group-button .leave-group",function(){if(!1==confirm(BP_DTheme.leave_group_confirm))return!1});jq("#groups-dir-list").on("click",".group-button a",function(){var a=jq(this).parent().attr("id"),a=a.split("-"),a=a[1],c=jq(this).attr("href"),c=c.split("?_wpnonce="),c=c[1].split("&"),c=c[0],b=jq(this);if(b.hasClass("leave-group")&&!1==confirm(BP_DTheme.leave_group_confirm))return!1;jq.post(ajaxurl,{action:"joinleave_group",cookie:bp_get_cookies(),gid:a,_wpnonce:c},
function(a){var c=b.parent();jq("body.directory").length?jq(c).fadeOut(200,function(){c.fadeIn(200).html(a);var d=jq("#groups-personal span"),k=1;b.hasClass("leave-group")?(c.hasClass("hidden")&&c.closest("li").slideUp(200),k=0):b.hasClass("request-membership")&&(k=!1);d.length&&!1!==k&&(k?d.text((d.text()>>0)+1):d.text((d.text()>>0)-1))}):location.href=location.href});return!1});jq("#buddypress").on("click",".pending",function(){return!1});jq(".message-search").on("click",function(a){if(!jq(this).hasClass("no-ajax")&&
(a=jq(a.target),"submit"==a.attr("type")))return bp_filter_request("messages",jq.cookie("bp-messages-filter"),jq.cookie("bp-messages-scope"),"div.messages",a.parent().children("label").children("input").val(),1,jq.cookie("bp-messages-extras")),!1});jq("#send_reply_button").click(function(){var a=jq("#messages_order").val()||"ASC",c=jq("#message-recipients").offset(),b=jq("#send_reply_button");jq(b).addClass("loading");jq.post(ajaxurl,{action:"messages_send_reply",cookie:bp_get_cookies(),_wpnonce:jq("#send_message_nonce").val(),
content:jq("#message_content").val(),send_to:jq("#send_to").val(),subject:jq("#subject").val(),thread_id:jq("#thread_id").val()},function(d){"-1"==d[0]+d[1]?jq("#send-reply").prepend(d.substr(2,d.length)):(jq("#send-reply #message").remove(),jq("#message_content").val(""),"ASC"==a?jq("#send-reply").before(d):(jq("#message-recipients").after(d),jq(window).scrollTop(c.top)),jq(".new-message").hide().slideDown(200,function(){jq(".new-message").removeClass("new-message")}));jq(b).removeClass("loading")});
return!1});jq("#mark_as_read, #mark_as_unread").click(function(){var a="",c=jq("#message-threads tr td input[type='checkbox']");if("mark_as_unread"==jq(this).attr("id"))var b="read",d="unread",l=1,h="inline",k="messages_markunread";else b="unread",d="read",l=0,h="none",k="messages_markread";c.each(function(g){if(jq(this).is(":checked")&&jq("#m-"+jq(this).attr("value")).hasClass(b)){a+=jq(this).attr("value");jq("#m-"+jq(this).attr("value")).removeClass(b);jq("#m-"+jq(this).attr("value")).addClass(d);
jq("#m-"+jq(this).attr("value")+" td span.unread-count").html();jq("#m-"+jq(this).attr("value")+" td span.unread-count").html(l);jq("#m-"+jq(this).attr("value")+" td span.unread-count").css("display",h);var k=jq("tr.unread").length;jq("#user-messages span").html(k);g!=c.length-1&&(a+=",")}});jq.post(ajaxurl,{action:k,thread_ids:a});return!1});jq("body.messages #item-body div.messages").on("change","#message-type-select",function(){var a=this.value,c=jq("td input[type='checkbox']");c.each(function(a){c[a].checked=
""});var b="checked";switch(a){case "unread":c=jq("tr.unread td input[type='checkbox']");break;case "read":c=jq("tr.read td input[type='checkbox']");break;case "":b=""}c.each(function(a){c[a].checked=b})});jq("body.messages #item-body div.messages").on("click",".messages-options-nav a",function(){if(-1!=jq.inArray(this.id,["delete_sentbox_messages","delete_inbox_messages"])){checkboxes_tosend="";checkboxes=jq("#message-threads tr td input[type='checkbox']");jq("#message").remove();jq(this).addClass("loading");
jq(checkboxes).each(function(a){jq(this).is(":checked")&&(checkboxes_tosend+=jq(this).attr("value")+",")});if(""==checkboxes_tosend)return jq(this).removeClass("loading"),!1;jq.post(ajaxurl,{action:"messages_delete",thread_ids:checkboxes_tosend},function(a){"-1"==a[0]+a[1]?jq("#message-threads").prepend(a.substr(2,a.length)):(jq("#message-threads").before('<div id="message" class="updated"><p>'+a+"</p></div>"),jq(checkboxes).each(function(a){jq(this).is(":checked")&&(jq(this).attr("checked",!1),jq(this).parent().parent().fadeOut(150))}));
jq("#message").hide().slideDown(150);jq("#delete_inbox_messages, #delete_sentbox_messages").removeClass("loading")});return!1}});jq("#close-notice").on("click",function(){jq(this).addClass("loading");jq("#sidebar div.error").remove();jq.post(ajaxurl,{action:"messages_close_notice",notice_id:jq(".notice").attr("rel").substr(2,jq(".notice").attr("rel").length)},function(a){jq("#close-notice").removeClass("loading");"-1"==a[0]+a[1]?(jq(".notice").prepend(a.substr(2,a.length)),jq("#sidebar div.error").hide().fadeIn(200)):
jq(".notice").slideUp(100)});return!1});jq("#wp-admin-bar ul.main-nav li, #nav li").mouseover(function(){jq(this).addClass("sfhover")});jq("#wp-admin-bar ul.main-nav li, #nav li").mouseout(function(){jq(this).removeClass("sfhover")});jq("a.logout").on("click",function(){jq.cookie("bp-activity-scope",null,{path:"/"});jq.cookie("bp-activity-filter",null,{path:"/"});jq.cookie("bp-activity-oldestpage",null,{path:"/"});var a=["members","groups","blogs","forums"];jq(a).each(function(c){jq.cookie("bp-"+
a[c]+"-scope",null,{path:"/"});jq.cookie("bp-"+a[c]+"-filter",null,{path:"/"});jq.cookie("bp-"+a[c]+"-extras",null,{path:"/"})})});jq("body").hasClass("no-js")&&jq("body").attr("class",jq("body").attr("class").replace(/no-js/,"js"));"undefined"!=typeof wp&&"undefined"!=typeof wp.heartbeat&&"undefined"!=typeof BP_DTheme.pulse&&(wp.heartbeat.interval(Number(BP_DTheme.pulse)),jq.fn.extend({"heartbeat-send":function(){return this.bind("heartbeat-send.buddypress")}}));jq(document).on("heartbeat-send.buddypress",
function(a,c){firstrow=0;jq("#buddypress ul.activity-list li").first().prop("id")&&(timestamp=jq("#buddypress ul.activity-list li").first().prop("class").match(/date-recorded-([0-9]+)/))&&(firstrow=timestamp[1]);if(0==activity_last_recorded||Number(firstrow)>activity_last_recorded)activity_last_recorded=Number(firstrow);c.bp_activity_last_recorded=activity_last_recorded});jq(document).on("heartbeat-tick",function(a,c){c.bp_activity_newest_activities&&(newest_activities=c.bp_activity_newest_activities.activities+
newest_activities,activity_last_recorded=Number(c.bp_activity_newest_activities.last_recorded),jq("#buddypress ul.activity-list li").first().hasClass("load-newest")||jq("#buddypress ul.activity-list").prepend('<li class="load-newest"><a href="#newest">'+BP_DTheme.newest+"</a></li>"))})});
function bp_init_activity(){jq.cookie("bp-activity-oldestpage",1,{path:"/"});null!=jq.cookie("bp-activity-filter")&&jq("#activity-filter-select").length&&jq('#activity-filter-select select option[value="'+jq.cookie("bp-activity-filter")+'"]').prop("selected",!0);null!=jq.cookie("bp-activity-scope")&&jq(".activity-type-tabs").length&&(jq(".activity-type-tabs li").each(function(){jq(this).removeClass("selected")}),jq("#activity-"+jq.cookie("bp-activity-scope")+", .item-list-tabs li.current").addClass("selected"))}
function bp_init_objects(d){jq(d).each(function(b){null!=jq.cookie("bp-"+d[b]+"-filter")&&jq("#"+d[b]+"-order-select select").length&&jq("#"+d[b]+'-order-select select option[value="'+jq.cookie("bp-"+d[b]+"-filter")+'"]').prop("selected",!0);null!=jq.cookie("bp-"+d[b]+"-scope")&&jq("div."+d[b]).length&&(jq(".item-list-tabs li").each(function(){jq(this).removeClass("selected")}),jq("#"+d[b]+"-"+jq.cookie("bp-"+d[b]+"-scope")+", #object-nav li.current").addClass("selected"))})}
function bp_filter_request(d,b,a,c,f,e,l,h,k){if("activity"==d)return!1;jq.query.get("s")&&!f&&(f=jq.query.get("s"));null==a&&(a="all");jq.cookie("bp-"+d+"-scope",a,{path:"/"});jq.cookie("bp-"+d+"-filter",b,{path:"/"});jq.cookie("bp-"+d+"-extras",l,{path:"/"});jq(".item-list-tabs li").each(function(){jq(this).removeClass("selected")});jq("#"+d+"-"+a+", #object-nav li.current").addClass("selected");jq(".item-list-tabs li.selected").addClass("loading");jq('.item-list-tabs select option[value="'+b+'"]').prop("selected",
!0);if("friends"==d||"group_members"==d)d="members";bp_ajax_request&&bp_ajax_request.abort();bp_ajax_request=jq.post(ajaxurl,{action:d+"_filter",cookie:bp_get_cookies(),object:d,filter:b,search_terms:f,scope:a,page:e,extras:l,template:k},function(a){if("pag-bottom"==h&&jq("#subnav").length){var b=jq("#subnav").parent();jq("html,body").animate({scrollTop:b.offset().top},"slow",function(){jq(c).fadeOut(100,function(){jq("body").trigger("beforegridloaded");jq(this).html(a);jq(this).fadeIn(100,function(){jq("body").trigger("gridloaded")})})})}else jq(c).fadeOut(100,
function(){jq("body").trigger("beforegridloaded");jq(this).html(a);jq(this).fadeIn(100,function(){jq("body").trigger("gridloaded")})});jq(".item-list-tabs li.selected").removeClass("loading")})}
function bp_activity_request(d,b){jq.cookie("bp-activity-scope",d,{path:"/"});jq.cookie("bp-activity-filter",b,{path:"/"});jq.cookie("bp-activity-oldestpage",1,{path:"/"});jq(".item-list-tabs li").each(function(){jq(this).removeClass("selected loading")});jq("#activity-"+d+", .item-list-tabs li.current").addClass("selected");jq("#object-nav.item-list-tabs li.selected, div.activity-type-tabs li.selected").addClass("loading");jq('#activity-filter-select select option[value="'+b+'"]').prop("selected",
!0);jq(".widget_bp_activity_widget h2 span.ajax-loader").show();bp_ajax_request&&bp_ajax_request.abort();bp_ajax_request=jq.post(ajaxurl,{action:"activity_widget_filter",cookie:bp_get_cookies(),_wpnonce_activity_filter:jq("#_wpnonce_activity_filter").val(),scope:d,filter:b},function(a){jq(".widget_bp_activity_widget h2 span.ajax-loader").hide();jq("div.activity").fadeOut(100,function(){jq(this).html(a.contents);jq(this).fadeIn(100,function(){jq("body").trigger("bpActivityLoaded")});bp_legacy_theme_hide_comments()});
null!=a.feed_url&&jq(".directory #subnav li.feed a, .home-page #subnav li.feed a").attr("href",a.feed_url);jq(".item-list-tabs li.selected").removeClass("loading")},"json")}
function bp_legacy_theme_hide_comments(){var d=jq("div.activity-comments");if(!d.length)return!1;d.each(function(){if(!(5>jq(this).children("ul").children("li").length)){var b=jq(this).parents("#activity-stream > li"),a=jq(this).children("ul").children("li"),c=" ";jq("#"+b.attr("id")+" a.acomment-reply span").length&&(c=jq("#"+b.attr("id")+" a.acomment-reply span").html());a.each(function(d){d<a.length-5&&(jq(this).addClass("hidden"),jq(this).toggle(),d||jq(this).before('<li class="show-all"><a href="#'+
b.attr("id")+'/show-all/" title="'+BP_DTheme.show_all_comments+'">'+BP_DTheme.show_x_comments.replace("%d",c)+"</a></li>"))})}})}function checkAll(){for(var d=document.getElementsByTagName("input"),b=0;b<d.length;b++)"checkbox"==d[b].type&&(""==$("check_all").checked?d[b].checked="":d[b].checked="checked")}
function clear(d){if(d=document.getElementById(d)){var b=d.getElementsByTagName("INPUT");d=d.getElementsByTagName("OPTION");var a=0;if(b)for(a=0;a<b.length;a++)b[a].checked="";if(d)for(a=0;a<d.length;a++)d[a].selected=!1}}function bp_get_cookies(){for(var d=document.cookie.split(";"),b={},a=0;a<d.length;a++){var c=d[a],f=c.indexOf("="),e=jq.trim(unescape(c.slice(0,f))),c=unescape(c.slice(f+1));0==e.indexOf("bp-")&&(b[e]=c)}return encodeURIComponent(jq.param(b))}
(function(d){function b(a){return"object"==typeof a?a:{top:a,left:a}}var a=d.scrollTo=function(a,b,e){d(window).scrollTo(a,b,e)};a.defaults={axis:"xy",duration:1.3<=parseFloat(d.fn.jquery)?0:1,limit:!0};a.window=function(a){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){if(this.nodeName&&-1==d.inArray(this.nodeName.toLowerCase(),["iframe","#document","html","body"]))return this;var a=(this.contentWindow||this).document||this.ownerDocument||this;return/webkit/i.test(navigator.userAgent)||
"BackCompat"==a.compatMode?a.body:a.documentElement})};d.fn.scrollTo=function(c,f,e){"object"==typeof f&&(e=f,f=0);"function"==typeof e&&(e={onAfter:e});"max"==c&&(c=9E9);e=d.extend({},a.defaults,e);f=f||e.duration;e.queue=e.queue&&1<e.axis.length;e.queue&&(f/=2);e.offset=b(e.offset);e.over=b(e.over);return this._scrollable().each(function(){function l(a){k.animate(m,f,e.easing,a&&function(){a.call(this,c,e)})}if(null!=c){var h=this,k=d(h),g=c,p,m={},s=k.is("html,body");switch(typeof g){case "number":case "string":if(/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(g)){g=
b(g);break}g=d(g,this);if(!g.length)return;case "object":if(g.is||g.style)p=(g=d(g)).offset()}d.each(e.axis.split(""),function(b,c){var d="x"==c?"Left":"Top",f=d.toLowerCase(),n="scroll"+d,q=h[n],r=a.max(h,c);p?(m[n]=p[f]+(s?0:q-k.offset()[f]),e.margin&&(m[n]-=parseInt(g.css("margin"+d))||0,m[n]-=parseInt(g.css("border"+d+"Width"))||0),m[n]+=e.offset[f]||0,e.over[f]&&(m[n]+=g["x"==c?"width":"height"]()*e.over[f])):(d=g[f],m[n]=d.slice&&"%"==d.slice(-1)?parseFloat(d)/100*r:d);e.limit&&/^\d+$/.test(m[n])&&
(m[n]=0>=m[n]?0:Math.min(m[n],r));!b&&e.queue&&(q!=m[n]&&l(e.onAfterFirst),delete m[n])});l(e.onAfter)}}).end()};a.max=function(a,b){var e="x"==b?"Width":"Height",l="scroll"+e;if(!d(a).is("html,body"))return a[l]-d(a)[e.toLowerCase()]();var e="client"+e,h=a.ownerDocument.documentElement,k=a.ownerDocument.body;return Math.max(h[l],k[l])-Math.min(h[e],k[e])}})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(d,b,a,c,f){return jQuery.easing[jQuery.easing.def](d,b,a,c,f)},easeInQuad:function(d,b,a,c,f){return c*(b/=f)*b+a},easeOutQuad:function(d,b,a,c,f){return-c*(b/=f)*(b-2)+a},easeInOutQuad:function(d,b,a,c,f){return 1>(b/=f/2)?c/2*b*b+a:-c/2*(--b*(b-2)-1)+a},easeInCubic:function(d,b,a,c,f){return c*(b/=f)*b*b+a},easeOutCubic:function(d,b,a,c,f){return c*((b=b/f-1)*b*b+1)+a},easeInOutCubic:function(d,b,a,c,f){return 1>(b/=f/2)?c/2*b*b*b+a:
c/2*((b-=2)*b*b+2)+a},easeInQuart:function(d,b,a,c,f){return c*(b/=f)*b*b*b+a},easeOutQuart:function(d,b,a,c,f){return-c*((b=b/f-1)*b*b*b-1)+a},easeInOutQuart:function(d,b,a,c,f){return 1>(b/=f/2)?c/2*b*b*b*b+a:-c/2*((b-=2)*b*b*b-2)+a},easeInQuint:function(d,b,a,c,f){return c*(b/=f)*b*b*b*b+a},easeOutQuint:function(d,b,a,c,f){return c*((b=b/f-1)*b*b*b*b+1)+a},easeInOutQuint:function(d,b,a,c,f){return 1>(b/=f/2)?c/2*b*b*b*b*b+a:c/2*((b-=2)*b*b*b*b+2)+a},easeInSine:function(d,b,a,c,f){return-c*Math.cos(b/
f*(Math.PI/2))+c+a},easeOutSine:function(d,b,a,c,f){return c*Math.sin(b/f*(Math.PI/2))+a},easeInOutSine:function(d,b,a,c,f){return-c/2*(Math.cos(Math.PI*b/f)-1)+a},easeInExpo:function(d,b,a,c,f){return 0==b?a:c*Math.pow(2,10*(b/f-1))+a},easeOutExpo:function(d,b,a,c,f){return b==f?a+c:c*(-Math.pow(2,-10*b/f)+1)+a},easeInOutExpo:function(d,b,a,c,f){return 0==b?a:b==f?a+c:1>(b/=f/2)?c/2*Math.pow(2,10*(b-1))+a:c/2*(-Math.pow(2,-10*--b)+2)+a},easeInCirc:function(d,b,a,c,f){return-c*(Math.sqrt(1-(b/=f)*
b)-1)+a},easeOutCirc:function(d,b,a,c,f){return c*Math.sqrt(1-(b=b/f-1)*b)+a},easeInOutCirc:function(d,b,a,c,f){return 1>(b/=f/2)?-c/2*(Math.sqrt(1-b*b)-1)+a:c/2*(Math.sqrt(1-(b-=2)*b)+1)+a},easeInElastic:function(d,b,a,c,f){d=1.70158;var e=0,l=c;if(0==b)return a;if(1==(b/=f))return a+c;e||(e=.3*f);l<Math.abs(c)?(l=c,d=e/4):d=e/(2*Math.PI)*Math.asin(c/l);return-(l*Math.pow(2,10*(b-=1))*Math.sin(2*(b*f-d)*Math.PI/e))+a},easeOutElastic:function(d,b,a,c,f){d=1.70158;var e=0,l=c;if(0==b)return a;if(1==
(b/=f))return a+c;e||(e=.3*f);l<Math.abs(c)?(l=c,d=e/4):d=e/(2*Math.PI)*Math.asin(c/l);return l*Math.pow(2,-10*b)*Math.sin(2*(b*f-d)*Math.PI/e)+c+a},easeInOutElastic:function(d,b,a,c,f){d=1.70158;var e=0,l=c;if(0==b)return a;if(2==(b/=f/2))return a+c;e||(e=.3*f*1.5);l<Math.abs(c)?(l=c,d=e/4):d=e/(2*Math.PI)*Math.asin(c/l);return 1>b?-.5*l*Math.pow(2,10*(b-=1))*Math.sin(2*(b*f-d)*Math.PI/e)+a:l*Math.pow(2,-10*(b-=1))*Math.sin(2*(b*f-d)*Math.PI/e)*.5+c+a},easeInBack:function(d,b,a,c,f,e){void 0==e&&
(e=1.70158);return c*(b/=f)*b*((e+1)*b-e)+a},easeOutBack:function(d,b,a,c,f,e){void 0==e&&(e=1.70158);return c*((b=b/f-1)*b*((e+1)*b+e)+1)+a},easeInOutBack:function(d,b,a,c,f,e){void 0==e&&(e=1.70158);return 1>(b/=f/2)?c/2*b*b*(((e*=1.525)+1)*b-e)+a:c/2*((b-=2)*b*(((e*=1.525)+1)*b+e)+2)+a},easeInBounce:function(d,b,a,c,f){return c-jQuery.easing.easeOutBounce(d,f-b,0,c,f)+a},easeOutBounce:function(d,b,a,c,f){return(b/=f)<1/2.75?7.5625*c*b*b+a:b<2/2.75?c*(7.5625*(b-=1.5/2.75)*b+.75)+a:b<2.5/2.75?c*
(7.5625*(b-=2.25/2.75)*b+.9375)+a:c*(7.5625*(b-=2.625/2.75)*b+.984375)+a},easeInOutBounce:function(d,b,a,c,f){return b<f/2?.5*jQuery.easing.easeInBounce(d,2*b,0,c,f)+a:.5*jQuery.easing.easeOutBounce(d,2*b-f,0,c,f)+.5*c+a}});
jQuery.cookie=function(d,b,a){if("undefined"!=typeof b){a=a||{};null===b&&(b="",a.expires=-1);var c="";a.expires&&("number"==typeof a.expires||a.expires.toUTCString)&&("number"==typeof a.expires?(c=new Date,c.setTime(c.getTime()+864E5*a.expires)):c=a.expires,c="; expires="+c.toUTCString());var f=a.path?"; path="+a.path:"",e=a.domain?"; domain="+a.domain:"";a=a.secure?"; secure":"";document.cookie=[d,"=",encodeURIComponent(b),c,f,e,a].join("")}else{b=null;if(document.cookie&&""!=document.cookie)for(a=
document.cookie.split(";"),c=0;c<a.length;c++)if(f=jQuery.trim(a[c]),f.substring(0,d.length+1)==d+"="){b=decodeURIComponent(f.substring(d.length+1));break}return b}};
eval(function(d,b,a,c,f,e){f=function(a){return(a<b?"":f(parseInt(a/b)))+(35<(a%=b)?String.fromCharCode(a+29):a.toString(36))};if(!"".replace(/^/,String)){for(;a--;)e[f(a)]=c[a]||f(a);c=[function(a){return e[a]}];f=function(){return"\\w+"};a=1}for(;a--;)c[a]&&(d=d.replace(new RegExp("\\b"+f(a)+"\\b","g"),c[a]));return d}('M 6(A){4 $11=A.11||\'&\';4 $V=A.V===r?r:j;4 $1p=A.1p===r?\'\':\'[]\';4 $13=A.13===r?r:j;4 $D=$13?A.D===j?"#":"?":"";4 $15=A.15===r?r:j;v.1o=M 6(){4 f=6(o,t){8 o!=1v&&o!==x&&(!!t?o.1t==t:j)};4 14=6(1m){4 m,1l=/\\[([^[]*)\\]/g,T=/^([^[]+)(\\[.*\\])?$/.1r(1m),k=T[1],e=[];19(m=1l.1r(T[2]))e.u(m[1]);8[k,e]};4 w=6(3,e,7){4 o,y=e.1b();b(I 3!=\'X\')3=x;b(y===""){b(!3)3=[];b(f(3,L)){3.u(e.h==0?7:w(x,e.z(0),7))}n b(f(3,1a)){4 i=0;19(3[i++]!=x);3[--i]=e.h==0?7:w(3[i],e.z(0),7)}n{3=[];3.u(e.h==0?7:w(x,e.z(0),7))}}n b(y&&y.T(/^\\s*[0-9]+\\s*$/)){4 H=1c(y,10);b(!3)3=[];3[H]=e.h==0?7:w(3[H],e.z(0),7)}n b(y){4 H=y.B(/^\\s*|\\s*$/g,"");b(!3)3={};b(f(3,L)){4 18={};1w(4 i=0;i<3.h;++i){18[i]=3[i]}3=18}3[H]=e.h==0?7:w(3[H],e.z(0),7)}n{8 7}8 3};4 C=6(a){4 p=d;p.l={};b(a.C){v.J(a.Z(),6(5,c){p.O(5,c)})}n{v.J(1u,6(){4 q=""+d;q=q.B(/^[?#]/,\'\');q=q.B(/[;&]$/,\'\');b($V)q=q.B(/[+]/g,\' \');v.J(q.Y(/[&;]/),6(){4 5=1e(d.Y(\'=\')[0]||"");4 c=1e(d.Y(\'=\')[1]||"");b(!5)8;b($15){b(/^[+-]?[0-9]+\\.[0-9]*$/.1d(c))c=1A(c);n b(/^[+-]?[0-9]+$/.1d(c))c=1c(c,10)}c=(!c&&c!==0)?j:c;b(c!==r&&c!==j&&I c!=\'1g\')c=c;p.O(5,c)})})}8 p};C.1H={C:j,1G:6(5,1f){4 7=d.Z(5);8 f(7,1f)},1h:6(5){b(!f(5))8 d.l;4 K=14(5),k=K[0],e=K[1];4 3=d.l[k];19(3!=x&&e.h!=0){3=3[e.1b()]}8 I 3==\'1g\'?3:3||""},Z:6(5){4 3=d.1h(5);b(f(3,1a))8 v.1E(j,{},3);n b(f(3,L))8 3.z(0);8 3},O:6(5,c){4 7=!f(c)?x:c;4 K=14(5),k=K[0],e=K[1];4 3=d.l[k];d.l[k]=w(3,e.z(0),7);8 d},w:6(5,c){8 d.N().O(5,c)},1s:6(5){8 d.O(5,x).17()},1z:6(5){8 d.N().1s(5)},1j:6(){4 p=d;v.J(p.l,6(5,7){1y p.l[5]});8 p},1F:6(Q){4 D=Q.B(/^.*?[#](.+?)(?:\\?.+)?$/,"$1");4 S=Q.B(/^.*?[?](.+?)(?:#.+)?$/,"$1");8 M C(Q.h==S.h?\'\':S,Q.h==D.h?\'\':D)},1x:6(){8 d.N().1j()},N:6(){8 M C(d)},17:6(){6 F(G){4 R=I G=="X"?f(G,L)?[]:{}:G;b(I G==\'X\'){6 1k(o,5,7){b(f(o,L))o.u(7);n o[5]=7}v.J(G,6(5,7){b(!f(7))8 j;1k(R,5,F(7))})}8 R}d.l=F(d.l);8 d},1B:6(){8 d.N().17()},1D:6(){4 i=0,U=[],W=[],p=d;4 16=6(E){E=E+"";b($V)E=E.B(/ /g,"+");8 1C(E)};4 1n=6(1i,5,7){b(!f(7)||7===r)8;4 o=[16(5)];b(7!==j){o.u("=");o.u(16(7))}1i.u(o.P(""))};4 F=6(R,k){4 12=6(5){8!k||k==""?[5].P(""):[k,"[",5,"]"].P("")};v.J(R,6(5,7){b(I 7==\'X\')F(7,12(5));n 1n(W,12(5),7)})};F(d.l);b(W.h>0)U.u($D);U.u(W.P($11));8 U.P("")}};8 M C(1q.S,1q.D)}}(v.1o||{});',62,
106,"   target var key function value return   if val this tokens is  length  true base keys  else  self  false   push jQuery set null token slice settings replace queryObject hash str build orig index typeof each parsed Array new copy SET join url obj search match queryString spaces chunks object split get  separator newKey prefix parse numbers encode COMPACT temp while Object shift parseInt test decodeURIComponent type number GET arr EMPTY add rx path addFields query suffix location exec REMOVE constructor arguments undefined for empty delete remove parseFloat compact encodeURIComponent toString extend load has prototype".split(" "),
0,{}));