/** layui-v1.0.9_rls mit license by http://www.layui.com */ ;!function(e){"use strict";var t=function(){this.v="1.0.9_rls"};t.fn=t.prototype;var n=document,o=t.fn.cache={},i=function(){var e=n.scripts,t=e[e.length-1].src;return t.substring(0,t.lastindexof("/")+1)}(),r=function(t){e.console&&console.error&&console.error("layui hint: "+t)},l="undefined"!=typeof opera&&"[object opera]"===opera.tostring(),a={layer:"modules/layer",laydate:"modules/laydate",laypage:"modules/laypage",laytpl:"modules/laytpl",layim:"modules/layim",layedit:"modules/layedit",form:"modules/form",upload:"modules/upload",tree:"modules/tree",table:"modules/table",element:"modules/element",util:"modules/util",flow:"modules/flow",carousel:"modules/carousel",code:"modules/code",jquery:"modules/jquery",mobile:"modules/mobile","layui.all":"dest/layui.all"};o.modules={},o.status={},o.timeout=10,o.event={},t.fn.define=function(e,t){var n=this,i="function"==typeof e,r=function(){return"function"==typeof t&&t(function(e,t){layui[e]=t,o.status[e]=!0}),this};return i&&(t=e,e=[]),layui["layui.all"]||!layui["layui.all"]&&layui["layui.mobile"]?r.call(n):(n.use(e,r),n)},t.fn.use=function(e,t,u){function s(e,t){var n="playstation 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===e.type||n.test((e.currenttarget||e.srcelement).readystate))&&(o.modules[m]=t,y.removechild(p),function i(){return++v>1e3*o.timeout/4?r(m+" is not a valid module"):void(o.status[m]?c():settimeout(i,4))}())}function c(){u.push(layui[m]),e.length>1?f.use(e.slice(1),t,u):"function"==typeof t&&t.apply(layui,u)}var f=this,d=o.dir=o.dir?o.dir:i,y=n.getelementsbytagname("head")[0];e="string"==typeof e?[e]:e,window.jquery&&jquery.fn.on&&(f.each(e,function(t,n){"jquery"===n&&e.splice(t,1)}),layui.jquery=jquery);var m=e[0],v=0;if(u=u||[],o.host=o.host||(d.match(/\/\/([\s\s]+?)\//)||["//"+location.host+"/"])[0],0===e.length||layui["layui.all"]&&a[m]||!layui["layui.all"]&&layui["layui.mobile"]&&a[m])return c(),f;var p=n.createelement("script"),h=(a[m]?d+"lay/":o.base||"")+(f.modules[m]||m)+".js";return p.async=!0,p.charset="utf-8",p.src=h+function(){var e=o.version===!0?o.v||(new date).gettime():o.version||"";return e?"?v="+e:""}(),o.modules[m]?!function g(){return++v>1e3*o.timeout/4?r(m+" is not a valid module"):void("string"==typeof o.modules[m]&&o.status[m]?c():settimeout(g,4))}():(y.appendchild(p),!p.attachevent||p.attachevent.tostring&&p.attachevent.tostring().indexof("[native code")<0||l?p.addeventlistener("load",function(e){s(e,h)},!1):p.attachevent("onreadystatechange",function(e){s(e,h)})),o.modules[m]=h,f},t.fn.getstyle=function(t,n){var o=t.currentstyle?t.currentstyle:e.getcomputedstyle(t,null);return o[o.getpropertyvalue?"getpropertyvalue":"getattribute"](n)},t.fn.link=function(e,t,i){var l=this,a=n.createelement("link"),u=n.getelementsbytagname("head")[0];"string"==typeof t&&(i=t);var s=(i||e).replace(/\.|\//g,""),c=a.id="layuicss-"+s,f=0;a.rel="stylesheet",a.href=e+(o.debug?"?v="+(new date).gettime():""),a.media="all",n.getelementbyid(c)||u.appendchild(a),"function"==typeof t&&!function d(){return++f>1e3*o.timeout/100?r(e+" timeout"):void(1989===parseint(l.getstyle(n.getelementbyid(c),"width"))?function(){t()}():settimeout(d,100))}()},t.fn.addcss=function(e,t,n){layui.link(o.dir+"css/"+e,t,n)},t.fn.img=function(e,t,n){var o=new image;return o.src=e,o.complete?t(o):(o.onload=function(){o.onload=null,t(o)},void(o.onerror=function(e){o.onerror=null,n(e)}))},t.fn.config=function(e){e=e||{};for(var t in e)o[t]=e[t];return this},t.fn.modules=function(){var e={};for(var t in a)e[t]=a[t];return e}(),t.fn.extend=function(e){var t=this;e=e||{};for(var n in e)t[n]||t.modules[n]?r("模块名 "+n+" 已被占用"):t.modules[n]=e[n];return t},t.fn.router=function(e){for(var t,n=(e||location.hash).replace(/^#/,"").split("/")||[],o={dir:[]},i=0;i/g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var n="laytpl error:";return"object"==typeof console&&console.error(n+e+"\n"+(r||"")),n+e}},c=n.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=c("^"+r.open+"#",""),l=c(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(c(r.open+"#"),r.open+"# ").replace(c(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(/(?="|')/g,"\\").replace(n.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(n.query(1),function(e){var n='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(c(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),n='"+_escape_('),n+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new function("d, _escape_",e),e(t,n.escape)}catch(u){return delete o.cache,n.error(u,p)}},t.pt.render=function(e,r){var c,t=this;return e?(c=t.cache?t.cache(e,n.escape):t.parse(t.tpl,e),r?void r(c):c):n.error("no data")};var o=function(e){return"string"!=typeof e?n.error("template not found"):new t(e)};o.config=function(e){e=e||{};for(var n in e)r[n]=e[n]},o.v="1.2.0",e("laytpl",o)});layui.define(function(a){"use strict";function t(a){new p(a)}var e=document,r="getelementbyid",n="getelementsbytagname",s=0,p=function(a){var t=this,e=t.config=a||{};e.item=s++,t.render(!0)};p.on=function(a,t,e){return a.attachevent?a.attachevent("on"+t,function(){e.call(a,window.even)}):a.addeventlistener(t,e,!1),p},p.prototype.type=function(){var a=this.config;if("object"==typeof a.cont)return void 0===a.cont.length?2:3},p.prototype.view=function(){var a=this,t=a.config,e=[],r={};if(t.pages=0|t.pages,t.curr=0|t.curr||1,t.groups="groups"in t?0|t.groups:5,t.first="first"in t?t.first:"首页",t.last="last"in t?t.last:"末页",t.prev="prev"in t?t.prev:"上一页",t.next="next"in t?t.next:"下一页",t.pages<=1)return"";for(t.groups>t.pages&&(t.groups=t.pages),r.index=math.ceil((t.curr+(t.groups>1&&t.groups!==t.pages?1:0))/(0===t.groups?1:t.groups)),t.curr>1&&t.prev&&e.push(''+t.prev+""),r.index>1&&t.first&&0!==t.groups&&e.push(''+t.first+""),r.poor=math.floor((t.groups-1)/2),r.start=r.index>1?t.curr-r.poor:1,r.end=r.index>1?function(){var a=t.curr+(t.groups-r.poor-1);return a>t.pages?t.pages:a}():t.groups,r.end-r.start"+r.start+""):e.push(''+r.start+"");return t.pages>t.groups&&r.end'+t.last+""),r.flow=!t.prev&&0===t.groups,(t.curr!==t.pages&&t.next||r.flow)&&e.push(function(){return r.flow&&t.curr===t.pages?''+t.next+"":''+t.next+""}()),'
'+e.join("")+function(){return t.skip?'到第 ':""}()+"
"},p.prototype.jump=function(a){if(a){for(var t=this,e=t.config,r=a.children,s=a[n]("button")[0],i=a[n]("input")[0],u=0,o=r.length;un.maxs[0]?s=["y",1]:e>=n.mins[0]&&e<=n.maxs[0]&&(e==n.mins[0]&&(tn.maxs[1]?s=["m",1]:t==n.maxs[1]&&a>n.maxs[2]&&(s=["d",1]))),s},n.timevoid=function(e,t){if(n.ymd[1]+1==n.mins[1]&&n.ymd[2]==n.mins[2]){if(0===t&&en.maxs[3])return 1;if(1===t&&e>n.maxs[4])return 1;if(2===t&&e>n.maxs[5])return 1}if(e>(t?59:23))return 1},n.check=function(){var e=n.options.format.replace(/yyyy|mm|dd|hh|mm|ss/g,"\\d+\\").replace(/\\$/g,""),t=new regexp(e),a=n.elem[d.elemv],s=a.match(/\d+/g)||[],i=n.checkvoid(s[0],s[1],s[2]);if(""!==a.replace(/\s/g,"")){if(!t.test(a))return n.elem[d.elemv]="",n.msg("日期不符合格式,请重新选择。"),1;if(i[0])return n.elem[d.elemv]="",n.msg("日期不在有效期内,请重新选择。"),1;i.value=n.elem[d.elemv].match(t).join(),s=i.value.match(/\d+/g),s[1]<1?(s[1]=1,i.auto=1):s[1]>12?(s[1]=12,i.auto=1):s[1].length<2&&(i.auto=1),s[2]<1?(s[2]=1,i.auto=1):s[2]>n.months[(0|s[1])-1]?(s[2]=31,i.auto=1):s[2].length<2&&(i.auto=1),s.length>3&&(n.timevoid(s[3],0)&&(i.auto=1),n.timevoid(s[4],1)&&(i.auto=1),n.timevoid(s[5],2)&&(i.auto=1)),i.auto?n.creation([s[0],0|s[1],0|s[2]],1):i.value!==n.elem[d.elemv]&&(n.elem[d.elemv]=i.value)}},n.months=[31,null,31,30,31,30,31,31,30,31,30,31],n.viewdate=function(e,t,a){var s=(n.query,{}),i=new date;e<(0|n.mins[0])&&(e=0|n.mins[0]),e>(0|n.maxs[0])&&(e=0|n.maxs[0]),i.setfullyear(e,t,a),s.ymd=[i.getfullyear(),i.getmonth(),i.getdate()],n.months[1]=n.isleap(s.ymd[0])?29:28,i.setfullyear(s.ymd[0],s.ymd[1],1),s.fday=i.getday(),s.pday=n.months[0===t?11:t-1]-s.fday+1,s.nday=1,n.each(d.tds,function(e,t){var a,i=s.ymd[0],o=s.ymd[1]+1;t.classname="",e=s.fday&&e'+e+"年":'
  • '+(e-7+t)+"年
  • "}),t("#laydate_ys").innerhtml=a,n.each(t("#laydate_ys li"),function(e,t){"y"===n.checkvoid(t.getattribute("y"))[0]?n.addclass(t,d[1]):n.on(t,"click",function(e){n.stopmp(e).reshow(),n.viewdate(0|this.getattribute("y"),n.ymd[1],n.ymd[2])})})},n.initdate=function(){var e=(n.query,new date),t=n.elem[d.elemv].match(/\d+/g)||[];t.length<3&&(t=n.options.start.match(/\d+/g)||[],t.length<3&&(t=[e.getfullyear(),e.getmonth()+1,e.getdate()])),n.inymd=t,n.viewdate(t[0],t[1]-1,t[2])},n.iswrite=function(){var e=n.query,t={time:e("#laydate_hms")};n.shde(t.time,!n.options.istime),n.shde(d.oclear,!("isclear"in n.options?n.options.isclear:1)),n.shde(d.otoday,!("istoday"in n.options?n.options.istoday:1)),n.shde(d.ok,!("issure"in n.options?n.options.issure:1))},n.orien=function(e,t){var a,s=n.elem.getboundingclientrect();e.style.left=s.left+(t?0:n.scroll(1))+"px",a=s.bottom+e.offsetheight/1.5<=n.winarea()?s.bottom-1:s.top>e.offsetheight/1.5?s.top-e.offsetheight+1:n.winarea()-e.offsetheight,e.style.top=math.max(a+(t?0:n.scroll()),1)+"px"},n.follow=function(e){n.options.fixed?(e.style.position="fixed",n.orien(e,1)):(e.style.position="absolute",n.orien(e))},n.viewtb=function(){var e,t=[],a=["日","一","二","三","四","五","六"],o={},d=s[i]("table"),r=s[i]("thead");return r.appendchild(s[i]("tr")),o.creath=function(e){var t=s[i]("th");t.innerhtml=a[e],r[l]("tr")[0].appendchild(t),t=null},n.each(new array(6),function(a){t.push([]),e=d.insertrow(0),n.each(new array(7),function(n){t[a][n]=0,0===a&&o.creath(n),e.insertcell(n)})}),d.insertbefore(r,d.children[0]),d.id=d.classname="laydate_table",e=t=null,d.outerhtml.tolowercase()}(),n.view=function(e,t){var o,l=n.query,r={};t=t||e,n.elem=e,n.options=t,n.options.format||(n.options.format=a.format),n.options.start=n.options.start||"",n.mm=r.mm=[n.options.min||a.min,n.options.max||a.max],n.mins=r.mm[0].match(/\d+/g),n.maxs=r.mm[1].match(/\d+/g),n.box?n.shde(n.box):(o=s[i]("div"),o.id=d[0],o.classname=d[0],o.style.csstext="position: absolute;",o.setattribute("name","laydate-v"+laydate.v),o.innerhtml=r.html='
      '+function(){var e="";return n.each(new array(12),function(t){e+=''+n.digit(t+1)+"月"}),e}()+"
      "+n.viewtb+'",s.body.appendchild(o),n.box=l("#"+d[0]),n.events(),o=null),n.follow(n.box),t.zindex?n.box.style.zindex=t.zindex:n.removecssattr(n.box,"z-index"),n.stopmosup("click",n.box),n.initdate(),n.iswrite(),n.check()},n.reshow=function(){return n.each(n.query("#"+d[0]+" .laydate_show"),function(e,t){n.removeclass(t,"laydate_show")}),this},n.close=function(){n.reshow(),n.shde(n.query("#"+d[0]),1),n.elem=null},n.parse=function(e,t,s){return e=e.concat(t),s=s||(n.options?n.options.format:a.format),s.replace(/yyyy|mm|dd|hh|mm|ss/g,function(t,a){return e.index=0|++e.index,n.digit(e[e.index])})},n.creation=function(e,t){var a=(n.query,n.hmsin),s=n.parse(e,[a[0].value,a[1].value,a[2].value]);n.elem[d.elemv]=s,t||(n.close(),"function"==typeof n.options.choose&&n.options.choose(s))},n.events=function(){var e=n.query,a={box:"#"+d[0]};n.addclass(s.body,"laydate_body"),d.tds=e("#laydate_table td"),d.mms=e("#laydate_ms span"),d.year=e("#laydate_y"),d.month=e("#laydate_m"),n.each(e(a.box+" .laydate_ym"),function(e,t){n.on(t,"click",function(t){n.stopmp(t).reshow(),n.addclass(this[l]("div")[0],"laydate_show"),e||(a.yy=parseint(d.year.value),n.viewyears(a.yy))})}),n.on(e(a.box),"click",function(){n.reshow()}),a.tabyear=function(e){0===e?n.ymd[0]--:1===e?n.ymd[0]++:2===e?a.yy-=14:a.yy+=14,e<2?(n.viewdate(n.ymd[0],n.ymd[1],n.ymd[2]),n.reshow()):n.viewyears(a.yy)},n.each(e("#laydate_yy .laydate_tab"),function(e,t){n.on(t,"click",function(t){n.stopmp(t),a.tabyear(e)})}),a.tabmonth=function(e){e?(n.ymd[1]++,12===n.ymd[1]&&(n.ymd[0]++,n.ymd[1]=0)):(n.ymd[1]--,n.ymd[1]===-1&&(n.ymd[0]--,n.ymd[1]=11)),n.viewdate(n.ymd[0],n.ymd[1],n.ymd[2])},n.each(e("#laydate_mm .laydate_tab"),function(e,t){n.on(t,"click",function(t){n.stopmp(t).reshow(),a.tabmonth(e)})}),n.each(e("#laydate_ms span"),function(e,t){n.on(t,"click",function(e){n.stopmp(e).reshow(),n.hasclass(this,d[1])||n.viewdate(n.ymd[0],0|this.getattribute("m"),n.ymd[2])})}),n.each(e("#laydate_table td"),function(e,t){n.on(t,"click",function(e){n.hasclass(this,d[1])||(n.stopmp(e),n.creation([0|this.getattribute("y"),0|this.getattribute("m"),0|this.getattribute("d")]))})}),d.oclear=e("#laydate_clear"),n.on(d.oclear,"click",function(){n.elem[d.elemv]="",n.close()}),d.otoday=e("#laydate_today"),n.on(d.otoday,"click",function(){var e=new date;n.creation([e.getfullyear(),e.getmonth()+1,e.getdate()])}),d.ok=e("#laydate_ok"),n.on(d.ok,"click",function(){n.valid&&n.creation([n.ymd[0],n.ymd[1]+1,n.ymd[2]])}),a.times=e("#laydate_time"),n.hmsin=a.hmsin=e("#laydate_hms input"),a.hmss=["小时","分钟","秒数"],a.hmsarr=[],n.msg=function(t,s){var i='
      '+(s||"提示")+"×
      ";"string"==typeof t?(i+="

      "+t+"

      ",n.shde(e("#"+d[0])),n.removeclass(a.times,"laydate_time1").addclass(a.times,"laydate_msg")):(a.hmsarr[t]?i=a.hmsarr[t]:(i+='
      ',n.each(new array(0===t?24:60),function(e){i+=""+e+""}),i+="
      ",a.hmsarr[t]=i),n.removeclass(a.times,"laydate_msg"),n[0===t?"removeclass":"addclass"](a.times,"laydate_time1")),n.addclass(a.times,"laydate_show"),a.times.innerhtml=i},a.hmson=function(t,a){var s=e("#laydate_hmsno span"),i=n.valid?null:1;n.each(s,function(e,s){i?n.addclass(s,d[1]):n.timevoid(e,a)?n.addclass(s,d[1]):n.on(s,"click",function(e){n.hasclass(this,d[1])||(t.value=n.digit(0|this.innerhtml))})}),n.addclass(s[0|t.value],"laydate_click")},n.each(a.hmsin,function(e,t){n.on(t,"click",function(t){n.stopmp(t).reshow(),n.msg(e,a.hmss[e]),a.hmson(this,e)})}),n.on(s,"mouseup",function(){var t=e("#"+d[0]);t&&"none"!==t.style.display&&(n.check()||n.close())}).on(s,"keydown",function(e){e=e||t.event;var a=e.keycode;13===a&&n.elem&&n.creation([n.ymd[0],n.ymd[1]+1,n.ymd[2]])})},laydate.reset=function(){n.box&&n.elem&&n.follow(n.box)},laydate.now=function(e,t){var a=new date(0|e?function(e){return e<864e5?+new date+864e5*e:e}(parseint(e)):+new date);return n.parse([a.getfullyear(),a.getmonth()+1,a.getdate()],[a.gethours(),a.getminutes(),a.getseconds()],t)},layui.addcss("modules/laydate/laydate.css",function(){},"laydatecss"),e("laydate",laydate)});!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(e,t){function n(e){var t=!!e&&"length"in e&&e.length,n=pe.type(e);return"function"!==n&&!pe.iswindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e,t,n){if(pe.isfunction(t))return pe.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodetype)return pe.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(ce.test(t))return pe.filter(t,e,n);t=pe.filter(t,e)}return pe.grep(e,function(e){return pe.inarray(e,t)>-1!==n})}function i(e,t){do e=e[t];while(e&&1!==e.nodetype);return e}function o(e){var t={};return pe.each(e.match(de)||[],function(e,n){t[n]=!0}),t}function a(){re.addeventlistener?(re.removeeventlistener("domcontentloaded",s),e.removeeventlistener("load",s)):(re.detachevent("onreadystatechange",s),e.detachevent("onload",s))}function s(){(re.addeventlistener||"load"===e.event.type||"complete"===re.readystate)&&(a(),pe.ready())}function u(e,t,n){if(void 0===n&&1===e.nodetype){var r="data-"+t.replace(_e,"-$1").tolowercase();if(n=e.getattribute(r),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:qe.test(n)?pe.parsejson(n):n)}catch(i){}pe.data(e,t,n)}else n=void 0}return n}function l(e){var t;for(t in e)if(("data"!==t||!pe.isemptyobject(e[t]))&&"tojson"!==t)return!1;return!0}function c(e,t,n,r){if(he(e)){var i,o,a=pe.expando,s=e.nodetype,u=s?pe.cache:e,l=s?e[a]:e[a]&&a;if(l&&u[l]&&(r||u[l].data)||void 0!==n||"string"!=typeof t)return l||(l=s?e[a]=ne.pop()||pe.guid++:a),u[l]||(u[l]=s?{}:{tojson:pe.noop}),"object"!=typeof t&&"function"!=typeof t||(r?u[l]=pe.extend(u[l],t):u[l].data=pe.extend(u[l].data,t)),o=u[l],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[pe.camelcase(t)]=n),"string"==typeof t?(i=o[t],null==i&&(i=o[pe.camelcase(t)])):i=o,i}}function f(e,t,n){if(he(e)){var r,i,o=e.nodetype,a=o?pe.cache:e,s=o?e[pe.expando]:pe.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){pe.isarray(t)?t=t.concat(pe.map(t,pe.camelcase)):t in r?t=[t]:(t=pe.camelcase(t),t=t in r?[t]:t.split(" ")),i=t.length;for(;i--;)delete r[t[i]];if(n?!l(r):!pe.isemptyobject(r))return}(n||(delete a[s].data,l(a[s])))&&(o?pe.cleandata([e],!0):fe.deleteexpando||a!=a.window?delete a[s]:a[s]=void 0)}}}function d(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return pe.css(e,t,"")},u=s(),l=n&&n[3]||(pe.cssnumber[t]?"":"px"),c=(pe.cssnumber[t]||"px"!==l&&+u)&&me.exec(pe.css(e,t));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do o=o||".5",c/=o,pe.style(e,t,c+l);while(o!==(o=s()/u)&&1!==o&&--a)}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function p(e){var t=ze.split("|"),n=e.createdocumentfragment();if(n.createelement)for(;t.length;)n.createelement(t.pop());return n}function h(e,t){var n,r,i=0,o="undefined"!=typeof e.getelementsbytagname?e.getelementsbytagname(t||"*"):"undefined"!=typeof e.queryselectorall?e.queryselectorall(t||"*"):void 0;if(!o)for(o=[],n=e.childnodes||e;null!=(r=n[i]);i++)!t||pe.nodename(r,t)?o.push(r):pe.merge(o,h(r,t));return void 0===t||t&&pe.nodename(e,t)?pe.merge([e],o):o}function g(e,t){for(var n,r=0;null!=(n=e[r]);r++)pe._data(n,"globaleval",!t||pe._data(t[r],"globaleval"))}function m(e){be.test(e.type)&&(e.defaultchecked=e.checked)}function y(e,t,n,r,i){for(var o,a,s,u,l,c,f,d=e.length,y=p(t),v=[],x=0;x"!==f[1]||ve.test(a)?0:u:u.firstchild,o=a&&a.childnodes.length;o--;)pe.nodename(c=a.childnodes[o],"tbody")&&!c.childnodes.length&&a.removechild(c);for(pe.merge(v,u.childnodes),u.textcontent="";u.firstchild;)u.removechild(u.firstchild);u=y.lastchild}else v.push(t.createtextnode(a));for(u&&y.removechild(u),fe.appendchecked||pe.grep(h(v,"input"),m),x=0;a=v[x++];)if(r&&pe.inarray(a,r)>-1)i&&i.push(a);else if(s=pe.contains(a.ownerdocument,a),u=h(y.appendchild(a),"script"),s&&g(u),n)for(o=0;a=u[o++];)ie.test(a.type||"")&&n.push(a);return u=null,y}function v(){return!0}function x(){return!1}function b(){try{return re.activeelement}catch(e){}}function w(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)w(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=x;else if(!i)return e;return 1===o&&(a=i,i=function(e){return pe().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=pe.guid++)),e.each(function(){pe.event.add(this,t,i,r,n)})}function t(e,t){return pe.nodename(e,"table")&&pe.nodename(11!==t.nodetype?t:t.firstchild,"tr")?e.getelementsbytagname("tbody")[0]||e.appendchild(e.ownerdocument.createelement("tbody")):e}function c(e){return e.type=(null!==pe.find.attr(e,"type"))+"/"+e.type,e}function e(e){var t=it.exec(e.type);return t?e.type=t[1]:e.removeattribute("type"),e}function n(e,t){if(1===t.nodetype&&pe.hasdata(e)){var n,r,i,o=pe._data(e),a=pe._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;r1&&"string"==typeof p&&!fe.checkclone&&rt.test(p))return e.each(function(i){var o=e.eq(i);g&&(t[0]=p.call(this,i,o.html())),s(o,t,n,r)});if(f&&(l=y(t,e[0].ownerdocument,!1,e,r),i=l.firstchild,1===l.childnodes.length&&(l=i),i||r)){for(s=pe.map(h(l,"script"),c),a=s.length;c")).appendto(t.documentelement),t=(ut[0].contentwindow||ut[0].contentdocument).document,t.write(),t.close(),n=d(e,t),ut.detach()),lt[e]=n),n}function l(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function h(e){if(e in et)return e;for(var t=e.charat(0).touppercase()+e.slice(1),n=ct.length;n--;)if(e=ct[n]+t,e in et)return e}function q(e,t){for(var n,r,i,o=[],a=0,s=e.length;a=0&&n=0},isemptyobject:function(e){var t;for(t in e)return!1;return!0},isplainobject:function(e){var t;if(!e||"object"!==pe.type(e)||e.nodetype||pe.iswindow(e))return!1;try{if(e.constructor&&!ce.call(e,"constructor")&&!ce.call(e.constructor.prototype,"isprototypeof"))return!1}catch(n){return!1}if(!fe.ownfirst)for(t in e)return ce.call(e,t);for(t in e);return void 0===t||ce.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ue[le.call(e)]||"object":typeof e},globaleval:function(t){t&&pe.trim(t)&&(e.execscript||function(t){e.eval.call(e,t)})(t)},camelcase:function(e){return e.replace(ge,"ms-").replace(me,ye)},nodename:function(e,t){return e.nodename&&e.nodename.tolowercase()===t.tolowercase()},each:function(e,t){var r,i=0;if(n(e))for(r=e.length;it.cachelength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[p]=!0,e}function i(e){var t=h.createelement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentnode&&t.parentnode.removechild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)t.attrhandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodetype&&1===t.nodetype&&(~t.sourceindex||v)-(~e.sourceindex||v);if(r)return r;if(n)for(;n=n.nextsibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodename.tolowercase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodename.tolowercase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&"undefined"!=typeof e.getelementsbytagname&&e}function f(){}function d(e){for(var t=0,n=e.length,r="";t1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function g(e,n,r){for(var i=0,o=n.length;i-1&&(r[l]=!(a[l]=f))}}else x=m(x===a?x.splice(h,x.length):x),o?o(null,a,x,u):q.apply(a,x)})}function v(e){for(var t,n,r,i=e.length,o=t.relative[e[0].type],a=o||t.relative[" "],s=o?1:0,u=p(function(e){return e===t},a,!0),l=p(function(e){return ee(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==a)||((t=n).nodetype?u(e,n,r):l(e,n,r));return t=null,i}];s1&&h(c),s>1&&d(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),n,s0,o=e.length>0,a=function(r,a,s,u,l){var c,f,d,p=0,h="0",g=r&&[],y=[],v=a,x=r||o&&t.find.tag("*",l),b=w+=null==v?1:math.random()||.1,w=x.length;for(l&&(a=a===h||a||l);h!==w&&null!=(c=x[h]);h++){if(o&&c){for(f=0,a||c.ownerdocument===h||(l(c),s=!_);d=e[f++];)if(d(c,a||h,s)){u.push(c);break}l&&(w=b)}i&&((c=!d&&c)&&p--,r&&g.push(c))}if(p+=h,i&&h!==p){for(f=0;d=n[f++];)d(g,y,a,s);if(r){if(p>0)for(;h--;)g[h]||y[h]||(y[h]=g.call(u));y=m(y)}q.apply(u,y),l&&!r&&y.length>0&&p+n.length>1&&t.uniquesort(u)}return l&&(w=b,a=v),g};return i?r(a):a}var b,w,t,c,e,n,k,s,a,d,j,l,h,q,_,f,m,o,r,p="sizzle"+1*new date,b=e.document,w=0,i=0,$=n(),z=n(),x=n(),u=function(e,t){return e===t&&(j=!0),0},v=1<<31,y={}.hasownproperty,j=[],g=j.pop,k=j.push,q=j.push,z=j.slice,ee=function(e,t){for(var n=0,r=e.length;n+~]|"+ne+")"+ne+"*"),ce=new regexp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),fe=new regexp(oe),de=new regexp("^"+re+"$"),pe={id:new regexp("^#("+re+")"),class:new regexp("^\\.("+re+")"),tag:new regexp("^("+re+"|[*])"),attr:new regexp("^"+ie),pseudo:new regexp("^"+oe),child:new regexp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new regexp("^(?:"+te+")$","i"),needscontext:new regexp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,xe=/'|\\/g,be=new regexp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),we=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?string.fromcharcode(r+65536):string.fromcharcode(r>>10|55296,1023&r|56320)},te=function(){l()};try{q.apply(j=z.call(b.childnodes),b.childnodes),j[b.childnodes.length].nodetype}catch(ce){q={apply:j.length?function(e,t){k.apply(e,z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}w=t.support={},e=t.isxml=function(e){var t=e&&(e.ownerdocument||e).documentelement;return!!t&&"html"!==t.nodename},l=t.setdocument=function(e){var t,n,r=e?e.ownerdocument||e:b;return r!==h&&9===r.nodetype&&r.documentelement?(h=r,q=h.documentelement,_=!e(h),(n=h.defaultview)&&n.top!==n&&(n.addeventlistener?n.addeventlistener("unload",te,!1):n.attachevent&&n.attachevent("onunload",te)),w.attributes=i(function(e){return e.classname="i",!e.getattribute("classname")}),w.getelementsbytagname=i(function(e){return e.appendchild(h.createcomment("")),!e.getelementsbytagname("*").length}),w.getelementsbyclassname=me.test(h.getelementsbyclassname),w.getbyid=i(function(e){return q.appendchild(e).id=p,!h.getelementsbyname||!h.getelementsbyname(p).length}),w.getbyid?(t.find.id=function(e,t){if("undefined"!=typeof t.getelementbyid&&_){var n=t.getelementbyid(e);return n?[n]:[]}},t.filter.id=function(e){var t=e.replace(be,we);return function(e){return e.getattribute("id")===t}}):(delete t.find.id,t.filter.id=function(e){var t=e.replace(be,we);return function(e){var n="undefined"!=typeof e.getattributenode&&e.getattributenode("id");return n&&n.value===t}}),t.find.tag=w.getelementsbytagname?function(e,t){return"undefined"!=typeof t.getelementsbytagname?t.getelementsbytagname(e):w.qsa?t.queryselectorall(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getelementsbytagname(e);if("*"===e){for(;n=o[i++];)1===n.nodetype&&r.push(n);return r}return o},t.find.class=w.getelementsbyclassname&&function(e,t){if("undefined"!=typeof t.getelementsbyclassname&&_)return t.getelementsbyclassname(e)},m=[],f=[],(w.qsa=me.test(h.queryselectorall))&&(i(function(e){q.appendchild(e).innerhtml="",e.queryselectorall("[msallowcapture^='']").length&&f.push("[*^$]="+ne+"*(?:''|\"\")"),e.queryselectorall("[selected]").length||f.push("\\["+ne+"*(?:value|"+te+")"),e.queryselectorall("[id~="+p+"-]").length||f.push("~="),e.queryselectorall(":checked").length||f.push(":checked"),e.queryselectorall("a#"+p+"+*").length||f.push(".#.+[+~]")}),i(function(e){var t=h.createelement("input");t.setattribute("type","hidden"),e.appendchild(t).setattribute("name","d"),e.queryselectorall("[name=d]").length&&f.push("name"+ne+"*[*^$|!~]?="),e.queryselectorall(":enabled").length||f.push(":enabled",":disabled"),e.queryselectorall("*,:x"),f.push(",.*:")})),(w.matchesselector=me.test(o=q.matches||q.webkitmatchesselector||q.mozmatchesselector||q.omatchesselector||q.msmatchesselector))&&i(function(e){w.disconnectedmatch=o.call(e,"div"),o.call(e,"[s!='']:x"),m.push("!=",oe)}),f=f.length&&new regexp(f.join("|")),m=m.length&&new regexp(m.join("|")),t=me.test(q.comparedocumentposition),r=t||me.test(q.contains)?function(e,t){var n=9===e.nodetype?e.documentelement:e,r=t&&t.parentnode;return e===r||!(!r||1!==r.nodetype||!(n.contains?n.contains(r):e.comparedocumentposition&&16&e.comparedocumentposition(r)))}:function(e,t){if(t)for(;t=t.parentnode;)if(t===e)return!0;return!1},u=t?function(e,t){if(e===t)return j=!0,0;var n=!e.comparedocumentposition-!t.comparedocumentposition;return n?n:(n=(e.ownerdocument||e)===(t.ownerdocument||t)?e.comparedocumentposition(t):1,1&n||!w.sortdetached&&t.comparedocumentposition(e)===n?e===h||e.ownerdocument===b&&r(b,e)?-1:t===h||t.ownerdocument===b&&r(b,t)?1:d?ee(d,e)-ee(d,t):0:4&n?-1:1)}:function(e,t){if(e===t)return j=!0,0;var n,r=0,i=e.parentnode,o=t.parentnode,s=[e],u=[t];if(!i||!o)return e===h?-1:t===h?1:i?-1:o?1:d?ee(d,e)-ee(d,t):0;if(i===o)return a(e,t);for(n=e;n=n.parentnode;)s.unshift(n);for(n=t;n=n.parentnode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]===b?-1:u[r]===b?1:0},h):h},t.matches=function(e,n){return t(e,null,null,n)},t.matchesselector=function(e,n){if((e.ownerdocument||e)!==h&&l(e),n=n.replace(ce,"='$1']"),w.matchesselector&&_&&!x[n+" "]&&(!m||!m.test(n))&&(!f||!f.test(n)))try{var r=o.call(e,n);if(r||w.disconnectedmatch||e.document&&11!==e.document.nodetype)return r}catch(i){}return t(n,h,null,[e]).length>0},t.contains=function(e,t){return(e.ownerdocument||e)!==h&&l(e),r(e,t)},t.attr=function(e,t){(e.ownerdocument||e)!==h&&l(e);var n=t.attrhandle[t.tolowercase()],r=n&&y.call(t.attrhandle,t.tolowercase())?n(e,t,!_):void 0;return void 0!==r?r:w.attributes||!_?e.getattribute(t):(r=e.getattributenode(t))&&r.specified?r.value:null},t.error=function(e){throw new error("syntax error, unrecognized expression: "+e)},t.uniquesort=function(e){var t,n=[],r=0,i=0;if(j=!w.detectduplicates,d=!w.sortstable&&e.slice(0),e.sort(u),j){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return d=null,e},c=t.gettext=function(e){var t,n="",r=0,i=e.nodetype;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textcontent)return e.textcontent;for(e=e.firstchild;e;e=e.nextsibling)n+=c(e)}else if(3===i||4===i)return e.nodevalue}else for(;t=e[r++];)n+=c(t);return n},t=t.selectors={cachelength:50,createpseudo:r,match:pe,attrhandle:{},find:{},relative:{">":{dir:"parentnode",first:!0}," ":{dir:"parentnode"},"+":{dir:"previoussibling",first:!0},"~":{dir:"previoussibling"}},prefilter:{attr:function(e){return e[1]=e[1].replace(be,we),e[3]=(e[3]||e[4]||e[5]||"").replace(be,we),"~="===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]||t.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]&&t.error(e[0]),e},pseudo:function(e){var t,n=!e[6]&&e[2];return pe.child.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&fe.test(n)&&(t=n(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(be,we).tolowercase();return"*"===e?function(){return!0}:function(e){return e.nodename&&e.nodename.tolowercase()===t}},class:function(e){var t=$[e+" "];return t||(t=new regexp("(^|"+ne+")"+e+"("+ne+"|$)"))&&$(e,function(e){return t.test("string"==typeof e.classname&&e.classname||"undefined"!=typeof e.getattribute&&e.getattribute("class")||"")})},attr:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexof(r):"*="===n?r&&o.indexof(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ae," ")+" ").indexof(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},child:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentnode}:function(t,n,u){var l,c,f,d,p,h,g=o!==a?"nextsibling":"previoussibling",m=t.parentnode,y=s&&t.nodename.tolowercase(),v=!u&&!s,x=!1;if(m){if(o){for(;g;){for(d=t;d=d[g];)if(s?d.nodename.tolowercase()===y:1===d.nodetype)return!1;h=g="only"===e&&!h&&"nextsibling"}return!0}if(h=[a?m.firstchild:m.lastchild],a&&v){for(d=m,f=d[p]||(d[p]={}),c=f[d.uniqueid]||(f[d.uniqueid]={}), l=c[e]||[],p=l[0]===w&&l[1],x=p&&l[2],d=p&&m.childnodes[p];d=++p&&d&&d[g]||(x=p=0)||h.pop();)if(1===d.nodetype&&++x&&d===t){c[e]=[w,p,x];break}}else if(v&&(d=t,f=d[p]||(d[p]={}),c=f[d.uniqueid]||(f[d.uniqueid]={}),l=c[e]||[],p=l[0]===w&&l[1],x=p),x===!1)for(;(d=++p&&d&&d[g]||(x=p=0)||h.pop())&&((s?d.nodename.tolowercase()!==y:1!==d.nodetype)||!++x||(v&&(f=d[p]||(d[p]={}),c=f[d.uniqueid]||(f[d.uniqueid]={}),c[e]=[w,x]),d!==t)););return x-=i,x===r||x%r===0&&x/r>=0}}},pseudo:function(e,n){var i,o=t.pseudos[e]||t.setfilters[e.tolowercase()]||t.error("unsupported pseudo: "+e);return o[p]?o(n):o.length>1?(i=[e,e,"",n],t.setfilters.hasownproperty(e.tolowercase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=ee(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=k(e.replace(se,"$1"));return i[p]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(be,we),function(t){return(t.textcontent||t.innertext||c(t)).indexof(e)>-1}}),lang:r(function(e){return de.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(be,we).tolowercase(),function(t){var n;do if(n=_?t.lang:t.getattribute("xml:lang")||t.getattribute("lang"))return n=n.tolowercase(),n===e||0===n.indexof(e+"-");while((t=t.parentnode)&&1===t.nodetype);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===q},focus:function(e){return e===h.activeelement&&(!h.hasfocus||h.hasfocus())&&!!(e.type||e.href||~e.tabindex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodename.tolowercase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentnode&&e.parentnode.selectedindex,e.selected===!0},empty:function(e){for(e=e.firstchild;e;e=e.nextsibling)if(e.nodetype<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return ge.test(e.nodename)},input:function(e){return he.test(e.nodename)},button:function(e){var t=e.nodename.tolowercase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodename.tolowercase()&&"text"===e.type&&(null==(t=e.getattribute("type"))||"text"===t.tolowercase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[n<0?n+t:n]}),even:l(function(e,t){for(var n=0;n=0;)e.push(r);return e}),gt:l(function(e,t,n){for(var r=n<0?n+t:n;++r2&&"id"===(a=o[0]).type&&w.getbyid&&9===t.nodetype&&_&&t.relative[o[1].type]){if(t=(t.find.id(a.matches[0].replace(be,we),t)||[])[0],!t)return n;l&&(t=t.parentnode),e=e.slice(o.shift().value.length)}for(i=pe.needscontext.test(e)?0:o.length;i--&&(a=o[i],!t.relative[s=a.type]);)if((u=t.find[s])&&(r=u(a.matches[0].replace(be,we),ve.test(o[0].type)&&c(t.parentnode)||t))){if(o.splice(i,1),e=r.length&&d(o),!e)return q.apply(n,r),n;break}}return(l||k(e,f))(r,t,!_,n,!t||ve.test(e)&&c(t.parentnode)||t),n},w.sortstable=p.split("").sort(u).join("")===p,w.detectduplicates=!!j,l(),w.sortdetached=i(function(e){return 1&e.comparedocumentposition(h.createelement("div"))}),i(function(e){return e.innerhtml="","#"===e.firstchild.getattribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getattribute(t,"type"===t.tolowercase()?1:2)}),w.attributes&&i(function(e){return e.innerhtml="",e.firstchild.setattribute("value",""),""===e.firstchild.getattribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodename.tolowercase())return e.defaultvalue}),i(function(e){return null==e.getattribute("disabled")})||o(te,function(e,t,n){var r;if(!n)return e[t]===!0?t.tolowercase():(r=e.getattributenode(t))&&r.specified?r.value:null}),t}(e);pe.find=ve,pe.expr=ve.selectors,pe.expr[":"]=pe.expr.pseudos,pe.uniquesort=pe.unique=ve.uniquesort,pe.text=ve.gettext,pe.isxmldoc=ve.isxml,pe.contains=ve.contains;var xe=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodetype;)if(1===e.nodetype){if(i&&pe(e).is(n))break;r.push(e)}return r},be=function(e,t){for(var n=[];e;e=e.nextsibling)1===e.nodetype&&e!==t&&n.push(e);return n},we=pe.expr.match.needscontext,te=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,ce=/^.[^:#\[\.,]*$/;pe.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodetype?pe.find.matchesselector(r,e)?[r]:[]:pe.find.matches(e,pe.grep(t,function(e){return 1===e.nodetype}))},pe.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushstack(pe(e).filter(function(){for(t=0;t1?pe.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushstack(r(this,e||[],!1))},not:function(e){return this.pushstack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&we.test(e)?pe(e):e||[],!1).length}});var ee,ne=/^(?:\s*(<[\w\w]+>)[^>]*|#([\w-]*))$/,ke=pe.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||ee,"string"==typeof e){if(r="<"===e.charat(0)&&">"===e.charat(e.length-1)&&e.length>=3?[null,e,null]:ne.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof pe?t[0]:t,pe.merge(this,pe.parsehtml(r[1],t&&t.nodetype?t.ownerdocument||t:re,!0)),te.test(r[1])&&pe.isplainobject(t))for(r in t)pe.isfunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if(i=re.getelementbyid(r[2]),i&&i.parentnode){if(i.id!==r[2])return ee.find(e);this.length=1,this[0]=i}return this.context=re,this.selector=e,this}return e.nodetype?(this.context=this[0]=e,this.length=1,this):pe.isfunction(e)?"undefined"!=typeof n.ready?n.ready(e):e(pe):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),pe.makearray(e,this))};ke.prototype=pe.fn,ee=pe(re);var se=/^(?:parents|prev(?:until|all))/,ae={children:!0,contents:!0,next:!0,prev:!0};pe.fn.extend({has:function(e){var t,n=pe(e,this),r=n.length;return this.filter(function(){for(t=0;t-1:1===n.nodetype&&pe.find.matchesselector(n,e))){o.push(n);break}return this.pushstack(o.length>1?pe.uniquesort(o):o)},index:function(e){return e?"string"==typeof e?pe.inarray(this[0],pe(e)):pe.inarray(e.jquery?e[0]:e,this):this[0]&&this[0].parentnode?this.first().prevall().length:-1},add:function(e,t){return this.pushstack(pe.uniquesort(pe.merge(this.get(),pe(e,t))))},addback:function(e){return this.add(null==e?this.prevobject:this.prevobject.filter(e))}}),pe.each({parent:function(e){var t=e.parentnode;return t&&11!==t.nodetype?t:null},parents:function(e){return xe(e,"parentnode")},parentsuntil:function(e,t,n){return xe(e,"parentnode",n)},next:function(e){return i(e,"nextsibling")},prev:function(e){return i(e,"previoussibling")},nextall:function(e){return xe(e,"nextsibling")},prevall:function(e){return xe(e,"previoussibling")},nextuntil:function(e,t,n){return xe(e,"nextsibling",n)},prevuntil:function(e,t,n){return xe(e,"previoussibling",n)},siblings:function(e){return be((e.parentnode||{}).firstchild,e)},children:function(e){return be(e.firstchild)},contents:function(e){return pe.nodename(e,"iframe")?e.contentdocument||e.contentwindow.document:pe.merge([],e.childnodes)}},function(e,t){pe.fn[e]=function(n,r){var i=pe.map(this,t,n);return"until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=pe.filter(r,i)),this.length>1&&(ae[e]||(i=pe.uniquesort(i)),se.test(e)&&(i=i.reverse())),this.pushstack(i)}});var de=/\s+/g;pe.callbacks=function(e){e="string"==typeof e?o(e):pe.extend({},e);var t,n,r,i,a=[],s=[],u=-1,l=function(){for(i=e.once,r=t=!0;s.length;u=-1)for(n=s.shift();++u-1;)a.splice(n,1),n<=u&&u--}),this},has:function(e){return e?pe.inarray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=!0,n||c.disable(),this},locked:function(){return!!i},firewith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return c.firewith(this,arguments),this},fired:function(){return!!r}};return c},pe.extend({deferred:function(e){var t=[["resolve","done",pe.callbacks("once memory"),"resolved"],["reject","fail",pe.callbacks("once memory"),"rejected"],["notify","progress",pe.callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return pe.deferred(function(n){pe.each(t,function(t,o){var a=pe.isfunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&pe.isfunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"with"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?pe.extend(e,r):r}},i={};return r.pipe=r.then,pe.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"with"](this===i?r:this,arguments),this},i[o[0]+"with"]=a.firewith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=ie.call(arguments),a=o.length,s=1!==a||e&&pe.isfunction(e.promise)?a:0,u=1===s?e:pe.deferred(),l=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?ie.call(arguments):i,r===t?u.notifywith(n,r):--s||u.resolvewith(n,r)}};if(a>1)for(t=new array(a),n=new array(a),r=new array(a);i0||(je.resolvewith(re,[pe]),pe.fn.triggerhandler&&(pe(re).triggerhandler("ready"),pe(re).off("ready"))))}}),pe.ready.promise=function(t){if(!je)if(je=pe.deferred(),"complete"===re.readystate||"loading"!==re.readystate&&!re.documentelement.doscroll)e.settimeout(pe.ready);else if(re.addeventlistener)re.addeventlistener("domcontentloaded",s),e.addeventlistener("load",s);else{re.attachevent("onreadystatechange",s),e.attachevent("onload",s);var n=!1;try{n=null==e.frameelement&&re.documentelement}catch(r){}n&&n.doscroll&&!function i(){if(!pe.isready){try{n.doscroll("left")}catch(t){return e.settimeout(i,50)}a(),pe.ready()}}()}return je.promise(t)},pe.ready.promise();var le;for(le in pe(fe))break;fe.ownfirst="0"===le,fe.inlineblockneedslayout=!1,pe(function(){var e,t,n,r;n=re.getelementsbytagname("body")[0],n&&n.style&&(t=re.createelement("div"),r=re.createelement("div"),r.style.csstext="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendchild(r).appendchild(t),"undefined"!=typeof t.style.zoom&&(t.style.csstext="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",fe.inlineblockneedslayout=e=3===t.offsetwidth,e&&(n.style.zoom=1)),n.removechild(r))}),function(){var e=re.createelement("div");fe.deleteexpando=!0;try{delete e.test}catch(t){fe.deleteexpando=!1}e=null}();var he=function(e){var t=pe.nodata[(e.nodename+" ").tolowercase()],n=+e.nodetype||1;return(1===n||9===n)&&(!t||t!==!0&&e.getattribute("classid")===t)},qe=/^(?:\{[\w\w]*\}|\[[\w\w]*\])$/,_e=/([a-z])/g;pe.extend({cache:{},nodata:{"applet ":!0,"embed ":!0,"object ":"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"},hasdata:function(e){return e=e.nodetype?pe.cache[e[pe.expando]]:e[pe.expando],!!e&&!l(e)},data:function(e,t,n){return c(e,t,n)},removedata:function(e,t){return f(e,t)},_data:function(e,t,n){return c(e,t,n,!0)},_removedata:function(e,t){return f(e,t,!0)}}),pe.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=pe.data(o),1===o.nodetype&&!pe._data(o,"parsedattrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexof("data-")&&(r=pe.camelcase(r.slice(5)),u(o,r,i[r])));pe._data(o,"parsedattrs",!0)}return i}return"object"==typeof e?this.each(function(){pe.data(this,e)}):arguments.length>1?this.each(function(){pe.data(this,e,t)}):o?u(o,e,pe.data(o,e)):void 0},removedata:function(e){return this.each(function(){pe.removedata(this,e)})}}),pe.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=pe._data(e,t),n&&(!r||pe.isarray(n)?r=pe._data(e,t,pe.makearray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=pe.queue(e,t),r=n.length,i=n.shift(),o=pe._queuehooks(e,t),a=function(){pe.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queuehooks:function(e,t){var n=t+"queuehooks";return pe._data(e,n)||pe._data(e,n,{empty:pe.callbacks("once memory").add(function(){pe._removedata(e,t+"queue"),pe._removedata(e,n)})})}}),pe.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length
      a",fe.leadingwhitespace=3===e.firstchild.nodetype,fe.tbody=!e.getelementsbytagname("tbody").length,fe.htmlserialize=!!e.getelementsbytagname("link").length,fe.html5clone="<:nav>"!==re.createelement("nav").clonenode(!0).outerhtml,n.type="checkbox",n.checked=!0,t.appendchild(n),fe.appendchecked=n.checked,e.innerhtml="",fe.noclonechecked=!!e.clonenode(!0).lastchild.defaultvalue,t.appendchild(e),n=re.createelement("input"),n.setattribute("type","radio"),n.setattribute("checked","checked"),n.setattribute("name","t"),e.appendchild(n),fe.checkclone=e.clonenode(!0).clonenode(!0).lastchild.checked,fe.nocloneevent=!!e.addeventlistener,e[pe.expando]=1,fe.attributes=!e.getattribute(pe.expando)}();var xe={option:[1,""],legend:[1,"
      ","
      "],area:[1,"",""],param:[1,"",""],thead:[1,"","
      "],tr:[2,"","
      "],col:[2,"","
      "],td:[3,"","
      "],_default:fe.htmlserialize?[0,"",""]:[1,"x
      ","
      "]};xe.optgroup=xe.option,xe.tbody=xe.tfoot=xe.colgroup=xe.caption=xe.thead,xe.th=xe.td;var ue=/<|&#?\w+;/,ve=/-1&&(h=p.split("."),p=h.shift(),h.sort()),a=p.indexof(":")<0&&"on"+p,t=t[pe.expando]?t:new pe.event(p,"object"==typeof t&&t),t.istrigger=i?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new regexp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:pe.makearray(n,[t]),l=pe.event.special[p]||{},i||!l.trigger||l.trigger.apply(r,n)!==!1)){if(!i&&!l.nobubble&&!pe.iswindow(r)){for(u=l.delegatetype||p,ke.test(u+p)||(s=s.parentnode);s;s=s.parentnode)d.push(s),c=s;c===(r.ownerdocument||re)&&d.push(c.defaultview||c.parentwindow||e)}for(f=0;(s=d[f++])&&!t.ispropagationstopped();)t.type=f>1?u:l.bindtype||p,o=(pe._data(s,"events")||{})[t.type]&&pe._data(s,"handle"),o&&o.apply(s,n),o=a&&s[a],o&&o.apply&&he(s)&&(t.result=o.apply(s,n),t.result===!1&&t.preventdefault());if(t.type=p,!i&&!t.isdefaultprevented()&&(!l._default||l._default.apply(d.pop(),n)===!1)&&he(r)&&a&&r[p]&&!pe.iswindow(r)){c=r[a],c&&(r[a]=null),pe.event.triggered=p;try{r[p]()}catch(g){}pe.event.triggered=void 0,c&&(r[a]=c)}return t.result}},dispatch:function(e){e=pe.event.fix(e);var t,n,r,i,o,a=[],s=ie.call(arguments),u=(pe._data(this,"events")||{})[e.type]||[],l=pe.event.special[e.type]||{};if(s[0]=e,e.delegatetarget=this,!l.predispatch||l.predispatch.call(this,e)!==!1){for(a=pe.event.handlers.call(this,e,u),t=0;(i=a[t++])&&!e.ispropagationstopped();)for(e.currenttarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isimmediatepropagationstopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleobj=o,e.data=o.data,r=((pe.event.special[o.origtype]||{}).handle||o.handler).apply(i.elem,s),void 0!==r&&(e.result=r)===!1&&(e.preventdefault(),e.stoppropagation()));return l.postdispatch&&l.postdispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegatecount,u=e.target;if(s&&u.nodetype&&("click"!==e.type||isnan(e.button)||e.button<1))for(;u!=this;u=u.parentnode||this)if(1===u.nodetype&&(u.disabled!==!0||"click"!==e.type)){for(r=[],n=0;n-1:pe.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s]","i"),tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,nt=/\s*$/g,at=p(re),st=at.appendchild(re.createelement("div"));pe.extend({htmlprefilter:function(e){return e.replace(tt,"<$1>")},clone:function(e,t,n){var r,i,o,a,s,u=pe.contains(e.ownerdocument,e);if(fe.html5clone||pe.isxmldoc(e)||!et.test("<"+e.nodename+">")?o=e.clonenode(!0):(st.innerhtml=e.outerhtml,st.removechild(o=st.firstchild)),!(fe.nocloneevent&&fe.noclonechecked||1!==e.nodetype&&11!==e.nodetype||pe.isxmldoc(e)))for(r=h(o),s=h(e),a=0;null!=(i=s[a]);++a)r[a]&&k(i,r[a]);if(t)if(n)for(s=s||h(e),r=r||h(o),a=0;null!=(i=s[a]);a++)n(i,r[a]);else n(e,o);return r=h(o,"script"),r.length>0&&g(r,!u&&h(e,"script")),r=s=i=null,o},cleandata:function(e,t){for(var n,r,i,o,a=0,s=pe.expando,u=pe.cache,l=fe.attributes,c=pe.event.special;null!=(n=e[a]);a++)if((t||he(n))&&(i=n[s],o=i&&u[i])){if(o.events)for(r in o.events)c[r]?pe.event.remove(n,r):pe.removeevent(n,r,o.handle);u[i]&&(delete u[i],l||"undefined"==typeof n.removeattribute?n[s]=void 0:n.removeattribute(s),ne.push(i))}}}),pe.fn.extend({dommanip:s,detach:function(e){return a(this,e,!0)},remove:function(e){return a(this,e)},text:function(e){return pe(this,function(e){return void 0===e?pe.text(this):this.empty().append((this[0]&&this[0].ownerdocument||re).createtextnode(e))},null,e,arguments.length)},append:function(){return s(this,arguments,function(e){if(1===this.nodetype||11===this.nodetype||9===this.nodetype){var t=t(this,e);t.appendchild(e)}})},prepend:function(){return s(this,arguments,function(e){if(1===this.nodetype||11===this.nodetype||9===this.nodetype){var t=t(this,e);t.insertbefore(e,t.firstchild)}})},before:function(){return s(this,arguments,function(e){this.parentnode&&this.parentnode.insertbefore(e,this)})},after:function(){return s(this,arguments,function(e){this.parentnode&&this.parentnode.insertbefore(e,this.nextsibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodetype&&pe.cleandata(h(e,!1));e.firstchild;)e.removechild(e.firstchild);e.options&&pe.nodename(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return pe.clone(this,e,t)})},html:function(e){return pe(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodetype?t.innerhtml.replace(ze,""):void 0;if("string"==typeof e&&!nt.test(e)&&(fe.htmlserialize||!et.test(e))&&(fe.leadingwhitespace||!$e.test(e))&&!xe[(we.exec(e)||["",""])[1].tolowercase()]){e=pe.htmlprefilter(e);try{for(;nt",t=l.getelementsbytagname("td"),t[0].style.csstext="margin:0;border:0;padding:0;display:none",o=0===t[0].offsetheight,o&&(t[0].style.display="",t[1].style.display="none",o=0===t[0].offsetheight)),f.removechild(u)}var n,r,i,o,a,s,u=re.createelement("div"),l=re.createelement("div");l.style&&(l.style.csstext="float:left;opacity:.5",fe.opacity="0.5"===l.style.opacity,fe.cssfloat=!!l.style.cssfloat,l.style.backgroundclip="content-box",l.clonenode(!0).style.backgroundclip="",fe.clearclonestyle="content-box"===l.style.backgroundclip,u=re.createelement("div"),u.style.csstext="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",l.innerhtml="",u.appendchild(l),fe.boxsizing=""===l.style.boxsizing||""===l.style.mozboxsizing||""===l.style.webkitboxsizing,pe.extend(fe,{reliablehiddenoffsets:function(){return null==n&&t(),o},boxsizingreliable:function(){return null==n&&t(),i},pixelmarginright:function(){return null==n&&t(),r},pixelposition:function(){return null==n&&t(),n},reliablemarginright:function(){return null==n&&t(),a},reliablemarginleft:function(){return null==n&&t(),s}}))}();var ht,gt,mt=/^(top|right|bottom|left)$/;e.getcomputedstyle?(ht=function(t){var n=t.ownerdocument.defaultview;return n&&n.opener||(n=e),n.getcomputedstyle(t)},gt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||ht(e),a=n?n.getpropertyvalue(t)||n[t]:void 0,""!==a&&void 0!==a||pe.contains(e.ownerdocument,e)||(a=pe.style(e,t)),n&&!fe.pixelmarginright()&&ft.test(a)&&ct.test(t)&&(r=s.width,i=s.minwidth,o=s.maxwidth,s.minwidth=s.maxwidth=s.width=a,a=n.width,s.width=r,s.minwidth=i,s.maxwidth=o),void 0===a?a:a+""}):pt.currentstyle&&(ht=function(e){return e.currentstyle},gt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||ht(e),a=n?n[t]:void 0,null==a&&s&&s[t]&&(a=s[t]),ft.test(a)&&!mt.test(t)&&(r=s.left,i=e.runtimestyle,o=i&&i.left,o&&(i.left=e.currentstyle.left),s.left="fontsize"===t?"1em":a,a=s.pixelleft+"px",s.left=r,o&&(i.left=o)),void 0===a?a:a+""||"auto"});var yt=/alpha\([^)]*\)/i,vt=/opacity\s*=\s*([^)]*)/i,xt=/^(none|table(?!-c[ea]).+)/,bt=new regexp("^("+fe+")(.*)$","i"),wt={position:"absolute",visibility:"hidden",display:"block"},tt={letterspacing:"0",fontweight:"400"},ct=["webkit","o","moz","ms"],et=re.createelement("div").style;pe.extend({csshooks:{opacity:{get:function(e,t){if(t){var n=gt(e,"opacity");return""===n?"1":n}}}},cssnumber:{animationiterationcount:!0,columncount:!0,fillopacity:!0,flexgrow:!0,flexshrink:!0,fontweight:!0,lineheight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zindex:!0,zoom:!0},cssprops:{"float":fe.cssfloat?"cssfloat":"stylefloat"},style:function(e,t,n,r){if(e&&3!==e.nodetype&&8!==e.nodetype&&e.style){var i,o,a,s=pe.camelcase(t),u=e.style;if(t=pe.cssprops[s]||(pe.cssprops[s]=h(s)||s),a=pe.csshooks[t]||pe.csshooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];if(o=typeof n,"string"===o&&(i=me.exec(n))&&i[1]&&(n=d(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(pe.cssnumber[s]?"":"px")),fe.clearclonestyle||""!==n||0!==t.indexof("background")||(u[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,r)))))try{u[t]=n}catch(l){}}},css:function(e,t,n,r){var i,o,a,s=pe.camelcase(t);return t=pe.cssprops[s]||(pe.cssprops[s]=h(s)||s),a=pe.csshooks[t]||pe.csshooks[s],a&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=gt(e,t,r)),"normal"===o&&t in tt&&(o=tt[t]),""===n||n?(i=parsefloat(o),n===!0||isfinite(i)?i||0:o):o}}),pe.each(["height","width"],function(e,t){pe.csshooks[t]={get:function(e,n,r){if(n)return xt.test(pe.css(e,"display"))&&0===e.offsetwidth?dt(e,wt,function(){return m(e,t,r)}):m(e,t,r)},set:function(e,n,r){var i=r&&ht(e);return _(e,n,r?f(e,t,r,fe.boxsizing&&"border-box"===pe.css(e,"boxsizing",!1,i),i):0)}}}),fe.opacity||(pe.csshooks.opacity={get:function(e,t){return vt.test((t&&e.currentstyle?e.currentstyle.filter:e.style.filter)||"")?.01*parsefloat(regexp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentstyle,i=pe.isnumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===pe.trim(o.replace(yt,""))&&n.removeattribute&&(n.removeattribute("filter"),""===t||r&&!r.filter)||(n.filter=yt.test(o)?o.replace(yt,i):o+" "+i)}}),pe.csshooks.marginright=l(fe.reliablemarginright,function(e,t){if(t)return dt(e,{display:"inline-block"},gt,[e,"marginright"])}),pe.csshooks.marginleft=l(fe.reliablemarginleft,function(e,t){if(t)return(parsefloat(gt(e,"marginleft"))||(pe.contains(e.ownerdocument,e)?e.getboundingclientrect().left-dt(e,{marginleft:0},function(){return e.getboundingclientrect().left}):0))+"px"}),pe.each({margin:"",padding:"",border:"width"},function(e,t){pe.csshooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+oe[r]+t]=o[r]||o[r-2]||o[0];return i}},ct.test(e)||(pe.csshooks[e+t].set=_)}),pe.fn.extend({css:function(e,t){return pe(this,function(e,t,n){var r,i,o={},a=0;if(pe.isarray(t)){for(r=ht(e),i=t.length;a1)},show:function(){return q(this,!0)},hide:function(){return q(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){re(this)?pe(this).show():pe(this).hide()})}}),pe.tween=o,o.prototype={constructor:o,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||pe.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(pe.cssnumber[n]?"":"px")},cur:function(){var e=o.prophooks[this.prop];return e&&e.get?e.get(this):o.prophooks._default.get(this)},run:function(e){var t,n=o.prophooks[this.prop];return this.options.duration?this.pos=t=pe.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):o.prophooks._default.set(this),this}},o.prototype.init.prototype=o.prototype,o.prophooks={_default:{get:function(e){var t;return 1!==e.elem.nodetype||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=pe.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){pe.fx.step[e.prop]?pe.fx.step[e.prop](e):1!==e.elem.nodetype||null==e.elem.style[pe.cssprops[e.prop]]&&!pe.csshooks[e.prop]?e.elem[e.prop]=e.now:pe.style(e.elem,e.prop,e.now+e.unit)}}},o.prophooks.scrolltop=o.prophooks.scrollleft={set:function(e){e.elem.nodetype&&e.elem.parentnode&&(e.elem[e.prop]=e.now)}},pe.easing={linear:function(e){return e},swing:function(e){return.5-math.cos(e*math.pi)/2},_default:"swing"},pe.fx=o.prototype.init,pe.fx.step={};var nt,kt,st=/^(?:toggle|show|hide)$/,at=/queuehooks$/;pe.animation=pe.extend($,{tweeners:{"*":[function(e,t){var n=this.createtween(e,t);return d(n.elem,e,me.exec(t),n),n}]},tweener:function(e,t){pe.isfunction(e)?(t=e,e=["*"]):e=e.match(de);for(var n,r=0,i=e.length;r
      a",e=n.getelementsbytagname("a")[0],t.setattribute("type","checkbox"),n.appendchild(t),e=n.getelementsbytagname("a")[0],e.style.csstext="top:1px",fe.getsetattribute="t"!==n.classname,fe.style=/top/.test(e.getattribute("style")),fe.hrefnormalized="/a"===e.getattribute("href"),fe.checkon=!!t.value,fe.optselected=i.selected,fe.enctype=!!re.createelement("form").enctype,r.disabled=!0,fe.optdisabled=!i.disabled,t=re.createelement("input"),t.setattribute("value",""),fe.input=""===t.getattribute("value"),t.value="t",t.setattribute("type","radio"),fe.radiovalue="t"===t.value}();var dt=/\r/g,jt=/[\x20\t\r\n\f]+/g;pe.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=pe.isfunction(e),this.each(function(n){var i;1===this.nodetype&&(i=r?e.call(this,n,pe(this).val()):e,null==i?i="":"number"==typeof i?i+="":pe.isarray(i)&&(i=pe.map(i,function(e){return null==e?"":e+""})),t=pe.valhooks[this.type]||pe.valhooks[this.nodename.tolowercase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=pe.valhooks[i.type]||pe.valhooks[i.nodename.tolowercase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(dt,""):null==n?"":n)}}}),pe.extend({valhooks:{option:{get:function(e){var t=pe.find.attr(e,"value");return null!=t?t:pe.trim(pe.text(e)).replace(jt," ")}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedindex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u-1)try{r.selected=n=!0}catch(s){r.scrollheight}else r.selected=!1;return n||(e.selectedindex=-1),i}}}}),pe.each(["radio","checkbox"],function(){pe.valhooks[this]={set:function(e,t){if(pe.isarray(t))return e.checked=pe.inarray(pe(e).val(),t)>-1}},fe.checkon||(pe.valhooks[this].get=function(e){return null===e.getattribute("value")?"on":e.value})});var lt,ht,qt=pe.expr.attrhandle,_t=/^(?:checked|selected)$/i,ft=fe.getsetattribute,mt=fe.input;pe.fn.extend({attr:function(e,t){return pe(this,pe.attr,e,t,arguments.length>1)},removeattr:function(e){return this.each(function(){pe.removeattr(this,e)})}}),pe.extend({attr:function(e,t,n){var r,i,o=e.nodetype;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getattribute?pe.prop(e,t,n):(1===o&&pe.isxmldoc(e)||(t=t.tolowercase(),i=pe.attrhooks[t]||(pe.expr.match.bool.test(t)?ht:lt)),void 0!==n?null===n?void pe.removeattr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setattribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=pe.find.attr(e,t),null==r?void 0:r))},attrhooks:{type:{set:function(e,t){if(!fe.radiovalue&&"radio"===t&&pe.nodename(e,"input")){var n=e.value;return e.setattribute("type",t),n&&(e.value=n),t}}}},removeattr:function(e,t){var n,r,i=0,o=t&&t.match(de);if(o&&1===e.nodetype)for(;n=o[i++];)r=pe.propfix[n]||n,pe.expr.match.bool.test(n)?mt&&ft||!_t.test(n)?e[r]=!1:e[pe.camelcase("default-"+n)]=e[r]=!1:pe.attr(e,n,""),e.removeattribute(ft?n:r)}}),ht={set:function(e,t,n){return t===!1?pe.removeattr(e,n):mt&&ft||!_t.test(n)?e.setattribute(!ft&&pe.propfix[n]||n,n):e[pe.camelcase("default-"+n)]=e[n]=!0,n}},pe.each(pe.expr.match.bool.source.match(/\w+/g),function(e,t){var n=qt[t]||pe.find.attr;mt&&ft||!_t.test(t)?qt[t]=function(e,t,r){var i,o;return r||(o=qt[t],qt[t]=i,i=null!=n(e,t,r)?t.tolowercase():null,qt[t]=o),i}:qt[t]=function(e,t,n){if(!n)return e[pe.camelcase("default-"+t)]?t.tolowercase():null}}),mt&&ft||(pe.attrhooks.value={set:function(e,t,n){return pe.nodename(e,"input")?void(e.defaultvalue=t):lt&<.set(e,t,n)}}),ft||(lt={set:function(e,t,n){var r=e.getattributenode(n);if(r||e.setattributenode(r=e.ownerdocument.createattribute(n)),r.value=t+="","value"===n||t===e.getattribute(n))return t}},qt.id=qt.name=qt.coords=function(e,t,n){var r;if(!n)return(r=e.getattributenode(t))&&""!==r.value?r.value:null},pe.valhooks.button={get:function(e,t){var n=e.getattributenode(t);if(n&&n.specified)return n.value},set:lt.set},pe.attrhooks.contenteditable={set:function(e,t,n){lt.set(e,""!==t&&t,n)}},pe.each(["width","height"],function(e,t){pe.attrhooks[t]={set:function(e,n){if(""===n)return e.setattribute(t,"auto"),n}}})),fe.style||(pe.attrhooks.style={get:function(e){return e.style.csstext||void 0},set:function(e,t){return e.style.csstext=t+""}});var ot=/^(?:input|select|textarea|button|object)$/i,rt=/^(?:a|area)$/i;pe.fn.extend({prop:function(e,t){return pe(this,pe.prop,e,t,arguments.length>1)},removeprop:function(e){return e=pe.propfix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(t){}})}}),pe.extend({prop:function(e,t,n){var r,i,o=e.nodetype;if(3!==o&&8!==o&&2!==o)return 1===o&&pe.isxmldoc(e)||(t=pe.propfix[t]||t,i=pe.prophooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},prophooks:{tabindex:{get:function(e){var t=pe.find.attr(e,"tabindex");return t?parseint(t,10):ot.test(e.nodename)||rt.test(e.nodename)&&e.href?0:-1}}},propfix:{"for":"htmlfor","class":"classname"}}),fe.hrefnormalized||pe.each(["href","src"],function(e,t){pe.prophooks[t]={get:function(e){return e.getattribute(t,4)}}}),fe.optselected||(pe.prophooks.selected={get:function(e){var t=e.parentnode;return t&&(t.selectedindex,t.parentnode&&t.parentnode.selectedindex),null},set:function(e){var t=e.parentnode;t&&(t.selectedindex,t.parentnode&&t.parentnode.selectedindex)}}),pe.each(["tabindex","readonly","maxlength","cellspacing","cellpadding","rowspan","colspan","usemap","frameborder","contenteditable"],function(){pe.propfix[this.tolowercase()]=this}),fe.enctype||(pe.propfix.enctype="encoding");var pt=/[\t\r\n\f]/g;pe.fn.extend({addclass:function(e){var t,n,r,i,o,a,s,u=0;if(pe.isfunction(e))return this.each(function(t){pe(this).addclass(e.call(this,t,z(this)))});if("string"==typeof e&&e)for(t=e.match(de)||[];n=this[u++];)if(i=z(n),r=1===n.nodetype&&(" "+i+" ").replace(pt," ")){for(a=0;o=t[a++];)r.indexof(" "+o+" ")<0&&(r+=o+" ");s=pe.trim(r),i!==s&&pe.attr(n,"class",s)}return this},removeclass:function(e){var t,n,r,i,o,a,s,u=0;if(pe.isfunction(e))return this.each(function(t){pe(this).removeclass(e.call(this,t,z(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(de)||[];n=this[u++];)if(i=z(n),r=1===n.nodetype&&(" "+i+" ").replace(pt," ")){for(a=0;o=t[a++];)for(;r.indexof(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");s=pe.trim(r),i!==s&&pe.attr(n,"class",s)}return this},toggleclass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addclass(e):this.removeclass(e):pe.isfunction(e)?this.each(function(n){pe(this).toggleclass(e.call(this,n,z(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=pe(this),o=e.match(de)||[];t=o[r++];)i.hasclass(t)?i.removeclass(t):i.addclass(t);else void 0!==e&&"boolean"!==n||(t=z(this),t&&pe._data(this,"__classname__",t),pe.attr(this,"class",t||e===!1?"":pe._data(this,"__classname__")||""))})},hasclass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodetype&&(" "+z(n)+" ").replace(pt," ").indexof(t)>-1)return!0;return!1}}),pe.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){pe.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),pe.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var bt=e.location,wt=pe.now(),it=/\?/,$t=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fa-f]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[ee][+-]?\d+|)/g;pe.parsejson=function(t){if(e.json&&e.json.parse)return e.json.parse(t+"");var n,r=null,i=pe.trim(t+"");return i&&!pe.trim(i.replace($t,function(e,t,i,o){return n&&t&&(r=0),0===r?e:(n=i||t,r+=!o-!i,"")}))?function("return "+i)():pe.error("invalid json: "+t)},pe.parsexml=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{e.domparser?(r=new e.domparser,n=r.parsefromstring(t,"text/xml")):(n=new e.activexobject("microsoft.xmldom"),n.async="false",n.loadxml(t))}catch(i){n=void 0}return n&&n.documentelement&&!n.getelementsbytagname("parsererror").length||pe.error("invalid xml: "+t),n};var zt=/#.*$/,xt=/([?&])_=[^&]*/,ut=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,vt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,yt=/^(?:get|head)$/,jt=/^\/\//,gt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,kt={},qt={},zt="*/".concat("*"),en=bt.href,tn=gt.exec(en.tolowercase())||[];pe.extend({active:0,lastmodified:{},etag:{},ajaxsettings:{url:en,type:"get",islocal:vt.test(tn[1]),global:!0,processdata:!0,async:!0,contenttype:"application/x-www-form-urlencoded; charset=utf-8",accepts:{"*":zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responsefields:{xml:"responsexml",text:"responsetext",json:"responsejson"},converters:{"* text":string,"text html":!0,"text json":pe.parsejson,"text xml":pe.parsexml},flatoptions:{url:!0,context:!0}},ajaxsetup:function(e,t){return t?v(v(e,pe.ajaxsettings),t):v(pe.ajaxsettings,e)},ajaxprefilter:x(kt),ajaxtransport:x(qt),ajax:function(t,n){function r(t,n,r,i){var o,f,v,x,w,c=n;2!==b&&(b=2,u&&e.cleartimeout(u),c=void 0,s=i||"",t.readystate=t>0?4:0,o=t>=200&&t<300||304===t,r&&(x=y(d,t,r)),x=j(d,x,t,o),o?(d.ifmodified&&(w=t.getresponseheader("last-modified"),w&&(pe.lastmodified[a]=w),w=t.getresponseheader("etag"),w&&(pe.etag[a]=w)),204===t||"head"===d.type?c="nocontent":304===t?c="notmodified":(c=x.state,f=x.data,v=x.error,o=!v)):(v=c,!t&&c||(c="error",t<0&&(t=0))),t.status=t,t.statustext=(n||c)+"",o?g.resolvewith(p,[f,c,t]):g.rejectwith(p,[t,c,v]),t.statuscode(y),y=void 0,l&&h.trigger(o?"ajaxsuccess":"ajaxerror",[t,d,o?f:v]),m.firewith(p,[t,c]),l&&(h.trigger("ajaxcomplete",[t,d]),--pe.active||pe.event.trigger("ajaxstop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,d=pe.ajaxsetup({},n),p=d.context||d,h=d.context&&(p.nodetype||p.jquery)?pe(p):pe.event,g=pe.deferred(),m=pe.callbacks("once memory"),y=d.statuscode||{},v={},x={},b=0,w="canceled",t={readystate:0,getresponseheader:function(e){var t;if(2===b){if(!f)for(f={};t=ut.exec(s);)f[t[1].tolowercase()]=t[2];t=f[e.tolowercase()]}return null==t?null:t},getallresponseheaders:function(){return 2===b?s:null},setrequestheader:function(e,t){var n=e.tolowercase();return b||(e=x[n]=x[n]||e,v[e]=t),this},overridemimetype:function(e){return b||(d.mimetype=e),this},statuscode:function(e){var t;if(e)if(b<2)for(t in e)y[t]=[y[t],e[t]];else t.always(e[t.status]);return this},abort:function(e){var t=e||w;return c&&c.abort(t),r(0,t),this}};if(g.promise(t).complete=m.add,t.success=t.done,t.error=t.fail,d.url=((t||d.url||en)+"").replace(zt,"").replace(jt,tn[1]+"//"),d.type=n.method||n.type||d.method||d.type,d.datatypes=pe.trim(d.datatype||"*").tolowercase().match(de)||[""],null==d.crossdomain&&(i=gt.exec(d.url.tolowercase()),d.crossdomain=!(!i||i[1]===tn[1]&&i[2]===tn[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(tn[3]||("http:"===tn[1]?"80":"443")))),d.data&&d.processdata&&"string"!=typeof d.data&&(d.data=pe.param(d.data,d.traditional)),u(kt,d,n,t),2===b)return t;l=pe.event&&d.global,l&&0===pe.active++&&pe.event.trigger("ajaxstart"),d.type=d.type.touppercase(),d.hascontent=!yt.test(d.type),a=d.url,d.hascontent||(d.data&&(a=d.url+=(it.test(a)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=xt.test(a)?a.replace(xt,"$1_="+wt++):a+(it.test(a)?"&":"?")+"_="+wt++)),d.ifmodified&&(pe.lastmodified[a]&&t.setrequestheader("if-modified-since",pe.lastmodified[a]),pe.etag[a]&&t.setrequestheader("if-none-match",pe.etag[a])),(d.data&&d.hascontent&&d.contenttype!==!1||n.contenttype)&&t.setrequestheader("content-type",d.contenttype),t.setrequestheader("accept",d.datatypes[0]&&d.accepts[d.datatypes[0]]?d.accepts[d.datatypes[0]]+("*"!==d.datatypes[0]?", "+zt+"; q=0.01":""):d.accepts["*"]);for(o in d.headers)t.setrequestheader(o,d.headers[o]);if(d.beforesend&&(d.beforesend.call(p,t,d)===!1||2===b))return t.abort();w="abort";for(o in{success:1,error:1,complete:1})t[o](d[o]);if(c=u(qt,d,n,t)){if(t.readystate=1,l&&h.trigger("ajaxsend",[t,d]),2===b)return t;d.async&&d.timeout>0&&(u=e.settimeout(function(){t.abort("timeout")},d.timeout));try{b=1,c.send(v,r)}catch(c){if(!(b<2))throw c;r(-1,c)}}else r(-1,"no transport");return t},getjson:function(e,t,n){return pe.get(e,t,n,"json")},getscript:function(e,t){return pe.get(e,void 0,t,"script")}}),pe.each(["get","post"],function(e,t){pe[t]=function(e,n,r,i){return pe.isfunction(n)&&(i=i||r,r=n,n=void 0),pe.ajax(pe.extend({url:e,type:t,datatype:i,data:n,success:r},pe.isplainobject(e)&&e))}}),pe._evalurl=function(e){return pe.ajax({url:e,type:"get",datatype:"script",cache:!0,async:!1,global:!1,"throws":!0})},pe.fn.extend({wrapall:function(e){if(pe.isfunction(e))return this.each(function(t){pe(this).wrapall(e.call(this,t))});if(this[0]){var t=pe(e,this[0].ownerdocument).eq(0).clone(!0);this[0].parentnode&&t.insertbefore(this[0]),t.map(function(){for(var e=this;e.firstchild&&1===e.firstchild.nodetype;)e=e.firstchild;return e}).append(this)}return this},wrapinner:function(e){return pe.isfunction(e)?this.each(function(t){pe(this).wrapinner(e.call(this,t))}):this.each(function(){var t=pe(this),n=t.contents();n.length?n.wrapall(e):t.append(e)})},wrap:function(e){var t=pe.isfunction(e);return this.each(function(n){pe(this).wrapall(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){pe.nodename(this,"body")||pe(this).replacewith(this.childnodes)}).end()}}),pe.expr.filters.hidden=function(e){return fe.reliablehiddenoffsets()?e.offsetwidth<=0&&e.offsetheight<=0&&!e.getclientrects().length:k(e)},pe.expr.filters.visible=function(e){return!pe.expr.filters.hidden(e)};var nn=/%20/g,rn=/\[\]$/,on=/\r?\n/g,an=/^(?:submit|button|image|reset|file)$/i,sn=/^(?:input|select|textarea|keygen)/i;pe.param=function(e,t){var n,r=[],i=function(e,t){t=pe.isfunction(t)?t():null==t?"":t,r[r.length]=encodeuricomponent(e)+"="+encodeuricomponent(t)};if(void 0===t&&(t=pe.ajaxsettings&&pe.ajaxsettings.traditional),pe.isarray(e)||e.jquery&&!pe.isplainobject(e))pe.each(e,function(){i(this.name,this.value)});else for(n in e)q(n,e[n],t,i);return r.join("&").replace(nn,"+")},pe.fn.extend({serialize:function(){return pe.param(this.serializearray())},serializearray:function(){return this.map(function(){var e=pe.prop(this,"elements");return e?pe.makearray(e):this}).filter(function(){var e=this.type;return this.name&&!pe(this).is(":disabled")&&sn.test(this.nodename)&&!an.test(e)&&(this.checked||!be.test(e))}).map(function(e,t){var n=pe(this).val();return null==n?null:pe.isarray(n)?pe.map(n,function(e){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),pe.ajaxsettings.xhr=void 0!==e.activexobject?function(){return this.islocal?ee():re.documentmode>8?z():/^(get|post|head|put|delete|options)$/i.test(this.type)&&z()||ee()}:z;var un=0,ln={},cn=pe.ajaxsettings.xhr();e.attachevent&&e.attachevent("onunload",function(){for(var e in ln)ln[e](void 0,!0)}),fe.cors=!!cn&&"withcredentials"in cn,cn=fe.ajax=!!cn,cn&&pe.ajaxtransport(function(t){if(!t.crossdomain||fe.cors){var n;return{send:function(r,i){var o,a=t.xhr(),s=++un;if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrfields)for(o in t.xhrfields)a[o]=t.xhrfields[o];t.mimetype&&a.overridemimetype&&a.overridemimetype(t.mimetype),t.crossdomain||r["x-requested-with"]||(r["x-requested-with"]="xmlhttprequest");for(o in r)void 0!==r[o]&&a.setrequestheader(o,r[o]+"");a.send(t.hascontent&&t.data||null),n=function(e,r){var o,u,l;if(n&&(r||4===a.readystate))if(delete ln[s],n=void 0,a.onreadystatechange=pe.noop,r)4!==a.readystate&&a.abort();else{l={},o=a.status,"string"==typeof a.responsetext&&(l.text=a.responsetext);try{u=a.statustext}catch(c){u=""}o||!t.islocal||t.crossdomain?1223===o&&(o=204):o=l.text?200:404}l&&i(o,u,l,a.getallresponseheaders())},t.async?4===a.readystate?e.settimeout(n):a.onreadystatechange=ln[s]=n:n()},abort:function(){n&&n(void 0,!0)}}}}),pe.ajaxsetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return pe.globaleval(e),e}}}),pe.ajaxprefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossdomain&&(e.type="get",e.global=!1)}),pe.ajaxtransport("script",function(e){if(e.crossdomain){var t,n=re.head||pe("head")[0]||re.documentelement;return{send:function(r,i){t=re.createelement("script"),t.async=!0,e.scriptcharset&&(t.charset=e.scriptcharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readystate||/loaded|complete/.test(t.readystate))&&(t.onload=t.onreadystatechange=null,t.parentnode&&t.parentnode.removechild(t),t=null,n||i(200,"success"))},n.insertbefore(t,n.firstchild)},abort:function(){t&&t.onload(void 0,!0)}}}});var fn=[],dn=/(=)\?(?=&|$)|\?\?/;pe.ajaxsetup({jsonp:"callback",jsonpcallback:function(){var e=fn.pop()||pe.expando+"_"+wt++;return this[e]=!0,e}}),pe.ajaxprefilter("json jsonp",function(t,n,r){var i,o,a,s=t.jsonp!==!1&&(dn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contenttype||"").indexof("application/x-www-form-urlencoded")&&dn.test(t.data)&&"data");if(s||"jsonp"===t.datatypes[0])return i=t.jsonpcallback=pe.isfunction(t.jsonpcallback)?t.jsonpcallback():t.jsonpcallback,s?t[s]=t[s].replace(dn,"$1"+i):t.jsonp!==!1&&(t.url+=(it.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||pe.error(i+" was not called"),a[0]},t.datatypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){void 0===o?pe(e).removeprop(i):e[i]=o,t[i]&&(t.jsonpcallback=n.jsonpcallback,fn.push(i)),a&&pe.isfunction(o)&&o(a[0]),a=o=void 0}),"script"}),pe.parsehtml=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||re;var r=te.exec(e),i=!n&&[];return r?[t.createelement(r[1])]:(r=y([e],t,i),i&&i.length&&pe(i).remove(),pe.merge([],r.childnodes))};var pn=pe.fn.load;return pe.fn.load=function(e,t,n){if("string"!=typeof e&&pn)return pn.apply(this,arguments);var r,i,o,a=this,s=e.indexof(" ");return s>-1&&(r=pe.trim(e.slice(s,e.length)),e=e.slice(0,s)),pe.isfunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="post"),a.length>0&&pe.ajax({url:e,type:i||"get",datatype:"html",data:t}).done(function(e){o=arguments,a.html(r?pe("
      ").append(pe.parsehtml(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responsetext,t,e])})}),this},pe.each(["ajaxstart","ajaxstop","ajaxcomplete","ajaxerror","ajaxsuccess","ajaxsend"],function(e,t){pe.fn[t]=function(e){return this.on(t,e)}}),pe.expr.filters.animated=function(e){return pe.grep(pe.timers,function(t){return e===t.elem}).length},pe.offset={setoffset:function(e,t,n){var r,i,o,a,s,u,l,c=pe.css(e,"position"),f=pe(e),d={};"static"===c&&(e.style.position="relative"),s=f.offset(),o=pe.css(e,"top"),u=pe.css(e,"left"),l=("absolute"===c||"fixed"===c)&&pe.inarray("auto",[o,u])>-1,l?(r=f.position(),a=r.top,i=r.left):(a=parsefloat(o)||0,i=parsefloat(u)||0),pe.isfunction(t)&&(t=t.call(e,n,pe.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):f.css(d)}},pe.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){pe.offset.setoffset(this,e,t)});var t,n,r={top:0,left:0},i=this[0],o=i&&i.ownerdocument;if(o)return t=o.documentelement,pe.contains(t,i)?("undefined"!=typeof i.getboundingclientrect&&(r=i.getboundingclientrect()),n=te(o),{top:r.top+(n.pageyoffset||t.scrolltop)-(t.clienttop||0),left:r.left+(n.pagexoffset||t.scrollleft)-(t.clientleft||0)}):r},position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===pe.css(r,"position")?t=r.getboundingclientrect():(e=this.offsetparent(),t=this.offset(),pe.nodename(e[0],"html")||(n=e.offset()),n.top+=pe.css(e[0],"bordertopwidth",!0),n.left+=pe.css(e[0],"borderleftwidth",!0)),{top:t.top-n.top-pe.css(r,"margintop",!0),left:t.left-n.left-pe.css(r,"marginleft",!0)}}},offsetparent:function(){return this.map(function(){ for(var e=this.offsetparent;e&&!pe.nodename(e,"html")&&"static"===pe.css(e,"position");)e=e.offsetparent;return e||pt})}}),pe.each({scrollleft:"pagexoffset",scrolltop:"pageyoffset"},function(e,t){var n=/y/.test(t);pe.fn[e]=function(r){return pe(this,function(e,r,i){var o=te(e);return void 0===i?o?t in o?o[t]:o.document.documentelement[r]:e[r]:void(o?o.scrollto(n?pe(o).scrollleft():i,n?i:pe(o).scrolltop()):e[r]=i)},e,r,arguments.length,null)}}),pe.each(["top","left"],function(e,t){pe.csshooks[t]=l(fe.pixelposition,function(e,n){if(n)return n=gt(e,t),ft.test(n)?pe(e).position()[t]+"px":n})}),pe.each({height:"height",width:"width"},function(e,t){pe.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){pe.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||i===!0?"margin":"border");return pe(this,function(t,n,r){var i;return pe.iswindow(t)?t.document.documentelement["client"+e]:9===t.nodetype?(i=t.documentelement,math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?pe.css(t,n,a):pe.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),pe.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)}}),pe.fn.size=function(){return this.length},pe.fn.andself=pe.fn.addback,layui.define(function(e){e("jquery",pe)}),pe});!function(e,t){"use strict";var i,n,a=e.layui&&layui.define,o={getpath:function(){var e=document.scripts,t=e[e.length-1],i=t.src;if(!t.getattribute("merge"))return i.substring(0,i.lastindexof("/")+1)}(),config:{},end:{},minindex:0,minleft:[],btn:["确定","取消"],type:["dialog","page","iframe","loading","tips"]},r={v:"3.0.3",ie:function(){var t=navigator.useragent.tolowercase();return!!(e.activexobject||"activexobject"in e)&&((t.match(/msie\s(\d+)/)||[])[1]||"11")}(),index:e.layer&&e.layer.v?1e5:0,path:o.getpath,config:function(e,t){return e=e||{},r.cache=o.config=i.extend({},o.config,e),r.path=o.config.path||r.path,"string"==typeof e.extend&&(e.extend=[e.extend]),o.config.path&&r.ready(),e.extend?(a?layui.addcss("modules/layer/"+e.extend):r.link("skin/"+e.extend),this):this},link:function(t,n,a){if(r.path){var o=i("head")[0],s=document.createelement("link");"string"==typeof n&&(a=n);var l=(a||t).replace(/\.|\//g,""),f="layuicss-"+l,c=0;s.rel="stylesheet",s.href=r.path+t,s.id=f,i("#"+f)[0]||o.appendchild(s),"function"==typeof n&&!function u(){return++c>80?e.console&&console.error("layer.css: invalid"):void(1989===parseint(i("#"+f).css("width"))?n():settimeout(u,100))}()}},ready:function(e){var t="skinlayercss",i="303";return a?layui.addcss("modules/layer/default/layer.css?v="+r.v+i,e,t):r.link("skin/default/layer.css?v="+r.v+i,e,t),this},alert:function(e,t,n){var a="function"==typeof t;return a&&(n=t),r.open(i.extend({content:e,yes:n},a?{}:t))},confirm:function(e,t,n,a){var s="function"==typeof t;return s&&(a=n,n=t),r.open(i.extend({content:e,btn:o.btn,yes:n,btn2:a},s?{}:t))},msg:function(e,n,a){var s="function"==typeof n,f=o.config.skin,c=(f?f+" "+f+"-msg":"")||"layui-layer-msg",u=l.anim.length-1;return s&&(a=n),r.open(i.extend({content:e,time:3e3,shade:!1,skin:c,title:!1,closebtn:!1,btn:!1,resize:!1,end:a},s&&!o.config.skin?{skin:c+" layui-layer-hui",anim:u}:function(){return n=n||{},(n.icon===-1||n.icon===t&&!o.config.skin)&&(n.skin=c+" "+(n.skin||"layui-layer-hui")),n}()))},load:function(e,t){return r.open(i.extend({type:3,icon:e||0,resize:!1,shade:.01},t))},tips:function(e,t,n){return r.open(i.extend({type:4,content:[e,t],closebtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxwidth:210},n))}},s=function(e){var t=this;t.index=++r.index,t.config=i.extend({},t.config,o.config,e),document.body?t.creat():settimeout(function(){t.creat()},30)};s.pt=s.prototype;var l=["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"];l.anim=["layer-anim","layer-anim-01","layer-anim-02","layer-anim-03","layer-anim-04","layer-anim-05","layer-anim-06"],s.pt.config={type:0,shade:.3,fixed:!0,move:l[1],title:"信息",offset:"auto",area:"auto",closebtn:1,time:0,zindex:19891014,maxwidth:360,anim:0,isoutanim:!0,icon:-1,movetype:1,resize:!0,scrollbar:!0,tips:2},s.pt.vessel=function(e,t){var n=this,a=n.index,r=n.config,s=r.zindex+a,f="object"==typeof r.title,c=r.maxmin&&(1===r.type||2===r.type),u=r.title?'
      '+(f?r.title[0]:r.title)+"
      ":"";return r.zindex=s,t([r.shade?'
      ':"",'
      '+(e&&2!=r.type?"":u)+'
      '+(0==r.type&&r.icon!==-1?'':"")+(1==r.type&&e?"":r.content||"")+'
      '+function(){var e=c?'':"";return r.closebtn&&(e+=''),e}()+""+(r.btn?function(){var e="";"string"==typeof r.btn&&(r.btn=[r.btn]);for(var t=0,i=r.btn.length;t'+r.btn[t]+"";return'
      '+e+"
      "}():"")+(r.resize?'':"")+"
      "],u,i('
      ')),n},s.pt.creat=function(){var e=this,t=e.config,a=e.index,s=t.content,f="object"==typeof s,c=i("body");if(!t.id||!i("#"+t.id)[0]){switch("string"==typeof t.area&&(t.area="auto"===t.area?["",""]:[t.area,""]),t.shift&&(t.anim=t.shift),6==r.ie&&(t.fixed=!1),t.type){case 0:t.btn="btn"in t?t.btn:o.btn[0],r.closeall("dialog");break;case 2:var s=t.content=f?t.content:[t.content||"http://layer.layui.com","auto"];t.content='';break;case 3:delete t.title,delete t.closebtn,t.icon===-1&&0===t.icon,r.closeall("loading");break;case 4:f||(t.content=[t.content,"body"]),t.follow=t.content[1],t.content=t.content[0]+'',delete t.title,t.tips="object"==typeof t.tips?t.tips:[t.tips,!0],t.tipsmore||r.closeall("tips")}e.vessel(f,function(n,r,u){c.append(n[0]),f?function(){2==t.type||4==t.type?function(){i("body").append(n[1])}():function(){s.parents("."+l[0])[0]||(s.data("display",s.css("display")).show().addclass("layui-layer-wrap").wrap(n[1]),i("#"+l[0]+a).find("."+l[5]).before(r))}()}():c.append(n[1]),i(".layui-layer-move")[0]||c.append(o.moveelem=u),e.layero=i("#"+l[0]+a),t.scrollbar||l.html.css("overflow","hidden").attr("layer-full",a)}).auto(a),2==t.type&&6==r.ie&&e.layero.find("iframe").attr("src",s[0]),4==t.type?e.tips():e.offset(),t.fixed&&n.on("resize",function(){e.offset(),(/^\d+%$/.test(t.area[0])||/^\d+%$/.test(t.area[1]))&&e.auto(a),4==t.type&&e.tips()}),t.time<=0||settimeout(function(){r.close(e.index)},t.time),e.move().callback(),l.anim[t.anim]&&e.layero.addclass(l.anim[t.anim]),t.isoutanim&&e.layero.data("isoutanim",!0)}},s.pt.auto=function(e){function t(e){e=s.find(e),e.height(f[1]-c-u-2*(0|parsefloat(e.css("padding-top"))))}var a=this,o=a.config,s=i("#"+l[0]+e);""===o.area[0]&&o.maxwidth>0&&(r.ie&&r.ie<8&&o.btn&&s.width(s.innerwidth()),s.outerwidth()>o.maxwidth&&s.width(o.maxwidth));var f=[s.innerwidth(),s.innerheight()],c=s.find(l[1]).outerheight()||0,u=s.find("."+l[6]).outerheight()||0;switch(o.type){case 2:t("iframe");break;default:""===o.area[1]?o.fixed&&f[1]>=n.height()&&(f[1]=n.height(),t("."+l[5])):t("."+l[5])}return a},s.pt.offset=function(){var e=this,t=e.config,i=e.layero,a=[i.outerwidth(),i.outerheight()],o="object"==typeof t.offset;e.offsettop=(n.height()-a[1])/2,e.offsetleft=(n.width()-a[0])/2,o?(e.offsettop=t.offset[0],e.offsetleft=t.offset[1]||e.offsetleft):"auto"!==t.offset&&("t"===t.offset?e.offsettop=0:"r"===t.offset?e.offsetleft=n.width()-a[0]:"b"===t.offset?e.offsettop=n.height()-a[1]:"l"===t.offset?e.offsetleft=0:"lt"===t.offset?(e.offsettop=0,e.offsetleft=0):"lb"===t.offset?(e.offsettop=n.height()-a[1],e.offsetleft=0):"rt"===t.offset?(e.offsettop=0,e.offsetleft=n.width()-a[0]):"rb"===t.offset?(e.offsettop=n.height()-a[1],e.offsetleft=n.width()-a[0]):e.offsettop=t.offset),t.fixed||(e.offsettop=/%$/.test(e.offsettop)?n.height()*parsefloat(e.offsettop)/100:parsefloat(e.offsettop),e.offsetleft=/%$/.test(e.offsetleft)?n.width()*parsefloat(e.offsetleft)/100:parsefloat(e.offsetleft),e.offsettop+=n.scrolltop(),e.offsetleft+=n.scrollleft()),i.attr("minleft")&&(e.offsettop=n.height()-(i.find(l[1]).outerheight()||0),e.offsetleft=i.css("left")),i.css({top:e.offsettop,left:e.offsetleft})},s.pt.tips=function(){var e=this,t=e.config,a=e.layero,o=[a.outerwidth(),a.outerheight()],r=i(t.follow);r[0]||(r=i("body"));var s={width:r.outerwidth(),height:r.outerheight(),top:r.offset().top,left:r.offset().left},f=a.find(".layui-layer-tipsg"),c=t.tips[0];t.tips[1]||f.remove(),s.autoleft=function(){s.left+o[0]-n.width()>0?(s.tipleft=s.left+s.width-o[0],f.css({right:12,left:"auto"})):s.tipleft=s.left},s.where=[function(){s.autoleft(),s.tiptop=s.top-o[1]-10,f.removeclass("layui-layer-tipsb").addclass("layui-layer-tipst").css("border-right-color",t.tips[1])},function(){s.tipleft=s.left+s.width+10,s.tiptop=s.top,f.removeclass("layui-layer-tipsl").addclass("layui-layer-tipsr").css("border-bottom-color",t.tips[1])},function(){s.autoleft(),s.tiptop=s.top+s.height+10,f.removeclass("layui-layer-tipst").addclass("layui-layer-tipsb").css("border-right-color",t.tips[1])},function(){s.tipleft=s.left-o[0]-10,s.tiptop=s.top,f.removeclass("layui-layer-tipsr").addclass("layui-layer-tipsl").css("border-bottom-color",t.tips[1])}],s.where[c-1](),1===c?s.top-(n.scrolltop()+o[1]+16)<0&&s.where[2]():2===c?n.width()-(s.left+s.width+o[0]+16)>0||s.where[3]():3===c?s.top-n.scrolltop()+s.height+o[1]+16-n.height()>0&&s.where[0]():4===c&&o[0]+16-s.left>0&&s.where[1](),a.find("."+l[5]).css({"background-color":t.tips[1],"padding-right":t.closebtn?"30px":""}),a.css({left:s.tipleft-(t.fixed?n.scrollleft():0),top:s.tiptop-(t.fixed?n.scrolltop():0)})},s.pt.move=function(){var e=this,t=e.config,a=i(document),s=e.layero,l=s.find(t.move),f=s.find(".layui-layer-resize"),c={};return t.move&&l.css("cursor","move"),l.on("mousedown",function(e){e.preventdefault(),t.move&&(c.movestart=!0,c.offset=[e.clientx-parsefloat(s.css("left")),e.clienty-parsefloat(s.css("top"))],o.moveelem.css("cursor","move").show())}),f.on("mousedown",function(e){e.preventdefault(),c.resizestart=!0,c.offset=[e.clientx,e.clienty],c.area=[s.outerwidth(),s.outerheight()],o.moveelem.css("cursor","se-resize").show()}),a.on("mousemove",function(i){if(c.movestart){var a=i.clientx-c.offset[0],o=i.clienty-c.offset[1],l="fixed"===s.css("position");if(i.preventdefault(),c.stx=l?0:n.scrollleft(),c.sty=l?0:n.scrolltop(),!t.moveout){var f=n.width()-s.outerwidth()+c.stx,u=n.height()-s.outerheight()+c.sty;af&&(a=f),ou&&(o=u)}s.css({left:a,top:o})}if(t.resize&&c.resizestart){var a=i.clientx-c.offset[0],o=i.clienty-c.offset[1];i.preventdefault(),r.style(e.index,{width:c.area[0]+a,height:c.area[1]+o}),c.isresize=!0,t.resizing&&t.resizing(s)}}).on("mouseup",function(e){c.movestart&&(delete c.movestart,o.moveelem.hide(),t.moveend&&t.moveend(s)),c.resizestart&&(delete c.resizestart,o.moveelem.hide())}),e},s.pt.callback=function(){function e(){var e=a.cancel&&a.cancel(t.index,n);e===!1||r.close(t.index)}var t=this,n=t.layero,a=t.config;t.openlayer(),a.success&&(2==a.type?n.find("iframe").on("load",function(){a.success(n,t.index)}):a.success(n,t.index)),6==r.ie&&t.ie6(n),n.find("."+l[6]).children("a").on("click",function(){var e=i(this).index();if(0===e)a.yes?a.yes(t.index,n):a.btn1?a.btn1(t.index,n):r.close(t.index);else{var o=a["btn"+(e+1)]&&a["btn"+(e+1)](t.index,n);o===!1||r.close(t.index)}}),n.find("."+l[7]).on("click",e),a.shadeclose&&i("#layui-layer-shade"+t.index).on("click",function(){r.close(t.index)}),n.find(".layui-layer-min").on("click",function(){var e=a.min&&a.min(n);e===!1||r.min(t.index,a)}),n.find(".layui-layer-max").on("click",function(){i(this).hasclass("layui-layer-maxmin")?(r.restore(t.index),a.restore&&a.restore(n)):(r.full(t.index,a),settimeout(function(){a.full&&a.full(n)},100))}),a.end&&(o.end[t.index]=a.end)},o.reselect=function(){i.each(i("select"),function(e,t){var n=i(this);n.parents("."+l[0])[0]||1==n.attr("layer")&&i("."+l[0]).length<1&&n.removeattr("layer").show(),n=null})},s.pt.ie6=function(e){i("select").each(function(e,t){var n=i(this);n.parents("."+l[0])[0]||"none"===n.css("display")||n.attr({layer:"1"}).hide(),n=null})},s.pt.openlayer=function(){var e=this;r.zindex=e.config.zindex,r.settop=function(e){var t=function(){r.zindex++,e.css("z-index",r.zindex+1)};return r.zindex=parseint(e[0].style.zindex),e.on("mousedown",t),r.zindex}},o.record=function(e){var t=[e.width(),e.height(),e.position().top,e.position().left+parsefloat(e.css("margin-left"))];e.find(".layui-layer-max").addclass("layui-layer-maxmin"),e.attr({area:t})},o.rescollbar=function(e){l.html.attr("layer-full")==e&&(l.html[0].style.removeproperty?l.html[0].style.removeproperty("overflow"):l.html[0].style.removeattribute("overflow"),l.html.removeattr("layer-full"))},e.layer=r,r.getchildframe=function(e,t){return t=t||i("."+l[4]).attr("times"),i("#"+l[0]+t).find("iframe").contents().find(e)},r.getframeindex=function(e){return i("#"+e).parents("."+l[4]).attr("times")},r.iframeauto=function(e){if(e){var t=r.getchildframe("html",e).outerheight(),n=i("#"+l[0]+e),a=n.find(l[1]).outerheight()||0,o=n.find("."+l[6]).outerheight()||0;n.css({height:t+a+o}),n.find("iframe").css({height:t})}},r.iframesrc=function(e,t){i("#"+l[0]+e).find("iframe").attr("src",t)},r.style=function(e,t,n){var a=i("#"+l[0]+e),r=a.find(".layui-layer-content"),s=a.attr("type"),f=a.find(l[1]).outerheight()||0,c=a.find("."+l[6]).outerheight()||0;a.attr("minleft");s!==o.type[3]&&s!==o.type[4]&&(n||(parsefloat(t.width)<=260&&(t.width=260),parsefloat(t.height)-f-c<=64&&(t.height=64+f+c)),a.css(t),c=a.find("."+l[6]).outerheight(),s===o.type[2]?a.find("iframe").css({height:parsefloat(t.height)-f-c}):r.css({height:parsefloat(t.height)-f-c-parsefloat(r.css("padding-top"))-parsefloat(r.css("padding-bottom"))}))},r.min=function(e,t){var a=i("#"+l[0]+e),s=a.find(l[1]).outerheight()||0,f=a.attr("minleft")||181*o.minindex+"px",c=a.css("position");o.record(a),o.minleft[0]&&(f=o.minleft[0],o.minleft.shift()),a.attr("position",c),r.style(e,{width:180,height:s,left:f,top:n.height()-s,position:"fixed",overflow:"hidden"},!0),a.find(".layui-layer-min").hide(),"page"===a.attr("type")&&a.find(l[4]).hide(),o.rescollbar(e),a.attr("minleft")||o.minindex++,a.attr("minleft",f)},r.restore=function(e){var t=i("#"+l[0]+e),n=t.attr("area").split(",");t.attr("type");r.style(e,{width:parsefloat(n[0]),height:parsefloat(n[1]),top:parsefloat(n[2]),left:parsefloat(n[3]),position:t.attr("position"),overflow:"visible"},!0),t.find(".layui-layer-max").removeclass("layui-layer-maxmin"),t.find(".layui-layer-min").show(),"page"===t.attr("type")&&t.find(l[4]).show(),o.rescollbar(e)},r.full=function(e){var t,a=i("#"+l[0]+e);o.record(a),l.html.attr("layer-full")||l.html.css("overflow","hidden").attr("layer-full",e),cleartimeout(t),t=settimeout(function(){var t="fixed"===a.css("position");r.style(e,{top:t?0:n.scrolltop(),left:t?0:n.scrollleft(),width:n.width(),height:n.height()},!0),a.find(".layui-layer-min").hide()},100)},r.title=function(e,t){var n=i("#"+l[0]+(t||r.index)).find(l[1]);n.html(e)},r.close=function(e){var t=i("#"+l[0]+e),n=t.attr("type"),a="layer-anim-close";if(t[0]){var s="layui-layer-wrap",f=function(){if(n===o.type[1]&&"object"===t.attr("contype")){t.children(":not(."+l[5]+")").remove();for(var a=t.find("."+s),r=0;r<2;r++)a.unwrap();a.css("display",a.data("display")).removeclass(s)}else{if(n===o.type[2])try{var f=i("#"+l[4]+e)[0];f.contentwindow.document.write(""),f.contentwindow.close(),t.find("."+l[5])[0].removechild(f)}catch(c){}t[0].innerhtml="",t.remove()}"function"==typeof o.end[e]&&o.end[e](),delete o.end[e]};t.data("isoutanim")&&t.addclass(a),i("#layui-layer-moves, #layui-layer-shade"+e).remove(),6==r.ie&&o.reselect(),o.rescollbar(e),t.attr("minleft")&&(o.minindex--,o.minleft.push(t.attr("minleft"))),r.ie&&r.ie<10||!t.data("isoutanim")?f():settimeout(function(){f()},200)}},r.closeall=function(e){i.each(i("."+l[0]),function(){var t=i(this),n=e?t.attr("type")===e:1;n&&r.close(t.attr("times")),n=null})};var f=r.cache||{},c=function(e){return f.skin?" "+f.skin+" "+f.skin+"-"+e:""};r.prompt=function(e,t){var a="";if(e=e||{},"function"==typeof e&&(t=e),e.area){var o=e.area;a='style="width: '+o[0]+"; height: "+o[1]+';"',delete e.area}var s,l=2==e.formtype?'":function(){return''}(),f=e.success;return delete e.success,r.open(i.extend({type:1,btn:["确定","取消"],content:l,skin:"layui-layer-prompt"+c("prompt"),maxwidth:n.width(),success:function(e){s=e.find(".layui-layer-input"),s.focus(),"function"==typeof f&&f(e)},resize:!1,yes:function(i){var n=s.val();""===n?s.focus():n.length>(e.maxlength||500)?r.tips("最多输入"+(e.maxlength||500)+"个字数",s,{tips:1}):t&&t(n,i,s)}},e))},r.tab=function(e){e=e||{};var t=e.tab||{},n=e.success;return delete e.success,r.open(i.extend({type:1,skin:"layui-layer-tab"+c("tab"),resize:!1,title:function(){var e=t.length,i=1,n="";if(e>0)for(n=''+t[0].title+"";i"+t[i].title+"";return n}(),content:'
        '+function(){var e=t.length,i=1,n="";if(e>0)for(n='
      • '+(t[0].content||"no content")+"
      • ";i'+(t[i].content||"no content")+"";return n}()+"
      ",success:function(t){var a=t.find(".layui-layer-title").children(),o=t.find(".layui-layer-tabmain").children();a.on("mousedown",function(t){t.stoppropagation?t.stoppropagation():t.cancelbubble=!0;var n=i(this),a=n.index();n.addclass("layui-layer-tabnow").siblings().removeclass("layui-layer-tabnow"),o.eq(a).show().siblings().hide(),"function"==typeof e.change&&e.change(a)}),"function"==typeof n&&n(t)}},e))},r.photos=function(t,n,a){function o(e,t,i){var n=new image;return n.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,t(n)},void(n.onerror=function(e){n.onerror=null,i(e)}))}var s={};if(t=t||{},t.photos){var l=t.photos.constructor===object,f=l?t.photos:{},u=f.data||[],d=f.start||0;s.imgindex=(0|d)+1,t.img=t.img||"img";var y=t.success;if(delete t.success,l){if(0===u.length)return r.msg("没有图片")}else{var p=i(t.photos),h=function(){u=[],p.find(t.img).each(function(e){var t=i(this);t.attr("layer-index",e),u.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(h(),0===u.length)return;if(n||p.on("click",t.img,function(){var e=i(this),n=e.attr("layer-index");r.photos(i.extend(t,{photos:{start:n,data:u,tab:t.tab},full:t.full}),!0),h()}),!n)return}s.imgprev=function(e){s.imgindex--,s.imgindex<1&&(s.imgindex=u.length),s.tabimg(e)},s.imgnext=function(e,t){s.imgindex++,s.imgindex>u.length&&(s.imgindex=1,t)||s.tabimg(e)},s.keyup=function(e){if(!s.end){var t=e.keycode;e.preventdefault(),37===t?s.imgprev(!0):39===t?s.imgnext(!0):27===t&&r.close(s.index)}},s.tabimg=function(e){if(!(u.length<=1))return f.start=s.imgindex-1,r.close(s.index),r.photos(t,!0,e)},s.event=function(){s.bigimg.hover(function(){s.imgsee.show()},function(){s.imgsee.hide()}),s.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventdefault(),s.imgprev()}),s.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventdefault(),s.imgnext()}),i(document).on("keyup",s.keyup)},s.loadi=r.load(1,{shade:!("shade"in t)&&.9,scrollbar:!1}),o(u[d].src,function(n){r.close(s.loadi),s.index=r.open(i.extend({type:1,id:"layui-layer-photos",area:function(){var a=[n.width,n.height],o=[i(e).width()-100,i(e).height()-100];if(!t.full&&(a[0]>o[0]||a[1]>o[1])){var r=[a[0]/o[0],a[1]/o[1]];r[0]>r[1]?(a[0]=a[0]/r[0],a[1]=a[1]/r[0]):r[0]'+(u[d].alt||
      '+(u.length>1?'':"")+'
      '+(u[d].alt||"")+""+s.imgindex+"/"+u.length+"
      ",success:function(e,i){s.bigimg=e.find(".layui-layer-phimg"),s.imgsee=e.find(".layui-layer-imguide,.layui-layer-imgbar"),s.event(e),t.tab&&t.tab(u[d],e),"function"==typeof y&&y(e)},end:function(){s.end=!0,i(document).off("keyup",s.keyup)}},t))},function(){r.close(s.loadi),r.msg("当前图片地址异常
      是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){u.length>1&&s.imgnext(!0,!0)}})})}},o.run=function(t){i=t,n=i(e),l.html=i("html"),r.open=function(e){var t=new s(e);return t.index}},e.layui&&layui.define?(r.ready(),layui.define("jquery",function(t){r.path=layui.cache.dir,o.run(layui.jquery),e.layer=r,t("layer",r)})):"function"==typeof define&&define.amd?define(["jquery"],function(){return o.run(e.jquery),r}):function(){o.run(e.jquery),r.ready()}()}(window);layui.define("jquery",function(i){"use strict";var a=layui.jquery,t=(layui.hint(),layui.device()),l="element",e="layui-this",n="layui-show",s=function(){this.config={}};s.prototype.set=function(i){var t=this;return a.extend(!0,t.config,i),t},s.prototype.on=function(i,a){return layui.onevent(l,i,a)},s.prototype.tabadd=function(i,t){var l=".layui-tab-title",e=a(".layui-tab[lay-filter="+i+"]"),n=e.children(l),s=e.children(".layui-tab-content");return n.append('
    • '+(t.title||"unnaming")+"
    • "),s.append('
      '+(t.content||"")+"
      "),f.hidetabmore(!0),f.tabauto(),this},s.prototype.tabdelete=function(i,t){var l=".layui-tab-title",e=a(".layui-tab[lay-filter="+i+"]"),n=e.children(l),s=n.find('>li[lay-id="'+t+'"]');return f.tabdelete(null,s),this},s.prototype.tabchange=function(i,t){var l=".layui-tab-title",e=a(".layui-tab[lay-filter="+i+"]"),n=e.children(l),s=n.find('>li[lay-id="'+t+'"]');return f.tabclick(null,null,s),this},s.prototype.progress=function(i,t){var l="layui-progress",e=a("."+l+"[lay-filter="+i+"]"),n=e.find("."+l+"-bar"),s=n.find("."+l+"-text");return n.css("width",t),s.text(t),this};var o=".layui-nav",c="layui-nav-item",r="layui-nav-bar",u="layui-nav-tree",d="layui-nav-child",h="layui-nav-more",y="layui-anim layui-anim-upbit",f={tabclick:function(i,t,s){var o=s||a(this),t=t||o.parent().children("li").index(o),c=o.parents(".layui-tab").eq(0),r=c.children(".layui-tab-content").children(".layui-tab-item"),u=c.attr("lay-filter");o.addclass(e).siblings().removeclass(e),r.eq(t).addclass(n).siblings().removeclass(n),layui.event.call(this,l,"tab("+u+")",{elem:c,index:t})},tabdelete:function(i,t){var l=t||a(this).parent(),n=l.index(),s=l.parents(".layui-tab").eq(0),o=s.children(".layui-tab-content").children(".layui-tab-item");l.hasclass(e)&&(l.next()[0]?f.tabclick.call(l.next()[0],null,n+1):l.prev()[0]&&f.tabclick.call(l.prev()[0],null,n-1)),l.remove(),o.eq(n).remove(),settimeout(function(){f.tabauto()},50)},tabauto:function(){var i="layui-tab-more",l="layui-tab-bar",e="layui-tab-close",n=this;a(".layui-tab").each(function(){var s=a(this),o=s.children(".layui-tab-title"),c=(s.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),r=a('');if(n===window&&8!=t.ie&&f.hidetabmore(!0),s.attr("lay-allowclose")&&o.find("li").each(function(){var i=a(this);if(!i.find("."+e)[0]){var t=a('');t.on("click",f.tabdelete),i.append(t)}}),o.prop("scrollwidth")>o.outerwidth()+1){if(o.find("."+l)[0])return;o.append(r),s.attr("overflow",""),r.on("click",function(a){o[this.title?"removeclass":"addclass"](i),this.title=this.title?"":"收缩"})}else o.find("."+l).remove(),s.removeattr("overflow")})},hidetabmore:function(i){var t=a(".layui-tab-title");i!==!0&&"tabmore"===a(i.target).attr("lay-stope")||(t.removeclass("layui-tab-more"),t.find(".layui-tab-bar").attr("title",""))},clickthis:function(){var i=a(this),t=i.parents(o),n=t.attr("lay-filter");i.find("."+d)[0]||(t.find("."+e).removeclass(e),i.addclass(e),layui.event.call(this,l,"nav("+n+")",i))},clickchild:function(){var i=a(this),t=i.parents(o),n=t.attr("lay-filter");t.find("."+e).removeclass(e),i.addclass(e),layui.event.call(this,l,"nav("+n+")",i)},showchild:function(){var i=a(this),t=i.parents(o),l=i.parent(),e=i.siblings("."+d);t.hasclass(u)&&(e.removeclass(y),l["none"===e.css("display")?"addclass":"removeclass"](c+"ed"))},collapse:function(){var i=a(this),t=i.find(".layui-colla-icon"),e=i.siblings(".layui-colla-content"),s=i.parents(".layui-collapse").eq(0),o=s.attr("lay-filter"),c="none"===e.css("display");if("string"==typeof s.attr("lay-accordion")){var r=s.children(".layui-colla-item").children("."+n);r.siblings(".layui-colla-title").children(".layui-colla-icon").html(""),r.removeclass(n)}e[c?"addclass":"removeclass"](n),t.html(c?"":""),layui.event.call(this,l,"collapse("+o+")",{title:i,content:e,show:c})}};s.prototype.init=function(i){var l={tab:function(){f.tabauto.call({})},nav:function(){var i,l,e,s=200,p=function(o,c){var r=a(this),f=r.find("."+d);c.hasclass(u)?o.css({top:r.position().top,height:r.children("a").height(),opacity:1}):(f.addclass(y),o.css({left:r.position().left+parsefloat(r.css("marginleft")),top:r.position().top+r.height()-5}),i=settimeout(function(){o.css({width:r.width(),opacity:1})},t.ie&&t.ie<10?0:s),cleartimeout(e),"block"===f.css("display")&&cleartimeout(l),l=settimeout(function(){f.addclass(n),r.find("."+h).addclass(h+"d")},300))};a(o).each(function(){var t=a(this),o=a(''),y=t.find("."+c);t.find("."+r)[0]||(t.append(o),y.on("mouseenter",function(){p.call(this,o,t)}).on("mouseleave",function(){t.hasclass(u)||(cleartimeout(l),l=settimeout(function(){t.find("."+d).removeclass(n),t.find("."+h).removeclass(h+"d")},300))}),t.on("mouseleave",function(){cleartimeout(i),e=settimeout(function(){t.hasclass(u)?o.css({height:0,top:o.position().top+o.height()/2,opacity:0}):o.css({width:0,left:o.position().left+o.width()/2,opacity:0})},s)})),y.each(function(){var i=a(this),t=i.find("."+d);if(t[0]&&!i.find("."+h)[0]){var l=i.children("a");l.append('')}i.off("click",f.clickthis).on("click",f.clickthis),i.children("a").off("click",f.showchild).on("click",f.showchild),t.children("dd").off("click",f.clickchild).on("click",f.clickchild)})})},breadcrumb:function(){var i=".layui-breadcrumb";a(i).each(function(){var i=a(this),t=i.attr("lay-separator")||">",l=i.find("a");l.find(".layui-box")[0]||(l.each(function(i){i!==l.length-1&&a(this).append(''+t+"")}),i.css("visibility","visible"))})},progress:function(){var i="layui-progress";a("."+i).each(function(){var t=a(this),l=t.find(".layui-progress-bar"),e=l.attr("lay-percent");l.css("width",e),t.attr("lay-showpercent")&&settimeout(function(){var a=math.round(l.width()/t.width()*100);a>100&&(a=100),l.html(''+a+"%")},350)})},collapse:function(){var i="layui-collapse";a("."+i).each(function(){var i=a(this).find(".layui-colla-item");i.each(function(){var i=a(this),t=i.find(".layui-colla-title"),l=i.find(".layui-colla-content"),e="none"===l.css("display");t.find(".layui-colla-icon").remove(),t.append(''+(e?"":"")+""),t.off("click",f.collapse).on("click",f.collapse)})})}};return layui.each(l,function(i,a){a()})};var p=new s,v=a(document);p.init();var b=".layui-tab-title li";v.on("click",b,f.tabclick),v.on("click",f.hidetabmore),a(window).on("resize",f.tabauto),i(l,function(i){return p.set(i)})});layui.define("layer",function(e){"use strict";var a=layui.jquery,t=layui.layer,i=(layui.device(),"layui-upload-enter"),n="layui-upload-iframe",r={icon:2,shift:6},o={file:"文件",video:"视频",audio:"音频"},s=function(e){this.options=e};s.prototype.init=function(){var e=this,t=e.options,r=a("body"),s=a(t.elem||".layui-upload-file"),u=a('');return a("#"+n)[0]||r.append(u),s.each(function(r,s){s=a(s);var u='
      ',l=s.attr("lay-type")||t.type;t.unwrap||(u='
      '+u+''+(s.attr("lay-title")||t.title||"上传"+(o[l]||"图片"))+"
      "),u=a(u),t.unwrap||u.on("dragover",function(e){e.preventdefault(),a(this).addclass(i)}).on("dragleave",function(){a(this).removeclass(i)}).on("drop",function(){a(this).removeclass(i)}),s.parent("form").attr("target")===n&&(t.unwrap?s.unwrap():(s.parent().next().remove(),s.unwrap().unwrap())),s.wrap(u),s.off("change").on("change",function(){e.action(this,l)})})},s.prototype.action=function(e,i){var o=this,s=o.options,u=e.value,l=a(e),p=l.attr("lay-ext")||s.ext||"";if(u){switch(i){case"file":if(p&&!regexp("\\w\\.("+p+")$","i").test(escape(u)))return t.msg("不支持该文件格式",r),e.value="";break;case"video":if(!regexp("\\w\\.("+(p||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(u)))return t.msg("不支持该视频格式",r),e.value="";break;case"audio":if(!regexp("\\w\\.("+(p||"mp3|wav|mid")+")$","i").test(escape(u)))return t.msg("不支持该音频格式",r),e.value="";break;default:if(!regexp("\\w\\.("+(p||"jpg|png|gif|bmp|jpeg")+")$","i").test(escape(u)))return t.msg("不支持该图片格式",r),e.value=""}s.before&&s.before(e),l.parent().submit();var c=a("#"+n),f=setinterval(function(){var a;try{a=c.contents().find("body").text()}catch(i){t.msg("上传接口存在跨域",r),clearinterval(f)}if(a){clearinterval(f),c.contents().find("body").html("");try{a=json.parse(a)}catch(i){return a={},t.msg("请对上传接口返回json字符",r)}"function"==typeof s.success&&s.success(a,e)}},30);e.value=""}},e("upload",function(e){var a=new s(e=e||{});a.init()})});layui.define("layer",function(e){"use strict";var i=layui.jquery,t=layui.layer,a=layui.hint(),n=layui.device(),l="form",r=".layui-form",s="layui-this",o="layui-hide",c="layui-disabled",u=function(){this.config={verify:{required:[/[\s]+/,"必填项不能为空"],phone:[/^1\d{10}$/,"请输入正确的手机号"],email:[/^([a-za-z0-9_\.\-])+\@(([a-za-z0-9\-])+\.)+([a-za-z0-9]{2,4})+$/,"邮箱格式不正确"],url:[/(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/,"链接格式不正确"],number:[/^\d+$/,"只能填写数字"],date:[/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/,"日期格式不正确"],identity:[/(^\d{15}$)|(^\d{17}(x|x|\d)$)/,"请输入正确的身份证号"]}}};u.prototype.set=function(e){var t=this;return i.extend(!0,t.config,e),t},u.prototype.verify=function(e){var t=this;return i.extend(!0,t.config.verify,e),t},u.prototype.on=function(e,i){return layui.onevent(l,e,i)},u.prototype.render=function(e){var t=this,n={select:function(){var e,t="请选择",a="layui-form-select",n="layui-select-title",u="layui-select-none",d="",f=i(r).find("select"),y=function(t,l){i(t.target).parent().hasclass(n)&&!l||(i("."+a).removeclass(a+"ed"),e&&d&&e.val(d)),e=null},v=function(t,r,f){var v=i(this),h=t.find("."+n),p=h.find("input"),m=t.find("dl"),k=m.children("dd");if(!r){var b=function(){t.addclass(a+"ed"),k.removeclass(o)},x=function(){t.removeclass(a+"ed"),p.blur(),g(p.val(),function(e){e&&(d=m.find("."+s).html(),p&&p.val(d))})};h.on("click",function(e){t.hasclass(a+"ed")?x():(y(e,!0),b()),m.find("."+u).remove()}),h.find(".layui-edge").on("click",function(){p.focus()}),p.on("keyup",function(e){var i=e.keycode;9===i&&b()}).on("keydown",function(e){var i=e.keycode;9===i?x():13===i&&e.preventdefault()});var g=function(e,t,a){var n=0;layui.each(k,function(){var t=i(this),l=t.text(),r=l.indexof(e)===-1;(""===e||"blur"===a?e!==l:r)&&n++,"keyup"===a&&t[r?"addclass":"removeclass"](o)});var l=n===k.length;return t(l),l},c=function(e){var i=this.value,t=e.keycode;return 9!==t&&13!==t&&37!==t&&38!==t&&39!==t&&40!==t&&(g(i,function(e){e?m.find("."+u)[0]||m.append('

      无匹配项

      '):m.find("."+u).remove()},"keyup"),void(""===i&&m.find("."+u).remove()))};f&&p.on("keyup",c).on("blur",function(i){e=p,d=m.find("."+s).html(),settimeout(function(){g(p.val(),function(e){e&&!d&&p.val("")},"blur")},200)}),k.on("click",function(){var e=i(this),a=e.attr("lay-value"),n=v.attr("lay-filter");return!e.hasclass(c)&&(v.val(a).removeclass("layui-form-danger"),p.val(e.text()),e.addclass(s).siblings().removeclass(s),layui.event.call(this,l,"select("+n+")",{elem:v[0],value:a,othis:t}),x(),!1)}),t.find("dl>dt").on("click",function(e){return!1}),i(document).off("click",y).on("click",y)}};f.each(function(e,l){var r=i(this),o=r.next("."+a),u=this.disabled,d=l.value,f=i(l.options[l.selectedindex]);if("string"==typeof r.attr("lay-ignore"))return r.show();var y="string"==typeof r.attr("lay-search"),h=i(['
      ','
      ','
      ','
      '+function(e){var i=[];return layui.each(e,function(e,t){(0!==e||t.value)&&("optgroup"===t.tagname.tolowercase()?i.push("
      "+t.label+"
      "):i.push('
      '+t.innerhtml+"
      "))}),i.join("")}(r.find("*"))+"
      ","
      "].join(""));o[0]&&o.remove(),r.after(h),v.call(this,h,u,y)})},checkbox:function(){var e={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},t=i(r).find("input[type=checkbox]"),a=function(e,t){var a=i(this);e.on("click",function(){var i=a.attr("lay-filter"),n=(a.attr("lay-text")||"").split("|");a[0].disabled||(a[0].checked?(a[0].checked=!1,e.removeclass(t[1]).find("em").text(n[1])):(a[0].checked=!0,e.addclass(t[1]).find("em").text(n[0])),layui.event.call(a[0],l,t[2]+"("+i+")",{elem:a[0],value:a[0].value,othis:e}))})};t.each(function(t,n){var l=i(this),r=l.attr("lay-skin"),s=(l.attr("lay-text")||"").split("|"),o=this.disabled;"switch"===r&&(r="_"+r);var u=e[r]||e.checkbox;if("string"==typeof l.attr("lay-ignore"))return l.show();var d=l.next("."+u[0]),f=i(['
      ',{_switch:""+((n.checked?s[0]:s[1])||"")+""}[r]||(n.title.replace(/\s/g,"")?""+n.title+"":"")+''+(r?"":"")+"","
      "].join(""));d[0]&&d.remove(),l.after(f),a.call(this,f,u)})},radio:function(){var e="layui-form-radio",t=["",""],a=i(r).find("input[type=radio]"),n=function(a){var n=i(this),s="layui-anim-scalespring";a.on("click",function(){var o=n[0].name,c=n.parents(r),u=n.attr("lay-filter"),d=c.find("input[name="+o.replace(/(\.|#|\[|\])/g,"\\$1")+"]");n[0].disabled||(layui.each(d,function(){var a=i(this).next("."+e);this.checked=!1,a.removeclass(e+"ed"),a.find(".layui-icon").removeclass(s).html(t[1])}),n[0].checked=!0,a.addclass(e+"ed"),a.find(".layui-icon").addclass(s).html(t[0]),layui.event.call(n[0],l,"radio("+u+")",{elem:n[0],value:n[0].value,othis:a}))})};a.each(function(a,l){var r=i(this),s=r.next("."+e),o=this.disabled;if("string"==typeof r.attr("lay-ignore"))return r.show();var u=i(['
      ',''+t[l.checked?0:1]+"",""+(l.title||"未命名")+"","
      "].join(""));s[0]&&s.remove(),r.after(u),n.call(this,u)})}};return e?n[e]?n[e]():a.error("不支持的"+e+"表单渲染"):layui.each(n,function(e,i){i()}),t};var d=function(){var e=i(this),a=f.config.verify,s=null,o="layui-form-danger",c={},u=e.parents(r),d=u.find("*[lay-verify]"),y=e.parents("form")[0],v=u.find("input,select,textarea"),h=e.attr("lay-filter");return layui.each(d,function(e,l){var r=i(this),c=r.attr("lay-verify").split("|"),u="",d=r.val();if(r.removeclass(o),layui.each(c,function(e,i){var c="function"==typeof a[i];if(a[i]&&(c?u=a[i](d,l):!a[i][0].test(d)))return t.msg(u||a[i][1],{icon:5,shift:6}),n.android||n.ios||l.focus(),r.addclass(o),s=!0}),s)return s}),!s&&(layui.each(v,function(e,i){i.name&&(/^checkbox|radio$/.test(i.type)&&!i.checked||(c[i.name]=i.value))}),layui.event.call(this,l,"submit("+h+")",{elem:this,form:y,field:c}))},f=new u,y=i(document);f.render(),y.on("reset",r,function(){settimeout(function(){f.render()},50)}),y.on("submit",r,d).on("click","*[lay-submit]",d),e(l,function(e){return f.set(e)})});layui.define("jquery",function(e){"use strict";var o=layui.jquery,a=layui.hint(),r="layui-tree-enter",i=function(e){this.options=e},t={arrow:["",""],checkbox:["",""],radio:["",""],branch:["",""],leaf:""};i.prototype.init=function(e){var o=this;e.addclass("layui-box layui-tree"),o.options.skin&&e.addclass("layui-tree-skin-"+o.options.skin),o.tree(e),o.on(e)},i.prototype.tree=function(e,a){var r=this,i=r.options,n=a||i.nodes;layui.each(n,function(a,n){var l=n.children&&n.children.length>0,c=o('
        '),s=o(["
      • ",function(){return l?''+(n.spread?t.arrow[1]:t.arrow[0])+"":""}(),function(){return i.check?''+("checkbox"===i.check?t.checkbox[0]:"radio"===i.check?t.radio[0]:"")+"":""}(),function(){return'"+(''+(l?n.spread?t.branch[1]:t.branch[0]:t.leaf)+"")+(""+(n.name||"未命名")+"")}(),"
      • "].join(""));l&&(s.append(c),r.tree(c,n.children)),e.append(s),"function"==typeof i.click&&r.click(s,n),r.spread(s,n),i.drag&&r.drag(s,n)})},i.prototype.click=function(e,o){var a=this,r=a.options;e.children("a").on("click",function(e){layui.stope(e),r.click(o)})},i.prototype.spread=function(e,o){var a=this,r=(a.options,e.children(".layui-tree-spread")),i=e.children("ul"),n=e.children("a"),l=function(){e.data("spread")?(e.data("spread",null),i.removeclass("layui-show"),r.html(t.arrow[0]),n.find(".layui-icon").html(t.branch[0])):(e.data("spread",!0),i.addclass("layui-show"),r.html(t.arrow[1]),n.find(".layui-icon").html(t.branch[1]))};i[0]&&(r.on("click",l),n.on("dblclick",l))},i.prototype.on=function(e){var a=this,i=a.options,t="layui-tree-drag";e.find("i").on("selectstart",function(e){return!1}),i.drag&&o(document).on("mousemove",function(e){var r=a.move;if(r.from){var i=(r.to,o('
        '));e.preventdefault(),o("."+t)[0]||o("body").append(i);var n=o("."+t)[0]?o("."+t):i;n.addclass("layui-show").html(r.from.elem.children("a").html()),n.css({left:e.pagex+10,top:e.pagey+10})}}).on("mouseup",function(){var e=a.move;e.from&&(e.from.elem.children("a").removeclass(r),e.to&&e.to.elem.children("a").removeclass(r),a.move={},o("."+t).remove())})},i.prototype.move={},i.prototype.drag=function(e,a){var i=this,t=(i.options,e.children("a")),n=function(){var t=o(this),n=i.move;n.from&&(n.to={item:a,elem:e},t.addclass(r))};t.on("mousedown",function(){var o=i.move;o.from={item:a,elem:e}}),t.on("mouseenter",n).on("mousemove",n).on("mouseleave",function(){var e=o(this),a=i.move;a.from&&(delete a.to,e.removeclass(r))})},e("tree",function(e){var r=new i(e=e||{}),t=o(e.elem);return t[0]?void r.init(t):a.error("layui.tree 没有找到"+e.elem+"元素")})});layui.define("jquery",function(l){"use strict";var o=layui.jquery,i={fixbar:function(l){l=l||{},l.bgcolor=l.bgcolor?"background-color:"+l.bgcolor:"";var i,a,c="layui-fixbar-top",t=[l.bar1===!0?"":l.bar1,l.bar2===!0?"":l.bar2,""],r=o(['
          ',l.bar1?'
        • '+t[0]+"
        • ":"",l.bar2?'
        • '+t[1]+"
        • ":"",'
        • '+t[2]+"
        • ","
        "].join("")),e=r.find("."+c),s=function(){var i=o(document).scrolltop();i>=(l.showheight||200)?a||(e.show(),a=1):a&&(e.hide(),a=0)};o(".layui-fixbar")[0]||("object"==typeof l.css&&r.css(l.css),o("body").append(r),s(),r.find("li").on("click",function(){var i=o(this),a=i.attr("lay-type");"top"===a&&o("html,body").animate({scrolltop:0},200),l.click&&l.click.call(this,a)}),o(document).on("scroll",function(){i&&cleartimeout(i),i=settimeout(function(){s()},100)}))}};l("util",i)});layui.define("jquery",function(e){"use strict";var l=layui.jquery,o=function(e){},t='';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var u=l(e.elem);if(u[0]){var f=l(e.scrollelem||document),m=e.mb||50,s=!("isauto"in e)||e.isauto,y=e.end||"没有更多了",v=e.scrollelem&&e.scrollelem!==document,d="加载更多",h=l('");u.find(".layui-flow-more")[0]||u.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(y):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.islazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollelem:e.scrollelem});return s?(f.on("scroll",function(){var e=l(this),t=e.scrolltop();r&&cleartimeout(r),i||(r=settimeout(function(){var i=v?e.height():l(window).height(),n=v?e.prop("scrollheight"):document.documentelement.scrollheight;n-t-i<=m&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollelem||document),r=e.elem||"img",a=e.scrollelem&&e.scrollelem!==document,c=function(e,l){var o=n.scrolltop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var f=e.attr("lay-src");layui.img(f,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",f).removeattr("lay-src"),l[0]&&u(l),i++})}},u=function(e,o){var u=a?(o||n).height():l(window).height(),f=n.scrolltop(),m=f+u;if(t.lazyimg.elem=l(r),e)c(e,u);else for(var s=0;sm)break}};if(u(),!o){var f;n.on("scroll",function(){var e=l(this);f&&cleartimeout(f),f=settimeout(function(){u(null,e)},50)}),o=!0}return u},e("flow",new o)});layui.define(["layer","form"],function(t){"use strict";var e=layui.jquery,i=layui.layer,a=layui.form(),l=(layui.hint(),layui.device()),n="layedit",o="layui-show",r="layui-disabled",s=function(){var t=this;t.index=0,t.config={tool:["strong","italic","underline","del","|","left","center","right","|","link","unlink","face","image"],hidetool:[],height:280}};s.prototype.set=function(t){var i=this;return e.extend(!0,i.config,t),i},s.prototype.on=function(t,e){return layui.onevent(n,t,e)},s.prototype.build=function(t,i){i=i||{};var a=this,n=a.config,r="layui-layedit",s=e("#"+t),u="lay_layedit_"+ ++a.index,d=s.next("."+r),y=e.extend({},n,i),f=function(){var t=[],e={};return layui.each(y.hidetool,function(t,i){e[i]=!0}),layui.each(y.tool,function(i,a){c[a]&&!e[a]&&t.push(c[a])}),t.join("")}(),m=e(['
        ','
        '+f+"
        ",'
        ','',"
        ","
        "].join(""));return l.ie&&l.ie<8?s.removeclass("layui-hide").addclass(o):(d[0]&&d.remove(),c.call(a,m,s[0],y),s.addclass("layui-hide").after(m),a.index)},s.prototype.getcontent=function(t){var e=u(t);if(e[0])return d(e[0].document.body.innerhtml)},s.prototype.gettext=function(t){var i=u(t);if(i[0])return e(i[0].document.body).text()},s.prototype.sync=function(t){var i=u(t);if(i[0]){var a=e("#"+i[1].attr("textarea"));a.val(d(i[0].document.body.innerhtml))}},s.prototype.getselection=function(t){var e=u(t);if(e[0]){var i=m(e[0].document);return document.selection?i.text:i.tostring()}};var c=function(t,i,a){var l=this,n=t.find("iframe");n.css({height:a.height}).on("load",function(){var o=n.contents(),r=n.prop("contentwindow"),s=o.find("head"),c=e([""].join("")),u=o.find("body");s.append(c),u.attr("contenteditable","true").css({"min-height":a.height}).html(i.value||""),y.apply(l,[r,n,i,a]),g.call(l,r,t,a)})},u=function(t){var i=e("#lay_layedit_"+t),a=i.prop("contentwindow");return[a,i]},d=function(t){return 8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.tolowercase()})),t},y=function(t,a,n,o){var r=t.document,s=e(r.body);s.on("keydown",function(t){var e=t.keycode;if(13===e){var a=m(r),l=p(a),n=l.parentnode;if("pre"===n.tagname.tolowercase()){if(t.shiftkey)return;return i.msg("请暂时用shift+enter"),!1}r.execcommand("formatblock",!1,"

        ")}}),e(n).parents("form").on("submit",function(){var t=s.html();8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.tolowercase()})),n.value=t}),s.on("paste",function(e){r.execcommand("formatblock",!1,"

        "),settimeout(function(){f.call(t,s),n.value=s.html()},100)})},f=function(t){var i=this;i.document;t.find("*[style]").each(function(){var t=this.style.textalign;this.removeattribute("style"),e(this).css({"text-align":t||""})}),t.find("table").addclass("layui-table"),t.find("script,link").remove()},m=function(t){return t.selection?t.selection.createrange():t.getselection().getrangeat(0)},p=function(t){return t.endcontainer||t.parentelement().childnodes[0]},v=function(t,i,a){var l=this.document,n=document.createelement(t);for(var o in i)n.setattribute(o,i[o]);if(n.removeattribute("text"),l.selection){var r=a.text||i.text;if("a"===t&&!r)return;r&&(n.innerhtml=r),a.pastehtml(e(n).prop("outerhtml")),a.select()}else{var r=a.tostring()||i.text;if("a"===t&&!r)return;r&&(n.innerhtml=r),a.deletecontents(),a.insertnode(n)}},h=function(t,i){var a=this.document,l="layedit-tool-active",n=p(m(a)),o=function(e){return t.find(".layedit-tool-"+e)};i&&i[i.hasclass(l)?"removeclass":"addclass"](l),t.find(">i").removeclass(l),o("unlink").addclass(r),e(n).parents().each(function(){var t=this.tagname.tolowercase(),e=this.style.textalign;"b"!==t&&"strong"!==t||o("b").addclass(l),"i"!==t&&"em"!==t||o("i").addclass(l),"u"===t&&o("u").addclass(l),"strike"===t&&o("d").addclass(l),"p"===t&&("center"===e?o("center").addclass(l):"right"===e?o("right").addclass(l):o("left").addclass(l)),"a"===t&&(o("link").addclass(l),o("unlink").removeclass(r))})},g=function(t,a,l){var n=t.document,o=e(n.body),s={link:function(i){var a=p(i),l=e(a).parent();b.call(o,{href:l.attr("href"),target:l.attr("target")},function(e){var a=l[0];"a"===a.tagname?a.href=e.url:v.call(t,"a",{target:e.target,href:e.url,text:e.url},i)})},unlink:function(t){n.execcommand("unlink")},face:function(e){x.call(this,function(i){v.call(t,"img",{src:i.src,alt:i.alt},e)})},image:function(a){var n=this;layui.use("upload",function(o){var r=l.uploadimage||{};o({url:r.url,method:r.type,elem:e(n).find("input")[0],unwrap:!0,success:function(e){0==e.code?(e.data=e.data||{},v.call(t,"img",{src:e.data.src,alt:e.data.title},a)):i.msg(e.msg||"上传失败")}})})},code:function(e){k.call(o,function(i){v.call(t,"pre",{text:i.code,"lay-lang":i.lang},e)})},help:function(){i.open({type:2,title:"帮助",area:["600px","380px"],shadeclose:!0,shade:.1,skin:"layui-layer-msg",content:["http://www.layui.com/about/layedit/help.html","no"]})}},c=a.find(".layui-layedit-tool"),u=function(){var i=e(this),a=i.attr("layedit-event"),l=i.attr("lay-command");if(!i.hasclass(r)){o.focus();var u=m(n);u.commonancestorcontainer;l?(n.execcommand(l),/justifyleft|justifycenter|justifyright/.test(l)&&n.execcommand("formatblock",!1,"

        "),settimeout(function(){o.focus()},10)):s[a]&&s[a].call(this,u),h.call(t,c,i)}},d=/image/;c.find(">i").on("mousedown",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)||u.call(this)}).on("click",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)&&u.call(this)}),o.on("click",function(){h.call(t,c),i.close(x.index)})},b=function(t,e){var l=this,n=i.open({type:1,id:"lay_layedit_link",area:"350px",shade:.05,shadeclose:!0,movetype:1,title:"超链接",skin:"layui-layer-msg",content:['

          ','
        • ','','
          ','',"
          ","
        • ",'
        • ','','
          ','",'","
          ","
        • ",'
        • ','','',"
        • ","
        "].join(""),success:function(t,n){var o="submit(layedit-link-yes)";a.render("radio"),t.find(".layui-btn-primary").on("click",function(){i.close(n),l.focus()}),a.on(o,function(t){i.close(b.index),e&&e(t.field)})}});b.index=n},x=function(t){var a=function(){var t=["[微笑]","[嘻嘻]","[哈哈]","[可爱]","[可怜]","[挖鼻]","[吃惊]","[害羞]","[挤眼]","[闭嘴]","[鄙视]","[爱你]","[泪]","[偷笑]","[亲亲]","[生病]","[太开心]","[白眼]","[右哼哼]","[左哼哼]","[嘘]","[衰]","[委屈]","[吐]","[哈欠]","[抱抱]","[怒]","[疑问]","[馋嘴]","[拜拜]","[思考]","[汗]","[困]","[睡]","[钱]","[失望]","[酷]","[色]","[哼]","[鼓掌]","[晕]","[悲伤]","[抓狂]","[黑线]","[阴险]","[怒骂]","[互粉]","[心]","[伤心]","[猪头]","[熊猫]","[兔子]","[ok]","[耶]","[good]","[no]","[赞]","[来]","[弱]","[草泥马]","[神马]","[囧]","[浮云]","[给力]","[围观]","[威武]","[奥特曼]","[礼物]","[钟]","[话筒]","[蜡烛]","[蛋糕]"],e={};return layui.each(t,function(t,i){e[i]=layui.cache.dir+"images/face/"+t+".gif"}),e}();return x.hide=x.hide||function(t){"face"!==e(t.target).attr("layedit-event")&&i.close(x.index)},x.index=i.tips(function(){var t=[];return layui.each(a,function(e,i){t.push('
      • '+e+'
      • ')}),'
          '+t.join("")+"
        "}(),this,{tips:1,time:0,skin:"layui-box layui-util-face",maxwidth:500,success:function(l,n){l.css({margintop:-4,marginleft:-10}).find(".layui-clear>li").on("click",function(){t&&t({src:a[this.title],alt:this.title}),i.close(n)}),e(document).off("click",x.hide).on("click",x.hide)}})},k=function(t){var e=this,l=i.open({type:1,id:"lay_layedit_code",area:"550px",shade:.05,shadeclose:!0,movetype:1,title:"插入代码",skin:"layui-layer-msg",content:['
          ','
        • ','','
          ','","
          ","
        • ",'
        • ','','
          ','',"
          ","
        • ",'
        • ','','',"
        • ","
        "].join(""),success:function(l,n){var o="submit(layedit-code-yes)";a.render("select"),l.find(".layui-btn-primary").on("click",function(){i.close(n),e.focus()}),a.on(o,function(e){i.close(k.index),t&&t(e.field)})}});k.index=l},c={html:'',strong:'',italic:'',underline:'',del:'',"|":'',left:'',center:'',right:'',link:'',unlink:'',face:'',image:'',code:'',help:''},w=new s;t(n,w)});layui.define("jquery",function(e){"use strict";var a=layui.jquery,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-za-z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('
        1. '+o.replace(/[\r\t\n]+/g,"
        2. ")+"
        "),c.find(">.layui-code-h3")[0]||c.prepend('

        '+(c.attr("lay-title")||e.title||"code")+(e.about?'layui.code':"")+"

        ");var d=c.find(">.layui-code-ol");c.addclass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addclass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss");