if(function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new error("jquery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(c,t){var u=[],f=c.document,c=u.slice,m=u.concat,r=u.push,s=u.indexof,i={},e=i.tostring,g=i.hasownproperty,v={},n="1.12.4",k=function(t,e){return new k.fn.init(t,e)},o=/^[\s\ufeff\xa0]+|[\s\ufeff\xa0]+$/g,a=/^-ms-/,l=/-([\da-z])/gi,h=function(t,e){return e.touppercase()};function d(t){var e=!!t&&"length"in t&&t.length,i=k.type(t);return"function"!==i&&!k.iswindow(t)&&("array"===i||0===e||"number"==typeof e&&0+~]|"+z+")"+z+"*"),b=new regexp("="+z+"*([^\\]'\"]*?)"+z+"*\\]","g"),v=new regexp(j),y=new regexp("^"+f+"$"),k={id:new regexp("^#("+f+")"),class:new regexp("^\\.("+f+")"),tag:new regexp("^("+f+"|[*])"),attr:new regexp("^"+w),pseudo:new regexp("^"+j),child:new regexp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+z+"*(even|odd|(([+-]|)(\\d*)n|)"+z+"*(?:([+-]|)"+z+"*(\\d+)|))"+z+"*\\)|)","i"),bool:new regexp("^(?:"+$+")$","i"),needscontext:new regexp("^"+z+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+z+"*((?:-\\d)?\\d*)"+z+"*\\)|)(?=[^-]|$)","i")},x=/^(?:input|select|textarea|button)$/i,g=/^h\d$/i,q=/^[^{]+\{\s*\[native \w/,j=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,z=/[+~]/,tt=/'|\\/g,et=new regexp("\\\\([\\da-f]{1,6}"+z+"?|("+z+")|.)","ig"),it=function(t,e,i){var n="0x"+e-65536;return n!=n||i?e:n<0?string.fromcharcode(n+65536):string.fromcharcode(n>>10|55296,1023&n|56320)},nt=function(){x()};try{p.apply(e=o.call(b.childnodes),b.childnodes),e[b.childnodes.length].nodetype}catch(t){p={apply:e.length?function(t,e){a.apply(t,o.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function st(t,e,i,n){var s,o,a,r,l,h,c,u,d=e&&e.ownerdocument,p=e?e.nodetype:9;if(i=i||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return i;if(!n&&((e?e.ownerdocument||e:b)!==c&&x(e),e=e||c,k)){if(11!==p&&(h=j.exec(t)))if(s=h[1]){if(9===p){if(!(a=e.getelementbyid(s)))return i;if(a.id===s)return i.push(a),i}else if(d&&(a=d.getelementbyid(s))&&y(e,a)&&a.id===s)return i.push(a),i}else{if(h[2])return p.apply(i,e.getelementsbytagname(t)),i;if((s=h[3])&&f.getelementsbyclassname&&e.getelementsbyclassname)return p.apply(i,e.getelementsbyclassname(s)),i}if(f.qsa&&!s[t+" "]&&(!v||!v.test(t))){if(1!==p)d=e,u=t;else if("object"!==e.nodename.tolowercase()){for((r=e.getattribute("id"))?r=r.replace(tt,"\\$&"):e.setattribute("id",r=d),o=(c=m(t)).length,l=y.test(r)?"#"+r:"[id='"+r+"']";o--;)c[o]=l+" "+mt(c[o]);u=c.join(","),d=z.test(t)&&pt(e.parentnode)||e}if(u)try{return p.apply(i,d.queryselectorall(u)),i}catch(t){}finally{r===d&&e.removeattribute("id")}}}return g(t.replace(l,"$1"),e,i,n)}function ot(){var n=[];return function t(e,i){return n.push(e+" ")>_.cachelength&&delete t[n.shift()],t[e+" "]=i}}function at(t){return t[d]=!0,t}function rt(t){var e=c.createelement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentnode&&e.parentnode.removechild(e),e=null}}function lt(t,e){for(var i=t.split("|"),n=i.length;n--;)_.attrhandle[i[n]]=e}function ht(t,e){var i=e&&t,n=i&&1===t.nodetype&&1===e.nodetype&&(~e.sourceindex||i)-(~t.sourceindex||i);if(n)return n;if(i)for(;i=i.nextsibling;)if(i===e)return-1;return t?1:-1}function ct(e){return function(t){return"input"===t.nodename.tolowercase()&&t.type===e}}function ut(i){return function(t){var e=t.nodename.tolowercase();return("input"===e||"button"===e)&&t.type===i}}function dt(a){return at(function(o){return o=+o,at(function(t,e){for(var i,n=a([],t.length,o),s=n.length;s--;)t[i=n[s]]&&(t[i]=!(e[i]=t[i]))})})}function pt(t){return t&&void 0!==t.getelementsbytagname&&t}for(t in f=st.support={},s=st.isxml=function(t){var e=t&&(t.ownerdocument||t).documentelement;return!!e&&"html"!==e.nodename},x=st.setdocument=function(t){var e,i,n=t?t.ownerdocument||t:b;return n!==c&&9===n.nodetype&&n.documentelement&&(a=(c=n).documentelement,k=!s(c),(i=c.defaultview)&&i.top!==i&&(i.addeventlistener?i.addeventlistener("unload",nt,!1):i.attachevent&&i.attachevent("onunload",nt)),f.attributes=rt(function(t){return t.classname="i",!t.getattribute("classname")}),f.getelementsbytagname=rt(function(t){return t.appendchild(c.createcomment("")),!t.getelementsbytagname("*").length}),f.getelementsbyclassname=q.test(c.getelementsbyclassname),f.getbyid=rt(function(t){return a.appendchild(t).id=d,!c.getelementsbyname||!c.getelementsbyname(d).length}),f.getbyid?(_.find.id=function(t,e){if(void 0!==e.getelementbyid&&k){var i=e.getelementbyid(t);return i?[i]:[]}},_.filter.id=function(t){var e=t.replace(et,it);return function(t){return t.getattribute("id")===e}}):(delete _.find.id,_.filter.id=function(t){var i=t.replace(et,it);return function(t){var e=void 0!==t.getattributenode&&t.getattributenode("id");return e&&e.value===i}}),_.find.tag=f.getelementsbytagname?function(t,e){return void 0!==e.getelementsbytagname?e.getelementsbytagname(t):f.qsa?e.queryselectorall(t):void 0}:function(t,e){var i,n=[],s=0,o=e.getelementsbytagname(t);if("*"===t){for(;i=o[s++];)1===i.nodetype&&n.push(i);return n}return o},_.find.class=f.getelementsbyclassname&&function(t,e){if(void 0!==e.getelementsbyclassname&&k)return e.getelementsbyclassname(t)},r=[],v=[],(f.qsa=q.test(c.queryselectorall))&&(rt(function(t){a.appendchild(t).innerhtml="",t.queryselectorall("[msallowcapture^='']").length&&v.push("[*^$]="+z+"*(?:''|\"\")"),t.queryselectorall("[selected]").length||v.push("\\["+z+"*(?:value|"+$+")"),t.queryselectorall("[id~="+d+"-]").length||v.push("~="),t.queryselectorall(":checked").length||v.push(":checked"),t.queryselectorall("a#"+d+"+*").length||v.push(".#.+[+~]")}),rt(function(t){var e=c.createelement("input");e.setattribute("type","hidden"),t.appendchild(e).setattribute("name","d"),t.queryselectorall("[name=d]").length&&v.push("name"+z+"*[*^$|!~]?="),t.queryselectorall(":enabled").length||v.push(":enabled",":disabled"),t.queryselectorall("*,:x"),v.push(",.*:")})),(f.matchesselector=q.test(c=a.matches||a.webkitmatchesselector||a.mozmatchesselector||a.omatchesselector||a.msmatchesselector))&&rt(function(t){f.disconnectedmatch=c.call(t,"div"),c.call(t,"[s!='']:x"),r.push("!=",j)}),v=v.length&&new regexp(v.join("|")),r=r.length&&new regexp(r.join("|")),e=q.test(a.comparedocumentposition),y=e||q.test(a.contains)?function(t,e){var i=9===t.nodetype?t.documentelement:t,n=e&&e.parentnode;return t===n||!(!n||1!==n.nodetype||!(i.contains?i.contains(n):t.comparedocumentposition&&16&t.comparedocumentposition(n)))}:function(t,e){if(e)for(;e=e.parentnode;)if(e===t)return!0;return!1},m=e?function(t,e){if(t===e)return h=!0,0;var i=!t.comparedocumentposition-!e.comparedocumentposition;return i||(1&(i=(t.ownerdocument||t)===(e.ownerdocument||e)?t.comparedocumentposition(e):1)||!f.sortdetached&&e.comparedocumentposition(t)===i?t===c||t.ownerdocument===b&&y(b,t)?-1:e===c||e.ownerdocument===b&&y(b,e)?1:l?h(l,t)-h(l,e):0:4&i?-1:1)}:function(t,e){if(t===e)return h=!0,0;var i,n=0,s=t.parentnode,o=e.parentnode,a=[t],r=[e];if(!s||!o)return t===c?-1:e===c?1:s?-1:o?1:l?h(l,t)-h(l,e):0;if(s===o)return ht(t,e);for(i=t;i=i.parentnode;)a.unshift(i);for(i=e;i=i.parentnode;)r.unshift(i);for(;a[n]===r[n];)n++;return n?ht(a[n],r[n]):a[n]===b?-1:r[n]===b?1:0}),c},st.matches=function(t,e){return st(t,null,null,e)},st.matchesselector=function(t,e){if((t.ownerdocument||t)!==c&&x(t),e=e.replace(b,"='$1']"),f.matchesselector&&k&&!s[e+" "]&&(!r||!r.test(e))&&(!v||!v.test(e)))try{var i=c.call(t,e);if(i||f.disconnectedmatch||t.document&&11!==t.document.nodetype)return i}catch(t){}return 0":{dir:"parentnode",first:!0}," ":{dir:"parentnode"},"+":{dir:"previoussibling",first:!0},"~":{dir:"previoussibling"}},prefilter:{attr:function(t){return t[1]=t[1].replace(et,it),t[3]=(t[3]||t[4]||t[5]||"").replace(et,it),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},child:function(t){return t[1]=t[1].tolowercase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},pseudo:function(t){var e,i=!t[6]&&t[2];return k.child.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&v.test(i)&&(e=m(i,!0))&&(e=i.indexof(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{tag:function(t){var e=t.replace(et,it).tolowercase();return"*"===t?function(){return!0}:function(t){return t.nodename&&t.nodename.tolowercase()===e}},class:function(t){var e=d[t+" "];return e||(e=new regexp("(^|"+z+")"+t+"("+z+"|$)"))&&d(t,function(t){return e.test("string"==typeof t.classname&&t.classname||void 0!==t.getattribute&&t.getattribute("class")||"")})},attr:function(i,n,s){return function(t){var e=st.attr(t,i);return null==e?"!="===n:!n||(e+="","="===n?e===s:"!="===n?e!==s:"^="===n?s&&0===e.indexof(s):"*="===n?s&&-1(?:<\/\1>|)$/,x=/^.[^:#\[\.,]*$/;function d(t,i,n){if(k.isfunction(i))return k.grep(t,function(t,e){return!!i.call(t,e,t)!==n});if(i.nodetype)return k.grep(t,function(t){return t===i!==n});if("string"==typeof i){if(x.test(i))return k.filter(i,t,n);i=k.filter(i,t)}return k.grep(t,function(t){return-1)[^>]*|#([\w-]*))$/;(k.fn.init=function(t,e,i){var n,s;if(!t)return this;if(i=i||t,"string"==typeof t){if(!(n="<"===t.charat(0)&&">"===t.charat(t.length-1)&&3<=t.length?[null,t,null]:s.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof k?e[0]:e,k.merge(this,k.parsehtml(n[1],e&&e.nodetype?e.ownerdocument||e:f,!0)),w.test(n[1])&&k.isplainobject(e))for(n in e)k.isfunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if((s=f.getelementbyid(n[2]))&&s.parentnode){if(s.id!==n[2])return t.find(t);this.length=1,this[0]=s}return this.context=f,this.selector=t,this}return t.nodetype?(this.context=this[0]=t,this.length=1,this):k.isfunction(t)?void 0!==i.ready?i.ready(t):t(k):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),k.makearray(t,this))}).prototype=k.fn,t=k(f);var m=/^(?:parents|prev(?:until|all))/,i={children:!0,contents:!0,next:!0,prev:!0};function e(t,e){for(;(t=t[e])&&1!==t.nodetype;);return t}k.fn.extend({has:function(t){var e,i=k(t,this),n=i.length;return this.filter(function(){for(e=0;e
a",v.leadingwhitespace=3===x.firstchild.nodetype,v.tbody=!x.getelementsbytagname("tbody").length,v.htmlserialize=!!x.getelementsbytagname("link").length,v.html5clone="<:nav>"!==f.createelement("nav").clonenode(!0).outerhtml,q.type="checkbox",q.checked=!0,g.appendchild(q),v.appendchecked=q.checked,x.innerhtml="",v.noclonechecked=!!x.clonenode(!0).lastchild.defaultvalue,g.appendchild(x),(q=f.createelement("input")).setattribute("type","radio"),q.setattribute("checked","checked"),q.setattribute("name","t"),x.appendchild(q),v.checkclone=x.clonenode(!0).clonenode(!0).lastchild.checked,v.nocloneevent=!!x.addeventlistener,x[k.expando]=1,v.attributes=!x.getattribute(k.expando);var ot={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:v.htmlserialize?[0,"",""]:[1,"x
","
"]};function at(t,e){var i,n,s=0,o=void 0!==t.getelementsbytagname?t.getelementsbytagname(e||"*"):void 0!==t.queryselectorall?t.queryselectorall(e||"*"):void 0;if(!o)for(o=[],i=t.childnodes||t;null!=(n=i[s]);s++)!e||k.nodename(n,e)?o.push(n):k.merge(o,at(n,e));return void 0===e||e&&k.nodename(t,e)?k.merge([t],o):o}function rt(t,e){for(var i,n=0;null!=(i=t[n]);n++)k._data(i,"globaleval",!e||k._data(e[n],"globaleval"))}ot.optgroup=ot.option,ot.tbody=ot.tfoot=ot.colgroup=ot.caption=ot.thead,ot.th=ot.td;var lt=/<|&#?\w+;/,ht=/"!==u[1]||ht.test(a)?0:l:l.firstchild)&&a.childnodes.length;o--;)k.nodename(c=a.childnodes[o],"tbody")&&!c.childnodes.length&&a.removechild(c);for(k.merge(f,l.childnodes),l.textcontent="";l.firstchild;)l.removechild(l.firstchild);l=p.lastchild}else f.push(e.createtextnode(a));for(l&&p.removechild(l),v.appendchecked||k.grep(at(f,"input"),ct),m=0;a=f[m++];)if(n&&-1]","i"),ct=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,kt=/\s*$/g,mt=st(f).appendchild(f.createelement("div"));function it(t,e){return k.nodename(t,"table")&&k.nodename(11!==e.nodetype?e:e.firstchild,"tr")?t.getelementsbytagname("tbody")[0]||t.appendchild(t.ownerdocument.createelement("tbody")):t}function et(t){return t.type=(null!==k.find.attr(t,"type"))+"/"+t.type,t}function nt(t){var e=tt.exec(t.type);return e?t.type=e[1]:t.removeattribute("type"),t}function at(t,e){if(1===e.nodetype&&k.hasdata(t)){var i,n,s,o=k._data(t),a=k._data(e,o),r=o.events;if(r)for(i in delete a.handle,a.events={},r)for(n=0,s=r[i].length;n")},clone:function(t,e,i){var n,s,o,a,r,l=k.contains(t.ownerdocument,t);if(v.html5clone||k.isxmldoc(t)||!xt.test("<"+t.nodename+">")?o=t.clonenode(!0):(mt.innerhtml=t.outerhtml,mt.removechild(o=mt.firstchild)),!(v.nocloneevent&&v.noclonechecked||1!==t.nodetype&&11!==t.nodetype||k.isxmldoc(t)))for(n=at(o),r=at(t),a=0;null!=(s=r[a]);++a)n[a]&&pt(s,n[a]);if(e)if(i)for(r=r||at(t),n=n||at(o),a=0;null!=(s=r[a]);a++)at(s,n[a]);else at(t,o);return 0<(n=at(o,"script")).length&&rt(n,!l&&at(t,"script")),n=r=s=null,o},cleandata:function(t,e){for(var i,n,s,o,a=0,r=k.expando,l=k.cache,h=v.attributes,c=k.event.special;null!=(i=t[a]);a++)if((e||z(i))&&(o=(s=i[r])&&l[s])){if(o.events)for(n in o.events)c[n]?k.event.remove(i,n):k.removeevent(i,n,o.handle);l[s]&&(delete l[s],h||void 0===i.removeattribute?i[r]=void 0:i.removeattribute(r),u.push(s))}}}),k.fn.extend({dommanip:ot,detach:function(t){return ht(this,t,!0)},remove:function(t){return ht(this,t)},text:function(t){return j(this,function(t){return void 0===t?k.text(this):this.empty().append((this[0]&&this[0].ownerdocument||f).createtextnode(t))},null,t,arguments.length)},append:function(){return ot(this,arguments,function(t){1!==this.nodetype&&11!==this.nodetype&&9!==this.nodetype||it(this,t).appendchild(t)})},prepend:function(){return ot(this,arguments,function(t){if(1===this.nodetype||11===this.nodetype||9===this.nodetype){var e=it(this,t);e.insertbefore(t,e.firstchild)}})},before:function(){return ot(this,arguments,function(t){this.parentnode&&this.parentnode.insertbefore(t,this)})},after:function(){return ot(this,arguments,function(t){this.parentnode&&this.parentnode.insertbefore(t,this.nextsibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodetype&&k.cleandata(at(t,!1));t.firstchild;)t.removechild(t.firstchild);t.options&&k.nodename(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return k.clone(this,t,e)})},html:function(t){return j(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t)return 1===e.nodetype?e.innerhtml.replace(wt,""):void 0;if("string"==typeof t&&!kt.test(t)&&(v.htmlserialize||!xt.test(t))&&(v.leadingwhitespace||!it.test(t))&&!ot[(tt.exec(t)||["",""])[1].tolowercase()]){t=k.htmlprefilter(t);try{for(;i")).appendto(e.documentelement))[0].contentwindow||$t[0].contentdocument).document).write(),e.close(),i=ft(t,e),$t.detach()),zt[t]=i),i}var jt=/^margin/,rt=new regexp("^("+q+")(?!px)[a-z%]+$","i"),lt=function(t,e,i,n){var s,o,a={};for(o in e)a[o]=t.style[o],t.style[o]=e[o];for(o in s=i.apply(t,n||[]),e)t.style[o]=a[o];return s},ut=f.documentelement;!function(){var n,s,o,a,r,l,h=f.createelement("div"),c=f.createelement("div");function t(){var t,e,i=f.documentelement;i.appendchild(h),c.style.csstext="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",n=o=l=!1,s=r=!0,c.getcomputedstyle&&(e=c.getcomputedstyle(c),n="1%"!==(e||{}).top,l="2px"===(e||{}).marginleft,o="4px"===(e||{width:"4px"}).width,c.style.marginright="50%",s="4px"===(e||{marginright:"4px"}).marginright,(t=c.appendchild(f.createelement("div"))).style.csstext=c.style.csstext="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginright=t.style.width="0",c.style.width="1px",r=!parsefloat((c.getcomputedstyle(t)||{}).marginright),c.removechild(t)),c.style.display="none",(a=0===c.getclientrects().length)&&(c.style.display="",c.innerhtml="
t
",c.childnodes[0].style.bordercollapse="separate",(t=c.getelementsbytagname("td"))[0].style.csstext="margin:0;border:0;padding:0;display:none",(a=0===t[0].offsetheight)&&(t[0].style.display="",t[1].style.display="none",a=0===t[0].offsetheight)),i.removechild(h)}c.style&&(c.style.csstext="float:left;opacity:.5",v.opacity="0.5"===c.style.opacity,v.cssfloat=!!c.style.cssfloat,c.style.backgroundclip="content-box",c.clonenode(!0).style.backgroundclip="",v.clearclonestyle="content-box"===c.style.backgroundclip,(h=f.createelement("div")).style.csstext="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",c.innerhtml="",h.appendchild(c),v.boxsizing=""===c.style.boxsizing||""===c.style.mozboxsizing||""===c.style.webkitboxsizing,k.extend(v,{reliablehiddenoffsets:function(){return null==n&&t(),a},boxsizingreliable:function(){return null==n&&t(),o},pixelmarginright:function(){return null==n&&t(),s},pixelposition:function(){return null==n&&t(),n},reliablemarginright:function(){return null==n&&t(),r},reliablemarginleft:function(){return null==n&&t(),l}}))}();var qt,bt,vt=/^(top|right|bottom|left)$/;function yt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}c.getcomputedstyle?(qt=function(t){var e=t.ownerdocument.defaultview;return e&&e.opener||(e=c),e.getcomputedstyle(t)},bt=function(t,e,i){var n,s,o,a,r=t.style;return""!==(a=(i=i||qt(t))?i.getpropertyvalue(e)||i[e]:void 0)&&void 0!==a||k.contains(t.ownerdocument,t)||(a=k.style(t,e)),i&&!v.pixelmarginright()&&rt.test(a)&&jt.test(e)&&(n=r.width,s=r.minwidth,o=r.maxwidth,r.minwidth=r.maxwidth=r.width=a,a=i.width,r.width=n,r.minwidth=s,r.maxwidth=o),void 0===a?a:a+""}):ut.currentstyle&&(qt=function(t){return t.currentstyle},bt=function(t,e,i){var n,s,o,a,r=t.style;return null==(a=(i=i||qt(t))?i[e]:void 0)&&r&&r[e]&&(a=r[e]),rt.test(a)&&!vt.test(e)&&(n=r.left,(o=(s=t.runtimestyle)&&s.left)&&(s.left=t.currentstyle.left),r.left="fontsize"===e?"1em":a,a=r.pixelleft+"px",r.left=n,o&&(s.left=o)),void 0===a?a:a+""||"auto"});var kt=/alpha\([^)]*\)/i,xt=/opacity\s*=\s*([^)]*)/i,gt=/^(none|table(?!-c[ea]).+)/,qt=new regexp("^("+q+")(.*)$","i"),jt={position:"absolute",visibility:"hidden",display:"block"},zt={letterspacing:"0",fontweight:"400"},te=["webkit","o","moz","ms"],ee=f.createelement("div").style;function ie(t){if(t in ee)return t;for(var e=t.charat(0).touppercase()+t.slice(1),i=te.length;i--;)if((t=te[i]+e)in ee)return t}function ne(t,e){for(var i,n,s,o=[],a=0,r=t.length;a
a",ce=de.getelementsbytagname("a")[0],ue.setattribute("type","checkbox"),de.appendchild(ue),(ce=de.getelementsbytagname("a")[0]).style.csstext="top:1px",v.getsetattribute="t"!==de.classname,v.style=/top/.test(ce.getattribute("style")),v.hrefnormalized="/a"===ce.getattribute("href"),v.checkon=!!ue.value,v.optselected=fe.selected,v.enctype=!!f.createelement("form").enctype,pe.disabled=!0,v.optdisabled=!fe.disabled,(ue=f.createelement("input")).setattribute("value",""),v.input=""===ue.getattribute("value"),ue.value="t",ue.setattribute("type","radio"),v.radiovalue="t"===ue.value;var we=/\r/g,xe=/[\x20\t\r\n\f]+/g;k.fn.extend({val:function(i){var n,t,s,e=this[0];return arguments.length?(s=k.isfunction(i),this.each(function(t){var e;1===this.nodetype&&(null==(e=s?i.call(this,t,k(this).val()):i)?e="":"number"==typeof e?e+="":k.isarray(e)&&(e=k.map(e,function(t){return null==t?"":t+""})),(n=k.valhooks[this.type]||k.valhooks[this.nodename.tolowercase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):e?(n=k.valhooks[e.type]||k.valhooks[e.nodename.tolowercase()])&&"get"in n&&void 0!==(t=n.get(e,"value"))?t:"string"==typeof(t=e.value)?t.replace(we,""):null==t?"":t:void 0}}),k.extend({valhooks:{option:{get:function(t){var e=k.find.attr(t,"value");return null!=e?e:k.trim(k.text(t)).replace(xe," ")}},select:{get:function(t){for(var e,i,n=t.options,s=t.selectedindex,o="select-one"===t.type||s<0,a=o?null:[],r=o?s+1:n.length,l=s<0?r:o?s:0;l").append(k.parsehtml(t)).find(n):t)}).always(i&&function(t,e){a.each(function(){i.apply(this,o||[t.responsetext,e,t])})}),this},k.each(["ajaxstart","ajaxstop","ajaxcomplete","ajaxerror","ajaxsuccess","ajaxsend"],function(t,e){k.fn[e]=function(t){return this.on(e,t)}}),k.expr.filters.animated=function(e){return k.grep(k.timers,function(t){return e===t.elem}).length},k.offset={setoffset:function(t,e,i){var n,s,o,a,r,l,h=k.css(t,"position"),c=k(t),u={};"static"===h&&(t.style.position="relative"),r=c.offset(),o=k.css(t,"top"),l=k.css(t,"left"),("absolute"===h||"fixed"===h)&&-1 '+t+sound("tip"),$(e).focus()}catch(t){}window.settimeout(function(){dc("d"+e).innerhtml=""},n)}function sound(t){return'
'}function checkall(t,e){for(var i=document.getelementsbyname(e),n=0;nthis.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(idocument.documentelement.clientheight;this.$element.css({paddingleft:!this.bodyisoverflowing&&t?this.scrollbarwidth:"",paddingright:this.bodyisoverflowing&&!t?this.scrollbarwidth:""})},a.prototype.resetadjustments=function(){this.$element.css({paddingleft:"",paddingright:""})},a.prototype.checkscrollbar=function(){var t=window.innerwidth;if(!t){var e=document.documentelement.getboundingclientrect();t=e.right-math.abs(e.left)}this.bodyisoverflowing=document.body.clientwidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},g.prototype.init=function(t,e,i){if(this.enabled=!0,this.type=t,this.$element=m(e),this.options=this.getoptions(i),this.$viewport=this.options.viewport&&m(m.isfunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.instate={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var n=this.options.trigger.split(" "),s=n.length;s--;){var o=n[s];if("click"==o)this.$element.on("click."+this.type,this.options.selector,m.proxy(this.toggle,this));else if("manual"!=o){var a="hover"==o?"mouseenter":"focusin",r="hover"==o?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,m.proxy(this.enter,this)),this.$element.on(r+"."+this.type,this.options.selector,m.proxy(this.leave,this))}}this.options.selector?this._options=m.extend({},this.options,{trigger:"manual",selector:""}):this.fixtitle()},g.prototype.getdefaults=function(){return g.defaults},g.prototype.getoptions=function(t){return(t=m.extend({},this.getdefaults(),this.$element.data(),t)).delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t},g.prototype.getdelegateoptions=function(){var i={},n=this.getdefaults();return this._options&&m.each(this._options,function(t,e){n[t]!=e&&(i[t]=e)}),i},g.prototype.enter=function(t){var e=t instanceof this.constructor?t:m(t.currenttarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currenttarget,this.getdelegateoptions()),m(t.currenttarget).data("bs."+this.type,e)),t instanceof m.event&&(e.instate["focusin"==t.type?"focus":"hover"]=!0),e.tip().hasclass("in")||"in"==e.hoverstate)e.hoverstate="in";else{if(cleartimeout(e.timeout),e.hoverstate="in",!e.options.delay||!e.options.delay.show)return e.show();e.timeout=settimeout(function(){"in"==e.hoverstate&&e.show()},e.options.delay.show)}},g.prototype.isinstatetrue=function(){for(var t in this.instate)if(this.instate[t])return!0;return!1},g.prototype.leave=function(t){var e=t instanceof this.constructor?t:m(t.currenttarget).data("bs."+this.type);if(e||(e=new this.constructor(t.currenttarget,this.getdelegateoptions()),m(t.currenttarget).data("bs."+this.type,e)),t instanceof m.event&&(e.instate["focusout"==t.type?"focus":"hover"]=!1),!e.isinstatetrue()){if(cleartimeout(e.timeout),e.hoverstate="out",!e.options.delay||!e.options.delay.hide)return e.hide();e.timeout=settimeout(function(){"out"==e.hoverstate&&e.hide()},e.options.delay.hide)}},g.prototype.show=function(){var t=m.event("show.bs."+this.type);if(this.hascontent()&&this.enabled){this.$element.trigger(t);var e=m.contains(this.$element[0].ownerdocument.documentelement,this.$element[0]);if(t.isdefaultprevented()||!e)return;var i=this,n=this.tip(),s=this.getuid(this.type);this.setcontent(),n.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&n.addclass("fade");var o="function"==typeof this.options.placement?this.options.placement.call(this,n[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,r=a.test(o);r&&(o=o.replace(a,"")||"top"),n.detach().css({top:0,left:0,display:"block"}).addclass(o).data("bs."+this.type,this),this.options.container?n.appendto(this.options.container):n.insertafter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getposition(),h=n[0].offsetwidth,c=n[0].offsetheight;if(r){var u=o,d=this.getposition(this.$viewport);o="bottom"==o&&l.bottom+c>d.bottom?"top":"top"==o&&l.top-cd.width?"left":"left"==o&&l.left-ha.top+a.height&&(s.top=a.top+a.height-l)}else{var h=e.left-o,c=e.left+o+i;ha.right&&(s.left=a.left+a.width-c)}return s},g.prototype.gettitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},g.prototype.getuid=function(t){for(;t+=~~(1e6*math.random()),document.getelementbyid(t););return t},g.prototype.tip=function(){if(!this.$tip&&(this.$tip=m(this.options.template),1!=this.$tip.length))throw new error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},g.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},g.prototype.enable=function(){this.enabled=!0},g.prototype.disable=function(){this.enabled=!1},g.prototype.toggleenabled=function(){this.enabled=!this.enabled},g.prototype.toggle=function(t){var e=this;t&&((e=m(t.currenttarget).data("bs."+this.type))||(e=new this.constructor(t.currenttarget,this.getdelegateoptions()),m(t.currenttarget).data("bs."+this.type,e))),t?(e.instate.click=!e.instate.click,e.isinstatetrue()?e.enter(e):e.leave(e)):e.tip().hasclass("in")?e.leave(e):e.enter(e)},g.prototype.destroy=function(){var t=this;cleartimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removedata("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var t=m.fn.tooltip;m.fn.tooltip=function(n){return this.each(function(){var t=m(this),e=t.data("bs.tooltip"),i="object"==typeof n&&n;!e&&/destroy|hide/.test(n)||(e||t.data("bs.tooltip",e=new g(this,i)),"string"==typeof n&&e[n]())})},m.fn.tooltip.constructor=g,m.fn.tooltip.noconflict=function(){return m.fn.tooltip=t,this}}(jquery),function(s){"use strict";var o=function(t,e){this.init("popover",t,e)};if(!s.fn.tooltip)throw new error("popover requires tooltip.js");o.version="3.3.7",o.defaults=s.extend({},s.fn.tooltip.constructor.defaults,{placement:"right",trigger:"click",content:"",template:''}),o.prototype=s.extend({},s.fn.tooltip.constructor.prototype),(o.prototype.constructor=o).prototype.getdefaults=function(){return o.defaults},o.prototype.setcontent=function(){var t=this.tip(),e=this.gettitle(),i=this.getcontent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeclass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},o.prototype.hascontent=function(){return this.gettitle()||this.getcontent()},o.prototype.getcontent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var t=s.fn.popover;s.fn.popover=function(n){return this.each(function(){var t=s(this),e=t.data("bs.popover"),i="object"==typeof n&&n;!e&&/destroy|hide/.test(n)||(e||t.data("bs.popover",e=new o(this,i)),"string"==typeof n&&e[n]())})},s.fn.popover.constructor=o,s.fn.popover.noconflict=function(){return s.fn.popover=t,this}}(jquery),function(o){"use strict";function s(t,e){this.$body=o(document.body),this.$scrollelement=o(t).is(document.body)?o(window):o(t),this.options=o.extend({},s.defaults,e),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activetarget=null,this.scrollheight=0,this.$scrollelement.on("scroll.bs.scrollspy",o.proxy(this.process,this)),this.refresh(),this.process()}function e(n){return this.each(function(){var t=o(this),e=t.data("bs.scrollspy"),i="object"==typeof n&&n;e||t.data("bs.scrollspy",e=new s(this,i)),"string"==typeof n&&e[n]()})}s.version="3.3.7",s.defaults={offset:10},s.prototype.getscrollheight=function(){return this.$scrollelement[0].scrollheight||math.max(this.$body[0].scrollheight,document.documentelement.scrollheight)},s.prototype.refresh=function(){var t=this,n="offset",s=0;this.offsets=[],this.targets=[],this.scrollheight=this.getscrollheight(),o.iswindow(this.$scrollelement[0])||(n="position",s=this.$scrollelement.scrolltop()),this.$body.find(this.selector).map(function(){var t=o(this),e=t.data("target")||t.attr("href"),i=/^#./.test(e)&&o(e);return i&&i.length&&i.is(":visible")&&[[i[n]().top+s,e]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},s.prototype.process=function(){var t,e=this.$scrollelement.scrolltop()+this.options.offset,i=this.getscrollheight(),n=this.options.offset+i-this.$scrollelement.height(),s=this.offsets,o=this.targets,a=this.activetarget;if(this.scrollheight!=i&&this.refresh(),n<=e)return a!=(t=o[o.length-1])&&this.activate(t);if(a&&e=s[t]&&(void 0===s[t+1]||e .active"),s=i&&r.support.transition&&(n.length&&n.hasclass("fade")||!!e.find("> .fade").length);function o(){n.removeclass("active").find("> .dropdown-menu > .active").removeclass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),t.addclass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),s?(t[0].offsetwidth,t.addclass("in")):t.removeclass("fade"),t.parent(".dropdown-menu").length&&t.closest("li.dropdown").addclass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),i&&i()}n.length&&s?n.one("bstransitionend",o).emulatetransitionend(a.transition_duration):o(),n.removeclass("in")};var t=r.fn.tab;r.fn.tab=e,r.fn.tab.constructor=a,r.fn.tab.noconflict=function(){return r.fn.tab=t,this};var i=function(t){t.preventdefault(),e.call(r(this),"show")};r(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jquery),function(l){"use strict";var h=function(t,e){this.options=l.extend({},h.defaults,e),this.$target=l(this.options.target).on("scroll.bs.affix.data-api",l.proxy(this.checkposition,this)).on("click.bs.affix.data-api",l.proxy(this.checkpositionwitheventloop,this)),this.$element=l(t),this.affixed=null,this.unpin=null,this.pinnedoffset=null,this.checkposition()};function i(n){return this.each(function(){var t=l(this),e=t.data("bs.affix"),i="object"==typeof n&&n;e||t.data("bs.affix",e=new h(this,i)),"string"==typeof n&&e[n]()})}h.version="3.3.7",h.reset="affix affix-top affix-bottom",h.defaults={offset:0,target:window},h.prototype.getstate=function(t,e,i,n){var s=this.$target.scrolltop(),o=this.$element.offset(),a=this.$target.height();if(null!=i&&"top"==this.affixed)return s
\n \n \n \n \n
\n \n \n
\n \n \n\n
\n
\n

title

\n

text

\n
\n \n
\n
\n
!
\n

not valid!

\n
\n \n
\n
\n
\n
\n
\n
\n
\n
',e.exports=i.default},{}],8:[function(t,e,i){object.defineproperty(i,"__esmodule",{value:!0});var m=t("./utils"),g=t("./handle-swal-dom"),v=t("./handle-dom"),y=["error","warning","info","success","input","prompt"];i.default=function(s){var o=g.getmodal(),t=o.queryselector("h2"),e=o.queryselector("p"),i=o.queryselector("button.cancel"),n=o.queryselector("button.confirm");if(t.innerhtml=s.html?s.title:v.escapehtml(s.title).split("\n").join("
"),e.innerhtml=s.html?s.text:v.escapehtml(s.text||"").split("\n").join("
"),s.text&&v.show(e),s.customclass)v.addclass(o,s.customclass),o.setattribute("data-custom-class",s.customclass);else{var a=o.getattribute("data-custom-class");v.removeclass(o,a),o.setattribute("data-custom-class","")}if(v.hide(o.queryselectorall(".sa-icon")),s.type&&!m.isie8()){var r=function(){for(var t=!1,e=0;e=this.startdate&&t<=this.enddate?(this.date=t,this.setvalue(),this.viewdate=this.date,this.fill()):this.element.trigger({type:"outofrange",date:t,startdate:this.startdate,enddate:this.enddate})},setformat:function(t){var e;this.format=a.parseformat(t,this.formattype),this.isinput?e=this.element:this.component&&(e=this.element.find("input")),e&&e.val()&&this.setvalue()},setvalue:function(){var t=this.getformatteddate();this.isinput?this.element.val(t):(this.component&&this.element.find("input").val(t),this.element.data("date",t)),this.linkfield&&i("#"+this.linkfield).val(this.getformatteddate(this.linkformat))},getformatteddate:function(t){return t==a&&(t=this.format),a.formatdate(this.date,t,this.language,this.formattype,this.timezone)},setstartdate:function(t){this.startdate=t||-1/0,this.startdate!==-1/0&&(this.startdate=a.parsedate(this.startdate,this.format,this.language,this.formattype,this.timezone)),this.update(),this.updatenavarrows()},setenddate:function(t){this.enddate=t||1/0,this.enddate!==1/0&&(this.enddate=a.parsedate(this.enddate,this.format,this.language,this.formattype,this.timezone)),this.update(),this.updatenavarrows()},setdatesdisabled:function(t){this.datesdisabled=t||[],i.isarray(this.datesdisabled)||(this.datesdisabled=this.datesdisabled.split(/,\s*/)),this.datesdisabled=i.map(this.datesdisabled,function(t){return a.parsedate(t,this.format,this.language,this.formattype,this.timezone).todatestring()}),this.update(),this.updatenavarrows()},settitle:function(t,e){return this.picker.find(t).find("th:eq(1)").text(!1===this.title?e:this.title)},setdaysofweekdisabled:function(t){this.daysofweekdisabled=t||[],i.isarray(this.daysofweekdisabled)||(this.daysofweekdisabled=this.daysofweekdisabled.split(/,\s*/)),this.daysofweekdisabled=i.map(this.daysofweekdisabled,function(t){return parseint(t,10)}),this.update(),this.updatenavarrows()},setminutesdisabled:function(t){this.minutesdisabled=t||[],i.isarray(this.minutesdisabled)||(this.minutesdisabled=this.minutesdisabled.split(/,\s*/)),this.minutesdisabled=i.map(this.minutesdisabled,function(t){return parseint(t,10)}),this.update(),this.updatenavarrows()},sethoursdisabled:function(t){this.hoursdisabled=t||[],i.isarray(this.hoursdisabled)||(this.hoursdisabled=this.hoursdisabled.split(/,\s*/)),this.hoursdisabled=i.map(this.hoursdisabled,function(t){return parseint(t,10)}),this.update(),this.updatenavarrows()},place:function(){if(!this.isinline){if(!this.zindex){var e=0;i("div").each(function(){var t=parseint(i(this).css("zindex"),10);ethis.enddate?this.viewdate=new date(this.enddate):this.viewdate=new date(this.date),this.fill()},filldow:function(){for(var t=this.weekstart,e="";t'+n[this.language].daysmin[t++%7]+"";e+="",this.picker.find(".datetimepicker-days thead").append(e)},fillmonths:function(){for(var t="",e=0;e<12;)t+=''+n[this.language].monthsshort[e++]+"";this.picker.find(".datetimepicker-months td").html(t)},fill:function(){if(null!=this.date&&null!=this.viewdate){var t=new date(this.viewdate),e=t.getutcfullyear(),i=t.getutcmonth(),n=t.getutcdate(),s=t.getutchours(),o=t.getutcminutes(),a=this.startdate!==-1/0?this.startdate.getutcfullyear():-1/0,r=this.startdate!==-1/0?this.startdate.getutcmonth():-1/0,l=this.enddate!==1/0?this.enddate.getutcfullyear():1/0,h=this.enddate!==1/0?this.enddate.getutcmonth()+1:1/0,c=new e(this.date.getutcfullyear(),this.date.getutcmonth(),this.date.getutcdate()).valueof(),u=new date;if(this.settitle(".datetimepicker-days",n[this.language].months[i]+" "+e),"time"==this.formatviewtype){var d=this.getformatteddate();this.settitle(".datetimepicker-hours",d),this.settitle(".datetimepicker-minutes",d)}else this.settitle(".datetimepicker-hours",n+" "+n[this.language].months[i]+" "+e),this.settitle(".datetimepicker-minutes",n+" "+n[this.language].months[i]+" "+e);this.picker.find("tfoot th.today").text(n[this.language].today||n.en.today).toggle(!1!==this.todaybtn),this.picker.find("tfoot th.clear").text(n[this.language].clear||n.en.clear).toggle(!1!==this.clearbtn),this.updatenavarrows(),this.fillmonths();var p=e(e,i-1,28,0,0,0,0),f=a.getdaysinmonth(p.getutcfullyear(),p.getutcmonth());p.setutcdate(f),p.setutcdate(f-(p.getutcday()-this.weekstart+7)%7);var m=new date(p);m.setutcdate(m.getutcdate()+42),m=m.valueof();for(var g,v=[];p.valueof()"),g="",p.getutcfullyear()e||p.getutcfullyear()==e&&p.getutcmonth()>i)&&(g+=" new"),this.todayhighlight&&p.getutcfullyear()==u.getfullyear()&&p.getutcmonth()==u.getmonth()&&p.getutcdate()==u.getdate()&&(g+=" today"),p.valueof()==c&&(g+=" active"),(p.valueof()+864e5<=this.startdate||p.valueof()>this.enddate||-1!==i.inarray(p.getutcday(),this.daysofweekdisabled)||-1!==i.inarray(p.todatestring(),this.datesdisabled))&&(g+=" disabled"),v.push(''+p.getutcdate()+""),p.getutcday()==this.weekend&&v.push(""),p.setutcdate(p.getutcdate()+1);this.picker.find(".datetimepicker-days tbody").empty().append(v.join("")),v=[];for(var y="",b="",_="",w=this.hoursdisabled||[],x=0;x<24;x++){if(-1===w.indexof(x))g="",(k=e(e,i,n,x)).valueof()+36e5<=this.startdate||k.valueof()>this.enddate?g+=" disabled":s==x&&(g+=" active"),this.showmeridian&&2==n[this.language].meridiem.length?((b=x<12?n[this.language].meridiem[0]:n[this.language].meridiem[1])!=_&&(""!=_&&v.push(""),v.push('
'+b.touppercase()+"")),_=b,y=x%12?x%12:12,v.push(''+y+""),23==x&&v.push("
")):(y=x+":00",v.push(''+y+""))}this.picker.find(".datetimepicker-hours td").html(v.join("")),v=[],_=b=y="";var c=this.minutesdisabled||[];for(x=0;x<60;x+=this.minutestep){var k;if(-1===c.indexof(x))g="",(k=e(e,i,n,s,x,0)).valueof()this.enddate?g+=" disabled":math.floor(o/this.minutestep)==math.floor(x/this.minutestep)&&(g+=" active"),this.showmeridian&&2==n[this.language].meridiem.length?((b=s<12?n[this.language].meridiem[0]:n[this.language].meridiem[1])!=_&&(""!=_&&v.push(""),v.push('
'+b.touppercase()+"")),_=b,y=s%12?s%12:12,v.push(''+y+":"+(x<10?"0"+x:x)+""),59==x&&v.push("
")):(y=x+":00",v.push(''+s+":"+(x<10?"0"+x:x)+""))}this.picker.find(".datetimepicker-minutes td").html(v.join(""));var d=this.date.getutcfullyear(),t=this.settitle(".datetimepicker-months",e).end().find("span").removeclass("active");if(d==e){var s=t.length-12;t.eq(this.date.getutcmonth()+s).addclass("active")}(e'+e+"",e+=1;m.html(v),this.place()}},updatenavarrows:function(){var t=new date(this.viewdate),e=t.getutcfullyear(),i=t.getutcmonth(),n=t.getutcdate(),s=t.getutchours();switch(this.viewmode){case 0:this.startdate!==-1/0&&e<=this.startdate.getutcfullyear()&&i<=this.startdate.getutcmonth()&&n<=this.startdate.getutcdate()&&s<=this.startdate.getutchours()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.enddate!==1/0&&e>=this.enddate.getutcfullyear()&&i>=this.enddate.getutcmonth()&&n>=this.enddate.getutcdate()&&s>=this.enddate.getutchours()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:this.startdate!==-1/0&&e<=this.startdate.getutcfullyear()&&i<=this.startdate.getutcmonth()&&n<=this.startdate.getutcdate()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.enddate!==1/0&&e>=this.enddate.getutcfullyear()&&i>=this.enddate.getutcmonth()&&n>=this.enddate.getutcdate()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 2:this.startdate!==-1/0&&e<=this.startdate.getutcfullyear()&&i<=this.startdate.getutcmonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.enddate!==1/0&&e>=this.enddate.getutcfullyear()&&i>=this.enddate.getutcmonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 3:case 4:this.startdate!==-1/0&&e<=this.startdate.getutcfullyear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.enddate!==1/0&&e>=this.enddate.getutcfullyear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}},mousewheel:function(t){if(t.preventdefault(),t.stoppropagation(),!this.wheelpause){this.wheelpause=!0;var e=t.originalevent.wheeldelta,i=0this.enddate&&(n=this.enddate),this.viewmode=this.startviewmode,this.showmode(0),this._setdate(n),this.fill(),this.autoclose&&this.hide()}break;case"span":if(!e.is(".disabled")){var s=this.viewdate.getutcfullyear(),o=this.viewdate.getutcmonth(),a=this.viewdate.getutcdate(),r=this.viewdate.getutchours(),l=this.viewdate.getutcminutes(),h=this.viewdate.getutcseconds();if(e.is(".month")?(this.viewdate.setutcdate(1),o=e.parent().find("span").index(e),a=this.viewdate.getutcdate(),this.viewdate.setutcmonth(o),this.element.trigger({type:"changemonth",date:this.viewdate}),3<=this.viewselect&&this._setdate(e(s,o,a,r,l,h,0))):e.is(".year")?(this.viewdate.setutcdate(1),s=parseint(e.text(),10)||0,this.viewdate.setutcfullyear(s),this.element.trigger({type:"changeyear",date:this.viewdate}),4<=this.viewselect&&this._setdate(e(s,o,a,r,l,h,0))):e.is(".hour")?(r=parseint(e.text(),10)||0,(e.hasclass("hour_am")||e.hasclass("hour_pm"))&&(12==r&&e.hasclass("hour_am")?r=0:12!=r&&e.hasclass("hour_pm")&&(r+=12)),this.viewdate.setutchours(r),this.element.trigger({type:"changehour",date:this.viewdate}),1<=this.viewselect&&this._setdate(e(s,o,a,r,l,h,0))):e.is(".minute")&&(l=parseint(e.text().substr(e.text().indexof(":")+1),10)||0,this.viewdate.setutcminutes(l),this.element.trigger({type:"changeminute",date:this.viewdate}),0<=this.viewselect&&this._setdate(e(s,o,a,r,l,h,0))),0!=this.viewmode){var c=this.viewmode;this.showmode(-1),this.fill(),c==this.viewmode&&this.autoclose&&this.hide()}else this.fill(),this.autoclose&&this.hide()}break;case"td":if(e.is(".day")&&!e.is(".disabled")){a=parseint(e.text(),10)||1,s=this.viewdate.getutcfullyear(),o=this.viewdate.getutcmonth(),r=this.viewdate.getutchours(),l=this.viewdate.getutcminutes(),h=this.viewdate.getutcseconds();e.is(".old")?0===o?(o=11,s-=1):o-=1:e.is(".new")&&(11==o?(o=0,s+=1):o+=1),this.viewdate.setutcfullyear(s),this.viewdate.setutcmonth(o,a),this.element.trigger({type:"changeday",date:this.viewdate}),2<=this.viewselect&&this._setdate(e(s,o,a,r,l,h,0))}c=this.viewmode;this.showmode(-1),this.fill(),c==this.viewmode&&this.autoclose&&this.hide()}}},_setdate:function(t,e){var i;e&&"date"!=e||(this.date=t),e&&"view"!=e||(this.viewdate=t),this.fill(),this.setvalue(),this.isinput?i=this.element:this.component&&(i=this.element.find("input")),i&&(i.change(),this.autoclose),this.element.trigger({type:"changedate",date:this.getdate()}),null==t&&(this.date=this.viewdate)},moveminute:function(t,e){if(!e)return t;var i=new date(t.valueof());return i.setutcminutes(i.getutcminutes()+e*this.minutestep),i},movehour:function(t,e){if(!e)return t;var i=new date(t.valueof());return i.setutchours(i.getutchours()+e),i},movedate:function(t,e){if(!e)return t;var i=new date(t.valueof());return i.setutcdate(i.getutcdate()+e),i},movemonth:function(t,e){if(!e)return t;var i,n,s=new date(t.valueof()),o=s.getutcdate(),a=s.getutcmonth(),r=math.abs(e);if(e=0=this.startdate&&t<=this.enddate},keydown:function(t){if(this.picker.is(":not(:visible)"))27==t.keycode&&this.show();else{var e,i,n,s,o=!1;switch(t.keycode){case 27:this.hide(),t.preventdefault();break;case 37:case 39:if(!this.keyboardnavigation)break;e=37==t.keycode?-1:1,viewmode=this.viewmode,t.ctrlkey?viewmode+=2:t.shiftkey&&(viewmode+=1),4==viewmode?(i=this.moveyear(this.date,e),n=this.moveyear(this.viewdate,e)):3==viewmode?(i=this.movemonth(this.date,e),n=this.movemonth(this.viewdate,e)):2==viewmode?(i=this.movedate(this.date,e),n=this.movedate(this.viewdate,e)):1==viewmode?(i=this.movehour(this.date,e),n=this.movehour(this.viewdate,e)):0==viewmode&&(i=this.moveminute(this.date,e),n=this.moveminute(this.viewdate,e)),this.datewithinrange(i)&&(this.date=i,this.viewdate=n,this.setvalue(),this.update(),t.preventdefault(),o=!0);break;case 38:case 40:if(!this.keyboardnavigation)break;e=38==t.keycode?-1:1,viewmode=this.viewmode,t.ctrlkey?viewmode+=2:t.shiftkey&&(viewmode+=1),4==viewmode?(i=this.moveyear(this.date,e),n=this.moveyear(this.viewdate,e)):3==viewmode?(i=this.movemonth(this.date,e),n=this.movemonth(this.viewdate,e)):2==viewmode?(i=this.movedate(this.date,7*e),n=this.movedate(this.viewdate,7*e)):1==viewmode?this.showmeridian?(i=this.movehour(this.date,6*e),n=this.movehour(this.viewdate,6*e)):(i=this.movehour(this.date,4*e),n=this.movehour(this.viewdate,4*e)):0==viewmode&&(i=this.moveminute(this.date,4*e),n=this.moveminute(this.viewdate,4*e)),this.datewithinrange(i)&&(this.date=i,this.viewdate=n,this.setvalue(),this.update(),t.preventdefault(),o=!0);break;case 13:if(0!=this.viewmode){var a=this.viewmode;this.showmode(-1),this.fill(),a==this.viewmode&&this.autoclose&&this.hide()}else this.fill(),this.autoclose&&this.hide();t.preventdefault();break;case 9:this.hide()}if(o)this.isinput?s=this.element:this.component&&(s=this.element.find("input")),s&&s.change(),this.element.trigger({type:"changedate",date:this.getdate()})}},showmode:function(t){if(t){var e=math.max(0,math.min(a.modes.length-1,this.viewmode+t));e>=this.minview&&e<=this.maxview&&(this.element.trigger({type:"changemode",date:this.viewdate,oldviewmode:this.viewmode,newviewmode:e}),this.viewmode=e)}this.picker.find(">div").hide().filter(".datetimepicker-"+a.modes[this.viewmode].clsname).css("display","block"),this.updatenavarrows()},reset:function(t){this._setdate(null,"date")},convertviewmodetext:function(t){switch(t){case 4:return"decade";case 3:return"year";case 2:return"month";case 1:return"day";case 0:return"hour"}}};var t=i.fn.datetimepicker;i.fn.datetimepicker=function(n){var s,o=array.apply(null,arguments);return o.shift(),this.each(function(){var t=i(this),e=t.data("datetimepicker"),i="object"==typeof n&&n;if(e||t.data("datetimepicker",e=new y(this,i.extend({},i.fn.datetimepicker.defaults,i))),"string"==typeof n&&"function"==typeof e[n]&&(s=e[n].apply(e,o))!==a)return!1}),s!==a?s:this},i.fn.datetimepicker.defaults={},i.fn.datetimepicker.constructor=y;var n=i.fn.datetimepicker.dates={en:{days:["sunday","monday","tuesday","wednesday","thursday","friday","saturday","sunday"],daysshort:["sun","mon","tue","wed","thu","fri","sat","sun"],daysmin:["su","mo","tu","we","th","fr","sa","su"],months:["january","february","march","april","may","june","july","august","september","october","november","december"],monthsshort:["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],today:"today",clear:"clear"}},a={modes:[{clsname:"minutes",navfnc:"hours",navstep:1},{clsname:"hours",navfnc:"date",navstep:1},{clsname:"days",navfnc:"month",navstep:1},{clsname:"months",navfnc:"fullyear",navstep:1},{clsname:"years",navfnc:"fullyear",navstep:10}],isleapyear:function(t){return t%4==0&&t%100!=0||t%400==0},getdaysinmonth:function(t,e){return[31,a.isleapyear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},getdefaultformat:function(t,e){if("standard"==t)return"input"==e?"yyyy-mm-dd hh:ii":"yyyy-mm-dd hh:ii:ss";if("php"==t)return"input"==e?"y-m-d h:i":"y-m-d h:i:s";throw new error("invalid format type.")},validparts:function(t){if("standard"==t)return/t|hh?|hh?|p|p|z|z|ii?|ss?|dd?|dd?|mm?|mm?|yy(?:yy)?/g;if("php"==t)return/[ddjlnwzfmmnstyyaabgghhis]/g;throw new error("invalid format type.")},nonpunctuation:/[^ -\/:-@\[-`{-~\t\n\rtz]+/g,parseformat:function(t,e){var i=t.replace(this.validparts(e),"\0").split("\0"),n=t.match(this.validparts(e));if(!i||!i.length||!n||0==n.length)throw new error("invalid date format.");return{separators:i,parts:n}},parsedate:function(t,e,i,n,s){if(t instanceof date){var o=new date(t.valueof()-6e4*t.gettimezoneoffset());return o.setmilliseconds(0),o}if(/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(t)&&(e=this.parseformat("yyyy-mm-dd",n)),/^\d{4}\-\d{1,2}\-\d{1,2}[t ]\d{1,2}\:\d{1,2}$/.test(t)&&(e=this.parseformat("yyyy-mm-dd hh:ii",n)),/^\d{4}\-\d{1,2}\-\d{1,2}[t ]\d{1,2}\:\d{1,2}\:\d{1,2}[z]{0,1}$/.test(t)&&(e=this.parseformat("yyyy-mm-dd hh:ii:ss",n)),/^[-+]\d+[dmwy]([\s,]+[-+]\d+[dmwy])*$/.test(t)){var a,r=/([-+]\d+)([dmwy])/,l=t.match(/([-+]\d+)([dmwy])/g);t=new date;for(var h=0;h',headtemplatev3:' ',conttemplate:'',foottemplate:''};a.template='
'+a.headtemplate+a.conttemplate+a.foottemplate+'
'+a.headtemplate+a.conttemplate+a.foottemplate+'
'+a.headtemplate+""+a.foottemplate+'
'+a.headtemplate+a.conttemplate+a.foottemplate+'
'+a.headtemplate+a.conttemplate+a.foottemplate+"
",a.templatev3='
'+a.headtemplatev3+a.conttemplate+a.foottemplate+'
'+a.headtemplatev3+a.conttemplate+a.foottemplate+'
'+a.headtemplatev3+""+a.foottemplate+'
'+a.headtemplatev3+a.conttemplate+a.foottemplate+'
'+a.headtemplatev3+a.conttemplate+a.foottemplate+"
",i.fn.datetimepicker.dpglobal=a,i.fn.datetimepicker.noconflict=function(){return i.fn.datetimepicker=t,this},i(document).on("focus.datetimepicker.data-api click.datetimepicker.data-api",'[data-provide="datetimepicker"]',function(t){var e=i(this);e.data("datetimepicker")||(t.preventdefault(),e.datetimepicker("show"))}),i(function(){i('[data-provide="datetimepicker-inline"]').datetimepicker()})}),jquery.fn.datetimepicker.dates["zh-cn"]={days:["星期日","星期一","星期二","星期三","星期四","星期五","星期六","星期日"],daysshort:["周日","周一","周二","周三","周四","周五","周六","周日"],daysmin:["周日","周一","周二","周三","周四","周五","周六","周日"],months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthsshort:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],today:"今天",suffix:[],meridiem:["上午","下午"]},function(t){"object"==typeof module&&module.exports?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t(jquery)}(function(g,p){"use strict";var e,a="validator",d="."+a,r="nice-"+a,l="msg-box",h="aria-invalid",c="data-rule",o="data-msg",u="data-tip",f="data-timely",m="data-target",v="novalidate",y=":verifiable",i=/(&)?(!)?\b(\w+)(?:\[\s*(.*?\]?)\s*\]|\(\s*(.*?\)?)\s*\))?\s*(;|\|)?/g,b=/(\w+)(?:\[\s*(.*?\]?)\s*\]|\(\s*(.*?\)?)\s*\))?/,n=/(?:([^:;\(\[]*):)?(.*)/,s=/[^\x00-\xff]/g,_=/top|right|bottom|left/,w=/(?:(cors|jsonp):)?(?:(post|get):)?(.+)/i,x=/[<>'"`\\]|&#x?\d+[a-f]?;?|%3[a-f]/gim,c=g.noop,k=g.proxy,d=g.trim,t=g.isfunction,s=function(t){return"string"==typeof t},m=function(t){return t&&"[object object]"===object.prototype.tostring.call(t)},i=document.documentmode||+(navigator.useragent.match(/msie (\d+)/)&®exp.$1),e=function(t,e,i){return t&&t.tagname?i===p?t.getattribute(e):void(null===i?t.removeattribute(e):t.setattribute(e,""+i)):null},n={},a={debug:0,theme:"default",ignore:"",focusinvalid:!0,focuscleanup:!1,stoponerror:!1,beforesubmit:null,valid:null,invalid:null,validation:null,formclass:"n-default",validclass:"n-valid",invalidclass:"n-invalid",bindclassto:null},p={timely:1,display:null,target:null,ignoreblank:!1,showok:!0,datafilter:function(t){if(s(t)||m(t)&&("error"in t||"ok"in t))return t},msgmaker:function(i){var n;return n=''+i.arrow,i.result?g.each(i.result,function(t,e){n+=''+i.icon+''+e.msg+""}):n+=i.icon+''+i.msg+"",n+=""},msgwrapper:"span",msgarrow:"",msgicon:'',msgclass:"n-right",msgstyle:"",msgshow:null,msghide:null},o={};function h(t,e){var i=this;if(!(i instanceof h))return new h(t,e);function n(){i.$el=g(t),i.$el.length?i._init(i.$el[0],e):s(t)&&(n[t]=e)}h.pending?g(window).on("validatorready",n):n()}function $(t,e){if(m(t)){var i,n=e?!0===e?this:e:$.prototype;for(i in t)u(i)&&(n[i]=f(t[i]))}}function z(t,e){if(m(t)){var i,n=e?!0===e?this:e:z.prototype;for(i in t)n[i]=t[i]}}function f(t){switch(g.type(t)){case"function":return t;case"array":var e=function(){return t[0].test(this.value)||t[1]||!1};return e.msg=t[1],e;case"regexp":return function(){return t.test(this.value)}}}function w(t){var e,i,n;if(t&&t.tagname){switch(t.tagname){case"input":case"select":case"textarea":case"button":case"fieldset":e=t.form||g(t).closest("."+r);break;case"form":e=t;break;default:e=g(t).closest("."+r)}for(i in n)if(g(e).is(i)){n=n[i];break}return g(e).data(a)||g(e)[a](n).data(a)}}function j(t,e,i){var n=e.msg,s=e._r;return m(n)&&(n=n[s]),s(n)||(n=e(t,o+"-"+s)||e(t,o)||(i?s(i)?i:i[s]:"")),n}function r(t){return"input"===t.tagname&&"checkbox"===t.type||"radio"===t.type}function l(t){return date.parse(t.replace(/\.|\-/g,"/"))}function u(t){return/^\w+$/.test(t)}function q(t){var e="#"===t.charat(0);return t=t.replace(/([:.{(|)}/\[\]])/g,"\\$1"),e?t:'[name="'+t+'"]:first'}return g.fn.validator=function(e){var t=this,i=arguments;return t.is(y)?t:(t.is("form")||(t=this.find("form")),t.length||(t=this),t.each(function(){var t=g(this).data(a);if(t)if(s(e)){if("_"===e.charat(0))return;t[e].apply(t,[].slice.call(i,1))}else e&&(t._reset(!0),t._init(this,e));else new h(this,e)}),this)},g.fn.isvalid=function(e,t){var i,n,s=w(this[0]),o=t(e);return!s||(o||t!==p||(t=e),s.checkonly=!!t,n=s.options,i=s._multivalidate(this.is(y)?this:this.find(y),function(t){t||!n.focusinvalid||s.checkonly||s.$el.find("["+h+"]:first").focus(),o&&(e.length?e(t):t&&e()),s.checkonly=!1}),o?this:i)},g.extend(g.expr.pseudos||g.expr[":"],{verifiable:function(t){var e=t.nodename.tolowercase();return("input"===e&&!{submit:1,button:1,reset:1,image:1}[t.type]||"select"===e||"textarea"===e||"true"===t.contenteditable)&&!t.disabled},filled:function(t){return!!d(g(t).val())}}),h.prototype={_init:function(t,e){var i,n,s,o=this;t(e)&&(e={valid:e}),e=o._opt=e||{},s=e(t,"data-"+a+"-option"),s=o._dataopt=s&&"{"===s.charat(0)?new function("return "+s)():{},n=o._themeopt=o[e.theme||s.theme||a.theme],i=o.options=g.extend({},a,p,n,o.options,e,s),o.rules=new $(i.rules,!0),o.messages=new z(i.messages,!0),o.field=function(n){function t(){var t=this.options;for(var e in t)e in p&&(this[e]=t[e]);g.extend(this,{_valhook:function(){return"true"===this.element.contenteditable?"text":"val"},getvalue:function(){var t=this.element;return"number"===t.type&&t.validity&&t.validity.badinput?"nan":g(t)[this._valhook()]()},setvalue:function(t){g(this.element)[this._valhook()](this.value=t)},getrangemsg:function(t,e,i){if(e){var n,s=this,o=s.messages[s._r]||"",a=e[0].split("~"),r="false"===e[1],l=a[0],h=a[1],c="rg",u=[""],d=d(t)&&+t==+t;return 2===a.length?l&&h?(d&&p(t,+l)&&p(+h,t)&&(n=!0),u=u.concat(a),c=r?"gtlt":"rg"):l&&!h?(d&&p(t,+l)&&(n=!0),u.push(l),c=r?"gt":"gte"):!l&&h&&(d&&p(+h,t)&&(n=!0),u.push(h),c=r?"lt":"lte"):(t===+l&&(n=!0),u.push(l),c="eq"),o&&(i&&o[c+i]&&(c+=i),u[0]=o[c]),n||s._rules&&(s._rules[s._i].msg=s.rendermsg.apply(null,u))}function p(t,e){return r?e>> "+i),t&&(n.vetoed?g(o).ajaxsubmit(n.ajaxformoptions):a&&!n.isajaxsubmit&&document.createelement("form").submit.call(o))}))},_reset:function(t){var e=this;e.errors={},t&&(e.reseting=!0,e.$el.find(y).each(function(){e._resetelement(this)}),delete e.reseting)},_resetelement:function(t,e){this._setclass(t,null),this.hidemsg(t)},_focusin:function(t){var e,i,n=this,s=n.options,o=t.target;n.validating||"click"===t.type&&document.activeelement===o||(s.focuscleanup&&"true"===e(o,h)&&(n._setclass(o,null),n.hidemsg(o)),(i=e(o,u))?n.showmsg(o,{type:"tip",msg:i}):(e(o,c)&&n._parse(o),(e=e(o,f))&&(8!==e&&9!==e||n._focusout(t))))},_focusout:function(t){var e,i,n,s,o,a,r,l,h=this,c=h.options,u=t.target,d=t.type,p="focusin"===d,f="validate"===d,m=0;if("compositionstart"===d&&(h.pausevalidate=!0),"compositionend"===d&&(h.pausevalidate=!1),!h.pausevalidate&&(i=u.name&&r(u)?h.$el.find('input[name="'+u.name+'"]').get(0):u,(n=h.getfield(i))&&n.rule)){if(e=n._e,n._e=d,l=n.timely,!f){if(!l||r(u)&&"click"!==d)return;if(o=n.getvalue(),n.ignoreblank&&!o&&!p)return void h.hidemsg(u);if("focusout"===d){if("change"===e)return;if(2===l||8===l){if(s=n.old,!o||!s)return;n.isvalid&&!s.showok?h.hidemsg(u):h._makemsg(u,n,s)}}else{if(l<2&&!t.data)return;if((a=+new date)-(u._ts||0)<100)return;if(u._ts=a,"keyup"===d){if("input"===e)return;if(9===(r=t.keycode)&&!o)return;if(r<48&&!{8:1,9:1,16:1,32:1,46:1}[r])return}p||(m=l<100?"click"===d||"select"===u.tagname?0:400:l)}}c.ignore&&g(u).is(c.ignore)||(cleartimeout(n._t),m?n._t=settimeout(function(){h._validate(u,n)},m):(f&&(n.old={}),h._validate(u,n)))}},_setclass:function(t,e){var i=g(t),n=this.options;n.bindclassto&&(i=i.closest(n.bindclassto)),i.removeclass(n.invalidclass+" "+n.validclass),null!==e&&i.addclass(e?n.validclass:n.invalidclass)},_showmsg:function(t,e,i){var n=this,s=t.target;n.$el.is(s)?m(e)?n.showmsg(e):"tip"===e&&n.$el.find(y+"["+u+"]",s).each(function(){n.showmsg(this,{type:e,msg:i})}):n.showmsg(s,{type:e,msg:i})},_hidemsg:function(t){var e=g(t.target);e.is(y)&&this.hidemsg(e)},_validatedfield:function(t,e,i){var n=this,s=n.options,o=e.isvalid=i.isvalid=!!i.isvalid,a=o?"valid":"invalid";i.key=e.key,i.rulename=e._r,i.id=t.id,i.value=e.value,n.elements[e.key]=i.element=t,n.isvalid=n.$el[0].isvalid=o?n.isformvalid():o,o?i.type="ok":(n.submiting&&(n.errors[e.key]=i.msg),n.haserror=!0),e.old=i,t(e[a])&&e[a].call(n,t,i),t(s.validation)&&s.validation.call(n,t,i),g(t).attr(h,!o||null).trigger(a+".field",[i,n]),n.$el.triggerhandler("validation",[i,n]),n.checkonly||(n._setclass(t,i.skip||"tip"===i.type?null:o),n._makemsg.apply(n,arguments))},_makemsg:function(t,e,i){e.msgmaker&&(i=g.extend({},i),"focusin"===e._e&&(i.type="tip"),this[i.showok||i.msg||"tip"===i.type?"showmsg":"hidemsg"](t,i,e))},_validatedrule:function(i,n,t,e){n=n||l.getfield(i),e=e||{};var s,o,a,r,l=this,h=n._r,c=n.timely,u=9===c||8===c,d=!1;if(null===t)return l._validatedfield(i,n,{isvalid:!0,skip:!0}),void(n._i=0);if(t===p?a=!0:!0===t||""===t?d=!0:s(t)?s=t:m(t)?t.error?s=t.error:(s=t.ok,d=!0):d=!!t,(o=n._rules[n._i]).not&&(s=p,d="required"===h||!d),o.or)if(d)for(;n._i "+(d||s)),(d||u)&&n._i").attr({class:l+(e.cls?" "+e.cls:""),style:e.style||p,for:n}),o)i.appendto(o);else if(r(t)){var r=a.parent();i.appendto(r.is("label")?r.parent():r)}else i[e.pos&&"right"!==e.pos?"insertbefore":"insertafter"](a);return i},showmsg:function(t,e,i){if(t){var n,s,o,a,r=this,l=r.options;!m(t)||t.jquery||e?(g(t).is(y)&&(i=i||r.getfield(t)),(s=(i||l).msgmaker)&&(e=r._getmsgopt(e,i),t=(t.name&&r(t)?r.$el.find('input[name="'+t.name+'"]'):g(t)).get(0),e.msg||"error"===e.type||null!==(o=e(t,"data-"+e.type))&&(e.msg=o),s(e.msg)&&(a=r._getmsgdom(t,e),!_.test(a[0].classname)&&a.addclass(e.cls),6===i&&"bottom"===e.pos&&(a[0].style.margintop=g(t).outerheight()+"px"),a.html(s.call(r,e))[0].style.display="",t(n=i&&i.msgshow||l.msgshow)&&n.call(r,a,e.type)))):g.each(t,function(t,e){var i=r.elements[t]||r.$el.find(q(t))[0];r.showmsg(i,e)})}},hidemsg:function(t,e,i){var n,s,o=this,a=o.options;t=g(t).get(0),g(t).is(y)&&(i=i||o.getfield(t))&&(i.isvalid||o.reseting)&&e(t,h,null),(e=o._getmsgopt(e,i)).hide=!0,(s=o._getmsgdom(t,e)).length&&(t(n=i&&i.msghide||a.msghide)?n.call(o,s,e.type):(s[0].style.display="none",s[0].innerhtml=""))},getfield:function(t,e){var i,n;if(s(t))i=t,t=p;else{if(e(t,c))return this._parse(t);i=t.id&&"#"+t.id in this.fields||!t.name?"#"+t.id:t.name}return((n=this.fields[i])||e&&(n=new this.field(i)))&&(n.element=t),n},setfield:function(t,e){var i={};t&&(s(t)?i[t]=e:i=t,this._initfields(i))},isformvalid:function(){var t,e,i=this.fields;for(t in i)if((e=i[t])._rules&&(e.required||e.must||e.value)&&!e.isvalid)return!1;return!0},holdsubmit:function(t){this.submiting=t===p||t},cleanup:function(){this._reset(1)},destroy:function(){this._reset(1),this.$el.off(d).removedata(a),e(this.$el[0],v,this._novalidate)}},g(window).on("beforeunload",function(){this.focus()}),g(document).on("click",":submit",function(){var t;this.form&&((t=this.getattributenode("formnovalidate"))&&null!==t.nodevalue||null!==e(this,v))&&(e=!0)}).on("focusin submit validate","form,."+r,function(t){if(null===e(this,v)){var e,i=g(this);!i.data(a)&&(e=w(this))&&(g.isemptyobject(e.fields)?(e(this,v,v),i.off(d).removedata(a)):"focusin"===t.type?e._focusin(t):e._submit(t))}}),new z({fallback:"this field is not valid.",loading:"validating..."}),new $({required:function(t,e){var i=this,n=d(i.value),s=!0;if(e)if(1===e.length){if(u(e[0])){if(i.rules[e[0]]&&!n&&!i.test(t,e[0]))return null}else if(!n&&!g(e[0],i.$el).length)return null}else if("not"===e[0])g.each(e.slice(1),function(){return s=n!==d(this)});else if("from"===e[0]){var o,a=i.$el.find(e[1]),r="_validated_";return(s=a.filter(function(){var t=i.getfield(this);return t&&!!d(t.getvalue())}).length>=(e[2]||1))?n||(o=null):o=j(a[0],i)||!1,g(t).data(r)||a.data(r,1).each(function(){t!==this&&i._validate(this)}).removedata(r),o}return s&&!!n},integer:function(t,e){var i,n="[1-9]\\d*",s=e?e[0]:"*";switch(s){case"+":i=n;break;case"-":i="-"+n;break;case"+0":i="0|"+n;break;case"-0":i="0|-"+n;break;default:i="0|-?"+n}return i="^(?:"+i+")$",new regexp(i).test(this.value)||this.messages.integer&&this.messages.integer[s]},match:function(t,e){if(e){var i,n,s,o,a,r,l,h=this,c=!0,u="eq";if(1===e.length?s=e[0]:(u=e[0],s=e[1]),a=q(s),r=h.$el.find(a)[0]){if(l=h.getfield(r),i=h.value,n=l.getvalue(),h._match||(h.$el.on("valid.field"+d,a,function(){g(t).trigger("validate")}),h._match=l._match=1),!h.required&&""===i&&""===n)return null;if((o=e[2])&&(/^date(time)?$/i.test(o)?(i=l(i),n=l(n)):"time"===o&&(i=+i.replace(/:/g,""),n=+n.replace(/:/g,""))),"eq"!==u&&!isnan(+i)&&isnan(+n))return!0;switch(u){case"lt":c=+i<+n;break;case"lte":c=+i<=+n;break;case"gte":c=+n<=+i;break;case"gt":c=+n<+i;break;case"neq":c=i!==n;break;default:c=i===n}return c||m(h.messages.match)&&h.messages.match[u].replace("{1}",h._getdisplay(r,l.display||s))}}},range:function(t,e){return this.getrangemsg(this.value,e)},checked:function(t,e){if(r(t)){var i,n;return n=t.name?this.$el.find('input[name="'+t.name+'"]').filter(function(){return!i&&r(this)&&(i=this),!this.disabled&&this.checked}).length:(i=t).checked,e?this.getrangemsg(n,e):!!n||j(i,this,"")||this.messages.required||!1}},length:function(t,e){var i=this.value,n=("true"===e[1]?i.replace(s,"xx"):i).length;return this.getrangemsg(n,e,e[1]?"_2":"")},remote:function(t,e){if(e){var i,n=this,s=w.exec(e[0]),o=n._rules[n._i],a={},r="",l=s[3],h=s[2]||"post",c=(s[1]||"").tolowercase();return o.must=!0,a[t.name]=n.value,e[1]&&g.map(e.slice(1),function(t){var e,i;~t.indexof("=")?r+="&"+t:(e=t.split(":"),t=d(e[0]),i=d(e[1])||t,a[t]=n.$el.find(q(i)).val())}),a=g.param(a)+r,!n.must&&o.data&&o.data===a?o.result:("cors"!==c&&/^https?:/.test(l)&&!~l.indexof(location.host)&&(i="jsonp"),g.ajax({url:l,type:h,data:a,datatype:i}))}},filter:function(t,e){var i=this.value,n=i.replace(e?new regexp("["+e[0]+"]","gm"):x,"");n!==i&&this.setvalue(n)}}),h.config=function(t,e){function i(t,e){"rules"===t?new $(e):"messages"===t?new z(e):t in p?p[t]=e:a[t]=e}m(t)?g.each(t,i):s(t)&&i(t,e)},h.settheme=function(t,e){m(t)?g.extend(!0,o,t):s(t)&&m(e)&&(o[t]=g.extend(o[t],e))},h.load=function(t){if(t){var e,i,n,s=document,o={},a=s.scripts[0];t.replace(/([^?=&]+)=([^&#]*)/g,function(t,e,i){o[e]=i}),e=o.dir||h.dir,h.css||""===o.css||((i=s.createelement("link")).rel="stylesheet",i.href=h.css=e+"jquery.validator.css",a.parentnode.insertbefore(i,a)),!h.local&&~t.indexof("local")&&""!==o.local&&(h.local=(o.local||s.documentelement.lang||"en").replace("_","-"),h.pending=1,(i=s.createelement("script")).src=e+"local/"+h.local+".js",i[n="onload"in i?"onload":"onreadystatechange"]=function(){i.readystate&&!/loaded|complete/.test(i.readystate)||(i=i[n]=null,delete h.pending,g(window).triggerhandler("validatorready"))},a.parentnode.insertbefore(i,a))}},function(){for(var t,e,i=document.scripts,n=i.length,s=/(.*validator(?:\.min)?.js)(\?.*(?:local|css|dir)(?:=[\w\-]*)?)?/;n--&&!e;)e=((t=i[n]).hasattribute?t.src:t.getattribute("src",4)||"").match(s);e&&(h.dir=e[1].split("/").slice(0,-1).join("/")+"/",h.load(e[2]))}(),g[a]=h}),function(t){"object"==typeof module&&module.exports?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t(jquery)}(function(s){s.validator.config({rules:{digits:[/^\d+$/,"请填写数字"],letters:[/^[a-z]+$/i,"请填写字母"],date:[/^\d{4}-\d{2}-\d{2}$/,"请填写有效的日期,格式:yyyy-mm-dd"],time:[/^([01]\d|2[0-3])(:[0-5]\d){1,2}$/,"请填写有效的时间,00:00到23:59之间"],email:[/^[\w\+\-]+(\.[\w\+\-]+)*@[a-z\d\-]+(\.[a-z\d\-]+)*\.([a-z]{2,4})$/i,"请填写有效的邮箱"],url:[/^(https?|s?ftp):\/\/\s+$/i,"请填写有效的网址"],qq:[/^[1-9]\d{4,}$/,"请填写有效的qq号"],idcard:[/^\d{6}(19|2\d)?\d{2}(0[1-9]|1[012])(0[1-9]|[12]\d|3[01])\d{3}(\d|x)?$/,"请填写正确的身份证号码"],tel:[/^(?:(?:0\d{2,3}[\- ]?[1-9]\d{6,7})|(?:[48]00[\- ]?[1-9]\d{6}))$/,"请填写有效的电话号码"],mobile:[/^1[3-9]\d{9}$/,"请填写有效的手机号"],zipcode:[/^\d{6}$/,"请检查邮政编码格式"],chinese:[/^[\u0391-\uffe5]+$/,"请填写中文字符"],username:[/^\w{3,12}$/,"请填写3-12位数字、字母、下划线"],password:[/^[\s]{6,16}$/,"请填写6-16位字符,不能包含空格"],accept:function(t,e){if(!e)return!0;var i=e[0],n=s(t).val();return"*"===i||new regexp(".(?:"+i+")$","i").test(n)||this.rendermsg("只接受{1}后缀的文件",i.replace(/\|/g,","))}},messages:{0:"此处",fallback:"{0}格式不正确",loading:"正在验证...",error:"网络异常",timeout:"请求超时",required:"{0}不能为空",remote:"{0}已被使用",integer:{"*":"请填写整数","+":"请填写正整数","+0":"请填写正整数或0","-":"请填写负整数","-0":"请填写负整数或0"},match:{eq:"{0}与{1}不一致",neq:"{0}与{1}不能相同",lt:"{0}必须小于{1}",gt:"{0}必须大于{1}",lte:"{0}不能大于{1}",gte:"{0}不能小于{1}"},range:{rg:"请填写{1}到{2}的数",gte:"请填写不小于{1}的数",lte:"请填写最大{1}的数",gtlt:"请填写{1}到{2}之间的数",gt:"请填写大于{1}的数",lt:"请填写小于{1}的数"},checked:{eq:"请选择{1}项",rg:"请选择{1}到{2}项",gte:"请至少选择{1}项",lte:"请最多选择{1}项"},length:{eq:"请填写{1}个字符",rg:"请填写{1}到{2}个字符",gte:"请至少填写{1}个字符",lte:"请最多填写{1}个字符",eq_2:"",rg_2:"",gte_2:"",lte_2:""}}});var t='';s.validator.settheme({simple_right:{formclass:"n-simple",msgclass:"n-right"},simple_bottom:{formclass:"n-simple",msgclass:"n-bottom"},yellow_top:{formclass:"n-yellow",msgclass:"n-top",msgarrow:t},yellow_right:{formclass:"n-yellow",msgclass:"n-right",msgarrow:t},yellow_right_effect:{formclass:"n-yellow",msgclass:"n-right",msgarrow:t,msgshow:function(t,e){var i=t.children();i.is(":animated")||("error"===e?i.css({left:"20px",opacity:0}).delay(100).show().stop().animate({left:"-4px",opacity:1},150).animate({left:"3px"},80).animate({left:0},80):i.css({left:0,opacity:1}).fadein(200))},msghide:function(t,e){t.children().stop().delay(100).show().animate({left:"20px",opacity:0},300,function(){t.hide()})}}})}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jquery)}(function(m){var t,e,i,n;function s(t,e){var i,n,s,o=t.nodename.tolowercase();return"area"===o?(n=(i=t.parentnode).name,!(!t.href||!n||"map"!==i.nodename.tolowercase())&&(!!(s=m("img[usemap='#"+n+"']")[0])&&a(s))):(/input|select|textarea|button|object/.test(o)?!t.disabled:"a"===o&&t.href||e)&&a(t)}function a(t){return m.expr.filters.visible(t)&&!m(t).parents().addback().filter(function(){return"hidden"===m.css(this,"visibility")}).length}m.ui=m.ui||{},m.extend(m.ui,{version:"1.11.1",keycode:{backspace:8,comma:188,delete:46,down:40,end:35,enter:13,escape:27,home:36,left:37,page_down:34,page_up:33,period:190,right:39,space:32,tab:9,up:38}}),m.fn.extend({scrollparent:function(t){var e=this.css("position"),i="absolute"===e,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/,s=this.parents().filter(function(){var t=m(this);return(!i||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==e&&s.length?s:m(this[0].ownerdocument||document)},uniqueid:(t=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}),removeuniqueid:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&m(this).removeattr("id")})}}),m.extend(m.expr[":"],{data:m.expr.createpseudo?m.expr.createpseudo(function(e){return function(t){return!!m.data(t,e)}}):function(t,e,i){return!!m.data(t,i[3])},focusable:function(t){return s(t,!isnan(m.attr(t,"tabindex")))},tabbable:function(t){var e=m.attr(t,"tabindex"),i=isnan(e);return(i||0<=e)&&s(t,!i)}}),m("").outerwidth(1).jquery||m.each(["width","height"],function(t,i){var s="width"===i?["left","right"]:["top","bottom"],n=i.tolowercase(),o={innerwidth:m.fn.innerwidth,innerheight:m.fn.innerheight,outerwidth:m.fn.outerwidth,outerheight:m.fn.outerheight};function a(t,e,i,n){return m.each(s,function(){e-=parsefloat(m.css(t,"padding"+this))||0,i&&(e-=parsefloat(m.css(t,"border"+this+"width"))||0),n&&(e-=parsefloat(m.css(t,"margin"+this))||0)}),e}m.fn["inner"+i]=function(t){return void 0===t?o["inner"+i].call(this):this.each(function(){m(this).css(n,a(this,t)+"px")})},m.fn["outer"+i]=function(t,e){return"number"!=typeof t?o["outer"+i].call(this,t):this.each(function(){m(this).css(n,a(this,t,!0,e)+"px")})}}),m.fn.addback||(m.fn.addback=function(t){return this.add(null==t?this.prevobject:this.prevobject.filter(t))}),m("").data("a-b","a").removedata("a-b").data("a-b")&&(m.fn.removedata=(e=m.fn.removedata,function(t){return arguments.length?e.call(this,m.camelcase(t)):e.call(this)})),m.ui.ie=!!/msie [\w.]+/.exec(navigator.useragent.tolowercase()),m.fn.extend({focus:(n=m.fn.focus,function(e,i){return"number"==typeof e?this.each(function(){var t=this;settimeout(function(){m(t).focus(),i&&i.call(t)},e)}):n.apply(this,arguments)}),disableselection:(i="onselectstart"in document.createelement("div")?"selectstart":"mousedown",function(){return this.bind(i+".ui-disableselection",function(t){t.preventdefault()})}),enableselection:function(){return this.unbind(".ui-disableselection")},zindex:function(t){if(void 0!==t)return this.css("zindex",t);if(this.length)for(var e,i,n=m(this[0]);n.length&&n[0]!==document;){if(("absolute"===(e=n.css("position"))||"relative"===e||"fixed"===e)&&(i=parseint(n.css("zindex"),10),!isnan(i)&&0!==i))return i;n=n.parent()}return 0}}),m.ui.plugin={add:function(t,e,i){var n,s=m.ui[t].prototype;for(n in i)s.plugins[n]=s.plugins[n]||[],s.plugins[n].push([e,i[n]])},call:function(t,e,i,n){var s,o=t.plugins[e];if(o&&(n||t.element[0].parentnode&&11!==t.element[0].parentnode.nodetype))for(s=0;s",options:{disabled:!1,create:null},_createwidget:function(t,e){e=m(e||this.defaultelement||this)[0],this.element=m(e),this.uuid=r++,this.eventnamespace="."+this.widgetname+this.uuid,this.options=m.widget.extend({},this.options,this._getcreateoptions(),t),this.bindings=m(),this.hoverable=m(),this.focusable=m(),e!==this&&(m.data(e,this.widgetfullname,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=m(e.style?e.ownerdocument:e.document||e),this.window=m(this.document[0].defaultview||this.document[0].parentwindow)),this._create(),this._trigger("create",null,this._getcreateeventdata()),this._init()},_getcreateoptions:m.noop,_getcreateeventdata:m.noop,_create:m.noop,_init:m.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventnamespace).removedata(this.widgetfullname).removedata(m.camelcase(this.widgetfullname)),this.widget().unbind(this.eventnamespace).removeattr("aria-disabled").removeclass(this.widgetfullname+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventnamespace),this.hoverable.removeclass("ui-state-hover"),this.focusable.removeclass("ui-state-focus")},_destroy:m.noop,widget:function(){return this.element},option:function(t,e){var i,n,s,o=t;if(0===arguments.length)return m.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(n=o[t]=m.widget.extend({},this.options[t]),s=0;s=this.options.distance},_mousedelaymet:function(){return this.mousedelaymet},_mousestart:function(){},_mousedrag:function(){},_mousestop:function(){},_mousecapture:function(){return!0}});!function(){m.ui=m.ui||{};var s,x,c=math.max,k=math.abs,d=math.round,n=/left|center|right/,o=/top|center|bottom/,a=/[\+\-]\d+(\.[\d]+)?%?/,r=/^\w+/,l=/%$/,h=m.fn.position;function t(t,e,i){return[parsefloat(t[0])*(l.test(t[0])?e/100:1),parsefloat(t[1])*(l.test(t[1])?i/100:1)]}function s(t,e){return parseint(m.css(t,e),10)||0}m.position={scrollbarwidth:function(){if(void 0!==s)return s;var t,e,i=m("
"),n=i.children()[0];return m("body").append(i),t=n.offsetwidth,i.css("overflow","scroll"),t===(e=n.offsetwidth)&&(e=i[0].clientwidth),i.remove(),s=t-e},getscrollinfo:function(t){var e=t.iswindow||t.isdocument?"":t.element.css("overflow-x"),i=t.iswindow||t.isdocument?"":t.element.css("overflow-y"),n="scroll"===e||"auto"===e&&t.widthc(k(n),k(s))?o.important="horizontal":o.important="vertical",u.using.call(this,t,o)}),a.offset(m.extend(h,{using:t}))})},m.ui.position={fit:{left:function(t,e){var i,n=e.within,s=n.iswindow?n.scrollleft:n.offset.left,o=n.width,a=t.left-e.collisionposition.marginleft,r=s-a,l=a+e.collisionwidth-o-s;e.collisionwidth>o?0o?0h&&(n<0||nc&&(0 li > :first-child,> :not(li):even",heightstyle:"auto",icons:{activeheader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeactivate:null},hideprops:{bordertopwidth:"hide",borderbottomwidth:"hide",paddingtop:"hide",paddingbottom:"hide",height:"hide"},showprops:{bordertopwidth:"show",borderbottomwidth:"show",paddingtop:"show",paddingbottom:"show",height:"show"},_create:function(){var t=this.options;this.prevshow=this.prevhide=m(),this.element.addclass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processpanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getcreateeventdata:function(){return{header:this.active,panel:this.active.length?this.active.next():m()}},_createicons:function(){var t=this.options.icons;t&&(m("").addclass("ui-accordion-header-icon ui-icon "+t.header).prependto(this.headers),this.active.children(".ui-accordion-header-icon").removeclass(t.header).addclass(t.activeheader),this.headers.addclass("ui-accordion-icons"))},_destroyicons:function(){this.headers.removeclass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeclass("ui-accordion ui-widget ui-helper-reset").removeattr("role"),this.headers.removeclass("ui-accordion-header ui-accordion-header-active ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeattr("role").removeattr("aria-expanded").removeattr("aria-selected").removeattr("aria-controls").removeattr("tabindex").removeuniqueid(),this._destroyicons(),t=this.headers.next().removeclass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").css("display","").removeattr("role").removeattr("aria-hidden").removeattr("aria-labelledby").removeuniqueid(),"content"!==this.options.heightstyle&&t.css("height","")},_setoption:function(t,e){"active"!==t?("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupevents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyicons(),e&&this._createicons()),"disabled"===t&&(this.element.toggleclass("ui-state-disabled",!!e).attr("aria-disabled",e),this.headers.add(this.headers.next()).toggleclass("ui-state-disabled",!!e))):this._activate(e)},_keydown:function(t){if(!t.altkey&&!t.ctrlkey){var e=m.ui.keycode,i=this.headers.length,n=this.headers.index(t.target),s=!1;switch(t.keycode){case e.right:case e.down:s=this.headers[(n+1)%i];break;case e.left:case e.up:s=this.headers[(n-1+i)%i];break;case e.space:case e.enter:this._eventhandler(t);break;case e.home:s=this.headers[0];break;case e.end:s=this.headers[i-1]}s&&(m(t.target).attr("tabindex",-1),m(s).attr("tabindex",0),s.focus(),t.preventdefault())}},_panelkeydown:function(t){t.keycode===m.ui.keycode.up&&t.ctrlkey&&m(t.currenttarget).prev().focus()},refresh:function(){var t=this.options;this._processpanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=m()):!1===t.active?this._activate(0):this.active.length&&!m.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=m()):this._activate(math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyicons(),this._refresh()},_processpanels:function(){this.headers=this.element.find(this.options.header).addclass("ui-accordion-header ui-state-default ui-corner-all"),this.headers.next().addclass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var i,t=this.options,e=t.heightstyle,n=this.element.parent();this.active=this._findactive(t.active).addclass("ui-accordion-header-active ui-state-active ui-corner-top").removeclass("ui-corner-all"),this.active.next().addclass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(){var t=m(this),e=t.uniqueid().attr("id"),i=t.next(),n=i.uniqueid().attr("id");t.attr("aria-controls",n),i.attr("aria-labelledby",e)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabindex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabindex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabindex",0),this._createicons(),this._setupevents(t.event),"fill"===e?(i=n.height(),this.element.siblings(":visible").each(function(){var t=m(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerheight(!0))}),this.headers.each(function(){i-=m(this).outerheight(!0)}),this.headers.next().each(function(){m(this).height(math.max(0,i-m(this).innerheight()+m(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.headers.next().each(function(){i=math.max(i,m(this).css("height","").height())}).height(i))},_activate:function(t){var e=this._findactive(t)[0];e!==this.active[0]&&(e=e||this.active[0],this._eventhandler({target:e,currenttarget:e,preventdefault:m.noop}))},_findactive:function(t){return"number"==typeof t?this.headers.eq(t):m()},_setupevents:function(t){var i={keydown:"_keydown"};t&&m.each(t.split(" "),function(t,e){i[e]="_eventhandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelkeydown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventhandler:function(t){var e=this.options,i=this.active,n=m(t.currenttarget),s=n[0]===i[0],o=s&&e.collapsible,a=o?m():n.next(),r={oldheader:i,oldpanel:i.next(),newheader:o?m():n,newpanel:a};t.preventdefault(),s&&!e.collapsible||!1===this._trigger("beforeactivate",t,r)||(e.active=!o&&this.headers.index(n),this.active=s?m():n,this._toggle(r),i.removeclass("ui-accordion-header-active ui-state-active"),e.icons&&i.children(".ui-accordion-header-icon").removeclass(e.icons.activeheader).addclass(e.icons.header),s||(n.removeclass("ui-corner-all").addclass("ui-accordion-header-active ui-state-active ui-corner-top"),e.icons&&n.children(".ui-accordion-header-icon").removeclass(e.icons.header).addclass(e.icons.activeheader),n.next().addclass("ui-accordion-content-active")))},_toggle:function(t){var e=t.newpanel,i=this.prevshow.length?this.prevshow:t.oldpanel;this.prevshow.add(this.prevhide).stop(!0,!0),this.prevshow=e,this.prevhide=i,this.options.animate?this._animate(e,i,t):(i.hide(),e.show(),this._togglecomplete(t)),i.attr({"aria-hidden":"true"}),i.prev().attr("aria-selected","false"),e.length&&i.length?i.prev().attr({tabindex:-1,"aria-expanded":"false"}):e.length&&this.headers.filter(function(){return 0===m(this).attr("tabindex")}).attr("tabindex",-1),e.attr("aria-hidden","false").prev().attr({"aria-selected":"true",tabindex:0,"aria-expanded":"true"})},_animate:function(t,i,e){var n,s,o,a=this,r=0,l=t.length&&(!i.length||t.index()",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activemenu=this.element,this.mousehandled=!1,this.element.uniqueid().addclass("ui-menu ui-widget ui-widget-content").toggleclass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabindex:0}),this.options.disabled&&this.element.addclass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item":function(t){t.preventdefault()},"click .ui-menu-item":function(t){var e=m(t.target);!this.mousehandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.ispropagationstopped()||(this.mousehandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&m(this.document[0].activeelement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&cleartimeout(this.timer)))},"mouseenter .ui-menu-item":function(t){var e=m(t.currenttarget);e.siblings(".ui-state-active").removeclass("ui-state-active"),this.focus(t,e)},mouseleave:"collapseall","mouseleave .ui-menu":"collapseall",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(t){this._delay(function(){m.contains(this.element[0],this.document[0].activeelement)||this.collapseall(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeondocumentclick(t)&&this.collapseall(t),this.mousehandled=!1}})},_destroy:function(){this.element.removeattr("aria-activedescendant").find(".ui-menu").addback().removeclass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeattr("role").removeattr("tabindex").removeattr("aria-labelledby").removeattr("aria-expanded").removeattr("aria-hidden").removeattr("aria-disabled").removeuniqueid().show(),this.element.find(".ui-menu-item").removeclass("ui-menu-item").removeattr("role").removeattr("aria-disabled").removeuniqueid().removeclass("ui-state-hover").removeattr("tabindex").removeattr("role").removeattr("aria-haspopup").children().each(function(){var t=m(this);t.data("ui-menu-submenu-carat")&&t.remove()}),this.element.find(".ui-menu-divider").removeclass("ui-menu-divider ui-widget-content")},_keydown:function(t){var e,i,n,s,o,a=!0;function r(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}switch(t.keycode){case m.ui.keycode.page_up:this.previouspage(t);break;case m.ui.keycode.page_down:this.nextpage(t);break;case m.ui.keycode.home:this._move("first","first",t);break;case m.ui.keycode.end:this._move("last","last",t);break;case m.ui.keycode.up:this.previous(t);break;case m.ui.keycode.down:this.next(t);break;case m.ui.keycode.left:this.collapse(t);break;case m.ui.keycode.right:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case m.ui.keycode.enter:case m.ui.keycode.space:this._activate(t);break;case m.ui.keycode.escape:this.collapse(t);break;default:a=!1,i=this.previousfilter||"",n=string.fromcharcode(t.keycode),s=!1,cleartimeout(this.filtertimer),n===i?s=!0:n=i+n,o=new regexp("^"+r(n),"i"),e=this.activemenu.find(this.options.items).filter(function(){return o.test(m(this).text())}),(e=s&&-1!==e.index(this.active.next())?this.active.nextall(".ui-menu-item"):e).length||(n=string.fromcharcode(t.keycode),o=new regexp("^"+r(n),"i"),e=this.activemenu.find(this.options.items).filter(function(){return o.test(m(this).text())})),e.length?(this.focus(t,e),1").addclass("ui-menu-icon ui-icon "+n).data("ui-menu-submenu-carat",!0);e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),(t=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=m(this);e._isdivider(t)&&t.addclass("ui-widget-content ui-menu-divider")}),t.not(".ui-menu-item, .ui-menu-divider").addclass("ui-menu-item").uniqueid().attr({tabindex:-1,role:this._itemrole()}),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!m.contains(this.element[0],this.active[0])&&this.blur()},_itemrole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setoption:function(t,e){"icons"===t&&this.element.find(".ui-menu-icon").removeclass(this.options.icons.submenu).addclass(e.submenu),"disabled"===t&&this.element.toggleclass("ui-state-disabled",!!e).attr("aria-disabled",e),this._super(t,e)},focus:function(t,e){var i,n;this.blur(t,t&&"focus"===t.type),this._scrollintoview(e),this.active=e.first(),n=this.active.addclass("ui-state-focus").removeclass("ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),this.active.parent().closest(".ui-menu-item").addclass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startopening(i),this.activemenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollintoview:function(t){var e,i,n,s,o,a;this._hasscroll()&&(e=parsefloat(m.css(this.activemenu[0],"bordertopwidth"))||0,i=parsefloat(m.css(this.activemenu[0],"paddingtop"))||0,n=t.offset().top-this.activemenu.offset().top-e-i,s=this.activemenu.scrolltop(),o=this.activemenu.height(),a=t.outerheight(),n<0?this.activemenu.scrolltop(s+n):o",options:{appendto:null,autofocus:!1,delay:300,minlength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestindex:0,pending:0,_create:function(){var i,n,s,t=this.element[0].nodename.tolowercase(),e="textarea"===t,o="input"===t;this.ismultiline=!!e||!o&&this.element.prop("iscontenteditable"),this.valuemethod=this.element[e||o?"val":"text"],this.isnewmenu=!0,this.element.addclass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readonly"))n=s=i=!0;else{n=s=i=!1;var e=m.ui.keycode;switch(t.keycode){case e.page_up:i=!0,this._move("previouspage",t);break;case e.page_down:i=!0,this._move("nextpage",t);break;case e.up:i=!0,this._keyevent("previous",t);break;case e.down:i=!0,this._keyevent("next",t);break;case e.enter:this.menu.active&&(i=!0,t.preventdefault(),this.menu.select(t));break;case e.tab:this.menu.active&&this.menu.select(t);break;case e.escape:this.menu.element.is(":visible")&&(this.ismultiline||this._value(this.term),this.close(t),t.preventdefault());break;default:n=!0,this._searchtimeout(t)}}},keypress:function(t){if(i)return i=!1,void(this.ismultiline&&!this.menu.element.is(":visible")||t.preventdefault());if(!n){var e=m.ui.keycode;switch(t.keycode){case e.page_up:this._move("previouspage",t);break;case e.page_down:this._move("nextpage",t);break;case e.up:this._keyevent("previous",t);break;case e.down:this._keyevent("next",t)}}},input:function(t){if(s)return s=!1,void t.preventdefault();this._searchtimeout(t)},focus:function(){this.selecteditem=null,this.previous=this._value()},blur:function(t){this.cancelblur?delete this.cancelblur:(cleartimeout(this.searching),this.close(t),this._change(t))}}),this._initsource(),this.menu=m("