diff --git a/admin/admin.php b/admin/admin.php index 2fd8f7e..feee61b 100644 --- a/admin/admin.php +++ b/admin/admin.php @@ -32,6 +32,7 @@ public function register_hooks() { global $wp_version; add_action( 'admin_enqueue_scripts', array( &$this, 'thickbox' ) ); + add_action( 'enqueue_block_editor_assets', array( &$this, 'remove_bulb_attributes_panel' ) ); add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ) ); // Components with menu items need to be registered for every admin request @@ -68,6 +69,24 @@ public function register_hooks() { } + /** + * Load script to kill attributes panel in Document editor panel. + * + * @since 1.3.0 + */ + public function remove_bulb_attributes_panel() { + $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; + $scripts_url = plugins_url( 'js', BU_NAV_PLUGIN ); + + wp_enqueue_script( + 'remove-panel-js', + $scripts_url . '/remove_attributes_panel' . $suffix . '.js', + array(), + BU_Navigation_Plugin::VERSION, + true + ); + } + /** * Enqueue Thickbox for Gutenberg editor */ diff --git a/js/bu-navigation.min.js b/js/bu-navigation.min.js index 0c78883..4e7baf0 100644 --- a/js/bu-navigation.min.js +++ b/js/bu-navigation.min.js @@ -1 +1 @@ -var bu=bu||{};bu.plugins=bu.plugins||{},bu.plugins.navigation={},function(a){"use strict";bu.signals=function(){var b={};return b.listenFor=function(a,b){var c=this._listeners;void 0===c[a]&&(c[a]=[]),c[a].push(b)},b.broadcast=function(a,b){var c,d=this._listeners;if(d[a])for(c=0;c ul > li").each(function(b,c){c=a(c),g=d.nodeToPost(c),c.find("> ul > li").length&&(g.children=e.getPosts(c.attr("id"))),f.push(g)}),f},e.showAll=function(){h.jstree("open_all")},e.hideAll=function(){h.jstree("close_all")},e.getPostLabel=function(a){var b=d.getNodeForPost(a);return h.jstree("get_text",b)},e.setPostLabel=function(a,b){var c=d.getNodeForPost(a);h.jstree("set_text",c,b)},e.insertPost=function(a,b){if("undefined"==typeof a)throw new TypeError("Post argument for insertPost must be defined!");var c,f,g,i,j,k,l,m;return a.post_parent=a.post_parent||0,a.menu_order=a.menu_order||1,a.post_parent?(f=d.getNodeForPost(a.post_parent),i=e.getPost(a.post_parent)):f=h,1==a.menu_order?(g=f.find("> ul > li").get(0),m="before"):(j=a.menu_order-2,j>=0&&(g=f.find("> ul > li").get(j),m="after")),g||(g=f,m="inside"),k={which:g,position:m,callback:b||function(a){h.jstree("deselect_all"),h.jstree("select_node",a)}},a=bu.hooks.applyFilters("preInsertPost",a,i),l=d.postToNode(a),c=h.jstree("create_node",k.which,k.position,l,k.callback),a.ID||(a.ID=c.attr("id")),a},e.updatePost=function(b){var c,g,i=d.getNodeForPost(b);return i?(c=d.nodeToPost(i),g=a.extend(!0,{},c,b),h.jstree("set_text",i,g.post_title),g.post_parent=parseInt(g.post_parent,10),g.menu_order=parseInt(g.menu_order,10),i.data("post",g),f.showStatuses&&i.find("li").andSelf().each(function(){s(a(this))}),e.broadcast("postUpdated",[g]),g):!1},e.removePost=function(a){var b;a&&"undefined"==typeof a?(b=h.jstree("get_selected"),a=d.nodeToPost(b)):b=d.getNodeForPost(a),h.jstree("remove",b)},e.getAncestors=function(a){var b=d.getNodeForPost(a);return b===!1?!1:h.jstree("get_path",b)},e.save=function(){g.rollback=h.jstree("get_rollback")},e.restore=function(){"undefined"!=typeof g.rollback&&(g.rollback.d.ui.selected=a([]),a.jstree.rollback(g.rollback),g.rollback=h.jstree("get_rollback"))},e.lock=function(){h.jstree("lock")},e.unlock=function(){h.jstree("unlock")},d.nodeToPost=function(b){if("undefined"==typeof b)throw new TypeError("Invalid node!");var c,e;return c=b.attr("id"),e=a.extend({},!0,b.data("post")),-1===c.indexOf("post-new")&&(c=parseInt(d.stripNodePrefix(c),10)),e.ID=c,e.post_title=h.jstree("get_text",b),e.menu_order=b.index()+1,e.post_parent=parseInt(e.post_parent,10),e.originalParent=parseInt(e.originalParent,10),e.originalOrder=parseInt(e.originalOrder,10),e.post_meta=e.post_meta||{},bu.hooks.applyFilters("nodeToPost",e,b)},d.postToNode=function(b,c){if("undefined"==typeof b)throw new TypeError("Invalid post!");var e,g,h,i,c=c||!1;return e={post_title:"(no title)",post_content:"",post_status:"new",post_type:"page",post_parent:0,menu_order:1,post_meta:{},url:""},g=a.extend({},e,b),i=g.ID?f.nodePrefix+g.ID:"post-new-"+d.getNextPostID(),h={attr:{id:i,rel:d.getRelAttrForPost(b,c)},data:{title:g.post_title},metadata:{post:g}},bu.hooks.applyFilters("postToNode",h,g)},d.getNodeForPost=function(b){if("undefined"==typeof b)return!1;var c,d;return b&&"object"==typeof b?(c=b.ID.toString(),-1===c.indexOf("post-new")&&(c=f.nodePrefix+c)):(c=b.toString(),-1===c.indexOf("post-new")&&(c=f.nodePrefix+c)),d=a.jstree._reference(h)._get_node("#"+c),d.length?d:!1},d.getNextPostID=function(){var b=a('[id*="post-new-"]');return b.length},d.stripNodePrefix=function(a){return a.replace(f.nodePrefix,"")},d.getRelAttrForPost=function(a,b){var c;return c=b?"section":a.post_type==f.linksPostType?"link":"page"};var o=function(b,c){var d;d=b.find("li").length,p(b,d),c&&b.find("li").each(function(){o(a(this))})},p=function(a,b){var c,d=a.children("a");0===d.children(".title-count").children(".count").length&&d.children(".title-count").append(''),c=d.find("> .title-count > .count").empty(),c.text(b?"("+b+")":"")},q=function(a){var b,c,d,e;if(a=a||!1,b={excluded:{"class":"excluded",label:f.statusBadgeExcluded,inherited:!1},"protected":{"class":"protected",label:f.statusBadgeProtected,inherited:!1}},c=bu.hooks.applyFilters("navStatusBadges",b),e=c,a){e={};for(d in c)c[d].hasOwnProperty("inherited")&&c[d].inherited&&(e[d]=c[d])}return e},r=function(b){var c,e,f,g;c=d.nodeToPost(b),e=q({inherited:!0});for(f in e)g=b.parentsUntil("#"+h.attr("id"),"li").filter(function(){return a(this).data("post").post_meta[f]||a(this).data("inherited_"+f)}).length,g?b.data("inherited_"+f,!0):b.removeData("inherited_"+f)},s=function(a){var b,c,e,f,g,h,i,j;b=a.children("a"),0===b.children(".post-statuses").length&&b.append(''),e=b.children(".post-statuses").empty(),c=d.nodeToPost(a),f=[],r(a),"publish"!=c.post_status&&f.push({"class":c.post_status,label:c.post_status}),g=q();for(h in g)i=c.post_meta[h]||a.data("inherited_"+h),i&&f.push({"class":g[h]["class"],label:g[h].label});for(j=0;j'+f[j].label+"")},t=function(a){var b;0===a.children("ul").length?a.attr("rel","page"):a.attr("rel","section"),f.showCounts&&(b=a.parent("ul").parent("div").attr("id")!=h.attr("id")?a.parents("li:last"):a,o(b,!0))};h.bind("loaded.jstree",function(){var a=h.find("> ul > li:first-child"),b=a.height()>=18?a.height():32;h.jstree("data").data.core.li_height=b,e.broadcast("postsLoaded")}),h.bind("reselect.jstree",function(){e.broadcast("postsSelected")}),h.bind("lazy_loaded.jstree",function(){e.broadcast("lazyLoadComplete")}),h.bind("load_node.jstree",function(a,b){if(-1!==b.rslt.obj){var c=b.rslt.obj;f.showCounts&&o(c,!0)}}),h.bind("clean_node.jstree",function(b,c){var d=c.rslt.obj;d&&-1!==d&&d.each(function(b,c){var d=a(c);d.data("buNavExtrasAdded")||(f.showStatuses&&s(d),d.data("buNavExtrasAdded",!0))})}),h.bind("before.jstree",function(a,b){var c;switch(b.func){case"select_node":case"hover_node":case"start_drag":if(c=b.inst._get_node(b.args[0]),c&&c.hasClass("denied"))return!1}}),h.bind("create_node.jstree",function(a,b){var c=b.rslt.obj,f=d.nodeToPost(c);e.broadcast("postCreated",[f])}),h.bind("select_node.jstree",function(a,b){var c=d.nodeToPost(b.rslt.obj);e.broadcast("postSelected",[c])}),h.bind("create.jstree",function(a,b){var c=b.rslt.obj,f=b.rslt.parent,g=b.rslt.position,h=d.nodeToPost(c),i=null;-1!==f&&(i=d.nodeToPost(f),t(f)),h.post_parent=i?i.ID:0,h.menu_order=g+1,e.broadcast("postInserted",[h])}),h.bind("remove.jstree",function(b,c){var f,g=c.rslt.obj,h=d.nodeToPost(g),i=c.rslt.parent;-1!==i&&t(i),e.broadcast("postRemoved",[h]),g.find("li").each(function(){f=d.nodeToPost(a(this)),f&&e.broadcast("postRemoved",[f])})}),h.bind("deselect_node.jstree",function(a,b){var c=d.nodeToPost(b.rslt.obj);e.broadcast("postDeselected",[c])}),h.bind("deselect_all.jstree",function(){e.broadcast("postsDeselected")}),h.bind("move_node.jstree",function(b,c){var f=c.rslt.o;f.each(function(b,f){var g,i=a(f),j=d.nodeToPost(i),k=c.rslt.np,l=c.rslt.op,m=i.index()+1,n=0,o=0,p=1;h.attr("id")!==k.attr("id")&&(t(k),n=parseInt(d.stripNodePrefix(k.attr("id")),10)),h.attr("id")===l.attr("id")||k.is("#"+l.attr("id"))||(t(l),g=d.nodeToPost(l),o=g.ID),p=j.menu_order,j.post_parent=n,j.menu_order=m,e.updatePost(j),e.broadcast("postMoved",[j,o,p])})});var u=function(b){if("undefined"!=typeof h[0]){var c=a.contains(h[0],b.target),d=a.contains(a("#vakata-contextmenu")[0],b.target);c||d||h.jstree("deselect_all")}};return f.deselectOnDocumentClick&&a(document).bind("click",u),e},navman:function(c,d){var e={};d=d||{},e=b.trees.base(c,d);var f=e.$el,g=e.data,h=e.config,i=function(a){var b=d.nodeToPost(a),c={edit:{label:h.optionsEditLabel,action:j},view:{label:h.optionsViewLabel,action:k},remove:{label:h.optionsTrashLabel,action:l}};return b.url||delete c.view,b.post_type===h.linksPostType&&(c.remove.label=h.optionsDeleteLabel),bu.hooks.applyFilters("navmanOptionsMenuItems",c,a)},j=function(a){var b=d.nodeToPost(a);e.broadcast("editPost",[b])},k=function(a){var b=d.nodeToPost(a);b.url&&window.open(b.url)},l=function(a){var b=d.nodeToPost(a);e.removePost(b)};g.treeConfig.plugins.push("contextmenu"),g.treeConfig.contextmenu={show_at_node:!1,items:i},f.bind("loaded.jstree",function(){f.undelegate("a","contextmenu.jstree")}),f.bind("clean_node.jstree",function(b,c){var d=c.rslt.obj;d&&-1!=d&&d.each(function(b,c){var d=a(c),e=d.children("a");if(!e.children(".edit-options").length){var f=a('"),g=e.children(".post-statuses");g.length?g.before(f):e.append(f)}})});var m=null;f.delegate(".edit-options","click",function(b){b.preventDefault(),b.stopPropagation();var c,d,e,g,h,i;c=a(this).offset(),d=a(this).outerWidth(),e=a(this).outerHeight(),g=c.top,h=c.left,g+=e,h=h+d-180,i=a(this).closest("li"),f.jstree("deselect_all"),f.jstree("select_node",i),f.jstree("show_contextmenu",i,h,g),a(this).addClass("clicked"),m&&m.attr("id")!=i.attr("id")&&n(m),m=i}),a(document).bind("context_hide.vakata",function(){n(m)});var n=function(a){a&&a.find("> a > .edit-options").removeClass("clicked")};return f.addClass("bu-navman"),e},edit_post:function(c,d){d=d||{};var e=b.trees.base(c,d),f=e.data,g=a.extend(e.config,c||{}),h=e.$el,i=g.currentPost,j={};j.dnd={drag_container:g.treeDragContainer},a.extend(!0,f.treeConfig,j);var k=function(a,b){if(b.$el.is(e.$el.selector)){var c=d.stripNodePrefix(a.attr("id"));return c==i.ID}};bu.hooks.addFilter("canSelectNode",k),bu.hooks.addFilter("canHoverNode",k),bu.hooks.addFilter("canDragNode",k),h.bind("loaded.jstree",function(){var a;g.ancestors&&g.ancestors.length?(a=g.ancestors.reverse(),l(0,a)):m()});var l=function(a,b){var c=b[a];c?e.openPost(c,function(){l(a+1,b)})===!1&&e.insertPost(c,function(){l(a+1,b)}):m()},m=function(){var a=d.getNodeForPost(i);a?(e.selectPost(i),e.save()):e.insertPost(i,function(){e.selectPost(i),e.save()})};return e.getCurrentPost=function(){var a,b;return a=d.getNodeForPost(i),a?b=d.nodeToPost(a):!1},e.setCurrentPost=function(a){i=a},h.addClass("bu-edit-post"),e}}}(jQuery); \ No newline at end of file +var bu=bu||{};bu.plugins=bu.plugins||{},bu.plugins.navigation={},function(a){"use strict";bu.signals=function(){var b={};return b.listenFor=function(a,b){var c=this._listeners;void 0===c[a]&&(c[a]=[]),c[a].push(b)},b.broadcast=function(a,b){var c,d=this._listeners;if(d[a])for(c=0;c ul > li").each(function(b,c){c=a(c),g=d.nodeToPost(c),c.find("> ul > li").length&&(g.children=e.getPosts(c.attr("id"))),f.push(g)}),f},e.showAll=function(){h.jstree("open_all")},e.hideAll=function(){h.jstree("close_all")},e.getPostLabel=function(a){var b=d.getNodeForPost(a);return h.jstree("get_text",b)},e.setPostLabel=function(a,b){var c=d.getNodeForPost(a);h.jstree("set_text",c,b)},e.insertPost=function(a,b){if(void 0===a)throw new TypeError("Post argument for insertPost must be defined!");var c,f,g,i,j,k,l,m;return a.post_parent=a.post_parent||0,a.menu_order=a.menu_order||1,a.post_parent?(f=d.getNodeForPost(a.post_parent),i=e.getPost(a.post_parent)):f=h,1==a.menu_order?(g=f.find("> ul > li").get(0),m="before"):(j=a.menu_order-2)>=0&&(g=f.find("> ul > li").get(j),m="after"),g||(g=f,m="inside"),k={which:g,position:m,callback:b||function(a){h.jstree("deselect_all"),h.jstree("select_node",a)}},a=bu.hooks.applyFilters("preInsertPost",a,i),l=d.postToNode(a),c=h.jstree("create_node",k.which,k.position,l,k.callback),a.ID||(a.ID=c.attr("id")),a},e.updatePost=function(b){var c,g,i=d.getNodeForPost(b);return!!i&&(c=d.nodeToPost(i),g=a.extend(!0,{},c,b),h.jstree("set_text",i,g.post_title),g.post_parent=parseInt(g.post_parent,10),g.menu_order=parseInt(g.menu_order,10),i.data("post",g),f.showStatuses&&i.find("li").andSelf().each(function(){s(a(this))}),e.broadcast("postUpdated",[g]),g)},e.removePost=function(a){var b;a&&void 0===a?(b=h.jstree("get_selected"),a=d.nodeToPost(b)):b=d.getNodeForPost(a),h.jstree("remove",b)},e.getAncestors=function(a){var b=d.getNodeForPost(a);return!1!==b&&h.jstree("get_path",b)},e.save=function(){g.rollback=h.jstree("get_rollback")},e.restore=function(){void 0!==g.rollback&&(g.rollback.d.ui.selected=a([]),a.jstree.rollback(g.rollback),g.rollback=h.jstree("get_rollback"))},e.lock=function(){h.jstree("lock")},e.unlock=function(){h.jstree("unlock")},d.nodeToPost=function(b){if(void 0===b)throw new TypeError("Invalid node!");var c,e;return c=b.attr("id"),e=a.extend({},!0,b.data("post")),-1===c.indexOf("post-new")&&(c=parseInt(d.stripNodePrefix(c),10)),e.ID=c,e.post_title=h.jstree("get_text",b),e.menu_order=b.index()+1,e.post_parent=parseInt(e.post_parent,10),e.originalParent=parseInt(e.originalParent,10),e.originalOrder=parseInt(e.originalOrder,10),e.post_meta=e.post_meta||{},bu.hooks.applyFilters("nodeToPost",e,b)},d.postToNode=function(b,c){if(void 0===b)throw new TypeError("Invalid post!");var e,g,h,i,c=c||!1;return e={post_title:"(no title)",post_content:"",post_status:"new",post_type:"page",post_parent:0,menu_order:1,post_meta:{},url:""},g=a.extend({},e,b),i=g.ID?f.nodePrefix+g.ID:"post-new-"+d.getNextPostID(),h={attr:{id:i,rel:d.getRelAttrForPost(b,c)},data:{title:g.post_title},metadata:{post:g}},bu.hooks.applyFilters("postToNode",h,g)},d.getNodeForPost=function(b){if(void 0===b)return!1;var c,d;return b&&"object"==typeof b?(c=b.ID.toString(),-1===c.indexOf("post-new")&&(c=f.nodePrefix+c)):(c=b.toString(),-1===c.indexOf("post-new")&&(c=f.nodePrefix+c)),d=a.jstree._reference(h)._get_node("#"+c),!!d.length&&d},d.getNextPostID=function(){return a('[id*="post-new-"]').length},d.stripNodePrefix=function(a){return a.replace(f.nodePrefix,"")},d.getRelAttrForPost=function(a,b){return b?"section":a.post_type==f.linksPostType?"link":"page"};var o=function(b,c){var d;d=b.find("li").length,p(b,d),c&&b.find("li").each(function(){o(a(this))})},p=function(a,b){var c,d=a.children("a");0===d.children(".title-count").children(".count").length&&d.children(".title-count").append(''),c=d.find("> .title-count > .count").empty(),b?c.text("("+b+")"):c.text("")},q=function(a){var b,c,d,e;if(a=a||!1,b={excluded:{class:"excluded",label:f.statusBadgeExcluded,inherited:!1},protected:{class:"protected",label:f.statusBadgeProtected,inherited:!1}},c=bu.hooks.applyFilters("navStatusBadges",b),e=c,a){e={};for(d in c)c[d].hasOwnProperty("inherited")&&c[d].inherited&&(e[d]=c[d])}return e},r=function(b){var c,e,f;d.nodeToPost(b),c=q({inherited:!0});for(e in c)f=b.parentsUntil("#"+h.attr("id"),"li").filter(function(){return a(this).data("post").post_meta[e]||a(this).data("inherited_"+e)}).length,f?b.data("inherited_"+e,!0):b.removeData("inherited_"+e)},s=function(a){var b,c,e,f,g,h,i;b=a.children("a"),0===b.children(".post-statuses").length&&b.append(''),e=b.children(".post-statuses").empty(),c=d.nodeToPost(a),f=[],r(a),"publish"!=c.post_status&&f.push({class:c.post_status,label:c.post_status}),g=q();for(h in g)(c.post_meta[h]||a.data("inherited_"+h))&&f.push({class:g[h].class,label:g[h].label});for(i=0;i'+f[i].label+"")},t=function(a){var b;0===a.children("ul").length?a.attr("rel","page"):a.attr("rel","section"),f.showCounts&&(b=a.parent("ul").parent("div").attr("id")!=h.attr("id")?a.parents("li:last"):a,o(b,!0))};h.bind("loaded.jstree",function(a,b){var c=h.find("> ul > li:first-child"),d=c.height()>=18?c.height():32;h.jstree("data").data.core.li_height=d,e.broadcast("postsLoaded")}),h.bind("reselect.jstree",function(a,b){e.broadcast("postsSelected")}),h.bind("lazy_loaded.jstree",function(a,b){e.broadcast("lazyLoadComplete")}),h.bind("load_node.jstree",function(a,b){if(-1!==b.rslt.obj){var c=b.rslt.obj;f.showCounts&&o(c,!0)}}),h.bind("clean_node.jstree",function(b,c){var d=c.rslt.obj;d&&-1!==d&&d.each(function(b,c){var d=a(c);d.data("buNavExtrasAdded")||(f.showStatuses&&s(d),d.data("buNavExtrasAdded",!0))})}),h.bind("before.jstree",function(a,b){var c;switch(b.func){case"select_node":case"hover_node":case"start_drag":if((c=b.inst._get_node(b.args[0]))&&c.hasClass("denied"))return!1}}),h.bind("create_node.jstree",function(a,b){var c=b.rslt.obj,f=d.nodeToPost(c);e.broadcast("postCreated",[f])}),h.bind("select_node.jstree",function(a,b){var c=d.nodeToPost(b.rslt.obj);e.broadcast("postSelected",[c])}),h.bind("create.jstree",function(a,b){var c=b.rslt.obj,f=b.rslt.parent,g=b.rslt.position,h=d.nodeToPost(c),i=null;-1!==f&&(i=d.nodeToPost(f),t(f)),h.post_parent=i?i.ID:0,h.menu_order=g+1,e.broadcast("postInserted",[h])}),h.bind("remove.jstree",function(b,c){var f,g=c.rslt.obj,h=d.nodeToPost(g),i=c.rslt.parent;-1!==i&&t(i),e.broadcast("postRemoved",[h]),g.find("li").each(function(){(f=d.nodeToPost(a(this)))&&e.broadcast("postRemoved",[f])})}),h.bind("deselect_node.jstree",function(a,b){var c=d.nodeToPost(b.rslt.obj);e.broadcast("postDeselected",[c])}),h.bind("deselect_all.jstree",function(a,b){e.broadcast("postsDeselected")}),h.bind("move_node.jstree",function(b,c){c.rslt.o.each(function(b,f){var g,i=a(f),j=d.nodeToPost(i),k=c.rslt.np,l=c.rslt.op,m=i.index()+1,n=0,o=0,p=1;h.attr("id")!==k.attr("id")&&(t(k),n=parseInt(d.stripNodePrefix(k.attr("id")),10)),h.attr("id")===l.attr("id")||k.is("#"+l.attr("id"))||(t(l),g=d.nodeToPost(l),o=g.ID),p=j.menu_order,j.post_parent=n,j.menu_order=m,e.updatePost(j),e.broadcast("postMoved",[j,o,p])})});var u=function(b){if(void 0!==h[0]){var c=a.contains(h[0],b.target),d=a.contains(a("#vakata-contextmenu")[0],b.target);c||d||h.jstree("deselect_all")}};return f.deselectOnDocumentClick&&a(document).bind("click",u),e},navman:function(c,d){var e={};d=d||{},e=b.trees.base(c,d);var f=e.$el,g=e.data,h=e.config,i=function(a){var b=d.nodeToPost(a),c={edit:{label:h.optionsEditLabel,action:j},view:{label:h.optionsViewLabel,action:k},remove:{label:h.optionsTrashLabel,action:l}};return b.url||delete c.view,b.post_type===h.linksPostType&&(c.remove.label=h.optionsDeleteLabel),bu.hooks.applyFilters("navmanOptionsMenuItems",c,a)},j=function(a){var b=d.nodeToPost(a);e.broadcast("editPost",[b])},k=function(a){var b=d.nodeToPost(a);b.url&&window.open(b.url)},l=function(a){var b=d.nodeToPost(a);e.removePost(b)};g.treeConfig.plugins.push("contextmenu"),g.treeConfig.contextmenu={show_at_node:!1,items:i},f.bind("loaded.jstree",function(a,b){f.undelegate("a","contextmenu.jstree")}),f.bind("clean_node.jstree",function(b,c){var d=c.rslt.obj;d&&-1!=d&&d.each(function(b,c){var d=a(c),e=d.children("a");if(!e.children(".edit-options").length){var f=a('"),g=e.children(".post-statuses");g.length?g.before(f):e.append(f)}})});var m=null;f.delegate(".edit-options","click",function(b){b.preventDefault(),b.stopPropagation();var c,d,e,g,h,i;c=a(this).offset(),d=a(this).outerWidth(),e=a(this).outerHeight(),g=c.top,h=c.left,g+=e,h=h+d-180,i=a(this).closest("li"),f.jstree("deselect_all"),f.jstree("select_node",i),f.jstree("show_contextmenu",i,h,g),a(this).addClass("clicked"),m&&m.attr("id")!=i.attr("id")&&n(m),m=i}),a(document).bind("context_hide.vakata",function(a,b){n(m)});var n=function(a){a&&a.find("> a > .edit-options").removeClass("clicked")};return f.addClass("bu-navman"),e},edit_post:function(c,d){d=d||{};var e=b.trees.base(c,d),f=e.data,g=a.extend(e.config,c||{}),h=e.$el,i=g.currentPost,j={};j.dnd={drag_container:g.treeDragContainer},a.extend(!0,f.treeConfig,j);var k=function(a,b){if(b.$el.is(e.$el.selector)){return d.stripNodePrefix(a.attr("id"))==i.ID}};bu.hooks.addFilter("canSelectNode",k),bu.hooks.addFilter("canHoverNode",k),bu.hooks.addFilter("canDragNode",k),h.bind("loaded.jstree",function(a,b){var c;g.ancestors&&g.ancestors.length?(c=g.ancestors.reverse(),l(0,c)):m()});var l=function(a,b){var c=b[a];c?!1===e.openPost(c,function(){l(a+1,b)})&&e.insertPost(c,function(c){l(a+1,b)}):m()},m=function(){d.getNodeForPost(i)?(e.selectPost(i),e.save()):e.insertPost(i,function(a){e.selectPost(i),e.save()})};return e.getCurrentPost=function(){var a;return!!(a=d.getNodeForPost(i))&&d.nodeToPost(a)},e.setCurrentPost=function(a){i=a},h.addClass("bu-edit-post"),e}}}(jQuery); \ No newline at end of file diff --git a/js/deletion.min.js b/js/deletion.min.js index 876d3e2..6613487 100644 --- a/js/deletion.min.js +++ b/js/deletion.min.js @@ -1 +1 @@ -!function(a){a(function(){function b(b){var c={ignore:!0},d={action:"check_hidden_page",post_id:b};return a.ajax({url:ajaxurl,type:"POST",data:d,async:!1,success:function(a){var b=JSON.parse(a);c=b}}),c}function c(b,c){if(!b.ignore){var d=b.msg+"\n\n";return d+=c?bu_page_parent_deletion.confirmDeletePlural:bu_page_parent_deletion.confirmDeleteSingular,window.confirm(d)?!0:(a("#draft-ajax-loading").css("visibility","hidden"),!1)}return!0}a("a.submitdelete").live("click",function(){var d="undefined"!=typeof inlineEditPost?inlineEditPost.getId(this):parseInt(a("#post_ID").val(),10);if(d){var e=b(d);return c(e)}return!0}),a("#posts-filter").submit(function(){var d=null,e=[],f=0;if(a(this).find('select[name="action"],select[name="action2"]').filter('[value="trash"]')){for(var g=a(this).find('input[name="post[]"]:checked'),h=0;h1?!0:!1;return c({ignore:!1,msg:e.join("\n\n")},i)}}return!0})})}(jQuery); \ No newline at end of file +!function(a){a(function(){function b(b){var c={ignore:!0},d={action:"check_hidden_page",post_id:b};return a.ajax({url:ajaxurl,type:"POST",data:d,async:!1,success:function(a){var b=JSON.parse(a);c=b}}),c}function c(b,c){if(!b.ignore){var d=b.msg+"\n\n";return d+=c?bu_page_parent_deletion.confirmDeletePlural:bu_page_parent_deletion.confirmDeleteSingular,!!window.confirm(d)||(a("#draft-ajax-loading").css("visibility","hidden"),!1)}return!0}a("a.submitdelete").live("click",function(){var d="undefined"!=typeof inlineEditPost?inlineEditPost.getId(this):parseInt(a("#post_ID").val(),10);if(d){return c(b(d))}return!0}),a("#posts-filter").submit(function(){var d=null,e=[],f=0;if(a(this).find('select[name="action"],select[name="action2"]').filter('[value="trash"]')){for(var g=a(this).find('input[name="post[]"]:checked'),h=0;h1;return c({ignore:!1,msg:e.join("\n\n")},i)}}return!0})})}(jQuery); \ No newline at end of file diff --git a/js/manage.min.js b/js/manage.min.js index 3484cf5..f72f224 100644 --- a/js/manage.min.js +++ b/js/manage.min.js @@ -1 +1 @@ -if("undefined"==typeof bu||"undefined"==typeof bu.plugins.navigation||"undefined"==typeof bu.plugins.navigation.tree)throw new TypeError("BU Navigation Manager script dependencies have not been met!");!function(a){"use strict";bu.plugins.navigation.views=bu.plugins.navigation.views||{};var b,c,d;b=bu.plugins.navigation.views.Navman={el:"#nav-tree-container",ui:{form:"#navman_form",noticesContainer:"#navman-notices",movesField:"#navman-moves",insertsField:"#navman-inserts",updatesField:"#navman-updates",deletionsField:"#navman-deletions",expandAllBtn:"#navman_expand_all",collapseAllBtn:"#navman_collapse_all",saveBtn:"#bu_navman_save"},data:{dirty:!1,deletions:[],insertions:{},updates:{},moves:{}},initialize:function(){var b=this.settings=bu_navman_settings;b.el=this.el,d=bu.plugins.navigation.tree("navman",b),c.initialize({allowTop:!!b.allowTop,isSectionEditor:!!b.isSectionEditor}),d.listenFor("editPost",a.proxy(this.editPost,this)),d.listenFor("postRemoved",a.proxy(this.postRemoved,this)),d.listenFor("postMoved",a.proxy(this.postMoved,this)),c.listenFor("linkInserted",a.proxy(this.linkInserted,this)),c.listenFor("linkUpdated",a.proxy(this.linkUpdated,this)),a(this.ui.form).bind("submit",a.proxy(this.save,this)),a(this.ui.expandAllBtn).bind("click",this.expandAll),a(this.ui.collapseAllBtn).bind("click",this.collapseAll)},expandAll:function(a){a.preventDefault(),a.stopImmediatePropagation(),d.showAll()},collapseAll:function(a){a.preventDefault(),a.stopImmediatePropagation(),d.hideAll()},editPost:function(a){if(bu_navman_settings.linksPostType===a.post_type)c.edit(a);else{var b="post.php?action=edit&post="+a.ID;window.location=b}},linkInserted:function(a){this.data.insertions[a.ID]=a,this.data.dirty=!0},linkUpdated:function(a){"new"===a.post_status?this.data.insertions[a.ID]=a:this.data.updates[a.ID]=a,this.data.dirty=!0},postRemoved:function(a){var b=a.ID;b&&("undefined"!=typeof this.data.insertions[b]?delete this.data.insertions[b]:"undefined"!=typeof this.data.updates[b]?(delete this.data.updates[b],this.data.deletions.push(b),this.data.dirty=!0):"undefined"!=typeof this.data.moves[b]?(delete this.data.moves[b],this.data.deletions.push(b),this.data.dirty=!0):(this.data.deletions.push(b),this.data.dirty=!0))},postMoved:function(a){"new"!==a.post_status&&(this.data.moves[a.ID]=a,this.data.dirty=!0)},save:function(){var b,c=this.data.deletions,e={},f={},g={};a.each(this.data.insertions,function(a){b=d.getPost(a),b&&(g[b.ID]=b)}),a.each(this.data.updates,function(a){b=d.getPost(a),b&&(f[b.ID]=b)}),a.each(this.data.moves,function(a){b=d.getPost(a),b&&(e[b.ID]={ID:b.ID,post_status:b.post_status,post_type:b.post_type,post_parent:b.post_parent,menu_order:b.menu_order})}),a(this.ui.deletionsField).attr("value",JSON.stringify(c)),a(this.ui.insertsField).attr("value",JSON.stringify(g)),a(this.ui.updatesField).attr("value",JSON.stringify(f)),a(this.ui.movesField).attr("value",JSON.stringify(e));var h=a(""+bu_navman_settings.saveNotice+"");a(this.ui.saveBtn).prev("img").css("visibility","visible"),this.notice(h.html(),"message"),d.lock(),this.data.dirty=!1},notice:function(b,c,d){d=d||!0;var e=a(this.ui.noticesContainer),f="";d&&e.empty(),f="message"===c?"updated fade":"error",e.append('

'+b+"

")}},c=bu.plugins.navigation.views.Linkman={el:"#navman-link-editor",ui:{form:"#navman_editlink_form",addBtn:"#navman_add_link",urlField:"#editlink_address",labelField:"#editlink_label",targetNewField:"#editlink_target_new",targetSameField:"#editlink_target_same"},data:{currentLink:null,allowTop:!0,isSectionEditor:!1},initialize:function(b){b=b||{},a.extend(!0,this.data,b),bu.signals.register(this),this.$el=a(this.el),this.$form=a(this.ui.form);var c={};c[bu_navman_settings.confirmLinkBtn]=a.proxy(this.save,this),c[bu_navman_settings.cancelLinkBtn]=a.proxy(this.cancel,this),this.$el.dialog({autoOpen:!1,buttons:c,minWidth:400,width:500,modal:!0,resizable:!1}),a(document.body).delegate(".ui-widget-overlay, .ui-widget","click",this.stopPropagation),a(this.ui.addBtn).bind("click",a.proxy(this.add,this)),d.listenFor("postSelected",a.proxy(this.onPostSelected,this)),d.listenFor("postDeselected",a.proxy(this.onPostDeselected,this)),d.listenFor("postsDeselected",a.proxy(this.onPostDeselected,this))},add:function(c){c.preventDefault(),c.stopPropagation();var e,f="";a(c.currentTarget).parent("li").hasClass("disabled")?(e=d.getSelectedPost(),f=bu_navman_settings.noLinksNotice,e&&bu_navman_settings.linksPostType===e.post_type?f=bu_navman_settings.noChildLinkNotice+"\n\n"+bu_navman_settings.createLinkNotice:b.settings.isSectionEditor?f=bu_navman_settings.noTopLevelNotice+"\n\n"+bu_navman_settings.createLinkNotice:b.settings.allowTop||(f=bu_navman_settings.noTopLevelNotice+"\n\n"+bu_navman_settings.createLinkNotice+"\n\n"+bu_navman_settings.allowTopNotice),alert(f)):(this.data.currentLink={post_status:"new",post_type:bu_navman_settings.linksPostType,post_meta:{}},this.$el.dialog("option","title",bu_navman_settings.addLinkDialogTitle).dialog("open"))},edit:function(b){a(this.ui.urlField).attr("value",b.post_content),a(this.ui.labelField).attr("value",b.post_title),"new"===b.post_meta.bu_link_target?a(this.ui.targetNewField).attr("checked","checked"):a(this.ui.targetSameField).attr("checked","checked"),this.data.currentLink=b,this.$el.dialog("option","title",bu_navman_settings.editLinkDialogTitle).dialog("open")},save:function(b){if(b.preventDefault(),b.stopPropagation(),this.$form.valid()){var c,e,f=this.data.currentLink;f.post_content=a(this.ui.urlField).attr("value"),f.post_title=a(this.ui.labelField).attr("value"),f.url=f.post_content,f.post_meta.bu_link_target=a("input[name='editlink_target']:checked").attr("value"),e=d.getSelectedPost(),e?(f.post_parent=e.ID,f.menu_order=1):(f.post_parent=0,f.menu_order=1),"new"!==f.post_status||f.ID?(c=d.updatePost(f),this.broadcast("linkUpdated",[c])):(c=d.insertPost(f),this.broadcast("linkInserted",[c])),this.clear(),this.$el.dialog("close")}},cancel:function(a){a.preventDefault(),a.stopPropagation(),this.$el.dialog("close"),this.clear()},clear:function(){a(this.ui.urlField).attr("value",""),a(this.ui.labelField).attr("value",""),a(this.ui.targetSameField).attr("checked","checked"),a(this.ui.targetNewField).removeAttr("checked"),this.data.currentLink=null},onPostSelected:function(b){var c=!0;b.post_type==bu_navman_settings.linksPostType&&(c=!1),c=bu.hooks.applyFilters("navmanCanAddLink",c,b,d),c?a(this.ui.addBtn).parent("li").removeClass("disabled"):a(this.ui.addBtn).parent("li").addClass("disabled")},onPostDeselected:function(){var b=this.data.allowTop;b=bu.hooks.applyFilters("navmanCanAddLink",b),b?a(this.ui.addBtn).parent("li").removeClass("disabled"):a(this.ui.addBtn).parent("li").addClass("disabled")},stopPropagation:function(a){a.stopPropagation()}},window.onbeforeunload=function(){return b.data.dirty?bu_navman_settings.unloadWarning:void 0}}(jQuery),jQuery(document).ready(function(){"use strict";bu.plugins.navigation.views.Navman.initialize()}); \ No newline at end of file +if("undefined"==typeof bu||void 0===bu.plugins.navigation||void 0===bu.plugins.navigation.tree)throw new TypeError("BU Navigation Manager script dependencies have not been met!");!function(a){"use strict";bu.plugins.navigation.views=bu.plugins.navigation.views||{};var b,c,d;b=bu.plugins.navigation.views.Navman={el:"#nav-tree-container",ui:{form:"#navman_form",noticesContainer:"#navman-notices",movesField:"#navman-moves",insertsField:"#navman-inserts",updatesField:"#navman-updates",deletionsField:"#navman-deletions",expandAllBtn:"#navman_expand_all",collapseAllBtn:"#navman_collapse_all",saveBtn:"#bu_navman_save"},data:{dirty:!1,deletions:[],insertions:{},updates:{},moves:{}},initialize:function(b){var e=this.settings=bu_navman_settings;e.el=this.el,d=bu.plugins.navigation.tree("navman",e),c.initialize({allowTop:!!e.allowTop,isSectionEditor:!!e.isSectionEditor}),d.listenFor("editPost",a.proxy(this.editPost,this)),d.listenFor("postRemoved",a.proxy(this.postRemoved,this)),d.listenFor("postMoved",a.proxy(this.postMoved,this)),c.listenFor("linkInserted",a.proxy(this.linkInserted,this)),c.listenFor("linkUpdated",a.proxy(this.linkUpdated,this)),a(this.ui.form).bind("submit",a.proxy(this.save,this)),a(this.ui.expandAllBtn).bind("click",this.expandAll),a(this.ui.collapseAllBtn).bind("click",this.collapseAll)},expandAll:function(a){a.preventDefault(),a.stopImmediatePropagation(),d.showAll()},collapseAll:function(a){a.preventDefault(),a.stopImmediatePropagation(),d.hideAll()},editPost:function(a){if(bu_navman_settings.linksPostType===a.post_type)c.edit(a);else{var b="post.php?action=edit&post="+a.ID;window.location=b}},linkInserted:function(a){this.data.insertions[a.ID]=a,this.data.dirty=!0},linkUpdated:function(a){"new"===a.post_status?this.data.insertions[a.ID]=a:this.data.updates[a.ID]=a,this.data.dirty=!0},postRemoved:function(a){var b=a.ID;b&&(void 0!==this.data.insertions[b]?delete this.data.insertions[b]:void 0!==this.data.updates[b]?(delete this.data.updates[b],this.data.deletions.push(b),this.data.dirty=!0):void 0!==this.data.moves[b]?(delete this.data.moves[b],this.data.deletions.push(b),this.data.dirty=!0):(this.data.deletions.push(b),this.data.dirty=!0))},postMoved:function(a){"new"!==a.post_status&&(this.data.moves[a.ID]=a,this.data.dirty=!0)},save:function(b){var c,e=this.data.deletions,f={},g={},h={};a.each(this.data.insertions,function(a,b){(c=d.getPost(a))&&(h[c.ID]=c)}),a.each(this.data.updates,function(a,b){(c=d.getPost(a))&&(g[c.ID]=c)}),a.each(this.data.moves,function(a,b){(c=d.getPost(a))&&(f[c.ID]={ID:c.ID,post_status:c.post_status,post_type:c.post_type,post_parent:c.post_parent,menu_order:c.menu_order})}),a(this.ui.deletionsField).attr("value",JSON.stringify(e)),a(this.ui.insertsField).attr("value",JSON.stringify(h)),a(this.ui.updatesField).attr("value",JSON.stringify(g)),a(this.ui.movesField).attr("value",JSON.stringify(f));var i=a(""+bu_navman_settings.saveNotice+"");a(this.ui.saveBtn).prev("img").css("visibility","visible"),this.notice(i.html(),"message"),d.lock(),this.data.dirty=!1},notice:function(b,c,d){d=d||!0;var e=a(this.ui.noticesContainer),f="";d&&e.empty(),f="message"===c?"updated fade":"error",e.append('

'+b+"

")}},c=bu.plugins.navigation.views.Linkman={el:"#navman-link-editor",ui:{form:"#navman_editlink_form",addBtn:"#navman_add_link",urlField:"#editlink_address",labelField:"#editlink_label",targetNewField:"#editlink_target_new",targetSameField:"#editlink_target_same"},data:{currentLink:null,allowTop:!0,isSectionEditor:!1},initialize:function(b){b=b||{},a.extend(!0,this.data,b),bu.signals.register(this),this.$el=a(this.el),this.$form=a(this.ui.form);var c={};c[bu_navman_settings.confirmLinkBtn]=a.proxy(this.save,this),c[bu_navman_settings.cancelLinkBtn]=a.proxy(this.cancel,this),this.$el.dialog({autoOpen:!1,buttons:c,minWidth:400,width:500,modal:!0,resizable:!1}),a(document.body).delegate(".ui-widget-overlay, .ui-widget","click",this.stopPropagation),a(this.ui.addBtn).bind("click",a.proxy(this.add,this)),d.listenFor("postSelected",a.proxy(this.onPostSelected,this)),d.listenFor("postDeselected",a.proxy(this.onPostDeselected,this)),d.listenFor("postsDeselected",a.proxy(this.onPostDeselected,this))},add:function(c){c.preventDefault(),c.stopPropagation();var e,f="";a(c.currentTarget).parent("li").hasClass("disabled")?(e=d.getSelectedPost(),f=bu_navman_settings.noLinksNotice,e&&bu_navman_settings.linksPostType===e.post_type?f=bu_navman_settings.noChildLinkNotice+"\n\n"+bu_navman_settings.createLinkNotice:b.settings.isSectionEditor?f=bu_navman_settings.noTopLevelNotice+"\n\n"+bu_navman_settings.createLinkNotice:b.settings.allowTop||(f=bu_navman_settings.noTopLevelNotice+"\n\n"+bu_navman_settings.createLinkNotice+"\n\n"+bu_navman_settings.allowTopNotice),alert(f)):(this.data.currentLink={post_status:"new",post_type:bu_navman_settings.linksPostType,post_meta:{}},this.$el.dialog("option","title",bu_navman_settings.addLinkDialogTitle).dialog("open"))},edit:function(b){a(this.ui.urlField).attr("value",b.post_content),a(this.ui.labelField).attr("value",b.post_title),"new"===b.post_meta.bu_link_target?a(this.ui.targetNewField).attr("checked","checked"):a(this.ui.targetSameField).attr("checked","checked"),this.data.currentLink=b,this.$el.dialog("option","title",bu_navman_settings.editLinkDialogTitle).dialog("open")},save:function(b){if(b.preventDefault(),b.stopPropagation(),this.$form.valid()){var c,e,f=this.data.currentLink;f.post_content=a(this.ui.urlField).attr("value"),f.post_title=a(this.ui.labelField).attr("value"),f.url=f.post_content,f.post_meta.bu_link_target=a("input[name='editlink_target']:checked").attr("value"),e=d.getSelectedPost(),e?(f.post_parent=e.ID,f.menu_order=1):(f.post_parent=0,f.menu_order=1),"new"!==f.post_status||f.ID?(c=d.updatePost(f),this.broadcast("linkUpdated",[c])):(c=d.insertPost(f),this.broadcast("linkInserted",[c])),this.clear(),this.$el.dialog("close")}},cancel:function(a){a.preventDefault(),a.stopPropagation(),this.$el.dialog("close"),this.clear()},clear:function(){a(this.ui.urlField).attr("value",""),a(this.ui.labelField).attr("value",""),a(this.ui.targetSameField).attr("checked","checked"),a(this.ui.targetNewField).removeAttr("checked"),this.data.currentLink=null},onPostSelected:function(b){var c=!0;b.post_type==bu_navman_settings.linksPostType&&(c=!1),c=bu.hooks.applyFilters("navmanCanAddLink",c,b,d),c?a(this.ui.addBtn).parent("li").removeClass("disabled"):a(this.ui.addBtn).parent("li").addClass("disabled")},onPostDeselected:function(){var b=this.data.allowTop;b=bu.hooks.applyFilters("navmanCanAddLink",b),b?a(this.ui.addBtn).parent("li").removeClass("disabled"):a(this.ui.addBtn).parent("li").addClass("disabled")},stopPropagation:function(a){a.stopPropagation()}},window.onbeforeunload=function(){if(b.data.dirty)return bu_navman_settings.unloadWarning}}(jQuery),jQuery(document).ready(function(a){"use strict";bu.plugins.navigation.views.Navman.initialize()}); \ No newline at end of file diff --git a/js/navigation-metabox.min.js b/js/navigation-metabox.min.js index 61b9d99..b1f72d6 100644 --- a/js/navigation-metabox.min.js +++ b/js/navigation-metabox.min.js @@ -1 +1 @@ -if("undefined"==typeof bu||"undefined"==typeof bu.plugins||"undefined"==typeof bu.plugins.navigation)throw new TypeError("BU Navigation Metabox dependencies have not been met!");!function(a){bu.plugins.navigation.views=bu.plugins.navigation.views||{};var b,c;b=bu.plugins.navigation.views.Metabox={el:"#bunavattrsdiv",ui:{treeContainer:"#edit-post-tree",moveBtn:"#move-post-button",breadcrumbs:"#bu-post-breadcrumbs"},inputs:{label:'[name="nav_label"]',visible:'[name="nav_display"]',postID:'[name="post_ID"]',originalStatus:'[name="original_post_status"]',parent:'[name="parent_id"]',order:'[name="menu_order"]',autoDraft:'[name="auto_draft"]'},data:{modalTree:void 0,breadcrumbs:"",label:""},initialize:function(){var b,c,d,e,f;return this.settings=nav_metabox_settings,this.settings.el=this.ui.treeContainer,this.settings.isNewPost=1==a(this.inputs.autoDraft).val()?!0:!1,b=a(this.inputs.originalStatus).val(),c=parseInt(a(this.inputs.parent).val(),10),d=parseInt(a(this.inputs.order).val(),10),e=a(this.inputs.label).val()||"(no title)",f=a(this.inputs.visible).attr("checked")||!1,this.settings.currentPost={ID:parseInt(a(this.inputs.postID).val(),10),post_title:e,post_status:"auto-draft"==b?"new":b,post_parent:c,menu_order:d,post_meta:{excluded:!f},originalParent:c,originalExclude:!f},a(this.ui.treeContainer).addClass("current-post-status-"+b),this.$el=a(this.el),this.loadNavTree(),this.attachHandlers(),this},loadNavTree:function(){"undefined"==typeof this.data.modalTree&&(this.data.modalTree=ModalPostTree(this.settings),this.data.modalTree.listenFor("locationUpdated",a.proxy(this.onLocationUpdated,this)))},attachHandlers:function(){this.$el.delegate(this.ui.moveBtn,"click",this.data.modalTree.open),this.$el.delegate(this.inputs.label,"blur",a.proxy(this.onLabelChange,this)),this.$el.delegate(this.inputs.visible,"click",a.proxy(this.onToggleVisibility,this))},onLabelChange:function(){var b=a(this.inputs.label).attr("value");this.settings.currentPost.post_title=b,c.updatePost(this.settings.currentPost),c.save(),this.updateBreadcrumbs(this.settings.currentPost)},onToggleVisibility:function(b){var d=a(b.target).attr("checked"),e=nav_metabox_settings.topLevelDisabled+"\n\n"+nav_metabox_settings.topLevelNotice;d&&!this.isAllowedInNavigationLists(this.settings.currentPost)?(b.preventDefault(),this.notify(e)):(this.settings.currentPost.post_meta.excluded=!d,c.updatePost(this.settings.currentPost),c.save())},onLocationUpdated:function(b){a(this.inputs.parent).val(b.post_parent),a(this.inputs.order).val(b.menu_order),this.updateBreadcrumbs(b),this.settings.currentPost=b},updateBreadcrumbs:function(b){var d,e,f;d=c.getAncestors(b.ID),d!==!1&&(e=a(this.ui.breadcrumbs).clone().empty(),a.each(d,function(b,c){f=a("
  • ").html(c),b"):f.addClass("current"),0===b?e.append(f):e.find("ul").last().append(f)}),e.find("li").length>1?a(this.ui.breadcrumbs).replaceWith(e):a(this.ui.breadcrumbs).html('
  • '+nav_metabox_settings.topLevelLabel+"
  • "))},isAllowedInNavigationLists:function(a){var b=a.originalExclude===!1&&0===a.originalParent;return b||0!==a.post_parent?!0:this.settings.allowTop},notify:function(a){alert(a)}},ModalPostTree=bu.plugins.navigation.views.ModalPostTree=function(b){var d={},e=d.conf={treeContainer:"#edit-post-tree",toolbarContainer:".post-placement-toolbar",navSaveBtn:"#bu-post-placement-save",navCancelBtn:"#bu-post-placement-cancel",treeDragContainer:"#TB_ajaxContent"};e=a.extend(e,b),bu.signals.register(d);var f,g=function(){return c=d.tree=bu.plugins.navigation.tree("edit_post",e),f=a(e.toolbarContainer),f.delegate(e.navSaveBtn,"click",d.onUpdateLocation),f.delegate(e.navCancelBtn,"click",d.onCancelMove),e.lazyLoad?c.listenFor("lazyLoadComplete",c.save):c.listenFor("postsSelected",c.save),d};return d.open=function(b){var e=a(window).width(),f=a(window).height(),g=e>720?720:e,h=b.target.title||b.target.name||null,i=b.target.href||b.target.alt,j=b.target.rel||!1;return i=i.replace(/&width=[0-9]+/g,""),i=i.replace(/&height=[0-9]+/g,""),i=i+"&width="+(g-80)+"&height="+(f-85),tb_show(h,i,j),d.scrollToSelection(),a("#TB_window").bind("unload tb_unload",function(){d.saving?d.saving=!1:c.restore()}),!1},d.scrollToSelection=function(){var b,c,d,f,g;b=a(e.treeContainer),c=b.jstree("get_selected"),c.length&&(d=a(e.treeDragContainer),f=d.innerHeight(),g=c.position().top+c.height()/2-f/2,g>0&&d.scrollTop(g))},d.onUpdateLocation=function(a){a.preventDefault(),d.broadcast("locationUpdated",[c.getCurrentPost()]),c.save(),d.saving=!0,tb_remove()},d.onCancelMove=function(a){a.preventDefault(),tb_remove()},g(b)}}(jQuery);var tb_position;!function(a){tb_position=function(){var b=a("#TB_window"),c=a(window).width(),d=a(window).height(),e=c>720?720:c,f=0;return a("body.admin-bar").length&&(f=28),b.size()&&(b.width(e-50).height(d-45-f),a("#TB_iframeContent").width(e-50).height(d-75-f),a("#TB_ajaxContent").width(e-80).height(d-92-f),b.css({"margin-left":"-"+parseInt((e-50)/2,10)+"px"}),"undefined"!=typeof document.body.style.maxWidth&&b.css({top:20+f+"px","margin-top":"0"})),a("a.thickbox").each(function(){var b=a(this).attr("href");b&&(b=b.replace(/&width=[0-9]+/g,""),b=b.replace(/&height=[0-9]+/g,""),a(this).attr("href",b+"&width="+(e-80)+"&height="+(d-85-f)))})},a(window).resize(function(){tb_position()})}(jQuery),jQuery(document).ready(function(){bu.plugins.navigation.metabox=bu.plugins.navigation.views.Metabox.initialize()}); \ No newline at end of file +if("undefined"==typeof bu||void 0===bu.plugins||void 0===bu.plugins.navigation)throw new TypeError("BU Navigation Metabox dependencies have not been met!");!function(a){bu.plugins.navigation.views=bu.plugins.navigation.views||{};var b;bu.plugins.navigation.views.Metabox={el:"#bunavattrsdiv",ui:{treeContainer:"#edit-post-tree",moveBtn:"#move-post-button",breadcrumbs:"#bu-post-breadcrumbs"},inputs:{label:'[name="nav_label"]',visible:'[name="nav_display"]',postID:'[name="post_ID"]',originalStatus:'[name="original_post_status"]',parent:'[name="parent_id"]',order:'[name="menu_order"]',autoDraft:'[name="auto_draft"]'},data:{modalTree:void 0,breadcrumbs:"",label:""},initialize:function(){var b,c,d,e,f;return this.settings=nav_metabox_settings,this.settings.el=this.ui.treeContainer,this.settings.isNewPost=1==a(this.inputs.autoDraft).val(),b=a(this.inputs.originalStatus).val(),c=parseInt(a(this.inputs.parent).val(),10),d=parseInt(a(this.inputs.order).val(),10),e=a(this.inputs.label).val()||"(no title)",f=a(this.inputs.visible).attr("checked")||!1,this.settings.currentPost={ID:parseInt(a(this.inputs.postID).val(),10),post_title:e,post_status:"auto-draft"==b?"new":b,post_parent:c,menu_order:d,post_meta:{excluded:!f},originalParent:c,originalExclude:!f},a(this.ui.treeContainer).addClass("current-post-status-"+b),this.$el=a(this.el),this.loadNavTree(),this.attachHandlers(),this},loadNavTree:function(b){void 0===this.data.modalTree&&(this.data.modalTree=ModalPostTree(this.settings),this.data.modalTree.listenFor("locationUpdated",a.proxy(this.onLocationUpdated,this)))},attachHandlers:function(){this.$el.delegate(this.ui.moveBtn,"click",this.data.modalTree.open),this.$el.delegate(this.inputs.label,"blur",a.proxy(this.onLabelChange,this)),this.$el.delegate(this.inputs.visible,"click",a.proxy(this.onToggleVisibility,this))},onLabelChange:function(c){var d=a(this.inputs.label).attr("value");this.settings.currentPost.post_title=d,b.updatePost(this.settings.currentPost),b.save(),this.updateBreadcrumbs(this.settings.currentPost)},onToggleVisibility:function(c){var d=a(c.target).attr("checked"),e=nav_metabox_settings.topLevelDisabled+"\n\n"+nav_metabox_settings.topLevelNotice;d&&!this.isAllowedInNavigationLists(this.settings.currentPost)?(c.preventDefault(),this.notify(e)):(this.settings.currentPost.post_meta.excluded=!d,b.updatePost(this.settings.currentPost),b.save())},onLocationUpdated:function(b){a(this.inputs.parent).val(b.post_parent),a(this.inputs.order).val(b.menu_order),this.updateBreadcrumbs(b),this.settings.currentPost=b},updateBreadcrumbs:function(c){var d,e,f;!1!==(d=b.getAncestors(c.ID))&&(e=a(this.ui.breadcrumbs).clone().empty(),a.each(d,function(b,c){f=a("
  • ").html(c),b"):f.addClass("current"),0===b?e.append(f):e.find("ul").last().append(f)}),e.find("li").length>1?a(this.ui.breadcrumbs).replaceWith(e):a(this.ui.breadcrumbs).html('
  • '+nav_metabox_settings.topLevelLabel+"
  • "))},isAllowedInNavigationLists:function(a){return!((!1!==a.originalExclude||0!==a.originalParent)&&0===a.post_parent)||this.settings.allowTop},notify:function(a){alert(a)}},ModalPostTree=bu.plugins.navigation.views.ModalPostTree=function(c){var d={},e=d.conf={treeContainer:"#edit-post-tree",toolbarContainer:".post-placement-toolbar",navSaveBtn:"#bu-post-placement-save",navCancelBtn:"#bu-post-placement-cancel",treeDragContainer:"#TB_ajaxContent"};e=a.extend(e,c),bu.signals.register(d);var f,g=function(c){return b=d.tree=bu.plugins.navigation.tree("edit_post",e),f=a(e.toolbarContainer),f.delegate(e.navSaveBtn,"click",d.onUpdateLocation),f.delegate(e.navCancelBtn,"click",d.onCancelMove),e.lazyLoad?b.listenFor("lazyLoadComplete",b.save):b.listenFor("postsSelected",b.save),d};return d.open=function(c){var e=a(window).width(),f=a(window).height(),g=7200&&d.scrollTop(g))},d.onUpdateLocation=function(a){a.preventDefault(),d.broadcast("locationUpdated",[b.getCurrentPost()]),b.save(),d.saving=!0,tb_remove()},d.onCancelMove=function(a){a.preventDefault(),tb_remove()},g(c)}}(jQuery);var tb_position;!function(a){tb_position=function(){var b=a("#TB_window"),c=a(window).width(),d=a(window).height(),e=7201&&"[object Object]"!==String(b)){if(c=jQuery.extend({},c),(null===b||void 0===b)&&(c.expires=-1),"number"==typeof c.expires){var d=c.expires,e=c.expires=new Date;e.setDate(e.getDate()+d)}return b=String(b),document.cookie=[encodeURIComponent(a),"=",c.raw?b:encodeURIComponent(b),c.expires?"; expires="+c.expires.toUTCString():"",c.path?"; path="+c.path:"",c.domain?"; domain="+c.domain:"",c.secure?"; secure":""].join("")}c=b||{};var f,g=c.raw?function(a){return a}:decodeURIComponent;return(f=new RegExp("(?:^|; )"+encodeURIComponent(a)+"=([^;]*)").exec(document.cookie))?g(f[1]):null}; \ No newline at end of file +jQuery.cookie=function(a,b,c){if(arguments.length>1&&"[object Object]"!==String(b)){if(c=jQuery.extend({},c),null!==b&&void 0!==b||(c.expires=-1),"number"==typeof c.expires){var d=c.expires,e=c.expires=new Date;e.setDate(e.getDate()+d)}return b=String(b),document.cookie=[encodeURIComponent(a),"=",c.raw?b:encodeURIComponent(b),c.expires?"; expires="+c.expires.toUTCString():"",c.path?"; path="+c.path:"",c.domain?"; domain="+c.domain:"",c.secure?"; secure":""].join("")}c=b||{};var f,g=c.raw?function(a){return a}:decodeURIComponent;return(f=new RegExp("(?:^|; )"+encodeURIComponent(a)+"=([^;]*)").exec(document.cookie))?g(f[1]):null}; \ No newline at end of file diff --git a/js/vendor/jquery.validate.min.js b/js/vendor/jquery.validate.min.js index a6b931d..1545287 100644 --- a/js/vendor/jquery.validate.min.js +++ b/js/vendor/jquery.validate.min.js @@ -1 +1 @@ -!function(a){a.extend(a.fn,{validate:function(b){if(!this.length)return void(b&&b.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing"));var c=a.data(this[0],"validator");return c?c:(c=new a.validator(b,this[0]),a.data(this[0],"validator",c),c.settings.onsubmit&&(this.find("input, button").filter(".cancel").click(function(){c.cancelSubmit=!0}),c.settings.submitHandler&&this.find("input, button").filter(":submit").click(function(){c.submitButton=this}),this.submit(function(b){function d(){if(c.settings.submitHandler){if(c.submitButton)var b=a("").attr("name",c.submitButton.name).val(c.submitButton.value).appendTo(c.currentForm);return c.settings.submitHandler.call(c,c.currentForm),c.submitButton&&b.remove(),!1}return!0}return c.settings.debug&&b.preventDefault(),c.cancelSubmit?(c.cancelSubmit=!1,d()):c.form()?c.pendingRequest?(c.formSubmitted=!0,!1):d():(c.focusInvalid(),!1)})),c)},valid:function(){if(a(this[0]).is("form"))return this.validate().form();var b=!0,c=a(this[0].form).validate();return this.each(function(){b&=c.element(this)}),b},removeAttrs:function(b){var c={},d=this;return a.each(b.split(/\s/),function(a,b){c[b]=d.attr(b),d.removeAttr(b)}),c},rules:function(b,c){var d=this[0];if(b){var e=a.data(d.form,"validator").settings,f=e.rules,g=a.validator.staticRules(d);switch(b){case"add":a.extend(g,a.validator.normalizeRule(c)),f[d.name]=g,c.messages&&(e.messages[d.name]=a.extend(e.messages[d.name],c.messages));break;case"remove":if(!c)return delete f[d.name],g;var h={};return a.each(c.split(/\s/),function(a,b){h[b]=g[b],delete g[b]}),h}}var i=a.validator.normalizeRules(a.extend({},a.validator.metadataRules(d),a.validator.classRules(d),a.validator.attributeRules(d),a.validator.staticRules(d)),d);if(i.required){var j=i.required;delete i.required,i=a.extend({required:j},i)}return i}}),a.extend(a.expr[":"],{blank:function(b){return!a.trim(""+b.value)},filled:function(b){return!!a.trim(""+b.value)},unchecked:function(a){return!a.checked}}),a.validator=function(b,c){this.settings=a.extend(!0,{},a.validator.defaults,b),this.currentForm=c,this.init()},a.validator.format=function(b,c){return 1==arguments.length?function(){var c=a.makeArray(arguments);return c.unshift(b),a.validator.format.apply(this,c)}:(arguments.length>2&&c.constructor!=Array&&(c=a.makeArray(arguments).slice(1)),c.constructor!=Array&&(c=[c]),a.each(c,function(a,c){b=b.replace(new RegExp("\\{"+a+"\\}","g"),c)}),b)},a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:[],ignoreTitle:!1,onfocusin:function(a){this.lastActive=a,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(a)).hide())},onfocusout:function(a){this.checkable(a)||!(a.name in this.submitted)&&this.optional(a)||this.element(a)},onkeyup:function(a){(a.name in this.submitted||a==this.lastElement)&&this.element(a)},onclick:function(a){a.name in this.submitted?this.element(a):a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).addClass(c).removeClass(d):a(b).addClass(c).removeClass(d)},unhighlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).removeClass(c).addClass(d):a(b).removeClass(c).addClass(d)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function b(b){var c=a.data(this[0].form,"validator"),d="on"+b.type.replace(/^validate/,"");c.settings[d]&&c.settings[d].call(c,this[0])}this.labelContainer=a(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm),this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var c=this.groups={};a.each(this.settings.groups,function(b,d){a.each(d.split(/\s/),function(a,d){c[d]=b})});var d=this.settings.rules;a.each(d,function(b,c){d[b]=a.validator.normalizeRule(c)}),a(this.currentForm).validateDelegate(":text, :password, :file, select, textarea","focusin focusout keyup",b).validateDelegate(":radio, :checkbox, select, option","click",b),this.settings.invalidHandler&&a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),a.extend(this.submitted,this.errorMap),this.invalid=a.extend({},this.errorMap),this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(b){b=this.clean(b),this.lastElement=b,this.prepareElement(b),this.currentElements=a(b);var c=this.check(b);return c?delete this.invalid[b.name]:this.invalid[b.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),c},showErrors:function(b){if(b){a.extend(this.errorMap,b),this.errorList=[];for(var c in b)this.errorList.push({message:b[c],element:this.findByName(c)[0]});this.successList=a.grep(this.successList,function(a){return!(a.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm(),this.submitted={},this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b=0;for(var c in a)b++;return b},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return 0==this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(b){}},findLastActive:function(){var b=this.lastActive;return b&&1==a.grep(this.errorList,function(a){return a.element.name==b.name}).length&&b},elements:function(){var b=this,c={};return a(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return!this.name&&b.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in c||!b.objectLength(a(this).rules())?!1:(c[this.name]=!0,!0)})},clean:function(b){return a(b)[0]},errors:function(){return a(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=a([]),this.toHide=a([]),this.currentElements=a([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset(),this.toHide=this.errorsFor(a)},check:function(b){b=this.clean(b),this.checkable(b)&&(b=this.findByName(b.name).not(this.settings.ignore)[0]);var c=a(b).rules(),d=!1;for(var e in c){var f={method:e,parameters:c[e]};try{var g=a.validator.methods[e].call(this,b.value.replace(/\r/g,""),b,f.parameters);if("dependency-mismatch"==g){d=!0;continue}if(d=!1,"pending"==g)return void(this.toHide=this.toHide.not(this.errorsFor(b)));if(!g)return this.formatAndAdd(b,f),!1}catch(h){throw this.settings.debug&&window.console&&console.log("exception occured when checking element "+b.id+", check the '"+f.method+"' method",h),h}}return d?void 0:(this.objectLength(c)&&this.successList.push(b),!0)},customMetaMessage:function(b,c){if(a.metadata){var d=this.settings.meta?a(b).metadata()[this.settings.meta]:a(b).metadata();return d&&d.messages&&d.messages[c]}},customMessage:function(a,b){var c=this.settings.messages[a];return c&&(c.constructor==String?c:c[b])},findDefined:function(){for(var a=0;aWarning: No message defined for "+b.name+"")},formatAndAdd:function(a,b){var c=this.defaultMessage(a,b.method),d=/\$?\{(\d+)\}/g;"function"==typeof c?c=c.call(this,b.parameters,a):d.test(c)&&(c=jQuery.format(c.replace(d,"{$1}"),b.parameters)),this.errorList.push({message:c,element:a}),this.errorMap[a.name]=c,this.submitted[a.name]=c},addWrapper:function(a){return this.settings.wrapper&&(a=a.add(a.parent(this.settings.wrapper))),a},defaultShowErrors:function(){for(var a=0;this.errorList[a];a++){var b=this.errorList[a];this.settings.highlight&&this.settings.highlight.call(this,b.element,this.settings.errorClass,this.settings.validClass),this.showLabel(b.element,b.message)}if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(var a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight)for(var a=0,c=this.validElements();c[a];a++)this.settings.unhighlight.call(this,c[a],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(b,c){var d=this.errorsFor(b);d.length?(d.removeClass().addClass(this.settings.errorClass),d.attr("generated")&&d.html(c)):(d=a("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(b),generated:!0}).addClass(this.settings.errorClass).html(c||""),this.settings.wrapper&&(d=d.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(d).length||(this.settings.errorPlacement?this.settings.errorPlacement(d,a(b)):d.insertAfter(b))),!c&&this.settings.success&&(d.text(""),"string"==typeof this.settings.success?d.addClass(this.settings.success):this.settings.success(d)),this.toShow=this.toShow.add(d)},errorsFor:function(b){var c=this.idOrName(b);return this.errors().filter(function(){return a(this).attr("for")==c})},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(b){var c=this.currentForm;return a(document.getElementsByName(b)).map(function(a,d){return d.form==c&&d.name==b&&d||null})},getLength:function(b,c){switch(c.nodeName.toLowerCase()){case"select":return a("option:selected",c).length;case"input":if(this.checkable(c))return this.findByName(c.name).filter(":checked").length}return b.length},depend:function(a,b){return this.dependTypes[typeof a]?this.dependTypes[typeof a](a,b):!0},dependTypes:{"boolean":function(a){return a},string:function(b,c){return!!a(b,c.form).length},"function":function(a,b){return a(b)}},optional:function(b){return!a.validator.methods.required.call(this,a.trim(b.value),b)&&"dependency-mismatch"},startRequest:function(a){this.pending[a.name]||(this.pendingRequest++,this.pending[a.name]=!0)},stopRequest:function(b,c){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[b.name],c&&0==this.pendingRequest&&this.formSubmitted&&this.form()?(a(this.currentForm).submit(),this.formSubmitted=!1):!c&&0==this.pendingRequest&&this.formSubmitted&&(a(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:!0,message:this.defaultMessage(b,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},dateDE:{dateDE:!0},number:{number:!0},numberDE:{numberDE:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(b,c){b.constructor==String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(b){var c={},d=a(b).attr("class");return d&&a.each(d.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(c,a.validator.classRuleSettings[this])}),c},attributeRules:function(b){var c={},d=a(b);for(var e in a.validator.methods){var f=d.attr(e);f&&(c[e]=f)}return c.maxlength&&/-1|2147483647|524288/.test(c.maxlength)&&delete c.maxlength,c},metadataRules:function(b){if(!a.metadata)return{};var c=a.data(b.form,"validator").settings.meta;return c?a(b).metadata()[c]:a(b).metadata()},staticRules:function(b){var c={},d=a.data(b.form,"validator");return d.settings.rules&&(c=a.validator.normalizeRule(d.settings.rules[b.name])||{}),c},normalizeRules:function(b,c){return a.each(b,function(d,e){if(e===!1)return void delete b[d];if(e.param||e.depends){var f=!0;switch(typeof e.depends){case"string":f=!!a(e.depends,c.form).length;break;case"function":f=e.depends.call(c,c)}f?b[d]=void 0!==e.param?e.param:!0:delete b[d]}}),a.each(b,function(d,e){b[d]=a.isFunction(e)?e(c):e}),a.each(["minlength","maxlength","min","max"],function(){b[this]&&(b[this]=Number(b[this]))}),a.each(["rangelength","range"],function(){b[this]&&(b[this]=[Number(b[this][0]),Number(b[this][1])])}),a.validator.autoCreateRanges&&(b.min&&b.max&&(b.range=[b.min,b.max],delete b.min,delete b.max),b.minlength&&b.maxlength&&(b.rangelength=[b.minlength,b.maxlength],delete b.minlength,delete b.maxlength)),b.messages&&delete b.messages,b},normalizeRule:function(b){if("string"==typeof b){var c={};a.each(b.split(/\s/),function(){c[this]=!0}),b=c}return b},addMethod:function(b,c,d){a.validator.methods[b]=c,a.validator.messages[b]=void 0!=d?d:a.validator.messages[b],c.length<3&&a.validator.addClassRules(b,a.validator.normalizeRule(b))},methods:{required:function(b,c,d){if(!this.depend(d,c))return"dependency-mismatch";switch(c.nodeName.toLowerCase()){case"select":var e=a(c).val();return e&&e.length>0;case"input":if(this.checkable(c))return this.getLength(b,c)>0;default:return a.trim(b).length>0}},remote:function(b,c,d){if(this.optional(c))return"dependency-mismatch";var e=this.previousValue(c);if(this.settings.messages[c.name]||(this.settings.messages[c.name]={}),e.originalMessage=this.settings.messages[c.name].remote,this.settings.messages[c.name].remote=e.message,d="string"==typeof d&&{url:d}||d,this.pending[c.name])return"pending";if(e.old===b)return e.valid;e.old=b;var f=this;this.startRequest(c);var g={};return g[c.name]=b,a.ajax(a.extend(!0,{url:d,mode:"abort",port:"validate"+c.name,dataType:"json",data:g,success:function(d){f.settings.messages[c.name].remote=e.originalMessage;var g=d===!0;if(g){var h=f.formSubmitted;f.prepareElement(c),f.formSubmitted=h,f.successList.push(c),f.showErrors()}else{var i={},j=d||f.defaultMessage(c,"remote");i[c.name]=e.message=a.isFunction(j)?j(b):j,f.showErrors(i)}e.valid=g,f.stopRequest(c,g)}},d)),"pending"},minlength:function(b,c,d){return this.optional(c)||this.getLength(a.trim(b),c)>=d},maxlength:function(b,c,d){return this.optional(c)||this.getLength(a.trim(b),c)<=d},rangelength:function(b,c,d){var e=this.getLength(a.trim(b),c);return this.optional(c)||e>=d[0]&&e<=d[1]},min:function(a,b,c){return this.optional(b)||a>=c},max:function(a,b,c){return this.optional(b)||c>=a},range:function(a,b,c){return this.optional(b)||a>=c[0]&&a<=c[1]},email:function(a,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(a)},url:function(a,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(a)},date:function(a,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(a))},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},creditcard:function(a,b){if(this.optional(b))return"dependency-mismatch";if(/[^0-9-]+/.test(a))return!1;var c=0,d=0,e=!1;a=a.replace(/\D/g,"");for(var f=a.length-1;f>=0;f--){var g=a.charAt(f),d=parseInt(g,10);e&&(d*=2)>9&&(d-=9),c+=d,e=!e}return c%10==0},accept:function(a,b,c){return c="string"==typeof c?c.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(b)||a.match(new RegExp(".("+c+")$","i"))},equalTo:function(b,c,d){var e=a(d).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){a(c).valid()});return b==e.val()}}}),a.format=a.validator.format}(jQuery),function(a){var b={};if(a.ajaxPrefilter)a.ajaxPrefilter(function(a,c,d){var e=a.port;"abort"==a.mode&&(b[e]&&b[e].abort(),b[e]=d)});else{var c=a.ajax;a.ajax=function(d){var e=("mode"in d?d:a.ajaxSettings).mode,f=("port"in d?d:a.ajaxSettings).port;return"abort"==e?(b[f]&&b[f].abort(),b[f]=c.apply(this,arguments)):c.apply(this,arguments)}}}(jQuery),function(a){jQuery.event.special.focusin||jQuery.event.special.focusout||!document.addEventListener||a.each({focus:"focusin",blur:"focusout"},function(b,c){function d(b){return b=a.event.fix(b),b.type=c,a.event.handle.call(this,b)}a.event.special[c]={setup:function(){this.addEventListener(b,d,!0)},teardown:function(){this.removeEventListener(b,d,!0)},handler:function(b){return arguments[0]=a.event.fix(b),arguments[0].type=c,a.event.handle.apply(this,arguments)}}}),a.extend(a.fn,{validateDelegate:function(b,c,d){return this.bind(c,function(c){var e=a(c.target);return e.is(b)?d.apply(e,arguments):void 0})}})}(jQuery); \ No newline at end of file +!function(a){a.extend(a.fn,{validate:function(b){if(!this.length)return void(b&&b.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing"));var c=a.data(this[0],"validator");return c||(c=new a.validator(b,this[0]),a.data(this[0],"validator",c),c.settings.onsubmit&&(this.find("input, button").filter(".cancel").click(function(){c.cancelSubmit=!0}),c.settings.submitHandler&&this.find("input, button").filter(":submit").click(function(){c.submitButton=this}),this.submit(function(b){function d(){if(c.settings.submitHandler){if(c.submitButton)var b=a("").attr("name",c.submitButton.name).val(c.submitButton.value).appendTo(c.currentForm);return c.settings.submitHandler.call(c,c.currentForm),c.submitButton&&b.remove(),!1}return!0}return c.settings.debug&&b.preventDefault(),c.cancelSubmit?(c.cancelSubmit=!1,d()):c.form()?c.pendingRequest?(c.formSubmitted=!0,!1):d():(c.focusInvalid(),!1)})),c)},valid:function(){if(a(this[0]).is("form"))return this.validate().form();var b=!0,c=a(this[0].form).validate();return this.each(function(){b&=c.element(this)}),b},removeAttrs:function(b){var c={},d=this;return a.each(b.split(/\s/),function(a,b){c[b]=d.attr(b),d.removeAttr(b)}),c},rules:function(b,c){var d=this[0];if(b){var e=a.data(d.form,"validator").settings,f=e.rules,g=a.validator.staticRules(d);switch(b){case"add":a.extend(g,a.validator.normalizeRule(c)),f[d.name]=g,c.messages&&(e.messages[d.name]=a.extend(e.messages[d.name],c.messages));break;case"remove":if(!c)return delete f[d.name],g;var h={};return a.each(c.split(/\s/),function(a,b){h[b]=g[b],delete g[b]}),h}}var i=a.validator.normalizeRules(a.extend({},a.validator.metadataRules(d),a.validator.classRules(d),a.validator.attributeRules(d),a.validator.staticRules(d)),d);if(i.required){var j=i.required;delete i.required,i=a.extend({required:j},i)}return i}}),a.extend(a.expr[":"],{blank:function(b){return!a.trim(""+b.value)},filled:function(b){return!!a.trim(""+b.value)},unchecked:function(a){return!a.checked}}),a.validator=function(b,c){this.settings=a.extend(!0,{},a.validator.defaults,b),this.currentForm=c,this.init()},a.validator.format=function(b,c){return 1==arguments.length?function(){var c=a.makeArray(arguments);return c.unshift(b),a.validator.format.apply(this,c)}:(arguments.length>2&&c.constructor!=Array&&(c=a.makeArray(arguments).slice(1)),c.constructor!=Array&&(c=[c]),a.each(c,function(a,c){b=b.replace(new RegExp("\\{"+a+"\\}","g"),c)}),b)},a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:[],ignoreTitle:!1,onfocusin:function(a){this.lastActive=a,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(a)).hide())},onfocusout:function(a){this.checkable(a)||!(a.name in this.submitted)&&this.optional(a)||this.element(a)},onkeyup:function(a){(a.name in this.submitted||a==this.lastElement)&&this.element(a)},onclick:function(a){a.name in this.submitted?this.element(a):a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).addClass(c).removeClass(d):a(b).addClass(c).removeClass(d)},unhighlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).removeClass(c).addClass(d):a(b).removeClass(c).addClass(d)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function b(b){var c=a.data(this[0].form,"validator"),d="on"+b.type.replace(/^validate/,"");c.settings[d]&&c.settings[d].call(c,this[0])}this.labelContainer=a(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm),this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var c=this.groups={};a.each(this.settings.groups,function(b,d){a.each(d.split(/\s/),function(a,d){c[d]=b})});var d=this.settings.rules;a.each(d,function(b,c){d[b]=a.validator.normalizeRule(c)}),a(this.currentForm).validateDelegate(":text, :password, :file, select, textarea","focusin focusout keyup",b).validateDelegate(":radio, :checkbox, select, option","click",b),this.settings.invalidHandler&&a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),a.extend(this.submitted,this.errorMap),this.invalid=a.extend({},this.errorMap),this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(b){b=this.clean(b),this.lastElement=b,this.prepareElement(b),this.currentElements=a(b);var c=this.check(b);return c?delete this.invalid[b.name]:this.invalid[b.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),c},showErrors:function(b){if(b){a.extend(this.errorMap,b),this.errorList=[];for(var c in b)this.errorList.push({message:b[c],element:this.findByName(c)[0]});this.successList=a.grep(this.successList,function(a){return!(a.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm(),this.submitted={},this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b=0;for(var c in a)b++;return b},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return 0==this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(a){}},findLastActive:function(){var b=this.lastActive;return b&&1==a.grep(this.errorList,function(a){return a.element.name==b.name}).length&&b},elements:function(){var b=this,c={};return a(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return!this.name&&b.settings.debug&&window.console&&console.error("%o has no name assigned",this),!(this.name in c||!b.objectLength(a(this).rules()))&&(c[this.name]=!0,!0)})},clean:function(b){return a(b)[0]},errors:function(){return a(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=a([]),this.toHide=a([]),this.currentElements=a([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset(),this.toHide=this.errorsFor(a)},check:function(b){b=this.clean(b),this.checkable(b)&&(b=this.findByName(b.name).not(this.settings.ignore)[0]);var c=a(b).rules(),d=!1;for(var e in c){var f={method:e,parameters:c[e]};try{var g=a.validator.methods[e].call(this,b.value.replace(/\r/g,""),b,f.parameters);if("dependency-mismatch"==g){d=!0;continue}if(d=!1,"pending"==g)return void(this.toHide=this.toHide.not(this.errorsFor(b)));if(!g)return this.formatAndAdd(b,f),!1}catch(a){throw this.settings.debug&&window.console&&console.log("exception occured when checking element "+b.id+", check the '"+f.method+"' method",a),a}}if(!d)return this.objectLength(c)&&this.successList.push(b),!0},customMetaMessage:function(b,c){if(a.metadata){var d=this.settings.meta?a(b).metadata()[this.settings.meta]:a(b).metadata();return d&&d.messages&&d.messages[c]}},customMessage:function(a,b){var c=this.settings.messages[a];return c&&(c.constructor==String?c:c[b])},findDefined:function(){for(var a=0;aWarning: No message defined for "+b.name+"")},formatAndAdd:function(a,b){var c=this.defaultMessage(a,b.method),d=/\$?\{(\d+)\}/g;"function"==typeof c?c=c.call(this,b.parameters,a):d.test(c)&&(c=jQuery.format(c.replace(d,"{$1}"),b.parameters)),this.errorList.push({message:c,element:a}),this.errorMap[a.name]=c,this.submitted[a.name]=c},addWrapper:function(a){return this.settings.wrapper&&(a=a.add(a.parent(this.settings.wrapper))),a},defaultShowErrors:function(){for(var a=0;this.errorList[a];a++){var b=this.errorList[a];this.settings.highlight&&this.settings.highlight.call(this,b.element,this.settings.errorClass,this.settings.validClass),this.showLabel(b.element,b.message)}if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(var a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight)for(var a=0,c=this.validElements();c[a];a++)this.settings.unhighlight.call(this,c[a],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(b,c){var d=this.errorsFor(b);d.length?(d.removeClass().addClass(this.settings.errorClass),d.attr("generated")&&d.html(c)):(d=a("<"+this.settings.errorElement+"/>").attr({for:this.idOrName(b),generated:!0}).addClass(this.settings.errorClass).html(c||""),this.settings.wrapper&&(d=d.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(d).length||(this.settings.errorPlacement?this.settings.errorPlacement(d,a(b)):d.insertAfter(b))),!c&&this.settings.success&&(d.text(""),"string"==typeof this.settings.success?d.addClass(this.settings.success):this.settings.success(d)),this.toShow=this.toShow.add(d)},errorsFor:function(b){var c=this.idOrName(b);return this.errors().filter(function(){return a(this).attr("for")==c})},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(b){var c=this.currentForm;return a(document.getElementsByName(b)).map(function(a,d){return d.form==c&&d.name==b&&d||null})},getLength:function(b,c){switch(c.nodeName.toLowerCase()){case"select":return a("option:selected",c).length;case"input":if(this.checkable(c))return this.findByName(c.name).filter(":checked").length}return b.length},depend:function(a,b){return!this.dependTypes[typeof a]||this.dependTypes[typeof a](a,b)},dependTypes:{boolean:function(a,b){return a},string:function(b,c){return!!a(b,c.form).length},function:function(a,b){return a(b)}},optional:function(b){return!a.validator.methods.required.call(this,a.trim(b.value),b)&&"dependency-mismatch"},startRequest:function(a){this.pending[a.name]||(this.pendingRequest++,this.pending[a.name]=!0)},stopRequest:function(b,c){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[b.name],c&&0==this.pendingRequest&&this.formSubmitted&&this.form()?(a(this.currentForm).submit(),this.formSubmitted=!1):!c&&0==this.pendingRequest&&this.formSubmitted&&(a(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:!0,message:this.defaultMessage(b,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},dateDE:{dateDE:!0},number:{number:!0},numberDE:{numberDE:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(b,c){b.constructor==String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(b){var c={},d=a(b).attr("class");return d&&a.each(d.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(c,a.validator.classRuleSettings[this])}),c},attributeRules:function(b){var c={},d=a(b);for(var e in a.validator.methods){var f=d.attr(e);f&&(c[e]=f)}return c.maxlength&&/-1|2147483647|524288/.test(c.maxlength)&&delete c.maxlength,c},metadataRules:function(b){if(!a.metadata)return{};var c=a.data(b.form,"validator").settings.meta;return c?a(b).metadata()[c]:a(b).metadata()},staticRules:function(b){var c={},d=a.data(b.form,"validator");return d.settings.rules&&(c=a.validator.normalizeRule(d.settings.rules[b.name])||{}),c},normalizeRules:function(b,c){return a.each(b,function(d,e){if(!1===e)return void delete b[d];if(e.param||e.depends){var f=!0;switch(typeof e.depends){case"string":f=!!a(e.depends,c.form).length;break;case"function":f=e.depends.call(c,c)}f?b[d]=void 0===e.param||e.param:delete b[d]}}),a.each(b,function(d,e){b[d]=a.isFunction(e)?e(c):e}),a.each(["minlength","maxlength","min","max"],function(){b[this]&&(b[this]=Number(b[this]))}),a.each(["rangelength","range"],function(){b[this]&&(b[this]=[Number(b[this][0]),Number(b[this][1])])}),a.validator.autoCreateRanges&&(b.min&&b.max&&(b.range=[b.min,b.max],delete b.min,delete b.max),b.minlength&&b.maxlength&&(b.rangelength=[b.minlength,b.maxlength],delete b.minlength,delete b.maxlength)),b.messages&&delete b.messages,b},normalizeRule:function(b){if("string"==typeof b){var c={};a.each(b.split(/\s/),function(){c[this]=!0}),b=c}return b},addMethod:function(b,c,d){a.validator.methods[b]=c,a.validator.messages[b]=void 0!=d?d:a.validator.messages[b],c.length<3&&a.validator.addClassRules(b,a.validator.normalizeRule(b))},methods:{required:function(b,c,d){if(!this.depend(d,c))return"dependency-mismatch";switch(c.nodeName.toLowerCase()){case"select":var e=a(c).val();return e&&e.length>0;case"input":if(this.checkable(c))return this.getLength(b,c)>0;default:return a.trim(b).length>0}},remote:function(b,c,d){if(this.optional(c))return"dependency-mismatch";var e=this.previousValue(c);if(this.settings.messages[c.name]||(this.settings.messages[c.name]={}),e.originalMessage=this.settings.messages[c.name].remote,this.settings.messages[c.name].remote=e.message,d="string"==typeof d&&{url:d}||d,this.pending[c.name])return"pending";if(e.old===b)return e.valid;e.old=b;var f=this;this.startRequest(c);var g={};return g[c.name]=b,a.ajax(a.extend(!0,{url:d,mode:"abort",port:"validate"+c.name,dataType:"json",data:g,success:function(d){f.settings.messages[c.name].remote=e.originalMessage;var g=!0===d;if(g){var h=f.formSubmitted;f.prepareElement(c),f.formSubmitted=h,f.successList.push(c),f.showErrors()}else{var i={},j=d||f.defaultMessage(c,"remote");i[c.name]=e.message=a.isFunction(j)?j(b):j,f.showErrors(i)}e.valid=g,f.stopRequest(c,g)}},d)),"pending"},minlength:function(b,c,d){return this.optional(c)||this.getLength(a.trim(b),c)>=d},maxlength:function(b,c,d){return this.optional(c)||this.getLength(a.trim(b),c)<=d},rangelength:function(b,c,d){var e=this.getLength(a.trim(b),c);return this.optional(c)||e>=d[0]&&e<=d[1]},min:function(a,b,c){return this.optional(b)||a>=c},max:function(a,b,c){return this.optional(b)||a<=c},range:function(a,b,c){return this.optional(b)||a>=c[0]&&a<=c[1]},email:function(a,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(a)},url:function(a,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(a)},date:function(a,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(a))},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},creditcard:function(a,b){if(this.optional(b))return"dependency-mismatch";if(/[^0-9-]+/.test(a))return!1;var c=0,d=0,e=!1;a=a.replace(/\D/g,"");for(var f=a.length-1;f>=0;f--){var g=a.charAt(f),d=parseInt(g,10);e&&(d*=2)>9&&(d-=9),c+=d,e=!e}return c%10==0},accept:function(a,b,c){return c="string"==typeof c?c.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(b)||a.match(new RegExp(".("+c+")$","i"))},equalTo:function(b,c,d){return b==a(d).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){a(c).valid()}).val()}}}),a.format=a.validator.format}(jQuery),function(a){var b={};if(a.ajaxPrefilter)a.ajaxPrefilter(function(a,c,d){var e=a.port;"abort"==a.mode&&(b[e]&&b[e].abort(),b[e]=d)});else{var c=a.ajax;a.ajax=function(d){var e=("mode"in d?d:a.ajaxSettings).mode,f=("port"in d?d:a.ajaxSettings).port;return"abort"==e?(b[f]&&b[f].abort(),b[f]=c.apply(this,arguments)):c.apply(this,arguments)}}}(jQuery),function(a){jQuery.event.special.focusin||jQuery.event.special.focusout||!document.addEventListener||a.each({focus:"focusin",blur:"focusout"},function(b,c){function d(b){return b=a.event.fix(b),b.type=c,a.event.handle.call(this,b)}a.event.special[c]={setup:function(){this.addEventListener(b,d,!0)},teardown:function(){this.removeEventListener(b,d,!0)},handler:function(b){return arguments[0]=a.event.fix(b),arguments[0].type=c,a.event.handle.apply(this,arguments)}}}),a.extend(a.fn,{validateDelegate:function(b,c,d){return this.bind(c,function(c){var e=a(c.target);if(e.is(b))return d.apply(e,arguments)})}})}(jQuery); \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..b8f8afd --- /dev/null +++ b/package-lock.json @@ -0,0 +1,1250 @@ +{ + "name": "bu-navigation", + "version": "1.2.11", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "dev": true + }, + "align-text": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/align-text/-/align-text-0.1.4.tgz", + "integrity": "sha1-DNkKVhCT810KmSVsIrcGlDP60Rc=", + "dev": true, + "requires": { + "kind-of": "^3.0.2", + "longest": "^1.0.1", + "repeat-string": "^1.5.2" + } + }, + "ansi-regex": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-0.2.1.tgz", + "integrity": "sha1-DY6UaWej2BQ/k+JOKYUl/BsiNfk=", + "dev": true + }, + "ansi-styles": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-1.1.0.tgz", + "integrity": "sha1-6uy/Zs1waIJ2Cy9GkVgrj1XXp94=", + "dev": true + }, + "argparse": { + "version": "0.1.16", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-0.1.16.tgz", + "integrity": "sha1-z9AeD7uj1srtBJ+9dY1A9lGW9Xw=", + "dev": true, + "requires": { + "underscore": "~1.7.0", + "underscore.string": "~2.4.0" + }, + "dependencies": { + "underscore.string": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.4.0.tgz", + "integrity": "sha1-jN2PusTi0uoefi6Al8QvRCKA+Fs=", + "dev": true + } + } + }, + "array-find-index": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", + "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", + "dev": true + }, + "async": { + "version": "0.1.22", + "resolved": "https://registry.npmjs.org/async/-/async-0.1.22.tgz", + "integrity": "sha1-D8GqoIig4+8Ovi2IMbqw3PiEUGE=", + "dev": true + }, + "browserify-zlib": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.1.4.tgz", + "integrity": "sha1-uzX4pRn2AOD6a4SFJByXnQFB+y0=", + "dev": true, + "requires": { + "pako": "~0.2.0" + } + }, + "buffer-from": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", + "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "dev": true + }, + "camelcase": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-2.1.1.tgz", + "integrity": "sha1-fB0W1nmhu+WcoCys7PsBHiAfWh8=", + "dev": true + }, + "camelcase-keys": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/camelcase-keys/-/camelcase-keys-2.1.0.tgz", + "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=", + "dev": true, + "requires": { + "camelcase": "^2.0.0", + "map-obj": "^1.0.0" + } + }, + "center-align": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz", + "integrity": "sha1-qg0yYptu6XIgBBHL1EYckHvCt60=", + "dev": true, + "requires": { + "align-text": "^0.1.3", + "lazy-cache": "^1.0.3" + } + }, + "chalk": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-0.5.1.tgz", + "integrity": "sha1-Zjs6ZItotV0EaQ1JFnqoN4WPIXQ=", + "dev": true, + "requires": { + "ansi-styles": "^1.1.0", + "escape-string-regexp": "^1.0.0", + "has-ansi": "^0.1.0", + "strip-ansi": "^0.3.0", + "supports-color": "^0.2.0" + } + }, + "cliui": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-2.1.0.tgz", + "integrity": "sha1-S0dXYP+AJkx2LDoXGQMukcf+oNE=", + "dev": true, + "requires": { + "center-align": "^0.1.1", + "right-align": "^0.1.1", + "wordwrap": "0.0.2" + } + }, + "coffee-script": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.3.3.tgz", + "integrity": "sha1-FQ1rTLUiiUNp7+1qIQHCC8f0pPQ=", + "dev": true + }, + "colors": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/colors/-/colors-0.6.2.tgz", + "integrity": "sha1-JCP+ZnisDF2uiFLl0OW+CMmXq8w=", + "dev": true + }, + "concat-stream": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", + "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" + } + }, + "core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", + "dev": true + }, + "currently-unhandled": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", + "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", + "dev": true, + "requires": { + "array-find-index": "^1.0.1" + } + }, + "dateformat": { + "version": "1.0.2-1.2.3", + "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-1.0.2-1.2.3.tgz", + "integrity": "sha1-sCIMAt6YYXQztyhRz0fePfLNvuk=", + "dev": true + }, + "debug": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-0.7.4.tgz", + "integrity": "sha1-BuHqgILCyxTjmAbiLi9vdX+Srzk=", + "dev": true + }, + "decamelize": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", + "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", + "dev": true + }, + "error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "requires": { + "is-arrayish": "^0.2.1" + } + }, + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true + }, + "esprima": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.4.tgz", + "integrity": "sha1-n1V+CPw7TSbs6d00+Pv0drYlha0=", + "dev": true + }, + "eventemitter2": { + "version": "0.4.14", + "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-0.4.14.tgz", + "integrity": "sha1-j2G3XN4BKy6esoTUVFWDtWQ7Yas=", + "dev": true + }, + "exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", + "dev": true + }, + "faye-websocket": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.4.4.tgz", + "integrity": "sha1-wUxbO/FNdBf/v9mQwKdJXNnzN7w=", + "dev": true + }, + "figures": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", + "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=", + "dev": true, + "requires": { + "escape-string-regexp": "^1.0.5", + "object-assign": "^4.1.0" + } + }, + "find-up": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", + "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", + "dev": true, + "requires": { + "path-exists": "^2.0.0", + "pinkie-promise": "^2.0.0" + } + }, + "findup-sync": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.1.3.tgz", + "integrity": "sha1-fz56l7gjksZTvwZYm9hRkOk8NoM=", + "dev": true, + "requires": { + "glob": "~3.2.9", + "lodash": "~2.4.1" + }, + "dependencies": { + "glob": { + "version": "3.2.11", + "resolved": "https://registry.npmjs.org/glob/-/glob-3.2.11.tgz", + "integrity": "sha1-Spc/Y1uRkPcV0QmH1cAP0oFevj0=", + "dev": true, + "requires": { + "inherits": "2", + "minimatch": "0.3" + } + }, + "lodash": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", + "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", + "dev": true + }, + "minimatch": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.3.0.tgz", + "integrity": "sha1-J12O2qxPG7MyZHIInnlJyDlGmd0=", + "dev": true, + "requires": { + "lru-cache": "2", + "sigmund": "~1.0.0" + } + } + } + }, + "gaze": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/gaze/-/gaze-0.5.2.tgz", + "integrity": "sha1-QLcJU30k0dRXZ9takIaJ3+aaxE8=", + "dev": true, + "requires": { + "globule": "~0.1.0" + } + }, + "get-stdin": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/get-stdin/-/get-stdin-4.0.1.tgz", + "integrity": "sha1-uWjGsKBDhDJJAui/Gl3zJXmkUP4=", + "dev": true + }, + "getobject": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/getobject/-/getobject-0.1.0.tgz", + "integrity": "sha1-BHpEl4n6Fg0Bj1SG7ZEyC27HiFw=", + "dev": true + }, + "glob": { + "version": "3.1.21", + "resolved": "https://registry.npmjs.org/glob/-/glob-3.1.21.tgz", + "integrity": "sha1-0p4KBV3qUTj00H7UDomC6DwgZs0=", + "dev": true, + "requires": { + "graceful-fs": "~1.2.0", + "inherits": "1", + "minimatch": "~0.2.11" + }, + "dependencies": { + "inherits": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-1.0.2.tgz", + "integrity": "sha1-ykMJ2t7mtUzAuNJH6NfHoJdb3Js=", + "dev": true + } + } + }, + "globule": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/globule/-/globule-0.1.0.tgz", + "integrity": "sha1-2cjt3h2nnRJaFRt5UzuXhnY0auU=", + "dev": true, + "requires": { + "glob": "~3.1.21", + "lodash": "~1.0.1", + "minimatch": "~0.2.11" + }, + "dependencies": { + "lodash": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-1.0.2.tgz", + "integrity": "sha1-j1dWDIO1n8JwvT1WG2kAQ0MOJVE=", + "dev": true + } + } + }, + "graceful-fs": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.2.3.tgz", + "integrity": "sha1-FaSAaldUfLLS2/J/QuiajDRRs2Q=", + "dev": true + }, + "grunt": { + "version": "0.4.5", + "resolved": "https://registry.npmjs.org/grunt/-/grunt-0.4.5.tgz", + "integrity": "sha1-VpN81RlDJK3/bSB2MYMqnWuk5/A=", + "dev": true, + "requires": { + "async": "~0.1.22", + "coffee-script": "~1.3.3", + "colors": "~0.6.2", + "dateformat": "1.0.2-1.2.3", + "eventemitter2": "~0.4.13", + "exit": "~0.1.1", + "findup-sync": "~0.1.2", + "getobject": "~0.1.0", + "glob": "~3.1.21", + "grunt-legacy-log": "~0.1.0", + "grunt-legacy-util": "~0.2.0", + "hooker": "~0.2.3", + "iconv-lite": "~0.2.11", + "js-yaml": "~2.0.5", + "lodash": "~0.9.2", + "minimatch": "~0.2.12", + "nopt": "~1.0.10", + "rimraf": "~2.2.8", + "underscore.string": "~2.2.1", + "which": "~1.0.5" + } + }, + "grunt-contrib-uglify": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/grunt-contrib-uglify/-/grunt-contrib-uglify-0.6.0.tgz", + "integrity": "sha1-OicdTcTaumRpHQ0NCFUOxUp+wKs=", + "dev": true, + "requires": { + "chalk": "^0.5.1", + "lodash": "^2.4.1", + "maxmin": "^1.0.0", + "uglify-js": "^2.4.0", + "uri-path": "0.0.2" + }, + "dependencies": { + "lodash": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", + "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", + "dev": true + } + } + }, + "grunt-contrib-watch": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/grunt-contrib-watch/-/grunt-contrib-watch-0.6.1.tgz", + "integrity": "sha1-ZP3LolpjX1tNobbOb5DaCutuPxU=", + "dev": true, + "requires": { + "async": "~0.2.9", + "gaze": "~0.5.1", + "lodash": "~2.4.1", + "tiny-lr-fork": "0.0.5" + }, + "dependencies": { + "async": { + "version": "0.2.10", + "resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz", + "integrity": "sha1-trvgsGdLnXGXCMo43owjfLUmw9E=", + "dev": true + }, + "lodash": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", + "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", + "dev": true + } + } + }, + "grunt-legacy-log": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/grunt-legacy-log/-/grunt-legacy-log-0.1.3.tgz", + "integrity": "sha1-7ClCboAwIa9ZAp+H0vnNczWgVTE=", + "dev": true, + "requires": { + "colors": "~0.6.2", + "grunt-legacy-log-utils": "~0.1.1", + "hooker": "~0.2.3", + "lodash": "~2.4.1", + "underscore.string": "~2.3.3" + }, + "dependencies": { + "lodash": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", + "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", + "dev": true + }, + "underscore.string": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.3.3.tgz", + "integrity": "sha1-ccCL9rQosRM/N+ePo6Icgvcymw0=", + "dev": true + } + } + }, + "grunt-legacy-log-utils": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/grunt-legacy-log-utils/-/grunt-legacy-log-utils-0.1.1.tgz", + "integrity": "sha1-wHBrndkGThFvNvI/5OawSGcsD34=", + "dev": true, + "requires": { + "colors": "~0.6.2", + "lodash": "~2.4.1", + "underscore.string": "~2.3.3" + }, + "dependencies": { + "lodash": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", + "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", + "dev": true + }, + "underscore.string": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.3.3.tgz", + "integrity": "sha1-ccCL9rQosRM/N+ePo6Icgvcymw0=", + "dev": true + } + } + }, + "grunt-legacy-util": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/grunt-legacy-util/-/grunt-legacy-util-0.2.0.tgz", + "integrity": "sha1-kzJIhNv343qf98Am3/RR2UqeVUs=", + "dev": true, + "requires": { + "async": "~0.1.22", + "exit": "~0.1.1", + "getobject": "~0.1.0", + "hooker": "~0.2.3", + "lodash": "~0.9.2", + "underscore.string": "~2.2.1", + "which": "~1.0.5" + } + }, + "grunt-po2mo": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/grunt-po2mo/-/grunt-po2mo-0.1.2.tgz", + "integrity": "sha1-kI9zwcAAhjhazIPAdA7jYO9SdBs=", + "dev": true, + "requires": { + "sync-exec": "^0.4.0" + } + }, + "grunt-pot": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/grunt-pot/-/grunt-pot-0.2.1.tgz", + "integrity": "sha1-eCFIGpkTxY11K22N9XV7ZRz6Ous=", + "dev": true + }, + "gzip-size": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-1.0.0.tgz", + "integrity": "sha1-Zs+LEBBHInuVus5uodoMF37Vwi8=", + "dev": true, + "requires": { + "browserify-zlib": "^0.1.4", + "concat-stream": "^1.4.1" + } + }, + "has-ansi": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-0.1.0.tgz", + "integrity": "sha1-hPJlqujA5qiKEtcCKJS3VoiUxi4=", + "dev": true, + "requires": { + "ansi-regex": "^0.2.0" + } + }, + "hooker": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/hooker/-/hooker-0.2.3.tgz", + "integrity": "sha1-uDT3I8xKJCqmWWNFnfbZhMXT2Vk=", + "dev": true + }, + "hosted-git-info": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz", + "integrity": "sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==", + "dev": true + }, + "iconv-lite": { + "version": "0.2.11", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.2.11.tgz", + "integrity": "sha1-HOYKOleGSiktEyH/RgnKS7llrcg=", + "dev": true + }, + "indent-string": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-2.1.0.tgz", + "integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=", + "dev": true, + "requires": { + "repeating": "^2.0.0" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true + }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", + "dev": true + }, + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "is-finite": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", + "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "is-utf8": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", + "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", + "dev": true + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "js-yaml": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-2.0.5.tgz", + "integrity": "sha1-olrmUJmZ6X3yeMZxnaEb0Gh3Q6g=", + "dev": true, + "requires": { + "argparse": "~ 0.1.11", + "esprima": "~ 1.0.2" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + }, + "lazy-cache": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/lazy-cache/-/lazy-cache-1.0.4.tgz", + "integrity": "sha1-odePw6UEdMuAhF07O24dpJpEbo4=", + "dev": true + }, + "load-json-file": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", + "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "parse-json": "^2.2.0", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "strip-bom": "^2.0.0" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.15", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", + "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", + "dev": true + } + } + }, + "lodash": { + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-0.9.2.tgz", + "integrity": "sha1-jzSZxSRdNG1oLlsNO0B2fgnxqSw=", + "dev": true + }, + "longest": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/longest/-/longest-1.0.1.tgz", + "integrity": "sha1-MKCy2jj3N3DoKUoNIuZiXtd9AJc=", + "dev": true + }, + "loud-rejection": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/loud-rejection/-/loud-rejection-1.6.0.tgz", + "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", + "dev": true, + "requires": { + "currently-unhandled": "^0.4.1", + "signal-exit": "^3.0.0" + } + }, + "lru-cache": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz", + "integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=", + "dev": true + }, + "map-obj": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz", + "integrity": "sha1-2TPOuSBdgr3PSIb2dCvcK03qFG0=", + "dev": true + }, + "matchdep": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/matchdep/-/matchdep-0.3.0.tgz", + "integrity": "sha1-Qo5knOXCgY0iDgRj7/XA3p5Z1S4=", + "dev": true, + "requires": { + "findup-sync": "~0.1.2", + "globule": "~0.1.0", + "resolve": "~0.5.1", + "stack-trace": "0.0.7" + }, + "dependencies": { + "resolve": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-0.5.1.tgz", + "integrity": "sha1-FeSiIsQja81M+FRUQSwtD7ZSRXY=", + "dev": true + } + } + }, + "maxmin": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/maxmin/-/maxmin-1.1.0.tgz", + "integrity": "sha1-cTZehKmd2Piz99X94vANHn9zvmE=", + "dev": true, + "requires": { + "chalk": "^1.0.0", + "figures": "^1.0.1", + "gzip-size": "^1.0.0", + "pretty-bytes": "^1.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", + "dev": true + }, + "ansi-styles": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", + "dev": true + }, + "chalk": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", + "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", + "dev": true, + "requires": { + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" + } + }, + "has-ansi": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", + "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "supports-color": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", + "dev": true + } + } + }, + "meow": { + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/meow/-/meow-3.7.0.tgz", + "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", + "dev": true, + "requires": { + "camelcase-keys": "^2.0.0", + "decamelize": "^1.1.2", + "loud-rejection": "^1.0.0", + "map-obj": "^1.0.1", + "minimist": "^1.1.3", + "normalize-package-data": "^2.3.4", + "object-assign": "^4.0.1", + "read-pkg-up": "^1.0.1", + "redent": "^1.0.0", + "trim-newlines": "^1.0.0" + } + }, + "minimatch": { + "version": "0.2.14", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz", + "integrity": "sha1-x054BXT2PG+aCQ6Q775u9TpqdWo=", + "dev": true, + "requires": { + "lru-cache": "2", + "sigmund": "~1.0.0" + } + }, + "minimist": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", + "dev": true + }, + "nopt": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", + "integrity": "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=", + "dev": true, + "requires": { + "abbrev": "1" + } + }, + "noptify": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/noptify/-/noptify-0.0.3.tgz", + "integrity": "sha1-WPZUpz2XU98MUdlobckhBKZ/S7s=", + "dev": true, + "requires": { + "nopt": "~2.0.0" + }, + "dependencies": { + "nopt": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-2.0.0.tgz", + "integrity": "sha1-ynQW8gpeP5w7hhgPlilfo9C1Lg0=", + "dev": true, + "requires": { + "abbrev": "1" + } + } + } + }, + "normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "requires": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "dev": true + }, + "object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", + "dev": true + }, + "pako": { + "version": "0.2.9", + "resolved": "https://registry.npmjs.org/pako/-/pako-0.2.9.tgz", + "integrity": "sha1-8/dSL073gjSNqBYbrZ7P1Rv4OnU=", + "dev": true + }, + "parse-json": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", + "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", + "dev": true, + "requires": { + "error-ex": "^1.2.0" + } + }, + "path-exists": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", + "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", + "dev": true, + "requires": { + "pinkie-promise": "^2.0.0" + } + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "path-type": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", + "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + }, + "dependencies": { + "graceful-fs": { + "version": "4.1.15", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", + "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", + "dev": true + } + } + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + }, + "pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "dev": true + }, + "pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "dev": true, + "requires": { + "pinkie": "^2.0.0" + } + }, + "pretty-bytes": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-1.0.4.tgz", + "integrity": "sha1-CiLoIQYJrTVUL4yNXSFZr/B1HIQ=", + "dev": true, + "requires": { + "get-stdin": "^4.0.1", + "meow": "^3.1.0" + } + }, + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "dev": true + }, + "qs": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/qs/-/qs-0.5.6.tgz", + "integrity": "sha1-MbGtBYVnZRxSaSFQa5qHk5EaA4Q=", + "dev": true + }, + "read-pkg": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", + "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", + "dev": true, + "requires": { + "load-json-file": "^1.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^1.0.0" + } + }, + "read-pkg-up": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", + "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", + "dev": true, + "requires": { + "find-up": "^1.0.0", + "read-pkg": "^1.0.0" + } + }, + "readable-stream": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "redent": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/redent/-/redent-1.0.0.tgz", + "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=", + "dev": true, + "requires": { + "indent-string": "^2.1.0", + "strip-indent": "^1.0.1" + } + }, + "repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "dev": true + }, + "repeating": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", + "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", + "dev": true, + "requires": { + "is-finite": "^1.0.0" + } + }, + "resolve": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.10.0.tgz", + "integrity": "sha512-3sUr9aq5OfSg2S9pNtPA9hL1FVEAjvfOC4leW0SNf/mpnaakz2a9femSd6LqAww2RaFctwyf1lCqnTHuF1rxDg==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, + "right-align": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/right-align/-/right-align-0.1.3.tgz", + "integrity": "sha1-YTObci/mo1FWiSENJOFMlhSGE+8=", + "dev": true, + "requires": { + "align-text": "^0.1.1" + } + }, + "rimraf": { + "version": "2.2.8", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz", + "integrity": "sha1-5Dm+Kq7jJzIZUnMPmaiSnk/FBYI=", + "dev": true + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "semver": { + "version": "5.7.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.0.tgz", + "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==", + "dev": true + }, + "sigmund": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz", + "integrity": "sha1-P/IfGYytIXX587eBhT/ZTQ0ZtZA=", + "dev": true + }, + "signal-exit": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", + "dev": true + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + }, + "spdx-correct": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", + "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", + "dev": true, + "requires": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-exceptions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", + "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==", + "dev": true + }, + "spdx-expression-parse": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", + "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", + "dev": true, + "requires": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-license-ids": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.4.tgz", + "integrity": "sha512-7j8LYJLeY/Yb6ACbQ7F76qy5jHkp0U6jgBfJsk97bwWlVUnUWsAgpyaCvo17h0/RQGnQ036tVDomiwoI4pDkQA==", + "dev": true + }, + "stack-trace": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.7.tgz", + "integrity": "sha1-xy4Il0T8Nln1CM3ONiGvVjTsD/8=", + "dev": true + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "strip-ansi": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-0.3.0.tgz", + "integrity": "sha1-JfSOoiynkYfzF0pNuHWTR7sSYiA=", + "dev": true, + "requires": { + "ansi-regex": "^0.2.1" + } + }, + "strip-bom": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", + "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "dev": true, + "requires": { + "is-utf8": "^0.2.0" + } + }, + "strip-indent": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/strip-indent/-/strip-indent-1.0.1.tgz", + "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=", + "dev": true, + "requires": { + "get-stdin": "^4.0.1" + } + }, + "supports-color": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-0.2.0.tgz", + "integrity": "sha1-2S3iaU6z9nMjlz1649i1W0wiGQo=", + "dev": true + }, + "sync-exec": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/sync-exec/-/sync-exec-0.4.0.tgz", + "integrity": "sha1-N1guegT684zW5T6iBEW5n5kvaTM=", + "dev": true + }, + "tiny-lr-fork": { + "version": "0.0.5", + "resolved": "https://registry.npmjs.org/tiny-lr-fork/-/tiny-lr-fork-0.0.5.tgz", + "integrity": "sha1-Hpnh4qhGm3NquX2X7vqYxx927Qo=", + "dev": true, + "requires": { + "debug": "~0.7.0", + "faye-websocket": "~0.4.3", + "noptify": "~0.0.3", + "qs": "~0.5.2" + } + }, + "trim-newlines": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz", + "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM=", + "dev": true + }, + "typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", + "dev": true + }, + "uglify-js": { + "version": "2.8.29", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.8.29.tgz", + "integrity": "sha1-KcVzMUgFe7Th913zW3qcty5qWd0=", + "dev": true, + "requires": { + "source-map": "~0.5.1", + "uglify-to-browserify": "~1.0.0", + "yargs": "~3.10.0" + } + }, + "uglify-to-browserify": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz", + "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", + "dev": true, + "optional": true + }, + "underscore": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz", + "integrity": "sha1-a7rwh3UA02vjTsqlhODbn+8DUgk=", + "dev": true + }, + "underscore.string": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.2.1.tgz", + "integrity": "sha1-18D6KvXVoaZ/QlPa7pgTLnM/Dxk=", + "dev": true + }, + "uri-path": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/uri-path/-/uri-path-0.0.2.tgz", + "integrity": "sha1-gD6wHy/rF5J9zOD2GH5yt19T9VQ=", + "dev": true + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "dev": true + }, + "validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "requires": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "which": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/which/-/which-1.0.9.tgz", + "integrity": "sha1-RgwdoPgQED0DIam2M6+eV15kSG8=", + "dev": true + }, + "window-size": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", + "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", + "dev": true + }, + "wordwrap": { + "version": "0.0.2", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", + "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=", + "dev": true + }, + "yargs": { + "version": "3.10.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.10.0.tgz", + "integrity": "sha1-9+572FfdfB0tOMDnTvvWgdFDH9E=", + "dev": true, + "requires": { + "camelcase": "^1.0.2", + "cliui": "^2.1.0", + "decamelize": "^1.0.0", + "window-size": "0.1.0" + }, + "dependencies": { + "camelcase": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", + "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", + "dev": true + } + } + } + } +}