/*! jQuery v3.7.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="",le.option=!!xe.lastChild;var ke={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n",""]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="
",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({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)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0").attr("name",c.submitButton.name).val(a(c.submitButton).val()).appendTo(c.currentForm)),c.settings.submitHandler.call(c,c.currentForm,b),c.submitButton&&d.remove(),!1):!0}return c.settings.debug&&b.preventDefault(),c.cancelSubmit?(c.cancelSubmit=!1,d()):c.form()?c.pendingRequest?(c.formSubmitted=!0,!1):d():(c.focusInvalid(),!1)})),c)},valid:function(){var b,c;return a(this[0]).is("form")?b=this.validate().form():(b=!0,c=a(this[0].form).validate(),this.each(function(){b=c.element(this)&&b})),b},removeAttrs:function(b){var c={},d=this;return a.each(b.split(/\s/),function(a,b){c[b]=d.attr(b),d.removeAttr(b)}),c},rules:function(b,c){var d,e,f,g,h,i,j=this[0];if(b)switch(d=a.data(j.form,"validator").settings,e=d.rules,f=a.validator.staticRules(j),b){case"add":a.extend(f,a.validator.normalizeRule(c)),delete f.messages,e[j.name]=f,c.messages&&(d.messages[j.name]=a.extend(d.messages[j.name],c.messages));break;case"remove":return c?(i={},a.each(c.split(/\s/),function(b,c){i[c]=f[c],delete f[c],"required"===c&&a(j).removeAttr("aria-required")}),i):(delete e[j.name],f)}return g=a.validator.normalizeRules(a.extend({},a.validator.classRules(j),a.validator.attributeRules(j),a.validator.dataRules(j),a.validator.staticRules(j)),j),g.required&&(h=g.required,delete g.required,g=a.extend({required:h},g),a(j).attr("aria-required","true")),g.remote&&(h=g.remote,delete g.remote,g=a.extend(g,{remote:h})),g}}),a.extend(a.expr[":"],{blank:function(b){return!a.trim(""+a(b).val())},filled:function(b){return!!a.trim(""+a(b).val())},unchecked:function(b){return!a(b).prop("checked")}}),a.validator=function(b,c){this.settings=a.extend(!0,{},a.validator.defaults,b),this.currentForm=c,this.init()},a.validator.format=function(b,c){return 1===arguments.length?function(){var c=a.makeArray(arguments);return c.unshift(b),a.validator.format.apply(this,c)}:(arguments.length>2&&c.constructor!==Array&&(c=a.makeArray(arguments).slice(1)),c.constructor!==Array&&(c=[c]),a.each(c,function(a,c){b=b.replace(new RegExp("\\{"+a+"\\}","g"),function(){return c})}),b)},a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(a){this.lastActive=a,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(a)))},onfocusout:function(a){this.checkable(a)||!(a.name in this.submitted)&&this.optional(a)||this.element(a)},onkeyup:function(a,b){(9!==b.which||""!==this.elementValue(a))&&(a.name in this.submitted||a===this.lastElement)&&this.element(a)},onclick:function(a){a.name in this.submitted?this.element(a):a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).addClass(c).removeClass(d):a(b).addClass(c).removeClass(d)},unhighlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).removeClass(c).addClass(d):a(b).removeClass(c).addClass(d)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date ( ISO ).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function b(b){var c=a.data(this[0].form,"validator"),d="on"+b.type.replace(/^validate/,""),e=c.settings;e[d]&&!this.is(e.ignore)&&e[d].call(c,this[0],b)}this.labelContainer=a(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm),this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var c,d=this.groups={};a.each(this.settings.groups,function(b,c){"string"==typeof c&&(c=c.split(/\s/)),a.each(c,function(a,c){d[c]=b})}),c=this.settings.rules,a.each(c,function(b,d){c[b]=a.validator.normalizeRule(d)}),a(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox']","focusin focusout keyup",b).validateDelegate("select, option, [type='radio'], [type='checkbox']","click",b),this.settings.invalidHandler&&a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler),a(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),a.extend(this.submitted,this.errorMap),this.invalid=a.extend({},this.errorMap),this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(b){var c=this.clean(b),d=this.validationTargetFor(c),e=!0;return this.lastElement=d,void 0===d?delete this.invalid[c.name]:(this.prepareElement(d),this.currentElements=a(d),e=this.check(d)!==!1,e?delete this.invalid[d.name]:this.invalid[d.name]=!0),a(b).attr("aria-invalid",!e),this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),e},showErrors:function(b){if(b){a.extend(this.errorMap,b),this.errorList=[];for(var c in b)this.errorList.push({message:b[c],element:this.findByName(c)[0]});this.successList=a.grep(this.successList,function(a){return!(a.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue").removeAttr("aria-invalid")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b,c=0;for(b in a)c++;return c},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(a){a.not(this.containers).text(""),this.addWrapper(a).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(b){}},findLastActive:function(){var b=this.lastActive;return b&&1===a.grep(this.errorList,function(a){return a.element.name===b.name}).length&&b},elements:function(){var b=this,c={};return a(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return!this.name&&b.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in c||!b.objectLength(a(this).rules())?!1:(c[this.name]=!0,!0)})},clean:function(b){return a(b)[0]},errors:function(){var b=this.settings.errorClass.split(" ").join(".");return a(this.settings.errorElement+"."+b,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=a([]),this.toHide=a([]),this.currentElements=a([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset(),this.toHide=this.errorsFor(a)},elementValue:function(b){var c,d=a(b),e=b.type;return"radio"===e||"checkbox"===e?a("input[name='"+b.name+"']:checked").val():"number"===e&&"undefined"!=typeof b.validity?b.validity.badInput?!1:d.val():(c=d.val(),"string"==typeof c?c.replace(/\r/g,""):c)},check:function(b){b=this.validationTargetFor(this.clean(b));var c,d,e,f=a(b).rules(),g=a.map(f,function(a,b){return b}).length,h=!1,i=this.elementValue(b);for(d in f){e={method:d,parameters:f[d]};try{if(c=a.validator.methods[d].call(this,i,b,e.parameters),"dependency-mismatch"===c&&1===g){h=!0;continue}if(h=!1,"pending"===c)return void(this.toHide=this.toHide.not(this.errorsFor(b)));if(!c)return this.formatAndAdd(b,e),!1}catch(j){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+b.id+", check the '"+e.method+"' method.",j),j}}if(!h)return this.objectLength(f)&&this.successList.push(b),!0},customDataMessage:function(b,c){return a(b).data("msg"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase())||a(b).data("msg")},customMessage:function(a,b){var c=this.settings.messages[a];return c&&(c.constructor===String?c:c[b])},findDefined:function(){for(var a=0;aWarning: No message defined for "+b.name+"")},formatAndAdd:function(b,c){var d=this.defaultMessage(b,c.method),e=/\$?\{(\d+)\}/g;"function"==typeof d?d=d.call(this,c.parameters,b):e.test(d)&&(d=a.validator.format(d.replace(e,"{$1}"),c.parameters)),this.errorList.push({message:d,element:b,method:c.method}),this.errorMap[b.name]=d,this.submitted[b.name]=d},addWrapper:function(a){return this.settings.wrapper&&(a=a.add(a.parent(this.settings.wrapper))),a},defaultShowErrors:function(){var a,b,c;for(a=0;this.errorList[a];a++)c=this.errorList[a],this.settings.highlight&&this.settings.highlight.call(this,c.element,this.settings.errorClass,this.settings.validClass),this.showLabel(c.element,c.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight)for(a=0,b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(b,c){var d,e,f,g=this.errorsFor(b),h=this.idOrName(b),i=a(b).attr("aria-describedby");g.length?(g.removeClass(this.settings.validClass).addClass(this.settings.errorClass),g.html(c)):(g=a("<"+this.settings.errorElement+">").attr("id",h+"-error").addClass(this.settings.errorClass).html(c||""),d=g,this.settings.wrapper&&(d=g.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(d):this.settings.errorPlacement?this.settings.errorPlacement(d,a(b)):d.insertAfter(b),g.is("label")?g.attr("for",h):0===g.parents("label[for='"+h+"']").length&&(f=g.attr("id"),i?i.match(new RegExp("\b"+f+"\b"))||(i+=" "+f):i=f,a(b).attr("aria-describedby",i),e=this.groups[b.name],e&&a.each(this.groups,function(b,c){c===e&&a("[name='"+b+"']",this.currentForm).attr("aria-describedby",g.attr("id"))}))),!c&&this.settings.success&&(g.text(""),"string"==typeof this.settings.success?g.addClass(this.settings.success):this.settings.success(g,b)),this.toShow=this.toShow.add(g)},errorsFor:function(b){var c=this.idOrName(b),d=a(b).attr("aria-describedby"),e="label[for='"+c+"'], label[for='"+c+"'] *";return d&&(e=e+", #"+d.replace(/\s+/g,", #")),this.errors().filter(e)},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},validationTargetFor:function(a){return this.checkable(a)&&(a=this.findByName(a.name).not(this.settings.ignore)[0]),a},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(b){return a(this.currentForm).find("[name='"+b+"']")},getLength:function(b,c){switch(c.nodeName.toLowerCase()){case"select":return a("option:selected",c).length;case"input":if(this.checkable(c))return this.findByName(c.name).filter(":checked").length}return b.length},depend:function(a,b){return this.dependTypes[typeof a]?this.dependTypes[typeof a](a,b):!0},dependTypes:{"boolean":function(a){return a},string:function(b,c){return!!a(b,c.form).length},"function":function(a,b){return a(b)}},optional:function(b){var c=this.elementValue(b);return!a.validator.methods.required.call(this,c,b)&&"dependency-mismatch"},startRequest:function(a){this.pending[a.name]||(this.pendingRequest++,this.pending[a.name]=!0)},stopRequest:function(b,c){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[b.name],c&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(a(this.currentForm).submit(),this.formSubmitted=!1):!c&&0===this.pendingRequest&&this.formSubmitted&&(a(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:!0,message:this.defaultMessage(b,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(b,c){b.constructor===String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(b){var c={},d=a(b).attr("class");return d&&a.each(d.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(c,a.validator.classRuleSettings[this])}),c},attributeRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)"required"===c?(d=b.getAttribute(c),""===d&&(d=!0),d=!!d):d=f.attr(c),/min|max/.test(c)&&(null===g||/number|range|text/.test(g))&&(d=Number(d)),d||0===d?e[c]=d:g===c&&"range"!==g&&(e[c]=!0);return e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)&&delete e.maxlength,e},dataRules:function(b){var c,d,e={},f=a(b);for(c in a.validator.methods)d=f.data("rule"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase()),void 0!==d&&(e[c]=d);return e},staticRules:function(b){var c={},d=a.data(b.form,"validator");return d.settings.rules&&(c=a.validator.normalizeRule(d.settings.rules[b.name])||{}),c},normalizeRules:function(b,c){return a.each(b,function(d,e){if(e===!1)return void delete b[d];if(e.param||e.depends){var f=!0;switch(typeof e.depends){case"string":f=!!a(e.depends,c.form).length;break;case"function":f=e.depends.call(c,c)}f?b[d]=void 0!==e.param?e.param:!0:delete b[d]}}),a.each(b,function(d,e){b[d]=a.isFunction(e)?e(c):e}),a.each(["minlength","maxlength"],function(){b[this]&&(b[this]=Number(b[this]))}),a.each(["rangelength","range"],function(){var c;b[this]&&(a.isArray(b[this])?b[this]=[Number(b[this][0]),Number(b[this][1])]:"string"==typeof b[this]&&(c=b[this].replace(/[\[\]]/g,"").split(/[\s,]+/),b[this]=[Number(c[0]),Number(c[1])]))}),a.validator.autoCreateRanges&&(b.min&&b.max&&(b.range=[b.min,b.max],delete b.min,delete b.max),b.minlength&&b.maxlength&&(b.rangelength=[b.minlength,b.maxlength],delete b.minlength,delete b.maxlength)),b},normalizeRule:function(b){if("string"==typeof b){var c={};a.each(b.split(/\s/),function(){c[this]=!0}),b=c}return b},addMethod:function(b,c,d){a.validator.methods[b]=c,a.validator.messages[b]=void 0!==d?d:a.validator.messages[b],c.length<3&&a.validator.addClassRules(b,a.validator.normalizeRule(b))},methods:{required:function(b,c,d){if(!this.depend(d,c))return"dependency-mismatch";if("select"===c.nodeName.toLowerCase()){var e=a(c).val();return e&&e.length>0}return this.checkable(c)?this.getLength(b,c)>0:a.trim(b).length>0},email:function(a,b){return this.optional(b)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(a)},url:function(a,b){return this.optional(b)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(a)},date:function(a,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(a).toString())},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},creditcard:function(a,b){if(this.optional(b))return"dependency-mismatch";if(/[^0-9 \-]+/.test(a))return!1;var c,d,e=0,f=0,g=!1;if(a=a.replace(/\D/g,""),a.length<13||a.length>19)return!1;for(c=a.length-1;c>=0;c--)d=a.charAt(c),f=parseInt(d,10),g&&(f*=2)>9&&(f-=9),e+=f,g=!g;return e%10===0},minlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(a.trim(b),c);return this.optional(c)||e>=d},maxlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(a.trim(b),c);return this.optional(c)||d>=e},rangelength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(a.trim(b),c);return this.optional(c)||e>=d[0]&&e<=d[1]},min:function(a,b,c){return this.optional(b)||a>=c},max:function(a,b,c){return this.optional(b)||c>=a},range:function(a,b,c){return this.optional(b)||a>=c[0]&&a<=c[1]},equalTo:function(b,c,d){var e=a(d);return this.settings.onfocusout&&e.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){a(c).valid()}),b===e.val()},remote:function(b,c,d){if(this.optional(c))return"dependency-mismatch";var e,f,g=this.previousValue(c);return this.settings.messages[c.name]||(this.settings.messages[c.name]={}),g.originalMessage=this.settings.messages[c.name].remote,this.settings.messages[c.name].remote=g.message,d="string"==typeof d&&{url:d}||d,g.old===b?g.valid:(g.old=b,e=this,this.startRequest(c),f={},f[c.name]=b,a.ajax(a.extend(!0,{url:d,mode:"abort",port:"validate"+c.name,dataType:"json",data:f,context:e.currentForm,success:function(d){var f,h,i,j=d===!0||"true"===d;e.settings.messages[c.name].remote=g.originalMessage,j?(i=e.formSubmitted,e.prepareElement(c),e.formSubmitted=i,e.successList.push(c),delete e.invalid[c.name],e.showErrors()):(f={},h=d||e.defaultMessage(c,"remote"),f[c.name]=g.message=a.isFunction(h)?h(b):h,e.invalid[c.name]=!0,e.showErrors(f)),g.valid=j,e.stopRequest(c,j)}},d)),"pending")}}});var b,c={};a.ajaxPrefilter?a.ajaxPrefilter(function(a,b,d){var e=a.port;"abort"===a.mode&&(c[e]&&c[e].abort(),c[e]=d)}):(b=a.ajax,a.ajax=function(d){var e=("mode"in d?d:a.ajaxSettings).mode,f=("port"in d?d:a.ajaxSettings).port;return"abort"===e?(c[f]&&c[f].abort(),c[f]=b.apply(this,arguments),c[f]):b.apply(this,arguments)}),a.extend(a.fn,{validateDelegate:function(b,c,d){return this.bind(c,function(c){var e=a(c.target);return e.is(b)?d.apply(e,arguments):void 0})}})}); (function(A,B){if(typeof define==="function"&&define.amd){define(B)}else{if(typeof exports==="object"){module.exports=B()}else{A.NProgress=B()}}})(this,function(){var F={};F.version="0.1.6";var L=F.settings={minimum:0.08,easing:"ease",positionUsing:"",speed:200,trickle:true,trickleRate:0.02,trickleSpeed:800,showSpinner:true,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};F.configure=function(N){var M,O;for(M in N){O=N[M];if(O!==undefined&&N.hasOwnProperty(M)){L[M]=O}}return this};F.status=null;F.set=function(N){var O=F.isStarted();N=K(N,L.minimum,1);F.status=(N===1?null:N);var P=F.render(!O),Q=P.querySelector(L.barSelector),M=L.speed,R=L.easing;P.offsetWidth;D(function(S){if(L.positionUsing===""){L.positionUsing=F.getPositioningCSS()}C(Q,B(N,M,R));if(N===1){C(P,{transition:"none",opacity:1});P.offsetWidth;setTimeout(function(){C(P,{transition:"all "+M+"ms linear",opacity:0});setTimeout(function(){F.remove();S()},M)},M)}else{setTimeout(S,M)}});return this};F.isStarted=function(){return typeof F.status==="number"};F.start=function(){if(!F.status){F.set(0)}var M=function(){setTimeout(function(){if(!F.status){return}F.trickle();M()},L.trickleSpeed)};if(L.trickle){M()}return this};F.done=function(M){if(!M&&!F.status){return this}return F.inc(0.3+0.5*Math.random()).set(1)};F.inc=function(N){var M=F.status;if(!M){return F.start()}else{if(typeof N!=="number"){N=(1-M)*K(Math.random()*M,0.1,0.95)}M=K(M+N,0,0.994);return F.set(M)}};F.trickle=function(){return F.inc(Math.random()*L.trickleRate)};(function(){var M=0,N=0;F.promise=function(O){if(!O||O.state()=="resolved"){return this}if(N==0){F.start()}M++;N++;O.always(function(){N--;if(N==0){M=0;F.done()}else{F.set((M-N)/M)}});return this}})();F.render=function(N){if(F.isRendered()){return document.getElementById("nprogress")}I(document.documentElement,"nprogress-busy");var O=document.createElement("div");O.id="nprogress";O.innerHTML=L.template;var P=O.querySelector(L.barSelector),M=N?"-100":G(F.status||0),R=document.querySelector(L.parent),Q;C(P,{transition:"all 0 linear",transform:"translate3d("+M+"%,0,0)"});if(!L.showSpinner){Q=O.querySelector(L.spinnerSelector);Q&&J(Q)}if(R!=document.body){I(R,"nprogress-custom-parent")}R.appendChild(O);return O};F.remove=function(){E(document.documentElement,"nprogress-busy");E(document.querySelector(L.parent),"nprogress-custom-parent");var M=document.getElementById("nprogress");M&&J(M)};F.isRendered=function(){return !!document.getElementById("nprogress")};F.getPositioningCSS=function(){var N=document.body.style;var M=("WebkitTransform" in N)?"Webkit":("MozTransform" in N)?"Moz":("msTransform" in N)?"ms":("OTransform" in N)?"O":"";if(M+"Perspective" in N){return"translate3d"}else{if(M+"Transform" in N){return"translate"}else{return"margin"}}};function K(N,M,O){if(NO){return O}return N}function G(M){return(-1+M)*100}function B(N,M,O){var P;if(L.positionUsing==="translate3d"){P={transform:"translate3d("+G(N)+"%,0,0)"}}else{if(L.positionUsing==="translate"){P={transform:"translate("+G(N)+"%,0)"}}else{P={"margin-left":G(N)+"%"}}}P.transition="all "+M+"ms "+O;return P}var D=(function(){var N=[];function M(){var O=N.shift();if(O){O(M)}}return function(O){N.push(O);if(N.length==1){M()}}})();var C=(function(){var O=["Webkit","O","Moz","ms"],M={};function P(S){return S.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(T,U){return U.toUpperCase()})}function N(U){var V=document.body.style;if(U in V){return U}var T=O.length,W=U.charAt(0).toUpperCase()+U.slice(1),S;while(T--){S=O[T]+W;if(S in V){return S}}return U}function R(S){S=P(S);return M[S]||(M[S]=N(S))}function Q(U,S,T){S=R(S);U.style[S]=T}return function(V,S){var W=arguments,T,U;if(W.length==2){for(T in S){U=S[T];if(U!==undefined&&S.hasOwnProperty(T)){Q(V,T,U)}}}else{Q(V,W[1],W[2])}}})();function H(O,M){var N=typeof O=="string"?O:A(O);return N.indexOf(" "+M+" ")>=0}function I(O,N){var P=A(O),M=P+N;if(H(P,N)){return}O.className=M.substring(1)}function E(O,N){var P=A(O),M;if(!H(O,N)){return}M=P.replace(" "+N+" "," ");O.className=M.substring(1,M.length-1)}function A(M){return(" "+(M.className||"")+" ").replace(/\s+/gi," ")}function J(M){M&&M.parentNode&&M.parentNode.removeChild(M)}return F});function iColorShow(E,B){var G=jQuery("#"+B).position();jQuery("#iColorPicker").css({"top":G.top+(jQuery("#"+E).outerHeight())+"px","left":(G.left)+"px","position":"absolute"}).fadeIn("fast");var H=jQuery("#"+E).val();jQuery("#colorPreview span").text(H);jQuery("#colorPreview").css("background",H);jQuery("#color").val(H);var C=jQuery("#iColorPicker");for(i=0;i').appendTo("body");jQuery("table.pickerTable td").css({"width":"12px","height":"14px","border":"1px solid #000","cursor":"pointer"});jQuery("#iColorPicker table.pickerTable").css({"border-collapse":"collapse"});jQuery("#iColorPicker").css({"border":"1px solid #ccc","background":"#333","padding":"5px","color":"#fff","z-index":9999})}jQuery("#colorPreview").css({"height":"50px"});jQuery(this).after('")})};this.iColorPicker.init=function(){jQuery(function(){iColorPicker();jQuery(document).mousedown(function(A){var B=$(A.target);if(!B.is("#colorPreview")&&!jQuery(B).parents("#colorPreview").length){jQuery("#iColorPicker").fadeOut()}})})};function hexInvert(E){var C=E.length;if(C!=7){return"#ffffff"}var B=parseInt(E.substr(1,2),16);var A=parseInt(E.substr(3,2),16);var D=parseInt(E.substr(5,2),16);return 0.212671*B+0.71516*16+0.072169*D<50?"#ffffff":"#000000"}function BindInput(A){A.change(function(){A.css({background:A.val(),color:hexInvert(A.val())})});A.click(function(){iColorShow(this.id,"icp_"+this.id)});A.change()}(function(A){if(typeof define==="function"&&define.amd){define(["jquery"],A)}else{A(jQuery)}}(function(G){var B=[],D=G(document),F=navigator.userAgent.toLowerCase(),C=G(window),E=[];var A={ieQuirks:null,msie:/msie/.test(F)&&!/opera/.test(F),opera:/opera/.test(F)};A.ie6=A.msie&&/msie 6./.test(F)&&typeof window["XMLHttpRequest"]!=="object";A.ie7=A.msie&&/msie 7.0/.test(F);G.modal=function(I,H){return G.modal.impl.init(I,H)};G.modal.close=function(){G.modal.impl.close()};G.modal.focus=function(H){G.modal.impl.focus(H)};G.modal.setContainerDimensions=function(){G.modal.impl.setContainerDimensions()};G.modal.setPosition=function(){G.modal.impl.setPosition()};G.modal.update=function(H,I){G.modal.impl.update(H,I)};G.fn.modal=function(H){return G.modal.impl.init(this,H)};G.modal.defaults={appendTo:"body",focus:true,opacity:50,overlayId:"simplemodal-overlay",overlayCss:{},containerId:"simplemodal-container",containerCss:{},dataId:"simplemodal-data",dataCss:{},minHeight:null,minWidth:null,maxHeight:null,maxWidth:null,autoResize:false,autoPosition:true,zIndex:1000,close:true,closeHTML:'',closeClass:"simplemodal-close",escClose:true,overlayClose:false,fixed:true,position:null,persist:false,modal:true,onOpen:null,onShow:null,onClose:null,title:""};G.modal.impl={d:{},init:function(J,I){var H=this;if(H.d.data){return false}A.ieQuirks=A.msie&&!G.support.boxModel;H.o=G.extend({},G.modal.defaults,I);H.zIndex=H.o.zIndex;H.occb=false;if(typeof J==="object"){J=J instanceof G?J:G(J);H.d.placeholder=false;if(J.parent().parent().size()>0){J.before(G("").attr("id","simplemodal-placeholder").css({display:"none"}));H.d.placeholder=true;H.display=J.css("display");if(!H.o.persist){H.d.orig=J.clone(true)}}}else{if(typeof J==="string"||typeof J==="number"){J=G("
").html(J)}else{alert("SimpleModal Error: Unsupported data type: "+typeof J);return H}}H.create(J);J=null;H.open();if(G.isFunction(H.o.onShow)){H.o.onShow.apply(H,[H.d])}return H},create:function(I){var H=this;H.getDimensions();if(H.o.modal&&A.ie6){H.d.iframe=G('').css(G.extend(H.o.iframeCss,{display:"none",opacity:0,position:"fixed",height:E[0],width:E[1],zIndex:H.o.zIndex,top:0,left:0})).appendTo(H.o.appendTo)}H.d.overlay=G("
").attr("id",H.o.overlayId).addClass("simplemodal-overlay").css(G.extend(H.o.overlayCss,{display:"none",opacity:H.o.opacity/100,height:H.o.modal?B[0]:0,width:H.o.modal?B[1]:0,position:"fixed",left:0,top:0,zIndex:H.o.zIndex+1})).appendTo(H.o.appendTo);if(H.o.title&&H.o.title.length>0){H.d.head=G("
"+H.o.title+"
").attr("id","simplemodal-head").addClass("simplemodal-head").css(G.extend({position:H.o.fixed?"fixed":"absolute"},{display:"none",zIndex:H.o.zIndex+2})).appendTo(H.o.appendTo)}H.d.container=G("
").attr("id",H.o.containerId).addClass("simplemodal-container").css(G.extend({position:H.o.fixed?"fixed":"absolute"},H.o.containerCss,{display:"none",zIndex:H.o.zIndex+3})).append(H.o.close&&H.o.closeHTML?G(H.o.closeHTML).addClass(H.o.closeClass):"").appendTo(H.o.appendTo);H.d.wrap=G("
").attr("tabIndex",-1).addClass("simplemodal-wrap").css({height:"100%",outline:0,width:"100%",position:"relative",top:"0",left:"0"}).appendTo(H.d.container);H.d.data=I.attr("id",I.attr("id")||H.o.dataId).addClass("simplemodal-data").css(G.extend(H.o.dataCss,{display:"none"}));I=null;H.setContainerDimensions();H.d.data[0].style.height="100%";H.d.data[0].style.width="100%";if(H.d.data[0].style.height==""){H.d.data[0].childNodes[0].height="100%";H.d.data[0].childNodes[0].width="100%"}H.d.data.appendTo(H.d.wrap);if(A.ie6||A.ieQuirks){H.fixIE()}},bindEvents:function(){var H=this;G("."+H.o.closeClass).bind("click.simplemodal",function(I){I.preventDefault();H.close()});if(H.o.modal&&H.o.close&&H.o.overlayClose){H.d.overlay.bind("click.simplemodal",function(I){I.preventDefault();H.close()})}D.bind("keydown.simplemodal",function(I){if(H.o.modal&&I.keyCode===9){H.watchTab(I)}else{if((H.o.close&&H.o.escClose)&&I.keyCode===27){I.preventDefault();H.close()}}});C.bind("resize.simplemodal orientationchange.simplemodal",function(){H.getDimensions();H.o.autoResize?H.setContainerDimensions():H.o.autoPosition&&H.setPosition();if(A.ie6||A.ieQuirks){H.fixIE()}else{if(H.o.modal){H.d.iframe&&H.d.iframe.css({height:E[0],width:E[1]});H.d.overlay.css({height:B[0],width:B[1]})}}})},unbindEvents:function(){G("."+this.o.closeClass).unbind("click.simplemodal");D.unbind("keydown.simplemodal");C.unbind(".simplemodal");this.d.overlay.unbind("click.simplemodal")},fixIE:function(){var H=this,I=H.o.position;G.each([H.d.iframe||null,!H.o.modal?null:H.d.overlay,H.d.container.css("position")==="fixed"?H.d.container:null],function(M,a){if(a){var Z="document.body.clientHeight",Y="document.body.clientWidth",T="document.body.scrollHeight",U="document.body.scrollLeft",Q="document.body.scrollTop",S="document.body.scrollWidth",P="document.documentElement.clientHeight",V="document.documentElement.clientWidth",O="document.documentElement.scrollLeft",X="document.documentElement.scrollTop",J=a[0].style;J.position="absolute";if(M<2){try{J.removeExpression("height");J.removeExpression("width");J.setExpression("height",""+T+" > "+Z+" ? "+T+" : "+Z+' + "px"');J.setExpression("width",""+S+" > "+Y+" ? "+S+" : "+Y+' + "px"')}catch(R){}}else{var K,N;if(I&&I.constructor===Array){var W=I[0]?typeof I[0]==="number"?I[0].toString():I[0].replace(/px/,""):a.css("top").replace(/px/,"");K=W.indexOf("%")===-1?W+" + (t = "+X+" ? "+X+" : "+Q+') + "px"':parseInt(W.replace(/%/,""))+" * (("+P+" || "+Z+") / 100) + (t = "+X+" ? "+X+" : "+Q+') + "px"';if(I[1]){var L=typeof I[1]==="number"?I[1].toString():I[1].replace(/px/,"");N=L.indexOf("%")===-1?L+" + (t = "+O+" ? "+O+" : "+U+') + "px"':parseInt(L.replace(/%/,""))+" * (("+V+" || "+Y+") / 100) + (t = "+O+" ? "+O+" : "+U+') + "px"'}}else{K="("+P+" || "+Z+") / 2 - (this.offsetHeight / 2) + (t = "+X+" ? "+X+" : "+Q+') + "px"';N="("+V+" || "+Y+") / 2 - (this.offsetWidth / 2) + (t = "+O+" ? "+O+" : "+U+') + "px"'}try{J.removeExpression("top");J.removeExpression("left");J.setExpression("top",K);J.setExpression("left",N)}catch(R){}}}})},focus:function(J){var H=this,I=J&&G.inArray(J,["first","last"])!==-1?J:"first";var K=G(":input:enabled:visible:"+I,H.d.wrap);setTimeout(function(){K.length>0?K.focus():H.d.wrap.focus()},10)},getDimensions:function(){var I=this,H=typeof window.innerHeight==="undefined"?C.height():window.innerHeight;B=[D.height(),D.width()];E=[H,C.width()]},getVal:function(I,H){return I?(typeof I==="number"?I:I==="auto"?0:I.indexOf("%")>0?((parseInt(I.replace(/%/,""))/100)*(H==="h"?E[0]:E[1])):parseInt(I.replace(/px/,""))):null},update:function(H,J){var I=this;if(!I.d.data){return false}I.d.origHeight=I.getVal(H,"h");I.d.origWidth=I.getVal(J,"w");I.d.data.hide();H&&I.d.container.css("height",H);J&&I.d.container.css("width",J);I.setContainerDimensions();I.d.data.show();I.o.focus&&I.focus();I.unbindEvents();I.bindEvents()},setContainerDimensions:function(){var K=this,Q=A.ie6||A.ie7;var M=K.d.origHeight?K.d.origHeight:A.opera?K.d.container.height():K.getVal(Q?K.d.container[0].currentStyle["height"]:K.d.container.css("height"),"h"),R=K.d.origWidth?K.d.origWidth:A.opera?K.d.container.width():K.getVal(Q?K.d.container[0].currentStyle["width"]:K.d.container.css("width"),"w"),P=K.d.data.outerHeight(true),I=K.d.data.outerWidth(true);K.d.origHeight=K.d.origHeight||M;K.d.origWidth=K.d.origWidth||R;var J=K.o.maxHeight?K.getVal(K.o.maxHeight,"h"):null,N=K.o.maxWidth?K.getVal(K.o.maxWidth,"w"):null,L=J&&JL){M=L}else{if(K.o.minHeight&&O!=="auto"&&PL?L:MS){R=S}else{if(K.o.minWidth&&H!=="auto"&&IS?S:RM-2||I>R-2)?"auto":"visible"});K.o.autoPosition&&K.setPosition()},setPosition:function(){var I=this,L,J,M=(E[0]/2)-(I.d.container.outerHeight(true)/2),H=(E[1]/2)-(I.d.container.outerWidth(true)/2),K=I.d.container.css("position")!=="fixed"?C.scrollTop():0;if(I.d.head){M=(E[0]/2)-((I.d.container.outerHeight(true)+I.d.head.outerHeight(true))/2)}if(I.o.position&&Object.prototype.toString.call(I.o.position)==="[object Array]"){L=K+(I.o.position[0]||M);J=I.o.position[1]||H}else{L=K+M;J=H}if(I.d.head){I.d.head.css({left:J,top:L});I.d.container.css({left:J,top:L+I.d.head.outerHeight(true)})}else{I.d.container.css({left:J,top:L})}},watchTab:function(H){var I=this;if(G(H.target).parents(".simplemodal-container").length>0){I.inputs=G(":input:enabled:visible:first, :input:enabled:visible:last",I.d.data[0]);if((!H.shiftKey&&H.target===I.inputs[I.inputs.length-1])||(H.shiftKey&&H.target===I.inputs[0])||I.inputs.length===0){H.preventDefault();var J=H.shiftKey?"last":"first";I.focus(J)}}else{H.preventDefault();I.focus()}},open:function(){var H=this;H.d.iframe&&H.d.iframe.show();if(G.isFunction(H.o.onOpen)){H.o.onOpen.apply(H,[H.d])}else{H.d.overlay.show();if(H.d.head){H.d.head.show()}H.d.container.show();H.d.data.show()}H.o.focus&&H.focus();H.bindEvents()},close:function(){var H=this;if(!H.d.data){return false}H.unbindEvents();if(G.isFunction(H.o.onClose)&&!H.occb){H.occb=true;H.o.onClose.apply(H,[H.d])}else{if(H.d.placeholder){var I=G("#simplemodal-placeholder");if(H.o.persist){I.replaceWith(H.d.data.removeClass("simplemodal-data").css("display",H.display))}else{H.d.data.hide().remove();I.replaceWith(H.d.orig)}}else{H.d.data.hide().remove()}if(H.d.head){H.d.head.hide().remove()}H.d.container.hide().remove();H.d.overlay.hide();H.d.iframe&&H.d.iframe.hide().remove();H.d.overlay.remove();H.d={}}}}}));(function(){function B(E,F){return E===F||E.valueOf()===F.valueOf()}function A(E,F){return E===F?0:E==null?-1:F==null?1:typeof E=="string"?E.toString().localeCompare(F.toString()):E.valueOf()-F.valueOf()}function C(){return !0}function D(E){return E}Array.prototype.select=Array.prototype.map||function(F,H){var E,I,G;for(H=H||window,E=[],I=this.length,G=0;G0){if(F(this[E],E,this)){return this[E]}}return G==null?null:G},Array.prototype.union=function(E){return this.concat(E).distinct()},Array.prototype.intersect=function(F,E){return E=E||B,this.distinct(E).where(function(G){return F.contains(G,E)})},Array.prototype.except=function(I,E){var G,J,F,K,H;for(I instanceof Array||(I=[I]),E=E||B,G=this.length,J=[],F=0;F0;){if(E(this[F],I[K])===!0){H=!0;break}}H||J.push(this[F])}return J},Array.prototype.distinct=function(F){for(var E=[],G=this.length,H=0;H0;){if(this[E]===F){return E}}return -1},Array.prototype.remove=function(E){var F=this.indexOf(E);F!=-1&&this.splice(F,1)},Array.prototype.removeAll=function(F){for(var G,E=0;(G=this.first(F))!=null;){E++,this.remove(G)}return E},Array.prototype.orderBy=function(F,E){E=E||A;var G=this.slice(0),H=function(J,I){return E(F(J),F(I))};return G.thenBy=function(J,I){return I=I||A,G.orderBy(D,function(L,K){var M=H(L,K);return M===0?I(J(L),J(K)):M})},G.thenByDescending=function(J,I){return I=I||A,G.orderBy(D,function(L,K){var M=H(L,K);return M===0?-I(J(L),J(K)):M})},G.sort(H)},Array.prototype.orderByDescending=function(E,F){return F=F||A,this.orderBy(E,function(H,G){return -F(H,G)})},Array.prototype.innerJoin=function(H,E,F,I,J){J=J||B;var G=[];return this.forEach(function(K){H.where(function(L){return J(E(K),F(L))}).forEach(function(L){G.push(I(K,L))})}),G},Array.prototype.groupJoin=function(G,E,F,H,I){return I=I||B,this.select(function(J){var K=E(J);return{outer:J,inner:G.where(function(L){return I(K,F(L))}),key:K}}).select(function(J){return J.inner.key=J.key,H(J.outer,J.inner)})},Array.prototype.groupBy=function(E,F){var H=[],G=this.length,K,I,J;for(F=F||B,E=E||D,K=0;K0;){(G=F(this[E]),G!=null&&G!="")&&(I[G]=H(this[E]))}return I},Array.prototype.aggregate=Array.prototype.reduce||function(F,H){var E=this.slice(0),I=this.length,G;for(H==null&&(H=E.shift()),G=0;G0;){F(this[E])0;){F(this[E])>G&&(G=F(this[E]))}return G},Array.prototype.sum=function(F){F=F||D;for(var E=this.length,G=0;E-->0;){G+=F(this[E])}return G},Array.prototype.where=Array.prototype.filter||function(F,H){var E,I,G;for(H=H||window,E=[],I=this.length,G=0;G0}while(H-->0){if(I.call(J,this[H],H,this)===!0){return !0}}return !1};return E.apply(this,[F,G])},Array.prototype.all=function(F,G){G=G||window,F=F||C;var E=this.every||function(H,I){return this.length==this.where(H,I).length};return E.apply(this,[F,G])},Array.prototype.takeWhile=function(F){var H,E,G;for(F=F||C,H=this.length,E=[],G=0;G0;){if(E(this[F],G)===!0){return !0}}return !1},Array.prototype.forEach=Array.prototype.forEach||function(F,H){var E,G;for(H=H||window,E=this.length,G=0;G0;){E.push(F++)}return E}})(); (function (A) { A.extend({ format: function (G) { if (arguments.length > 1) { var D = arguments[0]; if (arguments.length == 2 && typeof arguments[0] == "string" && typeof arguments[1] == "object") { var F = arguments[1]; for (var B in F) { if (F[B] != undefined) { var E = new RegExp("({\x20*" + B + "\x20*})", "g"); D = D.replace(E, F[B]) } } } else { for (var C = 1; C < arguments.length; C++) { if (arguments[C] != undefined) { var E = new RegExp("({\x20*[" + (C - 1) + "]\x20*})", "g"); D = D.replace(E, arguments[C]) } } } return D } return G }, startWith: function (C) { C = C.replace(/([\(\)\[\]\{\}\.\+\*\^\$])/g, "\\$1"); var B = new RegExp("^" + C); return B.test(this) }, genaralGuid: function () { var B = "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"; return B.replace(/[xy]/gi, function (E) { var C = Math.random() * 16 | 0, D = E == "x" ? C : C & 3 | 8; return D.toString(16) }) }, convertGB2312ToUnicode: { toUnicode: function (B) { return escape(B).toLocaleLowerCase().replace(/%u/gi, "\\u") }, toGB2312: function (B) { return unescape(B.replace(/\\u/gi, "%u")) } } }); A.fn.newGuid = function () { var B = A.genaralGuid(); if (arguments[0]) { B = B.toUpperCase() } this.val(B); return this }; A.fn.goTop = function () { var C = this; var B = function () { if ((document.documentElement.scrollTop || document.body.scrollTop) > 0) { A(".g-hd").css("opacity", ".95"); C.show() } else { A(".g-hd").css("opacity", "1"); C.hide() } }; if (this) { window.onscroll = function () { B() }; window.onresize = function () { B() } } this.click(function (D) { D.preventDefault(); var E = document.body.scrollTop || 300; if (E > 300) { E = 300 } A("body,html").animate({ scrollTop: 0 }, 2 * E) }); return this } }(jQuery)); (function (A) { A.fn.helptips = function () { return this.each(function () { if ($(this).find("img").length == 0) { $(this).append($('')) } if ($(this).find(".tips-cinfo-show").length == 0) { $(this).append($('
')) } var G = $(this).find("img").get(0); var H = $(this).find(".tips-cinfo-show"); H.html($(this).attr("title")); $(this).removeAttr("title"); var D = G.getBoundingClientRect(); if (typeof ($(this).attr("width")) != "undefined") { H.css("width", parseInt($(this).attr("width")) + "px"); $(this).removeAttr("width") } var E = parseInt(H.css("width")), F = parseInt(H.css("left")); var B = document.documentElement.clientWidth, C = document.documentElement.clientHeight; $(this).find(".tips-cinfo-show").css("text-align", "left"); $(this).find(".tips-cinfo-show").css("z-index", "9999"); if (D.right + E > B) { $(this).find(".tips-cinfo-show").css("left", (B - (D.right + E + F) - 17) + "px") } if (D.bottom + H.get(0).scrollHeight > C) { $(this).find(".tips-cinfo-show").css("top", (0 - H.get(0).scrollHeight - 4) + "px") } }) } })(jQuery), $(function () { $(".tips-cinfo").helptips() }); var getParamArr = function (id) { var script = $("#" + id); var src = script && script.attr("data"); var requestParam = new Object(); var strs = src && src.split("&"); if (strs) { for (var i = 0; i < strs.length; i++) { requestParam[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]); } } return requestParam; } !function(E){var D="createTouch" in document||"ontouchstart" in E||0,H=document.documentElement||document.getElementsByTagName("html")[0],A="WebkitTransition" in H.style||"MsTransition" in H.style||"MozTransition" in H.style||"OTransition" in H.style||"transition" in H.style||0,F=D?"touchstart":"mousedown",G=D?"touchmove":"mousemove",B=D?"touchend":"mouseup",C=function(K){this.opt=this.parse_args(K),this.container=this.$(this.opt.id);try{if("ul"==this.container.nodeName.toLowerCase()?(this.element=this.container,this.container=this.element.parentNode):this.element=this.container.getElementsByTagName("ul")[0],"undefined"==typeof this.element){throw new Error('Can\'t find "ul"')}for(var I=0;IO;O++){new RegExp("(?:^|\\s+)"+N+"(?:\\s+|$)").test(K[O].className)&&J.push(K[O])}return J},isIE:function(){return !-[1]},css:function(){var K=function(N){var L,M;switch(N){case"float":return"cssFloat" in document.body.style?"cssFloat":"styleFloat";case"opacity":return"opacity" in document.body.style?"opacity":{get:function(Q,O){var P=O.filter;return P&&P.indexOf("opacity")>=0&&parseFloat(P.match(/opacity=([^)]*)/i)[1])/100+""||"1"},set:function(P,O){P.style.filter="alpha(opacity="+100*O+")",P.style.zoom=1}};default:for(L=N.split("-"),M=1;M=this.length?0:this.opt.auto,!(this.length<2)){switch(this.opt.direction){case"up":this.direction="up",this.vertical=!0;break;case"down":this.direction="down",this.vertical=!0;break;case"right":this.direction="right",this.vertical=!1;break;default:this.direction="left",this.vertical=!1}this.resize(),this.begin(),this.addListener(this.element,F,this.bind(this._start,this),!1),this.addListener(document,G,this.bind(this._move,this),!1),this.addListener(document,B,this.bind(this._end,this),!1),this.addListener(this.element,"webkitTransitionEnd",this.bind(this._transitionend,this),!1),this.addListener(this.element,"msTransitionEnd",this.bind(this._transitionend,this),!1),this.addListener(this.element,"oTransitionEnd",this.bind(this._transitionend,this),!1),this.addListener(this.element,"transitionend",this.bind(this._transitionend,this),!1),this.addListener(E,"resize",this.bind(function(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout(this.bind(this.resize,this),100)},this),!1),this.addListener(this.element,"mousewheel",this.bind(this.mouseScroll,this),!1),this.addListener(this.element,"DOMMouseScroll",this.bind(this.mouseScroll,this),!1)}},resize:function(){var J,I;for(this.css(this.container,{overflow:"hidden",visibility:"hidden",listStyle:"none",position:"relative"}),this.width=this.container.clientWidth-parseInt(this.css(this.container,"padding-left"))-parseInt(this.css(this.container,"padding-right")),J={position:"relative",webkitTransitionDuration:"0ms",MozTransitionDuration:"0ms",msTransitionDuration:"0ms",OTransitionDuration:"0ms",transitionDuration:"0ms"},this.vertical?(J["height"]=this.height*this.length+"px",J["top"]=-this.height*this.index+"px",this.css(this.container,{height:this.height+"px"})):(J["width"]=this.width*this.length+"px",J["left"]=-this.width*this.index+"px"),this.css(this.element,J),I=0;IS?this.length-1:S>=this.length?0:S,Q="undefined"==typeof Q?this.opt.speed:parseInt(Q),T=this.element,U=null,K=T.style,L=this,I=0,J=parseInt(K[R])||0,O=-S*this[V]-J,P=Math.abs(O)I&&!A?(I++,K[R]=Math.ceil(M(I,J,O,P))+"px",U=setTimeout(N,10)):(K[R]=-L[V]*S+"px",L.index=S,A||L._transitionend(),L.pause(),L.begin())},K.WebkitTransition=K.MozTransition=K.msTransition=K.OTransition=K.transition=R+" "+10*P+"ms "+this.opt.fx,this.opt.before.call(this,S,this.slides[this.index]),N()},begin:function(){return this.timer||this.opt.auto<0?!0:(this.timer=setTimeout(this.bind(function(){"left"==this.direction||"up"==this.direction?this.next():this.prev()},this),this.opt.timeout),this.status=1,void 0)},pause:function(){clearInterval(this.timer),this.timer=null,this.status=2},stop:function(){this.pause(),this.index=0,this.slide(0),this.status=0},prev:function(J){J="undefined"==typeof J?J=1:J%this.length;var I=J>this.index?this.length+this.index-J:this.index-J;this.slide(I)},next:function(I){"undefined"==typeof I&&(I=1),this.slide((this.index+I)%this.length)},_start:function(J){this.touching||this.preventDefault(J),this.element.onclick=null,this.startPos=this.getMousePoint(J);var I=this.element.style;I.webkitTransitionDuration=I.MozTransitionDuration=I.msTransitionDuration=I.OTransitionDuration=I.transitionDuration="0ms",this.scrolling=1,this.startTime=new Date},_move:function(M){var K,L,I,J,N;!this.scrolling||M.touches&&M.touches.length>1||M.scale&&1!==M.scale||(K=this.vertical?"top":"left",L=this.vertical?"height":"width",I=this.vertical?"y":"x",J=this.vertical?"x":"y",this.endPos=this.getMousePoint(M),N=this.endPos[I]-this.startPos[I],2===this.scrolling||Math.abs(N)>=Math.abs(this.endPos[J]-this.startPos[J])?(this.preventDefault(M),this.pause(),N/=!this.index&&N>0||this.index==this.length-1&&0>N?Math.abs(N)/this[L]+1:1,this.element.style[K]=-this.index*this[L]+N+"px",0!=N&&(this.scrolling=2)):this.scrolling=0)},_end:function(){if("undefined"!=typeof this.scrolling){try{var K=this.vertical?"y":"x",L=this.vertical?"height":"width",I=this.endPos[K]-this.startPos[K];2===this.scrolling&&(this.element.onclick=new Function("return false;"))}catch(J){I=0}(new Date-this.startTime<250&&Math.abs(I)>0.1*this[L]||Math.abs(I)>this[L]/2)&&(0>I&&this.index+10&&this.index>0)?I>0?this.prev():this.next():this.slide(this.index),delete this.scrolling,delete this.startPos,delete this.endPos,delete this.startTime,this.opt.auto>=0&&this.begin()}},mouseScroll:function(I){if(this.opt.mouseWheel){this.preventDefault(I),I=I||E.event;var J=I.wheelDelta||I.detail&&-1*I.detail||0;J/Math.abs(J),J>0?this.next():this.prev()}},_transitionend:function(){this.opt.after.call(this,this.index,this.slides[this.index])}},E.TouchSlider=C}(window,void 0); /* JsRender v1.0.0-beta: http://github.com/BorisMoore/jsrender and http://jsviews.com/jsviews informal pre V1.0 commit counter: 60 */ (function(Af,AE,AJ){function X(b,c){for(var a in c.props){E.test(a)&&(b[a]=c.props[a])}}function L(a){return a}function T(a){return a}function U(a){Ab._dbgMode=a;C=a?"Unavailable (nested view): use #getIndex()":"";j("dbg",Aj.dbg=F.dbg=a?T:L)}function B(a){this.name=(Ac.link?"JsViews":"JsRender")+" Error";this.message=a||this.name}function AR(b,c){for(var a in c){b[a]=c[a]}return b}function AT(a){return typeof a=="function"}function m(b,c,a){return(!AL.rTag||b)&&(AA=b?b.charAt(0):AA,AD=b?b.charAt(1):AD,Ae=c?c.charAt(0):Ae,AC=c?c.charAt(1):AC,K=a||K,b="\\"+AA+"(\\"+K+")?\\"+AD,c="\\"+Ae+"\\"+AC,At="(?:(?:(\\w+(?=[\\/\\s\\"+Ae+"]))|(?:(\\w+)?(:)|(>)|!--((?:[^-]|-(?!-))*)--|(\\*)))\\s*((?:[^\\"+Ae+"]|\\"+Ae+"(?!\\"+AC+"))*?)",AL.rTag=At+")",At=new RegExp(b+At+"(\\/)?|(?:\\/(\\w+)))"+c,"g"),AP=new RegExp("<.*>|([^\\\\]|^)[{}]|"+b+".*"+c)),[AA,AD,Ae,AC,K]}function AK(h,d){d||(d=h,h=AJ);var a,k,i,g,c=this,b=!d||d==="root";if(h){if(g=c.type===d?c:AJ,!g){if(a=c.views,c._.useKey){for(k in a){if(g=a[k].get(h,d)){break}}}else{for(k=0,i=a.length;!g&&k0){try{a=f.nodeType>0?f:!AP.test(f)&&AE&&AE(Af.document).find(f)[0]}catch(c){}return a&&(f=Ah[b=b||a.getAttribute(Y)],f||(b=b||"_"+Ak++,a.setAttribute(Y,b),f=Ah[b]=Aw(b,a.innerHTML,k,e)),a=AJ),f}}var d,a;return i=i||"",d=g(i),e=e||(i.markup?i:{}),e.tmplName=b,k&&(e._parentTmpl=k),!d&&i.markup&&(d=g(i.markup))&&d.fn&&(d.debug!==i.debug||d.allowCode!==i.allowCode)&&(d=d.markup),d!==AJ?(b&&!k&&(N[b]=function(){return i.render.apply(i,arguments)}),d.fn||i.fn?d.fn&&(i=b&&b!==d.tmplName?AQ(e,d):d):(i=As(d,e),M(d.replace(Ao,"\\$&"),i)),J(e),i):void 0}function Am(a){function b(d,c){this.tgt=a.getTgt(d,c)}return AT(a)&&(a={getTgt:a}),a.baseMap&&(a=AR(AR({},a.baseMap),a)),a.map=function(d,c){return new b(d,c)},a}function As(b,f){var a,d=Ab.wrapMap||{},c=AR({markup:b,tmpls:[],links:{},tags:{},bnds:[],_is:"template",render:AF},f);return f.htmlTag||(a=Al.exec(b),c.htmlTag=a?a[1].toLowerCase():""),a=d[c.htmlTag],a&&a!==d.div&&(c.markup=Ac.trim(c.markup)),c}function Z(a,b){function c(g,i,f){var n,o,k,p;if(g&&typeof g=="object"&&!g.nodeType&&!g.markup&&!g.getTgt){for(k in g){c(k,g[k],i)}return z}return i===AJ&&(i=g,g=AJ),g&&""+g!==g&&(f=i,i=g,g=AJ),p=f?f[d]=f[d]||{}:c,o=b.compile,i===null?g&&delete p[g]:(i=o?i=o(g,i,f):i,g&&(p[g]=i)),o&&i&&(i._is=a),i&&(n=AL.onStore[a])&&n(g,i,o),i}var d=a+"s";z[d]=c;Ad[a]=b}function W(b,d,a){var c=this.jquery&&(this[0]||AO('Unknown template: "'+this.selector+'"')),e=c.getAttribute(Y);return AF.call(e?Ah[e]:Ah(c),b,d,a)}function R(b,c,a){if(Ab._dbgMode){try{return b.fn(c,a,z)}catch(d){return AO(d,a)}}return b.fn(c,a,z)}function AF(b,h,a,c,k,d){var g=this;return !c&&g.fn._nvw&&!Ac.isArray(b)?R(g,b,{tmpl:g}):AI.call(g,b,h,a,c,k,d)}function AI(AW,u,A3,A0,AX,A4){var A7,A8,A1,AY,b,A2,a,e,g,A5,i,AU,AV,A9,AZ=this,A6="";if(!!u===u&&(A3=u,u=AJ),AX===!0&&(a=!0,AX=0),AZ.tag?(e=AZ,AZ=AZ.tag,A5=AZ._,AU=AZ.tagName,AV=A5.tmpl||e.tmpl,A9=AZ.attr&&AZ.attr!==Ag,u=AQ(u,AZ.ctx),g=e.content,e.props.link===!1&&(u=u||{},u.link=!1),A0=A0||e.view,AW=arguments.length?AW:A0):AV=AZ,AV&&(!A0&&AW&&AW._is==="view"&&(A0=AW),A0&&(g=g||A0.content,A4=A4||A0._.onRender,AW===A0&&(AW=A0.data),u=AQ(u,A0.ctx)),A0&&A0.type!=="top"||((u=u||{}).root=AW),AV.fn||(AV=Ah[AV]||Ah(AV)),AV)){if(A4=(u&&u.link)!==!1&&!A9&&A4,i=A4,A4===!0&&(i=AJ,A4=A0._.onRender),u=AV.helpers?AQ(AV.helpers,u):u,Ac.isArray(AW)&&!A3){for(AY=a?A0:AX!==AJ&&A0||new AS(u,"array",A0,AW,AV,AX,g,A4),A7=0,A8=AW.length;A7f-Bc&&(Bc=A9.slice(Bc,f+1),o=AD+":"+Bc+" onerror=''"+Ae,n=A0[o],n||(A0[o]=!0,A0[o]=n=M(o,AV||k,!0),n.paths.push({_jsvOb:n})),n!==!0&&(g||k).push({_jsvOb:n}))),AX?(AX=!A6,AX?u:'"'):d?(d=!Bd,d?u:'"'):(y?(AU++,h[AU]=f++,y):"")+(A4?AU?"":(AZ=A9.slice(AZ,f),A2?(A2=A1=g=!1,"\b"):"\b,")+AZ+(AZ=f+u.length,k&&w.push(k=[]),"\b"):A5?(AU&&AM(AW),k&&w.pop(),A2=c,A1=v,AZ=f+u.length,v&&(k=w[A2]=[]),c+":"):c?c.split("^").join(".").replace(Au,A3)+(p?(l[++AU]=!0,c.charAt(0)!=="."&&(h[AU]=f),s?"":p):Ba):Ba?Ba:i?(l[AU--]=!1,i)+(p?(l[++AU]=!0,p):""):t?(l[AU]||AM(AW),","):A7?"":(AX=A6,d=Bd,'"'))}AM(AW)}var A2,g,A1,d,AX,k=w&&w[0],AZ=0,A0=AV?AV.links:k&&(k.links=k.links||{}),l={},h={0:-1},AU=0;return(AW+(AV?" ":"")).replace(/\)\^/g,").").replace(Ap,AY)}function D(Bm,Bi,Bd){var Bf,Br,b,Bo,Bs,Bp,l,Bc,AV,A0,A1,Bh,Be,i,AW,AZ,Bg,AY,Ba,AU,Bk,A5,A3,Bt,AX,A7,A4,Bl,Bq,A2,A6,Bn=0,Bj="",A8={},A9=Bm.length;for(""+Bi===Bi?(Ba=Bd?'data-link="'+Bi.replace(G," ").slice(1,-1)+'"':Bi,Bi=0):(Ba=Bi.tmplName||"unnamed",Bi.allowCode&&(A8.allowCode=!0),Bi.debug&&(A8.debug=!0),Bh=Bi.bnds,AY=Bi.tmpls),Bf=0;Bf":Bo+b):(A5&&(AU=As(A3,A8),AU.tmplName=Ba+"/"+b,D(A5,AU),AY.push(AU)),A7||(Bk=b,AX=Bj,Bj=""),Bt=Bm[Bf+1],Bt=Bt&&Bt[0]==="else"),A2=Bq?";\ntry{\nret+=":"\n+",AW="",AZ="",A4&&(Be||A6||Bo&&Bo!==Ag)){if(Bl="return {"+Bs+"};",Bg='c("'+Bo+'",view,',Bl=new Function("data,view,j,u"," // "+Ba+" "+Bn+" "+b+"\n"+Bl),Bl._er=Bq,AW=Bg+Bn+",",AZ=")",Bl._tag=b,Bd){return Bl}x(Bl,Be);A1=!0}if(Bj+=A4?(Bd?(Bq?"\ntry{\n":"")+"return ":A2)+(A1?(A1=AJ,A0=AV=!0,Bg+(Be?(Bh[Bn-1]=Bl,Bn):"{"+Bs+"}")+")"):b===">"?(l=!0,"h("+i[0]+")"):(Bc=!0,"((v="+i[0]+')!=null?v:"")')):(A0=Bp=!0,"\n{view:view,tmpl:"+(A5?AY.length:"0")+","+Bs+"},"),Bk&&!Bt){if(Bj="["+Bj.slice(0,-1)+"]",Bg='t("'+Bk+'",view,this,',Bd||Be){if(Bj=new Function("data,view,j,u"," // "+Ba+" "+Bn+" "+Bk+"\nreturn "+Bj+";"),Bj._er=Bq,Bj._tag=b,Be&&x(Bh[Bn-1]=Bj,Be),Bd){return Bj}AW=Bg+Bn+",undefined,";AZ=")"}Bj=AX+A2+Bg+(Bn||Bj)+")";Be=0;Bk=0}Bq&&(A0=!0,Bj+=";\n}catch(e){ret"+(Bd?"urn ":"+=")+AW+"j._err(e,view,"+Bq+")"+AZ+";}\n"+(Bd?"":"ret=ret"))}}}Bj="// "+Ba+"\nvar v"+(Bp?",t=j._tag":"")+(AV?",c=j._cnvt":"")+(l?",h=j.converters.html":"")+(Bd?";\n":',ret=""\n')+(A8.debug?"debugger;":"")+Bj+(Bd?"\n":";\nreturn ret;");try{Bj=new Function("data,view,j,u",Bj)}catch(Bb){AM("Compiled template code:\n\n"+Bj+'\n: "'+Bb.message+'"')}return Bi&&(Bi.fn=Bj),A0||(Bj._nvw=!0),Bj}function AQ(a,b){return a&&a!==b?b?AR(AR({},b),a):a:b&&AR({},b)}function H(a){return Q[a]||(Q[a]="&#"+a.charCodeAt(0)+";")}function AN(b){var a,d,c=[];if(typeof b=="object"){for(a in b){d=b[a],d&&d.toJSON&&!d.toJSON()||AT(d)||c.push({key:a,prop:d})}}return c}function Az(a){return a!=null?AH.test(a)&&(""+a).replace(AG,H)||a:""}if((!AE||!AE.render)&&!Af.jsviews){var Ac,A,At,AP,C,AA="{",AD="{",Ae="}",AC="}",K="^",Au=/^(!*?)(?:null|true|false|\d[\d.]*|([\w$]+|\.|~([\w$]+)|#(view|([\w$]+))?)([\w$.^]*?)(?:[.[^]([\w$]+)\]?)?)$/g,Ap=/(\()(?=\s*\()|(?:([([])\s*)?(?:(\^?)(!*?[#~]?[\w$.^]+)?\s*((\+\+|--)|\+|-|&&|\|\||===|!==|==|!=|<=|>=|[<>%*:?\/]|(=))\s*|(!*?[#~]?[\w$.^]+)([([])?)|(,\s*)|(\(?)\\?(?:(')|("))|(?:\s*(([)\]])(?=\s*\.|\s*\^|\s*$)|[)\]])([([]?))|(\s+)/g,G=/[ \t]*(\r\n|\n|\r)/g,Ai=/\\(['"])/g,Ao=/['"\\]/g,Aq=/(?:\x08|^)(onerror:)?(?:(~?)(([\w$]+):)?([^\x08]+))\x08(,)?([^\x08]+)/gi,AB=/^if\s/,Al=/<(\w+)[>\s]/,AH=/[\x00`><\"'&]/,E=/^on[A-Z]|^convert(Back)?$/,AG=/[\x00`><"'&]/g,Ak=0,O=0,Q={"&":"&","<":"<",">":">","\x00":"�","'":"'",'"':""","`":"`"},Ag="html",Y="data-jsv-tmpl",N={},Ad={template:{compile:Aw},tag:{compile:S},helper:{},converter:{}},z={jsviews:"v1.0.0-beta",settings:function(a){AR(Ab,a);U(Ab._dbgMode);Ab.jsv&&Ab.jsv()},sub:{View:AS,Err:B,tmplFn:M,cvt:I,parse:Av,extend:AR,syntaxErr:AM,onStore:{},_lnk:L,_ths:X},map:Am,_cnvt:q,_tag:V,_err:AO};(B.prototype=new Error).constructor=B;Ax.depends=function(){return[this.get("item"),"index"]};Ar.depends=function(){return["index"]};AS.prototype={get:AK,getIndex:Ar,getRsc:Aa,hlp:P,_is:"view"};for(A in Ad){Z(A,Ad[A])}var Ah=z.templates,F=z.converters,Aj=z.helpers,j=z.tags,AL=z.sub,Ab=z.settings;AE?(Ac=AE,Ac.fn.render=W,Ac.observable&&(AR(AL,Ac.views.sub),z.map=Ac.views.map)):(Ac=Af.jsviews={},Ac.isArray=Array&&Array.isArray||function(a){return Object.prototype.toString.call(a)==="[object Array]"});Ac.render=N;Ac.views=z;Ac.templates=Ah=z.templates;Ab({debugMode:U,delimiters:m,onError:function(b,c,a){return c&&(b=a===AJ?"{Error: "+b+"}":AT(a)?a(b,c):a),b==AJ?"":b},_dbgMode:!0});j({"else":function(){},"if":{render:function(a){var b=this;return b.rendering.done||!a&&(arguments.length||!b.tagCtx.index)?"":(b.rendering.done=!0,b.selected=b.tagCtx.index,b.tagCtx.render(b.tagCtx.view,!0))},onUpdate:function(b,d,a){for(var c,g,e=0;(c=this.tagCtxs[e])&&c.args.length;e++){if(c=c.args[0],g=!c!=!a[e].args[0],!this.convert&&!!c||g){return g}}return !1},flow:!0},"for":{render:function(b){var h,g=this,a=g.tagCtx,d="",c=0;return g.rendering.done||((h=!arguments.length)&&(b=a.view.data),b!==AJ&&(d+=a.render(b,h),c+=Ac.isArray(b)?b.length:1),(g.rendering.done=c)&&(g.selected=a.index)),d},flow:!0},include:{flow:!0},"*":{render:L,flow:!0}});j("props",{baseTag:j["for"],dataMap:Am(AN)});F({html:Az,attr:Az,url:function(a){return a!=AJ?encodeURI(""+a):a===null?a:""}});m()}})(this,this.jQuery); var browser={versions:function(){var A=navigator.userAgent.toLowerCase();return{mobile:!!A.match(/AppleWebKit.*Mobile.*/)||!!A.match(/AppleWebKit/),android:A.indexOf("android")>-1||A.indexOf("linux")>-1,iphone:A.indexOf("iphone")>-1||A.indexOf("mac")>-1,}}(),language:(navigator.browserLanguage||navigator.language).toLowerCase()};var PAGEINDEX=2;function loadmore(B,A){$.ajax({type:"get",dataType:"json",url:B+"&pageIndex="+PAGEINDEX,success:function(C){$(".loading").hide();PAGEINDEX=C.page;$(A).append(C.html);if(!C.hasmore){$(".btn-more").hide()}}});$(".loading").show()}$(".arrdiv_btn").css("top",$(".swipe").height()/2-20);var hideScroll=function(){$("html,body").css("overflowY","hidden")};var showScroll=function(){$("html,body").css("overflowY","")};var btnCancel=function(A){$(tablesDiv).css("bottom","-100%");fullbg.style.opacity="0";showScroll();setTimeout(function(){$(shadeDiv).remove()},100)};var btnClick=function(A){window.btnCancel(A);var B=$(linkRow).data("type");if(B=="phone"||B=="sms"){CallSmsOrPhone(A)}};var CallSmsOrPhone=function(A){};function showtip(B){var H,E,F;H=300;E=80;F="#336699";var D=document.createElement("div");D.setAttribute("id","alertmsgDiv");D.setAttribute("align","center");D.style.background="white";D.style.border="1px solid "+F;D.style.position="absolute";D.style.left="55%";D.style.font="12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";D.style.marginLeft="-225px";var G=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;D.style.top=G+(window.screen.availHeight/2)-150+"px";D.style.width=H+"px";D.style.height=E+"px";D.style.textAlign="center";D.style.lineHeight="25px";D.style.zIndex="10001";document.body.appendChild(D);var C=document.createElement("h4");C.setAttribute("id","alertmsgTitle");C.setAttribute("align","left");C.style.margin="0";C.style.padding="3px";C.style.background=F;C.style.filter="progid:DXImageTransform.Microsoft.Alpha(startX=20, startY=20, finishX=100, finishY=100,style=1,opacity=75,finishOpacity=100);";C.style.opacity="0.75";C.style.border="1px solid "+F;C.style.height="18px";C.style.font="12px Verdana, Geneva, Arial, Helvetica, sans-serif";C.style.color="white";C.innerHTML="Tips";document.getElementById("alertmsgDiv").appendChild(C);var A=document.createElement("p");A.setAttribute("id","msgTxt");A.style.margin="16px 0";A.innerHTML=B;document.getElementById("alertmsgDiv").appendChild(A);window.setTimeout("closetip()",3000)}function closetip(){document.getElementById("alertmsgDiv").removeChild(document.getElementById("alertmsgTitle"));document.body.removeChild(document.getElementById("alertmsgDiv"))}$(function(){$("#logoTel").on("click",function(A){CallSmsOrPhone(A)});$("#BottomPhone").click(function(D){var B=$(this);var K=B.attr("href").split(",");if(K!="undefined"&&K.length>1){D.preventDefault();hideScroll();var B=$(this);var K=B.attr("href").split(",");var L=[];for(var M=0;M1){D.preventDefault();hideScroll();var L=[];for(var M=0;M1){D.preventDefault();hideScroll();var L=[];for(var M=0;M=2){var C=A[1]}var E=F.find("img").attr("height");$(B).find("img").css("width","100%").height(E)})}); Validator={Require:/.+/,Email:/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,Phone:/^((\(\d{2,3}\))|(\d{3}\-))?(\(0\d{2,3}\)|0\d{2,3}-)?[1-9]\d{6,7}(\-\d{1,4})?$/,Mobile:/^1[3457869]\d{9}$/,Url:/^http:\/\/[A-Za-z0-9]+\.[A-Za-z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"])*$/,IdCard:"this.IsIdCard(value)",Currency:/^\d+(\.\d+)?$/,Number:/^\d+$/,Zip:/^\d{6}$/,QQ:/^[1-9]\d{4,11}$/,Integer:/^[-\+]?\d+$/,Double:/^[-\+]?\d+(\.\d+)?$/,English:/^[A-Za-z]+$/,Chinese:/^[\u0391-\uFFE5]+$/,Username:/^[a-z]\w{3,}$/i,UnSafe:/^(([A-Z]*|[a-z]*|\d*|[-_\~!@#\$%\^&\*\.\(\)\[\]\{\}<>\?\\\/\'\"]*)|.{0,5})$|\s/,IsSafe:function(A){return !this.UnSafe.test(A)},SafeString:"this.IsSafe(value)",Filter:"this.DoFilter(value, getAttribute('accept'))",Limit:"this.limit(value.length,getAttribute('min'), getAttribute('max'))",LimitB:"this.limit(this.LenB(value), getAttribute('min'), getAttribute('max'))",Date:"this.IsDate(value, getAttribute('min'), getAttribute('format'))",Repeat:"value == document.getElementsByName(getAttribute('to'))[0].value",Range:"getAttribute('min') < (value|0) && (value|0) < getAttribute('max')",Compare:"this.compare(value,getAttribute('operator'),getAttribute('to'))",Custom:"this.Exec(value, getAttribute('regexp'))",Group:"this.MustChecked(getAttribute('name'), getAttribute('min'), getAttribute('max'))",ErrorItem:[document.forms[0]],ErrorMessage:[T("以下原因导致提交失败")+":\t\t\t\t"],Validate:function(theForm,mode){var obj=theForm||event.srcElement;var count=obj.elements.length;this.ErrorMessage.length=1;this.ErrorItem.length=1;this.ErrorItem[0]=obj;for(var i=0;i(((\n)|(.))*)$/)).test(value)){this.AddError(i,getAttribute("msgHtml"));this.ClearState(obj.elements[i])}else{var _dataType=getAttribute("dataType");if(typeof(_dataType)=="object"||typeof(this[_dataType])=="undefined"){continue}this.ClearState(obj.elements[i]);if(getAttribute("require")=="false"&&value==""){continue}switch(_dataType){case"IdCard":case"Date":case"Repeat":case"Range":case"Compare":case"Custom":case"Group":case"Limit":case"LimitB":case"SafeString":case"Filter":if(!eval(this[_dataType])){this.AddError(i,getAttribute("msg"))}break;default:if(!this[_dataType].test(value)){this.AddError(i,getAttribute("msg"))}else{if(getAttribute("allowHtml")=="1"&&(new RegExp(/^(((\n)|(.))*)<(((\n)|(.))*)>(((\n)|(.))*)$/)).test(value)){this.AddError(i,getAttribute("msgHtml"))}}break}}}}if(this.ErrorMessage.length>1){mode=mode||1;var errCount=this.ErrorItem.length;switch(mode){case 2:for(var i=1;iB);case"GreaterThanEqual":return(A>=B);case"LessThan":return(A=0;B--){if(C[B].checked){E++}}return A<=E&&E<=F},DoFilter:function(A,B){return new RegExp("^.+.(?=EXT)(EXT)$".replace(/EXT/g,B.split(/\s*,\s*/).join("|")),"gi").test(A)},IsIdCard:function(A){var I,D;var H="10x98765432";var G=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2];var C=["","","","","","","","","","","","北京","天津","河北","山西","内蒙古","","","","","","辽宁","吉林","黑龙江","","","","","","","","上海","江苏","浙江","安微","福建","江西","山东","","","","河南","湖北","湖南","广东","广西","海南","","","","重庆","四川","贵州","云南","西藏","","","","","","","陕西","甘肃","青海","宁夏","新疆","","","","","","台湾","","","","","","","","","","香港","澳门","","","","","","","","","国外"];var B=A.match(/^(\d{2})\d{4}(((\d{2})(\d{2})(\d{2})(\d{3}))|((\d{4})(\d{2})(\d{2})(\d{3}[x\d])))$/i);if(B==null){return false}if(B[1]>=C.length||C[B[1]]==""){return false}if(B[2].length==12){D=A.substr(0,17);I=[B[9],B[10],B[11]].join("-")}else{D=A.substr(0,6)+"19"+A.substr(6);I=["19"+B[4],B[5],B[6]].join("-")}if(!this.IsDate(I,"ymd")){return false}var E=0;for(var F=0;F<=16;F++){E+=D.charAt(F)*G[F]}D+=H.charAt(E%11);return(A.length==15||A.length==18&&A==D)},IsDate:function(G,F){F=F||"ymd";var E,D,A,B;switch(F){case"ymd":E=G.match(new RegExp("^((\\d{4})|(\\d{2}))([-./])(\\d{1,2})\\4(\\d{1,2})$"));if(E==null){return false}B=E[6];A=E[5]*1;D=(E[2].length==4)?E[2]:C(parseInt(E[3],10));break;case"dmy":E=G.match(new RegExp("^(\\d{1,2})([-./])(\\d{1,2})\\2((\\d{4})|(\\d{2}))$"));if(E==null){return false}B=E[1];A=E[3]*1;D=(E[5].length==4)?E[5]:C(parseInt(E[6],10));break;default:break}if(!parseInt(A)){return false}A=A==0?12:A;var H=new Date(D,A-1,B);return(typeof(H)=="object"&&D==H.getFullYear()&&A==(H.getMonth()+1)&&B==H.getDate());function C(I){return((I<30?"20":"19")+I)|0}}}; (function (A) { A.fn.scrollLoading = function (D) { var E = { attr: "data-url", container: A(window), callback: A.noop }; var B = A.extend({}, E, D || {}); B.cache = []; A(this).each(function () { var G = this.nodeName.toLowerCase(), I = A(this).attr(B.attr); var H = { obj: A(this), tag: G, url: I }; B.cache.push(H) }); var F = function (G) { if (A.isFunction(B.callback)) { B.callback.call(G.get(0)) } }; var C = function () { var G = B.container.height(); if (B.container.get(0) === window) { contop = A(window).scrollTop() } else { contop = B.container.offset().top } A.each(B.cache, function (L, I) { var J = I.obj, M = I.tag, N = I.url, K, H; if (J) { K = J.offset().top - contop; if (K > G) { K = K - G; } H = K + J.height(); if ((K >= 0 && K < G) || (H > 0 && H <= G)) { if (N) { if (M === "img") { F(J.attr("src", N)) } else { J.load(N, {}, function () { F(J) }) } } else { F(J) } I.obj = null } } }) }; C(); B.container.bind("scroll", C) } })(jQuery);