(function(oe){"use strict";var x=document,_={modules:{},status:{},timeout:10,event:{}},O=function(){this.v="2.4.1"},ie=function(){var v=x.currentScript?x.currentScript.src:function(){for(var L,F=x.scripts,y=F.length-1,u=y;u>0;u--)if(F[u].readyState==="interactive"){L=F[u].src;break}return L||F[y].src}();return v.substring(0,v.lastIndexOf("/")+1)}(),G=function(v){oe.console&&console.error&&console.error("Layui hint: "+v)},A=typeof opera!="undefined"&&opera.toString()==="[object Opera]",$={layer:"modules/layer",laydate:"modules/laydate",laypage:"modules/laypage",laytpl:"modules/laytpl",layim:"modules/layim",layedit:"modules/layedit",form:"modules/form",upload:"modules/upload",tree:"modules/tree",table:"modules/table",element:"modules/element",rate:"modules/rate",colorpicker:"modules/colorpicker",slider:"modules/slider",carousel:"modules/carousel",flow:"modules/flow",util:"modules/util",code:"modules/code",jquery:"modules/jquery",mobile:"modules/mobile","layui.all":"../layui.all"};O.prototype.cache=_,O.prototype.define=function(v,L){var F=this,y=typeof v=="function",u=function(){var h=function(c,m){layui[c]=m,_.status[c]=!0};return typeof L=="function"&&L(function(c,m){h(c,m),_.callback[c]=function(){L(h)}}),this};return y&&(L=v,v=[]),layui["layui.all"]||!layui["layui.all"]&&layui["layui.mobile"]?u.call(F):(F.use(v,u),F)},O.prototype.use=function(v,L,F){function y(M,E){var ee=navigator.platform==="PLaySTATION 3"?/^complete$/:/^(complete|loaded)$/;(M.type==="load"||ee.test((M.currentTarget||M.srcElement).readyState))&&(_.modules[D]=E,m.removeChild(q),function s(){return++k>1e3*_.timeout/4?G(D+" is not a valid module"):void(_.status[D]?u():setTimeout(s,4))}())}function u(){F.push(layui[D]),v.length>1?h.use(v.slice(1),L,F):typeof L=="function"&&L.apply(layui,F)}var h=this,c=_.dir=_.dir?_.dir:ie,m=x.getElementsByTagName("head")[0];v=typeof v=="string"?[v]:v,window.jQuery&&jQuery.fn.on&&(h.each(v,function(M,E){E==="jquery"&&v.splice(M,1)}),layui.jquery=layui.$=jQuery);var D=v[0],k=0;if(F=F||[],_.host=_.host||(c.match(/\/\/([\s\S]+?)\//)||["//"+location.host+"/"])[0],v.length===0||layui["layui.all"]&&$[D]||!layui["layui.all"]&&layui["layui.mobile"]&&$[D])return u(),h;if(_.modules[D])(function M(){return++k>1e3*_.timeout/4?G(D+" is not a valid module"):void(typeof _.modules[D]=="string"&&_.status[D]?u():setTimeout(M,4))})();else{var q=x.createElement("script"),z=($[D]?c+"lay/":/^\{\/\}/.test(h.modules[D])?"":_.base||"")+(h.modules[D]||D)+".js";z=z.replace(/^\{\/\}/,""),q.async=!0,q.charset="utf-8",q.src=z+function(){var M=_.version===!0?_.v||new Date().getTime():_.version||"";return M?"?v="+M:""}(),m.appendChild(q),!q.attachEvent||q.attachEvent.toString&&q.attachEvent.toString().indexOf("[native code")<0||A?q.addEventListener("load",function(M){y(M,z)},!1):q.attachEvent("onreadystatechange",function(M){y(M,z)}),_.modules[D]=z}return h},O.prototype.getStyle=function(v,L){var F=v.currentStyle?v.currentStyle:oe.getComputedStyle(v,null);return F[F.getPropertyValue?"getPropertyValue":"getAttribute"](L)},O.prototype.link=function(v,L,F){var y=this,u=x.createElement("link"),h=x.getElementsByTagName("head")[0];typeof L=="string"&&(F=L);var c=(F||v).replace(/\.|\//g,""),m=u.id="layuicss-"+c,D=0;return u.rel="stylesheet",u.href=v+(_.debug?"?v="+new Date().getTime():""),u.media="all",x.getElementById(m)||h.appendChild(u),typeof L!="function"||function k(){return++D>1e3*_.timeout/100?G(v+" timeout"):void(parseInt(y.getStyle(x.getElementById(m),"width"))===1989?function(){L()}():setTimeout(k,100))}(),y},_.callback={},O.prototype.factory=function(v){if(layui[v])return typeof _.callback[v]=="function"?_.callback[v]:null},O.prototype.addcss=function(v,L,F){return layui.link(_.dir+"css/"+v,L,F)},O.prototype.img=function(v,L,F){var y=new Image;return y.src=v,y.complete?L(y):(y.onload=function(){y.onload=null,typeof L=="function"&&L(y)},void(y.onerror=function(u){y.onerror=null,typeof F=="function"&&F(u)}))},O.prototype.config=function(v){v=v||{};for(var L in v)_[L]=v[L];return this},O.prototype.modules=function(){var v={};for(var L in $)v[L]=$[L];return v}(),O.prototype.extend=function(v){var L=this;v=v||{};for(var F in v)L[F]||L.modules[F]?G("\u6A21\u5757\u540D "+F+" \u5DF2\u88AB\u5360\u7528"):L.modules[F]=v[F];return L},O.prototype.router=function(v){var L=this,v=v||location.hash,F={path:[],search:{},hash:(v.match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(v)&&(v=v.replace(/^#\//,""),F.href="/"+v,v=v.replace(/([^#])(#.*$)/,"$1").split("/")||[],L.each(v,function(y,u){/^\w+=/.test(u)?function(){u=u.split("="),F.search[u[0]]=u[1]}():F.path.push(u)})),F},O.prototype.data=function(v,L,F){if(v=v||"layui",F=F||localStorage,oe.JSON&&oe.JSON.parse){if(L===null)return delete F[v];L=typeof L=="object"?L:{key:L};try{var y=JSON.parse(F[v])}catch(u){var y={}}return"value"in L&&(y[L.key]=L.value),L.remove&&delete y[L.key],F[v]=JSON.stringify(y),L.key?y[L.key]:y}},O.prototype.sessionData=function(v,L){return this.data(v,L,sessionStorage)},O.prototype.device=function(v){var L=navigator.userAgent.toLowerCase(),F=function(u){var h=new RegExp(u+"/([^\\s\\_\\-]+)");return u=(L.match(h)||[])[1],u||!1},y={os:function(){return/windows/.test(L)?"windows":/linux/.test(L)?"linux":/iphone|ipod|ipad|ios/.test(L)?"ios":/mac/.test(L)?"mac":void 0}(),ie:function(){return!!(oe.ActiveXObject||"ActiveXObject"in oe)&&((L.match(/msie\s(\d+)/)||[])[1]||"11")}(),weixin:F("micromessenger")};return v&&!y[v]&&(y[v]=F(v)),y.android=/android/.test(L),y.ios=y.os==="ios",y},O.prototype.hint=function(){return{error:G}},O.prototype.each=function(v,L){var F,y=this;if(typeof L!="function")return y;if(v=v||[],v.constructor===Object){for(F in v)if(L.call(v[F],F,v[F]))break}else for(F=0;FD?1:m/g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(A,$){var v="Laytpl Error\uFF1A";return typeof console=="object"&&console.error(v+A+` `+($||"")),v+A}},O=_.exp,ie=function(A){this.tpl=A};ie.pt=ie.prototype,window.errors=0,ie.pt.parse=function(A,$){var v=this,L=A,F=O("^"+x.open+"#",""),y=O(x.close+"$","");A=A.replace(/\s+|\r|\t|\n/g," ").replace(O(x.open+"#"),x.open+"# ").replace(O(x.close+"}"),"} "+x.close).replace(/\\/g,"\\\\").replace(O(x.open+"!(.+?)!"+x.close),function(u){return u=u.replace(O("^"+x.open+"!"),"").replace(O("!"+x.close),"").replace(O(x.open+"|"+x.close),function(h){return h.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(_.query(),function(u){return u=u.replace(F,"").replace(y,""),'";'+u.replace(/\\/g,"")+';view+="'}).replace(_.query(1),function(u){var h='"+(';return u.replace(/\s/g,"")===x.open+x.close?"":(u=u.replace(O(x.open+"|"+x.close),""),/^=/.test(u)&&(u=u.replace(/^=/,""),h='"+_escape_('),h+u.replace(/\\/g,"")+')+"')}),A='"use strict";var view = "'+A+'";return view;';try{return v.cache=A=new Function("d, _escape_",A),A($,_.escape)}catch(u){return delete v.cache,_.error(u,L)}},ie.pt.render=function(A,$){var v,L=this;return A?(v=L.cache?L.cache(A,_.escape):L.parse(L.tpl,A),$?void $(v):v):_.error("no data")};var G=function(A){return typeof A!="string"?_.error("Template not found"):new ie(A)};G.config=function(A){A=A||{};for(var $ in A)x[$]=A[$]},G.v="1.2.0",oe("laytpl",G)}),layui.define(function(oe){"use strict";var x=document,_="getElementById",O="getElementsByTagName",ie="laypage",G="layui-disabled",A=function(v){var L=this;L.config=v||{},L.config.index=++$.index,L.render(!0)};A.prototype.type=function(){var v=this.config;if(typeof v.elem=="object")return v.elem.length===void 0?2:3},A.prototype.view=function(){var v=this,L=v.config,F=L.groups="groups"in L?0|L.groups:5;L.layout=typeof L.layout=="object"?L.layout:["prev","page","next"],L.count=0|L.count,L.curr=0|L.curr||1,L.limits=typeof L.limits=="object"?L.limits:[10,20,30,40,50],L.limit=0|L.limit||10,L.pages=Math.ceil(L.count/L.limit)||1,L.curr>L.pages&&(L.curr=L.pages),F<0?F=1:F>L.pages&&(F=L.pages),L.prev="prev"in L?L.prev:"上一页",L.next="next"in L?L.next:"下一页";var y=L.pages>F?Math.ceil((L.curr+(F>1?1:0))/(F>0?F:1)):1,u={prev:function(){return L.prev?''+L.prev+"":""}(),page:function(){var h=[];if(L.count<1)return"";y>1&&L.first!==!1&&F!==0&&h.push(''+(L.first||1)+"");var c=Math.floor((F-1)/2),m=y>1?L.curr-c:1,D=y>1?function(){var k=L.curr+(F-c-1);return k>L.pages?L.pages:k}():F;for(D-m2&&h.push('');m<=D;m++)m===L.curr?h.push('"+m+""):h.push(''+m+"");return L.pages>F&&L.pages>D&&L.last!==!1&&(D+1…'),F!==0&&h.push(''+(L.last||L.pages)+"")),h.join("")}(),next:function(){return L.next?''+L.next+"":""}(),count:'\u5171 '+L.count+" \u6761",limit:function(){var h=['"}(),refresh:['','',""].join(""),skip:function(){return['到第','','页',""].join("")}()};return['
',function(){var h=[];return layui.each(L.layout,function(c,m){u[m]&&h.push(u[m])}),h.join("")}(),"
"].join("")},A.prototype.jump=function(v,L){if(v){var F=this,y=F.config,u=v.children,h=v[O]("button")[0],c=v[O]("input")[0],m=v[O]("select")[0],D=function(){var z=0|c.value.replace(/\s|\D/g,"");z&&(y.curr=z,F.render())};if(L)return D();for(var k=0,q=u.length;ky.pages||(y.curr=z,F.render())});m&&$.on(m,"change",function(){var z=this.value;y.curr*z>y.count&&(y.curr=Math.ceil(y.count/z)),y.limit=z,F.render()}),h&&$.on(h,"click",function(){D()})}},A.prototype.skip=function(v){if(v){var L=this,F=v[O]("input")[0];F&&$.on(F,"keyup",function(y){var u=this.value,h=y.keyCode;/^(37|38|39|40)$/.test(h)||(/\D/.test(u)&&(this.value=u.replace(/\D/,"")),h===13&&L.jump(v,!0))})}},A.prototype.render=function(v){var L=this,F=L.config,y=L.type(),u=L.view();y===2?F.elem&&(F.elem.innerHTML=u):y===3?F.elem.html(u):x[_](F.elem)&&(x[_](F.elem).innerHTML=u),F.jump&&F.jump(F,v);var h=x[_]("layui-laypage-"+F.index);L.jump(h),F.hash&&!v&&(location.hash="!"+F.hash+"="+F.curr),L.skip(h)};var $={render:function(v){var L=new A(v);return L.index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(v,L,F){return v.attachEvent?v.attachEvent("on"+L,function(y){y.target=y.srcElement,F.call(v,y)}):v.addEventListener(L,F,!1),this}};oe(ie,$)}),function(){"use strict";var oe=window.layui&&layui.define,x={getPath:function(){var s=document.currentScript?document.currentScript.src:function(){for(var o,d=document.scripts,g=d.length-1,f=g;f>0;f--)if(d[f].readyState==="interactive"){o=d[f].src;break}return o||d[g].src}();return s.substring(0,s.lastIndexOf("/")+1)}(),getStyle:function(s,o){var d=s.currentStyle?s.currentStyle:window.getComputedStyle(s,null);return d[d.getPropertyValue?"getPropertyValue":"getAttribute"](o)},link:function(s,o,d){if(_.path){var g=document.getElementsByTagName("head")[0],f=document.createElement("link");typeof o=="string"&&(d=o);var w=(d||s).replace(/\.|\//g,""),S="layuicss-"+w,N=0;f.rel="stylesheet",f.href=_.path+s,f.id=S,document.getElementById(S)||g.appendChild(f),typeof o=="function"&&function V(){return++N>80?window.console&&console.error("laydate.css: Invalid"):void(parseInt(x.getStyle(document.getElementById(S),"width"))===1989?o():setTimeout(V,100))}()}}},_={v:"5.0.9",config:{},index:window.laydate&&window.laydate.v?1e5:0,path:x.getPath,set:function(s){var o=this;return o.config=E.extend({},o.config,s),o},ready:function(s){var o="laydate",d="",g=(oe?"modules/laydate/":"theme/")+"default/laydate.css?v="+_.v+d;return oe?layui.addcss(g,s,o):x.link(g,s,o),this}},O=function(){var s=this;return{hint:function(o){s.hint.call(s,o)},config:s.config}},ie="laydate",G=".layui-laydate",A="layui-this",$="laydate-disabled",v="\u5F00\u59CB\u65E5\u671F\u8D85\u51FA\u4E86\u7ED3\u675F\u65E5\u671F
\u5EFA\u8BAE\u91CD\u65B0\u9009\u62E9",L=[100,2e5],F="layui-laydate-static",y="layui-laydate-list",u="laydate-selected",h="layui-laydate-hint",c="laydate-day-prev",m="laydate-day-next",D="layui-laydate-footer",k=".laydate-btns-confirm",q="laydate-time-text",z=".laydate-btns-time",M=function(s){var o=this;o.index=++_.index,o.config=E.extend({},o.config,_.config,s),_.ready(function(){o.init()})},E=function(s){return new ee(s)},ee=function(s){for(var o=0,d=typeof s=="object"?[s]:(this.selector=s,document.querySelectorAll(s||null));o0)return d[0].getAttribute(s)}():d.each(function(g,f){f.setAttribute(s,o)})},ee.prototype.removeAttr=function(s){return this.each(function(o,d){d.removeAttribute(s)})},ee.prototype.html=function(s){return this.each(function(o,d){d.innerHTML=s})},ee.prototype.val=function(s){return this.each(function(o,d){d.value=s})},ee.prototype.append=function(s){return this.each(function(o,d){typeof s=="object"?d.appendChild(s):d.innerHTML=d.innerHTML+s})},ee.prototype.remove=function(s){return this.each(function(o,d){s?d.removeChild(s):d.parentNode.removeChild(d)})},ee.prototype.on=function(s,o){return this.each(function(d,g){g.attachEvent?g.attachEvent("on"+s,function(f){f.target=f.srcElement,o.call(g,f)}):g.addEventListener(s,o,!1)})},ee.prototype.off=function(s,o){return this.each(function(d,g){g.detachEvent?g.detachEvent("on"+s,o):g.removeEventListener(s,o,!1)})},M.isLeapYear=function(s){return s%4==0&&s%100!=0||s%400==0},M.prototype.config={type:"date",range:!1,format:"yyyy-MM-dd",value:null,isInitValue:!0,min:"1900-1-1",max:"2099-12-31",trigger:"focus",show:!1,showBottom:!0,btns:["clear","now","confirm"],lang:"cn",theme:"default",position:null,calendar:!1,mark:{},zIndex:null,done:null,change:null},M.prototype.lang=function(){var s=this,o=s.config,d={cn:{weeks:["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],time:["\u65F6","\u5206","\u79D2"],timeTips:"\u9009\u62E9\u65F6\u95F4",startTime:"\u5F00\u59CB\u65F6\u95F4",endTime:"\u7ED3\u675F\u65F6\u95F4",dateTips:"\u8FD4\u56DE\u65E5\u671F",month:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u5341\u4E00","\u5341\u4E8C"],tools:{confirm:"\u786E\u5B9A",clear:"\u6E05\u7A7A",now:"\u73B0\u5728"}},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"}}};return d[o.lang]||d.cn},M.prototype.init=function(){var s=this,o=s.config,d="yyyy|y|MM|M|dd|d|HH|H|mm|m|ss|s",g=o.position==="static",f={year:"yyyy",month:"yyyy-MM",date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss"};o.elem=E(o.elem),o.eventElem=E(o.eventElem),o.elem[0]&&(o.range===!0&&(o.range="-"),o.format===f.date&&(o.format=f[o.type]),s.format=o.format.match(new RegExp(d+"|.","g"))||[],s.EXP_IF="",s.EXP_SPLIT="",E.each(s.format,function(w,S){var N=new RegExp(d).test(S)?"\\d{"+function(){return new RegExp(d).test(s.format[w===0?w+1:w-1]||"")?/^yyyy|y$/.test(S)?4:S.length:/^yyyy$/.test(S)?"1,4":/^y$/.test(S)?"1,308":"1,2"}()+"}":"\\"+S;s.EXP_IF=s.EXP_IF+N,s.EXP_SPLIT=s.EXP_SPLIT+"("+N+")"}),s.EXP_IF=new RegExp("^"+(o.range?s.EXP_IF+"\\s\\"+o.range+"\\s"+s.EXP_IF:s.EXP_IF)+"$"),s.EXP_SPLIT=new RegExp("^"+s.EXP_SPLIT+"$",""),s.isInput(o.elem[0])||o.trigger==="focus"&&(o.trigger="click"),o.elem.attr("lay-key")||(o.elem.attr("lay-key",s.index),o.eventElem.attr("lay-key",s.index)),o.mark=E.extend({},o.calendar&&o.lang==="cn"?{"0-1-1":"\u5143\u65E6","0-2-14":"\u60C5\u4EBA","0-3-8":"\u5987\u5973","0-3-12":"\u690D\u6811","0-4-1":"\u611A\u4EBA","0-5-1":"\u52B3\u52A8","0-5-4":"\u9752\u5E74","0-6-1":"\u513F\u7AE5","0-9-10":"\u6559\u5E08","0-9-18":"\u56FD\u803B","0-10-1":"\u56FD\u5E86","0-12-25":"\u5723\u8BDE"}:{},o.mark),E.each(["min","max"],function(w,S){var N=[],V=[];if(typeof o[S]=="number"){var Z=o[S],X=new Date().getTime(),J=864e5,C=new Date(Z?Z0)return!0;var b=E.elem("div",{class:"layui-laydate-header"}),P=[function(){var xe=E.elem("i",{class:"layui-icon laydate-icon laydate-prev-y"});return xe.innerHTML="",xe}(),function(){var xe=E.elem("i",{class:"layui-icon laydate-icon laydate-prev-m"});return xe.innerHTML="",xe}(),function(){var xe=E.elem("div",{class:"laydate-set-ym"}),he=E.elem("span"),ue=E.elem("span");return xe.appendChild(he),xe.appendChild(ue),xe}(),function(){var xe=E.elem("i",{class:"layui-icon laydate-icon laydate-next-m"});return xe.innerHTML="",xe}(),function(){var xe=E.elem("i",{class:"layui-icon laydate-icon laydate-next-y"});return xe.innerHTML="",xe}()],te=E.elem("div",{class:"layui-laydate-content"}),H=E.elem("table"),ae=E.elem("thead"),le=E.elem("tr");E.each(P,function(xe,he){b.appendChild(he)}),ae.appendChild(le),E.each(new Array(6),function(xe){var he=H.insertRow(0);E.each(new Array(7),function(ue){if(xe===0){var ye=E.elem("th");ye.innerHTML=d.weeks[ue],le.appendChild(ye)}he.insertCell(ue)})}),H.insertBefore(ae,H.children[0]),te.appendChild(H),w[C]=E.elem("div",{class:"layui-laydate-main laydate-main-list-"+C}),w[C].appendChild(b),w[C].appendChild(te),S.push(P),N.push(te),V.push(H)}),E(Z).html(function(){var C=[],b=[];return o.type==="datetime"&&C.push(''+d.timeTips+""),E.each(o.btns,function(P,te){var H=d.tools[te]||"btn";o.range&&te==="now"||(g&&te==="clear"&&(H=o.lang==="cn"?"\u91CD\u7F6E":"Reset"),b.push(''+H+""))}),C.push('"),C.join("")}()),E.each(w,function(C,b){f.appendChild(b)}),o.showBottom&&f.appendChild(Z),/^#/.test(o.theme)){var X=E.elem("style"),J=["#{{id}} .layui-laydate-header{background-color:{{theme}};}","#{{id}} .layui-this{background-color:{{theme}} !important;}"].join("").replace(/{{id}}/g,s.elemID).replace(/{{theme}}/g,o.theme);"styleSheet"in X?(X.setAttribute("type","text/css"),X.styleSheet.cssText=J):X.innerHTML=J,E(f).addClass("laydate-theme-molv"),f.appendChild(X)}s.remove(M.thisElemDate),g?o.elem.append(f):(document.body.appendChild(f),s.position()),s.checkDate().calendar(),s.changeEvent(),M.thisElemDate=s.elemID,typeof o.ready=="function"&&o.ready(E.extend({},o.dateTime,{month:o.dateTime.month+1}))},M.prototype.remove=function(s){var o=this,d=(o.config,E("#"+(s||o.elemID)));return d.hasClass(F)||o.checkDate(function(){d.remove()}),o},M.prototype.position=function(){var s=this,o=s.config,d=s.bindElem||o.elem[0],g=d.getBoundingClientRect(),f=s.elem.offsetWidth,w=s.elem.offsetHeight,S=function(J){return J=J?"scrollLeft":"scrollTop",document.body[J]|document.documentElement[J]},N=function(J){return document.documentElement[J?"clientWidth":"clientHeight"]},V=5,Z=g.left,X=g.bottom;Z+f+V>N("width")&&(Z=N("width")-f-V),X+w+V>N()&&(X=g.top>w?g.top-w:N()-w,X-=2*V),o.position&&(s.elem.style.position=o.position),s.elem.style.left=Z+(o.position==="fixed"?0:S(1))+"px",s.elem.style.top=X+(o.position==="fixed"?0:S())+"px"},M.prototype.hint=function(s){var o=this,d=(o.config,E.elem("div",{class:h}));o.elem&&(d.innerHTML=s||"",E(o.elem).find("."+h).remove(),o.elem.appendChild(d),clearTimeout(o.hinTimer),o.hinTimer=setTimeout(function(){E(o.elem).find("."+h).remove()},3e3))},M.prototype.getAsYM=function(s,o,d){return d?o--:o++,o<0&&(o=11,s--),o>11&&(o=0,s++),[s,o]},M.prototype.systemDate=function(s){var o=s||new Date;return{year:o.getFullYear(),month:o.getMonth(),date:o.getDate(),hours:s?s.getHours():0,minutes:s?s.getMinutes():0,seconds:s?s.getSeconds():0}},M.prototype.checkDate=function(s){var o,d,g=this,f=(new Date,g.config),w=f.dateTime=f.dateTime||g.systemDate(),S=g.bindElem||f.elem[0],N=(g.isInput(S),g.isInput(S)?S.value:f.position==="static"?"":S.innerHTML),V=function(X){X.year>L[1]&&(X.year=L[1],d=!0),X.month>11&&(X.month=11,d=!0),X.hours>23&&(X.hours=0,d=!0),X.minutes>59&&(X.minutes=0,X.hours++,d=!0),X.seconds>59&&(X.seconds=0,X.minutes++,d=!0),o=_.getEndDate(X.month+1,X.year),X.date>o&&(X.date=o,d=!0)},Z=function(X,J,C){var b=["startTime","endTime"];J=(J.match(g.EXP_SPLIT)||[]).slice(1),C=C||0,f.range&&(g[b[C]]=g[b[C]]||{}),E.each(g.format,function(P,te){var H=parseFloat(J[P]);J[P].length\u5FC5\u987B\u9075\u5FAA\u4E0B\u8FF0\u683C\u5F0F\uFF1A
"+(f.range?f.format+" "+f.range+" "+f.format:f.format)+"
\u5DF2\u4E3A\u4F60\u91CD\u7F6E"),d=!0):N&&N.constructor===Date?f.dateTime=g.systemDate(N):(f.dateTime=g.systemDate(),delete g.startState,delete g.endState,delete g.startDate,delete g.endDate,delete g.startTime,delete g.endTime),V(w),d&&N&&g.setValue(f.range?g.endDate?g.parse():"":g.parse()),s&&s(),g)},M.prototype.mark=function(s,o){var d,g=this,f=g.config;return E.each(f.mark,function(w,S){var N=w.split("-");N[0]!=o[0]&&N[0]!=0||N[1]!=o[1]&&N[1]!=0||N[2]!=o[2]||(d=S||o[2])}),d&&s.html(''+d+""),g},M.prototype.limit=function(s,o,d,g){var f,w=this,S=w.config,N={},V=S[d>41?"endDate":"dateTime"],Z=E.extend({},V,o||{});return E.each({now:Z,min:S.min,max:S.max},function(X,J){N[X]=w.newDate(E.extend({year:J.year,month:J.month,date:J.date},function(){var C={};return E.each(g,function(b,P){C[P]=J[P]}),C}())).getTime()}),f=N.nowN.max,s&&s[f?"addClass":"removeClass"]($),f},M.prototype.calendar=function(s){var o,d,g,f=this,w=f.config,S=s||w.dateTime,N=new Date,V=f.lang(),Z=w.type!=="date"&&w.type!=="datetime",X=s?1:0,J=E(f.table[X]).find("td"),C=E(f.elemHeader[X][2]).find("span");if(S.yearL[1]&&(S.year=L[1],f.hint("\u6700\u9AD8\u53EA\u80FD\u652F\u6301\u5230\u516C\u5143"+L[1]+"\u5E74")),f.firstDate||(f.firstDate=E.extend({},S)),N.setFullYear(S.year,S.month,1),o=N.getDay(),d=_.getEndDate(S.month||12,S.year),g=_.getEndDate(S.month+1,S.year),E.each(J,function(P,te){var H=[S.year,S.month],ae=0;te=E(te),te.removeAttr("class"),P=o&&P=d.firstDate.year&&(Q.month=g.max.month,Q.date=g.max.date),d.limit(E(Y),Q,o),ae++}),E(Z[C?0:1]).attr("lay-ym",ae-8+"-"+P[1]).html(le+b+" - "+(ae-1+b))}else if(s==="month")E.each(new Array(12),function(se){var Y=E.elem("li",{"lay-ym":se}),Q={year:P[0],month:se};se+1==P[1]&&E(Y).addClass(A),Y.innerHTML=w.month[se]+(C?"\u6708":""),N.appendChild(Y),P[0]=d.firstDate.year&&(Q.date=g.max.date),d.limit(E(Y),Q,o)}),E(Z[C?0:1]).attr("lay-ym",P[0]+"-"+P[1]).html(P[0]+b);else if(s==="time"){var xe=function(){E(N).find("ol").each(function(se,Y){E(Y).find("li").each(function(Q,pe){d.limit(E(pe),[{hours:Q},{hours:d[H].hours,minutes:Q},{hours:d[H].hours,minutes:d[H].minutes,seconds:Q}][se],o,[["hours"],["hours","minutes"],["hours","minutes","seconds"]][se])})}),g.range||d.limit(E(d.footer).find(k),d[H],0,["hours","minutes","seconds"])};g.range?d[H]||(d[H]={hours:0,minutes:0,seconds:0}):d[H]=f,E.each([24,60,60],function(se,Y){var Q=E.elem("li"),pe=["

"+w.time[se]+"

    "];E.each(new Array(Y),function(fe){pe.push(""+E.digit(fe,2)+"")}),Q.innerHTML=pe.join("")+"
",N.appendChild(Q)}),xe()}if(J&&X.removeChild(J),X.appendChild(N),s==="year"||s==="month")E(d.elemMain[o]).addClass("laydate-ym-show"),E(N).find("li").on("click",function(){var se=0|E(this).attr("lay-ym");if(!E(this).hasClass($)){if(o===0)f[s]=se,S&&(d.startDate[s]=se),d.limit(E(d.footer).find(k),null,0);else if(S)d.endDate[s]=se;else{var Y=s==="year"?d.getAsYM(se,P[1]-1,"sub"):d.getAsYM(P[0],se,"sub");E.extend(f,{year:Y[0],month:Y[1]})}g.type==="year"||g.type==="month"?(E(N).find("."+A).removeClass(A),E(this).addClass(A),g.type==="month"&&s==="year"&&(d.listYM[o][0]=se,S&&(d[["startDate","endDate"][o]].year=se),d.list("month",o))):(d.checkDate("limit").calendar(),d.closeList()),d.setBtnStatus(),g.range||d.done(null,"change"),E(d.footer).find(z).removeClass($)}});else{var he=E.elem("span",{class:q}),ue=function(){E(N).find("ol").each(function(se){var Y=this,Q=E(Y).find("li");Y.scrollTop=30*(d[H][te[se]]-2),Y.scrollTop<=0&&Q.each(function(pe,fe){if(!E(this).hasClass($))return Y.scrollTop=30*(pe-2),!0})})},ye=E(V[2]).find("."+q);ue(),he.innerHTML=g.range?[w.startTime,w.endTime][o]:w.timeTips,E(d.elemMain[o]).addClass("laydate-time-show"),ye[0]&&ye.remove(),V[2].appendChild(he),E(N).find("ol").each(function(se){var Y=this;E(Y).find("li").on("click",function(){var Q=0|this.innerHTML;E(this).hasClass($)||(g.range?d[H][te[se]]=Q:f[te[se]]=Q,E(Y).find("."+A).removeClass(A),E(this).addClass(A),xe(),ue(),(d.endDate||g.type==="time")&&d.done(null,"change"),d.setBtnStatus())})})}return d},M.prototype.listYM=[],M.prototype.closeList=function(){var s=this;s.config,E.each(s.elemCont,function(o,d){E(this).find("."+y).remove(),E(s.elemMain[o]).removeClass("laydate-ym-show laydate-time-show")}),E(s.elem).find("."+q).remove()},M.prototype.setBtnStatus=function(s,o,d){var g,f=this,w=f.config,S=E(f.footer).find(k),N=w.range&&w.type!=="date"&&w.type!=="time";N&&(o=o||f.startDate,d=d||f.endDate,g=f.newDate(o).getTime()>f.newDate(d).getTime(),f.limit(null,o)||f.limit(null,d)?S.addClass($):S[g?"addClass":"removeClass"]($),s&&g&&f.hint(typeof s=="string"?v.replace(/日期/g,s):v))},M.prototype.parse=function(s,o){var d=this,g=d.config,f=o||(s?E.extend({},d.endDate,d.endTime):g.range?E.extend({},d.startDate,d.startTime):g.dateTime),w=d.format.concat();return E.each(w,function(S,N){/yyyy|y/.test(N)?w[S]=E.digit(f.year,N.length):/MM|M/.test(N)?w[S]=E.digit(f.month+1,N.length):/dd|d/.test(N)?w[S]=E.digit(f.date,N.length):/HH|H/.test(N)?w[S]=E.digit(f.hours,N.length):/mm|m/.test(N)?w[S]=E.digit(f.minutes,N.length):/ss|s/.test(N)&&(w[S]=E.digit(f.seconds,N.length))}),g.range&&!s?w.join("")+" "+g.range+" "+d.parse(1):w.join("")},M.prototype.newDate=function(s){return s=s||{},new Date(s.year||1,s.month||0,s.date||1,s.hours||0,s.minutes||0,s.seconds||0)},M.prototype.setValue=function(s){var o=this,d=o.config,g=o.bindElem||d.elem[0],f=o.isInput(g)?"val":"html";return d.position==="static"||E(g)[f](s||""),this},M.prototype.stampRange=function(){var s,o,d=this,g=d.config,f=E(d.elem).find("td");if(g.range&&!d.endDate&&E(d.footer).find(k).addClass($),d.endDate)return s=d.newDate({year:d.startDate.year,month:d.startDate.month,date:d.startDate.date}).getTime(),o=d.newDate({year:d.endDate.year,month:d.endDate.month,date:d.endDate.date}).getTime(),s>o?d.hint(v):void E.each(f,function(w,S){var N=E(S).attr("lay-ymd").split("-"),V=d.newDate({year:N[0],month:N[1]-1,date:N[2]}).getTime();E(S).removeClass(u+" "+A),V!==s&&V!==o||E(S).addClass(E(S).hasClass(c)||E(S).hasClass(m)?u:A),V>s&&V0&&t-1 in e)}function O(e,t,n){if(i.isFunction(t))return i.grep(e,function(a,r){return!!t.call(a,r,a)!==n});if(t.nodeType)return i.grep(e,function(a){return a===t!==n});if(typeof t=="string"){if(ri.test(t))return i.filter(t,e,n);t=i.filter(t,e)}return i.grep(e,function(a){return i.inArray(a,t)>-1!==n})}function ie(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}function G(e){var t={};return i.each(e.match(lt)||[],function(n,a){t[a]=!0}),t}function A(){we.addEventListener?(we.removeEventListener("DOMContentLoaded",$),oe.removeEventListener("load",$)):(we.detachEvent("onreadystatechange",$),oe.detachEvent("onload",$))}function $(){(we.addEventListener||oe.event.type==="load"||we.readyState==="complete")&&(A(),i.ready())}function v(e,t,n){if(n===void 0&&e.nodeType===1){var a="data-"+t.replace(fi,"-$1").toLowerCase();if(n=e.getAttribute(a),typeof n=="string"){try{n=n==="true"||n!=="false"&&(n==="null"?null:+n+""===n?+n:di.test(n)?i.parseJSON(n):n)}catch(r){}i.data(e,t,n)}else n=void 0}return n}function L(e){var t;for(t in e)if((t!=="data"||!i.isEmptyObject(e[t]))&&t!=="toJSON")return!1;return!0}function F(e,t,n,a){if(It(e)){var r,l,p=i.expando,j=e.nodeType,B=j?i.cache:e,R=j?e[p]:e[p]&&p;if(R&&B[R]&&(a||B[R].data)||n!==void 0||typeof t!="string")return R||(R=j?e[p]=Fe.pop()||i.guid++:p),B[R]||(B[R]=j?{}:{toJSON:i.noop}),typeof t!="object"&&typeof t!="function"||(a?B[R]=i.extend(B[R],t):B[R].data=i.extend(B[R].data,t)),l=B[R],a||(l.data||(l.data={}),l=l.data),n!==void 0&&(l[i.camelCase(t)]=n),typeof t=="string"?(r=l[t],r==null&&(r=l[i.camelCase(t)])):r=l,r}}function y(e,t,n){if(It(e)){var a,r,l=e.nodeType,p=l?i.cache:e,j=l?e[i.expando]:i.expando;if(p[j]){if(t&&(a=n?p[j]:p[j].data)){for(i.isArray(t)?t=t.concat(i.map(t,i.camelCase)):(t in a)?t=[t]:(t=i.camelCase(t),t=t in a?[t]:t.split(" ")),r=t.length;r--;)delete a[t[r]];if(n?!L(a):!i.isEmptyObject(a))return}(n||(delete p[j].data,L(p[j])))&&(l?i.cleanData([e],!0):ge.deleteExpando||p!=p.window?delete p[j]:p[j]=void 0)}}}function u(e,t,n,a){var r,l=1,p=20,j=a?function(){return a.cur()}:function(){return i.css(e,t,"")},B=j(),R=n&&n[3]||(i.cssNumber[t]?"":"px"),de=(i.cssNumber[t]||R!=="px"&&+B)&&nn.exec(i.css(e,t));if(de&&de[3]!==R){R=R||de[3],n=n||[],de=+B||1;do l=l||".5",de/=l,i.style(e,t,de+R);while(l!==(l=j()/B)&&l!==1&&--p)}return n&&(de=+de||+B||0,r=n[1]?de+(n[1]+1)*n[2]:+n[2],a&&(a.unit=R,a.start=de,a.end=r)),r}function h(e){var t=An.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function c(e,t){var n,a,r=0,l=typeof e.getElementsByTagName!="undefined"?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!="undefined"?e.querySelectorAll(t||"*"):void 0;if(!l)for(l=[],n=e.childNodes||e;(a=n[r])!=null;r++)!t||i.nodeName(a,t)?l.push(a):i.merge(l,c(a,t));return t===void 0||t&&i.nodeName(e,t)?i.merge([e],l):l}function m(e,t){for(var n,a=0;(n=e[a])!=null;a++)i._data(n,"globalEval",!t||i._data(t[a],"globalEval"))}function D(e){an.test(e.type)&&(e.defaultChecked=e.checked)}function k(e,t,n,a,r){for(var l,p,j,B,R,de,U,me=e.length,be=h(t),He=[],qe=0;qe"||jn.test(p)?0:B:B.firstChild,l=p&&p.childNodes.length;l--;)i.nodeName(de=p.childNodes[l],"tbody")&&!de.childNodes.length&&p.removeChild(de);for(i.merge(He,B.childNodes),B.textContent="";B.firstChild;)B.removeChild(B.firstChild);B=be.lastChild}else He.push(t.createTextNode(p));for(B&&be.removeChild(B),ge.appendChecked||i.grep(c(He,"input"),D),qe=0;p=He[qe++];)if(a&&i.inArray(p,a)>-1)r&&r.push(p);else if(j=i.contains(p.ownerDocument,p),B=c(be.appendChild(p),"script"),j&&m(B),n)for(l=0;p=B[l++];)Ln.test(p.type||"")&&n.push(p);return B=null,be}function q(){return!0}function z(){return!1}function M(){try{return we.activeElement}catch(e){}}function E(e,t,n,a,r,l){var p,j;if(typeof t=="object"){typeof n!="string"&&(a=a||n,n=void 0);for(j in t)E(e,j,n,a,t[j],l);return e}if(a==null&&r==null?(r=n,a=n=void 0):r==null&&(typeof n=="string"?(r=a,a=void 0):(r=a,a=n,n=void 0)),r===!1)r=z;else if(!r)return e;return l===1&&(p=r,r=function(B){return i().off(B),p.apply(this,arguments)},r.guid=p.guid||(p.guid=i.guid++)),e.each(function(){i.event.add(this,t,r,a,n)})}function ee(e,t){return i.nodeName(e,"table")&&i.nodeName(t.nodeType!==11?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function s(e){return e.type=(i.find.attr(e,"type")!==null)+"/"+e.type,e}function o(e){var t=xi.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function d(e,t){if(t.nodeType===1&&i.hasData(e)){var n,a,r,l=i._data(e),p=i._data(t,l),j=l.events;if(j){delete p.handle,p.events={};for(n in j)for(a=0,r=j[n].length;a1&&typeof be=="string"&&!ge.checkClone&&bi.test(be))return e.each(function(qe){var Be=e.eq(qe);He&&(t[0]=be.call(this,qe,Be.html())),f(Be,t,n,a)});if(U&&(R=k(t,e[0].ownerDocument,!1,e,a),r=R.firstChild,R.childNodes.length===1&&(R=r),r||a)){for(j=i.map(c(R,"script"),s),p=j.length;de")).appendTo(t.documentElement),t=(Pt[0].contentWindow||Pt[0].contentDocument).document,t.write(),t.close(),n=S(e,t),Pt.detach()),Fn[e]=n),n}function V(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function Z(e){if(e in _n)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=Bn.length;n--;)if(e=Bn[n]+t,e in _n)return e}function X(e,t){for(var n,a,r,l=[],p=0,j=e.length;p=0&&n=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||i.type(e)!=="object"||e.nodeType||i.isWindow(e))return!1;try{if(e.constructor&&!St.call(e,"constructor")&&!St.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(!ge.ownFirst)for(t in e)return St.call(e,t);for(t in e);return t===void 0||St.call(e,t)},type:function(e){return e==null?e+"":typeof e=="object"||typeof e=="function"?Rt[ti.call(e)]||"object":typeof e},globalEval:function(e){e&&i.trim(e)&&(oe.execScript||function(t){oe.eval.call(oe,t)})(e)},camelCase:function(e){return e.replace(ii,"ms-").replace(ai,oi)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,a=0;if(_(e))for(n=e.length;aCe.cacheLength&&delete T[I.shift()],T[W+" "]=ne}var I=[];return T}function a(T){return T[Oe]=!0,T}function r(T){var I=_e.createElement("div");try{return!!T(I)}catch(W){return!1}finally{I.parentNode&&I.parentNode.removeChild(I),I=null}}function l(T,I){for(var W=T.split("|"),ne=W.length;ne--;)Ce.attrHandle[W[ne]]=I}function p(T,I){var W=I&&T,ne=W&&T.nodeType===1&&I.nodeType===1&&(~I.sourceIndex||Un)-(~T.sourceIndex||Un);if(ne)return ne;if(W){for(;W=W.nextSibling;)if(W===I)return-1}return T?1:-1}function j(T){return function(I){var W=I.nodeName.toLowerCase();return W==="input"&&I.type===T}}function B(T){return function(I){var W=I.nodeName.toLowerCase();return(W==="input"||W==="button")&&I.type===T}}function R(T){return a(function(I){return I=+I,a(function(W,ne){for(var K,ce=T([],W.length,I),re=ce.length;re--;)W[K=ce[re]]&&(W[K]=!(ne[K]=W[K]))})})}function de(T){return T&&typeof T.getElementsByTagName!="undefined"&&T}function U(){}function me(T){for(var I=0,W=T.length,ne="";I1?function(I,W,ne){for(var K=T.length;K--;)if(!T[K](I,W,ne))return!1;return!0}:T[0]}function qe(T,I,W){for(var ne=0,K=I.length;ne-1&&(re[Se]=!(ve[Se]=Pe))}}else $e=Be($e===ve?$e.splice(Ve,$e.length):$e),K?K(null,ve,$e,Ne):gt.apply(ve,$e)})}function Ht(T){for(var I,W,ne,K=T.length,ce=Ce.relative[T[0].type],re=ce||Ce.relative[" "],ve=ce?1:0,De=be(function(Ae){return Ae===I},re,!0),Ne=be(function(Ae){return Et(I,Ae)>-1},re,!0),Se=[function(Ae,Pe,ze){var Le=!ce&&(ze||Pe!==st)||((I=Pe).nodeType?De(Ae,Pe,ze):Ne(Ae,Pe,ze));return I=null,Le}];ve1&&He(Se),ve>1&&me(T.slice(0,ve-1).concat({value:T[ve-2].type===" "?"*":""})).replace(Gt,"$1"),W,ve0,ne=T.length>0,K=function(ce,re,ve,De,Ne){var Se,Ae,Pe,ze=0,Le="0",Ve=ce&&[],Ke=[],Ze=st,$e=ce||ne&&Ce.find.TAG("*",Ne),Wt=ft+=Ze==null?1:Math.random()||.1,Ot=$e.length;for(Ne&&(st=re===_e||re||Ne);Le!==Ot&&(Se=$e[Le])!=null;Le++){if(ne&&Se){for(Ae=0,re||Se.ownerDocument===_e||(Xe(Se),ve=!at);Pe=T[Ae++];)if(Pe(Se,re||_e,ve)){De.push(Se);break}Ne&&(ft=Wt)}W&&((Se=!Pe&&Se)&&ze--,ce&&Ve.push(Se))}if(ze+=Le,W&&Le!==ze){for(Ae=0;Pe=I[Ae++];)Pe(Ve,Ke,re,ve);if(ce){if(ze>0)for(;Le--;)Ve[Le]||Ke[Le]||(Ke[Le]=Ji.call(De));Ke=Be(Ke)}gt.apply(De,Ke),Ne&&!ce&&Ke.length>0&&ze+I.length>1&&t.uniqueSort(De)}return Ne&&(ft=Wt,st=Ze),Ve};return W?a(K):K}var dt,Te,Ce,Re,vt,kt,nt,Ft,st,Ue,Qe,Xe,_e,it,at,Je,Ct,Kt,_t,Oe="sizzle"+1*new Date,ot=e.document,ft=0,Xi=0,Jn=n(),Kn=n(),Ut=n(),vn=function(T,I){return T===I&&(Qe=!0),0},Un=1<<31,Vi={}.hasOwnProperty,Tt=[],Ji=Tt.pop,Ki=Tt.push,gt=Tt.push,Gn=Tt.slice,Et=function(T,I){for(var W=0,ne=T.length;W+~]|"+We+")"+We+"*"),Zi=new RegExp("="+We+`*([^\\]'"]*?)`+We+"*\\]","g"),ea=new RegExp(bn),Zn=new RegExp("^"+Dt+"$"),Qt={ID:new RegExp("^#("+Dt+")"),CLASS:new RegExp("^\\.("+Dt+")"),TAG:new RegExp("^("+Dt+"|[*])"),ATTR:new RegExp("^"+Qn),PSEUDO:new RegExp("^"+bn),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+We+"*(even|odd|(([+-]|)(\\d*)n|)"+We+"*(?:([+-]|)"+We+"*(\\d+)|))"+We+"*\\)|)","i"),bool:new RegExp("^(?:"+gn+")$","i"),needsContext:new RegExp("^"+We+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+We+"*((?:-\\d)?\\d*)"+We+"*\\)|)(?=[^-]|$)","i")},ta=/^(?:input|select|textarea|button)$/i,na=/^h\d$/i,zt=/^[^{]+\{\s*\[native \w/,ia=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,xn=/[+~]/,aa=/'|\\/g,pt=new RegExp("\\\\([\\da-f]{1,6}"+We+"?|("+We+")|.)","ig"),ht=function(T,I,W){var ne="0x"+I-65536;return ne!==ne||W?I:ne<0?String.fromCharCode(ne+65536):String.fromCharCode(ne>>10|55296,1023&ne|56320)},ei=function(){Xe()};try{gt.apply(Tt=Gn.call(ot.childNodes),ot.childNodes),Tt[ot.childNodes.length].nodeType}catch(T){gt={apply:Tt.length?function(I,W){Ki.apply(I,Gn.call(W))}:function(I,W){for(var ne=I.length,K=0;I[ne++]=W[K++];);I.length=ne-1}}}Te=t.support={},vt=t.isXML=function(T){var I=T&&(T.ownerDocument||T).documentElement;return!!I&&I.nodeName!=="HTML"},Xe=t.setDocument=function(T){var I,W,ne=T?T.ownerDocument||T:ot;return ne!==_e&&ne.nodeType===9&&ne.documentElement&&(_e=ne,it=_e.documentElement,at=!vt(_e),(W=_e.defaultView)&&W.top!==W&&(W.addEventListener?W.addEventListener("unload",ei,!1):W.attachEvent&&W.attachEvent("onunload",ei)),Te.attributes=r(function(K){return K.className="i",!K.getAttribute("className")}),Te.getElementsByTagName=r(function(K){return K.appendChild(_e.createComment("")),!K.getElementsByTagName("*").length}),Te.getElementsByClassName=zt.test(_e.getElementsByClassName),Te.getById=r(function(K){return it.appendChild(K).id=Oe,!_e.getElementsByName||!_e.getElementsByName(Oe).length}),Te.getById?(Ce.find.ID=function(K,ce){if(typeof ce.getElementById!="undefined"&&at){var re=ce.getElementById(K);return re?[re]:[]}},Ce.filter.ID=function(K){var ce=K.replace(pt,ht);return function(re){return re.getAttribute("id")===ce}}):(delete Ce.find.ID,Ce.filter.ID=function(K){var ce=K.replace(pt,ht);return function(re){var ve=typeof re.getAttributeNode!="undefined"&&re.getAttributeNode("id");return ve&&ve.value===ce}}),Ce.find.TAG=Te.getElementsByTagName?function(K,ce){return typeof ce.getElementsByTagName!="undefined"?ce.getElementsByTagName(K):Te.qsa?ce.querySelectorAll(K):void 0}:function(K,ce){var re,ve=[],De=0,Ne=ce.getElementsByTagName(K);if(K==="*"){for(;re=Ne[De++];)re.nodeType===1&&ve.push(re);return ve}return Ne},Ce.find.CLASS=Te.getElementsByClassName&&function(K,ce){if(typeof ce.getElementsByClassName!="undefined"&&at)return ce.getElementsByClassName(K)},Ct=[],Je=[],(Te.qsa=zt.test(_e.querySelectorAll))&&(r(function(K){it.appendChild(K).innerHTML="",K.querySelectorAll("[msallowcapture^='']").length&&Je.push("[*^$]="+We+`*(?:''|"")`),K.querySelectorAll("[selected]").length||Je.push("\\["+We+"*(?:value|"+gn+")"),K.querySelectorAll("[id~="+Oe+"-]").length||Je.push("~="),K.querySelectorAll(":checked").length||Je.push(":checked"),K.querySelectorAll("a#"+Oe+"+*").length||Je.push(".#.+[+~]")}),r(function(K){var ce=_e.createElement("input");ce.setAttribute("type","hidden"),K.appendChild(ce).setAttribute("name","D"),K.querySelectorAll("[name=d]").length&&Je.push("name"+We+"*[*^$|!~]?="),K.querySelectorAll(":enabled").length||Je.push(":enabled",":disabled"),K.querySelectorAll("*,:x"),Je.push(",.*:")})),(Te.matchesSelector=zt.test(Kt=it.matches||it.webkitMatchesSelector||it.mozMatchesSelector||it.oMatchesSelector||it.msMatchesSelector))&&r(function(K){Te.disconnectedMatch=Kt.call(K,"div"),Kt.call(K,"[s!='']:x"),Ct.push("!=",bn)}),Je=Je.length&&new RegExp(Je.join("|")),Ct=Ct.length&&new RegExp(Ct.join("|")),I=zt.test(it.compareDocumentPosition),_t=I||zt.test(it.contains)?function(K,ce){var re=K.nodeType===9?K.documentElement:K,ve=ce&&ce.parentNode;return K===ve||!(!ve||ve.nodeType!==1||!(re.contains?re.contains(ve):K.compareDocumentPosition&&16&K.compareDocumentPosition(ve)))}:function(K,ce){if(ce){for(;ce=ce.parentNode;)if(ce===K)return!0}return!1},vn=I?function(K,ce){if(K===ce)return Qe=!0,0;var re=!K.compareDocumentPosition-!ce.compareDocumentPosition;return re||(re=(K.ownerDocument||K)===(ce.ownerDocument||ce)?K.compareDocumentPosition(ce):1,1&re||!Te.sortDetached&&ce.compareDocumentPosition(K)===re?K===_e||K.ownerDocument===ot&&_t(ot,K)?-1:ce===_e||ce.ownerDocument===ot&&_t(ot,ce)?1:Ue?Et(Ue,K)-Et(Ue,ce):0:4&re?-1:1)}:function(K,ce){if(K===ce)return Qe=!0,0;var re,ve=0,De=K.parentNode,Ne=ce.parentNode,Se=[K],Ae=[ce];if(!De||!Ne)return K===_e?-1:ce===_e?1:De?-1:Ne?1:Ue?Et(Ue,K)-Et(Ue,ce):0;if(De===Ne)return p(K,ce);for(re=K;re=re.parentNode;)Se.unshift(re);for(re=ce;re=re.parentNode;)Ae.unshift(re);for(;Se[ve]===Ae[ve];)ve++;return ve?p(Se[ve],Ae[ve]):Se[ve]===ot?-1:Ae[ve]===ot?1:0}),_e},t.matches=function(T,I){return t(T,null,null,I)},t.matchesSelector=function(T,I){if((T.ownerDocument||T)!==_e&&Xe(T),I=I.replace(Zi,"='$1']"),Te.matchesSelector&&at&&!Ut[I+" "]&&(!Ct||!Ct.test(I))&&(!Je||!Je.test(I)))try{var W=Kt.call(T,I);if(W||Te.disconnectedMatch||T.document&&T.document.nodeType!==11)return W}catch(ne){}return t(I,_e,null,[T]).length>0},t.contains=function(T,I){return(T.ownerDocument||T)!==_e&&Xe(T),_t(T,I)},t.attr=function(T,I){(T.ownerDocument||T)!==_e&&Xe(T);var W=Ce.attrHandle[I.toLowerCase()],ne=W&&Vi.call(Ce.attrHandle,I.toLowerCase())?W(T,I,!at):void 0;return ne!==void 0?ne:Te.attributes||!at?T.getAttribute(I):(ne=T.getAttributeNode(I))&&ne.specified?ne.value:null},t.error=function(T){throw new Error("Syntax error, unrecognized expression: "+T)},t.uniqueSort=function(T){var I,W=[],ne=0,K=0;if(Qe=!Te.detectDuplicates,Ue=!Te.sortStable&&T.slice(0),T.sort(vn),Qe){for(;I=T[K++];)I===T[K]&&(ne=W.push(K));for(;ne--;)T.splice(W[ne],1)}return Ue=null,T},Re=t.getText=function(T){var I,W="",ne=0,K=T.nodeType;if(K){if(K===1||K===9||K===11){if(typeof T.textContent=="string")return T.textContent;for(T=T.firstChild;T;T=T.nextSibling)W+=Re(T)}else if(K===3||K===4)return T.nodeValue}else for(;I=T[ne++];)W+=Re(I);return W},Ce=t.selectors={cacheLength:50,createPseudo:a,match:Qt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(T){return T[1]=T[1].replace(pt,ht),T[3]=(T[3]||T[4]||T[5]||"").replace(pt,ht),T[2]==="~="&&(T[3]=" "+T[3]+" "),T.slice(0,4)},CHILD:function(T){return T[1]=T[1].toLowerCase(),T[1].slice(0,3)==="nth"?(T[3]||t.error(T[0]),T[4]=+(T[4]?T[5]+(T[6]||1):2*(T[3]==="even"||T[3]==="odd")),T[5]=+(T[7]+T[8]||T[3]==="odd")):T[3]&&t.error(T[0]),T},PSEUDO:function(T){var I,W=!T[6]&&T[2];return Qt.CHILD.test(T[0])?null:(T[3]?T[2]=T[4]||T[5]||"":W&&ea.test(W)&&(I=kt(W,!0))&&(I=W.indexOf(")",W.length-I)-W.length)&&(T[0]=T[0].slice(0,I),T[2]=W.slice(0,I)),T.slice(0,3))}},filter:{TAG:function(T){var I=T.replace(pt,ht).toLowerCase();return T==="*"?function(){return!0}:function(W){return W.nodeName&&W.nodeName.toLowerCase()===I}},CLASS:function(T){var I=Jn[T+" "];return I||(I=new RegExp("(^|"+We+")"+T+"("+We+"|$)"))&&Jn(T,function(W){return I.test(typeof W.className=="string"&&W.className||typeof W.getAttribute!="undefined"&&W.getAttribute("class")||"")})},ATTR:function(T,I,W){return function(ne){var K=t.attr(ne,T);return K==null?I==="!=":!I||(K+="",I==="="?K===W:I==="!="?K!==W:I==="^="?W&&K.indexOf(W)===0:I==="*="?W&&K.indexOf(W)>-1:I==="$="?W&&K.slice(-W.length)===W:I==="~="?(" "+K.replace(Ui," ")+" ").indexOf(W)>-1:I==="|="&&(K===W||K.slice(0,W.length+1)===W+"-"))}},CHILD:function(T,I,W,ne,K){var ce=T.slice(0,3)!=="nth",re=T.slice(-4)!=="last",ve=I==="of-type";return ne===1&&K===0?function(De){return!!De.parentNode}:function(De,Ne,Se){var Ae,Pe,ze,Le,Ve,Ke,Ze=ce!==re?"nextSibling":"previousSibling",$e=De.parentNode,Wt=ve&&De.nodeName.toLowerCase(),Ot=!Se&&!ve,et=!1;if($e){if(ce){for(;Ze;){for(Le=De;Le=Le[Ze];)if(ve?Le.nodeName.toLowerCase()===Wt:Le.nodeType===1)return!1;Ke=Ze=T==="only"&&!Ke&&"nextSibling"}return!0}if(Ke=[re?$e.firstChild:$e.lastChild],re&&Ot){for(Le=$e,ze=Le[Oe]||(Le[Oe]={}),Pe=ze[Le.uniqueID]||(ze[Le.uniqueID]={}),Ae=Pe[T]||[],Ve=Ae[0]===ft&&Ae[1],et=Ve&&Ae[2],Le=Ve&&$e.childNodes[Ve];Le=++Ve&&Le&&Le[Ze]||(et=Ve=0)||Ke.pop();)if(Le.nodeType===1&&++et&&Le===De){Pe[T]=[ft,Ve,et];break}}else if(Ot&&(Le=De,ze=Le[Oe]||(Le[Oe]={}),Pe=ze[Le.uniqueID]||(ze[Le.uniqueID]={}),Ae=Pe[T]||[],Ve=Ae[0]===ft&&Ae[1],et=Ve),et===!1)for(;(Le=++Ve&&Le&&Le[Ze]||(et=Ve=0)||Ke.pop())&&((ve?Le.nodeName.toLowerCase()!==Wt:Le.nodeType!==1)||!++et||(Ot&&(ze=Le[Oe]||(Le[Oe]={}),Pe=ze[Le.uniqueID]||(ze[Le.uniqueID]={}),Pe[T]=[ft,et]),Le!==De)););return et-=K,et===ne||et%ne==0&&et/ne>=0}}},PSEUDO:function(T,I){var W,ne=Ce.pseudos[T]||Ce.setFilters[T.toLowerCase()]||t.error("unsupported pseudo: "+T);return ne[Oe]?ne(I):ne.length>1?(W=[T,T,"",I],Ce.setFilters.hasOwnProperty(T.toLowerCase())?a(function(K,ce){for(var re,ve=ne(K,I),De=ve.length;De--;)re=Et(K,ve[De]),K[re]=!(ce[re]=ve[De])}):function(K){return ne(K,0,W)}):ne}},pseudos:{not:a(function(T){var I=[],W=[],ne=nt(T.replace(Gt,"$1"));return ne[Oe]?a(function(K,ce,re,ve){for(var De,Ne=ne(K,null,ve,[]),Se=K.length;Se--;)(De=Ne[Se])&&(K[Se]=!(ce[Se]=De))}):function(K,ce,re){return I[0]=K,ne(I,null,re,W),I[0]=null,!W.pop()}}),has:a(function(T){return function(I){return t(T,I).length>0}}),contains:a(function(T){return T=T.replace(pt,ht),function(I){return(I.textContent||I.innerText||Re(I)).indexOf(T)>-1}}),lang:a(function(T){return Zn.test(T||"")||t.error("unsupported lang: "+T),T=T.replace(pt,ht).toLowerCase(),function(I){var W;do if(W=at?I.lang:I.getAttribute("xml:lang")||I.getAttribute("lang"))return W=W.toLowerCase(),W===T||W.indexOf(T+"-")===0;while((I=I.parentNode)&&I.nodeType===1);return!1}}),target:function(T){var I=e.location&&e.location.hash;return I&&I.slice(1)===T.id},root:function(T){return T===it},focus:function(T){return T===_e.activeElement&&(!_e.hasFocus||_e.hasFocus())&&!!(T.type||T.href||~T.tabIndex)},enabled:function(T){return T.disabled===!1},disabled:function(T){return T.disabled===!0},checked:function(T){var I=T.nodeName.toLowerCase();return I==="input"&&!!T.checked||I==="option"&&!!T.selected},selected:function(T){return T.parentNode&&T.parentNode.selectedIndex,T.selected===!0},empty:function(T){for(T=T.firstChild;T;T=T.nextSibling)if(T.nodeType<6)return!1;return!0},parent:function(T){return!Ce.pseudos.empty(T)},header:function(T){return na.test(T.nodeName)},input:function(T){return ta.test(T.nodeName)},button:function(T){var I=T.nodeName.toLowerCase();return I==="input"&&T.type==="button"||I==="button"},text:function(T){var I;return T.nodeName.toLowerCase()==="input"&&T.type==="text"&&((I=T.getAttribute("type"))==null||I.toLowerCase()==="text")},first:R(function(){return[0]}),last:R(function(T,I){return[I-1]}),eq:R(function(T,I,W){return[W<0?W+I:W]}),even:R(function(T,I){for(var W=0;W=0;)T.push(ne);return T}),gt:R(function(T,I,W){for(var ne=W<0?W+I:W;++ne2&&(re=ce[0]).type==="ID"&&Te.getById&&I.nodeType===9&&at&&Ce.relative[ce[1].type]){if(I=(Ce.find.ID(re.matches[0].replace(pt,ht),I)||[])[0],!I)return W;Ne&&(I=I.parentNode),T=T.slice(ce.shift().value.length)}for(K=Qt.needsContext.test(T)?0:ce.length;K--&&(re=ce[K],!Ce.relative[ve=re.type]);)if((De=Ce.find[ve])&&(ne=De(re.matches[0].replace(pt,ht),xn.test(ce[0].type)&&de(I.parentNode)||I))){if(ce.splice(K,1),T=ne.length&&me(ce),!T)return gt.apply(W,ne),W;break}}return(Ne||nt(T,Se))(ne,I,!at,W,!I||xn.test(T)&&de(I.parentNode)||I),W},Te.sortStable=Oe.split("").sort(vn).join("")===Oe,Te.detectDuplicates=!!Qe,Xe(),Te.sortDetached=r(function(T){return 1&T.compareDocumentPosition(_e.createElement("div"))}),r(function(T){return T.innerHTML="",T.firstChild.getAttribute("href")==="#"})||l("type|href|height|width",function(T,I,W){if(!W)return T.getAttribute(I,I.toLowerCase()==="type"?1:2)}),Te.attributes&&r(function(T){return T.innerHTML="",T.firstChild.setAttribute("value",""),T.firstChild.getAttribute("value")===""})||l("value",function(T,I,W){if(!W&&T.nodeName.toLowerCase()==="input")return T.defaultValue}),r(function(T){return T.getAttribute("disabled")==null})||l(gn,function(T,I,W){var ne;if(!W)return T[I]===!0?I.toLowerCase():(ne=T.getAttributeNode(I))&&ne.specified?ne.value:null}),t}(oe);i.find=Lt,i.expr=Lt.selectors,i.expr[":"]=i.expr.pseudos,i.uniqueSort=i.unique=Lt.uniqueSort,i.text=Lt.getText,i.isXMLDoc=Lt.isXML,i.contains=Lt.contains;var At=function(e,t,n){for(var a=[],r=n!==void 0;(e=e[t])&&e.nodeType!==9;)if(e.nodeType===1){if(r&&i(e).is(n))break;a.push(e)}return a},Cn=function(e,t){for(var n=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n},Tn=i.expr.match.needsContext,En=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,ri=/^.[^:#\[\.,]*$/;i.filter=function(e,t,n){var a=t[0];return n&&(e=":not("+e+")"),t.length===1&&a.nodeType===1?i.find.matchesSelector(a,e)?[a]:[]:i.find.matches(e,i.grep(t,function(r){return r.nodeType===1}))},i.fn.extend({find:function(e){var t,n=[],a=this,r=a.length;if(typeof e!="string")return this.pushStack(i(e).filter(function(){for(t=0;t1?i.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(O(this,e||[],!1))},not:function(e){return this.pushStack(O(this,e||[],!0))},is:function(e){return!!O(this,typeof e=="string"&&Tn.test(e)?i(e):e||[],!1).length}});var en,li=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,si=i.fn.init=function(e,t,n){var a,r;if(!e)return this;if(n=n||en,typeof e=="string"){if(a=e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?[null,e,null]:li.exec(e),!a||!a[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(a[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(a[1],t&&t.nodeType?t.ownerDocument||t:we,!0)),En.test(a[1])&&i.isPlainObject(t))for(a in t)i.isFunction(this[a])?this[a](t[a]):this.attr(a,t[a]);return this}if(r=we.getElementById(a[2]),r&&r.parentNode){if(r.id!==a[2])return en.find(e);this.length=1,this[0]=r}return this.context=we,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):i.isFunction(e)?typeof n.ready!="undefined"?n.ready(e):e(i):(e.selector!==void 0&&(this.selector=e.selector,this.context=e.context),i.makeArray(e,this))};si.prototype=i.fn,en=i(we);var ci=/^(?:parents|prev(?:Until|All))/,ui={children:!0,contents:!0,next:!0,prev:!0};i.fn.extend({has:function(e){var t,n=i(e,this),a=n.length;return this.filter(function(){for(t=0;t-1:n.nodeType===1&&i.find.matchesSelector(n,e))){l.push(n);break}return this.pushStack(l.length>1?i.uniqueSort(l):l)},index:function(e){return e?typeof e=="string"?i.inArray(this[0],i(e)):i.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}}),i.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return At(e,"parentNode")},parentsUntil:function(e,t,n){return At(e,"parentNode",n)},next:function(e){return ie(e,"nextSibling")},prev:function(e){return ie(e,"previousSibling")},nextAll:function(e){return At(e,"nextSibling")},prevAll:function(e){return At(e,"previousSibling")},nextUntil:function(e,t,n){return At(e,"nextSibling",n)},prevUntil:function(e,t,n){return At(e,"previousSibling",n)},siblings:function(e){return Cn((e.parentNode||{}).firstChild,e)},children:function(e){return Cn(e.firstChild)},contents:function(e){return i.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:i.merge([],e.childNodes)}},function(e,t){i.fn[e]=function(n,a){var r=i.map(this,t,n);return e.slice(-5)!=="Until"&&(a=n),a&&typeof a=="string"&&(r=i.filter(a,r)),this.length>1&&(ui[e]||(r=i.uniqueSort(r)),ci.test(e)&&(r=r.reverse())),this.pushStack(r)}});var lt=/\S+/g;i.Callbacks=function(e){e=typeof e=="string"?G(e):i.extend({},e);var t,n,a,r,l=[],p=[],j=-1,B=function(){for(r=e.once,a=t=!0;p.length;j=-1)for(n=p.shift();++j-1;)l.splice(me,1),me<=j&&j--}),this},has:function(de){return de?i.inArray(de,l)>-1:l.length>0},empty:function(){return l&&(l=[]),this},disable:function(){return r=p=[],l=n="",this},disabled:function(){return!l},lock:function(){return r=!0,n||R.disable(),this},locked:function(){return!!r},fireWith:function(de,U){return r||(U=U||[],U=[de,U.slice?U.slice():U],p.push(U),t||B()),this},fire:function(){return R.fireWith(this,arguments),this},fired:function(){return!!a}};return R},i.extend({Deferred:function(e){var t=[["resolve","done",i.Callbacks("once memory"),"resolved"],["reject","fail",i.Callbacks("once memory"),"rejected"],["notify","progress",i.Callbacks("memory")]],n="pending",a={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var l=arguments;return i.Deferred(function(p){i.each(t,function(j,B){var R=i.isFunction(l[j])&&l[j];r[B[1]](function(){var de=R&&R.apply(this,arguments);de&&i.isFunction(de.promise)?de.promise().progress(p.notify).done(p.resolve).fail(p.reject):p[B[0]+"With"](this===a?p.promise():this,R?[de]:arguments)})}),l=null}).promise()},promise:function(l){return l!=null?i.extend(l,a):a}},r={};return a.pipe=a.then,i.each(t,function(l,p){var j=p[2],B=p[3];a[p[1]]=j.add,B&&j.add(function(){n=B},t[1^l][2].disable,t[2][2].lock),r[p[0]]=function(){return r[p[0]+"With"](this===r?a:this,arguments),this},r[p[0]+"With"]=j.fireWith}),a.promise(r),e&&e.call(r,r),r},when:function(e){var t,n,a,r=0,l=Ie.call(arguments),p=l.length,j=p!==1||e&&i.isFunction(e.promise)?p:0,B=j===1?e:i.Deferred(),R=function(de,U,me){return function(be){U[de]=this,me[de]=arguments.length>1?Ie.call(arguments):be,me===t?B.notifyWith(U,me):--j||B.resolveWith(U,me)}};if(p>1)for(t=new Array(p),n=new Array(p),a=new Array(p);r0||($t.resolveWith(we,[i]),i.fn.triggerHandler&&(i(we).triggerHandler("ready"),i(we).off("ready"))))}}),i.ready.promise=function(e){if(!$t)if($t=i.Deferred(),we.readyState==="complete"||we.readyState!=="loading"&&!we.documentElement.doScroll)oe.setTimeout(i.ready);else if(we.addEventListener)we.addEventListener("DOMContentLoaded",$),oe.addEventListener("load",$);else{we.attachEvent("onreadystatechange",$),oe.attachEvent("onload",$);var t=!1;try{t=oe.frameElement==null&&we.documentElement}catch(n){}t&&t.doScroll&&function n(){if(!i.isReady){try{t.doScroll("left")}catch(a){return oe.setTimeout(n,50)}A(),i.ready()}}()}return $t.promise(e)},i.ready.promise();var Dn;for(Dn in i(ge))break;ge.ownFirst=Dn==="0",ge.inlineBlockNeedsLayout=!1,i(function(){var e,t,n,a;n=we.getElementsByTagName("body")[0],n&&n.style&&(t=we.createElement("div"),a=we.createElement("div"),a.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(a).appendChild(t),typeof t.style.zoom!="undefined"&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",ge.inlineBlockNeedsLayout=e=t.offsetWidth===3,e&&(n.style.zoom=1)),n.removeChild(a))}),function(){var e=we.createElement("div");ge.deleteExpando=!0;try{delete e.test}catch(t){ge.deleteExpando=!1}e=null}();var It=function(e){var t=i.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(n===1||n===9)&&(!t||t!==!0&&e.getAttribute("classid")===t)},di=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,fi=/([A-Z])/g;i.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?i.cache[e[i.expando]]:e[i.expando],!!e&&!L(e)},data:function(e,t,n){return F(e,t,n)},removeData:function(e,t){return y(e,t)},_data:function(e,t,n){return F(e,t,n,!0)},_removeData:function(e,t){return y(e,t,!0)}}),i.fn.extend({data:function(e,t){var n,a,r,l=this[0],p=l&&l.attributes;if(e===void 0){if(this.length&&(r=i.data(l),l.nodeType===1&&!i._data(l,"parsedAttrs"))){for(n=p.length;n--;)p[n]&&(a=p[n].name,a.indexOf("data-")===0&&(a=i.camelCase(a.slice(5)),v(l,a,r[a])));i._data(l,"parsedAttrs",!0)}return r}return typeof e=="object"?this.each(function(){i.data(this,e)}):arguments.length>1?this.each(function(){i.data(this,e,t)}):l?v(l,e,i.data(l,e)):void 0},removeData:function(e){return this.each(function(){i.removeData(this,e)})}}),i.extend({queue:function(e,t,n){var a;if(e)return t=(t||"fx")+"queue",a=i._data(e,t),n&&(!a||i.isArray(n)?a=i._data(e,t,i.makeArray(n)):a.push(n)),a||[]},dequeue:function(e,t){t=t||"fx";var n=i.queue(e,t),a=n.length,r=n.shift(),l=i._queueHooks(e,t),p=function(){i.dequeue(e,t)};r==="inprogress"&&(r=n.shift(),a--),r&&(t==="fx"&&n.unshift("inprogress"),delete l.stop,r.call(e,p,l)),!a&&l&&l.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return i._data(e,n)||i._data(e,n,{empty:i.Callbacks("once memory").add(function(){i._removeData(e,t+"queue"),i._removeData(e,n)})})}}),i.fn.extend({queue:function(e,t){var n=2;return typeof e!="string"&&(t=e,e="fx",n--),arguments.length
a",ge.leadingWhitespace=e.firstChild.nodeType===3,ge.tbody=!e.getElementsByTagName("tbody").length,ge.htmlSerialize=!!e.getElementsByTagName("link").length,ge.html5Clone=we.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",n.type="checkbox",n.checked=!0,t.appendChild(n),ge.appendChecked=n.checked,e.innerHTML="",ge.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,t.appendChild(e),n=we.createElement("input"),n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),ge.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,ge.noCloneEvent=!!e.addEventListener,e[i.expando]=1,ge.attributes=!e.getAttribute(i.expando)})();var tt={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:ge.htmlSerialize?[0,"",""]:[1,"X
","
"]};tt.optgroup=tt.option,tt.tbody=tt.tfoot=tt.colgroup=tt.caption=tt.thead,tt.th=tt.td;var pi=/<|&#?\w+;/,jn=/-1&&(be=me.split("."),me=be.shift(),be.sort()),l=me.indexOf(":")<0&&"on"+me,e=e[i.expando]?e:new i.Event(me,typeof e=="object"&&e),e.isTrigger=a?2:3,e.namespace=be.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+be.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=t==null?[e]:i.makeArray(t,[e]),B=i.event.special[me]||{},a||!B.trigger||B.trigger.apply(n,t)!==!1)){if(!a&&!B.noBubble&&!i.isWindow(n)){for(j=B.delegateType||me,Nn.test(j+me)||(p=p.parentNode);p;p=p.parentNode)U.push(p),R=p;R===(n.ownerDocument||we)&&U.push(R.defaultView||R.parentWindow||oe)}for(de=0;(p=U[de++])&&!e.isPropagationStopped();)e.type=de>1?j:B.bindType||me,r=(i._data(p,"events")||{})[e.type]&&i._data(p,"handle"),r&&r.apply(p,t),r=l&&p[l],r&&r.apply&&It(p)&&(e.result=r.apply(p,t),e.result===!1&&e.preventDefault());if(e.type=me,!a&&!e.isDefaultPrevented()&&(!B._default||B._default.apply(U.pop(),t)===!1)&&It(n)&&l&&n[me]&&!i.isWindow(n)){R=n[l],R&&(n[l]=null),i.event.triggered=me;try{n[me]()}catch(He){}i.event.triggered=void 0,R&&(n[l]=R)}return e.result}},dispatch:function(e){e=i.event.fix(e);var t,n,a,r,l,p=[],j=Ie.call(arguments),B=(i._data(this,"events")||{})[e.type]||[],R=i.event.special[e.type]||{};if(j[0]=e,e.delegateTarget=this,!R.preDispatch||R.preDispatch.call(this,e)!==!1){for(p=i.event.handlers.call(this,e,B),t=0;(r=p[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,n=0;(l=r.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(l.namespace)||(e.handleObj=l,e.data=l.data,a=((i.event.special[l.origType]||{}).handle||l.handler).apply(r.elem,j),a!==void 0&&(e.result=a)===!1&&(e.preventDefault(),e.stopPropagation()));return R.postDispatch&&R.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,a,r,l,p=[],j=t.delegateCount,B=e.target;if(j&&B.nodeType&&(e.type!=="click"||isNaN(e.button)||e.button<1)){for(;B!=this;B=B.parentNode||this)if(B.nodeType===1&&(B.disabled!==!0||e.type!=="click")){for(a=[],n=0;n-1:i.find(r,this,null,[B]).length),a[r]&&a.push(l);a.length&&p.push({elem:B,handlers:a})}}return j]","i"),vi=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,gi=/\s*$/g,ki=h(we),ln=ki.appendChild(we.createElement("div"));i.extend({htmlPrefilter:function(e){return e.replace(vi,"<$1>")},clone:function(e,t,n){var a,r,l,p,j,B=i.contains(e.ownerDocument,e);if(ge.html5Clone||i.isXMLDoc(e)||!Hn.test("<"+e.nodeName+">")?l=e.cloneNode(!0):(ln.innerHTML=e.outerHTML,ln.removeChild(l=ln.firstChild)),!(ge.noCloneEvent&&ge.noCloneChecked||e.nodeType!==1&&e.nodeType!==11||i.isXMLDoc(e)))for(a=c(l),j=c(e),p=0;(r=j[p])!=null;++p)a[p]&&g(r,a[p]);if(t)if(n)for(j=j||c(e),a=a||c(l),p=0;(r=j[p])!=null;p++)d(r,a[p]);else d(e,l);return a=c(l,"script"),a.length>0&&m(a,!B&&c(e,"script")),a=j=r=null,l},cleanData:function(e,t){for(var n,a,r,l,p=0,j=i.expando,B=i.cache,R=ge.attributes,de=i.event.special;(n=e[p])!=null;p++)if((t||It(n))&&(r=n[j],l=r&&B[r])){if(l.events)for(a in l.events)de[a]?i.event.remove(n,a):i.removeEvent(n,a,l.handle);B[r]&&(delete B[r],R||typeof n.removeAttribute=="undefined"?n[j]=void 0:n.removeAttribute(j),Fe.push(r))}}}),i.fn.extend({domManip:f,detach:function(e){return w(this,e,!0)},remove:function(e){return w(this,e)},text:function(e){return yt(this,function(t){return t===void 0?i.text(this):this.empty().append((this[0]&&this[0].ownerDocument||we).createTextNode(t))},null,e,arguments.length)},append:function(){return f(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=ee(this,e);t.appendChild(e)}})},prepend:function(){return f(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=ee(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return f(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return f(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;(e=this[t])!=null;t++){for(e.nodeType===1&&i.cleanData(c(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&i.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=e!=null&&e,t=t==null?e:t,this.map(function(){return i.clone(this,e,t)})},html:function(e){return yt(this,function(t){var n=this[0]||{},a=0,r=this.length;if(t===void 0)return n.nodeType===1?n.innerHTML.replace(mi,""):void 0;if(typeof t=="string"&&!gi.test(t)&&(ge.htmlSerialize||!Hn.test(t))&&(ge.leadingWhitespace||!on.test(t))&&!tt[(Sn.exec(t)||["",""])[1].toLowerCase()]){t=i.htmlPrefilter(t);try{for(;at",R=B.getElementsByTagName("td"),R[0].style.cssText="margin:0;border:0;padding:0;display:none",r=R[0].offsetHeight===0,r&&(R[0].style.display="",R[1].style.display="none",r=R[0].offsetHeight===0)),U.removeChild(j)}var t,n,a,r,l,p,j=we.createElement("div"),B=we.createElement("div");B.style&&(B.style.cssText="float:left;opacity:.5",ge.opacity=B.style.opacity==="0.5",ge.cssFloat=!!B.style.cssFloat,B.style.backgroundClip="content-box",B.cloneNode(!0).style.backgroundClip="",ge.clearCloneStyle=B.style.backgroundClip==="content-box",j=we.createElement("div"),j.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",B.innerHTML="",j.appendChild(B),ge.boxSizing=B.style.boxSizing===""||B.style.MozBoxSizing===""||B.style.WebkitBoxSizing==="",i.extend(ge,{reliableHiddenOffsets:function(){return t==null&&e(),r},boxSizingReliable:function(){return t==null&&e(),a},pixelMarginRight:function(){return t==null&&e(),n},pixelPosition:function(){return t==null&&e(),t},reliableMarginRight:function(){return t==null&&e(),l},reliableMarginLeft:function(){return t==null&&e(),p}}))})();var xt,mt,Ci=/^(top|right|bottom|left)$/;oe.getComputedStyle?(xt=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=oe),t.getComputedStyle(e)},mt=function(e,t,n){var a,r,l,p,j=e.style;return n=n||xt(e),p=n?n.getPropertyValue(t)||n[t]:void 0,p!==""&&p!==void 0||i.contains(e.ownerDocument,e)||(p=i.style(e,t)),n&&!ge.pixelMarginRight()&&Yt.test(p)&&In.test(t)&&(a=j.width,r=j.minWidth,l=j.maxWidth,j.minWidth=j.maxWidth=j.width=p,p=n.width,j.width=a,j.minWidth=r,j.maxWidth=l),p===void 0?p:p+""}):qn.currentStyle&&(xt=function(e){return e.currentStyle},mt=function(e,t,n){var a,r,l,p,j=e.style;return n=n||xt(e),p=n?n[t]:void 0,p==null&&j&&j[t]&&(p=j[t]),Yt.test(p)&&!Ci.test(t)&&(a=j.left,r=e.runtimeStyle,l=r&&r.left,l&&(r.left=e.currentStyle.left),j.left=t==="fontSize"?"1em":p,p=j.pixelLeft+"px",j.left=a,l&&(r.left=l)),p===void 0?p:p+""||"auto"});var cn=/alpha\([^)]*\)/i,Ti=/opacity\s*=\s*([^)]*)/i,Ei=/^(none|table(?!-c[ea]).+)/,Di=new RegExp("^("+tn+")(.*)$","i"),Si={position:"absolute",visibility:"hidden",display:"block"},Pn={letterSpacing:"0",fontWeight:"400"},Bn=["Webkit","O","Moz","ms"],_n=we.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=mt(e,"opacity");return n===""?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:ge.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,a){if(e&&e.nodeType!==3&&e.nodeType!==8&&e.style){var r,l,p,j=i.camelCase(t),B=e.style;if(t=i.cssProps[j]||(i.cssProps[j]=Z(j)||j),p=i.cssHooks[t]||i.cssHooks[j],n===void 0)return p&&"get"in p&&(r=p.get(e,!1,a))!==void 0?r:B[t];if(l=typeof n,l==="string"&&(r=nn.exec(n))&&r[1]&&(n=u(e,t,r),l="number"),n!=null&&n===n&&(l==="number"&&(n+=r&&r[3]||(i.cssNumber[j]?"":"px")),ge.clearCloneStyle||n!==""||t.indexOf("background")!==0||(B[t]="inherit"),!(p&&"set"in p&&(n=p.set(e,n,a))===void 0)))try{B[t]=n}catch(R){}}},css:function(e,t,n,a){var r,l,p,j=i.camelCase(t);return t=i.cssProps[j]||(i.cssProps[j]=Z(j)||j),p=i.cssHooks[t]||i.cssHooks[j],p&&"get"in p&&(l=p.get(e,!0,n)),l===void 0&&(l=mt(e,t,a)),l==="normal"&&t in Pn&&(l=Pn[t]),n===""||n?(r=parseFloat(l),n===!0||isFinite(r)?r||0:l):l}}),i.each(["height","width"],function(e,t){i.cssHooks[t]={get:function(n,a,r){if(a)return Ei.test(i.css(n,"display"))&&n.offsetWidth===0?sn(n,Si,function(){return b(n,t,r)}):b(n,t,r)},set:function(n,a,r){var l=r&&xt(n);return J(n,a,r?C(n,t,r,ge.boxSizing&&i.css(n,"boxSizing",!1,l)==="border-box",l):0)}}}),ge.opacity||(i.cssHooks.opacity={get:function(e,t){return Ti.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,a=e.currentStyle,r=i.isNumeric(t)?"alpha(opacity="+100*t+")":"",l=a&&a.filter||n.filter||"";n.zoom=1,(t>=1||t==="")&&i.trim(l.replace(cn,""))===""&&n.removeAttribute&&(n.removeAttribute("filter"),t===""||a&&!a.filter)||(n.filter=cn.test(l)?l.replace(cn,r):l+" "+r)}}),i.cssHooks.marginRight=V(ge.reliableMarginRight,function(e,t){if(t)return sn(e,{display:"inline-block"},mt,[e,"marginRight"])}),i.cssHooks.marginLeft=V(ge.reliableMarginLeft,function(e,t){if(t)return(parseFloat(mt(e,"marginLeft"))||(i.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-sn(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px"}),i.each({margin:"",padding:"",border:"Width"},function(e,t){i.cssHooks[e+t]={expand:function(n){for(var a=0,r={},l=typeof n=="string"?n.split(" "):[n];a<4;a++)r[e+bt[a]+t]=l[a]||l[a-2]||l[0];return r}},In.test(e)||(i.cssHooks[e+t].set=J)}),i.fn.extend({css:function(e,t){return yt(this,function(n,a,r){var l,p,j={},B=0;if(i.isArray(a)){for(l=xt(n),p=a.length;B1)},show:function(){return X(this,!0)},hide:function(){return X(this)},toggle:function(e){return typeof e=="boolean"?e?this.show():this.hide():this.each(function(){qt(this)?i(this).show():i(this).hide()})}}),i.Tween=P,P.prototype={constructor:P,init:function(e,t,n,a,r,l){this.elem=e,this.prop=n,this.easing=r||i.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=a,this.unit=l||(i.cssNumber[n]?"":"px")},cur:function(){var e=P.propHooks[this.prop];return e&&e.get?e.get(this):P.propHooks._default.get(this)},run:function(e){var t,n=P.propHooks[this.prop];return this.options.duration?this.pos=t=i.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):P.propHooks._default.set(this),this}},P.prototype.init.prototype=P.prototype,P.propHooks={_default:{get:function(e){var t;return e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null?e.elem[e.prop]:(t=i.css(e.elem,e.prop,""),t&&t!=="auto"?t:0)},set:function(e){i.fx.step[e.prop]?i.fx.step[e.prop](e):e.elem.nodeType!==1||e.elem.style[i.cssProps[e.prop]]==null&&!i.cssHooks[e.prop]?e.elem[e.prop]=e.now:i.style(e.elem,e.prop,e.now+e.unit)}}},P.propHooks.scrollTop=P.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},i.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:"swing"},i.fx=P.prototype.init,i.fx.step={};var jt,Xt,Li=/^(?:toggle|show|hide)$/,Ai=/queueHooks$/;i.Animation=i.extend(he,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return u(n.elem,e,nn.exec(t),n),n}]},tweener:function(e,t){i.isFunction(e)?(t=e,e=["*"]):e=e.match(lt);for(var n,a=0,r=e.length;a
a",e=n.getElementsByTagName("a")[0],t.setAttribute("type","checkbox"),n.appendChild(t),e=n.getElementsByTagName("a")[0],e.style.cssText="top:1px",ge.getSetAttribute=n.className!=="t",ge.style=/top/.test(e.getAttribute("style")),ge.hrefNormalized=e.getAttribute("href")==="/a",ge.checkOn=!!t.value,ge.optSelected=r.selected,ge.enctype=!!we.createElement("form").enctype,a.disabled=!0,ge.optDisabled=!r.disabled,t=we.createElement("input"),t.setAttribute("value",""),ge.input=t.getAttribute("value")==="",t.value="t",t.setAttribute("type","radio"),ge.radioValue=t.value==="t"}();var ji=/\r/g,Ni=/[\x20\t\r\n\f]+/g;i.fn.extend({val:function(e){var t,n,a,r=this[0];{if(arguments.length)return a=i.isFunction(e),this.each(function(l){var p;this.nodeType===1&&(p=a?e.call(this,l,i(this).val()):e,p==null?p="":typeof p=="number"?p+="":i.isArray(p)&&(p=i.map(p,function(j){return j==null?"":j+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,p,"value")!==void 0||(this.value=p))});if(r)return t=i.valHooks[r.type]||i.valHooks[r.nodeName.toLowerCase()],t&&"get"in t&&(n=t.get(r,"value"))!==void 0?n:(n=r.value,typeof n=="string"?n.replace(ji,""):n==null?"":n)}}}),i.extend({valHooks:{option:{get:function(e){var t=i.find.attr(e,"value");return t!=null?t:i.trim(i.text(e)).replace(Ni," ")}},select:{get:function(e){for(var t,n,a=e.options,r=e.selectedIndex,l=e.type==="select-one"||r<0,p=l?null:[],j=l?r+1:a.length,B=r<0?j:l?r:0;B-1)try{a.selected=n=!0}catch(j){a.scrollHeight}else a.selected=!1;return n||(e.selectedIndex=-1),r}}}}),i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(e,t){if(i.isArray(t))return e.checked=i.inArray(i(e).val(),t)>-1}},ge.checkOn||(i.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value})});var Nt,zn,ct=i.expr.attrHandle,un=/^(?:checked|selected)$/i,wt=ge.getSetAttribute,Vt=ge.input;i.fn.extend({attr:function(e,t){return yt(this,i.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){i.removeAttr(this,e)})}}),i.extend({attr:function(e,t,n){var a,r,l=e.nodeType;if(l!==3&&l!==8&&l!==2)return typeof e.getAttribute=="undefined"?i.prop(e,t,n):(l===1&&i.isXMLDoc(e)||(t=t.toLowerCase(),r=i.attrHooks[t]||(i.expr.match.bool.test(t)?zn:Nt)),n!==void 0?n===null?void i.removeAttr(e,t):r&&"set"in r&&(a=r.set(e,n,t))!==void 0?a:(e.setAttribute(t,n+""),n):r&&"get"in r&&(a=r.get(e,t))!==null?a:(a=i.find.attr(e,t),a==null?void 0:a))},attrHooks:{type:{set:function(e,t){if(!ge.radioValue&&t==="radio"&&i.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,a,r=0,l=t&&t.match(lt);if(l&&e.nodeType===1)for(;n=l[r++];)a=i.propFix[n]||n,i.expr.match.bool.test(n)?Vt&&wt||!un.test(n)?e[a]=!1:e[i.camelCase("default-"+n)]=e[a]=!1:i.attr(e,n,""),e.removeAttribute(wt?n:a)}}),zn={set:function(e,t,n){return t===!1?i.removeAttr(e,n):Vt&&wt||!un.test(n)?e.setAttribute(!wt&&i.propFix[n]||n,n):e[i.camelCase("default-"+n)]=e[n]=!0,n}},i.each(i.expr.match.bool.source.match(/\w+/g),function(e,t){var n=ct[t]||i.find.attr;Vt&&wt||!un.test(t)?ct[t]=function(a,r,l){var p,j;return l||(j=ct[r],ct[r]=p,p=n(a,r,l)!=null?r.toLowerCase():null,ct[r]=j),p}:ct[t]=function(a,r,l){if(!l)return a[i.camelCase("default-"+r)]?r.toLowerCase():null}}),Vt&&wt||(i.attrHooks.value={set:function(e,t,n){return i.nodeName(e,"input")?void(e.defaultValue=t):Nt&&Nt.set(e,t,n)}}),wt||(Nt={set:function(e,t,n){var a=e.getAttributeNode(n);if(a||e.setAttributeNode(a=e.ownerDocument.createAttribute(n)),a.value=t+="",n==="value"||t===e.getAttribute(n))return t}},ct.id=ct.name=ct.coords=function(e,t,n){var a;if(!n)return(a=e.getAttributeNode(t))&&a.value!==""?a.value:null},i.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:Nt.set},i.attrHooks.contenteditable={set:function(e,t,n){Nt.set(e,t!==""&&t,n)}},i.each(["width","height"],function(e,t){i.attrHooks[t]={set:function(n,a){if(a==="")return n.setAttribute(t,"auto"),a}}})),ge.style||(i.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Mi=/^(?:input|select|textarea|button|object)$/i,Hi=/^(?:a|area)$/i;i.fn.extend({prop:function(e,t){return yt(this,i.prop,e,t,arguments.length>1)},removeProp:function(e){return e=i.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(t){}})}}),i.extend({prop:function(e,t,n){var a,r,l=e.nodeType;if(l!==3&&l!==8&&l!==2)return l===1&&i.isXMLDoc(e)||(t=i.propFix[t]||t,r=i.propHooks[t]),n!==void 0?r&&"set"in r&&(a=r.set(e,n,t))!==void 0?a:e[t]=n:r&&"get"in r&&(a=r.get(e,t))!==null?a:e[t]},propHooks:{tabIndex:{get:function(e){var t=i.find.attr(e,"tabindex");return t?parseInt(t,10):Mi.test(e.nodeName)||Hi.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ge.hrefNormalized||i.each(["href","src"],function(e,t){i.propHooks[t]={get:function(n){return n.getAttribute(t,4)}}}),ge.optSelected||(i.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this}),ge.enctype||(i.propFix.enctype="encoding");var dn=/[\t\r\n\f]/g;i.fn.extend({addClass:function(e){var t,n,a,r,l,p,j,B=0;if(i.isFunction(e))return this.each(function(R){i(this).addClass(e.call(this,R,ue(this)))});if(typeof e=="string"&&e){for(t=e.match(lt)||[];n=this[B++];)if(r=ue(n),a=n.nodeType===1&&(" "+r+" ").replace(dn," ")){for(p=0;l=t[p++];)a.indexOf(" "+l+" ")<0&&(a+=l+" ");j=i.trim(a),r!==j&&i.attr(n,"class",j)}}return this},removeClass:function(e){var t,n,a,r,l,p,j,B=0;if(i.isFunction(e))return this.each(function(R){i(this).removeClass(e.call(this,R,ue(this)))});if(!arguments.length)return this.attr("class","");if(typeof e=="string"&&e){for(t=e.match(lt)||[];n=this[B++];)if(r=ue(n),a=n.nodeType===1&&(" "+r+" ").replace(dn," ")){for(p=0;l=t[p++];)for(;a.indexOf(" "+l+" ")>-1;)a=a.replace(" "+l+" "," ");j=i.trim(a),r!==j&&i.attr(n,"class",j)}}return this},toggleClass:function(e,t){var n=typeof e;return typeof t=="boolean"&&n==="string"?t?this.addClass(e):this.removeClass(e):i.isFunction(e)?this.each(function(a){i(this).toggleClass(e.call(this,a,ue(this),t),t)}):this.each(function(){var a,r,l,p;if(n==="string")for(r=0,l=i(this),p=e.match(lt)||[];a=p[r++];)l.hasClass(a)?l.removeClass(a):l.addClass(a);else e!==void 0&&n!=="boolean"||(a=ue(this),a&&i._data(this,"__className__",a),i.attr(this,"class",a||e===!1?"":i._data(this,"__className__")||""))})},hasClass:function(e){var t,n,a=0;for(t=" "+e+" ";n=this[a++];)if(n.nodeType===1&&(" "+ue(n)+" ").replace(dn," ").indexOf(t)>-1)return!0;return!1}}),i.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){i.fn[t]=function(n,a){return arguments.length>0?this.on(t,null,n,a):this.trigger(t)}}),i.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var Fi=oe.location,fn=i.now(),pn=/\?/,Ii=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;i.parseJSON=function(e){if(oe.JSON&&oe.JSON.parse)return oe.JSON.parse(e+"");var t,n=null,a=i.trim(e+"");return a&&!i.trim(a.replace(Ii,function(r,l,p,j){return t&&l&&(n=0),n===0?r:(t=p||l,n+=!j-!p,"")}))?Function("return "+a)():i.error("Invalid JSON: "+e)},i.parseXML=function(e){var t,n;if(!e||typeof e!="string")return null;try{oe.DOMParser?(n=new oe.DOMParser,t=n.parseFromString(e,"text/xml")):(t=new oe.ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e))}catch(a){t=void 0}return t&&t.documentElement&&!t.getElementsByTagName("parsererror").length||i.error("Invalid XML: "+e),t};var qi=/#.*$/,Wn=/([?&])_=[^&]*/,Pi=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Bi=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,_i=/^(?:GET|HEAD)$/,zi=/^\/\//,On=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Rn={},hn={},$n="*/".concat("*"),yn=Fi.href,Mt=On.exec(yn.toLowerCase())||[];i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Bi.test(Mt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":$n,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":i.parseJSON,"text xml":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Y(Y(e,i.ajaxSettings),t):Y(i.ajaxSettings,e)},ajaxPrefilter:ye(Rn),ajaxTransport:ye(hn),ajax:function(e,t){function n(Ce,Re,vt,kt){var nt,Ft,st,Ue,Qe,Xe=Re;Ge!==2&&(Ge=2,j&&oe.clearTimeout(j),R=void 0,p=kt||"",Te.readyState=Ce>0?4:0,nt=Ce>=200&&Ce<300||Ce===304,vt&&(Ue=Q(U,Te,vt)),Ue=pe(U,Ue,Te,nt),nt?(U.ifModified&&(Qe=Te.getResponseHeader("Last-Modified"),Qe&&(i.lastModified[l]=Qe),Qe=Te.getResponseHeader("etag"),Qe&&(i.etag[l]=Qe)),Ce===204||U.type==="HEAD"?Xe="nocontent":Ce===304?Xe="notmodified":(Xe=Ue.state,Ft=Ue.data,st=Ue.error,nt=!st)):(st=Xe,!Ce&&Xe||(Xe="error",Ce<0&&(Ce=0))),Te.status=Ce,Te.statusText=(Re||Xe)+"",nt?He.resolveWith(me,[Ft,Xe,Te]):He.rejectWith(me,[Te,Xe,st]),Te.statusCode(Be),Be=void 0,B&&be.trigger(nt?"ajaxSuccess":"ajaxError",[Te,U,nt?Ft:st]),qe.fireWith(me,[Te,Xe]),B&&(be.trigger("ajaxComplete",[Te,U]),--i.active||i.event.trigger("ajaxStop")))}typeof e=="object"&&(t=e,e=void 0),t=t||{};var a,r,l,p,j,B,R,de,U=i.ajaxSetup({},t),me=U.context||U,be=U.context&&(me.nodeType||me.jquery)?i(me):i.event,He=i.Deferred(),qe=i.Callbacks("once memory"),Be=U.statusCode||{},ut={},Ht={},Ge=0,dt="canceled",Te={readyState:0,getResponseHeader:function(Ce){var Re;if(Ge===2){if(!de)for(de={};Re=Pi.exec(p);)de[Re[1].toLowerCase()]=Re[2];Re=de[Ce.toLowerCase()]}return Re==null?null:Re},getAllResponseHeaders:function(){return Ge===2?p:null},setRequestHeader:function(Ce,Re){var vt=Ce.toLowerCase();return Ge||(Ce=Ht[vt]=Ht[vt]||Ce,ut[Ce]=Re),this},overrideMimeType:function(Ce){return Ge||(U.mimeType=Ce),this},statusCode:function(Ce){var Re;if(Ce)if(Ge<2)for(Re in Ce)Be[Re]=[Be[Re],Ce[Re]];else Te.always(Ce[Te.status]);return this},abort:function(Ce){var Re=Ce||dt;return R&&R.abort(Re),n(0,Re),this}};if(He.promise(Te).complete=qe.add,Te.success=Te.done,Te.error=Te.fail,U.url=((e||U.url||yn)+"").replace(qi,"").replace(zi,Mt[1]+"//"),U.type=t.method||t.type||U.method||U.type,U.dataTypes=i.trim(U.dataType||"*").toLowerCase().match(lt)||[""],U.crossDomain==null&&(a=On.exec(U.url.toLowerCase()),U.crossDomain=!(!a||a[1]===Mt[1]&&a[2]===Mt[2]&&(a[3]||(a[1]==="http:"?"80":"443"))===(Mt[3]||(Mt[1]==="http:"?"80":"443")))),U.data&&U.processData&&typeof U.data!="string"&&(U.data=i.param(U.data,U.traditional)),se(Rn,U,t,Te),Ge===2)return Te;B=i.event&&U.global,B&&i.active++==0&&i.event.trigger("ajaxStart"),U.type=U.type.toUpperCase(),U.hasContent=!_i.test(U.type),l=U.url,U.hasContent||(U.data&&(l=U.url+=(pn.test(l)?"&":"?")+U.data,delete U.data),U.cache===!1&&(U.url=Wn.test(l)?l.replace(Wn,"$1_="+fn++):l+(pn.test(l)?"&":"?")+"_="+fn++)),U.ifModified&&(i.lastModified[l]&&Te.setRequestHeader("If-Modified-Since",i.lastModified[l]),i.etag[l]&&Te.setRequestHeader("If-None-Match",i.etag[l])),(U.data&&U.hasContent&&U.contentType!==!1||t.contentType)&&Te.setRequestHeader("Content-Type",U.contentType),Te.setRequestHeader("Accept",U.dataTypes[0]&&U.accepts[U.dataTypes[0]]?U.accepts[U.dataTypes[0]]+(U.dataTypes[0]!=="*"?", "+$n+"; q=0.01":""):U.accepts["*"]);for(r in U.headers)Te.setRequestHeader(r,U.headers[r]);if(U.beforeSend&&(U.beforeSend.call(me,Te,U)===!1||Ge===2))return Te.abort();dt="abort";for(r in{success:1,error:1,complete:1})Te[r](U[r]);if(R=se(hn,U,t,Te)){if(Te.readyState=1,B&&be.trigger("ajaxSend",[Te,U]),Ge===2)return Te;U.async&&U.timeout>0&&(j=oe.setTimeout(function(){Te.abort("timeout")},U.timeout));try{Ge=1,R.send(ut,n)}catch(Ce){if(!(Ge<2))throw Ce;n(-1,Ce)}}else n(-1,"No Transport");return Te},getJSON:function(e,t,n){return i.get(e,t,n,"json")},getScript:function(e,t){return i.get(e,void 0,t,"script")}}),i.each(["get","post"],function(e,t){i[t]=function(n,a,r,l){return i.isFunction(a)&&(l=l||r,r=a,a=void 0),i.ajax(i.extend({url:n,type:t,dataType:l,data:a,success:r},i.isPlainObject(n)&&n))}}),i._evalUrl=function(e){return i.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},i.fn.extend({wrapAll:function(e){if(i.isFunction(e))return this.each(function(n){i(this).wrapAll(e.call(this,n))});if(this[0]){var t=i(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstChild&&n.firstChild.nodeType===1;)n=n.firstChild;return n}).append(this)}return this},wrapInner:function(e){return i.isFunction(e)?this.each(function(t){i(this).wrapInner(e.call(this,t))}):this.each(function(){var t=i(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=i.isFunction(e);return this.each(function(n){i(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){i.nodeName(this,"body")||i(this).replaceWith(this.childNodes)}).end()}}),i.expr.filters.hidden=function(e){return ge.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:ke(e)},i.expr.filters.visible=function(e){return!i.expr.filters.hidden(e)};var Wi=/%20/g,Oi=/\[\]$/,Yn=/\r?\n/g,Ri=/^(?:submit|button|image|reset|file)$/i,$i=/^(?:input|select|textarea|keygen)/i;i.param=function(e,t){var n,a=[],r=function(l,p){p=i.isFunction(p)?p():p==null?"":p,a[a.length]=encodeURIComponent(l)+"="+encodeURIComponent(p)};if(t===void 0&&(t=i.ajaxSettings&&i.ajaxSettings.traditional),i.isArray(e)||e.jquery&&!i.isPlainObject(e))i.each(e,function(){r(this.name,this.value)});else for(n in e)je(n,e[n],t,r);return a.join("&").replace(Wi,"+")},i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=i.prop(this,"elements");return e?i.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!i(this).is(":disabled")&&$i.test(this.nodeName)&&!Ri.test(e)&&(this.checked||!an.test(e))}).map(function(e,t){var n=i(this).val();return n==null?null:i.isArray(n)?i.map(n,function(a){return{name:t.name,value:a.replace(Yn,`\r `)}}):{name:t.name,value:n.replace(Yn,`\r `)}}).get()}}),i.ajaxSettings.xhr=oe.ActiveXObject!==void 0?function(){return this.isLocal?Ee():we.documentMode>8?Me():/^(get|post|head|put|delete|options)$/i.test(this.type)&&Me()||Ee()}:Me;var Yi=0,Jt={},Bt=i.ajaxSettings.xhr();oe.attachEvent&&oe.attachEvent("onunload",function(){for(var e in Jt)Jt[e](void 0,!0)}),ge.cors=!!Bt&&"withCredentials"in Bt,Bt=ge.ajax=!!Bt,Bt&&i.ajaxTransport(function(e){if(!e.crossDomain||ge.cors){var t;return{send:function(n,a){var r,l=e.xhr(),p=++Yi;if(l.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)l[r]=e.xhrFields[r];e.mimeType&&l.overrideMimeType&&l.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(r in n)n[r]!==void 0&&l.setRequestHeader(r,n[r]+"");l.send(e.hasContent&&e.data||null),t=function(j,B){var R,de,U;if(t&&(B||l.readyState===4))if(delete Jt[p],t=void 0,l.onreadystatechange=i.noop,B)l.readyState!==4&&l.abort();else{U={},R=l.status,typeof l.responseText=="string"&&(U.text=l.responseText);try{de=l.statusText}catch(me){de=""}R||!e.isLocal||e.crossDomain?R===1223&&(R=204):R=U.text?200:404}U&&a(R,de,U,l.getAllResponseHeaders())},e.async?l.readyState===4?oe.setTimeout(t):l.onreadystatechange=Jt[p]=t:t()},abort:function(){t&&t(void 0,!0)}}}}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return i.globalEval(e),e}}}),i.ajaxPrefilter("script",function(e){e.cache===void 0&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),i.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=we.head||i("head")[0]||we.documentElement;return{send:function(a,r){t=we.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(l,p){(p||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,p||r(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var Xn=[],mn=/(=)\?(?=&|$)|\?\?/;i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xn.pop()||i.expando+"_"+fn++;return this[e]=!0,e}}),i.ajaxPrefilter("json jsonp",function(e,t,n){var a,r,l,p=e.jsonp!==!1&&(mn.test(e.url)?"url":typeof e.data=="string"&&(e.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&mn.test(e.data)&&"data");if(p||e.dataTypes[0]==="jsonp")return a=e.jsonpCallback=i.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,p?e[p]=e[p].replace(mn,"$1"+a):e.jsonp!==!1&&(e.url+=(pn.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return l||i.error(a+" was not called"),l[0]},e.dataTypes[0]="json",r=oe[a],oe[a]=function(){l=arguments},n.always(function(){r===void 0?i(oe).removeProp(a):oe[a]=r,e[a]&&(e.jsonpCallback=t.jsonpCallback,Xn.push(a)),l&&i.isFunction(r)&&r(l[0]),l=r=void 0}),"script"}),i.parseHTML=function(e,t,n){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(n=t,t=!1),t=t||we;var a=En.exec(e),r=!n&&[];return a?[t.createElement(a[1])]:(a=k([e],t,r),r&&r.length&&i(r).remove(),i.merge([],a.childNodes))};var Vn=i.fn.load;return i.fn.load=function(e,t,n){if(typeof e!="string"&&Vn)return Vn.apply(this,arguments);var a,r,l,p=this,j=e.indexOf(" ");return j>-1&&(a=i.trim(e.slice(j,e.length)),e=e.slice(0,j)),i.isFunction(t)?(n=t,t=void 0):t&&typeof t=="object"&&(r="POST"),p.length>0&&i.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(B){l=arguments,p.html(a?i("
").append(i.parseHTML(B)).find(a):B)}).always(n&&function(B,R){p.each(function(){n.apply(this,l||[B.responseText,R,B])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.filters.animated=function(e){return i.grep(i.timers,function(t){return e===t.elem}).length},i.offset={setOffset:function(e,t,n){var a,r,l,p,j,B,R,de=i.css(e,"position"),U=i(e),me={};de==="static"&&(e.style.position="relative"),j=U.offset(),l=i.css(e,"top"),B=i.css(e,"left"),R=(de==="absolute"||de==="fixed")&&i.inArray("auto",[l,B])>-1,R?(a=U.position(),p=a.top,r=a.left):(p=parseFloat(l)||0,r=parseFloat(B)||0),i.isFunction(t)&&(t=t.call(e,n,i.extend({},j))),t.top!=null&&(me.top=t.top-j.top+p),t.left!=null&&(me.left=t.left-j.left+r),"using"in t?t.using.call(e,me):U.css(me)}},i.fn.extend({offset:function(e){if(arguments.length)return e===void 0?this:this.each(function(p){i.offset.setOffset(this,e,p)});var t,n,a={top:0,left:0},r=this[0],l=r&&r.ownerDocument;if(l)return t=l.documentElement,i.contains(t,r)?(typeof r.getBoundingClientRect!="undefined"&&(a=r.getBoundingClientRect()),n=Ye(l),{top:a.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:a.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):a},position:function(){if(this[0]){var e,t,n={top:0,left:0},a=this[0];return i.css(a,"position")==="fixed"?t=a.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),i.nodeName(e[0],"html")||(n=e.offset()),n.top+=i.css(e[0],"borderTopWidth",!0),n.left+=i.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-i.css(a,"marginTop",!0),left:t.left-n.left-i.css(a,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&!i.nodeName(e,"html")&&i.css(e,"position")==="static";)e=e.offsetParent;return e||qn})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);i.fn[e]=function(a){return yt(this,function(r,l,p){var j=Ye(r);return p===void 0?j?t in j?j[t]:j.document.documentElement[l]:r[l]:void(j?j.scrollTo(n?i(j).scrollLeft():p,n?p:i(j).scrollTop()):r[l]=p)},e,a,arguments.length,null)}}),i.each(["top","left"],function(e,t){i.cssHooks[t]=V(ge.pixelPosition,function(n,a){if(a)return a=mt(n,t),Yt.test(a)?i(n).position()[t]+"px":a})}),i.each({Height:"height",Width:"width"},function(e,t){i.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,a){i.fn[a]=function(r,l){var p=arguments.length&&(n||typeof r!="boolean"),j=n||(r===!0||l===!0?"margin":"border");return yt(this,function(B,R,de){var U;return i.isWindow(B)?B.document.documentElement["client"+e]:B.nodeType===9?(U=B.documentElement,Math.max(B.body["scroll"+e],U["scroll"+e],B.body["offset"+e],U["offset"+e],U["client"+e])):de===void 0?i.css(B,R,j):i.style(B,R,de,j)},t,p?r:void 0,p,null)}})}),i.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,a){return this.on(t,e,n,a)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",n)}}),i.fn.size=function(){return this.length},i.fn.andSelf=i.fn.addBack,layui.define(function(e){layui.$=i,e("jquery",i)}),i}),function(oe,x){"use strict";var _,O,ie=oe.layui&&layui.define,G={getPath:function(){var y=document.currentScript?document.currentScript.src:function(){for(var u,h=document.scripts,c=h.length-1,m=c;m>0;m--)if(h[m].readyState==="interactive"){u=h[m].src;break}return u||h[c].src}();return y.substring(0,y.lastIndexOf("/")+1)}(),config:{},end:{},minIndex:0,minLeft:[],btn:["确定","取消"],type:["dialog","page","iframe","loading","tips"],getStyle:function(y,u){var h=y.currentStyle?y.currentStyle:oe.getComputedStyle(y,null);return h[h.getPropertyValue?"getPropertyValue":"getAttribute"](u)},link:function(y,u,h){if(A.path){var c=document.getElementsByTagName("head")[0],m=document.createElement("link");typeof u=="string"&&(h=u);var D=(h||y).replace(/\.|\//g,""),k="layuicss-"+D,q=0;m.rel="stylesheet",m.href=A.path+y,m.id=k,document.getElementById(k)||c.appendChild(m),typeof u=="function"&&function z(){return++q>80?oe.console&&console.error("layer.css: Invalid"):void(parseInt(G.getStyle(document.getElementById(k),"width"))===1989?u():setTimeout(z,100))}()}}},A={v:"3.1.1",ie:function(){var y=navigator.userAgent.toLowerCase();return!!(oe.ActiveXObject||"ActiveXObject"in oe)&&((y.match(/msie\s(\d+)/)||[])[1]||"11")}(),index:oe.layer&&oe.layer.v?1e5:0,path:G.getPath,config:function(y,u){return y=y||{},A.cache=G.config=_.extend({},G.config,y),A.path=G.config.path||A.path,typeof y.extend=="string"&&(y.extend=[y.extend]),G.config.path&&A.ready(),y.extend?(ie?layui.addcss("modules/layer/"+y.extend):G.link("theme/"+y.extend),this):this},ready:function(y){var u="layer",h="",c=(ie?"modules/layer/":"theme/")+"default/layer.css?v="+A.v+h;return ie?layui.addcss(c,y,u):G.link(c,y,u),this},alert:function(y,u,h){var c=typeof u=="function";return c&&(h=u),A.open(_.extend({content:y,yes:h},c?{}:u))},confirm:function(y,u,h,c){var m=typeof u=="function";return m&&(c=h,h=u),A.open(_.extend({content:y,btn:G.btn,yes:h,btn2:c},m?{}:u))},msg:function(y,u,h){var c=typeof u=="function",m=G.config.skin,D=(m?m+" "+m+"-msg":"")||"layui-layer-msg",k=v.anim.length-1;return c&&(h=u),A.open(_.extend({content:y,time:3e3,shade:!1,skin:D,title:!1,closeBtn:!1,btn:!1,resize:!1,end:h},c&&!G.config.skin?{skin:D+" layui-layer-hui",anim:k}:function(){return u=u||{},(u.icon===-1||u.icon===x&&!G.config.skin)&&(u.skin=D+" "+(u.skin||"layui-layer-hui")),u}()))},load:function(y,u){return A.open(_.extend({type:3,icon:y||0,resize:!1,shade:.01},u))},tips:function(y,u,h){return A.open(_.extend({type:4,content:[y,u],closeBtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxWidth:210},h))}},$=function(y){var u=this;u.index=++A.index,u.config=_.extend({},u.config,G.config,y),document.body?u.creat():setTimeout(function(){u.creat()},30)};$.pt=$.prototype;var v=["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"];v.anim=["layer-anim-00","layer-anim-01","layer-anim-02","layer-anim-03","layer-anim-04","layer-anim-05","layer-anim-06"],$.pt.config={type:0,shade:.3,fixed:!0,move:v[1],title:"信息",offset:"auto",area:"auto",closeBtn:1,time:0,zIndex:19891014,maxWidth:360,anim:0,isOutAnim:!0,icon:-1,moveType:1,resize:!0,scrollbar:!0,tips:2},$.pt.vessel=function(y,u){var h=this,c=h.index,m=h.config,D=m.zIndex+c,k=typeof m.title=="object",q=m.maxmin&&(m.type===1||m.type===2),z=m.title?'
'+(k?m.title[0]:m.title)+"
":"";return m.zIndex=D,u([m.shade?'
':"",'
'+(y&&m.type!=2?"":z)+'
'+(m.type==0&&m.icon!==-1?'':"")+(m.type==1&&y?"":m.content||"")+'
'+function(){var M=q?'':"";return m.closeBtn&&(M+=''),M}()+""+(m.btn?function(){var M="";typeof m.btn=="string"&&(m.btn=[m.btn]);for(var E=0,ee=m.btn.length;E'+m.btn[E]+"";return'
'+M+"
"}():"")+(m.resize?'':"")+"
"],z,_('
')),h},$.pt.creat=function(){var y=this,u=y.config,h=y.index,c=u.content,m=typeof c=="object",D=_("body");if(!u.id||!_("#"+u.id)[0]){switch(typeof u.area=="string"&&(u.area=u.area==="auto"?["",""]:[u.area,""]),u.shift&&(u.anim=u.shift),A.ie==6&&(u.fixed=!1),u.type){case 0:u.btn="btn"in u?u.btn:G.btn[0],A.closeAll("dialog");break;case 2:var c=u.content=m?u.content:[u.content||"","auto"];u.content='';break;case 3:delete u.title,delete u.closeBtn,u.icon===-1&&u.icon,A.closeAll("loading");break;case 4:m||(u.content=[u.content,"body"]),u.follow=u.content[1],u.content=u.content[0]+'',delete u.title,u.tips=typeof u.tips=="object"?u.tips:[u.tips,!0],u.tipsMore||A.closeAll("tips")}if(y.vessel(m,function(q,z,M){D.append(q[0]),m?function(){u.type==2||u.type==4?function(){_("body").append(q[1])}():function(){c.parents("."+v[0])[0]||(c.data("display",c.css("display")).show().addClass("layui-layer-wrap").wrap(q[1]),_("#"+v[0]+h).find("."+v[5]).before(z))}()}():D.append(q[1]),_(".layui-layer-move")[0]||D.append(G.moveElem=M),y.layero=_("#"+v[0]+h),u.scrollbar||v.html.css("overflow","hidden").attr("layer-full",h)}).auto(h),_("#layui-layer-shade"+y.index).css({"background-color":u.shade[1]||"#000",opacity:u.shade[0]||u.shade}),u.type==2&&A.ie==6&&y.layero.find("iframe").attr("src",c[0]),u.type==4?y.tips():y.offset(),u.fixed&&O.on("resize",function(){y.offset(),(/^\d+%$/.test(u.area[0])||/^\d+%$/.test(u.area[1]))&&y.auto(h),u.type==4&&y.tips()}),u.time<=0||setTimeout(function(){A.close(y.index)},u.time),y.move().callback(),v.anim[u.anim]){var k="layer-anim "+v.anim[u.anim];y.layero.addClass(k).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){_(this).removeClass(k)})}u.isOutAnim&&y.layero.data("isOutAnim",!0)}},$.pt.auto=function(y){var u=this,h=u.config,c=_("#"+v[0]+y);h.area[0]===""&&h.maxWidth>0&&(A.ie&&A.ie<8&&h.btn&&c.width(c.innerWidth()),c.outerWidth()>h.maxWidth&&c.width(h.maxWidth));var m=[c.innerWidth(),c.innerHeight()],D=c.find(v[1]).outerHeight()||0,k=c.find("."+v[6]).outerHeight()||0,q=function(z){z=c.find(z),z.height(m[1]-D-k-2*(0|parseFloat(z.css("padding-top"))))};switch(h.type){case 2:q("iframe");break;default:h.area[1]===""?h.maxHeight>0&&c.outerHeight()>h.maxHeight?(m[1]=h.maxHeight,q("."+v[5])):h.fixed&&m[1]>=O.height()&&(m[1]=O.height(),q("."+v[5])):q("."+v[5])}return u},$.pt.offset=function(){var y=this,u=y.config,h=y.layero,c=[h.outerWidth(),h.outerHeight()],m=typeof u.offset=="object";y.offsetTop=(O.height()-c[1])/2,y.offsetLeft=(O.width()-c[0])/2,m?(y.offsetTop=u.offset[0],y.offsetLeft=u.offset[1]||y.offsetLeft):u.offset!=="auto"&&(u.offset==="t"?y.offsetTop=0:u.offset==="r"?y.offsetLeft=O.width()-c[0]:u.offset==="b"?y.offsetTop=O.height()-c[1]:u.offset==="l"?y.offsetLeft=0:u.offset==="lt"?(y.offsetTop=0,y.offsetLeft=0):u.offset==="lb"?(y.offsetTop=O.height()-c[1],y.offsetLeft=0):u.offset==="rt"?(y.offsetTop=0,y.offsetLeft=O.width()-c[0]):u.offset==="rb"?(y.offsetTop=O.height()-c[1],y.offsetLeft=O.width()-c[0]):y.offsetTop=u.offset),u.fixed||(y.offsetTop=/%$/.test(y.offsetTop)?O.height()*parseFloat(y.offsetTop)/100:parseFloat(y.offsetTop),y.offsetLeft=/%$/.test(y.offsetLeft)?O.width()*parseFloat(y.offsetLeft)/100:parseFloat(y.offsetLeft),y.offsetTop+=O.scrollTop(),y.offsetLeft+=O.scrollLeft()),h.attr("minLeft")&&(y.offsetTop=O.height()-(h.find(v[1]).outerHeight()||0),y.offsetLeft=h.css("left")),h.css({top:y.offsetTop,left:y.offsetLeft})},$.pt.tips=function(){var y=this,u=y.config,h=y.layero,c=[h.outerWidth(),h.outerHeight()],m=_(u.follow);m[0]||(m=_("body"));var D={width:m.outerWidth(),height:m.outerHeight(),top:m.offset().top,left:m.offset().left},k=h.find(".layui-layer-TipsG"),q=u.tips[0];u.tips[1]||k.remove(),D.autoLeft=function(){D.left+c[0]-O.width()>0?(D.tipLeft=D.left+D.width-c[0],k.css({right:12,left:"auto"})):D.tipLeft=D.left},D.where=[function(){D.autoLeft(),D.tipTop=D.top-c[1]-10,k.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",u.tips[1])},function(){D.tipLeft=D.left+D.width+10,D.tipTop=D.top,k.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",u.tips[1])},function(){D.autoLeft(),D.tipTop=D.top+D.height+10,k.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color",u.tips[1])},function(){D.tipLeft=D.left-c[0]-10,D.tipTop=D.top,k.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",u.tips[1])}],D.where[q-1](),q===1?D.top-(O.scrollTop()+c[1]+16)<0&&D.where[2]():q===2?O.width()-(D.left+D.width+c[0]+16)>0||D.where[3]():q===3?D.top-O.scrollTop()+D.height+c[1]+16-O.height()>0&&D.where[0]():q===4&&c[0]+16-D.left>0&&D.where[1](),h.find("."+v[5]).css({"background-color":u.tips[1],"padding-right":u.closeBtn?"30px":""}),h.css({left:D.tipLeft-(u.fixed?O.scrollLeft():0),top:D.tipTop-(u.fixed?O.scrollTop():0)})},$.pt.move=function(){var y=this,u=y.config,h=_(document),c=y.layero,m=c.find(u.move),D=c.find(".layui-layer-resize"),k={};return u.move&&m.css("cursor","move"),m.on("mousedown",function(q){q.preventDefault(),u.move&&(k.moveStart=!0,k.offset=[q.clientX-parseFloat(c.css("left")),q.clientY-parseFloat(c.css("top"))],G.moveElem.css("cursor","move").show())}),D.on("mousedown",function(q){q.preventDefault(),k.resizeStart=!0,k.offset=[q.clientX,q.clientY],k.area=[c.outerWidth(),c.outerHeight()],G.moveElem.css("cursor","se-resize").show()}),h.on("mousemove",function(q){if(k.moveStart){var z=q.clientX-k.offset[0],M=q.clientY-k.offset[1],E=c.css("position")==="fixed";if(q.preventDefault(),k.stX=E?0:O.scrollLeft(),k.stY=E?0:O.scrollTop(),!u.moveOut){var ee=O.width()-c.outerWidth()+k.stX,s=O.height()-c.outerHeight()+k.stY;zee&&(z=ee),Ms&&(M=s)}c.css({left:z,top:M})}if(u.resize&&k.resizeStart){var z=q.clientX-k.offset[0],M=q.clientY-k.offset[1];q.preventDefault(),A.style(y.index,{width:k.area[0]+z,height:k.area[1]+M}),k.isResize=!0,u.resizing&&u.resizing(c)}}).on("mouseup",function(q){k.moveStart&&(delete k.moveStart,G.moveElem.hide(),u.moveEnd&&u.moveEnd(c)),k.resizeStart&&(delete k.resizeStart,G.moveElem.hide())}),y},$.pt.callback=function(){function y(){var m=c.cancel&&c.cancel(u.index,h);m===!1||A.close(u.index)}var u=this,h=u.layero,c=u.config;u.openLayer(),c.success&&(c.type==2?h.find("iframe").on("load",function(){c.success(h,u.index)}):c.success(h,u.index)),A.ie==6&&u.IE6(h),h.find("."+v[6]).children("a").on("click",function(){var m=_(this).index();if(m===0)c.yes?c.yes(u.index,h):c.btn1?c.btn1(u.index,h):A.close(u.index);else{var D=c["btn"+(m+1)]&&c["btn"+(m+1)](u.index,h);D===!1||A.close(u.index)}}),h.find("."+v[7]).on("click",y),c.shadeClose&&_("#layui-layer-shade"+u.index).on("click",function(){A.close(u.index)}),h.find(".layui-layer-min").on("click",function(){var m=c.min&&c.min(h);m===!1||A.min(u.index,c)}),h.find(".layui-layer-max").on("click",function(){_(this).hasClass("layui-layer-maxmin")?(A.restore(u.index),c.restore&&c.restore(h)):(A.full(u.index,c),setTimeout(function(){c.full&&c.full(h)},100))}),c.end&&(G.end[u.index]=c.end)},G.reselect=function(){_.each(_("select"),function(y,u){var h=_(this);h.parents("."+v[0])[0]||h.attr("layer")==1&&_("."+v[0]).length<1&&h.removeAttr("layer").show(),h=null})},$.pt.IE6=function(y){_("select").each(function(u,h){var c=_(this);c.parents("."+v[0])[0]||c.css("display")==="none"||c.attr({layer:"1"}).hide(),c=null})},$.pt.openLayer=function(){var y=this;A.zIndex=y.config.zIndex,A.setTop=function(u){var h=function(){A.zIndex++,u.css("z-index",A.zIndex+1)};return A.zIndex=parseInt(u[0].style.zIndex),u.on("mousedown",h),A.zIndex}},G.record=function(y){var u=[y.width(),y.height(),y.position().top,y.position().left+parseFloat(y.css("margin-left"))];y.find(".layui-layer-max").addClass("layui-layer-maxmin"),y.attr({area:u})},G.rescollbar=function(y){v.html.attr("layer-full")==y&&(v.html[0].style.removeProperty?v.html[0].style.removeProperty("overflow"):v.html[0].style.removeAttribute("overflow"),v.html.removeAttr("layer-full"))},oe.layer=A,A.getChildFrame=function(y,u){return u=u||_("."+v[4]).attr("times"),_("#"+v[0]+u).find("iframe").contents().find(y)},A.getFrameIndex=function(y){return _("#"+y).parents("."+v[4]).attr("times")},A.iframeAuto=function(y){if(y){var u=A.getChildFrame("html",y).outerHeight(),h=_("#"+v[0]+y),c=h.find(v[1]).outerHeight()||0,m=h.find("."+v[6]).outerHeight()||0;h.css({height:u+c+m}),h.find("iframe").css({height:u})}},A.iframeSrc=function(y,u){_("#"+v[0]+y).find("iframe").attr("src",u)},A.style=function(y,u,h){var c=_("#"+v[0]+y),m=c.find(".layui-layer-content"),D=c.attr("type"),k=c.find(v[1]).outerHeight()||0,q=c.find("."+v[6]).outerHeight()||0;c.attr("minLeft"),D!==G.type[3]&&D!==G.type[4]&&(h||(parseFloat(u.width)<=260&&(u.width=260),parseFloat(u.height)-k-q<=64&&(u.height=64+k+q)),c.css(u),q=c.find("."+v[6]).outerHeight(),D===G.type[2]?c.find("iframe").css({height:parseFloat(u.height)-k-q}):m.css({height:parseFloat(u.height)-k-q-parseFloat(m.css("padding-top"))-parseFloat(m.css("padding-bottom"))}))},A.min=function(y,u){var h=_("#"+v[0]+y),c=h.find(v[1]).outerHeight()||0,m=h.attr("minLeft")||181*G.minIndex+"px",D=h.css("position");G.record(h),G.minLeft[0]&&(m=G.minLeft[0],G.minLeft.shift()),h.attr("position",D),A.style(y,{width:180,height:c,left:m,top:O.height()-c,position:"fixed",overflow:"hidden"},!0),h.find(".layui-layer-min").hide(),h.attr("type")==="page"&&h.find(v[4]).hide(),G.rescollbar(y),h.attr("minLeft")||G.minIndex++,h.attr("minLeft",m)},A.restore=function(y){var u=_("#"+v[0]+y),h=u.attr("area").split(",");u.attr("type"),A.style(y,{width:parseFloat(h[0]),height:parseFloat(h[1]),top:parseFloat(h[2]),left:parseFloat(h[3]),position:u.attr("position"),overflow:"visible"},!0),u.find(".layui-layer-max").removeClass("layui-layer-maxmin"),u.find(".layui-layer-min").show(),u.attr("type")==="page"&&u.find(v[4]).show(),G.rescollbar(y)},A.full=function(y){var u,h=_("#"+v[0]+y);G.record(h),v.html.attr("layer-full")||v.html.css("overflow","hidden").attr("layer-full",y),clearTimeout(u),u=setTimeout(function(){var c=h.css("position")==="fixed";A.style(y,{top:c?0:O.scrollTop(),left:c?0:O.scrollLeft(),width:O.width(),height:O.height()},!0),h.find(".layui-layer-min").hide()},100)},A.title=function(y,u){var h=_("#"+v[0]+(u||A.index)).find(v[1]);h.html(y)},A.close=function(y){var u=_("#"+v[0]+y),h=u.attr("type"),c="layer-anim-close";if(u[0]){var m="layui-layer-wrap",D=function(){if(h===G.type[1]&&u.attr("conType")==="object"){u.children(":not(."+v[5]+")").remove();for(var k=u.find("."+m),q=0;q<2;q++)k.unwrap();k.css("display",k.data("display")).removeClass(m)}else{if(h===G.type[2])try{var z=_("#"+v[4]+y)[0];z.contentWindow.document.write(""),z.contentWindow.close(),u.find("."+v[5])[0].removeChild(z)}catch(M){}u[0].innerHTML="",u.remove()}typeof G.end[y]=="function"&&G.end[y](),delete G.end[y]};u.data("isOutAnim")&&u.addClass("layer-anim "+c),_("#layui-layer-moves, #layui-layer-shade"+y).remove(),A.ie==6&&G.reselect(),G.rescollbar(y),u.attr("minLeft")&&(G.minIndex--,G.minLeft.push(u.attr("minLeft"))),A.ie&&A.ie<10||!u.data("isOutAnim")?D():setTimeout(function(){D()},200)}},A.closeAll=function(y){_.each(_("."+v[0]),function(){var u=_(this),h=y?u.attr("type")===y:1;h&&A.close(u.attr("times")),h=null})};var L=A.cache||{},F=function(y){return L.skin?" "+L.skin+" "+L.skin+"-"+y:""};A.prompt=function(y,u){var h="";if(y=y||{},typeof y=="function"&&(u=y),y.area){var c=y.area;h='style="width: '+c[0]+"; height: "+c[1]+';"',delete y.area}var m,D=y.formType==2?'":function(){return''}(),k=y.success;return delete y.success,A.open(_.extend({type:1,btn:["确定","取消"],content:D,skin:"layui-layer-prompt"+F("prompt"),maxWidth:O.width(),success:function(q){m=q.find(".layui-layer-input"),m.val(y.value||"").focus(),typeof k=="function"&&k(q)},resize:!1,yes:function(q){var z=m.val();z===""?m.focus():z.length>(y.maxlength||500)?A.tips("最多输入"+(y.maxlength||500)+"个字数",m,{tips:1}):u&&u(z,q,m)}},y))},A.tab=function(y){y=y||{};var u=y.tab||{},h="layui-this",c=y.success;return delete y.success,A.open(_.extend({type:1,skin:"layui-layer-tab"+F("tab"),resize:!1,title:function(){var m=u.length,D=1,k="";if(m>0)for(k=''+u[0].title+"";D"+u[D].title+"";return k}(),content:'
    '+function(){var m=u.length,D=1,k="";if(m>0)for(k='
  • '+(u[0].content||"no content")+"
  • ";D'+(u[D].content||"no content")+"";return k}()+"
",success:function(m){var D=m.find(".layui-layer-title").children(),k=m.find(".layui-layer-tabmain").children();D.on("mousedown",function(q){q.stopPropagation?q.stopPropagation():q.cancelBubble=!0;var z=_(this),M=z.index();z.addClass(h).siblings().removeClass(h),k.eq(M).show().siblings().hide(),typeof y.change=="function"&&y.change(M)}),typeof c=="function"&&c(m)}},y))},A.photos=function(y,u,h){function c(s,o,d){var g=new Image;return g.src=s,g.complete?o(g):(g.onload=function(){g.onload=null,o(g)},void(g.onerror=function(f){g.onerror=null,d(f)}))}var m={};if(y=y||{},y.photos){var D=y.photos.constructor===Object,k=D?y.photos:{},q=k.data||[],z=k.start||0;m.imgIndex=(0|z)+1,y.img=y.img||"img";var M=y.success;if(delete y.success,D){if(q.length===0)return A.msg("没有图片")}else{var E=_(y.photos),ee=function(){q=[],E.find(y.img).each(function(s){var o=_(this);o.attr("layer-index",s),q.push({alt:o.attr("alt"),pid:o.attr("layer-pid"),src:o.attr("layer-src")||o.attr("src"),thumb:o.attr("src")})})};if(ee(),q.length===0||(u||E.on("click",y.img,function(){var s=_(this),o=s.attr("layer-index");A.photos(_.extend(y,{photos:{start:o,data:q,tab:y.tab},full:y.full}),!0),ee()}),!u))return}m.imgprev=function(s){m.imgIndex--,m.imgIndex<1&&(m.imgIndex=q.length),m.tabimg(s)},m.imgnext=function(s,o){m.imgIndex++,m.imgIndex>q.length&&(m.imgIndex=1,o)||m.tabimg(s)},m.keyup=function(s){if(!m.end){var o=s.keyCode;s.preventDefault(),o===37?m.imgprev(!0):o===39?m.imgnext(!0):o===27&&A.close(m.index)}},m.tabimg=function(s){if(!(q.length<=1))return k.start=m.imgIndex-1,A.close(m.index),A.photos(y,!0,s)},m.event=function(){m.bigimg.hover(function(){m.imgsee.show()},function(){m.imgsee.hide()}),m.bigimg.find(".layui-layer-imgprev").on("click",function(s){s.preventDefault(),m.imgprev()}),m.bigimg.find(".layui-layer-imgnext").on("click",function(s){s.preventDefault(),m.imgnext()}),_(document).on("keyup",m.keyup)},m.loadi=A.load(1,{shade:!("shade"in y)&&.9,scrollbar:!1}),c(q[z].src,function(s){A.close(m.loadi),m.index=A.open(_.extend({type:1,id:"layui-layer-photos",area:function(){var o=[s.width,s.height],d=[_(oe).width()-100,_(oe).height()-100];if(!y.full&&(o[0]>d[0]||o[1]>d[1])){var g=[o[0]/d[0],o[1]/d[1]];g[0]>g[1]?(o[0]=o[0]/g[0],o[1]=o[1]/g[0]):g[0]'+(q[z].alt||
'+(q.length>1?'':"")+'
'+(q[z].alt||"")+""+m.imgIndex+"/"+q.length+"
",success:function(o,d){m.bigimg=o.find(".layui-layer-phimg"),m.imgsee=o.find(".layui-layer-imguide,.layui-layer-imgbar"),m.event(o),y.tab&&y.tab(q[z],o),typeof M=="function"&&M(o)},end:function(){m.end=!0,_(document).off("keyup",m.keyup)}},y))},function(){A.close(m.loadi),A.msg("当前图片地址异常
是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){q.length>1&&m.imgnext(!0,!0)}})})}},G.run=function(y){_=y,O=_(oe),v.html=_("html"),A.open=function(u){var h=new $(u);return h.index}},oe.layui&&layui.define?(A.ready(),layui.define("jquery",function(y){A.path=layui.cache.dir,G.run(layui.$),oe.layer=A,y("layer",A)})):typeof define=="function"&&define.amd?define(["jquery"],function(){return G.run(oe.jQuery),A}):function(){G.run(oe.jQuery),A.ready()}()}(window),layui.define("jquery",function(oe){"use strict";var x=layui.$,_=(layui.hint(),layui.device()),O="element",ie="layui-this",G="layui-show",A=function(){this.config={}};A.prototype.set=function(q){var z=this;return x.extend(!0,z.config,q),z},A.prototype.on=function(q,z){return layui.onevent.call(this,O,q,z)},A.prototype.tabAdd=function(q,z){var M=".layui-tab-title",E=x(".layui-tab[lay-filter="+q+"]"),ee=E.children(M),s=ee.children(".layui-tab-bar"),o=E.children(".layui-tab-content"),d='
  • "+(z.title||"unnaming")+"
  • ";return s[0]?s.before(d):ee.append(d),o.append('
    '+(z.content||"")+"
    "),c.hideTabMore(!0),c.tabAuto(),this},A.prototype.tabDelete=function(q,z){var M=".layui-tab-title",E=x(".layui-tab[lay-filter="+q+"]"),ee=E.children(M),s=ee.find('>li[lay-id="'+z+'"]');return c.tabDelete(null,s),this},A.prototype.tabChange=function(q,z){var M=".layui-tab-title",E=x(".layui-tab[lay-filter="+q+"]"),ee=E.children(M),s=ee.find('>li[lay-id="'+z+'"]');return c.tabClick.call(s[0],null,null,s),this},A.prototype.tab=function(q){q=q||{},D.on("click",q.headerElem,function(z){var M=x(this).index();c.tabClick.call(this,z,M,null,q)})},A.prototype.progress=function(q,z){var M="layui-progress",E=x("."+M+"[lay-filter="+q+"]"),ee=E.find("."+M+"-bar"),s=ee.find("."+M+"-text");return ee.css("width",z),s.text(z),this};var $=".layui-nav",v="layui-nav-item",L="layui-nav-bar",F="layui-nav-tree",y="layui-nav-child",u="layui-nav-more",h="layui-anim layui-anim-upbit",c={tabClick:function(q,z,M,E){E=E||{};var ee=M||x(this),z=z||ee.parent().children("li").index(ee),s=E.headerElem?ee.parent():ee.parents(".layui-tab").eq(0),o=E.bodyElem?x(E.bodyElem):s.children(".layui-tab-content").children(".layui-tab-item"),d=ee.find("a"),g=s.attr("lay-filter");d.attr("href")!=="javascript:;"&&d.attr("target")==="_blank"||(ee.addClass(ie).siblings().removeClass(ie),o.eq(z).addClass(G).siblings().removeClass(G)),layui.event.call(this,O,"tab("+g+")",{elem:s,index:z})},tabDelete:function(q,z){var M=z||x(this).parent(),E=M.index(),ee=M.parents(".layui-tab").eq(0),s=ee.children(".layui-tab-content").children(".layui-tab-item"),o=ee.attr("lay-filter");M.hasClass(ie)&&(M.next()[0]?c.tabClick.call(M.next()[0],null,E+1):M.prev()[0]&&c.tabClick.call(M.prev()[0],null,E-1)),M.remove(),s.eq(E).remove(),setTimeout(function(){c.tabAuto()},50),layui.event.call(this,O,"tabDelete("+o+")",{elem:ee,index:E})},tabAuto:function(){var q="layui-tab-more",z="layui-tab-bar",M="layui-tab-close",E=this;x(".layui-tab").each(function(){var ee=x(this),s=ee.children(".layui-tab-title"),o=(ee.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),d=x('');if(E===window&&_.ie!=8&&c.hideTabMore(!0),ee.attr("lay-allowClose")&&s.find("li").each(function(){var g=x(this);if(!g.find("."+M)[0]){var f=x('');f.on("click",c.tabDelete),g.append(f)}}),typeof ee.attr("lay-unauto")!="string")if(s.prop("scrollWidth")>s.outerWidth()+1){if(s.find("."+z)[0])return;s.append(d),ee.attr("overflow",""),d.on("click",function(g){s[this.title?"removeClass":"addClass"](q),this.title=this.title?"":"\u6536\u7F29"})}else s.find("."+z).remove(),ee.removeAttr("overflow")})},hideTabMore:function(q){var z=x(".layui-tab-title");q!==!0&&x(q.target).attr("lay-stope")==="tabmore"||(z.removeClass("layui-tab-more"),z.find(".layui-tab-bar").attr("title",""))},clickThis:function(){var q=x(this),z=q.parents($),M=z.attr("lay-filter"),E=q.parent(),ee=q.siblings("."+y),s=typeof E.attr("lay-unselect")=="string";q.attr("href")!=="javascript:;"&&q.attr("target")==="_blank"||s||ee[0]||(z.find("."+ie).removeClass(ie),E.addClass(ie)),z.hasClass(F)&&(ee.removeClass(h),ee[0]&&(E[ee.css("display")==="none"?"addClass":"removeClass"](v+"ed"),z.attr("lay-shrink")==="all"&&E.siblings().removeClass(v+"ed"))),layui.event.call(this,O,"nav("+M+")",q)},collapse:function(){var q=x(this),z=q.find(".layui-colla-icon"),M=q.siblings(".layui-colla-content"),E=q.parents(".layui-collapse").eq(0),ee=E.attr("lay-filter"),s=M.css("display")==="none";if(typeof E.attr("lay-accordion")=="string"){var o=E.children(".layui-colla-item").children("."+G);o.siblings(".layui-colla-title").children(".layui-colla-icon").html(""),o.removeClass(G)}M[s?"addClass":"removeClass"](G),z.html(s?"":""),layui.event.call(this,O,"collapse("+ee+")",{title:q,content:M,show:s})}};A.prototype.init=function(q,z){var M=function(){return z?'[lay-filter="'+z+'"]':""}(),E={tab:function(){c.tabAuto.call({})},nav:function(){var ee=200,s={},o={},d={},g=function(f,w,S){var N=x(this),V=N.find("."+y);w.hasClass(F)?f.css({top:N.position().top,height:N.children("a").outerHeight(),opacity:1}):(V.addClass(h),f.css({left:N.position().left+parseFloat(N.css("marginLeft")),top:N.position().top+N.height()-f.height()}),s[S]=setTimeout(function(){f.css({width:N.width(),opacity:1})},_.ie&&_.ie<10?0:ee),clearTimeout(d[S]),V.css("display")==="block"&&clearTimeout(o[S]),o[S]=setTimeout(function(){V.addClass(G),N.find("."+u).addClass(u+"d")},300))};x($+M).each(function(f){var w=x(this),S=x(''),N=w.find("."+v);w.find("."+L)[0]||(w.append(S),N.on("mouseenter",function(){g.call(this,S,w,f)}).on("mouseleave",function(){w.hasClass(F)||(clearTimeout(o[f]),o[f]=setTimeout(function(){w.find("."+y).removeClass(G),w.find("."+u).removeClass(u+"d")},300))}),w.on("mouseleave",function(){clearTimeout(s[f]),d[f]=setTimeout(function(){w.hasClass(F)?S.css({height:0,top:S.position().top+S.height()/2,opacity:0}):S.css({width:0,left:S.position().left+S.width()/2,opacity:0})},ee)})),N.find("a").each(function(){var V=x(this),Z=(V.parent(),V.siblings("."+y));Z[0]&&!V.children("."+u)[0]&&V.append(''),V.off("click",c.clickThis).on("click",c.clickThis)})})},breadcrumb:function(){var ee=".layui-breadcrumb";x(ee+M).each(function(){var s=x(this),o="lay-separator",d=s.attr(o)||"/",g=s.find("a");g.next("span["+o+"]")[0]||(g.each(function(f){f!==g.length-1&&x(this).after(""+d+"")}),s.css("visibility","visible"))})},progress:function(){var ee="layui-progress";x("."+ee+M).each(function(){var s=x(this),o=s.find(".layui-progress-bar"),d=o.attr("lay-percent");o.css("width",function(){return/^.+\/.+$/.test(d)?100*new Function("return "+d)()+"%":d}()),s.attr("lay-showPercent")&&setTimeout(function(){o.html(''+d+"")},350)})},collapse:function(){var ee="layui-collapse";x("."+ee+M).each(function(){var s=x(this).find(".layui-colla-item");s.each(function(){var o=x(this),d=o.find(".layui-colla-title"),g=o.find(".layui-colla-content"),f=g.css("display")==="none";d.find(".layui-colla-icon").remove(),d.append(''+(f?"":"")+""),d.off("click",c.collapse).on("click",c.collapse)})})}};return E[q]?E[q]():layui.each(E,function(ee,s){s()})},A.prototype.render=A.prototype.init;var m=new A,D=x(document);m.render();var k=".layui-tab-title li";D.on("click",k,c.tabClick),D.on("click",c.hideTabMore),x(window).on("resize",c.tabAuto),oe(O,m)}),layui.define("layer",function(oe){"use strict";var x=layui.$,_=layui.layer,O=layui.hint(),ie=layui.device(),G={config:{},set:function(h){var c=this;return c.config=x.extend({},c.config,h),c},on:function(h,c){return layui.onevent.call(this,$,h,c)}},A=function(){var h=this;return{upload:function(c){h.upload.call(h,c)},config:h.config}},$="upload",v="layui-upload-file",L="layui-upload-form",F="layui-upload-iframe",y="layui-upload-choose",u=function(h){var c=this;c.config=x.extend({},c.config,G.config,h),c.render()};u.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",field:"file",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},u.prototype.render=function(h){var c=this,h=c.config;h.elem=x(h.elem),h.bindAction=x(h.bindAction),c.file(),c.events()},u.prototype.file=function(){var h=this,c=h.config,m=h.elemFile=x(['"].join("")),D=c.elem.next();(D.hasClass(v)||D.hasClass(L))&&D.remove(),ie.ie&&ie.ie<10&&c.elem.wrap('
    '),h.isFile()?(h.elemFile=c.elem,c.field=c.elem[0].name):c.elem.after(m),ie.ie&&ie.ie<10&&h.initIE()},u.prototype.initIE=function(){var h=this,c=h.config,m=x(''),D=x(['
    ',"
    "].join(""));x("#"+F)[0]||x("body").append(m),c.elem.next().hasClass(L)||(h.elemFile.wrap(D),c.elem.next("."+L).append(function(){var k=[];return layui.each(c.data,function(q,z){z=typeof z=="function"?z():z,k.push('')}),k.join("")}()))},u.prototype.msg=function(h){return _.msg(h,{icon:2,shift:6})},u.prototype.isFile=function(){var h=this.config.elem[0];if(h)return h.tagName.toLocaleLowerCase()==="input"&&h.type==="file"},u.prototype.preview=function(h){var c=this;window.FileReader&&layui.each(c.chooseFiles,function(m,D){var k=new FileReader;k.readAsDataURL(D),k.onload=function(){h&&h(m,D,this.result)}})},u.prototype.upload=function(h,c){var m,D=this,k=D.config,q=D.elemFile[0],z=function(){var w=0,S=0,N=h||D.files||D.chooseFiles||q.files,V=function(){k.multiple&&w+S===D.fileLength&&typeof k.allDone=="function"&&k.allDone({total:D.fileLength,successful:w,aborted:S})};layui.each(N,function(Z,X){var J=new FormData;J.append(k.field,X),layui.each(k.data,function(C,b){b=typeof b=="function"?b():b,J.append(C,b)}),x.ajax({url:k.url,type:"post",data:J,contentType:!1,processData:!1,dataType:"json",headers:k.headers||{},success:function(C){w++,E(Z,C),V()},error:function(){S++,D.msg("\u8BF7\u6C42\u4E0A\u4F20\u63A5\u53E3\u51FA\u73B0\u5F02\u5E38"),ee(Z),V()}})})},M=function(){var w=x("#"+F);D.elemFile.parent().submit(),clearInterval(u.timer),u.timer=setInterval(function(){var S,N=w.contents().find("body");try{S=N.text()}catch(V){D.msg("\u83B7\u53D6\u4E0A\u4F20\u540E\u7684\u54CD\u5E94\u4FE1\u606F\u51FA\u73B0\u5F02\u5E38"),clearInterval(u.timer),ee()}S&&(clearInterval(u.timer),N.html(""),E(0,S))},30)},E=function(w,S){if(D.elemFile.next("."+y).remove(),q.value="",typeof S!="object")try{S=JSON.parse(S)}catch(N){return S={},D.msg("\u8BF7\u5BF9\u4E0A\u4F20\u63A5\u53E3\u8FD4\u56DE\u6709\u6548JSON")}typeof k.done=="function"&&k.done(S,w||0,function(N){D.upload(N)})},ee=function(w){k.auto&&(q.value=""),typeof k.error=="function"&&k.error(w||0,function(S){D.upload(S)})},s=k.exts,o=function(){var w=[];return layui.each(h||D.chooseFiles,function(S,N){w.push(N.name)}),w}(),d={preview:function(w){D.preview(w)},upload:function(w,S){var N={};N[w]=S,D.upload(N)},pushFile:function(){return D.files=D.files||{},layui.each(D.chooseFiles,function(w,S){D.files[w]=S}),D.files},resetFile:function(w,S,N){var V=new File([S],N);D.files=D.files||{},D.files[w]=V}},g=function(){if(c!=="choose"&&!k.auto||(k.choose&&k.choose(d),c!=="choose"))return k.before&&k.before(d),ie.ie?ie.ie>9?z():M():void z()};if(o=o.length===0?q.value.match(/[^\/\\]+\..+/g)||[]:o,o.length!==0){switch(k.accept){case"file":if(s&&!RegExp("\\w\\.("+s+")$","i").test(escape(o)))return D.msg("\u9009\u62E9\u7684\u6587\u4EF6\u4E2D\u5305\u542B\u4E0D\u652F\u6301\u7684\u683C\u5F0F"),q.value="";break;case"video":if(!RegExp("\\w\\.("+(s||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(o)))return D.msg("\u9009\u62E9\u7684\u89C6\u9891\u4E2D\u5305\u542B\u4E0D\u652F\u6301\u7684\u683C\u5F0F"),q.value="";break;case"audio":if(!RegExp("\\w\\.("+(s||"mp3|wav|mid")+")$","i").test(escape(o)))return D.msg("\u9009\u62E9\u7684\u97F3\u9891\u4E2D\u5305\u542B\u4E0D\u652F\u6301\u7684\u683C\u5F0F"),q.value="";break;default:if(layui.each(o,function(w,S){RegExp("\\w\\.("+(s||"jpg|png|gif|bmp|jpeg$")+")","i").test(escape(S))||(m=!0)}),m)return D.msg("\u9009\u62E9\u7684\u56FE\u7247\u4E2D\u5305\u542B\u4E0D\u652F\u6301\u7684\u683C\u5F0F"),q.value=""}if(D.fileLength=function(){var w=0,S=h||D.files||D.chooseFiles||q.files;return layui.each(S,function(){w++}),w}(),k.number&&D.fileLength>k.number)return D.msg("\u540C\u65F6\u6700\u591A\u53EA\u80FD\u4E0A\u4F20\u7684\u6570\u91CF\u4E3A\uFF1A"+k.number);if(k.size>0&&!(ie.ie&&ie.ie<10)){var f;if(layui.each(D.chooseFiles,function(w,S){if(S.size>1024*k.size){var N=k.size/1024;N=N>=1?N.toFixed(2)+"MB":k.size+"KB",q.value="",f=N}}),f)return D.msg("\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7"+f)}g()}},u.prototype.events=function(){var h=this,c=h.config,m=function(k){h.chooseFiles={},layui.each(k,function(q,z){var M=new Date().getTime();h.chooseFiles[M+"-"+q]=z})},D=function(k,q){var z=h.elemFile,M=k.length>1?k.length+"\u4E2A\u6587\u4EF6":(k[0]||{}).name||z[0].value.match(/[^\/\\]+\..+/g)||[];z.next().hasClass(y)&&z.next().remove(),h.upload(null,"choose"),h.isFile()||c.choose||z.after(''+M+"")};c.elem.off("upload.start").on("upload.start",function(){var k=x(this),q=k.attr("lay-data");if(q)try{q=new Function("return "+q)(),h.config=x.extend({},c,q)}catch(z){O.error("Upload element property lay-data configuration item has a syntax error: "+q)}h.config.item=k,h.elemFile[0].click()}),ie.ie&&ie.ie<10||c.elem.off("upload.over").on("upload.over",function(){var k=x(this);k.attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){var k=x(this);k.removeAttr("lay-over")}).off("upload.drop").on("upload.drop",function(k,q){var z=x(this),M=q.originalEvent.dataTransfer.files||[];z.removeAttr("lay-over"),m(M),c.auto?h.upload(M):D(M)}),h.elemFile.off("upload.change").on("upload.change",function(){var k=this.files||[];m(k),c.auto?h.upload():D(k)}),c.bindAction.off("upload.action").on("upload.action",function(){h.upload()}),c.elem.data("haveEvents")||(h.elemFile.on("change",function(){x(this).trigger("upload.change")}),c.elem.on("click",function(){h.isFile()||x(this).trigger("upload.start")}),c.drag&&c.elem.on("dragover",function(k){k.preventDefault(),x(this).trigger("upload.over")}).on("dragleave",function(k){x(this).trigger("upload.leave")}).on("drop",function(k){k.preventDefault(),x(this).trigger("upload.drop",k)}),c.bindAction.on("click",function(){x(this).trigger("upload.action")}),c.elem.data("haveEvents",!0))},G.render=function(h){var c=new u(h);return A.call(c)},oe($,G)}),layui.define("jquery",function(oe){"use strict";var x=layui.jquery,_={config:{},index:layui.slider?layui.slider.index+1e4:0,set:function(D){var k=this;return k.config=x.extend({},k.config,D),k},on:function(D,k){return layui.onevent.call(this,ie,D,k)}},O=function(){var D=this,k=D.config;return{setValue:function(q,z){return D.slide("set",q,z||0)},config:k}},ie="slider",G="layui-disabled",A="layui-slider",$="layui-slider-bar",v="layui-slider-wrap",L="layui-slider-wrap-btn",F="layui-slider-tips",y="layui-slider-input",u="layui-slider-input-txt",h="layui-slider-input-btn",c="layui-slider-hover",m=function(D){var k=this;k.index=++_.index,k.config=x.extend({},k.config,_.config,D),k.render()};m.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"},m.prototype.render=function(){var D=this,k=D.config;if(k.min=k.min<0?0:k.min,k.range){k.value=typeof k.value=="object"?k.value:[k.min,k.value];var q=Math.min(k.value[0],k.value[1]),z=Math.max(k.value[0],k.value[1]);k.value[0]=q>k.min?q:k.min,k.value[1]=z>k.min?z:k.min,k.value[0]=k.value[0]>k.max?k.max:k.value[0],k.value[1]=k.value[1]>k.max?k.max:k.value[1];var M=Math.floor((k.value[0]-k.min)/(k.max-k.min)*100),E=Math.floor((k.value[1]-k.min)/(k.max-k.min)*100),ee=E-M+"%";M+="%",E+="%"}else{k.value=typeof k.value=="object"?Math.min(k.value[0],k.value[1]):k.value,k.value=k.value>k.min?k.value:k.min;var ee=Math.floor((k.value-k.min)/(k.max-k.min)*100)+"%"}var s=k.disabled?"#c2c2c2":k.theme,o='
    '+(k.tips?'
    ':"")+'
    '+(k.range?'
    ':"")+"
    ",d=x(k.elem),g=d.next("."+A);if(g[0]&&g.remove(),D.elemTemp=x(o),k.range?(D.elemTemp.find("."+v).eq(0).data("value",k.value[0]),D.elemTemp.find("."+v).eq(1).data("value",k.value[1])):D.elemTemp.find("."+v).data("value",k.value),d.html(D.elemTemp),k.type==="vertical"&&D.elemTemp.height(k.height+"px"),k.showstep){for(var f=(k.max-k.min)/k.step,w="",S=1;S')}D.elemTemp.append(w)}if(k.input&&!k.range){var V=x('
    ');d.css("position","relative"),d.append(V),d.find("."+u).children("input").val(k.value),k.type==="vertical"?V.css({left:0,top:-48}):D.elemTemp.css("margin-right",V.outerWidth()+15)}k.disabled?(D.elemTemp.addClass(G),D.elemTemp.find("."+L).addClass(G)):D.slide(),D.elemTemp.find("."+L).on("mouseover",function(){var Z=k.type==="vertical"?k.height:D.elemTemp[0].offsetWidth,X=D.elemTemp.find("."+v),J=k.type==="vertical"?Z-x(this).parent()[0].offsetTop-X.height():x(this).parent()[0].offsetLeft,C=J/Z*100,b=x(this).parent().data("value"),P=k.setTips?k.setTips(b):b;D.elemTemp.find("."+F).html(P),k.type==="vertical"?(D.elemTemp.find("."+F).css({bottom:C+"%","margin-bottom":"20px",display:"inline-block"}),D.elemTemp.children("span").css({bottom:C+"%","margin-bottom":"8px",display:"inline-block"})):(D.elemTemp.find("."+F).css({left:C+"%",display:"inline-block"}),D.elemTemp.children("span").css({left:C+"%",display:"inline-block"}))}).on("mouseout",function(){D.elemTemp.find("."+F).css("display","none"),D.elemTemp.children("span").css("display","none")})},m.prototype.slide=function(D,k,q){var z=this,M=z.config,E=z.elemTemp,ee=function(){return M.type==="vertical"?M.height:E[0].offsetWidth},s=E.find("."+v),o=E.next("."+y),d=o.children("."+u).children("input").val(),g=100/((M.max-M.min)/Math.ceil(M.step)),f=function(Z,X){Z=Math.ceil(Z)*g>100?Math.ceil(Z)*g:Math.round(Z)*g,Z=Z>100?100:Z,s.eq(X).css(M.type==="vertical"?"bottom":"left",Z+"%");var J=w(s[0].offsetLeft),C=M.range?w(s[1].offsetLeft):0;M.type==="vertical"?(E.find("."+F).css({bottom:Z+"%","margin-bottom":"20px"}),E.children("span").css({bottom:Z+"%","margin-bottom":"8px"}),J=w(ee()-s[0].offsetTop-s.height()),C=M.range?w(ee()-s[1].offsetTop-s.height()):0):(E.find("."+F).css("left",Z+"%"),E.children("span").css("left",Z+"%")),J=J>100?100:J,C=C>100?100:C;var b=Math.min(J,C),P=Math.abs(J-C);M.type==="vertical"?E.find("."+$).css({height:P+"%",bottom:b+"%"}):E.find("."+$).css({width:P+"%",left:b+"%"});var te=M.min+Math.round((M.max-M.min)*Z/100);if(d=te,o.children("."+u).children("input").val(d),s.eq(X).data("value",te),te=M.setTips?M.setTips(te):te,E.find("."+F).html(te),M.range){var H=[s.eq(0).data("value"),s.eq(1).data("value")];H[0]>H[1]&&H.reverse()}M.change&&M.change(M.range?H:te)},w=function(Z){var X=Z/ee()*100/g,J=Math.round(X)*g;return Z==ee()&&(J=Math.ceil(X)*g),J},S=x(['
    ee()&&(ae=ee());var le=ae/ee()*100/g;f(le,Z),X.addClass(c),E.find("."+F).show(),E.children("span").show(),H.preventDefault()},te=function(){X.removeClass(c),E.find("."+F).hide(),E.children("span").hide()};N(P,te)})}),E.on("click",function(Z){var X=x("."+L);if(!X.is(event.target)&&X.has(event.target).length===0&&X.length){var J,C=M.type==="vertical"?ee()-Z.clientY+x(this).offset().top:Z.clientX-x(this).offset().left;C<0&&(C=0),C>ee()&&(C=ee());var b=C/ee()*100/g;J=M.range?M.type==="vertical"?Math.abs(C-parseInt(x(s[0]).css("bottom")))>Math.abs(C-parseInt(x(s[1]).css("bottom")))?1:0:Math.abs(C-s[0].offsetLeft)>Math.abs(C-s[1].offsetLeft)?1:0:0,f(b,J),Z.preventDefault()}}),o.hover(function(){var Z=x(this);Z.children("."+h).fadeIn("fast")},function(){var Z=x(this);Z.children("."+h).fadeOut("fast")}),o.children("."+h).children("i").each(function(Z){x(this).on("click",function(){d=Z==1?d-gM.max?M.max:Number(d)+g;var X=(d-M.min)/(M.max-M.min)*100/g;f(X,0)})});var V=function(){var Z=this.value;Z=isNaN(Z)?0:Z,Z=ZM.max?M.max:Z,this.value=Z;var X=(Z-M.min)/(M.max-M.min)*100/g;f(X,0)};o.children("."+u).children("input").on("keydown",function(Z){Z.keyCode===13&&(Z.preventDefault(),V.call(this))}).on("change",V)},m.prototype.events=function(){var D=this;D.config},_.render=function(D){var k=new m(D);return O.call(k)},oe(ie,_)}),layui.define("jquery",function(oe){"use strict";var x=layui.jquery,_={config:{},index:layui.colorpicker?layui.colorpicker.index+1e4:0,set:function(f){var w=this;return w.config=x.extend({},w.config,f),w},on:function(f,w){return layui.onevent.call(this,"colorpicker",f,w)}},O=function(){var f=this,w=f.config;return{config:w}},ie="colorpicker",G="layui-show",A="layui-colorpicker",$=".layui-colorpicker-main",v="layui-icon-down",L="layui-icon-close",F="layui-colorpicker-trigger-span",y="layui-colorpicker-trigger-i",u="layui-colorpicker-side",h="layui-colorpicker-side-slider",c="layui-colorpicker-basis",m="layui-colorpicker-alpha-bgcolor",D="layui-colorpicker-alpha-slider",k="layui-colorpicker-basis-cursor",q="layui-colorpicker-main-input",z=function(f){var w={h:0,s:0,b:0},S=Math.min(f.r,f.g,f.b),N=Math.max(f.r,f.g,f.b),V=N-S;return w.b=N,w.s=N!=0?255*V/N:0,w.s!=0?f.r==N?w.h=(f.g-f.b)/V:f.g==N?w.h=2+(f.b-f.r)/V:w.h=4+(f.r-f.g)/V:w.h=-1,N==S&&(w.h=0),w.h*=60,w.h<0&&(w.h+=360),w.s*=100/255,w.b*=100/255,w},M=function(f){var f=f.indexOf("#")>-1?f.substring(1):f;if(f.length==3){var w=f.split("");f=w[0]+w[0]+w[1]+w[1]+w[2]+w[2]}f=parseInt(f,16);var S={r:f>>16,g:(65280&f)>>8,b:255&f};return z(S)},E=function(f){var w={},S=f.h,N=255*f.s/100,V=255*f.b/100;if(N==0)w.r=w.g=w.b=V;else{var Z=V,X=(255-N)*V/255,J=(Z-X)*(S%60)/60;S==360&&(S=0),S<60?(w.r=Z,w.b=X,w.g=X+J):S<120?(w.g=Z,w.b=X,w.r=Z-J):S<180?(w.g=Z,w.r=X,w.b=X+J):S<240?(w.b=Z,w.r=X,w.g=Z-J):S<300?(w.b=Z,w.g=X,w.r=X+J):S<360?(w.r=Z,w.g=X,w.b=Z-J):(w.r=0,w.g=0,w.b=0)}return{r:Math.round(w.r),g:Math.round(w.g),b:Math.round(w.b)}},ee=function(f){var w=E(f),S=[w.r.toString(16),w.g.toString(16),w.b.toString(16)];return x.each(S,function(N,V){V.length==1&&(S[N]="0"+V)}),S.join("")},s=function(f){var w=/[0-9]{1,3}/g,S=f.match(w)||[];return{r:S[0],g:S[1],b:S[2]}},o=x(window),d=x(document),g=function(f){var w=this;w.index=++_.index,w.config=x.extend({},w.config,_.config,f),w.render()};g.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)"]},g.prototype.render=function(){var f=this,w=f.config,S=x(['
    ',"",'3&&(w.alpha&&w.format=="rgb"||(V="#"+ee(z(s(w.color))))),"background: "+V):V}()+'">','',"","","
    "].join("")),N=x(w.elem);w.size&&S.addClass("layui-colorpicker-"+w.size),N.addClass("layui-inline").html(f.elemColorBox=S),f.color=f.elemColorBox.find("."+F)[0].style.background,f.events()},g.prototype.renderPicker=function(){var f=this,w=f.config,S=f.elemColorBox[0],N=f.elemPicker=x(['
    ','
    ','
    ','
    ','
    ','
    ',"
    ",'
    ','
    ',"
    ","
    ",'
    ','
    ','
    ',"
    ","
    ",function(){if(w.predefine){var V=['
    '];return layui.each(w.colors,function(Z,X){V.push(['
    ','
    ',"
    "].join(""))}),V.push("
    "),V.join("")}return""}(),'
    ','
    ','',"
    ",'
    ','','',"","
    "].join(""));f.elemColorBox.find("."+F)[0],x($)[0]&&x($).data("index")==f.index?f.removePicker(g.thisElemInd):(f.removePicker(g.thisElemInd),x("body").append(N)),g.thisElemInd=f.index,g.thisColor=S.style.background,f.position(),f.pickerEvents()},g.prototype.removePicker=function(f){var w=this;return w.config,x("#layui-colorpicker"+(f||w.index)).remove(),w},g.prototype.position=function(){var f=this,w=f.config,S=f.bindElem||f.elemColorBox[0],N=f.elemPicker[0],V=S.getBoundingClientRect(),Z=N.offsetWidth,X=N.offsetHeight,J=function(H){return H=H?"scrollLeft":"scrollTop",document.body[H]|document.documentElement[H]},C=function(H){return document.documentElement[H?"clientWidth":"clientHeight"]},b=5,P=V.left,te=V.bottom;P-=(Z-S.offsetWidth)/2,te+=b,P+Z+b>C("width")?P=C("width")-Z-b:PC()&&(te=V.top>X?V.top-X:C()-X,te-=2*b),w.position&&(N.style.position=w.position),N.style.left=P+(w.position==="fixed"?0:J(1))+"px",N.style.top=te+(w.position==="fixed"?0:J())+"px"},g.prototype.val=function(){var f=this,w=(f.config,f.elemColorBox.find("."+F)),S=f.elemPicker.find("."+q),N=w[0],V=N.style.backgroundColor;if(V){var Z=z(s(V)),X=w.attr("lay-type");if(f.select(Z.h,Z.s,Z.b),X==="torgb"&&S.find("input").val(V),X==="rgba"){var J=s(V);if((V.match(/[0-9]{1,3}/g)||[]).length==3)S.find("input").val("rgba("+J.r+", "+J.g+", "+J.b+", 1)"),f.elemPicker.find("."+D).css("left",280);else{S.find("input").val(V);var C=280*V.slice(V.lastIndexOf(",")+1,V.length-1);f.elemPicker.find("."+D).css("left",C)}f.elemPicker.find("."+m)[0].style.background="linear-gradient(to right, rgba("+J.r+", "+J.g+", "+J.b+", 0), rgb("+J.r+", "+J.g+", "+J.b+"))"}}else f.select(0,100,100),S.find("input").val(""),f.elemPicker.find("."+m)[0].style.background="",f.elemPicker.find("."+D).css("left",280)},g.prototype.side=function(){var f=this,w=f.config,S=f.elemColorBox.find("."+F),N=S.attr("lay-type"),V=f.elemPicker.find("."+u),Z=f.elemPicker.find("."+h),X=f.elemPicker.find("."+c),J=f.elemPicker.find("."+k),C=f.elemPicker.find("."+m),b=f.elemPicker.find("."+D),P=Z[0].offsetTop/180*360,te=100-(J[0].offsetTop+3)/180*100,H=(J[0].offsetLeft+3)/260*100,ae=Math.round(b[0].offsetLeft/280*100)/100,le=f.elemColorBox.find("."+y),xe=f.elemPicker.find(".layui-colorpicker-pre").children("div"),he=function(se,Y,Q,pe){f.select(se,Y,Q);var fe=E({h:se,s:Y,b:Q});if(le.addClass(v).removeClass(L),S[0].style.background="rgb("+fe.r+", "+fe.g+", "+fe.b+")",N==="torgb"&&f.elemPicker.find("."+q).find("input").val("rgb("+fe.r+", "+fe.g+", "+fe.b+")"),N==="rgba"){var ke=0;ke=280*pe,b.css("left",ke),f.elemPicker.find("."+q).find("input").val("rgba("+fe.r+", "+fe.g+", "+fe.b+", "+pe+")"),S[0].style.background="rgba("+fe.r+", "+fe.g+", "+fe.b+", "+pe+")",C[0].style.background="linear-gradient(to right, rgba("+fe.r+", "+fe.g+", "+fe.b+", 0), rgb("+fe.r+", "+fe.g+", "+fe.b+"))"}w.change&&w.change(f.elemPicker.find("."+q).find("input").val())},ue=x(['
    je&&(ke=je);var Me=ke/180*360;P=Me,he(Me,H,te,ae),fe.preventDefault()};ye(pe),se.preventDefault()}),V.on("click",function(se){var Y=se.clientY-x(this).offset().top;Y<0&&(Y=0),Y>this.offsetHeight&&(Y=this.offsetHeight);var Q=Y/180*360;P=Q,he(Q,H,te,ae),se.preventDefault()}),J.on("mousedown",function(se){var Y=this.offsetTop,Q=this.offsetLeft,pe=se.clientY,fe=se.clientX,ke=function(je){var Me=Y+(je.clientY-pe),Ee=Q+(je.clientX-fe),Ye=X[0].offsetHeight-3,Fe=X[0].offsetWidth-3;Me<-3&&(Me=-3),Me>Ye&&(Me=Ye),Ee<-3&&(Ee=-3),Ee>Fe&&(Ee=Fe);var we=(Ee+3)/260*100,Ie=100-(Me+3)/180*100;te=Ie,H=we,he(P,we,Ie,ae),je.preventDefault()};ye(ke),se.preventDefault()}),X.on("click",function(se){var Y=se.clientY-x(this).offset().top-3+o.scrollTop(),Q=se.clientX-x(this).offset().left-3+o.scrollLeft();Y<-3&&(Y=-3),Y>this.offsetHeight-3&&(Y=this.offsetHeight-3),Q<-3&&(Q=-3),Q>this.offsetWidth-3&&(Q=this.offsetWidth-3);var pe=(Q+3)/260*100,fe=100-(Y+3)/180*100;te=fe,H=pe,he(P,pe,fe,ae),se.preventDefault()}),b.on("mousedown",function(se){var Y=this.offsetLeft,Q=se.clientX,pe=function(fe){var ke=Y+(fe.clientX-Q),je=C[0].offsetWidth;ke<0&&(ke=0),ke>je&&(ke=je);var Me=Math.round(ke/280*100)/100;ae=Me,he(P,H,te,Me),fe.preventDefault()};ye(pe),se.preventDefault()}),C.on("click",function(se){var Y=se.clientX-x(this).offset().left;Y<0&&(Y=0),Y>this.offsetWidth&&(Y=this.offsetWidth);var Q=Math.round(Y/280*100)/100;ae=Q,he(P,H,te,Q),se.preventDefault()}),xe.each(function(){x(this).on("click",function(){x(this).parent(".layui-colorpicker-pre").addClass("selected").siblings().removeClass("selected");var se,Y=this.style.backgroundColor,Q=z(s(Y)),pe=Y.slice(Y.lastIndexOf(",")+1,Y.length-1);P=Q.h,H=Q.s,te=Q.b,(Y.match(/[0-9]{1,3}/g)||[]).length==3&&(pe=1),ae=pe,se=280*pe,he(Q.h,Q.s,Q.b,pe)})})},g.prototype.select=function(f,w,S,N){var V=this,Z=(V.config,ee({h:f,s:100,b:100})),X=ee({h:f,s:w,b:S}),J=f/360*180,C=180-S/100*180-3,b=w/100*260-3;V.elemPicker.find("."+h).css("top",J),V.elemPicker.find("."+c)[0].style.background="#"+Z,V.elemPicker.find("."+k).css({top:C,left:b}),N!=="change"&&V.elemPicker.find("."+q).find("input").val("#"+X)},g.prototype.pickerEvents=function(){var f=this,w=f.config,S=f.elemColorBox.find("."+F),N=f.elemPicker.find("."+q+" input"),V={clear:function(Z){S[0].style.background="",f.elemColorBox.find("."+y).removeClass(v).addClass(L),f.color="",w.done&&w.done(""),f.removePicker()},confirm:function(Z,X){var J=N.val(),C=J,b={};if(J.indexOf(",")>-1){if(b=z(s(J)),f.select(b.h,b.s,b.b),S[0].style.background=C="#"+ee(b),(J.match(/[0-9]{1,3}/g)||[]).length>3&&S.attr("lay-type")==="rgba"){var P=280*J.slice(J.lastIndexOf(",")+1,J.length-1);f.elemPicker.find("."+D).css("left",P),S[0].style.background=J,C=J}}else b=M(J),S[0].style.background=C="#"+ee(b),f.elemColorBox.find("."+y).removeClass(L).addClass(v);return X==="change"?(f.select(b.h,b.s,b.b,X),void(w.change&&w.change(C))):(f.color=J,w.done&&w.done(J),void f.removePicker())}};f.elemPicker.on("click","*[colorpicker-events]",function(){var Z=x(this),X=Z.attr("colorpicker-events");V[X]&&V[X].call(this,Z)}),N.on("keyup",function(Z){var X=x(this);V.confirm.call(this,X,Z.keyCode===13?null:"change")})},g.prototype.events=function(){var f=this,w=f.config,S=f.elemColorBox.find("."+F);f.elemColorBox.on("click",function(){f.renderPicker(),x($)[0]&&(f.val(),f.side())}),w.elem[0]&&!f.elemColorBox[0].eventHandler&&(d.on("click",function(N){if(!x(N.target).hasClass(A)&&!x(N.target).parents("."+A)[0]&&!x(N.target).hasClass($.replace(/\./g,""))&&!x(N.target).parents($)[0]&&f.elemPicker){if(f.color){var V=z(s(f.color));f.select(V.h,V.s,V.b)}else f.elemColorBox.find("."+y).removeClass(v).addClass(L);S[0].style.background=f.color||"",f.removePicker()}}),o.on("resize",function(){return!(!f.elemPicker||!x($)[0])&&void f.position()}),f.elemColorBox[0].eventHandler=!0)},_.render=function(f){var w=new g(f);return O.call(w)},oe(ie,_)}),layui.define("layer",function(oe){"use strict";var x=layui.$,_=layui.layer,O=layui.hint(),ie=layui.device(),G="form",A=".layui-form",$="layui-this",v="layui-hide",L="layui-disabled",F=function(){this.config={verify:{required:[/[\S]+/,"\u5FC5\u586B\u9879\u4E0D\u80FD\u4E3A\u7A7A"],phone:[/^1\d{10}$/,"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7"],email:[/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,"\u90AE\u7BB1\u683C\u5F0F\u4E0D\u6B63\u786E"],url:[/(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/,"\u94FE\u63A5\u683C\u5F0F\u4E0D\u6B63\u786E"],number:function(m){if(!m||isNaN(m))return"\u53EA\u80FD\u586B\u5199\u6570\u5B57"},date:[/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/,"\u65E5\u671F\u683C\u5F0F\u4E0D\u6B63\u786E"],identity:[/(^\d{15}$)|(^\d{17}(x|X|\d)$)/,"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u53F7"]}}};F.prototype.set=function(m){var D=this;return x.extend(!0,D.config,m),D},F.prototype.verify=function(m){var D=this;return x.extend(!0,D.config.verify,m),D},F.prototype.on=function(m,D){return layui.onevent.call(this,G,m,D)},F.prototype.val=function(m,D){var k=x(A+'[lay-filter="'+m+'"]');k.each(function(q,z){var M=x(this);layui.each(D,function(E,ee){var s,o=M.find('[name="'+E+'"]');o[0]&&(s=o[0].type,s==="checkbox"?o[0].checked=ee:s==="radio"?o.each(function(){this.value===ee&&(this.checked=!0)}):o.val(ee))})}),u.render(null,m)},F.prototype.render=function(m,D){var k=this,q=x(A+function(){return D?'[lay-filter="'+D+'"]':""}()),z={select:function(){var M,E="\u8BF7\u9009\u62E9",ee="layui-form-select",s="layui-select-title",o="layui-select-none",d="",g=q.find("select"),f=function(S,N){x(S.target).parent().hasClass(s)&&!N||(x("."+ee).removeClass(ee+"ed "+ee+"up"),M&&d&&M.val(d)),M=null},w=function(S,N,V){var Z,X=x(this),J=S.find("."+s),C=J.find("input"),b=S.find("dl"),P=b.children("dd"),te=this.selectedIndex;if(!N){var H=function(){var ue=S.offset().top+S.outerHeight()+5-c.scrollTop(),ye=b.outerHeight();te=X[0].selectedIndex,S.addClass(ee+"ed"),P.removeClass(v),Z=null,P.eq(te).addClass($).siblings().removeClass($),ue+ye>c.height()&&ue>=ye&&S.addClass(ee+"up"),le()},ae=function(ue){S.removeClass(ee+"ed "+ee+"up"),C.blur(),Z=null,ue||xe(C.val(),function(ye){ye&&(d=b.find("."+$).html(),C&&C.val(d))})},le=function(){var ue=b.children("dd."+$);if(ue[0]){var ye=ue.position().top,se=b.height(),Y=ue.height();ye>se&&b.scrollTop(ye+b.scrollTop()-se+Y-5),ye<0&&b.scrollTop(ye+b.scrollTop()-5)}};J.on("click",function(ue){S.hasClass(ee+"ed")?ae():(f(ue,!0),H()),b.find("."+o).remove()}),J.find(".layui-edge").on("click",function(){C.focus()}),C.on("keyup",function(ue){var ye=ue.keyCode;ye===9&&H()}).on("keydown",function(ue){var ye=ue.keyCode;ye===9&&ae();var se=function(Y,Q){var pe,fe;ue.preventDefault();var ke=function(){var je=b.children("dd."+$);if(b.children("dd."+v)[0]&&Y==="next"){var Me=b.children("dd:not(."+v+",."+L+")"),Ee=Me.eq(0).index();if(Ee>=0&&Ee\u65E0\u5339\u914D\u9879

    '):b.find("."+o).remove()},"keyup"),ye===""&&b.find("."+o).remove(),void le())};V&&C.on("keyup",he).on("blur",function(ue){var ye=X[0].selectedIndex;M=C,d=x(X[0].options[ye]).html(),setTimeout(function(){xe(C.val(),function(se){d||C.val("")},"blur")},200)}),P.on("click",function(){var ue=x(this),ye=ue.attr("lay-value"),se=X.attr("lay-filter");return!ue.hasClass(L)&&(ue.hasClass("layui-select-tips")?C.val(""):(C.val(ue.text()),ue.addClass($)),ue.siblings().removeClass($),X.val(ye).removeClass("layui-form-danger"),layui.event.call(this,G,"select("+se+")",{elem:X[0],value:ye,othis:S}),ae(!0),!1)}),S.find("dl>dt").on("click",function(ue){return!1}),x(document).off("click",f).on("click",f)}};g.each(function(S,N){var V=x(this),Z=V.next("."+ee),X=this.disabled,J=N.value,C=x(N.options[N.selectedIndex]),b=N.options[0];if(typeof V.attr("lay-ignore")=="string")return V.show();var P=typeof V.attr("lay-search")=="string",te=b?b.value?E:b.innerHTML||E:E,H=x(['
    ','
    ','','
    ','
    ',function(ae){var le=[];return layui.each(ae,function(xe,he){xe!==0||he.value?he.tagName.toLowerCase()==="optgroup"?le.push("
    "+he.label+"
    "):le.push('
    '+he.innerHTML+"
    "):le.push('
    '+(he.innerHTML||E)+"
    ")}),le.length===0&&le.push('
    \u6CA1\u6709\u9009\u9879
    '),le.join("")}(V.find("*"))+"
    ","
    "].join(""));Z[0]&&Z.remove(),V.after(H),w.call(this,H,X,P)})},checkbox:function(){var M={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},E=q.find("input[type=checkbox]"),ee=function(s,o){var d=x(this);s.on("click",function(){var g=d.attr("lay-filter"),f=(d.attr("lay-text")||"").split("|");d[0].disabled||(d[0].checked?(d[0].checked=!1,s.removeClass(o[1]).find("em").text(f[1])):(d[0].checked=!0,s.addClass(o[1]).find("em").text(f[0])),layui.event.call(d[0],G,o[2]+"("+g+")",{elem:d[0],value:d[0].value,othis:s}))})};E.each(function(s,o){var d=x(this),g=d.attr("lay-skin"),f=(d.attr("lay-text")||"").split("|"),w=this.disabled;g==="switch"&&(g="_"+g);var S=M[g]||M.checkbox;if(typeof d.attr("lay-ignore")=="string")return d.show();var N=d.next("."+S[0]),V=x(['
    ",function(){var Z=o.title.replace(/\s/g,""),X={checkbox:[Z?""+o.title+"":"",''].join(""),_switch:""+((o.checked?f[0]:f[1])||"")+""};return X[g]||X.checkbox}(),"
    "].join(""));N[0]&&N.remove(),d.after(V),ee.call(this,V,S)})},radio:function(){var M="layui-form-radio",E=["",""],ee=q.find("input[type=radio]"),s=function(o){var d=x(this),g="layui-anim-scaleSpring";o.on("click",function(){var f=d[0].name,w=d.parents(A),S=d.attr("lay-filter"),N=w.find("input[name="+f.replace(/(\.|#|\[|\])/g,"\\$1")+"]");d[0].disabled||(layui.each(N,function(){var V=x(this).next("."+M);this.checked=!1,V.removeClass(M+"ed"),V.find(".layui-icon").removeClass(g).html(E[1])}),d[0].checked=!0,o.addClass(M+"ed"),o.find(".layui-icon").addClass(g).html(E[0]),layui.event.call(d[0],G,"radio("+S+")",{elem:d[0],value:d[0].value,othis:o}))})};ee.each(function(o,d){var g=x(this),f=g.next("."+M),w=this.disabled;if(typeof g.attr("lay-ignore")=="string")return g.show();f[0]&&f.remove();var S=x(['
    ',''+E[d.checked?0:1]+"","
    "+function(){var N=d.title||"";return typeof g.next().attr("lay-radio")=="string"&&(N=g.next().html(),g.next().remove()),N}()+"
    ","
    "].join(""));g.after(S),s.call(this,S)})}};return m?z[m]?z[m]():O.error("\u4E0D\u652F\u6301\u7684"+m+"\u8868\u5355\u6E32\u67D3"):layui.each(z,function(M,E){E()}),k};var y=function(){var m=x(this),D=u.config.verify,k=null,q="layui-form-danger",z={},M=m.parents(A),E=M.find("*[lay-verify]"),ee=m.parents("form")[0],s=M.find("input,select,textarea"),o=m.attr("lay-filter");if(layui.each(E,function(g,f){var w=x(this),S=w.attr("lay-verify").split("|"),N=w.attr("lay-verType"),V=w.val();if(w.removeClass(q),layui.each(S,function(Z,X){var J,C="",b=typeof D[X]=="function";if(D[X]){var J=b?C=D[X](V,f):!D[X][0].test(V);if(C=C||D[X][1],J)return N==="tips"?_.tips(C,function(){return typeof w.attr("lay-ignore")=="string"||f.tagName.toLowerCase()!=="select"&&!/^checkbox|radio$/.test(f.type)?w:w.next()}(),{tips:1}):N==="alert"?_.alert(C,{title:"\u63D0\u793A",shadeClose:!0}):_.msg(C,{icon:5,shift:6}),ie.android||ie.ios||f.focus(),w.addClass(q),k=!0}}),k)return k}),k)return!1;var d={};return layui.each(s,function(g,f){if(f.name=(f.name||"").replace(/^\s*|\s*&/,""),f.name){if(/^.*\[\]$/.test(f.name)){var w=f.name.match(/^(.*)\[\]$/g)[0];d[w]=0|d[w],f.name=f.name.replace(/^(.*)\[\]$/,"$1["+d[w]+++"]")}/^checkbox|radio$/.test(f.type)&&!f.checked||(z[f.name]=f.value)}}),layui.event.call(this,G,"submit("+o+")",{elem:this,form:ee,field:z})},u=new F,h=x(document),c=x(window);u.render(),h.on("reset",A,function(){var m=x(this).attr("lay-filter");setTimeout(function(){u.render(null,m)},50)}),h.on("submit",A,y).on("click","*[lay-submit]",y),oe(G,u)}),layui.define("jquery",function(oe){"use strict";var x=layui.$,_=layui.hint(),O="layui-tree-enter",ie=function(A){this.options=A},G={arrow:["",""],checkbox:["",""],radio:["",""],branch:["",""],leaf:""};ie.prototype.init=function(A){var $=this;A.addClass("layui-box layui-tree"),$.options.skin&&A.addClass("layui-tree-skin-"+$.options.skin),$.tree(A),$.on(A)},ie.prototype.tree=function(A,$){var v=this,L=v.options,F=$||L.nodes;layui.each(F,function(y,u){var h=u.children&&u.children.length>0,c=x('
      '),m=x(["
    • ",function(){return h?''+(u.spread?G.arrow[1]:G.arrow[0])+"":""}(),function(){return L.check?''+(L.check==="checkbox"?G.checkbox[0]:L.check==="radio"?G.radio[0]:"")+"":""}(),function(){return'"+(''+(h?u.spread?G.branch[1]:G.branch[0]:G.leaf)+"")+(""+(u.name||"\u672A\u547D\u540D")+"")}(),"
    • "].join(""));h&&(m.append(c),v.tree(c,u.children)),A.append(m),typeof L.click=="function"&&v.click(m,u),v.spread(m,u),L.drag&&v.drag(m,u)})},ie.prototype.click=function(A,$){var v=this,L=v.options;A.children("a").on("click",function(F){layui.stope(F),L.click($)})},ie.prototype.spread=function(A,$){var v=this,L=(v.options,A.children(".layui-tree-spread")),F=A.children("ul"),y=A.children("a"),u=function(){A.data("spread")?(A.data("spread",null),F.removeClass("layui-show"),L.html(G.arrow[0]),y.find(".layui-icon").html(G.branch[0])):(A.data("spread",!0),F.addClass("layui-show"),L.html(G.arrow[1]),y.find(".layui-icon").html(G.branch[1]))};F[0]&&(L.on("click",u),y.on("dblclick",u))},ie.prototype.on=function(A){var $=this,v=$.options,L="layui-tree-drag";A.find("i").on("selectstart",function(F){return!1}),v.drag&&x(document).on("mousemove",function(F){var y=$.move;if(y.from){var u=(y.to,x('
      '));F.preventDefault(),x("."+L)[0]||x("body").append(u);var h=x("."+L)[0]?x("."+L):u;h.addClass("layui-show").html(y.from.elem.children("a").html()),h.css({left:F.pageX+10,top:F.pageY+10})}}).on("mouseup",function(){var F=$.move;F.from&&(F.from.elem.children("a").removeClass(O),F.to&&F.to.elem.children("a").removeClass(O),$.move={},x("."+L).remove())})},ie.prototype.move={},ie.prototype.drag=function(A,$){var v=this,L=(v.options,A.children("a")),F=function(){var y=x(this),u=v.move;u.from&&(u.to={item:$,elem:A},y.addClass(O))};L.on("mousedown",function(){var y=v.move;y.from={item:$,elem:A}}),L.on("mouseenter",F).on("mousemove",F).on("mouseleave",function(){var y=x(this),u=v.move;u.from&&(delete u.to,y.removeClass(O))})},oe("tree",function(A){var $=new ie(A=A||{}),v=x(A.elem);return v[0]?void $.init(v):_.error("layui.tree \u6CA1\u6709\u627E\u5230"+A.elem+"\u5143\u7D20")})}),layui.define(["laytpl","laypage","layer","form","util"],function(oe){"use strict";var x=layui.$,_=layui.laytpl,O=layui.laypage,ie=layui.layer,G=layui.form,A=(layui.util,layui.hint()),$=layui.device(),v={config:{checkName:"LAY_CHECKED",indexName:"LAY_TABLE_INDEX"},cache:{},index:layui.table?layui.table.index+1e4:0,set:function(C){var b=this;return b.config=x.extend({},b.config,C),b},on:function(C,b){return layui.onevent.call(this,F,C,b)}},L=function(){var C=this,b=C.config,P=b.id;return P&&(L.config[P]=b),{reload:function(te){C.reload.call(C,te)},setColsWidth:function(){C.setColsWidth.call(C)},config:b}},F="table",y=".layui-table",u="layui-hide",h="layui-none",c="layui-table-view",m=".layui-table-tool",D=".layui-table-box",k=".layui-table-init",q=".layui-table-header",z=".layui-table-body",M=".layui-table-main",E=".layui-table-fixed",ee=".layui-table-fixed-l",s=".layui-table-fixed-r",o=".layui-table-total",d=".layui-table-page",g=".layui-table-sort",f="layui-table-edit",w="layui-table-hover",S=function(C){var b='{{#if(item2.colspan){}} colspan="{{item2.colspan}}"{{#} if(item2.rowspan){}} rowspan="{{item2.rowspan}}"{{#}}}';return C=C||{},['',"","{{# 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; } }}',function(){return C.fixed&&C.fixed!=="right"?'{{# if(item2.fixed && item2.fixed !== "right"){ }}':C.fixed==="right"?'{{# if(item2.fixed === "right"){ }}':""}(),"{{# var isSort = !(item2.colspan > 1) && item2.sort; }}",'",C.fixed?"{{# }; }}":"","{{# }); }}","","{{# }); }}","","
      ','
      1){ }}","group","{{# } else { }}","{{d.index}}-{{item2.field || i2}}",'{{# if(item2.type !== "normal"){ }}'," laytable-cell-{{ item2.type }}","{{# } }}","{{# } }}",'" {{#if(item2.align){}}align="{{item2.align}}"{{#}}}>','{{# if(item2.type === "checkbox"){ }}','',"{{# } else { }}",'{{item2.title||""}}',"{{# if(isSort){ }}",'',"{{# } }}","{{# } }}","
      ","
      "].join("")},N=['',"","
      "].join(""),V=['
      ',"{{# if(d.data.toolbar){ }}",'
      ','
      ','
      ',"
      ","{{# } }}",'
      ','
      ','',"
      ","{{# var left, right; }}",'
      ',S(),"
      ",'
      ',N,"
      ","{{# if(left){ }}",'
      ','
      ',S({fixed:!0}),"
      ",'
      ',N,"
      ","
      ","{{# }; }}","{{# if(right){ }}",'
      ','
      ',S({fixed:"right"}),'
      ',"
      ",'
      ',N,"
      ","
      ","{{# }; }}","
      ","{{# if(d.data.totalRow){ }}",'
      ','','',"
      ","
      ","{{# } }}","{{# if(d.data.page){ }}",'
      ','
      ',"
      ","{{# } }}","","
      "].join(""),Z=x(window),X=x(document),J=function(C){var b=this;b.index=++v.index,b.config=x.extend({},b.config,v.config,C),b.render()};J.prototype.config={limit:10,loading:!0,cellMinWidth:60,defaultToolbar:["filter","exports","print"],text:{none:"\u65E0\u6570\u636E"}},J.prototype.render=function(){var C=this,b=C.config;if(b.elem=x(b.elem),b.where=b.where||{},b.id=b.id||b.elem.attr("id")||b.index,b.request=x.extend({pageName:"page",limitName:"limit"},b.request),b.response=x.extend({statusName:"code",statusCode:0,msgName:"msg",dataName:"data",countName:"count"},b.response),typeof b.page=="object"&&(b.limit=b.page.limit||b.limit,b.limits=b.page.limits||b.limits,C.page=b.page.curr=b.page.curr||1,delete b.page.elem,delete b.page.jump),!b.elem[0])return C;b.height&&/^full-\d+$/.test(b.height)&&(C.fullHeightGap=b.height.split("-")[1],b.height=Z.height()-C.fullHeightGap),b.height&&b.height<248&&(b.height=248),C.setInit();var P=b.elem,te=P.next("."+c),H=C.elem=x(_(V).render({VIEW_CLASS:c,data:b,index:C.index}));if(b.index=C.index,te[0]&&te.remove(),P.after(H),C.layTool=H.find(m),C.layBox=H.find(D),C.layHeader=H.find(q),C.layMain=H.find(M),C.layBody=H.find(z),C.layFixed=H.find(E),C.layFixLeft=H.find(ee),C.layFixRight=H.find(s),C.layTotal=H.find(o),C.layPage=H.find(d),C.renderToolbar(),C.fullSize(),b.cols.length>1){var ae=C.layFixed.find(q).find("th");ae.height(C.layHeader.height()-1-parseFloat(ae.css("padding-top"))-parseFloat(ae.css("padding-bottom")))}C.pullData(C.page),C.events()},J.prototype.initOpts=function(C){var b=this,P=(b.config,{checkbox:48,radio:48,space:15,numbers:40});C.checkbox&&(C.type="checkbox"),C.space&&(C.type="space"),C.type||(C.type="normal"),C.type!=="normal"&&(C.unresize=!0,C.width=C.width||P[C.type])},J.prototype.setInit=function(C){var b=this,P=b.config;return P.clientWidth=P.width||function(){var te=function(H){var ae,le;H=H||P.elem.parent(),ae=H.width();try{le=H.css("display")==="none"}catch(xe){}return!H[0]||ae&&!le?ae:te(H.parent())};return te()}(),C==="width"?P.clientWidth:void layui.each(P.cols,function(te,H){layui.each(H,function(ae,le){return le.minWidth||P.cellMinWidth,le?void b.initOpts(le):void H.splice(ae,1)})})},J.prototype.renderToolbar=function(){var C=this,b=C.config,P=['
      ','
      ','
      '].join(""),te=C.layTool.find(".layui-table-tool-temp");if(b.toolbar==="default")te.html(P);else if(b.toolbar){var H=x(b.toolbar).html()||"";H&&te.html(_(H).render(b))}var ae={filter:{title:"\u7B5B\u9009\u5217",layEvent:"LAYTABLE_COLS",icon:"layui-icon-cols"},exports:{title:"\u5BFC\u51FA",layEvent:"LAYTABLE_EXPORT",icon:"layui-icon-export"},print:{title:"\u6253\u5370",layEvent:"LAYTABLE_PRINT",icon:"layui-icon-print"}},le=[];typeof b.defaultToolbar=="object"&&layui.each(b.defaultToolbar,function(xe,he){var ue=ae[he];ue&&le.push('
      ')}),C.layTool.find(".layui-table-tool-self").html(le.join(""))},J.prototype.setColsWidth=function(){var C=this,b=C.config,P=0,te=0,H=0,ae=0,le=C.setInit("width");C.eachCols(function(Y,Q){Q.hide||P++}),le=le-function(){return b.skin==="line"||b.skin==="nob"?2:P+1}()-C.getScrollWidth(C.layMain[0])-1;var xe=function(Y){layui.each(b.cols,function(Q,pe){layui.each(pe,function(fe,ke){var je=0,Me=ke.minWidth||b.cellMinWidth;return ke?void(ke.colspan>1||(Y?H&&Hae&&te&&(H=(le-ae)/te)};xe(),xe(!0),C.autoColNums=te,C.eachCols(function(Y,Q){var pe=Q.minWidth||b.cellMinWidth,fe=Q.field||Y;Q.colspan>1||(Q.width===0?C.getCssRule(fe,function(ke){ke.style.width=Math.floor(H>=pe?H:pe)+"px"}):/\d+%$/.test(Q.width)&&C.getCssRule(fe,function(ke){ke.style.width=Math.floor(parseFloat(Q.width)/100*le)+"px"}))});var he=C.layMain.width()-C.getScrollWidth(C.layMain[0])-C.layMain.children("table").outerWidth();if(C.autoColNums&&he>=-P&&he<=P){var ue=function(Y){var Q;return Y=Y||C.layHeader.eq(0).find("thead th:last-child"),Q=Y.data("field"),!Q&&Y.prev()[0]?ue(Y.prev()):Y},ye=ue(),se=ye.data("field");C.getCssRule(se,function(Y){var Q=Y.style.width||ye.outerWidth();Y.style.width=parseFloat(Q)+he+"px",C.layMain.height()-C.layMain.prop("clientHeight")>0&&(Y.style.width=parseFloat(Y.style.width)-1+"px")})}C.loading(!0)},J.prototype.reload=function(C){var b=this;b.config.data&&b.config.data.constructor===Array&&delete b.config.data,b.config=x.extend({},b.config,C),b.render()},J.prototype.page=1,J.prototype.pullData=function(C){var b=this,P=b.config,te=P.request,H=P.response,ae=function(){typeof P.initSort=="object"&&b.sort(P.initSort.field,P.initSort.type)};if(b.startTime=new Date().getTime(),P.url){var le={};le[te.pageName]=C,le[te.limitName]=P.limit;var xe=x.extend(le,P.where);P.contentType&&P.contentType.indexOf("application/json")==0&&(xe=JSON.stringify(xe)),x.ajax({type:P.method||"get",url:P.url,contentType:P.contentType,data:xe,dataType:"json",headers:P.headers||{},success:function(ye){typeof P.parseData=="function"&&(ye=P.parseData(ye)||ye),ye[H.statusName]!=H.statusCode?(b.renderForm(),b.layMain.html('
      '+(ye[H.msgName]||"\u8FD4\u56DE\u7684\u6570\u636E\u4E0D\u7B26\u5408\u89C4\u8303\uFF0C\u6B63\u786E\u7684\u6210\u529F\u72B6\u6001\u7801 ("+H.statusName+") \u5E94\u4E3A\uFF1A"+H.statusCode)+"
      ")):(b.renderData(ye,C,ye[H.countName]),ae(),P.time=new Date().getTime()-b.startTime+" ms"),b.setColsWidth(),typeof P.done=="function"&&P.done(ye,C,ye[H.countName])},error:function(ye,se){b.layMain.html('
      \u6570\u636E\u63A5\u53E3\u8BF7\u6C42\u5F02\u5E38\uFF1A'+se+"
      "),b.renderForm(),b.setColsWidth()}})}else if(P.data&&P.data.constructor===Array){var he={},ue=C*P.limit-P.limit;he[H.dataName]=P.data.concat().splice(ue,P.limit),he[H.countName]=P.data.length,b.renderData(he,C,P.data.length),ae(),b.setColsWidth(),typeof P.done=="function"&&P.done(he,C,he[H.countName])}},J.prototype.eachCols=function(C){var b=this;return v.eachCols(null,C,b.config.cols),b},J.prototype.renderData=function(C,b,P,te){var H=this,ae=H.config,le=C[ae.response.dataName]||[],xe=[],he=[],ue=[],ye=function(){var se;return!te&&H.sortKey?H.sort(H.sortKey.field,H.sortKey.sort,!0):(layui.each(le,function(Y,Q){var pe=[],fe=[],ke=[],je=Y+ae.limit*(b-1)+1;Q.length!==0&&(te||(Q[v.config.indexName]=Y),H.eachCols(function(Me,Ee){var Ye=Ee.field||Me,Fe=Q[Ye];if(Fe!=null||(Fe=""),!(Ee.colspan>1||Ee.hide)){var we=['",'
      '+function(){var Ie=x.extend(!0,{LAY_INDEX:je},Q),rt=v.config.checkName;switch(Ee.type){case"checkbox":return'";case"radio":return Ie[rt]&&(se=Y),'';case"numbers":return je}return Ee.toolbar?_(x(Ee.toolbar).html()||"").render(Ie):Ee.templet?function(){return typeof Ee.templet=="function"?Ee.templet(Ie):_(x(Ee.templet).html()||String(Fe)).render(Ie)}():Fe}(),"
      "].join("");pe.push(we),Ee.fixed&&Ee.fixed!=="right"&&fe.push(we),Ee.fixed==="right"&&ke.push(we)}}),xe.push(''+pe.join("")+""),he.push(''+fe.join("")+""),ue.push(''+ke.join("")+""))}),H.layBody.scrollTop(0),H.layMain.find("."+h).remove(),H.layMain.find("tbody").html(xe.join("")),H.layFixLeft.find("tbody").html(he.join("")),H.layFixRight.find("tbody").html(ue.join("")),H.renderForm(),typeof se=="number"&&H.setThisRowChecked(se),H.syncCheckAll(),H.haveInit?H.scrollPatch():setTimeout(function(){H.scrollPatch()},50),H.haveInit=!0,void ie.close(H.tipsIndex))};return H.key=ae.id||ae.index,v.cache[H.key]=le,H.layPage[P==0||le.length===0&&b==1?"addClass":"removeClass"](u),te?ye():le.length===0?(H.renderForm(),H.layFixed.remove(),H.layMain.find("tbody").html(""),H.layMain.find("."+h).remove(),H.layMain.append('
      '+ae.text.none+"
      ")):(ye(),H.renderTotal(le),void(ae.page&&(ae.page=x.extend({elem:"layui-table-page"+ae.index,count:P,limit:ae.limit,limits:ae.limits||[10,20,30,40,50,60,70,80,90],groups:3,layout:["prev","page","next","skip","count","limit"],prev:'',next:'',jump:function(se,Y){Y||(H.page=se.curr,ae.limit=se.limit,H.loading(),H.pullData(se.curr))}},ae.page),ae.page.count=P,O.render(ae.page))))},J.prototype.renderTotal=function(C){var b=this,P=b.config,te={};if(P.totalRow){layui.each(C,function(ae,le){le.length!==0&&b.eachCols(function(xe,he){var ue=he.field||xe,ye=le[ue];he.totalRow&&(te[ue]=(te[ue]||0)+parseFloat(ye))})});var H=[];b.eachCols(function(ae,le){var xe=le.field||ae;if(!le.hide){var he=['",'
      '+function(){var ue=le.totalRowText||"";return le.totalRow&&te[xe]||ue}(),"
      "].join("");H.push(he)}}),b.layTotal.find("tbody").html(""+H.join("")+"")}},J.prototype.getColElem=function(C,b){var P=this,te=P.config;return C.eq(0).find(".laytable-cell-"+(te.index+"-"+b)+":eq(0)")},J.prototype.renderForm=function(C){G.render(C,"LAY-table-"+this.index)},J.prototype.setThisRowChecked=function(C){var b=this,P=(b.config,"layui-table-click"),te=b.layBody.find('tr[data-index="'+C+'"]');te.addClass(P).siblings("tr").removeClass(P)},J.prototype.sort=function(C,b,P,te){var H,ae,le=this,xe={},he=le.config,ue=he.elem.attr("lay-filter"),ye=v.cache[le.key];typeof C=="string"&&le.layHeader.find("th").each(function(Y,Q){var pe=x(this),fe=pe.data("field");if(fe===C)return C=pe,H=fe,!1});try{var H=H||C.data("field");if(le.sortKey&&!P&&H===le.sortKey.field&&b===le.sortKey.sort)return;var se=le.layHeader.find("th .laytable-cell-"+he.index+"-"+H).find(g);le.layHeader.find("th").find(g).removeAttr("lay-sort"),se.attr("lay-sort",b||null),le.layFixed.find("th")}catch(Y){return A.error("Table modules: Did not match to field")}le.sortKey={field:H,sort:b},b==="asc"?ae=layui.sort(ye,H):b==="desc"?ae=layui.sort(ye,H,!0):(ae=layui.sort(ye,v.config.indexName),delete le.sortKey),xe[he.response.dataName]=ae,le.renderData(xe,le.page,le.count,!0),te&&layui.event.call(C,F,"sort("+ue+")",{field:H,type:b})},J.prototype.loading=function(C){var b=this,P=b.config;P.loading&&(C?(b.layInit&&b.layInit.remove(),delete b.layInit,b.layBox.find(k).remove()):(b.layInit=x(['
      ','',"
      "].join("")),b.layBox.append(b.layInit)))},J.prototype.setCheckData=function(C,b){var P=this,te=P.config,H=v.cache[P.key];H[C]&&H[C].constructor!==Array&&(H[C][te.checkName]=b)},J.prototype.syncCheckAll=function(){var C=this,b=C.config,P=C.layHeader.find('input[name="layTableCheckbox"]'),te=function(H){return C.eachCols(function(ae,le){le.type==="checkbox"&&(le[b.checkName]=H)}),H};P[0]&&(v.checkStatus(C.key).isAll?(P[0].checked||(P.prop("checked",!0),C.renderForm("checkbox")),te(!0)):(P[0].checked&&(P.prop("checked",!1),C.renderForm("checkbox")),te(!1)))},J.prototype.getCssRule=function(C,b){var P=this,te=P.elem.find("style")[0],H=te.sheet||te.styleSheet||{},ae=H.cssRules||H.rules;layui.each(ae,function(le,xe){if(xe.selectorText===".laytable-cell-"+P.index+"-"+C)return b(xe),!0})},J.prototype.fullSize=function(){var C,b=this,P=b.config,te=P.height;b.fullHeightGap&&(te=Z.height()-b.fullHeightGap,te<135&&(te=135),b.elem.css("height",te)),te&&(C=parseFloat(te)-(b.layHeader.outerHeight()||38),P.toolbar&&(C-=b.layTool.outerHeight()||50),P.totalRow&&(C-=b.layTotal.outerHeight()||40),P.page&&(C=C-(b.layPage.outerHeight()||41)-2),b.layMain.css("height",C))},J.prototype.getScrollWidth=function(C){var b=0;return C?b=C.offsetWidth-C.clientWidth:(C=document.createElement("div"),C.style.width="100px",C.style.height="100px",C.style.overflowY="scroll",document.body.appendChild(C),b=C.offsetWidth-C.clientWidth,document.body.removeChild(C)),b},J.prototype.scrollPatch=function(){var C=this,b=C.layMain.children("table"),P=C.layMain.width()-C.layMain.prop("clientWidth"),te=C.layMain.height()-C.layMain.prop("clientHeight"),H=(C.getScrollWidth(C.layMain[0]),b.outerWidth()-C.layMain.width()),ae=function(he){if(P&&te){if(he=he.eq(0),!he.find(".layui-table-patch")[0]){var ue=x('
      ');ue.find("div").css({width:P}),he.find("tr").append(ue)}}else he.find(".layui-table-patch").remove()};ae(C.layHeader),ae(C.layTotal);var le=C.layMain.height(),xe=le-te;C.layFixed.find(z).css("height",b.height()>xe?xe:"auto"),C.layFixRight[H>0?"removeClass":"addClass"](u),C.layFixRight.css("right",P-1)},J.prototype.events=function(){var C,b=this,P=b.config,te=x("body"),H={},ae=b.layHeader.find("th"),le=".layui-table-cell",xe=P.elem.attr("lay-filter");b.layTool.on("click","*[lay-event]",function(Y){var Q=x(this),pe=Q.attr("lay-event"),fe=function(Ee){var Ye=x(Ee.list),Fe=x('
        ');Fe.html(Ye),Q.find(".layui-table-tool-panel")[0]||Q.append(Fe),b.renderForm(),Fe.on("click",function(we){layui.stope(we)}),Ee.done&&Ee.done(Fe,Ye)};switch(layui.stope(Y),X.trigger("table.tool.panel.remove"),ie.close(b.tipsIndex),pe){case"LAYTABLE_COLS":fe({list:function(){var Ee=[];return b.eachCols(function(Ye,Fe){Fe.field&&Fe.type=="normal"&&Ee.push('
      • ')}),Ee.join("")}(),done:function(){G.on("checkbox(LAY_TABLE_TOOL_COLS)",function(Ee){layui.each(P.cols,function(Ye,Fe){layui.each(Fe,function(we,Ie){Ie.field===Ee.elem.name&&(Ie.hide=!Ee.elem.checked,b.elem.find('*[data-field="'+Ee.elem.name+'"]')[Ee.elem.checked?"removeClass":"addClass"](u),b.fullSize(),b.scrollPatch(),b.setColsWidth())})})})}});break;case"LAYTABLE_EXPORT":$.ie?ie.tips("\u5BFC\u51FA\u529F\u80FD\u4E0D\u652F\u6301 IE\uFF0C\u8BF7\u7528 Chrome \u7B49\u9AD8\u7EA7\u6D4F\u89C8\u5668\u5BFC\u51FA",this,{tips:3}):fe({list:function(){return['
      • \u5BFC\u51FA\u5230 Csv \u6587\u4EF6
      • ','
      • \u5BFC\u51FA\u5230 Excel \u6587\u4EF6
      • '].join("")}(),done:function(Ee,Ye){Ye.on("click",function(){var Fe=x(this).data("type");v.exportFile(P.id,null,Fe)})}});break;case"LAYTABLE_PRINT":var ke=window.open("\u6253\u5370\u7A97\u53E3","_blank"),je=[""].join(""),Me=x(b.layHeader.html());Me.find("th.layui-table-patch").remove(),Me.append(b.layMain.find("table").html()),ke.document.write(je+Me.prop("outerHTML")),ke.document.close(),ke.print(),ke.close()}layui.event.call(this,F,"toolbar("+xe+")",x.extend({event:pe,config:P},{}))}),ae.on("mousemove",function(Y){var Q=x(this),pe=Q.offset().left,fe=Y.clientX-pe;Q.attr("colspan")>1||Q.data("unresize")||H.resizeStart||(H.allowResize=Q.width()-fe<=10,te.css("cursor",H.allowResize?"col-resize":""))}).on("mouseleave",function(){x(this),H.resizeStart||te.css("cursor","")}).on("mousedown",function(Y){var Q=x(this);if(H.allowResize){var pe=Q.data("field");Y.preventDefault(),H.resizeStart=!0,H.offset=[Y.clientX,Y.clientY],b.getCssRule(pe,function(fe){var ke=fe.style.width||Q.outerWidth();H.rule=fe,H.ruleWidth=parseFloat(ke),H.minWidth=Q.data("minwidth")||P.cellMinWidth})}}),X.on("mousemove",function(Y){if(H.resizeStart){if(Y.preventDefault(),H.rule){var Q=H.ruleWidth+Y.clientX-H.offset[0];Q');return fe[0].value=Y.data("content")||pe.text(),Y.find("."+f)[0]||Y.append(fe),void fe.focus()}}).on("mouseenter","td",function(){se.call(this)}).on("mouseleave","td",function(){se.call(this,"hide")});var ye="layui-table-grid-down",se=function(Y){var Q=x(this),pe=Q.children(le);if(Y)Q.find(".layui-table-grid-down").remove();else if(pe.prop("scrollWidth")>pe.outerWidth()){if(pe.find("."+ye)[0])return;Q.append('
        ')}};b.layBody.on("click","."+ye,function(){var Y=x(this),Q=Y.parent(),pe=Q.children(le);b.tipsIndex=ie.tips(['
        ',pe.html(),"
        ",''].join(""),pe[0],{tips:[3,""],time:-1,anim:-1,maxWidth:$.ios||$.android?300:b.elem.width()/2,isOutAnim:!1,skin:"layui-table-tips",success:function(fe,ke){fe.find(".layui-table-tips-c").on("click",function(){ie.close(ke)})}})}),b.layBody.on("click","*[lay-event]",function(){var Y=x(this),Q=Y.parents("tr").eq(0).data("index");layui.event.call(this,F,"tool("+xe+")",he.call(this,{event:Y.attr("lay-event")})),b.setThisRowChecked(Q)}),b.layMain.on("scroll",function(){var Y=x(this),Q=Y.scrollLeft(),pe=Y.scrollTop();b.layHeader.scrollLeft(Q),b.layTotal.scrollLeft(Q),b.layFixed.find(z).scrollTop(pe),ie.close(b.tipsIndex)}),X.on("click",function(){X.trigger("table.remove.tool.panel")}),X.on("table.remove.tool.panel",function(){x(".layui-table-tool-panel").remove()}),Z.on("resize",function(){b.fullSize(),b.scrollPatch(),b.setColsWidth()})},v.init=function(C,b){b=b||{};var P=this,te=x(C?'table[lay-filter="'+C+'"]':y+"[lay-data]"),H="Table element property lay-data configuration item has a syntax error: ";return te.each(function(){var ae=x(this),le=ae.attr("lay-data");try{le=new Function("return "+le)()}catch(ue){A.error(H+le)}var xe=[],he=x.extend({elem:this,cols:[],data:[],skin:ae.attr("lay-skin"),size:ae.attr("lay-size"),even:typeof ae.attr("lay-even")=="string"},v.config,b,le);C&&ae.hide(),ae.find("thead>tr").each(function(ue){he.cols[ue]=[],x(this).children().each(function(ye){var se=x(this),Y=se.attr("lay-data");try{Y=new Function("return "+Y)()}catch(pe){return A.error(H+Y)}var Q=x.extend({title:se.text(),colspan:se.attr("colspan")||0,rowspan:se.attr("rowspan")||0},Y);Q.colspan<2&&xe.push(Q),he.cols[ue].push(Q)})}),ae.find("tbody>tr").each(function(ue){var ye=x(this),se={};ye.children("td").each(function(Y,Q){var pe=x(this),fe=pe.data("field");if(fe)return se[fe]=pe.html()}),layui.each(xe,function(Y,Q){var pe=ye.children("td").eq(Y);se[Q.field]=pe.html()}),he.data[ue]=se}),v.render(he)}),P},L.config={},v.eachCols=function(C,b,P){var te=L.config[C]||{},H=[],ae=0;P=x.extend(!0,[],P||te.cols),layui.each(P,function(xe,he){layui.each(he,function(ue,ye){if(ye.colspan>1){var se=0;ae++,ye.CHILD_COLS=[],layui.each(P[xe+1],function(Y,Q){Q.PARENT_COL||se==ye.colspan||(Q.PARENT_COL=ae,ye.CHILD_COLS.push(Q),se+=Q.colspan>1?Q.colspan:1)})}ye.PARENT_COL||H.push(ye)})});var le=function(xe){layui.each(xe||H,function(he,ue){return ue.CHILD_COLS?le(ue.CHILD_COLS):void b(he,ue)})};le()},v.checkStatus=function(C){var b=0,P=0,te=[],H=v.cache[C]||[];return layui.each(H,function(ae,le){return le.constructor===Array?void P++:void(le[v.config.checkName]&&(b++,te.push(v.clearCacheKey(le))))}),{data:te,isAll:!!H.length&&b===H.length-P}},v.exportFile=function(C,b,P){b=b||v.clearCacheKey(v.cache[C]),P=P||"csv";var te=L.config[C]||{},H={csv:"text/csv",xls:"application/vnd.ms-excel"}[P],ae=document.createElement("a");return $.ie?A.error("IE_NOT_SUPPORT_EXPORTS"):(ae.href="data:"+H+";charset=utf-8,\uFEFF"+encodeURIComponent(function(){var le=[],xe=[];return layui.each(b,function(he,ue){var ye=[];typeof C=="object"?(layui.each(C,function(se,Y){he==0&&le.push(Y||"")}),layui.each(v.clearCacheKey(ue),function(se,Y){ye.push(Y)})):v.eachCols(C,function(se,Y){Y.field&&Y.type=="normal"&&!Y.hide&&(he==0&&le.push(Y.title||""),ye.push(ue[Y.field]))}),xe.push(ye.join(","))}),le.join(",")+`\r `+xe.join(`\r `)}()),ae.download=(te.title||"table_"+(te.index||""))+"."+P,document.body.appendChild(ae),ae.click(),void document.body.removeChild(ae))},v.reload=function(C,b){var P=L.config[C];return b=b||{},P?(b.data&&b.data.constructor===Array&&delete P.data,v.render(x.extend(!0,{},P,b))):A.error("The ID option was not found in the table instance")},v.render=function(C){var b=new J(C);return L.call(b)},v.clearCacheKey=function(C){return C=x.extend({},C),delete C[v.config.checkName],delete C[v.config.indexName],C},v.init(),oe(F,v)}),layui.define("jquery",function(oe){"use strict";var x=layui.$,_=(layui.hint(),layui.device(),{config:{},set:function(h){var c=this;return c.config=x.extend({},c.config,h),c},on:function(h,c){return layui.onevent.call(this,O,h,c)}}),O="carousel",ie="layui-this",G=">*[carousel-item]>*",A="layui-carousel-left",$="layui-carousel-right",v="layui-carousel-prev",L="layui-carousel-next",F="layui-carousel-arrow",y="layui-carousel-ind",u=function(h){var c=this;c.config=x.extend({},c.config,_.config,h),c.render()};u.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},u.prototype.render=function(){var h=this,c=h.config;c.elem=x(c.elem),c.elem[0]&&(h.elemItem=c.elem.find(G),c.index<0&&(c.index=0),c.index>=h.elemItem.length&&(c.index=h.elemItem.length-1),c.interval<800&&(c.interval=800),c.full?c.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):c.elem.css({width:c.width,height:c.height}),c.elem.attr("lay-anim",c.anim),h.elemItem.eq(c.index).addClass(ie),h.elemItem.length<=1||(h.indicator(),h.arrow(),h.autoplay(),h.events()))},u.prototype.reload=function(h){var c=this;clearInterval(c.timer),c.config=x.extend({},c.config,h),c.render()},u.prototype.prevIndex=function(){var h=this,c=h.config,m=c.index-1;return m<0&&(m=h.elemItem.length-1),m},u.prototype.nextIndex=function(){var h=this,c=h.config,m=c.index+1;return m>=h.elemItem.length&&(m=0),m},u.prototype.addIndex=function(h){var c=this,m=c.config;h=h||1,m.index=m.index+h,m.index>=c.elemItem.length&&(m.index=0)},u.prototype.subIndex=function(h){var c=this,m=c.config;h=h||1,m.index=m.index-h,m.index<0&&(m.index=c.elemItem.length-1)},u.prototype.autoplay=function(){var h=this,c=h.config;c.autoplay&&(h.timer=setInterval(function(){h.slide()},c.interval))},u.prototype.arrow=function(){var h=this,c=h.config,m=x(['",'"].join(""));c.elem.attr("lay-arrow",c.arrow),c.elem.find("."+F)[0]&&c.elem.find("."+F).remove(),c.elem.append(m),m.on("click",function(){var D=x(this),k=D.attr("lay-type");h.slide(k)})},u.prototype.indicator=function(){var h=this,c=h.config,m=h.elemInd=x(['
          ',function(){var D=[];return layui.each(h.elemItem,function(k){D.push("")}),D.join("")}(),"
        "].join(""));c.elem.attr("lay-indicator",c.indicator),c.elem.find("."+y)[0]&&c.elem.find("."+y).remove(),c.elem.append(m),c.anim==="updown"&&m.css("margin-top",-(m.height()/2)),m.find("li").on(c.trigger==="hover"?"mouseover":c.trigger,function(){var D=x(this),k=D.index();k>c.index?h.slide("add",k-c.index):k",k=1;k<=c.length;k++){var q='
      • ";c.half&&parseInt(c.value)!==c.value&&k==Math.ceil(c.value)?D=D+'
      • ":D+=q}D+=""+(c.text?''+c.value+"\u661F":"")+"";var z=c.elem,M=z.next("."+G);M[0]&&M.remove(),h.elemTemp=x(D),c.span=h.elemTemp.next("span"),c.setText&&c.setText(c.value),z.html(h.elemTemp),z.addClass("layui-inline"),c.readonly||h.action()},u.prototype.setvalue=function(h){var c=this,m=c.config;m.value=h,c.render()},u.prototype.action=function(){var h=this,c=h.config,m=h.elemTemp,D=m.find("i").width();m.children("li").each(function(k){var q=k+1,z=x(this);z.on("click",function(M){if(c.value=q,c.half){var E=M.pageX-x(this).offset().left;E<=D/2&&(c.value=c.value-.5)}c.text&&m.next("span").text(c.value+"\u661F"),c.choose&&c.choose(c.value),c.setText&&c.setText(c.value)}),z.on("mousemove",function(M){if(m.find("i").each(function(){x(this).addClass(A).removeClass(L)}),m.find("i:lt("+q+")").each(function(){x(this).addClass($).removeClass(y)}),c.half){var E=M.pageX-x(this).offset().left;E<=D/2&&z.children("i").addClass(v).removeClass($)}}),z.on("mouseleave",function(){m.find("i").each(function(){x(this).addClass(A).removeClass(L)}),m.find("i:lt("+Math.floor(c.value)+")").each(function(){x(this).addClass($).removeClass(y)}),c.half&&parseInt(c.value)!==c.value&&m.children("li:eq("+Math.floor(c.value)+")").children("i").addClass(v).removeClass(F)})})},u.prototype.events=function(){var h=this;h.config},_.render=function(h){var c=new u(h);return O.call(c)},oe(ie,_)}),layui.define("jquery",function(oe){"use strict";var x=layui.$,_={fixbar:function(O){var ie,G,A="layui-fixbar",$="layui-fixbar-top",v=x(document),L=x("body");O=x.extend({showHeight:200},O),O.bar1=O.bar1===!0?"":O.bar1,O.bar2=O.bar2===!0?"":O.bar2,O.bgcolor=O.bgcolor?"background-color:"+O.bgcolor:"";var F=[O.bar1,O.bar2,""],y=x(['
          ',O.bar1?'
        • '+F[0]+"
        • ":"",O.bar2?'
        • '+F[1]+"
        • ":"",'
        • '+F[2]+"
        • ","
        "].join("")),u=y.find("."+$),h=function(){var c=v.scrollTop();c>=O.showHeight?ie||(u.show(),ie=1):ie&&(u.hide(),ie=0)};x("."+A)[0]||(typeof O.css=="object"&&y.css(O.css),L.append(y),h(),y.find("li").on("click",function(){var c=x(this),m=c.attr("lay-type");m==="top"&&x("html,body").animate({scrollTop:0},200),O.click&&O.click.call(this,m)}),v.on("scroll",function(){clearTimeout(G),G=setTimeout(function(){h()},100)}))},countdown:function(O,ie,G){var A=this,$=typeof ie=="function",v=new Date(O).getTime(),L=new Date(!ie||$?new Date().getTime():ie).getTime(),F=v-L,y=[Math.floor(F/864e5),Math.floor(F/36e5)%24,Math.floor(F/6e4)%60,Math.floor(F/1e3)%60];$&&(G=ie);var u=setTimeout(function(){A.countdown(O,L+1e3,G)},1e3);return G&&G(F>0?y:[0,0,0,0],ie,u),F<=0&&clearTimeout(u),u},timeAgo:function(O,ie){var G=this,A=[[],[]],$=new Date().getTime()-new Date(O).getTime();return $>6912e5?($=new Date(O),A[0][0]=G.digit($.getFullYear(),4),A[0][1]=G.digit($.getMonth()+1),A[0][2]=G.digit($.getDate()),ie||(A[1][0]=G.digit($.getHours()),A[1][1]=G.digit($.getMinutes()),A[1][2]=G.digit($.getSeconds())),A[0].join("-")+" "+A[1].join(":")):$>=864e5?($/1e3/60/60/24|0)+"\u5929\u524D":$>=36e5?($/1e3/60/60|0)+"\u5C0F\u65F6\u524D":$>=12e4?($/1e3/60|0)+"\u5206\u949F\u524D":$<0?"\u672A\u6765":"\u521A\u521A"},digit:function(O,ie){var G="";O=String(O),ie=ie||2;for(var A=O.length;A/g,">").replace(/'/g,"'").replace(/"/g,""")}};(function(O,ie,G){function A(){$=ie[F](function(){v.each(function(){var m=O(this),D=m.width(),k=m.height(),q=O.data(this,u);(D!==q.w||k!==q.h)&&m.trigger(y,[q.w=D,q.h=k])}),A()},L[h])}var $,v=O([]),L=O.resize=O.extend(O.resize,{}),F="setTimeout",y="resize",u=y+"-special-event",h="delay",c="throttleWindow";L[h]=250,L[c]=!0,O.event.special[y]={setup:function(){if(!L[c]&&this[F])return!1;var m=O(this);v=v.add(m),O.data(this,u,{w:m.width(),h:m.height()}),v.length===1&&A()},teardown:function(){if(!L[c]&&this[F])return!1;var m=O(this);v=v.not(m),m.removeData(u),v.length||clearTimeout($)},add:function(m){function D(q,z,M){var E=O(this),ee=O.data(this,u)||{};ee.w=z!==G?z:E.width(),ee.h=M!==G?M:E.height(),k.apply(this,arguments)}if(!L[c]&&this[F])return!1;var k;return O.isFunction(m)?(k=m,D):(k=m.handler,void(m.handler=D))}}})(x,window),oe("util",_)}),layui.define("jquery",function(oe){"use strict";var x=layui.$,_=function(ie){},O='';_.prototype.load=function(ie){var G,A,$,v,L=this,F=0;ie=ie||{};var y=x(ie.elem);if(y[0]){var u=x(ie.scrollElem||document),h=ie.mb||50,c=!("isAuto"in ie)||ie.isAuto,m=ie.end||"\u6CA1\u6709\u66F4\u591A\u4E86",D=ie.scrollElem&&ie.scrollElem!==document,k="\u52A0\u8F7D\u66F4\u591A",q=x('");y.find(".layui-flow-more")[0]||y.append(q);var z=function(ee,s){ee=x(ee),q.before(ee),s=s==0||null,s?q.html(m):q.find("a").html(k),A=s,G=null,$&&$()},M=function(){G=!0,q.find("a").html(O),typeof ie.done=="function"&&ie.done(++F,z)};if(M(),q.find("a").on("click",function(){x(this),A||G||M()}),ie.isLazyimg)var $=L.lazyimg({elem:ie.elem+" img",scrollElem:ie.scrollElem});return c&&u.on("scroll",function(){var ee=x(this),s=ee.scrollTop();v&&clearTimeout(v),A||(v=setTimeout(function(){var o=D?ee.height():x(window).height(),d=D?ee.prop("scrollHeight"):document.documentElement.scrollHeight;d-s-o<=h&&(G||M())},100))}),L}},_.prototype.lazyimg=function(ie){var G,A=this,$=0;ie=ie||{};var v=x(ie.scrollElem||document),L=ie.elem||"img",F=ie.scrollElem&&ie.scrollElem!==document,y=function(c,m){var D=v.scrollTop(),k=D+m,q=F?function(){return c.offset().top-v.offset().top+D}():c.offset().top;if(q>=D&&q<=k&&!c.attr("src")){var z=c.attr("lay-src");layui.img(z,function(){var M=A.lazyimg.elem.eq($);c.attr("src",z).removeAttr("lay-src"),M[0]&&u(M),$++})}},u=function(c,m){var D=F?(m||v).height():x(window).height(),k=v.scrollTop(),q=k+D;if(A.lazyimg.elem=x(L),c)y(c,D);else for(var z=0;zq)break}};if(u(),!G){var h;v.on("scroll",function(){var c=x(this);h&&clearTimeout(h),h=setTimeout(function(){u(null,c)},50)}),G=!0}return u},oe("flow",new _)}),layui.define(["layer","form"],function(oe){"use strict";var x=layui.$,_=layui.layer,O=layui.form,ie=(layui.hint(),layui.device()),G="layedit",A="layui-show",$="layui-disabled",v=function(){var o=this;o.index=0,o.config={tool:["strong","italic","underline","del","|","left","center","right","|","link","unlink","face","image"],hideTool:[],height:280}};v.prototype.set=function(o){var d=this;return x.extend(!0,d.config,o),d},v.prototype.on=function(o,d){return layui.onevent(G,o,d)},v.prototype.build=function(o,d){d=d||{};var g=this,f=g.config,w="layui-layedit",S=x(typeof o=="string"?"#"+o:o),N="LAY_layedit_"+ ++g.index,V=S.next("."+w),Z=x.extend({},f,d),X=function(){var C=[],b={};return layui.each(Z.hideTool,function(P,te){b[te]=!0}),layui.each(Z.tool,function(P,te){ee[te]&&!b[te]&&C.push(ee[te])}),C.join("")}(),J=x(['
        ','
        '+X+"
        ",'
        ','',"
        ","
        "].join(""));return ie.ie&&ie.ie<8?S.removeClass("layui-hide").addClass(A):(V[0]&&V.remove(),L.call(g,J,S[0],Z),S.addClass("layui-hide").after(J),g.index)},v.prototype.getContent=function(o){var d=F(o);if(d[0])return y(d[0].document.body.innerHTML)},v.prototype.getText=function(o){var d=F(o);if(d[0])return x(d[0].document.body).text()},v.prototype.setContent=function(o,d,g){var f=F(o);f[0]&&(g?x(f[0].document.body).append(d):x(f[0].document.body).html(d),layedit.sync(o))},v.prototype.sync=function(o){var d=F(o);if(d[0]){var g=x("#"+d[1].attr("textarea"));g.val(y(d[0].document.body.innerHTML))}},v.prototype.getSelection=function(o){var d=F(o);if(d[0]){var g=c(d[0].document);return document.selection?g.text:g.toString()}};var L=function(o,d,g){var f=this,w=o.find("iframe");w.css({height:g.height}).on("load",function(){var S=w.contents(),N=w.prop("contentWindow"),V=S.find("head"),Z=x([""].join("")),X=S.find("body");V.append(Z),X.attr("contenteditable","true").css({"min-height":g.height}).html(d.value||""),u.apply(f,[N,w,d,g]),q.call(f,N,o,g)})},F=function(o){var d=x("#LAY_layedit_"+o),g=d.prop("contentWindow");return[g,d]},y=function(o){return ie.ie==8&&(o=o.replace(/<.+>/g,function(d){return d.toLowerCase()})),o},u=function(o,d,g,f){var w=o.document,S=x(w.body);S.on("keydown",function(N){var V=N.keyCode;if(V===13){var Z=c(w),X=m(Z),J=X.parentNode;if(J.tagName.toLowerCase()==="pre")return N.shiftKey?void 0:(_.msg("\u8BF7\u6682\u65F6\u7528shift+enter"),!1);w.execCommand("formatBlock",!1,"

        ")}}),x(g).parents("form").on("submit",function(){var N=S.html();ie.ie==8&&(N=N.replace(/<.+>/g,function(V){return V.toLowerCase()})),g.value=N}),S.on("paste",function(N){w.execCommand("formatBlock",!1,"

        "),setTimeout(function(){h.call(o,S),g.value=S.html()},100)})},h=function(o){var d=this;d.document,o.find("*[style]").each(function(){var g=this.style.textAlign;this.removeAttribute("style"),x(this).css({"text-align":g||""})}),o.find("table").addClass("layui-table"),o.find("script,link").remove()},c=function(o){return o.selection?o.selection.createRange():o.getSelection().getRangeAt(0)},m=function(o){return o.endContainer||o.parentElement().childNodes[0]},D=function(o,d,g){var f=this.document,w=document.createElement(o);for(var S in d)w.setAttribute(S,d[S]);if(w.removeAttribute("text"),f.selection){var N=g.text||d.text;if(o==="a"&&!N)return;N&&(w.innerHTML=N),g.pasteHTML(x(w).prop("outerHTML")),g.select()}else{var N=g.toString()||d.text;if(o==="a"&&!N)return;N&&(w.innerHTML=N),g.deleteContents(),g.insertNode(w)}},k=function(o,d){var g=this.document,f="layedit-tool-active",w=m(c(g)),S=function(N){return o.find(".layedit-tool-"+N)};d&&d[d.hasClass(f)?"removeClass":"addClass"](f),o.find(">i").removeClass(f),S("unlink").addClass($),x(w).parents().each(function(){var N=this.tagName.toLowerCase(),V=this.style.textAlign;N!=="b"&&N!=="strong"||S("b").addClass(f),N!=="i"&&N!=="em"||S("i").addClass(f),N==="u"&&S("u").addClass(f),N==="strike"&&S("d").addClass(f),N==="p"&&(V==="center"?S("center").addClass(f):V==="right"?S("right").addClass(f):S("left").addClass(f)),N==="a"&&(S("link").addClass(f),S("unlink").removeClass($))})},q=function(o,d,g){var f=o.document,w=x(f.body),S={link:function(X){var J=m(X),C=x(J).parent();z.call(w,{href:C.attr("href"),target:C.attr("target")},function(b){var P=C[0];P.tagName==="A"?P.href=b.url:D.call(o,"a",{target:b.target,href:b.url,text:b.url},X)})},unlink:function(X){f.execCommand("unlink")},face:function(X){M.call(this,function(J){D.call(o,"img",{src:J.src,alt:J.alt},X)})},image:function(X){var J=this;layui.use("upload",function(C){var b=g.uploadImage||{};C.render({url:b.url,method:b.type,elem:x(J).find("input")[0],done:function(P){P.code==0?(P.data=P.data||{},D.call(o,"img",{src:P.data.src,alt:P.data.title},X)):_.msg(P.msg||"\u4E0A\u4F20\u5931\u8D25")}})})},code:function(X){E.call(w,function(J){D.call(o,"pre",{text:J.code,"lay-lang":J.lang},X)})},help:function(){_.open({type:2,title:"\u5E2E\u52A9",area:["600px","380px"],shadeClose:!0,shade:.1,skin:"layui-layer-msg",content:["http://www.layui.com/about/layedit/help.html","no"]})}},N=d.find(".layui-layedit-tool"),V=function(){var X=x(this),J=X.attr("layedit-event"),C=X.attr("lay-command");if(!X.hasClass($)){w.focus();var b=c(f);b.commonAncestorContainer,C?(f.execCommand(C),/justifyLeft|justifyCenter|justifyRight/.test(C)&&f.execCommand("formatBlock",!1,"

        "),setTimeout(function(){w.focus()},10)):S[J]&&S[J].call(this,b),k.call(o,N,X)}},Z=/image/;N.find(">i").on("mousedown",function(){var X=x(this),J=X.attr("layedit-event");Z.test(J)||V.call(this)}).on("click",function(){var X=x(this),J=X.attr("layedit-event");Z.test(J)&&V.call(this)}),w.on("click",function(){k.call(o,N),_.close(M.index)})},z=function(o,d){var g=this,f=_.open({type:1,id:"LAY_layedit_link",area:"350px",shade:.05,shadeClose:!0,moveType:1,title:"\u8D85\u94FE\u63A5",skin:"layui-layer-msg",content:['

          ','
        • ','','
          ','',"
          ","
        • ",'
        • ','','
          ','",'","
          ","
        • ",'
        • ','','',"
        • ","
        "].join(""),success:function(w,S){var N="submit(layedit-link-yes)";O.render("radio"),w.find(".layui-btn-primary").on("click",function(){_.close(S),g.focus()}),O.on(N,function(V){_.close(z.index),d&&d(V.field)})}});z.index=f},M=function(o){var d=function(){var g=["[\u5FAE\u7B11]","[\u563B\u563B]","[\u54C8\u54C8]","[\u53EF\u7231]","[\u53EF\u601C]","[\u6316\u9F3B]","[\u5403\u60CA]","[\u5BB3\u7F9E]","[\u6324\u773C]","[\u95ED\u5634]","[\u9119\u89C6]","[\u7231\u4F60]","[\u6CEA]","[\u5077\u7B11]","[\u4EB2\u4EB2]","[\u751F\u75C5]","[\u592A\u5F00\u5FC3]","[\u767D\u773C]","[\u53F3\u54FC\u54FC]","[\u5DE6\u54FC\u54FC]","[\u5618]","[\u8870]","[\u59D4\u5C48]","[\u5410]","[\u54C8\u6B20]","[\u62B1\u62B1]","[\u6012]","[\u7591\u95EE]","[\u998B\u5634]","[\u62DC\u62DC]","[\u601D\u8003]","[\u6C57]","[\u56F0]","[\u7761]","[\u94B1]","[\u5931\u671B]","[\u9177]","[\u8272]","[\u54FC]","[\u9F13\u638C]","[\u6655]","[\u60B2\u4F24]","[\u6293\u72C2]","[\u9ED1\u7EBF]","[\u9634\u9669]","[\u6012\u9A82]","[\u4E92\u7C89]","[\u5FC3]","[\u4F24\u5FC3]","[\u732A\u5934]","[\u718A\u732B]","[\u5154\u5B50]","[ok]","[\u8036]","[good]","[NO]","[\u8D5E]","[\u6765]","[\u5F31]","[\u8349\u6CE5\u9A6C]","[\u795E\u9A6C]","[\u56E7]","[\u6D6E\u4E91]","[\u7ED9\u529B]","[\u56F4\u89C2]","[\u5A01\u6B66]","[\u5965\u7279\u66FC]","[\u793C\u7269]","[\u949F]","[\u8BDD\u7B52]","[\u8721\u70DB]","[\u86CB\u7CD5]"],f={};return layui.each(g,function(w,S){f[S]=layui.cache.dir+"images/face/"+w+".gif"}),f}();return M.hide=M.hide||function(g){x(g.target).attr("layedit-event")!=="face"&&_.close(M.index)},M.index=_.tips(function(){var g=[];return layui.each(d,function(f,w){g.push('
      • '+f+'
      • ')}),'
          '+g.join("")+"
        "}(),this,{tips:1,time:0,skin:"layui-box layui-util-face",maxWidth:500,success:function(g,f){g.css({marginTop:-4,marginLeft:-10}).find(".layui-clear>li").on("click",function(){o&&o({src:d[this.title],alt:this.title}),_.close(f)}),x(document).off("click",M.hide).on("click",M.hide)}})},E=function(o){var d=this,g=_.open({type:1,id:"LAY_layedit_code",area:"550px",shade:.05,shadeClose:!0,moveType:1,title:"\u63D2\u5165\u4EE3\u7801",skin:"layui-layer-msg",content:['
          ','
        • ','','
          ','","
          ","
        • ",'
        • ','','
          ','',"
          ","
        • ",'
        • ','','',"
        • ","
        "].join(""),success:function(f,w){var S="submit(layedit-code-yes)";O.render("select"),f.find(".layui-btn-primary").on("click",function(){_.close(w),d.focus()}),O.on(S,function(N){_.close(E.index),o&&o(N.field)})}});E.index=g},ee={html:'',strong:'',italic:'',underline:'',del:'',"|":'',left:'',center:'',right:'',link:'',unlink:'',face:'',image:'',code:'',help:''},s=new v;oe(G,s)}),layui.define("jquery",function(oe){"use strict";var x=layui.$,_="http://www.layui.com/doc/modules/code.html";oe("code",function(O){var ie=[];O=O||{},O.elem=x(O.elem||".layui-code"),O.about=!("about"in O)||O.about,O.elem.each(function(){ie.push(this)}),layui.each(ie.reverse(),function(G,A){var $=x(A),v=$.html();($.attr("lay-encode")||O.encode)&&(v=v.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")),$.html('
        1. '+v.replace(/[\r\t\n]+/g,"
        2. ")+"
        "),$.find(">.layui-code-h3")[0]||$.prepend('

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

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