").append(ot.parseHTML(t)).find(o):t)}).complete(i&&function(t,e){s.each(i,r||[t.responseText,e,t])}),this},ot.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ot.fn[e]=function(t){return this.on(e,t)}}),ot.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ce,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(_e[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Be,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ot.parseJSON,"text xml":ot.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?I(I(t,ot.ajaxSettings),e):I(ot.ajaxSettings,t)},ajaxPrefilter:A(De),ajaxTransport:A(Le),ajax:function(t,n){function i(t,n,i,o){var r,u,y,b,$,_=n;2!==x&&(x=2,l&&clearTimeout(l),d=e,s=o||"",w.readyState=t>0?4:0,r=t>=200&&300>t||304===t,i&&(b=function(t,n,i){for(var o,r,a,s,l=t.contents,c=t.dataTypes;"*"===c[0];)c.shift(),r===e&&(r=t.mimeType||n.getResponseHeader("Content-Type"));if(r)for(s in l)if(l[s]&&l[s].test(r)){c.unshift(s);break}if(c[0]in i)a=c[0];else{for(s in i){if(!c[0]||t.converters[s+" "+c[0]]){a=s;break}o||(o=s)}a=a||o}return a?(a!==c[0]&&c.unshift(a),i[a]):e}(p,w,i)),b=function(t,e,n,i){var o,r,a,s,l,c={},d=t.dataTypes.slice();if(d[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(r=d.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=d.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(a=c[l+" "+r]||c["* "+r]))for(o in c)if((s=o.split(" "))[1]===r&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[o]:!0!==c[o]&&(r=s[0],d.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}(p,b,w,r),r?(p.ifModified&&(($=w.getResponseHeader("Last-Modified"))&&(ot.lastModified[a]=$),($=w.getResponseHeader("etag"))&&(ot.etag[a]=$)),204===t||"HEAD"===p.type?_="nocontent":304===t?_="notmodified":(_=b.state,u=b.data,y=b.error,r=!y)):(y=_,(t||!_)&&(_="error",0>t&&(t=0))),w.status=t,w.statusText=(n||_)+"",r?g.resolveWith(h,[u,_,w]):g.rejectWith(h,[w,_,y]),w.statusCode(v),v=e,c&&f.trigger(r?"ajaxSuccess":"ajaxError",[w,p,r?u:y]),m.fireWith(h,[w,_]),c&&(f.trigger("ajaxComplete",[w,p]),--ot.active||ot.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=e),n=n||{};var o,r,a,s,l,c,d,u,p=ot.ajaxSetup({},n),h=p.context||p,f=p.context&&(h.nodeType||h.jquery)?ot(h):ot.event,g=ot.Deferred(),m=ot.Callbacks("once memory"),v=p.statusCode||{},y={},b={},x=0,$="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(2===x){if(!u)for(u={};e=je.exec(s);)u[e[1].toLowerCase()]=e[2];e=u[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===x?s:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return x||(t=b[n]=b[n]||t,y[t]=e),this},overrideMimeType:function(t){return x||(p.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>x)for(e in t)v[e]=[v[e],t[e]];else w.always(t[w.status]);return this},abort:function(t){var e=t||$;return d&&d.abort(e),i(0,e),this}};if(g.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,p.url=((t||p.url||Ce)+"").replace(Te,"").replace(Me,_e[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=ot.trim(p.dataType||"*").toLowerCase().match(at)||[""],null==p.crossDomain&&(o=Ie.exec(p.url.toLowerCase()),p.crossDomain=!(!o||o[1]===_e[1]&&o[2]===_e[2]&&(o[3]||("http:"===o[1]?"80":"443"))===(_e[3]||("http:"===_e[1]?"80":"443")))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=ot.param(p.data,p.traditional)),M(De,p,n,w),2===x)return w;(c=p.global)&&0==ot.active++&&ot.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ae.test(p.type),a=p.url,p.hasContent||(p.data&&(a=p.url+=(Ee.test(a)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=Se.test(a)?a.replace(Se,"$1_="+ke++):a+(Ee.test(a)?"&":"?")+"_="+ke++)),p.ifModified&&(ot.lastModified[a]&&w.setRequestHeader("If-Modified-Since",ot.lastModified[a]),ot.etag[a]&&w.setRequestHeader("If-None-Match",ot.etag[a])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&w.setRequestHeader("Content-Type",p.contentType),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Be+"; q=0.01":""):p.accepts["*"]);for(r in p.headers)w.setRequestHeader(r,p.headers[r]);if(p.beforeSend&&(!1===p.beforeSend.call(h,w,p)||2===x))return w.abort();$="abort";for(r in{success:1,error:1,complete:1})w[r](p[r]);if(d=M(Le,p,n,w)){w.readyState=1,c&&f.trigger("ajaxSend",[w,p]),p.async&&p.timeout>0&&(l=setTimeout(function(){w.abort("timeout")},p.timeout));try{x=1,d.send(y,i)}catch(t){if(!(2>x))throw t;i(-1,t)}}else i(-1,"No Transport");return w},getJSON:function(t,e,n){return ot.get(t,e,n,"json")},getScript:function(t,n){return ot.get(t,e,n,"script")}}),ot.each(["get","post"],function(t,n){ot[n]=function(t,i,o,r){return ot.isFunction(i)&&(r=r||o,o=i,i=e),ot.ajax({url:t,type:n,dataType:r,data:i,success:o})}}),ot.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return ot.globalEval(t),t}}}),ot.ajaxPrefilter("script",function(t){t.cache===e&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),ot.ajaxTransport("script",function(t){if(t.crossDomain){var n,i=q.head||ot("head")[0]||q.documentElement;return{send:function(e,o){(n=q.createElement("script")).async=!0,t.scriptCharset&&(n.charset=t.scriptCharset),n.src=t.url,n.onload=n.onreadystatechange=function(t,e){(e||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,e||o(200,"success"))},i.insertBefore(n,i.firstChild)},abort:function(){n&&n.onload(e,!0)}}}});var Pe=[],He=/(=)\?(?=&|$)|\?\?/;ot.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Pe.pop()||ot.expando+"_"+ke++;return this[t]=!0,t}}),ot.ajaxPrefilter("json jsonp",function(n,i,o){var r,a,s,l=!1!==n.jsonp&&(He.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&He.test(n.data)&&"data");return l||"jsonp"===n.dataTypes[0]?(r=n.jsonpCallback=ot.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(He,"$1"+r):!1!==n.jsonp&&(n.url+=(Ee.test(n.url)?"&":"?")+n.jsonp+"="+r),n.converters["script json"]=function(){return s||ot.error(r+" was not called"),s[0]},n.dataTypes[0]="json",a=t[r],t[r]=function(){s=arguments},o.always(function(){t[r]=a,n[r]&&(n.jsonpCallback=i.jsonpCallback,Pe.push(r)),s&&ot.isFunction(a)&&a(s[0]),s=a=e}),"script"):e});var Oe,ze,Ve=0,Fe=t.ActiveXObject&&function(){var t;for(t in Oe)Oe[t](e,!0)};ot.ajaxSettings.xhr=t.ActiveXObject?function(){return!this.isLocal&&N()||function(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}()}:N,ze=ot.ajaxSettings.xhr(),ot.support.cors=!!ze&&"withCredentials"in ze,(ze=ot.support.ajax=!!ze)&&ot.ajaxTransport(function(n){if(!n.crossDomain||ot.support.cors){var i;return{send:function(o,r){var a,s,l=n.xhr();if(n.username?l.open(n.type,n.url,n.async,n.username,n.password):l.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)l[s]=n.xhrFields[s];n.mimeType&&l.overrideMimeType&&l.overrideMimeType(n.mimeType),n.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");try{for(s in o)l.setRequestHeader(s,o[s])}catch(t){}l.send(n.hasContent&&n.data||null),i=function(t,o){var s,c,d,u;try{if(i&&(o||4===l.readyState))if(i=e,a&&(l.onreadystatechange=ot.noop,Fe&&delete Oe[a]),o)4!==l.readyState&&l.abort();else{u={},s=l.status,c=l.getAllResponseHeaders(),"string"==typeof l.responseText&&(u.text=l.responseText);try{d=l.statusText}catch(t){d=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=u.text?200:404}}catch(t){o||r(-1,t)}u&&r(s,d,u,c)},n.async?4===l.readyState?setTimeout(i):(a=++Ve,Fe&&(Oe||(Oe={},ot(t).unload(Fe)),Oe[a]=i),l.onreadystatechange=i):i()},abort:function(){i&&i(e,!0)}}}});var Re,qe,We=/^(?:toggle|show|hide)$/,Ue=RegExp("^(?:([+-])=|)("+rt+")([a-z%]*)$","i"),Je=/queueHooks$/,Ge=[function(t,e,n){var i,o,r,a,s,l,c=this,d={},u=t.style,p=t.nodeType&&w(t),h=ot._data(t,"fxshow");n.queue||(null==(s=ot._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,ot.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[u.overflow,u.overflowX,u.overflowY],"inline"===ot.css(t,"display")&&"none"===ot.css(t,"float")&&(ot.support.inlineBlockNeedsLayout&&"inline"!==T(t.nodeName)?u.zoom=1:u.display="inline-block")),n.overflow&&(u.overflow="hidden",ot.support.shrinkWrapBlocks||c.always(function(){u.overflow=n.overflow[0],u.overflowX=n.overflow[1],u.overflowY=n.overflow[2]}));for(i in e)if(o=e[i],We.exec(o)){if(delete e[i],r=r||"toggle"===o,o===(p?"hide":"show"))continue;d[i]=h&&h[i]||ot.style(t,i)}if(!ot.isEmptyObject(d)){h?"hidden"in h&&(p=h.hidden):h=ot._data(t,"fxshow",{}),r&&(h.hidden=!p),p?ot(t).show():c.done(function(){ot(t).hide()}),c.done(function(){var e;ot._removeData(t,"fxshow");for(e in d)ot.style(t,e,d[e])});for(i in d)a=L(p?h[i]:0,i,c),i in h||(h[i]=a.start,p&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}}],Qe={"*":[function(t,e){var n=this.createTween(t,e),i=n.cur(),o=Ue.exec(e),r=o&&o[3]||(ot.cssNumber[t]?"":"px"),a=(ot.cssNumber[t]||"px"!==r&&+i)&&Ue.exec(ot.css(n.elem,t)),s=1,l=20;if(a&&a[3]!==r){r=r||a[3],o=o||[],a=+i||1;do{s=s||".5",a/=s,ot.style(n.elem,t,a+r)}while(s!==(s=n.cur()/i)&&1!==s&&--l)}return o&&(a=n.start=+a||+i||0,n.unit=r,n.end=o[1]?a+(o[1]+1)*o[2]:+o[2]),n}]};ot.Animation=ot.extend(B,{tweener:function(t,e){ot.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,i=0,o=t.length;o>i;i++)n=t[i],Qe[n]=Qe[n]||[],Qe[n].unshift(e)},prefilter:function(t,e){e?Ge.unshift(t):Ge.push(t)}}),ot.Tween=P,(P.prototype={constructor:P,init:function(t,e,n,i,o,r){this.elem=t,this.prop=n,this.easing=o||"swing",this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=r||(ot.cssNumber[n]?"":"px")},cur:function(){var t=P.propHooks[this.prop];return t&&t.get?t.get(this):P.propHooks._default.get(this)},run:function(t){var e,n=P.propHooks[this.prop];return this.pos=e=this.options.duration?ot.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):P.propHooks._default.set(this),this}}).init.prototype=P.prototype,(P.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=ot.css(t.elem,t.prop,""))&&"auto"!==e?e:0:t.elem[t.prop]},set:function(t){ot.fx.step[t.prop]?ot.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[ot.cssProps[t.prop]]||ot.cssHooks[t.prop])?ot.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}}).scrollTop=P.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ot.each(["toggle","show","hide"],function(t,e){var n=ot.fn[e];ot.fn[e]=function(t,i,o){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(H(e,!0),t,i,o)}}),ot.fn.extend({fadeTo:function(t,e,n,i){return this.filter(w).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var o=ot.isEmptyObject(t),r=ot.speed(e,n,i),a=function(){var e=B(this,ot.extend({},t),r);(o||ot._data(this,"finish"))&&e.stop(!0)};return a.finish=a,o||!1===r.queue?this.each(a):this.queue(r.queue,a)},stop:function(t,n,i){var o=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=n,n=t,t=e),n&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,n=null!=t&&t+"queueHooks",r=ot.timers,a=ot._data(this);if(n)a[n]&&a[n].stop&&o(a[n]);else for(n in a)a[n]&&a[n].stop&&Je.test(n)&&o(a[n]);for(n=r.length;n--;)r[n].elem!==this||null!=t&&r[n].queue!==t||(r[n].anim.stop(i),e=!1,r.splice(n,1));(e||!i)&&ot.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=ot._data(this),i=n[t+"queue"],o=n[t+"queueHooks"],r=ot.timers,a=i?i.length:0;for(n.finish=!0,ot.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===t&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;a>e;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),ot.each({slideDown:H("show"),slideUp:H("hide"),slideToggle:H("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){ot.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),ot.speed=function(t,e,n){var i=t&&"object"==typeof t?ot.extend({},t):{complete:n||!n&&e||ot.isFunction(t)&&t,duration:t,easing:n&&e||e&&!ot.isFunction(e)&&e};return i.duration=ot.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in ot.fx.speeds?ot.fx.speeds[i.duration]:ot.fx.speeds._default,(null==i.queue||!0===i.queue)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){ot.isFunction(i.old)&&i.old.call(this),i.queue&&ot.dequeue(this,i.queue)},i},ot.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},ot.timers=[],ot.fx=P.prototype.init,ot.fx.tick=function(){var t,n=ot.timers,i=0;for(Re=ot.now();n.length>i;i++)(t=n[i])()||n[i]!==t||n.splice(i--,1);n.length||ot.fx.stop(),Re=e},ot.fx.timer=function(t){t()&&ot.timers.push(t)&&ot.fx.start()},ot.fx.interval=13,ot.fx.start=function(){qe||(qe=setInterval(ot.fx.tick,ot.fx.interval))},ot.fx.stop=function(){clearInterval(qe),qe=null},ot.fx.speeds={slow:600,fast:200,_default:400},ot.fx.step={},ot.expr&&ot.expr.filters&&(ot.expr.filters.animated=function(t){return ot.grep(ot.timers,function(e){return t===e.elem}).length}),ot.fn.offset=function(t){if(arguments.length)return t===e?this:this.each(function(e){ot.offset.setOffset(this,t,e)});var n,i,o={top:0,left:0},r=this[0],a=r&&r.ownerDocument;return a?(n=a.documentElement,ot.contains(n,r)?(typeof r.getBoundingClientRect!==F&&(o=r.getBoundingClientRect()),i=O(a),{top:o.top+(i.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(i.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o):void 0},ot.offset={setOffset:function(t,e,n){var i=ot.css(t,"position");"static"===i&&(t.style.position="relative");var o,r,a=ot(t),s=a.offset(),l=ot.css(t,"top"),c=ot.css(t,"left"),d={},u={};("absolute"===i||"fixed"===i)&&ot.inArray("auto",[l,c])>-1?(u=a.position(),o=u.top,r=u.left):(o=parseFloat(l)||0,r=parseFloat(c)||0),ot.isFunction(e)&&(e=e.call(t,n,s)),null!=e.top&&(d.top=e.top-s.top+o),null!=e.left&&(d.left=e.left-s.left+r),"using"in e?e.using.call(t,d):a.css(d)}},ot.fn.extend({position:function(){if(this[0]){var t,e,n={top:0,left:0},i=this[0];return"fixed"===ot.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ot.nodeName(t[0],"html")||(n=t.offset()),n.top+=ot.css(t[0],"borderTopWidth",!0),n.left+=ot.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-ot.css(i,"marginTop",!0),left:e.left-n.left-ot.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||W;t&&!ot.nodeName(t,"html")&&"static"===ot.css(t,"position");)t=t.offsetParent;return t||W})}}),ot.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var i=/Y/.test(n);ot.fn[t]=function(o){return ot.access(this,function(t,o,r){var a=O(t);return r===e?a?n in a?a[n]:a.document.documentElement[o]:t[o]:(a?a.scrollTo(i?ot(a).scrollLeft():r,i?r:ot(a).scrollTop()):t[o]=r,e)},t,o,arguments.length,null)}}),ot.each({Height:"height",Width:"width"},function(t,n){ot.each({padding:"inner"+t,content:n,"":"outer"+t},function(i,o){ot.fn[o]=function(o,r){var a=arguments.length&&(i||"boolean"!=typeof o),s=i||(!0===o||!0===r?"margin":"border");return ot.access(this,function(n,i,o){var r;return ot.isWindow(n)?n.document.documentElement["client"+t]:9===n.nodeType?(r=n.documentElement,Math.max(n.body["scroll"+t],r["scroll"+t],n.body["offset"+t],r["offset"+t],r["client"+t])):o===e?ot.css(n,i,s):ot.style(n,i,o,s)},n,a?o:e,a,null)}})}),ot.fn.size=function(){return this.length},ot.fn.andSelf=ot.fn.addBack,"object"==typeof module&&module&&"object"==typeof module.exports?module.exports=ot:(t.jQuery=t.$=ot,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ot}))}(window),function(t,e,n){"use strict";if(void 0===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(t){var e=1e3*(new Date).getTime()+o++%1e3;return t?e:e.toString(36)},callEvent:function(e,i,o){if(t.isFunction(e)){o!==n&&(e=t.proxy(e,o));var r=e(i);return i&&(i.result=r),!(r!==n&&!r)}return 1},clientLang:function(){var n,i=e.config;if(void 0!==i&&i.clientLang&&(n=i.clientLang),!n){var o=t("html").attr("lang");n=o||(navigator.userLanguage||navigator.userLanguage||"zh_cn")}return n.replace("-","_").toLowerCase()},strCode:function(t){var e=0;if(t&&t.length)for(var n=0;n
0&&(o=r.data(e.substring(a+1))),o&&o.options){var c=o.options[s];t.isFunction(c)&&(l.result=t.zui.callEvent(c,l,o))}return r.trigger(l),l},t.fn.callComEvent=function(e,i,o){o===n||t.isArray(o)||(o=[o]);var r=this.triggerHandler(i,o),a=e.options[i];return a&&(r=a.apply(e,o)),r}}(jQuery,window,void 0),function(t){"use strict";t.fn.fixOlPd=function(e){return e=e||10,this.each(function(){var n=t(this);n.css("paddingLeft",Math.ceil(Math.log10(n.children().length))*e+10)})},t(function(){t(".ol-pd-fix,.article ol").fixOlPd()})}(jQuery),function(t){"use strict";var e=function(n,i){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,i),this.isLoading=!1};e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(e){var n="disabled",i=this.$element,o=i.is("input")?"val":"html",r=i.data();e+="Text",r.resetText||i.data("resetText",i[o]()),i[o](r[e]||this.options[e]),setTimeout(t.proxy(function(){"loadingText"==e?(this.isLoading=!0,i.addClass(n).attr(n,n)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n))},this),0)},e.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")}t&&this.$element.toggleClass("active")};var n=t.fn.button;t.fn.button=function(n){return this.each(function(){var i=t(this),o=i.data("zui.button"),r="object"==typeof n&&n;o||i.data("zui.button",o=new e(this,r)),"toggle"==n?o.toggle():n&&o.setState(n)})},t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on("click.zui.button.data-api","[data-toggle^=button]",function(e){var n=t(e.target);n.hasClass("btn")||(n=n.closest(".btn")),n.button("toggle"),e.preventDefault()})}(jQuery),function(t){"use strict";var e='[data-dismiss="alert"]',n="zui.alert",i=function(n){t(n).on("click",e,this.close)};i.prototype.close=function(e){function i(){a.trigger("closed."+n).remove()}var o=t(this),r=o.attr("data-target");r||(r=(r=o.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,""));var a=t(r);e&&e.preventDefault(),a.length||(a=o.hasClass("alert")?o:o.parent()),a.trigger(e=t.Event("close."+n)),e.isDefaultPrevented()||(a.removeClass("in"),t.support.transition&&a.hasClass("fade")?a.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),r=o.data(n);r||o.data(n,r=new i(this)),"string"==typeof e&&r[e].call(o)})},t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=o,this},t(document).on("click."+n+".data-api",e,i.prototype.close)}(window.jQuery),function(t,e){"use strict";var n="zui.pager",i={page:1,recTotal:0,recPerPage:10},o={zh_cn:{pageOfText:"第 {0} 页",prev:"上一页",next:"下一页",first:"第一页",last:"最后一页",goto:"跳转",pageOf:"第 {page} 页",totalPage:"共 {totalPage} 页",totalCount:"共 {recTotal} 项",pageSize:"每页 {recPerPage} 项",itemsRange:"第 {start} ~ {end} 项",pageOfTotal:"第 {page}/{totalPage} 页"},zh_tw:{pageOfText:"第 {0} 頁",prev:"上一頁",next:"下一頁",first:"第一頁",last:"最後一頁",goto:"跳轉",pageOf:"第 {page} 頁",totalPage:"共 {totalPage} 頁",totalCount:"共 {recTotal} 項",pageSize:"每頁 {recPerPage} 項",itemsRange:"第 {start} ~ {end} 項",pageOfTotal:"第 {page}/{totalPage} 頁"},en:{pageOfText:"Page {0}",prev:"Prev",next:"Next",first:"First",last:"Last",goto:"Goto",pageOf:"Page {page}",totalPage:"{totalPage} pages",totalCount:"{recTotal} in total",pageSize:"{recPerPage} per page",itemsRange:"From {start} to {end}",pageOfTotal:"Page {page} of {totalPage}"}},r=function(e,i){var a=this;a.name=n,a.$=t(e);var s=(i=a.options=t.extend({},r.DEFAULTS,this.$.data(),i)).lang||t.zui.clientLang();a.lang=t.isPlainObject(s)?t.extend(!0,{},o[s.lang||t.zui.clientLang()],s):o[s],a.state={},a.set(i.page,i.recTotal,i.recPerPage,!0),a.$.on("click",".pager-goto-btn",function(){var e=t(this).closest(".pager-goto"),n=parseInt(e.find(".pager-goto-input").val());NaN!==n&&a.set(n)}).on("click",".pager-item",function(){var e=t(this).data("page");"number"==typeof e&&e>0&&a.set(e)}).on("click",".pager-size-menu [data-size]",function(){var e=t(this).data("size");"number"==typeof e&&e>0&&a.set(-1,-1,e)})};r.prototype.set=function(e,n,o,r){"object"==typeof e&&null!==e&&(o=e.recPerPage,n=e.recTotal,e=e.page);var a=this.state;a||(a=t.extend({},i));var s=t.extend({},a);return"number"==typeof o&&o>0&&(a.recPerPage=o),"number"==typeof n&&n>=0&&(a.recTotal=n),"number"==typeof e&&e>=0&&(a.page=e),a.totalPage=a.recTotal&&a.recPerPage?Math.ceil(a.recTotal/a.recPerPage):1,a.page=Math.max(0,Math.min(a.page,a.totalPage)),a.pageRecCount=a.recTotal,a.page&&a.recTotal&&(a.page1&&(a.pageRecCount=a.recTotal-a.recPerPage*(a.page-1))),a.skip=a.page>1?(a.page-1)*a.recPerPage:0,a.start=a.skip+1,a.end=a.skip+a.pageRecCount,a.prev=a.page>1?a.page-1:0,a.next=a.page').attr("href",n?this.createLink(n,this.state):"###").html(i);return o||(r=t("").append(r).toggleClass("active",n===this.state.page).toggleClass("disabled",!n||n===this.state.page)),r},r.prototype.createNavItems=function(t){var n=this,i=n.$,o=n.state,r=o.totalPage,a=o.page,s=function(t,o){if(!1!==t){o===e&&(o=t);for(var r=t;r<=o;++r)i.append(n.createLinkItem(r))}else i.append(n.createLinkItem(0,o||n.options.navEllipsisItem))};t===e&&(t=n.options.maxNavCount||10),s(1),r>1&&(r<=t?s(2,r):ar-t+2?(s(!1),s(r-t+2,r)):(s(!1),s(a-Math.ceil((t-4)/2),a+Math.floor((t-4)/2)),s(!1),s(r)))},r.prototype.createGoto=function(){var e=this.state;return t('")},r.prototype.createSizeMenu=function(){var e=this.state,n=t(''),i=this.options.pageSizeOptions;"string"==typeof i&&(i=i.split(","));for(var o=0;o'+r+"").toggleClass("active",r===e.recPerPage);n.append(a)}return t('').addClass(this.options.menuDirection).append(n)},r.prototype.createElement=function(e,n,i){var o=t.proxy(this.createLinkItem,this),r=this.lang;switch(e){case"prev":return o(i.prev,r.prev);case"prev_icon":return o(i.prev,'');case"next":return o(i.next,r.next);case"next_icon":return o(i.next,'');case"first":return o(1,r.first);case"first_icon":return o(1,'');case"last":return o(i.totalPage,r.last);case"last_icon":return o(i.totalPage,'');case"space":case"|":return t('');case"nav":case"pages":return void this.createNavItems();case"total_text":return t(('").format(i));case"page_text":return t(('").format(i));case"total_page_text":return t(('").format(i));case"page_of_total_text":return t(('").format(i));case"page_size_text":return t(('").format(i));case"items_range_text":return t(('").format(i));case"goto":return this.createGoto();case"size_menu":return this.createSizeMenu();default:return t("").html(e.format(i))}},r.prototype.createLink=function(n,i){n===e&&(n=this.state.page),i===e&&(i=this.state);var o=this.options.linkCreator;return"string"==typeof o?o.format(t.extend({},i,{page:n})):t.isFunction(o)?o(n,i):"#page="+n},r.prototype.render=function(e){var n=this.state,i=this.options.elementCreator||this.createElement,o=t.isPlainObject(i);"string"==typeof(e=e||this.elements||this.options.elements)&&(e=e.split(",")),this.elements=e,this.$.empty();for(var r=0;r").append(s)),this.$.append(s))}var l=null;return this.$.children("li").each(function(){var e=t(this),n=!!e.children(".pager-item").length;l?l.toggleClass("pager-item-right",!n):n&&e.addClass("pager-item-left"),l=n?e:null}),l&&l.addClass("pager-item-right"),this.$.callComEvent(this,"onRender",[n]),this},r.DEFAULTS=t.extend({elements:["first_icon","prev_icon","pages","next_icon","last_icon","page_of_total_text","items_range_text","total_text"],prevIcon:"icon-double-angle-left",nextIcon:"icon-double-angle-right",firstIcon:"icon-step-backward",lastIcon:"icon-step-forward",navEllipsisItem:'',maxNavCount:10,menuDirection:"dropdown",pageSizeOptions:[10,20,30,50,100]},i),t.fn.pager=function(e){return this.each(function(){var i=t(this),o=i.data(n),a="object"==typeof e&&e;o||i.data(n,o=new r(this,a)),"string"==typeof e&&o[e]()})},r.NAME=n,t.fn.pager.Constructor=r,t(function(){t('[data-ride="pager"]').pager()})}(jQuery,void 0),function(t){"use strict";var e=function(e){this.element=t(e)};e.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.attr("data-target")||e.attr("data-tab");if(i||(i=(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var o=n.find(".active:last a")[0],r=t.Event("show.zui.tab",{relatedTarget:o});if(e.trigger(r),!r.isDefaultPrevented()){var a=t(i);this.activate(e.parent("li"),n),this.activate(a,a.parent(),function(){e.trigger({type:"shown.zui.tab",relatedTarget:o})})}}},e.prototype.activate=function(e,n,i){function o(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),i&&i()}var r=n.find("> .active"),a=i&&t.support.transition&&r.hasClass("fade");a?r.one(t.support.transition.end,o).emulateTransitionEnd(150):o(),r.removeClass("in")};var n=t.fn.tab;t.fn.tab=function(n){return this.each(function(){var i=t(this),o=i.data("zui.tab");o||i.data("zui.tab",o=new e(this)),"string"==typeof n&&o[n]()})},t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=n,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";t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one("bsTransitionEnd",function(){n=!0});return setTimeout(function(){n||t(i).trigger(t.support.transition.end)},e),this},t(function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}(),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";var e="zui.collapse",n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.transitioning=null,this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()};n.DEFAULTS={toggle:!0},n.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n=t.Event("show."+e);if(this.$element.trigger(n),!n.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 r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("in")[r]("auto"),this.transitioning=0,this.$element.trigger("shown."+e)};if(!t.support.transition)return a.call(this);var s=t.camelCase(["scroll",r].join("-"));this.$element.one(t.support.transition.end,t.proxy(a,this)).emulateTransitionEnd(350)[r](this.$element[0][s])}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=t.Event("hide."+e);if(this.$element.trigger(n),!n.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")};if(!t.support.transition)return o.call(this);this.$element[i](0).one(t.support.transition.end,t.proxy(o,this)).emulateTransitionEnd(350)}}},n.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),r=o.data(e),a=t.extend({},n.DEFAULTS,o.data(),"object"==typeof i&&i);r||o.data(e,r=new n(this,a)),"string"==typeof i&&r[i]()})},t.fn.collapse.Constructor=n,t.fn.collapse.noConflict=function(){return t.fn.collapse=i,this},t(document).on("click."+e+".data-api","[data-toggle=collapse]",function(n){var i,o=t(this),r=o.attr("data-target")||n.preventDefault()||(i=o.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""),a=t(r),s=a.data(e),l=s?"toggle":o.data(),c=o.attr("data-parent"),d=c&&t(c);s&&s.transitioning||(d&&d.find('[data-toggle=collapse][data-parent="'+c+'"]').not(o).addClass("collapsed"),o[a.hasClass("in")?"addClass":"removeClass"]("collapsed")),a.collapse(l)})}(window.jQuery),function(t,e){"use strict";var n=e(t),i=function(){var t=n.width();e("html").toggleClass("screen-desktop",t>=992&&t<1200).toggleClass("screen-desktop-wide",t>=1200).toggleClass("screen-tablet",t>=768&&t<992).toggleClass("screen-phone",t<768).toggleClass("device-mobile",t<992).toggleClass("device-desktop",t>=992)},o="",r=navigator.userAgent;r.match(/(iPad|iPhone|iPod)/i)?o+=" os-ios":r.match(/android/i)?o+=" os-android":r.match(/Win/i)?o+=" os-windows":r.match(/Mac/i)?o+=" os-mac":r.match(/Linux/i)?o+=" os-linux":r.match(/X11/i)&&(o+=" os-unix"),"ontouchstart"in document.documentElement&&(o+=" is-touchable"),e("html").addClass(o),n.resize(i),i()}(window,jQuery),function(t){"use strict";var e={zh_cn:'您的浏览器版本过低,无法体验所有功能,建议升级或者更换浏览器。 了解更多...',zh_tw:'您的瀏覽器版本過低,無法體驗所有功能,建議升級或者更换瀏覽器。了解更多...',en:'Your browser is too old, it has been unable to experience the colorful internet. We strongly recommend that you upgrade a better one. Learn more...'},n=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()};n.prototype.cssHelper=function(){var e=this.ie,n=t("html");n.toggleClass("ie",e).removeClass("ie-6 ie-7 ie-8 ie-9 ie-10"),e&&n.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)},n.prototype.tip=function(n){var i=t("#browseHappyTip");i.length||(i=t('')).prependTo("body"),i.find(".content").html(n||this.browseHappyTip||e[t.zui.clientLang()||"zh_cn"])},n.prototype.isIE=function(t){if(10===t)return this.isIE10();var e=document.createElement("b");return e.innerHTML="\x3c!--[if IE "+(t||"")+"]>=e&&t0){var n;if(arguments.length<=2&&"object"==typeof t)for(var i in t)void 0!==t[i]&&(n=new RegExp("("+(arguments[1]?arguments[1].replace("0",i):"{"+i+"}")+")","g"),e=e.replace(n,t[i]));else for(var o=0;on.length)&&(e=n.length),e-=t.length;var i=n.indexOf(t,e);return-1!==i&&i===e}),String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.lastIndexOf(t,e)===e}),String.prototype.includes||(String.prototype.includes=function(){return-1!==String.prototype.indexOf.apply(this,arguments)})}(),function(t,e,n){"$:nomunge";function i(){o=e[s](function(){r.each(function(){var e=t(this),n=e.width(),i=e.height(),o=t.data(this,c);n===o.w&&i===o.h||e.trigger(l,[o.w=n,o.h=i])}),i()},a[d])}var o,r=t([]),a=t.resize=t.extend(t.resize,{}),s="setTimeout",l="resize",c=l+"-special-event",d="delay";a[d]=250,a.throttleWindow=!0,t.event.special[l]={setup:function(){if(!a.throttleWindow&&this[s])return!1;var e=t(this);r=r.add(e),t.data(this,c,{w:e.width(),h:e.height()}),1===r.length&&i()},teardown:function(){if(!a.throttleWindow&&this[s])return!1;var e=t(this);r=r.not(e),e.removeData(c),r.length||clearTimeout(o)},add:function(e){function i(e,i,r){var a=t(this),s=t.data(this,c)||{};s.w=i!==n?i:a.width(),s.h=r!==n?r:a.height(),o.apply(this,arguments)}if(!a.throttleWindow&&this[s])return!1;var o;if(t.isFunction(e))return o=e,i;o=e.handler,e.handler=i}}}(jQuery,this),function(t){"use strict";function e(i,o){var r,a=t.proxy(this.process,this);this.$element=t(t(i).is("body")?window:i),this.$body=t("body"),this.$scrollElement=this.$element.on("scroll."+n+".data-api",a),this.options=t.extend({},e.DEFAULTS,o),this.selector||(this.selector=(this.options.target||(r=t(i).attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a"),this.offsets=t([]),this.targets=t([]),this.activeTarget=null,this.refresh(),this.process()}var n="zui.scrollspy";e.DEFAULTS={offset:10},e.prototype.refresh=function(){var e=this.$element[0]==window?"offset":"position";this.offsets=t([]),this.targets=t([]);var n=this;this.$body.find(this.selector).map(function(){var i=t(this),o=i.data("target")||i.attr("href"),r=/^#./.test(o)&&t(o);return r&&r.length&&r.is(":visible")&&[[r[e]().top+(!t.isWindow(n.$scrollElement.get(0))&&n.$scrollElement.scrollTop()),o]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){n.offsets.push(this[0]),n.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=(this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight)-this.$scrollElement.height(),i=this.offsets,o=this.targets,r=this.activeTarget;if(e>=n)return r!=(t=o.last()[0])&&this.activate(t);if(r&&e<=i[0])return r!=(t=o[0])&&this.activate(t);for(t=i.length;t--;)r!=o[t]&&e>=i[t]&&(!i[t+1]||e<=i[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,t(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',o=t(i).parents("li").addClass("active");o.parent(".dropdown-menu").length&&(o=o.closest("li.dropdown").addClass("active")),o.trigger("activate."+n)};var i=t.fn.scrollspy;t.fn.scrollspy=function(i){return this.each(function(){var o=t(this),r=o.data(n),a="object"==typeof i&&i;r||o.data(n,r=new e(this,a)),"string"==typeof i&&r[i]()})},t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);e.scrollspy(e.data())})})}(jQuery),function(t,e){"use strict";var n,i,o="localStorage",r="page_"+t.location.pathname+t.location.search,a=function(){this.slience=!0;try{o in t&&t[o]&&t[o].setItem&&(this.enable=!0,n=t[o])}catch(t){}this.enable||(i={},n={getLength:function(){var t=0;return e.each(i,function(){t++}),t},key:function(t){var n,o=0;return e.each(i,function(e){if(o===t)return n=e,!1;o++}),n},removeItem:function(t){delete i[t]},getItem:function(t){return i[t]},setItem:function(t,e){i[t]=e},clear:function(){i={}}}),this.storage=n,this.page=this.get(r,{})};a.prototype.pageSave=function(){if(e.isEmptyObject(this.page))this.remove(r);else{var t,n=[];for(t in this.page){null===this.page[t]&&n.push(t)}for(t=n.length-1;t>=0;t--)delete this.page[n[t]];this.set(r,this.page)}},a.prototype.pageRemove=function(t){void 0!==this.page[t]&&(this.page[t]=null,this.pageSave())},a.prototype.pageClear=function(){this.page={},this.pageSave()},a.prototype.pageGet=function(t,e){var n=this.page[t];return void 0===e||null!==n&&void 0!==n?n:e},a.prototype.pageSet=function(t,n){e.isPlainObject(t)?e.extend(!0,this.page,t):this.page[this.serialize(t)]=n,this.pageSave()},a.prototype.check=function(){if(!this.enable&&!this.slience)throw new Error("Browser not support localStorage or enable status been set true.");return this.enable},a.prototype.length=function(){return this.check()?n.getLength?n.getLength():n.length:0},a.prototype.removeItem=function(t){return n.removeItem(t),this},a.prototype.remove=function(t){return this.removeItem(t)},a.prototype.getItem=function(t){return n.getItem(t)},a.prototype.get=function(t,e){var n=this.deserialize(this.getItem(t));return void 0!==n&&null!==n||void 0===e?n:e},a.prototype.key=function(t){return n.key(t)},a.prototype.setItem=function(t,e){return n.setItem(t,e),this},a.prototype.set=function(t,e){return void 0===e?this.remove(t):(this.setItem(t,this.serialize(e)),this)},a.prototype.clear=function(){return n.clear(),this},a.prototype.forEach=function(t){for(var e=this.length()-1;e>=0;e--){var i=n.key(e);t(i,this.get(i))}return this},a.prototype.getAll=function(){var t={};return this.forEach(function(e,n){t[e]=n}),t},a.prototype.serialize=function(t){return"string"==typeof t?t:JSON.stringify(t)},a.prototype.deserialize=function(t){if("string"==typeof t)try{return JSON.parse(t)}catch(e){return t||void 0}},e.zui({store:new a})}(window,jQuery),function(t){"use strict";var e="zui.searchBox",n=function(e,i){var o=this;o.name=name,o.$=t(e),o.options=i=t.extend({},n.DEFAULTS,o.$.data(),i);var r=o.$.is(i.inputSelector)?o.$:o.$.find(i.inputSelector);if(r.length){var a=function(){o.changeTimer&&(clearTimeout(o.changeTimer),o.changeTimer=null);var t=o.getSearch();if(t!==o.lastValue){var e=""===t;r.toggleClass("empty",e),o.$.callComEvent(o,"onSearchChange",[t,e]),o.lastValue=t}};o.$input=r=r.first(),r.on(i.listenEvent,function(t){o.changeTimer=setTimeout(function(){a()},i.changeDelay)}).on("focus",function(t){r.addClass("focus"),o.$.callComEvent(o,"onFocus",[t])}).on("blur",function(t){r.removeClass("focus"),o.$.callComEvent(o,"onBlur",[t])}).on("keydown",function(t){var e=0,n=t.which;27===n&&i.escToClear?(this.setSearch("",!0),a(),e=1):13===n&&i.onPressEnter&&(a(),o.$.callComEvent(o,"onPressEnter",[t]));!1===o.$.callComEvent(o,"onKeyDown",[t])&&(e=1),e&&t.preventDefault()}),o.$.on("click",".search-clear-btn",function(t){o.setSearch("",!0),a(),o.focus(),t.preventDefault()}),a()}else console.error("ZUI: search box init error, cannot find search box input element.")};n.DEFAULTS={inputSelector:'input[type="search"],input[type="text"]',listenEvent:"change input paste",changeDelay:500},n.prototype.getSearch=function(){return this.$input&&t.trim(this.$input.val())},n.prototype.setSearch=function(t,e){var n=this.$input;n&&(n.val(t),e||n.trigger("change"))},n.prototype.focus=function(){this.$input&&this.$input.focus()},t.fn.searchBox=function(i){return this.each(function(){var o=t(this),r=o.data(e),a="object"==typeof i&&i;r||o.data(e,r=new n(this,a)),"string"==typeof i&&r[i]()})},n.NAME=e,t.fn.searchBox.Constructor=n}(jQuery),function(t,e){"use strict";var n="zui.draggable",i={container:"body",move:!0},o=0,r=function(e,n){this.$=t(e),this.id=o++,this.options=t.extend({},i,this.$.data(),n),this.init()};r.DEFAULTS=i,r.NAME=n,r.prototype.init=function(){var i,o,r,a,s,l=this.$,c="."+n+"."+this.id,d="mousedown"+c,u="mouseup"+c,p="mousemove"+c,h=this.options,f=h.selector,g=h.handle,m=l,v=t.isFunction(h.move),y=function(t){var e=t.pageX,n=t.pageY;s=!0;var o={left:e-r.x,top:n-r.y};m.removeClass("drag-ready").addClass("dragging"),h.move&&(v?h.move(o,m):m.css(o)),h.drag&&h.drag({event:t,element:m,startOffset:r,pos:o,offset:{x:e-i.x,y:n-i.y},smallOffset:{x:e-a.x,y:n-a.y}}),a.x=e,a.y=n,h.stopPropagation&&t.stopPropagation()},b=function(n){if(t(e).off(c),s){var o={left:n.pageX-r.x,top:n.pageY-r.y};m.removeClass("drag-ready dragging"),h.move&&(v?h.move(o,m):m.css(o)),h.finish&&h.finish({event:n,element:m,startOffset:r,pos:o,offset:{x:n.pageX-i.x,y:n.pageY-i.y},smallOffset:{x:n.pageX-a.x,y:n.pageY-a.y}}),n.preventDefault(),h.stopPropagation&&n.stopPropagation()}else m.removeClass("drag-ready")},x=function(n){var l=t.zui.getMouseButtonCode(h.mouseButton);if(!(l>-1&&n.button!==l)){var c=t(this);if(f&&(m=g?c.closest(f):c),h.before){if(!1===h.before({event:n,element:m}))return}var d=t(h.container),v=m.offset();o=d.offset(),i={x:n.pageX,y:n.pageY},r={x:n.pageX-v.left+o.left,y:n.pageY-v.top+o.top},a=t.extend({},i),s=!1,m.addClass("drag-ready"),n.preventDefault(),h.stopPropagation&&n.stopPropagation(),t(e).on(p,y).on(u,b)}};g?l.on(d,g,x):f?l.on(d,f,x):l.on(d,x)},r.prototype.destroy=function(){var i="."+n+"."+this.id;this.$.off(i),t(e).off(i),this.$.data(n,null)},t.fn.draggable=function(e){return this.each(function(){var i=t(this),o=i.data(n),a="object"==typeof e&&e;o||i.data(n,o=new r(this,a)),"string"==typeof e&&o[e]()})},t.fn.draggable.Constructor=r}(jQuery,document),function(t,e,n){"use strict";var i="zui.droppable",o={target:".droppable-target",deviation:5,sensorOffsetX:0,sensorOffsetY:0,dropToClass:"drop-to"},r=0,a=function(e,n){this.id=r++,this.$=t(e),this.options=t.extend({},o,this.$.data(),n),this.init()};a.DEFAULTS=o,a.NAME=i,a.prototype.trigger=function(e,n){return t.zui.callEvent(this.options[e],n,this)},a.prototype.init=function(){var o,r,a,s,l,c,d,u,p,h,f,g,m,v=this,y=v.$,b=v.options,x=b.deviation,$="."+i+"."+v.id,w="mousedown"+$,_="mouseup"+$,C="mousemove"+$,k=b.selector,E=b.handle,T=b.flex,S=b.container,j=b.canMoveHere,A=b.dropToClass,M=y,I=!1,N=S?t(b.container).first():k?y:t("body"),D=function(e){if(I&&(f={left:e.pageX,top:e.pageY},!(n.abs(f.left-u.left)r&&f.top>a&&f.left-1&&n.button!==i)){var f=t(this);k&&(M=E?f.closest(k):f),M.hasClass("drag-shadow")||b.before&&!1===b.before({event:n,element:M})||(I=!0,o=t.isFunction(b.target)?b.target(M,y):N.find(b.target),r=null,a=null,s=!1,l=!0,c=null,d=M.offset(),(p=N.offset()).top=p.top-N.scrollTop(),p.left=p.left-N.scrollLeft(),u={left:n.pageX,top:n.pageY},g=t.extend({},u),h={left:u.left-d.left,top:u.top-d.top},M.addClass("drag-from"),t(e).on(C,D).on(_,L),m=setTimeout(function(){t(e).on(w,L)},10),n.preventDefault(),b.stopPropagation&&n.stopPropagation())}};E?y.on(w,E,B):k?y.on(w,k,B):y.on(w,B)},a.prototype.destroy=function(){var n="."+i+"."+this.id;this.$.off(n),t(e).off(n),this.$.data(i,null)},a.prototype.reset=function(){this.destroy(),this.init()},t.fn.droppable=function(e){return this.each(function(){var n=t(this),o=n.data(i),r="object"==typeof e&&e;o||n.data(i,o=new a(this,r)),"string"==typeof e&&o[e]()})},t.fn.droppable.Constructor=a}(jQuery,document,Math),function(t,e){"use strict";function n(e,n,r){return this.each(function(){var a=t(this),s=a.data(i),l=t.extend({},o.DEFAULTS,a.data(),"object"==typeof e&&e);s||a.data(i,s=new o(this,l)),"string"==typeof e?s[e](n,r):l.show&&s.show(n,r)})}var i="zui.modal",o=function(n,o){var r=this;r.options=o,r.$body=t(document.body),r.$element=t(n),r.$backdrop=r.isShown=null,r.scrollbarWidth=0,o.moveable===e&&(r.options.moveable=r.$element.hasClass("modal-moveable")),o.remote&&r.$element.find(".modal-content").load(o.remote,function(){r.$element.trigger("loaded."+i)})};o.VERSION="3.2.0",o.TRANSITION_DURATION=300,o.BACKDROP_TRANSITION_DURATION=150,o.DEFAULTS={backdrop:!0,keyboard:!0,show:!0,position:"fit"};var r=function(e,n){var i=t(window);n.left=Math.max(0,Math.min(n.left,i.width()-e.outerWidth())),n.top=Math.max(0,Math.min(n.top,i.height()-e.outerHeight())),e.css(n)};o.prototype.toggle=function(t,e){return this.isShown?this.hide():this.show(t,e)},o.prototype.ajustPosition=function(n){var o=this.options;if(n===e&&(n=o.position),n!==e&&null!==n){t.isFunction(n)&&(n=n(this));var a=this.$element.find(".modal-dialog"),s=t(window).height(),l={maxHeight:"initial",overflow:"visible"},c=a.find(".modal-body").css(l);if(o.scrollInside){var d=o.headerHeight;"number"!=typeof d?d=a.find(".modal-header").height():t.isFunction(d)&&(d=d($header)),l.maxHeight=s-d,c.outerHeight()>l.maxHeight&&(l.overflow="auto")}c.css(l);var u=Math.max(0,(s-a.outerHeight())/2);if("fit"===n?n={top:u>50?Math.floor(2*u/3):u}:"center"===n?n={top:u}:t.isPlainObject(n)||(n={top:n}),a.hasClass("modal-moveable")){var p=null,h=o.rememberPos;h&&(!0===h?p=this.$element.data("modal-pos"):t.zui.store&&(p=t.zui.store.pageGet(i+".rememberPos."+h))),n=t.extend(n,{left:Math.max(0,(t(window).width()-a.outerWidth())/2)},p),"inside"===o.moveable?r(a,n):a.css(n)}else a.css(n)}},o.prototype.setMoveale=function(){t.fn.draggable||console.error("Moveable modal requires draggable.js.");var e=this,n=e.options,o=e.$element.find(".modal-dialog").removeClass("modal-dragged");o.toggleClass("modal-moveable",!!n.moveable),e.$element.data("modal-moveable-setup")||o.draggable({container:e.$element,handle:".modal-header",before:function(){var t=o.css("margin-top");t&&"0px"!==t&&o.css("top",t).css("margin-top","").addClass("modal-dragged")},finish:function(o){var r=n.rememberPos;r&&(e.$element.data("modal-pos",o.pos),t.zui.store&&!0!==r&&t.zui.store.pageSet(i+".rememberPos."+r,o.pos))},move:"inside"!==n.moveable||function(t){r(o,t)}})},o.prototype.show=function(e,n){var r=this,a=t.Event("show."+i,{relatedTarget:e});r.$element.trigger(a),r.$element.toggleClass("modal-scroll-inside",!!r.options.scrollInside),r.isShown||a.isDefaultPrevented()||(r.isShown=!0,r.options.moveable&&r.setMoveale(),r.checkScrollbar(),!1!==r.options.backdrop&&(r.$body.addClass("modal-open"),r.setScrollbar()),r.escape(),r.$element.on("click.dismiss."+i,'[data-dismiss="modal"]',function(t){r.hide(),t.stopPropagation()}),r.backdrop(function(){var a=t.support.transition&&r.$element.hasClass("fade");r.$element.parent().length||r.$element.appendTo(r.$body),r.$element.show().scrollTop(0),a&&r.$element[0].offsetWidth,r.$element.addClass("in").attr("aria-hidden",!1),r.ajustPosition(n),r.enforceFocus();var s=t.Event("shown."+i,{relatedTarget:e});a?r.$element.find(".modal-dialog").one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(s)}).emulateTransitionEnd(o.TRANSITION_DURATION):r.$element.trigger("focus").trigger(s)}))},o.prototype.hide=function(e){e&&e.preventDefault&&e.preventDefault();e=t.Event("hide."+i),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,!1!==this.options.backdrop&&(this.$body.removeClass("modal-open"),this.resetScrollbar()),this.escape(),t(document).off("focusin."+i),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss."+i),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(o.TRANSITION_DURATION):this.hideModal())},o.prototype.enforceFocus=function(){t(document).off("focusin."+i).on("focusin."+i,t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},o.prototype.escape=function(){this.isShown&&this.options.keyboard?t(document).on("keydown.dismiss."+i,t.proxy(function(n){if(27==n.which){var o=t.Event("escaping."+i),r=this.$element.triggerHandler(o,"esc");if(r!=e&&!r)return;this.hide()}},this)):this.isShown||t(document).off("keydown.dismiss."+i)},o.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$element.trigger("hidden."+i)})},o.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},o.prototype.backdrop=function(e){var n=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var a=t.support.transition&&r;if(this.$backdrop=t('').appendTo(this.$body),this.$element.on("mousedown.dismiss."+i,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)),a&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;a?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(o.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){n.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(o.BACKDROP_TRANSITION_DURATION):s()}else e&&e()},o.prototype.checkScrollbar=function(){document.body.clientWidth>=window.innerWidth||(this.scrollbarWidth=this.scrollbarWidth||this.measureScrollbar())},o.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",t+this.scrollbarWidth)},o.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},o.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 a=t.fn.modal;t.fn.modal=n,t.fn.modal.Constructor=o,t.fn.modal.noConflict=function(){return t.fn.modal=a,this},t(document).on("click."+i+".data-api",'[data-toggle="modal"]',function(e){var o=t(this),r=o.attr("href"),a=null;try{a=t(o.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,""))}catch(t){return}if(a.length){var s=a.data(i)?"toggle":t.extend({remote:!/#/.test(r)&&r},a.data(),o.data());o.is("a")&&e.preventDefault(),a.one("show."+i,function(t){t.isDefaultPrevented()||a.one("hidden."+i,function(){o.is(":visible")&&o.trigger("focus")})}),n.call(a,s,this,o.data("position"))}})}(jQuery,void 0),function(t,e,n){"use strict";if(!t.fn.modal)throw new Error("Modal trigger requires modal.js");var i="zui.modaltrigger",o=function(e,n){e=t.extend({},o.DEFAULTS,t.ModalTriggerDefaults,n?n.data():null,e),this.isShown,this.$trigger=n,this.options=e,this.id=t.zui.uuid()};o.DEFAULTS={type:"custom",height:"auto",name:"triggerModal",fade:!0,position:"fit",showHeader:!0,delay:0,backdrop:!0,keyboard:!0,waittime:0,loadingIcon:"icon-spinner-indicator",scrollInside:!1},o.prototype.init=function(n){var o=this;if(n.url&&(!n.type||"ajax"!=n.type&&"iframe"!=n.type)&&(n.type="ajax"),n.remote)n.type="ajax","string"==typeof n.remote&&(n.url=n.remote);else if(n.iframe)n.type="iframe","string"==typeof n.iframe&&(n.url=n.iframe);else if(n.custom&&(n.type="custom","string"==typeof n.custom)){var r;try{r=t(n.custom)}catch(t){}r&&r.length?n.custom=r:t.isFunction(e[n.custom])&&(n.custom=e[n.custom])}var a=t("#"+n.name);a.length&&(o.isShown||a.off(".zui.modal"),a.remove()),a=t(''+("string"==typeof n.loadingIcon&&0===n.loadingIcon.indexOf("icon-")?'
':n.loadingIcon)+'
').appendTo("body").data(i,o);var s=function(e,i){var o=n[e];t.isFunction(o)&&a.on(i+".zui.modal",o)};s("onShow","show"),s("shown","shown"),s("onHide","hide"),s("hidden","hidden"),s("loaded","loaded"),a.on("shown.zui.modal",function(){o.isShown=!0}).on("hidden.zui.modal",function(){o.isShown=!1}),this.$modal=a,this.$dialog=a.find(".modal-dialog"),n.mergeOptions&&(this.options=n)},o.prototype.show=function(n){var o=t.extend({},this.options,{url:this.$trigger?this.$trigger.attr("href")||this.$trigger.attr("data-url")||this.$trigger.data("url"):this.options.url},n);this.init(o);var r=this,a=this.$modal,s=this.$dialog,l=o.custom,c=s.find(".modal-body").css("padding",""),d=s.find(".modal-header"),u=s.find(".modal-content");a.toggleClass("fade",o.fade).addClass(o.className).toggleClass("modal-loading",!this.isShown).toggleClass("modal-scroll-inside",!!o.scrollInside),s.toggleClass("modal-md","md"===o.size).toggleClass("modal-sm","sm"===o.size).toggleClass("modal-lg","lg"===o.size).toggleClass("modal-fullscreen","fullscreen"===o.size),d.toggle(o.showHeader),d.find(".modal-icon").attr("class","modal-icon icon-"+o.icon),d.find(".modal-title-name").text(o.title||""),o.size&&"fullscreen"===o.size&&(o.width="",o.height="");var p=function(){clearTimeout(this.resizeTask),this.resizeTask=setTimeout(function(){r.ajustPosition(o.position)},100)},h=function(t,e){return void 0===t&&(t=o.delay),setTimeout(function(){s=a.find(".modal-dialog"),o.width&&"auto"!=o.width&&s.css("width",o.width),o.height&&"auto"!=o.height&&(s.css("height",o.height),"iframe"===o.type&&c.css("height",s.height()-d.outerHeight())),r.ajustPosition(o.position),a.removeClass("modal-loading"),"iframe"!=o.type&&s.off("resize."+i).on("resize."+i,p),e&&e()},t)};if("custom"===o.type&&l)if(t.isFunction(l)){var f=l({modal:a,options:o,modalTrigger:r,ready:h});"string"==typeof f&&(c.html(f),h())}else l instanceof t?(c.html(t("").append(l.clone()).html()),h()):(c.html(l),h());else if(o.url){var g=function(){var t=a.callComEvent(r,"broken");t&&(c.html(t),h())};if(a.attr("ref",o.url),"iframe"===o.type){a.addClass("modal-iframe"),this.firstLoad=!0;var m="iframe-"+o.name;d.detach(),c.detach(),u.empty().append(d).append(c),c.css("padding",0).html('
'),o.waittime>0&&(r.waitTimeout=h(o.waittime,g));var v=document.getElementById(m);v.onload=v.onreadystatechange=function(){var n=!!o.scrollInside;if(r.firstLoad&&a.addClass("modal-loading"),!this.readyState||"complete"==this.readyState){r.firstLoad=!1,o.waittime>0&&clearTimeout(r.waitTimeout);try{a.attr("ref",v.contentWindow.location.href);var s=e.frames[m].$;if(s&&"auto"===o.height&&"fullscreen"!=o.size){var l=s("body").addClass("body-modal").toggleClass("body-modal-scroll-inside",n);o.iframeBodyClass&&l.addClass(o.iframeBodyClass);var u=[],p=function(i){a.removeClass("fade");var r=l.outerHeight();if(!0===i&&o.onlyIncreaseHeight&&(r=Math.max(r,c.data("minModalHeight")||0),c.data("minModalHeight",r)),n){var s=o.headerHeight;"number"!=typeof s?s=d.height():t.isFunction(s)&&(s=s(d));var p=t(e).height();r=Math.min(r,p-s)}for(u.length>1&&r===u[0]&&(r=Math.max(r,u[1])),u.push(r);u.length>2;)u.shift();c.css("height",r),o.fade&&a.addClass("fade"),h()};a.callComEvent(r,"loaded",{modalType:"iframe",jQuery:s}),setTimeout(p,100),l.off("resize."+i).on("resize."+i,p),n&&t(e).off("resize."+i).on("resize."+i,p)}else h()}catch(t){h()}}}}else t.ajax(t.extend({url:o.url,success:function(n){try{var i=t(n);i.filter(".modal-dialog").length?s.replaceWith(i):i.filter(".modal-content").length?s.find(".modal-content").replaceWith(i):c.wrapInner(i)}catch(t){e.console&&e.console.warn&&console.warn("ZUI: Cannot recogernize remote content.",{error:t,data:n}),a.html(n)}a.callComEvent(r,"loaded",{modalType:"ajax"}),h()},error:g},o.ajaxOptions))}a.modal({show:"show",backdrop:o.backdrop,moveable:o.moveable,rememberPos:o.rememberPos,keyboard:o.keyboard,scrollInside:o.scrollInside})},o.prototype.close=function(n,i){var o=this;(n||i)&&o.$modal.on("hidden.zui.modal",function(){t.isFunction(n)&&n(),"string"==typeof i&&i.length&&!o.$modal.data("cancel-reload")&&("this"===i?e.location.reload():e.location=i)}),o.$modal.modal("hide")},o.prototype.toggle=function(t){this.isShown?this.close():this.show(t)},o.prototype.ajustPosition=function(e){e=e===n?this.options.position:e,t.isFunction(e)&&(e=e(this)),this.$modal.modal("ajustPosition",e)},t.zui({ModalTrigger:o,modalTrigger:new o}),t.fn.modalTrigger=function(e,n){return t(this).each(function(){var r=t(this),a=r.data(i),s=t.extend({title:r.attr("title")||r.text(),url:r.attr("href"),type:r.hasClass("iframe")?"iframe":""},r.data(),t.isPlainObject(e)&&e);a||r.data(i,a=new o(s,r)),"string"==typeof e?a[e](n):s.show&&a.show(n),r.on((s.trigger||"click")+".toggle."+i,function(e){s=t.extend(s,{url:r.attr("href")||r.attr("data-url")||r.data("url")||s.url}),a.toggle(s),r.is("a")&&e.preventDefault()})})};var r=t.fn.modal;t.fn.modal=function(e,n){return t(this).each(function(){var i=t(this);i.hasClass("modal")?r.call(i,e,n):i.modalTrigger(e,n)})},t.fn.modal.bs=r;var a=function(e){return(e=t(e?e:".modal.modal-trigger"))&&e instanceof t?e:null};t.zui({closeModal:function(n,o,r){var s=n;if(t.isFunction(n)){var l=r;r=o,o=n,n=l}(n=a(n))&&n.length?n.each(function(){t(this).data(i).close(o,r)}):t("body").hasClass("modal-open")||t(".modal.in").length||t("body").hasClass("body-modal")&&e.parent.$.zui.closeModal(s,o,r)},ajustModalPosition:function(t,e){(e=a(e))&&e.length&&e.modal("ajustPosition",t)}}),t(document).on("click."+i+".data-api",'[data-toggle="modal"]',function(e){var n=t(this),o=n.attr("href"),r=null;try{r=t(n.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,""))}catch(t){}r&&r.length||(n.data(i)?n.trigger(".toggle."+i):n.modalTrigger({show:!0})),n.is("a")&&e.preventDefault()}).on("click."+i+".data-api",'[data-dismiss="modal"]',function(){t.zui.closeModal()})}(window.jQuery,window,void 0),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:'
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},e.prototype.init=function(e,n,i){this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i);for(var o=this.options.trigger.split(" "),r=o.length;r--;){var a=o[r];if("click"==a)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focus",l="hover"==a?"mouseleave":"blur";this.$element.on(s+"."+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)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,i){n[t]!=i&&(e[t]=i)}),e},e.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget)[this.type](this.getDelegateOptions()).data("zui."+this.type);if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)},e.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget)[this.type](this.getDelegateOptions()).data("zui."+this.type);if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)},e.prototype.show=function(e){var n=t.Event("show.zui."+this.type);if((e||this.hasContent())&&this.enabled){var i=this;if(i.$element.trigger(n),n.isDefaultPrevented())return;var o=i.tip();i.setContent(e),i.options.animation&&o.addClass("fade");var r="function"==typeof i.options.placement?i.options.placement.call(i,o[0],i.$element[0]):i.options.placement,a=/\s?auto?\s?/i,s=a.test(r);s&&(r=r.replace(a,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(r),i.options.container?o.appendTo(i.options.container):o.insertAfter(i.$element);var l=i.getPosition(),c=o[0].offsetWidth,d=o[0].offsetHeight;if(s){var u=i.$element.parent(),p=r,h=document.documentElement.scrollTop||document.body.scrollTop,f="body"==i.options.container?window.innerWidth:u.outerWidth(),g="body"==i.options.container?window.innerHeight:u.outerHeight(),m="body"==i.options.container?0:u.offset().left;r="bottom"==r&&l.top+l.height+d-h>g?"top":"top"==r&&l.top-h-d<0?"bottom":"right"==r&&l.right+c>f?"left":"left"==r&&l.left-c
'}),(e.prototype=t.extend({},t.fn.tooltip.Constructor.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 n=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](n),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,n=this.options,i=e.attr("data-target")||("function"==typeof n.target?n.target.call(e[0]):n.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 n=t.fn.popover;t.fn.popover=function(n){return this.each(function(){var i=t(this),o=i.data("zui.popover"),r="object"==typeof n&&n;o||i.data("zui.popover",o=new e(this,r)),"string"==typeof n&&o[n]()})},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(window.jQuery),function(t){"use strict";function e(){t(o).remove(),t(r).each(function(e){var o=n(t(this));o.hasClass("open")&&(o.trigger(e=t.Event("hide."+i)),e.isDefaultPrevented()||o.removeClass("open").trigger("hidden."+i))})}function n(e){var n=e.attr("data-target");n||(n=(n=e.attr("href"))&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i;try{i=n&&t(n)}catch(t){}return i&&i.length?i:e.parent()}var i="zui.dropdown",o=".dropdown-backdrop",r="[data-toggle=dropdown]",a=function(e){t(e).on("click."+i,this.toggle)};a.prototype.toggle=function(a){var s=t(this),l=a.type;if(!s.is(".disabled, :disabled")){var c=n(s),d=c.hasClass("open");if("click"===l?(d=c.hasClass("open"),e()):(d="mouseenter"!==l,t(o).remove(),t(r).each(function(e){var o=n(t(this));o.hasClass("mouseopen")&&(o.trigger(e=t.Event("hide."+i)),e.isDefaultPrevented()||o.removeClass("mouseopen").trigger("hidden."+i))})),!d){if("ontouchstart"in document.documentElement&&!c.closest(".navbar-nav").length&&t('').insertAfter(t(this)).on("click",e),c.trigger(a=t.Event("show."+i)),a.isDefaultPrevented())return;"click"===l?c.toggleClass("open").trigger("shown."+i):c.toggleClass("mouseopen").trigger("shown."+i),s.focus()}return!1}},a.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=n(i),a=o.hasClass("open");if(!a||a&&27==e.keyCode)return 27==e.which&&o.find(r).focus(),i.click();var s=t("[role=menu] li:not(.divider):visible a",o);if(s.length){var l=s.index(s.filter(":focus"));38==e.keyCode&&l>0&&l--,40==e.keyCode&&l ').appendTo("body"));var v=m.find(".contextmenu-menu").off("click."+n).on("click."+n,"a",function(e){var n=t(this);!1!==(p.onClickItem&&p.onClickItem(n.data("item"),n,e))&&d()}).empty();m.hide().attr("class","contextmenu");var y=p.itemCreator||function(e,n){if("string"==typeof e&&(e="seperator"===e||"divider"===e||"-"===e||"|"===e?{type:"seperator"}:{label:e,id:n}),"seperator"===e.type||"divider"===e.type)return t('