!function(e,t,o){"undefined"!=typeof module&&module.exports?module.exports=o():"function"==typeof define&&define.amd?define(o):t.Fingerprint=o()}(0,this,function(){"use strict";var e=function(e){var t,o;t=Array.prototype.forEach,o=Array.prototype.map,this.each=function(e,o,n){if(null!==e)if(t&&e.forEach===t)e.forEach(o,n);else if(e.length===+e.length){for(var i=0,s=e.length;i<s;i++)if(o.call(n,e[i],i,e)==={})return}else for(var r in e)if(e.hasOwnProperty(r)&&o.call(n,e[r],r,e)==={})return},this.map=function(e,t,n){var i=[];return null==e?i:o&&e.map===o?e.map(t,n):(this.each(e,function(e,o,s){i[i.length]=t.call(n,e,o,s)}),i)},"object"==typeof e?(this.hasher=e.hasher,this.screen_resolution=e.screen_resolution,this.screen_orientation=e.screen_orientation,this.canvas=e.canvas,this.ie_activex=e.ie_activex):"function"==typeof e&&(this.hasher=e)};return e.prototype={get:function(){var e=[];if(e.push(navigator.userAgent),e.push(navigator.language),e.push(screen.colorDepth),this.screen_resolution){var t=this.getScreenResolution();void 0!==t&&e.push(t.join("x"))}return e.push((new Date).getTimezoneOffset()),e.push(this.hasSessionStorage()),e.push(this.hasLocalStorage()),e.push(this.hasIndexDb()),document.body?e.push(typeof document.body.addBehavior):e.push("undefined"),e.push(typeof window.openDatabase),e.push(navigator.cpuClass),e.push(navigator.platform),e.push(navigator.doNotTrack),e.push(this.getPluginsString()),this.canvas&&this.isCanvasSupported()&&e.push(this.getCanvasFingerprint()),this.hasher?this.hasher(e.join("###"),31):this.murmurhash3_32_gc(e.join("###"),31)},murmurhash3_32_gc:function(e,t){var o,n,i,s,r,a,c,l;for(o=3&e.length,n=e.length-o,i=t,r=3432918353,a=461845907,l=0;l<n;)c=255&e.charCodeAt(l)|(255&e.charCodeAt(++l))<<8|(255&e.charCodeAt(++l))<<16|(255&e.charCodeAt(++l))<<24,++l,i=27492+(65535&(s=5*(65535&(i=(i^=c=(65535&(c=(c=(65535&c)*r+(((c>>>16)*r&65535)<<16)&4294967295)<<15|c>>>17))*a+(((c>>>16)*a&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(s>>>16)&65535)<<16);switch(c=0,o){case 3:c^=(255&e.charCodeAt(l+2))<<16;case 2:c^=(255&e.charCodeAt(l+1))<<8;case 1:i^=c=(65535&(c=(c=(65535&(c^=255&e.charCodeAt(l)))*r+(((c>>>16)*r&65535)<<16)&4294967295)<<15|c>>>17))*a+(((c>>>16)*a&65535)<<16)&4294967295}return i^=e.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0},hasLocalStorage:function(){try{return!!window.localStorage}catch(e){return!0}},hasSessionStorage:function(){try{return!!window.sessionStorage}catch(e){return!0}},hasIndexDb:function(){try{return!!window.indexedDB}catch(e){return!0}},isCanvasSupported:function(){var e=document.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},isIE:function(){return"Microsoft Internet Explorer"===navigator.appName||!("Netscape"!==navigator.appName||!/Trident/.test(navigator.userAgent))},getPluginsString:function(){return this.isIE()&&this.ie_activex?this.getIEPluginsString():this.getRegularPluginsString()},getRegularPluginsString:function(){return this.map(navigator.plugins,function(e){var t=this.map(e,function(e){return[e.type,e.suffixes].join("~")}).join(",");return[e.name,e.description,t].join("::")},this).join(";")},getIEPluginsString:function(){return window.ActiveXObject?this.map(["ShockwaveFlash.ShockwaveFlash","AcroPDF.PDF","PDF.PdfCtrl","QuickTime.QuickTime","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","RealPlayer","SWCtl.SWCtl","WMPlayer.OCX","AgControl.AgControl","Skype.Detection"],function(e){try{return new ActiveXObject(e),e}catch(e){return null}}).join(";"):""},getScreenResolution:function(){return this.screen_orientation?screen.height>screen.width?[screen.height,screen.width]:[screen.width,screen.height]:[screen.height,screen.width]},getCanvasFingerprint:function(){var e=document.createElement("canvas"),t=e.getContext("2d"),o="http://valve.github.io";return t.textBaseline="top",t.font="14px 'Arial'",t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(125,1,62,20),t.fillStyle="#069",t.fillText(o,2,15),t.fillStyle="rgba(102, 204, 0, 0.7)",t.fillText(o,4,17),e.toDataURL()}},e}),doui={winW:0,winH:0,winWrem:0,winHrem:0,windowReady:function(e){var t={success:function(){},fail:function(){}};if("object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail),document.addEventListener)try{document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,!1),t.success()},!1)}catch(e){console.log("doui.windowReady():失败"),t.fail()}else if(document.attachEvent)try{document.attachEvent("onreadystatechange",function(){"complete"==document.readyState&&(document.detachEvent("onreadystatechange",arguments.callee),t.success())})}catch(e){console.log("doui.windowReady():失败"),t.fail()}},metaAdd:function(){var e=document.getElementsByTagName("head")[0],t=e.childNodes[0],o=document.createElement("meta");o.name="format-detection",o.content="telephone=no",e.insertBefore(o,t)},importOver:!0,importLoad:function(e){var t={importArray:[],success:function(){},fail:function(){},mag:[]};if("object"==typeof e&&"object"==typeof e.importArray&&(t.importArray=e.importArray),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail),t.importArray.length<=0)doui.importOver=!0,t.success();else{doui.importOver=!1;for(var o=document.getElementsByTagName("head")[0],n=new RegExp(".css$"),i=new RegExp(".js$"),s=0,r=0,a=0;a<t.importArray.length;a++)if(n.test(t.importArray[a])){var c=document.createElement("link");c.type="text/css",c.rel="stylesheet",c.href=t.importArray[a],o.appendChild(c),c.onerror=function(){s++,alert("引入失败:"+c.href),t.msg.push("引入失败:"+c.href),s>=t.importArray.length&&(doui.importOver=!0,r==s?t.success():(console.log(t.msg),t.fail(t.msg))),c.onerror=null},c.onload=c.onreadystatechange=function(){r++,++s>=t.importArray.length&&(doui.importOver=!0,r==s?t.success():(console.log(t.msg),t.fail(t.msg)))}}else if(i.test(t.importArray[a]))(l=document.createElement("script")).type="text/javascript",l.src=t.importArray[a],o.appendChild(l),l.onerror=function(){s++,alert("引入失败:"+l.src),t.msg.push("引入失败:"+l.src),s>=t.importArray.length&&(doui.importOver=!0,r==s?t.success():(console.log(t.msg),t.fail(t.msg))),l.onerror=null},l.onload=l.onreadystatechange=function(){r++,++s>=t.importArray.length&&(doui.importOver=!0,r==s?t.success():(console.log(t.msg),t.fail(t.msg)))};else{var l;(l=document.createElement("script")).src=t.importArray[a],o.appendChild(l),l.onerror=function(){s++,alert("引入失败:"+l.src),t.msg.push("引入失败:"+l.src),s>=t.importArray.length&&(doui.importOver=!0,r==s?t.success():(console.log(t.msg),t.fail(t.msg))),l.onerror=null},l.onload=l.onreadystatechange=function(){r++,++s>=t.importArray.length&&(doui.importOver=!0,r==s?t.success():(console.log(t.msg),t.fail(t.msg)))}}}},douiCss:null,sizeReady:!1,sizeSet:function(){if(null==doui.douiCss){for(var e=null,t=document.styleSheets,o=new RegExp("doui"),n=0;n<t.length;n++)if(o.test(t[n].href)){e=t[n];break}if(null==e||void 0===e.cssRules||e.cssRules.length<=0)return console.log("请本地载入doui.css"),alert("请本地载入doui.css"),null!=doui.threadReady&&clearInterval(doui.threadReady),doui.sizeReady=!1,!1;doui.douiCss=e}try{var i=window.innerWidth,s=window.innerHeight;doui.winW=i,doui.winH=s}catch(e){return doui.sizeReady=!1,alert("屏幕可用大小获取失败"),!1}var r=parseFloat(750*doui.winH/doui.winW),a=100*parseFloat(doui.winW/750);doui.winWrem=7.5,doui.winHrem=r/100,n=0;for(var c=doui.douiCss.cssRules;n<c.length;n++)if("html"==c[n].selectorText)c[n].style.fontSize=a+"px",c[n].style.width=doui.winW+"px",c[n].style.height=doui.winH+"px";else if("body"==c[n].selectorText)c[n].style.width=doui.winW+"px",c[n].style.minHeight=doui.winH+"px";else if(".winSizeBox"==c[n].selectorText)c[n].style.width=doui.winW+"px",c[n].style.height=doui.winH+"px";else if(".heightenBox"==c[n].selectorText)c[n].style.width=doui.winW+"px",c[n].style.minHeight=doui.winH+"px";else if(".layer-transparent"==c[n].selectorText)c[n].style.width=doui.winW+"px",c[n].style.height=doui.winH+"px";else if(".layer-dark"==c[n].selectorText)c[n].style.width=doui.winW+"px",c[n].style.height=doui.winH+"px";else if(".layer-light"==c[n].selectorText)c[n].style.width=doui.winW+"px",c[n].style.height=doui.winH+"px";else if(".main"==c[n].selectorText){c[n].style.minHeight=doui.winH+"px";break}doui.sizeReady=!0},threadReady:null,onReady:function(e){var t={success:function(){},fail:function(){}};"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail);var o=(new Date).getTime();null!=doui.threadReady&&clearInterval(doui.threadReady),doui.threadReady=setInterval(function(){var e=(new Date).getTime();console.log("interval: doui的onReady监控"),e-o>=3e5&&(clearInterval(doui.threadReady),console.log("doui初始化超时"),alert("doui初始化超时"),t.fail()),1==doui.importOver&&1==doui.sizeReady&&(clearInterval(doui.threadReady),t.success())},300)},systemInfo:function(e){var t={success:function(){},fail:function(){},msg:[]};"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail);var o={fingerprint:"",city:"",IPv4:"",IPv6:"",platform:"PC",version:"0",browserName:"",browserVersion:"0",inWX:!1,cookieEnabled:!0,windowWidth:0,windowHeight:0,windowWidthRem:0,windowHeightRem:0};try{var n=(new Fingerprint).get();o.fingerprint=n}catch(e){console.log("doui.systemInfo():生成唯一标识失败"),t.msg.push("生成唯一标识失败")}var i=navigator.userAgent,s=navigator.userAgent.toLowerCase();if(i.indexOf("Android")>-1||i.indexOf("Linux")>-1)o.platform="Android";else if(i.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/))o.platform="IOS";else for(var r=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],a=0;a<r.length;a++)if(i.indexOf(r[a])>0){o.platform="PC";break}try{"Android"==o.platform?o.version=s.match(/android ([\d.]+)/)[1]:"IOS"==o.platform?o.version=s.match(/version\/([\d.]+)/)[1]:"PC"==o.platform&&(o.version=navigator.platform)}catch(e){console.log("doui.systemInfo():获取平台version版本失败"),t.msg.push("获取平台version版本失败")}i.indexOf("OPR")>-1||i.indexOf("Opera")>-1?o.browserName="Opera":i.indexOf("Firefox")>-1?o.browserName="FireFox":i.indexOf("Chrome")>-1?o.browserName="Chrome":i.indexOf("Safari")>-1?o.browserName="Safari":(s.indexOf("msie")>-1||i.indexOf("rv")>-1)&&(o.browserName="IE");try{"Opera"==o.browserName?o.browserVersion=s.match(/opera.([\d.]+)/)[1]:"FireFox"==o.browserName?o.browserVersion=s.match(/firefox\/([\d.]+)/)[1]:"Chrome"==o.browserName?o.browserVersion=s.match(/chrome\/([\d.]+)/)[1]:"Safari"==o.browserName?o.browserVersion=s.match(/safari\/([\d.]+)/)[1]:"IE"==o.browserName&&(o.browserVersion=s.match(/msie ([\d.]+)/)[1])}catch(e){console.log("doui.systemInfo():获取本浏览器版本号失败"),t.msg.push("获取本浏览器版本号失败")}"micromessenger"==s.match(/MicroMessenger/i)?o.inWX=!0:o.inWX=!1,o.cookieEnabled=navigator.cookieEnabled,o.windowWidth=doui.winW,o.windowHeight=doui.winH,o.windowWidthRem=doui.winWrem,o.windowHeightRem=doui.winHrem;try{!function(e){var t={},o=window.RTCPeerConnection||window.mozRTCPeerConnection||window.webkitRTCPeerConnection,n=!!window.webkitRTCPeerConnection;if(!o){var i=document.createElement("iframe");i.style.display="none",i.sandbox="allow-same-origin",i.addEventListener("DOMNodeInserted",function(e){e.stopPropagation()},!1),i.addEventListener("DOMNodeInsertedIntoDocument",function(e){e.stopPropagation()},!1),document.body.appendChild(i);var s=i.contentWindow;o=s.RTCPeerConnection||s.mozRTCPeerConnection||s.webkitRTCPeerConnection,n=!!s.webkitRTCPeerConnection}var r=void 0;n&&(r={iceServers:[{urls:"stun:stun.services.mozilla.com"}]});var a=new o(r,{optional:[{RtpDataChannels:!0}]});function c(o){var n=/([0-9]{1,3}(\.[0-9]{1,3}){3})/.exec(o)[1];void 0===t[n]&&e(n),t[n]=!0}a.onicecandidate=function(e){e.candidate&&c(e.candidate.candidate)},a.createDataChannel(""),a.createOffer(function(e){a.setLocalDescription(e,function(){},function(){})},function(){}),setTimeout(function(){a.localDescription.sdp.split("\n").forEach(function(e){0===e.indexOf("a=candidate:")&&c(e)})},1e3)}(function(e){e.match(/^(192\.168\.|169\.254\.|10\.|172\.(1[6-9]|2\d|3[01]))/)&&(o.IPv4=e);try{var n=document.createElement("script");n.type="text/javascript",n.src="http://pv.sohu.com/cityjson?ie=utf-8",document.getElementsByTagName("head")[0].appendChild(n),n.onload=function(e){o.city=returnCitySN.cname,o.IPv6=returnCitySN.cip,n.parentNode.removeChild(n),t.msg.length>0&&t.fail(t.msg),t.success(o)}}catch(e){console.log("doui.systemInfo():获取外网IP地址失败"),t.msg.push("获取外网IP地址失败"),t.msg.length>0&&t.fail(t.msg),t.success(o)}})}catch(e){console.log("doui.systemInfo():获取内网IP地址失败"),t.msg.push("获取内网IP地址失败")}},urlParam:function(e){var t={success:function(){},fail:function(){}};"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail);var o=window.location.search,n=new Object,i=!1;if(-1!=o.indexOf("?")){var s=o.slice(o.indexOf("?")+1).split("&");s.length>0&&(i=!0);for(var r=0;r<s.length;r++){var a=s[r].indexOf("="),c=s[r].substring(0,a),l=decodeURIComponent(s[r].slice(a+1));n[c]=l}}1==i?t.success(n):(n.msg="未传递任何值",t.fail(n))},domBy:function(e){var t={el:"",success:function(){},fail:function(){}};"object"==typeof e&&"string"==typeof e.el&&(t.el=e.el),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail);var o=new Array;if(-1!=t.el.indexOf("#")){var n=t.el.slice(t.el.indexOf("#")+1);(s=document.getElementById(n))&&o.push(s)}else if(-1!=t.el.indexOf(".")){if(n=t.el.slice(t.el.indexOf(".")+1),(s=document.getElementsByClassName(n))&&s.length>0)for(var i=0;i<s.length;i++)o.push(s[i])}else{var s;if((s=document.getElementsByTagName(t.el))&&s.length>0)for(i=0;i<s.length;i++)o.push(s[i])}o.length>0?t.success(o):(console.log("未找到dom元素"),t.fail())},domShow:function(e){var t={el:"",type:1,animat:!0,success:function(){}};"object"==typeof e&&"string"==typeof e.el&&(t.el=e.el),"object"==typeof e&&void 0!==e.type&&(t.type=parseInt(e.type)),"object"==typeof e&&"boolean"==typeof e.animat&&(t.animat=e.animat),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success);var o=[{className:"animt_opacity_0_1",time:300},{className:"animt_scale_o5_1",time:300},{className:"animt_translateY_70_0",time:300}],n=t.type-1;doui.domBy({el:t.el,success:function(e){for(var i=0,s=e;i<s.length;i++){var r=s[i];if("true"==r.getAttribute("do-animt-work"))console.log("doui.domShow():当前的dom正在show工作");else{for(var a=r.getAttribute("class").split(" "),c=!1,l=!1,f=0;f<a.length;f++)a[f]==o[n].className?l=!0:"displayNone"==a[f]&&(c=!0);if(0==c)console.log("doui.domShow():当前的dom已经显示"),t.success();else if(0==t.animat){for(f=0;f<a.length;f++)"displayNone"==a[f]&&(a.splice(f,1),f--);r.setAttribute("class",a.join(" ")),t.success()}else if(1==t.animat){for(0==l&&a.push(o[n].className),r.setAttribute("class",a.join(" ")),f=0;f<a.length;f++)"displayNone"==a[f]&&(a.splice(f,1),f--);r.setAttribute("class",a.join(" ")),r.setAttribute("do-animt-work","true"),setTimeout(function(){if(r){for(var e=r.getAttribute("class").split(" "),i=0;i<e.length;i++)e[i]==o[n].className&&(e.splice(i,1),i--);r.setAttribute("class",e.join(" ")),r.removeAttribute("do-animt-work"),t.success()}},o[n].time)}}}}})},domHide:function(e){var t={el:"",type:1,animat:!0,success:function(){}};"object"==typeof e&&"string"==typeof e.el&&(t.el=e.el),"object"==typeof e&&void 0!==e.type&&(t.type=parseInt(e.type)),"object"==typeof e&&"boolean"==typeof e.animat&&(t.animat=e.animat),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success);var o=[{className:"animt_opacity_1_0",time:300},{className:"animt_scale_1_o5",time:300},{className:"animt_translateY_0_70",time:300}],n=t.type-1;doui.domBy({el:t.el,success:function(e){for(var i=0,s=e;i<s.length;i++){var r=s[i];if("true"==r.getAttribute("do-animt-work"))console.log("doui.domHide():当前的dom正在hide工作");else{for(var a=r.getAttribute("class").split(" "),c=!1,l=!1,f=0;f<a.length;f++)a[f]==o[n].className?l=!0:"displayNone"==a[f]&&(c=!0);1==c?(console.log("doui.domHide():当前的dom已经隐藏"),t.success()):0==t.animat?(a.push("displayNone"),r.setAttribute("class",a.join(" ")),t.success()):1==t.animat&&(r.setAttribute("do-animt-work","true"),0==l&&a.push(o[n].className),r.setAttribute("class",a.join(" ")),setTimeout(function(){if(r){for(var e=r.getAttribute("class").split(" "),i=!1,s=0;s<e.length;s++)e[s]==o[n].className?(e.splice(s,1),s--):"displayNone"==e[s]&&(i=!0);0==i&&e.push("displayNone"),r.setAttribute("class",e.join(" ")),r.removeAttribute("do-animt-work"),t.success()}},o[n].time))}}}})},threadToast:null,showToast:function(e){var t={content:"亲,我很迷茫啊……",duration:2e3,mask:!1,success:function(){}};"object"==typeof e&&void 0!==e.content&&(t.content=e.content),"object"==typeof e&&void 0!==e.duration&&(t.duration=parseInt(e.duration)),"object"==typeof e&&"boolean"==typeof e.mask&&(t.mask=e.mask),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success);var o=document.getElementById("zdo_toast_mask");o&&o.parentNode.removeChild(o);var n=document.getElementById("zdo_toast");n&&n.parentNode.removeChild(n),null!=doui.threadToast&&clearTimeout(doui.threadToast);var i="0.26rem",s="3.7rem",r="1.5rem",a="1.9rem",c="0.33rem";doui.winW>=doui.winH&&doui.winW>768&&(i="15px",s=doui.winHrem/4+"rem",r=doui.winHrem/6+"rem",a=(doui.winWrem-doui.winHrem/4)/2+"rem",c=doui.winHrem/40+"rem"),(u=document.createElement("div")).innerHTML='<div id="zdo_toast_mask" class="layer-transparent"></div>';var l=u.childNodes[0],f="zdo_toast";doui.strRandom({length:6,success:function(e){f+=e}});var u,d="";d+='<div id="zdo_toast" class="'+f+' fboxRow Xcenter Ycenter displayNone" style="width:'+s+"; height:auto; bottom:"+r+"; left:"+a+';">',d+='<div class="font-white font-ell2" style="max-width:80%; font-size:'+i+"; margin-top:"+c+"; margin-bottom:"+c+'; line-height:1.5; text-align:center;">'+t.content+"</div>",d+="</div>",(u=document.createElement("div")).innerHTML=d;var p=u.childNodes[0],h=document.getElementsByTagName("body")[0];1==t.mask&&h.appendChild(l),h.appendChild(p),doui.domShow({el:"."+f,type:3,success:function(){doui.threadToast=setTimeout(function(){doui.domHide({el:"."+f,type:3,success:function(){doui.domBy({el:"."+f,success:function(e){for(var t=0,o=e;t<o.length;t++){var n=o[t];n.parentNode.removeChild(n)}}})}})},t.duration),t.success()}})},showLoading:function(e){var t={content:"",type:1,mask:!1,success:function(){}};"object"==typeof e&&void 0!==e.content&&(t.content=e.content),"object"==typeof e&&void 0!==e.type&&(t.type=parseInt(e.type)),"object"==typeof e&&"boolean"==typeof e.mask&&(t.mask=e.mask),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success);var o=document.getElementById("zdo_loading_mask");o&&o.parentNode.removeChild(o);var n="0.26rem",i="1.8rem",s="1.2rem",r="0.07rem",a=(doui.winHrem-1.2)/2+"rem",c="2.85rem";doui.winW>=doui.winH&&doui.winW>768&&(n="15px",i=doui.winHrem/8+"rem",s=doui.winHrem/9+"rem",r="6px",a=(doui.winHrem-doui.winHrem/9)/2+"rem",c=(doui.winWrem-doui.winHrem/8)/2+"rem"),(l=document.createElement("div")).innerHTML='<div id="zdo_loading_mask" class="layer-transparent"></div>';var l,f=l.childNodes[0],u="";u+='<div id="zdo_loading" class="fboxCol Xstart Ycenter displayNone" style="width:'+i+"; height:auto; top:"+a+"; left:"+c+';">',u+='<div class="zdo_loading_arcOut" style="width:'+s+"; height:"+s+';">',u+='<div class="zdo_loading_arcBg" style="width:'+s+"; height:"+s+"; border-width:"+r+';"></div>',u+='<div class="zdo_loading_arcAnimt animt_rotate_0_360_infinite" style="width:'+s+"; height:"+s+"; border-width:"+r+';"></div>',u+="</div>",u+='<div id="zdo_loadcont" class="font-white font-ell2" style="width:'+i+"; font-size:"+n+'; margin-top:10px; line-height:1.5; text-align:center; text-shadow:0 0 5px black;">'+t.content+"</div>",u+="</div>",(l=document.createElement("div")).innerHTML=u;var d=l.childNodes[0],p=document.getElementsByTagName("body")[0];1==t.mask&&p.appendChild(f),document.getElementById("zdo_loading")?document.getElementById("zdo_loadcont").innerHTML=t.content:(p.appendChild(d),doui.domShow({el:"#zdo_loading",type:1,success:function(){t.success()}}))},hideLoading:function(e){var t={success:function(){}};"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),document.getElementById("zdo_loading")?doui.domHide({el:"#zdo_loading",type:1,success:function(){var e=document.getElementById("zdo_loading");e&&e.parentNode.removeChild(e),t.success()}}):console.log("doui.hideLoading():当前没有loading框显示")},showModal:function(e){var t={title:"",content:"亲,我很迷茫啊……",showCancel:!0,cancelText:"取消",cancelColor:"#585858",confirmText:"确定",confirmColor:"#2DB42A",success:function(){}};"object"==typeof e&&void 0!==e.title&&(t.title=e.title),"object"==typeof e&&void 0!==e.content&&(t.content=e.content),"object"==typeof e&&"boolean"==typeof e.showCancel&&(t.showCancel=e.showCancel),"object"==typeof e&&void 0!==e.cancelText&&(t.cancelText=e.cancelText),"object"==typeof e&&"string"==typeof e.cancelColor&&(t.cancelColor=e.cancelColor),"object"==typeof e&&void 0!==e.confirmText&&(t.confirmText=e.confirmText),"object"==typeof e&&"string"==typeof e.confirmColor&&(t.confirmColor=e.confirmColor),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success);var o=document.getElementById("zdo_modal_mask");o&&o.parentNode.removeChild(o);var n="4.3rem",i="0.4rem",s="0.30rem",r="0.26rem",a="0.8rem",c="0.27rem";doui.winW>=doui.winH&&doui.winW>768&&(n=doui.winHrem/3+"rem",i=doui.winHrem/30+"rem",s="19px",r="16px",a=doui.winHrem/17+"rem",c="18px");var l="";l+='<div id="zdo_modal_mask" class="layer-dark fboxRow Xcenter Ycenter displayNone">',l+='<div id="zdo_modal" class="fboxCol Xcenter Ycenter displayNone" style="width:'+n+"; height:auto; max-height:"+doui.winH+'px;">',t.title.length>0&&(l+='<div class="font-black font-weight" style="max-width:80%; font-size:'+s+"; margin-top:"+i+'; line-height:1.5; text-align:center;">'+t.title+"</div>"),l+='<div class="font-black" style="max-width:80%; font-size:'+r+"; margin-top:"+i+"; margin-bottom:"+i+'; line-height:1.5; text-align:center;">'+t.content+"</div>",l+='<div class="fboxRow" style="width:100%; height:'+a+'; border-top:1px solid #CCC">',1==t.showCancel&&(l+='<div class="flex1 fboxRow Xcenter Ycenter click-color zdo_modaldan1">',l+='<div class="cursor-default" style="font-size:'+c+"; color:"+t.cancelColor+';">'+t.cancelText+"</div>",l+="</div>",l+='<div style="width:1px; height:100%; background-color:#CCC;"></div>'),l+='<div class="flex1 fboxRow Xcenter Ycenter click-color zdo_modaldan2">',l+='<div class="cursor-default" style="font-size:'+c+"; color:"+t.confirmColor+';">'+t.confirmText+"</div>",l+="</div>",l+="</div>",l+="</div>",l+="</div>";var f=document.createElement("div");f.innerHTML=l;var u=f.childNodes[0];document.getElementsByTagName("body")[0].appendChild(u),doui.domShow({el:"#zdo_modal_mask",type:1}),doui.domShow({el:"#zdo_modal",type:2,success:function(){var e=document.getElementsByClassName("zdo_modaldan1")[0];e&&(e.onclick=function(){doui.domHide({el:"#zdo_modal_mask",type:1}),doui.domHide({el:"#zdo_modal",type:2,success:function(){var e=document.getElementById("zdo_modal_mask");e&&e.parentNode.removeChild(e),t.success({cancel:!0,confirm:!1})}})});var o=document.getElementsByClassName("zdo_modaldan2")[0];o&&(o.onclick=function(){doui.domHide({el:"#zdo_modal_mask",type:1}),doui.domHide({el:"#zdo_modal",type:2,success:function(){var e=document.getElementById("zdo_modal_mask");e&&e.parentNode.removeChild(e),t.success({cancel:!1,confirm:!0})}})})}})},showMore:function(e){var t={el:".do-loadingMore",content:"",type:1,greenChannel:!1,success:function(){},fail:function(){}};"object"==typeof e&&"string"==typeof e.el&&(t.el=e.el),"object"==typeof e&&void 0!==e.content&&(t.content=e.content),"object"==typeof e&&void 0!==e.type&&(t.type=parseInt(e.type)),"object"==typeof e&&"boolean"==typeof e.greenChannel&&(t.greenChannel=e.greenChannel),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail);var o="";1==t.type?(o+='<div class="fboxRow Xcenter Ycenter">',o+='<div style="width:24px; height:24px; position:relative;">',o+='<div class="zdo_loadingMore_xian animt_opacity_o2_1_o2_infinite"></div>',o+='<div class="zdo_loadingMore_xian animt_opacity_o2_1_o2_infinite"></div>',o+='<div class="zdo_loadingMore_xian animt_opacity_o2_1_o2_infinite"></div>',o+='<div class="zdo_loadingMore_xian animt_opacity_o2_1_o2_infinite"></div>',o+='<div class="zdo_loadingMore_xian animt_opacity_o2_1_o2_infinite"></div>',o+='<div class="zdo_loadingMore_xian animt_opacity_o2_1_o2_infinite"></div>',o+='<div class="zdo_loadingMore_xian animt_opacity_o2_1_o2_infinite"></div>',o+='<div class="zdo_loadingMore_xian animt_opacity_o2_1_o2_infinite"></div>',o+="</div>",t.content.length>0&&(o+='<div style="margin-left:0.2rem;" class="font-gray" style="font-size:0.26rem">'+t.content+"</div>"),o+="</div>"):2==t.type&&(o+='<div class="fboxRow Xcenter Ystart">',o+='<div class="zdo_loadingMore_dian animt_opacity_o2_1_o2_infinite" style="-webkit-animation-delay:0s; animation-delay:0s;"></div>',o+='<div class="zdo_loadingMore_dian animt_opacity_o2_1_o2_infinite" style="-webkit-animation-delay:0.1s; animation-delay:0.1s;"></div>',o+='<div class="zdo_loadingMore_dian animt_opacity_o2_1_o2_infinite" style="-webkit-animation-delay:0.2s; animation-delay:0.2s;"></div>',o+='<div class="zdo_loadingMore_dian animt_opacity_o2_1_o2_infinite" style="-webkit-animation-delay:0.3s; animation-delay:0.3s;"></div>',o+='<div class="zdo_loadingMore_dian animt_opacity_o2_1_o2_infinite" style="-webkit-animation-delay:0.4s; animation-delay:0.4s;"></div>',o+="</div>"),doui.domBy({el:t.el,fail:function(){console.log("doui.showMore():未放入do-loadingMore组件"),t.fail()},success:function(e){for(var n=0,i=e;n<i.length;n++){var s=i[n];s.childNodes.length<=0?(s.innerHTML=o,t.success()):1==t.greenChannel?(s.innerHTML=o,t.success()):(console.log("doui.showMore():do-loadingMore组件正在工作"),t.fail())}}})},hideMore:function(e){var t={el:".do-loadingMore",content:"",success:function(){},fail:function(){}};"object"==typeof e&&"string"==typeof e.el&&(t.el=e.el),"object"==typeof e&&void 0!==e.content&&(t.content=e.content),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail);var o='<div class="fboxRow Xcenter Ystart font-ell1 font-gray" style="font-size:0.26rem">'+t.content+"</div>";doui.domBy({el:t.el,fail:function(){console.log("doui.showMore():未放入do-loadingMore组件"),t.fail()},success:function(e){for(var n=0,i=e;n<i.length;n++){var s=i[n];s.innerHTML="",t.content.length>0&&(s.innerHTML=o),t.success()}}})},scrolling:function(e){var t={el:"",reachRight:function(){},reachBottom:function(){},success:function(){}};"object"==typeof e&&"string"==typeof e.el&&(t.el=e.el),"object"==typeof e&&"function"==typeof e.reachRight&&(t.reachRight=e.reachRight),"object"==typeof e&&"function"==typeof e.reachBottom&&(t.reachBottom=e.reachBottom),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"html"==t.el||"body"==t.el||"window"==t.el?document.body.onscroll=document.documentElement.onscroll=function(){var e={scrollHeight:document.documentElement.scrollHeight||document.body.scrollHeight,viewHeight:document.documentElement.clientHeight||document.body.clientHeight,scrollTop:document.documentElement.scrollTop||document.body.scrollTop,scrollWidth:document.documentElement.scrollWidth||document.body.scrollWidth,viewWidth:document.documentElement.clientWidth||document.body.clientWidth,scrollLeft:document.documentElement.scrollLeft||document.body.scrollLeft};e.scrollLeft>0&&e.viewWidth+e.scrollLeft>=e.scrollWidth&&t.reachRight(e),e.scrollTop>0&&e.viewHeight+e.scrollTop>=e.scrollHeight&&t.reachBottom(e),t.success(e)}:doui.domBy({el:t.el,success:function(e){for(var o=0,n=e;o<n.length;o++){var i=n[o];i.onscroll=function(){var e={scrollHeight:i.scrollHeight,viewHeight:i.clientHeight,scrollTop:i.scrollTop,scrollWidth:i.scrollWidth,viewWidth:i.clientWidth,scrollLeft:i.scrollLeft};e.scrollLeft>0&&e.viewWidth+e.scrollLeft>=e.scrollWidth&&t.reachRight(e),e.scrollTop>0&&e.viewHeight+e.scrollTop>=e.scrollHeight&&t.reachBottom(e),t.success(e)}}}})},scrollTo:function(e){var t={el:"",type:"top",location:0,animat:!0,success:function(){}};if("object"==typeof e&&"string"==typeof e.el&&(t.el=e.el),"object"==typeof e&&"string"==typeof e.type&&(t.type=e.type.toLowerCase()),"object"==typeof e&&void 0!==e.location&&(t.location=parseInt(e.location)),"object"==typeof e&&"boolean"==typeof e.animat&&(t.animat=e.animat),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"html"==t.el||"body"==t.el||"window"==t.el)if("top"==t.type)if(1==t.animat){var o=null;cancelAnimationFrame(o),o=requestAnimationFrame(function e(){var n=document.documentElement.scrollTop||document.body.scrollTop,i=Math.ceil(n/5);n>2e3?(scrollTo(0,2e3),o=requestAnimationFrame(e)):n>t.location?(scrollTo(0,n-i),o=requestAnimationFrame(e)):(scrollTo(0,t.location),cancelAnimationFrame(o),t.success())})}else scrollTo(0,t.location),t.success();else"left"==t.type&&(1==t.animat?(o=null,cancelAnimationFrame(o),o=requestAnimationFrame(function e(){var n=document.documentElement.scrollLeft||document.body.scrollLeft,i=Math.ceil(n/5);n>2e3?(scrollTo(2e3,0),o=requestAnimationFrame(e)):n>t.location?(scrollTo(n-i,0),o=requestAnimationFrame(e)):(scrollTo(t.location,0),cancelAnimationFrame(o),t.success())})):(scrollTo(t.location,0),t.success()));else"top"==t.type?doui.domBy({el:t.el,success:function(e){for(var o=0,n=e;o<n.length;o++){var i=n[o];if(1==t.animat){var s=null;cancelAnimationFrame(s),s=requestAnimationFrame(function e(){var o=i.scrollTop,n=Math.ceil(o/5);o>2e3?(i.scrollTop=2e3,s=requestAnimationFrame(e)):o>t.location?(i.scrollTop=o-n,s=requestAnimationFrame(e)):(i.scrollTop=t.location,cancelAnimationFrame(s),t.success())})}else i.scrollTop=t.location,t.success()}}}):"left"==t.type&&doui.domBy({el:t.el,success:function(e){for(var o=0,n=e;o<n.length;o++){var i=n[o];if(1==t.animat){var s=null;cancelAnimationFrame(s),s=requestAnimationFrame(function e(){var o=i.scrollLeft,n=Math.ceil(o/5);o>2e3?(i.scrollLeft=2e3,s=requestAnimationFrame(e)):o>t.location?(i.scrollLeft=o-n,s=requestAnimationFrame(e)):(i.scrollLeft=t.location,cancelAnimationFrame(s),t.success())})}else i.scrollLeft=t.location,t.success()}}})},cookieSet:function(e){var t={key:"",data:"",hour:3,path:"/",success:function(){},fail:function(){}};"object"==typeof e&&"string"==typeof e.key&&(t.key=e.key),"object"==typeof e&&void 0!==e.data&&("object"==typeof e.data?t.data=JSON.stringify(e.data):"string"==typeof e.data&&(t.data=e.data)),"object"==typeof e&&void 0!==e.hour&&(t.hour=parseFloat(e.hour)),"object"==typeof e&&"string"==typeof e.path&&(t.path=e.path),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail);try{var o=new Date;o.setTime(o.getTime()+Math.ceil(36e5*t.hour));var n="expires="+o.toGMTString();document.cookie=t.key+"="+t.data+"; "+n+"; path="+t.path,t.success()}catch(e){t.fail()}},cookieGet:function(e){var t={key:"",success:function(){},fail:function(){}};"object"==typeof e&&"string"==typeof e.key&&(t.key=e.key),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail);var o=document.cookie.split(";");if(o&&o.length>0){for(var n={},i=0;i<o.length;i++){var s=o[i].trim(),r=s.indexOf("="),a=s.substring(0,r),c=s.slice(r+1);if(doui.strToJson({str:c,success:function(e){c=e}}),n[a]=c,a==t.key)break}if(t.key.length<=0)t.success(n);else if(n[t.key])t.success(n[t.key]);else{var l={data:null,msg:"没有该数据"};t.fail(l)}}else l={data:null,msg:"没有cookie数据"},t.fail(l)},cookieDel:function(e){var t={key:"",success:function(){},fail:function(){}};"object"==typeof e&&"string"==typeof e.key&&(t.key=e.key),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail);try{document.cookie=t.key+"= ; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/",t.success()}catch(e){var o={data:e,msg:"执行错误"};t.fail(o)}},localStorageSet:function(e){var t={key:"",data:"",success:function(){},fail:function(){}};"object"==typeof e&&"string"==typeof e.key&&(t.key=e.key),"object"==typeof e&&void 0!==e.data&&("object"==typeof e.data?t.data=JSON.stringify(e.data):"string"==typeof e.data&&(t.data=e.data)),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail);try{localStorage.setItem(t.key,t.data),t.success()}catch(e){t.fail()}},localStorageGet:function(e){var t={key:"",success:function(){},fail:function(){}};"object"==typeof e&&"string"==typeof e.key&&(t.key=e.key),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail);try{var o=localStorage.getItem(t.key);if(o)doui.strToJson({str:o,success:function(e){t.success(e)},fail:function(){t.success(o)}});else{var n={data:null,msg:"未查询到该数据"};t.fail(n)}}catch(e){n={data:e,msg:"执行错误"},t.fail(n)}},localStorageDel:function(e){var t={key:"",success:function(){},fail:function(){}};"object"==typeof e&&"string"==typeof e.key&&(t.key=e.key),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail);try{localStorage.removeItem(t.key),t.success()}catch(e){var o={data:e,msg:"执行错误"};t.fail(o)}},sessionStorageSet:function(e){var t={key:"",data:"",success:function(){},fail:function(){}};"object"==typeof e&&"string"==typeof e.key&&(t.key=e.key),"object"==typeof e&&void 0!==e.data&&("object"==typeof e.data?t.data=JSON.stringify(e.data):"string"==typeof e.data&&(t.data=e.data)),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail);try{sessionStorage.setItem(t.key,t.data),t.success()}catch(e){t.fail()}},sessionStorageGet:function(e){var t={key:"",success:function(){},fail:function(){}};"object"==typeof e&&"string"==typeof e.key&&(t.key=e.key),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail);try{var o=sessionStorage.getItem(t.key);if(o)doui.strToJson({str:o,success:function(e){t.success(e)},fail:function(){t.success(o)}});else{var n={data:null,msg:"未查询到该数据"};t.fail(n)}}catch(e){n={data:e,msg:"执行错误"},t.fail(n)}},sessionStorageDel:function(e){var t={key:"",success:function(){},fail:function(){}};"object"==typeof e&&"string"==typeof e.key&&(t.key=e.key),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail);try{sessionStorage.removeItem(t.key),t.success()}catch(e){var o={data:e,msg:"执行错误"};t.fail(o)}},pageToUrl:function(e){var t={url:"",type:"href",data:null};"object"==typeof e&&"string"==typeof e.url&&(t.url=e.url),"object"==typeof e&&"string"==typeof e.type&&(t.type=e.type),"object"==typeof e&&"object"==typeof e.data&&(t.data=e.data);var o="";if(t.data){for(var n in o="?",t.data)"object"==typeof t.data[n]&&(t.data[n]=JSON.stringify(t.data[n])),o+=n+"="+encodeURIComponent(t.data[n])+"&";o=o.substring(0,o.length-1)}"href"==t.type?window.location.href=t.url+o:"replace"==t.type?window.location.replace(t.url+o):"open"==t.type&&window.open(t.url+o)},timestampToDate:function(e){var t={timestamp:"",symbol:"/",success:function(){}};"object"==typeof e&&void 0!==e.timestamp&&(t.timestamp=parseInt(e.timestamp)),"object"==typeof e&&"string"==typeof e.symbol&&(t.symbol=e.symbol),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success);try{var o=parseFloat(t.timestamp),n=new Date(o),i=n.getFullYear(),s=n.getMonth()+1;s<10&&(s="0"+s);var r=n.getDate();r<10&&(r="0"+r);var a=n.getHours();a<10&&(a="0"+a);var c=n.getMinutes();c<10&&(c="0"+c);var l=n.getSeconds(),f=i+t.symbol+s+t.symbol+r+" "+a+":"+c+":"+l;t.success(f)}catch(e){console.log("doui.timestampToDate():转换失败")}},numRandom:function(e){var t={min:0,max:9,decimals:0,success:function(){}};"object"==typeof e&&void 0!==e.min&&(t.min=parseInt(e.min)),"object"==typeof e&&void 0!==e.max&&(t.max=parseInt(e.max)),"object"==typeof e&&void 0!==e.decimals&&(t.decimals=parseInt(e.decimals)),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success);var o=0,n=0;t.min<t.max?(o=t.min,n=t.max):(o=t.max,n=t.min);var i="1";if(t.decimals>0){for(var s=0;s<t.decimals;s++)o+="0",n+="0",i+="0";o=parseInt(o),n=parseInt(n)}var r=Math.floor(Math.random()*(n-o+1)+o);t.decimals>0&&(r/=i=parseInt(i)),t.success(r)},strRandom:function(e){var t={case:"",length:8,success:function(){}};"object"==typeof e&&"string"==typeof e.case&&(t.case=e.case),"object"==typeof e&&void 0!==e.length&&(t.length=parseInt(e.length)),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success);for(var o="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n="",i=0;i<t.length;i++){var s=Math.round(Math.random()*(o.length-1));n+=o.charAt(s)}"capital"==t.case?n=n.toUpperCase():"small"==t.case&&(n=n.toLowerCase()),t.success(n)},strToJson:function(e){var t={str:"",success:function(){},fail:function(){}};"object"==typeof e&&"string"==typeof e.str&&(t.str=e.str),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail);try{var o=JSON.parse(t.str);"object"==typeof o?t.success(o):t.fail(t.str)}catch(e){t.fail(t.str)}},jsonToHtml:function(e){var t={str:"",blankSpace:4,success:function(){},fail:function(){}};"object"==typeof e&&void 0!==e.str&&(t.str=e.str),"object"==typeof e&&void 0!==e.blankSpace&&(t.blankSpace=parseInt(e.blankSpace)),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail);try{var o="";"string"==typeof t.str?(o=JSON.parse(t.str),o=JSON.stringify(o,null,t.blankSpace)):o=JSON.stringify(t.str,null,t.blankSpace);var n=o.replace(/\n/g,"<br>").replace(/\s/g," ");t.success(n)}catch(e){console.log("doui.jsonToHtml():参数不是Json格式"),o="不是Json格式",t.fail(o)}},Base64:function(e){var t={type:"",str:"",success:function(){}};"object"==typeof e&&"string"==typeof e.type&&(t.type=e.type),"object"==typeof e&&"string"==typeof e.str&&(t.str=e.str),"object"==typeof e&&void 0!==e.file&&(t.file=e.file),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success);var o={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){var t,n,i,s,r,a,c,l="",f=0;for(e=o._utf8_encode(e);f<e.length;)s=(t=e.charCodeAt(f++))>>2,r=(3&t)<<4|(n=e.charCodeAt(f++))>>4,a=(15&n)<<2|(i=e.charCodeAt(f++))>>6,c=63&i,isNaN(n)?a=c=64:isNaN(i)&&(c=64),l=l+this._keyStr.charAt(s)+this._keyStr.charAt(r)+this._keyStr.charAt(a)+this._keyStr.charAt(c);return l},decode:function(e){var t,n,i,s,r,a,c="",l=0;for(e=e.replace(/[^A-Za-z0-9+/=]/g,"");l<e.length;)t=this._keyStr.indexOf(e.charAt(l++))<<2|(s=this._keyStr.indexOf(e.charAt(l++)))>>4,n=(15&s)<<4|(r=this._keyStr.indexOf(e.charAt(l++)))>>2,i=(3&r)<<6|(a=this._keyStr.indexOf(e.charAt(l++))),c+=String.fromCharCode(t),64!=r&&(c+=String.fromCharCode(n)),64!=a&&(c+=String.fromCharCode(i));return o._utf8_decode(c)},_utf8_encode:function(e){e=e.replace(/rn/g,"n");for(var t="",o=0;o<e.length;o++){var n=e.charCodeAt(o);n<128?t+=String.fromCharCode(n):n>127&&n<2048?(t+=String.fromCharCode(n>>6|192),t+=String.fromCharCode(63&n|128)):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128),t+=String.fromCharCode(63&n|128))}return t},_utf8_decode:function(e){for(var t,o,n="",i=0,s=0;i<e.length;)(t=e.charCodeAt(i))<128?(n+=String.fromCharCode(t),i++):t>191&&t<224?(o=e.charCodeAt(i+1),n+=String.fromCharCode((31&t)<<6|63&o),i+=2):(o=e.charCodeAt(i+1),s=e.charCodeAt(i+2),n+=String.fromCharCode((15&t)<<12|(63&o)<<6|63&s),i+=3);return n}};if("en"==t.type){var n=o.encode(t.str);t.success(n)}else"de"==t.type&&(n=o.decode(t.str),t.success(n))},Aes:function(e){var t={type:"",str:"",key:"warningiscaution",iv:"",success:function(){}};"object"==typeof e&&"string"==typeof e.type&&(t.type=e.type),"object"==typeof e&&"string"==typeof e.str&&(t.str=e.str),"object"==typeof e&&"string"==typeof e.key&&(t.key=e.key),"object"==typeof e&&"string"==typeof e.iv&&(t.iv=e.iv),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success);var o,n,i,s,r,a,c,l,f,u,d,p,h=h||(o=Math,n=Object.create||function(){function e(){}return function(t){var o;return e.prototype=t,o=new e,e.prototype=null,o}}(),s=(i={}).lib={},r=s.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=s.WordArray=r.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,o=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var s=0;s<i;s++){var r=o[s>>>2]>>>24-s%4*8&255;t[n+s>>>2]|=r<<24-(n+s)%4*8}else for(s=0;s<i;s+=4)t[n+s>>>2]=o[s>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,t=this.sigBytes;e[t>>>2]&=4294967295<<32-t%4*8,e.length=o.ceil(t/4)},clone:function(){var e=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t,n=[],i=function(e){e=e;var t=987654321,n=4294967295;return function(){var i=((t=36969*(65535&t)+(t>>16)&n)<<16)+(e=18e3*(65535&e)+(e>>16)&n)&n;return i/=4294967296,(i+=.5)*(o.random()>.5?1:-1)}},s=0;s<e;s+=4){var r=i(4294967296*(t||o.random()));t=987654071*r(),n.push(4294967296*r()|0)}return new a.init(n,e)}}),c=i.enc={},l=c.Hex={stringify:function(e){for(var t=e.words,o=e.sigBytes,n=[],i=0;i<o;i++){var s=t[i>>>2]>>>24-i%4*8&255;n.push((s>>>4).toString(16)),n.push((15&s).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,o=[],n=0;n<t;n+=2)o[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new a.init(o,t/2)}},f=c.Latin1={stringify:function(e){for(var t=e.words,o=e.sigBytes,n=[],i=0;i<o;i++){var s=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(s))}return n.join("")},parse:function(e){for(var t=e.length,o=[],n=0;n<t;n++)o[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new a.init(o,t)}},u=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},d=s.BufferedBlockAlgorithm=r.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(e){var t=this._data,n=t.words,i=t.sigBytes,s=this.blockSize,r=i/(4*s),c=(r=e?o.ceil(r):o.max((0|r)-this._minBufferSize,0))*s,l=o.min(4*c,i);if(c){for(var f=0;f<c;f+=s)this._doProcessBlock(n,f);var u=n.splice(0,c);t.sigBytes-=l}return new a.init(u,l)},clone:function(){var e=r.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),s.Hasher=d.extend({cfg:r.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,o){return new e.init(o).finalize(t)}},_createHmacHelper:function(e){return function(t,o){return new p.HMAC.init(e,o).finalize(t)}}}),p=i.algo={},i);!function(){var e=h,t=e.lib,o=t.Base,n=t.WordArray,i=e.algo,s=i.MD5,r=i.EvpKDF=o.extend({cfg:o.extend({keySize:4,hasher:s,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var o=this.cfg,i=o.hasher.create(),s=n.create(),r=s.words,a=o.keySize,c=o.iterations;r.length<a;){l&&i.update(l);var l=i.update(e).finalize(t);i.reset();for(var f=1;f<c;f++)l=i.finalize(l),i.reset();s.concat(l)}return s.sigBytes=4*a,s}});e.EvpKDF=function(e,t,o){return r.create(o).compute(e,t)}}(),function(){var e=h,t=e.lib.WordArray;e.enc.Base64={stringify:function(e){var t=e.words,o=e.sigBytes,n=this._map;e.clamp();for(var i=[],s=0;s<o;s+=3)for(var r=(t[s>>>2]>>>24-s%4*8&255)<<16|(t[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|t[s+2>>>2]>>>24-(s+2)%4*8&255,a=0;a<4&&s+.75*a<o;a++)i.push(n.charAt(r>>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var o=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s<n.length;s++)i[n.charCodeAt(s)]=s}var r=n.charAt(64);if(r){var a=e.indexOf(r);-1!==a&&(o=a)}return function(e,o,n){for(var i=[],s=0,r=0;r<o;r++)if(r%4){var a=n[e.charCodeAt(r-1)]<<r%4*2,c=n[e.charCodeAt(r)]>>>6-r%4*2;i[s>>>2]|=(a|c)<<24-s%4*8,s++}return t.create(i,s)}(e,o,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),h.lib.Cipher||function(e){var t=h,o=t.lib,n=o.Base,i=o.WordArray,s=o.BufferedBlockAlgorithm,r=t.enc,a=(r.Utf8,r.Base64),c=t.algo.EvpKDF,l=o.Cipher=s.extend({cfg:n.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,o){this.cfg=this.cfg.extend(o),this._xformMode=e,this._key=t,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:g}return function(t){return{encrypt:function(o,n,i){return e(n).encrypt(t,o,n,i)},decrypt:function(o,n,i){return e(n).decrypt(t,o,n,i)}}}}()}),f=(o.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),t.mode={}),u=o.BlockCipherMode=n.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),d=f.CBC=function(){var t=u.extend();function o(t,o,n){var i=this._iv;if(i){var s=i;this._iv=e}else s=this._prevBlock;for(var r=0;r<n;r++)t[o+r]^=s[r]}return t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize;o.call(this,e,t,i),n.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,s=e.slice(t,t+i);n.decryptBlock(e,t),o.call(this,e,t,i),this._prevBlock=s}}),t}(),p=(t.pad={}).Pkcs7={pad:function(e,t){for(var o=4*t,n=o-e.sigBytes%o,s=n<<24|n<<16|n<<8|n,r=[],a=0;a<n;a+=4)r.push(s);var c=i.create(r,n);e.concat(c)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},y=(o.BlockCipher=l.extend({cfg:l.cfg.extend({mode:d,padding:p}),reset:function(){l.reset.call(this);var e=this.cfg,t=e.iv,o=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var n=o.createEncryptor;else n=o.createDecryptor,this._minBufferSize=1;this._mode&&this._mode.__creator==n?this._mode.init(this,t&&t.words):(this._mode=n.call(o,this,t&&t.words),this._mode.__creator=n)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4}),o.CipherParams=n.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),m=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,o=e.salt;if(o)var n=i.create([1398893684,1701076831]).concat(o).concat(t);else n=t;return n.toString(a)},parse:function(e){var t=a.parse(e),o=t.words;if(1398893684==o[0]&&1701076831==o[1]){var n=i.create(o.slice(2,4));o.splice(0,4),t.sigBytes-=16}return y.create({ciphertext:t,salt:n})}},g=o.SerializableCipher=n.extend({cfg:n.extend({format:m}),encrypt:function(e,t,o,n){n=this.cfg.extend(n);var i=e.createEncryptor(o,n),s=i.finalize(t),r=i.cfg;return y.create({ciphertext:s,key:o,iv:r.iv,algorithm:e,mode:r.mode,padding:r.padding,blockSize:e.blockSize,formatter:n.format})},decrypt:function(e,t,o,n){return n=this.cfg.extend(n),t=this._parse(t,n.format),e.createDecryptor(o,n).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(t.kdf={}).OpenSSL={execute:function(e,t,o,n){n||(n=i.random(8));var s=c.create({keySize:t+o}).compute(e,n),r=i.create(s.words.slice(t),4*o);return s.sigBytes=4*t,y.create({key:s,iv:r,salt:n})}},b=o.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:v}),encrypt:function(e,t,o,n){var i=(n=this.cfg.extend(n)).kdf.execute(o,e.keySize,e.ivSize);n.iv=i.iv;var s=g.encrypt.call(this,e,t,i.key,n);return s.mixIn(i),s},decrypt:function(e,t,o,n){n=this.cfg.extend(n),t=this._parse(t,n.format);var i=n.kdf.execute(o,e.keySize,e.ivSize,t.salt);return n.iv=i.iv,g.decrypt.call(this,e,t,i.key,n)}})}(),function(){var e=h,t=e.lib.Base,o=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var s=this._oKey=t.clone(),r=this._iKey=t.clone(),a=s.words,c=r.words,l=0;l<n;l++)a[l]^=1549556828,c[l]^=909522486;s.sigBytes=r.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,o=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(o))}})}(),h.mode.ECB=function(){var e=h.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e}(),h.pad.Iso10126={pad:function(e,t){var o=4*t,n=o-e.sigBytes%o;e.concat(h.lib.WordArray.random(n-1)).concat(h.lib.WordArray.create([n<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},function(){var e=h,t=e.lib.BlockCipher,o=e.algo,n=[],i=[],s=[],r=[],a=[],c=[],l=[],f=[],u=[],d=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var o=0,p=0;for(t=0;t<256;t++){var h=p^p<<1^p<<2^p<<3^p<<4;h=h>>>8^255&h^99,n[o]=h,i[h]=o;var y=e[o],m=e[y],g=e[m],v=257*e[h]^16843008*h;s[o]=v<<24|v>>>8,r[o]=v<<16|v>>>16,a[o]=v<<8|v>>>24,c[o]=v,v=16843009*g^65537*m^257*y^16843008*o,l[h]=v<<24|v>>>8,f[h]=v<<16|v>>>16,u[h]=v<<8|v>>>24,d[h]=v,o?(o=y^e[e[e[g^y]]],p^=e[e[p]]):o=p=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],y=o.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,o=e.sigBytes/4,i=4*((this._nRounds=o+6)+1),s=this._keySchedule=[],r=0;r<i;r++)if(r<o)s[r]=t[r];else{var a=s[r-1];r%o?o>6&&r%o==4&&(a=n[a>>>24]<<24|n[a>>>16&255]<<16|n[a>>>8&255]<<8|n[255&a]):(a=n[(a=a<<8|a>>>24)>>>24]<<24|n[a>>>16&255]<<16|n[a>>>8&255]<<8|n[255&a],a^=p[r/o|0]<<24),s[r]=s[r-o]^a}for(var c=this._invKeySchedule=[],h=0;h<i;h++)r=i-h,a=h%4?s[r]:s[r-4],c[h]=h<4||r<=4?a:l[n[a>>>24]]^f[n[a>>>16&255]]^u[n[a>>>8&255]]^d[n[255&a]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,r,a,c,n)},decryptBlock:function(e,t){var o=e[t+1];e[t+1]=e[t+3],e[t+3]=o,this._doCryptBlock(e,t,this._invKeySchedule,l,f,u,d,i),o=e[t+1],e[t+1]=e[t+3],e[t+3]=o},_doCryptBlock:function(e,t,o,n,i,s,r,a){for(var c=this._nRounds,l=e[t]^o[0],f=e[t+1]^o[1],u=e[t+2]^o[2],d=e[t+3]^o[3],p=4,h=1;h<c;h++){var y=n[l>>>24]^i[f>>>16&255]^s[u>>>8&255]^r[255&d]^o[p++],m=n[f>>>24]^i[u>>>16&255]^s[d>>>8&255]^r[255&l]^o[p++],g=n[u>>>24]^i[d>>>16&255]^s[l>>>8&255]^r[255&f]^o[p++],v=n[d>>>24]^i[l>>>16&255]^s[f>>>8&255]^r[255&u]^o[p++];l=y,f=m,u=g,d=v}y=(a[l>>>24]<<24|a[f>>>16&255]<<16|a[u>>>8&255]<<8|a[255&d])^o[p++],m=(a[f>>>24]<<24|a[u>>>16&255]<<16|a[d>>>8&255]<<8|a[255&l])^o[p++],g=(a[u>>>24]<<24|a[d>>>16&255]<<16|a[l>>>8&255]<<8|a[255&f])^o[p++],v=(a[d>>>24]<<24|a[l>>>16&255]<<16|a[f>>>8&255]<<8|a[255&u])^o[p++],e[t]=y,e[t+1]=m,e[t+2]=g,e[t+3]=v},keySize:8});e.AES=t._createHelper(y)}(),function(){var e=h,t=e.lib.WordArray,o=e.enc;function n(e){return e<<8&4278255360|e>>>8&16711935}o.Utf16=o.Utf16BE={stringify:function(e){for(var t=e.words,o=e.sigBytes,n=[],i=0;i<o;i+=2){var s=t[i>>>2]>>>16-i%4*8&65535;n.push(String.fromCharCode(s))}return n.join("")},parse:function(e){for(var o=e.length,n=[],i=0;i<o;i++)n[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(n,2*o)}},o.Utf16LE={stringify:function(e){for(var t=e.words,o=e.sigBytes,i=[],s=0;s<o;s+=2){var r=n(t[s>>>2]>>>16-s%4*8&65535);i.push(String.fromCharCode(r))}return i.join("")},parse:function(e){for(var o=e.length,i=[],s=0;s<o;s++)i[s>>>1]|=n(e.charCodeAt(s)<<16-s%2*16);return t.create(i,2*o)}}}();var y=h.enc.Utf8.parse(t.key),m={mode:h.mode.ECB,padding:h.pad.Pkcs7};if(t.iv.length>0&&(m={iv:h.enc.Utf8.parse(t.iv),mode:h.mode.CBC,padding:h.pad.Pkcs7}),"en"==t.type){var g=h.enc.Utf8.parse(t.str),v=h.AES.encrypt(g,y,m).toString();t.success(v)}else if("de"==t.type){var b=h.AES.decrypt(t.str,y,m);v=h.enc.Utf8.stringify(b).toString(),t.success(v)}},MD5:function(e){var t={str:"",file:null,case:"capital",success:function(){},fail:function(){}};if("object"==typeof e&&"string"==typeof e.str&&(t.str=e.str),"object"==typeof e&&void 0!==e.file&&(t.file=e.file),"object"==typeof e&&"string"==typeof e.case&&(t.case=e.case),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail),function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var t;try{t=window}catch(e){t=self}t.SparkMD5=e()}}(function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function o(e,t){var o=e[0],n=e[1],i=e[2],s=e[3];n=((n+=((i=((i+=((s=((s+=((o=((o+=(n&i|~n&s)+t[0]-680876936|0)<<7|o>>>25)+n|0)&n|~o&i)+t[1]-389564586|0)<<12|s>>>20)+o|0)&o|~s&n)+t[2]+606105819|0)<<17|i>>>15)+s|0)&s|~i&o)+t[3]-1044525330|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((s=((s+=((o=((o+=(n&i|~n&s)+t[4]-176418897|0)<<7|o>>>25)+n|0)&n|~o&i)+t[5]+1200080426|0)<<12|s>>>20)+o|0)&o|~s&n)+t[6]-1473231341|0)<<17|i>>>15)+s|0)&s|~i&o)+t[7]-45705983|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((s=((s+=((o=((o+=(n&i|~n&s)+t[8]+1770035416|0)<<7|o>>>25)+n|0)&n|~o&i)+t[9]-1958414417|0)<<12|s>>>20)+o|0)&o|~s&n)+t[10]-42063|0)<<17|i>>>15)+s|0)&s|~i&o)+t[11]-1990404162|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((s=((s+=((o=((o+=(n&i|~n&s)+t[12]+1804603682|0)<<7|o>>>25)+n|0)&n|~o&i)+t[13]-40341101|0)<<12|s>>>20)+o|0)&o|~s&n)+t[14]-1502002290|0)<<17|i>>>15)+s|0)&s|~i&o)+t[15]+1236535329|0)<<22|n>>>10)+i|0,n=((n+=((i=((i+=((s=((s+=((o=((o+=(n&s|i&~s)+t[1]-165796510|0)<<5|o>>>27)+n|0)&i|n&~i)+t[6]-1069501632|0)<<9|s>>>23)+o|0)&n|o&~n)+t[11]+643717713|0)<<14|i>>>18)+s|0)&o|s&~o)+t[0]-373897302|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((s=((s+=((o=((o+=(n&s|i&~s)+t[5]-701558691|0)<<5|o>>>27)+n|0)&i|n&~i)+t[10]+38016083|0)<<9|s>>>23)+o|0)&n|o&~n)+t[15]-660478335|0)<<14|i>>>18)+s|0)&o|s&~o)+t[4]-405537848|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((s=((s+=((o=((o+=(n&s|i&~s)+t[9]+568446438|0)<<5|o>>>27)+n|0)&i|n&~i)+t[14]-1019803690|0)<<9|s>>>23)+o|0)&n|o&~n)+t[3]-187363961|0)<<14|i>>>18)+s|0)&o|s&~o)+t[8]+1163531501|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((s=((s+=((o=((o+=(n&s|i&~s)+t[13]-1444681467|0)<<5|o>>>27)+n|0)&i|n&~i)+t[2]-51403784|0)<<9|s>>>23)+o|0)&n|o&~n)+t[7]+1735328473|0)<<14|i>>>18)+s|0)&o|s&~o)+t[12]-1926607734|0)<<20|n>>>12)+i|0,n=((n+=((i=((i+=((s=((s+=((o=((o+=(n^i^s)+t[5]-378558|0)<<4|o>>>28)+n|0)^n^i)+t[8]-2022574463|0)<<11|s>>>21)+o|0)^o^n)+t[11]+1839030562|0)<<16|i>>>16)+s|0)^s^o)+t[14]-35309556|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((s=((s+=((o=((o+=(n^i^s)+t[1]-1530992060|0)<<4|o>>>28)+n|0)^n^i)+t[4]+1272893353|0)<<11|s>>>21)+o|0)^o^n)+t[7]-155497632|0)<<16|i>>>16)+s|0)^s^o)+t[10]-1094730640|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((s=((s+=((o=((o+=(n^i^s)+t[13]+681279174|0)<<4|o>>>28)+n|0)^n^i)+t[0]-358537222|0)<<11|s>>>21)+o|0)^o^n)+t[3]-722521979|0)<<16|i>>>16)+s|0)^s^o)+t[6]+76029189|0)<<23|n>>>9)+i|0,n=((n+=((i=((i+=((s=((s+=((o=((o+=(n^i^s)+t[9]-640364487|0)<<4|o>>>28)+n|0)^n^i)+t[12]-421815835|0)<<11|s>>>21)+o|0)^o^n)+t[15]+530742520|0)<<16|i>>>16)+s|0)^s^o)+t[2]-995338651|0)<<23|n>>>9)+i|0,n=((n+=((s=((s+=(n^((o=((o+=(i^(n|~s))+t[0]-198630844|0)<<6|o>>>26)+n|0)|~i))+t[7]+1126891415|0)<<10|s>>>22)+o|0)^((i=((i+=(o^(s|~n))+t[14]-1416354905|0)<<15|i>>>17)+s|0)|~o))+t[5]-57434055|0)<<21|n>>>11)+i|0,n=((n+=((s=((s+=(n^((o=((o+=(i^(n|~s))+t[12]+1700485571|0)<<6|o>>>26)+n|0)|~i))+t[3]-1894986606|0)<<10|s>>>22)+o|0)^((i=((i+=(o^(s|~n))+t[10]-1051523|0)<<15|i>>>17)+s|0)|~o))+t[1]-2054922799|0)<<21|n>>>11)+i|0,n=((n+=((s=((s+=(n^((o=((o+=(i^(n|~s))+t[8]+1873313359|0)<<6|o>>>26)+n|0)|~i))+t[15]-30611744|0)<<10|s>>>22)+o|0)^((i=((i+=(o^(s|~n))+t[6]-1560198380|0)<<15|i>>>17)+s|0)|~o))+t[13]+1309151649|0)<<21|n>>>11)+i|0,n=((n+=((s=((s+=(n^((o=((o+=(i^(n|~s))+t[4]-145523070|0)<<6|o>>>26)+n|0)|~i))+t[11]-1120210379|0)<<10|s>>>22)+o|0)^((i=((i+=(o^(s|~n))+t[2]+718787259|0)<<15|i>>>17)+s|0)|~o))+t[9]-343485551|0)<<21|n>>>11)+i|0,e[0]=o+e[0]|0,e[1]=n+e[1]|0,e[2]=i+e[2]|0,e[3]=s+e[3]|0}function n(e){var t,o=[];for(t=0;t<64;t+=4)o[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return o}function i(e){var t,o=[];for(t=0;t<64;t+=4)o[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return o}function s(e){var t,i,s,r,a,c,l=e.length,f=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)o(f,n(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<i;t+=1)s[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(s[t>>2]|=128<<(t%4<<3),t>55)for(o(f,s),t=0;t<16;t+=1)s[t]=0;return r=(r=8*l).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(r[2],16),c=parseInt(r[1],16)||0,s[14]=a,s[15]=c,o(f,s),f}function r(e){var o,n="";for(o=0;o<4;o+=1)n+=t[e>>8*o+4&15]+t[e>>8*o&15];return n}function a(e){var t;for(t=0;t<e.length;t+=1)e[t]=r(e[t]);return e.join("")}function c(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e){var t,o=[],n=e.length;for(t=0;t<n-1;t+=2)o.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,o)}function f(){this.reset()}return a(s("hello")),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(o,n){var i,s,r,a,c=this.byteLength,l=t(o,c),f=c;return n!==e&&(f=t(n,c)),l>f?new ArrayBuffer(0):(i=f-l,s=new ArrayBuffer(i),r=new Uint8Array(s),a=new Uint8Array(this,l,i),r.set(a),s)}}(),f.prototype.append=function(e){return this.appendBinary(c(e)),this},f.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)o(this._hash,n(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},f.prototype.end=function(e){var t,o,n=this._buff,i=n.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)s[t>>2]|=n.charCodeAt(t)<<(t%4<<3);return this._finish(s,i),o=a(this._hash),e&&(o=l(o)),this.reset(),o},f.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},f.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},f.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},f.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},f.prototype._finish=function(e,t){var n,i,s,r=t;if(e[r>>2]|=128<<(r%4<<3),r>55)for(o(this._hash,e),r=0;r<16;r+=1)e[r]=0;n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(n[2],16),s=parseInt(n[1],16)||0,e[14]=i,e[15]=s,o(this._hash,e)},f.hash=function(e,t){return f.hashBinary(c(e),t)},f.hashBinary=function(e,t){var o=a(s(e));return t?l(o):o},f.ArrayBuffer=function(){this.reset()},f.ArrayBuffer.prototype.append=function(e){var t,n,s,r,a,c=(n=this._buff.buffer,s=e,r=!0,(a=new Uint8Array(n.byteLength+s.byteLength)).set(new Uint8Array(n)),a.set(new Uint8Array(s),n.byteLength),r?a:a.buffer),l=c.length;for(this._length+=e.byteLength,t=64;t<=l;t+=64)o(this._hash,i(c.subarray(t-64,t)));return this._buff=t-64<l?new Uint8Array(c.buffer.slice(t-64)):new Uint8Array(0),this},f.ArrayBuffer.prototype.end=function(e){var t,o,n=this._buff,i=n.length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)s[t>>2]|=n[t]<<(t%4<<3);return this._finish(s,i),o=a(this._hash),e&&(o=l(o)),this.reset(),o},f.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},f.ArrayBuffer.prototype.getState=function(){var e,t=f.prototype.getState.call(this);return t.buff=(e=t.buff,String.fromCharCode.apply(null,new Uint8Array(e))),t},f.ArrayBuffer.prototype.setState=function(e){return e.buff=function(e,t){var o,n=e.length,i=new ArrayBuffer(n),s=new Uint8Array(i);for(o=0;o<n;o+=1)s[o]=e.charCodeAt(o);return t?s:i}(e.buff,!0),f.prototype.setState.call(this,e)},f.ArrayBuffer.prototype.destroy=f.prototype.destroy,f.ArrayBuffer.prototype._finish=f.prototype._finish,f.ArrayBuffer.hash=function(e,t){var n=a(function(e){var t,n,s,r,a,c,l=e.length,f=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=l;t+=64)o(f,i(e.subarray(t-64,t)));for(n=(e=t-64<l?e.subarray(t-64):new Uint8Array(0)).length,s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<n;t+=1)s[t>>2]|=e[t]<<(t%4<<3);if(s[t>>2]|=128<<(t%4<<3),t>55)for(o(f,s),t=0;t<16;t+=1)s[t]=0;return r=(r=8*l).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(r[2],16),c=parseInt(r[1],16)||0,s[14]=a,s[15]=c,o(f,s),f}(new Uint8Array(e)));return t?l(n):n},f}),t.str.length>0)try{var o=SparkMD5.hash(t.str);"capital"==t.case?o=o.toUpperCase():"small"==t.case&&(o=o.toLowerCase()),t.success(o)}catch(e){o={data:e,msg:"待加密参数错误"},t.fail(o)}else if(null!=t.file){var n=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,i=t.file,s=2097152,r=Math.ceil(i.size/s),a=0,c=new SparkMD5.ArrayBuffer,l=new FileReader;function f(){var e=a*s,t=e+s>=i.size?i.size:e+s;l.readAsArrayBuffer(n.call(i,e,t))}l.onerror=function(e){var o={data:e,msg:"文件读取错误"};t.fail(o)},l.onload=function(e){if(c.append(e.target.result),++a<r)f();else{var o=c.end();"capital"==t.case?o=o.toUpperCase():"small"==t.case&&(o=o.toLowerCase()),t.success(o)}},f()}},AjaxList:[],AjaxRepeat:function(e,t){var o={url:"",over:!1};o.url=t;var n=!1;if("add"==e){for(var i=null,s=0;s<doui.AjaxList.length;s++)if(o.url==doui.AjaxList[s].url){i=s;break}null==i?(doui.AjaxList.push(o),n=!0):1==doui.AjaxList[i].over?(doui.AjaxList[i].over=!1,n=!0):n=!1}else if("over"==e)for(s=0;s<doui.AjaxList.length;s++)if(t==doui.AjaxList[s].url){doui.AjaxList[s].over=!0,n=!0;break}return n},signData:function(e){var t={data:{},salt:"thisWarning",success:function(){},fail:function(){}};"object"==typeof e&&"object"==typeof e.data&&(t.data=e.data),"object"==typeof e&&"string"==typeof e.salt&&(t.salt=e.salt),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail),t.data.timestamp=(new Date).getTime();var o=new Array;for(var n in t.data){var i=t.data[n];"object"==typeof i&&(i=JSON.stringify(i)),o.push(i)}o.sort();var s=o.join("###")+"###"+t.salt;doui.MD5({str:s,success:function(e){t.data.sign=e,t.success(t.data)},fail:function(e){t.fail(e)}})},request:function(e){var t={async:!0,type:"",url:"",data:{},signCreat:!0,timeout:18e4,requestHeader:{},withCredentials:!0,greenChannel:!1,success:function(){},fail:function(){}};if("object"==typeof e&&"boolean"==typeof e.async&&(t.async=e.async),"object"==typeof e&&"string"==typeof e.type&&(t.type=e.type.toUpperCase()),"object"==typeof e&&"string"==typeof e.url&&(t.url=e.url),"object"==typeof e&&"object"==typeof e.data&&(t.data=e.data),"object"==typeof e&&"boolean"==typeof e.signCreat&&(t.signCreat=e.signCreat),"object"==typeof e&&void 0!==e.timeout&&(t.timeout=parseInt(e.timeout)),"object"==typeof e&&"object"==typeof e.requestHeader&&(t.requestHeader=e.requestHeader),"object"==typeof e&&"boolean"==typeof e.withCredentials&&(t.withCredentials=e.withCredentials),"object"==typeof e&&"boolean"==typeof e.greenChannel&&(t.greenChannel=e.greenChannel),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail),1==t.greenChannel||doui.AjaxRepeat("add",t.url))if(1==t.signCreat&&doui.signData({data:t.data,success:function(e){t.data=e}}),"JSONP"==t.type){var o="douiJsonp_";doui.strRandom({length:8,success:function(e){o+=e,t.data.callback=o}});var n=t.url+"?";for(var i in t.data)n+=i+"="+encodeURIComponent(t.data[i])+"&";n=n.substring(0,n.length-1);var s=document.createElement("script");s.type="text/javascript",s.src=n,document.getElementsByTagName("head")[0].appendChild(s);var r=setTimeout(function(){s&&s.parentNode.removeChild(s),doui.AjaxRepeat("over",t.url),t.fail({code:400,data:{},msg:"请求超时"})},t.timeout);s.onerror=function(){s&&s.parentNode.removeChild(s),null!=r&&clearTimeout(r),doui.AjaxRepeat("over",t.url),t.fail({code:404,data:{},msg:"无法链接,请检查网络"})},window[o]=function(e){var o=e;if(s&&s.parentNode.removeChild(s),null!=r&&clearTimeout(r),doui.AjaxRepeat("over",t.url),"object"==typeof o){var n=o;t.success(n)}else"string"==typeof o?doui.strToJson({str:o,success:function(e){var o=e;t.success(o)},fail:function(){var e={code:200,data:o,msg:"返回数据不是json格式"};t.fail(e)}}):(n={code:200,data:o,msg:"返回数据格式识别异常"},t.fail(n))}}else{var a=null;a=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),r=setTimeout(function(){a.abort(),doui.AjaxRepeat("over",t.url),t.fail({code:400,data:{},msg:"请求超时"})},t.timeout);var c="";if("GET"==t.type){for(var i in n=t.url+"?",t.data)n+=i+"="+encodeURIComponent(t.data[i])+"&";c=n=n.substring(0,n.length-1)}else"POST"==t.type&&(c=t.url);for(var l in a.open(t.type,c,t.async),"POST"==t.type&&a.setRequestHeader("Content-type","application/json"),t.requestHeader)a.setRequestHeader(l,t.requestHeader[l]);a.withCredentials=t.withCredentials,a.onreadystatechange=function(){if(4==a.readyState&&200==a.status){null!=r&&clearTimeout(r),doui.AjaxRepeat("over",t.url);var e=null;a.responseText?e=a.responseText:a.responseXML&&(e=a.responseXML),doui.strToJson({str:e,success:function(e){var o=e;t.success(o)},fail:function(){var o={code:200,data:e,msg:"返回数据不是json格式"};t.fail(o)}})}else if(4==a.readyState){null!=r&&clearTimeout(r),doui.AjaxRepeat("over",t.url);var o={code:404,data:a.responseText,msg:"无法链接,请检查网络"};t.fail(o)}},"GET"==t.type?a.send():"POST"==t.type&&a.send(JSON.stringify(t.data))}},upload:function(e){var t={async:!0,url:"",data:{},maxSize:100,withCredentials:!0,greenChannel:!1,progress:function(){},success:function(){},fail:function(){}};if("object"==typeof e&&"boolean"==typeof e.async&&(t.async=e.async),"object"==typeof e&&"string"==typeof e.url&&(t.url=e.url),"object"==typeof e&&"object"==typeof e.data&&(t.data=e.data),"object"==typeof e&&void 0!==e.maxSize&&(t.maxSize=parseInt(e.maxSize)),"object"==typeof e&&"boolean"==typeof e.withCredentials&&(t.withCredentials=e.withCredentials),"object"==typeof e&&"boolean"==typeof e.greenChannel&&(t.greenChannel=e.greenChannel),"object"==typeof e&&"function"==typeof e.progress&&(t.progress=e.progress),"object"==typeof e&&"function"==typeof e.success&&(t.success=e.success),"object"==typeof e&&"function"==typeof e.fail&&(t.fail=e.fail),1==t.greenChannel||doui.AjaxRepeat("add",t.url)){var o=new FormData;for(var n in t.data)o.append(n,t.data[n]);var i=null;i=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");var s={total:0,loaded:0,percentage:0};i.upload.onprogress=function(e){e.lengthComputable&&(s.total=e.total,s.loaded=e.loaded,s.percentage=Math.round(1e3*parseFloat(e.loaded/e.total))/10,t.progress(s))},i.open("POST",t.url,t.async),i.withCredentials=t.withCredentials,i.onreadystatechange=function(){if(4==i.readyState&&200==i.status){var e=null;i.responseText?e=i.responseText:i.responseXML&&(e=i.responseXML),doui.strToJson({str:e,success:function(e){var o=e;t.success(o)},fail:function(){var o={code:200,data:e,msg:"返回数据不是json格式"};t.fail(o)}})}else if(4==i.readyState){var o={code:404,data:i.responseText,msg:"无法链接,请检查网络"};t.fail(o)}},i.send(o)}else t.fail({code:400,data:{},msg:"上一次上传工作还未完成"})}},doui.windowReady({success:function(){for(var e=document.body.childNodes,t=0;t<e.length;t++)if("div"==e[t].localName){e[t].setAttribute("ontouchstart","");break}doui.sizeSet()}}),window.onresize=function(){doui.sizeSet()},doui.metaAdd();
|