!function(p){"use strict";function i(){this.v="2.6.8"}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||{},v=(e=y.currentScript?y.currentScript.src:function(){for(var e,t=y.scripts,n=t.length-1,i=n;01e3*m.timeout/4?h(c+" is not a valid module","error"):void(m.status[c]?o():setTimeout(e,4))}())}function o(){t.push(layui[c]),11e3*m.timeout/4?h(c+" is not a valid module","error"):void("string"==typeof m.modules[c]&&m.status[c]?o():setTimeout(e,4))}():((d=y.createElement("script")).async=!0,d.charset="utf-8",d.src=f+((l=!0===m.version?m.v||(new Date).getTime():m.version||"")?"?v="+l:""),s.appendChild(d),!d.attachEvent||d.attachEvent.toString&&d.attachEvent.toString().indexOf("[native code")<0||g?d.addEventListener("load",function(e){a(e,f)},!1):d.attachEvent("onreadystatechange",function(e){a(e,f)}),m.modules[c]=f),r},i.prototype.getStyle=function(e,t){e=e.currentStyle||p.getComputedStyle(e,null);return e[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;return i.src=e,i.complete?t(i):(i.onload=function(){i.onload=null,"function"==typeof t&&t(i)},void(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 x)t[e]=x[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=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,n=this;return{pathname:(e?((e.match(/\.[^.]+?\/.+/)||[])[0]||"").replace(/^[^\/]+/,"").replace(/\?.+/,""):location.pathname).replace(/^\//,"").split("/"),search:(a={},t=(e?((e.match(/\?.+/)||[])[0]||"").replace(/\#.+/,""):location.search).replace(/^\?+/,"").split("&"),n.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"),i="right"===n.clickType?{left:(c=n.e||u.event||{}).clientX,top:c.clientY,right:c.clientX,bottom:c.clientY}:e.getBoundingClientRect(),a=t.offsetWidth,l=t.offsetHeight,s=function(e){return f.body[e=e?"scrollLeft":"scrollTop"]|f.documentElement[e]},o=i.left,r=i.bottom,"center"===n.align?o-=(a-e.offsetWidth)/2:"right"===n.align&&(o=o-a+e.offsetWidth),(o=o+a+5>(c=function(e){return f.documentElement[e?"clientWidth":"clientHeight"]})("width")?c("width")-a-5:o)<5&&(o=5),r+l+5>c()&&(i.top>l+5?r=i.top-l-10:"right"!==n.clickType||(r=c()-l-10)<0&&(r=0)),(l=n.position)&&(t.style.position=l),t.style.left=o+("fixed"===l?0:s(1))+"px",t.style.top=r+("fixed"===l?0:s())+"px",d.hasScrollbar()||(s=t.getBoundingClientRect(),!n.SYSTEM_RELOAD&&s.bottom+5>c()&&(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");t.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/g,">").replace(/'/g,"'").replace(/"/g,""")},s=function(e,t){var n="Laytpl Error: ";return"object"==typeof console&&console.error(n+e+"\n"+(t||"")),n+e},c=function(e){return new RegExp(e,"g")};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var n=e,i=c("^"+o.open+"#",""),a=c(o.close+"$","");e='"use strict";var view = "'+(e=e.replace(/\s+|\r|\t|\n/g," ").replace(c(o.open+"#"),o.open+"# ").replace(c(o.close+"}"),"} "+o.close).replace(/\\/g,"\\\\").replace(c(o.open+"!(.+?)!"+o.close),function(e){return e.replace(c("^"+o.open+"!"),"").replace(c("!"+o.close),"").replace(c(o.open+"|"+o.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(r(),function(e){return'";'+(e=e.replace(i,"").replace(a,"")).replace(/\\(.)/g,"$1")+';view+="'}).replace(r(1),function(e){var t='"+(';return e.replace(/\s/g,"")===o.open+o.close?"":(e=e.replace(c(o.open+"|"+o.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),t='"+_escape_('),t+e.replace(/\\(.)/g,"$1")+')+"')}))+'";return view;';try{return this.cache=e=new Function("d, _escape_",e),e(t,l)}catch(e){return delete this.cache,s(e,n)}},t.pt.render=function(e,t){return e?(e=this.cache?this.cache(e,l):this.parse(this.tpl,e),t?void t(e):e):s("no data")};function n(e){return"string"!=typeof e?s("Template not found"):new t(e)}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";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 a=this.config,o=a.groups="groups"in a?0|a.groups:5;a.layout="object"==typeof a.layout?a.layout:["prev","page","next"],a.count=0|a.count,a.curr=0|a.curr||1,a.limits="object"==typeof a.limits?a.limits:[10,20,30,40,50],a.limit=0|a.limit||10,a.pages=Math.ceil(a.count/a.limit)||1,a.curr>a.pages&&(a.curr=a.pages),o<0?o=1:o>a.pages&&(o=a.pages),a.prev="prev"in a?a.prev:"上一页",a.next="next"in a?a.next:"下一页";var n,i,r=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=0|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();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);a=o[r]("layui-laypage-"+n.index);t.jump(a),n.hash&&!e&&(location.hash="!"+n.hash+"="+n.curr),t.skip(a)};var d={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 p(e){var t=this;t.index=++h.index,t.config=lay.extend({},t.config,h.config,e),(e=t.config).id="id"in e?e.id:t.index,h.ready(function(){t.init()})}var i=a.layui&&layui.define,o={getPath:a.lay&&lay.getPath?lay.getPath:"",link:function(e,t,n){h.path&&a.lay&&lay.layui&&lay.layui.link(h.path+e,t,n)}},e=a.LAYUI_GLOBAL||{},h={v:"5.3.1",config:{},index:a.laydate&&a.laydate.v?1e5:0,path:e.laydate_dir||o.getPath,set:function(e){return this.config=lay.extend({},this.config,e),this},ready:function(e){var t="laydate",n=(i?"modules/laydate/":"theme/")+"default/laydate.css?v="+h.v;return i?layui.addcss(n,e,t):o.link(n,e,t),this}},l=function(){var t=this,e=t.config.id;return{hint:function(e){t.hint.call(t,e)},config:(l.that[e]=t).config}},n="laydate",k="layui-this",w="laydate-disabled",y=[100,2e5],m="layui-laydate-static",C="layui-laydate-list",s="layui-laydate-hint",T=".laydate-btns-confirm",E="laydate-time-text",S="laydate-btns-time",v="layui-laydate-preview",c="yyyy|y|MM|M|dd|d|HH|H|mm|m|ss|s";l.formatArr=function(e){return(e||"").match(new RegExp(c+"|.","g"))||[]},p.isLeapYear=function(e){return e%4==0&&e%100!=0||e%400==0},p.prototype.config={type:"date",range:!1,format:"yyyy-MM-dd",value:null,isInitValue:!0,min:"1900-1-1",max:"2099-12-31",trigger:"click",show:!1,showBottom:!0,isPreview:!0,btns:["clear","now","confirm"],lang:"cn",theme:"default",position:null,calendar:!1,mark:{},zIndex:null,done:null,change:null},p.prototype.lang=function(){var e={cn:{weeks:["日","一","二","三","四","五","六"],time:["时","分","秒"],timeTips:"选择时间",startTime:"开始时间",endTime:"结束时间",dateTips:"返回日期",month:["一","二","三","四","五","六","七","八","九","十","十一","十二"],tools:{confirm:"确定",clear:"清空",now:"现在"},timeout:"结束时间不能早于开始时间
请重新选择",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 n=this,r=n.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]&&(n.rangeStr=r.range?"string"==typeof r.range?r.range:"-":"","array"===layui._typeof(r.range)&&(n.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),n.format=l.formatArr(r.format),n.EXP_IF="",n.EXP_SPLIT="",lay.each(n.format,function(e,t){t=new RegExp(c).test(t)?"\\d{"+(new RegExp(c).test(n.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;n.EXP_IF=n.EXP_IF+t,n.EXP_SPLIT=n.EXP_SPLIT+"("+t+")"}),n.EXP_IF_ONE=new RegExp("^"+n.EXP_IF+"$"),n.EXP_IF=new RegExp("^"+(r.range?n.EXP_IF+"\\s\\"+n.rangeStr+"\\s"+n.EXP_IF:n.EXP_IF)+"$"),n.EXP_SPLIT=new RegExp("^"+n.EXP_SPLIT+"$",""),n.isInput(r.elem[0])||"focus"===r.trigger&&(r.trigger="click"),r.elem.attr("lay-key")||(r.elem.attr("lay-key",n.index),r.eventElem.attr("lay-key",n.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-9-18":"国耻","0-10-1":"国庆","0-12-25":"圣诞"}:{},r.mark),lay.each(["min","max"],function(e,t){var n,i,a=[],o=[];"number"==typeof r[t]?(n=r[t],i=(new Date).getTime(),a=[(i=new Date(n?n<864e5?i+864e5*n:n:i)).getFullYear(),i.getMonth()+1,i.getDate()],n<864e5||(o=[i.getHours(),i.getMinutes(),i.getSeconds()])):(a=(r[t].match(/\d+-\d+-\d+/)||[""])[0].split("-"),o=(r[t].match(/\d+:\d+:\d+/)||[""])[0].split(":")),r[t]={year:0|a[0]||(new Date).getFullYear(),month:a[1]?(0|a[1])-1:(new Date).getMonth(),date:0|a[2]||(new Date).getDate(),hours:0|o[0],minutes:0|o[1],seconds:0|o[2]}}),n.elemID="layui-laydate"+r.elem.attr("lay-key"),(r.show||e)&&n.render(),e||n.events(),r.value&&r.isInitValue&&("date"===layui._typeof(r.value)?n.setValue(n.parse(0,n.systemDate(r.value))):n.setValue(r.value)))},p.prototype.render=function(){var e,i,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)),h.thisId=l.id,t.remove(p.thisElemDate),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,lay("#"+(e||t.elemID)));return n[0]&&(n.hasClass(m)||t.checkDate(function(){n.remove()})),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),11i&&(e.date=i,l=!0)}function n(i,a,o){var r=["startTime","endTime"];a=(a.match(s.EXP_SPLIT)||[]).slice(1),o=o||0,c.range&&(s[r[o]]=s[r[o]]||{}),lay.each(s.format,function(e,t){var n=parseFloat(a[e]);a[e].lengthp(c.max)||p(o)p(c.max))&&(s.endDate=lay.extend({},c.max)),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("-");e[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.limit=function(e,t,n,a){var o=this,i=o.config,r={},n=i[41r.max,e&&e[i?"addClass":"removeClass"](w),i},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(),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=l.firstDate.year&&(n.month=s.max.month,n.date=s.max.date),l.limit(lay(t),n,i),a++}),lay(p[m?0:1]).attr("lay-ym",a-8+"-"+g[1]).html(e+v+" - "+(a-1)+v)):"month"===t?(lay.each(new Array(12),function(e){var t=lay.elem("li",{"lay-ym":e}),n={year:g[0],month:e};e+1==g[1]&&lay(t).addClass(k),t.innerHTML=u.month[e]+(m?"月":""),d.appendChild(t),g[0]=l.firstDate.year&&(n.date=s.max.date),l.limit(lay(t),n,i)}),lay(p[m?0:1]).attr("lay-ym",g[0]+"-"+g[1]).html(g[0]+v)):"time"===t&&(o=function(){lay(d).find("ol").each(function(n,e){lay(e).find("li").each(function(e,t){l.limit(lay(t),[{hours:e},{hours:l[b].hours,minutes:e},{hours:l[b].hours,minutes:l[b].minutes,seconds:e}][n],i,[["hours"],["hours","minutes"],["hours","minutes","seconds"]][n])})}),s.range||l.limit(lay(l.footer).find(T),l[b],0,["hours","minutes","seconds"])},s.range?l[b]||(l[b]="startTime"===b?c:l.endDate):l[b]=c,lay.each([24,60,60],function(t,e){var n=lay.elem("li"),i=["

"+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("."+S).removeClass(w))})):(y=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[b][x[e]]-2),n.scrollTop<=0&&t.each(function(e,t){if(!lay(this).hasClass(w))return n.scrollTop=30*(e-2),!0})})},h=lay(f[2]).find("."+E),r(),y.innerHTML=s.range?[u.startTime,u.endTime][i]:u.timeTips,lay(l.elemMain[i]).addClass("laydate-time-show"),h[0]&&h.remove(),f[2].appendChild(y),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[b][x[t]]=e:c[x[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.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):t.rangeElem?(t.rangeElem[0].val(e?t.parse("start"):""),t.rangeElem[1].val(e?t.parse("end"):"")):(0===lay(i).find("*").length&&lay(i).html(e),lay(i).attr("lay-date",e))),t},p.prototype.preview=function(){var e,t=this,n=t.config;n.isPreview&&(e=lay(t.elem).find("."+v),t=!n.range||t.endDate?t.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,t){var n=this,i=n.config,a=n.thisDateTime(t),o={year:0|(o=(lay(n.elem).find("td"),e.attr("lay-ymd").split("-")))[0],month:(0|o[1])-1,date:0|o[2]};e.hasClass(w)||(lay.extend(a,o),i.range?(lay.each(["startTime","endTime"],function(e,t){n[t]=n[t]||{hours:0,minutes:0,seconds:0}}),n.calendar(null,t).done(null,"change")):"static"===i.position?n.calendar().done().done(null,"change"):"date"===i.type?n.setValue(n.parse()).remove().done():"datetime"===i.type&&n.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.done(),n.setValue(n.parse()).remove()}};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=lay(this),n=t.attr("lay-ym"),t=t.attr("lay-type");n&&(n=n.split("-"),a.listYM[i]=[0|n[0],0|n[1]],a.list(t,i),lay(a.footer).find("."+S).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())},p.prototype.events=function(){function e(e,t){e.on(i.trigger,function(){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))&&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){e=new p(e);return 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()},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)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(k,e){function l(e){var t=!!e&&"length"in e&&e.length,n=oe.type(e);return"function"!==n&&!oe.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0"!==d[1]||Pe.test(r)?0:s:s.firstChild)&&r.childNodes.length;o--;)oe.nodeName(u=r.childNodes[o],"tbody")&&!u.childNodes.length&&r.removeChild(u);for(oe.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),ae.appendChecked||oe.grep(v(h,"input"),x),y=0;r=h[y++];)if(i&&-1")).appendTo(t.documentElement))[0].contentWindow||Ze[0].contentDocument).document).write(),t.close(),n=L(e,t),Ze.detach()),st[e]=n),n}function D(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function N(e){if(e in Ct)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=wt.length;n--;)if((e=wt[n]+t)in Ct)return e}function j(e,t){for(var n,i,a,o=[],r=0,l=e.length;rw.cacheLength&&delete n[i.shift()],n[e+" "]=t}var i=[];return n}function s(e){return e[q]=!0,e}function t(e){var t=N.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function i(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function c(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 a(r){return s(function(o){return o=+o,s(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 h(e){return e&&void 0!==e.getElementsByTagName&&e}function o(){}function y(e){for(var t=0,n=e.length,i="";t>10|55296,1023&i|56320)}function l(){D()}var u,m,w,v,x,C,T,E,S,L,A,D,N,j,H,M,I,F,_,q="sizzle"+ +new Date,P=n.document,B=0,O=0,R=e(),z=e(),W=e(),$=function(e,t){return e===t&&(A=!0),0},Y={}.hasOwnProperty,X=[],V=X.pop,U=X.push,K=X.push,G=X.slice,J=function(e,t){for(var n=0,i=e.length;n+~]|"+Z+")"+Z+"*"),le=new RegExp("="+Z+"*([^\\]'\"]*?)"+Z+"*\\]","g"),se=new RegExp(ne),ce=new RegExp("^"+ee+"$"),ue={ID:new RegExp("^#("+ee+")"),CLASS:new RegExp("^\\.("+ee+")"),TAG:new RegExp("^("+ee+"|[*])"),ATTR:new RegExp("^"+te),PSEUDO:new RegExp("^"+ne),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+Z+"*(even|odd|(([+-]|)(\\d*)n|)"+Z+"*(?:([+-]|)"+Z+"*(\\d+)|))"+Z+"*\\)|)","i"),bool:new RegExp("^(?:"+Q+")$","i"),needsContext:new RegExp("^"+Z+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+Z+"*((?:-\\d)?\\d*)"+Z+"*\\)|)(?=[^-]|$)","i")},de=/^(?:input|select|textarea|button)$/i,fe=/^h\d$/i,pe=/^[^{]+\{\s*\[native \w/,he=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,me=/'|\\/g,ve=new RegExp("\\\\([\\da-f]{1,6}"+Z+"?|("+Z+")|.)","ig");try{K.apply(X=G.call(P.childNodes),P.childNodes),X[P.childNodes.length].nodeType}catch(e){K={apply:X.length?function(e,t){U.apply(e,G.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}for(u in m=b.support={},x=b.isXML=function(e){e=e&&(e.ownerDocument||e).documentElement;return!!e&&"HTML"!==e.nodeName},D=b.setDocument=function(e){var e=e?e.ownerDocument||e:P;return e!==N&&9===e.nodeType&&e.documentElement&&(j=(N=e).documentElement,H=!x(N),(e=N.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",l,!1):e.attachEvent&&e.attachEvent("onunload",l)),m.attributes=t(function(e){return e.className="i",!e.getAttribute("className")}),m.getElementsByTagName=t(function(e){return e.appendChild(N.createComment("")),!e.getElementsByTagName("*").length}),m.getElementsByClassName=pe.test(N.getElementsByClassName),m.getById=t(function(e){return j.appendChild(e).id=q,!N.getElementsByName||!N.getElementsByName(q).length}),m.getById?(w.find.ID=function(e,t){if(void 0!==t.getElementById&&H){e=t.getElementById(e);return e?[e]:[]}},w.filter.ID=function(e){var t=e.replace(ve,d);return function(e){return e.getAttribute("id")===t}}):(delete w.find.ID,w.filter.ID=function(e){var t=e.replace(ve,d);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}}),w.find.TAG=m.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):m.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},w.find.CLASS=m.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&H)return t.getElementsByClassName(e)},I=[],M=[],(m.qsa=pe.test(N.querySelectorAll))&&(t(function(e){j.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&M.push("[*^$]="+Z+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||M.push("\\["+Z+"*(?:value|"+Q+")"),e.querySelectorAll("[id~="+q+"-]").length||M.push("~="),e.querySelectorAll(":checked").length||M.push(":checked"),e.querySelectorAll("a#"+q+"+*").length||M.push(".#.+[+~]")}),t(function(e){var t=N.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&M.push("name"+Z+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||M.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),M.push(",.*:")})),(m.matchesSelector=pe.test(F=j.matches||j.webkitMatchesSelector||j.mozMatchesSelector||j.oMatchesSelector||j.msMatchesSelector))&&t(function(e){m.disconnectedMatch=F.call(e,"div"),F.call(e,"[s!='']:x"),I.push("!=",ne)}),M=M.length&&new RegExp(M.join("|")),I=I.length&&new RegExp(I.join("|")),e=pe.test(j.compareDocumentPosition),_=e||pe.test(j.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!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){if(e===t)return A=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!m.sortDetached&&t.compareDocumentPosition(e)===n?e===N||e.ownerDocument===P&&_(P,e)?-1:t===N||t.ownerDocument===P&&_(P,t)?1:L?J(L,e)-J(L,t):0:4&n?-1:1)}:function(e,t){if(e===t)return A=!0,0;var n,i=0,a=e.parentNode,o=t.parentNode,r=[e],l=[t];if(!a||!o)return e===N?-1:t===N?1:a?-1:o?1:L?J(L,e)-J(L,t):0;if(a===o)return c(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?c(r[i],l[i]):r[i]===P?-1:l[i]===P?1:0}),N},b.matches=function(e,t){return b(e,null,null,t)},b.matchesSelector=function(e,t){if((e.ownerDocument||e)!==N&&D(e),t=t.replace(le,"='$1']"),m.matchesSelector&&H&&!W[t+" "]&&(!I||!I.test(t))&&(!M||!M.test(t)))try{var n=F.call(e,t);if(n||m.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(ve,d),e[3]=(e[3]||e[4]||e[5]||"").replace(ve,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]||b.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]&&b.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return ue.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&se.test(n)&&(t=C(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(ve,d).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=R[e+" "];return t||(t=new RegExp("(^|"+Z+")"+e+"("+Z+"|$)"))&&R(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){e=b.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1(?:<\/\1>|)$/,he=/^.[^:#\[\.,]*$/;oe.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?oe.find.matchesSelector(i,e)?[i]:[]:oe.find.matches(e,oe.grep(t,function(e){return 1===e.nodeType}))},oe.fn.extend({find:function(e){var t,n=[],i=this,a=i.length;if("string"!=typeof e)return this.pushStack(oe(e).filter(function(){for(t=0;t)[^>]*|#([\w-]*))$/;(oe.fn.init=function(e,t,n){if(!e)return this;if(n=n||me,"string"!=typeof e)return e.nodeType?(this.context=this[0]=e,this.length=1,this):oe.isFunction(e)?void 0!==n.ready?n.ready(e):e(oe):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),oe.makeArray(e,this));if(!(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:ye.exec(e))||!i[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(i[1]){if(t=t instanceof oe?t[0]:t,oe.merge(this,oe.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:G,!0)),pe.test(i[1])&&oe.isPlainObject(t))for(var i in t)oe.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}if((n=G.getElementById(i[2]))&&n.parentNode){if(n.id!==i[2])return me.find(e);this.length=1,this[0]=n}return this.context=G,this.selector=e,this}).prototype=oe.fn;var me=oe(G),ve=/^(?:parents|prev(?:Until|All))/,ge={children:!0,contents:!0,next:!0,prev:!0};oe.fn.extend({has:function(e){var t,n=oe(e,this),i=n.length;return this.filter(function(){for(t=0;t
a",ae.leadingWhitespace=3===At.firstChild.nodeType,ae.tbody=!At.getElementsByTagName("tbody").length,ae.htmlSerialize=!!At.getElementsByTagName("link").length,ae.html5Clone="<:nav>"!==G.createElement("nav").cloneNode(!0).outerHTML,Lt.type="checkbox",Lt.checked=!0,St.appendChild(Lt),ae.appendChecked=Lt.checked,At.innerHTML="",ae.noCloneChecked=!!At.cloneNode(!0).lastChild.defaultValue,St.appendChild(At),(Lt=G.createElement("input")).setAttribute("type","radio"),Lt.setAttribute("checked","checked"),Lt.setAttribute("name","t"),At.appendChild(Lt),ae.checkClone=At.cloneNode(!0).cloneNode(!0).lastChild.checked,ae.noCloneEvent=!!At.addEventListener,At[oe.expando]=1,ae.attributes=!At.getAttribute(oe.expando);var _e={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:ae.htmlSerialize?[0,"",""]:[1,"X
","
"]};_e.optgroup=_e.option,_e.tbody=_e.tfoot=_e.colgroup=_e.caption=_e.thead,_e.th=_e.td;var qe=/<|&#?\w+;/,Pe=/]","i"),Xe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ve=/\s*$/g,Je=m(G).appendChild(G.createElement("div"));oe.extend({htmlPrefilter:function(e){return e.replace(Xe,"<$1>")},clone:function(e,t,n){var i,a,o,r,l,s=oe.contains(e.ownerDocument,e);if(ae.html5Clone||oe.isXMLDoc(e)||!Ye.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Je.innerHTML=e.outerHTML,Je.removeChild(o=Je.firstChild)),!(ae.noCloneEvent&&ae.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||oe.isXMLDoc(e)))for(i=v(o),l=v(e),r=0;null!=(a=l[r]);++r)i[r]&&function(e,t){var n,i,a;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!ae.noCloneEvent&&t[oe.expando]){for(i in(a=oe._data(t)).events)oe.removeEvent(t,i,a.handle);t.removeAttribute(oe.expando)}"script"===n&&t.text!==e.text?(w(t).text=e.text,C(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),ae.html5Clone&&e.innerHTML&&!oe.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&je.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}(a,i[r]);if(t)if(n)for(l=l||v(e),i=i||v(o),r=0;null!=(a=l[r]);r++)T(a,i[r]);else T(e,o);return 0<(i=v(o,"script")).length&&g(i,!s&&v(e,"script")),i=l=a=null,o},cleanData:function(e,t){for(var n,i,a,o,r=0,l=oe.expando,s=oe.cache,c=ae.attributes,u=oe.event.special;null!=(n=e[r]);r++)if((t||we(n))&&(o=(a=n[l])&&s[a])){if(o.events)for(i in o.events)u[i]?oe.event.remove(n,i):oe.removeEvent(n,i,o.handle);s[a]&&(delete s[a],c||void 0===n.removeAttribute?n[l]=void 0:n.removeAttribute(l),K.push(a))}}}),oe.fn.extend({domManip:E,detach:function(e){return S(this,e,!0)},remove:function(e){return S(this,e)},text:function(e){return Ne(this,function(e){return void 0===e?oe.text(this):this.empty().append((this[0]&&this[0].ownerDocument||G).createTextNode(e))},null,e,arguments.length)},append:function(){return E(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||b(this,e).appendChild(e)})},prepend:function(){return E(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=b(this,e)).insertBefore(e,t.firstChild)})},before:function(){return E(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return E(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&&oe.cleanData(v(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&oe.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 oe.clone(this,e,t)})},html:function(e){return Ne(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&&!Ve.test(e)&&(ae.htmlSerialize||!Ye.test(e))&&(ae.leadingWhitespace||!Ie.test(e))&&!_e[(He.exec(e)||["",""])[1].toLowerCase()]){e=oe.htmlPrefilter(e);try{for(;nt",lt.childNodes[0].style.borderCollapse="separate",(e=lt.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=G.createElement("div"),(lt=G.createElement("div")).style&&(lt.style.cssText="float:left;opacity:.5",ae.opacity="0.5"===lt.style.opacity,ae.cssFloat=!!lt.style.cssFloat,lt.style.backgroundClip="content-box",lt.cloneNode(!0).style.backgroundClip="",ae.clearCloneStyle="content-box"===lt.style.backgroundClip,(rt=G.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",lt.innerHTML="",rt.appendChild(lt),ae.boxSizing=""===lt.style.boxSizing||""===lt.style.MozBoxSizing||""===lt.style.WebkitBoxSizing,oe.extend(ae,{reliableHiddenOffsets:function(){return null==et&&ft(),it},boxSizingReliable:function(){return null==et&&ft(),nt},pixelMarginRight:function(){return null==et&&ft(),tt},pixelPosition:function(){return null==et&&ft(),et},reliableMarginRight:function(){return null==et&&ft(),at},reliableMarginLeft:function(){return null==et&&ft(),ot}}));var pt,ht,yt=/^(top|right|bottom|left)$/;k.getComputedStyle?(pt=function(e){var t=e.ownerDocument.defaultView;return(t=!t||!t.opener?k:t).getComputedStyle(e)},ht=function(e,t,n){var i,a,o=e.style;return""!==(a=(n=n||pt(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==a||oe.contains(e.ownerDocument,e)||(a=oe.style(e,t)),n&&!ae.pixelMarginRight()&&ut.test(a)&&ct.test(t)&&(i=o.width,e=o.minWidth,t=o.maxWidth,o.minWidth=o.maxWidth=o.width=a,a=n.width,o.width=i,o.minWidth=e,o.maxWidth=t),void 0===a?a:a+""}):dt.currentStyle&&(pt=function(e){return e.currentStyle},ht=function(e,t,n){var i,a,o,r=e.style;return null==(o=(n=n||pt(e))?n[t]:void 0)&&r&&r[t]&&(o=r[t]),ut.test(o)&&!yt.test(t)&&(i=r.left,(n=(a=e.runtimeStyle)&&a.left)&&(a.left=e.currentStyle.left),r.left="fontSize"===t?"1em":o,o=r.pixelLeft+"px",r.left=i,n&&(a.left=n)),void 0===o?o:o+""||"auto"});var mt=/alpha\([^)]*\)/i,vt=/opacity\s*=\s*([^)]*)/i,gt=/^(none|table(?!-c[ea]).+)/,xt=new RegExp("^("+Le+")(.*)$","i"),bt={position:"absolute",visibility:"hidden",display:"block"},kt={letterSpacing:"0",fontWeight:"400"},wt=["Webkit","O","Moz","ms"],Ct=G.createElement("div").style;oe.extend({cssHooks:{opacity:{get:function(e,t){if(t){e=ht(e,"opacity");return""===e?"1":e}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:ae.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,o,r,l=oe.camelCase(t),s=e.style;if(t=oe.cssProps[l]||(oe.cssProps[l]=N(l)||l),r=oe.cssHooks[t]||oe.cssHooks[l],void 0===n)return r&&"get"in r&&void 0!==(a=r.get(e,!1,i))?a:s[t];if("string"===(o=typeof n)&&(a=Ae.exec(n))&&a[1]&&(n=u(e,t,a),o="number"),null!=n&&n==n&&("number"===o&&(n+=a&&a[3]||(oe.cssNumber[l]?"":"px")),ae.clearCloneStyle||""!==n||0!==t.indexOf("background")||(s[t]="inherit"),!(r&&"set"in r&&void 0===(n=r.set(e,n,i)))))try{s[t]=n}catch(e){}}},css:function(e,t,n,i){var a,o=oe.camelCase(t);return t=oe.cssProps[o]||(oe.cssProps[o]=N(o)||o),"normal"===(a=void 0===(a=(o=oe.cssHooks[t]||oe.cssHooks[o])&&"get"in o?o.get(e,!0,n):a)?ht(e,t,i):a)&&t in kt&&(a=kt[t]),""===n||n?(t=parseFloat(a),!0===n||isFinite(t)?t||0:a):a}}),oe.each(["height","width"],function(e,a){oe.cssHooks[a]={get:function(e,t,n){if(t)return gt.test(oe.css(e,"display"))&&0===e.offsetWidth?Qe(e,bt,function(){return I(e,a,n)}):I(e,a,n)},set:function(e,t,n){var i=n&&pt(e);return H(0,t,n?M(e,a,n,ae.boxSizing&&"border-box"===oe.css(e,"boxSizing",!1,i),i):0)}}}),ae.opacity||(oe.cssHooks.opacity={get:function(e,t){return vt.test((t&&e.currentStyle?e.currentStyle:e.style).filter||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,a=oe.isNumeric(t)?"alpha(opacity="+100*t+")":"",e=i&&i.filter||n.filter||"";((n.zoom=1)<=t||""===t)&&""===oe.trim(e.replace(mt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||i&&!i.filter)||(n.filter=mt.test(e)?e.replace(mt,a):e+" "+a)}}),oe.cssHooks.marginRight=D(ae.reliableMarginRight,function(e,t){if(t)return Qe(e,{display:"inline-block"},ht,[e,"marginRight"])}),oe.cssHooks.marginLeft=D(ae.reliableMarginLeft,function(e,t){if(t)return(parseFloat(ht(e,"marginLeft"))||(oe.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-Qe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px"}),oe.each({margin:"",padding:"",border:"Width"},function(a,o){oe.cssHooks[a+o]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];t<4;t++)n[a+De[t]+o]=i[t]||i[t-2]||i[0];return n}},ct.test(a)||(oe.cssHooks[a+o].set=H)}),oe.fn.extend({css:function(e,t){return Ne(this,function(e,t,n){var i,a,o={},r=0;if(oe.isArray(t)){for(i=pt(e),a=t.length;r
a",Le=St.getElementsByTagName("a")[0],ce.setAttribute("type","checkbox"),St.appendChild(ce),(Le=St.getElementsByTagName("a")[0]).style.cssText="top:1px",ae.getSetAttribute="t"!==St.className,ae.style=/top/.test(Le.getAttribute("style")),ae.hrefNormalized="/a"===Le.getAttribute("href"),ae.checkOn=!!ce.value,ae.optSelected=At.selected,ae.enctype=!!G.createElement("form").enctype,Lt.disabled=!0,ae.optDisabled=!At.disabled,(ce=G.createElement("input")).setAttribute("value",""),ae.input=""===ce.getAttribute("value"),ce.value="t",ce.setAttribute("type","radio"),ae.radioValue="t"===ce.value;var jt=/\r/g,Ht=/[\x20\t\r\n\f]+/g;oe.fn.extend({val:function(t){var n,e,i,a=this[0];return arguments.length?(i=oe.isFunction(t),this.each(function(e){1===this.nodeType&&(null==(e=i?t.call(this,e,oe(this).val()):t)?e="":"number"==typeof e?e+="":oe.isArray(e)&&(e=oe.map(e,function(e){return null==e?"":e+""})),(n=oe.valHooks[this.type]||oe.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):a?(n=oe.valHooks[a.type]||oe.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}}),oe.extend({valHooks:{option:{get:function(e){var t=oe.find.attr(e,"value");return null!=t?t:oe.trim(oe.text(e)).replace(Ht," ")}},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(oe.parseHTML(e)).find(i):e)}).always(n&&function(e,t){r.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},oe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){oe.fn[t]=function(e){return this.on(t,e)}}),oe.expr.filters.animated=function(t){return oe.grep(oe.timers,function(e){return t===e.elem}).length},oe.offset={setOffset:function(e,t,n){var i,a,o,r,l=oe.css(e,"position"),s=oe(e),c={};"static"===l&&(e.style.position="relative"),o=s.offset(),i=oe.css(e,"top"),r=oe.css(e,"left"),r=("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||"")+'
'+(r=r?'':"",i.closeBtn&&(r+=''),r)+""+(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,m('
')),this},t.pt.creat=function(){var e,i=this,a=i.config,o=i.index,r="object"==typeof(s=a.content),l=m("body");if(!a.id||!m("#"+a.id)[0]){switch("string"==typeof a.area&&(a.area="auto"===a.area?["",""]:[a.area,""]),a.shift&&(a.anim=a.shift),6==v.ie&&(a.fixed=!1),a.type){case 0:a.btn="btn"in a?a.btn:u.btn[0],v.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,v.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||v.closeAll("tips")}i.vessel(r,function(e,t,n){l.append(e[0]),r?2==a.type||4==a.type?m("body").append(e[1]):s.parents("."+d[0])[0]||(s.data("display",s.css("display")).show().addClass("layui-layer-wrap").wrap(e[1]),m("#"+d[0]+o).find("."+d[5]).before(t)):l.append(e[1]),m("#"+d.MOVE)[0]||l.append(u.moveElem=n),i.layero=m("#"+d[0]+o),i.shadeo=m("#"+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==v.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"),v.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(){v.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(){m(this).removeClass(e)})),a.isOutAnim&&i.layero.data("isOutAnim",!0)}},t.pt.auto=function(e){var t=this.config,n=m("#"+d[0]+e);""===t.area[0]&&0t.maxWidth&&n.width(t.maxWidth));var i=[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=m(e.follow),a={width:(i=!i[0]?m("body"):i).outerWidth(),height:i.outerHeight(),top:i.offset().top,left:i.offset().left},o=t.find(".layui-layer-TipsG"),i=e.tips[0];e.tips[1]||o.remove(),a.autoLeft=function(){0":'',o=n.success;return delete n.success,v.open(m.extend({type:1,btn:["确定","取消"],content:t,skin:"layui-layer-prompt"+g("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)?v.tips("最多输入"+(n.maxlength||500)+"个字数",a,{tips:1}):i&&i(t,e,a)}},n))},v.tab=function(i){var a=(i=i||{}).tab||{},o="layui-this",r=i.success;return delete i.success,v.open(m.extend({type:1,skin:"layui-layer-tab"+g("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=m(this),e=t.index();t.addClass(o).siblings().removeClass(o),n.eq(e).show().siblings().hide(),"function"==typeof i.change&&i.change(e)}),"function"==typeof r&&r(e)}},i))},v.photos=function(n,e,i){var t,a,o,r,l={};if((n=n||{}).photos){var s=!("string"==typeof n.photos||n.photos instanceof m),c=s?n.photos:{},u=c.data||[],d=c.start||0;l.imgIndex=1+(0|d),n.img=n.img||"img";var f=n.success;if(delete n.success,s){if(0===u.length)return v.msg("没有图片")}else{var p=m(n.photos),h=function(){u=[],p.find(n.img).each(function(e){var t=m(this);t.attr("layer-index",e),u.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(h(),0===u.length)return;if(e||p.on("click",n.img,function(){h();var e=m(this).attr("layer-index");v.photos(m.extend(n,{photos:{start:e,data:u,tab:n.tab},full:n.full}),!0)}),!e)return}l.imgprev=function(e){l.imgIndex--,l.imgIndex<1&&(l.imgIndex=u.length),l.tabimg(e)},l.imgnext=function(e,t){l.imgIndex++,l.imgIndex>u.length&&(l.imgIndex=1,t)||l.tabimg(e)},l.keyup=function(e){var t;l.end||(t=e.keyCode,e.preventDefault(),37===t?l.imgprev(!0):39===t?l.imgnext(!0):27===t&&v.close(l.index))},l.tabimg=function(e){if(!(u.length<=1))return c.start=l.imgIndex-1,v.close(l.index),v.photos(n,!0,e)},l.event=function(){l.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventDefault(),l.imgprev(!0)}),l.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventDefault(),l.imgnext(!0)}),m(document).on("keyup",l.keyup)},l.loadi=v.load(1,{shade:!("shade"in n)&&.9,scrollbar:!1}),t=u[d].src,a=function(e){var t;v.close(l.loadi),i&&(n.anim=-1),l.index=v.open(m.extend({type:1,id:"layui-layer-photos",area:(t=[e.width,e.height],e=[m(y).width()-100,m(y).height()-100],!n.full&&(t[0]>e[0]||t[1]>e[1])&&((e=[t[0]/e[0],t[1]/e[1]])[1]'+(u[d].alt||'+(1
'+(u[d].alt||"")+""+l.imgIndex+" / "+u.length+"
":"")+"",success:function(e,t){l.bigimg=e.find(".layui-layer-phimg"),l.imgsee=e.find(".layui-layer-imgbar"),l.event(e),n.tab&&n.tab(u[d],e),"function"==typeof f&&f(e)},end:function(){l.end=!0,m(document).off("keyup",l.keyup)}},n))},o=function(){v.close(l.loadi),v.msg("当前图片地址异常
是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){1=t.showHeight?e||(c.show(),e=1):e&&(c.hide(),e=0)}var s=[t.bar1,t.bar2,""],s=u(['
    ',t.bar1?'
  • '+s[0]+"
  • ":"",t.bar2?'
  • '+s[1]+"
  • ":"",'
  • '+s[2]+"
  • ","
"].join("")),c=s.find("."+a);u("."+i)[0]||("object"==typeof t.css&&s.css(t.css),r.append(s),l(),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)}),o.on("scroll",function(){clearTimeout(n),n=setTimeout(function(){l()},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(),l=o-r,o=[Math.floor(l/864e5),Math.floor(l/36e5)%24,Math.floor(l/6e4)%60,Math.floor(l/1e3)%60];a&&(n=t);a=setTimeout(function(){i.countdown(e,r+1e3,n)},1e3);return n&&n(0/g,">").replace(/'/g,"'").replace(/"/g,""")},unescape:function(e){return String(e||"").replace(/\&/g,"&").replace(/\</g,"<").replace(/\>/g,">").replace(/\'/,"'").replace(/\"/,'"')},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,n=e.thisElem,a=(s="y"===e.type)?"top":"left",o=t[i=s?"scrollTop":"scrollLeft"](),r=t[s?"height":"width"](),l=t.offset()[a],s={},((l=n.offset()[a]-l)>r-e.margin||l"+(t.title||"unnaming")+"";return o[0]?o.before(i):a.append(i),e.append('
'+(t.content||"")+"
"),x.hideTabMore(!0),x.tabAuto(),this},t.prototype.tabDelete=function(e,t){t=u(".layui-tab[lay-filter="+e+"]").children(".layui-tab-title").find('>li[lay-id="'+t+'"]');return x.tabDelete(null,t),this},t.prototype.tabChange=function(e,t){t=u(".layui-tab[lay-filter="+e+"]").children(".layui-tab-title").find('>li[lay-id="'+t+'"]');return x.tabClick.call(t[0],null,null,t),this},t.prototype.tab=function(n){n=n||{},i.on("click",n.headerElem,function(e){var t=u(this).index();x.tabClick.call(this,e,t,null,n)})},t.prototype.progress=function(e,t){var n="layui-progress",e=u("."+n+"[lay-filter="+e+"]").find("."+n+"-bar"),n=e.find("."+n+"-text");return e.css("width",t).attr("lay-percent",t),n.text(t),this};var p=".layui-nav",h="layui-nav-item",a="layui-nav-bar",y="layui-nav-tree",m="layui-nav-child",v="layui-nav-more",g="layui-anim layui-anim-upbit",x={tabClick:function(e,t,n,i){i=i||{};var a=n||u(this),t=t||a.parent().children("li").index(a),o=i.headerElem?a.parent():a.parents(".layui-tab").eq(0),r=i.bodyElem?u(i.bodyElem):o.children(".layui-tab-content").children(".layui-tab-item"),l=a.find("a"),n="javascript:;"!==l.attr("href")&&"_blank"===l.attr("target"),i="string"==typeof a.attr("lay-unselect"),l=o.attr("lay-filter");n||i||(a.addClass(c).siblings().removeClass(c),r.eq(t).addClass(f).siblings().removeClass(f)),layui.event.call(this,s,"tab("+l+")",{elem:o,index:t})},tabDelete:function(e,t){var n=t||u(this).parent(),i=n.index(),a=n.parents(".layui-tab").eq(0),o=a.children(".layui-tab-content").children(".layui-tab-item"),t=a.attr("lay-filter");n.hasClass(c)&&(n.next()[0]?x.tabClick.call(n.next()[0],null,i+1):n.prev()[0]&&x.tabClick.call(n.prev()[0],null,i-1)),n.remove(),o.eq(i).remove(),setTimeout(function(){x.tabAuto()},50),layui.event.call(this,s,"tabDelete("+t+")",{elem:a,index:i})},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"),n=(e.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),n=u('');o===window&&8!=d.ie&&x.hideTabMore(!0),e.attr("lay-allowClose")&&t.find("li").each(function(){var e,t=u(this);t.find("."+a)[0]||((e=u('')).on("click",x.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(g),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})}};t.prototype.init=function(e,t){var n=t?'[lay-filter="'+t+'"]':"",t={tab:function(){x.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(g),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("."+v).addClass(v+"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("."+v).removeClass(v+"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("."+v)[0]&&e.append(''),e.off("click",x.clickThis).on("click",x.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=u(this),t=e.find(".layui-colla-title"),e="none"===e.find(".layui-colla-content").css("display");t.find(".layui-colla-icon").remove(),t.append(''+(e?"":"")+""),t.off("click",x.collapse).on("click",x.collapse)})})}};return t[e]?t[e]():layui.each(t,function(e,t){t()})},t.prototype.render=t.prototype.init;var n=new t,i=u(document);u(function(){n.render()});i.on("click",".layui-tab-title li",x.tabClick),i.on("click",x.hideTabMore),u(window).on("resize",x.tabAuto),e(s,n)}),layui.define("layer",function(e){"use strict";function v(e){this.config=g.extend({},this.config,i.config,e),this.render()}var g=layui.$,t=layui.layer,n=layui.hint(),x=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",k="layui-upload-choose";v.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",field:"file",acceptMime:"",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},v.prototype.render=function(e){(e=this.config).elem=g(e.elem),e.bindAction=g(e.bindAction),this.file(),this.events()},v.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(),x.ie&&x.ie<10&&t.elem.wrap('
'),e.isFile()?(e.elemFile=t.elem,t.field=t.elem[0].name):t.elem.after(n),x.ie&&x.ie<10&&e.initIE()},v.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(""))))},v.prototype.msg=function(e){return t.msg(e,{icon:2,shift:6})},v.prototype.isFile=function(){var e=this.config.elem[0];if(e)return"input"===e.tagName.toLocaleLowerCase()&&"file"===e.type},v.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)}})},v.prototype.upload=function(n,e){function t(){function t(){u.multiple&&a+o===c.fileLength&&"function"==typeof u.allDone&&u.allDone({total:c.fileLength,successful:a,aborted:o})}var a=0,o=0,e=n||c.files||c.chooseFiles||d.files;layui.each(e,function(n,e){var i=new FormData;i.append(u.field,e),layui.each(u.data,function(e,t){t="function"==typeof t?t():t,i.append(e,t)});e={url:u.url,type:"post",data:i,contentType:!1,processData:!1,dataType:"json",headers:u.headers||{},success:function(e){a++,f(n,e),t()},error:function(){o++,c.msg("请求上传接口出现异常"),p(n),t()}};"function"==typeof u.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),u.progress(t,(u.item||u.elem)[0],e,n))}),e}),g.ajax(e)})}function i(){return!(("choose"===e||u.auto)&&(u.choose&&u.choose(m),"choose"===e)||u.before&&!1===u.before(m))&&(x.ie?9u.number)return c.msg("同时最多只能上传的数量为:"+u.number);if(01024*u.size&&(t=1<=(t=u.size/1024)?t.toFixed(2)+"MB":u.size+"KB",d.value="",r=t)}),r)return c.msg("文件不能超过"+r);i()}},v.prototype.reload=function(e){delete(e=e||{}).elem,delete e.bindAction;(e=this.config=g.extend({},this.config,i.config,e)).elem.next().attr({name:e.name,accept:e.acceptMime,multiple:e.multiple})},v.prototype.events=function(){function i(e){o.chooseFiles={},layui.each(e,function(e,t){var n=(new Date).getTime();o.chooseFiles[n+"-"+e]=t})}function a(e,t){var n=o.elemFile,e=(r.item||r.elem,1'+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()}),x.ie&&x.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(t):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){e=new v(e);return 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(["jquery","laytpl","lay"],function(e){"use strict";function t(e){this.index=++f.index,this.config=u.extend({},this.config,f.config,e),this.init()}var u=layui.$,d=layui.laytpl,n=layui.hint(),o=layui.device().mobile?"click":"mousedown",r="dropdown",l="layui_"+r+"_index",f={config:{},index:layui[r]?layui[r].index+1e4:0,set:function(e){return this.config=u.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,r,e,t)}},p=function(){var t=this,e=t.config,n=e.id;return p.that[n]=t,{config:e,reload:function(e){t.reload.call(t,e)}}},i="layui-menu-item-up",a="layui-menu-item-down",h="layui-menu-body-title",s="layui-menu-item-group",y="layui-menu-item-parent",c="layui-menu-item-checked",m="layui-menu-item-checked2",v="layui-menu-body-panel",g="layui-menu-body-panel-left",x="."+s+">."+h;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);if(1",(o="href"in t?''+o+"":o,i?'
'+o+("parent"===r?'':"group"===r&&s.isAllowSpread?'':"")+"
":'
'+o+"
"),""].join(""))).data("item",t),i&&(o=u('
'),i=u("
    "),"parent"===r?(o.append(c(i,t.child)),a.append(o)):a.append(c(i,t.child))),l.append(a))}),l},a=['
    ',"
    "].join("");!(e="contextmenu"===s.trigger||lay.isTopElem(s.elem[0])?!0:e)&&s.elem.data(l+"_opened")||(i.elemView=u(a),i.elemView.append(s.content||(t=u('
      '),0no menu'),t)),s.className&&i.elemView.addClass(s.className),s.style&&i.elemView.attr("style",s.style),f.thisId=s.id,i.remove(),n.append(i.elemView),s.elem.data(l+"_opened",!0),i.position(),p.prevElem=i.elemView,p.prevElem.data("prevElem",s.elem),i.elemView.find(".layui-menu").on(o,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(g),(t=n[0].getBoundingClientRect()).left<0&&n.removeClass(g)),t.bottom>i.height()&&n.eq(0).css("margin-top",-(t.bottom-i.height())))}).on("mouseleave",t,function(e){var t=u(this).children("."+v);t.removeClass(g),t.css("margin-top",0)})}(),f.reload=function(e,t){e=p.getThis(e);return e?(e.reload(t),p.call(e)):this},f.render=function(e){e=new t(e);return p.call(e)},e(r,f)}),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.jquery,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",u="layui-disabled",v="layui-slider-bar",g="layui-slider-wrap",x="layui-slider-wrap-btn",b="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 e,n=this,i=n.config;i.step<1&&(i.step=1),i.maxi.min?a:i.min,i.value[1]=t>i.min?t:i.min,i.value[0]=i.value[0]>i.max?i.max:i.value[0],i.value[1]=i.value[1]>i.max?i.max:i.value[1],e=Math.floor((i.value[0]-i.min)/(i.max-i.min)*100),a=(o=Math.floor((i.value[1]-i.min)/(i.max-i.min)*100))-e+"%",e+="%",o+="%"):("object"==typeof i.value&&(i.value=Math.min.apply(null,i.value)),i.valuei.max&&(i.value=i.max),a=Math.floor((i.value-i.min)/(i.max-i.min)*100)+"%");var t=i.disabled?"#c2c2c2":i.theme,a='
      '+(i.tips?'
      ':"")+'
      '+(i.range?'
      ':"")+"
      ",o=m(i.elem),t=o.next(".layui-slider");if(t[0]&&t.remove(),n.elemTemp=m(a),i.range?(n.elemTemp.find("."+g).eq(0).data("value",i.value[0]),n.elemTemp.find("."+g).eq(1).data("value",i.value[1])):n.elemTemp.find("."+g).data("value",i.value),o.html(n.elemTemp),"vertical"===i.type&&n.elemTemp.height(i.height+"px"),i.showstep){for(var r=(i.max-i.min)/i.step,l="",s=1;s<1+r;s++){var c=100*s/r;c<100&&(l+='
      ')}n.elemTemp.append(l)}i.input&&!i.range&&(a=m('
      '),o.css("position","relative"),o.append(a),o.find("."+k).children("input").val(i.value),"vertical"===i.type?a.css({left:0,top:-48}):n.elemTemp.css("margin-right",a.outerWidth()+15)),i.disabled?(n.elemTemp.addClass(u),n.elemTemp.find("."+x).addClass(u)):n.slide(),n.elemTemp.find("."+x).on("mouseover",function(){var e="vertical"===i.type?i.height:n.elemTemp[0].offsetWidth,t=n.elemTemp.find("."+g),t=("vertical"===i.type?e-m(this).parent()[0].offsetTop-t.height():m(this).parent()[0].offsetLeft)/e*100,e=m(this).parent().data("value"),e=i.setTips?i.setTips(e):e;n.elemTemp.find("."+b).html(e),"vertical"===i.type?n.elemTemp.find("."+b).css({bottom:t+"%","margin-bottom":"20px",display:"inline-block"}):n.elemTemp.find("."+b).css({left:t+"%",display:"inline-block"})}).on("mouseout",function(){n.elemTemp.find("."+b).css("display","none")})},t.prototype.slide=function(e,t,n){function l(){return"vertical"===c.type?c.height:u[0].offsetWidth}function s(e,t){e=100<(e=100o[1]&&o.reverse(),c.change&&c.change(c.range?o:e)}var c=this.config,u=this.elemTemp,d=u.find("."+g),r=u.next(".layui-slider-input"),f=r.children("."+k).children("input").val(),p=100/((c.max-c.min)/Math.ceil(c.step)),h=function(e){var t=e/l()*100/p,n=Math.round(t)*p;return n=e==l()?Math.ceil(t)*p:n},y=m(['
      l()?l():t)/l()*100/p;s(t,o),r.addClass(w),u.find("."+b).show(),e.preventDefault()},t=function(){r.removeClass(w),u.find("."+b).hide()},m("#LAY-slider-moving")[0]||m("body").append(y),y.on("mousemove",e),y.on("mouseup",a).on("mouseleave",a)})}),u.on("click",function(e){var t,n=m("."+x);!n.is(event.target)&&0===n.has(event.target).length&&n.length&&(n=(t=(t=(t="vertical"===c.type?l()-e.clientY+m(this).offset().top:e.clientX-m(this).offset().left)<0?0:t)>l()?l():t)/l()*100/p,t=c.range?"vertical"===c.type?Math.abs(t-parseInt(m(d[0]).css("bottom")))>Math.abs(t-parseInt(m(d[1]).css("bottom")))?1:0:Math.abs(t-d[0].offsetLeft)>Math.abs(t-d[1].offsetLeft)?1:0:0,s(n,t),e.preventDefault())}),r.children(".layui-slider-input-btn").children("i").each(function(t){m(this).on("click",function(){f=r.children("."+k).children("input").val();var e=((f=1==t?f-c.stepc.max?c.max:Number(f)+c.step)-c.min)/(c.max-c.min)*100/p;s(e,0)})});function i(){var e=this.value;e=(e=(e=isNaN(e)?0:e)c.max?c.max:e,e=((this.value=e)-c.min)/(c.max-c.min)*100/p,s(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){e=new t(e);return 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 x(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 b(e){var t={},n=e.h,i=255*e.s/100,a=255*e.b/100;return 0==i?t.r=t.g=t.b=a:(a=n%60*((e=a)-(i=(255-i)*a/255))/60,(n=360==n?0:n)<60?(t.r=e,t.b=i,t.g=i+a):n<120?(t.g=e,t.b=i,t.r=e-a):n<180?(t.g=e,t.r=i,t.b=i+a):n<240?(t.b=e,t.r=i,t.g=e-a):n<300?(t.b=e,t.g=i,t.r=i+a):n<360?(t.r=e,t.g=i,t.b=e-a):(t.r=0,t.g=0,t.b=0)),{r:Math.round(t.r),g:Math.round(t.g),b:Math.round(t.b)}}function d(e){var n=[(e=b(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=++n.index,this.config=w.extend({},this.config,n.config,e),this.render()}var w=layui.jquery,t=layui.lay,i=layui.device().mobile?"click":"mousedown",n={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)}},o="layui-colorpicker",r=".layui-colorpicker-main",C="layui-icon-down",T="layui-icon-close",E="layui-colorpicker-trigger-span",S="layui-colorpicker-trigger-i",L="layui-colorpicker-side-slider",A="layui-colorpicker-basis",D="layui-colorpicker-alpha-bgcolor",N="layui-colorpicker-alpha-slider",j="layui-colorpicker-basis-cursor",H="layui-colorpicker-main-input",M=w(window),l=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,t=this.config,n=w(['
      ',"",'','',"","","
      "].join("")),e=w(t.elem);t.size&&n.addClass("layui-colorpicker-"+t.size),e.addClass("layui-inline").html(this.elemColorBox=n),this.color=this.elemColorBox.find("."+E)[0].style.background,this.events()},a.prototype.renderPicker=function(){var e=this,t=e.config,n=e.elemColorBox[0],i=e.elemPicker=w(['
      ','
      ','
      ','
      ','
      ','
      ',"
      ",'
      ','
      ',"
      ","
      ",'
      ','
      ','
      ',"
      ","
      ",function(){if(t.predefine){var n=['
      '];return layui.each(t.colors,function(e,t){n.push(['
      ','
      ',"
      "].join(""))}),n.push("
      "),n.join("")}return""}(),'
      ','
      ','',"
      ",'
      ','','',"","
      "].join(""));e.elemColorBox.find("."+E)[0],w(r)[0]&&w(r).data("index")==e.index?e.removePicker(a.thisElemInd):(e.removePicker(a.thisElemInd),w("body").append(i)),a.thisElemInd=e.index,a.thisColor=n.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.config;return t.position(this.bindElem||this.elemColorBox[0],this.elemPicker[0],{position:e.position,align:"center"}),this},a.prototype.val=function(){var e,t=this,n=(t.config,t.elemColorBox.find("."+E)),i=t.elemPicker.find("."+H),a=n[0].style.backgroundColor;a?(e=x(k(a)),n=n.attr("lay-type"),t.select(e.h,e.s,e.b),"torgb"===n&&i.find("input").val(a),"rgba"===n&&(n=k(a),3==(a.match(/[0-9]{1,3}/g)||[]).length?(i.find("input").val("rgba("+n.r+", "+n.g+", "+n.b+", 1)"),t.elemPicker.find("."+N).css("left",280)):(i.find("input").val(a),a=280*a.slice(a.lastIndexOf(",")+1,a.length-1),t.elemPicker.find("."+N).css("left",a)),t.elemPicker.find("."+D)[0].style.background="linear-gradient(to right, rgba("+n.r+", "+n.g+", "+n.b+", 0), rgb("+n.r+", "+n.g+", "+n.b+"))")):(t.select(0,100,100),i.find("input").val(""),t.elemPicker.find("."+D)[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),n=b({h:e,s:t,b:n}),v.addClass(C).removeClass(T),r[0].style.background="rgb("+n.r+", "+n.g+", "+n.b+")","torgb"===l&&a.elemPicker.find("."+H).find("input").val("rgb("+n.r+", "+n.g+", "+n.b+")"),"rgba"===l&&(f.css("left",280*i),a.elemPicker.find("."+H).find("input").val("rgba("+n.r+", "+n.g+", "+n.b+", "+i+")"),r[0].style.background="rgba("+n.r+", "+n.g+", "+n.b+", "+i+")",d[0].style.background="linear-gradient(to right, rgba("+n.r+", "+n.g+", "+n.b+", 0), rgb("+n.r+", "+n.g+", "+n.b+"))"),o.change&&o.change(a.elemPicker.find("."+H).find("input").val())}function t(e){w("#LAY-colorpicker-moving")[0]||w("body").append(g),g.on("mousemove",e),g.on("mouseup",function(){g.remove()}).on("mouseleave",function(){g.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("."+A),i=a.elemPicker.find("."+j),d=a.elemPicker.find("."+D),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,v=a.elemColorBox.find("."+S),n=a.elemPicker.find(".layui-colorpicker-pre").children("div"),g=w(['
      '].join(""));e.on("mousedown",function(e){var i=this.offsetTop,a=e.clientY;t(function(e){var t=i+(e.clientY-a),n=s[0].offsetHeight,t=(t=n<(t=t<0?0:t)?n:t)/180*360;c(p=t,y,h,m),e.preventDefault()}),e.preventDefault()}),s.on("click",function(e){var t=e.clientY-w(this).offset().top,t=(t=(t=t<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=u[0].offsetWidth-3,n=((n=a<(n=n<-3?-3:n)?a:n)+3)/260*100,t=100-((t=i<(t=t<-3?-3:t)?i:t)+3)/180*100;c(p,y=n,h=t,m),e.preventDefault()}),e.preventDefault()}),u.on("mousedown",function(e){var t=e.clientY-w(this).offset().top-3+M.scrollTop(),n=e.clientX-w(this).offset().left-3+M.scrollLeft();(t=t<-3?-3:t)>this.offsetHeight-3&&(t=this.offsetHeight-3);n=((n=(n=n<-3?-3:n)>this.offsetWidth-3?this.offsetWidth-3:n)+3)/260*100,t=100-(t+3)/180*100;c(p,y=n,h=t,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=d[0].offsetWidth;n<(t=t<0?0:t)&&(t=n);t=Math.round(t/280*100)/100;c(p,y,h,m=t),e.preventDefault()}),e.preventDefault()}),d.on("click",function(e){var t=e.clientX-w(this).offset().left;(t=t<0?0:t)>this.offsetWidth&&(t=this.offsetWidth);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=x(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.config,d({h:e,s:100,b:100})),o=d({h:e,s:t,b:n}),e=e/360*180,n=180-n/100*180-3,t=t/100*260-3;this.elemPicker.find("."+L).css("top",e),this.elemPicker.find("."+A)[0].style.background="#"+a,this.elemPicker.find("."+j).css({top:n,left:t}),"change"!==i&&this.elemPicker.find("."+H).find("input").val("#"+o)},a.prototype.pickerEvents=function(){var l=this,s=l.config,c=l.elemColorBox.find("."+E),u=l.elemPicker.find("."+H+" input"),n={clear:function(e){c[0].style.background="",l.elemColorBox.find("."+S).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={};return-1>16,g:(65280&n)>>8,b:255&n}),c[0].style.background=o="#"+d(r),l.elemColorBox.find("."+S).removeClass(T).addClass(C)),"change"===t?(l.select(r.h,r.s,r.b,t),void(s.change&&s.change(o))):(l.color=a,s.done&&s.done(a),void 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(r)[0]&&(t.val(),t.side())}),e.elem[0]&&!t.elemColorBox[0].eventHandler&&(l.on(i,function(e){w(e.target).hasClass(o)||w(e.target).parents("."+o)[0]||w(e.target).hasClass(r.replace(/\./g,""))||w(e.target).parents(r)[0]||!t.elemPicker||(t.color?(e=x(k(t.color)),t.select(e.h,e.s,e.b)):t.elemColorBox.find("."+S).removeClass(C).addClass(T),n[0].style.background=t.color||"",t.removePicker())}),M.on("resize",function(){return!(!t.elemPicker||!w(r)[0])&&void t.position()}),t.elemColorBox[0].eventHandler=!0)},n.render=function(e){e=new a(e);return function(){return{config:this.config}}.call(e)},e("colorpicker",n)}),layui.define("layer",function(e){"use strict";function t(){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}}var b=layui.$,f=layui.layer,a=layui.hint(),p=layui.device(),k="form",s=".layui-form",w="layui-this",C="layui-hide",T="layui-disabled";t.prototype.set=function(e){return b.extend(!0,this.config,e),this},t.prototype.verify=function(e){return b.extend(!0,this.config.verify,e),this},t.prototype.on=function(e,t){return layui.onevent.call(this,k,e,t)},t.prototype.val=function(e,n){return b(s+'[lay-filter="'+e+'"]').each(function(e,t){var i=b(this);layui.each(n,function(e,t){var n=i.find('[name="'+e+'"]');n[0]&&("checkbox"===(e=n[0].type)?n[0].checked=t:"radio"===e?n.each(function(){this.value==t&&(this.checked=!0)}):n.val(t))})}),o.render(null,e),this.getValue(e)},t.prototype.getValue=function(e,t){t=t||b(s+'[lay-filter="'+e+'"]').eq(0);var i={},a={},t=t.find("input,select,textarea");return layui.each(t,function(e,t){var n;b(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},t.prototype.render=function(e,t){var n=this.config,i=b(s+(t?'[lay-filter="'+t+'"]':"")),t={input:function(){var e=i.find("input,textarea");n.autocomplete&&e.attr("autocomplete",n.autocomplete)},select:function(){function h(e,t){b(e.target).parent().hasClass(v)&&!t||(b("."+m).removeClass(m+"ed "+m+"up"),y&&x&&y.val(x)),y=null}var y,m="layui-form-select",v="layui-select-title",g="layui-select-none",x="",e=i.find("select");e.each(function(e,t){var n=b(this),i=n.next("."+m),a=this.disabled,o=t.value,r=b(t.options[t.selectedIndex]),l=t.options[0];if("string"==typeof n.attr("lay-ignore"))return n.show();var s,t="string"==typeof n.attr("lay-search"),l=l&&!l.value&&l.innerHTML||"请选择",r=b(['
      ','
      ','','
      ','
      ',(r=n.find("*"),s=[],layui.each(r,function(e,t){0!==e||t.value?"optgroup"===t.tagName.toLowerCase()?s.push("
      "+t.label+"
      "):s.push('
      '+b.trim(t.innerHTML)+"
      "):s.push('
      '+b.trim(t.innerHTML||"请选择")+"
      ")}),0===s.length&&s.push('
      没有选项
      '),s.join("")+"
      "),"
      "].join(""));i[0]&&i.remove(),n.after(r),function(i,e,t){var l,n,a,s,c,o,r=b(this),u=i.find("."+v),d=u.find("input"),f=i.find("dl"),p=f.children("dd");this.selectedIndex;e||(a=function(){var e=i.offset().top+i.outerHeight()+5-E.scrollTop(),t=f.outerHeight();n=r[0].selectedIndex,i.addClass(m+"ed"),p.removeClass(C),l=null,p.eq(n).addClass(w).siblings().removeClass(w),e+t>E.height()&&t<=e&&i.addClass(m+"up"),c()},s=function(e){i.removeClass(m+"ed "+m+"up"),d.blur(),l=null,e||o(d.val(),function(e){var t=r[0].selectedIndex;e&&(x=b(r[0].options[t]).html(),0===t&&x===d.attr("placeholder")&&(x=""),d.val(x||""))})},c=function(){var e,t,n=f.children("dd."+w);n[0]&&(e=n.position().top,t=f.height(),n=n.height(),t无匹配项

      '):f.find("."+g).remove()},"keyup"),""===t&&f.find("."+g).remove(),void c())}).on("blur",function(e){var t=r[0].selectedIndex;y=d,x=b(r[0].options[t]).html(),0===t&&x===d.attr("placeholder")&&(x=""),setTimeout(function(){o(d.val(),function(e){x||d.val("")},"blur")},200)}),p.on("click",function(){var e=b(this),t=e.attr("lay-value"),n=r.attr("lay-filter");return!e.hasClass(T)&&(e.hasClass("layui-select-tips")?d.val(""):(d.val(e.text()),e.addClass(w)),e.siblings().removeClass(w),r.val(t).removeClass("layui-form-danger"),layui.event.call(this,k,"select("+n+")",{elem:r[0],value:t,othis:i}),s(!0),!1)}),i.find("dl>dt").on("click",function(e){return!1}),b(document).off("click",h).on("click",h))}.call(this,r,a,t)})},checkbox:function(){var s={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},e=i.find("input[type=checkbox]");e.each(function(e,t){var n=b(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]),a=b(['
      ",(a={checkbox:[t.title.replace(/\s/g,"")?""+t.title+"":"",''].join(""),_switch:""+((t.checked?a[0]:a[1])||"")+""})[i]||a.checkbox,"
      "].join(""));l[0]&&l.remove(),n.after(a),function(n,i){var a=b(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],k,i[2]+"("+e+")",{elem:a[0],value:a[0].value,othis:n}))})}.call(this,a,r)})},radio:function(){var r="layui-form-radio",l=["",""],e=i.find("input[type=radio]");e.each(function(e,t){var n=b(this),i=n.next("."+r),a=this.disabled;if("string"==typeof n.attr("lay-ignore"))return n.show();i[0]&&i.remove();t=b(['
      ',''+l[t.checked?0:1]+"","
      "+(t=t.title||"",t="string"==typeof n.next().attr("lay-radio")?n.next().html():t)+"
      ","
      "].join(""));n.after(t),function(i){var a=b(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=b(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],k,"radio("+n+")",{elem:a[0],value:a[0].value,othis:i}))})}.call(this,t)})}};return e?t[e]?t[e]():a.error('不支持的 "'+e+'" 表单渲染'):layui.each(t,function(e,t){t()}),this};function n(){var c=null,u=o.config.verify,d="layui-form-danger",e=(i=b(this)).parents(s).eq(0),t=e.find("*[lay-verify]"),n=i.parents("form")[0],i=i.attr("lay-filter");return layui.each(t,function(e,o){var r=b(this),t=r.attr("lay-verify").split("|"),l=r.attr("lay-verType"),s=r.val();if(r.removeClass(d),layui.each(t,function(e,t){var n="",i="function"==typeof u[t];if(u[t]){var i=i?n=u[t](s,o):!u[t][0].test(s),a="select"===o.tagName.toLowerCase()||/^checkbox|radio$/.test(o.type),n=n||u[t][1];if("required"===t&&(n=r.attr("lay-reqText")||n),i)return"tips"===l?f.tips(n,"string"!=typeof r.attr("lay-ignore")&&a?r.next():r,{tips:1}):"alert"===l?f.alert(n,{title:"提示",shadeClose:!0}):/\bstring|number\b/.test(typeof n)&&f.msg(n,{icon:5,shift:6}),p.mobile?h.scrollTop(function(){try{return(a?r.next():r).offset().top-15}catch(e){return 0}}()):setTimeout(function(){(a?r.next().find("input"):o).focus()},7),r.addClass(d),c=!0}}),c)return c}),!c&&(e=o.getValue(null,e),layui.event.call(this,k,"submit("+i+")",{elem:this,form:n,field:e}))}var o=new t,h=b(document),E=b(window);b(function(){o.render()}),h.on("reset",s,function(){var e=b(this).attr("lay-filter");setTimeout(function(){o.render(null,e)},50)}),h.on("submit",s,n).on("click","*[lay-submit]",n),e(k,o)}),layui.define("form",function(e){"use strict";function t(e){this.index=++a.index,this.config=f.extend({},this.config,a.config,e),this.render()}var f=layui.$,n=layui.form,p=layui.layer,i="tree",a={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,i,e,t)}},o=function(){var t=this,e=t.config,n=e.id||t.index;return o.that[n]=t,{config:o.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)}}},h="layui-hide",s="layui-disabled",y="layui-tree-set",m="layui-tree-iconClick",v="layui-icon-addition",g="layui-icon-subtraction",x="layui-tree-entry",b="layui-tree-main",k="layui-tree-txt",w="layui-tree-pack",C="layui-tree-spread",T="layui-tree-setLineShort",E="layui-tree-showLine",S="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._typeof(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;e.checkids=[];var n=f('
      ');e.tree(n);var i=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=i.children("."+x),n=t.children("."+b),o=t.find("."+m),t=t.find("."+k),r=a.onlyIconControl?o:n,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(g).addClass(v)):(i.addClass(C),t.slideDown(200),n.addClass(g).removeClass(v),a.accordion&&((n=i.siblings("."+y)).removeClass(C),n.children("."+w).slideUp(200),n.find(".layui-tree-icon").children(".layui-icon").removeClass(g).addClass(v))):l="normal"}),t.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){var a,o=(this.config,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]&&(i=(n=e.parent("."+w)).parent(),e=n.prev().find('input[same="layuiTreeCheck"]'),o?e.prop("checked",o):(n.find('input[same="layuiTreeCheck"]').each(function(){this.checked&&(t=!0)}),t||e.prop("checked",!1)),a(i))})(e),this.renderForm("checkbox"))},t.prototype.checkClick=function(n,i){var a=this,o=a.config;n.children("."+x).children("."+b).on("click",'input[same="layuiTreeCheck"]+',function(e){layui.stope(e);var t=f(this).prev(),e=t.prop("checked");t.prop("disabled")||(a.setCheckbox(n,i,t),o.oncheck&&o.oncheck({elem:n,checked:e,data:i}))})},t.prototype.operate=function(s,o){var c=this,u=c.config,e=s.children("."+x),d=e.children("."+b);e.children(".layui-tree-btnGroup").on("click",".layui-icon",function(e){layui.stope(e);var t,n,i,a=f(this).data("type"),r=s.children("."+w),l={data:o,type:a,elem:s};"add"==a?(r[0]||(u.showLine?(d.find("."+m).addClass("layui-tree-icon"),d.find("."+m).children(".layui-icon").addClass(v).removeClass("layui-icon-file")):d.find(".layui-tree-iconArrow").removeClass(h),s.append('
      ')),t=u.operate&&u.operate(l),(e={}).title=u.text.defaultNodeName,e.id=t,c.tree(s.children("."+w),[e]),u.showLine&&(r[0]?(r.hasClass(S)||r.addClass(S),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)):(t=s.siblings("."+y),n=1,e=s.parent("."+w),layui.each(t,function(e,t){f(t).children("."+w)[0]||(n=0)}),1==n?(t.children("."+w).addClass(E),t.children("."+w).children("."+y).removeClass(T),s.children("."+w).addClass(E),e.removeClass(S),e.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"==a?(a=d.children("."+k).html(),d.children("."+k).html(""),d.append(''),d.children(".layui-tree-editInput").val(a).focus(),i=function(e){var t=(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(){i(f(this))}),d.children(".layui-tree-editInput").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),i(f(this)))})):p.confirm('确认删除该节点 "'+(o.title||"")+'" 吗?',function(e){return u.operate&&u.operate(l),l.status="remove",p.close(e),s.prev("."+y)[0]||s.next("."+y)[0]||s.parent("."+w)[0]?(s.siblings("."+y).children("."+x)[0]?(u.showCheckbox&&(o=function(e){var t,n,i,a;e.parents("."+y)[0]&&(t=e.siblings("."+y).children("."+x),e=(n=e.parent("."+w).prev()).find('input[same="layuiTreeCheck"]')[0],i=1,(a=0)==e.checked&&(t.each(function(e,t){t=f(t).find('input[same="layuiTreeCheck"]')[0];0!=t.checked||t.disabled||(i=0),t.disabled||(a=1)}),1==i&&1==a&&(e.checked=!0,c.renderForm("checkbox"),o(n.parent("."+y)))))})(s),u.showLine&&(t=s.siblings("."+y),n=1,i=s.parent("."+w),layui.each(t,function(e,t){f(t).children("."+w)[0]||(n=0)}),1==n?(r[0]||(i.removeClass(S),t.children("."+w).addClass(E),t.children("."+w).children("."+y).removeClass(T)),(s.next()[0]?i.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))):(t=s.parent("."+w).prev(),u.showLine?(t.find("."+m).removeClass("layui-tree-icon"),t.find("."+m).children(".layui-icon").removeClass(g).addClass("layui-icon-file"),(i=t.parents("."+w).eq(0)).addClass(S),i.children("."+y).each(function(){f(this).children("."+w).children("."+y).last().addClass(T)})):t.find(".layui-tree-iconArrow").addClass(h),s.parents("."+y).eq(0).removeClass(C),s.parent("."+w).remove()),void s.remove()):(s.remove(),void c.elem.append(c.elemNone));var o,n,t,i})})},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 e=f(this),n=e.val(),e=e.nextAll(),i=[];e.find("."+k).each(function(){var t,e=f(this).parents("."+x);-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("."+x).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("."+x).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=[];this.elem.find(".layui-form-checked").each(function(){t.push(f(this).prev()[0].value)});var a=function(e,i){layui.each(e,function(e,n){layui.each(t,function(e,t){if(n.id==t){t=f.extend({},n);return delete t.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("."+x).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})})},o.that={},o.config={},a.reload=function(e,t){e=o.that[e];return e.reload(t),o.call(e)},a.getChecked=function(e){return o.that[e].getChecked()},a.setChecked=function(e,t){return o.that[e].setChecked(t)},a.render=function(e){e=new t(e);return o.call(e)},e(i,a)}),layui.define(["laytpl","form"],function(e){"use strict";function t(e){return['
      ','
      ','","
      ","{{# if(d.data.showSearch){ }}",'","{{# } }}",'
        ',"
        "].join("")}function n(e){this.index=++r.index,this.config=c.extend({},this.config,r.config,e),this.render()}var c=layui.$,a=layui.laytpl,i=layui.form,o="transfer",r={config:{},index:layui[o]?layui[o].index+1e4:0,set:function(e){return this.config=c.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,o,e,t)}},l=function(){var t=this,e=t.config,n=e.id||t.index;return l.that[n]=t,{config:l.config[n]=e,reload:function(e){t.reload.call(t,e)},getData:function(){return t.getData.call(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:t.height-e.layHeader.outerHeight()-e.laySearch.outerHeight()-2}),e.renderData(),e.events())},n.prototype.renderData=function(){var i=(this.config,[{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){i.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=c(this),n=t.find("."+y),i=t.find("."+p).find('input[type="checkbox"]'),t=n.find('input[type="checkbox"]'),a=0,o=!1;t.each(function(){var e=c(this).data("hide");(this.checked||this.disabled||e)&&a++,this.checked&&!e&&(o=!0)}),i.prop("checked",o&&a===t.length),l.layBtn.eq(e)[o?"removeClass":"addClass"](d),r.stopNone||(e=n.children("li:not(."+u+")").length,l.noneView(n,e?"":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.events=function(){var o=this,n=o.config;o.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)}),o.renderCheckBtn({stopNone:!0}))}),o.layBtn.on("click",function(){var e=c(this),t=e.data("index"),i=o.layBox.eq(t),a=[];e.hasClass(d)||(o.layBox.eq(t).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,i.siblings("."+f).find("."+y).append(e.clone()),e.remove(),a.push(t[0].value)),o.setValue()})}),o.renderCheckBtn(),""===(e=i.siblings("."+f).find("."+h+" input")).val()||e.trigger("keyup"),n.onchange&&n.onchange(o.getData(a),t))}),o.laySearch.find("input").on("keyup",function(){var i=this.value,e=c(this).parents("."+h).eq(0).siblings("."+y),t=e.children("li");t.each(function(){var e=c(this),t=e.find('input[type="checkbox"]'),n=-1!==t[0].title.indexOf(i);e[n?"removeClass":"addClass"](u),t.data("hide",!n)}),o.renderCheckBtn();t=t.length===e.children("li."+u).length;o.noneView(e,t?n.text.searchNone:"")})},l.that={},l.config={},r.reload=function(e,t){e=l.that[e];return e.reload(t),l.call(e)},r.getData=function(e){return l.that[e].getData()},r.render=function(e){e=new n(e);return l.call(e)},e(o,r)}),layui.define(["laytpl","laypage","layer","form","util"],function(e){"use strict";function i(e){var t=d.config[e];return t||p.error(e?"The table instance with ID '"+e+"' not found":"ID argument required"),t||null}function m(e,t,n,i){return(this.config||{}).escape&&(t=a.escape(t)),t=e.templet?"function"==typeof e.templet?e.templet(n):g(v(e.templet).html()||String(t)).render(n):t,i?v("
        "+t+"
        ").text():t}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=++b.index,this.config=v.extend({},this.config,b.config,e),this.render()}var v=layui.$,g=layui.laytpl,r=layui.laypage,x=layui.layer,f=layui.form,a=layui.util,p=layui.hint(),h=layui.device(),b={config:{checkName:"LAY_CHECKED",indexName:"LAY_TABLE_INDEX"},cache:{},index:layui.table?layui.table.index+1e4:0,set:function(e){return this.config=v.extend({},this.config,e),this},on:function(e,t){return layui.onevent.call(this,y,e,t)}},d=function(){var n=this,e=n.config,t=e.id||e.index;return t&&(d.that[t]=n,d.config[t]=e),{config:e,reload:function(e,t){n.reload.call(n,e,t)},setColsWidth:function(){n.setColsWidth.call(n)},resize:function(){n.resize.call(n)}}},y="table",k="layui-hide",l="layui-none",o="layui-table-view",s=".layui-table-header",w=".layui-table-body",C=".layui-table-sort",T="layui-table-edit",E="layui-table-hover",c=['',"","
        "].join(""),u=['
        ',"{{# if(d.data.toolbar){ }}",'
        ','
        ','
        ',"
        ","{{# } }}",'
        ',"{{# if(d.data.loading){ }}",'
        ','',"
        ","{{# } }}","{{# var left, right; }}",'
        ',t(),"
        ",'
        ',c,"
        ","{{# if(left){ }}",'
        ','
        ',t({fixed:!0}),"
        ",'
        ',c,"
        ","
        ","{{# }; }}","{{# if(right){ }}",'
        ','
        ',t({fixed:"right"}),'
        ',"
        ",'
        ',c,"
        ","
        ","{{# }; }}","
        ","{{# if(d.data.totalRow){ }}",'
        ','','',"
        ","
        ","{{# } }}","{{# if(d.data.page){ }}",'
        ','
        ',"
        ","{{# } }}","","
        "].join(""),S=v(window),L=v(document);n.prototype.config={limit:10,loading:!0,cellMinWidth:60,defaultToolbar:["filter","exports","print"],autoSort:!0,text:{none:"无数据"}},n.prototype.render=function(){var e=this,t=e.config;if(t.elem=v(t.elem),t.where=t.where||{},t.id=t.id||t.elem.attr("id")||e.index,t.request=v.extend({pageName:"page",limitName:"limit"},t.request),t.response=v.extend({statusName:"code",statusCode:0,msgName:"msg",dataName:"data",totalRowName:"totalRow",countName:"count"},t.response),"object"==typeof t.page&&(t.limit=t.page.limit||t.limit,t.limits=t.page.limits||t.limits,e.page=t.page.curr=t.page.curr||1,delete t.page.elem,delete t.page.jump),!t.elem[0])return e;t.height&&/^full-\d+$/.test(t.height)&&(e.fullHeightGap=t.height.split("-")[1],t.height=S.height()-e.fullHeightGap),e.setInit();var n=t.elem,i=n.next("."+o),a=e.elem=v(g(u).render({VIEW_CLASS:o,data:t,index:e.index}));t.index=e.index,e.key=t.id||t.index,i[0]&&i.remove(),n.after(a),e.layTool=a.find(".layui-table-tool"),e.layBox=a.find(".layui-table-box"),e.layHeader=a.find(s),e.layMain=a.find(".layui-table-main"),e.layBody=a.find(w),e.layFixed=a.find(".layui-table-fixed"),e.layFixLeft=a.find(".layui-table-fixed-l"),e.layFixRight=a.find(".layui-table-fixed-r"),e.layTotal=a.find(".layui-table-total"),e.layPage=a.find(".layui-table-page"),e.renderToolbar(),e.fullSize(),1
        ','
        ','
        '].join(""),n=this.layTool.find(".layui-table-tool-temp");"default"===e.toolbar?n.html(t):"string"!=typeof e.toolbar||(t=v(e.toolbar).html()||"")&&n.html(g(t).render(e));var i={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;t&&a.push('
        ')}),this.layTool.find(".layui-table-tool-self").html(a.join(""))},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"](k),t.colspan=a,t.hide=a<1,(i=i.data("parentkey"))&&this.setParentCol(e,i))},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 i=this,r=i.config,n=0,l=0,s=0,c=0,u=i.setInit("width");i.eachCols(function(e,t){t.hide||n++});var u=u-("line"===r.skin||"nob"===r.skin?2:n+1)-i.getScrollWidth(i.layMain[0])-1,e=function(o){layui.each(r.cols,function(e,a){layui.each(a,function(e,t){var n=0,i=t.minWidth||r.cellMinWidth;return t?void(t.colGroup||t.hide||(o?s&&s'+(e||"Error")+"
        ");t[0]&&(this.layNone.remove(),t.remove()),this.layFixed.addClass(k),this.layMain.find("tbody").html(""),this.layMain.append(this.layNone=e),b.cache[this.key]=[]},n.prototype.page=1,n.prototype.pullData=function(t){function n(){"object"==typeof o.initSort&&a.sort(o.initSort.field,o.initSort.type)}var e,i,a=this,o=a.config,r=o.request,l=o.response;a.startTime=(new Date).getTime(),o.url?((i={})[r.pageName]=t,i[r.limitName]=o.limit,e=v.extend(i,o.where),o.contentType&&0==o.contentType.indexOf("application/json")&&(e=JSON.stringify(e)),a.loading(),v.ajax({type:o.method||"get",url:o.url,contentType:o.contentType,data:e,dataType:"json",headers:o.headers||{},success:function(e){(e="function"==typeof o.parseData?o.parseData(e)||e:e)[l.statusName]!=l.statusCode?(a.renderForm(),a.errorView(e[l.msgName]||'返回的数据不符合规范,正确的成功状态码应为:"'+l.statusName+'": '+l.statusCode)):(a.renderData(e,t,e[l.countName]),n(),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._typeof(o.data)&&(i=t*o.limit-o.limit,(e={})[l.dataName]=o.data.concat().splice(i,o.limit),e[l.countName]=o.data.length,"object"==typeof o.totalRow&&(e[l.totalRowName]=v.extend({},o.totalRow)),a.renderData(e,t,e[l.countName]),n(),a.setColsWidth(),"function"==typeof o.done&&o.done(e,t,e[l.countName]))},n.prototype.eachCols=function(e){return b.eachCols(null,e,this.config.cols),this},n.prototype.renderData=function(e,t,n,i){var d=this,f=d.config,a=e[f.response.dataName]||[],o=e[f.response.totalRowName],p=[],h=[],y=[],e=function(){var u;return!i&&d.sortKey?d.sort(d.sortKey.field,d.sortKey.sort,!0):(layui.each(a,function(a,o){var r=[],l=[],s=[],c=a+f.limit*(t-1)+1;"array"===layui._typeof(o)&&0===o.length||(i||(o[b.config.indexName]=a),d.eachCols(function(e,n){var t=n.field||e,e=f.index+"-"+n.key,i=o[t];null!=i||(i=""),n.colGroup||(e=['','
        '+function(){var e=v.extend(!0,{LAY_INDEX:c,LAY_COL:n},o),t=b.config.checkName;switch(n.type){case"checkbox":return'";case"radio":return e[t]&&(u=a),'';case"numbers":return c}return n.toolbar?g(v(n.toolbar).html()||"").render(e):m.call(d,n,i,e)}(),"
        "].join(""),r.push(e),n.fixed&&"right"!==n.fixed&&l.push(e),"right"===n.fixed&&s.push(e))}),p.push(''+r.join("")+""),h.push(''+l.join("")+""),y.push(''+s.join("")+""))}),d.layBody.scrollTop(0),d.layMain.find("."+l).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.haveInit?d.scrollPatch():setTimeout(function(){d.scrollPatch()},50),d.haveInit=!0,x.close(d.tipsIndex),f.HAS_SET_COLS_PATCH||d.setColsPatch(),void(f.HAS_SET_COLS_PATCH=!0))};return b.cache[d.key]=a,d.layPage[0==n||0===a.length&&1==t?"addClass":"removeClass"](k),0===a.length?(d.renderForm(),d.errorView(f.text.none)):(d.layFixed.removeClass(k),i?e():(e(),d.renderTotal(a,o),void(f.page&&(f.page=v.extend({elem:"layui-table-page"+f.index,count:n,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=n,r.render(f.page)))))},n.prototype.renderTotal=function(e,o){var r,l=this,s=l.config,c={};s.totalRow&&(layui.each(e,function(e,i){"array"===layui._typeof(i)&&0===i.length||l.eachCols(function(e,t){var n=t.field||e,e=i[n];t.totalRow&&(c[n]=(c[n]||0)+(parseFloat(e)||0))})}),l.dataTotal={},r=[],l.eachCols(function(e,t){var n,i,a=t.field||e,e=(n=t.totalRowText||"",i=parseFloat(c[a]).toFixed(2),(e={})[a]=i,n=t.totalRow&&m.call(l,t,i,e)||n,o&&o[t.field]||n),n=['','
        '+("string"==typeof(n=t.totalRow||s.totalRow)?g(n).render(v.extend({TOTAL_NUMS:e},t)):e),"
        "].join("");t.field&&(l.dataTotal[a]=e),r.push(n)}),l.layTotal.find("tbody").html(""+r.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){f.render(e,"LAY-table-"+this.index)},n.prototype.setThisRowChecked=function(e){var t=(this.config,"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=b.cache[o.key];"string"==typeof a&&(u=a,o.layHeader.find("th").each(function(e,t){var n=v(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(C);o.layHeader.find("th").find(C).removeAttr("lay-sort"),f.attr("lay-sort",e||null),o.layFixed.find("th")}catch(e){p.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,b.config.indexName),delete o.sortKey)),r[l.response.dataName]=i||c,o.renderData(r,o.page,o.count,!0),n&&layui.event.call(a,y,"sort("+s+")",{field:u,type:e})},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=v(['
        ','',"
        "].join("")),this.layBox.append(this.layInit)))},n.prototype.setCheckData=function(e,t){var n=this.config,i=b.cache[this.key];i[e]&&"array"!==layui._typeof(i[e])&&(i[e][n.checkName]=t)},n.prototype.syncCheckAll=function(){function e(n){return t.eachCols(function(e,t){"checkbox"===t.type&&(t[i.checkName]=n)}),n}var t=this,i=t.config,n=t.layHeader.find('input[name="layTableCheckbox"]');n[0]&&(b.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=this.elem.find("style")[0],e=e.sheet||e.styleSheet||{},e=e.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=S.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&&(t-=this.layPage.outerHeight()||41),this.layMain.css("height",t-2))},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=v('
        ')).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(w).css("height",t.height()>=o?o:"auto"),e.layFixRight[0');n.html(t),c.height&&n.css("max-height",c.height-(s.layTool.outerHeight()||50)),i.find(".layui-table-tool-panel")[0]||i.append(n),s.renderForm(),n.on("click",function(e){layui.stope(e)}),e.done&&e.done(n,t)}var n,i=v(this),a=i.attr("lay-event");switch(layui.stope(e),L.trigger("table.tool.panel.remove"),x.close(s.tipsIndex),a){case"LAYTABLE_COLS":t({list:(n=[],s.eachCols(function(e,t){t.field&&"normal"==t.type&&n.push('
      • ')}),n.join("")),done:function(){f.on("checkbox(LAY_TABLE_TOOL_COLS)",function(e){var e=v(e.elem),i=this.checked,a=e.data("key"),o=e.data("parentkey");layui.each(c.cols,function(n,e){layui.each(e,function(e,t){n+"-"+e===a&&(e=t.hide,t.hide=!i,s.elem.find('*[data-key="'+c.index+"-"+a+'"]')[i?"removeClass":"addClass"](k),e!=t.hide&&s.setParentCol(!i,o),s.resize())})})})}});break;case"LAYTABLE_EXPORT":h.ie?x.tips("导出功能不支持 IE,请用 Chrome 等高级浏览器导出",this,{tips:3}):t({list:['
      • 导出到 Csv 文件
      • ','
      • 导出到 Excel 文件
      • '].join(""),done:function(e,t){t.on("click",function(){var e=v(this).data("type");b.exportFile.call(s,c.id,null,e)})}});break;case"LAYTABLE_PRINT":var o=window.open("打印窗口","_blank"),r=[""].join(""),l=v(s.layHeader.html());l.append(s.layMain.find("table").html()),l.append(s.layTotal.find("table").html()),l.find("th.layui-table-patch").remove(),l.find(".layui-table-col-special").remove(),o.document.write(r+l.prop("outerHTML")),o.document.close(),o.print(),o.close()}layui.event.call(this,y,"toolbar("+u+")",v.extend({event:a,config:c},{}))}),e.on("mousemove",function(e){var t=v(this),n=t.offset().left,n=e.clientX-n;t.data("unresize")||o.resizeStart||(o.allowResize=t.width()-n<=10,i.css("cursor",o.allowResize?"col-resize":""))}).on("mouseleave",function(){v(this),o.resizeStart||i.css("cursor","")}).on("mousedown",function(e){var t,n=v(this);o.allowResize&&(t=n.data("key"),e.preventDefault(),o.resizeStart=!0,o.offset=[e.clientX,e.clientY],s.getCssRule(t,function(e){var t=e.style.width||n.outerWidth();o.rule=e,o.ruleWidth=parseFloat(t),o.minWidth=n.data("minwidth")||c.cellMinWidth}))}),L.on("mousemove",function(e){o.resizeStart&&(e.preventDefault(),o.rule&&((e=o.ruleWidth+e.clientX-o.offset[0])'))[0].value=t.data("content")||i.text(),t.find("."+T)[0]||t.append(n),n.focus(),layui.stope(e))}).on("mouseenter","td",function(){n.call(this)}).on("mouseleave","td",function(){n.call(this,"hide")});var d="layui-table-grid-down",n=function(e){var t=v(this),n=t.children(r);t.data("off")||(e?t.find(".layui-table-grid-down").remove():n.prop("scrollWidth")>n.outerWidth()&&(n.find("."+d)[0]||t.append('
        ')))};s.layBody.on("click","."+d,function(e){var t=v(this).parent().children(r);s.tipsIndex=x.tips(['
        ',t.html(),"
        ",''].join(""),t[0],{tips:[3,""],time:-1,anim:-1,maxWidth:h.ios||h.android?300:s.elem.width()/2,isOutAnim:!1,skin:"layui-table-tips",success:function(e,t){e.find(".layui-table-tips-c").on("click",function(){x.close(t)})}}),layui.stope(e)}),s.layBody.on("click","*[lay-event]",function(){var e=v(this),t=e.parents("tr").eq(0).data("index");layui.event.call(this,y,"tool("+u+")",l.call(this,{event:e.attr("lay-event")})),s.setThisRowChecked(t)}),s.layMain.on("scroll",function(){var e=v(this),t=e.scrollLeft(),e=e.scrollTop();s.layHeader.scrollLeft(t),s.layTotal.scrollLeft(t),s.layFixed.find(w).scrollTop(e),x.close(s.tipsIndex)}),S.on("resize",function(){s.resize()})},L.on("click",function(){L.trigger("table.remove.tool.panel")}),L.on("table.remove.tool.panel",function(){v(".layui-table-tool-panel").remove()}),b.init=function(n,i){i=i||{};var e=v(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=v(this),t=e.attr("lay-data");try{t=new Function("return "+t)()}catch(e){p.error(a+t,"error")}var o=[],r=v.extend({elem:this,cols:[],data:[],skin:e.attr("lay-skin"),size:e.attr("lay-size"),even:"string"==typeof e.attr("lay-even")},b.config,i,t);n&&e.hide(),e.find("thead>tr").each(function(i){r.cols[i]=[],v(this).children().each(function(e){var t=v(this),n=t.attr("lay-data");try{n=new Function("return "+n)()}catch(e){return p.error(a+n)}n=v.extend({title:t.text(),colspan:t.attr("colspan")||0,rowspan:t.attr("rowspan")||0},n);n.colspan<2&&o.push(n),r.cols[i].push(n)})}),e.find("tbody>tr").each(function(e){var n=v(this),a={};n.children("td").each(function(e,t){var n=v(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}),b.render(r)}),this},d.that={},d.config={},b.eachCols=function(e,n,a){var e=d.config[e]||{},o=[],r=0;a=v.extend(!0,[],a||e.cols),layui.each(a,function(t,e){layui.each(e,function(e,n){var i;n.colGroup&&(i=0,r++,n.CHILD_COLS=[],layui.each(a[t+1],function(e,t){t.PARENT_COL_INDEX||1*[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=e<0?this.elemItem.length-1:e},t.prototype.nextIndex=function(){var e=this.config.index+1;return e=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)));for(var n='
          ",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){e=new t(e);return 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=0,r=m((e=e||{}).elem);if(r[0]){var n=m(e.scrollElem||document),l=e.mb||50,s=!("isAuto"in e)||e.isAuto,c=e.end||"没有更多了",u=e.scrollElem&&e.scrollElem!==document,d="加载更多",f=m('");r.find(".layui-flow-more")[0]||r.append(f);var p,h=function(e,t){e=m(e),f.before(e),(t=0==t||null)?f.html(c):f.find("a").html(d),a=t,i=null,p&&p()},y=function(){i=!0,f.find("a").html(''),"function"==typeof e.done&&e.done(++t,h)};return y(),f.find("a").on("click",function(){m(this),a||i||y()}),e.isLazyimg&&(p=this.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem})),s&&n.on("scroll",function(){var t=m(this),n=t.scrollTop();o&&clearTimeout(o),!a&&r.width()&&(o=setTimeout(function(){var e=(u?t:m(window)).height();(u?t.prop("scrollHeight"):document.documentElement.scrollHeight)-n-e<=l&&(i||y())},100))}),this}},t.prototype.lazyimg=function(e){function s(t,e){var n,i=d.scrollTop(),a=i+e,e=p?t.offset().top-d.offset().top+i:t.offset().top;i<=e&&e<=a&&t.attr("lay-src")&&(n=t.attr("lay-src"),layui.img(n,function(){var e=c.lazyimg.elem.eq(u);t.attr("src",n).removeAttr("lay-src"),e[0]&&o(e),u++},function(){c.lazyimg.elem.eq(u),t.removeAttr("lay-src")}))}var t,c=this,u=0,d=m((e=e||{}).scrollElem||document),f=e.elem||"img",p=e.scrollElem&&e.scrollElem!==document,o=function(e,t){var n=(p?t||d:m(window)).height(),i=d.scrollTop(),a=i+n;if(c.lazyimg.elem=m(f),e)s(e,n);else for(var o=0;o','
        '+t+"
        ",'
        ','',"
        ",""].join(""));return c.ie&&c.ie<8?r.removeClass("layui-hide").addClass("layui-show"):(s[0]&&s.remove(),y.call(this,e,r[0],a),r.addClass("layui-hide").after(e),this.index)},t.prototype.getContent=function(e){e=o(e);if(e[0])return n(e[0].document.body.innerHTML)},t.prototype.getText=function(e){e=o(e);if(e[0])return u(e[0].document.body).text()},t.prototype.setContent=function(e,t,n){var i=o(e);i[0]&&(n?u(i[0].document.body).append(t):u(i[0].document.body).html(t),layedit.sync(e))},t.prototype.sync=function(e){e=o(e);e[0]&&u("#"+e[1].attr("textarea")).val(n(e[0].document.body.innerHTML))},t.prototype.getSelection=function(e){e=o(e);if(e[0]){e=v(e[0].document);return document.selection?e.text:e.toString()}};function p(e,t,n){var i,a,o=this.document,r=document.createElement(e);for(i in t)r.setAttribute(i,t[i]);r.removeAttribute("text"),o.selection?(a=n.text||t.text,"a"===e&&!a||(a&&(r.innerHTML=a),n.pasteHTML(u(r).prop("outerHTML")),n.select())):(a=n.toString()||t.text,"a"===e&&!a||(a&&(r.innerHTML=a),n.deleteContents(),n.insertNode(r)))}function h(t,e){function n(e){return t.find(".layedit-tool-"+e)}var i=this.document,a="layedit-tool-active",i=g(v(i));e&&e[e.hasClass(a)?"removeClass":"addClass"](a),t.find(">i").removeClass(a),n("unlink").addClass(f),u(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(f))})}var y=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=u([""].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]),x.call(l,t,a,r)})},o=function(e){e=u("#LAY_layedit_"+e);return[e.prop("contentWindow"),e]},n=function(e){return e=8==c.ie?e.replace(/<.+>/g,function(e){return e.toLowerCase()}):e},m=function(t,e,n,i){var a=t.document,o=u(a.body);o.on("keydown",function(e){if(13===e.keyCode){var t=v(a);if("pre"===g(t).parentNode.tagName.toLowerCase())return e.shiftKey?void 0:(d.msg("请暂时用shift+enter"),!1);a.execCommand("formatBlock",!1,"

        ")}}),u(n).parents("form").on("submit",function(){var e=o.html();8==c.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"),u(this).css({"text-align":e||""})}),e.find("table").addClass("layui-table"),e.find("script,link").remove()},v=function(e){return e.selection?e.selection.createRange():e.getSelection().getRangeAt(0)},g=function(e){return e.endContainer||e.parentElement().childNodes[0]},x=function(a,e,o){function t(){var e,t=u(this),n=t.attr("layedit-event"),i=t.attr("lay-command");t.hasClass(f)||(l.focus(),(e=v(r)).commonAncestorContainer,i?(r.execCommand(i),/justifyLeft|justifyCenter|justifyRight/.test(i)&&r.execCommand("formatBlock",!1,"

        "),setTimeout(function(){l.focus()},10)):s[n]&&s[n].call(this,e),h.call(a,c,t))}var r=a.document,l=u(r.body),s={link:function(n){var e=g(n),i=u(e).parent();b.call(l,{href:i.attr("href"),target:i.attr("target")},function(e){var t=i[0];"A"===t.tagName?t.href=e.url:p.call(a,"a",{target:e.target,href:e.url,text:e.url},n)})},unlink:function(e){r.execCommand("unlink")},face:function(t){k.call(this,function(e){p.call(a,"img",{src:e.src,alt:e.alt},t)})},image:function(n){var i=this;layui.use("upload",function(e){var t=o.uploadImage||{};e.render({url:t.url,method:t.type,elem:u(i).find("input")[0],done:function(e){0==e.code?(e.data=e.data||{},p.call(a,"img",{src:e.data.src,alt:e.data.title},n)):d.msg(e.msg||"上传失败")}})})},code:function(t){w.call(l,function(e){p.call(a,"pre",{text:e.code,"lay-lang":e.lang},t)})},help:function(){d.open({type:2,title:"帮助",area:["600px","380px"],shadeClose:!0,shade:.1,skin:"layui-layer-msg",content:["","no"]})}},c=e.find(".layui-layedit-tool"),n=/image/;c.find(">i").on("mousedown",function(){var e=u(this).attr("layedit-event");n.test(e)||t.call(this)}).on("click",function(){var e=u(this).attr("layedit-event");n.test(e)&&t.call(this)}),l.on("click",function(){h.call(a,c),d.close(k.index)})},b=function(e,n){var i=this,e=d.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(){d.close(t),i.focus()}),a.on("submit(layedit-link-yes)",function(e){d.close(b.index),n&&n(e.field)})}});b.index=e},k=function(n){var i,a,o=(i={},layui.each(["[微笑]","[嘻嘻]","[哈哈]","[可爱]","[可怜]","[挖鼻]","[吃惊]","[害羞]","[挤眼]","[闭嘴]","[鄙视]","[爱你]","[泪]","[偷笑]","[亲亲]","[生病]","[太开心]","[白眼]","[右哼哼]","[左哼哼]","[嘘]","[衰]","[委屈]","[吐]","[哈欠]","[抱抱]","[怒]","[疑问]","[馋嘴]","[拜拜]","[思考]","[汗]","[困]","[睡]","[钱]","[失望]","[酷]","[色]","[哼]","[鼓掌]","[晕]","[悲伤]","[抓狂]","[黑线]","[阴险]","[怒骂]","[互粉]","[心]","[伤心]","[猪头]","[熊猫]","[兔子]","[ok]","[耶]","[good]","[NO]","[赞]","[来]","[弱]","[草泥马]","[神马]","[囧]","[浮云]","[给力]","[围观]","[威武]","[奥特曼]","[礼物]","[钟]","[话筒]","[蜡烛]","[蛋糕]"],function(e,t){i[t]=layui.cache.dir+"images/face/"+e+".gif"}),i);return k.hide=k.hide||function(e){"face"!==u(e.target).attr("layedit-event")&&d.close(k.index)},k.index=d.tips((a=[],layui.each(o,function(e,t){a.push('
      • '+e+'
      • ')}),'
          '+a.join("")+"
        "),this,{tips:1,time:0,skin:"layui-box layui-util-face",maxWidth:500,success:function(e,t){e.css({marginTop:-4,marginLeft:-10}).find(".layui-clear>li").on("click",function(){n&&n({src:o[this.title],alt:this.title}),d.close(t)}),u(document).off("click",k.hide).on("click",k.hide)}})},w=function(n){var i=this,e=d.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(){d.close(t),i.focus()}),a.on("submit(layedit-code-yes)",function(e){d.close(w.index),n&&n(e.field)})}});w.index=e},C={html:'',strong:'',italic:'',underline:'',del:'',"|":'',left:'',center:'',right:'',link:'',unlink:'',face:'',image:'',code:'',help:''};e("layedit",new t)}),layui.define("jquery",function(e){"use strict";var a=layui.$;e("code",function(i){var e=[];(i=i||{}).elem=a(i.elem||".layui-code"),i.lang="lang"in i?i.lang:"code",i.elem.each(function(){e.push(this)}),layui.each(e.reverse(),function(e,t){var n=a(t),t=n.html();(n.attr("lay-encode")||i.encode)&&(t=t.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")),n.html('
        1. '+t.replace(/[\r\t\n]+/g,"
        2. ")+"
        "),n.find(">.layui-code-h3")[0]||n.prepend('

        '+(n.attr("lay-title")||i.title||"</>")+''+(n.attr("lay-lang")||i.lang||"")+"

        ");t=n.find(">.layui-code-ol");n.addClass("layui-box layui-code-view"),(n.attr("lay-skin")||i.skin)&&n.addClass("layui-code-"+(n.attr("lay-skin")||i.skin)),0<(t.find("li").length/100|0)&&t.css("margin-left",(t.find("li").length/100|0)+"px"),(n.attr("lay-height")||i.height)&&t.css("max-height",n.attr("lay-height")||i.height)})})}).addcss("modules/code.css?v=2","skincodecss");