(function(){if(!(jQuery&&jQuery.jstree)){var r=false,t=false,u=false;(function(c){c.vakata={};c.vakata.css={get_css:function(b,g,h){b=b.toLowerCase();var j=h.cssRules||h.rules,l=0;do{if(j.length&&l>j.length+5)break;if(j[l].selectorText&&j[l].selectorText.toLowerCase()==b)if(g===true){h.removeRule&&h.removeRule(l);h.deleteRule&&h.deleteRule(l);return true}else return j[l]}while(j[++l]);return false},add_css:function(b,g){if(c.jstree.css.get_css(b,false,g))return false;g.insertRule?g.insertRule(b+" { }", 0):g.addRule(b,null,0);return c.vakata.css.get_css(b)},remove_css:function(b,g){return c.vakata.css.get_css(b,true,g)},add_sheet:function(b){var g=false,h=true;if(b.str){if(b.title)g=c("style[id='"+b.title+"-stylesheet']")[0];if(g)h=false;else{g=document.createElement("style");g.setAttribute("type","text/css");b.title&&g.setAttribute("id",b.title+"-stylesheet")}if(g.styleSheet)if(h){document.getElementsByTagName("head")[0].appendChild(g);g.styleSheet.cssText=b.str}else g.styleSheet.cssText=g.styleSheet.cssText+ " "+b.str;else{g.appendChild(document.createTextNode(b.str));document.getElementsByTagName("head")[0].appendChild(g)}return g.sheet||g.styleSheet}if(b.url)if(document.createStyleSheet)try{document.createStyleSheet(b.url)}catch(j){}else{g=document.createElement("link");g.rel="stylesheet";g.type="text/css";g.media="all";g.href=b.url;document.getElementsByTagName("head")[0].appendChild(g);return g.styleSheet}}};var a=[],d=-1,f={},e={};c.fn.jstree=function(b){var g=typeof b=="string",h=Array.prototype.slice.call(arguments, 1),j=this;if(g){if(b.substring(0,1)=="_")return j;this.each(function(){var l=a[c.data(this,"jstree-instance-id")];l=l&&c.isFunction(l[b])?l[b].apply(l,h):l;if(typeof l!=="undefined"&&(b.indexOf("is_"===0)||l!==true&&l!==false)){j=l;return false}})}else this.each(function(){var l=c.data(this,"jstree-instance-id"),i=[],k=b?c.extend({},true,b):{},m=c(this),o=false,n=[];i=i.concat(h);m.data("jstree")&&i.push(m.data("jstree"));k=i.length?c.extend.apply(null,[true,k].concat(i)):k;typeof l!=="undefined"&& a[l]&&a[l].destroy();l=parseInt(a.push({}),10)-1;c.data(this,"jstree-instance-id",l);k.plugins=c.isArray(k.plugins)?k.plugins:c.jstree.defaults.plugins.slice();k.plugins.unshift("core");k.plugins=k.plugins.sort().join(",,").replace(/(,|^)([^,]+)(,,\2)+(,|$)/g,"$1$2$4").replace(/,,+/g,",").replace(/,$/,"").split(",");o=c.extend(true,{},c.jstree.defaults,k);o.plugins=k.plugins;c.each(f,function(p){if(c.inArray(p,o.plugins)===-1){o[p]=null;delete o[p]}else n.push(p)});o.plugins=n;a[l]=new c.jstree._instance(l, c(this).addClass("jstree jstree-"+l),o);c.each(a[l]._get_settings().plugins,function(p,q){a[l].data[q]={}});c.each(a[l]._get_settings().plugins,function(p,q){f[q]&&f[q].__init.apply(a[l])});setTimeout(function(){a[l].init()},0)});return j};c.jstree={defaults:{plugins:[]},_focused:function(){return a[d]||null},_reference:function(b){if(a[b])return a[b];var g=c(b);if(!g.length&&typeof b==="string")g=c("#"+b);if(!g.length)return null;return a[g.closest(".jstree").data("jstree-instance-id")]||null},_instance:function(b, g,h){this.data={core:{}};this.get_settings=function(){return c.extend(true,{},h)};this._get_settings=function(){return h};this.get_index=function(){return b};this.get_container=function(){return g};this.get_container_ul=function(){return g.children("ul:eq(0)")};this._set_settings=function(j){h=c.extend(true,{},h,j)}},_fn:{},plugin:function(b,g){g=c.extend({},{__init:c.noop,__destroy:c.noop,_fn:{},defaults:false},g);f[b]=g;c.jstree.defaults[b]=g.defaults;c.each(g._fn,function(h,j){j.plugin=b;j.old= c.jstree._fn[h];c.jstree._fn[h]=function(){var l,i=j,k=Array.prototype.slice.call(arguments);l=new c.Event("before.jstree");var m=false;if(!(this.data.core.locked===true&&h!=="unlock"&&h!=="is_locked")){do{if(i&&i.plugin&&c.inArray(i.plugin,this._get_settings().plugins)!==-1)break;i=i.old}while(i);if(i){if(h.indexOf("_")===0)l=i.apply(this,k);else{l=this.get_container().triggerHandler(l,{func:h,inst:this,args:k,plugin:i.plugin});if(l===false)return;if(typeof l!=="undefined")k=l;l=i.apply(c.extend({}, this,{__callback:function(o){this.get_container().triggerHandler(h+".jstree",{inst:this,args:k,rslt:o,rlbk:m})},__rollback:function(){return m=this.get_rollback()},__call_old:function(o){return i.old.apply(this,o?Array.prototype.slice.call(arguments,1):k)}}),k)}return l}}};c.jstree._fn[h].old=j.old;c.jstree._fn[h].plugin=b})},rollback:function(b){if(b){c.isArray(b)||(b=[b]);c.each(b,function(g,h){a[h.i].set_rollback(h.h,h.d)})}}};c.jstree._fn=c.jstree._instance.prototype={};c(function(){var b=navigator.userAgent.toLowerCase(), g=(b.match(/.+?(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],h=".jstree ul, .jstree li { display:block; margin:0 0 0 0; padding:0 0 0 0; list-style-type:none; } .jstree li { display:block; min-height:18px; line-height:18px; white-space:nowrap; margin-left:18px; min-width:18px; } .jstree-rtl li { margin-left:0; margin-right:18px; } .jstree > ul > li { margin-left:0px; } .jstree-rtl > ul > li { margin-right:0px; } .jstree ins { display:inline-block; text-decoration:none; width:18px; height:18px; margin:0 0 0 0; padding:0; } .jstree a { display:inline-block; line-height:16px; height:16px; color:black; white-space:nowrap; text-decoration:none; padding:1px 2px; margin:0; } .jstree a:focus { outline: none; } .jstree a > ins { height:16px; width:16px; } .jstree a > .jstree-icon { margin-right:3px; } .jstree-rtl a > .jstree-icon { margin-left:3px; margin-right:0; } li.jstree-open > ul { display:block; } li.jstree-closed > ul { display:none; } "; if(/msie/.test(b)&&parseInt(g,10)==6){r=true;try{document.execCommand("BackgroundImageCache",false,true)}catch(j){}h+=".jstree li { height:18px; margin-left:0; margin-right:0; } .jstree li li { margin-left:18px; } .jstree-rtl li li { margin-left:0px; margin-right:18px; } li.jstree-open ul { display:block; } li.jstree-closed ul { display:none !important; } .jstree li a { display:inline; border-width:0 !important; padding:0px 2px !important; } .jstree li a ins { height:16px; width:16px; margin-right:3px; } .jstree-rtl li a ins { margin-right:0px; margin-left:3px; } "}if(/msie/.test(b)&& parseInt(g,10)==7){t=true;h+=".jstree li a { border-width:0 !important; padding:0px 2px !important; } "}if(!/compatible/.test(b)&&/mozilla/.test(b)&&parseFloat(g,10)<1.9){u=true;h+=".jstree ins { display:-moz-inline-box; } .jstree li { line-height:12px; } .jstree a { display:-moz-inline-box; } .jstree .jstree-no-icons .jstree-checkbox { display:-moz-inline-stack !important; } "}c.vakata.css.add_sheet({str:h,title:"jstree"})});c.jstree.plugin("core",{__init:function(){this.data.core.locked=false;this.data.core.to_open= this.get_settings().core.initially_open;this.data.core.to_load=this.get_settings().core.initially_load},defaults:{html_titles:false,animation:500,initially_open:[],initially_load:[],open_parents:true,notify_plugins:true,rtl:false,load_open:false,strings:{loading:"Loading ...",new_node:"New node",multiple_selection:"Multiple selection"}},_fn:{init:function(){this.set_focus();this._get_settings().core.rtl&&this.get_container().addClass("jstree-rtl").css("direction","rtl");this.get_container().html("");this.data.core.li_height=this.get_container_ul().find("li.jstree-closed, li.jstree-leaf").eq(0).height()||18;this.get_container().delegate("li > ins","click.jstree",c.proxy(function(b){var g=c(b.target);g.is("ins")&&b.pageY-g.offset().top ul > li:first-child");if(!b.length)return false;if(g)return b.nextAll("li").size()>0?b.nextAll("li:eq(0)"):false;return b.hasClass("jstree-open")?b.find("li:eq(0)"):b.nextAll("li").size()>0?b.nextAll("li:eq(0)"):b.parentsUntil(".jstree","li").next("li").eq(0)},_get_prev:function(b,g){b= this._get_node(b);if(b===-1)return this.get_container().find("> ul > li:last-child");if(!b.length)return false;if(g)return b.prevAll("li").length>0?b.prevAll("li:eq(0)"):false;if(b.prev("li").length){for(b=b.prev("li").eq(0);b.hasClass("jstree-open");)b=b.children("ul:eq(0)").children("li:last");return b}else{var h=b.parentsUntil(".jstree","li:eq(0)");return h.length?h:false}},_get_parent:function(b){b=this._get_node(b);if(b==-1||!b.length)return false;b=b.parentsUntil(".jstree","li:eq(0)");return b.length? b:-1},_get_children:function(b){b=this._get_node(b);if(b===-1)return this.get_container().children("ul:eq(0)").children("li");if(!b.length)return false;return b.children("ul:eq(0)").children("li")},get_path:function(b,g){var h=[],j=this;b=this._get_node(b);if(b===-1||!b||!b.length)return false;b.parentsUntil(".jstree","li").each(function(){h.push(g?this.id:j.get_text(this))});h.reverse();h.push(g?b.attr("id"):this.get_text(b));return h},_get_string:function(b){return this._get_settings().core.strings[b]|| b},is_open:function(b){return(b=this._get_node(b))&&b!==-1&&b.hasClass("jstree-open")},is_closed:function(b){return(b=this._get_node(b))&&b!==-1&&b.hasClass("jstree-closed")},is_leaf:function(b){return(b=this._get_node(b))&&b!==-1&&b.hasClass("jstree-leaf")},correct_state:function(b){b=this._get_node(b);if(!b||b===-1)return false;b.removeClass("jstree-closed jstree-open").addClass("jstree-leaf").children("ul").remove();this.__callback({obj:b})},open_node:function(b,g,h){b=this._get_node(b);if(!b.length)return false; if(!b.hasClass("jstree-closed")){g&&g.call();return false}var j=h||r?0:this._get_settings().core.animation,l=this;if(this._is_loaded(b)){this._get_settings().core.open_parents&&b.parentsUntil(".jstree",".jstree-closed").each(function(){l.open_node(this,false,true)});j&&b.children("ul").css("display","none");b.removeClass("jstree-closed").addClass("jstree-open").children("a").removeClass("jstree-loading");j?b.children("ul").stop(true,true).slideDown(j,function(){this.style.display="";l.after_open(b)}): l.after_open(b);this.__callback({obj:b});g&&g.call()}else{b.children("a").addClass("jstree-loading");this.load_node(b,function(){l.open_node(b,g,h)},g)}},after_open:function(b){this.__callback({obj:b})},close_node:function(b,g){b=this._get_node(b);var h=g||r?0:this._get_settings().core.animation,j=this;if(!b.length||!b.hasClass("jstree-open"))return false;h&&b.children("ul").attr("style","display:block !important");b.removeClass("jstree-open").addClass("jstree-closed");h?b.children("ul").stop(true, true).slideUp(h,function(){this.style.display="";j.after_close(b)}):j.after_close(b);this.__callback({obj:b})},after_close:function(b){this.__callback({obj:b})},toggle_node:function(b){b=this._get_node(b);if(b.hasClass("jstree-closed"))return this.open_node(b);if(b.hasClass("jstree-open"))return this.close_node(b)},open_all:function(b,g,h){b=b?this._get_node(b):-1;if(!b||b===-1)b=this.get_container_ul();if(h)b=b.find("li.jstree-closed");else{h=b;b=b.is(".jstree-closed")?b.find("li.jstree-closed").andSelf(): b.find("li.jstree-closed")}var j=this;b.each(function(){var l=this;j._is_loaded(this)?j.open_node(this,false,!g):j.open_node(this,function(){j.open_all(l,g,h)},!g)});h.find("li.jstree-closed").length===0&&this.__callback({obj:h})},close_all:function(b,g){var h=this;b=b?this._get_node(b):this.get_container();if(!b||b===-1)b=this.get_container_ul();b.find("li.jstree-open").andSelf().each(function(){h.close_node(this,!g)});this.__callback({obj:b})},clean_node:function(b){b=b&&b!=-1?c(b):this.get_container_ul(); b=b.is("li")?b.find("li").andSelf():b.find("li");b.removeClass("jstree-last").filter("li:last-child").addClass("jstree-last").end().filter(":has(li)").not(".jstree-open").removeClass("jstree-leaf").addClass("jstree-closed");b.not(".jstree-open, .jstree-closed").addClass("jstree-leaf").children("ul").remove();this.__callback({obj:b})},get_rollback:function(){this.__callback();return{i:this.get_index(),h:this.get_container().children("ul").clone(true),d:this.data}},set_rollback:function(b,g){this.get_container().empty().append(b); this.data=g;this.__callback()},load_node:function(b){this.__callback({obj:b})},_is_loaded:function(){return true},create_node:function(b,g,h,j,l){b=this._get_node(b);g=typeof g==="undefined"?"last":g;var i=c("
  • "),k=this._get_settings().core,m;if(b!==-1&&!b.length)return false;if(!l&&!this._is_loaded(b)){this.load_node(b,function(){this.create_node(b,g,h,j,true)});return false}this.__rollback();if(typeof h==="string")h={data:h};h||(h={});h.attr&&i.attr(h.attr);h.metadata&&i.data(h.metadata);h.state&& i.addClass("jstree-"+h.state);if(!h.data)h.data=this._get_string("new_node");if(!c.isArray(h.data)){m=h.data;h.data=[];h.data.push(m)}c.each(h.data,function(o,n){m=c("");if(c.isFunction(n))n=n.call(this,h);if(typeof n=="string")m.attr("href","#")[k.html_titles?"html":"text"](n);else{if(!n.attr)n.attr={};if(!n.attr.href)n.attr.href="#";m.attr(n.attr)[k.html_titles?"html":"text"](n.title);n.language&&m.addClass(n.language)}m.prepend(" ");if(n.icon)n.icon.indexOf("/")=== -1?m.children("ins").addClass(n.icon):m.children("ins").css("background","url('"+n.icon+"') center center no-repeat");i.append(m)});i.prepend(" ");if(b===-1){b=this.get_container();if(g==="before")g="first";if(g==="after")g="last"}switch(g){case "before":b.before(i);m=this._get_parent(b);break;case "after":b.after(i);m=this._get_parent(b);break;case "inside":case "first":b.children("ul").length||b.append("