!function(v,D){var A=v.layui&&layui.define,k,q,m={getPath:function(){if(document.currentScript)var a=document.currentScript.src;else{a=document.scripts;for(var b=a.length-1,d,c=b;0<c;c--)if("interactive"===a[c].readyState){d=a[c].src;break}a=d||a[b].src}return a.substring(0,a.lastIndexOf("/")+1)}(),config:{},end:{},minIndex:0,minLeft:[],btn:["&#x786E;&#x5B9A;","&#x53D6;&#x6D88;"],type:["dialog","page","iframe","loading","tips"],getStyle:function(a,b){a=a.currentStyle?a.currentStyle:v.getComputedStyle(a,
null);return a[a.getPropertyValue?"getPropertyValue":"getAttribute"](b)},link:function(a,b,d){if(f.path){var c=document.getElementsByTagName("head")[0],e=document.createElement("link");"string"===typeof b&&(d=b);var l="layuicss-"+(d||a).replace(/\.|\//g,""),g=0;e.rel="stylesheet";e.href=f.path+a;e.id=l;document.getElementById(l)||c.appendChild(e);"function"===typeof b&&function t(){if(80<++g)return v.console&&console.error("layer.css: Invalid");1989===parseInt(m.getStyle(document.getElementById(l),
"width"))?b():setTimeout(t,100)}()}}},f={v:"3.1.1",ie:function(){var a=navigator.userAgent.toLowerCase();return v.ActiveXObject||"ActiveXObject"in v?(a.match(/msie\s(\d+)/)||[])[1]||"11":!1}(),index:v.layer&&v.layer.v?1E5:0,path:m.getPath,config:function(a,b){a=a||{};f.cache=m.config=k.extend({},m.config,a);f.path=m.config.path||f.path;"string"===typeof a.extend&&(a.extend=[a.extend]);m.config.path&&f.ready();if(!a.extend)return this;A?layui.addcss("modules/layer/"+a.extend):m.link("theme/"+a.extend);
return this},ready:function(a){var b=(A?"modules/layer/":"theme/")+"default/layer.css?v="+f.v;A?layui.addcss(b,a,"layer"):m.link(b,a,"layer");return this},alert:function(a,b,d){var c="function"===typeof b;c&&(d=b);return f.open(k.extend({content:a,yes:d},c?{}:b))},confirm:function(a,b,d,c){var e="function"===typeof b;e&&(c=d,d=b);return f.open(k.extend({content:a,btn:m.btn,yes:d,btn2:c},e?{}:b))},msg:function(a,b,d){var c="function"===typeof b,e=m.config.skin,l=(e?e+" "+e+"-msg":"")||"layui-layer-msg";
e=h.anim.length-1;c&&(d=b);return f.open(k.extend({content:a,time:3E3,shade:!1,skin:l,title:!1,closeBtn:!1,btn:!1,resize:!1,end:d},c&&!m.config.skin?{skin:l+" layui-layer-hui",anim:e}:function(){b=b||{};if(-1===b.icon||b.icon===D&&!m.config.skin)b.skin=l+" "+(b.skin||"layui-layer-hui");return b}()))},load:function(a,b){return f.open(k.extend({type:3,icon:a||0,resize:!1,shade:.01},b))},tips:function(a,b,d){return f.open(k.extend({type:4,content:[a,b],closeBtn:!1,time:3E3,shade:!1,resize:!1,fixed:!1,
maxWidth:210},d))}},x=function(a){var b=this;b.index=++f.index;b.config=k.extend({},b.config,m.config,a);document.body?b.creat():setTimeout(function(){b.creat()},30)};x.pt=x.prototype;var h="layui-layer .layui-layer-title .layui-layer-main .layui-layer-dialog layui-layer-iframe layui-layer-content layui-layer-btn layui-layer-close".split(" ");h.anim="layer-anim-00 layer-anim-01 layer-anim-02 layer-anim-03 layer-anim-04 layer-anim-05 layer-anim-06".split(" ");x.pt.config={type:0,shade:.3,fixed:!0,
move:h[1],title:"&#x4FE1;&#x606F;",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};x.pt.vessel=function(a,b){var d=this.index,c=this.config,e=c.zIndex+d,l="object"===typeof c.title,g=c.maxmin&&(1===c.type||2===c.type);l=c.title?'<div class="layui-layer-title" style="'+(l?c.title[1]:"")+'">'+(l?c.title[0]:c.title)+"</div>":"";c.zIndex=e;b([c.shade?'<div class="layui-layer-shade" id="layui-layer-shade'+d+
'" times="'+d+'" style="z-index:'+(e-1+'; "></div>'):"",'<div class="'+h[0]+(" layui-layer-"+m.type[c.type])+(0!=c.type&&2!=c.type||c.shade?"":" layui-layer-border")+" "+(c.skin||"")+'" id="'+h[0]+d+'" type="'+m.type[c.type]+'" times="'+d+'" showtime="'+c.time+'" conType="'+(a?"object":"string")+'" style="z-index: '+e+"; width:"+c.area[0]+";height:"+c.area[1]+(c.fixed?"":";position:absolute;")+'">'+(a&&2!=c.type?"":l)+'<div id="'+(c.id||"")+'" class="layui-layer-content'+(0==c.type&&-1!==c.icon?" layui-layer-padding":
"")+(3==c.type?" layui-layer-loading"+c.icon:"")+'">'+(0==c.type&&-1!==c.icon?'<i class="layui-layer-ico layui-layer-ico'+c.icon+'"></i>':"")+(1==c.type&&a?"":c.content||"")+'</div><span class="layui-layer-setwin">'+function(){var n=g?'<a class="layui-layer-min" href="javascript:;"><cite></cite></a><a class="layui-layer-ico layui-layer-max" href="javascript:;"></a>':"";c.closeBtn&&(n+='<a class="layui-layer-ico '+h[7]+" "+h[7]+(c.title?c.closeBtn:4==c.type?"1":"2")+'" href="javascript:;"></a>');return n}()+
"</span>"+(c.btn?function(){var n="";"string"===typeof c.btn&&(c.btn=[c.btn]);for(var t=0,w=c.btn.length;t<w;t++)n+='<a class="'+h[6]+t+'">'+c.btn[t]+"</a>";return'<div class="'+h[6]+" layui-layer-btn-"+(c.btnAlign||"")+'">'+n+"</div>"}():"")+(c.resize?'<span class="layui-layer-resize"></span>':"")+"</div>"],l,k('<div class="layui-layer-move"></div>'));return this};x.pt.creat=function(){var a=this,b=a.config,d=a.index,c=b.content,e="object"===typeof c,l=k("body");if(!b.id||!k("#"+b.id)[0]){"string"===
typeof b.area&&(b.area="auto"===b.area?["",""]:[b.area,""]);b.shift&&(b.anim=b.shift);6==f.ie&&(b.fixed=!1);switch(b.type){case 0:b.btn="btn"in b?b.btn:m.btn[0];f.closeAll("dialog");break;case 2:c=b.content=e?b.content:[b.content||"http://layer.layui.com","auto"];b.content='<iframe scrolling="'+(b.content[1]||"auto")+'" allowtransparency="true" id="'+h[4]+d+'" name="'+h[4]+d+'" onload="this.className=\'\';" class="layui-layer-load" frameborder="0" src="'+b.content[0]+'"></iframe>';break;case 3:delete b.title;
delete b.closeBtn;-1===b.icon&&0===b.icon;f.closeAll("loading");break;case 4:e||(b.content=[b.content,"body"]),b.follow=b.content[1],b.content=b.content[0]+'<i class="layui-layer-TipsG"></i>',delete b.title,b.tips="object"===typeof b.tips?b.tips:[b.tips,!0],b.tipsMore||f.closeAll("tips")}a.vessel(e,function(n,t,w){l.append(n[0]);e?2==b.type||4==b.type?k("body").append(n[1]):c.parents("."+h[0])[0]||(c.data("display",c.css("display")).show().addClass("layui-layer-wrap").wrap(n[1]),k("#"+h[0]+d).find("."+
h[5]).before(t)):l.append(n[1]);k(".layui-layer-move")[0]||l.append(m.moveElem=w);a.layero=k("#"+h[0]+d);b.scrollbar||h.html.css("overflow","hidden").attr("layer-full",d)}).auto(d);k("#layui-layer-shade"+a.index).css({"background-color":b.shade[1]||"#000",opacity:b.shade[0]||b.shade});2==b.type&&6==f.ie&&a.layero.find("iframe").attr("src",c[0]);4==b.type?a.tips():a.offset();b.fixed&&q.resize(function(){a.offset();(/^\d+%$/.test(b.area[0])||/^\d+%$/.test(b.area[1]))&&a.auto(d);4==b.type&&a.tips()});
0>=b.time||setTimeout(function(){f.close(a.index)},b.time);a.move().callback();if(h.anim[b.anim]){var g="layer-anim "+h.anim[b.anim];a.layero.addClass(g).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){k(this).removeClass(g)})}b.isOutAnim&&a.layero.data("isOutAnim",!0)}};x.pt.auto=function(a){var b=this.config,d=k("#"+h[0]+a);""===b.area[0]&&0<b.maxWidth&&(f.ie&&8>f.ie&&b.btn&&d.width(d.innerWidth()),d.outerWidth()>b.maxWidth&&d.width(b.maxWidth));var c=
[d.innerWidth(),d.innerHeight()],e=d.find(h[1]).outerHeight()||0,l=d.find("."+h[6]).outerHeight()||0;a=function(g){g=d.find(g);g.height(c[1]-e-l-2*(parseFloat(g.css("padding-top"))|0))};switch(b.type){case 2:a("iframe");break;default:""===b.area[1]?0<b.maxHeight&&d.outerHeight()>b.maxHeight?(c[1]=b.maxHeight,a("."+h[5])):b.fixed&&c[1]>=q.height()&&(c[1]=q.height(),a("."+h[5])):a("."+h[5])}return this};x.pt.offset=function(){var a=this.config,b=this.layero,d=[b.outerWidth(),b.outerHeight()],c="object"===
typeof a.offset;this.offsetTop=(q.height()-d[1])/2;this.offsetLeft=(q.width()-d[0])/2;c?(this.offsetTop=a.offset[0],this.offsetLeft=a.offset[1]||this.offsetLeft):"auto"!==a.offset&&("t"===a.offset?this.offsetTop=0:"r"===a.offset?this.offsetLeft=q.width()-d[0]:"b"===a.offset?this.offsetTop=q.height()-d[1]:"l"===a.offset?this.offsetLeft=0:"lt"===a.offset?this.offsetLeft=this.offsetTop=0:"lb"===a.offset?(this.offsetTop=q.height()-d[1],this.offsetLeft=0):"rt"===a.offset?(this.offsetTop=0,this.offsetLeft=
q.width()-d[0]):"rb"===a.offset?(this.offsetTop=q.height()-d[1],this.offsetLeft=q.width()-d[0]):this.offsetTop=a.offset);a.fixed||(this.offsetTop=/%$/.test(this.offsetTop)?q.height()*parseFloat(this.offsetTop)/100:parseFloat(this.offsetTop),this.offsetLeft=/%$/.test(this.offsetLeft)?q.width()*parseFloat(this.offsetLeft)/100:parseFloat(this.offsetLeft),this.offsetTop+=q.scrollTop(),this.offsetLeft+=q.scrollLeft());b.attr("minLeft")&&(this.offsetTop=q.height()-(b.find(h[1]).outerHeight()||0),this.offsetLeft=
b.css("left"));b.css({top:this.offsetTop,left:this.offsetLeft})};x.pt.tips=function(){var a=this.config,b=this.layero,d=[b.outerWidth(),b.outerHeight()],c=k(a.follow);c[0]||(c=k("body"));var e={width:c.outerWidth(),height:c.outerHeight(),top:c.offset().top,left:c.offset().left},l=b.find(".layui-layer-TipsG");c=a.tips[0];a.tips[1]||l.remove();e.autoLeft=function(){0<e.left+d[0]-q.width()?(e.tipLeft=e.left+e.width-d[0],l.css({right:12,left:"auto"})):e.tipLeft=e.left};e.where=[function(){e.autoLeft();
e.tipTop=e.top-d[1]-10;l.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",a.tips[1])},function(){e.tipLeft=e.left+e.width+10;e.tipTop=e.top;l.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",a.tips[1])},function(){e.autoLeft();e.tipTop=e.top+e.height+10;l.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color",a.tips[1])},function(){e.tipLeft=e.left-d[0]-10;e.tipTop=e.top;l.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",
a.tips[1])}];e.where[c-1]();1===c?0>e.top-(q.scrollTop()+d[1]+16)&&e.where[2]():2===c?0<q.width()-(e.left+e.width+d[0]+16)||e.where[3]():3===c?0<e.top-q.scrollTop()+e.height+d[1]+16-q.height()&&e.where[0]():4===c&&0<d[0]+16-e.left&&e.where[1]();b.find("."+h[5]).css({"background-color":a.tips[1],"padding-right":a.closeBtn?"30px":""});b.css({left:e.tipLeft-(a.fixed?q.scrollLeft():0),top:e.tipTop-(a.fixed?q.scrollTop():0)})};x.pt.move=function(){var a=this,b=a.config,d=k(document),c=a.layero,e=c.find(b.move),
l=c.find(".layui-layer-resize"),g={};b.move&&e.css("cursor","move");e.mousedown(function(n){n.preventDefault();b.move&&(g.moveStart=!0,g.offset=[n.clientX-parseFloat(c.css("left")),n.clientY-parseFloat(c.css("top"))],m.moveElem.css("cursor","move").show())});l.mousedown(function(n){n.preventDefault();g.resizeStart=!0;g.offset=[n.clientX,n.clientY];g.area=[c.outerWidth(),c.outerHeight()];m.moveElem.css("cursor","se-resize").show()});d.mousemove(function(n){if(g.moveStart){var t=n.clientX-g.offset[0],
w=n.clientY-g.offset[1],y="fixed"===c.css("position");n.preventDefault();g.stX=y?0:q.scrollLeft();g.stY=y?0:q.scrollTop();if(!b.moveOut){y=q.width()-c.outerWidth()+g.stX;var r=q.height()-c.outerHeight()+g.stY;t<g.stX&&(t=g.stX);t>y&&(t=y);w<g.stY&&(w=g.stY);w>r&&(w=r)}c.css({left:t,top:w})}b.resize&&g.resizeStart&&(t=n.clientX-g.offset[0],w=n.clientY-g.offset[1],n.preventDefault(),f.style(a.index,{width:g.area[0]+t,height:g.area[1]+w}),g.isResize=!0,b.resizing&&b.resizing(c))}).mouseup(function(n){g.moveStart&&
(delete g.moveStart,m.moveElem.hide(),b.moveEnd&&b.moveEnd(c));g.resizeStart&&(delete g.resizeStart,m.moveElem.hide())});return a};x.pt.callback=function(){var a=this,b=a.layero,d=a.config;a.openLayer();d.success&&(2==d.type?b.find("iframe").load(function(){d.success(b,a.index)}):d.success(b,a.index));6==f.ie&&a.IE6(b);b.find("."+h[6]).children("a").click(function(){var c=k(this).index();0===c?d.yes?d.yes(a.index,b):d.btn1?d.btn1(a.index,b):f.close(a.index):!1===(d["btn"+(c+1)]&&d["btn"+(c+1)](a.index,
b))||f.close(a.index)});b.find("."+h[7]).click(function(){!1===(d.cancel&&d.cancel(a.index,b))||f.close(a.index)});d.shadeClose&&k("#layui-layer-shade"+a.index).click(function(){f.close(a.index)});b.find(".layui-layer-min").click(function(){!1===(d.min&&d.min(b))||f.min(a.index,d)});b.find(".layui-layer-max").click(function(){k(this).hasClass("layui-layer-maxmin")?(f.restore(a.index),d.restore&&d.restore(b)):(f.full(a.index,d),setTimeout(function(){d.full&&d.full(b)},100))});d.end&&(m.end[a.index]=
d.end)};m.reselect=function(){k.each(k("select"),function(a,b){a=k(this);a.parents("."+h[0])[0]||1==a.attr("layer")&&1>k("."+h[0]).length&&a.removeAttr("layer").show()})};x.pt.IE6=function(a){k("select").each(function(b,d){b=k(this);b.parents("."+h[0])[0]||"none"===b.css("display")||b.attr({layer:"1"}).hide()})};x.pt.openLayer=function(){f.zIndex=this.config.zIndex;f.setTop=function(a){f.zIndex=parseInt(a[0].style.zIndex);a.mousedown(function(){f.zIndex++;a.css("z-index",f.zIndex+1)});return f.zIndex}};
m.record=function(a){var b=[a.width(),a.height(),a.position().top,a.position().left+parseFloat(a.css("margin-left"))];a.find(".layui-layer-max").addClass("layui-layer-maxmin");a.attr({area:b})};m.rescollbar=function(a){h.html.attr("layer-full")==a&&(h.html[0].style.removeProperty?h.html[0].style.removeProperty("overflow"):h.html[0].style.removeAttribute("overflow"),h.html.removeAttr("layer-full"))};v.layer=f;f.getChildFrame=function(a,b){b=b||k("."+h[4]).attr("times");return k("#"+h[0]+b).find("iframe").contents().find(a)};
f.getFrameIndex=function(a){return k("#"+a).parents("."+h[4]).attr("times")};f.iframeAuto=function(a){if(a){var b=f.getChildFrame("html",a).outerHeight();a=k("#"+h[0]+a);var d=a.find(h[1]).outerHeight()||0,c=a.find("."+h[6]).outerHeight()||0;a.css({height:b+d+c});a.find("iframe").css({height:b})}};f.iframeSrc=function(a,b){k("#"+h[0]+a).find("iframe").attr("src",b)};f.style=function(a,b,d){a=k("#"+h[0]+a);var c=a.find(".layui-layer-content"),e=a.attr("type"),l=a.find(h[1]).outerHeight()||0,g=a.find("."+
h[6]).outerHeight()||0;a.attr("minLeft");e!==m.type[3]&&e!==m.type[4]&&(d||(260>=parseFloat(b.width)&&(b.width=260),64>=parseFloat(b.height)-l-g&&(b.height=64+l+g)),a.css(b),g=a.find("."+h[6]).outerHeight(),e===m.type[2]?a.find("iframe").css({height:parseFloat(b.height)-l-g}):c.css({height:parseFloat(b.height)-l-g-parseFloat(c.css("padding-top"))-parseFloat(c.css("padding-bottom"))}))};f.min=function(a,b){b=k("#"+h[0]+a);var d=b.find(h[1]).outerHeight()||0,c=b.attr("minLeft")||181*m.minIndex+"px",
e=b.css("position");m.record(b);m.minLeft[0]&&(c=m.minLeft[0],m.minLeft.shift());b.attr("position",e);f.style(a,{width:180,height:d,left:c,top:q.height()-d,position:"fixed",overflow:"hidden"},!0);b.find(".layui-layer-min").hide();"page"===b.attr("type")&&b.find(h[4]).hide();m.rescollbar(a);b.attr("minLeft")||m.minIndex++;b.attr("minLeft",c)};f.restore=function(a){var b=k("#"+h[0]+a),d=b.attr("area").split(",");b.attr("type");f.style(a,{width:parseFloat(d[0]),height:parseFloat(d[1]),top:parseFloat(d[2]),
left:parseFloat(d[3]),position:b.attr("position"),overflow:"visible"},!0);b.find(".layui-layer-max").removeClass("layui-layer-maxmin");b.find(".layui-layer-min").show();"page"===b.attr("type")&&b.find(h[4]).show();m.rescollbar(a)};f.full=function(a){var b=k("#"+h[0]+a);m.record(b);h.html.attr("layer-full")||h.html.css("overflow","hidden").attr("layer-full",a);clearTimeout(d);var d=setTimeout(function(){var c="fixed"===b.css("position");f.style(a,{top:c?0:q.scrollTop(),left:c?0:q.scrollLeft(),width:q.width(),
height:q.height()},!0);b.find(".layui-layer-min").hide()},100)};f.title=function(a,b){k("#"+h[0]+(b||f.index)).find(h[1]).html(a)};f.close=function(a){var b=k("#"+h[0]+a),d=b.attr("type");if(b[0]){var c=function(){if(d===m.type[1]&&"object"===b.attr("conType")){b.children(":not(."+h[5]+")").remove();for(var e=b.find(".layui-layer-wrap"),l=0;2>l;l++)e.unwrap();e.css("display",e.data("display")).removeClass("layui-layer-wrap")}else{if(d===m.type[2])try{e=k("#"+h[4]+a)[0],e.contentWindow.document.write(""),
e.contentWindow.close(),b.find("."+h[5])[0].removeChild(e)}catch(g){}b[0].innerHTML="";b.remove()}"function"===typeof m.end[a]&&m.end[a]();delete m.end[a]};b.data("isOutAnim")&&b.addClass("layer-anim layer-anim-close");k("#layui-layer-moves, #layui-layer-shade"+a).remove();6==f.ie&&m.reselect();m.rescollbar(a);b.attr("minLeft")&&(m.minIndex--,m.minLeft.push(b.attr("minLeft")));f.ie&&10>f.ie||!b.data("isOutAnim")?c():setTimeout(function(){c()},200)}};f.closeAll=function(a){k.each(k("."+h[0]),function(){var b=
k(this);(a?b.attr("type")===a:1)&&f.close(b.attr("times"))})};var B=f.cache||{},C=function(a){return B.skin?" "+B.skin+" "+B.skin+"-"+a:""};f.prompt=function(a,b){var d="";a=a||{};"function"===typeof a&&(b=a);a.area&&(d=a.area,d='style="width: '+d[0]+"; height: "+d[1]+';"',delete a.area);var c;d=2==a.formType?'<textarea class="layui-layer-input"'+d+">"+(a.value||"")+"</textarea>":'<input type="'+(1==a.formType?"password":"text")+'" class="layui-layer-input" value="'+(a.value||"")+'">';var e=a.success;
delete a.success;return f.open(k.extend({type:1,btn:["&#x786E;&#x5B9A;","&#x53D6;&#x6D88;"],content:d,skin:"layui-layer-prompt"+C("prompt"),maxWidth:q.width(),success:function(l){c=l.find(".layui-layer-input");c.focus();"function"===typeof e&&e(l)},resize:!1,yes:function(l){var g=c.val();""===g?c.focus():g.length>(a.maxlength||500)?f.tips("&#x6700;&#x591A;&#x8F93;&#x5165;"+(a.maxlength||500)+"&#x4E2A;&#x5B57;&#x6570;",c,{tips:1}):b&&b(g,l,c)}},a))};f.tab=function(a){a=a||{};var b=a.tab||{},d=a.success;
delete a.success;return f.open(k.extend({type:1,skin:"layui-layer-tab"+C("tab"),resize:!1,title:function(){var c=b.length,e=1,l="";if(0<c)for(l='<span class="layui-this">'+b[0].title+"</span>";e<c;e++)l+="<span>"+b[e].title+"</span>";return l}(),content:'<ul class="layui-layer-tabmain">'+function(){var c=b.length,e=1,l="";if(0<c)for(l='<li class="layui-layer-tabli layui-this">'+(b[0].content||"no content")+"</li>";e<c;e++)l+='<li class="layui-layer-tabli">'+(b[e].content||"no  content")+"</li>";return l}()+
"</ul>",success:function(c){var e=c.find(".layui-layer-title").children(),l=c.find(".layui-layer-tabmain").children();e.mousedown(function(g){g.stopPropagation?g.stopPropagation():g.cancelBubble=!0;g=k(this);var n=g.index();g.addClass("layui-this").siblings().removeClass("layui-this");l.eq(n).show().siblings().hide();"function"===typeof a.change&&a.change(n)});"function"===typeof d&&d(c)}},a))};f.photos=function(a,b,d){var c={};a=a||{};if(a.photos){var e=a.photos.constructor===Object,l=e?a.photos:
{},g=l.data||[],n=l.start||0;c.imgIndex=(n|0)+1;a.img=a.img||"img";var t=a.success;delete a.success;if(!e){var w=k(a.photos),y=function(){g=[];w.find(a.img).each(function(r){var p=k(this);p.attr("layer-index",r);g.push({alt:p.attr("alt"),pid:p.attr("layer-pid"),src:p.attr("layer-src")||p.attr("src"),thumb:p.attr("src")})})};y();if(0===g.length)return;b||w.click(function(){var r=k(this).attr("layer-index");f.photos(k.extend(a,{photos:{start:r,data:g,tab:a.tab},full:a.full}),!0);y()});if(!b)return}else if(0===
g.length)return f.msg("&#x6CA1;&#x6709;&#x56FE;&#x7247;");c.imgprev=function(r){c.imgIndex--;1>c.imgIndex&&(c.imgIndex=g.length);c.tabimg(r)};c.imgnext=function(r,p){c.imgIndex++;if(c.imgIndex>g.length&&(c.imgIndex=1,p))return;c.tabimg(r)};c.keyup=function(r){if(!c.end){var p=r.keyCode;r.preventDefault();37===p?c.imgprev(!0):39===p?c.imgnext(!0):27===p&&f.close(c.index)}};c.tabimg=function(r){if(!(1>=g.length))return l.start=c.imgIndex-1,f.close(c.index),f.photos(a,!0,r)};c.event=function(){c.bigimg.hover(function(){c.imgsee.show()},
function(){c.imgsee.hide()});c.bigimg.find(".layui-layer-imgprev").click(function(r){r.preventDefault();c.imgprev()});c.bigimg.find(".layui-layer-imgnext").click(function(r){r.preventDefault();c.imgnext()});k(document).keyup(c.keyup)};c.loadi=f.load(1,{shade:"shade"in a?!1:.9,scrollbar:!1});(function(r,p,u){var z=new Image;z.src=r;if(z.complete)return p(z);z.onload=function(){z.onload=null;p(z)};z.onerror=function(E){z.onerror=null;u(E)}})(g[n].src,function(r){f.close(c.loadi);c.index=f.open(k.extend({type:1,
id:"layui-layer-photos",area:function(){var p=[r.width,r.height],u=[k(v).width()-100,k(v).height()-100];!a.full&&(p[0]>u[0]||p[1]>u[1])&&(u=[p[0]/u[0],p[1]/u[1]],u[0]>u[1]?(p[0]/=u[0],p[1]/=u[0]):u[0]<u[1]&&(p[0]/=u[1],p[1]/=u[1]));return[p[0]+"px",p[1]+"px"]}(),title:!1,shade:.9,shadeClose:!0,closeBtn:!1,move:".layui-layer-phimg img",moveType:1,scrollbar:!1,moveOut:!0,isOutAnim:!1,skin:"layui-layer-photos"+C("photos"),content:'<div class="layui-layer-phimg"><img src="'+g[n].src+'" alt="'+(g[n].alt||
"")+'" layer-pid="'+g[n].pid+'"><div class="layui-layer-imgsee">'+(1<g.length?'<span class="layui-layer-imguide"><a href="javascript:;" class="layui-layer-iconext layui-layer-imgprev"></a><a href="javascript:;" class="layui-layer-iconext layui-layer-imgnext"></a></span>':"")+'<div class="layui-layer-imgbar" style="display:'+(d?"block":"")+'"><span class="layui-layer-imgtit"><a href="javascript:;">'+(g[n].alt||"")+"</a><em>"+c.imgIndex+"/"+g.length+"</em></span></div></div></div>",success:function(p,
u){c.bigimg=p.find(".layui-layer-phimg");c.imgsee=p.find(".layui-layer-imguide,.layui-layer-imgbar");c.event(p);a.tab&&a.tab(g[n],p);"function"===typeof t&&t(p)},end:function(){c.end=!0;k(document).off("keyup",c.keyup)}},a))},function(){f.close(c.loadi);f.msg("&#x5F53;&#x524D;&#x56FE;&#x7247;&#x5730;&#x5740;&#x5F02;&#x5E38;<br>&#x662F;&#x5426;&#x7EE7;&#x7EED;&#x67E5;&#x770B;&#x4E0B;&#x4E00;&#x5F20;&#xFF1F;",{time:3E4,btn:["&#x4E0B;&#x4E00;&#x5F20;","&#x4E0D;&#x770B;&#x4E86;"],yes:function(){1<g.length&&
c.imgnext(!0,!0)}})})}};m.run=function(a){k=a;q=k(v);h.html=k("html");f.open=function(b){return(new x(b)).index}};v.layui&&layui.define?(f.ready(),layui.define("jquery",function(a){f.path=layui.cache.dir;m.run(layui.$);v.layer=f;a("layer",f)})):"function"===typeof define&&define.amd?define(["jquery"],function(){m.run(v.jQuery);return f}):(m.run(v.jQuery),f.ready())}(window);