"!==c[1]||lt.test(s)?0:u:u.firstChild,i=s&&s.childNodes.length;while(i--)h.nodeName(f=s.childNodes[i],"tbody")&&!f.childNodes.length&&s.removeChild(f)}h.merge(v,u.childNodes),u.textContent="";while(u.firstChild)u.removeChild(u.firstChild);u=d.lastChild}else v.push(t.createTextNode(s));u&&d.removeChild(u),l.appendChecked||h.grep(wt(v,"input"),Et),m=0;while(s=v[m++])if((!r||-1===h.inArray(s,r))&&(o=h.contains(s.ownerDocument,s),u=wt(d.appendChild(s),"script"),o&&Nt(u),n)){i=0;while(s=u[i++])dt.test(s.type||"")&&n.push(s)}return u=null,d},cleanData:function(e,t){for(var r,i,s,o,u=0,a=h.expando,f=h.cache,c=l.deleteExpando,p=h.event.special;null!=(r=e[u]);u++)if((t||h.acceptData(r))&&(s=r[a],o=s&&f[s])){if(o.events)for(i in o.events)p[i]?h.event.remove(r,i):h.removeEvent(r,i,o.handle);f[s]&&(delete f[s],c?delete r[a]:typeof r.removeAttribute!==B?r.removeAttribute(a):r[a]=null,n.push(s))}}}),h.fn.extend({text:function(e){return $(this,function(e){return void 0===e?h.text(this):this.empty().append((this[0]&&this[0].ownerDocument||T).createTextNode(e))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=St(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=St(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?h.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||h.cleanData(wt(n)),n.parentNode&&(t&&h.contains(n.ownerDocument,n)&&Nt(wt(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){1===e.nodeType&&h.cleanData(wt(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&h.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return h.clone(this,e,t)})},html:function(e){return $(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(st,""):void 0;if(!("string"!=typeof e||ht.test(e)||!l.htmlSerialize&&ot.test(e)||!l.leadingWhitespace&&ut.test(e)||gt[(ft.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(at,"<$1>$2>");try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(h.cleanData(wt(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,h.cleanData(wt(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=i.apply([],e);var n,r,s,o,u,a,f=0,c=this.length,p=this,d=c-1,v=e[0],m=h.isFunction(v);if(m||c>1&&"string"==typeof v&&!l.checkClone&&pt.test(v))return this.each(function(n){var r=p.eq(n);m&&(e[0]=v.call(this,n,r.html())),r.domManip(e,t)});if(c&&(a=h.buildFragment(e,this[0].ownerDocument,!1,this),n=a.firstChild,1===a.childNodes.length&&(a=n),n)){for(o=h.map(wt(a,"script"),xt),s=o.length;c>f;f++)r=a,f!==d&&(r=h.clone(r,!0,!0),s&&h.merge(o,wt(r,"script"))),t.call(this[f],r,f);if(s)for(u=o[o.length-1].ownerDocument,h.map(o,Tt),f=0;s>f;f++)r=o[f],dt.test(r.type||"")&&!h._data(r,"globalEval")&&h.contains(u,r)&&(r.src?h._evalUrl&&h._evalUrl(r.src):h.globalEval((r.text||r.textContent||r.innerHTML||"").replace(mt,"")));a=n=null}return this}}),h.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){h.fn[e]=function(e){for(var n,r=0,i=[],o=h(e),u=o.length-1;u>=r;r++)n=r===u?this:this.clone(!0),h(o[r])[t](n),s.apply(i,n.get());return this.pushStack(i)}});var Lt,At={};!function(){var e;l.shrinkWrapBlocks=function(){if(null!=e)return e;e=!1;var t,n,r;return n=T.getElementsByTagName("body")[0],n&&n.style?(t=T.createElement("div"),r=T.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),typeof t.style.zoom!==B&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(T.createElement("div")).style.width="5px",e=3!==t.offsetWidth),n.removeChild(r),e):void 0}}();var _t=/^margin/,Dt=new RegExp("^("+W+")(?!px)[a-z%]+$","i"),Pt,Ht,Bt=/^(top|right|bottom|left)$/;e.getComputedStyle?(Pt=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)},Ht=function(e,t,n){var r,i,s,o,u=e.style;return n=n||Pt(e),o=n?n.getPropertyValue(t)||n[t]:void 0,n&&(""!==o||h.contains(e.ownerDocument,e)||(o=h.style(e,t)),Dt.test(o)&&_t.test(t)&&(r=u.width,i=u.minWidth,s=u.maxWidth,u.minWidth=u.maxWidth=u.width=o,o=n.width,u.width=r,u.minWidth=i,u.maxWidth=s)),void 0===o?o:o+""}):T.documentElement.currentStyle&&(Pt=function(e){return e.currentStyle},Ht=function(e,t,n){var r,i,s,o,u=e.style;return n=n||Pt(e),o=n?n[t]:void 0,null==o&&u&&u[t]&&(o=u[t]),Dt.test(o)&&!Bt.test(t)&&(r=u.left,i=e.runtimeStyle,s=i&&i.left,s&&(i.left=e.currentStyle.left),u.left="fontSize"===t?"1em":o,o=u.pixelLeft+"px",u.left=r,s&&(i.left=s)),void 0===o?o:o+""||"auto"}),!function(){var t,n,r,i,s,o,u;if(t=T.createElement("div"),t.innerHTML="
a",r=t.getElementsByTagName("a")[0],n=r&&r.style){n.cssText="float:left;opacity:.5",l.opacity="0.5"===n.opacity,l.cssFloat=!!n.cssFloat,t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===t.style.backgroundClip,l.boxSizing=""===n.boxSizing||""===n.MozBoxSizing||""===n.WebkitBoxSizing,h.extend(l,{reliableHiddenOffsets:function(){return null==o&&a(),o},boxSizingReliable:function(){return null==s&&a(),s},pixelPosition:function(){return null==i&&a(),i},reliableMarginRight:function(){return null==u&&a(),u}});function a(){var t,n,r,a;n=T.getElementsByTagName("body")[0],n&&n.style&&(t=T.createElement("div"),r=T.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),t.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",i=s=!1,u=!0,e.getComputedStyle&&(i="1%"!==(e.getComputedStyle(t,null)||{}).top,s="4px"===(e.getComputedStyle(t,null)||{width:"4px"}).width,a=t.appendChild(T.createElement("div")),a.style.cssText=t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",a.style.marginRight=a.style.width="0",t.style.width="1px",u=!parseFloat((e.getComputedStyle(a,null)||{}).marginRight),t.removeChild(a)),t.innerHTML="
",a=t.getElementsByTagName("td"),a[0].style.cssText="margin:0;border:0;padding:0;display:none",o=0===a[0].offsetHeight,o&&(a[0].style.display="",a[1].style.display="none",o=0===a[0].offsetHeight),n.removeChild(r))}}}(),h.swap=function(e,t,n,r){var i,s,o={};for(s in t)o[s]=e.style[s],e.style[s]=t[s];i=n.apply(e,r||[]);for(s in t)e.style[s]=o[s];return i};var Ft=/alpha\([^)]*\)/i,It=/opacity\s*=\s*([^)]*)/,qt=/^(none|table(?!-c[ea]).+)/,Rt=new RegExp("^("+W+")(.*)$","i"),Ut=new RegExp("^([+-])=("+W+")","i"),zt={position:"absolute",visibility:"hidden",display:"block"},Wt={letterSpacing:"0",fontWeight:"400"},Xt=["Webkit","O","Moz","ms"];h.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ht(e,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":l.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,s,o,u=h.camelCase(t),a=e.style;if(t=h.cssProps[u]||(h.cssProps[u]=Vt(a,u)),o=h.cssHooks[t]||h.cssHooks[u],void 0===n)return o&&"get"in o&&void 0!==(i=o.get(e,!1,r))?i:a[t];if(s=typeof n,"string"===s&&(i=Ut.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(h.css(e,t)),s="number"),null!=n&&n===n&&("number"!==s||h.cssNumber[u]||(n+="px"),l.clearCloneStyle||""!==n||0!==t.indexOf("background")||(a[t]="inherit"),!(o&&"set"in o&&void 0===(n=o.set(e,n,r)))))try{a[t]=n}catch(f){}}},css:function(e,t,n,r){var i,s,o,u=h.camelCase(t);return t=h.cssProps[u]||(h.cssProps[u]=Vt(e.style,u)),o=h.cssHooks[t]||h.cssHooks[u],o&&"get"in o&&(s=o.get(e,!0,n)),void 0===s&&(s=Ht(e,t,r)),"normal"===s&&t in Wt&&(s=Wt[t]),""===n||n?(i=parseFloat(s),n===!0||h.isNumeric(i)?i||0:s):s}}),h.each(["height","width"],function(e,t){h.cssHooks[t]={get:function(e,n,r){return n?qt.test(h.css(e,"display"))&&0===e.offsetWidth?h.swap(e,zt,function(){return Qt(e,t,r)}):Qt(e,t,r):void 0},set:function(e,n,r){var i=r&&Pt(e);return Jt(e,n,r?Kt(e,t,r,l.boxSizing&&"border-box"===h.css(e,"boxSizing",!1,i),i):0)}}}),l.opacity||(h.cssHooks.opacity={get:function(e,t){return It.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=h.isNumeric(t)?"alpha(opacity="+100*t+")":"",s=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===h.trim(s.replace(Ft,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=Ft.test(s)?s.replace(Ft,i):s+" "+i)}}),h.cssHooks.marginRight=jt(l.reliableMarginRight,function(e,t){return t?h.swap(e,{display:"inline-block"},Ht,[e,"marginRight"]):void 0}),h.each({margin:"",padding:"",border:"Width"},function(e,t){h.cssHooks[e+t]={expand:function(n){for(var r=0,i={},s="string"==typeof n?n.split(" "):[n];4>r;r++)i[e+X[r]+t]=s[r]||s[r-2]||s[0];return i}},_t.test(e)||(h.cssHooks[e+t].set=Jt)}),h.fn.extend({css:function(e,t){return $(this,function(e,t,n){var r,i,s={},o=0;if(h.isArray(t)){for(r=Pt(e),i=t.length;i>o;o++)s[t[o]]=h.css(e,t[o],!1,r);return s}return void 0!==n?h.style(e,t,n):h.css(e,t)},e,t,arguments.length>1)},show:function(){return $t(this,!0)},hide:function(){return $t(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){V(this)?h(this).show():h(this).hide()})}}),h.Tween=Gt,Gt.prototype={constructor:Gt,init:function(e,t,n,r,i,s){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=s||(h.cssNumber[n]?"":"px")},cur:function(){var e=Gt.propHooks[this.prop];return e&&e.get?e.get(this):Gt.propHooks._default.get(this)},run:function(e){var t,n=Gt.propHooks[this.prop];return this.options.duration?this.pos=t=h.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Gt.propHooks._default.set(this),this}},Gt.prototype.init.prototype=Gt.prototype,Gt.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=h.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){h.fx.step[e.prop]?h.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[h.cssProps[e.prop]]||h.cssHooks[e.prop])?h.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Gt.propHooks.scrollTop=Gt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},h.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},h.fx=Gt.prototype.init,h.fx.step={};var Yt,Zt,en=/^(?:toggle|show|hide)$/,tn=new RegExp("^(?:([+-])=|)("+W+")([a-z%]*)$","i"),nn=/queueHooks$/,rn=[fn],sn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=tn.exec(t),s=i&&i[3]||(h.cssNumber[e]?"":"px"),o=(h.cssNumber[e]||"px"!==s&&+r)&&tn.exec(h.css(n.elem,e)),u=1,a=20;if(o&&o[3]!==s){s=s||o[3],i=i||[],o=+r||1;do u=u||".5",o/=u,h.style(n.elem,e,o+s);while(u!==(u=n.cur()/r)&&1!==u&&--a)}return i&&(o=n.start=+o||+r||0,n.unit=s,n.end=i[1]?o+(i[1]+1)*i[2]:+i[2]),n}]};h.Animation=h.extend(cn,{tweener:function(e,t){h.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;i>r;r++)n=e[r],sn[n]=sn[n]||[],sn[n].unshift(t)},prefilter:function(e,t){t?rn.unshift(e):rn.push(e)}}),h.speed=function(e,t,n){var r=e&&"object"==typeof e?h.extend({},e):{complete:n||!n&&t||h.isFunction(e)&&e,duration:e,easing:n&&t||t&&!h.isFunction(t)&&t};return r.duration=h.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in h.fx.speeds?h.fx.speeds[r.duration]:h.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){h.isFunction(r.old)&&r.old.call(this),r.queue&&h.dequeue(this,r.queue)},r},h.fn.extend({fadeTo:function(e,t,n,r){return this.filter(V).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=h.isEmptyObject(e),s=h.speed(t,n,r),o=function(){var t=cn(this,h.extend({},e),s);(i||h._data(this,"finish"))&&t.stop(!0)};return o.finish=o,i||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",s=h.timers,o=h._data(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&nn.test(i)&&r(o[i]);for(i=s.length;i--;)s[i].elem!==this||null!=e&&s[i].queue!==e||(s[i].anim.stop(n),t=!1,s.splice(i,1));(t||!n)&&h.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=h._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],s=h.timers,o=r?r.length:0;for(n.finish=!0,h.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;o>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),h.each(["toggle","show","hide"],function(e,t){var n=h.fn[t];h.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(un(t,!0),e,r,i)}}),h.each({slideDown:un("show"),slideUp:un("hide"),slideToggle:un("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){h.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),h.timers=[],h.fx.tick=function(){var e,t=h.timers,n=0;for(Yt=h.now();n
a",r=t.getElementsByTagName("a")[0],n=T.createElement("select"),i=n.appendChild(T.createElement("option")),e=t.getElementsByTagName("input")[0],r.style.cssText="top:1px",l.getSetAttribute="t"!==t.className,l.style=/top/.test(r.getAttribute("style")),l.hrefNormalized="/a"===r.getAttribute("href"),l.checkOn=!!e.value,l.optSelected=i.selected,l.enctype=!!T.createElement("form").enctype,n.disabled=!0,l.optDisabled=!i.disabled,e=T.createElement("input"),e.setAttribute("value",""),l.input=""===e.getAttribute("value"),e.value="t",e.setAttribute("type","radio"),l.radioValue="t"===e.value}();var hn=/\r/g;h.fn.extend({val:function(e){var t,n,r,i=this[0];if(arguments.length)return r=h.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,h(this).val()):e,null==i?i="":"number"==typeof i?i+="":h.isArray(i)&&(i=h.map(i,function(e){return null==e?"":e+""})),t=h.valHooks[this.type]||h.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=h.valHooks[i.type]||h.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(hn,""):null==n?"":n)}}),h.extend({valHooks:{option:{get:function(e){var t=h.find.attr(e,"value");return null!=t?t:h.trim(h.text(e))}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,s="select-one"===e.type||0>i,o=s?null:[],u=s?i+1:r.length,a=0>i?u:s?i:0;u>a;a++)if(n=r[a],!(!n.selected&&a!==i||(l.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&h.nodeName(n.parentNode,"optgroup"))){if(t=h(n).val(),s)return t;o.push(t)}return o},set:function(e,t){var n,r,i=e.options,s=h.makeArray(t),o=i.length;while(o--)if(r=i[o],h.inArray(h.valHooks.option.get(r),s)>=0)try{r.selected=n=!0}catch(u){r.scrollHeight}else r.selected=!1;return n||(e.selectedIndex=-1),i}}}}),h.each(["radio","checkbox"],function(){h.valHooks[this]={set:function(e,t){return h.isArray(t)?e.checked=h.inArray(h(e).val(),t)>=0:void 0}},l.checkOn||(h.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var pn,dn,vn=h.expr.attrHandle,mn=/^(?:checked|selected)$/i,gn=l.getSetAttribute,yn=l.input;h.fn.extend({attr:function(e,t){return $(this,h.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){h.removeAttr(this,e)})}}),h.extend({attr:function(e,t,n){var r,i,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return typeof e.getAttribute===B?h.prop(e,t,n):(1===s&&h.isXMLDoc(e)||(t=t.toLowerCase(),r=h.attrHooks[t]||(h.expr.match.bool.test(t)?dn:pn)),void 0===n?r&&"get"in r&&null!==(i=r.get(e,t))?i:(i=h.find.attr(e,t),null==i?void 0:i):null!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):void h.removeAttr(e,t))},removeAttr:function(e,t){var n,r,i=0,s=t&&t.match(O);if(s&&1===e.nodeType)while(n=s[i++])r=h.propFix[n]||n,h.expr.match.bool.test(n)?yn&&gn||!mn.test(n)?e[r]=!1:e[h.camelCase("default-"+n)]=e[r]=!1:h.attr(e,n,""),e.removeAttribute(gn?n:r)},attrHooks:{type:{set:function(e,t){if(!l.radioValue&&"radio"===t&&h.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),dn={set:function(e,t,n){return t===!1?h.removeAttr(e,n):yn&&gn||!mn.test(n)?e.setAttribute(!gn&&h.propFix[n]||n,n):e[h.camelCase("default-"+n)]=e[n]=!0,n}},h.each(h.expr.match.bool.source.match(/\w+/g),function(e,t){var n=vn[t]||h.find.attr;vn[t]=yn&&gn||!mn.test(t)?function(e,t,r){var i,s;return r||(s=vn[t],vn[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,vn[t]=s),i}:function(e,t,n){return n?void 0:e[h.camelCase("default-"+t)]?t.toLowerCase():null}}),yn&&gn||(h.attrHooks.value={set:function(e,t,n){return h.nodeName(e,"input")?void (e.defaultValue=t):pn&&pn.set(e,t,n)}}),gn||(pn={set:function(e,t,n){var r=e.getAttributeNode(n);return r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n)?t:void 0}},vn.id=vn.name=vn.coords=function(e,t,n){var r;return n?void 0:(r=e.getAttributeNode(t))&&""!==r.value?r.value:null},h.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);return n&&n.specified?n.value:void 0},set:pn.set},h.attrHooks.contenteditable={set:function(e,t,n){pn.set(e,""===t?!1:t,n)}},h.each(["width","height"],function(e,t){h.attrHooks[t]={set:function(e,n){return""===n?(e.setAttribute(t,"auto"),n):void 0}}})),l.style||(h.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var bn=/^(?:input|select|textarea|button|object)$/i,wn=/^(?:a|area)$/i;h.fn.extend({prop:function(e,t){return $(this,h.prop,e,t,arguments.length>1)},removeProp:function(e){return e=h.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(t){}})}}),h.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var r,i,s,o=e.nodeType;if(e&&3!==o&&8!==o&&2!==o)return s=1!==o||!h.isXMLDoc(e),s&&(t=h.propFix[t]||t,i=h.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=h.find.attr(e,"tabindex");return t?parseInt(t,10):bn.test(e.nodeName)||wn.test(e.nodeName)&&e.href?0:-1}}}}),l.hrefNormalized||h.each(["href","src"],function(e,t){h.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),l.optSelected||(h.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),h.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){h.propFix[this.toLowerCase()]=this}),l.enctype||(h.propFix.enctype="encoding");var En=/[\t\r\n\f]/g;h.fn.extend({addClass:function(e){var t,n,r,i,s,o,u=0,a=this.length,f="string"==typeof e&&e;if(h.isFunction(e))return this.each(function(t){h(this).addClass(e.call(this,t,this.className))});if(f)for(t=(e||"").match(O)||[];a>u;u++)if(n=this[u],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(En," "):" ")){s=0;while(i=t[s++])r.indexOf(" "+i+" ")<0&&(r+=i+" ");o=h.trim(r),n.className!==o&&(n.className=o)}return this},removeClass:function(e){var t,n,r,i,s,o,u=0,a=this.length,f=0===arguments.length||"string"==typeof e&&e;if(h.isFunction(e))return this.each(function(t){h(this).removeClass(e.call(this,t,this.className))});if(f)for(t=(e||"").match(O)||[];a>u;u++)if(n=this[u],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(En," "):"")){s=0;while(i=t[s++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");o=e?h.trim(r):"",n.className!==o&&(n.className=o)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):this.each(h.isFunction(e)?function(n){h(this).toggleClass(e.call(this,n,this.className,t),t)}:function(){if("string"===n){var t,r=0,i=h(this),s=e.match(O)||[];while(t=s[r++])i.hasClass(t)?i.removeClass(t):i.addClass(t)}else(n===B||"boolean"===n)&&(this.className&&h._data(this,"__className__",this.className),this.className=this.className||e===!1?"":h._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(En," ").indexOf(t)>=0)return!0;return!1}}),h.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){h.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),h.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var Sn=h.now(),xn=/\?/,Tn=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;h.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,r=null,i=h.trim(t+"");return i&&!h.trim(i.replace(Tn,function(e,t,i,s){return n&&t&&(r=0),0===r?e:(n=i||t,r+=!s-!i,"")}))?Function("return "+i)():h.error("Invalid JSON: "+t)},h.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{e.DOMParser?(r=new DOMParser,n=r.parseFromString(t,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(t))}catch(i){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||h.error("Invalid XML: "+t),n};var Nn,Cn,kn=/#.*$/,Ln=/([?&])_=[^&]*/,An=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,On=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Mn=/^(?:GET|HEAD)$/,_n=/^\/\//,Dn=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Pn={},Hn={},Bn="*/".concat("*");try{Cn=location.href}catch(jn){Cn=T.createElement("a"),Cn.href="",Cn=Cn.href}Nn=Dn.exec(Cn.toLowerCase())||[],h.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Cn,type:"GET",isLocal:On.test(Nn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Bn,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":h.parseJSON,"text xml":h.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?qn(qn(e,h.ajaxSettings),t):qn(h.ajaxSettings,e)},ajaxPrefilter:Fn(Pn),ajaxTransport:Fn(Hn),ajax:function(e,t){function x(e,t,n,r){var f,g,y,w,S,x=t;2!==b&&(b=2,o&&clearTimeout(o),a=void 0,s=r||"",E.readyState=e>0?4:0,f=e>=200&&300>e||304===e,n&&(w=Rn(l,E,n)),w=Un(l,w,E,f),f?(l.ifModified&&(S=E.getResponseHeader("Last-Modified"),S&&(h.lastModified[i]=S),S=E.getResponseHeader("etag"),S&&(h.etag[i]=S)),204===e||"HEAD"===l.type?x="nocontent":304===e?x="notmodified":(x=w.state,g=w.data,y=w.error,f=!y)):(y=x,(e||!x)&&(x="error",0>e&&(e=0))),E.status=e,E.statusText=(t||x)+"",f?d.resolveWith(c,[g,x,E]):d.rejectWith(c,[E,x,y]),E.statusCode(m),m=void 0,u&&p.trigger(f?"ajaxSuccess":"ajaxError",[E,l,f?g:y]),v.fireWith(c,[E,x]),u&&(p.trigger("ajaxComplete",[E,l]),--h.active||h.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,r,i,s,o,u,a,f,l=h.ajaxSetup({},t),c=l.context||l,p=l.context&&(c.nodeType||c.jquery)?h(c):h.event,d=h.Deferred(),v=h.Callbacks("once memory"),m=l.statusCode||{},g={},y={},b=0,w="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!f){f={};while(t=An.exec(s))f[t[1].toLowerCase()]=t[2]}t=f[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=y[n]=y[n]||e,g[e]=t),this},overrideMimeType:function(e){return b||(l.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>b)for(t in e)m[t]=[m[t],e[t]];else E.always(e[E.status]);return this},abort:function(e){var t=e||w;return a&&a.abort(t),x(0,t),this}};if(d.promise(E).complete=v.add,E.success=E.done,E.error=E.fail,l.url=((e||l.url||Cn)+"").replace(kn,"").replace(_n,Nn[1]+"//"),l.type=t.method||t.type||l.method||l.type,l.dataTypes=h.trim(l.dataType||"*").toLowerCase().match(O)||[""],null==l.crossDomain&&(n=Dn.exec(l.url.toLowerCase()),l.crossDomain=!(!n||n[1]===Nn[1]&&n[2]===Nn[2]&&(n[3]||("http:"===n[1]?"80":"443"))===(Nn[3]||("http:"===Nn[1]?"80":"443")))),l.data&&l.processData&&"string"!=typeof l.data&&(l.data=h.param(l.data,l.traditional)),In(Pn,l,t,E),2===b)return E;u=h.event&&l.global,u&&0===h.active++&&h.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!Mn.test(l.type),i=l.url,l.hasContent||(l.data&&(i=l.url+=(xn.test(i)?"&":"?")+l.data,delete l.data),l.cache===!1&&(l.url=Ln.test(i)?i.replace(Ln,"$1_="+Sn++):i+(xn.test(i)?"&":"?")+"_="+Sn++)),l.ifModified&&(h.lastModified[i]&&E.setRequestHeader("If-Modified-Since",h.lastModified[i]),h.etag[i]&&E.setRequestHeader("If-None-Match",h.etag[i])),(l.data&&l.hasContent&&l.contentType!==!1||t.contentType)&&E.setRequestHeader("Content-Type",l.contentType),E.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+Bn+"; q=0.01":""):l.accepts["*"]);for(r in l.headers)E.setRequestHeader(r,l.headers[r]);if(!l.beforeSend||l.beforeSend.call(c,E,l)!==!1&&2!==b){w="abort";for(r in{success:1,error:1,complete:1})E[r](l[r]);if(a=In(Hn,l,t,E)){E.readyState=1,u&&p.trigger("ajaxSend",[E,l]),l.async&&l.timeout>0&&(o=setTimeout(function(){E.abort("timeout")},l.timeout));try{b=1,a.send(g,x)}catch(S){if(!(2>b))throw S;x(-1,S)}}else x(-1,"No Transport");return E}return E.abort()},getJSON:function(e,t,n){return h.get(e,t,n,"json")},getScript:function(e,t){return h.get(e,void 0,t,"script")}}),h.each(["get","post"],function(e,t){h[t]=function(e,n,r,i){return h.isFunction(n)&&(i=i||r,r=n,n=void 0),h.ajax({url:e,type:t,dataType:i,data:n,success:r})}}),h._evalUrl=function(e){return h.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},h.fn.extend({wrapAll:function(e){if(h.isFunction(e))return this.each(function(t){h(this).wrapAll(e.call(this,t))});if(this[0]){var t=h(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return this.each(h.isFunction(e)?function(t){h(this).wrapInner(e.call(this,t))}:function(){var t=h(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=h.isFunction(e);return this.each(function(n){h(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){h.nodeName(this,"body")||h(this).replaceWith(this.childNodes)}).end()}}),h.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!l.reliableHiddenOffsets()&&"none"===(e.style&&e.style.display||h.css(e,"display"))},h.expr.filters.visible=function(e){return!h.expr.filters.hidden(e)};var zn=/%20/g,Wn=/\[\]$/,Xn=/\r?\n/g,Vn=/^(?:submit|button|image|reset|file)$/i,$n=/^(?:input|select|textarea|keygen)/i;h.param=function(e,t){var n,r=[],i=function(e,t){t=h.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=h.ajaxSettings&&h.ajaxSettings.traditional),h.isArray(e)||e.jquery&&!h.isPlainObject(e))h.each(e,function(){i(this.name,this.value)});else for(n in e)Jn(n,e[n],t,i);return r.join("&").replace(zn,"+")},h.fn.extend({serialize:function(){return h.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=h.prop(this,"elements");return e?h.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!h(this).is(":disabled")&&$n.test(this.nodeName)&&!Vn.test(e)&&(this.checked||!J.test(e))}).map(function(e,t){var n=h(this).val();return null==n?null:h.isArray(n)?h.map(n,function(e){return{name:t.name,value:e.replace(Xn,"\r\n")}}):{name:t.name,value:n.replace(Xn,"\r\n")}}).get()}}),h.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Yn()||Zn()}:Yn;var Kn=0,Qn={},Gn=h.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in Qn)Qn[e](void 0,!0)}),l.cors=!!Gn&&"withCredentials"in Gn,Gn=l.ajax=!!Gn,Gn&&h.ajaxTransport(function(e){if(!e.crossDomain||l.cors){var t;return{send:function(n,r){var i,s=e.xhr(),o=++Kn;if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)s[i]=e.xhrFields[i];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)void 0!==n[i]&&s.setRequestHeader(i,n[i]+"");s.send(e.hasContent&&e.data||null),t=function(n,i){var u,a,f;if(t&&(i||4===s.readyState))if(delete Qn[o],t=void 0,s.onreadystatechange=h.noop,i)4!==s.readyState&&s.abort();else{f={},u=s.status,"string"==typeof s.responseText&&(f.text=s.responseText);try{a=s.statusText}catch(l){a=""}u||!e.isLocal||e.crossDomain?1223===u&&(u=204):u=f.text?200:404}f&&r(u,a,f,s.getAllResponseHeaders())},e.async?4===s.readyState?setTimeout(t):s.onreadystatechange=Qn[o]=t:t()},abort:function(){t&&t(void 0,!0)}}}}),h.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return h.globalEval(e),e}}}),h.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),h.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=T.head||h("head")[0]||T.documentElement;return{send:function(r,i){t=T.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||i(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var er=[],tr=/(=)\?(?=&|$)|\?\?/;h.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=er.pop()||h.expando+"_"+Sn++;return this[e]=!0,e}}),h.ajaxPrefilter("json jsonp",function(t,n,r){var i,s,o,u=t.jsonp!==!1&&(tr.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&tr.test(t.data)&&"data");return u||"jsonp"===t.dataTypes[0]?(i=t.jsonpCallback=h.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,u?t[u]=t[u].replace(tr,"$1"+i):t.jsonp!==!1&&(t.url+=(xn.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||h.error(i+" was not called"),o[0]},t.dataTypes[0]="json",s=e[i],e[i]=function(){o=arguments},r.always(function(){e[i]=s,t[i]&&(t.jsonpCallback=n.jsonpCallback,er.push(i)),o&&h.isFunction(s)&&s(o[0]),o=s=void 0}),"script"):void 0}),h.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||T;var r=w.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=h.buildFragment([e],t,i),i&&i.length&&h(i).remove(),h.merge([],r.childNodes))};var nr=h.fn.load;h.fn.load=function(e,t,n){if("string"!=typeof e&&nr)return nr.apply(this,arguments);var r,i,s,o=this,u=e.indexOf(" ");return u>=0&&(r=h.trim(e.slice(u,e.length)),e=e.slice(0,u)),h.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(s="POST"),o.length>0&&h.ajax({url:e,type:s,dataType:"html",data:t}).done(function(e){i=arguments,o.html(r?h("
").append(h.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){o.each(n,i||[e.responseText,t,e])}),this},h.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){h.fn[t]=function(e){return this.on(t,e)}}),h.expr.filters.animated=function(e){return h.grep(h.timers,function(t){return e===t.elem}).length};var rr=e.document.documentElement;h.offset={setOffset:function(e,t,n){var r,i,s,o,u,a,f,l=h.css(e,"position"),c=h(e),p={};"static"===l&&(e.style.position="relative"),u=c.offset(),s=h.css(e,"top"),a=h.css(e,"left"),f=("absolute"===l||"fixed"===l)&&h.inArray("auto",[s,a])>-1,f?(r=c.position(),o=r.top,i=r.left):(o=parseFloat(s)||0,i=parseFloat(a)||0),h.isFunction(t)&&(t=t.call(e,n,u)),null!=t.top&&(p.top=t.top-u.top+o),null!=t.left&&(p.left=t.left-u.left+i),"using"in t?t.using.call(e,p):c.css(p)}},h.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){h.offset.setOffset(this,e,t)});var t,n,r={top:0,left:0},i=this[0],s=i&&i.ownerDocument;if(s)return t=s.documentElement,h.contains(t,i)?(typeof i.getBoundingClientRect!==B&&(r=i.getBoundingClientRect()),n=ir(s),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r},position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===h.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),h.nodeName(e[0],"html")||(n=e.offset()),n.top+=h.css(e[0],"borderTopWidth",!0),n.left+=h.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-h.css(r,"marginTop",!0),left:t.left-n.left-h.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||rr;while(e&&!h.nodeName(e,"html")&&"static"===h.css(e,"position"))e=e.offsetParent;return e||rr})}}),h.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);h.fn[e]=function(r){return $(this,function(e,r,i){var s=ir(e);return void 0===i?s?t in s?s[t]:s.document.documentElement[r]:e[r]:void (s?s.scrollTo(n?h(s).scrollLeft():i,n?i:h(s).scrollTop()):e[r]=i)},e,r,arguments.length,null)}}),h.each(["top","left"],function(e,t){h.cssHooks[t]=jt(l.pixelPosition,function(e,n){return n?(n=Ht(e,t),Dt.test(n)?h(e).position()[t]+"px":n):void 0})}),h.each({Height:"height",Width:"width"},function(e,t){h.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){h.fn[r]=function(r,i){var s=arguments.length&&(n||"boolean"!=typeof r),o=n||(r===!0||i===!0?"margin":"border");return $(this,function(t,n,r){var i;return h.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?h.css(t,n,o):h.style(t,n,r,o)},t,s?r:void 0,s,null)}})}),h.fn.size=function(){return this.length},h.fn.andSelf=h.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return h});var sr=e.jQuery,or=e.$;return h.noConflict=function(t){return e.$===h&&(e.$=or),t&&e.jQuery===h&&(e.jQuery=sr),h},typeof t===B&&(e.jQuery=e.$=h),h}),function(e){typeof define=="function"&&define.amd?define("ztree",["jquery"],e):e(jQuery)}(function($){var settings={},roots={},caches={},_consts={className:{BUTTON:"button",LEVEL:"level",ICO_LOADING:"ico_loading",SWITCH:"switch"},event:{NODECREATED:"ztree_nodeCreated",CLICK:"ztree_click",EXPAND:"ztree_expand",COLLAPSE:"ztree_collapse",ASYNC_SUCCESS:"ztree_async_success",ASYNC_ERROR:"ztree_async_error"},id:{A:"_a",ICON:"_ico",SPAN:"_span",SWITCH:"_switch",UL:"_ul"},line:{ROOT:"root",ROOTS:"roots",CENTER:"center",BOTTOM:"bottom",NOLINE:"noline",LINE:"line"},folder:{OPEN:"open",CLOSE:"close",DOCU:"docu"},node:{CURSELECTED:"curSelectedNode"}},_setting={treeId:"",treeObj:null,view:{addDiyDom:null,autoCancelSelected:!0,dblClickExpand:!0,expandSpeed:"fast",fontCss:{},nameIsHTML:!1,selectedMulti:!0,showIcon:!0,showLine:!0,showTitle:!0},data:{key:{children:"children",name:"name",title:"",url:"url"},simpleData:{enable:!1,idKey:"id",pIdKey:"pId",rootPId:null},keep:{parent:!1,leaf:!1}},async:{enable:!1,contentType:"application/x-www-form-urlencoded",type:"post",dataType:"text",url:"",autoParam:[],otherParam:[],dataFilter:null},callback:{beforeAsync:null,beforeClick:null,beforeDblClick:null,beforeRightClick:null,beforeMouseDown:null,beforeMouseUp:null,beforeExpand:null,beforeCollapse:null,beforeRemove:null,onAsyncError:null,onAsyncSuccess:null,onNodeCreated:null,onClick:null,onDblClick:null,onRightClick:null,onMouseDown:null,onMouseUp:null,onExpand:null,onCollapse:null,onRemove:null}},_initRoot=function(e){var t=data.getRoot(e);t||(t={},data.setRoot(e,t)),t[e.data.key.children]=[],t.expandTriggerFlag=!1,t.curSelectedList=[],t.noSelection=!0,t.createdNodes=[],t.zId=0,t._ver=(new Date).getTime()},_initCache=function(e){var t=data.getCache(e);t||(t={},data.setCache(e,t)),t.nodes=[],t.doms=[]},_bindEvent=function(e){var t=e.treeObj,n=consts.event;t.bind(n.NODECREATED,function(t,n,r){tools.apply(e.callback.onNodeCreated,[t,n,r])}),t.bind(n.CLICK,function(t,n,r,i,s){tools.apply(e.callback.onClick,[n,r,i,s])}),t.bind(n.EXPAND,function(t,n,r){tools.apply(e.callback.onExpand,[t,n,r])}),t.bind(n.COLLAPSE,function(t,n,r){tools.apply(e.callback.onCollapse,[t,n,r])}),t.bind(n.ASYNC_SUCCESS,function(t,n,r,i){tools.apply(e.callback.onAsyncSuccess,[t,n,r,i])}),t.bind(n.ASYNC_ERROR,function(t,n,r,i,s,o){tools.apply(e.callback.onAsyncError,[t,n,r,i,s,o])})},_unbindEvent=function(e){var t=e.treeObj,n=consts.event;t.unbind(n.NODECREATED).unbind(n.CLICK).unbind(n.EXPAND).unbind(n.COLLAPSE).unbind(n.ASYNC_SUCCESS).unbind(n.ASYNC_ERROR)},_eventProxy=function(e){var t=e.target,n=data.getSetting(e.data.treeId),r="",i=null,s="",o="",u=null,a=null,f=null;tools.eqs(e.type,"mousedown")?o="mousedown":tools.eqs(e.type,"mouseup")?o="mouseup":tools.eqs(e.type,"contextmenu")?o="contextmenu":tools.eqs(e.type,"click")?tools.eqs(t.tagName,"span")&&t.getAttribute("treeNode"+consts.id.SWITCH)!==null?(r=tools.getNodeMainDom(t).id,s="switchNode"):(f=tools.getMDom(n,t,[{tagName:"a",attrName:"treeNode"+consts.id.A}]),f&&(r=tools.getNodeMainDom(f).id,s="clickNode")):tools.eqs(e.type,"dblclick")&&(o="dblclick",f=tools.getMDom(n,t,[{tagName:"a",attrName:"treeNode"+consts.id.A}]),f&&(r=tools.getNodeMainDom(f).id,s="switchNode")),o.length>0&&r.length==0&&(f=tools.getMDom(n,t,[{tagName:"a",attrName:"treeNode"+consts.id.A}]),f&&(r=tools.getNodeMainDom(f).id));if(r.length>0){i=data.getNodeCache(n,r);switch(s){case"switchNode":i.isParent?tools.eqs(e.type,"click")||tools.eqs(e.type,"dblclick")&&tools.apply(n.view.dblClickExpand,[n.treeId,i],n.view.dblClickExpand)?u=handler.onSwitchNode:s="":s="";break;case"clickNode":u=handler.onClickNode}}switch(o){case"mousedown":a=handler.onZTreeMousedown;break;case"mouseup":a=handler.onZTreeMouseup;break;case"dblclick":a=handler.onZTreeDblclick;break;case"contextmenu":a=handler.onZTreeContextmenu}var l={stop:!1,node:i,nodeEventType:s,nodeEventCallback:u,treeEventType:o,treeEventCallback:a};return l},_initNode=function(e,t,n,r,i,s,o){if(!n)return;var u=data.getRoot(e),a=e.data.key.children;n.level=t,n.tId=e.treeId+"_"+ ++u.zId,n.parentTId=r?r.tId:null,n[a]&&n[a].length>0?(typeof n.open=="string"&&(n.open=tools.eqs(n.open,"true")),n.open=!!n.open,n.isParent=!0,n.zAsync=!0):(n.open=!1,typeof n.isParent=="string"&&(n.isParent=tools.eqs(n.isParent,"true")),n.isParent=!!n.isParent,n.zAsync=!n.isParent),n.isFirstNode=i,n.isLastNode=s,n.getParentNode=function(){return data.getNodeCache(e,n.parentTId)},n.getPreNode=function(){return data.getPreNode(e,n)},n.getNextNode=function(){return data.getNextNode(e,n)},n.isAjaxing=!1,data.fixPIdKeyValue(e,n)},_init={bind:[_bindEvent],unbind:[_unbindEvent],caches:[_initCache],nodes:[_initNode],proxys:[_eventProxy],roots:[_initRoot],beforeA:[],afterA:[],innerBeforeA:[],innerAfterA:[],zTreeTools:[]},data={addNodeCache:function(e,t){data.getCache(e).nodes[data.getNodeCacheId(t.tId)]=t},getNodeCacheId:function(e){return e.substring(e.lastIndexOf("_")+1)},addAfterA:function(e){_init.afterA.push(e)},addBeforeA:function(e){_init.beforeA.push(e)},addInnerAfterA:function(e){_init.innerAfterA.push(e)},addInnerBeforeA:function(e){_init.innerBeforeA.push(e)},addInitBind:function(e){_init.bind.push(e)},addInitUnBind:function(e){_init.unbind.push(e)},addInitCache:function(e){_init.caches.push(e)},addInitNode:function(e){_init.nodes.push(e)},addInitProxy:function(e,t){t?_init.proxys.splice(0,0,e):_init.proxys.push(e)},addInitRoot:function(e){_init.roots.push(e)},addNodesData:function(e,t,n){var r=e.data.key.children;t[r]||(t[r]=[]),t[r].length>0&&(t[r][t[r].length-1].isLastNode=!1,view.setNodeLineIcos(e,t[r][t[r].length-1])),t.isParent=!0,t[r]=t[r].concat(n)},addSelectedNode:function(e,t){var n=data.getRoot(e);data.isSelectedNode(e,t)||n.curSelectedList.push(t)},addCreatedNode:function(e,t){if(!!e.callback.onNodeCreated||!!e.view.addDiyDom){var n=data.getRoot(e);n.createdNodes.push(t)}},addZTreeTools:function(e){_init.zTreeTools.push(e)},exSetting:function(e){$.extend(!0,_setting,e)},fixPIdKeyValue:function(e,t){e.data.simpleData.enable&&(t[e.data.simpleData.pIdKey]=t.parentTId?t.getParentNode()[e.data.simpleData.idKey]:e.data.simpleData.rootPId)},getAfterA:function(e,t,n){for(var r=0,i=_init.afterA.length;r
-1&&s.push(t[o]),s=s.concat(data.getNodesByParamFuzzy(e,t[o][i],n,r));return s},getNodesByFilter:function(e,t,n,r,i){if(!t)return r?null:[];var s=e.data.key.children,o=r?null:[];for(var u=0,a=t.length;u0)},clone:function(e){if(e===null)return null;var t=tools.isArray(e)?[]:{};for(var n in e)t[n]=e[n]instanceof Date?new Date(e[n].getTime()):typeof e[n]=="object"?arguments.callee(e[n]):e[n];return t},eqs:function(e,t){return e.toLowerCase()===t.toLowerCase()},isArray:function(e){return Object.prototype.toString.apply(e)==="[object Array]"},$:function(e,t,n){return!!t&&typeof t!="string"&&(n=t,t=""),typeof e=="string"?$(e,n?n.treeObj.get(0).ownerDocument:null):$("#"+e.tId+t,n?n.treeObj:null)},getMDom:function(e,t,n){if(!t)return null;while(t&&t.id!==e.treeId){for(var r=0,i=n.length;t.tagName&&r0&&(v=view.appendNodes(e,t+1,l[u],l,i,s&&l.open)),s&&(view.makeDOMNodeMainBefore(o,e,l),view.makeDOMNodeLine(o,e,l),data.getBeforeA(e,l,o),view.makeDOMNodeNameBefore(o,e,l),data.getInnerBeforeA(e,l,o),view.makeDOMNodeIcon(o,e,l),data.getInnerAfterA(e,l,o),view.makeDOMNodeNameAfter(o,e,l),data.getAfterA(e,l,o),l.isParent&&l.open&&view.makeUlHtml(e,l,o,v.join("")),view.makeDOMNodeMainAfter(o,e,l),data.addCreatedNode(e,l))}return o},appendParentULDom:function(e,t){var n=[],r=$$(t,e);!r.get(0)&&!!t.parentTId&&(view.appendParentULDom(e,t.getParentNode()),r=$$(t,e));var i=$$(t,consts.id.UL,e);i.get(0)&&i.remove();var s=e.data.key.children,o=view.appendNodes(e,t.level+1,t[s],t,!1,!0);view.makeUlHtml(e,t,n,o.join("")),r.append(n.join(""))},asyncNode:function(setting,node,isSilent,callback){var i,l;if(node&&!node.isParent)return tools.apply(callback),!1;if(node&&node.isAjaxing)return!1;if(tools.apply(setting.callback.beforeAsync,[setting.treeId,node],true)==0)return tools.apply(callback),!1;if(node){node.isAjaxing=!0;var icoObj=$$(node,consts.id.ICON,setting);icoObj.attr({style:"","class":consts.className.BUTTON+" "+consts.className.ICO_LOADING})}var tmpParam={};for(i=0,l=setting.async.autoParam.length;node&&i1&&(spKey=pKey[1],pKey=pKey[0]),tmpParam[spKey]=node[pKey]}if(tools.isArray(setting.async.otherParam))for(i=0,l=setting.async.otherParam.length;i=r;i--)if(!t||t===n[i]){$$(n[i],consts.id.A,e).removeClass(consts.node.CURSELECTED);if(t){data.removeSelectedNode(e,t);break}}t||(data.getRoot(e).curSelectedList=[])},createNodeCallback:function(e){if(!!e.callback.onNodeCreated||!!e.view.addDiyDom){var t=data.getRoot(e);while(t.createdNodes.length>0){var n=t.createdNodes.shift();tools.apply(e.view.addDiyDom,[e.treeId,n]),!e.callback.onNodeCreated||e.treeObj.trigger(consts.event.NODECREATED,[e.treeId,n])}}},createNodes:function(e,t,n,r){if(!n||n.length==0)return;var i=data.getRoot(e),s=e.data.key.children,o=!r||r.open||!!$$(r[s][0],e).get(0);i.createdNodes=[];var u=view.appendNodes(e,t,n,r,!0,o);if(!r)e.treeObj.append(u.join(""));else{var a=$$(r,consts.id.UL,e);a.get(0)&&a.append(u.join(""))}view.createNodeCallback(e)},destroy:function(e){if(!e)return;data.initCache(e),data.initRoot(e),event.unbindTree(e),event.unbindEvent(e),e.treeObj.empty()},expandCollapseNode:function(e,t,n,r,i){var s=data.getRoot(e),o=e.data.key.children;if(!t){tools.apply(i,[]);return}if(s.expandTriggerFlag){var u=i;i=function(){u&&u(),t.open?e.treeObj.trigger(consts.event.EXPAND,[e.treeId,t]):e.treeObj.trigger(consts.event.COLLAPSE,[e.treeId,t])},s.expandTriggerFlag=!1}!t.open&&t.isParent&&(!$$(t,consts.id.UL,e).get(0)||t[o]&&t[o].length>0&&!$$(t[o][0],e).get(0))&&(view.appendParentULDom(e,t),view.createNodeCallback(e));if(t.open==n){tools.apply(i,[]);return}var a=$$(t,consts.id.UL,e),f=$$(t,consts.id.SWITCH,e),l=$$(t,consts.id.ICON,e);t.isParent?(t.open=!t.open,t.iconOpen&&t.iconClose&&l.attr("style",view.makeNodeIcoStyle(e,t)),t.open?(view.replaceSwitchClass(t,f,consts.folder.OPEN),view.replaceIcoClass(t,l,consts.folder.OPEN),r==0||e.view.expandSpeed==""?(a.show(),tools.apply(i,[])):t[o]&&t[o].length>0?a.slideDown(e.view.expandSpeed,i):(a.show(),tools.apply(i,[]))):(view.replaceSwitchClass(t,f,consts.folder.CLOSE),view.replaceIcoClass(t,l,consts.folder.CLOSE),r==0||e.view.expandSpeed==""||!(t[o]&&t[o].length>0)?(a.hide(),tools.apply(i,[])):a.slideUp(e.view.expandSpeed,i))):tools.apply(i,[])},expandCollapseParentNode:function(e,t,n,r,i){if(!t)return;if(!t.parentTId){view.expandCollapseNode(e,t,n,r,i);return}view.expandCollapseNode(e,t,n,r),t.parentTId&&view.expandCollapseParentNode(e,t.getParentNode(),n,r,i)},expandCollapseSonNode:function(e,t,n,r,i){var s=data.getRoot(e),o=e.data.key.children,u=t?t[o]:s[o],a=t?!1:r,f=data.getRoot(e).expandTriggerFlag;data.getRoot(e).expandTriggerFlag=!1;if(u)for(var l=0,c=u.length;l/g,">");e.push("",i,"")},makeDOMNodeLine:function(e,t,n){e.push("")},makeDOMNodeMainAfter:function(e,t,n){e.push("")},makeDOMNodeMainBefore:function(e,t,n){e.push("")},makeDOMNodeNameAfter:function(e,t,n){e.push("")},makeDOMNodeNameBefore:function(e,t,n){var r=data.getNodeTitle(t,n),i=view.makeNodeUrl(t,n),s=view.makeNodeFontCss(t,n),o=[];for(var u in s)o.push(u,":",s[u],";");e.push("0?"href="" j """:""," target='",view.makeNodeTarget(n),"' style='",o.join(""),"'"),tools.apply(t.view.showTitle,[t.treeId,n],t.view.showTitle)&&r&&e.push("title='",r.replace(/'/g,"'").replace(//g,">"),"'"),e.push(">")},makeNodeFontCss:function(e,t){var n=tools.apply(e.view.fontCss,[e.treeId,t],e.view.fontCss);return n&&typeof n!="function"?n:{}},makeNodeIcoClass:function(e,t){var n=["ico"];return t.isAjaxing||(n[0]=(t.iconSkin?t.iconSkin+"_":"")+n[0],t.isParent?n.push(t.open?consts.folder.OPEN:consts.folder.CLOSE):n.push(consts.folder.DOCU)),consts.className.BUTTON+" "+n.join("_")},makeNodeIcoStyle:function(e,t){var n=[];if(!t.isAjaxing){var r=t.isParent&&t.iconOpen&&t.iconClose?t.open?t.iconOpen:t.iconClose:t.icon;r&&n.push("background:url(",r,") 0 0 no-repeat;"),(e.view.showIcon==0||!tools.apply(e.view.showIcon,[e.treeId,t],!0))&&n.push("width:0px;height:0px;")}return n.join("")},makeNodeLineClass:function(e,t){var n=[];return e.view.showLine?t.level==0&&t.isFirstNode&&t.isLastNode?n.push(consts.line.ROOT):t.level==0&&t.isFirstNode?n.push(consts.line.ROOTS):t.isLastNode?n.push(consts.line.BOTTOM):n.push(consts.line.CENTER):n.push(consts.line.NOLINE),t.isParent?n.push(t.open?consts.folder.OPEN:consts.folder.CLOSE):n.push(consts.folder.DOCU),view.makeNodeLineClassEx(t)+n.join("_")},makeNodeLineClassEx:function(e){return consts.className.BUTTON+" "+consts.className.LEVEL+e.level+" "+consts.className.SWITCH+" "},makeNodeTarget:function(e){return e.target||"_blank"},makeNodeUrl:function(e,t){var n=e.data.key.url;return t[n]?t[n]:null},makeUlHtml:function(e,t,n,r){n.push(""),n.push(r),n.push("
")},makeUlLineClass:function(e,t){return e.view.showLine&&!t.isLastNode?consts.line.LINE:""},removeChildNodes:function(e,t){if(!t)return;var n=e.data.key.children,r=t[n];if(!r)return;for(var i=0,s=r.length;i0&&(t[n][0].isFirstNode=!0)},setLastNode:function(e,t){var n=e.data.key.children,r=t[n].length;r>0&&(t[n][r-1].isLastNode=!0)},removeNode:function(e,t){var n=data.getRoot(e),r=e.data.key.children,i=t.parentTId?t.getParentNode():n;t.isFirstNode=!1,t.isLastNode=!1,t.getPreNode=function(){return null},t.getNextNode=function(){return null};if(!data.getNodeCache(e,t.tId))return;$$(t,e).remove(),data.removeNodeCache(e,t),data.removeSelectedNode(e,t);for(var s=0,o=i[r].length;s0){var c=i[r][l-1];u=$$(c,consts.id.UL,e),a=$$(c,consts.id.SWITCH,e),f=$$(c,consts.id.ICON,e);if(i==n)if(i[r].length==1)view.replaceSwitchClass(c,a,consts.line.ROOT);else{var h=$$(i[r][0],consts.id.SWITCH,e);view.replaceSwitchClass(i[r][0],h,consts.line.ROOTS),view.replaceSwitchClass(c,a,consts.line.BOTTOM)}else view.replaceSwitchClass(c,a,consts.line.BOTTOM);u.removeClass(consts.line.LINE)}},replaceIcoClass:function(e,t,n){if(!t||e.isAjaxing)return;var r=t.attr("class");if(r==undefined)return;var i=r.split("_");switch(n){case consts.folder.OPEN:case consts.folder.CLOSE:case consts.folder.DOCU:i[i.length-1]=n}t.attr("class",i.join("_"))},replaceSwitchClass:function(e,t,n){if(!t)return;var r=t.attr("class");if(r==undefined)return;var i=r.split("_");switch(n){case consts.line.ROOT:case consts.line.ROOTS:case consts.line.CENTER:case consts.line.BOTTOM:case consts.line.NOLINE:i[0]=view.makeNodeLineClassEx(e)+n;break;case consts.folder.OPEN:case consts.folder.CLOSE:case consts.folder.DOCU:i[1]=n}t.attr("class",i.join("_")),n!==consts.folder.DOCU?t.removeAttr("disabled"):t.attr("disabled","disabled")},selectNode:function(e,t,n){n||view.cancelPreSelectedNode(e),$$(t,consts.id.A,e).addClass(consts.node.CURSELECTED),data.addSelectedNode(e,t)},setNodeFontCss:function(e,t){var n=$$(t,consts.id.A,e),r=view.makeNodeFontCss(e,t);r&&n.css(r)},setNodeLineIcos:function(e,t){if(!t)return;var n=$$(t,consts.id.SWITCH,e),r=$$(t,consts.id.UL,e),i=$$(t,consts.id.ICON,e),s=view.makeUlLineClass(e,t);s.length==0?r.removeClass(consts.line.LINE):r.addClass(s),n.attr("class",view.makeNodeLineClass(e,t)),t.isParent?n.removeAttr("disabled"):n.attr("disabled","disabled"),i.removeAttr("style"),i.attr("style",view.makeNodeIcoStyle(e,t)),i.attr("class",view.makeNodeIcoClass(e,t))},setNodeName:function(e,t){var n=data.getNodeTitle(e,t),r=$$(t,consts.id.SPAN,e);r.empty(),e.view.nameIsHTML?r.html(data.getNodeName(e,t)):r.text(data.getNodeName(e,t));if(tools.apply(e.view.showTitle,[e.treeId,t],e.view.showTitle)){var i=$$(t,consts.id.A,e);i.attr("title",n?n:"")}},setNodeTarget:function(e,t){var n=$$(t,consts.id.A,e);n.attr("target",view.makeNodeTarget(t))},setNodeUrl:function(e,t){var n=$$(t,consts.id.A,e),r=view.makeNodeUrl(e,t);r==null||r.length==0?n.removeAttr("href"):n.attr("href",r)},switchNode:function(e,t){if(t.open||!tools.canAsync(e,t))view.expandCollapseNode(e,t,!t.open);else if(e.async.enable){if(!view.asyncNode(e,t)){view.expandCollapseNode(e,t,!t.open);return}}else t&&view.expandCollapseNode(e,t,!t.open)}};$.fn.zTree={consts:_consts,_z:{tools:tools,view:view,event:event,data:data},getZTreeObj:function(e){var t=data.getZTreeTools(e);return t?t:null},destroy:function(e){if(!!e&&e.length>0)view.destroy(data.getSetting(e));else for(var t in settings)view.destroy(settings[t])},init:function(e,t,n){var r=tools.clone(_setting);$.extend(!0,r,t),r.treeId=e.attr("id"),r.treeObj=e,r.treeObj.empty(),settings[r.treeId]=r,typeof document.body.style.maxHeight=="undefined"&&(r.view.expandSpeed=""),data.initRoot(r);var i=data.getRoot(r),s=r.data.key.children;n=n?tools.clone(tools.isArray(n)?n:[n]):[],r.data.simpleData.enable?i[s]=data.transformTozTreeFormat(r,n):i[s]=n,data.initCache(r),event.unbindTree(r),event.bindTree(r),event.unbindEvent(r),event.bindEvent(r);var o={setting:r,addNodes:function(e,t,n){function s(){view.addNodes(r,e,i,n==1)}if(!t)return null;e||(e=null);if(e&&!e.isParent&&r.data.keep.leaf)return null;var i=tools.clone(tools.isArray(t)?t:[t]);return tools.canAsync(r,e)?view.asyncNode(r,e,n,s):s(),i},cancelSelectedNode:function(e){view.cancelPreSelectedNode(r,e)},destroy:function(){view.destroy(r)},expandAll:function(e){return e=!!e,view.expandCollapseSonNode(r,null,e,!0),e},expandNode:function(e,t,n,i,s){if(!e||!e.isParent)return null;t!==!0&&t!==!1&&(t=!e.open),s=!!s;if(s&&t&&tools.apply(r.callback.beforeExpand,[r.treeId,e],true)==0)return null;if(s&&!t&&tools.apply(r.callback.beforeCollapse,[r.treeId,e],true)==0)return null;t&&e.parentTId&&view.expandCollapseParentNode(r,e.getParentNode(),t,!1);if(t===e.open&&!n)return null;data.getRoot(r).expandTriggerFlag=s;if(!tools.canAsync(r,e)&&n)view.expandCollapseSonNode(r,e,t,!0,function(){if(i!==!1)try{$$(e,r).focus().blur()}catch(t){}});else{e.open=!t,view.switchNode(this.setting,e);if(i!==!1)try{$$(e,r).focus().blur()}catch(o){}}return t},getNodes:function(){return data.getNodes(r)},getNodeByParam:function(e,t,n){return e?data.getNodeByParam(r,n?n[r.data.key.children]:data.getNodes(r),e,t):null},getNodeByTId:function(e){return data.getNodeCache(r,e)},getNodesByParam:function(e,t,n){return e?data.getNodesByParam(r,n?n[r.data.key.children]:data.getNodes(r),e,t):null},getNodesByParamFuzzy:function(e,t,n){return e?data.getNodesByParamFuzzy(r,n?n[r.data.key.children]:data.getNodes(r),e,t):null},getNodesByFilter:function(e,t,n,i){return t=!!t,!e||typeof e!="function"?t?null:[]:data.getNodesByFilter(r,n?n[r.data.key.children]:data.getNodes(r),e,t,i)},getNodeIndex:function(e){if(!e)return null;var t=r.data.key.children,n=e.parentTId?e.getParentNode():data.getRoot(r);for(var i=0,s=n[t].length;i0?view.createNodes(r,0,i[s]):r.async.enable&&r.async.url&&r.async.url!==""&&view.asyncNode(r),o}};var zt=$.fn.zTree,$$=tools.$,consts=zt.consts;return $}),define("popup",["jquery"],function(e){function i(){this.destroyed=!1,this.__popup=e("").css({display:"none",position:"absolute",outline:0}).attr("tabindex","-1").html(this.innerHTML).appendTo("body"),this.__backdrop=this.__mask=e("").css({opacity:.7,background:"#000"}),this.node=this.__popup[0],this.backdrop=this.__backdrop[0],t++}var t=0,n=!("minWidth"in e("html")[0].style),r=!n;return e.extend(i.prototype,{node:null,backdrop:null,fixed:!1,destroyed:!0,open:!1,returnValue:"",autofocus:!0,align:"bottom left",innerHTML:"",className:"ui-popup",show:function(t){if(this.destroyed)return this;var s=this,o=this.__popup,u=this.__backdrop;this.__activeElement=this.__getActive(),this.open=!0,this.follow=t||this.follow;if(!this.__ready){o.addClass(this.className).attr("role",this.modal?"alertdialog":"dialog").css("position",this.fixed?"fixed":"absolute"),n||e(window).on("resize",e.proxy(this.reset,this));if(this.modal){var a={position:"fixed",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",userSelect:"none",zIndex:this.zIndex||i.zIndex};o.addClass(this.className+"-modal"),r||e.extend(a,{position:"absolute",width:e(window).width()+"px",height:e(document).height()+"px"}),u.css(a).attr({tabindex:"0"}).on("focus",e.proxy(this.focus,this)),this.__mask=u.clone(!0).attr("style","").insertAfter(o),u.addClass(this.className+"-backdrop").insertBefore(o),this.__ready=!0}o.html()||o.html(this.innerHTML)}return o.addClass(this.className+"-show").show(),u.show(),this.reset().focus(),this.__dispatchEvent("show"),this},showModal:function(){return this.modal=!0,this.show.apply(this,arguments)},close:function(e){return!this.destroyed&&this.open&&(e!==undefined&&(this.returnValue=e),this.__popup.hide().removeClass(this.className+"-show"),this.__backdrop.hide(),this.open=!1,this.blur(),this.__dispatchEvent("close")),this},remove:function(){if(this.destroyed)return this;this.__dispatchEvent("beforeremove"),i.current===this&&(i.current=null),this.__popup.remove(),this.__backdrop.remove(),this.__mask.remove(),n||e(window).off("resize",this.reset),this.__dispatchEvent("remove");for(var t in this)delete this[t];return this},reset:function(){var e=this.follow;return e?this.__follow(e):this.__center(),this.__dispatchEvent("reset"),this},focus:function(){var t=this.node,n=this.__popup,r=i.current,s=this.zIndex=i.zIndex++;r&&r!==this&&r.blur(!1);if(!e.contains(t,this.__getActive())){var o=n.find("[autofocus]")[0];!this._autofocus&&o?this._autofocus=!0:o=t,this.__focus(o)}return n.css("zIndex",s),i.current=this,n.addClass(this.className+"-focus"),this.__dispatchEvent("focus"),this},blur:function(){var e=this.__activeElement,t=arguments[0];return t!==!1&&this.__focus(e),this._autofocus=!1,this.__popup.removeClass(this.className+"-focus"),this.__dispatchEvent("blur"),this},addEventListener:function(e,t){return this.__getEventListener(e).push(t),this},removeEventListener:function(e,t){var n=this.__getEventListener(e);for(var r=0;rD[O[t]][1]&&(t=k[e]=A[t]),M[e][t]Loading..',title:"",statusbar:"",button:null,ok:null,cancel:null,okValue:"ok",cancelValue:"cancel",cancelDisplay:!0,width:"",height:"",padding:"",skin:"",quickClose:!1,cssUri:"../css/ui-dialog.css",innerHTML:''}}),define("normalize",[],function(){function s(e,i,s){if(e.match(r)||e.match(n))return e;e=t(e);var a=s.match(n),f=i.match(n);return f&&(!a||a[1]!=f[1]||a[2]!=f[2])?o(e,i):u(o(e,i),s)}function o(e,t){e.substr(0,2)=="./"&&(e=e.substr(2));if(e.match(r)||e.match(n))return e;var i=t.split("/"),s=e.split("/");i.pop();while(curPart=s.shift())curPart==".."?i.pop():i.push(curPart);return i.join("/")}function u(e,t){var n=t.split("/");n.pop(),t=n.join("/")+"/",i=0;while(t.substr(i,1)==e.substr(i,1))i++;while(t.substr(i,1)!="/")i--;t=t.substr(i+1),e=e.substr(i+1),n=t.split("/");var r=e.split("/");out="";while(n.shift())out+="../";while(curPart=r.shift())out+=curPart+"/";return out.substr(0,out.length-1)}var e=/([^:])\/+/g,t=function(t){return t.replace(e,"$1/")},n=/[^\:\/]*:\/\/([^\/])*/,r=/^(\/|data:)/,a=function(e,n,r){n=t(n),r=t(r);var i=/@import\s*("([^"]*)"|'([^']*)')|url\s*\((?!#)\s*(\s*"([^"]*)"|'([^']*)'|[^\)]*\s*)\s*\)/ig,o,u,e;while(o=i.exec(e)){u=o[3]||o[2]||o[5]||o[6]||o[4];var a;a=s(u,n,r);var f=o[5]||o[6]?1:0;e=e.substr(0,i.lastIndex-u.length-f-1)+a+e.substr(i.lastIndex-f-1),i.lastIndex=i.lastIndex+(a.length-u.length)}return e};return a.convertURIBase=s,a.absoluteURI=o,a.relativeURI=u,a}),define("css",[],function(){if(typeof window=="undefined")return{load:function(e,t,n){n()}};var e=document.getElementsByTagName("head")[0],t=window.navigator.userAgent.match(/Trident\/([^ ;]*)|AppleWebKit\/([^ ;]*)|Opera\/([^ ;]*)|rv\:([^ ;]*)(.*?)Gecko\/([^ ;]*)|MSIE\s([^ ;]*)|AndroidWebKit\/([^ ;]*)/)||0,n=!1,r=!0;t[1]||t[7]?n=parseInt(t[1])<6||parseInt(t[7])<=9:t[2]||t[8]?r=!1:t[4]&&(n=parseInt(t[4])<18);var i={};i.pluginBuilder="./css-builder";var s,o,u=function(){s=document.createElement("style"),e.appendChild(s),o=s.styleSheet||s.sheet},a=0,f=[],l,c=function(e){a++,a==32&&(u(),a=0),o.addImport(e),s.onload=function(){h()}},h=function(){l();var e=f.shift();if(!e){l=null;return}l=e[1],c(e[0])},p=function(e,t){(!o||!o.addImport)&&u();if(o&&o.addImport)l?f.push([e,t]):(c(e),l=t);else{s.textContent='@import "'+e+'";';var n=setInterval(function(){try{s.sheet.cssRules,clearInterval(n),t()}catch(e){}},10)}},d=function(t,n){var i=document.createElement("link");i.type="text/css",i.rel="stylesheet";if(r)i.onload=function(){i.onload=function(){},setTimeout(n,7)};else var s=setInterval(function(){for(var e=0;e',e("base")[0]?e("base").before(r):e("head").append(r))}var s=0,o=new Date-0,u=!("minWidth"in e("html")[0].style),a="createTouch"in document&&!("onmousemove"in document)||/(iPhone|iPad|iPod)/i.test(navigator.userAgent),f=!u&&!a,l=function(t,n,r){var i=t=t||{};if(typeof t=="string"||t.nodeType===1)t={content:t,fixed:!a};t=e.extend(!0,{},l.defaults,t),t.original=i;var u=t.id=t.id||o+s,c=l.get(u);return c?c.focus():(f||(t.fixed=!1),t.quickClose&&(t.modal=!0,t.backdropOpacity=0),e.isArray(t.button)||(t.button=[]),r!==undefined&&(t.cancel=r),t.cancel&&t.button.push({id:"cancel",value:t.cancelValue,callback:t.cancel,display:t.cancelDisplay}),n!==undefined&&(t.ok=n),t.ok&&t.button.push({id:"ok",value:t.okValue,callback:t.ok,autofocus:!0}),l.list[u]=new l.create(t))},c=function(){};c.prototype=t.prototype;var h=l.prototype=new c;return l.create=function(n){var r=this;e.extend(this,new t);var i=n.original,o=e(this.node).html(n.innerHTML),u=e(this.backdrop);return this.options=n,this._popup=o,e.each(n,function(e,t){typeof r[e]=="function"?r[e](t):r[e]=t}),n.zIndex&&(t.zIndex=n.zIndex),o.attr({"aria-labelledby":this._$("title").attr("id","title:"+this.id).attr("id"),"aria-describedby":this._$("content").attr("id","content:"+this.id).attr("id")}),this._$("close").css("display",this.cancel===!1?"none":"").attr("title",this.cancelValue).on("click",function(e){r._trigger("cancel"),e.preventDefault()}),this._$("dialog").addClass(this.skin),this._$("body").css("padding",this.padding),n.quickClose&&u.on("onmousedown"in document?"mousedown":"click",function(){return r._trigger("cancel"),!1}),this.addEventListener("show",function(){u.css({opacity:0,background:n.backdropBackground}).animate({opacity:n.backdropOpacity},150)}),this._esc=function(e){var n=e.target,i=n.nodeName,s=/^input|textarea$/i,o=t.current===r,u=e.keyCode;if(!o||s.test(i)&&n.type!=="button")return;u===27&&r._trigger("cancel")},e(document).on("keydown",this._esc),this.addEventListener("remove",function(){e(document).off("keydown",this._esc),delete l.list[this.id]}),s++,l.oncreate(this),this},l.create.prototype=h,e.extend(h,{content:function(t){var n=this._$("content");return typeof t=="object"?(t=e(t),n.empty("").append(t.show()),this.addEventListener("beforeremove",function(){e("body").append(t.hide())})):n.html(t),this.reset()},title:function(e){return this._$("title").text(e),this._$("header")[e?"show":"hide"](),this},width:function(e){return this._$("content").css("width",e),this.reset()},height:function(e){return this._$("content").css("height",e),this.reset()},button:function(t){t=t||[];var n=this,r="",i=0;return this.callbacks={},typeof t=="string"?(r=t,i++):e.each(t,function(t,s){var o=s.id=s.id||s.value,u="";n.callbacks[o]=s.callback,s.display===!1?u=' style="display:none"':i++,r+='",n._$("button").on("click","[i-id="+o+"]",function(t){var r=e(this);r.attr("disabled")||n._trigger(o),t.preventDefault()})}),this._$("button").html(r),this._$("footer")[i?"show":"hide"](),this},statusbar:function(e){return this._$("statusbar").html(e)[e?"show":"hide"](),this},_$:function(e){return this._popup.find("[i="+e+"]")},_trigger:function(e){var t=this.callbacks[e];return typeof t!="function"||t.call(this)!==!1?this.close().remove():this}}),l.oncreate=e.noop,l.getCurrent=function(){return t.current},l.get=function(e){return e===undefined?l.list:l.list[e]},l.list={},l.defaults=n,l}),function(e){typeof define=="function"&&define.amd?define("SuperSlide",["jquery"],e):e(jQuery)}(function(e){e.fn.slide=function(t){return e.fn.slide.defaults={type:"slide",effect:"fade",autoPlay:!1,delayTime:500,interTime:2500,triggerTime:150,defaultIndex:0,titCell:".hd li",mainCell:".bd",targetCell:null,trigger:"mouseover",scroll:1,vis:1,titOnClassName:"on",autoPage:!1,prevCell:".prev",nextCell:".next",pageStateCell:".pageState",opp:!1,pnLoop:!0,easing:"swing",startFun:null,endFun:null,switchLoad:null,playStateCell:".playState",mouseOverStop:!0,defaultPlay:!0,returnDefault:!1},this.each(function(){var n=e.extend({},e.fn.slide.defaults,t),r=e(this),i=n.effect,s=e(n.prevCell,r),o=e(n.nextCell,r),u=e(n.pageStateCell,r),a=e(n.playStateCell,r),f=e(n.titCell,r),l=f.size(),c=e(n.mainCell,r),h=c.children().size(),p=n.switchLoad,d=e(n.targetCell,r),v=parseInt(n.defaultIndex),m=parseInt(n.delayTime),g=parseInt(n.interTime),y=parseInt(n.triggerTime),b=parseInt(n.scroll),w=parseInt(n.vis),E=n.autoPlay=="false"||n.autoPlay==0?!1:!0,S=n.opp=="false"||n.opp==0?!1:!0,x=n.autoPage=="false"||n.autoPage==0?!1:!0,T=n.pnLoop=="false"||n.pnLoop==0?!1:!0,N=n.mouseOverStop=="false"||n.mouseOverStop==0?!1:!0,C=n.defaultPlay=="false"||n.defaultPlay==0?!1:!0,k=n.returnDefault=="false"||n.returnDefault==0?!1:!0,L=0,A=0,O=0,M=0,_=n.easing,D=null,P=null,H=null,B=n.titOnClassName,j=f.index(r.find("."+B)),F=v=j==-1?v:j,I=v,q=v,R=h>=w?h%b!=0?h%b:b:0,U,z=i=="leftMarquee"||i=="topMarquee"?!0:!1,W=function(){e.isFunction(n.startFun)&&n.startFun(v,l,r,e(n.titCell,r),c,d,s,o)},X=function(){e.isFunction(n.endFun)&&n.endFun(v,l,r,e(n.titCell,r),c,d,s,o)},V=function(){f.removeClass(B),C&&f.eq(I).addClass(B)};if(n.type=="menu"){C&&f.removeClass(B).eq(v).addClass(B),f.hover(function(){U=e(this).find(n.targetCell);var t=f.index(e(this));P=setTimeout(function(){v=t,f.removeClass(B).eq(v).addClass(B),W();switch(i){case"fade":U.stop(!0,!0).animate({opacity:"show"},m,_,X);break;case"slideDown":U.stop(!0,!0).animate({height:"show"},m,_,X)}},n.triggerTime)},function(){clearTimeout(P);switch(i){case"fade":U.animate({opacity:"hide"},m,_);break;case"slideDown":U.animate({height:"hide"},m,_)}}),k&&r.hover(function(){clearTimeout(H)},function(){H=setTimeout(V,m)});return}l==0&&(l=h),z&&(l=2);if(x){if(h>=w)if(i=="leftLoop"||i=="topLoop")l=h%b!=0?(h/b^0)+1:h/b;else{var J=h-w;l=1+parseInt(J%b!=0?J/b+1:J/b),l<=0&&(l=1)}else l=1;f.html("");var K="";if(n.autoPage==1||n.autoPage=="true")for(var Q=0;Q"+(Q+1)+"";else for(var Q=0;Q=w){c.children().each(function(){e(this).width()>O&&(O=e(this).width(),A=e(this).outerWidth(!0)),e(this).height()>M&&(M=e(this).height(),L=e(this).outerHeight(!0))});var G=c.children(),Y=function(){for(var e=0;e').css({top:-(v*b)*L,position:"relative",padding:"0",margin:"0"}).children().css({height:M});break;case"left":c.wrap('
').css({width:h*A,left:-(v*b)*A,position:"relative",overflow:"hidden",padding:"0",margin:"0"}).children().css({"float":"left",width:O});break;case"leftLoop":case"leftMarquee":Y(),c.wrap('
').css({width:(h+w+R)*A,position:"relative",overflow:"hidden",padding:"0",margin:"0",left:-(R+v*b)*A}).children().css({"float":"left",width:O});break;case"topLoop":case"topMarquee":Y(),c.wrap('
').css({height:(h+w+R)*L,position:"relative",padding:"0",margin:"0",top:-(R+v*b)*L}).children().css({height:M})}}var Z=function(e){var t=e*b;return e==l?t=h:e==-1&&h%b!=0&&(t=-h%b),t},et=function(t){var n=function(n){for(var r=n;r
=1?v=1:v<=0&&(v=0):(q=v,v>=l?v=0:v<0&&(v=l-1)),W(),p!=null&&et(c.children()),d[0]&&(U=d.eq(v),p!=null&&et(d),i=="slideDown"?(d.not(U).stop(!0,!0).slideUp(m),U.slideDown(m,_,function(){c[0]||X()})):(d.not(U).stop(!0,!0).hide(),U.animate({opacity:"show"},m,function(){c[0]||X()})));if(h>=w)switch(i){case"fade":c.children().stop(!0,!0).eq(v).animate({opacity:"show"},m,_,function(){X()}).siblings().hide();break;case"fold":c.children().stop(!0,!0).eq(v).animate({opacity:"show"},m,_,function(){X()}).siblings().animate({opacity:"hide"},m,_);break;case"top":c.stop(!0,!1).animate({top:-v*b*L},m,_,function(){X()});break;case"left":c.stop(!0,!1).animate({left:-v*b*A},m,_,function(){X()});break;case"leftLoop":var t=q;c.stop(!0,!0).animate({left:-(Z(q)+R)*A},m,_,function(){t<=-1?c.css("left",-(R+(l-1)*b)*A):t>=l&&c.css("left",-R*A),X()});break;case"topLoop":var t=q;c.stop(!0,!0).animate({top:-(Z(q)+R)*L},m,_,function(){t<=-1?c.css("top",-(R+(l-1)*b)*L):t>=l&&c.css("top",-R*L),X()});break;case"leftMarquee":var n=c.css("left").replace("px","");v==0?c.animate({left:++n},0,function(){c.css("left").replace("px","")>=0&&c.css("left",-h*A)}):c.animate({left:--n},0,function(){c.css("left").replace("px","")<=-(h+R)*A&&c.css("left",-R*A)});break;case"topMarquee":var r=c.css("top").replace("px","");v==0?c.animate({top:++r},0,function(){c.css("top").replace("px","")>=0&&c.css("top",-h*L)}):c.animate({top:--r},0,function(){c.css("top").replace("px","")<=-(h+R)*L&&c.css("top",-R*L)})}f.removeClass(B).eq(v).addClass(B),F=v,T||(o.removeClass("nextStop"),s.removeClass("prevStop"),v==0&&s.addClass("prevStop"),v==l-1&&o.addClass("nextStop")),u.html(""+(v+1)+"/"+l)};C&&tt(!0),k&&r.hover(function(){clearTimeout(H)},function(){H=setTimeout(function(){v=I,C?tt():i=="slideDown"?U.slideUp(m,V):U.animate({opacity:"hide"},m,V),F=v},300)});var nt=function(e){D=setInterval(function(){S?v--:v++,tt()},e?e:g)},rt=function(e){D=setInterval(tt,e?e:g)},it=function(){N||(clearInterval(D),nt())},st=function(){if(T||v!=l-1)v++,tt(),z||it()},ot=function(){if(T||v!=0)v--,tt(),z||it()},ut=function(){clearInterval(D),z?rt():nt(),a.removeClass("pauseState")},at=function(){clearInterval(D),a.addClass("pauseState")};E?z?(S?v--:v++,rt(),N&&c.hover(at,ut)):(nt(),N&&r.hover(at,ut)):(z&&(S?v--:v++),a.addClass("pauseState")),a.click(function(){a.hasClass("pauseState")?ut():at()}),n.trigger=="mouseover"?f.hover(function(){var e=f.index(this);P=setTimeout(function(){v=e,tt(),it()},n.triggerTime)},function(){clearTimeout(P)}):f.click(function(){v=f.index(this),tt(),it()});if(z){o.mousedown(st),s.mousedown(ot);if(T){var ft,lt=function(){ft=setTimeout(function(){clearInterval(D),rt(g/10^0)},150)},ct=function(){clearTimeout(ft),clearInterval(D),rt()};o.mousedown(lt),o.mouseup(ct),s.mousedown(lt),s.mouseup(ct)}n.trigger=="mouseover"&&(o.hover(st,function(){}),s.hover(ot,function(){}))}else o.click(st),s.click(ot)})},jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,t,n,r,i){return jQuery.easing[jQuery.easing.def](e,t,n,r,i)},easeInQuad:function(e,t,n,r,i){return r*(t/=i)*t+n},easeOutQuad:function(e,t,n,r,i){return-r*(t/=i)*(t-2)+n},easeInOutQuad:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t+n:-r/2*(--t*(t-2)-1)+n},easeInCubic:function(e,t,n,r,i){return r*(t/=i)*t*t+n},easeOutCubic:function(e,t,n,r,i){return r*((t=t/i-1)*t*t+1)+n},easeInOutCubic:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t+n:r/2*((t-=2)*t*t+2)+n},easeInQuart:function(e,t,n,r,i){return r*(t/=i)*t*t*t+n},easeOutQuart:function(e,t,n,r,i){return-r*((t=t/i-1)*t*t*t-1)+n},easeInOutQuart:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t*t+n:-r/2*((t-=2)*t*t*t-2)+n},easeInQuint:function(e,t,n,r,i){return r*(t/=i)*t*t*t*t+n},easeOutQuint:function(e,t,n,r,i){return r*((t=t/i-1)*t*t*t*t+1)+n},easeInOutQuint:function(e,t,n,r,i){return(t/=i/2)<1?r/2*t*t*t*t*t+n:r/2*((t-=2)*t*t*t*t+2)+n},easeInSine:function(e,t,n,r,i){return-r*Math.cos(t/i*(Math.PI/2))+r+n},easeOutSine:function(e,t,n,r,i){return r*Math.sin(t/i*(Math.PI/2))+n},easeInOutSine:function(e,t,n,r,i){return-r/2*(Math.cos(Math.PI*t/i)-1)+n},easeInExpo:function(e,t,n,r,i){return t==0?n:r*Math.pow(2,10*(t/i-1))+n},easeOutExpo:function(e,t,n,r,i){return t==i?n+r:r*(-Math.pow(2,-10*t/i)+1)+n},easeInOutExpo:function(e,t,n,r,i){return t==0?n:t==i?n+r:(t/=i/2)<1?r/2*Math.pow(2,10*(t-1))+n:r/2*(-Math.pow(2,-10*--t)+2)+n},easeInCirc:function(e,t,n,r,i){return-r*(Math.sqrt(1-(t/=i)*t)-1)+n},easeOutCirc:function(e,t,n,r,i){return r*Math.sqrt(1-(t=t/i-1)*t)+n},easeInOutCirc:function(e,t,n,r,i){return(t/=i/2)<1?-r/2*(Math.sqrt(1-t*t)-1)+n:r/2*(Math.sqrt(1-(t-=2)*t)+1)+n},easeInElastic:function(e,t,n,r,i){var s=1.70158,o=0,u=r;if(t==0)return n;if((t/=i)==1)return n+r;o||(o=i*.3);if(uDate.now()?t||!0:n||!1},e.getQs=function(){if(window.location.search=="")return!1;var e=decodeURIComponent(window.location.search.substr(1)).split("&"),t={};for(var n=0;n0)return}if(n.etime){var r=e.getTimeCz(n.etime,null,!0);avalon.log(r),r<0}return;var s,o,u,a},e.trim=function(e){return e.toString().replace(/^\s+/,"").replace(/\s+$/,"")},e.repBr=function(e){return e.toString().replace(/
/img,"")},e.ajax=function(e){$.ajax(e)},e}),define("css!pgBar",[],function(){}),avalon.templateCache["pgBar_easy.html"]='|<<|<<{{el}}>>|>>|',avalon.templateCache["pgBar.html"]='��{{pageCount}}ҳ����ǰ��{{pageIndex}}ҳ��ҳ��һҳ��ҳ��һҳ{{el}}��һҳβҳ��һҳβҳ��ת����ҳ',avalon.templateCache["pgBar_c.html"]='��{{recordCount}}����Ϣ����{{pageCount}}ҳ����ǰ��{{pageIndex}}ҳ��ҳ��һҳ��ҳ��һҳ{{el}}��һҳβҳ��һҳβҳ��ת����ҳ',avalon.templateCache["pgBar_d.html"]='��ǰ��{{pageIndex}}ҳ��ҳ��һҳ��ҳ��һҳ{{el}}��һҳβҳ��һҳβҳ��ת����',avalon.templateCache["pgBar_c_d.html"]='��{{recordCount}}����Ϣ����{{pageCount}}ҳ����ǰ��{{pageIndex}}ҳ��ҳ��һҳ��ҳ��һҳ{{el}}��һҳβҳ��һҳβҳ��ת����',avalon.templateCache["pgBarNext.html"]='��{{pageCount}}ҳ����ǰ��{{pageIndex}}ҳ������һҳ>>',avalon.templateCache["count.html"]="��{{recordCount}}��",define("pageBar",["css!pgBar.css"],function(){var e=function(e){var t={id:"pagebar",pageIndex:1,pageCount:1,prepage:10,recordCount:1,pgCountMode:"pageCount",pageName:"index",pageExt:"htm",http://www.fjlib.net/pgTemp:"pgBar.html",displayNum:3,staticPage:!1,toPageFun:null,debug:avalon.config.debug};return t.$getParent=function(){avalon.log("[pageBar.js $getParent()]ERROR ����ʵ������ʼ��ʵ����getParent()����")},avalon.mix(t,e),t.$vm=avalon.define({$id:t.id,pageIndex:parseInt(t.pageIndex),prepage:parseInt(t.prepage),recordCount:parseInt(t.recordCount),pageCount:parseInt(t.pageCount),pages:[],http://www.fjlib.net/pgTemp:t.http://www.fjlib.net/pgTemp,sltPages:[],$getObj:function(){return t},inputNumber:1,toPage:function(e,n){if(typeof n=="undefined"){var n=e;e=null}e&&e.preventDefault(),n=parseInt(n),n<1&&(n=1),n>t.$vm.pageCount&&(n=t.$vm.pageCount);if(t.staticPage===!0)return window.location.href="u.qbhfObnf (o==1?""":"_"+(n-1))+"."+t.pageExt,!1;if(typeof t.staticPage=="number"&&t.staticPage>0&&n<=t.staticPage)return window.location.href="u.qbhfObnf (o==1?""":"_"+(n-1))+"."+t.pageExt,!1;t.$vm.pageIndex=n,typeof t.toPageFun!="function"?avalon.log("[ pageBar.js] toPage() WARN:δ����toPageFun����[fjdz.pg]"):t.toPageFun(n)},$nextPage:function(e){e&&e.preventDefault(),t.$vm.pageIndex1&&t.$vm.toPage(!1,t.$vm.pageIndex-1)},$lastPage:function(e){e&&e.preventDefault(),t.$vm.pageIndex!=t.$vm.pageCount&&t.$vm.toPage(!1,t.$vm.pageCount)},$firstPage:function(e){e&&e.preventDefault(),t.$vm.pageIndex!=1&&t.$vm.toPage(!1,1)},$initPageList:function(){t.debug&&avalon.log("pageBar.js $initPageList() ������Ҫ��ʾ��ҳ��");if(t.displayNum==0)return t.$vm.pages=[],!1;var e=[t.$vm.pageIndex],n=t.displayNum,r=t.displayNum,i=t.$vm.pageCount,s=t.$vm.pageIndex,o=t.$vm.pageIndex,u=0,a=0;while(n>0){if(!(s>1)){u=n;break}e=[s-1].concat(e),s--,n--}u>0&&(r+=u);while(r>0){if(!(o0)s>1&&(e=[s-1].concat(e)),s--,a--;return t.$vm.pages=e,e}}),delete t.pageIndex,delete t.prepage,delete t.pageCount,delete t.recordCount,delete t.http://www.fjlib.net/pgTemp,t.$vm.pageCount>1&&(t.$vm.sltPages=avalon.range(1,t.$vm.pageCount+1)),t.addWatch=function(){t.$vm.$watch("pageIndex",function(e){t.debug&&avalon.log(e),typeof e=="number"?t.$vm.$initPageList():avalon.log("[pageBar.js:addWatch()]ERROR:�����pageIndexֵ��������")}),t.$vm.$watch("inputNumber",function(e){t.$vm.http://www.fjlib.net/pgTemp.indexOf("_d")>-1?t.$vm.toPage(null,e):/[^\d]/.test(e)?t.$vm.inputNumber=e.replace(/[^\d]/img,""):e<1?t.$vm.inputNumber=1:e>t.$vm.pageCount&&(t.$vm.inputNumber=t.$vm.pageCount)})},avalon.scan(),t.reSet=function(e){t.debug&&avalon.log(e);var n=!1;e.pageIndex&&e.pageIndex==t.$vm.pageIndex&&(n=!0);for(var r in e)"prepage|pageIndex|pageCount|recordCount|http://www.fjlib.net/pgTemp".indexOf(r)>-1?(t.debug&&avalon.log(" ����VM������ֵ ",r,e[r]),t.$vm[r]=e[r],n=!0):(t.debug&&avalon.log(" ����ʵ��������ֵ ",r,e[r]),t[r]=e[r]);n&&t.$vm.$initPageList()},t.cCount=function(){var e=t.$vm.recordCount||0,n=t.$vm.prepage||10,r=0;e%n==0?r=e/n:r=(e-e%n)/n+1,t.$vm.pageCount=r},t.setToPageFun=function(e){t.toPageFun=e},t.setFun=function(e,n){t[e]=n},t.pgCountMode=="recordCount"&&t.cCount(),t.$vm.$initPageList(),t.addWatch(),t};return e}),define("objectModel",["jquery"],function(){var e=function(e){var t={debug:avalon.config.debug,sysUrl:"",listUrl:"",addUrl:"",infoUrl:"",aynFlag:!1,dataName:null,listArgs:{listUrl:""},listRequired:"",searchArgs:{template:{NoUsed:!0,NoInit:!0,isDisabled:!0,type:"",listArgName:"searchWord",field:"template",compare:"=",value:"",isArray:!1,defaultValue:"",valueType:"array",items:[],values:[],showType:"dropdown",initItems:null}},infoArgs:{},addArgs:{vCode:""}};t.$getParent=function(){avalon.log("[objectModel.js $getParent()]ERROR ����ʵ������ʼ��ʵ����getParent()����")};var n={string:function(e,n){var r={value:n,field:e,compare:"=",valueType:"string",defaultValue:n};t.searchArgs[e]=r},number:function(e,n){var r={value:n,field:e,compare:"=",valueType:"number",defaultValue:n};t.searchArgs[e]=r},"boolean":function(e,n){var r={value:n,field:e,compare:"=",valueType:"boolean",defaultValue:n};t.searchArgs[e]=r},array:function(e,n){var r={value:n,field:e,compare:"=",valueType:"array",defaultValue:n,isArray:!0};t.searchArgs[e]=r},object:function(e,n){if(n.NoUsed||n.NoInit)return;var r=n;if(Array.isArray(r.items)&&r.items.length>0)if(typeof r.items[0]=="object"){var i=[];r.items.forEach(function(e){i.push(e.value)}),r.values=i}else r.values=r.items,r.items=r.items.map(function(e){return{name:e,value:e}});typeof r.valueType=="undefined"&&(typeof r.items=="undefined"?r.valueType=typeof n.value||"string":r.valueType="arrayValue"),typeof r.field=="undefined"&&(r.field=e),typeof r.compare=="undefined"&&(r.compare="="),typeof r.isArray=="undefined"&&(typeof r.value=="object"?r.isArray=!0:r.isArray=!1),typeof r.value=="undefined"&&(r.value=""),typeof r.defaultValue=="undefined"&&(r.defaultValue=r.value),t.searchArgs[e]=r}};return t.reSet=function(e){avalon.mix(!0,t,e);for(var r in t.searchArgs){var i=t.searchArgs[r],s=avalon.type(i);try{n[s](r,i)}catch(o){avalon.log("[objectModel.js reSet()]ERROR",o)}}t.debug&&(avalon.log("[objectModel.js��reSet()] DEBUG : ����wasDoc��������ԣ����������Ϊ"),avalon.log(t.searchArgs))},t.reSet(e),t.setListValue=function(e,n){return t.listArgs[e]=n,t.debug&&avalon.log("[objectModel.js:setListValue]����listArgs"+e+"��ֵΪ"+n),t.listArgs[e]},t.getListValue=function(e){return t.listArgs[e]},t.setSearchValue=function(e,n){if(typeof t.searchArgs[e]=="undefined")return avalon.log("[objectModel.js:setSearchValue()]WARN:δ����"+e+"�ļ�������"),!1;var r=t.searchArgs[e],i=!1;if(r.NoUsed||r.isDisabled===!0)return!1;switch(r.valueType){case"number":i=t.setSearchValueAsNum(e,n);break;case"boolean":i=t.setSearchValueAsBool(e,n);break;case"string":i=t.setSearchValueAsString(e,n);break;case"array":i=t.setSearchValueAsArray(e,n);break;case"arrayIndex":i=t.setSearchValueAsArrIndex(e,n);break;case"arrayValue":i=t.setSearchValueAsArrValue(e,n);break;default:avalon.log("[objectModel.js setSearchValue( "+e+" ,"+n+")]�����Ե�valueTypeδ���崦���ķ�����")}return r.type=="listArg"&&(r.isArray?t.setListValue(r.listArgName||e,i.join(",")):t.setListValue(r.listArgName||e,i)),i},t.setSearchValueAsNum=function(e,n){var r=t.searchArgs[e];return r.valueType!="number"?(avalon.log("[objectModel.js setSearchValueAsNum( "+e+" ,"+n+")]WARN�����Ե�valueType����number����"),!1):typeof n=="number"?(r.value=n,n):/^\d+$/.test(n)?(r.value=parseInt(n),r.value):(avalon.log("[objectModel.js setSearchValueAsNum( "+e+" ,"+n+")]WARN�������ֵ��������"),!1)},t.setSearchValueAsBool=function(e,n){var r=t.searchArgs[e];return r.valueType!="boolean"?(avalon.log("[objectModel.js setSearchValueAsNum( "+e+" ,"+n+")]WARN�����Ե�valueType����boolean����"),!1):typeof n=="boolean"?(r.value=n,n):n=="true"?(r.value=!0,r.value):n=="false"||n=="null"?(r.value=!1,r.value):(avalon.log("[objectModel.js setSearchValueAsNum( "+e+" ,"+n+")]WARN�������ֵ��������"),!1)},t.setSearchValueAsString=function(e,n){var r=t.searchArgs[e];return r.valueType!="string"?(avalon.log("[objectModel.js setSearchValueAsNum( "+e+" ,"+n+")]WARN�����Ե�valueType����string����"),!1):typeof n=="string"?(r.value=n,n):(avalon.log("[objectModel.js setSearchValueAsNum( "+e+" ,"+n+")]WARN�������ֵ�����ַ���"),!1)},t.setSearchValueAsArray=function(e,n){var r=t.searchArgs[e];return r.valueType!="array"?(avalon.log("[objectModel.js setSearchValueAsNum( "+e+" ,"+n+")]WARN�����Ե�valueType���� array ����"),!1):Array.isArray(n)?(r.value=n,r.value):(avalon.log("[objectModel.js setSearchValueAsNum( "+e+" ,"+n+")]WARN�������ֵ�����ַ���"),!1)},t.setSearchValueAsArrIndex=function(e,n){var r=t.searchArgs[e];if(r.valueType!="arrayIndex")return avalon.log("[objectModel.js setSearchValueAsNum( "+e+" ,"+n+")]WARN�����Ե�valueType���� arrayIndex ����"),!1;if(!r.items)return avalon.log("[objectModel.js setSearchValueAsNum( "+e+" ,"+n+")]WARN��arrayIndexģʽ��Ҫ��߱�items����"),!1;if(r.isArray){Array.isArray(n)||(n=[n]);var i=[];for(var s=0;s-1&&o=r.items.length?(avalon.log("[objectModel.js setSearchValueAsNum( "+e+" ,"+n+")]WARN����arrayIndex��isArrayģʽ�£�ȡֵ����С��0���߳�������ij���"),!1):(r.value=n,t.debug&&avalon.log("[objectModel.js setSearchValueAsArrIndex]",e,n),typeof t.setSearchValueAsArrIndexExt=="function"&&t.setSearchValueAsArrIndexExt(e,n),r.value)):(avalon.log("[objectModel.js setSearchValueAsNum( "+e+" ,"+n+")]WARN����arraywasIndex��isArrayģʽ�£�ȡֵ����Ϊ����"),!1)},t.setSearchValueAsArrValue=function(e,n){var r=t.searchArgs[e];return r.valueType!="arrayValue"?(avalon.log("[objectModel.js setSearchValueAsNum( "+e+" ,"+n+")]WARN�����Ե�valueType���� arrayValue ����"),!1):r.items?r.isArray?(Array.isArray(n)||(n=[n]),n=n.filter(function(e){return r.values.indexOf(e)>-1?!0:!1}),r.value=n,r.value):r.values.indexOf(n)>-1?(r.value=n,r.value):!1:(avalon.log("[objectModel.js setSearchValueAsNum( "+e+" ,"+n+")]WARN��arrayValueģʽ��Ҫ��߱�items����"),!1)},t.getSearchValue=function(e){var n=t.searchArgs[e].value;return typeof n=="undefined"&&(n=t.searchArgs[e]),n},t.getSearchValueName=function(e,n){var r=t.searchArgs[e];if(r.items){if(Array.isArray(n)){var i=[];if(r.valueType=="arrayIndex")n.forEach(function(e){r.items[e]&&i.push(r.items[e].name)});else{if(r.valueType!="arrayValue")return avalon.log("[objectModel.js getSearchValueName("+e+","+n+")]ֻ��valueType����ΪarrayIndex����arrayValue�������и÷���"),"";n.forEach(function(e){r.values.indexOf(e)>-1&&i.push(r.items[r.values.indexOf(e)].name)})}return i.join(",")}return r.valueType=="arrayIndex"?r.items[n]?r.items[n].name||"":(avalon.log("[objectModel.js getSearchValueName("+e+","+n+")]valueֵ����items��"),""):r.valueType=="arrayValue"?r.values.indexOf(n)>-1?r.items[r.values.indexOf(n)].name:(avalon.log("[objectModel.js getSearchValueName("+e+","+n+")]valueֵ����items��"),""):(avalon.log("[objectModel.js getSearchValueName("+e+","+n+")]ֻ��valueType����ΪarrayIndex����arrayValue�������и÷���"),"")}return""},t.setSearchValues=function(e){for(var n in e)t.setSearchValue(n,e[n]);return t.listArgs.listUrl="",t.searchArgs},t.retSearchArgs=function(){var e={},n={},r=[],i={},s={};for(var o in t.searchArgs){var u=t.searchArgs[o];if(u.NoUsed)continue;u.valueType=="arrayIndex"?(e[o]=u.value,n[o+"Name"]=t.getSearchValueName(o,u.value),n[o+"All"]=!1,n[o+"Items"]=u.items||[],n[o+"Values"]=u.values||[]):u.valueType=="arrayValue"?(e[o]=u.value,n[o+"Name"]=t.getSearchValueName(o,u.value),n[o+"All"]=!1,n[o+"Items"]=u.items||[],n[o+"Values"]=u.values||[]):e[o]=u.value,u.showType=="dropdown"&&(s[o]=!1),typeof u.initItems=="function"&&r.push(u.initItems)}return{vmValues:e,vmHelps:n,initItems:r,watchs:i,dropdown:s}},t.getFilters=function(){return avalon.log("[objectModel.js getFilters()]WARN����Ҫ��д������"),!0},t.createListUrl=function(){var e="",n=[];t.getFilters();var r=typeof t.listRequired;if(r=="string"&&t.listRequired!=""){if(!t.listArgs[t.listRequired])return!1}else if(Array.isArray(t.listRequired)){var i=!1;t.listRequired.forEach(function(e){t.listArgs[e]||(i=!0)});if(i)return!1}for(var s in t.listArgs){if(s=="listUrl"||s=="prepageArgName"||s=="pageArgName")continue;t.listArgs[s]&&n.push(s+"="+t.listArgs[s])}return e=t.sysUrl+t.listUrl+(t.listUrl.indexOf("?")>-1?"&":"?")+n.join("&"),t.listArgs.listUrl=e,t.listArgs.listUrl},t.getList=function(e,n,r){if(!e)var e=function(e){avalon.log("[objectModel.js getList()]û�ж���callback����",e)};if(t.listArgs.listUrl==""&&!t.createListUrl())return e({error:!0,info:"listArgs���ڱ�������Ϊ��"});var i=t.listArgs.listUrl;t.listArgs.pageArgName&&typeof n=="number"&&(i+="&"+t.listArgs.pageArgName+"="+n),t.listArgs.prepageArgName&&typeof r=="number"&&(i+="&"+t.listArgs.prepageArgName+"="+r),t.debug&&avalon.log("[objectModel.js��getList()] DEBUG:����getList������ƴ�ӷ�ҳ������ƴ�Ӻ�URLΪ"+i),t.getList4Url(i,function(n){e(n,t)})},t.call4getList=function(e){avalon.log("[objectModel.js call4getList()]WARN����Ҫ��д������");var t={};return t=e,t},t.getList4Url=function(e,n){t.debug&&avalon.log("[objectModel.js:getList4Url] DEBUG:����getList4Url������URLΪ"+e);if(!n)var n=function(e){avalon.log("[objectModel.js getList4Url()]û�ж���callback����",e)};if(t.aynFlag)return!1;t.aynFlag=!0;var r={url:e,dataType:"json",success:function(e){t.aynFlag=!1,n(t.call4getList(e))},error:function(r,i,s){t.aynFlag=!1,avalon.log("[objectModel.js��getList4Url()] ERROR���첽���������"+e+"��",r,i,s),n(t.call4getList({error:!0}))}};t.listdataType&&(r.dataType=t.listdataType),$.ajax(r)},t.retAddArg=function(){return t.addArgs},t.check4Add=function(e,t){return avalon.log("[objectModel.js check4Add()]WARN����Ҫ��д������"),e.vCode?!0:"��֤�벻��Ϊ��"},t.call4Add=function(e){avalon.log("[objectModel.js call4Add()]WARN����Ҫ��д������");var t={};return e.success===!0?(t.error=!1,t.info="�ύ�ɹ������IJ�ѯ��Ϊ:"+e.queryNo):(t.error=!0,t.info=e.warnMsg||"�ύʧ��"),t},t.add4Arg=function(e,n){avalon.log("[objectModel.js add4arg()]WARN����Ҫ��д������"),t.add4UrlArg(t.sysUrl+t.addUrl,e,n)},t.add4arg=function(e,n){avalon.log("[objectModel.js add4arg()]WARN����Ҫ��д������"),t.add4UrlArg(t.sysUrl+t.addUrl,e,n)},t.add4UrlArg=function(e,n,r){var i=t.check4Add(n);i===!0?$.ajax({url:e,dataType:"json",type:"post",data:n,success:function(e){r(t.call4Add(e))},error:function(){r({error:!0,info:"�ύ������ʧ��"})}}):typeof i=="string"?r({error:!0,checkError:!0,info:i||"����У�����"}):(i.error=!0,i.checkError=!0,r(i))},t.call4getDetail=function(e){avalon.log("[objectModel.js call4getDetail()]WARN����Ҫ��д������");var t={};return e.success===!0?(t.data=e.data,t.error=!1,t.apps=e.apps):t.error=!0,t},t.getDetail=function(e){t.getDetail4UrlArgs(t.sysUrl+t.infoUrl,t.infoArgs,e)},t.getDetail4Args=function(e,n){t.getDetail4UrlArgs(t.sysUrl+t.infoUrl,e,n)},t.getDetail4UrlArgs=function(e,n,r){var i={url:e,dataType:"json",type:"get",success:function(e){r(t.call4getDetail(e))},error:function(){r({error:!0,info:"ajax������ʧ��"})}};n&&(i.method="post",i.data=n),$.ajax(i)},t.getApi=function(e,t,n){var r={url:e,dataType:"json",type:"get",success:function(e){n(e)},error:function(){n({error:!0,info:"ajax������ʧ��"})}};t&&(r.method="post",r.data=t),$.ajax(r)},t};return e}),define("object",["objectModel"],function(e){var t=function(t){var n={dataName:null,moveLast:!0};return avalon.mix(!0,n,t),n=e(n),n.call4getList=function(e){if(e.error)return e;var t={};t.error=!1;var r=[];if(n.dataName)r=e[n.dataName];else{if(!e.data)return avalon.log("[object.js:call4getList()] û��ָ�����ݼ��ϵ��������ƣ�Ĭ��Ϊ data ������ݽӿڵĶ���ָ��dataName���ԡ�"),{error:!0,info:"[object.js:call4getList()] û��ָ�����ݼ��ϵ��������ƣ�Ĭ��Ϊ data ������ݽӿڵĶ���ָ��dataName���ԡ�"};r=e.data}return n.moveLast&&r.pop(),t.data=r,t},n};return t}),define("wasDoc",["objectModel"],function(e){var t=(new Date).getFullYear(),n=avalon.range(t,t-6,-1),r=[];for(var i=0;i-1&&(i=!0);else if(u.indexOf(o)>-1){i=!0;break}}else if(o===u||o.indexOf(u)>-1){i=!0;break}}if(i)continue}if(r.type=="listArg"){r.argName&&(r.valueType=="array"?r.value.length>0&&n.setListValue(r.argName,r.value.join(",")):r.value!=""&&n.setListValue(r.argName,r.value));continue}if(r.type=="key"){var f=n.searchArgs.keyType.value,l="";f.length==0?l=n.searchArgs.keyType.defaultValue:f.length==1?l=f[0]:f.length>1&&(l=f.join(",")+"+");if(n.searchArgs.keyAll.value.length==0){var c=r.value.split(/[ \+,;]+/);c&&c.length>1?n.searchArgs.keyAll.value=n.searchArgs.keyAll.value.concat(c):n.searchArgs.keyAll.value.push(r.value),avalon.log(n.searchArgs.keyAll.value)}if(l==""){var h="doctitle,doccontent,fileno+=";if(n.searchArgs.keyAll.value.length>1)for(var p=0;p1)for(var p=0;p=":return e+t+(Array.isArray(n)?n[0]:n);case"<=":return e+t+(Array.isArray(n)?n[0]:n);case"like":if(Array.isArray(n)){var i=[];return n.forEach(function(t){i.push(e+"=%"+t+"%")}),"("+i.join("+")+")"}return e+"=%"+n+"%";case"like2":if(Array.isArray(n)){var i=[];return n.forEach(function(t){i.push(e+"='%"+t+"%'")}),"("+i.join("+")+")"}return e+"='%"+n+"%'";default:return avalon.log("[wasDoc.js:getFilters]WARN:"+t+"�ļ��㷽��δ����"),e+t+n}return}switch(r.valueType){case"string":var v=d(r.field,r.compare,r.value);v&&e.push(v);break;case"number":var v=d(r.field,r.compare,r.value);v&&e.push(v);break;case"boolean":var v=d(r.field,r.compare,r.value);v&&e.push(v);break;case"array":if(Array.isArray(r.value)&&r.value.length>0)var v=d(r.field,r.compare,r.value.join(","));else avalon.log("[wasDoc.js getFilters()]�����ֵ�Ƕ��������Array��һ��"),avalon.log(r.value,r.field);v&&e.push(v);break;case"arrayIndex":var m=[];Array.isArray(r.value)?r.value.forEach(function(e){r.values[e]&&r.values[e]!=""&&m.push(r.values[e])}):typeof r.value=="number"?r.values[r.value]&&r.values[r.value]!=""&&m.push(r.values[r.value]):avalon.log("[wasDoc.js:getFilters()]ERROR:��arrayIndexģʽ�£�ֵ�����������������"),m.length>0&&e.push(d(r.field,r.compare,m));break;case"arrayValue":var m=[];Array.isArray(r.value)?m=r.value:r.value!=""?m.push(r.value):avalon.log("[wasDoc.js:getFilters()]ERROR:��arrayValueģʽ�£�ֵ��������������ַ���");if(m.length>0){var v=d(r.field,r.compare,m);v&&e.push(v)}break;default:avalon.log("[wasDoc.js:getFilters()]������"+r.field+"������û�ж��崦����ʽ",r.valueType)}}return e},n.createListUrl=function(){var e="",t=[];if(n.listArgs.channelid=="")return avalon.log("[wasDoc.js��createListUrl()] ERROR : wasDoc�����listArgs.channelid���Բ���Ϊ��"),!1;e=n.sysUrl+n.listUrl+"?channelid="+n.listArgs.channelid;var r=n.getFilters();return r||(r=[]),n.listArgs.templet&&(e+="&templet="+n.listArgs.templet),n.listArgs.sortfield&&n.listArgs.sortfield.length>0&&(e+="&sortfield="+n.listArgs.sortfield),n.listArgs.searchword&&n.listArgs.searchword.length>0&&(e+="&searchword="+n.listArgs.searchword),n.listArgs.extension&&n.listArgs.extension.length>0&&(e+="&extension="+n.listArgs.extension),n.listArgs.classsql&&r.push(n.listArgs.classsql),r.length>0&&(e+="&classsql="+encodeURIComponent(r.join("*"))),n.listArgs.listUrl=e,n.debug&&avalon.log("[wasDoc.js��createListUrl()] DEBUG : ����wasDoc�Ķ������Լ���listUrl��������Ϊ"+n.listArgs.listUrl),n.listArgs.listUrl},n.call4getList=function(e){var t=$.trim(e);t=t.replace(new RegExp("[\n\r]","gm"),"");var r=(new Function("return"+t))(),i={error:!1};if(n.dataName&&n.dataName=="chnls")var s=r.chnls;else var s=r.docs;i.recordCount=parseInt(r.count)||0,i.pageIndex=parseInt(r.pageIndex||0),i.pageCount=parseInt(r.pagenum||0);if(!s)return i.data=[],i;n.moveLast&&s.pop();if(s.length==0)return i.data=[],i;for(var o=0;o/img,""));if(u.html){var p=a.replace(/http:\/\/([^\/]*?)\//img,"/");u.html=u.html.replace(/src='([^']*)'/img,"src='"+p+"$1'"),u.html=u.html.replace(/(\s*
\s*)*/,"")}if(u.html){var d=u.html;d=d.replace("���������ݱ���",""),d=d.replace(/<(style|script)[^>]*>.*<\/(style|script)>/img,"").replace(/src='([^']*)'/img,"src='"+a+"$1'").replace(/style='[^']*'/img,""),d=d.replace(/<\/?(o:p|span|font|\?xml|div)[^>]*>/img,"").replace(/ \/>/," />").replace(/<\!\-\-(StartFragment|EndFragment)\-\->/img,""),d=d.replace(/
(?=]*><\/p>/img,""),d=d.replace(/
]*>( )*<\/p>/img,""),d=d.replace(/]*)width=['"]?\d+['"]?/img,"]*)height=['"]?\d+['"]?/img,"0&&(r+="&classsql="+encodeURIComponent(i.join("*"))),$.getJSON(r,function(e){t(e)})},n};return s}),define("letter",["objectModel"],function(e){var t=function(t){var n={sysUrl:"/itp/interface/letter/",listUrl:"search.action",addUrl:"add.action",infoUrl:"detail.action",listArgs:{listUrl:"",chnlIds:"",order:"",years:"",repOrgs:"",searchWord:"",searchType:"",searchContent:"",prepageArgName:"page.pagesize",pageArgName:"page.currentpage"},listRequired:["chnlIds"],searchArgs:{chnlIds:{type:"listArg"},key:{NoInit:!0,type:"listArg",listArgName:"searchWord",value:"",valueType:"string"},years:{items:[2015,2014,2013,2012],valueType:"arrayValue",isArray:!0,type:"listArg",value:[],initItems:function(e){var t=(new Date).getFullYear(),r=avalon.range(t,t-6,-1),i=[];for(var s=0;s1?o({key:i.$vm.searchForm.key,keyAll:t,secondsearch:i.$vm.searchForm.secondsearch,extension:i.$vm.searchForm.extension}):o({key:i.$vm.searchForm.key,secondsearch:i.$vm.searchForm.secondsearch,extension:i.$vm.searchForm.extension})}else{var t=i.$vm.searchForm.key.split(/[ ,;\+]+/);if(t&&t.length>1)for(var n=0;n0&&t.push(n+"="+e[n].join(","))}return t.join("&")}e&&e.preventDefault();var t=i.$vm.searchForm.$model,n=this.method||"get",r=this.action;switch(n){case"get":var o=r+"?"+s(t);window.location.href="p;csfbl;dbtf""post":}},$unlimit:function(e,t,n,r){this.checked&&(t===n?(i.$vm.searchForm[e].clear(),i.$vm.searchForm[e].push(t)):(i.$vm.searchForm[e].ensure(n),i.$vm.searchForm[e][0]==t&&i.$vm.searchForm[e].removeAt(0),i.$vm.searchForm[e].remove(t)))},$CheckAll:function(e){if(this.checked){if(!Array.isArray(i.$vm.searchForm[e]))return avalon.log("[list.js��CheckAll()]�������VM���Բ���ʹ��CheckAll����");var t=i.$vm.helps[e+"Values"];i.$vm.searchForm[e]=t}else i.$vm.searchForm[e].clear()},$CheckOne:function(e){setTimeout(function(){i.$vm.helps[e+"All"]=i.$vm.searchForm[e].size()===i.$vm.helps[e+"Values"].size()},100)}}),avalon.scan();if(i.initItems)for(var s=0;s-1&&(e[n]=e[n].split(","));var r=t.$object.setSearchValue(n,e[n]);i.debug&&avalon.log("[search.js setSearchValues()]",r);if(r!==!1){i.setSearchValue(n,r);if(n=="prepage"){var s=parseInt(r);i.$getParent().$pageBar.reSet({prepage:s})}}}},avalon.filters.showkey=function(t){if(i.$vm.searchForm.$model.key!=""){var n=e.initReg(i.$vm.searchForm.$model.key);t=t.replace(new RegExp(n,"img"),''+i.$vm.searchForm.$model.key+"")}return t},avalon.filters.defaultShow=function(e,t){return!e||e==="null"?t||"":e},i};return t}),define("searchform",["tools"],function(e){var t=function(t){avalon.log(" searchform.js ��ʼ��",t);var n={vmId:"",disDefFlag:!0};avalon.mix(n,t);var r=[];r.push(n.Mode);var i={string:function(e,t){return e+"="+t},number:function(e,t){return e+"="+t},"boolean":function(e,t){return e+"="+t},object:function(e,t){var n=t.join(",");return avalon.log("object",n),n==0||n==""?!1:e+"="+t.join(",")}};return require(r,function(t){n.$object=t({searchArgs:n.searchArgs}),avalon.log(n.$object);var r=n.$object.retSearchArgs();avalon.log(r),n.defSearchForm=e.getValue(r.vmValues),n.defHelps=e.getValue(r.vmHelps);var s=function(e,t,r){if(typeof r=="undefined"){var r=typeof t=="string"?"":0;avalon.log("����ֵ��",r)}if(this.checked)if(t===r)n.$vm.searchForm[e].clear(),n.$vm.searchForm[e].push(t);else{avalon.log(n.$vm.$model.searchForm[e],r);var i=n.$vm.$model.searchForm[e].indexOf(r);i>-1&&n.$vm.searchForm[e].removeAt(i),n.$vm.searchForm[e].ensure(t)}else avalon.log("ȡ��ѡ����"+e+","+t+".")};n.$vm=avalon.define({$id:n.vmId+"searchform",searchForm:r.vmValues,helps:r.vmHelps,$getObj:function(){return n},$setVal:function(e,t,r){r&&r.preventDefault(),n.$vm.searchForm[e]=t},$unlimit:s,$submit:function(e){e.preventDefault();var t=n.$vm.$model.searchForm,r=[];for(var s in t){var o=t[s];if(!o)continue;if(o.length==0)continue;var u=typeof o,a=i[u](s,o);a&&r.push(a)}avalon.log(r),avalon.log(r.join("&")),window.location.href="uijt.bdujpo ""?"+r.join("&")}}),avalon.scan()}),n};return t}),define("list",[],function(){var e=function(e){var t={vmId:"list",debug:avalon.config.debug,Mode:"",listArgs:{listUrl:""},objArgs:null,extObjArgs:null,searchArgs:null,extSearchArg:null,searchValues:null,ifGetUrlQs:!0,pageBar:!1,flag:!1,autoShowPage:!1,replaceMode:!0,nodataMsg:"",autoCachePage:null,num:!1,disAutoGetList:!1,$cache:{},listCall:null,succCall:null,rpCall:null,extVmArgs:null};avalon.mix(!0,t,e),t.reSet=function(e){avalon.mix(!0,t,e),t.flag&&e.listArgs&&t.$object.reSet(e.listArgs)};if(t.Mode=="")return avalon.log("[list.js] ERROR ������ָ��Mode����");var n={$id:t.vmId,list:[],error:!1,showStatic:t.showStatic||!1,count:0,$getObj:function(){return t},rpCall:function(){typeof t.rpCall=="function"&&t.rpCall()}};if(t.extVmArgs)for(var r in t.extVmArgs)n[r]=t.extVmArgs[r];t.$vm=avalon.define(n),avalon.scan();var i=function(e){typeof t.listCall=="function"&&(e=t.listCall(e)),e.error?(t.$vm.error=t.nodataMsg||"û������",t.debug&&avalon.log("[list.js��cbGetList()]WARN:û�м��ص�����")):(t.$vm.list.pushArray(e.data),e.data.length==0?t.$vm.error=t.nodataMsg||"û������":t.$vm.error=!1,typeof t.succCall=="function"&&t.succCall(e),t.pageBar&&e.pageIndex&&!t.$cache["cache_"+e.pageIndex]&&(t.$cache["cache_"+e.pageIndex]=e.data))},s=function(e){e.error?t.debug&&avalon.log("�����"+e.pageIndex+"ҳ����ʧ��"):e.pageIndex&&!t.$cache["cache_"+e.pageIndex]&&(t.$cache["cache_"+e.pageIndex]=e.data)},o=[];return o.push(t.Mode),t.pageBar?(o.push("pageBar"),t.searchArgs&&(o.push("search"),o.push("tools")),require(o,function(e,n,r,o){t.objArgs?(t.objArgs.searchArgs=t.searchArgs,t.$object=e(t.objArgs)):t.$object=e({vmId:t.vmId,listArgs:t.listArgs,searchArgs:t.searchArgs}),t.$object.$getParent=function(){return t};if(t.extObjArgs)for(var u in t.extObjArgs)t.$object[u]=t.extObjArgs[u];t.pageBar.id||(t.pageBar.id=t.vmId+"_pagebar"),t.$pageBar=n(t.pageBar),t.$pageBar.$getParent=function(){return t};if(t.searchArgs){var a=t.$object.retSearchArgs();t.$search=r(a,t.$object,t.$pageBar),t.$search.$getParent=function(){return t};if(t.extSearchArg)for(var u in t.extSearchArg)t.$search[u]=t.extSearchArg[u];t.searchValues&&t.$search.setSearchValues(t.searchValues);if(t.ifGetUrlQs){var f=o.getQs();f&&t.$search.setSearchValues(f)}}t.getAutoCache=function(e){t.$object.getList(function(n){t.$pageBar.reSet({pageCount:n.pageCount}),t.$pageBar.$vm.recordCount=n.recordCount,t.$vm.count=n.recordCount,isNaN(n.pageIndex)&&(n.pageIndex=e),s(n)},e,t.$pageBar.$vm.prepage||10)},t.getCache=function(e){if(e>t.$pageBar.$vm.pageCount||t.$cache["cache_"+e]){t.debug&&avalon.log("[list.js��getCache("+e+")]DEBUG����ҳ�����Ѿ����ڻ����Ѿ��������ҳ��");return}t.$object.getList(function(t){t.pageIndex||(t.pageIndex=e),s(t)},e,t.$pageBar.$vm.prepage||10)},t.getNewList=function(e,n){typeof e!="number"&&(e=1),t.$vm.list.clear(),t.$cache={},t.$vm.showStatic=!1,t.$vm.error=!1,t.$object.getList(function(r){t.$pageBar.reSet({pageIndex:e,pageCount:r.pageCount}),t.$pageBar.$vm.recordCount=r.recordCount,t.$vm.count=r.recordCount,i(r),n&&n(),t.getCache(e+1)},e,t.$pageBar.$vm.prepage||10)},typeof t.autoShowPage=="number"?t.getNewList(t.autoShowPage):t.debug&&avalon.log("WARN:list.js û�ж���autoShowPage���ԣ����Բ����Զ�������ȡ�б��ķ�����"),typeof t.autoCachePage=="number"?t.getAutoCache(t.autoCachePage):avalon.log(t.autoCachePage),t.$pageBar.toPageFun=function(e){t.$vm.showStatic=!1,t.replaceMode&&t.$vm.list.clear(),t.$cache["cache_"+e]?(t.debug&&avalon.log("[list.js:_obj.$pageBar.toPageFun()]DEBUG���ӻ����м��أ���"+e+"ҳ����"),setTimeout(function(){t.$vm.list.pushArray(t.$cache["cache_"+e])},300),t.$vm.error=!1,t.getCache(e+1)):t.$object.getList(function(n){n.pageIndex||(n.pageIndex=e),t.$pageBar.$vm.pageCount!=n.pageCount&&t.$pageBar.reSet({pageCount:n.pageCount}),i(n),t.getCache(e+1)},e,t.$pageBar.$vm.prepage||10)},t.$pageBar.getNewList=function(e){t.getNewList(e)},t.flag=!0})):require(o,function(e){t.objArgs?t.$object=e(t.objArgs):t.$object=e({listArgs:t.listArgs});if(t.extObjArgs)for(var n in t.extObjArgs)t.$object[n]=t.extObjArgs[n];t.$object.$getParent=function(){return t},t.flag=!0,t.getList=function(e){t.$object.getList(function(t){i(t),e&&e(t)},1,t.num||5)},t.disAutoGetList||t.getList()}),t};return e}),define("add",["tools"],function(e){var t=function(t){var n={vmId:"add",debug:avalon.config.debug,Mode:"",errCall:null,flag:!1,addArgs:{},addArgsExt:{},extObjArg:null};avalon.mix(n,t);if(n.Mode=="")return avalon.log("[add.js]Mode���Բ���Ϊ��");var r=[];return r.push(n.Mode),require(r,function(t){function o(){n.$vm.addForm=n.addArgs}n.$object=t(n);if(n.extObjArg)for(var r in n.extObjArg)n.$object[r]=n.extObjArg[r];var i=n.$object.retAddArg();for(var s in i)n.addArgs.hasOwnProperty(s)||(n.addArgs[s]=i[s]);n.$vm=avalon.define({$id:n.vmId,btnDisab:!1,addForm:{},$add:function(e){e.preventDefault(),n.$vm.btnDisab=!0,n.add(function(e){n.$vm.btnDisab=!1,!e.error&&!n.debug&&o()})}}),o(),avalon.scan(),n.add=function(t){if(typeof JSON=="undefined")var r=n.$vm.$model.addForm;else var r=JSON.parse(JSON.stringify(n.$vm.$model.addForm));for(var i in r){if(r[i]==""){delete r[i];continue}Array.isArray(r[i])&&(r[i]=r[i].join(","))}n.$object.add4arg(r,function(r){typeof n.retValCall=="function"&&(r=n.retValCall(r)),r.info&&e.msg(r.info),t(r),r.error&&!r.checkError&&typeof n.errCall=="function"&&n.errCall(r),!r.error&&typeof n.succCall=="function"&&n.succCall(r)})}}),n};return t}),define("wasLists",["wasDoc"],function(e){var t=function(t){function i(e){var t={$id:e,list:[],error:!1,showStatic:!0,$getObj:function(){return n},rpCall:function(){typeof o.rpCall=="function"&&n.rpCall()}};if(n.extVmArg)for(var r in n.extVmArg)t[r]=n.extVmArg[r];return avalon.define(t)}var n={Mode:"wasDoc",lists:[],listArgs:{channelid:"",templet:"docs_mul.jsp",sortfield:"-docorderpri,-docorder"},call4getList:function(e){var t=$.trim(e);t=t.replace(new RegExp("[\n\r]","gm"),"");var n=(new Function("return"+t))();return n},num:10};avalon.mix(!0,n,t);var r=[];n.$vm=[];for(var s=0;s1&&(t[n]=i.join(","))}e.ajax({url:"/poll/poll/poll_skim_dowith.jsp",type:"get",data:t,dataType:"text",success:function(t){r.$vm.disabled=!1,r.$vm.error=e.trim(e(t).text().replace(/(��ʾ��|���飺)/img,"")),setTimeout(function(){r.$vm.error=""},3e3),document.getElementById("pollForm").reset(),r.getResult(),typeof r.callSubmit=="function"&&r.callSubmit()},error:function(e,t,n){avalon.log(e,t,n),r.$vm.disabled=!1}})},r.getPoll=function(){if(r.pollurl=="")return!1;e.ajax({url:r.pollurl,dataType:"text",success:function(e){var t=e.split(/<\/?form[^>]*>/)[1],n=t.match(//g),i={};for(var s=0;s',"")]=[];t=t.replace(/name="(Item_\d+)"/g,'name="$1" ms-duplex="pollFiled.$1"'),r.$vm.pollhtml=t,avalon.templateCache["poll_"+r.pollid+".html"]=t,r.$vm.pollurlname="poll_"+r.pollid+".html",r.pollfiled=i}})},r.getResult=function(){e.ajax({url:"/poll/poll/poll_preview.jsp?PollId="+r.pollid+"&PreviewType=11",dataType:"text",success:function(t){e.ajax({url:r.resulturl,dataType:"text",success:function(e){var t=e.split(/<\/?body[^>]*>/)[1];avalon.templateCache["pollresult_"+r.pollid+".html"]=t,r.$vm.resulturlname="pollresult_"+r.pollid+".html"},error:function(e,t,n){}})},error:function(e,t,n){}})},r.init=function(){if(r.pollurl=="")return!1;/p(\d+)10\.html?/.test(r.pollurl)&&(r.pollid=RegExp.$1,r.resulturl=r.pollurl.replace("pub","preview").replace(/10\.htm/,"11.htm")),r.getPoll(),r.endtime&&(r.$vm.status=t.getStatus(r.endtime))},r.init(),r}}),define("zdbs",["jquery","dialog"],function(e,t){var n=function(n){var r={vmId:"zdbsdetail",doctitle:"",subdoctitle:"",source:"",Url:"",content:"",width:"1000px",height:"500px",lock:!0,fixed:!0,quickClose:!0};avalon.mix(!0,r,n),r.$vm=avalon.define({$id:r.vmId,content:"",http://www.fjlib.net/pgTemp:"diaDeal.html",url:r.Url}),r.getUrl=function(t){e.ajax({url:t,dataType:"text",success:function(e){var t=e.match(/()([\s\S]*?)()/),n=t[2].replace(/()([\s\S]*?)()/,"");n=n.replace('ms-class-0="font0:detailFont==0" ms-class-1="font1:detailFont==1"',"").replace(/