text: /*!
   * ZUI: zui for zentao - v1.7.0 - 2017-08-22
   * http://zui.sexy
   * GitHub: https://github.com/easysoft/zui.git 
   * Copyright (c) 2017 cnezsoft.com; Licensed MIT
   */
  /*! Some code copy from Bootstrap v3.0.0 by @fat and @mdo. (Copyright 2013 Twitter, Inc. Licensed under http://www.apache.org/licenses/)*/
  !function(t,e,a){"use strict";if("undefined"==typeof t)throw new Error("ZUI requires jQuery");t.zui||(t.zui=function(e){t.isPlainObject(e)&&t.extend(t.zui,e)});var i={all:-1,left:0,middle:1,right:2},o=0;t.zui({uuid:function(){return 1e3*(new Date).getTime()+o++%1e3},callEvent:function(e,i,o){if(t.isFunction(e)){o!==a&&(e=t.proxy(e,o));var n=e(i);return i&&(i.result=n),!(n!==a&&!n)}return 1},clientLang:function(){var a,i=e.config;if("undefined"!=typeof i&&i.clientLang&&(a=i.clientLang),!a){var o=t("html").attr("lang");a=o?o:navigator.userLanguage||navigator.userLanguage||"zh_cn"}return a.replace("-","_").toLowerCase()},strCode:function(t){var e=0;if(t&&t.length)for(var a=0;a<t.length;++a)e+=a*t.charCodeAt(a);return e},getMouseButtonCode:function(t){return"number"!=typeof t&&(t=i[t]),t!==a&&null!==t||(t=-1),t}}),t.fn.callEvent=function(e,i,o){var n=t(this),s=e.indexOf(".zui."),r=s<0?e:e.substring(0,s),l=t.Event(r,i);if(o===a&&s>0&&(o=n.data(e.substring(s+1))),o&&o.options){var d=o.options[r];t.isFunction(d)&&(l.result=t.zui.callEvent(d,l,o))}return n.trigger(l),l}}(jQuery,window,void 0),function(){"use strict";String.prototype.format||(String.prototype.format=function(t){var e=this;if(arguments.length>0){var a;if(arguments.length<=2&&"object"==typeof t)for(var i in t)void 0!==t[i]&&(a=new RegExp("("+(arguments[1]?arguments[1].replace("0",i):"{"+i+"}")+")","g"),e=e.replace(a,t[i]));else for(var o=0;o<arguments.length;o++)void 0!==arguments[o]&&(a=new RegExp("({["+o+"]})","g"),e=e.replace(a,arguments[o]))}return e}),String.prototype.isNum||(String.prototype.isNum=function(t){if(null!==t){var e,a;return a=/\d*/i,e=t.match(a),e==t}return!1})}(),/*!
   * jQuery resize event - v1.1
   * http://benalman.com/projects/jquery-resize-plugin/
   * Copyright (c) 2010 "Cowboy" Ben Alman
   * MIT & GPL http://benalman.com/about/license/
   */
  function(t,e,a){"$:nomunge";function i(){o=e[r](function(){n.each(function(){var e=t(this),a=e.width(),i=e.height(),o=t.data(this,d);a===o.w&&i===o.h||e.trigger(l,[o.w=a,o.h=i])}),i()},s[c])}var o,n=t([]),s=t.resize=t.extend(t.resize,{}),r="setTimeout",l="resize",d=l+"-special-event",c="delay",p="throttleWindow";s[c]=250,s[p]=!0,t.event.special[l]={setup:function(){if(!s[p]&&this[r])return!1;var e=t(this);n=n.add(e),t.data(this,d,{w:e.width(),h:e.height()}),1===n.length&&i()},teardown:function(){if(!s[p]&&this[r])return!1;var e=t(this);n=n.not(e),e.removeData(d),n.length||clearTimeout(o)},add:function(e){function i(e,i,n){var s=t(this),r=t.data(this,d)||{};r.w=i!==a?i:s.width(),r.h=n!==a?n:s.height(),o.apply(this,arguments)}if(!s[p]&&this[r])return!1;var o;return t.isFunction(e)?(o=e,i):(o=e.handler,void(e.handler=i))}}}(jQuery,this),function(){"use strict";Date.ONEDAY_TICKS=864e5,Date.prototype.format||(Date.prototype.format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),"S+":this.getMilliseconds()};/(y+)/i.test(t)&&(t=t.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(var a in e)new RegExp("("+a+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[a]:("00"+e[a]).substr((""+e[a]).length)));return t}),Date.prototype.addMilliseconds||(Date.prototype.addMilliseconds=function(t){return this.setTime(this.getTime()+t),this}),Date.prototype.addDays||(Date.prototype.addDays=function(t){return this.addMilliseconds(t*Date.ONEDAY_TICKS),this}),Date.prototype.clone||(Date.prototype.clone=function(){var t=new Date;return t.setTime(this.getTime()),t}),Date.isLeapYear||(Date.isLeapYear=function(t){return t%4===0&&t%100!==0||t%400===0}),Date.getDaysInMonth||(Date.getDaysInMonth=function(t,e){return[31,Date.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]}),Date.prototype.isLeapYear||(Date.prototype.isLeapYear=function(){return Date.isLeapYear(this.getFullYear())}),Date.prototype.clearTime||(Date.prototype.clearTime=function(){return this.setHours(0),this.setMinutes(0),this.setSeconds(0),this.setMilliseconds(0),this}),Date.prototype.getDaysInMonth||(Date.prototype.getDaysInMonth=function(){return Date.getDaysInMonth(this.getFullYear(),this.getMonth())}),Date.prototype.addMonths||(Date.prototype.addMonths=function(t){var e=this.getDate();return this.setDate(1),this.setMonth(this.getMonth()+t),this.setDate(Math.min(e,this.getDaysInMonth())),this}),Date.prototype.getLastWeekday||(Date.prototype.getLastWeekday=function(t){t=t||1;for(var e=this.clone();e.getDay()!=t;)e.addDays(-1);return e.clearTime(),e}),Date.prototype.isSameDay||(Date.prototype.isSameDay=function(t){return t.toDateString()===this.toDateString()}),Date.prototype.isSameWeek||(Date.prototype.isSameWeek=function(t){var e=this.getLastWeekday(),a=e.clone().addDays(7);return t>=e&&t<a}),Date.prototype.isSameYear||(Date.prototype.isSameYear=function(t){return this.getFullYear()===t.getFullYear()})}(),function(t,e){"use strict";var a,i,o="localStorage",n="page_"+t.location.pathname+t.location.search,s=function(){this.slience=!0;try{o in t&&t[o]&&t[o].setItem&&(this.enable=!0,a=t[o])}catch(s){}this.enable||(i={},a={getLength:function(){var t=0;return e.each(i,function(){t++}),t},key:function(t){var a,o=0;return e.each(i,function(e){return o===t?(a=e,!1):void o++}),a},removeItem:function(t){delete i[t]},getItem:function(t){return i[t]},setItem:function(t,e){i[t]=e},clear:function(){i={}}}),this.storage=a,this.page=this.get(n,{})};s.prototype.pageSave=function(){if(e.isEmptyObject(this.page))this.remove(n);else{var t,a=[];for(t in this.page){var i=this.page[t];null===i&&a.push(t)}for(t=a.length-1;t>=0;t--)delete this.page[a[t]];this.set(n,this.page)}},s.prototype.pageRemove=function(t){"undefined"!=typeof this.page[t]&&(this.page[t]=null,this.pageSave())},s.prototype.pageClear=function(){this.page={},this.pageSave()},s.prototype.pageGet=function(t,e){var a=this.page[t];return void 0===e||null!==a&&void 0!==a?a:e},s.prototype.pageSet=function(t,a){e.isPlainObject(t)?e.extend(!0,this.page,t):this.page[this.serialize(t)]=a,this.pageSave()},s.prototype.check=function(){if(!this.enable&&!this.slience)throw new Error("Browser not support localStorage or enable status been set true.");return this.enable},s.prototype.length=function(){return this.check()?a.getLength?a.getLength():a.length:0},s.prototype.removeItem=function(t){return a.removeItem(t),this},s.prototype.remove=function(t){return this.removeItem(t)},s.prototype.getItem=function(t){return a.getItem(t)},s.prototype.get=function(t,e){var a=this.deserialize(this.getItem(t));return"undefined"!=typeof a&&null!==a||"undefined"==typeof e?a:e},s.prototype.key=function(t){return a.key(t)},s.prototype.setItem=function(t,e){return a.setItem(t,e),this},s.prototype.set=function(t,e){return void 0===e?this.remove(t):(this.setItem(t,this.serialize(e)),this)},s.prototype.clear=function(){return a.clear(),this},s.prototype.forEach=function(t){for(var e=this.length(),i=e-1;i>=0;i--){var o=a.key(i);t(o,this.get(o))}return this},s.prototype.getAll=function(){var t={};return this.forEach(function(e,a){t[e]=a}),t},s.prototype.serialize=function(t){return"string"==typeof t?t:JSON.stringify(t)},s.prototype.deserialize=function(t){if("string"==typeof t)try{return JSON.parse(t)}catch(e){return t||void 0}},e.zui({store:new s})}(window,jQuery),function(t,e,a,i){"use strict";function o(t){if(t=t.toLowerCase(),t&&c.test(t)){var e;if(4===t.length){var a="#";for(e=1;e<4;e+=1)a+=t.slice(e,e+1).concat(t.slice(e,e+1));t=a}var i=[];for(e=1;e<7;e+=2)i.push(y("0x"+t.slice(e,e+2)));return{r:i[0],g:i[1],b:i[2],a:1}}throw new Error("Wrong hex string! (hex: "+t+")")}function n(e){return typeof e===u&&("transparent"===e.toLowerCase()||v[e.toLowerCase()]||c.test(t.trim(e.toLowerCase())))}function s(t){function e(t){return t=t<0?t+1:t>1?t-1:t,6*t<1?r+(s-r)*t*6:2*t<1?s:3*t<2?r+(s-r)*(2/3-t)*6:r}var a=t.h,i=t.s,o=t.l,n=t.a;a=d(a)%h/h,i=l(d(i)),o=l(d(o)),n=l(d(n));var s=o<=.5?o*(i+1):o+i-o*i,r=2*o-s,c={r:e(a+1/3)*p,g:e(a)*p,b:e(a-1/3)*p,a:n};return c}function r(t,a,i){return m(i)&&(i=0),m(a)&&(a=p),e.min(e.max(t,i),a)}function l(t,e){return r(t,e)}function d(t){return"number"==typeof t?t:parseFloat(t)}var c=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,p=255,h=360,f=100,u="string",g="object",v={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},m=function(t){return t===i},b=function(t){return!m(t)},y=function(t){return parseInt(t)},w=function(t){return y(l(d(t),p))},C=function(t,e,a,i){var n=this;if(n.r=n.g=n.b=0,n.a=1,b(i)&&(n.a=l(d(i),1)),b(t)&&b(e)&&b(a))n.r=w(t),n.g=w(e),n.b=w(a);else if(b(t)){var r=typeof t;if(r==u)t=t.toLowerCase(),"transparent"===t?n.a=0:v[t]?this.rgb(o(v[t])):n.rgb(o(t));else if("number"==r&&m(e))n.r=n.g=n.b=w(t);else if(r==g&&b(t.r))n.r=w(t.r),b(t.g)&&(n.g=w(t.g)),b(t.b)&&(n.b=w(t.b)),b(t.a)&&(n.a=l(d(t.a),1));else if(r==g&&b(t.h)){var c={h:l(d(t.h),h),s:1,l:1,a:1};b(t.s)&&(c.s=l(d(t.s),1)),b(t.l)&&(c.l=l(d(t.l),1)),b(t.a)&&(c.a=l(d(t.a),1)),n.rgb(s(c))}}};C.prototype.rgb=function(t){var e=this;if(b(t)){if(typeof t==g)b(t.r)&&(e.r=w(t.r)),b(t.g)&&(e.g=w(t.g)),b(t.b)&&(e.b=w(t.b)),b(t.a)&&(e.a=l(d(t.a),1));else{var a=y(d(t));e.r=a,e.g=a,e.b=a}return e}return{r:e.r,g:e.g,b:e.b,a:e.a}},C.prototype.hue=function(t){var e=this,a=e.toHsl();return m(t)?a.h:(a.h=l(d(t),h),e.rgb(s(a)),e)},C.prototype.darken=function(t){var e=this,a=e.toHsl();return a.l-=t/f,a.l=l(a.l,1),e.rgb(s(a)),e},C.prototype.clone=function(){var t=this;return new C(t.r,t.g,t.b,t.a)},C.prototype.lighten=function(t){return this.darken(-t)},C.prototype.fade=function(t){return this.a=l(t/f,1),this},C.prototype.spin=function(t){var e=this.toHsl(),a=(e.h+t)%h;return e.h=a<0?h+a:a,this.rgb(s(e))},C.prototype.toHsl=function(){var t,a,i=this,o=i.r/p,n=i.g/p,s=i.b/p,r=i.a,l=e.max(o,n,s),d=e.min(o,n,s),c=(l+d)/2,f=l-d;if(l===d)t=a=0;else{switch(a=c>.5?f/(2-l-d):f/(l+d),l){case o:t=(n-s)/f+(n<s?6:0);break;case n:t=(s-o)/f+2;break;case s:t=(o-n)/f+4}t/=6}return{h:t*h,s:a,l:c,a:r}},C.prototype.luma=function(){var t=this.r/p,a=this.g/p,i=this.b/p;return t=t<=.03928?t/12.92:e.pow((t+.055)/1.055,2.4),a=a<=.03928?a/12.92:e.pow((a+.055)/1.055,2.4),i=i<=.03928?i/12.92:e.pow((i+.055)/1.055,2.4),.2126*t+.7152*a+.0722*i},C.prototype.saturate=function(t){var e=this.toHsl();return e.s+=t/f,e.s=l(e.s),this.rgb(s(e))},C.prototype.desaturate=function(t){return this.saturate(-t)},C.prototype.contrast=function(t,e,a){if(e=m(e)?new C(p,p,p,1):new C(e),t=m(t)?new C(0,0,0,1):new C(t),t.luma()>e.luma()){var i=e;e=t,t=i}return this.a<.5?t:(a=m(a)?.43:d(a),this.luma()<a?e:t)},C.prototype.hexStr=function(){var t=this.r.toString(16),e=this.g.toString(16),a=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==a.length&&(a="0"+a),"#"+t+e+a},C.prototype.toCssStr=function(){var t=this;return t.a>0?t.a<1?"rgba("+t.r+","+t.g+","+t.b+","+t.a+")":t.hexStr():"transparent"},C.isColor=n,C.names=v,C.get=function(t){return new C(t)},t.zui({Color:C})}(jQuery,Math,window,void 0),/*!
   * ZUI: Generated from less code - v1.7.0 - 2017-08-22
   * http://zui.sexy
   * GitHub: https://github.com/easysoft/zui.git 
   * Copyright (c) 2017 cnezsoft.com; Licensed MIT
   */
  function(t){"use strict";var e=0,a=["primary","red","yellow","green","blue","purple","brown","dark"],i={primary:"#3280fc",secondary:"#145ccd",pale:"#ebf2f9",fore:"#353535",back:"#fff",grayDarker:"#222222",grayDark:"#333333",gray:"#808080",grayLight:"#dddddd",grayLighter:"#e5e5e5",grayPale:"#f1f1f1",white:"#fff",black:"#000",red:"#ea644a",yellow:"#f1a325",green:"#38b03f",blue:"#03b8cf",purple:"#8666b8",brown:"#bd7b46",greenPale:"#ddf4df",yellowPale:"#fff0d5",redPale:"#ffe5e0",bluePale:"#ddf3f5",brownPale:"#f7ebe1",purplePale:"#f5eeff",light:"#fff",dark:"#353535",success:"#38b03f",warning:"#f1a325",danger:"#ea644a",info:"#03b8cf",important:"#bd7b46",special:"#8666b8",successPale:"#ddf4df",warningPale:"#fff0d5",dangerPale:"#ffe5e0",infoPale:"#ddf3f5",importantPale:"#f7ebe1",specialPale:"#f5eeff"};i.get=function(o){"undefined"!=typeof o&&"random"!==o||(o=a[e++%a.length]);var n=i[o]?i[o]:o;return t.zui.Color?new t.zui.Color(n):n},t.zui({colorset:i}),t.zui.Color&&t.extend(t.zui.Color,i)}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var a in e)if(void 0!==t.style[a])return{end:e[a]};return!1}t.fn.emulateTransitionEnd=function(e){var a=!1,i=this;t(this).one("bsTransitionEnd",function(){a=!0});var o=function(){a||t(i).trigger(t.support.transition.end)};return setTimeout(o,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(t){"use strict";t.fn.fixOlPd=function(e){return e=e||10,this.each(function(){var a=t(this);a.css("paddingLeft",Math.ceil(Math.log10(a.children().length))*e+10)})},t(function(){t(".ol-pd-fix,.article ol").fixOlPd()})}(jQuery),+function(t){"use strict";var e=function(a,i){this.$element=t(a),this.options=t.extend({},e.DEFAULTS,i),this.isLoading=!1};e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(e){var a="disabled",i=this.$element,o=i.is("input")?"val":"html",n=i.data();e+="Text",n.resetText||i.data("resetText",i[o]()),i[o](n[e]||this.options[e]),setTimeout(t.proxy(function(){"loadingText"==e?(this.isLoading=!0,i.addClass(a).attr(a,a)):this.isLoading&&(this.isLoading=!1,i.removeClass(a).removeAttr(a))},this),0)},e.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var a=this.$element.find("input");"radio"==a.prop("type")&&(a.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&a.prop("checked",!this.$element.hasClass("active")).trigger("change")}t&&this.$element.toggleClass("active")};var a=t.fn.button;t.fn.button=function(a){return this.each(function(){var i=t(this),o=i.data("zui.button"),n="object"==typeof a&&a;o||i.data("zui.button",o=new e(this,n)),"toggle"==a?o.toggle():a&&o.setState(a)})},t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=a,this},t(document).on("click.zui.button.data-api","[data-toggle^=button]",function(e){var a=t(e.target);a.hasClass("btn")||(a=a.closest(".btn")),a.button("toggle"),e.preventDefault()})}(jQuery),function(t){"use strict";var e={zh_cn:'您的浏览器版本过低，无法体验所有功能，建议升级或者更换浏览器。 <a href="http://browsehappy.com/" target="_blank" class="alert-link">了解更多...</a>',zh_tw:'您的瀏覽器版本過低，無法體驗所有功能，建議升級或者更换瀏覽器。<a href="http://browsehappy.com/" target="_blank" class="alert-link">了解更多...</a>',en:'Your browser is too old, it has been unable to experience the colorful internet. We strongly recommend that you upgrade a better one. <a href="http://browsehappy.com/" target="_blank" class="alert-link">Learn more...</a>'},a=function(){var t=this.isIE()||this.isIE10()||!1;if(t)for(var e=10;e>5;e--)if(this.isIE(e)){t=e;break}this.ie=t,this.cssHelper()};a.prototype.cssHelper=function(){var e=this.ie,a=t("html");a.toggleClass("ie",e).removeClass("ie-6 ie-7 ie-8 ie-9 ie-10"),e&&a.addClass("ie-"+e).toggleClass("gt-ie-7 gte-ie-8 support-ie",e>=8).toggleClass("lte-ie-7 lt-ie-8 outdated-ie",e<8).toggleClass("gt-ie-8 gte-ie-9",e>=9).toggleClass("lte-ie-8 lt-ie-9",e<9).toggleClass("gt-ie-9 gte-ie-10",e>=10).toggleClass("lte-ie-9 lt-ie-10",e<10)},a.prototype.tip=function(a){var i=t("#browseHappyTip");i.length||(i=t('<div id="browseHappyTip" class="alert alert-dismissable alert-danger-inverse alert-block" style="position: relative; z-index: 99999"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button><div class="container"><div class="content text-center"></div></div></div>'),i.prependTo("body")),i.find(".content").html(a||this.browseHappyTip||e[t.zui.clientLang()||"zh_cn"])},a.prototype.isIE=function(t){if(10===t)return this.isIE10();var e=document.createElement("b");return e.innerHTML="<!--[if IE "+(t||"")+"]><i></i><![endif]-->",1===e.getElementsByTagName("i").length},a.prototype.isIE10=function(){return!1},t.zui({browser:new a}),t(function(){t("body").hasClass("disabled-browser-tip")||t.zui.browser.ie&&t.zui.browser.ie<8&&t.zui.browser.tip()})}(jQuery),+function(t){"use strict";var e="zui.collapse",a=function(e,i){this.$element=t(e),this.options=t.extend({},a.DEFAULTS,i),this.transitioning=null,this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()};a.DEFAULTS={toggle:!0},a.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},a.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var a=t.Event("show."+e);if(this.$element.trigger(a),!a.isDefaultPrevented()){var i=this.$parent&&this.$parent.find(".in");if(i&&i.length){var o=i.data(e);if(o&&o.transitioning)return;i.collapse("hide"),o||i.data(e,null)}var n=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[n](0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("in")[n]("auto"),this.transitioning=0,this.$element.trigger("shown."+e)};if(!t.support.transition)return s.call(this);var r=t.camelCase(["scroll",n].join("-"));this.$element.one(t.support.transition.end,t.proxy(s,this)).emulateTransitionEnd(350)[n](this.$element[0][r])}}},a.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var a=t.Event("hide."+e);if(this.$element.trigger(a),!a.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.trigger("hidden."+e).removeClass("collapsing").addClass("collapse")};return t.support.transition?void this.$element[i](0).one(t.support.transition.end,t.proxy(o,this)).emulateTransitionEnd(350):o.call(this)}}},a.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var i=t.fn.collapse;t.fn.collapse=function(i){return this.each(function(){var o=t(this),n=o.data(e),s=t.extend({},a.DEFAULTS,o.data(),"object"==typeof i&&i);n||o.data(e,n=new a(this,s)),"string"==typeof i&&n[i]()})},t.fn.collapse.Constructor=a,t.fn.collapse.noConflict=function(){return t.fn.collapse=i,this},t(document).on("click."+e+".data-api","[data-toggle=collapse]",function(a){var i,o=t(this),n=o.attr("data-target")||a.preventDefault()||(i=o.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""),s=t(n),r=s.data(e),l=r?"toggle":o.data(),d=o.attr("data-parent"),c=d&&t(d);r&&r.transitioning||(c&&c.find('[data-toggle=collapse][data-parent="'+d+'"]').not(o).addClass("collapsed"),o[s.hasClass("in")?"addClass":"removeClass"]("collapsed")),s.collapse(l)})}(window.jQuery),+function(t){"use strict";function e(){t(o).remove(),t(n).each(function(e){var o=a(t(this));o.hasClass("open")&&(o.trigger(e=t.Event("hide."+i)),e.isDefaultPrevented()||o.removeClass("open").trigger("hidden."+i))})}function a(e){var a=e.attr("data-target");a||(a=e.attr("href"),a=a&&/#/.test(a)&&a.replace(/.*(?=#[^\s]*$)/,""));var i;try{i=a&&t(a)}catch(o){}return i&&i.length?i:e.parent()}var i="zui.dropdown",o=".dropdown-backdrop",n="[data-toggle=dropdown]",s=function(e){t(e).on("click."+i,this.toggle)};s.prototype.toggle=function(o){var n=t(this);if(!n.is(".disabled, :disabled")){var s=a(n),r=s.hasClass("open");if(e(),!r){if("ontouchstart"in document.documentElement&&!s.closest(".navbar-nav").length&&t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click",e),s.trigger(o=t.Event("show."+i)),o.isDefaultPrevented())return;s.toggleClass("open").trigger("shown."+i),n.focus()}return!1}},s.prototype.keydown=function(e){if(/(38|40|27)/.test(e.keyCode)){var i=t(this);if(e.preventDefault(),e.stopPropagation(),!i.is(".disabled, :disabled")){var o=a(i),s=o.hasClass("open");if(!s||s&&27==e.keyCode)return 27==e.which&&o.find(n).focus(),i.click();var r=t("[role=menu] li:not(.divider):visible a",o);if(r.length){var l=r.index(r.filter(":focus"));38==e.keyCode&&l>0&&l--,40==e.keyCode&&l<r.length-1&&l++,~l||(l=0),r.eq(l).focus()}}}};var r=t.fn.dropdown;t.fn.dropdown=function(e){return this.each(function(){var a=t(this),i=a.data("dropdown");i||a.data("dropdown",i=new s(this)),"string"==typeof e&&i[e].call(a)})},t.fn.dropdown.Constructor=s,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=r,this};var l=i+".data-api";t(document).on("click."+l,e).on("click."+l,".dropdown form",function(t){t.stopPropagation()}).on("click."+l,n,s.prototype.toggle).on("keydown."+l,n+", [role=menu]",s.prototype.keydown)}(window.jQuery),+function(t){"use strict";var e='[data-dismiss="alert"]',a="zui.alert",i=function(a){t(a).on("click",e,this.close)};i.prototype.close=function(e){function i(){s.trigger("closed."+a).remove()}var o=t(this),n=o.attr("data-target");n||(n=o.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,""));var s=t(n);e&&e.preventDefault(),s.length||(s=o.hasClass("alert")?o:o.parent()),s.trigger(e=t.Event("close."+a)),e.isDefaultPrevented()||(s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one(t.support.transition.end,i).emulateTransitionEnd(150):i())};var o=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var o=t(this),n=o.data(a);n||o.data(a,n=new i(this)),"string"==typeof e&&n[e].call(o)})},t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=o,this},t(document).on("click."+a+".data-api",e,i.prototype.close)}(window.jQuery),+function(t){"use strict";var e="zui.tab",a=function(e){this.element=t(e)};a.prototype.show=function(){var a=this.element,i=a.closest("ul:not(.dropdown-menu)"),o=a.attr("data-target")||a.attr("data-tab");if(o||(o=a.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,"")),!a.parent("li").hasClass("active")){var n=i.find(".active:last a")[0],s=t.Event("show."+e,{relatedTarget:n});if(a.trigger(s),!s.isDefaultPrevented()){var r=t(o);this.activate(a.parent("li"),i),this.activate(r,r.parent(),function(){a.trigger({type:"shown."+e,relatedTarget:n})})}}},a.prototype.activate=function(e,a,i){function o(){n.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),s?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),i&&i()}var n=a.find("> .active"),s=i&&t.support.transition&&n.hasClass("fade");s?n.one(t.support.transition.end,o).emulateTransitionEnd(150):o(),n.removeClass("in")};var i=t.fn.tab;t.fn.tab=function(i){return this.each(function(){var o=t(this),n=o.data(e);n||o.data(e,n=new a(this)),"string"==typeof i&&n[i]()})},t.fn.tab.Constructor=a,t.fn.tab.noConflict=function(){return t.fn.tab=i,this},t(document).on("click.zui.tab.data-api",'[data-toggle="tab"], [data-tab]',function(e){e.preventDefault(),t(this).tab("show")})}(window.jQuery),+function(t){"use strict";function e(e,o,n){return this.each(function(){var s=t(this),r=s.data(a),l=t.extend({},i.DEFAULTS,s.data(),"object"==typeof e&&e);r||s.data(a,r=new i(this,l)),"string"==typeof e?r[e](o,n):l.show&&r.show(o,n)})}var a="zui.modal",i=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$backdrop=this.isShown=null,this.scrollbarWidth=0,"undefined"==typeof this.options.moveable&&(this.options.moveable=this.$element.hasClass("modal-moveable")),this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded."+a)},this))};i.VERSION="3.2.0",i.TRANSITION_DURATION=300,i.BACKDROP_TRANSITION_DURATION=150,i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0,position:"fit"},i.prototype.toggle=function(t,e){return this.isShown?this.hide():this.show(t,e)},i.prototype.ajustPosition=function(e){if("undefined"==typeof e&&(e=this.options.position),"undefined"!=typeof e){var i=this.$element.find(".modal-dialog"),o=Math.max(0,(t(window).height()-i.outerHeight())/2),n="fit"==e?2*o/3:"center"==e?o:e;if(i.hasClass("modal-moveable")){var s=null,r=this.options.rememberPos;r&&(r===!0?s=this.$element.data("modal-pos"):t.zui.store&&(s=t.zui.store.pageGet(a+".rememberPos."+r))),s||(s={left:Math.max(0,(t(window).width()-i.outerWidth())/2),top:n}),i.css(s)}else i.css("margin-top",n)}},i.prototype.setMoveale=function(){t.fn.draggable||console.error("Moveable modal requires draggable.js.");var e=this,i=e.options,o=e.$element.find(".modal-dialog").removeClass("modal-dragged");o.toggleClass("modal-moveable",i.moveable),e.$element.data("modal-moveable-setup")||o.draggable({container:e.$element,handle:".modal-header",before:function(){o.css("margin-top","").addClass("modal-dragged")},finish:function(o){var n=i.rememberPos;n&&(e.$element.data("modal-pos",o.pos),t.zui.store&&n!==!0&&t.zui.store.pageSet(a+".rememberPos."+n,o.pos))}})},i.prototype.show=function(e,o){var n=this,s=t.Event("show."+a,{relatedTarget:e});n.$element.trigger(s),n.isShown||s.isDefaultPrevented()||(n.isShown=!0,n.options.moveable&&n.setMoveale(),n.checkScrollbar(),n.$body.addClass("modal-open"),n.setScrollbar(),n.escape(),n.$element.on("click.dismiss."+a,'[data-dismiss="modal"]',t.proxy(n.hide,n)),n.backdrop(function(){var s=t.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),s&&n.$element[0].offsetWidth,n.$element.addClass("in").attr("aria-hidden",!1),n.ajustPosition(o),n.enforceFocus();var r=t.Event("shown."+a,{relatedTarget:e});s?n.$element.find(".modal-dialog").one("bsTransitionEnd",function(){n.$element.trigger("focus").trigger(r)}).emulateTransitionEnd(i.TRANSITION_DURATION):n.$element.trigger("focus").trigger(r)}))},i.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide."+a),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.$body.removeClass("modal-open"),this.resetScrollbar(),this.escape(),t(document).off("focusin."+a),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss."+a),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(i.TRANSITION_DURATION):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin."+a).on("focusin."+a,t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?t(document).on("keydown.dismiss."+a,t.proxy(function(e){if(27==e.which){var i=t.Event("escaping."+a),o=this.$element.triggerHandler(i,"esc");if(void 0!=o&&!o)return;this.hide()}},this)):this.isShown||t(document).off("keydown.dismiss."+a)},i.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$element.trigger("hidden."+a)})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var o=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var s=t.support.transition&&n;if(this.$backdrop=t('<div class="modal-backdrop '+n+'" />').appendTo(this.$body),this.$element.on("mousedown.dismiss."+a,t.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),s&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;s?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var r=function(){o.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):r()}else e&&e()},i.prototype.checkScrollbar=function(){document.body.clientWidth>=window.innerWidth||(this.scrollbarWidth=this.scrollbarWidth||this.measureScrollbar())},i.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",t+this.scrollbarWidth)},i.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},i.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var o=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=i,t.fn.modal.noConflict=function(){return t.fn.modal=o,this},t(document).on("click."+a+".data-api",'[data-toggle="modal"]',function(i){var o=t(this),n=o.attr("href"),s=null;try{s=t(o.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,""))}catch(r){return}if(s.length){var l=s.data(a)?"toggle":t.extend({remote:!/#/.test(n)&&n},s.data(),o.data());o.is("a")&&i.preventDefault(),s.one("show."+a,function(t){t.isDefaultPrevented()||s.one("hidden."+a,function(){o.is(":visible")&&o.trigger("focus")})}),e.call(s,l,this,o.data("position"))}})}(jQuery),+function(t){"use strict";var e=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.init("tooltip",t,e)};e.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},e.prototype.init=function(e,a,i){this.enabled=!0,this.type=e,this.$element=t(a),this.options=this.getOptions(i);for(var o=this.options.trigger.split(" "),n=o.length;n--;){var s=o[n];if("click"==s)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=s){var r="hover"==s?"mouseenter":"focus",l="hover"==s?"mouseleave":"blur";this.$element.on(r+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},a=this.getDefaults();return this._options&&t.each(this._options,function(t,i){a[t]!=i&&(e[t]=i)}),e},e.prototype.enter=function(e){var a=e instanceof this.constructor?e:t(e.currentTarget)[this.type](this.getDelegateOptions()).data("zui."+this.type);return clearTimeout(a.timeout),a.hoverState="in",a.options.delay&&a.options.delay.show?void(a.timeout=setTimeout(function(){"in"==a.hoverState&&a.show()},a.options.delay.show)):a.show()},e.prototype.leave=function(e){var a=e instanceof this.constructor?e:t(e.currentTarget)[this.type](this.getDelegateOptions()).data("zui."+this.type);return clearTimeout(a.timeout),a.hoverState="out",a.options.delay&&a.options.delay.hide?void(a.timeout=setTimeout(function(){"out"==a.hoverState&&a.hide()},a.options.delay.hide)):a.hide()},e.prototype.show=function(e){var a=t.Event("show.zui."+this.type);if((e||this.hasContent())&&this.enabled){var i=this;if(i.$element.trigger(a),a.isDefaultPrevented())return;var o=i.tip();i.setContent(e),i.options.animation&&o.addClass("fade");var n="function"==typeof i.options.placement?i.options.placement.call(i,o[0],i.$element[0]):i.options.placement,s=/\s?auto?\s?/i,r=s.test(n);r&&(n=n.replace(s,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(n),i.options.container?o.appendTo(i.options.container):o.insertAfter(i.$element);var l=i.getPosition(),d=o[0].offsetWidth,c=o[0].offsetHeight;if(r){var p=i.$element.parent(),h=n,f=document.documentElement.scrollTop||document.body.scrollTop,u="body"==i.options.container?window.innerWidth:p.outerWidth(),g="body"==i.options.container?window.innerHeight:p.outerHeight(),v="body"==i.options.container?0:p.offset().left;n="bottom"==n&&l.top+l.height+c-f>g?"top":"top"==n&&l.top-f-c<0?"bottom":"right"==n&&l.right+d>u?"left":"left"==n&&l.left-d<v?"right":n,o.removeClass(h).addClass(n)}var m=i.getCalculatedOffset(n,l,d,c);i.applyPlacement(m,n);var b=function(){var t=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==t&&i.leave(i)};t.support.transition&&i.$tip.hasClass("fade")?o.one("bsTransitionEnd",b).emulateTransitionEnd(150):b()}},e.prototype.applyPlacement=function(t,e){var a,i=this.tip(),o=i[0].offsetWidth,n=i[0].offsetHeight,s=parseInt(i.css("margin-top"),10),r=parseInt(i.css("margin-left"),10);isNaN(s)&&(s=0),isNaN(r)&&(r=0),t.top=t.top+s,t.left=t.left+r,i.offset(t).addClass("in");var l=i[0].offsetWidth,d=i[0].offsetHeight;if("top"==e&&d!=n&&(a=!0,t.top=t.top+n-d),/bottom|top/.test(e)){var c=0;t.left<0&&(c=t.left*-2,t.left=0,i.offset(t),l=i[0].offsetWidth,d=i[0].offsetHeight),this.replaceArrow(c-o+l,l,"left")}else this.replaceArrow(d-n,d,"top");a&&i.offset(t)},e.prototype.replaceArrow=function(t,e,a){this.arrow().css(a,t?50*(1-t/e)+"%":"")},e.prototype.setContent=function(t){var e=this.tip(),a=t||this.getTitle();this.options.tipId&&e.attr("id",this.options.tipId),this.options.tipClass&&e.addClass(this.options.tipClass),e.find(".tooltip-inner")[this.options.html?"html":"text"](a),e.removeClass("fade in top bottom left right")},e.prototype.hide=function(){function e(){"in"!=a.hoverState&&i.detach()}var a=this,i=this.tip(),o=t.Event("hide.zui."+this.type);if(this.$element.trigger(o),!o.isDefaultPrevented())return i.removeClass("in"),t.support.transition&&this.$tip.hasClass("fade")?i.one(t.support.transition.end,e).emulateTransitionEnd(150):e(),this.$element.trigger("hidden.zui."+this.type),this},e.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},e.prototype.hasContent=function(){return this.getTitle()},e.prototype.getPosition=function(){var e=this.$element[0];return t.extend({},"function"==typeof e.getBoundingClientRect?e.getBoundingClientRect():{width:e.offsetWidth,height:e.offsetHeight},this.$element.offset())},e.prototype.getCalculatedOffset=function(t,e,a,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-a/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-a/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-a}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},e.prototype.getTitle=function(){var t,e=this.$element,a=this.options;return t=e.attr("data-original-title")||("function"==typeof a.title?a.title.call(e[0]):a.title)},e.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},e.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.prototype.toggle=function(e){var a=e?t(e.currentTarget)[this.type](this.getDelegateOptions()).data("zui."+this.type):this;a.tip().hasClass("in")?a.leave(a):a.enter(a)},e.prototype.destroy=function(){this.hide().$element.off("."+this.type).removeData("zui."+this.type)};var a=t.fn.tooltip;t.fn.tooltip=function(a,i){return this.each(function(){var o=t(this),n=o.data("zui.tooltip"),s="object"==typeof a&&a;n||o.data("zui.tooltip",n=new e(this,s)),"string"==typeof a&&n[a](i)})},t.fn.tooltip.Constructor=e,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=a,this}}(window.jQuery),+function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),e.prototype.constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTarget();if(e)return e.find(".arrow").length<1&&t.addClass("no-arrow"),void t.html(e.html());var a=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](a),t.find(".popover-content")[this.options.html?"html":"text"](i),t.removeClass("fade top bottom left right in"),this.options.tipId&&t.attr("id",this.options.tipId),this.options.tipClass&&t.addClass(this.options.tipClass),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTarget()||this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.getTarget=function(){var e=this.$element,a=this.options,i=e.attr("data-target")||("function"==typeof a.target?a.target.call(e[0]):a.target);return!!i&&("$next"==i?e.next(".popover"):t(i))},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},e.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};var a=t.fn.popover;t.fn.popover=function(a){return this.each(function(){var i=t(this),o=i.data("zui.popover"),n="object"==typeof a&&a;o||i.data("zui.popover",o=new e(this,n)),"string"==typeof a&&o[a]()})},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=a,this}}(window.jQuery),function(t,e,a){"use strict";var i="zui.droppable",o={target:".droppable-target",deviation:5,sensorOffsetX:0,sensorOffsetY:0},n=0,s=function(e,a){var i=this;i.id=n++,i.$=t(e),i.options=t.extend({},o,i.$.data(),a),i.init()};s.DEFAULTS=o,s.NAME=i,s.prototype.trigger=function(e,a){return t.zui.callEvent(this.options[e],a,this)},s.prototype.init=function(){var o,n,s,r,l,d,c,p,h,f,u,g,v,m=this,b=m.$,y=m.options,w=y.deviation,C="."+i+"."+m.id,x="mousedown"+C,$="mouseup"+C,k="mousemove"+C,T=y.selector,E=y.handle,z=y.flex,S=y.container,D=y.canMoveHere,L=b,A=!1,O=S?t(y.container).first():T?b:t("body"),P=function(e){if(A&&(u={left:e.pageX,top:e.pageY},!(a.abs(u.left-p.left)<w&&a.abs(u.top-p.top)<w))){if(null===s){var i=O.css("position");"absolute"!=i&&"relative"!=i&&"fixed"!=i&&(d=i,O.css("position","relative")),s=L.clone().removeClass("drag-from").addClass("drag-shadow").css({position:"absolute",width:L.outerWidth(),transition:"none"}).appendTo(O),L.addClass("dragging"),m.trigger("start",{event:e,element:L})}var c={left:u.left-f.left,top:u.top-f.top},v={left:c.left-h.left,top:c.top-h.top};s.css(v),t.extend(g,u);var b=!1;r=!1,z||o.removeClass("drop-to");var C=null;if(o.each(function(){var e=t(this),a=e.offset(),i=e.outerWidth(),o=e.outerHeight(),n=a.left+y.sensorOffsetX,s=a.top+y.sensorOffsetY;if(u.left>n&&u.top>s&&u.left<n+i&&u.top<s+o&&(C&&C.removeClass("drop-to"),C=e,!y.nested))return!1}),C){r=!0;var x=C.data("id");L.data("id")!=x&&(l=!1),(null===n||n.data("id")!==x&&!l)&&(b=!0),n=C,z&&o.removeClass("drop-to"),n.addClass("drop-to")}z?null!==n&&n.length&&(r=!0):(L.toggleClass("drop-in",r),s.toggleClass("drop-in",r)),D&&D(L,n)===!1||m.trigger("drag",{event:e,isIn:r,target:n,element:L,isNew:b,selfTarget:l,clickOffset:f,offset:c,position:{left:c.left-h.left,top:c.top-h.top},mouseOffset:u}),e.preventDefault()}},M=function(a){if(t(e).off(C),clearTimeout(v),A){if(A=!1,d&&O.css("position",d),null===s)return L.removeClass("drag-from"),void m.trigger("always",{event:a,cancel:!0});r||(n=null);var i=!0;u=a?{left:a.pageX,top:a.pageY}:g;var c={left:u.left-f.left,top:u.top-f.top},p={left:u.left-g.left,top:u.top-g.top};g.left=u.left,g.top=u.top;var b={event:a,isIn:r,target:n,element:L,isNew:!l&&null!==n,selfTarget:l,offset:c,mouseOffset:u,position:{left:c.left-h.left,top:c.top-h.top},lastMouseOffset:g,moveOffset:p};i=m.trigger("beforeDrop",b),i&&r&&m.trigger("drop",b),o.removeClass("drop-to"),L.removeClass("dragging").removeClass("drag-from"),s.remove(),s=null,m.trigger("finish",b),m.trigger("always",b),a&&a.preventDefault()}},j=function(a){var i=t.zui.getMouseButtonCode(y.mouseButton);if(!(i>-1&&a.button!==i)){var u=t(this);T&&(L=E?u.closest(T):u),L.hasClass("drag-shadow")||y.before&&y.before({event:a,element:L})===!1||(A=!0,o=t.isFunction(y.target)?y.target(b):O.find(y.target),n=null,s=null,r=!1,l=!0,d=null,c=L.offset(),h=O.offset(),p={left:a.pageX,top:a.pageY},g=t.extend({},p),f={left:p.left-c.left,top:p.top-c.top},L.addClass("drag-from"),t(e).on(k,P).on($,M),v=setTimeout(function(){t(e).on(x,M)},10),a.preventDefault())}};E?b.on(x,E,j):T?b.on(x,T,j):b.on(x,j)},s.prototype.destroy=function(){var a="."+i+"."+this.id;this.$.off(a),t(e).off(a),this.$.data(i,null)},s.prototype.reset=function(){this.destroy(),this.init()},t.fn.droppable=function(e){return this.each(function(){var a=t(this),o=a.data(i),n="object"==typeof e&&e;o||a.data(i,o=new s(this,n)),"string"==typeof e&&o[e]()})},t.fn.droppable.Constructor=s}(jQuery,document,Math),+function(t,e,a){"use strict";if(!t.fn.droppable)return void console.error("Sortable requires droppable.js");var i="zui.sortable",o={selector:"li,div",dragCssClass:"invisible",sortingClass:"sortable-sorting"},n="order",s=function(e,a){var i=this;i.$=t(e),i.options=t.extend({},o,i.$.data(),a),i.init()};s.DEFAULTS=o,s.NAME=i,s.prototype.init=function(){var e=this,a=e.$,i=e.options,o=i.selector,s=i.sortingClass,r=i.dragCssClass,l=i.reverse,d=function(a){a=a||e.getItems(1);var i=[];a.each(function(){var e=t(this).data(n);"number"==typeof e&&i.push(e)}),i.sort(function(t,e){return t-e});for(var o=a.length;i.length<o;)i.push(i.length?i[i.length-1]+1:0);l&&i.reverse(),a.each(function(e){t(this).data(n,i[e]).attr("data-"+n,i[e])})};d(),a.droppable({handle:i.trigger,target:o,selector:o,container:a,always:i.always,flex:!0,lazy:i.lazy,canMoveHere:i.canMoveHere,nested:i.nested,before:i.before,mouseButton:i.mouseButton,start:function(t){r&&t.element.addClass(r),e.trigger("start",t)},drag:function(t){if(a.addClass(s),t.isIn){var i=t.element,o=t.target,r=i.data(n),c=o.data(n);if(r==c)return;r>c?o[l?"after":"before"](i):o[l?"before":"after"](i);var p=e.getItems(1);d(p),e.trigger(n,{list:p,element:i})}},finish:function(t){r&&t.element&&t.element.removeClass(r),a.removeClass(s),e.trigger("finish",{list:e.getItems(1),element:t.element})}})},s.prototype.destroy=function(){this.$.droppable("destroy")},s.prototype.reset=function(){this.destroy(),this.init()},s.prototype.getItems=function(e){var a=this.$.children(this.options.selector).not(".drag-shadow");return e?a:a.map(function(){var e=t(this);return{item:e,order:e.data("order")}})},s.prototype.trigger=function(e,a){return t.zui.callEvent(this.options[e],a,this)},t.fn.sortable=function(e){return this.each(function(){var a=t(this),o=a.data(i),n="object"==typeof e&&e;o?"object"==typeof e&&o.reset():a.data(i,o=new s(this,n)),
  "string"==typeof e&&o[e]()})},t.fn.sortable.Constructor=s}(jQuery,window,document),/*! bootbox.js v4.4.0 http://bootboxjs.com/license.txt */
  function(t,e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):t.bootbox=e(t.jQuery)}(this,function t(e,a){"use strict";function i(t){var e=v[u.locale];return e?e[t]:v.en[t]}function o(t,a,i){t.stopPropagation(),t.preventDefault();var o=e.isFunction(i)&&i.call(a,t)===!1;o||a.modal("hide")}function n(t){var e,a=0;for(e in t)a++;return a}function s(t,a){var i=0;e.each(t,function(t,e){a(t,e,i++)})}function r(t){var a,i;if("object"!=typeof t)throw new Error("Please supply an object of options");if(!t.message)throw new Error("Please specify a message");return t=e.extend({},u,t),t.buttons||(t.buttons={}),a=t.buttons,i=n(a),s(a,function(t,o,n){if(e.isFunction(o)&&(o=a[t]={callback:o}),"object"!==e.type(o))throw new Error("button with key "+t+" must be an object");o.label||(o.label=t),o.className||(2===i&&("ok"===t||"confirm"===t)||1===i?o.className="btn-primary":o.className="btn-default")}),t}function l(t,e){var a=t.length,i={};if(a<1||a>2)throw new Error("Invalid argument length");return 2===a||"string"==typeof t[0]?(i[e[0]]=t[0],i[e[1]]=t[1]):i=t[0],i}function d(t,a,i){return e.extend(!0,{},t,l(a,i))}function c(t,e,a,i){var o={className:"bootbox-"+t,buttons:p.apply(null,e)};return h(d(o,i,a),e)}function p(){for(var t={},e=0,a=arguments.length;e<a;e++){var o=arguments[e],n=o.toLowerCase(),s=o.toUpperCase();t[n]={label:i(s)}}return t}function h(t,e){var i={};return s(e,function(t,e){i[e]=!0}),s(t.buttons,function(t){if(i[t]===a)throw new Error("button key "+t+" is not allowed (options are "+e.join("\n")+")")}),t}var f={dialog:"<div class='bootbox modal' tabindex='-1' role='dialog'><div class='modal-dialog'><div class='modal-content'><div class='modal-body'><div class='bootbox-body'></div></div></div></div></div>",header:"<div class='modal-header'><h4 class='modal-title'></h4></div>",footer:"<div class='modal-footer'></div>",closeButton:"<button type='button' class='bootbox-close-button close' data-dismiss='modal' aria-hidden='true'>&times;</button>",form:"<form class='bootbox-form'></form>",inputs:{text:"<input class='bootbox-input bootbox-input-text form-control' autocomplete=off type=text />",textarea:"<textarea class='bootbox-input bootbox-input-textarea form-control'></textarea>",email:"<input class='bootbox-input bootbox-input-email form-control' autocomplete='off' type='email' />",select:"<select class='bootbox-input bootbox-input-select form-control'></select>",checkbox:"<div class='checkbox'><label><input class='bootbox-input bootbox-input-checkbox' type='checkbox' /></label></div>",date:"<input class='bootbox-input bootbox-input-date form-control' autocomplete=off type='date' />",time:"<input class='bootbox-input bootbox-input-time form-control' autocomplete=off type='time' />",number:"<input class='bootbox-input bootbox-input-number form-control' autocomplete=off type='number' />",password:"<input class='bootbox-input bootbox-input-password form-control' autocomplete='off' type='password' />"}},u={locale:e.zui&&e.zui.clientLang?e.zui.clientLang():"zh_cn",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body"},g={};g.alert=function(){var t;if(t=c("alert",["ok"],["message","callback"],arguments),t.callback&&!e.isFunction(t.callback))throw new Error("alert requires callback property to be a function when provided");return t.buttons.ok.callback=t.onEscape=function(){return!e.isFunction(t.callback)||t.callback.call(this)},g.dialog(t)},g.confirm=function(){var t;if(t=c("confirm",["confirm","cancel"],["message","callback"],arguments),t.buttons.cancel.callback=t.onEscape=function(){return t.callback.call(this,!1)},t.buttons.confirm.callback=function(){return t.callback.call(this,!0)},!e.isFunction(t.callback))throw new Error("confirm requires a callback");return g.dialog(t)},g.prompt=function(){var t,i,o,n,r,l,c;if(n=e(f.form),i={className:"bootbox-prompt",buttons:p("cancel","confirm"),value:"",inputType:"text"},t=h(d(i,arguments,["title","callback"]),["confirm","cancel"]),l=t.show===a||t.show,t.message=n,t.buttons.cancel.callback=t.onEscape=function(){return t.callback.call(this,null)},t.buttons.confirm.callback=function(){var a;switch(t.inputType){case"text":case"textarea":case"email":case"select":case"date":case"time":case"number":case"password":a=r.val();break;case"checkbox":var i=r.find("input:checked");a=[],s(i,function(t,i){a.push(e(i).val())})}return t.callback.call(this,a)},t.show=!1,!t.title)throw new Error("prompt requires a title");if(!e.isFunction(t.callback))throw new Error("prompt requires a callback");if(!f.inputs[t.inputType])throw new Error("invalid prompt type");switch(r=e(f.inputs[t.inputType]),t.inputType){case"text":case"textarea":case"email":case"date":case"time":case"number":case"password":r.val(t.value);break;case"select":var u={};if(c=t.inputOptions||[],!e.isArray(c))throw new Error("Please pass an array of input options");if(!c.length)throw new Error("prompt with select requires options");s(c,function(t,i){var o=r;if(i.value===a||i.text===a)throw new Error("given options in wrong format");i.group&&(u[i.group]||(u[i.group]=e("<optgroup/>").attr("label",i.group)),o=u[i.group]),o.append("<option value='"+i.value+"'>"+i.text+"</option>")}),s(u,function(t,e){r.append(e)}),r.val(t.value);break;case"checkbox":var v=e.isArray(t.value)?t.value:[t.value];if(c=t.inputOptions||[],!c.length)throw new Error("prompt with checkbox requires options");if(!c[0].value||!c[0].text)throw new Error("given options in wrong format");r=e("<div/>"),s(c,function(a,i){var o=e(f.inputs[t.inputType]);o.find("input").attr("value",i.value),o.find("label").append(i.text),s(v,function(t,e){e===i.value&&o.find("input").prop("checked",!0)}),r.append(o)})}return t.placeholder&&r.attr("placeholder",t.placeholder),t.pattern&&r.attr("pattern",t.pattern),t.maxlength&&r.attr("maxlength",t.maxlength),n.append(r),n.on("submit",function(t){t.preventDefault(),t.stopPropagation(),o.find(".btn-primary").click()}),o=g.dialog(t),o.off("shown.zui.modal"),o.on("shown.zui.modal",function(){r.focus()}),l===!0&&o.modal("show"),o},g.dialog=function(t){t=r(t);var i=e(f.dialog),n=i.find(".modal-dialog"),l=i.find(".modal-body"),d=t.buttons,c="",p={onEscape:t.onEscape};if(e.fn.modal===a)throw new Error("$.fn.modal is not defined; please double check you have included the Bootstrap JavaScript library. See http://getbootstrap.com/javascript/ for more details.");if(s(d,function(t,e){c+="<button data-bb-handler='"+t+"' type='button' class='btn "+e.className+"'>"+e.label+"</button>",p[t]=e.callback}),l.find(".bootbox-body").html(t.message),t.animate===!0&&i.addClass("fade"),t.className&&i.addClass(t.className),"large"===t.size?n.addClass("modal-lg"):"small"===t.size&&n.addClass("modal-sm"),t.title&&l.before(f.header),t.closeButton){var h=e(f.closeButton);t.title?i.find(".modal-header").prepend(h):h.css("margin-top","-10px").prependTo(l)}return t.title&&i.find(".modal-title").html(t.title),c.length&&(l.after(f.footer),i.find(".modal-footer").html(c)),i.on("hidden.zui.modal",function(t){t.target===this&&i.remove()}),i.on("shown.zui.modal",function(){i.find(".btn-primary:first").focus()}),"static"!==t.backdrop&&i.on("click.dismiss.zui.modal",function(t){i.children(".modal-backdrop").length&&(t.currentTarget=i.children(".modal-backdrop").get(0)),t.target===t.currentTarget&&i.trigger("escape.close.bb")}),i.on("escape.close.bb",function(t){p.onEscape&&o(t,i,p.onEscape)}),i.on("click",".modal-footer button",function(t){var a=e(this).data("bb-handler");o(t,i,p[a])}),i.on("click",".bootbox-close-button",function(t){o(t,i,p.onEscape)}),i.on("keyup",function(t){27===t.which&&i.trigger("escape.close.bb")}),e(t.container).append(i),i.modal({backdrop:!!t.backdrop&&"static",keyboard:!1,show:!1}),t.show&&i.modal("show"),i},g.setDefaults=function(){var t={};2===arguments.length?t[arguments[0]]=arguments[1]:t=arguments[0],e.extend(u,t)},g.hideAll=function(){return e(".bootbox").modal("hide"),g};var v={en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"},zh_cn:{OK:"确认",CANCEL:"取消",CONFIRM:"确认"},zh_tw:{OK:"確認",CANCEL:"取消",CONFIRM:"確認"}};return g.addLocale=function(t,a){return e.each(["OK","CANCEL","CONFIRM"],function(t,e){if(!a[e])throw new Error("Please supply a translation for '"+e+"'")}),v[t]={OK:a.OK,CANCEL:a.CANCEL,CONFIRM:a.CONFIRM},g},g.removeLocale=function(t){return delete v[t],g},g.setLocale=function(t){return g.setDefaults("locale",t)},g.init=function(a){return t(a||e)},g}),function(t,e){"use strict";var a="zui.draggable",i={container:"body",move:!0},o=0,n=function(e,a){var n=this;n.$=t(e),n.id=o++,n.options=t.extend({},i,n.$.data(),a),n.init()};n.DEFAULTS=i,n.NAME=a,n.prototype.init=function(){var i,o,n,s,r,l=this,d=l.$,c="before",p="drag",h="finish",f="."+a+"."+l.id,u="mousedown"+f,g="mouseup"+f,v="mousemove"+f,m=l.options,b=m.selector,y=m.handle,w=d,C=function(t){var e=t.pageX,a=t.pageY;r=!0;var o={left:e-n.x,top:a-n.y};w.removeClass("drag-ready").addClass("dragging"),m.move&&w.css(o),m[p]&&m[p]({event:t,element:w,startOffset:n,pos:o,offset:{x:e-i.x,y:a-i.y},smallOffset:{x:e-s.x,y:a-s.y}}),s.x=e,s.y=a,m.stopPropagation&&t.stopPropagation()},x=function(a){if(t(e).off(f),!r)return void w.removeClass("drag-ready");var o={left:a.pageX-n.x,top:a.pageY-n.y};w.removeClass("drag-ready dragging"),m.move&&w.css(o),m[h]&&m[h]({event:a,element:w,startOffset:n,pos:o,offset:{x:a.pageX-i.x,y:a.pageY-i.y},smallOffset:{x:a.pageX-s.x,y:a.pageY-s.y}}),a.preventDefault(),m.stopPropagation&&a.stopPropagation()},$=function(a){var l=t.zui.getMouseButtonCode(m.mouseButton);if(!(l>-1&&a.button!==l)){var d=t(this);if(b&&(w=y?d.closest(b):d),m[c]){var p=m[c]({event:a,element:w});if(p===!1)return}var h=t(m.container),f=w.offset();o=h.offset(),i={x:a.pageX,y:a.pageY},n={x:a.pageX-f.left+o.left,y:a.pageY-f.top+o.top},s=t.extend({},i),r=!1,w.addClass("drag-ready"),a.preventDefault(),m.stopPropagation&&a.stopPropagation(),t(e).on(v,C).on(g,x)}};y?d.on(u,y,$):b?d.on(u,b,$):d.on(u,$)},n.prototype.destroy=function(){var i="."+a+"."+this.id;this.$.off(i),t(e).off(i),this.$.data(a,null)},t.fn.draggable=function(e){return this.each(function(){var i=t(this),o=i.data(a),s="object"==typeof e&&e;o||i.data(a,o=new n(this,s)),"string"==typeof e&&o[e]()})},t.fn.draggable.Constructor=n}(jQuery,document),function(t){"use strict";function e(e,a){if(e===!1)return e;if(!e)return a;e===!0?e={add:!0,"delete":!0,edit:!0,sort:!0}:"string"==typeof e&&(e=e.split(","));var i;return t.isArray(e)&&(i={},t.each(e,function(e,a){t.isPlainObject(a)?i[a.action]=a:i[a]=!0}),e=i),t.isPlainObject(e)&&(i={},t.each(e,function(e,a){a?i[e]=t.extend({type:e},s[e],t.isPlainObject(a)?a:null):i[e]=!1}),e=i),a?t.extend(!0,{},a,e):e}function a(e,a,i){return a=a||e.type,t(i||e.template).addClass("tree-action").attr(t.extend({"data-type":a,title:e.title||""},e.attr)).data("action",e)}var i="zui.tree",o=0,n=function(e,a){this.name=i,this.$=t(e),this.getOptions(a),this._init()},s={sort:{template:'<a class="sort-handler" href="javascript:;"><i class="icon icon-move"></i></a>'},add:{template:'<a href="javascript:;"><i class="icon icon-plus"></i></a>'},edit:{template:'<a href="javascript:;"><i class="icon icon-pencil"></i></a>'},"delete":{template:'<a href="javascript:;"><i class="icon icon-trash"></i></a>'}};n.DEFAULTS={animate:null,initialState:"normal",toggleTemplate:'<i class="list-toggle icon"></i>'},n.prototype.add=function(e,a,i,o,n){var s,r=t(e),l=this.options;if(r.is("li")?(s=r.children("ul"),s.length||(s=t("<ul/>"),r.append(s),this._initList(s,r))):s=r,s){var d=this;t.isArray(a)||(a=[a]),t.each(a,function(e,a){var i=t("<li/>").data(a).appendTo(s);void 0!==a.id&&i.attr("data-id",a.id);var o=l.itemWrapper?t(l.itemWrapper===!0?'<div class="tree-item-wrapper"/>':l.itemWrapper).appendTo(i):i;if(a.html)o.html(a.html);else if(t.isFunction(d.options.itemCreator)){var n=d.options.itemCreator(i,a);n!==!0&&n!==!1&&o.html(n)}else a.url?o.append(t("<a/>",{href:a.url}).text(a.title||a.name)):o.append(t("<span/>").text(a.title||a.name));d._initItem(i,a.idx||e,s,a),a.children&&a.children.length&&d.add(i,a.children)}),this._initList(s),i&&!s.hasClass("tree")&&d.expand(s.parent("li"),o,n)}},n.prototype.reload=function(e){var a=this;e&&(a.$.empty(),a.add(a.$,e)),a.isPreserve&&a.store.time&&a.$.find("li:not(.tree-action-item)").each(function(){var e=t(this);a[a.store[e.data("id")]?"expand":"collapse"](e,!0,!0)})},n.prototype._initList=function(i,o,n,s){var r=this;i.hasClass("tree")?(n=0,o=null):(o=(o||i.closest("li")).addClass("has-list"),o.find(".list-toggle").length||o.prepend(this.options.toggleTemplate),n=n||o.data("idx"));var l=i.attr("data-idx",n||0).children("li:not(.tree-action-item)").each(function(e){r._initItem(t(this),e+1,i)});1!==l.length||l.find("ul").length||l.addClass("tree-single-item"),s=s||(o?o.data():null);var d=e(s?s.actions:null,this.actions);if(d){if(d.add&&d.add.templateInList!==!1){var c=i.children("li.tree-action-item");c.length?c.detach().appendTo(i):t('<li class="tree-action-item"/>').append(a(d.add,"add",d.add.templateInList)).appendTo(i)}d.sort&&i.sortable(t.extend({dragCssClass:"tree-drag-holder",trigger:".sort-handler",selector:"li:not(.tree-action-item)",finish:function(t){r.callEvent("action",{action:d.sort,$list:i,target:t.target,item:s})}},d.sort.options,t.isPlainObject(this.options.sortable)?this.options.sortable:null))}o&&(o.hasClass("open")||s&&s.open)&&o.addClass("open in")},n.prototype._initItem=function(i,o,n,s){if(void 0===o){var r=i.prev("li");o=r.length?r.data("idx")+1:1}if(n=n||i.closest("ul"),i.attr("data-idx",o).removeClass("tree-single-item"),!i.data("id")){var l=o;n.hasClass("tree")||(l=n.parent("li").data("id")+"-"+l),i.attr("data-id",l)}s=s||i.data();var d=e(s.actions,this.actions);if(d){var c=i.find(".tree-actions");c.length||(c=t('<div class="tree-actions"/>').appendTo(this.options.itemWrapper?i.find(".tree-item-wrapper"):i),t.each(d,function(t,e){e&&c.append(a(e,t))}))}var p=i.children("ul");p.length&&this._initList(p,i,o,s)},n.prototype._init=function(){var a=this.options,n=this;this.actions=e(a.actions),this.$.addClass("tree"),a.animate&&this.$.addClass("tree-animate"),this._initList(this.$);var s=a.initialState,r=t.zui&&t.zui.store&&t.zui.store.enable;r&&(this.selector=i+"::"+(a.name||"")+"#"+(this.$.attr("id")||o++),this.store=t.zui.store[a.name?"get":"pageGet"](this.selector,{})),"preserve"===s&&(r?this.isPreserve=!0:this.options.initialState=s="normal"),this.reload(a.data),r&&(this.isPreserve=!0),"expand"===s?this.expand():"collapse"===s&&this.collapse(),this.$.on("click",'.list-toggle,a[href="#"],.tree-toggle',function(e){var a=t(this),i=a.parent("li");n.callEvent("hit",{target:i,item:i.data()}),n.toggle(i),a.is("a")&&e.preventDefault()}).on("click",".tree-action",function(){var e=t(this),a=e.data();if(a.action&&(a=a.action),"sort"!==a.type){var i=e.closest("li:not(.tree-action-item)");n.callEvent("action",{action:a,target:this,$item:i,item:i.data()})}})},n.prototype.preserve=function(e,a,i){if(this.isPreserve)if(e)a=a||e.data("id"),i=void 0===i&&e.hasClass("open"),i?this.store[a]=i:delete this.store[a],this.store.time=(new Date).getTime(),t.zui.store[this.options.name?"set":"pageSet"](this.selector,this.store);else{var o=this;this.store={},this.$.find("li").each(function(){o.preserve(t(this))})}},n.prototype.expand=function(t,e,a){t?(t.addClass("open"),!e&&this.options.animate?setTimeout(function(){t.addClass("in")},10):t.addClass("in")):t=this.$.find("li.has-list").addClass("open in"),a||this.preserve(t),this.callEvent("expand",t,this)},n.prototype.show=function(e,a,i){var o=this;e.each(function(){var e=t(this);if(o.expand(e,a,i),e)for(var n=e.parent("ul");n&&n.length&&!n.hasClass("tree");){var s=n.parent("li");s.length?(o.expand(s,a,i),n=s.parent("ul")):n=!1}})},n.prototype.collapse=function(t,e,a){t?!e&&this.options.animate?(t.removeClass("in"),setTimeout(function(){t.removeClass("open")},300)):t.removeClass("open in"):t=this.$.find("li.has-list").removeClass("open in"),a||this.preserve(t),this.callEvent("collapse",t,this)},n.prototype.toggle=function(t){var e=t&&t.hasClass("open")||t===!1||void 0===t&&this.$.find("li.has-list.open").length;this[e?"collapse":"expand"](t)},n.prototype.getOptions=function(e){this.options=t.extend({},n.DEFAULTS,this.$.data(),e),null===this.options.animate&&this.$.hasClass("tree-animate")&&(this.options.animate=!0)},n.prototype.toData=function(e,a){t.isFunction(e)&&(a=e,e=null),e=e||this.$;var i=this;return e.children("li:not(.tree-action-item)").map(function(){var e=t(this),o=e.data();delete o["zui.droppable"];var n=e.children("ul");return n.length&&(o.children=i.toData(n)),t.isFunction(a)?a(o,e):o}).get()},n.prototype.callEvent=function(e,a){var i;return t.isFunction(this.options[e])&&(i=this.options[e](a,this)),this.$.trigger(t.Event(e+"."+this.name,a)),i},t.fn.tree=function(e,a){return this.each(function(){var o=t(this),s=o.data(i),r="object"==typeof e&&e;s||o.data(i,s=new n(this,r)),"string"==typeof e&&s[e](a)})},t.fn.tree.Constructor=n,t(function(){t('[data-ride="tree"]').tree()})}(jQuery),function(t,e){function a(e,o){if(t.isArray(e))return void t.each(e,function(t,e){a(e,o)});var n={};n[e]=i[e],o?t.extend(o,n):t.extend(n)}var i=t.zui;i&&(a(["uuid","callEvent","clientLang","browser","messager","Messager","showMessager","closeModal","ajustModalPosition","ModalTrigger","modalTrigger","store"]),a(["Color","imgReady","messager","Messager","showMessager","closeModal","ajustModalPosition","ModalTrigger","modalTrigger","store"],e))}(jQuery,window),function(t,e,a){"use strict";function i(t,a,i,o){return e.abs((i-t)*(o-a))}function o(t,e,a,i,o,n){return t>=a&&t<=o&&e>=i&&e<=n}function n(t,a,n,s,r,l,d,c){var p=e.max(t,r),h=e.max(a,l),f=e.min(n,d),u=e.min(s,c);return o(p,h,t,a,n,s)&&o(f,u,t,a,n,s)&&o(p,h,r,l,d,c)&&o(f,u,r,l,d,c)?i(p,h,f,u):0}var s=t.zui.Messager?new t.zui.Messager({placement:"top",time:1500,close:0,scale:!1,fade:!1}):0,r=function(e,a){this.$=t(e),this.options=this.getOptions(a),this.draggable=this.$.hasClass("dashboard-draggable")||this.options.draggable,this.init()};r.DEFAULTS={minHeight:100,height:360,shadowType:"normal",sensitive:!1,circleShadowSize:100,onlyRefreshBody:!0,resizable:!0,resizeMessage:!1},r.prototype.getOptions=function(e){return e=t.extend({},r.DEFAULTS,this.$.data(),e)},r.prototype.handleRemoveEvent=function(){var e=this.options.afterPanelRemoved,i=this.options.panelRemovingTip;this.$.on("click",".remove-panel",function(){var o=t(this).closest(".panel"),n=o.data("name")||o.find(".panel-heading").text().replace("\n","").replace(/(^\s*)|(\s*$)/g,""),s=o.attr("data-id");(i===a||i===!1||confirm(i.format(n)))&&(o.parent().remove(),e&&t.isFunction(e)&&e(s))})},r.prototype.handleRefreshEvent=function(){var e=this,a=this.options.onlyRefreshBody;this.$.on("click",".refresh-panel",function(){var i=t(this).closest(".panel");e.refresh(i,a)})},r.prototype.handleDraggable=function(){var a=this.$,o=this.options,s="circle"===o.shadowType,r=o.circleShadowSize,l=r/2,d=o.afterOrdered;this.$.addClass("dashboard-draggable"),this.$.on("mousedown",".panel-actions, .drag-disabled",function(t){t.stopPropagation()});var c;this.$.on("mousedown",".panel-heading, .panel-drag-handler",function(p){function h(a){var s=E.data("mouseOffset");g=a.pageX-s.x,v=a.pageY-s.y,m=g+L,b=v+A,E.css({left:g,top:v}),T.find(".dragging-in").removeClass("dragging-in"),C=!1,w=null;var r,l=0;T.children(":not(.dragging-col)").each(function(){var s=t(this);if(s.hasClass("dragging-col-holder"))return C=!o.sensitive||l<100,!0;var d=s.children(".panel"),c=d.offset(),p=d.width(),h=d.height(),f=c.left,u=c.top;if(o.sensitive)f-=S.left,u-=S.top,r=n(g,v,m,b,f,u,f+p,u+h),r>100&&r>l&&r>e.min(i(g,v,m,b),i(f,u,f+p,u+h))/3&&(l=r,w=s);else{var y=a.pageX,x=a.pageY;if(y>f&&x>u&&y<f+p&&x<u+h)return w=s,!1}}),w&&(y&&clearTimeout(y),x=w,y=setTimeout(f,50)),a.preventDefault()}function f(){x&&(x.addClass("dragging-in"),C?D.insertAfter(x):D.insertBefore(x),a.addClass("dashboard-holding"),y=null,x=null)}function u(e){y&&clearTimeout(y);var i=$.data("order");$.parent().insertAfter(D);var o=0,n={};T.children(":not(.dragging-col-holder)").each(function(){var e=t(this).children(".panel");e.data("order",++o),n[e.data("id")||e.attr("id")]=o,e.parent().attr("data-order",o)}),i!=n[$.data("id")||$.attr("id")]&&(T.data("orders",n),d&&t.isFunction(d)&&d(n)),E.remove(),a.removeClass("dashboard-holding"),a.find(".dragging-col").removeClass("dragging-col"),a.find(".panel-dragging").removeClass("panel-dragging"),T.find(".dragging-in").removeClass("dragging-in"),a.removeClass("dashboard-dragging"),t(document).off("mousemove",h).off("mouseup",u),e.preventDefault()}var g,v,m,b,y,w,C,x,$=t(this).closest(".panel"),k=$.parent(),T=$.closest(".row"),E=$.clone().addClass("panel-dragging-shadow"),z=$.offset(),S=a.offset(),D=T.find(".dragging-col-holder"),L=$.width(),A=$.height();D.length||(D=t('<div class="dragging-col-holder"><div class="panel"></div></div>').removeClass("dragging-col").appendTo(T)),c&&D.removeClass(c),D.addClass(c=k.attr("class")),D.insertBefore(k).find(".panel").replaceWith($.clone().addClass("panel-dragging panel-dragging-holder")),a.addClass("dashboard-dragging"),$.addClass("panel-dragging").parent().addClass("dragging-col"),E.css({left:z.left-S.left,top:z.top-S.top,width:L,height:A}).appendTo(a).data("mouseOffset",{x:p.pageX-z.left+S.left,y:p.pageY-z.top+S.top}),s&&(E.addClass("circle"),setTimeout(function(){E.css({left:p.pageX-S.left-l,top:p.pageY-S.top-l,width:r,height:r}).data("mouseOffset",{x:S.left+l,y:S.top+l})},100)),t(document).on("mousemove",h).on("mouseup",u),p.preventDefault()})},r.prototype.handlePanelPadding=function(){this.$.find(".panel-body > table, .panel-body > .list-group").parent().addClass("no-padding")},r.prototype.updatePanelHeight=function(){var a=this,i=a.options.height,o=a.options.minHeight,n={};return a.id&&t.zui.store&&(n=t.zui.store.pageGet("zui.dashboard."+a.id+".sizeConfig",n)),this.$.children(".row").each(function(){var a=t(this),s=a.width(),r=[],l=[],d=0;a.children(":not(.dragging-col-holder)").each(function(){var e=t(this),a=e.width();d+a>s?(l.length&&r.push(l),l=[e],d=a):(d+=a,l.push(e))}),l.length&&r.push(l),r.length&&t.each(r,function(a){l=r[a];var s=0,d=[],c=!1;t.each(l,function(t){var i=l[t].data("row-id",a),r=i.children(".panel:first");if(d.push(r),!c){var p=r.data("newHeight");if(p)r.data("newHeight",null).data("height",p),s=e.max(o,p),c=!0;else{var h=r.data("height")||n[r.data("id")];h&&(s=e.max(s,h))}}}),s||(s=i),t.each(d,function(t){var e=d[t].css("height",s);n[e.data("id")]=e.data("height")})})}),a.id&&t.zui.store&&t.zui.store.pageSet("zui.dashboard."+a.id+".sizeConfig",n),n},r.prototype.handleResizeEvent=function(){var a=this,i=a.options,o=i.resizable,n=i.onResize,r=i.minHeight,l=i.resizeMessage,d=l&&s;a.$.on("mousedown",".resize-handle",function(i){var o=t(this),l=o.hasClass("resize-vertical"),c=o.parent().addClass("resizing").toggleClass("resizing-v",l).toggleClass("resizing-h",!l),p=c.closest(".row"),h=c.children(".panel"),f=i.pageX,u=i.pageY,g=c.width(),v=h.height(),m=p.width(),b=e.round(12*g/m),y=b;l||c.attr("data-grid",b);var w=function(t){if(l)h.css("height",e.max(r,v+(t.pageY-u)));else{var a=t.pageX,i=e.max(1,e.min(12,e.round(12*(g+(a-f))/m)));y!=i&&(c.attr("data-grid",i).css("width",100*i/12+"%"),d&&s[s.isShow?"update":"show"](e.round(100*i/12)+"% ("+i+"/12)"),y=i)}t.preventDefault(),t.stopPropagation()},C=function(i){if(c.removeClass("resizing resizing-v resizing-h"),l){var o=e.max(r,v+(i.pageY-u));if(o!==v){if(t.isFunction(n)){var p=function(){h.css("height",v).data("height",v),a.updatePanelHeight()},f=n({type:"vertical",id:h.data("id"),element:c,old:v,height:o,revert:p});f===!1&&p()}h.css("height",o).data("newHeight",o)}}else{var g=c.attr("data-grid");if(b!=g&&t.isFunction(n)){var p=function(){c.attr("data-grid",b).css("width",null),a.updatePanelHeight()},f=n({type:"horizontal",id:h.data("id"),element:c,old:b,grid:g,revert:p});f===!1?p():f!==!0&&d&&s.show(e.round(100*g/12)+"% ("+g+"/12)")}}a.updatePanelHeight(),t("body").off("mousemove.resize",w).off("mouseup.resize",C),i.preventDefault(),i.stopPropagation()};t("body").on("mousemove.resize",w).on("mouseup.resize",C),i.preventDefault(),i.stopPropagation()});var c=a.$.children(".row").children(":not(.dragging-col-holder)");o!==!0&&"horizontal"!==o||c.append('<div class="resize-handle resize-horizontal"><i class="icon icon-resize-h"></i></div>'),o!==!0&&"vertical"!==o||c.append('<div class="resize-handle resize-vertical"><i class="icon icon-resize-v"></i></div>')},r.prototype.refresh=function(e,i){i===a&&(i=this.options.onlyRefreshBody);var o=this.options.afterRefresh;e=t(e);var n=e.data("url");n&&(e.addClass("panel-loading").find(".panel-heading .icon-refresh,.panel-heading .icon-repeat").addClass("icon-spin"),t.ajax({url:n,dataType:"html"}).done(function(a){var n=t(a);n.hasClass("panel")?e.empty().append(n.children()):i?e.find(".panel-body").empty().html(a):e.html(a),t.isFunction(o)&&o.call(this,{result:!0,data:a,$panel:e})}).fail(function(){e.addClass("panel-error"),t.isFunction(o)&&o.call(this,{result:!1,$panel:e})}).always(function(){e.removeClass("panel-loading"),e.find(".panel-heading .icon-refresh,.panel-heading .icon-repeat").removeClass("icon-spin")}))},r.prototype.init=function(){var e=this.options,i=this;if(i.id=e.id?e.id:i.$.attr("id"),e.data){var o=t('<div class="row"/>');t.each(e.data,function(e,i){var n=t('<div class="col-sm-'+(i.colWidth||4)+'"/>');i.colAttrs&&n.attr(i.colAttrs);var s=t('<div class="panel" data-id="'+(i.id||t.zui.uuid())+'"/>');if(i.panelAttrs&&s.attr(i.panelAttrs),i.height!==a&&s.data("height",i.height),i.content!==a)if(t.isFunction(i.content)){var r=i.content(s);r!==!0&&s.html(r)}else s.html(i.content);o.append(n.append(s.data("url",i.url)))}),i.$.append(o)}i.updatePanelHeight(),i.handlePanelPadding(),i.handleRemoveEvent(),i.handleRefreshEvent(),e.resizable&&i.handleResizeEvent(),i.draggable&&i.handleDraggable();var n=0;i.$.find(".panel").each(function(){var a=t(this);a.data("order",++n),a.attr("id")||a.attr("id","panel"+n),a.attr("data-id")||a.attr("data-id",n),i.refresh(a,e.onlyRefreshBody)}),i.$.find('[data-toggle="tooltip"]').tooltip({container:"body"})},t.fn.dashboard=function(e){return this.each(function(){var a=t(this),i=a.data("zui.dashboard"),o="object"==typeof e&&e;i||a.data("zui.dashboard",i=new r(this,o)),"string"==typeof e&&i[e]()})},t.fn.dashboard.Constructor=r}(jQuery,Math,void 0),function(t){"use strict";var e="zui.colorPicker",a='<div class="colorpicker"><button type="button" class="btn dropdown-toggle" data-toggle="dropdown"><span class="cp-title"></span><i class="ic"></i></button><ul class="dropdown-menu clearfix"></ul></div>',i={zh_cn:{errorTip:"不是有效的颜色值"},zh_tw:{errorTip:"不是有效的顏色值"},en:{errorTip:"Not a valid color value"}},o=function(a,i){this.name=e,this.$=t(a),this.getOptions(i),this.init()};o.DEFAULTS={colors:["#00BCD4","#388E3C","#3280fc","#3F51B5","#9C27B0","#795548","#F57C00","#F44336","#E91E63"],pullMenuRight:!0,wrapper:"btn-wrapper",tileSize:30,lineCount:5,optional:!0,tooltip:"top",icon:"caret-down"},o.prototype.init=function(){var e=this.options,i=this;this.$picker=t(a).addClass(e.wrapper),this.$picker.find(".cp-title").toggle(void 0!==e.title).text(e.title),this.$menu=this.$picker.find(".dropdown-menu").toggleClass("pull-right",e.pullMenuRight),this.$btn=this.$picker.find(".btn.dropdown-toggle"),this.$btn.find(".ic").addClass("icon-"+e.icon),e.btnTip&&this.$picker.attr("data-toggle","tooltip").tooltip({title:e.btnTip,placement:e.tooltip,container:"body"}),this.$.attr("data-provide",null).after(this.$picker),this.colors={},t.each(this.options.colors,function(e,a){if(t.zui.Color.isColor(a)){var o=new t.zui.Color(a);i.colors[o.toCssStr()]=o}}),this.updateColors();var i=this;this.$picker.on("click",".cp-tile",function(){i.setValue(t(this).data("color"))});var o=this.$,n=function(){var a=o.val(),n=t.zui.Color.isColor(a);o.parent().toggleClass("has-error",!(n||e.optional&&""===a)),n?i.setValue(a,!0):e.optional&&""===a?o.tooltip("hide"):o.is(":focus")||o.tooltip("show",e.errorTip)};o.is("input:not([type=hidden])")?(e.tooltip&&o.attr("data-toggle","tooltip").tooltip({trigger:"manual",placement:e.tooltip,tipClass:"tooltip-danger",container:"body"}),o.on("keyup paste input change",n)):o.appendTo(this.$picker),n()},o.prototype.addColor=function(e){e instanceof t.zui.Color||(e=new t.zui.Color(e));var a=e.toCssStr(),i=this.options;this.colors[a]||(this.colors[a]=e);var o=t('<a href="###" class="cp-tile"></a>',{titile:e}).data("color",e).css({color:e.contrast().toCssStr(),background:a,"border-color":e.luma()>.43?"#ccc":"transparent"}).attr("data-color",a);this.$menu.append(t("<li/>").css({width:i.tileSize,height:i.tileSize}).append(o)),i.optional&&this.$menu.find(".cp-tile.empty").parent().detach().appendTo(this.$menu)},o.prototype.updateColors=function(e){var a=(this.$picker,this.$menu.empty()),i=this.options,e=e||this.colors,o=this,n=0;if(t.each(e,function(t,e){o.addColor(e),n++}),i.optional){var s=t('<li><a class="cp-tile empty" href="###"></a></li>').css({width:i.tileSize,height:i.tileSize});this.$menu.append(s),n++}a.css("width",Math.min(n,i.lineCount)*i.tileSize+6)},o.prototype.setValue=function(e,a){var i=this.options;this.$menu.find(".cp-tile.active").removeClass("active");var o="";if(e){var n=new t.zui.Color(e);o=n.toCssStr().toLowerCase(),this.$btn.css({background:o,color:n.contrast().toCssStr(),borderColor:n.luma()>.43?"#ccc":o}),this.colors[o]||this.addColor(n),a||this.$.val().toLowerCase()===o||this.$.val(o).trigger("change"),this.$menu.find('.cp-tile[data-color="'+o+'"]').addClass("active"),this.$.tooltip("hide"),this.$.trigger("colorchange",n)}else this.$btn.attr("style",null),a||""===this.$.val()||this.$.val(o).trigger("change"),i.optional&&this.$.tooltip("hide"),this.$menu.find(".cp-tile.empty").addClass("active"),this.$.trigger("colorchange",null);i.updateBorder&&t(i.updateBorder).css("border-color",o),i.updateBackground&&t(i.updateBackground).css("background-color",o),i.updateColor&&t(i.updateText).css("color",o),i.updateText&&t(i.updateText).text(o)},o.prototype.getOptions=function(e){var a=t.extend({},o.DEFAULTS,this.$.data(),e);"string"==typeof a.colors&&(a.colors=a.colors.split(","));var n=(a.lang||t.zui.clientLang()).toLowerCase();a.errorTip||(a.errorTip=i[n].errorTip),t.fn.tooltip||(a.btnTip=!1),this.options=a},t.fn.colorPicker=function(a){return this.each(function(){var i=t(this),n=i.data(e),s="object"==typeof a&&a;n||i.data(e,n=new o(this,s)),"string"==typeof a&&n[a]()})},t.fn.colorPicker.Constructor=o,t(function(){t('[data-provide="colorpicker"]').colorPicker()})}(jQuery),function(t,e,a){"use strict";var i=0,o='<div class="messager messager-{type} {placement}" style="display: none"><div class="messager-content"></div><div class="messager-actions"></div></div>',n={type:"default",placement:"top",time:4e3,parent:"body",icon:null,close:!0,fade:!0,scale:!0},s={},r=function(e,r){t.isPlainObject(e)&&(r=e,e=r.message);var l=this;r=l.options=t.extend({},n,r),l.id=r.id||i++;var d=s[l.id];d&&d.destroy(),s[l.id]=l,l.message=(r.icon?'<i class="icon-'+r.icon+' icon"></i> ':"")+e,l.$=t(o.format(r)).toggleClass("fade",r.fade).toggleClass("scale",r.scale).attr("id","messager-"+l.id),r.cssClass&&l.$.addClass(r.cssClass);var c=!1,p=l.$.find(".messager-actions"),h=function(e){var i=t('<button type="button" class="action action-'+e.name+'"/>');"close"===e.name&&i.addClass("close"),e.html!==a&&i.html(e.html),e.icon!==a&&i.append('<i class="action-icon icon-'+e.icon+'"/>'),e.text!==a&&i.append('<span class="action-text">'+e.text+"</span>"),e.tooltip!==a&&i.attr("title",e.tooltip).tooltip(),i.data("action",e),p.append(i)};r.actions&&t.each(r.actions,function(t,e){e.name===a&&(e.name=t),"close"==e.name&&(c=!0),h(e)}),!c&&r.close&&h({name:"close",html:"&times;"}),l.$.on("click",".action",function(e){var a,i=t(this).data("action");r.onAction&&(a=r.onAction.call(this,i.name,i,l),a===!1)||t.isFunction(i.action)&&(a=i.action.call(this,l),
  a===!1)||(l.hide(),e.stopPropagation())}),l.$.on("click",function(t){if(r.onAction){var e=r.onAction.call(this,"content",null,l);e===!0&&l.hide()}});var f=l.$.find(".messager-content").html(l.message);r.contentClass&&f.addClass(r.contentClass),l.$.data("zui.messager",l),r.show&&l.message!==a&&l.show()};r.prototype.update=function(e,a){var i=this,o=i.options;i.$.removeClass("messager-"+o.type),a&&(o=t.extend(o,a)),i.$.addClass("messager-"+o.type),e&&(i.message=(o.icon?'<i class="icon-'+o.icon+' icon"></i> ':"")+e,i.$.find(".messager-content").html(i.message))},r.prototype.show=function(i,o){var n=this,s=this.options;if(t.isFunction(i)){var r=o;o=i,r!==a&&(i=r)}if(n.isShow)return void n.hide(function(){n.show(i,o)});n.hiding&&(clearTimeout(n.hiding),n.hiding=null),n.update(i);var l=s.placement,d=t(s.parent),c=d.children(".messagers-holder."+l);if(c.length||(c=t("<div/>").attr("class","messagers-holder "+l).appendTo(d)),c.append(n.$),"center"===l){var p=t(e).height()-c.height();c.css("top",Math.max(-p,p/2))}return n.$.show().addClass("in"),s.time&&(n.hiding=setTimeout(function(){n.hide()},s.time)),n.isShow=!0,o&&o(),n},r.prototype.hide=function(t,e){t===!0&&(e=!0,t=null);var a=this;if(a.$.hasClass("in")){a.$.removeClass("in");var i=function(){var e=a.$.parent();a.$.detach(),e.children().length||e.remove(),t&&t(!0)};e?i():setTimeout(i,200)}else t&&t(!1);a.isShow=!1},r.prototype.destroy=function(){var t=this;t.hide(function(){t.$.remove(),t.$=null},!0),delete s[t.id]},r.all=s;var l=function(){t(".messager").each(function(){var e=t(this).data("zui.messager");e&&e.hide&&e.hide(!0)})},d=function(e,i){"string"==typeof i&&(i={type:i}),i=t.extend({},i),i.id===a&&l();var o=s[i.id]||new r(e,i);return o.show(),o},c=function(t){return"string"==typeof t?{placement:t}:t},p={show:d,hide:l};t.each({primary:0,success:"ok-sign",info:"info-sign",warning:"warning-sign",danger:"exclamation-sign",important:0,special:0},function(e,a){p[e]=function(i,o){return d(i,t.extend({type:e,icon:a||null},c(o)))}}),t.zui({Messager:r,showMessager:d,messager:p})}(jQuery,window,void 0),function(t){"use strict";var e="zui.selectable",a=function(a,i){this.name=e,this.$=t(a),this.id=t.zui.uuid(),this.selectOrder=1,this.selections={},this.getOptions(i),this._init()},i=function(t,e,a){return t>=a.left&&t<=a.left+a.width&&e>=a.top&&e<=a.top+a.height},o=function(t,e){var a=Math.max(t.left,e.left),o=Math.max(t.top,e.top),n=Math.min(t.left+t.width,e.left+e.width),s=Math.min(t.top+t.height,e.top+e.height);return i(a,o,t)&&i(n,s,t)&&i(a,o,e)&&i(n,s,e)};a.DEFAULTS={selector:"li,tr,div",trigger:"",selectClass:"active",rangeStyle:{border:"1px solid "+(t.zui.colorset?t.zui.colorset.primary:"#3280fc"),backgroundColor:t.zui.colorset?new t.zui.Color(t.zui.colorset.primary).fade(20).toCssStr():"rgba(50, 128, 252, 0.2)"},clickBehavior:"toggle",ignoreVal:3},a.prototype.getOptions=function(e){this.options=t.extend({},a.DEFAULTS,this.$.data(),e)},a.prototype.select=function(t){this.toggle(t,!0)},a.prototype.unselect=function(t){this.toggle(t,!1)},a.prototype.toggle=function(e,a,i){var o,n,s=this.options.selector,r=this;if(void 0===e)return void this.$.find(s).each(function(){r.toggle(this,a)});if("object"==typeof e?(o=t(e).closest(s),n=o.data("id")):(n=e,o=r.$.find('.slectable-item[data-id="'+n+'"]')),o&&o.length){if(n||(n=t.zui.uuid(),o.attr("data-id",n)),void 0!==a&&null!==a||(a=!r.selections[n]),!!a!=!!r.selections[n]){var l;t.isFunction(i)&&(l=i(a)),l!==!0&&(r.selections[n]=!!a&&r.selectOrder++,r.callEvent(a?"select":"unselect",{id:n,selections:r.selections,target:o,selected:r.getSelectedArray()},r))}o.toggleClass(r.options.selectClass,a)}},a.prototype.getSelectedArray=function(){var e=[];return t.each(this.selections,function(t,a){a&&e.push(t)}),e},a.prototype._init=function(){var e,a,i,n,s,r,l,d=this.options,c=this,p=d.ignoreVal,h=!0,f="."+this.name+"."+this.id,u=t.isFunction(d.checkFunc)?d.checkFunc:null,g=t.isFunction(d.rangeFunc)?d.rangeFunc:null,v=!1,m=null,b="mousedown"+f,y=function(){n&&c.$children.each(function(){var e=t(this),a=e.offset();a.width=e.outerWidth(),a.height=e.outerHeight();var i=g?g.call(this,n,a):o(n,a);if(u){var s=u.call(c,{intersect:i,target:e,range:n,targetRange:a});s===!0?c.select(e):s===!1&&c.unselect(e)}else i?c.select(e):c.multiKey||c.unselect(e)})},w=function(o){v&&(s=o.pageX,r=o.pageY,n={width:Math.abs(s-e),height:Math.abs(r-a),left:s>e?e:s,top:r>a?a:r},h&&n.width<p&&n.height<p||(i||(i=t('.selectable-range[data-id="'+c.id+'"]'),i.length||(i=t('<div class="selectable-range" data-id="'+c.id+'"></div>').css(t.extend({zIndex:1060,position:"absolute",top:e,left:a,pointerEvents:"none"},c.options.rangeStyle)).appendTo(t("body")))),i.css(n),clearTimeout(l),l=setTimeout(y,10),h=!1))},C=function(e){t(document).off(f),clearTimeout(m),v&&(v=!1,i&&i.remove(),h||n&&(clearTimeout(l),y(),n=null),c.callEvent("finish",{selections:c.selections,selected:c.getSelectedArray()}),e.preventDefault())},x=function(o){if(v)return C(o);var n=t.zui.getMouseButtonCode(d.mouseButton);if(!(n>-1&&o.button!==n||c.altKey||3===o.which||c.callEvent("start",o)===!1)){var s=c.$children=c.$.find(d.selector);s.addClass("slectable-item");var r=c.multiKey?"multi":d.clickBehavior;if("multi"===r?c.toggle(o.target):"single"===r?(c.unselect(),c.select(o.target)):"toggle"===r&&c.toggle(o.target,null,function(t){c.unselect()}),c.callEvent("startDrag",o)===!1)return void c.callEvent("finish",{selections:c.selections,selected:c.getSelectedArray()});e=o.pageX,a=o.pageY,i=null,h=!0,v=!0,t(document).on("mousemove"+f,w).on("mouseup"+f,C),m=setTimeout(function(){t(document).on(b,C)},10),o.preventDefault()}},$=d.container&&"default"!==d.container?t(d.container):this.$;d.trigger?$.on(b,d.trigger,x):$.on(b,x),t(document).on("keydown",function(t){var e=t.keyCode;17===e||91==e?c.multiKey=e:18===e&&(c.altKey=!0)}).on("keyup",function(t){c.multiKey=!1,c.altKey=!1})},a.prototype.callEvent=function(e,a){var i=t.Event(e+"."+this.name);this.$.trigger(i,a);var o=i.result,n=this.options[e];return t.isFunction(n)&&(o=n.apply(this,t.isArray(a)?a:[a])),o},t.fn.selectable=function(i){return this.each(function(){var o=t(this),n=o.data(e),s="object"==typeof i&&i;n||o.data(e,n=new a(this,s)),"string"==typeof i&&n[i]()})},t.fn.selectable.Constructor=a,t(function(){t('[data-ride="selectable"]').selectable()})}(jQuery),function(t){"use strict";var e="zui.datatable",a=t.zui.store,i=function(a,i){this.name=e,this.$=t(a),this.isTable="TABLE"===this.$[0].tagName,this.firstShow=!0,this.isTable?(this.$table=this.$,this.id="datatable-"+(this.$.attr("id")||t.zui.uuid())):(this.$datatable=this.$.addClass("datatable"),this.$.attr("id")?this.id=this.$.attr("id"):(this.id="datatable-"+t.zui.uuid(),this.$.attr("id",this.id))),this.getOptions(i),this.load(),this.callEvent("ready")};i.DEFAULTS={checkable:!1,checkByClickRow:!0,checkedClass:"active",checkboxName:null,selectable:!0,sortable:!1,storage:!0,fixedHeader:!1,fixedHeaderOffset:0,fixedLeftWidth:"30%",fixedRightWidth:"30%",flexHeadDrag:!0,scrollPos:"in",rowHover:!0,colHover:!0,hoverClass:"hover",colHoverClass:"col-hover",fixCellHeight:!0,mergeRows:!1,minColWidth:20,minFixedLeftWidth:200,minFixedRightWidth:200,minFlexAreaWidth:200},i.prototype.getOptions=function(e){var a=this.$;e=t.extend({},i.DEFAULTS,this.$.data(),e),e.tableClass=e.tableClass||"",e.tableClass=" "+e.tableClass+" table-datatable",t.each(["bordered","condensed","striped","condensed","fixed"],function(t,i){i="table-"+i,a.hasClass(i)&&(e.tableClass+=" "+i)}),(a.hasClass("table-hover")||e.rowHover)&&(e.tableClass+=" table-hover"),e.checkable&&t.fn.selectable||(e.selectable=!1),this.options=e},i.prototype.load=function(a){var i,o=this.options;if(t.isFunction(a))a=a(this.data,this),a.keepSort=!0;else if(t.isPlainObject(a))this.data=a;else if("string"==typeof a){var n=t(a);n.length&&(this.$table=n.first(),this.$table.data(e,this),this.isTable=!0),a=null}else a=o.data;if(!a){if(!this.isTable)throw new Error("No data avaliable!");a={cols:[],rows:[]},i=a.cols;var s,r,l,d,c,p,h=a.rows,f=this.$table;f.find("thead > tr:first").children("th").each(function(){r=t(this),i.push(t.extend({text:r.html(),flex:r.hasClass("flex-col"),width:"auto",cssClass:r.attr("class"),css:r.attr("style"),type:"string",ignore:r.hasClass("ignore"),sort:!r.hasClass("sort-disabled"),mergeRows:r.attr("merge-rows")},r.data()))}),f.find("tbody > tr").each(function(){l=t(this),c=t.extend({data:[],checked:!1,cssClass:l.attr("class"),css:l.attr("style"),id:l.attr("id")},l.data()),l.children("td").each(function(){if(d=t(this),p=d.attr("colspan")||1,c.data.push(t.extend({cssClass:d.attr("class"),css:d.attr("style"),text:d.html(),colSpan:p,title:d.attr("title")},d.data())),p>1)for(s=1;s<p;s++)c.data.push({empty:!0})}),h.push(c)});var u=f.find("tfoot");u.length&&(a.footer=t('<table class="table'+o.tableClass+'"></table>').append(u))}a.flexStart=-1,a.flexEnd=-1,i=a.cols,a.colsLength=i.length;for(var s=0;s<a.colsLength;++s){var g=i[s];g.flex&&(a.flexStart<0&&(a.flexStart=s),a.flexEnd=s)}0===a.flexStart&&a.flexEnd===a.colsLength&&(a.flexStart=-1,a.flexEnd=-1),a.flexArea=a.flexStart>=0,a.fixedRight=a.flexEnd>=0&&a.flexEnd<a.colsLength-1,a.fixedLeft=a.flexStart>0,a.flexStart<0&&a.flexEnd<0&&(a.fixedLeft=!0,a.flexStart=a.colsLength,a.flexEnd=a.colsLength),this.data=a,this.callEvent("afterLoad",{data:a}),this.render()},i.prototype.render=function(){var a,i,o,n,s=this,r=s.$datatable||(s.isTable?t('<div class="datatable" id="'+s.id+'"/>'):s.$datatable),l=s.options,d=s.data,c=s.data.cols,p=s.data.rows,h=l.checkable,f='<div class="datatable-rows-span datatable-span"><div class="datatable-wrapper"><table class="table"></table></div></div>',u='<div class="datatable-head-span datatable-span"><div class="datatable-wrapper"><table class="table"><thead></thead></table></div></div>';r.children(".datatable-head, .datatable-rows, .scroll-wrapper").remove(),r.toggleClass("sortable",l.sortable);var g,v,m,b=t('<div class="datatable-head"/>');for(a=t("<tr/>"),o=t("<tr/>"),n=t("<tr/>"),i=0;i<c.length;i++)m=c[i],g=i<d.flexStart?a:i>=d.flexStart&&i<=d.flexEnd?n:o,0===i&&h&&g.append('<th data-index="check" class="check-all check-btn"><i class="icon-check-empty"></i></th>'),m.ignore||(v=t("<th/>"),v.toggleClass("sort-down","down"===m.sort).toggleClass("sort-up","up"===m.sort).toggleClass("sort-disabled",m.sort===!1),v.addClass(m.cssClass).addClass(m.colClass).html(m.text).attr({"data-index":i,"data-type":m.type,style:m.css}).css("width",m.width),g.append(v));var y;d.fixedLeft&&(y=t(u),y.addClass("fixed-left").find("table").addClass(l.tableClass).find("thead").append(a),b.append(y)),d.flexArea&&(y=t(u),y.addClass("flexarea").find(".datatable-wrapper").append('<div class="scrolled-shadow scrolled-in-shadow"></div><div class="scrolled-shadow scrolled-out-shadow"></div>').find("table").addClass(l.tableClass).find("thead").append(n),b.append(y)),d.fixedRight&&(y=t(u),y.addClass("fixed-right").find("table").addClass(l.tableClass).find("thead").append(o),b.append(y)),r.append(b);var w,C,x,$,k,T,E,z,S=t('<div class="datatable-rows">'),D=p.length;a=t("<tbody/>"),o=t("<tbody/>"),n=t("<tbody/>");for(var L=0;L<D;++L){for(T=p[L],"undefined"==typeof T.id&&(T.id=L),T.index=L,w=t("<tr/>"),w.addClass(T.cssClass).toggleClass(l.checkedClass,!!T.checked).attr({"data-index":L,"data-id":T.id}),C=w.clone(),x=w.clone(),z=T.data.length,i=0;i<z;++i)E=T.data[i],i>0&&E.empty||(g=i<d.flexStart?w:i>=d.flexStart&&i<=d.flexEnd?C:x,0===i&&h&&(k=t('<td data-index="check" class="check-row check-btn"><i class="icon-check-empty"></i></td>'),l.checkboxName&&k.append('<input class="hide" type="checkbox" name="'+l.checkboxName+'" value="'+T.id+'">'),g.append(k)),c[i].ignore||(t.isPlainObject(E)?(E.row=L,E.index=i):E={text:E,row:L,index:i},T.data[i]=E,$=t("<td/>"),$.html(E.text).addClass(E.cssClass).addClass(c[i].colClass).attr("colspan",E.colSpan).attr({"data-row":L,"data-index":i,"data-flex":!1,"data-type":c[i].type,style:E.css,title:E.title||""}).css("width",c[i].width),g.append($)));a.append(w),n.append(C),o.append(x)}var A;d.fixedLeft&&(A=t(f),A.addClass("fixed-left").find("table").addClass(l.tableClass).append(a),S.append(A)),d.flexArea&&(A=t(f),A.addClass("flexarea").find(".datatable-wrapper").append('<div class="scrolled-shadow scrolled-in-shadow"></div><div class="scrolled-shadow scrolled-out-shadow"></div>').find("table").addClass(l.tableClass).append(n),S.append(A)),d.fixedRight&&(A=t(f),A.addClass("fixed-right").find("table").addClass(l.tableClass).append(o),S.append(A)),r.append(S),d.flexArea&&r.append('<div class="scroll-wrapper"><div class="scroll-slide scroll-pos-'+l.scrollPos+'"><div class="bar"></div></div></div>');var O=r.children(".datatable-footer").detach();d.footer?(r.append(t('<div class="datatable-footer"/>').append(d.footer)),d.footer=null):O.length&&r.append(O),s.$datatable=r.data(e,s),s.isTable&&s.firstShow&&(s.$table.attr("data-datatable-id",this.id).hide().after(r),s.firstShow=!1),s.bindEvents(),s.refreshSize(),s.callEvent("render")},i.prototype.bindEvents=function(){var e=this,i=this.data,o=this.options,n=this.$datatable,s=e.$dataSpans=n.children(".datatable-head, .datatable-rows").find(".datatable-span"),r=e.$rowsSpans=n.children(".datatable-rows").children(".datatable-rows-span"),l=e.$headSpans=n.children(".datatable-head").children(".datatable-head-span"),d=e.$cells=s.find("td, th"),c=e.$dataCells=d.filter("td");e.$headCells=d.filter("th");var p=e.$rows=e.$rowsSpans.find(".table > tbody > tr");if(o.rowHover){var h=o.hoverClass;r.on("mouseenter","td",function(){c.filter("."+h).removeClass(h),p.filter("."+h).removeClass(h),p.filter('[data-index="'+t(this).addClass(h).closest("tr").data("index")+'"]').addClass(h)}).on("mouseleave","td",function(){c.filter("."+h).removeClass(h),p.filter("."+h).removeClass(h)})}if(o.colHover){var f=o.colHoverClass;l.on("mouseenter","th",function(){d.filter("."+f).removeClass(f),d.filter('[data-index="'+t(this).data("index")+'"]').addClass(f)}).on("mouseleave","th",function(){d.filter("."+f).removeClass(f)})}if(i.flexArea){var u,g,v,m,b,y,w,C=n.find(".scroll-slide"),x=n.find(".datatable-span.flexarea"),$=n.find(".datatable-span.fixed-left"),k=n.find(".datatable-span.flexarea .table"),T=C.children(".bar"),E=e.id+"_scrollOffset";e.width=n.width(),n.resize(function(){e.width=n.width()});var z=function(t,e){b=Math.max(0,Math.min(u-g,t)),e||n.addClass("scrolling"),T.css("left",b),w=0-Math.floor((v-u)*b/(u-g)),k.css("left",w),m=b,n.toggleClass("scrolled-in",b>2).toggleClass("scrolled-out",b<u-g-2),o.storage&&a.pageSet(E,b)},S=function(){u=x.width(),C.width(u).css("left",$.width()),v=k.width(),g=Math.floor(u*u/v),T.css("width",g),k.css("min-width",u),n.toggleClass("show-scroll-slide",v>u),y||u===g||(y=!0,z(a.pageGet(E,0),!0)),n.hasClass("size-changing")&&z(b,!0)};x.resize(S),o.storage&&S();var D={move:!1,stopPropagation:!0,drag:function(t){z(T.position().left+t.smallOffset.x*(t.element.hasClass("bar")?1:-1))},finish:function(){n.removeClass("scrolling")}};t.fn.draggable?(T.draggable(D),o.flexHeadDrag&&n.find(".datatable-head-span.flexarea").draggable(D)):console.error("DataTable requires draggable.js to improve UI."),C.mousedown(function(t){var e=t.pageX-C.offset().left;z(e-g/2)})}if(o.checkable){var L,A=e.id+"_checkedStatus",O=o.checkedClass,P=function(){var n=r.first().find(".table > tbody > tr"),s=n.filter("."+O);o.checkboxName&&n.find(".check-row input:checkbox").prop("checked",!1);var d={checkedAll:n.length===s.length&&s.length>0,checks:s.map(function(){return L=t(this).data("id"),o.checkboxName&&t(this).find(".check-row input:checkbox").prop("checked",!0),L}).toArray()};e.checks=d,t.each(i.rows,function(e,a){a.checked=t.inArray(a.id,d.checks)>-1}),l.find(".check-all").toggleClass("checked",!!d.checkedAll),o.storage&&a.pageSet(A,d),e.callEvent("checksChanged",{checks:d})},M=function(e,a){var i=t(e).closest("tr");void 0===a&&(a=!i.hasClass(O)),p.filter('[data-index="'+i.data("index")+'"]').toggleClass(O,!!a)},j="click.zui.datatable.check";if(o.selectable){var F={selector:".datatable-rows tr",trigger:".datatable-rows",start:function(e){var a=t(e.target).closest(".check-row, .check-btn");if(a.length)return a.is(".check-row")&&(M(a),P()),!1},rangeFunc:function(t,e){return Math.max(t.top,e.top)<Math.min(t.top+t.height,e.top+e.height)},select:function(t){M(t.target,!0)},unselect:function(t){M(t.target,!1)},finish:function(t){P()}};t.isPlainObject(o.selectable)&&t.extend(F,o.selectable),this.$datatable.selectable(F)}else this.$rowsSpans.off(j).on(j+"row",o.checkByClickRow?"tr":".check-row",function(){M(this),P()});if(this.$datatable.off(j).on("click.zui.datatable.check",".check-all",function(){p.toggleClass(O,t(this).toggleClass("checked").hasClass("checked")),P()}).on(j+".none",".check-none",function(){p.toggleClass(O,!1),P()}).on(j+".inverse",".check-inverse",function(){p.toggleClass(O),P()}),o.storage){var I=a.pageGet(A);I&&(l.find(".check-all").toggleClass("checked",I.checkedAll),I.checkedAll?p.addClass(O):(p.removeClass(O),t.each(I.checks,function(t,e){p.filter('[data-id="'+e+'"]').addClass(O)})),I.checks.length&&P())}}if(o.fixedHeader){var N,R,H,W=n.children(".datatable-head"),_=o.fixedHeaderOffset||t(".navbar.navbar-fixed-top").height()||0,B=function(){N=n.offset().top,H=t(window).scrollTop(),R=n.height(),n.toggleClass("head-fixed",H+_>N&&H+_<N+R),n.hasClass("head-fixed")?W.css({width:n.width(),top:_}):W.attr("style","")};t(window).scroll(B),B()}o.sortable?(l.on("click","th:not(.sort-disabled, .check-btn)",function(){n.hasClass("size-changing")||e.sortTable(t(this))}),o.storage&&e.sortTable()):o.mergeRows&&this.mergeRows()},i.prototype.mergeRows=function(){for(var e=this.$rowsSpans.find(".table > tbody > tr > td"),a=this.data.cols,i=0;i<a.length;i++){var o=a[i];if(o.mergeRows){var n=e.filter('[data-index="'+i+'"]');if(n.length>1){var s,r;n.each(function(){var e=t(this);s&&e.html()===s.html()?(r=s.attr("rowspan")||1,"number"!=typeof r&&(r=parseInt(r),isNaN(r)&&(r=1)),s.attr("rowspan",r+1).css("vertical-align","middle"),e.remove()):s=e})}}}},i.prototype.sortTable=function(e){var a=t.zui.store,i=this.options,o=this.id+"_datatableSorter",n=i.storage?a.pageGet(o):null;if(e||(e=n?this.$headCells.filter('[data-index="'+n.index+'"]').addClass("sort-"+n.type):this.$headCells.filter(".sort-up, .sort-down").first()),e.length){var s,r,l,d=this.data,c=d.cols,p=d.rows,h=this.$headCells;s=!e.hasClass("sort-up"),d.keepSort&&(s=!s),d.keepSort=null,h.removeClass("sort-up sort-down"),e.addClass(s?"sort-up":"sort-down"),l=e.data("index"),t.each(c,function(t,e){t==l||"up"!==e.sort&&"down"!==e.sort?t==l&&(e.sort=s?"up":"down",r=e.type):e.sort=!0});var f,u,g,v=this.$dataCells.filter('[data-index="'+l+'"]');p.sort(function(t,e){return t=t.data[l],e=e.data[l],f=v.filter('[data-row="'+t.row+'"]').text(),u=v.filter('[data-row="'+e.row+'"]').text(),"number"===r?(f=parseFloat(f),u=parseFloat(u)):"date"===r?(f=Date.parse(f),u=Date.parse(u)):(f=f.toLowerCase(),u=u.toLowerCase()),g=f>u?1:f<u?-1:0,s&&(g*=-1),g});var m,b,y,w=this.$rows,C=[];t.each(p,function(e,a){m=w.filter('[data-index="'+a.index+'"]'),m.each(function(e){y=t(this),b=C[e],b?b.after(y):y.parent().prepend(y),C[e]=y})}),n={index:l,type:s?"up":"down"},i.storage&&a.pageSet(o,n),this.callEvent("sort",{sorter:n})}},i.prototype.refreshSize=function(){var e,a=this.$datatable,i=this.options,o=this.data.rows;this.data.cols;if(a.find(".datatable-span.fixed-left").css("width",i.fixedLeftWidth),a.find(".datatable-span.fixed-right").css("width",i.fixedRightWidth),i.fixCellHeight){var n=function(e){var a,i,o=0;return e.css("height","auto"),e.each(function(){a=t(this),i=a.attr("rowspan"),i&&1!=i||(o=Math.max(o,a.outerHeight()))}),o},s=this.$dataCells,r=(this.$cells,this.$headCells),l=n(r);r.css("min-height",l).css("height",l);var d;for(e=0;e<o.length;++e){d=s.filter('[data-row="'+e+'"]');var c=n(d);d.css("min-height",c).css("height",c)}}},i.prototype.callEvent=function(t,e){var a=this.$.callEvent(t+"."+this.name,e,this).result;return!(void 0!==a&&!a)},t.fn.datatable=function(a,o){return this.each(function(){var n=t(this),s=n.data(e),r="object"==typeof a&&a;s||n.data(e,s=new i(this,r)),"string"==typeof a&&("load"!==a||!t.isPlainObject(o)||void 0!==o.keepSort&&null!==o.keepSort||(o.keepSort=!0),s[a](o))})},t.fn.datatable.Constructor=i}(jQuery);