!function(e){var t={};function n(o){if(t[o])return t[o].exports;var i=t[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(o,i,function(t){return e[t]}.bind(null,i));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=226)}({131:function(e,t,n){var o;void 0===(o=function(e,t){var o=n(47),i=n(132);setTimeout(function(){var e=document.referrer;if(e&&e.indexOf("mubu.io")<0&&e.indexOf("mubu.com")<0&&e.indexOf("localhost")<0&&e.indexOf("connect.qq.com")<0&&e.indexOf("open.weixin.qq.com")<0&&o.set("reg_from",e,{expires:2}),!o.get("reg_entrance")){var t=document.URL;o.set("reg_entrance",t,{expires:2})}var n=i.parseQuery(location.search);n.s&&o.set("reg_source",n.s,{expires:2})},500)}.call(t,n,t,e))||(e.exports=o)},132:function(e,t,n){var o;void 0===(o=function(e,t,o){"use strict";var i=n(40);t.parseQuery=function(e){var t={};if("string"===$.type(e)&&e.indexOf("=")>=0){var n="?"===e.charAt(0)?1:0;n>0&&(e=e.substr(n)),e=e.split("#")[0],$.each(i(e,"&"),function(e,n){var o=i(n,"=");if(2===o.length){var s=o[0];s&&(t[s]=decodeURIComponent(o[1]))}})}return t},t.parse=function(e){var t=document.createElement("a");t.href=e,e=t.href;var n="";t.protocol&&t.host?n=t.protocol+"//"+t.host:/^(http[s]?:\/\/[^/]+)(?=\/)/.test(e)&&(n=RegExp.$1);var o=n.split(":");0===n.indexOf("http:")&&3===o.length&&80==o[2]&&(o.length=2,n=o.join(":"));var i=t.pathname;return i&&"/"!==i.charAt(0)&&(i="/"+i),{origin:n,pathname:i,search:t.search,hash:t.hash}}}.call(t,n,t,e))||(e.exports=o)},226:function(e,t,n){var o;void 0===(o=function(e,t){var o=n(227);window.scm=o,n(131),document.URL.indexOf("/doc")<0&&$("body").on("dragover",function(e){e.preventDefault()}).on("drop",function(e){e.preventDefault()}),$.fn.dlg=function(e){var t=$(this);if("string"!=typeof e){e=$.extend({closable:!0,mask:!0,zindex:100},e);var n=t.children(".dlg-close");0==n.length&&(n=$("
").appendTo(t)),0==e.closable?n.hide():n.show(),$(".dlg_mask").remove(),e.mask&&($("body").append("
"),$(".dlg_mask").css("z-index",e.zindex)),n.unbind().bind("click",function(){t.hide(),$(".dlg_mask").remove(),e&&e.onClose&&e.onClose(),$(document).unbind("keydown.closedlg")}),t.css({left:($(window).width()-t.outerWidth())/2,top:($(window).height()-t.outerHeight())/2,"z-index":e.zindex+1}),t.show(),e.closable&&$(document).unbind("keydown.closedlg").bind("keydown.closedlg",function(e){27==e.keyCode&&t.children(".dlg-close").trigger("click")}),t.children(".header").unbind("mousedown.drag_dlg").bind("mousedown.drag_dlg",function(e){var t=$(this).parent(),n=e.pageX,o=e.pageY,i=t.offset().left,s=t.offset().top;$(document).bind("mousemove.drag_dlg",function(e){var r=e.pageX-n+i,d=e.pageY-o+s;t.offset({left:r,top:d})}),$(document).bind("mouseup.drag_dlg",function(e){$(document).unbind("mousemove.drag_dlg"),$(document).unbind("mouseup.drag_dlg")})})}else"close"==e&&t.children(".dlg-close").trigger("click")};var i,s=null;$.confirm=function(e){var t=$.Deferred();"string"==typeof e&&(e={content:e});var n={title:"请确认",width:0,okText:"确认",type:"default",delay:0};$.extend(n,e);var o=$("#global_confirm_window");o.length||(o=$("
请确认
确认取消
").appendTo("body")),n.width?o.width(n.width):o.css("width","auto"),o.find(".header").html(n.title),o.find(".confirm_msg").html(n.content),o.dlg(n),clearInterval(s);var i=o.find(".okbtn");return i.attr("class","button okbtn small").text(n.okText).off(),"danger"==n.type?i.addClass("highlight"):i.addClass("dark"),n.delay>0?(i.text(n.okText+" ("+n.delay+"s)"),s=setInterval(function(){n.delay--,i.text(n.okText+" ("+n.delay+"s)"),0==n.delay&&(clearInterval(s),i.text(n.okText).on("click",function(){o.dlg("close"),t.resolve()}))},1e3)):o.find(".okbtn").on("click",function(){o.dlg("close"),t.resolve()}),o.find(".cancelbtn").off().on("click",function(){o.dlg("close")}),t},$.alert=function(e){var t=$.Deferred();"string"==typeof e&&(e={content:e});var n={title:e.title||"温馨提示"};$.extend(n,e);var o=$("#global_alert_window");return o.length||(o=$("
温馨提示
确认
").appendTo("body")),o.find(".header").html(n.title),o.find(".confirm_msg").html(e.content),o.dlg({onClose:function(){t.resolve()}}),o.find(".okbtn").off().on("click",function(){o.dlg("close")}),t},$.toast=function(e,t){t||(t=3e3),$(".toast-box").remove(),clearTimeout(i);var n=$('
').appendTo("body");n.html(e),n.css({left:($(window).width()-n.outerWidth())/2,top:($(window).height()-n.outerHeight())/2}).fadeIn(200),i=setTimeout(function(){$(".toast-box").remove()},t)},$.fn.slider=function(){var e=$(this),t=e.find("ul"),n=e.width(),o=0,i=e.find("li"),s=i.length,r=$('
').appendTo(e);r.css("margin-top",e.height()-30),i.each(function(){var e=$(this);e.css({left:n*o,width:n}),e.attr("ind",o),$('').appendTo(r),o++}),r.find("span:eq(0)").addClass("active");var d=i.eq(0);i.eq(s-1).clone().prependTo(t),d.clone().appendTo(t),t.css({width:n*(s+2),left:-n});var a,l=5e3,c=1;function f(){t.is(":animated")||(c++,u())}function u(){var e=c;c>s?e=1:0==c&&(e=s),t.animate({left:-c*n},500,function(){c=e,t.css({left:-n*e})}),r.find(".active").removeClass("active"),r.find("span[ind="+e+"]").addClass("active")}var p=$('
').appendTo(e),v=$('
').appendTo(e);p.on("click",function(){t.is(":animated")||(c--,u())}),v.on("click",function(){f()}),r.find("span").on("click",function(){if(!t.is(":animated")){var e=$(this);e.hasClass("active")||(c=parseInt(e.attr("ind")),u())}}),e.on("mouseenter",function(){clearTimeout(a)}),e.on("mouseleave",function(){!function e(){a=setTimeout(function(){f(),e()},l)}()}),e.trigger("mouseleave")},$.fn.dropdown=function(e){var t=$(this);if("string"==typeof e){if("close"==e)return t.find(".menu").hide(),void t.removeClass("active");"open"==e&&t.trigger("mousedown")}e=$.extend({menus:[],width:null,position:"center",offsetX:0,offsetY:0,side:"bottom",onSelected:null},e),t.addClass("dropdown");var n=t.find(".menu");if(0==n.length){n=$('').appendTo(t);var o=$("").appendTo(n);$.each(e.menus,function(e,t){var n=$('').appendTo(o);n.html(t.text),t.remark&&n.append("
"+t.remark+"
"),n.data("menu",t)})}n.css("position","absolute"),e.width&&n.css({width:e.width});var i=function(){$(document).off("mousedown.dropdown"),n.hide(),t.removeClass("active")};n.find(".menu-item").on("click",function(){var n=$(this).data("menu");t.children(".text").html(n.text),i(),e.onSelected&&e.onSelected(n)}),n.on("mousedown",function(t){t.stopPropagation(),e.preventDefault&&t.preventDefault()}),t.on("mousedown",function(o){o.stopPropagation(),e.preventDefault&&o.preventDefault();var s=$(this);s.addClass("active");var r=s.children(".menu");r.is(":visible")||$(document).trigger("mousedown.dropdown"),e.onDrop&&e.onDrop();var d=t.outerWidth(),a=t.outerHeight();r.show();var l,c,f=r.outerWidth(),u=r.outerHeight();if("right"==e.side)if(l=d+8+e.offsetX,"top"==e.position)c=e.offsetY;else if("bottom"==e.position)c=a-u+e.offsetY;else{c=(a-u)/2+e.offsetY;const n=t.offset(),o=10,i=document.body.clientHeight;n.top+c-o<0?c=-n.top+o:n.top+c+u+o>i&&(c=i-u-o-n.top)}else if(c=a+8+e.offsetY,"right"==e.position)l=d-f+e.offsetX;else if("left"==e.position)l=e.offsetX;else{l=(d-f)/2+e.offsetX;const n=t.offset(),o=10,i=document.body.clientWidth;n.left+l-o<0?l=-n.left+o:n.left+l+f+o>i&&(l=i-f-o-n.left)}if(0==r.find(".arrow").length){var p=$('
').appendTo(n),v=($('
').appendTo(n),n.children(".arrow"));v.addClass(e.side),"bottom"==e.side?v.css("left",-l+(d-p.outerWidth())/2):"right"==e.side&&v.css("top",-c+(a-p.outerHeight())/2)}r.css({left:l,top:c}),$(document).on("mousedown.dropdown",function(){i()})})},$.fn.dropdown2=function(e){var t=$(this);if("string"==typeof e){if("close"==e)return t.find(".menu").hide(),void t.removeClass("active");"open"==e&&t.trigger("mousedown")}e=$.extend({menus:[],width:null,position:"center",offsetX:0,offsetY:0,side:"bottom",onSelected:null},e),t.addClass("dropdown");var n=t.find(".menu");if(0==n.length){n=$('').appendTo(t);var o=$("").appendTo(n);$.each(e.menus,function(e,t){var n=$('').appendTo(o);n.html(t.text),t.remark&&n.append("
"+t.remark+"
"),n.data("menu",t)})}n.css("position","fixed"),e.width&&n.css({width:e.width});var i=function(){$(document).off("mousedown.dropdown"),n.hide(),t.removeClass("active")};n.find(".menu-item").on("click",function(){var n=$(this).data("menu");t.children(".text").html(n.text),i(),e.onSelected&&e.onSelected(n)}),n.on("mousedown",function(t){t.stopPropagation(),e.preventDefault&&t.preventDefault()}),t.on("mousedown",function(o){o.stopPropagation(),e.preventDefault&&o.preventDefault(),$('').appendTo($(document.body));var s=$(this);s.addClass("active");var r=s.children(".menu");r.is(":visible")||$(document).trigger("mousedown.dropdown"),e.onDrop&&e.onDrop();var d=t[0].getBoundingClientRect();r.show();var a=r[0].getBoundingClientRect(),l=function(e,t,n){var o,i,s;return[e.side].concat(["top","right","bottom","left"].filter(t=>t!==e.side)).some(r=>((function(s){switch(s){case"right":case"left":if(o="right"===s?t.right+8+e.offsetX:t.left-n.width-8-e.offsetX,"top"==e.position)i=t.top+e.offsetY;else if("bottom"==e.position)i=t.bottom-n.height+e.offsetY;else{i=t.top+t.height/2-n.height/2+e.offsetY;const o=10,s=window.innerHeight;i-o<0?i=o:i+n.height+o>s&&(i=s-n.height-o)}break;case"top":case"bottom":default:if(i="top"===s?t.top-n.height-8-e.offsetY:t.bottom+8+e.offsetY,"right"==e.position)o=t.right-n.width+e.offsetX;else if("left"==e.position)o=t.left+e.offsetX;else{o=t.left+(t.width-n.width)/2+e.offsetX;const i=10,s=window.innerWidth;o-i<0?o=i:o+n.width+i>s&&(o=s-n.width-i)}}})(r),s=r,o>0&&i>0&&i+n.height').appendTo(n),$('
').appendTo(n));var p=n.children(".arrow");switch(p.addClass(u),u){case"bottom":case"top":p.css("left",d.left-c+(d.width-p.outerWidth())/2);break;case"right":case"left":p.css("top",d.top-f+(d.height-p.outerHeight())/2)}r.css({top:f,left:c}),$(document).on("mousedown.dropdown",function(){i()})})},$.loginWindow=function(e){location.href="/login?next="+location.pathname},$.fn.tooltip=function(e){e=$.extend({position:"bottom",pointTo:null,title:null},e),$(this).each(function(){var t=$(this);t.data("title",e.title||t.attr("title")),t.removeAttr("title");var n="mouseenter.tooltip";t.off(n).on(n,function(){var t=$(this);if(t.data("title")&&!t.hasClass("active")){var n=setTimeout(function(){$(".common-tip").remove();var n=$('
').appendTo("body");n.addClass(e.position),n.text(t.data("title")),n.show();var o=e.pointTo||t;"right"==e.position?n.css({left:o.offset().left+o.outerWidth()+6,top:o.offset().top-$(document).scrollTop()+o.outerHeight()/2-n.outerHeight()/2}):n.css({left:o.offset().left+o.outerWidth()/2-n.outerWidth()/2,top:o.offset().top-$(document).scrollTop()+o.outerHeight()+6})},300);t.off("mouseleave.tooltip").on("mouseleave.tooltip",function(){$(".common-tip").remove(),clearTimeout(n)}),t.off("mousedown.tooltip").on("mousedown.tooltip",function(){$(this).trigger("mouseleave.tooltip")})}})})},$.fn.inputRange=function(e){var t,n,o=$(this);if("string"!=typeof e)o.empty(),t=$('
').appendTo(o),(n=$('
').appendTo(t)).on("mousedown",function(i){var s=o.offset(),r=o.width(),d=n.width(),a=t.offset(),l=i.pageX-(a.left+t.width()),c=$(document);c.on("mousemove.range",function(e){var n=e.pageX-l-s.left;nr-d/2&&(n=r-d/2),t.width(n)}),c.on("mouseup.range_end",function(){c.off("mousemove.range").off("mouseup.range_end"),e&&e.onChange&&e.onChange(o.inputRange("getValue"))})});else{t=o.find(".range-bar");var i=(n=o.find(".range-slider")).width();if("getValue"===e)return((t.width()-i/2)/(o.width()-i)).toFixed(2);if("setValue"===e){var s=arguments[1],r=(o.width()-i)*s+i/2;t.width(r)}}}}.call(t,n,t,e))||(e.exports=o)},227:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BUILD_BRANCH="master",t.BUILD_VERSION="1.0.0.1107"},40:function(e,t,n){var o;void 0===(o=function(e,t,n){"use strict";return function(e,t){var n=[];return"number"===$.type(e)&&(e=""+e),e&&"string"===$.type(e)&&$.each(e.split(t),function(e,t){(t=$.trim(t))&&n.push(t)}),n}}.call(t,n,t,e))||(e.exports=o)},47:function(e,t,n){var o;void 0===(o=function(e,t,o){"use strict";var i=n(40),s=n(48);function r(e,t,n){var o=n.expires;$.isNumeric(o)&&(o=s(new Date,o)),document.cookie=[encodeURIComponent(e),"=",encodeURIComponent(t),o?";expires="+o.toUTCString():"",n.path?";path="+n.path:"",n.domain?";domain="+n.domain:"",n.secure?";secure":""].join("")}t.get=function(e){var t=function(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));var t={};try{e=decodeURIComponent(e.replace(/\+/g," ")),$.each(i(e,";"),function(e,n){var o=i(n,"="),s=o[0],r=o[1];s&&(t[s]=r)})}catch(e){}return t}(document.cookie);return"string"===$.type(e)?t[e]:t},t.set=function(e,n,o){$.isPlainObject(e)&&(o=n,n=null),o=$.extend({},t.defaultOptions,o),null===n?$.each(e,function(e,t){r(e,t,o)}):r(e,n,o)},t.remove=function(e,n){(n=n||{}).expires=-1,r(e,"",$.extend({},t.defaultOptions,n))},t.defaultOptions={}}.call(t,n,t,e))||(e.exports=o)},48:function(e,t,n){var o;void 0===(o=function(e,t,o){"use strict";var i=n(49);return function(e,t){return i(e,24*t)}}.call(t,n,t,e))||(e.exports=o)},49:function(e,t,n){var o;void 0===(o=function(e,t,o){"use strict";var i=n(50);return function(e,t){return i(e,60*t)}}.call(t,n,t,e))||(e.exports=o)},50:function(e,t,n){var o;void 0===(o=function(e,t,o){"use strict";var i=n(51);return function(e,t){return i(e,60*t)}}.call(t,n,t,e))||(e.exports=o)},51:function(e,t,n){var o;void 0===(o=function(e,t,n){"use strict";return function(e,t){return"date"===$.type(e)&&(e=e.getTime()),new Date(e+1e3*t)}}.call(t,n,t,e))||(e.exports=o)}});