!function(p){"use strict";function i(){this.v="2.7.6"}function h(e,t){t=t||"log",p.console&&console[t]&&console[t]("layui error hint: "+e)}var e,y=p.document,m={modules:{},status:{},timeout:10,event:{}},t=p.LAYUI_GLOBAL||{},g=(e=y.currentScript?y.currentScript.src:function(){for(var e,t=y.scripts,n=t.length-1,i=n;01e3*m.timeout/4?h(l+" is not a valid module","error"):void(m.status[l]?u():setTimeout(e,4))}())}function u(){t.push(layui[l]),11e3*m.timeout/4?h(l+" is not a valid module","error"):void("string"==typeof m.modules[l]&&m.status[l]?u():setTimeout(e,4))}():((d=y.createElement("script")).async=!0,d.charset="utf-8",d.src=f+((o=!0===m.version?m.v||(new Date).getTime():m.version||"")?"?v="+o:""),r.appendChild(d),!d.attachEvent||d.attachEvent.toString&&d.attachEvent.toString().indexOf("[native code")<0||v?d.addEventListener("load",function(e){c(e,f)},!1):d.attachEvent("onreadystatechange",function(e){c(e,f)}),m.modules[l]=f),a},i.prototype.disuse=function(e){var n=this;return e=n.isArray(e)?e:[e],n.each(e,function(e,t){m.status[t],delete n[t],delete b[t],delete n.modules[t],delete m.status[t],delete m.modules[t]}),n},i.prototype.getStyle=function(e,t){return(e=e.currentStyle||p.getComputedStyle(e,null))[e.getPropertyValue?"getPropertyValue":"getAttribute"](t)},i.prototype.link=function(i,a,e){var o=this,t=y.getElementsByTagName("head")[0],n=y.createElement("link"),e=((e="string"==typeof a?a:e)||i).replace(/\.|\//g,""),r=n.id="layuicss-"+e,l="creating",s=0;return n.rel="stylesheet",n.href=i+(m.debug?"?v="+(new Date).getTime():""),n.media="all",y.getElementById(r)||t.appendChild(n),"function"==typeof a&&function e(t){var n=y.getElementById(r);return++s>1e3*m.timeout/100?h(i+" timeout"):void(1989===parseInt(o.getStyle(n,"width"))?(t===l&&n.removeAttribute("lay-status"),n.getAttribute("lay-status")===l?setTimeout(e,100):a()):(n.setAttribute("lay-status",l),setTimeout(function(){e(l)},100)))}(),o},i.prototype.addcss=function(e,t,n){return layui.link(m.dir+"css/"+e,t,n)},m.callback={},i.prototype.factory=function(e){if(layui[e])return"function"==typeof m.callback[e]?m.callback[e]:null},i.prototype.img=function(e,t,n){var i=new Image;if(i.src=e,i.complete)return t(i);i.onload=function(){i.onload=null,"function"==typeof t&&t(i)},i.onerror=function(e){i.onerror=null,"function"==typeof n&&n(e)}},i.prototype.config=function(e){for(var t in e=e||{})m[t]=e[t];return this},i.prototype.modules=function(){var e,t={};for(e in b)t[e]=b[e];return t}(),i.prototype.extend=function(e){for(var t in e=e||{})this[t]||this.modules[t]?h(t+" Module already exists","error"):this.modules[t]=e[t];return this},i.prototype.router=i.prototype.hash=function(e){var n={path:[],search:{},hash:((e=e||location.hash).match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(e)&&(e=e.replace(/^#\//,""),n.href="/"+e,e=e.replace(/([^#])(#.*$)/,"$1").split("/")||[],this.each(e,function(e,t){/^\w+=/.test(t)?(t=t.split("="),n.search[t[0]]=t[1]):n.path.push(t)})),n},i.prototype.url=function(e){var a,t;return{pathname:(e?((e.match(/\.[^.]+?\/.+/)||[])[0]||"").replace(/^[^\/]+/,"").replace(/\?.+/,""):location.pathname).replace(/^\//,"").split("/"),search:(a={},t=(e?((e.match(/\?.+/)||[])[0]||"").replace(/\#.+/,""):location.search).replace(/^\?+/,"").split("&"),this.each(t,function(e,t){var n=t.indexOf("="),i=n<0?t.substr(0,t.length):0!==n&&t.substr(0,n);i&&(a[i]=0(u.innerHeight||f.documentElement.clientHeight)},d.position=function(e,t,n){var i,a,o,r,l,s,c;t&&(n=n||{},e!==f&&e!==d("body")[0]||(n.clickType="right"),l="right"===n.clickType?{left:(l=n.e||u.event||{}).clientX,top:l.clientY,right:l.clientX,bottom:l.clientY}:e.getBoundingClientRect(),s=t.offsetWidth,c=t.offsetHeight,i=function(e){return f.body[e=e?"scrollLeft":"scrollTop"]|f.documentElement[e]},o=l.left,r=l.bottom,"center"===n.align?o-=(s-e.offsetWidth)/2:"right"===n.align&&(o=o-s+e.offsetWidth),(o=o+s+5>(a=function(e){return f.documentElement[e?"clientWidth":"clientHeight"]})("width")?a("width")-s-5:o)<5&&(o=5),r+c+5>a()&&(l.top>c+5?r=l.top-c-10:"right"===n.clickType?(r=a()-c-10)<0&&(r=0):r=5),(s=n.position)&&(t.style.position=s),t.style.left=o+("fixed"===s?0:i(1))+"px",t.style.top=r+("fixed"===s?0:i())+"px",d.hasScrollbar()||(c=t.getBoundingClientRect(),!n.SYSTEM_RELOAD&&c.bottom+5>a()&&(n.SYSTEM_RELOAD=!0,setTimeout(function(){d.position(e,t,n)},50))))},d.options=function(e,t){e=d(e),t=t||"lay-options";try{return new Function("return "+(e.attr(t)||"{}"))()}catch(e){return hint.error("parseerror:"+e,"error"),{}}},d.isTopElem=function(n){var e=[f,d("body")[0]],i=!1;return d.each(e,function(e,t){if(t===n)return i=!0}),i},a.addStr=function(n,e){return n=n.replace(/\s+/," "),e=e.replace(/\s+/," ").split(" "),d.each(e,function(e,t){new RegExp("\\b"+t+"\\b").test(n)||(n=n+" "+t)}),n.replace(/^\s|\s$/,"")},a.removeStr=function(n,e){return n=n.replace(/\s+/," "),e=e.replace(/\s+/," ").split(" "),d.each(e,function(e,t){(t=new RegExp("\\b"+t+"\\b")).test(n)&&(n=n.replace(t,""))}),n.replace(/\s+/," ").replace(/^\s|\s$/,"")},a.prototype.find=function(i){var a=this,o=0,r=[],l="object"==typeof i;return this.each(function(e,t){for(var n=l?t.contains(i):t.querySelectorAll(i||null);o]|&(?=#[a-zA-Z0-9]+)/g.test(e+="")?e.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,"""):e},error:function(e,t){var n="Laytpl Error: ";return"object"==typeof console&&console.error(n+e+"\n"+(t||"")),n+e}},l=r.exp;t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var n=e,i=l("^"+o.open+"#",""),a=l(o.close+"$","");e='"use strict";var view = "'+e.replace(/\s+|\r|\t|\n/g," ").replace(l(o.open+"#"),o.open+"# ").replace(l(o.close+"}"),"} "+o.close).replace(/\\/g,"\\\\").replace(l(o.open+"!(.+?)!"+o.close),function(e){return e.replace(l("^"+o.open+"!"),"").replace(l("!"+o.close),"").replace(l(o.open+"|"+o.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(r.query(),function(e){return'";'+(e=e.replace(i,"").replace(a,"")).replace(/\\(.)/g,"$1")+';view+="'}).replace(r.query(1),function(e){var t='"+laytpl.escape(';return e.replace(/\s/g,"")===o.open+o.close?"":(e=e.replace(l(o.open+"|"+o.close),""),/^=/.test(e)?e=e.replace(/^=/,""):/^-/.test(e)&&(e=e.replace(/^-/,""),t='"+('),t+e.replace(/\\(.)/g,"$1")+')+"')})+'";return view;';try{return this.cache=e=new Function("d, laytpl",e),e(t,r)}catch(e){return delete this.cache,r.error(e,n)}},t.pt.render=function(e,t){return e?(e=this.cache?this.cache(e,r):this.parse(this.tpl,e),t?void t(e):e):r.error("no data")};n.config=function(e){for(var t in e=e||{})o[t]=e[t]},n.v="1.2.0",e("laytpl",n)}),layui.define(function(e){"use strict";function t(e){this.config=e||{},this.config.index=++d.index,this.render(!0)}var o=document,r="getElementById",u="getElementsByTagName",s="layui-disabled",d=(t.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return void 0===e.elem.length?2:3},t.prototype.view=function(){var n,i,a=this.config,o=a.groups="groups"in a?Number(a.groups)||0:5,r=(a.layout="object"==typeof a.layout?a.layout:["prev","page","next"],a.count=Number(a.count)||0,a.curr=Number(a.curr)||1,a.limits="object"==typeof a.limits?a.limits:[10,20,30,40,50],a.limit=Number(a.limit)||10,a.pages=Math.ceil(a.count/a.limit)||1,a.curr>a.pages?a.curr=a.pages:a.curr<1&&(a.curr=1),o<0?o=1:o>a.pages&&(o=a.pages),a.prev="prev"in a?a.prev:"上一页",a.next="next"in a?a.next:"下一页",a.pages>o?Math.ceil((a.curr+(1'+a.prev+"":"",page:function(){var e=[];if(a.count<1)return"";1'+(a.first||1)+"");var t=Math.floor((o-1)/2),n=1a.pages?a.pages:t:o;for(i-n…');n<=i;n++)n===a.curr?e.push('"+n+""):e.push(''+n+"");return a.pages>o&&a.pages>i&&!1!==a.last&&(i+1…'),0!==o&&e.push(''+(a.last||a.pages)+"")),e.join("")}(),next:a.next?''+a.next+"":"",count:'共 '+a.count+" 条",limit:(n=['"),refresh:['','',""].join(""),skip:['到第','','页',""].join("")};return['
',(i=[],layui.each(a.layout,function(e,t){l[t]&&i.push(l[t])}),i.join("")),"
"].join("")},t.prototype.jump=function(e,t){if(e){var n=this,i=n.config,a=e.children,o=e[u]("button")[0],r=e[u]("input")[0],e=e[u]("select")[0],l=function(){var e=Number(r.value.replace(/\s|\D/g,""));e&&(i.curr=e,n.render())};if(t)return l();for(var s=0,c=a.length;si.pages||(i.curr=e,n.render())});e&&d.on(e,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=Math.ceil(i.count/e)),i.limit=e,n.render()}),o&&d.on(o,"click",function(){l()})}},t.prototype.skip=function(n){var i,e;n&&(i=this,(e=n[u]("input")[0])&&d.on(e,"keyup",function(e){var t=this.value,e=e.keyCode;/^(37|38|39|40)$/.test(e)||(/\D/.test(t)&&(this.value=t.replace(/\D/,"")),13===e&&i.jump(n,!0))}))},t.prototype.render=function(e){var t=this,n=t.config,i=t.type(),a=t.view(),i=(2===i?n.elem&&(n.elem.innerHTML=a):3===i?n.elem.html(a):o[r](n.elem)&&(o[r](n.elem).innerHTML=a),n.jump&&n.jump(n,e),o[r]("layui-laypage-"+n.index));t.jump(i),n.hash&&!e&&(location.hash="!"+n.hash+"="+n.curr),t.skip(i)},{render:function(e){return new t(e).index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(t,e,n){return t.attachEvent?t.attachEvent("on"+e,function(e){e.target=e.srcElement,n.call(t,e)}):t.addEventListener(e,n,!1),this}});e("laypage",d)}),function(a,r){"use strict";function l(){var t=this,e=t.config.id;return{hint:function(e){t.hint.call(t,e)},config:(l.that[e]=t).config}}function p(e){var t=this,n=(t.index=++h.index,t.config=lay.extend({},t.config,h.config,e),lay(e.elem||t.config.elem));if(1请重新选择",invalidDate:"不在有效日期或时间范围内",formatError:["日期格式不合法
必须遵循下述格式:
","
已为你重置"],preview:"当前选中的结果"},en:{weeks:["Su","Mo","Tu","We","Th","Fr","Sa"],time:["Hours","Minutes","Seconds"],timeTips:"Select Time",startTime:"Start Time",endTime:"End Time",dateTips:"Select Date",month:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tools:{confirm:"Confirm",clear:"Clear",now:"Now"},timeout:"End time cannot be less than start Time
Please re-select",invalidDate:"Invalid date",formatError:["The date format error
Must be followed:
","
It has been reset"],preview:"The selected result"}};return e[this.config.lang]||e.cn},p.prototype.init=function(){var o=this,r=o.config,e="static"===r.position,t={year:"yyyy",month:"yyyy-MM",date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss"};r.elem=lay(r.elem),r.eventElem=lay(r.eventElem),r.elem[0]&&(o.rangeStr=r.range?"string"==typeof r.range?r.range:"-":"","array"===layui.type(r.range)&&(o.rangeElem=[lay(r.range[0]),lay(r.range[1])]),t[r.type]||(a.console&&console.error&&console.error("laydate type error:'"+r.type+"' is not supported"),r.type="date"),r.format===t.date&&(r.format=t[r.type]||t.date),o.format=l.formatArr(r.format),r.weekStart&&!/^[0-6]$/.test(r.weekStart)&&(t=o.lang(),r.weekStart=t.weeks.indexOf(r.weekStart),-1===r.weekStart&&(r.weekStart=0)),o.EXP_IF="",o.EXP_SPLIT="",lay.each(o.format,function(e,t){e=new RegExp(c).test(t)?"\\d{"+(new RegExp(c).test(o.format[0===e?e+1:e-1]||"")?/^yyyy|y$/.test(t)?4:t.length:/^yyyy$/.test(t)?"1,4":/^y$/.test(t)?"1,308":"1,2")+"}":"\\"+t,o.EXP_IF=o.EXP_IF+e,o.EXP_SPLIT=o.EXP_SPLIT+"("+e+")"}),o.EXP_IF_ONE=new RegExp("^"+o.EXP_IF+"$"),o.EXP_IF=new RegExp("^"+(r.range?o.EXP_IF+"\\s\\"+o.rangeStr+"\\s"+o.EXP_IF:o.EXP_IF)+"$"),o.EXP_SPLIT=new RegExp("^"+o.EXP_SPLIT+"$",""),o.isInput(r.elem[0])||"focus"===r.trigger&&(r.trigger="click"),r.elem.attr("lay-key")||(r.elem.attr("lay-key",o.index),r.eventElem.attr("lay-key",o.index)),r.mark=lay.extend({},r.calendar&&"cn"===r.lang?{"0-1-1":"元旦","0-2-14":"情人","0-3-8":"妇女","0-3-12":"植树","0-4-1":"愚人","0-5-1":"劳动","0-5-4":"青年","0-6-1":"儿童","0-9-10":"教师","0-10-1":"国庆","0-12-25":"圣诞"}:{},r.mark),lay.each(["min","max"],function(e,t){var n,i=[],a="number"==typeof r[t]?(n=r[t],a=new Date,a=o.newDate({year:a.getFullYear(),month:a.getMonth(),date:a.getDate(),hours:"23",minutes:"59",seconds:"59"}).getTime(),i=[(n=new Date(n?n<864e5?a+864e5*n:n:a)).getFullYear(),n.getMonth()+1,n.getDate()],[n.getHours(),n.getMinutes(),n.getSeconds()]):(i=(r[t].match(/\d+-\d+-\d+/)||[""])[0].split("-"),(r[t].match(/\d+:\d+:\d+/)||[""])[0].split(":"));r[t]={year:0|i[0]||(new Date).getFullYear(),month:i[1]?(0|i[1])-1:(new Date).getMonth(),date:0|i[2]||(new Date).getDate(),hours:0|a[0],minutes:0|a[1],seconds:0|a[2]}}),o.elemID="layui-laydate"+r.elem.attr("lay-key"),(r.show||e)&&o.render(),e||o.events(),r.value&&r.isInitValue&&("date"===layui.type(r.value)?o.setValue(o.parse(0,o.systemDate(r.value))):o.setValue(r.value)))},p.prototype.render=function(){var i,e,t=this,l=t.config,s=t.lang(),a="static"===l.position,n=t.elem=lay.elem("div",{id:t.elemID,class:["layui-laydate",l.range?" layui-laydate-range":"",a?" "+m:"",l.theme&&"default"!==l.theme&&!/^#/.test(l.theme)?" laydate-theme-"+l.theme:""].join("")}),c=t.elemMain=[],u=t.elemHeader=[],d=t.elemCont=[],f=t.table=[],o=t.footer=lay.elem("div",{class:"layui-laydate-footer"});l.zIndex&&(n.style.zIndex=l.zIndex),lay.each(new Array(2),function(e){if(!l.range&&0'+s.timeTips+""),!l.range&&"datetime"===l.type||e.push(''),lay.each(l.btns,function(e,t){var n=s.tools[t]||"btn";l.range&&"now"===t||(a&&"clear"===t&&(n="cn"===l.lang?"重置":"Reset"),i.push(''+n+""))}),e.push('"),e.join(""))),lay.each(c,function(e,t){n.appendChild(t)}),l.showBottom&&n.appendChild(o),/^#/.test(l.theme)&&(e=lay.elem("style"),o=["#{{id}} .layui-laydate-header{background-color:{{theme}};}","#{{id}} .layui-this{background-color:{{theme}} !important;}"].join("").replace(/{{id}}/g,t.elemID).replace(/{{theme}}/g,l.theme),"styleSheet"in e?(e.setAttribute("type","text/css"),e.styleSheet.cssText=o):e.innerHTML=o,lay(n).addClass("laydate-theme-molv"),n.appendChild(e)),t.remove(p.thisElemDate),h.thisId=l.id,a?l.elem.append(n):(r.body.appendChild(n),t.position()),t.checkDate().calendar(null,0,"init"),t.changeEvent(),p.thisElemDate=t.elemID,"function"==typeof l.ready&&l.ready(lay.extend({},l.dateTime,{month:l.dateTime.month+1})),t.preview()},p.prototype.remove=function(e){var t=this,n=t.config,i=lay("#"+(e||t.elemID));return!i[0]||i.hasClass(m)||t.checkDate(function(){i.remove(),delete h.thisId,"function"==typeof n.close&&n.close(t)}),t},p.prototype.position=function(){var e=this.config;return lay.position(this.bindElem||e.elem[0],this.elem,{position:e.position}),this},p.prototype.hint=function(e){var t=this,n=(t.config,lay.elem("div",{class:s}));t.elem&&(n.innerHTML=e||"",lay(t.elem).find("."+s).remove(),t.elem.appendChild(n),clearTimeout(t.hinTimer),t.hinTimer=setTimeout(function(){lay(t.elem).find("."+s).remove()},3e3))},p.prototype.getAsYM=function(e,t,n){return n?t--:t++,t<0&&(t=11,e--),11y[1]&&(e.year=y[1],l=!0),11t&&(e.date=t,l=!0)};if("limit"===e)return u(a),s;"string"==typeof(r=r||c.value)&&(r=r.replace(/\s+/g," ").replace(/^\s|\s$/g,""));function d(){var e,t,n;c.range&&(s.endDate=s.endDate||lay.extend({},c.dateTime,(e={},t=c.dateTime,n=s.getAsYM(t.year,t.month),"year"===c.type?e.year=t.year+1:"time"!==c.type&&(e.year=n[0],e.month=n[1]),"datetime"!==c.type&&"time"!==c.type||(e.hours=23,e.minutes=e.seconds=59),e)))}var f;return d(),"string"==typeof r&&r?s.EXP_IF.test(r)?c.range?(r=r.split(" "+s.rangeStr+" "),lay.each([c.dateTime,s.endDate],function(e,t){n(t,r[e],e)})):n(a,r):(s.hint(i.formatError[0]+(c.range?c.format+" "+s.rangeStr+" "+c.format:c.format)+i.formatError[1]),l=!0):r&&"date"===layui.type(r)?c.dateTime=s.systemDate(r):(c.dateTime=s.systemDate(),delete s.startTime,delete s.endDate,d(),delete s.endTime),s.rangeElem&&(i=[s.rangeElem[0].val(),s.rangeElem[1].val()],f=[c.dateTime,s.endDate],lay.each(i,function(e,t){s.EXP_IF_ONE.test(t)&&n(f[e],t,e)})),u(a),c.range&&u(s.endDate),l&&r&&s.setValue(!c.range||s.endDate?s.parse():""),s.getDateTime(a)>s.getDateTime(c.max)?a=c.dateTime=lay.extend({},c.max):s.getDateTime(a)s.getDateTime(c.max))&&(s.endDate=lay.extend({},c.max)),s.startTime={hours:c.dateTime.hours,minutes:c.dateTime.minutes,seconds:c.dateTime.seconds},s.endTime={hours:s.endDate.hours,minutes:s.endDate.minutes,seconds:s.endDate.seconds}),e&&e(),s},p.prototype.mark=function(e,n){var i,t=this.config;return lay.each(t.mark,function(e,t){(e=e.split("-"))[0]!=n[0]&&0!=e[0]||e[1]!=n[1]&&0!=e[1]||e[2]!=n[2]||(i=t||n[2])}),i&&e.html(''+i+""),this},p.prototype.holidays=function(i,a){var e=this.config,o=["","work"];return"array"===layui.type(e.holidays)&&lay.each(e.holidays,function(n,e){lay.each(e,function(e,t){t===i.attr("lay-ymd")&&i.html('"+a[2]+"")})}),this},p.prototype.limit=function(e,t,n,a){var o=this,i=o.config,r={},n=(a?0:41)r.max,e&&e[t?"addClass":"removeClass"](w),t},p.prototype.thisDateTime=function(e){var t=this.config;return e?this.endDate:t.dateTime},p.prototype.calendar=function(e,t,n){var a,o,r,l=this,i=l.config,t=t?1:0,s=e||l.thisDateTime(t),c=new Date,u=l.lang(),d="date"!==i.type&&"datetime"!==i.type,f=lay(l.table[t]).find("td"),t=lay(l.elemHeader[t][2]).find("span");return s.yeary[1]&&(s.year=y[1],l.hint(u.invalidDate)),l.firstDate||(l.firstDate=lay.extend({},s)),c.setFullYear(s.year,s.month,1),a=(c.getDay()+(7-i.weekStart))%7,o=h.getEndDate(s.month||12,s.year),r=h.getEndDate(s.month+1,s.year),lay.each(f,function(e,t){var n=[s.year,s.month],i=0;(t=lay(t)).removeAttr("class"),e"+u.time[t]+"

    "];lay.each(new Array(e),function(e){i.push(""+lay.digit(e,2)+"")}),n.innerHTML=i.join("")+"
",d.appendChild(n)}),o()),y&&h.removeChild(y),h.appendChild(d),"year"===t||"month"===t?(lay(l.elemMain[i]).addClass("laydate-ym-show"),lay(d).find("li").on("click",function(){var e=0|lay(this).attr("lay-ym");lay(this).hasClass(w)||(0===i?(c[t]=e,l.limit(lay(l.footer).find(T),null,0)):l.endDate[t]=e,"year"===s.type||"month"===s.type?(lay(d).find("."+k).removeClass(k),lay(this).addClass(k),"month"===s.type&&"year"===t&&(l.listYM[i][0]=e,n&&((i?l.endDate:c).year=e),l.list("month",i))):(l.checkDate("limit").calendar(null,i),l.closeList()),l.setBtnStatus(),s.range||("month"===s.type&&"month"===t||"year"===s.type&&"year"===t)&&l.setValue(l.parse()).remove().done(),l.done(null,"change"),lay(l.footer).find("."+D).removeClass(w))})):(e=lay.elem("span",{class:E}),r=function(){lay(d).find("ol").each(function(e){var n=this,t=lay(n).find("li");n.scrollTop=30*(l[x][b[e]]-2),n.scrollTop<=0&&t.each(function(e,t){if(!lay(this).hasClass(w))return n.scrollTop=30*(e-2),!0})})},p=lay(f[2]).find("."+E),r(),e.innerHTML=s.range?[u.startTime,u.endTime][i]:u.timeTips,lay(l.elemMain[i]).addClass("laydate-time-show"),p[0]&&p.remove(),f[2].appendChild(e),lay(d).find("ol").each(function(t){var n=this;lay(n).find("li").on("click",function(){var e=0|this.innerHTML;lay(this).hasClass(w)||(s.range?l[x][b[t]]=e:c[b[t]]=e,lay(n).find("."+k).removeClass(k),lay(this).addClass(k),o(),r(),!l.endDate&&"time"!==s.type||l.done(null,"change"),l.setBtnStatus())})})),l},p.prototype.listYM=[],p.prototype.closeList=function(){var n=this;n.config,lay.each(n.elemCont,function(e,t){lay(this).find("."+C).remove(),lay(n.elemMain[e]).removeClass("laydate-ym-show laydate-time-show")}),lay(n.elem).find("."+E).remove()},p.prototype.setBtnStatus=function(e,t,n){var i=this,a=i.config,o=i.lang(),r=lay(i.footer).find(T);a.range&&"time"!==a.type&&(t=t||a.dateTime,n=n||i.endDate,a=i.newDate(t).getTime()>i.newDate(n).getTime(),i.limit(null,t)||i.limit(null,n)?r.addClass(w):r[a?"addClass":"removeClass"](w),e&&a&&i.hint("string"==typeof e?o.timeout.replace(/\u65e5\u671f/g,e):o.timeout))},p.prototype.parse=function(e,t){var n=this,i=n.config,t=t||("end"==e?lay.extend({},n.endDate,n.endTime):i.range?lay.extend({},i.dateTime,n.startTime):i.dateTime),t=h.parse(t,n.format,1);return i.range&&void 0===e?t+" "+n.rangeStr+" "+n.parse("end"):t},p.prototype.newDate=function(e){return e=e||{},new Date(e.year||1,e.month||0,e.date||1,e.hours||0,e.minutes||0,e.seconds||0)},p.prototype.getDateTime=function(e){return this.newDate(e).getTime()},p.prototype.setValue=function(e){var t=this,n=t.config,i=t.bindElem||n.elem[0];return"static"!==n.position&&(e=e||"",t.isInput(i)?lay(i).val(e):(n=t.rangeElem)?("array"!==layui.type(e)&&(e=e.split(" "+t.rangeStr+" ")),n[0].val(e[0]||""),n[1].val(e[1]||"")):(0===lay(i).find("*").length&&lay(i).html(e),lay(i).attr("lay-date",e))),t},p.prototype.preview=function(){var e,t=this.config;t.isPreview&&(e=lay(this.elem).find("."+g),t=!t.range||this.endDate?this.parse():"",e.html(t).css({color:"#5FB878"}),setTimeout(function(){e.css({color:"#666"})},300))},p.prototype.done=function(e,t){var n=this,i=n.config,a=lay.extend({},lay.extend(i.dateTime,n.startTime)),o=lay.extend({},lay.extend(n.endDate,n.endTime));return lay.each([a,o],function(e,t){"month"in t&&lay.extend(t,{month:t.month+1})}),n.preview(),e=e||[n.parse(),a,o],"function"==typeof i[t||"done"]&&i[t||"done"].apply(i,e),n},p.prototype.choose=function(e,n){var i=this,a=i.config,o=i.thisDateTime(n),t=(lay(i.elem).find("td"),{year:0|(t=e.attr("lay-ymd").split("-"))[0],month:(0|t[1])-1,date:0|t[2]});e.hasClass(w)||(lay.extend(o,t),a.range?(lay.each(["startTime","endTime"],function(e,t){i[t]=i[t]||{hours:e?23:0,minutes:e?59:0,seconds:e?59:0},n===e&&(i.getDateTime(lay.extend({},o,i[t]))i.getDateTime(a.max)&&(i[t]={hours:a.max.hours,minutes:a.max.minutes,seconds:a.max.seconds},lay.extend(o,i[t])))}),i.calendar(null,n).done(null,"change")):"static"===a.position?i.calendar().done().done(null,"change"):"date"===a.type?i.setValue(i.parse()).remove().done():"datetime"===a.type&&i.calendar().done(null,"change"))},p.prototype.tool=function(e,t){var n=this,i=n.config,a=n.lang(),o=i.dateTime,r="static"===i.position,l={datetime:function(){lay(e).hasClass(w)||(n.list("time",0),i.range&&n.list("time",1),lay(e).attr("lay-type","date").html(n.lang().dateTips))},date:function(){n.closeList(),lay(e).attr("lay-type","datetime").html(n.lang().timeTips)},clear:function(){r&&(lay.extend(o,n.firstDate),n.calendar()),i.range&&(delete i.dateTime,delete n.endDate,delete n.startTime,delete n.endTime),n.setValue("").remove(),n.done(["",{},{}])},now:function(){var e=new Date;lay.extend(o,n.systemDate(),{hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()}),n.setValue(n.parse()).remove(),r&&n.calendar(),n.done()},confirm:function(){if(i.range){if(lay(e).hasClass(w))return n.hint("time"===i.type?a.timeout.replace(/\u65e5\u671f/g,"时间"):a.timeout)}else if(lay(e).hasClass(w))return n.hint(a.invalidDate);n.setValue(n.parse()).remove(),n.done()}};l[t]&&l[t]()},p.prototype.change=function(i){function e(e){var t=lay(s).find(".laydate-year-list")[0],n=lay(s).find(".laydate-month-list")[0];return t&&(c[0]=e?c[0]-15:c[0]+15,a.list("year",i)),n&&(e?c[0]--:c[0]++,a.list("month",i)),(t||n)&&(lay.extend(r,{year:c[0]}),l&&(r.year=c[0]),o.range||a.done(null,"change"),o.range||a.limit(lay(a.footer).find(T),{year:c[0]})),a.setBtnStatus(),t||n}var a=this,o=a.config,r=a.thisDateTime(i),l=o.range&&("year"===o.type||"month"===o.type),s=a.elemCont[i||0],c=a.listYM[i];return{prevYear:function(){e("sub")||(r.year--,a.checkDate("limit").calendar(null,i),a.done(null,"change"))},prevMonth:function(){var e=a.getAsYM(r.year,r.month,"sub");lay.extend(r,{year:e[0],month:e[1]}),a.checkDate("limit").calendar(null,i),a.done(null,"change")},nextMonth:function(){var e=a.getAsYM(r.year,r.month);lay.extend(r,{year:e[0],month:e[1]}),a.checkDate("limit").calendar(null,i),a.done(null,"change")},nextYear:function(){e()||(r.year++,a.checkDate("limit").calendar(null,i),a.done(null,"change"))}}},p.prototype.changeEvent=function(){var a=this;a.config,lay(a.elem).on("click",function(e){lay.stope(e)}).on("mousedown",function(e){lay.stope(e)}),lay.each(a.elemHeader,function(i,e){lay(e[0]).on("click",function(e){a.change(i).prevYear()}),lay(e[1]).on("click",function(e){a.change(i).prevMonth()}),lay(e[2]).find("span").on("click",function(e){var t=(n=lay(this)).attr("lay-ym"),n=n.attr("lay-type");t&&(t=t.split("-"),a.listYM[i]=[0|t[0],0|t[1]],a.list(n,i),lay(a.footer).find("."+D).addClass(w))}),lay(e[3]).on("click",function(e){a.change(i).nextMonth()}),lay(e[4]).on("click",function(e){a.change(i).nextYear()})}),lay.each(a.table,function(e,t){lay(t).find("td").on("click",function(){a.choose(lay(this),e)})}),lay(a.footer).find("span").on("click",function(){var e=lay(this).attr("lay-type");a.tool(this,e)})},p.prototype.isInput=function(e){return/input|textarea/.test(e.tagName.toLocaleLowerCase())||/INPUT|TEXTAREA/.test(e.tagName)},p.prototype.events=function(){function e(e,t){e.on(i.trigger,function(){h.thisId!==i.id&&(t&&(n.bindElem=this),n.render())})}var n=this,i=n.config;i.elem[0]&&!i.elem[0].eventHandler&&(e(i.elem,"bind"),e(i.eventElem),i.elem[0].eventHandler=!0)},l.that={},l.getThis=function(e){var t=l.that[e];return!t&&i&&layui.hint().error(e?n+" instance with ID '"+e+"' not found":"ID argument required"),t},o.run=function(i){i(r).on("mousedown",function(e){var t,n;h.thisId&&(t=l.getThis(h.thisId))&&(n=t.config,e.target!==n.elem[0]&&e.target!==n.eventElem[0]&&e.target!==i(n.closeStop)[0]&&t.remove())}).on("keydown",function(e){var t;h.thisId&&(t=l.getThis(h.thisId))&&"static"!==t.config.position&&13===e.keyCode&&i("#"+t.elemID)[0]&&t.elemID===p.thisElemDate&&(e.preventDefault(),i(t.footer).find(T)[0].click())}),i(a).on("resize",function(){if(h.thisId){var e=l.getThis(h.thisId);if(e)return!(!e.elem||!i(".layui-laydate")[0])&&void e.position()}})},h.render=function(e){return e=new p(e),l.call(e)},h.parse=function(n,i,a){return n=n||{},i=((i="string"==typeof i?l.formatArr(i):i)||[]).concat(),lay.each(i,function(e,t){/yyyy|y/.test(t)?i[e]=lay.digit(n.year,t.length):/MM|M/.test(t)?i[e]=lay.digit(n.month+(a||0),t.length):/dd|d/.test(t)?i[e]=lay.digit(n.date,t.length):/HH|H/.test(t)?i[e]=lay.digit(n.hours,t.length):/mm|m/.test(t)?i[e]=lay.digit(n.minutes,t.length):/ss|s/.test(t)&&(i[e]=lay.digit(n.seconds,t.length))}),i.join("")},h.getEndDate=function(e,t){var n=new Date;return n.setFullYear(t||n.getFullYear(),e||n.getMonth()+1,1),new Date(n.getTime()-864e5).getDate()},h.close=function(e){if(e=l.getThis(e||h.thisId))return e.remove()},i?(h.ready(),layui.define("lay",function(e){h.path=layui.cache.dir,o.run(lay),e(n,h)})):"function"==typeof define&&define.amd?define(function(){return o.run(lay),h}):(h.ready(),o.run(a.lay),a.laydate=h)}(window,window.document),function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)}("undefined"!=typeof window?window:this,function(k,q){function _(e,t){return t.toUpperCase()}var d=[],h=k.document,u=d.slice,P=d.concat,B=d.push,O=d.indexOf,R={},z=R.toString,y=R.hasOwnProperty,m={},e="1.12.4",w=function(e,t){return new w.fn.init(e,t)},W=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,$=/^-ms-/,Y=/-([\da-z])/gi;function X(e){var t=!!e&&"length"in e&&e.length,n=w.type(e);return"function"!==n&&!w.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0>10|55296,1023&i|56320)}function _(){C()}var e,h,k,o,P,y,B,O,w,s,c,C,T,t,E,m,i,a,g,D="sizzle"+ +new Date,v=q.document,L=0,R=0,z=ce(),W=ce(),S=ce(),$=function(e,t){return e===t&&(c=!0),0},Y={}.hasOwnProperty,n=[],X=n.pop,V=n.push,A=n.push,U=n.slice,K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",l="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",G="\\["+r+"*("+l+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+l+"))|)"+r+"*\\]",J=":("+l+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+G+")*)|.*)\\)|)",Q=new RegExp(r+"+","g"),N=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),Z=new RegExp("^"+r+"*,"+r+"*"),ee=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),te=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),ne=new RegExp(J),ie=new RegExp("^"+l+"$"),f={ID:new RegExp("^#("+l+")"),CLASS:new RegExp("^\\.("+l+")"),TAG:new RegExp("^("+l+"|[*])"),ATTR:new RegExp("^"+G),PSEUDO:new RegExp("^"+J),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},ae=/^(?:input|select|textarea|button)$/i,oe=/^h\d$/i,u=/^[^{]+\{\s*\[native \w/,re=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,le=/[+~]/,se=/'|\\/g,p=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig");try{A.apply(n=U.call(v.childNodes),v.childNodes),n[v.childNodes.length].nodeType}catch(e){A={apply:n.length?function(e,t){V.apply(e,U.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function j(e,t,n,i){var a,o,r,l,s,c,u,d,f=t&&t.ownerDocument,p=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return n;if(!i&&((t?t.ownerDocument||t:v)!==T&&C(t),t=t||T,E)){if(11!==p&&(c=re.exec(e)))if(a=c[1]){if(9===p){if(!(r=t.getElementById(a)))return n;if(r.id===a)return n.push(r),n}else if(f&&(r=f.getElementById(a))&&g(t,r)&&r.id===a)return n.push(r),n}else{if(c[2])return A.apply(n,t.getElementsByTagName(e)),n;if((a=c[3])&&h.getElementsByClassName&&t.getElementsByClassName)return A.apply(n,t.getElementsByClassName(a)),n}if(h.qsa&&!S[e+" "]&&(!m||!m.test(e))){if(1!==p)f=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((l=t.getAttribute("id"))?l=l.replace(se,"\\$&"):t.setAttribute("id",l=D),o=(u=y(e)).length,s=ie.test(l)?"#"+l:"[id='"+l+"']";o--;)u[o]=s+" "+I(u[o]);d=u.join(","),f=le.test(e)&&fe(t.parentNode)||t}if(d)try{return A.apply(n,f.querySelectorAll(d)),n}catch(e){}finally{l===D&&t.removeAttribute("id")}}}return O(e.replace(N,"$1"),t,n,i)}function ce(){var n=[];function i(e,t){return n.push(e+" ")>k.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function M(e){return e[D]=!0,e}function b(e){var t=T.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function ue(e,t){for(var n=e.split("|"),i=n.length;i--;)k.attrHandle[n[i]]=t}function de(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function H(r){return M(function(o){return o=+o,M(function(e,t){for(var n,i=r([],e.length,o),a=i.length;a--;)e[n=i[a]]&&(e[n]=!(t[n]=e[n]))})})}function fe(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in h=j.support={},P=j.isXML=function(e){return!!(e=e&&(e.ownerDocument||e).documentElement)&&"HTML"!==e.nodeName},C=j.setDocument=function(e){return(e=e?e.ownerDocument||e:v)!==T&&9===e.nodeType&&e.documentElement&&(t=(T=e).documentElement,E=!P(T),(e=T.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",_,!1):e.attachEvent&&e.attachEvent("onunload",_)),h.attributes=b(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=b(function(e){return e.appendChild(T.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=u.test(T.getElementsByClassName),h.getById=b(function(e){return t.appendChild(e).id=D,!T.getElementsByName||!T.getElementsByName(D).length}),h.getById?(k.find.ID=function(e,t){if(void 0!==t.getElementById&&E)return(e=t.getElementById(e))?[e]:[]},k.filter.ID=function(e){var t=e.replace(p,d);return function(e){return e.getAttribute("id")===t}}):(delete k.find.ID,k.filter.ID=function(e){var t=e.replace(p,d);return function(e){return(e=void 0!==e.getAttributeNode&&e.getAttributeNode("id"))&&e.value===t}}),k.find.TAG=h.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):h.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],a=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[a++];)1===n.nodeType&&i.push(n);return i},k.find.CLASS=h.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&E)return t.getElementsByClassName(e)},i=[],m=[],(h.qsa=u.test(T.querySelectorAll))&&(b(function(e){t.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+r+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+r+"*(?:value|"+K+")"),e.querySelectorAll("[id~="+D+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+D+"+*").length||m.push(".#.+[+~]")}),b(function(e){var t=T.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+r+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(h.matchesSelector=u.test(a=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.msMatchesSelector))&&b(function(e){h.disconnectedMatch=a.call(e,"div"),a.call(e,"[s!='']:x"),i.push("!=",J)}),m=m.length&&new RegExp(m.join("|")),i=i.length&&new RegExp(i.join("|")),e=u.test(t.compareDocumentPosition),g=e||u.test(t.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e;return e===(t=t&&t.parentNode)||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},$=e?function(e,t){return e===t?(c=!0,0):!e.compareDocumentPosition-!t.compareDocumentPosition||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!h.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument===v&&g(v,e)?-1:t===T||t.ownerDocument===v&&g(v,t)?1:s?x(s,e)-x(s,t):0:4&n?-1:1);var n}:function(e,t){if(e===t)return c=!0,0;var n,i=0,a=e.parentNode,o=t.parentNode,r=[e],l=[t];if(!a||!o)return e===T?-1:t===T?1:a?-1:o?1:s?x(s,e)-x(s,t):0;if(a===o)return de(e,t);for(n=e;n=n.parentNode;)r.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;r[i]===l[i];)i++;return i?de(r[i],l[i]):r[i]===v?-1:l[i]===v?1:0}),T},j.matches=function(e,t){return j(e,null,null,t)},j.matchesSelector=function(e,t){if((e.ownerDocument||e)!==T&&C(e),t=t.replace(te,"='$1']"),h.matchesSelector&&E&&!S[t+" "]&&(!i||!i.test(t))&&(!m||!m.test(t)))try{var n=a.call(e,t);if(n||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(p,d),e[3]=(e[3]||e[4]||e[5]||"").replace(p,d),"~="===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]||j.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]&&j.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return f.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ne.test(n)&&(t=y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(p,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=z[e+" "];return t||(t=new RegExp("(^|"+r+")"+e+"("+r+"|$)"))&&z(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){return null==(e=j.attr(e,t))?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1(?:<\/\1>|)$/,G=/^.[^:#\[\.,]*$/;function J(e,n,i){if(w.isFunction(n))return w.grep(e,function(e,t){return!!n.call(e,t,e)!==i});if(n.nodeType)return w.grep(e,function(e){return e===n!==i});if("string"==typeof n){if(G.test(n))return w.filter(n,e,i);n=w.filter(n,e)}return w.grep(e,function(e){return-1)[^>]*|#([\w-]*))$/,ee=((w.fn.init=function(e,t,n){if(!e)return this;if(n=n||Q,"string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):w.isFunction(e)?void 0!==n.ready?n.ready(e):e(w):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),w.makeArray(e,this));if(!(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:Z.exec(e))||!i[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(i[1]){if(t=t instanceof w?t[0]:t,w.merge(this,w.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:h,!0)),K.test(i[1])&&w.isPlainObject(t))for(var i in t)w.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}if((n=h.getElementById(i[2]))&&n.parentNode){if(n.id!==i[2])return Q.find(e);this.length=1,this[0]=n}return this.context=h,this.selector=e,this}).prototype=w.fn,Q=w(h),/^(?:parents|prev(?:Until|All))/),te={children:!0,contents:!0,next:!0,prev:!0};function ne(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}w.fn.extend({has:function(e){var t,n=w(e,this),i=n.length;return this.filter(function(){for(t=0;t
a",m.leadingWhitespace=3===L.firstChild.nodeType,m.tbody=!L.getElementsByTagName("tbody").length,m.htmlSerialize=!!L.getElementsByTagName("link").length,m.html5Clone="<:nav>"!==h.createElement("nav").cloneNode(!0).outerHTML,H.type="checkbox",H.checked=!0,D.appendChild(H),m.appendChecked=H.checked,L.innerHTML="",m.noCloneChecked=!!L.cloneNode(!0).lastChild.defaultValue,D.appendChild(L),(H=h.createElement("input")).setAttribute("type","radio"),H.setAttribute("checked","checked"),H.setAttribute("name","t"),L.appendChild(H),m.checkClone=L.cloneNode(!0).cloneNode(!0).lastChild.checked,m.noCloneEvent=!!L.addEventListener,L[w.expando]=1,m.attributes=!L.getAttribute(w.expando);var v={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:m.htmlSerialize?[0,"",""]:[1,"X
","
"]};function b(e,t){var n,i,a=0,o=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(i=n[a]);a++)!t||w.nodeName(i,t)?o.push(i):w.merge(o,b(i,t));return void 0===t||t&&w.nodeName(e,t)?w.merge([e],o):o}function ke(e,t){for(var n,i=0;null!=(n=e[i]);i++)w._data(n,"globalEval",!t||w._data(t[i],"globalEval"))}v.optgroup=v.option,v.tbody=v.tfoot=v.colgroup=v.caption=v.thead,v.th=v.td;var we=/<|&#?\w+;/,Ce=/"!==d[1]||Ce.test(r)?0:s:s.firstChild)&&r.childNodes.length;o--;)w.nodeName(u=r.childNodes[o],"tbody")&&!u.childNodes.length&&r.removeChild(u);for(w.merge(h,s.childNodes),s.textContent="";s.firstChild;)s.removeChild(s.firstChild);s=p.lastChild}else h.push(t.createTextNode(r));for(s&&p.removeChild(s),m.appendChecked||w.grep(b(h,"input"),Te),y=0;r=h[y++];)if(i&&-1]","i"),Be=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Oe=/\s*$/g,$e=xe(h).appendChild(h.createElement("div"));function Ye(e,t){return w.nodeName(e,"table")&&w.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Xe(e){return e.type=(null!==w.find.attr(e,"type"))+"/"+e.type,e}function Ve(e){var t=ze.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Ue(e,t){if(1===t.nodeType&&w.hasData(e)){var n,i,a,e=w._data(e),o=w._data(t,e),r=e.events;if(r)for(n in delete o.handle,o.events={},r)for(i=0,a=r[n].length;i")},clone:function(e,t,n){var i,a,o,r,l,s=w.contains(e.ownerDocument,e);if(m.html5Clone||w.isXMLDoc(e)||!Pe.test("<"+e.nodeName+">")?o=e.cloneNode(!0):($e.innerHTML=e.outerHTML,$e.removeChild(o=$e.firstChild)),!(m.noCloneEvent&&m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||w.isXMLDoc(e)))for(i=b(o),l=b(e),r=0;null!=(a=l[r]);++r)if(i[r]){u=p=void 0;var c,u,d,f=a,p=i[r];if(1===p.nodeType){if(c=p.nodeName.toLowerCase(),!m.noCloneEvent&&p[w.expando]){for(u in(d=w._data(p)).events)w.removeEvent(p,u,d.handle);p.removeAttribute(w.expando)}"script"===c&&p.text!==f.text?(Xe(p).text=f.text,Ve(p)):"object"===c?(p.parentNode&&(p.outerHTML=f.outerHTML),m.html5Clone&&f.innerHTML&&!w.trim(p.innerHTML)&&(p.innerHTML=f.innerHTML)):"input"===c&&ye.test(f.type)?(p.defaultChecked=p.checked=f.checked,p.value!==f.value&&(p.value=f.value)):"option"===c?p.defaultSelected=p.selected=f.defaultSelected:"input"!==c&&"textarea"!==c||(p.defaultValue=f.defaultValue)}}if(t)if(n)for(l=l||b(e),i=i||b(o),r=0;null!=(a=l[r]);r++)Ue(a,i[r]);else Ue(e,o);return 0<(i=b(o,"script")).length&&ke(i,!s&&b(e,"script")),i=l=a=null,o},cleanData:function(e,t){for(var n,i,a,o,r=0,l=w.expando,s=w.cache,c=m.attributes,u=w.event.special;null!=(n=e[r]);r++)if((t||g(n))&&(o=(a=n[l])&&s[a])){if(o.events)for(i in o.events)u[i]?w.event.remove(n,i):w.removeEvent(n,i,o.handle);s[a]&&(delete s[a],c||void 0===n.removeAttribute?n[l]=void 0:n.removeAttribute(l),d.push(a))}}}),w.fn.extend({domManip:x,detach:function(e){return Ke(this,e,!0)},remove:function(e){return Ke(this,e)},text:function(e){return f(this,function(e){return void 0===e?w.text(this):this.empty().append((this[0]&&this[0].ownerDocument||h).createTextNode(e))},null,e,arguments.length)},append:function(){return x(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ye(this,e).appendChild(e)})},prepend:function(){return x(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=Ye(this,e)).insertBefore(e,t.firstChild)})},before:function(){return x(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return x(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&&w.cleanData(b(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&w.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 w.clone(this,e,t)})},html:function(e){return f(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(_e,""):void 0;if("string"==typeof e&&!Oe.test(e)&&(m.htmlSerialize||!Pe.test(e))&&(m.leadingWhitespace||!ve.test(e))&&!v[(me.exec(e)||["",""])[1].toLowerCase()]){e=w.htmlPrefilter(e);try{for(;n")).appendTo(t.documentElement))[0].contentWindow||Ge[0].contentDocument).document).write(),t.close(),n=Qe(e,t),Ge.detach()),Je[e]=n),n}function et(e,t,n,i){var a,o={};for(a in t)o[a]=e.style[a],e.style[a]=t[a];for(a in i=n.apply(e,i||[]),t)e.style[a]=o[a];return i}var n,tt,nt,it,at,ot,rt,o,lt=/^margin/,st=new RegExp("^("+e+")(?!px)[a-z%]+$","i"),ct=h.documentElement;function r(){var e,t=h.documentElement;t.appendChild(rt),o.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",n=nt=ot=!1,tt=at=!0,k.getComputedStyle&&(e=k.getComputedStyle(o),n="1%"!==(e||{}).top,ot="2px"===(e||{}).marginLeft,nt="4px"===(e||{width:"4px"}).width,o.style.marginRight="50%",tt="4px"===(e||{marginRight:"4px"}).marginRight,(e=o.appendChild(h.createElement("div"))).style.cssText=o.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",o.style.width="1px",at=!parseFloat((k.getComputedStyle(e)||{}).marginRight),o.removeChild(e)),o.style.display="none",(it=0===o.getClientRects().length)&&(o.style.display="",o.innerHTML="
t
",o.childNodes[0].style.borderCollapse="separate",(e=o.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(it=0===e[0].offsetHeight)&&(e[0].style.display="",e[1].style.display="none",it=0===e[0].offsetHeight)),t.removeChild(rt)}rt=h.createElement("div"),(o=h.createElement("div")).style&&(o.style.cssText="float:left;opacity:.5",m.opacity="0.5"===o.style.opacity,m.cssFloat=!!o.style.cssFloat,o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===o.style.backgroundClip,(rt=h.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.innerHTML="",rt.appendChild(o),m.boxSizing=""===o.style.boxSizing||""===o.style.MozBoxSizing||""===o.style.WebkitBoxSizing,w.extend(m,{reliableHiddenOffsets:function(){return null==n&&r(),it},boxSizingReliable:function(){return null==n&&r(),nt},pixelMarginRight:function(){return null==n&&r(),tt},pixelPosition:function(){return null==n&&r(),n},reliableMarginRight:function(){return null==n&&r(),at},reliableMarginLeft:function(){return null==n&&r(),ot}}));var c,p,ut=/^(top|right|bottom|left)$/;function dt(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}k.getComputedStyle?(c=function(e){var t=e.ownerDocument.defaultView;return(t=t&&t.opener?t:k).getComputedStyle(e)},p=function(e,t,n){var i,a,o=e.style;return""!==(a=(n=n||c(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==a||w.contains(e.ownerDocument,e)||(a=w.style(e,t)),n&&!m.pixelMarginRight()&&st.test(a)&<.test(t)&&(e=o.width,t=o.minWidth,i=o.maxWidth,o.minWidth=o.maxWidth=o.width=a,a=n.width,o.width=e,o.minWidth=t,o.maxWidth=i),void 0===a?a:a+""}):ct.currentStyle&&(c=function(e){return e.currentStyle},p=function(e,t,n){var i,a,o,r=e.style;return null==(n=(n=n||c(e))?n[t]:void 0)&&r&&r[t]&&(n=r[t]),st.test(n)&&!ut.test(t)&&(i=r.left,(o=(a=e.runtimeStyle)&&a.left)&&(a.left=e.currentStyle.left),r.left="fontSize"===t?"1em":n,n=r.pixelLeft+"px",r.left=i,o&&(a.left=o)),void 0===n?n:n+""||"auto"});var ft=/alpha\([^)]*\)/i,pt=/opacity\s*=\s*([^)]*)/i,ht=/^(none|table(?!-c[ea]).+)/,yt=new RegExp("^("+e+")(.*)$","i"),mt={position:"absolute",visibility:"hidden",display:"block"},gt={letterSpacing:"0",fontWeight:"400"},vt=["Webkit","O","Moz","ms"],bt=h.createElement("div").style;function xt(e){if(e in bt)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=vt.length;n--;)if((e=vt[n]+t)in bt)return e}function kt(e,t){for(var n,i,a,o=[],r=0,l=e.length;r
a",F=H.getElementsByTagName("a")[0],D.setAttribute("type","checkbox"),H.appendChild(D),(F=H.getElementsByTagName("a")[0]).style.cssText="top:1px",m.getSetAttribute="t"!==H.className,m.style=/top/.test(F.getAttribute("style")),m.hrefNormalized="/a"===F.getAttribute("href"),m.checkOn=!!D.value,m.optSelected=e.selected,m.enctype=!!h.createElement("form").enctype,L.disabled=!0,m.optDisabled=!e.disabled,(D=h.createElement("input")).setAttribute("value",""),m.input=""===D.getAttribute("value"),D.value="t",D.setAttribute("type","radio"),m.radioValue="t"===D.value;var jt=/\r/g,Mt=/[\x20\t\r\n\f]+/g;w.fn.extend({val:function(t){var n,e,i,a=this[0];return arguments.length?(i=w.isFunction(t),this.each(function(e){1===this.nodeType&&(null==(e=i?t.call(this,e,w(this).val()):t)?e="":"number"==typeof e?e+="":w.isArray(e)&&(e=w.map(e,function(e){return null==e?"":e+""})),(n=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):a?(n=w.valHooks[a.type]||w.valHooks[a.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(a,"value"))?e:"string"==typeof(e=a.value)?e.replace(jt,""):null==e?"":e:void 0}}),w.extend({valHooks:{option:{get:function(e){var t=w.find.attr(e,"value");return null!=t?t:w.trim(w.text(e)).replace(Mt," ")}},select:{get:function(e){for(var t,n=e.options,i=e.selectedIndex,a="select-one"===e.type||i<0,o=a?null:[],r=a?i+1:n.length,l=i<0?r:a?i:0;l").append(w.parseHTML(e)).find(i):e)}).always(n&&function(e,t){r.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){w.fn[t]=function(e){return this.on(t,e)}}),w.expr.filters.animated=function(t){return w.grep(w.timers,function(e){return t===e.elem}).length},w.offset={setOffset:function(e,t,n){var i,a,o,r,l=w.css(e,"position"),s=w(e),c={};"static"===l&&(e.style.position="relative"),o=s.offset(),i=w.css(e,"top"),r=w.css(e,"left"),l=("absolute"===l||"fixed"===l)&&-1'+(o?i.title[0]:i.title)+"":"";return i.zIndex=a,t([i.shade?'
':"",'
'+(e&&2!=i.type?"":o)+'
'+(0==i.type&&-1!==i.icon?'':"")+((1!=i.type||!e)&&i.content||"")+'
'+(n=r?'':"",i.closeBtn&&(n+=''),n)+""+(i.btn?function(){var e="";"string"==typeof i.btn&&(i.btn=[i.btn]);for(var t=0,n=i.btn.length;t'+i.btn[t]+"";return'
'+e+"
"}():"")+(i.resize?'':"")+"
"],o,y('
')),this},t.pt.creat=function(){var e,i=this,a=i.config,o=i.index,r="object"==typeof(s=a.content),l=y("body");if(!a.id||!y("#"+a.id)[0]){switch("string"==typeof a.area&&(a.area="auto"===a.area?["",""]:[a.area,""]),a.shift&&(a.anim=a.shift),6==m.ie&&(a.fixed=!1),a.type){case 0:a.btn="btn"in a?a.btn:u.btn[0],m.closeAll("dialog");break;case 2:var s=a.content=r?a.content:[a.content||"","auto"];a.content='';break;case 3:delete a.title,delete a.closeBtn,-1===a.icon&&a.icon,m.closeAll("loading");break;case 4:r||(a.content=[a.content,"body"]),a.follow=a.content[1],a.content=a.content[0]+'',delete a.title,a.tips="object"==typeof a.tips?a.tips:[a.tips,!0],a.tipsMore||m.closeAll("tips")}i.vessel(r,function(e,t,n){l.append(e[0]),r?2==a.type||4==a.type?y("body").append(e[1]):s.parents("."+d[0])[0]||(s.data("display",s.css("display")).show().addClass("layui-layer-wrap").wrap(e[1]),y("#"+d[0]+o).find("."+d[5]).before(t)):l.append(e[1]),y("#"+d.MOVE)[0]||l.append(u.moveElem=n),i.layero=y("#"+d[0]+o),i.shadeo=y("#"+d.SHADE+o),a.scrollbar||d.html.css("overflow","hidden").attr("layer-full",o)}).auto(o),i.shadeo.css({"background-color":a.shade[1]||"#000",opacity:a.shade[0]||a.shade}),2==a.type&&6==m.ie&&i.layero.find("iframe").attr("src",s[0]),4==a.type?i.tips():(i.offset(),parseInt(u.getStyle(document.getElementById(d.MOVE),"z-index"))||(i.layero.css("visibility","hidden"),m.ready(function(){i.offset(),i.layero.css("visibility","visible")}))),a.fixed&&c.on("resize",function(){i.offset(),(/^\d+%$/.test(a.area[0])||/^\d+%$/.test(a.area[1]))&&i.auto(o),4==a.type&&i.tips()}),a.time<=0||setTimeout(function(){m.close(i.index)},a.time),i.move().callback(),d.anim[a.anim]&&(e="layer-anim "+d.anim[a.anim],i.layero.addClass(e).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){y(this).removeClass(e)})),a.isOutAnim&&i.layero.data("isOutAnim",!0)}},t.pt.auto=function(e){var t=this.config,n=y("#"+d[0]+e),i=(""===t.area[0]&&0t.maxWidth&&n.width(t.maxWidth)),[n.innerWidth(),n.innerHeight()]),a=n.find(d[1]).outerHeight()||0,o=n.find("."+d[6]).outerHeight()||0,e=function(e){(e=n.find(e)).height(i[1]-a-o-2*(0|parseFloat(e.css("padding-top"))))};return 2===t.type?e("iframe"):""===t.area[1]?0t.maxHeight?(i[1]=t.maxHeight,e("."+d[5])):t.fixed&&i[1]>=c.height()&&(i[1]=c.height(),e("."+d[5])):e("."+d[5]),this},t.pt.offset=function(){var e=this,t=e.config,n=e.layero,i=[n.outerWidth(),n.outerHeight()],a="object"==typeof t.offset;e.offsetTop=(c.height()-i[1])/2,e.offsetLeft=(c.width()-i[0])/2,a?(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=c.width()-i[0]:"b"===t.offset?e.offsetTop=c.height()-i[1]:"l"===t.offset?e.offsetLeft=0:"lt"===t.offset?(e.offsetTop=0,e.offsetLeft=0):"lb"===t.offset?(e.offsetTop=c.height()-i[1],e.offsetLeft=0):"rt"===t.offset?(e.offsetTop=0,e.offsetLeft=c.width()-i[0]):"rb"===t.offset?(e.offsetTop=c.height()-i[1],e.offsetLeft=c.width()-i[0]):e.offsetTop=t.offset),t.fixed||(e.offsetTop=/%$/.test(e.offsetTop)?c.height()*parseFloat(e.offsetTop)/100:parseFloat(e.offsetTop),e.offsetLeft=/%$/.test(e.offsetLeft)?c.width()*parseFloat(e.offsetLeft)/100:parseFloat(e.offsetLeft),e.offsetTop+=c.scrollTop(),e.offsetLeft+=c.scrollLeft()),n.attr("minLeft")&&(e.offsetTop=c.height()-(n.find(d[1]).outerHeight()||0),e.offsetLeft=n.css("left")),n.css({top:e.offsetTop,left:e.offsetLeft})},t.pt.tips=function(){var e=this.config,t=this.layero,n=[t.outerWidth(),t.outerHeight()],i={width:(o=(o=y(e.follow))[0]?o:y("body")).outerWidth(),height:o.outerHeight(),top:o.offset().top,left:o.offset().left},a=t.find(".layui-layer-TipsG"),o=e.tips[0];e.tips[1]||a.remove(),i.autoLeft=function(){0":'',o=n.success;return delete n.success,m.open(y.extend({type:1,btn:["确定","取消"],content:t,skin:"layui-layer-prompt"+h("prompt"),maxWidth:c.width(),success:function(e){(a=e.find(".layui-layer-input")).val(n.value||"").focus(),"function"==typeof o&&o(e)},resize:!1,yes:function(e){var t=a.val();""===t?a.focus():t.length>(n.maxlength||500)?m.tips("最多输入"+(n.maxlength||500)+"个字数",a,{tips:1}):i&&i(t,e,a)}},n))},m.tab=function(i){var a=(i=i||{}).tab||{},o="layui-this",r=i.success;return delete i.success,m.open(y.extend({type:1,skin:"layui-layer-tab"+h("tab"),resize:!1,title:function(){var e=a.length,t=1,n="";if(0'+a[0].title+"";t"+a[t].title+"";return n}(),content:'
    '+function(){var e=a.length,t=1,n="";if(0'+(a[0].content||"no content")+"";t'+(a[t].content||"no content")+"";return n}()+"
",success:function(e){var t=e.find(".layui-layer-title").children(),n=e.find(".layui-layer-tabmain").children();t.on("mousedown",function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0;var t=(e=y(this)).index();e.addClass(o).siblings().removeClass(o),n.eq(t).show().siblings().hide(),"function"==typeof i.change&&i.change(t)}),"function"==typeof r&&r(e)}},i))},m.photos=function(n,e,i){var a={};if((n=n||{}).photos){var t=(u=!("string"==typeof n.photos||n.photos instanceof y))?n.photos:{},o=t.data||[],r=t.start||0,l=(a.imgIndex=1+(0|r),n.img=n.img||"img",n.success);if(delete n.success,u){if(0===o.length)return m.msg("没有图片")}else{var s=y(n.photos),c=function(){o=[],s.find(n.img).each(function(e){var t=y(this);t.attr("layer-index",e),o.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(c(),0===o.length)return;if(e||s.on("click",n.img,function(){c();var e=y(this).attr("layer-index");m.photos(y.extend(n,{photos:{start:e,data:o,tab:n.tab},full:n.full}),!0)}),!e)return}a.imgprev=function(e){a.imgIndex--,a.imgIndex<1&&(a.imgIndex=o.length),a.tabimg(e)},a.imgnext=function(e,t){a.imgIndex++,a.imgIndex>o.length&&(a.imgIndex=1,t)||a.tabimg(e)},a.keyup=function(e){var t;a.end||(t=e.keyCode,e.preventDefault(),37===t?a.imgprev(!0):39===t?a.imgnext(!0):27===t&&m.close(a.index))},a.tabimg=function(e){if(!(o.length<=1))return t.start=a.imgIndex-1,m.close(a.index),m.photos(n,!0,e)},a.event=function(){a.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventDefault(),a.imgprev(!0)}),a.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventDefault(),a.imgnext(!0)}),y(document).on("keyup",a.keyup)},a.loadi=m.load(1,{shade:!("shade"in n)&&.9,scrollbar:!1});var u=o[r].src,d=function(e){var t;m.close(a.loadi),i&&(n.anim=-1),a.index=m.open(y.extend({type:1,id:"layui-layer-photos",area:(e=[e.width,e.height],t=[y(p).width()-100,y(p).height()-100],!n.full&&(e[0]>t[0]||e[1]>t[1])&&((t=[e[0]/t[0],e[1]/t[1]])[1]'+(o[r].alt||'+(1
'+(o[r].alt||"")+""+a.imgIndex+" / "+o.length+"
":"")+"",success:function(e,t){a.bigimg=e.find(".layui-layer-phimg"),a.imgsee=e.find(".layui-layer-imgbar"),a.event(e),n.tab&&n.tab(o[r],e),"function"==typeof l&&l(e)},end:function(){a.end=!0,y(document).off("keyup",a.keyup)}},n))},f=new Image;f.src=u,f.complete?d(f):(f.onload=function(){f.onload=null,d(f)},f.onerror=function(e){f.onerror=null,m.close(a.loadi),m.msg("当前图片地址异常
是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){1=t.showHeight?n||(c.show(),n=1):n&&(c.hide(),n=0)}var n,i,a="layui-fixbar",o="layui-fixbar-top",r=u(document),l=u("body"),s=((t=u.extend({showHeight:200},t)).bar1=!0===t.bar1?"":t.bar1,t.bar2=!0===t.bar2?"":t.bar2,t.bgcolor=t.bgcolor?"background-color:"+t.bgcolor:"",[t.bar1,t.bar2,""]),c=(s=u(['
    ',t.bar1?'
  • '+s[0]+"
  • ":"",t.bar2?'
  • '+s[1]+"
  • ":"",'
  • '+s[2]+"
  • ","
"].join(""))).find("."+o);u("."+a)[0]||("object"==typeof t.css&&s.css(t.css),l.append(s),e(),s.find("li").on("click",function(){var e=u(this).attr("lay-type");"top"===e&&u("html,body").animate({scrollTop:0},200),t.click&&t.click.call(this,e)}),r.on("scroll",function(){clearTimeout(i),i=setTimeout(function(){e()},100)}))},countdown:function(e,t,n){var i=this,a="function"==typeof t,o=new Date(e).getTime(),r=new Date(!t||a?(new Date).getTime():t).getTime(),o=o-r,l=[Math.floor(o/864e5),Math.floor(o/36e5)%24,Math.floor(o/6e4)%60,Math.floor(o/1e3)%60],a=(a&&(n=t),setTimeout(function(){i.countdown(e,r+1e3,n)},1e3));return n&&n(0]|&(?=#[a-zA-Z0-9]+)/g.test(e+="")?e.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,"""):e},unescape:function(e){return null==e&&(e=""),(e+="").replace(/\&/g,"&").replace(/\</g,"<").replace(/\>/g,">").replace(/\'/g,"'").replace(/\"/g,'"')},toVisibleArea:function(e){var t,n,i,a,o,r,l,s;(e=u.extend({margin:160,duration:200,type:"y"},e)).scrollElem[0]&&e.thisElem[0]&&(t=e.scrollElem,l=e.thisElem,i=(o="y"===e.type)?"top":"left",a=t[n=o?"scrollTop":"scrollLeft"](),o=t[o?"height":"width"](),r=t.offset()[i],s={},((l=l.offset()[i]-r)>o-e.margin||l."+y;t.prototype.config={trigger:"click",content:"",className:"",style:"",show:!1,isAllowSpread:!0,isSpreadItem:!0,data:[],delay:300},t.prototype.reload=function(e){this.config=u.extend({},this.config,e),this.init(!0)},t.prototype.init=function(e){var t=this,n=t.config,i=n.elem=u(n.elem);return 1",(n="href"in t?''+o+"":o,i?'
'+n+("parent"===r?'':"group"===r&&s.isAllowSpread?'':"")+"
":'
'+n+"
"),""].join(""))).data("item",t),i&&(a=u('
'),n=u("
    "),"parent"===r?(a.append(c(n,t.child)),o.append(a)):o.append(c(n,t.child))),l.append(o))}),l},n=['
    ',"
    "].join("");!(e=!("contextmenu"!==s.trigger&&!lay.isTopElem(s.elem[0]))||e)&&s.elem.data(f+"_opened")||(i.elemView=u(n),i.elemView.append(s.content||(e=u('
      '),0no menu'),e)),s.className&&i.elemView.addClass(s.className),s.style&&i.elemView.attr("style",s.style),p.thisId=s.id,i.remove(),t.append(i.elemView),s.elem.data(f+"_opened",!0),i.position(),(a.prevElem=i.elemView).data("prevElem",s.elem),i.elemView.find(".layui-menu").on(l,function(e){layui.stope(e)}),i.elemView.find(".layui-menu li").on("click",function(e){var t=u(this),n=t.data("item")||{};n.child&&0i.width()&&(n.addClass(k),(t=n[0].getBoundingClientRect()).left<0&&n.removeClass(k)),t.bottom>i.height()&&n.eq(0).css("margin-top",-(t.bottom-i.height()+5)))}).on("mouseleave",o,function(e){var t=u(this).children("."+x);t.removeClass(k),t.css("margin-top",0)}),p.reload=function(e,t){return(e=a.getThis(e))?(e.reload(t),a.call(e)):this},p.render=function(e){return e=new t(e),a.call(e)},e(s,p)}),layui.define("jquery",function(e){"use strict";function t(e){this.index=++n.index,this.config=m.extend({},this.config,n.config,e),this.render()}var m=layui.$,n={config:{},index:layui.slider?layui.slider.index+1e4:0,set:function(e){return this.config=m.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,i,e,t)}},i="slider",d="layui-disabled",g="layui-slider-bar",v="layui-slider-wrap",b="layui-slider-wrap-btn",x="layui-slider-tips",k="layui-slider-input-txt",w="layui-slider-hover";t.prototype.config={type:"default",min:0,max:100,value:0,step:1,showstep:!1,tips:!0,input:!1,range:!1,height:200,disabled:!1,theme:"#009688"},t.prototype.render=function(){var i,a=this,o=a.config,e=(o.step<1&&(o.step=1),o.maxo.min?t:o.min,o.value[1]=r>o.min?r:o.min,o.value[0]=o.value[0]>o.max?o.max:o.value[0],o.value[1]=o.value[1]>o.max?o.max:o.value[1],t=Math.floor((o.value[0]-o.min)/(o.max-o.min)*100),n=(r=Math.floor((o.value[1]-o.min)/(o.max-o.min)*100))-t+"%",t+="%",r+="%"):("object"==typeof o.value&&(o.value=Math.min.apply(null,o.value)),o.valueo.max&&(o.value=o.max),n=Math.floor((o.value-o.min)/(o.max-o.min)*100)+"%"),o.disabled?"#c2c2c2":o.theme),t='
      '+(o.tips?'
      ':"")+'
      '+(o.range?'
      ':"")+"
      ",n=m(o.elem),r=n.next(".layui-slider");if(r[0]&&r.remove(),a.elemTemp=m(t),o.range?(a.elemTemp.find("."+v).eq(0).data("value",o.value[0]),a.elemTemp.find("."+v).eq(1).data("value",o.value[1])):a.elemTemp.find("."+v).data("value",o.value),n.html(a.elemTemp),"vertical"===o.type&&a.elemTemp.height(o.height+"px"),o.showstep){for(var l=(o.max-o.min)/o.step,s="",c=1;c<1+l;c++){var u=100*c/l;u<100&&(s+='
      ')}a.elemTemp.append(s)}o.input&&!o.range&&(e=m('
      '),n.css("position","relative"),n.append(e),n.find("."+k).children("input").val(o.value),"vertical"===o.type?e.css({left:0,top:-48}):a.elemTemp.css("margin-right",e.outerWidth()+15)),o.disabled?(a.elemTemp.addClass(d),a.elemTemp.find("."+b).addClass(d)):a.slide(),a.elemTemp.find("."+b).on("mouseover",function(){var e="vertical"===o.type?o.height:a.elemTemp[0].offsetWidth,t=a.elemTemp.find("."+v),n=("vertical"===o.type?e-m(this).parent()[0].offsetTop-t.height():m(this).parent()[0].offsetLeft)/e*100,t=m(this).parent().data("value"),e=o.setTips?o.setTips(t):t;a.elemTemp.find("."+x).html(e),clearTimeout(i),i=setTimeout(function(){"vertical"===o.type?a.elemTemp.find("."+x).css({bottom:n+"%","margin-bottom":"20px",display:"inline-block"}):a.elemTemp.find("."+x).css({left:n+"%",display:"inline-block"})},300)}).on("mouseout",function(){clearTimeout(i),a.elemTemp.find("."+x).css("display","none")})},t.prototype.slide=function(e,t,n){var l=this.config,s=this.elemTemp,c=function(){return"vertical"===l.type?l.height:s[0].offsetWidth},u=s.find("."+v),r=s.next(".layui-slider-input"),d=r.children("."+k).children("input").val(),f=100/((l.max-l.min)/Math.ceil(l.step)),p=function(e,t){e=100<(e=100n[1]&&n.reverse(),l.change&&l.change(l.range?n:a)},h=function(e){var t=e/c()*100/f,n=Math.round(t)*f;return e==c()?Math.ceil(t)*f:n},y=m(['
      c()?c():t)/c()*100/f;p(t,o),r.addClass(w),s.find("."+x).show(),e.preventDefault()},t=function(){r.removeClass(w),s.find("."+x).hide()},n=function(){t(),y.remove()},m("#LAY-slider-moving")[0]||m("body").append(y),y.on("mousemove",e),y.on("mouseup",n).on("mouseleave",n)})}),s.on("click",function(e){var t=m("."+b),n=m(this);!t.is(event.target)&&0===t.has(event.target).length&&t.length&&(n=(t=(t=(t="vertical"===l.type?c()-e.clientY+n.offset().top-m(window).scrollTop():e.clientX-n.offset().left-m(window).scrollLeft())<0?0:t)>c()?c():t)/c()*100/f,t=l.range?"vertical"===l.type?Math.abs(t-parseInt(m(u[0]).css("bottom")))>Math.abs(t-parseInt(m(u[1]).css("bottom")))?1:0:Math.abs(t-u[0].offsetLeft)>Math.abs(t-u[1].offsetLeft)?1:0:0,p(n,t),e.preventDefault())}),r.children(".layui-slider-input-btn").children("i").each(function(t){m(this).on("click",function(){d=r.children("."+k).children("input").val();var e=((d=1==t?d-l.stepl.max?l.max:Number(d)+l.step)-l.min)/(l.max-l.min)*100/f;p(e,0)})});function i(){var e=this.value,e=(e=(e=(e=isNaN(e)?0:e)l.max?l.max:e,((this.value=e)-l.min)/(l.max-l.min)*100/f);p(e,0)}r.children("."+k).children("input").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),i.call(this))}).on("change",i)},t.prototype.events=function(){this.config},n.render=function(e){return e=new t(e),function(){var n=this,i=n.config;return{setValue:function(e,t){return i.value=e,n.slide("set",e,t||0)},config:i}}.call(e)},e(i,n)}),layui.define(["jquery","lay"],function(e){"use strict";function b(e){var t={h:0,s:0,b:0},n=Math.min(e.r,e.g,e.b),i=Math.max(e.r,e.g,e.b),a=i-n;return t.b=i,t.s=0!=i?255*a/i:0,0!=t.s?e.r==i?t.h=(e.g-e.b)/a:e.g==i?t.h=2+(e.b-e.r)/a:t.h=4+(e.r-e.g)/a:t.h=-1,i==n&&(t.h=0),t.h*=60,t.h<0&&(t.h+=360),t.s*=100/255,t.b*=100/255,t}function x(e){var t,n={},i=e.h,a=255*e.s/100,e=255*e.b/100;return 0==a?n.r=n.g=n.b=e:(e=i%60*((t=e)-(a=(255-a)*e/255))/60,(i=360==i?0:i)<60?(n.r=t,n.b=a,n.g=a+e):i<120?(n.g=t,n.b=a,n.r=t-e):i<180?(n.g=t,n.r=a,n.b=a+e):i<240?(n.b=t,n.r=a,n.g=t-e):i<300?(n.b=t,n.g=a,n.r=a+e):i<360?(n.r=t,n.g=a,n.b=t-e):(n.r=0,n.g=0,n.b=0)),{r:Math.round(n.r),g:Math.round(n.g),b:Math.round(n.b)}}function d(e){var n=[(e=x(e)).r.toString(16),e.g.toString(16),e.b.toString(16)];return w.each(n,function(e,t){1==t.length&&(n[e]="0"+t)}),n.join("")}function k(e){return{r:(e=e.match(/[0-9]{1,3}/g)||[])[0],g:e[1],b:e[2]}}function a(e){this.index=++r.index,this.config=w.extend({},this.config,r.config,e),this.render()}var w=layui.jquery,o=layui.lay,i=layui.device().mobile?"click":"mousedown",r={config:{},index:layui.colorpicker?layui.colorpicker.index+1e4:0,set:function(e){return this.config=w.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,"colorpicker",e,t)}},l="layui-colorpicker",s=".layui-colorpicker-main",C="layui-icon-down",T="layui-icon-close",E="layui-colorpicker-trigger-span",D="layui-colorpicker-trigger-i",L="layui-colorpicker-side-slider",S="layui-colorpicker-basis",A="layui-colorpicker-alpha-bgcolor",N="layui-colorpicker-alpha-slider",j="layui-colorpicker-basis-cursor",M="layui-colorpicker-main-input",H=w(window),c=w(document);a.prototype.config={color:"",size:null,alpha:!1,format:"hex",predefine:!1,colors:["#009688","#5FB878","#1E9FFF","#FF5722","#FFB800","#01AAED","#999","#c00","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgb(0, 186, 189)","rgb(255, 120, 0)","rgb(250, 212, 0)","#393D49","rgba(0,0,0,.5)","rgba(255, 69, 0, 0.68)","rgba(144, 240, 144, 0.5)","rgba(31, 147, 255, 0.73)"]},a.prototype.render=function(){var e=this,t=e.config;if(1<(n=w(t.elem)).length)return layui.each(n,function(){r.render(w.extend({},t,{elem:this}))}),e;w.extend(t,o.options(n[0]));var n=w(['
      ',"",'','',"","","
      "].join("")),i=t.elem=w(t.elem);t.size&&n.addClass("layui-colorpicker-"+t.size),i.addClass("layui-inline").html(e.elemColorBox=n),e.color=e.elemColorBox.find("."+E)[0].style.background,e.events()},a.prototype.renderPicker=function(){var n,e=this,t=e.config,i=e.elemColorBox[0],t=e.elemPicker=w(['
      ','
      ','
      ','
      ','
      ','
      ',"
      ",'
      ','
      ',"
      ","
      ",'
      ','
      ','
      ',"
      ","
      ",t.predefine?(n=['
      '],layui.each(t.colors,function(e,t){n.push(['
      ','
      ',"
      "].join(""))}),n.push("
      "),n.join("")):"",'
      ','
      ','',"
      ",'
      ','','',"","
      "].join(""));e.elemColorBox.find("."+E)[0],w(s)[0]&&w(s).data("index")==e.index?e.removePicker(a.thisElemInd):(e.removePicker(a.thisElemInd),w("body").append(t)),a.thisElemInd=e.index,a.thisColor=i.style.background,e.position(),e.pickerEvents()},a.prototype.removePicker=function(e){return this.config,w("#layui-colorpicker"+(e||this.index)).remove(),this},a.prototype.position=function(){var e=this,t=e.config;return o.position(e.bindElem||e.elemColorBox[0],e.elemPicker[0],{position:t.position,align:"center"}),e},a.prototype.val=function(){var e,t=this,n=(t.config,t.elemColorBox.find("."+E)),i=t.elemPicker.find("."+M),a=n[0].style.backgroundColor;a?(e=b(k(a)),n=n.attr("lay-type"),t.select(e.h,e.s,e.b),"torgb"===n&&i.find("input").val(a),"rgba"===n&&(e=k(a),3==(a.match(/[0-9]{1,3}/g)||[]).length?(i.find("input").val("rgba("+e.r+", "+e.g+", "+e.b+", 1)"),t.elemPicker.find("."+N).css("left",280)):(i.find("input").val(a),n=280*a.slice(a.lastIndexOf(",")+1,a.length-1),t.elemPicker.find("."+N).css("left",n)),t.elemPicker.find("."+A)[0].style.background="linear-gradient(to right, rgba("+e.r+", "+e.g+", "+e.b+", 0), rgb("+e.r+", "+e.g+", "+e.b+"))")):(t.select(0,100,100),i.find("input").val(""),t.elemPicker.find("."+A)[0].style.background="",t.elemPicker.find("."+N).css("left",280))},a.prototype.side=function(){function c(e,t,n,i){a.select(e,t,n),e=x({h:e,s:t,b:n}),g.addClass(C).removeClass(T),r[0].style.background="rgb("+e.r+", "+e.g+", "+e.b+")","torgb"===l&&a.elemPicker.find("."+M).find("input").val("rgb("+e.r+", "+e.g+", "+e.b+")"),"rgba"===l&&(f.css("left",280*i),a.elemPicker.find("."+M).find("input").val("rgba("+e.r+", "+e.g+", "+e.b+", "+i+")"),r[0].style.background="rgba("+e.r+", "+e.g+", "+e.b+", "+i+")",d[0].style.background="linear-gradient(to right, rgba("+e.r+", "+e.g+", "+e.b+", 0), rgb("+e.r+", "+e.g+", "+e.b+"))"),o.change&&o.change(a.elemPicker.find("."+M).find("input").val())}function t(e){w("#LAY-colorpicker-moving")[0]||w("body").append(v),v.on("mousemove",e),v.on("mouseup",function(){v.remove()}).on("mouseleave",function(){v.remove()})}var a=this,o=a.config,r=a.elemColorBox.find("."+E),l=r.attr("lay-type"),s=a.elemPicker.find(".layui-colorpicker-side"),e=a.elemPicker.find("."+L),u=a.elemPicker.find("."+S),i=a.elemPicker.find("."+j),d=a.elemPicker.find("."+A),f=a.elemPicker.find("."+N),p=e[0].offsetTop/180*360,h=100-(i[0].offsetTop+3)/180*100,y=(i[0].offsetLeft+3)/260*100,m=Math.round(f[0].offsetLeft/280*100)/100,g=a.elemColorBox.find("."+D),n=a.elemPicker.find(".layui-colorpicker-pre").children("div"),v=w(['
      '].join(""));e.on("mousedown",function(e){var i=this.offsetTop,a=e.clientY;t(function(e){var t=i+(e.clientY-a),n=(t=(n=s[0].offsetHeight)<(t=t<0?0:t)?n:t)/180*360;c(p=n,y,h,m),e.preventDefault()}),e.preventDefault()}),s.on("click",function(e){var t=((t=(t=e.clientY-w(this).offset().top)<0?0:t)>this.offsetHeight?this.offsetHeight:t)/180*360;c(p=t,y,h,m),e.preventDefault()}),i.on("mousedown",function(e){var o=this.offsetTop,r=this.offsetLeft,l=e.clientY,s=e.clientX;layui.stope(e),t(function(e){var t=o+(e.clientY-l),n=r+(e.clientX-s),i=u[0].offsetHeight-3,a=((n=(a=u[0].offsetWidth-3)<(n=n<-3?-3:n)?a:n)+3)/260*100,n=100-((t=i<(t=t<-3?-3:t)?i:t)+3)/180*100;c(p,y=a,h=n,m),e.preventDefault()}),e.preventDefault()}),u.on("mousedown",function(e){var t=e.clientY-w(this).offset().top-3+H.scrollTop(),n=e.clientX-w(this).offset().left-3+H.scrollLeft(),n=((t=t<-3?-3:t)>this.offsetHeight-3&&(t=this.offsetHeight-3),(((n=n<-3?-3:n)>this.offsetWidth-3?this.offsetWidth-3:n)+3)/260*100);c(p,y=n,h=t=100-(t+3)/180*100,m),layui.stope(e),e.preventDefault(),i.trigger(e,"mousedown")}),f.on("mousedown",function(e){var i=this.offsetLeft,a=e.clientX;t(function(e){var t=i+(e.clientX-a),n=((n=d[0].offsetWidth)<(t=t<0?0:t)&&(t=n),Math.round(t/280*100)/100);c(p,y,h,m=n),e.preventDefault()}),e.preventDefault()}),d.on("click",function(e){(t=(t=e.clientX-w(this).offset().left)<0?0:t)>this.offsetWidth&&(t=this.offsetWidth);var t=Math.round(t/280*100)/100;c(p,y,h,m=t),e.preventDefault()}),n.each(function(){w(this).on("click",function(){w(this).parent(".layui-colorpicker-pre").addClass("selected").siblings().removeClass("selected");var e=this.style.backgroundColor,t=b(k(e)),n=e.slice(e.lastIndexOf(",")+1,e.length-1);p=t.h,y=t.s,h=t.b,3==(e.match(/[0-9]{1,3}/g)||[]).length&&(n=1),m=n,c(t.h,t.s,t.b,n)})})},a.prototype.select=function(e,t,n,i){var a=this,o=(a.config,d({h:e,s:100,b:100})),r=d({h:e,s:t,b:n}),e=e/360*180,n=180-n/100*180-3,t=t/100*260-3;a.elemPicker.find("."+L).css("top",e),a.elemPicker.find("."+S)[0].style.background="#"+o,a.elemPicker.find("."+j).css({top:n,left:t}),"change"!==i&&a.elemPicker.find("."+M).find("input").val("#"+r)},a.prototype.pickerEvents=function(){var l=this,s=l.config,c=l.elemColorBox.find("."+E),u=l.elemPicker.find("."+M+" input"),n={clear:function(e){c[0].style.background="",l.elemColorBox.find("."+D).removeClass(C).addClass(T),l.color="",s.done&&s.done(""),l.removePicker()},confirm:function(e,t){var n,i,a=u.val(),o=a,r={};if(-1>16,g:(65280&n)>>8,b:255&n},r=b(i),c[0].style.background=o="#"+d(r),l.elemColorBox.find("."+D).removeClass(T).addClass(C)),"change"===t)return l.select(r.h,r.s,r.b,t),void(s.change&&s.change(o));l.color=a,s.done&&s.done(a),l.removePicker()}};l.elemPicker.on("click","*[colorpicker-events]",function(){var e=w(this),t=e.attr("colorpicker-events");n[t]&&n[t].call(this,e)}),u.on("keyup",function(e){var t=w(this);n.confirm.call(this,t,13===e.keyCode?null:"change")})},a.prototype.events=function(){var t=this,e=t.config,n=t.elemColorBox.find("."+E);t.elemColorBox.on("click",function(){t.renderPicker(),w(s)[0]&&(t.val(),t.side())}),e.elem[0]&&!t.elemColorBox[0].eventHandler&&(c.on(i,function(e){w(e.target).hasClass(l)||w(e.target).parents("."+l)[0]||w(e.target).hasClass(s.replace(/\./g,""))||w(e.target).parents(s)[0]||t.elemPicker&&(t.color?(e=b(k(t.color)),t.select(e.h,e.s,e.b)):t.elemColorBox.find("."+D).removeClass(C).addClass(T),n[0].style.background=t.color||"",t.removePicker())}),H.on("resize",function(){if(!t.elemPicker||!w(s)[0])return!1;t.position()}),t.elemColorBox[0].eventHandler=!0)},r.render=function(e){return e=new a(e),function(){return{config:this.config}}.call(e)},e("colorpicker",r)}),layui.define("jquery",function(e){"use strict";function t(){this.config={}}var u=layui.$,d=(layui.hint(),layui.device()),s="element",c="layui-this",f="layui-show",p=(t.prototype.set=function(e){return u.extend(!0,this.config,e),this},t.prototype.on=function(e,t){return layui.onevent.call(this,s,e,t)},t.prototype.tabAdd=function(e,t){var n,i=(e=u(".layui-tab[lay-filter="+e+"]")).children(".layui-tab-title"),a=i.children(".layui-tab-bar"),e=e.children(".layui-tab-content"),o=""+(t.title||"unnaming")+"";return a[0]?a.before(o):i.append(o),e.append('
      '+(t.content||"")+"
      "),b.hideTabMore(!0),b.tabAuto(),this},t.prototype.tabDelete=function(e,t){return e=u(".layui-tab[lay-filter="+e+"]").children(".layui-tab-title").find('>li[lay-id="'+t+'"]'),b.tabDelete(null,e),this},t.prototype.tabChange=function(e,t){return e=u(".layui-tab[lay-filter="+e+"]").children(".layui-tab-title").find('>li[lay-id="'+t+'"]'),b.tabClick.call(e[0],null,null,e),this},t.prototype.tab=function(n){n=n||{},i.on("click",n.headerElem,function(e){var t=u(this).index();b.tabClick.call(this,e,t,null,n)})},t.prototype.progress=function(e,t){var n=(e=u("."+(n="layui-progress")+"[lay-filter="+e+"]").find("."+n+"-bar")).find("."+n+"-text");return e.css("width",t).attr("lay-percent",t),n.text(t),this},".layui-nav"),h="layui-nav-item",a="layui-nav-bar",y="layui-nav-tree",m="layui-nav-child",g="layui-nav-more",v="layui-anim layui-anim-upbit",b={tabClick:function(e,t,n,i){i=i||{};var n=n||u(this),t=t||n.parent().children("li").index(n),a=i.headerElem?n.parent():n.parents(".layui-tab").eq(0),i=i.bodyElem?u(i.bodyElem):a.children(".layui-tab-content").children(".layui-tab-item"),o="javascript:;"!==(o=n.find("a")).attr("href")&&"_blank"===o.attr("target"),r="string"==typeof n.attr("lay-unselect"),l=a.attr("lay-filter");o||r||(n.addClass(c).siblings().removeClass(c),i.eq(t).addClass(f).siblings().removeClass(f)),layui.event.call(this,s,"tab("+l+")",{elem:a,index:t})},tabDelete:function(e,t){var n=(t=t||u(this).parent()).index(),i=t.parents(".layui-tab").eq(0),a=i.children(".layui-tab-content").children(".layui-tab-item"),o=i.attr("lay-filter");t.hasClass(c)&&(t.next()[0]&&t.next().is("li")?b.tabClick.call(t.next()[0],null,n+1):t.prev()[0]&&t.prev().is("li")&&b.tabClick.call(t.prev()[0],null,n-1)),t.remove(),a.eq(n).remove(),setTimeout(function(){b.tabAuto()},50),layui.event.call(this,s,"tabDelete("+o+")",{elem:i,index:n})},tabAuto:function(){var i="layui-tab-bar",a="layui-tab-close",o=this;u(".layui-tab").each(function(){var e=u(this),t=e.children(".layui-tab-title");e.children(".layui-tab-content").children(".layui-tab-item");var n=u('');o===window&&8!=d.ie&&b.hideTabMore(!0),e.attr("lay-allowClose")&&t.find("li").each(function(){var e,t=u(this);t.find("."+a)[0]||((e=u('')).on("click",b.tabDelete),t.append(e))}),"string"!=typeof e.attr("lay-unauto")&&(t.prop("scrollWidth")>t.outerWidth()+1?t.find("."+i)[0]||(t.append(n),e.attr("overflow",""),n.on("click",function(e){t[this.title?"removeClass":"addClass"]("layui-tab-more"),this.title=this.title?"":"收缩"})):(t.find("."+i).remove(),e.removeAttr("overflow")))})},hideTabMore:function(e){var t=u(".layui-tab-title");!0!==e&&"tabmore"===u(e.target).attr("lay-stope")||(t.removeClass("layui-tab-more"),t.find(".layui-tab-bar").attr("title",""))},clickThis:function(){var e=u(this),t=e.parents(p),n=t.attr("lay-filter"),i=e.parent(),a=e.siblings("."+m),o="string"==typeof i.attr("lay-unselect");"javascript:;"!==e.attr("href")&&"_blank"===e.attr("target")||o||a[0]||(t.find("."+c).removeClass(c),i.addClass(c)),t.hasClass(y)&&(a.removeClass(v),a[0]&&(i["none"===a.css("display")?"addClass":"removeClass"](h+"ed"),"all"===t.attr("lay-shrink")&&i.siblings().removeClass(h+"ed"))),layui.event.call(this,s,"nav("+n+")",e)},collapse:function(){var e=u(this),t=e.find(".layui-colla-icon"),n=e.siblings(".layui-colla-content"),i=e.parents(".layui-collapse").eq(0),a=i.attr("lay-filter"),o="none"===n.css("display");"string"==typeof i.attr("lay-accordion")&&((i=i.children(".layui-colla-item").children("."+f)).siblings(".layui-colla-title").children(".layui-colla-icon").html(""),i.removeClass(f)),n[o?"addClass":"removeClass"](f),t.html(o?"":""),layui.event.call(this,s,"collapse("+a+")",{title:e,content:n,show:o})}},n=(t.prototype.render=t.prototype.init=function(e,t){var n=t?'[lay-filter="'+t+'"]':"";return(t={tab:function(){b.tabAuto.call({})},nav:function(){var r={},l={},s={},c="layui-nav-title";u(p+n).each(function(e){var t=u(this),n=u(''),i=t.find("."+h);t.find("."+a)[0]||(t.append(n),(t.hasClass(y)?i.find("dd,>."+c):i).on("mouseenter",function(){!function(e,t,n){var i,a=u(this),o=a.find("."+m);t.hasClass(y)?o[0]||(i=a.children("."+c),e.css({top:a.offset().top-t.offset().top,height:(i[0]?i:a).outerHeight(),opacity:1})):(o.addClass(v),o.hasClass("layui-nav-child-c")&&o.css({left:-(o.outerWidth()-a.width())/2}),o[0]?e.css({left:e.position().left+e.width()/2,width:0,opacity:0}):e.css({left:a.position().left+parseFloat(a.css("marginLeft")),top:a.position().top+a.height()-e.height()}),r[n]=setTimeout(function(){e.css({width:o[0]?0:a.width(),opacity:o[0]?0:1})},d.ie&&d.ie<10?0:200),clearTimeout(s[n]),"block"===o.css("display")&&clearTimeout(l[n]),l[n]=setTimeout(function(){o.addClass(f),a.find("."+g).addClass(g+"d")},300))}.call(this,n,t,e)}).on("mouseleave",function(){t.hasClass(y)?n.css({height:0,opacity:0}):(clearTimeout(l[e]),l[e]=setTimeout(function(){t.find("."+m).removeClass(f),t.find("."+g).removeClass(g+"d")},300))}),t.on("mouseleave",function(){clearTimeout(r[e]),s[e]=setTimeout(function(){t.hasClass(y)||n.css({width:0,left:n.position().left+n.width()/2,opacity:0})},200)})),i.find("a").each(function(){var e=u(this);e.parent(),e.siblings("."+m)[0]&&!e.children("."+g)[0]&&e.append(''),e.off("click",b.clickThis).on("click",b.clickThis)})})},breadcrumb:function(){u(".layui-breadcrumb"+n).each(function(){var e=u(this),t="lay-separator",n=e.attr(t)||"/",i=e.find("a");i.next("span["+t+"]")[0]||(i.each(function(e){e!==i.length-1&&u(this).after(""+n+"")}),e.css("visibility","visible"))})},progress:function(){var i="layui-progress";u("."+i+n).each(function(){var e=u(this),t=e.find(".layui-progress-bar"),n=t.attr("lay-percent");t.css("width",/^.+\/.+$/.test(n)?100*new Function("return "+n)()+"%":n),e.attr("lay-showPercent")&&setTimeout(function(){t.html(''+n+"")},350)})},collapse:function(){u(".layui-collapse"+n).each(function(){u(this).find(".layui-colla-item").each(function(){var e=(t=u(this)).find(".layui-colla-title"),t="none"===t.find(".layui-colla-content").css("display");e.find(".layui-colla-icon").remove(),e.append(''+(t?"":"")+""),e.off("click",b.collapse).on("click",b.collapse)})})}})[e]?t[e]():layui.each(t,function(e,t){t()})},new t),i=u(document);u(function(){n.render()}),i.on("click",".layui-tab-title li",b.tabClick),i.on("click",b.hideTabMore),u(window).on("resize",b.tabAuto),e(s,n)}),layui.define("layer",function(e){"use strict";function m(e){this.config=g.extend({},this.config,i.config,e),this.render()}var g=layui.$,t=layui.layer,n=layui.hint(),v=layui.device(),i={config:{},set:function(e){return this.config=g.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,a,e,t)}},a="upload",o="layui-upload-file",r="layui-upload-form",b="layui-upload-iframe",x="layui-upload-choose";m.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",force:"",field:"file",acceptMime:"",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},m.prototype.render=function(e){(e=this.config).elem=g(e.elem),e.bindAction=g(e.bindAction),this.file(),this.events()},m.prototype.file=function(){var e=this,t=e.config,n=e.elemFile=g(['"].join("")),i=t.elem.next();(i.hasClass(o)||i.hasClass(r))&&i.remove(),v.ie&&v.ie<10&&t.elem.wrap('
      '),e.isFile()?(e.elemFile=t.elem,t.field=t.elem[0].name):t.elem.after(n),v.ie&&v.ie<10&&e.initIE()},m.prototype.initIE=function(){var n,e=this.config,t=g(''),i=g(['
      ',"
      "].join(""));g("#"+b)[0]||g("body").append(t),e.elem.next().hasClass(r)||(this.elemFile.wrap(i),e.elem.next("."+r).append((n=[],layui.each(e.data,function(e,t){t="function"==typeof t?t():t,n.push('')}),n.join(""))))},m.prototype.msg=function(e){return t.msg(e,{icon:2,shift:6})},m.prototype.isFile=function(){var e=this.config.elem[0];if(e)return"input"===e.tagName.toLocaleLowerCase()&&"file"===e.type},m.prototype.preview=function(i){window.FileReader&&layui.each(this.chooseFiles,function(e,t){var n=new FileReader;n.readAsDataURL(t),n.onload=function(){i&&i(e,t,this.result)}})},m.prototype.upload=function(n,e){var i,a,t,o,r=this,l=r.config,s=r.elemFile[0],c=function(){function t(){l.multiple&&a+o===r.fileLength&&"function"==typeof l.allDone&&l.allDone({total:r.fileLength,successful:a,failed:o})}var a=0,o=0,e=n||r.files||r.chooseFiles||s.files;layui.each(e,function(n,e){var i=new FormData,e=(i.append(l.field,e),layui.each(l.data,function(e,t){t="function"==typeof t?t():t,i.append(e,t)}),{url:l.url,type:"post",data:i,contentType:!1,processData:!1,dataType:"json",headers:l.headers||{},success:function(e){a++,u(n,e),t()},error:function(e){o++,r.msg("Request URL is abnormal: "+(e.statusText||"error")),d(n),t()}});"function"==typeof l.progress&&(e.xhr=function(){var e=g.ajaxSettings.xhr();return e.upload.addEventListener("progress",function(e){var t;e.lengthComputable&&(t=Math.floor(e.loaded/e.total*100),l.progress(t,(l.item||l.elem)[0],e,n))}),e}),g.ajax(e)})},u=function(e,t){if(r.elemFile.next("."+x).remove(),s.value="","json"===l.force&&"object"!=typeof t)try{t=JSON.parse(t)}catch(e){return t={},r.msg("Please return JSON data format")}"function"==typeof l.done&&l.done(t,e||0,function(e){r.upload(e)})},d=function(e){l.auto&&(s.value=""),"function"==typeof l.error&&l.error(e||0,function(e){r.upload(e)})},f=l.exts,p=(a=[],layui.each(n||r.chooseFiles,function(e,t){a.push(t.name)}),a),h={preview:function(e){r.preview(e)},upload:function(e,t){var n={};n[e]=t,r.upload(n)},pushFile:function(){return r.files=r.files||{},layui.each(r.chooseFiles,function(e,t){r.files[e]=t}),r.files},resetFile:function(e,t,n){t=new File([t],n),r.files=r.files||{},r.files[e]=t}},y={file:"文件",images:"图片",video:"视频",audio:"音频"}[l.accept]||"文件";if(0!==(p=0===p.length?s.value.match(/[^\/\\]+\..+/g)||[]||"":p).length){switch(l.accept){case"file":layui.each(p,function(e,t){if(f&&!RegExp(".\\.("+f+")$","i").test(escape(t)))return i=!0});break;case"video":layui.each(p,function(e,t){if(!RegExp(".\\.("+(f||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(t)))return i=!0});break;case"audio":layui.each(p,function(e,t){if(!RegExp(".\\.("+(f||"mp3|wav|mid")+")$","i").test(escape(t)))return i=!0});break;default:layui.each(p,function(e,t){if(!RegExp(".\\.("+(f||"jpg|png|gif|bmp|jpeg")+")$","i").test(escape(t)))return i=!0})}return i?(r.msg("选择的"+y+"中包含不支持的格式"),s.value=""):"choose"!==e&&!l.auto||(l.choose&&l.choose(h),"choose"!==e)?(r.fileLength=(t=0,y=n||r.files||r.chooseFiles||s.files,layui.each(y,function(){t++}),t),l.number&&r.fileLength>l.number?r.msg("同时最多只能上传: "+l.number+" 个文件
      您当前已经选择了: "+r.fileLength+" 个文件"):01024*l.size&&(t=1<=(t=l.size/1024)?t.toFixed(2)+"MB":l.size+"KB",s.value="",o=t)}),o)?r.msg("文件大小不能超过 "+o):void(l.before&&!1===l.before(h)||(!v.ie||9'+e+"")}var o=this,r=o.config;r.elem.off("upload.start").on("upload.start",function(){var e=g(this),t=e.attr("lay-data");if(t)try{t=new Function("return "+t)(),o.config=g.extend({},r,t)}catch(e){n.error("Upload element property lay-data configuration item has a syntax error: "+t)}o.config.item=e,o.elemFile[0].click()}),v.ie&&v.ie<10||r.elem.off("upload.over").on("upload.over",function(){g(this).attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){g(this).removeAttr("lay-over")}).off("upload.drop").on("upload.drop",function(e,t){var n=g(this),t=t.originalEvent.dataTransfer.files||[];n.removeAttr("lay-over"),i(t),r.auto?o.upload():a(t)}),o.elemFile.off("upload.change").on("upload.change",function(){var e=this.files||[];i(e),r.auto?o.upload():a(e)}),r.bindAction.off("upload.action").on("upload.action",function(){o.upload()}),r.elem.data("haveEvents")||(o.elemFile.on("change",function(){g(this).trigger("upload.change")}),r.elem.on("click",function(){o.isFile()||g(this).trigger("upload.start")}),r.drag&&r.elem.on("dragover",function(e){e.preventDefault(),g(this).trigger("upload.over")}).on("dragleave",function(e){g(this).trigger("upload.leave")}).on("drop",function(e){e.preventDefault(),g(this).trigger("upload.drop",e)}),r.bindAction.on("click",function(){g(this).trigger("upload.action")}),r.elem.data("haveEvents",!0))},i.render=function(e){return e=new m(e),function(){var t=this;return{upload:function(e){t.upload.call(t,e)},reload:function(e){t.reload.call(t,e)},config:t.config}}.call(e)},e(a,i)}),layui.define(["layer","util"],function(e){"use strict";var w=layui.$,p=layui.layer,c=layui.util,o=layui.hint(),C=(layui.device(),"form"),s=".layui-form",T="layui-this",E="layui-hide",D="layui-disabled",t=((n=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:function(e){if(!e||isNaN(e))return"只能填写数字"},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)$)/,"请输入正确的身份证号"]},autocomplete:null}}).prototype.set=function(e){return w.extend(!0,this.config,e),this},n.prototype.verify=function(e){return w.extend(!0,this.config.verify,e),this},n.prototype.getFormElem=function(e){return w(s+(e?'[lay-filter="'+e+'"]':""))},n.prototype.on=function(e,t){return layui.onevent.call(this,C,e,t)},n.prototype.val=function(e,n){return this.getFormElem(e).each(function(e,t){var i=w(this);layui.each(n,function(e,t){var n;(e=i.find('[name="'+e+'"]'))[0]&&("checkbox"===(n=e[0].type)?e[0].checked=t:"radio"===n?e.each(function(){this.value==t&&(this.checked=!0)}):e.val(t))})}),r.render(null,e),this.getValue(e)},n.prototype.getValue=function(e,t){t=t||this.getFormElem(e);var i={},a={},e=t.find("input,select,textarea");return layui.each(e,function(e,t){var n;w(this),t.name=(t.name||"").replace(/^\s*|\s*&/,""),t.name&&(/^.*\[\]$/.test(t.name)&&(n=t.name.match(/^(.*)\[\]$/g)[0],i[n]=0|i[n],n=t.name.replace(/^(.*)\[\]$/,"$1["+i[n]+++"]")),/^checkbox|radio$/.test(t.type)&&!t.checked||(a[n||t.name]=t.value))}),a},n.prototype.render=function(e,t){var n=this.config,i=w(s+(t?'[lay-filter="'+t+'"]':"")),a={input:function(e){e=e||i.find("input,textarea"),n.autocomplete&&e.attr("autocomplete",n.autocomplete)},select:function(e){function m(e,t){w(e.target).parent().hasClass(b)&&!t||(w("."+v).removeClass(v+"ed "+v+"up"),g&&k&&g.val(k)),g=null}var g,v="layui-form-select",b="layui-select-title",x="layui-select-none",k="",e=e||i.find("select");e.each(function(e,t){var n=w(this),i=n.next("."+v),a=this.disabled,o=t.value,r=w(t.options[t.selectedIndex]),t=t.options[0];if("string"==typeof n.attr("lay-ignore"))return n.show();var l,s="string"==typeof n.attr("lay-search"),t=t&&!t.value&&t.innerHTML||"请选择",r=w(['
      ','
      ','','
      ','
      ',(t=n.find("*"),l=[],layui.each(t,function(e,t){0!==e||t.value?"optgroup"===t.tagName.toLowerCase()?l.push("
      "+t.label+"
      "):l.push('
      '+w.trim(t.innerHTML)+"
      "):l.push('
      '+w.trim(t.innerHTML||"请选择")+"
      ")}),0===l.length&&l.push('
      没有选项
      '),l.join("")+"
      "),"
      "].join(""));i[0]&&i.remove(),n.after(r),function(i,e,t){var l,r,n,a,s,o,c=w(this),u=i.find("."+b),d=u.find("input"),f=i.find("dl"),p=f.children("dd"),h=f.children("dt"),y=this.selectedIndex;e||(r=c.attr("lay-search"),n=function(){var e=i.offset().top+i.outerHeight()+5-L.scrollTop(),t=f.outerHeight();y=c[0].selectedIndex,i.addClass(v+"ed"),p.removeClass(E),h.removeClass(E),l=null,p.eq(y).addClass(T).siblings().removeClass(T),e+t>L.height()&&t<=e&&i.addClass(v+"up"),s()},a=function(e){i.removeClass(v+"ed "+v+"up"),d.blur(),l=null,e||o(d.val(),function(e){var t=c[0].selectedIndex;e&&(k=w(c[0].options[t]).html(),0===t&&k===d.attr("placeholder")&&(k=""),d.val(k||""))})},s=function(){var e,t,n=f.children("dd."+T);n[0]&&(e=n.position().top,t=f.height(),n=n.height(),t无匹配项

      '):f.find("."+x).remove()},"keyup"),""===t&&f.find("."+x).remove(),s()}).on("blur",function(e){var t=c[0].selectedIndex;g=d,k=w(c[0].options[t]).html(),0===t&&k===d.attr("placeholder")&&(k=""),setTimeout(function(){o(d.val(),function(e){k||d.val("")},"blur")},200)}),p.on("click",function(){var e=w(this),t=e.attr("lay-value"),n=c.attr("lay-filter");return e.hasClass(D)||(e.hasClass("layui-select-tips")?d.val(""):(d.val(e.text()),e.addClass(T)),e.siblings().removeClass(T),c.val(t).removeClass("layui-form-danger"),layui.event.call(this,C,"select("+n+")",{elem:c[0],value:t,othis:i}),a(!0)),!1}),i.find("dl>dt").on("click",function(e){return!1}),w(document).off("click",m).on("click",m))}.call(this,r,a,s)})},checkbox:function(e){var s={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]};(e=e||i.find("input[type=checkbox]")).each(function(e,t){var n=w(this),i=n.attr("lay-skin"),a=(n.attr("lay-text")||"").split("|"),o=this.disabled,r=s[i="switch"===i?"_"+i:i]||s.checkbox;if("string"==typeof n.attr("lay-ignore"))return n.show();var l=n.next("."+r[0]),t=w(['
      ",(o={checkbox:[t.title.replace(/\s/g,"")?""+t.title+"":"",''].join(""),_switch:""+((t.checked?a[0]:a[1])||"")+""})[i]||o.checkbox,"
      "].join(""));l[0]&&l.remove(),n.after(t),function(n,i){var a=w(this);n.on("click",function(){var e=a.attr("lay-filter"),t=(a.attr("lay-text")||"").split("|");a[0].disabled||(a[0].checked?(a[0].checked=!1,n.removeClass(i[1]).find("em").text(t[1])):(a[0].checked=!0,n.addClass(i[1]).find("em").text(t[0])),layui.event.call(a[0],C,i[2]+"("+e+")",{elem:a[0],value:a[0].value,othis:n}))})}.call(this,t,r)})},radio:function(e){var r="layui-form-radio",l=["",""];(e=e||i.find("input[type=radio]")).each(function(e,t){var n=w(this),i=n.next("."+r),a=this.disabled;if("string"==typeof n.attr("lay-ignore"))return n.show();i[0]&&i.remove(),a=w(['
      ',''+l[t.checked?0:1]+"","
      "+(i=t.title||"",i="string"==typeof n.next().attr("lay-radio")?n.next().html():i)+"
      ","
      "].join("")),n.after(a),function(i){var a=w(this),o="layui-anim-scaleSpring";i.on("click",function(){var e=a[0].name,t=a.parents(s),n=a.attr("lay-filter"),e=t.find("input[name="+e.replace(/(\.|#|\[|\])/g,"\\$1")+"]");a[0].disabled||(layui.each(e,function(){var e=w(this).next("."+r);this.checked=!1,e.removeClass(r+"ed"),e.find(".layui-icon").removeClass(o).html(l[1])}),a[0].checked=!0,i.addClass(r+"ed"),i.find(".layui-icon").addClass(o).html(l[0]),layui.event.call(a[0],C,"radio("+n+")",{elem:a[0],value:a[0].value,othis:i}))})}.call(this,a)})}};return"object"===layui.type(e)?e.each(function(e,t){var n=w(t);n.closest(s).length&&("SELECT"===t.tagName?a.select(n):"INPUT"===t.tagName&&("checkbox"===(t=t.type)||"radio"===t?a[t](n):a.input(n)))}):e?a[e]?a[e]():o.error('不支持的 "'+e+'" 表单渲染'):layui.each(a,function(e,t){t()}),this},n.prototype.validate=function(e){var u=null,d=r.config.verify,f="layui-form-danger";return!(e=w(e))[0]||(void 0!==e.attr("lay-verify")||!1!==this.validate(e.find("*[lay-verify]")))&&(layui.each(e,function(e,r){var l=w(this),t=(l.attr("lay-verify")||"").split("|"),s=l.attr("lay-verType"),c=l.val();if(l.removeClass(f),layui.each(t,function(e,t){var n="",i=d[t];if(i){var a="function"==typeof i?n=i(c,r):!i[0].test(c),o="select"===r.tagName.toLowerCase()||/^checkbox|radio$/.test(r.type),n=n||i[1];if("required"===t&&(n=l.attr("lay-reqText")||n),a)return"tips"===s?p.tips(n,"string"!=typeof l.attr("lay-ignore")&&o?l.next():l,{tips:1}):"alert"===s?p.alert(n,{title:"提示",shadeClose:!0}):/\bstring|number\b/.test(typeof n)&&p.msg(n,{icon:5,shift:6}),setTimeout(function(){(o?l.next().find("input"):r).focus()},7),l.addClass(f),u=!0}}),u)return u}),!u)},n.prototype.submit=function(e,t){var n=w(this),e="string"==typeof e?e:n.attr("lay-filter"),i=this.getFormElem?this.getFormElem(e):n.parents(s).eq(0),a=i.find("*[lay-verify]");return!!r.validate(a)&&(a=r.getValue(null,i),i={elem:this.getFormElem?window.event&&window.event.target:this,form:(this.getFormElem?i:n.parents("form"))[0],field:a},"function"==typeof t&&t(i),layui.event.call(this,C,"submit("+e+")",i))}),r=new n,n=w(document),L=w(window);w(function(){r.render()}),n.on("reset",s,function(){var e=w(this).attr("lay-filter");setTimeout(function(){r.render(null,e)},50)}),n.on("submit",s,t).on("click","*[lay-submit]",t),e(C,r)}),layui.define(["laytpl","laypage","form","util"],function(e){"use strict";function f(){var n=this,e=n.config,i=e.id||e.index;return i&&(f.that[i]=n,f.config[i]=e),{config:e,reload:function(e,t){n.reload.call(n,e,t)},reloadData:function(e,t){k.reloadData(i,e,t)},setColsWidth:function(){n.setColsWidth.call(n)},resize:function(){n.resize.call(n)}}}function a(e){var t=f.config[e];return t||h.error(e?"The table instance with ID '"+e+"' not found":"ID argument required"),t||null}function m(e){var t=this.config||{},n=(e=e||{}).item3,i=e.content;return("escape"in n?n:t).escape&&(i=x.escape(i)),(t=e.text&&n.exportTemplet||n.templet||n.toolbar)&&(i="function"==typeof t?t.call(n,e.tplData,e.obj):v(g(t).html()||String(i)).render(g.extend({LAY_COL:n},e.tplData))),e.text?g("
      "+i+"
      ").text():i}function t(e){return['',"","{{# layui.each(d.data.cols, function(i1, item1){ }}","","{{# layui.each(item1, function(i2, item2){ }}",'{{# if(item2.fixed && item2.fixed !== "right"){ left = true; } }}','{{# if(item2.fixed === "right"){ right = true; } }}',(e=e||{}).fixed&&"right"!==e.fixed?'{{# if(item2.fixed && item2.fixed !== "right"){ }}':"right"===e.fixed?'{{# if(item2.fixed === "right"){ }}':"","{{# var isSort = !(item2.colGroup) && item2.sort; }}",'",e.fixed?"{{# }; }}":"","{{# }); }}","","{{# }); }}","","
      ','
      ','{{# if(item2.type === "checkbox"){ }}','',"{{# } else { }}",'{{-item2.title||""}}',"{{# if(isSort){ }}",'',"{{# } }}","{{# } }}","
      ","
      "].join("")}function n(e){this.index=++k.index,this.config=g.extend({},this.config,k.config,e),this.render()}var g=layui.$,v=layui.laytpl,l=layui.laypage,b=layui.layer,p=layui.form,x=layui.util,h=layui.hint(),y=layui.device(),k={config:{checkName:"LAY_CHECKED",indexName:"LAY_TABLE_INDEX",disabledName:"LAY_DISABLED"},cache:{},index:layui.table?layui.table.index+1e4:0,set:function(e){return this.config=g.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,w,e,t)}},w="table",C="layui-hide",s="layui-hide-v",c="layui-none",u="layui-table-view",d=".layui-table-header",T=".layui-table-body",E=".layui-table-pageview",D=".layui-table-sort",L="layui-table-edit",S="layui-table-hover",A="layui-table-col-special",N="LAY_TABLE_MOVE_DICT",i=['',"","
      "].join(""),j=[,"{{# if(d.data.toolbar){ }}",'
      ','
      ','
      ',"
      ","{{# } }}",'
      ',"{{# if(d.data.loading){ }}",'
      ','',"
      ","{{# } }}","{{# var left, right; }}",'
      ',t(),"
      ",'
      ',i,"
      ","{{# if(left){ }}",'
      ','
      ',t({fixed:!0}),"
      ",'
      ',i,"
      ","
      ","{{# }; }}","{{# if(right){ }}",'
      ','
      ',t({fixed:"right"}),'
      ',"
      ",'
      ',i,"
      ","
      ","{{# }; }}","
      ","{{# if(d.data.totalRow){ }}",'
      ','','',"
      ","
      ","{{# } }}",'
      ','
      ',"
      ",""].join(""),M=g(window),H=g(document),I=(n.prototype.config={limit:10,loading:!0,escape:!0,cellMinWidth:60,editTrigger:"click",defaultToolbar:["filter","exports","print"],autoSort:!0,text:{none:"无数据"}},n.prototype.render=function(e){var t=this,n=t.config;if(n.elem=g(n.elem),n.where=n.where||{},n.id=n.id||n.elem.attr("id")||t.index,n.request=g.extend({pageName:"page",limitName:"limit"},n.request),n.response=g.extend({statusName:"code",statusCode:0,msgName:"msg",dataName:"data",totalRowName:"totalRow",countName:"count"},n.response),"object"==typeof n.page&&(n.limit=n.page.limit||n.limit,n.limits=n.page.limits||n.limits,t.page=n.page.curr=n.page.curr||1,delete n.page.elem,delete n.page.jump),!n.elem[0])return t;if("reloadData"===e)return t.pullData(t.page,{type:"reloadData"});n.height&&/^full-\d+$/.test(n.height)&&(t.fullHeightGap=n.height.split("-")[1],n.height=M.height()-t.fullHeightGap),t.setInit();var i,a,o=(e=n.elem).next("."+u),r=t.elem=g("
      ");r.addClass((i=[u,u+"-"+t.index,"layui-form","layui-border-box"],n.className&&i.push(n.className),i.join(" "))).attr({"lay-filter":"LAY-TABLE-FORM-DF-"+t.index,"lay-id":n.id,style:(i=[],n.width&&i.push("width:"+n.width+"px;"),n.height&&i.push("height:"+n.height+"px;"),i.join(""))}).html(v(j).render({data:n,index:t.index})),n.index=t.index,t.key=n.id||n.index,o[0]&&o.remove(),e.after(r),t.layTool=r.find(".layui-table-tool"),t.layBox=r.find(".layui-table-box"),t.layHeader=r.find(d),t.layMain=r.find(".layui-table-main"),t.layBody=r.find(T),t.layFixed=r.find(".layui-table-fixed"),t.layFixLeft=r.find(".layui-table-fixed-l"),t.layFixRight=r.find(".layui-table-fixed-r"),t.layTotal=r.find(".layui-table-total"),t.layPage=r.find(".layui-table-page"),t.renderToolbar(),t.renderPagebar(),t.fullSize(),1
      ','
      ','
      '].join(""),n=this.layTool.find(".layui-table-tool-temp"),i=("default"===e.toolbar?n.html(t):"string"==typeof e.toolbar&&(t=g(e.toolbar).html()||"")&&n.html(v(t).render(e)),{filter:{title:"筛选列",layEvent:"LAYTABLE_COLS",icon:"layui-icon-cols"},exports:{title:"导出",layEvent:"LAYTABLE_EXPORT",icon:"layui-icon-export"},print:{title:"打印",layEvent:"LAYTABLE_PRINT",icon:"layui-icon-print"}}),a=[];"object"==typeof e.defaultToolbar&&layui.each(e.defaultToolbar,function(e,t){(t="string"==typeof t?i[t]:t)&&a.push('
      ')}),this.layTool.find(".layui-table-tool-self").html(a.join(""))},n.prototype.renderPagebar=function(){var e,t=this.config,n=this.layPagebar=g('
      ');t.pagebar&&((e=g(t.pagebar).html()||"")&&n.append(v(e).render(t)),this.layPage.append(n))},n.prototype.setParentCol=function(e,t){var n=this.config,i=this.layHeader.find('th[data-key="'+n.index+"-"+t+'"]'),a=parseInt(i.attr("colspan"))||0;i[0]&&(t=t.split("-"),t=n.cols[t[0]][t[1]],e?a--:a++,i.attr("colspan",a),i[a<1?"addClass":"removeClass"](C),t.colspan=a,t.hide=a<1,(n=i.data("parentkey"))&&this.setParentCol(e,n))},n.prototype.setColsPatch=function(){var n=this,e=n.config;layui.each(e.cols,function(e,t){layui.each(t,function(e,t){t.hide&&n.setParentCol(t.hide,t.parentKey)})})},n.prototype.setColsWidth=function(){var t,n,i=this,r=i.config,a=0,l=0,s=0,c=0,u=i.setInit("width"),e=(i.eachCols(function(e,t){t.hide||a++}),u=u-("line"===r.skin||"nob"===r.skin?2:a+1)-i.getScrollWidth(i.layMain[0])-1,function(o){layui.each(r.cols,function(e,a){layui.each(a,function(e,t){var n=0,i=t.minWidth||r.cellMinWidth;t?t.colGroup||t.hide||(o?s&&s'+(e||"Error")+"
      ");n[0]&&(t.layNone.remove(),n.remove()),t.layFixed.addClass(C),t.layMain.find("tbody").html(""),t.layMain.append(t.layNone=e),t.layTotal.addClass(s),t.layPage.find(E).addClass(s),k.cache[t.key]=[],t.syncCheckAll()},n.prototype.page=1,n.prototype.pullData=function(t,n){function i(){"object"==typeof o.initSort&&a.sort(o.initSort.field,o.initSort.type)}var e,a=this,o=a.config,r=o.request,l=o.response;n=n||{},"function"==typeof o.before&&o.before(o),a.startTime=(new Date).getTime(),o.url?((e={})[r.pageName]=t,e[r.limitName]=o.limit,r=g.extend(e,o.where),o.contentType&&0==o.contentType.indexOf("application/json")&&(r=JSON.stringify(r)),a.loading(),g.ajax({type:o.method||"get",url:o.url,contentType:o.contentType,data:r,dataType:o.dataType||"json",jsonpCallback:o.jsonpCallback,headers:o.headers||{},success:function(e){(e="function"==typeof o.parseData&&o.parseData(e)||e)[l.statusName]!=l.statusCode?(a.renderForm(),a.errorView(e[l.msgName]||'返回的数据不符合规范,正确的成功状态码应为:"'+l.statusName+'": '+l.statusCode)):(a.renderData({res:e,curr:t,count:e[l.countName],type:n.type}),i(),o.time=(new Date).getTime()-a.startTime+" ms"),a.setColsWidth(),"function"==typeof o.done&&o.done(e,t,e[l.countName])},error:function(e,t){a.errorView("请求异常,错误提示:"+t),a.renderForm(),a.setColsWidth(),"function"==typeof o.error&&o.error(e,t)}})):"array"===layui.type(o.data)&&(e=t*o.limit-o.limit,(r={})[l.dataName]=o.data.concat().splice(e,o.limit),r[l.countName]=o.data.length,"object"==typeof o.totalRow&&(r[l.totalRowName]=g.extend({},o.totalRow)),a.renderData({res:r,curr:t,count:r[l.countName],type:n.type}),i(),a.setColsWidth(),"function"==typeof o.done&&o.done(r,t,r[l.countName]))},n.prototype.eachCols=function(e){return k.eachCols(null,e,this.config.cols),this},n.prototype.col=function(e){try{return e=e.split("-"),this.config.cols[e[1]][e[2]]}catch(e){return h.error(e),{}}},n.prototype.renderData=function(e){function t(){var u;if(f.HAS_SET_COLS_PATCH||d.setColsPatch(),f.HAS_SET_COLS_PATCH=!0,!o&&d.sortKey)return d.sort(d.sortKey.field,d.sortKey.sort,!0);layui.each(r,function(r,l){var n=[],i=[],s=[],c=r+f.limit*(a-1)+1;"array"===layui.type(l)&&0===l.length||(o||(l[k.config.indexName]=r),d.eachCols(function(e,a){var e=a.field||e,t=f.index+"-"+a.key,o=l[e];null==o&&(o=""),a.colGroup||(t=['','
      "+function(){var e,t=g.extend(!0,{LAY_INDEX:c,LAY_COL:a},l),n=k.config.checkName,i=k.config.disabledName;switch(a.type){case"checkbox":return'";case"radio":return t[n]&&(u=r),'';case"numbers":return c}return a.toolbar?v(g(a.toolbar).html()||"").render(t):m.call(d,{item3:a,content:o,tplData:t})}(),"
      "].join(""),n.push(t),a.fixed&&"right"!==a.fixed&&i.push(t),"right"===a.fixed&&s.push(t))}),p.push(''+n.join("")+""),h.push(''+i.join("")+""),y.push(''+s.join("")+""))}),"fixed"===f.scrollPos&&"reloadData"===e.type||d.layBody.scrollTop(0),"reset"===f.scrollPos&&d.layBody.scrollLeft(0),d.layMain.find("."+c).remove(),d.layMain.find("tbody").html(p.join("")),d.layFixLeft.find("tbody").html(h.join("")),d.layFixRight.find("tbody").html(y.join("")),d.renderForm(),"number"==typeof u&&d.setThisRowChecked(u),d.syncCheckAll(),d.fullSize(),d.haveInit?d.scrollPatch():setTimeout(function(){d.scrollPatch()},50),d.haveInit=!0,b.close(d.tipsIndex)}var d=this,f=d.config,n=e.res,a=e.curr,i=e.count,o=e.sort,r=n[f.response.dataName]||[],n=n[f.response.totalRowName],p=[],h=[],y=[];return k.cache[d.key]=r,d.layTotal[0==r.length?"addClass":"removeClass"](s),d.layPage[f.page||f.pagebar?"removeClass":"addClass"](C),d.layPage.find(E)[!f.page||0==i||0===r.length&&1==a?"addClass":"removeClass"](s),0===r.length?(d.renderForm(),d.errorView(f.text.none)):(d.layFixLeft.removeClass(C),o?t():(t(),d.renderTotal(r,n),d.layTotal&&d.layTotal.removeClass(C),void(f.page&&(f.page=g.extend({elem:"layui-table-page"+f.index,count:i,limit:f.limit,limits:f.limits||[10,20,30,40,50,60,70,80,90],groups:3,layout:["prev","page","next","skip","count","limit"],prev:'',next:'',jump:function(e,t){t||(d.page=e.curr,f.limit=e.limit,d.pullData(e.curr))}},f.page),f.page.count=i,l.render(f.page)))))},n.prototype.renderTotal=function(e,r){var l,s=this,c=s.config,u={};c.totalRow&&(layui.each(e,function(e,i){"array"===layui.type(i)&&0===i.length||s.eachCols(function(e,t){var e=t.field||e,n=i[e];t.totalRow&&(u[e]=(u[e]||0)+(parseFloat(n)||0))})}),s.dataTotal={},l=[],s.eachCols(function(e,t){var n,e=t.field||e,i=r&&r[t.field],a=(n=t.totalRowText||"",o="totalRowDecimals"in t?t.totalRowDecimals:2,o=parseFloat(u[e]).toFixed(o),(a={LAY_COL:t})[e]=o,o=t.totalRow&&m.call(s,{item3:t,content:o,tplData:a})||n,i||o),o=['','
      "+("string"==typeof(n=t.totalRow||c.totalRow)?v(n).render(g.extend({TOTAL_NUMS:i||u[e],LAY_COL:t},t)):a),"
      "].join("");t.field&&(s.dataTotal[e]=a),l.push(o)}),s.layTotal.find("tbody").html(""+l.join("")+""))},n.prototype.getColElem=function(e,t){var n=this.config;return e.eq(0).find(".laytable-cell-"+n.index+"-"+t+":eq(0)")},n.prototype.renderForm=function(e){this.config;var t=this.elem.attr("lay-filter");p.render(e,t)},n.prototype.setThisRowChecked=function(e){this.config;var t="layui-table-click";this.layBody.find('tr[data-index="'+e+'"]').addClass(t).siblings("tr").removeClass(t)},n.prototype.sort=function(a,e,t,n){var i,o=this,r={},l=o.config,s=l.elem.attr("lay-filter"),c=k.cache[o.key];"string"==typeof a&&(u=a,o.layHeader.find("th").each(function(e,t){var n=g(this),i=n.data("field");if(i===a)return a=n,u=i,!1}));try{var u=u||a.data("field"),d=a.data("key");if(o.sortKey&&!t&&u===o.sortKey.field&&e===o.sortKey.sort)return;var f=o.layHeader.find("th .laytable-cell-"+d).find(D);o.layHeader.find("th").find(D).removeAttr("lay-sort"),f.attr("lay-sort",e||null),o.layFixed.find("th")}catch(e){h.error("Table modules: sort field '"+u+"' not matched")}o.sortKey={field:u,sort:e},l.autoSort&&("asc"===e?i=layui.sort(c,u):"desc"===e?i=layui.sort(c,u,!0):(i=layui.sort(c,k.config.indexName),delete o.sortKey,delete l.initSort)),r[l.response.dataName]=i||c,o.renderData({res:r,curr:o.page,count:o.count,sort:!0}),n&&(l.initSort={field:u,type:e},layui.event.call(a,w,"sort("+s+")",l.initSort))},n.prototype.loading=function(e){this.config.loading&&(e?(this.layInit&&this.layInit.remove(),delete this.layInit,this.layBox.find(".layui-table-init").remove()):(this.layInit=g(['
      ','',"
      "].join("")),this.layBox.append(this.layInit)))},n.prototype.setCheckData=function(e,t){var n=this.config,i=k.cache[this.key];i[e]&&"array"!==layui.type(i[e])&&(i[e][n.checkName]=t)},n.prototype.syncCheckAll=function(){function e(n){t.eachCols(function(e,t){"checkbox"===t.type&&(t[i.checkName]=n)})}var t=this,i=t.config,n=t.layHeader.find('input[name="layTableCheckbox"]');n[0]&&(k.checkStatus(t.key).isAll?(n[0].checked||(n.prop("checked",!0),t.renderForm("checkbox")),e(!0)):(n[0].checked&&(n.prop("checked",!1),t.renderForm("checkbox")),e(!1)))},n.prototype.getCssRule=function(n,i){var e=(e=(e=this.elem.find("style")[0]).sheet||e.styleSheet||{}).cssRules||e.rules;layui.each(e,function(e,t){if(t.selectorText===".laytable-cell-"+n)return i(t),!0})},n.prototype.fullSize=function(){var e=this.config,t=e.height;this.fullHeightGap&&(t=M.height()-this.fullHeightGap,this.elem.css("height",t=t<135?135:t)),t&&(t=parseFloat(t)-(this.layHeader.outerHeight()||38),e.toolbar&&(t-=this.layTool.outerHeight()||50),e.totalRow&&(t-=this.layTotal.outerHeight()||40),(e.page||e.pagebar)&&(t-=this.layPage.outerHeight()||43),this.layMain.outerHeight(t))},n.prototype.getScrollWidth=function(e){var t=0;return e?t=e.offsetWidth-e.clientWidth:((e=document.createElement("div")).style.width="100px",e.style.height="100px",e.style.overflowY="scroll",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),t},n.prototype.scrollPatch=function(){var e=this,t=e.layMain.children("table"),n=e.layMain.width()-e.layMain.prop("clientWidth"),i=e.layMain.height()-e.layMain.prop("clientHeight"),a=(e.getScrollWidth(e.layMain[0]),t.outerWidth()-e.layMain.width()),o=function(e){var t;n&&i?(e=e.eq(0)).find(".layui-table-patch")[0]||((t=g('
      ')).find("div").css({width:n}),e.find("tr").append(t)):e.find(".layui-table-patch").remove()};o(e.layHeader),o(e.layTotal),o=e.layMain.height()-i,e.layFixed.find(T).css("height",t.height()>=o?o:"auto"),e.layFixRight[0');n.html(t),s.height&&n.css("max-height",s.height-(u.layTool.outerHeight()||50)),i.find(".layui-table-tool-panel")[0]||i.append(n),u.renderForm(),n.on("click",function(e){layui.stope(e)}),e.done&&e.done(n,t)}var n,i=g(this),a=i.attr("lay-event");switch(layui.stope(e),H.trigger("table.tool.panel.remove"),b.close(u.tipsIndex),a){case"LAYTABLE_COLS":t({list:(n=[],u.eachCols(function(e,t){t.field&&"normal"==t.type&&n.push('
    • ')}),n.join("")),done:function(){p.on("checkbox(LAY_TABLE_TOOL_COLS)",function(e){var e=g(e.elem),i=this.checked,a=e.data("key"),o=e.data("parentkey");layui.each(s.cols,function(n,e){layui.each(e,function(e,t){n+"-"+e===a&&(e=t.hide,t.hide=!i,u.elem.find('*[data-key="'+s.index+"-"+a+'"]')[i?"removeClass":"addClass"](C),e!=t.hide&&u.setParentCol(!i,o),u.resize())})})})}});break;case"LAYTABLE_EXPORT":y.ie?b.tips("导出功能不支持 IE,请用 Chrome 等高级浏览器导出",this,{tips:3}):t({list:['
    • 导出 csv 格式文件
    • ','
    • 导出 xls 格式文件
    • '].join(""),done:function(e,t){t.on("click",function(){var e=g(this).data("type");k.exportFile.call(u,s.id,null,e)})}});break;case"LAYTABLE_PRINT":var o=window.open("about:blank","_blank"),r=[""].join(""),l=g(u.layHeader.html());l.append(u.layMain.find("table").html()),l.append(u.layTotal.find("table").html()),l.find("th.layui-table-patch").remove(),l.find("thead>tr>th."+A).filter(function(e,t){return!g(t).children(".laytable-cell-group").length}).remove(),l.find("tbody>tr>td."+A).remove(),o.document.write(r+l.prop("outerHTML")),o.document.close(),o.print(),o.close()}layui.event.call(this,w,"toolbar("+c+")",g.extend({event:a,config:s},{}))}),u.layPagebar.on("click","*[lay-event]",function(e){var t=g(this).attr("lay-event");layui.event.call(this,w,"pagebar("+c+")",g.extend({event:t,config:s},{}))}),e.on("mousemove",function(e){var t=g(this),n=t.offset().left,e=e.clientX-n;t.data("unresize")||f.eventMoveElem||(a.allowResize=t.width()-e<=10,i.css("cursor",a.allowResize?"col-resize":""))}).on("mouseleave",function(){g(this),f.eventMoveElem||i.css("cursor","")}).on("mousedown",function(e){var t,n=g(this);a.allowResize&&(t=n.data("key"),e.preventDefault(),a.offset=[e.clientX,e.clientY],u.getCssRule(t,function(e){var t=e.style.width||n.outerWidth();a.rule=e,a.ruleWidth=parseFloat(t),a.minWidth=n.data("minwidth")||s.cellMinWidth}),n.data(N,a),f.eventMoveElem=n)}),f.docEvent||H.on("mousemove",function(e){var t;f.eventMoveElem&&(t=f.eventMoveElem.data(N)||{},f.eventMoveElem.data("resizing",1),e.preventDefault(),t.rule&&((e=t.ruleWidth+e.clientX-t.offset[0])':''))[0].value=o.data("content")||n[t]||i.text(),o.find("."+L)[0]||o.append(a),a.focus(),layui.stope(e)))}).on("mouseenter","td",function(){l.call(this)}).on("mouseleave","td",function(){l.call(this,"hide")}),"layui-table-grid-down"),l=function(e){var t=g(this),n=t.children(d);t.data("off")||(e?t.find(".layui-table-grid-down").remove():!(n.prop("scrollWidth")>n.outerWidth()||0
      '))};u.layBody.on("click","."+r,function(e){var t=g(this).parent().children(d);u.tipsIndex=b.tips(['
      ',t.html(),"
      ",''].join(""),t[0],{tips:[3,""],time:-1,anim:-1,maxWidth:y.ios||y.android?300:u.elem.width()/2,isOutAnim:!1,skin:"layui-table-tips",success:function(e,t){e.find(".layui-table-tips-c").on("click",function(){b.close(t)})}}),layui.stope(e)});u.layBody.on("click","*[lay-event]",function(e){t.call(this),layui.stope(e)}).on("dblclick","*[lay-event]",function(e){t.call(this,"toolDouble"),layui.stope(e)}),u.layMain.on("scroll",function(){var e=(t=g(this)).scrollLeft(),t=t.scrollTop();u.layHeader.scrollLeft(e),u.layTotal.scrollLeft(e),u.layFixed.find(T).scrollTop(t),b.close(u.tipsIndex)}),M.on("resize",function(){u.resize()})},H.on("click",function(){H.trigger("table.remove.tool.panel")}),H.on("table.remove.tool.panel",function(){g(".layui-table-tool-panel").remove()}),k.init=function(n,i){i=i||{};var e=g(n?'table[lay-filter="'+n+'"]':".layui-table[lay-data]"),a="Table element property lay-data configuration item has a syntax error: ";return e.each(function(){var e=g(this),t=e.attr("lay-data");try{t=new Function("return "+t)()}catch(e){h.error(a+t,"error")}var o=[],r=g.extend({elem:this,cols:[],data:[],skin:e.attr("lay-skin"),size:e.attr("lay-size"),even:"string"==typeof e.attr("lay-even")},k.config,i,t);n&&e.hide(),e.find("thead>tr").each(function(i){r.cols[i]=[],g(this).children().each(function(e){var t=g(this),n=t.attr("lay-data");try{n=new Function("return "+n)()}catch(e){return h.error(a+n)}(t=g.extend({title:t.text(),colspan:t.attr("colspan")||1,rowspan:t.attr("rowspan")||1},n)).colspan<2&&o.push(t),r.cols[i].push(t)})}),e.find("tbody>tr").each(function(e){var n=g(this),a={};n.children("td").each(function(e,t){var n=g(this),i=n.data("field");if(i)return a[i]=n.html()}),layui.each(o,function(e,t){e=n.children("td").eq(e),a[t.field]=e.html()}),r.data[e]=a}),k.render(r)}),this},f.that={},f.config={},function(n,i,e,a){var o,r;a.colGroup&&(o=0,n++,a.CHILD_COLS=[],r=e+(parseInt(a.rowspan)||1),layui.each(i[r],function(e,t){t.parentKey?t.parentKey===a.key&&(t.PARENT_COL_INDEX=n,a.CHILD_COLS.push(t),I(n,i,r,t)):t.PARENT_COL_INDEX||1<=o&&o==(a.colspan||1)||(t.PARENT_COL_INDEX=n,a.CHILD_COLS.push(t),o+=t.hide?0:parseInt(1td'),null==n&&(n=""),0==a&&l.push(t.title||""),r.push('"'+m.call(c,{item3:t,content:n,tplData:o,text:"text",obj:c.commonMember.call(i.eq(0),{td:function(e){return i.filter('[data-field="'+e+'"]')}})})+'"')))}),i.push(r.join(","))}),c&&layui.each(c.dataTotal,function(e,t){s[e]||a.push(t)}),l.join(",")+"\r\n"+i.join("\r\n")+"\r\n"+a.join(","))),d.download=(n.title||r.title||"table_"+(r.index||""))+"."+o,document.body.appendChild(d),d.click(),document.body.removeChild(d)},k.resize=function(e){e?a(e)&&f.that[e].resize():layui.each(f.that,function(){this.resize()})},k.reload=function(e,t,n,i){if(a(e))return(e=f.that[e]).reload(t,n,i),f.call(e)},k.reloadData=function(){var n=g.extend([],arguments),i=(n[3]="reloadData",new RegExp("^("+["data","url","method","contentType","dataType","jsonpCallback","headers","where","page","limit","request","response","parseData","scrollPos"].join("|")+")$"));return layui.each(n[1],function(e,t){i.test(e)||delete n[1][e]}),k.reload.apply(null,n)},k.render=function(e){return e=new n(e),f.call(e)},k.clearCacheKey=function(e){return delete(e=g.extend({},e))[k.config.checkName],delete e[k.config.indexName],delete e[k.config.disabledName],e},g(function(){k.init()}),e(w,k)}),layui.define("form",function(e){"use strict";function i(){var t=this,e=t.config,n=e.id||t.index;return i.that[n]=t,{config:i.config[n]=e,reload:function(e){t.reload.call(t,e)},getChecked:function(){return t.getChecked.call(t)},setChecked:function(e){return t.setChecked.call(t,e)}}}function t(e){this.index=++o.index,this.config=f.extend({},this.config,o.config,e),this.render()}var f=layui.$,n=layui.form,p=layui.layer,a="tree",o={config:{},index:layui.tree?layui.tree.index+1e4:0,set:function(e){return this.config=f.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,a,e,t)}},h="layui-hide",s="layui-disabled",y="layui-tree-set",m="layui-tree-iconClick",g="layui-icon-addition",v="layui-icon-subtraction",b="layui-tree-entry",x="layui-tree-main",k="layui-tree-txt",w="layui-tree-pack",C="layui-tree-spread",T="layui-tree-setLineShort",E="layui-tree-showLine",D="layui-tree-lineExtend";t.prototype.config={data:[],showCheckbox:!1,showLine:!0,accordion:!1,onlyIconControl:!1,isJump:!1,edit:!1,text:{defaultNodeName:"未命名",none:"无数据"}},t.prototype.reload=function(e){var n=this;layui.each(e,function(e,t){"array"===layui.type(t)&&delete n.config[e]}),n.config=f.extend(!0,{},n.config,e),n.render()},t.prototype.render=function(){var e=this,t=e.config,n=(e.checkids=[],f('
      ')),i=(e.tree(n),t.elem=f(t.elem));if(i[0]){if(e.key=t.id||e.index,e.elem=n,e.elemNone=f('
      '+t.text.none+"
      "),i.html(e.elem),0==e.elem.find(".layui-tree-set").length)return e.elem.append(e.elemNone);t.showCheckbox&&e.renderForm("checkbox"),e.elem.find(".layui-tree-set").each(function(){var e=f(this);e.parent(".layui-tree-pack")[0]||e.addClass("layui-tree-setHide"),!e.next()[0]&&e.parents(".layui-tree-pack").eq(1).hasClass("layui-tree-lineExtend")&&e.addClass(T),e.next()[0]||e.parents(".layui-tree-set").eq(0).next()[0]||e.addClass(T)}),e.events()}},t.prototype.renderForm=function(e){n.render(e,"LAY-tree-"+this.index)},t.prototype.tree=function(o,e){var r=this,l=r.config,e=e||l.data;layui.each(e,function(e,t){var n=t.children&&0"),a=f(['
      ','
      ','
      ',l.showLine?n?'':'':'',l.showCheckbox?'':"",l.isJump&&t.href?''+(t.title||t.label||l.text.defaultNodeName)+"":''+(t.title||t.label||l.text.defaultNodeName)+"","
      ",function(){if(!l.edit)return"";var n={add:'',update:'',del:''},i=['
      '];return!0===l.edit&&(l.edit=["update","del"]),"object"==typeof l.edit?(layui.each(l.edit,function(e,t){i.push(n[t]||"")}),i.join("")+"
      "):void 0}(),"
      "].join(""));n&&(a.append(i),r.tree(i,t.children)),o.append(a),a.prev("."+y)[0]&&a.prev().children(".layui-tree-pack").addClass("layui-tree-showLine"),n||a.parent(".layui-tree-pack").addClass("layui-tree-lineExtend"),r.spread(a,t),l.showCheckbox&&(t.checked&&r.checkids.push(t.id),r.checkClick(a,t)),l.edit&&r.operate(a,t)})},t.prototype.spread=function(i,e){var a=this.config,t=(o=i.children("."+b)).children("."+x),n=o.find("."+m),o=o.find("."+k),r=a.onlyIconControl?n:t,l="";r.on("click",function(e){var t=i.children("."+w),n=(r.children(".layui-icon")[0]?r:r.find(".layui-tree-icon")).children(".layui-icon");t[0]?i.hasClass(C)?(i.removeClass(C),t.slideUp(200),n.removeClass(v).addClass(g)):(i.addClass(C),t.slideDown(200),n.addClass(v).removeClass(g),a.accordion&&((t=i.siblings("."+y)).removeClass(C),t.children("."+w).slideUp(200),t.find(".layui-tree-icon").children(".layui-icon").removeClass(v).addClass(g))):l="normal"}),o.on("click",function(){f(this).hasClass(s)||(l=i.hasClass(C)?a.onlyIconControl?"open":"close":a.onlyIconControl?"close":"open",a.click&&a.click({elem:i,state:l,data:e}))})},t.prototype.setCheckbox=function(e,t,n){this.config;var a,o=n.prop("checked");n.prop("disabled")||("object"!=typeof t.children&&!e.find("."+w)[0]||e.find("."+w).find('input[same="layuiTreeCheck"]').each(function(){this.disabled||(this.checked=o)}),(a=function(e){var t,n,i;e.parents("."+y)[0]&&(n=(e=e.parent("."+w)).parent(),i=e.prev().find('input[same="layuiTreeCheck"]'),o?i.prop("checked",o):(e.find('input[same="layuiTreeCheck"]').each(function(){this.checked&&(t=!0)}),t||i.prop("checked",!1)),a(n))})(e),this.renderForm("checkbox"))},t.prototype.checkClick=function(n,i){var a=this,o=a.config;n.children("."+b).children("."+x).on("click",'input[same="layuiTreeCheck"]+',function(e){layui.stope(e);var t=(e=f(this).prev()).prop("checked");e.prop("disabled")||(a.setCheckbox(n,i,e),o.oncheck&&o.oncheck({elem:n,checked:t,data:i}))})},t.prototype.operate=function(s,o){var c=this,u=c.config,e=s.children("."+b),d=e.children("."+x);e.children(".layui-tree-btnGroup").on("click",".layui-icon",function(e){layui.stope(e);var t,n,i,a,e=f(this).data("type"),r=s.children("."+w),l={data:o,type:e,elem:s};"add"==e?(r[0]||(u.showLine?(d.find("."+m).addClass("layui-tree-icon"),d.find("."+m).children(".layui-icon").addClass(g).removeClass("layui-icon-file")):d.find(".layui-tree-iconArrow").removeClass(h),s.append('
      ')),i=u.operate&&u.operate(l),(a={}).title=u.text.defaultNodeName,a.id=i,c.tree(s.children("."+w),[a]),u.showLine&&(r[0]?(r.hasClass(D)||r.addClass(D),s.find("."+w).each(function(){f(this).children("."+y).last().addClass(T)}),(r.children("."+y).last().prev().hasClass(T)?r.children("."+y).last().prev():r.children("."+y).last()).removeClass(T),!s.parent("."+w)[0]&&s.next()[0]&&r.children("."+y).last().removeClass(T)):(i=s.siblings("."+y),n=1,a=s.parent("."+w),layui.each(i,function(e,t){f(t).children("."+w)[0]||(n=0)}),1==n?(i.children("."+w).addClass(E),i.children("."+w).children("."+y).removeClass(T),s.children("."+w).addClass(E),a.removeClass(D),a.children("."+y).last().children("."+w).children("."+y).last().addClass(T)):s.children("."+w).children("."+y).addClass(T))),u.showCheckbox&&(d.find('input[same="layuiTreeCheck"]')[0].checked&&(s.children("."+w).children("."+y).last().find('input[same="layuiTreeCheck"]')[0].checked=!0),c.renderForm("checkbox"))):"update"==e?(i=d.children("."+k).html(),d.children("."+k).html(""),d.append(''),d.children(".layui-tree-editInput").val(i).focus(),t=function(e){var t=e.val().trim()||u.text.defaultNodeName;e.remove(),d.children("."+k).html(t),l.data.title=t,u.operate&&u.operate(l)},d.children(".layui-tree-editInput").blur(function(){t(f(this))}),d.children(".layui-tree-editInput").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),t(f(this)))})):p.confirm('确认删除该节点 "'+(o.title||"")+'" 吗?',function(e){if(u.operate&&u.operate(l),l.status="remove",p.close(e),!s.prev("."+y)[0]&&!s.next("."+y)[0]&&!s.parent("."+w)[0])return s.remove(),void c.elem.append(c.elemNone);var o,n,t;s.siblings("."+y).children("."+b)[0]?(u.showCheckbox&&(o=function(e){var t,n,i,a;e.parents("."+y)[0]&&(t=e.siblings("."+y).children("."+b),n=(e=e.parent("."+w).prev()).find('input[same="layuiTreeCheck"]')[0],i=1,(a=0)==n.checked&&(t.each(function(e,t){0!=(t=f(t).find('input[same="layuiTreeCheck"]')[0]).checked||t.disabled||(i=0),t.disabled||(a=1)}),1==i&&1==a&&(n.checked=!0,c.renderForm("checkbox"),o(e.parent("."+y)))))})(s),u.showLine&&(e=s.siblings("."+y),n=1,t=s.parent("."+w),layui.each(e,function(e,t){f(t).children("."+w)[0]||(n=0)}),1==n?(r[0]||(t.removeClass(D),e.children("."+w).addClass(E),e.children("."+w).children("."+y).removeClass(T)),(s.next()[0]?t.children("."+y).last():s.prev()).children("."+w).children("."+y).last().addClass(T),s.next()[0]||s.parents("."+y)[1]||s.parents("."+y).eq(0).next()[0]||s.prev("."+y).addClass(T)):!s.next()[0]&&s.hasClass(T)&&s.prev().addClass(T))):(e=s.parent("."+w).prev(),u.showLine?(e.find("."+m).removeClass("layui-tree-icon"),e.find("."+m).children(".layui-icon").removeClass(v).addClass("layui-icon-file"),(t=e.parents("."+w).eq(0)).addClass(D),t.children("."+y).each(function(){f(this).children("."+w).children("."+y).last().addClass(T)})):e.find(".layui-tree-iconArrow").addClass(h),s.parents("."+y).eq(0).removeClass(C),s.parent("."+w).remove()),s.remove()})})},t.prototype.events=function(){var t=this,a=t.config;t.elem.find(".layui-tree-checkedFirst"),t.setChecked(t.checkids),t.elem.find(".layui-tree-search").on("keyup",function(){var n=(e=f(this)).val(),e=e.nextAll(),i=[];e.find("."+k).each(function(){var t,e=f(this).parents("."+b);-1!=f(this).html().indexOf(n)&&(i.push(f(this).parent()),(t=function(e){e.addClass("layui-tree-searchShow"),e.parent("."+w)[0]&&t(e.parent("."+w).parent("."+y))})(e.parent("."+y)))}),e.find("."+b).each(function(){var e=f(this).parent("."+y);e.hasClass("layui-tree-searchShow")||e.addClass(h)}),0==e.find(".layui-tree-searchShow").length&&t.elem.append(t.elemNone),a.onsearch&&a.onsearch({elem:i})}),t.elem.find(".layui-tree-search").on("keydown",function(){f(this).nextAll().find("."+b).each(function(){f(this).parent("."+y).removeClass("layui-tree-searchShow "+h)}),f(".layui-tree-emptyText")[0]&&f(".layui-tree-emptyText").remove()})},t.prototype.getChecked=function(){var e=this.config,t=[],n=[],a=(this.elem.find(".layui-form-checked").each(function(){t.push(f(this).prev()[0].value)}),function(e,i){layui.each(e,function(e,n){layui.each(t,function(e,t){if(n.id==t)return delete(t=f.extend({},n)).children,i.push(t),n.children&&(t.children=[],a(n.children,t.children)),!0})})});return a(f.extend({},e.data),n),n},t.prototype.setChecked=function(o){this.config,this.elem.find("."+y).each(function(e,t){var n=f(this).data("id"),i=f(t).children("."+b).find('input[same="layuiTreeCheck"]'),a=i.next();if("number"==typeof o){if(n==o)return i[0].checked||a.click(),!1}else"object"==typeof o&&layui.each(o,function(e,t){if(t==n&&!i[0].checked)return a.click(),!0})})},i.that={},i.config={},o.reload=function(e,t){return(e=i.that[e]).reload(t),i.call(e)},o.getChecked=function(e){return i.that[e].getChecked()},o.setChecked=function(e,t){return i.that[e].setChecked(t)},o.render=function(e){return e=new t(e),i.call(e)},e(a,o)}),layui.define(["laytpl","form"],function(e){"use strict";function i(){var t=this,e=t.config,n=e.id||t.index;return i.that[n]=t,{config:i.config[n]=e,reload:function(e){t.reload.call(t,e)},getData:function(){return t.getData.call(t)}}}function t(e){return['
      ','
      ','","
      ","{{# if(d.data.showSearch){ }}",'","{{# } }}",'
        ',"
        "].join("")}function n(e){this.index=++l.index,this.config=c.extend({},this.config,l.config,e),this.render()}var c=layui.$,a=layui.laytpl,o=layui.form,r="transfer",l={config:{},index:layui[r]?layui[r].index+1e4:0,set:function(e){return this.config=c.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,r,e,t)}},u="layui-hide",d="layui-btn-disabled",s="layui-none",f="layui-transfer-box",p="layui-transfer-header",h="layui-transfer-search",y="layui-transfer-data",m=['
        ',t({index:0,checkAllName:"layTransferLeftCheckAll"}),'
        ','",'","
        ",t({index:1,checkAllName:"layTransferRightCheckAll"}),"
        "].join("");n.prototype.config={title:["列表一","列表二"],width:200,height:360,data:[],value:[],showSearch:!1,id:"",text:{none:"无数据",searchNone:"无匹配数据"}},n.prototype.reload=function(e){this.config=c.extend({},this.config,e),this.render()},n.prototype.render=function(){var e=this,t=e.config,n=e.elem=c(a(m).render({data:t,index:e.index})),i=t.elem=c(t.elem);i[0]&&(t.data=t.data||[],t.value=t.value||[],e.key=t.id||e.index,i.html(e.elem),e.layBox=e.elem.find("."+f),e.layHeader=e.elem.find("."+p),e.laySearch=e.elem.find("."+h),e.layData=n.find("."+y),e.layBtn=n.find(".layui-transfer-active .layui-btn"),e.layBox.css({width:t.width,height:t.height}),e.layData.css({height:(i=t.height-e.layHeader.outerHeight(),t.showSearch&&(i-=e.laySearch.outerHeight()),i-2)}),e.renderData(),e.events())},n.prototype.renderData=function(){this.config;var i=[{checkName:"layTransferLeftCheck",views:[]},{checkName:"layTransferRightCheck",views:[]}];this.parseData(function(e){var t=e.selected?1:0,n=["
      • ",'',"
      • "].join("");i[t].views.push(n),delete e.selected}),this.layData.eq(0).html(i[0].views.join("")),this.layData.eq(1).html(i[1].views.join("")),this.renderCheckBtn()},n.prototype.renderForm=function(e){o.render(e,"LAY-transfer-"+this.index)},n.prototype.renderCheckBtn=function(r){var l=this,s=l.config;r=r||{},l.layBox.each(function(e){var t=(n=c(this)).find("."+y),n=n.find("."+p).find('input[type="checkbox"]'),i=t.find('input[type="checkbox"]'),a=0,o=!1;i.each(function(){var e=c(this).data("hide");(this.checked||this.disabled||e)&&a++,this.checked&&!e&&(o=!0)}),n.prop("checked",o&&a===i.length),l.layBtn.eq(e)[o?"removeClass":"addClass"](d),r.stopNone||(i=t.children("li:not(."+u+")").length,l.noneView(t,i?"":s.text.none))}),l.renderForm("checkbox")},n.prototype.noneView=function(e,t){var n=c('

        '+(t||"")+"

        ");e.find("."+s)[0]&&e.find("."+s).remove(),t.replace(/\s/g,"")&&e.append(n)},n.prototype.setValue=function(){var e=this.config,t=[];return this.layBox.eq(1).find("."+y+' input[type="checkbox"]').each(function(){c(this).data("hide")||t.push(this.value)}),e.value=t,this},n.prototype.parseData=function(t){var i=this.config,a=[];return layui.each(i.data,function(e,n){n=("function"==typeof i.parseData?i.parseData(n):n)||n,a.push(n=c.extend({},n)),layui.each(i.value,function(e,t){t==n.value&&(n.selected=!0)}),t&&t(n)}),i.data=a,this},n.prototype.getData=function(e){var t=this.config,i=[];return this.setValue(),layui.each(e||t.value,function(e,n){layui.each(t.data,function(e,t){delete t.selected,n==t.value&&i.push(t)})}),i},n.prototype.transfer=function(e,t){var n,i=this,a=i.config,o=i.layBox.eq(e),r=[];t?((n=t.find('input[type="checkbox"]'))[0].checked=!1,o.siblings("."+f).find("."+y).append(t.clone()),t.remove(),r.push(n[0].value),i.setValue()):o.each(function(e){c(this).find("."+y).children("li").each(function(){var e=c(this),t=e.find('input[type="checkbox"]'),n=t.data("hide");t[0].checked&&!n&&(t[0].checked=!1,o.siblings("."+f).find("."+y).append(e.clone()),e.remove(),r.push(t[0].value)),i.setValue()})}),i.renderCheckBtn(),""!==(t=o.siblings("."+f).find("."+h+" input")).val()&&t.trigger("keyup"),a.onchange&&a.onchange(i.getData(r),e)},n.prototype.events=function(){var a=this,o=a.config;a.elem.on("click",'input[lay-filter="layTransferCheckbox"]+',function(){var e=c(this).prev(),t=e[0].checked,n=e.parents("."+f).eq(0).find("."+y);e[0].disabled||("all"===e.attr("lay-type")&&n.find('input[type="checkbox"]').each(function(){this.disabled||(this.checked=t)}),setTimeout(function(){a.renderCheckBtn({stopNone:!0})},0))}),a.elem.on("dblclick","."+y+">li",function(e){var t=c(this),n=t.children('input[type="checkbox"]'),i=t.parent().parent();n[0].disabled||a.transfer(i.data("index"),t)}),a.layBtn.on("click",function(){var e=c(this),t=e.data("index");e.hasClass(d)||a.transfer(t)}),a.laySearch.find("input").on("keyup",function(){var i=this.value,e=c(this).parents("."+h).eq(0).siblings("."+y),t=((t=e.children("li")).each(function(){var e=c(this),t=e.find('input[type="checkbox"]'),n=t[0].title;"cs"!==o.showSearch&&(n=n.toLowerCase(),i=i.toLowerCase()),e[(n=-1!==n.indexOf(i))?"removeClass":"addClass"](u),t.data("hide",!n)}),a.renderCheckBtn(),t.length===e.children("li."+u).length);a.noneView(e,t?o.text.searchNone:"")})},i.that={},i.config={},l.reload=function(e,t){return(e=i.that[e]).reload(t),i.call(e)},l.getData=function(e){return i.that[e].getData()},l.render=function(e){return e=new n(e),i.call(e)},e(r,l)}),layui.define("jquery",function(e){"use strict";function t(e){this.config=a.extend({},this.config,n.config,e),this.render()}var a=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){return this.config=a.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,l,e,t)}}),l="carousel",s="layui-this",c="layui-carousel-left",u="layui-carousel-right",d="layui-carousel-prev",f="layui-carousel-next",i="layui-carousel-arrow",o="layui-carousel-ind";t.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},t.prototype.render=function(){var e=this,t=e.config;t.elem=a(t.elem),t.elem[0]&&(e.elemItem=t.elem.find(">*[carousel-item]>*"),t.index<0&&(t.index=0),t.index>=e.elemItem.length&&(t.index=e.elemItem.length-1),t.interval<800&&(t.interval=800),t.full?t.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):t.elem.css({width:t.width,height:t.height}),t.elem.attr("lay-anim",t.anim),e.elemItem.eq(t.index).addClass(s),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},t.prototype.reload=function(e){clearInterval(this.timer),this.config=a.extend({},this.config,e),this.render()},t.prototype.prevIndex=function(){var e=this.config.index-1;return e<0?this.elemItem.length-1:e},t.prototype.nextIndex=function(){var e=this.config.index+1;return e>=this.elemItem.length?0:e},t.prototype.addIndex=function(e){var t=this.config;t.index=t.index+(e=e||1),t.index>=this.elemItem.length&&(t.index=0)},t.prototype.subIndex=function(e){var t=this.config;t.index=t.index-(e=e||1),t.index<0&&(t.index=this.elemItem.length-1)},t.prototype.autoplay=function(){var e=this,t=e.config;t.autoplay&&(clearInterval(e.timer),e.timer=setInterval(function(){e.slide()},t.interval))},t.prototype.arrow=function(){var t=this,e=t.config,n=a(['",'"].join(""));e.elem.attr("lay-arrow",e.arrow),e.elem.find("."+i)[0]&&e.elem.find("."+i).remove(),e.elem.append(n),n.on("click",function(){var e=a(this).attr("lay-type");t.slide(e)})},t.prototype.indicator=function(){var t,n=this,i=n.config,e=n.elemInd=a(['
          ',(t=[],layui.each(n.elemItem,function(e){t.push("")}),t.join("")),"
        "].join(""));i.elem.attr("lay-indicator",i.indicator),i.elem.find("."+o)[0]&&i.elem.find("."+o).remove(),i.elem.append(e),"updown"===i.anim&&e.css("margin-top",-e.height()/2),e.find("li").on("hover"===i.trigger?"mouseover":i.trigger,function(){var e=a(this).index();e>i.index?n.slide("add",e-i.index):ee.length&&(e.value=e.length),parseInt(e.value)===e.value||e.half||(e.value=Math.ceil(e.value)-e.value<.5?Math.ceil(e.value):Math.floor(e.value)),'
          "),i=1;i<=e.length;i++){var a='
        • ";e.half&&parseInt(e.value)!==e.value&&i==Math.ceil(e.value)?n=n+'
        • ":n+=a}n+="
        "+(e.text?''+e.value+"星":"")+"";var o=e.elem,r=o.next(".layui-rate");r[0]&&r.remove(),this.elemTemp=l(n),e.span=this.elemTemp.next("span"),e.setText&&e.setText(e.value),o.html(this.elemTemp),o.addClass("layui-inline"),e.readonly||this.action()},t.prototype.setvalue=function(e){this.config.value=e,this.render()},t.prototype.action=function(){var i=this.config,a=this.elemTemp,o=a.find("i").width();a.children("li").each(function(e){var t=e+1,n=l(this);n.on("click",function(e){i.value=t,i.half&&e.pageX-l(this).offset().left<=o/2&&(i.value=i.value-.5),i.text&&a.next("span").text(i.value+"星"),i.choose&&i.choose(i.value),i.setText&&i.setText(i.value)}),n.on("mousemove",function(e){a.find("i").each(function(){l(this).addClass(s).removeClass(u)}),a.find("i:lt("+t+")").each(function(){l(this).addClass(c).removeClass(d)}),i.half&&e.pageX-l(this).offset().left<=o/2&&n.children("i").addClass(r).removeClass(c)}),n.on("mouseleave",function(){a.find("i").each(function(){l(this).addClass(s).removeClass(u)}),a.find("i:lt("+Math.floor(i.value)+")").each(function(){l(this).addClass(c).removeClass(d)}),i.half&&parseInt(i.value)!==i.value&&a.children("li:eq("+Math.floor(i.value)+")").children("i").addClass(r).removeClass("layui-icon-rate-solid layui-icon-rate")})})},t.prototype.events=function(){this.config},n.render=function(e){return e=new t(e),function(){var t=this;return{setvalue:function(e){t.setvalue.call(t,e)},config:t.config}}.call(e)},e(i,n)}),layui.define("jquery",function(e){"use strict";function t(e){}var m=layui.$;t.prototype.load=function(e){var i,a,o,t,r,n,l,s,c,u,d,f,p,h=0,y=m((e=e||{}).elem);if(y[0])return t=m(e.scrollElem||document),r=e.mb||50,n=!("isAuto"in e)||e.isAuto,l=e.end||"没有更多了",s=e.scrollElem&&e.scrollElem!==document,u=m('"),y.find(".layui-flow-more")[0]||y.append(u),d=function(e,t){e=m(e),u.before(e),(t=0==t||null)?u.html(l):u.find("a").html(c),a=t,i=null,p&&p()},(f=function(){i=!0,u.find("a").html(''),"function"==typeof e.done&&e.done(++h,d)})(),u.find("a").on("click",function(){m(this),a||i||f()}),e.isLazyimg&&(p=this.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem})),n&&t.on("scroll",function(){var t=m(this),n=t.scrollTop();o&&clearTimeout(o),!a&&y.width()&&(o=setTimeout(function(){var e=(s?t:m(window)).height();(s?t.prop("scrollHeight"):document.documentElement.scrollHeight)-n-e<=r&&(i||f())},100))}),this},t.prototype.lazyimg=function(e){var t,s=this,c=0,u=m((e=e||{}).scrollElem||document),d=e.elem||"img",f=e.scrollElem&&e.scrollElem!==document,p=function(t,e){var n,i=u.scrollTop(),e=i+e,a=f?t.offset().top-u.offset().top+i:t.offset().top;i<=a&&a<=e&&t.attr("lay-src")&&(n=t.attr("lay-src"),layui.img(n,function(){var e=s.lazyimg.elem.eq(c);t.attr("src",n).removeAttr("lay-src"),e[0]&&o(e),c++},function(){s.lazyimg.elem.eq(c),t.removeAttr("lay-src")}))},o=function(e,t){var n=(f?t||u:m(window)).height(),i=u.scrollTop(),a=i+n;if(s.lazyimg.elem=m(d),e)p(e,n);else for(var o=0;oi").removeClass(a),n("unlink").addClass(h),d(i).parents().each(function(){var e=this.tagName.toLowerCase(),t=this.style.textAlign;"b"!==e&&"strong"!==e||n("b").addClass(a),"i"!==e&&"em"!==e||n("i").addClass(a),"u"===e&&n("u").addClass(a),"strike"===e&&n("d").addClass(a),"p"===e&&n("center"===t?"center":"right"===t?"right":"left").addClass(a),"a"===e&&(n("link").addClass(a),n("unlink").removeClass(h))})}var d=layui.$,f=layui.layer,a=layui.form,p=(layui.hint(),layui.device()),h="layui-disabled",t=function(){this.index=0,this.config={tool:["strong","italic","underline","del","|","left","center","right","|","link","unlink"],hideTool:[],height:280}},y=(t.prototype.set=function(e){return d.extend(!0,this.config,e),this},t.prototype.on=function(e,t){return layui.onevent("layedit",e,t)},t.prototype.build=function(e,t){t=t||{};var n,i,a=this.config,o="layui-layedit",r=d("string"==typeof e?"#"+e:e),l="LAY_layedit_"+ ++this.index,s=r.next("."+o),a=d.extend({},a,t),t=(n=[],i={},layui.each(a.hideTool,function(e,t){i[t]=!0}),layui.each(a.tool,function(e,t){w[t]&&!i[t]&&n.push(w[t])}),n.join("")),o=d(['
        ','
        '+t+"
        ",'
        ','',"
        ","
        "].join(""));return p.ie&&p.ie<8?r.removeClass("layui-hide").addClass("layui-show"):(s[0]&&s.remove(),y.call(this,o,r[0],a),r.addClass("layui-hide").after(o),this.index)},t.prototype.getContent=function(e){if((e=o(e))[0])return n(e[0].document.body.innerHTML)},t.prototype.getText=function(e){if((e=o(e))[0])return d(e[0].document.body).text()},t.prototype.setContent=function(e,t,n){var i=o(e);i[0]&&(n?d(i[0].document.body).append(t):d(i[0].document.body).html(t),layedit.sync(e))},t.prototype.sync=function(e){(e=o(e))[0]&&d("#"+e[1].attr("textarea")).val(n(e[0].document.body.innerHTML))},t.prototype.getSelection=function(e){if((e=o(e))[0])return e=g(e[0].document),document.selection?e.text:e.toString()},function(a,o,r){var l=this,s=a.find("iframe");s.css({height:r.height}).on("load",function(){var e=s.contents(),t=s.prop("contentWindow"),n=e.find("head"),i=d([""].join("")),e=e.find("body");n.append(i),e.attr("contenteditable","true").css({"min-height":r.height}).html(o.value||""),m.apply(l,[t,s,o,r]),b.call(l,t,a,r)})}),o=function(e){return[(e=d("#LAY_layedit_"+e)).prop("contentWindow"),e]},n=function(e){return 8==p.ie?e.replace(/<.+>/g,function(e){return e.toLowerCase()}):e},m=function(t,e,n,i){var a=t.document,o=d(a.body);o.on("keydown",function(e){if(13===e.keyCode){var t=g(a);if("pre"===v(t).parentNode.tagName.toLowerCase())return e.shiftKey?void 0:(f.msg("请暂时用shift+enter"),!1);a.execCommand("formatBlock",!1,"

        ")}}),d(n).parents("form").on("submit",function(){var e=o.html();8==p.ie&&(e=e.replace(/<.+>/g,function(e){return e.toLowerCase()})),n.value=e}),o.on("paste",function(e){a.execCommand("formatBlock",!1,"

        "),setTimeout(function(){r.call(t,o),n.value=o.html()},100)})},r=function(e){this.document,e.find("*[style]").each(function(){var e=this.style.textAlign;this.removeAttribute("style"),d(this).css({"text-align":e||""})}),e.find("table").addClass("layui-table"),e.find("script,link").remove()},g=function(e){return e.selection?e.selection.createRange():e.getSelection().getRangeAt(0)},v=function(e){return e.endContainer||e.parentElement().childNodes[0]},b=function(a,e,t){function n(){var e,t=d(this),n=t.attr("layedit-event"),i=t.attr("lay-command");t.hasClass(h)||(r.focus(),(e=g(o)).commonAncestorContainer,i?(o.execCommand(i),/justifyLeft|justifyCenter|justifyRight/.test(i)&&o.execCommand("formatBlock",!1,"

        "),setTimeout(function(){r.focus()},10)):l[n]&&l[n].call(this,e),u.call(a,s,t))}var o=a.document,r=d(o.body),l={link:function(n){var e=v(n),i=d(e).parent();x.call(r,{href:i.attr("href"),target:i.attr("target")},function(e){var t=i[0];"A"===t.tagName?t.href=e.url:c.call(a,"a",{target:e.target,href:e.url,text:e.url},n)})},unlink:function(e){o.execCommand("unlink")},code:function(t){k.call(r,function(e){c.call(a,"pre",{text:e.code,"lay-lang":e.lang},t)})},help:function(){f.open({type:2,title:"帮助",area:["600px","380px"],shadeClose:!0,shade:.1,skin:"layui-layer-msg",content:["","no"]})}},s=e.find(".layui-layedit-tool"),i=/image/;s.find(">i").on("mousedown",function(){var e=d(this).attr("layedit-event");i.test(e)||n.call(this)}).on("click",function(){var e=d(this).attr("layedit-event");i.test(e)&&n.call(this)}),r.on("click",function(){u.call(a,s)})},x=function(e,n){var i=this,e=f.open({type:1,id:"LAY_layedit_link",area:"350px",shade:.05,shadeClose:!0,moveType:1,title:"超链接",skin:"layui-layer-msg",content:['

          ','
        • ','','
          ','',"
          ","
        • ",'
        • ','','
          ','",'","
          ","
        • ",'
        • ','','',"
        • ","
        "].join(""),success:function(e,t){a.render("radio"),e.find(".layui-btn-primary").on("click",function(){f.close(t),i.focus()}),a.on("submit(layedit-link-yes)",function(e){f.close(x.index),n&&n(e.field)})}});x.index=e},k=function(n){var i=this,e=f.open({type:1,id:"LAY_layedit_code",area:"550px",shade:.05,shadeClose:!0,moveType:1,title:"插入代码",skin:"layui-layer-msg",content:['
          ','
        • ','','
          ','","
          ","
        • ",'
        • ','','
          ','',"
          ","
        • ",'
        • ','','',"
        • ","
        "].join(""),success:function(e,t){a.render("select"),e.find(".layui-btn-primary").on("click",function(){f.close(t),i.focus()}),a.on("submit(layedit-code-yes)",function(e){f.close(k.index),n&&n(e.field)})}});k.index=e},w={html:'',strong:'',italic:'',underline:'',del:'',"|":'',left:'',center:'',right:'',link:'',unlink:'',face:'',image:'',code:'',help:''};e("layedit",new t)}),layui.define(["lay","util"],function(e){"use strict";var s=layui.$,c=layui.util,u="layui-code-title",t={elem:".layui-code",title:"</>",about:"",ln:!0};e("code",function(e){var l=e=s.extend({},t,e);e.elem=s(e.elem),e.elem[0]&&layui.each(e.elem.get().reverse(),function(e,t){var i,a=s(t),n=(n=a.html(),s.trim(n).replace(/^\n|\n$/,"")),o=(t=s.extend({},l,lay.options(t),(i={},layui.each(["title","height","encode","skin","about"],function(e,t){var n=a.attr("lay-"+t);"string"==typeof n&&(i[t]=n)}),i))).ln?"ol":"ul",o=s("<"+o+' class="layui-code-'+o+'">'),r=s('
        ');a.addClass("layui-code-view layui-box"),t.skin&&("notepad"===t.skin&&(t.skin="dark"),a.addClass("layui-code-"+t.skin)),n=(n=t.encode?c.escape(n):n).replace(/[\r\t\n]+/g,"
      • "),a.html(o.html("
      • "+n+"
      • ")),a.children("."+u)[0]||(r.html(t.title+(t.about?'
        '+t.about+"
        ":"")),a.prepend(r)),0<(n=Math.floor(o.find("li").length/100))&&o.css("margin-left",n+"px"),t.height&&o.css("max-height",t.height)})})}).addcss("modules/code.css?v=3","skincodecss");