You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2 lines
132 KiB

if(!page.ushio){throw new Error("ushio::Ushio quitted!")}(function(e,t,n){"use strict";if(typeof window!=="undefined"&&typeof define==="function"&&define.amd){define(n)}else if(typeof module!=="undefined"&&module.exports){module.exports=n()}else if(t.exports){t.exports=n()}else{t[e]=n()}})("Fingerprint2",this,(function(){"use strict";if(typeof Array.isArray==="undefined"){Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"}}var e=function(e,t){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535];t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var n=[0,0,0,0];n[3]+=e[3]+t[3];n[2]+=n[3]>>>16;n[3]&=65535;n[2]+=e[2]+t[2];n[1]+=n[2]>>>16;n[2]&=65535;n[1]+=e[1]+t[1];n[0]+=n[1]>>>16;n[1]&=65535;n[0]+=e[0]+t[0];n[0]&=65535;return[n[0]<<16|n[1],n[2]<<16|n[3]]};var t=function(e,t){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535];t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var n=[0,0,0,0];n[3]+=e[3]*t[3];n[2]+=n[3]>>>16;n[3]&=65535;n[2]+=e[2]*t[3];n[1]+=n[2]>>>16;n[2]&=65535;n[2]+=e[3]*t[2];n[1]+=n[2]>>>16;n[2]&=65535;n[1]+=e[1]*t[3];n[0]+=n[1]>>>16;n[1]&=65535;n[1]+=e[2]*t[2];n[0]+=n[1]>>>16;n[1]&=65535;n[1]+=e[3]*t[1];n[0]+=n[1]>>>16;n[1]&=65535;n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0];n[0]&=65535;return[n[0]<<16|n[1],n[2]<<16|n[3]]};var n=function(e,t){t%=64;if(t===32){return[e[1],e[0]]}else if(t<32){return[e[0]<<t|e[1]>>>32-t,e[1]<<t|e[0]>>>32-t]}else{t-=32;return[e[1]<<t|e[0]>>>32-t,e[0]<<t|e[1]>>>32-t]}};var i=function(e,t){t%=64;if(t===0){return e}else if(t<32){return[e[0]<<t|e[1]>>>32-t,e[1]<<t]}else{return[e[1]<<t-32,0]}};var a=function(e,t){return[e[0]^t[0],e[1]^t[1]]};var o=function(e){e=a(e,[0,e[0]>>>1]);e=t(e,[4283543511,3981806797]);e=a(e,[0,e[0]>>>1]);e=t(e,[3301882366,444984403]);e=a(e,[0,e[0]>>>1]);return e};var r=function(r,s){r=r||"";s=s||0;var l=r.length%16;var u=r.length-l;var c=[0,s];var d=[0,s];var p=[0,0];var f=[0,0];var h=[2277735313,289559509];var g=[1291169091,658871167];for(var m=0;m<u;m=m+16){p=[r.charCodeAt(m+4)&255|(r.charCodeAt(m+5)&255)<<8|(r.charCodeAt(m+6)&255)<<16|(r.charCodeAt(m+7)&255)<<24,r.charCodeAt(m)&255|(r.charCodeAt(m+1)&255)<<8|(r.charCodeAt(m+2)&255)<<16|(r.charCodeAt(m+3)&255)<<24];f=[r.charCodeAt(m+12)&255|(r.charCodeAt(m+13)&255)<<8|(r.charCodeAt(m+14)&255)<<16|(r.charCodeAt(m+15)&255)<<24,r.charCodeAt(m+8)&255|(r.charCodeAt(m+9)&255)<<8|(r.charCodeAt(m+10)&255)<<16|(r.charCodeAt(m+11)&255)<<24];p=t(p,h);p=n(p,31);p=t(p,g);c=a(c,p);c=n(c,27);c=e(c,d);c=e(t(c,[0,5]),[0,1390208809]);f=t(f,g);f=n(f,33);f=t(f,h);d=a(d,f);d=n(d,31);d=e(d,c);d=e(t(d,[0,5]),[0,944331445])}p=[0,0];f=[0,0];switch(l){case 15:f=a(f,i([0,r.charCodeAt(m+14)],48));case 14:f=a(f,i([0,r.charCodeAt(m+13)],40));case 13:f=a(f,i([0,r.charCodeAt(m+12)],32));case 12:f=a(f,i([0,r.charCodeAt(m+11)],24));case 11:f=a(f,i([0,r.charCodeAt(m+10)],16));case 10:f=a(f,i([0,r.charCodeAt(m+9)],8));case 9:f=a(f,[0,r.charCodeAt(m+8)]);f=t(f,g);f=n(f,33);f=t(f,h);d=a(d,f);case 8:p=a(p,i([0,r.charCodeAt(m+7)],56));case 7:p=a(p,i([0,r.charCodeAt(m+6)],48));case 6:p=a(p,i([0,r.charCodeAt(m+5)],40));case 5:p=a(p,i([0,r.charCodeAt(m+4)],32));case 4:p=a(p,i([0,r.charCodeAt(m+3)],24));case 3:p=a(p,i([0,r.charCodeAt(m+2)],16));case 2:p=a(p,i([0,r.charCodeAt(m+1)],8));case 1:p=a(p,[0,r.charCodeAt(m)]);p=t(p,h);p=n(p,31);p=t(p,g);c=a(c,p)}c=a(c,[0,r.length]);d=a(d,[0,r.length]);c=e(c,d);d=e(d,c);c=o(c);d=o(d);c=e(c,d);d=e(d,c);return("00000000"+(c[0]>>>0).toString(16)).slice(-8)+("00000000"+(c[1]>>>0).toString(16)).slice(-8)+("00000000"+(d[0]>>>0).toString(16)).slice(-8)+("00000000"+(d[1]>>>0).toString(16)).slice(-8)};var s={preprocessor:null,audio:{timeout:1e3,excludeIOS11:true},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:false},screen:{detectScreenOrientation:true},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:false},extraComponents:[],excludes:{enumerateDevices:true,pixelRatio:true,doNotTrack:true,fontsFlash:true},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"};var l=function(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach){e.forEach(t)}else if(e.length===+e.length){for(var n=0,i=e.length;n<i;n++){t(e[n],n,e)}}else{for(var a in e){if(e.hasOwnProperty(a)){t(e[a],a,e)}}}};var u=function(e,t){var n=[];if(e==null){return n}if(Array.prototype.map&&e.map===Array.prototype.map){return e.map(t)}l(e,(function(e,i,a){n.push(t(e,i,a))}));return n};var c=function(e,t){if(t==null){return e}var n;var i;for(i in t){n=t[i];if(n!=null&&!Object.prototype.hasOwnProperty.call(e,i)){e[i]=n}}return e};var d=function(e,t){if(!p()){return e(t.NOT_AVAILABLE)}navigator.mediaDevices.enumerateDevices().then((function(t){e(t.map((function(e){return"id="+e.deviceId+";gid="+e.groupId+";"+e.kind+";"+e.label})))}))["catch"]((function(t){e(t)}))};var p=function(){return navigator.mediaDevices&&navigator.mediaDevices.enumerateDevices};var f=function(e,t){var n=t.audio;if(n.excludeIOS11&&navigator.userAgent.match(/OS 11.+Version\/11.+Safari/)){return e(t.EXCLUDED)}var i=window.OfflineAudioContext||window.webkitOfflineAudioContext;if(i==null){return e(t.NOT_AVAILABLE)}var a=new i(1,44100,44100);var o=a.createOscillator();o.type="triangle";o.frequency.setValueAtTime(1e4,a.currentTime);var r=a.createDynamicsCompressor();l([["threshold",-50],["knee",40],["ratio",12],["reduction",-20],["attack",0],["release",.25]],(function(e){if(r[e[0]]!==undefined&&typeof r[e[0]].setValueAtTime==="function"){r[e[0]].setValueAtTime(e[1],a.currentTime)}}));o.connect(r);r.connect(a.destination);o.start(0);a.startRendering();var s=setTimeout((function(){console.warn('Audio fingerprint timed out. Please report bug at https://github.com/Valve/fingerprintjs2 with your user agent: "'+navigator.userAgent+'".');a.oncomplete=function(){};a=null;return e("audioTimeout")}),n.timeout);a.oncomplete=function(t){var n;try{clearTimeout(s);n=t.renderedBuffer.getChannelData(0).slice(4500,5e3).reduce((function(e,t){return e+Math.abs(t)}),0).toString();o.disconnect();r.disconnect()}catch(t){e(t);return}e(n)}};var h=function(e){e(navigator.userAgent)};var g=function(e,t){e(navigator.webdriver==null?t.NOT_AVAILABLE:navigator.webdriver)};var m=function(e,t){e(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||t.NOT_AVAILABLE)};var v=function(e,t){e(window.screen.colorDepth||t.NOT_AVAILABLE)};var y=function(e,t){e(navigator.deviceMemory||t.NOT_AVAILABLE)};var w=function(e,t){e(window.devicePixelRatio||t.NOT_AVAILABLE)};var b=function(e,t){e(T(t))};var T=function(e){var t=[window.screen.width,window.screen.height];if(e.screen.detectScreenOrientation){t.sort().reverse()}return t};var x=function(e,t){e(S(t))};var S=function(e){if(window.screen.availWidth&&window.screen.availHeight){var t=[window.screen.availHeight,window.screen.availWidth];if(e.screen.detectScreenOrientation){t.sort().reverse()}return t}return e.NOT_AVAILABLE};var k=function(e){e((new Date).getTimezoneOffset())};var L=function(e,t){if(window.Intl&&window.Intl.DateTimeFormat){e((new window.Intl.DateTimeFormat).resolvedOptions().timeZone);return}e(t.NOT_AVAILABLE)};var C=function(e,t){e(K(t))};var E=function(e,t){e(Y(t))};var O=function(e,t){e(Z(t))};var M=function(e){e(!!(document.body&&document.body.addBehavior))};var A=function(e){e(!!window.openDatabase)};var B=function(e,t){e(ee(t))};var I=function(e,t){e(te(t))};var _=function(e,t){e(ne(t))};var P=function(e,t){if(pe()){e(ae(t));return}e(t.NOT_AVAILABLE)};var N=function(e,t){if(fe()){e(oe());return}e(t.NOT_AVAILABLE)};var R=function(e){if(fe()){e(re());return}e()};var D=function(e){e(se())};var F=function(e){e(le())};var H=function(e){e(ue())};var z=function(e){e(ce())};var q=function(e){e(de())};var j=function(e,t){if(!ge()){return e("swf object not loaded")}if(!me()){return e("flash not installed")}if(!t.fonts.swfPath){return e("missing options.fonts.swfPath")}ye((function(t){e(t)}),t)};var U=function(e,t){var n=["monospace","sans-serif","serif"];var i=["Andale Mono","Arial","Arial Black","Arial Hebrew","Arial MT","Arial Narrow","Arial Rounded MT Bold","Arial Unicode MS","Bitstream Vera Sans Mono","Book Antiqua","Bookman Old Style","Calibri","Cambria","Cambria Math","Century","Century Gothic","Century Schoolbook","Comic Sans","Comic Sans MS","Consolas","Courier","Courier New","Geneva","Georgia","Helvetica","Helvetica Neue","Impact","Lucida Bright","Lucida Calligraphy","Lucida Console","Lucida Fax","LUCIDA GRANDE","Lucida Handwriting","Lucida Sans","Lucida Sans Typewriter","Lucida Sans Unicode","Microsoft Sans Serif","Monaco","Monotype Corsiva","MS Gothic","MS Outlook","MS PGothic","MS Reference Sans Serif","MS Sans Serif","MS Serif","MYRIAD","MYRIAD PRO","Palatino","Palatino Linotype","Segoe Print","Segoe Script","Segoe UI","Segoe UI Light","Segoe UI Semibold","Segoe UI Symbol","Tahoma","Times","Times New Roman","Times New Roman PS","Trebuchet MS","Verdana","Wingdings","Wingdings 2","Wingdings 3"];if(t.fonts.extendedJsFonts){var a=["Abadi MT Condensed Light","Academy Engraved LET","ADOBE CASLON PRO","Adobe Garamond","ADOBE GARAMOND PRO","Agency FB","Aharoni","Albertus Extra Bold","Albertus Medium","Algerian","Amazone BT","American Typewriter","American Typewriter Condensed","AmerType Md BT","Andalus","Angsana New","AngsanaUPC","Antique Olive","Aparajita","Apple Chancery","Apple Color Emoji","Apple SD Gothic Neo","Arabic Typesetting","ARCHER","ARNO PRO","Arrus BT","Aurora Cn BT","AvantGarde Bk BT","AvantGarde Md BT","AVENIR","Ayuthaya","Bandy","Bangla Sangam MN","Bank Gothic","BankGothic Md BT","Baskerville","Baskerville Old Face","Batang","BatangChe","Bauer Bodoni","Bauhaus 93","Bazooka","Bell MT","Bembo","Benguiat Bk BT","Berlin Sans FB","Berlin Sans FB Demi","Bernard MT Condensed","BernhardFashion BT","BernhardMod BT","Big Caslon","BinnerD","Blackadder ITC","BlairMdITC TT","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni MT","Bodoni MT Black","Bodoni MT Condensed","Bodoni MT Poster Compressed","Bookshelf Symbol 7","Boulder","Bradley Hand","Bradley Hand ITC","Bremen Bd BT","Britannic Bold","Broadway","Browallia New","BrowalliaUPC","Brush Script MT","Californian FB","Calisto MT","Calligrapher","Candara","CaslonOpnface BT","Castellar","Centaur","Cezanne","CG Omega","CG Times","Chalkboard","Chalkboard SE","Chalkduster","Charlesworth","Charter Bd BT","Charter BT","Chaucer","ChelthmITC Bk BT","Chiller","Clarendon","Clarendon Condensed","CloisterBlack BT","Cochin","Colonna MT","Constantia","Cooper Black","Copperplate","Copperplate Gothic","Copperplate Gothic Bold","Copperplate Gothic Light","CopperplGoth Bd BT","Corbel","Cordia New","CordiaUPC","Cornerstone","Coronet","Cuckoo","Curlz MT","DaunPenh","Dauphin","David","DB LCD Temp","DELICIOUS","Denmark","DFKai-SB","Didot","DilleniaUPC","DIN","DokChampa","Dotum","DotumChe","Ebrima","Edwardian Script ITC","Elephant","English 111 Vivace BT","Engravers MT","EngraversGothic BT","Eras Bold ITC","Eras Demi ITC","Eras Light ITC","Eras Medium ITC","EucrosiaUPC","Euphemia","Euphemia UCAS","EUROSTILE","Exotc350 Bd BT","FangSong","Felix Titling","Fixedsys","FONTIN","Footlight MT Light","Forte","FrankRuehl","Fransiscan","Freefrm721 Blk BT","FreesiaUPC","Freestyle Script","French Script MT","FrnkGothITC Bk BT","Fruitger","FRUTIGER","Futura","Futura Bk BT","Futura Lt BT","Futura Md BT","Futura ZBlk BT","FuturaBlack BT","Gabriola","Galliard BT","Gautami","Geeza Pro","Geometr231 BT","Geometr231 Hv BT","Geometr231 Lt BT","GeoSlab 703 Lt BT","GeoSlab 703 XBd BT","Gigi","Gill Sans","Gill Sans MT","Gill Sans MT Condensed","Gill Sans MT Ext Condensed Bold","Gill Sans Ultra Bold","Gill Sans Ultra Bold Condensed","Gisha","Gloucester MT Extra Condensed","GOTHAM","GOTHAM BOLD","Goudy Old Style","Goudy Stout","GoudyHandtooled BT","GoudyOLSt BT","Gujarati Sangam MN","Gulim","GulimChe","Gungsuh","GungsuhChe","Gurmukhi MN","Haettenschweiler","Harlow Solid Italic","Harrington","Heather","Heiti SC","Heiti TC","HELV","Herald","High Tower Text","Hiragino Kaku Gothic ProN","Hiragino Mincho ProN","Hoefler Text","Humanst 521 Cn BT","Humanst521 BT","Humanst521 Lt BT","Imprint MT Shadow","Incised901 Bd BT","Incised901 BT","Incised901 Lt BT","INCONSOLATA","Informal Roman","Informal011 BT","INTERSTATE","IrisUPC","Iskoola Pota","JasmineUPC","Jazz LET","Jenson","Jester","Jokerman","Juice ITC","Kabel Bk BT","Kabel Ult BT","Kailasa","KaiTi","Kalinga","Kannada Sangam MN","Kartika","Kaufmann Bd BT","Kaufmann BT","Khmer UI","KodchiangUPC","Kokila","Korinna BT","Kristen ITC","Krungthep","Kunstler Script","Lao UI","Latha","Leelawadee","Letter Gothic","Levenim MT","LilyUPC","Lithograph","Lithograph Light","Long Island","Lydian BT","Magneto","Maiandra GD","Malayalam Sangam MN","Malgun Gothic","Mangal","Marigold","Marion","Marker Felt","Market","Marlett","Matisse ITC","Matura MT Script Capitals","Meiryo","Meiryo UI","Microsoft Himalaya","Microsoft JhengHei","Microsoft New Tai Lue","Microsoft PhagsPa","Microsoft Tai Le","Microsoft Uighur","Microsoft YaHei","Microsoft Yi Baiti","MingLiU","MingLiU_HKSCS","MingLiU_HKSCS-ExtB","MingLiU-ExtB","Minion","Minion Pro","Miriam","Miriam Fixed","Mistral","Modern","Modern No. 20","Mona Lisa Solid ITC TT","Mongolian Baiti","MONO","MoolBoran","Mrs Eaves","MS LineDraw","MS Mincho","MS PMincho","MS Reference Specialty","MS UI Gothic","MT Extra","MUSEO","MV Boli","Nadeem","Narkisim","NEVIS","News Gothic","News GothicMT","NewsGoth BT","Niagara Engraved","Niagara Solid","Noteworthy","NSimSun","Nyala","OCR A Extended","Old Century","Old English Text MT","Onyx","Onyx BT","OPTIMA","Oriya Sangam MN","OSAKA","OzHandicraft BT","Palace Script MT","Papyrus","Parchment","Party LET","Pegasus","Perpetua","Perpetua Titling MT","PetitaBold","Pickwick","Plantagenet Cherokee","Playbill","PMingLiU","PMingLiU-ExtB","Poor Richard","Poster","PosterBodoni BT","PRINCETOWN LET","Pristina","PTBarnum BT","Pythagoras","Raavi","Rage Italic","Ravie","Ribbon131 Bd BT","Rockwell","Rockwell Condensed","Rockwell Extra Bold","Rod","Roman","Sakkal Majalla","Santa Fe LET","Savoye LET","Sceptre","Script","Script MT Bold","SCRIPTINA","Serifa","Serifa BT","Serifa Th BT","ShelleyVolante BT","Sherwood","Shonar Bangla","Showcard Gothic","Shruti","Signboard","SILKSCREEN","SimHei","Simplified Arabic","Simplified Arabic Fixed","SimSun","SimSun-ExtB","Sinhala Sangam MN","Sketch Rockwell","Skia","Small Fonts","Snap ITC","Snell Roundhand","Socket","Souvenir Lt BT","Staccato222 BT","Steamer","Stencil","Storybook","Styllo","Subway","Swis721 BlkEx BT","Swiss911 XCm BT","Sylfaen","Synchro LET","System","Tamil Sangam MN","Technical","Teletype","Telugu Sangam MN","Tempus Sans ITC","Terminal","Thonburi","Traditional Arabic","Trajan","TRAJAN PRO","Tristan","Tubular","Tunga","Tw Cen MT","Tw Cen MT Condensed","Tw Cen MT Condensed Extra Bold","TypoUpright BT","Unicorn","Univers","Univers CE 55 Medium","Univers Condensed","Utsaah","Vagabond","Vani","Vijaya","Viner Hand ITC","VisualUI","Vivaldi","Vladimir Script","Vrinda","Westminster","WHITNEY","Wide Latin","ZapfEllipt BT","ZapfHumnst BT","ZapfHumnst Dm BT","Zapfino","Zurich BlkEx BT","Zurich Ex BT","ZWAdobeF"];i=i.concat(a)}i=i.concat(t.fonts.userDefinedFonts);i=i.filter((function(e,t){return i.indexOf(e)===t}));var o="mmmmmmmmmmlli";var r="72px";var s=document.getElementsByTagName("body")[0];var l=document.createElement("div");var u=document.createElement("div");var c={};var d={};var p=function(){var e=document.createElement("span");e.style.position="absolute";e.style.left="-9999px";e.style.fontSize=r;e.style.fontStyle="normal";e.style.fontWeight="normal";e.style.letterSpacing="normal";e.style.lineBreak="auto";e.style.lineHeight="normal";e.style.textTransform="none";e.style.textAlign="left";e.style.textDecoration="none";e.style.textShadow="none";e.style.whiteSpace="normal";e.style.wordBreak="normal";e.style.wordSpacing="normal";e.innerHTML=o;return e};var f=function(e,t){var n=p();n.style.fontFamily="'"+e+"',"+t;return n};var h=function(){var e=[];for(var t=0,i=n.length;t<i;t++){var a=p();a.style.fontFamily=n[t];l.appendChild(a);e.push(a)}return e};var g=function(){var e={};for(var t=0,a=i.length;t<a;t++){var o=[];for(var r=0,s=n.length;r<s;r++){var l=f(i[t],n[r]);u.appendChild(l);o.push(l)}e[i[t]]=o}return e};var m=function(e){var t=false;for(var i=0;i<n.length;i++){t=e[i].offsetWidth!==c[n[i]]||e[i].offsetHeight!==d[n[i]];if(t){return t}}return t};var v=h();s.appendChild(l);for(var y=0,w=n.length;y<w;y++){c[n[y]]=v[y].offsetWidth;d[n[y]]=v[y].offsetHeight}var b=g();s.appendChild(u);var T=[];for(var x=0,S=i.length;x<S;x++){if(m(b[i[x]])){T.push(i[x])}}s.removeChild(u);s.removeChild(l);e(T)};var W=function(e,t){if(he()){if(!t.plugins.excludeIE){e(V(t))}else{e(t.EXCLUDED)}}else{e(G(t))}};var G=function(e){if(navigator.plugins==null){return e.NOT_AVAILABLE}var t=[];for(var n=0,i=navigator.plugins.length;n<i;n++){if(navigator.plugins[n]){t.push(navigator.plugins[n])}}if(X(e)){t=t.sort((function(e,t){if(e.name>t.name){return 1}if(e.name<t.name){return-1}return 0}))}return u(t,(function(e){var t=u(e,(function(e){return[e.type,e.suffixes]}));return[e.name,e.description,t]}))};var V=function(e){var t=[];if(Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(window,"ActiveXObject")||"ActiveXObject"in window){var n=["AcroPDF.PDF","Adodb.Stream","AgControl.AgControl","DevalVRXCtrl.DevalVRXCtrl.1","MacromediaFlashPaper.MacromediaFlashPaper","Msxml2.DOMDocument","Msxml2.XMLHTTP","PDF.PdfCtrl","QuickTime.QuickTime","QuickTimeCheckObject.QuickTimeCheck.1","RealPlayer","RealPlayer.RealPlayer(tm) ActiveX Control (32-bit)","RealVideo.RealVideo(tm) ActiveX Control (32-bit)","Scripting.Dictionary","SWCtl.SWCtl","Shell.UIHelper","ShockwaveFlash.ShockwaveFlash","Skype.Detection","TDCCtl.TDCCtl","WMPlayer.OCX","rmocx.RealPlayer G2 Control","rmocx.RealPlayer G2 Control.1"];t=u(n,(function(t){try{new window.ActiveXObject(t);return t}catch(t){return e.ERROR}}))}else{t.push(e.NOT_AVAILABLE)}if(navigator.plugins){t=t.concat(G(e))}return t};var X=function(e){var t=false;for(var n=0,i=e.plugins.sortPluginsFor.length;n<i;n++){var a=e.plugins.sortPluginsFor[n];if(navigator.userAgent.match(a)){t=true;break}}return t};var $=function(e){e(ie())};var J=function(e,t){e(Q(t))};var K=function(e){try{return!!window.sessionStorage}catch(t){return e.ERROR}};var Y=function(e){try{return!!window.localStorage}catch(t){return e.ERROR}};var Z=function(e){try{return!!window.indexedDB}catch(t){return e.ERROR}};var Q=function(e){if(navigator.hardwareConcurrency){return navigator.hardwareConcurrency}return e.NOT_AVAILABLE};var ee=function(e){return navigator.cpuClass||e.NOT_AVAILABLE};var te=function(e){if(navigator.platform){return navigator.platform}else{return e.NOT_AVAILABLE}};var ne=function(e){if(navigator.doNotTrack){return navigator.doNotTrack}else if(navigator.msDoNotTrack){return navigator.msDoNotTrack}else if(window.doNotTrack){return window.doNotTrack}else{return e.NOT_AVAILABLE}};var ie=function(){var e=0;var t;if(typeof navigator.maxTouchPoints!=="undefined"){e=navigator.maxTouchPoints}else if(typeof navigator.msMaxTouchPoints!=="undefined"){e=navigator.msMaxTouchPoints}try{document.createEvent("TouchEvent");t=true}catch(e){t=false}var n="ontouchstart"in window;return[e,t,n]};var ae=function(e){var t=[];var n=document.createElement("canvas");n.width=2e3;n.height=200;n.style.display="inline";var i=n.getContext("2d");i.rect(0,0,10,10);i.rect(2,2,6,6);t.push("canvas winding:"+(i.isPointInPath(5,5,"evenodd")===false?"yes":"no"));i.textBaseline="alphabetic";i.fillStyle="#f60";i.fillRect(125,1,62,20);i.fillStyle="#069";if(e.dontUseFakeFontInCanvas){i.font="11pt Arial"}else{i.font="11pt no-real-font-123"}i.fillText("Cwm fjordbank glyphs vext quiz, 😃",2,15);i.fillStyle="rgba(102, 204, 0, 0.2)";i.font="18pt Arial";i.fillText("Cwm fjordbank glyphs vext quiz, 😃",4,45);i.globalCompositeOperation="multiply";i.fillStyle="rgb(255,0,255)";i.beginPath();i.arc(50,50,50,0,Math.PI*2,true);i.closePath();i.fill();i.fillStyle="rgb(0,255,255)";i.beginPath();i.arc(100,50,50,0,Math.PI*2,true);i.closePath();i.fill();i.fillStyle="rgb(255,255,0)";i.beginPath();i.arc(75,100,50,0,Math.PI*2,true);i.closePath();i.fill();i.fillStyle="rgb(255,0,255)";i.arc(75,75,75,0,Math.PI*2,true);i.arc(75,75,25,0,Math.PI*2,true);i.fill("evenodd");if(n.toDataURL){t.push("canvas fp:"+n.toDataURL())}return t};var oe=function(){var e;var t=function(t){e.clearColor(0,0,0,1);e.enable(e.DEPTH_TEST);e.depthFunc(e.LEQUAL);e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT);return"["+t[0]+", "+t[1]+"]"};var n=function(e){var t=e.getExtension("EXT_texture_filter_anisotropic")||e.getExtension("WEBKIT_EXT_texture_filter_anisotropic")||e.getExtension("MOZ_EXT_texture_filter_anisotropic");if(t){var n=e.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT);if(n===0){n=2}return n}else{return null}};e=we();if(!e){return null}var i=[];var a="attribute vec2 attrVertex;varying vec2 varyinTexCoordinate;uniform vec2 uniformOffset;void main(){varyinTexCoordinate=attrVertex+uniformOffset;gl_Position=vec4(attrVertex,0,1);}";var o="precision mediump float;varying vec2 varyinTexCoordinate;void main() {gl_FragColor=vec4(varyinTexCoordinate,0,1);}";var r=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,r);var s=new Float32Array([-.2,-.9,0,.4,-.26,0,0,.732134444,0]);e.bufferData(e.ARRAY_BUFFER,s,e.STATIC_DRAW);r.itemSize=3;r.numItems=3;var u=e.createProgram();var c=e.createShader(e.VERTEX_SHADER);e.shaderSource(c,a);e.compileShader(c);var d=e.createShader(e.FRAGMENT_SHADER);e.shaderSource(d,o);e.compileShader(d);e.attachShader(u,c);e.attachShader(u,d);e.linkProgram(u);e.useProgram(u);u.vertexPosAttrib=e.getAttribLocation(u,"attrVertex");u.offsetUniform=e.getUniformLocation(u,"uniformOffset");e.enableVertexAttribArray(u.vertexPosArray);e.vertexAttribPointer(u.vertexPosAttrib,r.itemSize,e.FLOAT,!1,0,0);e.uniform2f(u.offsetUniform,1,1);e.drawArrays(e.TRIANGLE_STRIP,0,r.numItems);try{i.push(e.canvas.toDataURL())}catch(t){}i.push("extensions:"+(e.getSupportedExtensions()||[]).join(";"));i.push("webgl aliased line width range:"+t(e.getParameter(e.ALIASED_LINE_WIDTH_RANGE)));i.push("webgl aliased point size range:"+t(e.getParameter(e.ALIASED_POINT_SIZE_RANGE)));i.push("webgl alpha bits:"+e.getParameter(e.ALPHA_BITS));i.push("webgl antialiasing:"+(e.getContextAttributes().antialias?"yes":"no"));i.push("webgl blue bits:"+e.getParameter(e.BLUE_BITS));i.push("webgl depth bits:"+e.getParameter(e.DEPTH_BITS));i.push("webgl green bits:"+e.getParameter(e.GREEN_BITS));i.push("webgl max anisotropy:"+n(e));i.push("webgl max combined texture image units:"+e.getParameter(e.MAX_COMBINED_TEXTURE_IMAGE_UNITS));i.push("webgl max cube map texture size:"+e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE));i.push("webgl max fragment uniform vectors:"+e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS));i.push("webgl max render buffer size:"+e.getParameter(e.MAX_RENDERBUFFER_SIZE));i.push("webgl max texture image units:"+e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS));i.push("webgl max texture size:"+e.getParameter(e.MAX_TEXTURE_SIZE));i.push("webgl max varying vectors:"+e.getParameter(e.MAX_VARYING_VECTORS));i.push("webgl max vertex attribs:"+e.getParameter(e.MAX_VERTEX_ATTRIBS));i.push("webgl max vertex texture image units:"+e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS));i.push("webgl max vertex uniform vectors:"+e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS));i.push("webgl max viewport dims:"+t(e.getParameter(e.MAX_VIEWPORT_DIMS)));i.push("webgl red bits:"+e.getParameter(e.RED_BITS));i.push("webgl renderer:"+e.getParameter(e.RENDERER));i.push("webgl shading language version:"+e.getParameter(e.SHADING_LANGUAGE_VERSION));i.push("webgl stencil bits:"+e.getParameter(e.STENCIL_BITS));i.push("webgl vendor:"+e.getParameter(e.VENDOR));i.push("webgl version:"+e.getParameter(e.VERSION));try{var p=e.getExtension("WEBGL_debug_renderer_info");if(p){i.push("webgl unmasked vendor:"+e.getParameter(p.UNMASKED_VENDOR_WEBGL));i.push("webgl unmasked renderer:"+e.getParameter(p.UNMASKED_RENDERER_WEBGL))}}catch(t){}if(!e.getShaderPrecisionFormat){be(e);return i}l(["FLOAT","INT"],(function(t){l(["VERTEX","FRAGMENT"],(function(n){l(["HIGH","MEDIUM","LOW"],(function(a){l(["precision","rangeMin","rangeMax"],(function(o){var r=e.getShaderPrecisionFormat(e[n+"_SHADER"],e[a+"_"+t])[o];if(o!=="precision"){o="precision "+o}var s=["webgl ",n.toLowerCase()," shader ",a.toLowerCase()," ",t.toLowerCase()," ",o,":",r].join("");i.push(s)}))}))}))}));be(e);return i};var re=function(){try{var e=we();var t=e.getExtension("WEBGL_debug_renderer_info");var n=e.getParameter(t.UNMASKED_VENDOR_WEBGL)+"~"+e.getParameter(t.UNMASKED_RENDERER_WEBGL);be(e);return n}catch(e){return null}};var se=function(){var e=document.createElement("div");e.innerHTML="&nbsp;";e.className="adsbox";var t=false;try{document.body.appendChild(e);t=document.getElementsByClassName("adsbox")[0].offsetHeight===0;document.body.removeChild(e)}catch(e){t=false}return t};var le=function(){if(typeof navigator.languages!=="undefined"){try{var e=navigator.languages[0].substr(0,2);if(e!==navigator.language.substr(0,2)){return true}}catch(e){return true}}return false};var ue=function(){return window.screen.width<window.screen.availWidth||window.screen.height<window.screen.availHeight};var ce=function(){var e=navigator.userAgent.toLowerCase();var t=navigator.oscpu;var n=navigator.platform.toLowerCase();var i;if(e.indexOf("windows phone")>=0){i="Windows Phone"}else if(e.indexOf("windows")>=0||e.indexOf("win16")>=0||e.indexOf("win32")>=0||e.indexOf("win64")>=0||e.indexOf("win95")>=0||e.indexOf("win98")>=0||e.indexOf("winnt")>=0||e.indexOf("wow64")>=0){i="Windows"}else if(e.indexOf("android")>=0){i="Android"}else if(e.indexOf("linux")>=0||e.indexOf("cros")>=0||e.indexOf("x11")>=0){i="Linux"}else if(e.indexOf("iphone")>=0||e.indexOf("ipad")>=0||e.indexOf("ipod")>=0||e.indexOf("crios")>=0||e.indexOf("fxios")>=0){i="iOS"}else if(e.indexOf("macintosh")>=0||e.indexOf("mac_powerpc)")>=0){i="Mac"}else{i="Other"}var a="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;if(a&&i!=="Windows"&&i!=="Windows Phone"&&i!=="Android"&&i!=="iOS"&&i!=="Other"&&e.indexOf("cros")===-1){return true}if(typeof t!=="undefined"){t=t.toLowerCase();if(t.indexOf("win")>=0&&i!=="Windows"&&i!=="Windows Phone"){return true}else if(t.indexOf("linux")>=0&&i!=="Linux"&&i!=="Android"){return true}else if(t.indexOf("mac")>=0&&i!=="Mac"&&i!=="iOS"){return true}else if((t.indexOf("win")===-1&&t.indexOf("linux")===-1&&t.indexOf("mac")===-1)!==(i==="Other")){return true}}if(n.indexOf("win")>=0&&i!=="Windows"&&i!=="Windows Phone"){return true}else if((n.indexOf("linux")>=0||n.indexOf("android")>=0||n.indexOf("pike")>=0)&&i!=="Linux"&&i!=="Android"){return true}else if((n.indexOf("mac")>=0||n.indexOf("ipad")>=0||n.indexOf("ipod")>=0||n.indexOf("iphone")>=0)&&i!=="Mac"&&i!=="iOS"){return true}else if(n.indexOf("arm")>=0&&i==="Windows Phone"){return false}else if(n.indexOf("pike")>=0&&e.indexOf("opera mini")>=0){return false}else{var o=n.indexOf("win")<0&&n.indexOf("linux")<0&&n.indexOf("mac")<0&&n.indexOf("iphone")<0&&n.indexOf("ipad")<0&&n.indexOf("ipod")<0;if(o!==(i==="Other")){return true}}return typeof navigator.plugins==="undefined"&&i!=="Windows"&&i!=="Windows Phone"};var de=function(){var e=navigator.userAgent.toLowerCase();var t=navigator.productSub;var n;if(e.indexOf("edge/")>=0||e.indexOf("iemobile/")>=0){return false}else if(e.indexOf("opera mini")>=0){return false}else if(e.indexOf("firefox/")>=0){n="Firefox"}else if(e.indexOf("opera/")>=0||e.indexOf(" opr/")>=0){n="Opera"}else if(e.indexOf("chrome/")>=0){n="Chrome"}else if(e.indexOf("safari/")>=0){if(e.indexOf("android 1.")>=0||e.indexOf("android 2.")>=0||e.indexOf("android 3.")>=0||e.indexOf("android 4.")>=0){n="AOSP"}else{n="Safari"}}else if(e.indexOf("trident/")>=0){n="Internet Explorer"}else{n="Other"}if((n==="Chrome"||n==="Safari"||n==="Opera")&&t!=="20030107"){return true}var i=eval.toString().length;if(i===37&&n!=="Safari"&&n!=="Firefox"&&n!=="Other"){return true}else if(i===39&&n!=="Internet Explorer"&&n!=="Other"){return true}else if(i===33&&n!=="Chrome"&&n!=="AOSP"&&n!=="Opera"&&n!=="Other"){return true}var a;try{throw"a"}catch(e){try{e.toSource();a=true}catch(e){a=false}}return a&&n!=="Firefox"&&n!=="Other"};var pe=function(){var e=document.createElement("canvas");return!!(e.getContext&&e.getContext("2d"))};var fe=function(){if(!pe()){return false}var e=we();var t=!!window.WebGLRenderingContext&&!!e;be(e);return t};var he=function(){if(navigator.appName==="Microsoft Internet Explorer"){return true}else if(navigator.appName==="Netscape"&&/Trident/.test(navigator.userAgent)){return true}return false};var ge=function(){return typeof window.swfobject!=="undefined"};var me=function(){return window.swfobject.hasFlashPlayerVersion("9.0.0")};var ve=function(e){var t=document.createElement("div");t.setAttribute("id",e.fonts.swfContainerId);document.body.appendChild(t)};var ye=function(e,t){var n="___fp_swf_loaded";window[n]=function(t){e(t)};var i=t.fonts.swfContainerId;ve();var a={onReady:n};var o={allowScriptAccess:"always",menu:"false"};window.swfobject.embedSWF(t.fonts.swfPath,i,"1","1","9.0.0",false,a,o,{})};var we=function(){var e=document.createElement("canvas");var t=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}if(!t){t=null}return t};var be=function(e){var t=e.getExtension("WEBGL_lose_context");if(t!=null){t.loseContext()}};var Te=[{key:"userAgent",getData:h},{key:"webdriver",getData:g},{key:"language",getData:m},{key:"colorDepth",getData:v},{key:"deviceMemory",getData:y},{key:"pixelRatio",getData:w},{key:"hardwareConcurrency",getData:J},{key:"screenResolution",getData:b},{key:"availableScreenResolution",getData:x},{key:"timezoneOffset",getData:k},{key:"timezone",getData:L},{key:"sessionStorage",getData:C},{key:"localStorage",getData:E},{key:"indexedDb",getData:O},{key:"addBehavior",getData:M},{key:"openDatabase",getData:A},{key:"cpuClass",getData:B},{key:"platform",getData:I},{key:"doNotTrack",getData:_},{key:"plugins",getData:W},{key:"canvas",getData:P},{key:"webgl",getData:N},{key:"webglVendorAndRenderer",getData:R},{key:"adBlock",getData:D},{key:"hasLiedLanguages",getData:F},{key:"hasLiedResolution",getData:H},{key:"hasLiedOs",getData:z},{key:"hasLiedBrowser",getData:q},{key:"touchSupport",getData:$},{key:"fonts",getData:U,pauseBefore:true},{key:"fontsFlash",getData:j,pauseBefore:true},{key:"audio",getData:f},{key:"enumerateDevices",getData:d}];var xe=function(e){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/Valve/fingerprintjs2#upgrade-guide-from-182-to-200")};xe.get=function(e,t){if(!t){t=e;e={}}else if(!e){e={}}c(e,s);e.components=e.extraComponents.concat(Te);var n={data:[],addPreprocessedComponent:function(t,i){if(typeof e.preprocessor==="function"){i=e.preprocessor(t,i)}n.data.push({key:t,value:i})}};var i=-1;var a=function(o){i+=1;if(i>=e.components.length){t(n.data);return}var r=e.components[i];if(e.excludes[r.key]){a(false);return}if(!o&&r.pauseBefore){i-=1;setTimeout((function(){a(true)}),1);return}try{r.getData((function(e){n.addPreprocessedComponent(r.key,e);a(false)}),e)}catch(o){n.addPreprocessedComponent(r.key,String(o));a(false)}};a(false)};xe.getPromise=function(e){return new Promise((function(t,n){xe.get(e,t)}))};xe.getV18=function(e,t){if(t==null){t=e;e={}}return xe.get(e,(function(n){var i=[];for(var a=0;a<n.length;a++){var o=n[a];if(o.value===(e.NOT_AVAILABLE||"not available")){i.push({key:o.key,value:"unknown"})}else if(o.key==="plugins"){i.push({key:"plugins",value:u(o.value,(function(e){var t=u(e[2],(function(e){if(e.join){return e.join("~")}return e})).join(",");return[e[0],e[1],t].join("::")}))})}else if(["canvas","webgl"].indexOf(o.key)!==-1&&Array.isArray(o.value)){i.push({key:o.key,value:o.value.join("~")})}else if(["sessionStorage","localStorage","indexedDb","addBehavior","openDatabase"].indexOf(o.key)!==-1){if(o.value){i.push({key:o.key,value:1})}else{continue}}else{if(o.value){i.push(o.value.join?{key:o.key,value:o.value.join(";")}:o)}else{i.push({key:o.key,value:o.value})}}}var s=r(u(i,(function(e){return e.value})).join("~~~"),31);t(s,i)}))};xe.x64hash128=r;xe.VERSION="2.1.2";return xe}));(function(e,t,n){"use strict";if(typeof window!=="undefined"&&typeof define==="function"&&define.amd){define(n)}else if(typeof module!=="undefined"&&module.exports){module.exports=n()}else if(t.exports){t.exports=n()}else{t[e]=n()}})("fp",this,(function(){var e=(new Date).valueOf();var t={excludes:{userAgent:true,enumerateDevices:true,pixelRatio:true,doNotTrack:true,fontsFlash:true,fonts:true,language:true,availableScreenResolution:true,timezoneOffset:true,timezone:true,plugins:true,canvas:true,webgl:true,adBlock:true,audio:true}};var n={excludes:{enumerateDevices:true,pixelRatio:true,doNotTrack:true,fontsFlash:true,fonts:true,language:true,availableScreenResolution:true,timezoneOffset:true,timezone:true,plugins:true,adBlock:true}};var i={excludes:{enumerateDevices:true,pixelRatio:true,doNotTrack:true,fontsFlash:true,fonts:true,adBlock:true}};var a=function(e){if(window.requestIdleCallback){requestIdleCallback((function(){e()}))}else{setTimeout(e,500)}};var o=function(t,n,i,a,o){var r=Fingerprint2.x64hash128(JSON.stringify(i),15).substring(0,2);var s=r+n+t;console.log("\n"+" %c fp v3.0.3 %c "+s+"::"+((new Date).valueOf()-e)+"ms %c https://fp.yimian.xyz/ \n","color: #00FFFF; background: #030307; padding:5px 0;","color: #fadfa3; background: #030307; padding:5px 0;","background: #4682B4; padding:5px 0;");a(s)};var r=function(e,n,i,a){var r=Fingerprint2.x64hash128(JSON.stringify(n),15).substring(0,2);n.forEach((function(e,i){if(t.excludes.hasOwnProperty(e.key)){n.splice(i,1)}}));o(e,r,n,i,a)};var s=function(e,t,i){var a=Fingerprint2.x64hash128(JSON.stringify(e),15).substring(0,2);e.forEach((function(t,i){if(n.excludes.hasOwnProperty(t.key)){e.splice(i,1)}}));r(a,e,t,i)};return new Promise((function(t,n){a((function(){e=(new Date).valueOf();Fingerprint2.get(i,(function(e){s(e,t,n)}))}))}))}));(function(e,t,n){"use strict";if(typeof window!=="undefined"&&typeof define==="function"&&define.amd){define(n)}else if(typeof module!=="undefined"&&module.exports){module.exports=n()}else if(t.exports){t.exports=n()}else{t[e]=n()}})("fp_details",this,(function(){var e={excludes:{}};var t=function(e){if(window.requestIdleCallback){requestIdleCallback((function(){e()}))}else{setTimeout(e,500)}};return new Promise((function(n,i){t((function(){Fingerprint2.get(e,(function(e){n(e)}))}))}))}));try{!function(e,t){"function"==typeof define&&define.amd?define([],t):"undefined"!=typeof module&&module.exports?module.exports=t():e.ReconnectingWebSocket=t()}(this,(function(){function e(t,n,i){function a(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n}var o={debug:!1,automaticOpen:!0,reconnectInterval:1e3,maxReconnectInterval:3e4,reconnectDecay:1.5,timeoutInterval:2e3};i||(i={});for(var r in o)this[r]="undefined"!=typeof i[r]?i[r]:o[r];this.url=t,this.reconnectAttempts=0,this.readyState=WebSocket.CONNECTING,this.protocol=null;var s,l=this,u=!1,c=!1,d=document.createElement("div");d.addEventListener("open",(function(e){l.onopen(e)})),d.addEventListener("close",(function(e){l.onclose(e)})),d.addEventListener("connecting",(function(e){l.onconnecting(e)})),d.addEventListener("message",(function(e){l.onmessage(e)})),d.addEventListener("error",(function(e){l.onerror(e)})),this.addEventListener=d.addEventListener.bind(d),this.removeEventListener=d.removeEventListener.bind(d),this.dispatchEvent=d.dispatchEvent.bind(d),this.open=function(t){s=new WebSocket(l.url,n||[]),t||d.dispatchEvent(a("connecting")),(l.debug||e.debugAll)&&console.debug("ReconnectingWebSocket","attempt-connect",l.url);var i=s,o=setTimeout((function(){(l.debug||e.debugAll)&&console.debug("ReconnectingWebSocket","connection-timeout",l.url),c=!0,i.close(),c=!1}),l.timeoutInterval);s.onopen=function(){clearTimeout(o),(l.debug||e.debugAll)&&console.debug("ReconnectingWebSocket","onopen",l.url),l.protocol=s.protocol,l.readyState=WebSocket.OPEN,l.reconnectAttempts=0;var n=a("open");n.isReconnect=t,t=!1,d.dispatchEvent(n)},s.onclose=function(n){if(clearTimeout(o),s=null,u)l.readyState=WebSocket.CLOSED,d.dispatchEvent(a("close"));else{l.readyState=WebSocket.CONNECTING;var i=a("connecting");i.code=n.code,i.reason=n.reason,i.wasClean=n.wasClean,d.dispatchEvent(i),t||c||((l.debug||e.debugAll)&&console.debug("ReconnectingWebSocket","onclose",l.url),d.dispatchEvent(a("close")));var o=l.reconnectInterval*Math.pow(l.reconnectDecay,l.reconnectAttempts);setTimeout((function(){l.reconnectAttempts++,l.open(!0)}),o>l.maxReconnectInterval?l.maxReconnectInterval:o)}},s.onmessage=function(t){(l.debug||e.debugAll)&&console.debug("ReconnectingWebSocket","onmessage",l.url,t.data);var n=a("message");n.data=t.data,d.dispatchEvent(n)},s.onerror=function(t){(l.debug||e.debugAll)&&console.debug("ReconnectingWebSocket","onerror",l.url,t),d.dispatchEvent(a("error"))}},1==this.automaticOpen&&this.open(!1),this.send=function(t){if(s)return(l.debug||e.debugAll)&&console.debug("ReconnectingWebSocket","send",l.url,t),s.send(t);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(e,t){"undefined"==typeof e&&(e=1e3),u=!0,s&&s.close(e,t)},this.refresh=function(){s&&s.close()}}return e.prototype.onopen=function(){},e.prototype.onclose=function(){},e.prototype.onconnecting=function(){},e.prototype.onmessage=function(){},e.prototype.onerror=function(){},e.debugAll=!1,e.CONNECTING=WebSocket.CONNECTING,e.OPEN=WebSocket.OPEN,e.CLOSING=WebSocket.CLOSING,e.CLOSED=WebSocket.CLOSED,e}))}catch(e){}!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("APlayer",[],t):"object"==typeof exports?exports.APlayer=t():e.APlayer=t()}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=41)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=/mobile/i.test(window.navigator.userAgent),a={secondToTime:function(e){var t=Math.floor(e/3600),n=Math.floor((e-3600*t)/60),i=Math.floor(e-3600*t-60*n);return(t>0?[t,n,i]:[n,i]).map((function(e){return e<10?"0"+e:""+e})).join(":")},getElementViewLeft:function(e){var t=e.offsetLeft,n=e.offsetParent,i=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;null!==n&&n!==e;)t+=n.offsetLeft,n=n.offsetParent;else for(;null!==n;)t+=n.offsetLeft,n=n.offsetParent;return t-i},getElementViewTop:function(e,t){for(var n,i=e.offsetTop,a=e.offsetParent;null!==a;)i+=a.offsetTop,a=a.offsetParent;return n=document.body.scrollTop+document.documentElement.scrollTop,t?i:i-n},isMobile:i,storage:{set:function(e,t){localStorage.setItem(e,t)},get:function(e){return localStorage.getItem(e)}},nameMap:{dragStart:i?"touchstart":"mousedown",dragMove:i?"touchmove":"mousemove",dragEnd:i?"touchend":"mouseup"},randomOrder:function(e){return function(e){for(var t=e.length-1;t>=0;t--){var n=Math.floor(Math.random()*(t+1)),i=e[n];e[n]=e[t],e[t]=i}return e}([].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Array(e))).map((function(e,t){return t})))}};t.default=a},function(e,t,n){var i=n(2);e.exports=function(e){"use strict";e=e||{};var t="",n=i.$each,a=e.audio,o=(e.$value,e.$index,i.$escape),r=e.theme,s=e.index;return n(a,(function(e,n){t+='\n<li>\n <span class="aplayer-list-cur" style="background-color: ',t+=o(e.theme||r),t+=';"></span>\n <span class="aplayer-list-index">',t+=o(n+s),t+='</span>\n <span class="aplayer-list-title">',t+=o(e.name),t+='</span>\n <span class="aplayer-list-author">',t+=o(e.artist),t+="</span>\n</li>\n"})),t}},function(e,t,n){"use strict";e.exports=n(15)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=y(n(33)),a=y(n(32)),o=y(n(31)),r=y(n(30)),s=y(n(29)),l=y(n(28)),u=y(n(27)),c=y(n(26)),d=y(n(25)),p=y(n(24)),f=y(n(23)),h=y(n(22)),g=y(n(21)),m=y(n(20)),v=y(n(19));function y(e){return e&&e.__esModule?e:{default:e}}var w={play:i.default,pause:a.default,volumeUp:o.default,volumeDown:r.default,volumeOff:s.default,orderRandom:l.default,orderList:u.default,menu:c.default,loopAll:d.default,loopOne:p.default,loopNone:f.default,loading:h.default,right:g.default,skip:m.default,lrc:v.default};t.default=w},function(e,t,n){"use strict";var i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":a(window))&&(i=window)}e.exports=i},function(e,t,n){"use strict";var i,a,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};void 0===(a="function"==typeof(i=function(){if("object"===("undefined"==typeof window?"undefined":o(window))&&void 0!==document.querySelectorAll&&void 0!==window.pageYOffset&&void 0!==history.pushState){var e=function(e,t,n,i){return n>i?t:e+(t-e)*((a=n/i)<.5?4*a*a*a:(a-1)*(2*a-2)*(2*a-2)+1);var a},t=function(t,n,i,a){n=n||500;var o=(a=a||window).scrollTop||window.pageYOffset;if("number"==typeof t)var r=parseInt(t);else var r=function(e,t){return"HTML"===e.nodeName?-t:e.getBoundingClientRect().top+t}(t,o);var s=Date.now(),l=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){window.setTimeout(e,15)};!function u(){var c=Date.now()-s;a!==window?a.scrollTop=e(o,r,c,n):window.scroll(0,e(o,r,c,n)),c>n?"function"==typeof i&&i(t):l(u)}()},n=function(e){if(!e.defaultPrevented){e.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var n=document.getElementById(this.hash.substring(1));if(!n)return;t(n,500,(function(e){location.replace("#"+e.id)}))}};return document.addEventListener("DOMContentLoaded",(function(){for(var e,t=document.querySelectorAll('a[href^="#"]:not([href="#"])'),i=t.length;e=t[--i];)e.addEventListener("click",n,!1)})),t}})?i.call(t,n,t,e):i)||(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=s(n(1)),o=s(n(0)),r=s(n(5));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.player=t,this.index=0,this.audios=this.player.options.audio,this.bindEvents()}return i(e,[{key:"bindEvents",value:function(){var e=this;this.player.template.list.addEventListener("click",(function(t){var n=void 0;n="LI"===t.target.tagName.toUpperCase()?t.target:t.target.parentElement;var i=parseInt(n.getElementsByClassName("aplayer-list-index")[0].innerHTML)-1;i!==e.index?(e.switch(i),e.player.play()):e.player.toggle()}))}},{key:"show",value:function(){this.player.events.trigger("listshow"),this.player.template.list.classList.remove("aplayer-list-hide"),this.player.template.listOl.scrollTop=33*this.index}},{key:"hide",value:function(){this.player.events.trigger("listhide"),this.player.template.list.classList.add("aplayer-list-hide")}},{key:"toggle",value:function(){this.player.template.list.classList.contains("aplayer-list-hide")?this.show():this.hide()}},{key:"add",value:function(e){this.player.events.trigger("listadd",{audios:e}),"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),e.map((function(e){return e.name=e.name||e.title||"Audio name",e.artist=e.artist||e.author||"Audio artist",e.cover=e.cover||e.pic,e.type=e.type||"normal",e}));var t=!(this.audios.length>1),n=0===this.audios.length;this.player.template.listOl.innerHTML+=(0,a.default)({theme:this.player.options.theme,audio:e,index:this.audios.length+1}),this.audios=this.audios.concat(e),t&&this.audios.length>1&&this.player.container.classList.add("aplayer-withlist"),this.player.randomOrder=o.default.randomOrder(this.audios.length),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur"),this.player.template.listCurs[this.audios.length-1].style.backgroundColor=e.theme||this.player.options.theme,n&&("random"===this.player.options.order?this.switch(this.player.randomOrder[0]):this.switch(0))}},{key:"remove",value:function(e){if(this.player.events.trigger("listremove",{index:e}),this.audios[e])if(this.audios.length>1){var t=this.player.container.querySelectorAll(".aplayer-list li");t[e].remove(),this.audios.splice(e,1),this.player.lrc&&this.player.lrc.remove(e),e===this.index&&(this.audios[e]?this.switch(e):this.switch(e-1)),this.index>e&&this.index--;for(var n=e;n<t.length;n++)t[n].getElementsByClassName("aplayer-list-index")[0].textContent=n;1===this.audios.length&&this.player.container.classList.remove("aplayer-withlist"),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur")}else this.clear()}},{key:"switch",value:function(e){if(this.player.events.trigger("listswitch",{index:e}),void 0!==e&&this.audios[e]){this.index=e;var t=this.audios[this.index];this.player.template.pic.style.backgroundImage=t.cover?"url('"+t.cover+"')":"",this.player.theme(this.audios[this.index].theme||this.player.options.theme,this.index,!1),this.player.template.title.innerHTML=t.name,this.player.template.author.innerHTML=t.artist?" - "+t.artist:"";var n=this.player.container.getElementsByClassName("aplayer-list-light")[0];n&&n.classList.remove("aplayer-list-light"),this.player.container.querySelectorAll(".aplayer-list li")[this.index].classList.add("aplayer-list-light"),(0,r.default)(33*this.index,500,null,this.player.template.listOl),this.player.setAudio(t),this.player.lrc&&this.player.lrc.switch(this.index),this.player.lrc&&this.player.lrc.update(0),1!==this.player.duration&&(this.player.template.dtime.innerHTML=o.default.secondToTime(this.player.duration))}}},{key:"clear",value:function(){this.player.events.trigger("listclear"),this.index=0,this.player.container.classList.remove("aplayer-withlist"),this.player.pause(),this.audios=[],this.player.lrc&&this.player.lrc.clear(),this.player.audio.src="",this.player.template.listOl.innerHTML="",this.player.template.pic.style.backgroundImage="",this.player.theme(this.player.options.theme,this.index,!1),this.player.template.title.innerHTML="No audio",this.player.template.author.innerHTML="",this.player.bar.set("loaded",0,"width"),this.player.template.dtime.innerHTML=o.default.secondToTime(0)}}]),e}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.events={},this.audioEvents=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","mozaudioavailable","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],this.playerEvents=["destroy","listshow","listhide","listadd","listremove","listswitch","listclear","noticeshow","noticehide","lrcshow","lrchide"]}return i(e,[{key:"on",value:function(e,t){this.type(e)&&"function"==typeof t&&(this.events[e]||(this.events[e]=[]),this.events[e].push(t))}},{key:"trigger",value:function(e,t){if(this.events[e]&&this.events[e].length)for(var n=0;n<this.events[e].length;n++)this.events[e][n](t)}},{key:"type",value:function(e){return-1!==this.playerEvents.indexOf(e)?"player":-1!==this.audioEvents.indexOf(e)?"audio":(console.error("Unknown event name: "+e),null)}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.player=t,window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},this.types=["loading"],this.init()}return i(e,[{key:"init",value:function(){var e=this;this.types.forEach((function(t){e["init"+t+"Checker"]()}))}},{key:"initloadingChecker",value:function(){var e=this,t=0,n=0,i=!1;this.loadingChecker=setInterval((function(){e.enableloadingChecker&&(n=e.player.audio.currentTime,i||n!==t||e.player.audio.paused||(e.player.container.classList.add("aplayer-loading"),i=!0),i&&n>t&&!e.player.audio.paused&&(e.player.container.classList.remove("aplayer-loading"),i=!1),t=n)}),100)}},{key:"enable",value:function(e){this["enable"+e+"Checker"]=!0,"fps"===e&&this.initfpsChecker()}},{key:"disable",value:function(e){this["enable"+e+"Checker"]=!1}},{key:"destroy",value:function(){var e=this;this.types.forEach((function(t){e["enable"+t+"Checker"]=!1,e[t+"Checker"]&&clearInterval(e[t+"Checker"])}))}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=r(n(0)),o=r(n(3));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.player=t,this.initPlayButton(),this.initPlayBar(),this.initOrderButton(),this.initLoopButton(),this.initMenuButton(),a.default.isMobile||this.initVolumeButton(),this.initMiniSwitcher(),this.initSkipButton(),this.initLrcButton()}return i(e,[{key:"initPlayButton",value:function(){var e=this;this.player.template.pic.addEventListener("click",(function(){e.player.toggle()}))}},{key:"initPlayBar",value:function(){var e=this,t=function(t){var n=((t.clientX||t.changedTouches[0].clientX)-a.default.getElementViewLeft(e.player.template.barWrap))/e.player.template.barWrap.clientWidth;n=Math.max(n,0),n=Math.min(n,1),e.player.bar.set("played",n,"width"),e.player.lrc&&e.player.lrc.update(n*e.player.duration),e.player.template.ptime.innerHTML=a.default.secondToTime(n*e.player.duration)},n=function n(i){document.removeEventListener(a.default.nameMap.dragEnd,n),document.removeEventListener(a.default.nameMap.dragMove,t);var o=((i.clientX||i.changedTouches[0].clientX)-a.default.getElementViewLeft(e.player.template.barWrap))/e.player.template.barWrap.clientWidth;o=Math.max(o,0),o=Math.min(o,1),e.player.bar.set("played",o,"width"),e.player.seek(e.player.bar.get("played","width")*e.player.duration),e.player.disableTimeupdate=!1};this.player.template.barWrap.addEventListener(a.default.nameMap.dragStart,(function(){e.player.disableTimeupdate=!0,document.addEventListener(a.default.nameMap.dragMove,t),document.addEventListener(a.default.nameMap.dragEnd,n)}))}},{key:"initVolumeButton",value:function(){var e=this;this.player.template.volumeButton.addEventListener("click",(function(){e.player.audio.muted?(e.player.audio.muted=!1,e.player.switchVolumeIcon(),e.player.bar.set("volume",e.player.volume(),"height")):(e.player.audio.muted=!0,e.player.switchVolumeIcon(),e.player.bar.set("volume",0,"height"))}));var t=function(t){var n=1-((t.clientY||t.changedTouches[0].clientY)-a.default.getElementViewTop(e.player.template.volumeBar,e.player.options.fixed))/e.player.template.volumeBar.clientHeight;n=Math.max(n,0),n=Math.min(n,1),e.player.volume(n)},n=function n(i){e.player.template.volumeBarWrap.classList.remove("aplayer-volume-bar-wrap-active"),document.removeEventListener(a.default.nameMap.dragEnd,n),document.removeEventListener(a.default.nameMap.dragMove,t);var o=1-((i.clientY||i.changedTouches[0].clientY)-a.default.getElementViewTop(e.player.template.volumeBar,e.player.options.fixed))/e.player.template.volumeBar.clientHeight;o=Math.max(o,0),o=Math.min(o,1),e.player.volume(o)};this.player.template.volumeBarWrap.addEventListener(a.default.nameMap.dragStart,(function(){e.player.template.volumeBarWrap.classList.add("aplayer-volume-bar-wrap-active"),document.addEventListener(a.default.nameMap.dragMove,t),document.addEventListener(a.default.nameMap.dragEnd,n)}))}},{key:"initOrderButton",value:function(){var e=this;this.player.template.order.addEventListener("click",(function(){"list"===e.player.options.order?(e.player.options.order="random",e.player.template.order.innerHTML=o.default.orderRandom):"random"===e.player.options.order&&(e.player.options.order="list",e.player.template.order.innerHTML=o.default.orderList)}))}},{key:"initLoopButton",value:function(){var e=this;this.player.template.loop.addEventListener("click",(function(){e.player.list.audios.length>1?"one"===e.player.options.loop?(e.player.options.loop="none",e.player.template.loop.innerHTML=o.default.loopNone):"none"===e.player.options.loop?(e.player.options.loop="all",e.player.template.loop.innerHTML=o.default.loopAll):"all"===e.player.options.loop&&(e.player.options.loop="one",e.player.template.loop.innerHTML=o.default.loopOne):"one"===e.player.options.loop||"all"===e.player.options.loop?(e.player.options.loop="none",e.player.template.loop.innerHTML=o.default.loopNone):"none"===e.player.options.loop&&(e.player.options.loop="all",e.player.template.loop.innerHTML=o.default.loopAll)}))}},{key:"initMenuButton",value:function(){var e=this;this.player.template.menu.addEventListener("click",(function(){e.player.list.toggle()}))}},{key:"initMiniSwitcher",value:function(){var e=this;this.player.template.miniSwitcher.addEventListener("click",(function(){e.player.setMode("mini"===e.player.mode?"normal":"mini")}))}},{key:"initSkipButton",value:function(){var e=this;this.player.template.skipBackButton.addEventListener("click",(function(){e.player.skipBack()})),this.player.template.skipForwardButton.addEventListener("click",(function(){e.player.skipForward()})),this.player.template.skipPlayButton.addEventListener("click",(function(){e.player.toggle()}))}},{key:"initLrcButton",value:function(){var e=this;this.player.template.lrcButton.addEventListener("click",(function(){e.player.template.lrcButton.classList.contains("aplayer-icon-lrc-inactivity")?(e.player.template.lrcButton.classList.remove("aplayer-icon-lrc-inactivity"),e.player.lrc&&e.player.lrc.show()):(e.player.template.lrcButton.classList.add("aplayer-icon-lrc-inactivity"),e.player.lrc&&e.player.lrc.hide())}))}}]),e}();t.default=s},function(e,t,n){var i=n(2);e.exports=function(e){"use strict";e=e||{};var t="",n=i.$each,a=e.lyrics,o=(e.$value,e.$index,i.$escape);return n(a,(function(e,n){t+="\n <p",0===n&&(t+=' class="aplayer-lrc-current"'),t+=">",t+=o(e[1]),t+="</p>\n"})),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(10),r=(i=o)&&i.__esModule?i:{default:i};var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.async=t.async,this.player=t.player,this.parsed=[],this.index=0,this.current=[]}return a(e,[{key:"show",value:function(){this.player.events.trigger("lrcshow"),this.player.template.lrcWrap.classList.remove("aplayer-lrc-hide")}},{key:"hide",value:function(){this.player.events.trigger("lrchide"),this.player.template.lrcWrap.classList.add("aplayer-lrc-hide")}},{key:"toggle",value:function(){this.player.template.lrcWrap.classList.contains("aplayer-lrc-hide")?this.show():this.hide()}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.player.audio.currentTime;if(this.index>this.current.length-1||e<this.current[this.index][0]||!this.current[this.index+1]||e>=this.current[this.index+1][0])for(var t=0;t<this.current.length;t++)e>=this.current[t][0]&&(!this.current[t+1]||e<this.current[t+1][0])&&(this.index=t,this.container.style.transform="translateY("+16*-this.index+"px)",this.container.style.webkitTransform="translateY("+16*-this.index+"px)",this.container.getElementsByClassName("aplayer-lrc-current")[0].classList.remove("aplayer-lrc-current"),this.container.getElementsByTagName("p")[t].classList.add("aplayer-lrc-current"))}},{key:"switch",value:function(e){var t=this;if(!this.parsed[e])if(this.async){this.parsed[e]=[["00:00","Loading"]];var n=new XMLHttpRequest;n.onreadystatechange=function(){e===t.player.list.index&&4===n.readyState&&(n.status>=200&&n.status<300||304===n.status?t.parsed[e]=t.parse(n.responseText):(t.player.notice("LRC file request fails: status "+n.status),t.parsed[e]=[["00:00","Not available"]]),t.container.innerHTML=(0,r.default)({lyrics:t.parsed[e]}),t.update(0),t.current=t.parsed[e])};var i=this.player.list.audios[e].lrc;n.open("get",i,!0),n.send(null)}else this.player.list.audios[e].lrc?this.parsed[e]=this.parse(this.player.list.audios[e].lrc):this.parsed[e]=[["00:00","Not available"]];this.container.innerHTML=(0,r.default)({lyrics:this.parsed[e]}),this.update(0),this.current=this.parsed[e]}},{key:"parse",value:function(e){if(e){for(var t=(e=e.replace(/([^\]^\n])\[/g,(function(e,t){return t+"\n["}))).split("\n"),n=[],i=t.length,a=0;a<i;a++){var o=t[a].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g),r=t[a].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g,"").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g,"").replace(/^\s+|\s+$/g,"");if(o)for(var s=o.length,l=0;l<s;l++){var u=/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/.exec(o[l]),c=60*u[1]+parseInt(u[2])+(u[4]?parseInt(u[4])/(2===(u[4]+"").length?100:1e3):0);n.push([c,r])}}return(n=n.filter((function(e){return e[1]}))).sort((function(e,t){return e[0]-t[0]})),n}return[]}},{key:"remove",value:function(e){this.parsed.splice(e,1)}},{key:"clear",value:function(){this.parsed=[],this.container.innerHTML=""}}]),e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=n(0),r=(i=o)&&i.__esModule?i:{default:i};var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.storageName=t.options.storageName,this.data=JSON.parse(r.default.storage.get(this.storageName)),this.data||(this.data={}),this.data.volume=this.data.volume||t.options.volume}return a(e,[{key:"get",value:function(e){return this.data[e]}},{key:"set",value:function(e,t){this.data[e]=t,r.default.storage.set(this.storageName,JSON.stringify(this.data))}}]),e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.elements={},this.elements.volume=t.volume,this.elements.played=t.played,this.elements.loaded=t.loaded}return i(e,[{key:"set",value:function(e,t,n){t=Math.max(t,0),t=Math.min(t,1),this.elements[e].style[n]=100*t+"%"}},{key:"get",value:function(e,t){return parseFloat(this.elements[e].style[t])/100}}]),e}();t.default=a},function(e,t,n){"use strict";(function(t){e.exports=!1;try{e.exports="[object process]"===Object.prototype.toString.call(t.process)}catch(e){}}).call(this,n(4))},function(e,t,n){"use strict";(function(t){var i=n(14),a=Object.create(i?t:window),o=/["&'<>]/;a.$escape=function(e){return function(e){var t=""+e,n=o.exec(t);if(!n)return e;var i="",a=void 0,r=void 0,s=void 0;for(a=n.index,r=0;a<t.length;a++){switch(t.charCodeAt(a)){case 34:s="&#34;";break;case 38:s="&#38;";break;case 39:s="&#39;";break;case 60:s="&#60;";break;case 62:s="&#62;";break;default:continue}r!==a&&(i+=t.substring(r,a)),r=a+1,i+=s}return r!==a?i+t.substring(r,a):i}(function e(t){"string"!=typeof t&&(t=void 0===t||null===t?"":"function"==typeof t?e(t.call(t)):JSON.stringify(t));return t}(e))},a.$each=function(e,t){if(Array.isArray(e))for(var n=0,i=e.length;n<i;n++)t(e[n],n);else for(var a in e)t(e[a],a)},e.exports=a}).call(this,n(4))},function(e,t,n){var i=n(2);e.exports=function(e){"use strict";var t="",a=(e=e||{}).options,o=e.cover,r=i.$escape,s=e.icons,l=(arguments[1],function(e){return t+=e}),u=e.getObject;e.theme,e.audio,e.index;return a.fixed?(t+='\n<div class="aplayer-list',a.listFolded&&(t+=" aplayer-list-hide"),t+='"',a.listMaxHeight&&(t+=' style="max-height: ',t+=r(a.listMaxHeight),t+='"'),t+=">\n <ol",a.listMaxHeight&&(t+=' style="max-height: ',t+=r(a.listMaxHeight),t+='"'),t+=">\n ",l(n(1)(u({theme:a.theme,audio:a.audio,index:1}))),t+='\n </ol>\n</div>\n<div class="aplayer-body">\n <div class="aplayer-pic" style="',o&&(t+="background-image: url(&quot;",t+=r(o),t+="&quot;);"),t+="background-color: ",t+=r(a.theme),t+=';">\n <div class="aplayer-button aplayer-play">',t+=s.play,t+='</div>\n </div>\n <div class="aplayer-info" style="display: none;">\n <div class="aplayer-music">\n <span class="aplayer-title">No audio</span>\n <span class="aplayer-author"></span>\n </div>\n <div class="aplayer-controller">\n <div class="aplayer-bar-wrap">\n <div class="aplayer-bar">\n <div class="aplayer-loaded" style="width: 0"></div>\n <div class="aplayer-played" style="width: 0; background: ',t+=r(a.theme),t+=';">\n <span class="aplayer-thumb" style="background: ',t+=r(a.theme),t+=';">\n <span class="aplayer-loading-icon">',t+=s.loading,t+='</span>\n </span>\n </div>\n </div>\n </div>\n <div class="aplayer-time">\n <span class="aplayer-time-inner">\n <span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>\n </span>\n <span class="aplayer-icon aplayer-icon-back">\n ',t+=s.skip,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-play">\n ',t+=s.play,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-forward">\n ',t+=s.skip,t+='\n </span>\n <div class="aplayer-volume-wrap">\n <button type="button" class="aplayer-icon aplayer-icon-volume-down">\n ',t+=s.volumeDown,t+='\n </button>\n <div class="aplayer-volume-bar-wrap">\n <div class="aplayer-volume-bar">\n <div class="aplayer-volume" style="height: 80%; background: ',t+=r(a.theme),t+=';"></div>\n </div>\n </div>\n </div>\n <button type="button" class="aplayer-icon aplayer-icon-order">\n ',"list"===a.order?t+=s.orderList:"random"===a.order&&(t+=s.orderRandom),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-loop">\n ',"one"===a.loop?t+=s.loopOne:"all"===a.loop?t+=s.loopAll:"none"===a.loop&&(t+=s.loopNone),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-menu">\n ',t+=s.menu,t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-lrc">\n ',t+=s.lrc,t+='\n </button>\n </div>\n </div>\n </div>\n <div class="aplayer-notice"></div>\n <div class="aplayer-miniswitcher"><button class="aplayer-icon">',t+=s.right,t+='</button></div>\n</div>\n<div class="aplayer-lrc">\n <div class="aplayer-lrc-contents" style="transform: translateY(0); -webkit-transform: translateY(0);"></div>\n</div>\n'):(t+='\n<div class="aplayer-body">\n <div class="aplayer-pic" style="',o&&(t+="background-image: url(&quot;",t+=r(o),t+="&quot;);"),t+="background-color: ",t+=r(a.theme),t+=';">\n <div class="aplayer-button aplayer-play">',t+=s.play,t+='</div>\n </div>\n <div class="aplayer-info">\n <div class="aplayer-music">\n <span class="aplayer-title">No audio</span>\n <span class="aplayer-author"></span>\n </div>\n <div class="aplayer-lrc">\n <div class="aplayer-lrc-contents" style="transform: translateY(0); -webkit-transform: translateY(0);"></div>\n </div>\n <div class="aplayer-controller">\n <div class="aplayer-bar-wrap">\n <div class="aplayer-bar">\n <div class="aplayer-loaded" style="width: 0"></div>\n <div class="aplayer-played" style="width: 0; background: ',t+=r(a.theme),t+=';">\n <span class="aplayer-thumb" style="background: ',t+=r(a.theme),t+=';">\n <span class="aplayer-loading-icon">',t+=s.loading,t+='</span>\n </span>\n </div>\n </div>\n </div>\n <div class="aplayer-time">\n <span class="aplayer-time-inner">\n <span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>\n </span>\n <span class="aplayer-icon aplayer-icon-back">\n ',t+=s.skip,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-play">\n ',t+=s.play,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-forward">\n ',t+=s.skip,t+='\n </span>\n <div class="aplayer-volume-wrap">\n <button type="button" class="aplayer-icon aplayer-icon-volume-down">\n ',t+=s.volumeDown,t+='\n </button>\n <div class="aplayer-volume-bar-wrap">\n <div class="aplayer-volume-bar">\n <div class="aplayer-volume" style="height: 80%; background: ',t+=r(a.theme),t+=';"></div>\n </div>\n </div>\n </div>\n <button type="button" class="aplayer-icon aplayer-icon-order">\n ',"list"===a.order?t+=s.orderList:"random"===a.order&&(t+=s.orderRandom),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-loop">\n ',"one"===a.loop?t+=s.loopOne:"all"===a.loop?t+=s.loopAll:"none"===a.loop&&(t+=s.loopNone),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-menu">\n ',t+=s.menu,t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-lrc">\n ',t+=s.lrc,t+='\n </button>\n </div>\n </div>\n </div>\n <div class="aplayer-notice"></div>\n <div class="aplayer-miniswitcher"><button class="aplayer-icon">',t+=s.right,t+='</button></div>\n</div>\n<div class="aplayer-list',a.listFolded&&(t+=" aplayer-list-hide"),t+='"',a.listMaxHeight&&(t+=' style="max-height: ',t+=r(a.listMaxHeight),t+='"'),t+=">\n <ol",a.listMaxHeight&&(t+=' style="max-height: ',t+=r(a.listMaxHeight),t+='"'),t+=">\n ",l(n(1)(u({theme:a.theme,audio:a.audio,index:1}))),t+="\n </ol>\n</div>\n"),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=r(n(3)),o=r(n(16));function r(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.options=t.options,this.randomOrder=t.randomOrder,this.init()}return i(e,[{key:"init",value:function(){var e="";this.options.audio.length&&(e="random"===this.options.order?this.options.audio[this.randomOrder[0]].cover:this.options.audio[0].cover),this.container.innerHTML=(0,o.default)({options:this.options,icons:a.default,cover:e,getObject:function(e){return e}}),this.lrc=this.container.querySelector(".aplayer-lrc-contents"),this.lrcWrap=this.container.querySelector(".aplayer-lrc"),this.ptime=this.container.querySelector(".aplayer-ptime"),this.info=this.container.querySelector(".aplayer-info"),this.time=this.container.querySelector(".aplayer-time"),this.barWrap=this.container.querySelector(".aplayer-bar-wrap"),this.button=this.container.querySelector(".aplayer-button"),this.body=this.container.querySelector(".aplayer-body"),this.list=this.container.querySelector(".aplayer-list"),this.listOl=this.container.querySelector(".aplayer-list ol"),this.listCurs=this.container.querySelectorAll(".aplayer-list-cur"),this.played=this.container.querySelector(".aplayer-played"),this.loaded=this.container.querySelector(".aplayer-loaded"),this.thumb=this.container.querySelector(".aplayer-thumb"),this.volume=this.container.querySelector(".aplayer-volume"),this.volumeBar=this.container.querySelector(".aplayer-volume-bar"),this.volumeButton=this.container.querySelector(".aplayer-time button"),this.volumeBarWrap=this.container.querySelector(".aplayer-volume-bar-wrap"),this.loop=this.container.querySelector(".aplayer-icon-loop"),this.order=this.container.querySelector(".aplayer-icon-order"),this.menu=this.container.querySelector(".aplayer-icon-menu"),this.pic=this.container.querySelector(".aplayer-pic"),this.title=this.container.querySelector(".aplayer-title"),this.author=this.container.querySelector(".aplayer-author"),this.dtime=this.container.querySelector(".aplayer-dtime"),this.notice=this.container.querySelector(".aplayer-notice"),this.miniSwitcher=this.container.querySelector(".aplayer-miniswitcher"),this.skipBackButton=this.container.querySelector(".aplayer-icon-back"),this.skipForwardButton=this.container.querySelector(".aplayer-icon-forward"),this.skipPlayButton=this.container.querySelector(".aplayer-icon-play"),this.lrcButton=this.container.querySelector(".aplayer-icon-lrc")}}]),e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={container:e.element||document.getElementsByClassName("aplayer")[0],mini:e.narrow||e.fixed||!1,fixed:!1,autoplay:!1,mutex:!0,lrcType:e.showlrc||e.lrc||0,preload:"auto",theme:"#b7daff",loop:"all",order:"list",volume:.7,listFolded:e.fixed,listMaxHeight:e.listmaxheight||"250px",audio:e.music||[],storageName:"aplayer-setting"};for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);return"[object Array]"!==Object.prototype.toString.call(e.audio)&&(e.audio=[e.audio]),e.audio.map((function(e){return e.name=e.name||e.title||"Audio name",e.artist=e.artist||e.author||"Audio artist",e.cover=e.cover||e.pic,e.type=e.type||"normal",e})),e.audio.length<=1&&"one"===e.loop&&(e.loop="all"),e}},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M26.667 5.333h-21.333c-0 0-0.001 0-0.001 0-1.472 0-2.666 1.194-2.666 2.666 0 0 0 0.001 0 0.001v-0 16c0 0 0 0.001 0 0.001 0 1.472 1.194 2.666 2.666 2.666 0 0 0.001 0 0.001 0h21.333c0 0 0.001 0 0.001 0 1.472 0 2.666-1.194 2.666-2.666 0-0 0-0.001 0-0.001v0-16c0-0 0-0.001 0-0.001 0-1.472-1.194-2.666-2.666-2.666-0 0-0.001 0-0.001 0h0zM5.333 16h5.333v2.667h-5.333v-2.667zM18.667 24h-13.333v-2.667h13.333v2.667zM26.667 24h-5.333v-2.667h5.333v2.667zM26.667 18.667h-13.333v-2.667h13.333v2.667z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M25.468 6.947c-0.326-0.172-0.724-0.151-1.030 0.057l-6.438 4.38v-3.553c0-0.371-0.205-0.71-0.532-0.884-0.326-0.172-0.724-0.151-1.030 0.057l-12 8.164c-0.274 0.186-0.438 0.496-0.438 0.827s0.164 0.641 0.438 0.827l12 8.168c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-3.556l6.438 4.382c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-16.333c0-0.371-0.205-0.71-0.532-0.884z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22 16l-10.105-10.6-1.895 1.987 8.211 8.613-8.211 8.612 1.895 1.988 8.211-8.613z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M4 16c0-6.6 5.4-12 12-12s12 5.4 12 12c0 1.2-0.8 2-2 2s-2-0.8-2-2c0-4.4-3.6-8-8-8s-8 3.6-8 8 3.6 8 8 8c1.2 0 2 0.8 2 2s-0.8 2-2 2c-6.6 0-12-5.4-12-12z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M2.667 7.027l1.707-1.693 22.293 22.293-1.693 1.707-4-4h-11.64v4l-5.333-5.333 5.333-5.333v4h8.973l-8.973-8.973v0.973h-2.667v-3.64l-4-4zM22.667 17.333h2.667v5.573l-2.667-2.667v-2.907zM22.667 6.667v-4l5.333 5.333-5.333 5.333v-4h-10.907l-2.667-2.667h13.573z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 33 32"><path d="M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333zM17.333 20v-8h-1.333l-2.667 1.333v1.333h2v5.333h2z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 22 32"><path d="M20.8 14.4q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2zM1.6 11.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2zM20.8 20.8q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M0.622 18.334h19.54v7.55l11.052-9.412-11.052-9.413v7.549h-19.54v3.725z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22.667 4l7 6-7 6 7 6-7 6v-4h-3.653l-3.76-3.76 2.827-2.827 2.587 2.587h2v-8h-2l-12 12h-6v-4h4.347l12-12h3.653v-4zM2.667 8h6l3.76 3.76-2.827 2.827-2.587-2.587h-4.347v-4z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528zM25.152 16q0 2.72-1.536 5.056t-4 3.36q-0.256 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.704 0.672-1.056 1.024-0.512 1.376-0.8 1.312-0.96 2.048-2.4t0.736-3.104-0.736-3.104-2.048-2.4q-0.352-0.288-1.376-0.8-0.672-0.352-0.672-1.056 0-0.448 0.32-0.8t0.8-0.352q0.224 0 0.48 0.096 2.496 1.056 4 3.36t1.536 5.056zM29.728 16q0 4.096-2.272 7.552t-6.048 5.056q-0.224 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.64 0.704-1.056 0.128-0.064 0.384-0.192t0.416-0.192q0.8-0.448 1.44-0.896 2.208-1.632 3.456-4.064t1.216-5.152-1.216-5.152-3.456-4.064q-0.64-0.448-1.44-0.896-0.128-0.096-0.416-0.192t-0.384-0.192q-0.704-0.416-0.704-1.056 0-0.448 0.32-0.8t0.832-0.352q0.224 0 0.448 0.096 3.776 1.632 6.048 5.056t2.272 7.552z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 17 32"><path d="M14.080 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048zM2.88 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 16 31"><path d="M15.552 15.168q0.448 0.32 0.448 0.832 0 0.448-0.448 0.768l-13.696 8.512q-0.768 0.512-1.312 0.192t-0.544-1.28v-16.448q0-0.96 0.544-1.28t1.312 0.192z"></path></svg>'},function(e,t,n){"use strict";var i,a,o=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(i===setTimeout)return setTimeout(e,0);if((i===r||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:r}catch(e){i=r}try{a="function"==typeof clearTimeout?clearTimeout:s}catch(e){a=s}}();var u,c=[],d=!1,p=-1;function f(){d&&u&&(d=!1,u.length?c=u.concat(c):p=-1,c.length&&h())}function h(){if(!d){var e=l(f);d=!0;for(var t=c.length;t;){for(u=c,c=[];++p<t;)u&&u[p].run();p=-1,t=c.length}u=null,d=!1,function(e){if(a===clearTimeout)return clearTimeout(e);if((a===s||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new g(e,t)),1!==c.length||d||l(h)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";(function(e,t){!function(e,n){if(!e.setImmediate){var i,a,o,r,s,l=1,u={},c=!1,d=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){h(e.data)},i=function(e){o.port2.postMessage(e)}):d&&"onreadystatechange"in d.createElement("script")?(a=d.documentElement,i=function(e){var t=d.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,a.removeChild(t),t=null},a.appendChild(t)}):i=function(e){setTimeout(h,0,e)}:(r="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(r)&&h(+t.data.slice(r.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),i=function(t){e.postMessage(r+t,"*")}),p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var a={callback:e,args:t};return u[l]=a,i(l),l++},p.clearImmediate=f}function f(e){delete u[e]}function h(e){if(c)setTimeout(h,0,e);else{var t=u[e];if(t){c=!0;try{!function(e){var t=e.callback,i=e.args;switch(i.length){case 0:t();break;case 1:t(i[0]);break;case 2:t(i[0],i[1]);break;case 3:t(i[0],i[1],i[2]);break;default:t.apply(n,i)}}(t)}finally{f(e),c=!1}}}}}("undefined"==typeof self?void 0===e?void 0:e:self)}).call(this,n(4),n(34))},function(e,t,n){"use strict";var i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(35),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,n){"use strict";(function(t){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=setTimeout;function a(){}function o(e){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}function r(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var i;try{i=n(e._value)}catch(e){return void l(t.promise,e)}s(t.promise,i)}else(1===e._state?s:l)(t.promise,e._value)}))):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===(void 0===t?"undefined":n(t))||"function"==typeof t)){var i=t.then;if(t instanceof o)return e._state=3,e._value=t,void u(e);if("function"==typeof i)return void c((a=i,r=t,function(){a.apply(r,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(t){l(e,t)}var a,r}function l(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t){var n=!1;try{e((function(e){n||(n=!0,s(t,e))}),(function(e){n||(n=!0,l(t,e))}))}catch(e){if(n)return;n=!0,l(t,e)}}o.prototype.catch=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var n=new this.constructor(a);return r(this,new function(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}(e,t,n)),n},o.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))},o.all=function(e){return new o((function(t,i){if(!e||void 0===e.length)throw new TypeError("Promise.all accepts an array");var a=Array.prototype.slice.call(e);if(0===a.length)return t([]);var o=a.length;function r(e,s){try{if(s&&("object"===(void 0===s?"undefined":n(s))||"function"==typeof s)){var l=s.then;if("function"==typeof l)return void l.call(s,(function(t){r(e,t)}),i)}a[e]=s,0==--o&&t(a)}catch(e){i(e)}}for(var s=0;s<a.length;s++)r(s,a[s])}))},o.resolve=function(e){return e&&"object"===(void 0===e?"undefined":n(e))&&e.constructor===o?e:new o((function(t){t(e)}))},o.reject=function(e){return new o((function(t,n){n(e)}))},o.race=function(e){return new o((function(t,n){for(var i=0,a=e.length;i<a;i++)e[i].then(t,n)}))},o._immediateFn="function"==typeof t&&function(e){t(e)}||function(e){i(e,0)},o._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},e.exports=o}).call(this,n(36).setImmediate)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=m(n(37)),o=m(n(0)),r=m(n(3)),s=m(n(18)),l=m(n(17)),u=m(n(13)),c=m(n(12)),d=m(n(11)),p=m(n(9)),f=m(n(8)),h=m(n(7)),g=m(n(6));function m(e){return e&&e.__esModule?e:{default:e}}var v=[],y=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=(0,s.default)(t),this.container=this.options.container,this.paused=!0,this.playedPromise=a.default.resolve(),this.mode="normal",this.randomOrder=o.default.randomOrder(this.options.audio.length),this.container.classList.add("aplayer"),this.options.lrcType&&!this.options.fixed&&this.container.classList.add("aplayer-withlrc"),this.options.audio.length>1&&this.container.classList.add("aplayer-withlist"),o.default.isMobile&&this.container.classList.add("aplayer-mobile"),this.arrow=this.container.offsetWidth<=300,this.arrow&&this.container.classList.add("aplayer-arrow"),this.container=this.options.container,2===this.options.lrcType||!0===this.options.lrcType)for(var n=this.container.getElementsByClassName("aplayer-lrc-content"),i=0;i<n.length;i++)this.options.audio[i]&&(this.options.audio[i].lrc=n[i].innerHTML);this.template=new l.default({container:this.container,options:this.options,randomOrder:this.randomOrder}),this.options.fixed&&(this.container.classList.add("aplayer-fixed"),this.template.body.style.width=this.template.body.offsetWidth-18+"px"),this.options.mini&&(this.setMode("mini"),this.template.info.style.display="block"),this.template.info.offsetWidth<200&&this.template.time.classList.add("aplayer-time-narrow"),this.options.lrcType&&(this.lrc=new d.default({container:this.template.lrc,async:3===this.options.lrcType,player:this})),this.events=new h.default,this.storage=new c.default(this),this.bar=new u.default(this.template),this.controller=new p.default(this),this.timer=new f.default(this),this.list=new g.default(this),this.initAudio(),this.bindEvents(),"random"===this.options.order?this.list.switch(this.randomOrder[0]):this.list.switch(0),this.options.autoplay&&this.play(),v.push(this)}return i(e,[{key:"initAudio",value:function(){var e=this;this.audio=document.createElement("audio"),this.audio.preload=this.options.preload;for(var t=function(t){e.audio.addEventListener(e.events.audioEvents[t],(function(n){e.events.trigger(e.events.audioEvents[t],n)}))},n=0;n<this.events.audioEvents.length;n++)t(n);this.volume(this.storage.get("volume"),!0)}},{key:"bindEvents",value:function(){var e=this;this.on("play",(function(){e.paused&&e.setUIPlaying()})),this.on("pause",(function(){e.paused||e.setUIPaused()})),this.on("timeupdate",(function(){if(!e.disableTimeupdate){e.bar.set("played",e.audio.currentTime/e.duration,"width"),e.lrc&&e.lrc.update();var t=o.default.secondToTime(e.audio.currentTime);e.template.ptime.innerHTML!==t&&(e.template.ptime.innerHTML=t)}})),this.on("durationchange",(function(){1!==e.duration&&(e.template.dtime.innerHTML=o.default.secondToTime(e.duration))})),this.on("progress",(function(){var t=e.audio.buffered.length?e.audio.buffered.end(e.audio.buffered.length-1)/e.duration:0;e.bar.set("loaded",t,"width")}));var t=void 0;this.on("error",(function(){e.list.audios.length>1?(e.notice("An audio error has occurred, player will skip forward in 2 seconds."),t=setTimeout((function(){e.skipForward(),e.paused||e.play()}),2e3)):1===e.list.audios.length&&e.notice("An audio error has occurred.")})),this.events.on("listswitch",(function(){t&&clearTimeout(t)})),this.on("ended",(function(){"none"===e.options.loop?"list"===e.options.order?e.list.index<e.list.audios.length-1?(e.list.switch((e.list.index+1)%e.list.audios.length),e.play()):(e.list.switch((e.list.index+1)%e.list.audios.length),e.pause()):"random"===e.options.order&&(e.randomOrder.indexOf(e.list.index)<e.randomOrder.length-1?(e.list.switch(e.nextIndex()),e.play()):(e.list.switch(e.nextIndex()),e.pause())):"one"===e.options.loop?(e.list.switch(e.list.index),e.play()):"all"===e.options.loop&&(e.skipForward(),e.play())}))}},{key:"setAudio",value:function(e){this.hls&&(this.hls.destroy(),this.hls=null);var t=e.type;this.options.customAudioType&&this.options.customAudioType[t]?"[object Function]"===Object.prototype.toString.call(this.options.customAudioType[t])?this.options.customAudioType[t](this.audio,e,this):console.error("Illegal customType: "+t):(t&&"auto"!==t||(t=/m3u8(#|\?|$)/i.exec(e.url)?"hls":"normal"),"hls"===t?Hls.isSupported()?(this.hls=new Hls,this.hls.loadSource(e.url),this.hls.attachMedia(this.audio)):this.audio.canPlayType("application/x-mpegURL")||this.audio.canPlayType("application/vnd.apple.mpegURL")?this.audio.src=e.url:this.notice("Error: HLS is not supported."):"normal"===t&&(this.audio.src=e.url)),this.seek(0),this.paused||this.audio.play()}},{key:"theme",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.list.audios[this.list.index].theme||this.options.theme,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.list.index;(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])&&this.list.audios[t]&&(this.list.audios[t].theme=e),this.template.listCurs[t]&&(this.template.listCurs[t].style.backgroundColor=e),t===this.list.index&&(this.template.pic.style.backgroundColor=e,this.template.played.style.background=e,this.template.thumb.style.background=e,this.template.volume.style.background=e)}},{key:"seek",value:function(e){e=Math.max(e,0),e=Math.min(e,this.duration),this.audio.currentTime=e,this.bar.set("played",e/this.duration,"width"),this.template.ptime.innerHTML=o.default.secondToTime(e)}},{key:"setUIPlaying",value:function(){var e=this;if(this.paused&&(this.paused=!1,this.template.button.classList.remove("aplayer-play"),this.template.button.classList.add("aplayer-pause"),this.template.button.innerHTML="",setTimeout((function(){e.template.button.innerHTML=r.default.pause}),100),this.template.skipPlayButton.innerHTML=r.default.pause),this.timer.enable("loading"),this.options.mutex)for(var t=0;t<v.length;t++)this!==v[t]&&v[t].pause()}},{key:"play",value:function(){var e=this;this.setUIPlaying();var t=this.audio.play();t&&t.catch((function(t){console.warn(t),"NotAllowedError"===t.name&&e.setUIPaused()}))}},{key:"setUIPaused",value:function(){var e=this;this.paused||(this.paused=!0,this.template.button.classList.remove("aplayer-pause"),this.template.button.classList.add("aplayer-play"),this.template.button.innerHTML="",setTimeout((function(){e.template.button.innerHTML=r.default.play}),100),this.template.skipPlayButton.innerHTML=r.default.play),this.container.classList.remove("aplayer-loading"),this.timer.disable("loading")}},{key:"pause",value:function(){this.setUIPaused(),this.audio.pause()}},{key:"switchVolumeIcon",value:function(){this.volume()>=.95?this.template.volumeButton.innerHTML=r.default.volumeUp:this.volume()>0?this.template.volumeButton.innerHTML=r.default.volumeDown:this.template.volumeButton.innerHTML=r.default.volumeOff}},{key:"volume",value:function(e,t){return e=parseFloat(e),isNaN(e)||(e=Math.max(e,0),e=Math.min(e,1),this.bar.set("volume",e,"height"),t||this.storage.set("volume",e),this.audio.volume=e,this.audio.muted&&(this.audio.muted=!1),this.switchVolumeIcon()),this.audio.muted?0:this.audio.volume}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"toggle",value:function(){this.template.button.classList.contains("aplayer-play")?this.play():this.template.button.classList.contains("aplayer-pause")&&this.pause()}},{key:"switchAudio",value:function(e){this.list.switch(e)}},{key:"addAudio",value:function(e){this.list.add(e)}},{key:"removeAudio",value:function(e){this.list.remove(e)}},{key:"destroy",value:function(){v.splice(v.indexOf(this),1),this.pause(),this.container.innerHTML="",this.audio.src="",this.timer.destroy(),this.events.trigger("destroy")}},{key:"setMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"normal";this.mode=e,"mini"===e?this.container.classList.add("aplayer-narrow"):"normal"===e&&this.container.classList.remove("aplayer-narrow")}},{key:"notice",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.8;this.template.notice.innerHTML=e,this.template.notice.style.opacity=i,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("noticeshow",{text:e}),n&&(this.noticeTime=setTimeout((function(){t.template.notice.style.opacity=0,t.events.trigger("noticehide")}),n))}},{key:"prevIndex",value:function(){if(!(this.list.audios.length>1))return 0;if("list"===this.options.order)return this.list.index-1<0?this.list.audios.length-1:this.list.index-1;if("random"===this.options.order){var e=this.randomOrder.indexOf(this.list.index);return 0===e?this.randomOrder[this.randomOrder.length-1]:this.randomOrder[e-1]}}},{key:"nextIndex",value:function(){if(!(this.list.audios.length>1))return 0;if("list"===this.options.order)return(this.list.index+1)%this.list.audios.length;if("random"===this.options.order){var e=this.randomOrder.indexOf(this.list.index);return e===this.randomOrder.length-1?this.randomOrder[0]:this.randomOrder[e+1]}}},{key:"skipBack",value:function(){this.list.switch(this.prevIndex())}},{key:"skipForward",value:function(){this.list.switch(this.nextIndex())}},{key:"duration",get:function(){return isNaN(this.audio.duration)?0:this.audio.duration}}],[{key:"version",get:function(){return"1.10.1"}}]),e}();t.default=y},,function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(40);var i,a=n(38),o=(i=a)&&i.__esModule?i:{default:i};console.log("\n %c APlayer v1.10.1 af84efb %c http://aplayer.js.org \n","color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),t.default=o.default}]).default}));if(typeof block_tips=="undefined"){!function(e,t){"function"==typeof define&&define.amd?define([],t(e)):"object"==typeof exports?module.exports=t(e):e.tipsObj=t(e)}("undefined"!=typeof global?global:window||this.window||this.global,(function(e){"use strict";var t={},n="iziToast",i=(document.querySelector("body"),!!/Mobi/.test(navigator.userAgent)),a=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor),o="undefined"!=typeof InstallTrigger,r="ontouchstart"in document.documentElement,s=["bottomRight","bottomLeft","bottomCenter","topRight","topLeft","topCenter","center"],l={info:{color:"blue",icon:"ico-info"},success:{color:"green",icon:"ico-success"},warning:{color:"orange",icon:"ico-warning"},error:{color:"red",icon:"ico-error"},question:{color:"yellow",icon:"ico-question"}},u=568,c={};t.children={};var d={id:null,class:"",title:"",titleColor:"",titleSize:"",titleLineHeight:"",message:"",messageColor:"",messageSize:"",messageLineHeight:"",backgroundColor:"",theme:"light",color:"",icon:"",iconText:"",iconColor:"",iconUrl:null,image:"",imageWidth:50,maxWidth:null,zindex:null,layout:1,balloon:!1,close:!0,closeOnEscape:!1,closeOnClick:!1,displayMode:0,position:"bottomRight",target:"",targetFirst:!0,timeout:5e3,rtl:!1,animateInside:!0,drag:!0,pauseOnHover:!0,resetOnHover:!1,progressBar:!0,progressBarColor:"",progressBarEasing:"linear",overlay:!1,overlayClose:!1,overlayColor:"rgba(0, 0, 0, 0.6)",transitionIn:"fadeInUp",transitionOut:"fadeOut",transitionInMobile:"fadeInUp",transitionOutMobile:"fadeOutDown",buttons:{},inputs:{},onOpening:function(){},onOpened:function(){},onClosing:function(){},onClosed:function(){}};if("remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),"function"!=typeof window.CustomEvent){var p=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n};p.prototype=window.Event.prototype,window.CustomEvent=p}var f=function(e,t,n){if("[object Object]"===Object.prototype.toString.call(e))for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(n,e[i],i,e);else if(e)for(var a=0,o=e.length;o>a;a++)t.call(n,e[a],a,e)},h=function(e,t){var n={};return f(e,(function(t,i){n[i]=e[i]})),f(t,(function(e,i){n[i]=t[i]})),n},g=function(e){var t=document.createDocumentFragment(),n=document.createElement("div");for(n.innerHTML=e;n.firstChild;)t.appendChild(n.firstChild);return t},m=function(e){var t=btoa(encodeURIComponent(e));return t.replace(/=/g,"")},v=function(e){return"#"==e.substring(0,1)||"rgb"==e.substring(0,3)||"hsl"==e.substring(0,3)},y=function(e){try{return btoa(atob(e))==e}catch(e){return!1}},w=function(){return{move:function(e,t,i,r){var s,l=.3,u=180;0!==r&&(e.classList.add(n+"-dragged"),e.style.transform="translateX("+r+"px)",r>0?(s=(u-r)/u,l>s&&t.hide(h(i,{transitionOut:"fadeOutRight",transitionOutMobile:"fadeOutRight"}),e,"drag")):(s=(u+r)/u,l>s&&t.hide(h(i,{transitionOut:"fadeOutLeft",transitionOutMobile:"fadeOutLeft"}),e,"drag")),e.style.opacity=s,l>s&&((a||o)&&(e.style.left=r+"px"),e.parentNode.style.opacity=l,this.stopMoving(e,null)))},startMoving:function(e,t,n,i){i=i||window.event;var a=r?i.touches[0].clientX:i.clientX,o=e.style.transform.replace("px)","");o=o.replace("translateX(","");var s=a-o;n.transitionIn&&e.classList.remove(n.transitionIn),n.transitionInMobile&&e.classList.remove(n.transitionInMobile),e.style.transition="",r?document.ontouchmove=function(i){i.preventDefault(),i=i||window.event;var a=i.touches[0].clientX,o=a-s;w.move(e,t,n,o)}:document.onmousemove=function(i){i.preventDefault(),i=i||window.event;var a=i.clientX,o=a-s;w.move(e,t,n,o)}},stopMoving:function(e,t){r?document.ontouchmove=function(){}:document.onmousemove=function(){},e.style.opacity="",e.style.transform="",e.classList.contains(n+"-dragged")&&(e.classList.remove(n+"-dragged"),e.style.transition="transform 0.4s ease, opacity 0.4s ease",setTimeout((function(){e.style.transition=""}),400))}}}();return t.setSetting=function(e,n,i){t.children[e][n]=i},t.getSetting=function(e,n){return t.children[e][n]},t.destroy=function(){f(document.querySelectorAll("."+n+"-overlay"),(function(e,t){e.remove()})),f(document.querySelectorAll("."+n+"-wrapper"),(function(e,t){e.remove()})),f(document.querySelectorAll("."+n),(function(e,t){e.remove()})),this.children={},document.removeEventListener(n+"-opened",{},!1),document.removeEventListener(n+"-opening",{},!1),document.removeEventListener(n+"-closing",{},!1),document.removeEventListener(n+"-closed",{},!1),document.removeEventListener("keyup",{},!1),c={}},t.settings=function(e){t.destroy(),c=e,d=h(d,e||{})},f(l,(function(e,n){t[n]=function(t){var n=h(c,t||{});n=h(e,n||{}),this.show(n)}})),t.progress=function(e,t,i){var a=this,o=t.getAttribute("data-iziToast-ref"),r=h(this.children[o],e||{}),s=t.querySelector("."+n+"-progressbar div");return{start:function(){"undefined"==typeof r.time.REMAINING&&(t.classList.remove(n+"-reseted"),null!==s&&(s.style.transition="width "+r.timeout+"ms "+r.progressBarEasing,s.style.width="0%"),r.time.START=(new Date).getTime(),r.time.END=r.time.START+r.timeout,r.time.TIMER=setTimeout((function(){clearTimeout(r.time.TIMER),t.classList.contains(n+"-closing")||(a.hide(r,t,"timeout"),"function"==typeof i&&i.apply(a))}),r.timeout),a.setSetting(o,"time",r.time))},pause:function(){if("undefined"!=typeof r.time.START&&!t.classList.contains(n+"-paused")&&!t.classList.contains(n+"-reseted")){if(t.classList.add(n+"-paused"),r.time.REMAINING=r.time.END-(new Date).getTime(),clearTimeout(r.time.TIMER),a.setSetting(o,"time",r.time),null!==s){var e=window.getComputedStyle(s),l=e.getPropertyValue("width");s.style.transition="none",s.style.width=l}"function"==typeof i&&setTimeout((function(){i.apply(a)}),10)}},resume:function(){"undefined"!=typeof r.time.REMAINING?(t.classList.remove(n+"-paused"),null!==s&&(s.style.transition="width "+r.time.REMAINING+"ms "+r.progressBarEasing,s.style.width="0%"),r.time.END=(new Date).getTime()+r.time.REMAINING,r.time.TIMER=setTimeout((function(){clearTimeout(r.time.TIMER),t.classList.contains(n+"-closing")||(a.hide(r,t,"timeout"),"function"==typeof i&&i.apply(a))}),r.time.REMAINING),a.setSetting(o,"time",r.time)):this.start()},reset:function(){clearTimeout(r.time.TIMER),delete r.time.REMAINING,a.setSetting(o,"time",r.time),t.classList.add(n+"-reseted"),t.classList.remove(n+"-paused"),null!==s&&(s.style.transition="none",s.style.width="100%"),"function"==typeof i&&setTimeout((function(){i.apply(a)}),10)}}},t.hide=function(e,t,a){"object"!=typeof t&&(t=document.querySelector(t));var o=this,r=h(this.children[t.getAttribute("data-iziToast-ref")],e||{});r.closedBy=a||null,delete r.time.REMAINING,t.classList.add(n+"-closing"),function(){var e=document.querySelector("."+n+"-overlay");if(null!==e){var t=e.getAttribute("data-iziToast-ref");t=t.split(",");var i=t.indexOf(String(r.ref));-1!==i&&t.splice(i,1),e.setAttribute("data-iziToast-ref",t.join()),0===t.length&&(e.classList.remove("fadeIn"),e.classList.add("fadeOut"),setTimeout((function(){e.remove()}),700))}}(),r.transitionIn&&t.classList.remove(r.transitionIn),r.transitionInMobile&&t.classList.remove(r.transitionInMobile),i||window.innerWidth<=u?r.transitionOutMobile&&t.classList.add(r.transitionOutMobile):r.transitionOut&&t.classList.add(r.transitionOut);var s=t.parentNode.offsetHeight;t.parentNode.style.height=s+"px",t.style.pointerEvents="none",(!i||window.innerWidth>u)&&(t.parentNode.style.transitionDelay="0.2s");try{var l=new CustomEvent(n+"-closing",{detail:r,bubbles:!0,cancelable:!0});document.dispatchEvent(l)}catch(e){console.warn(e)}setTimeout((function(){t.parentNode.style.height="0px",t.parentNode.style.overflow="",setTimeout((function(){delete o.children[r.ref],t.parentNode.remove();try{var e=new CustomEvent(n+"-closed",{detail:r,bubbles:!0,cancelable:!0});document.dispatchEvent(e)}catch(e){console.warn(e)}"undefined"!=typeof r.onClosed&&r.onClosed.apply(null,[r,t,a])}),1e3)}),200),"undefined"!=typeof r.onClosing&&r.onClosing.apply(null,[r,t,a])},t.show=function(e){var a=this,o=h(c,e||{});if(o=h(d,o),o.time={},null===o.id&&(o.id=m(o.title+o.message+o.color)),1===o.displayMode||"once"==o.displayMode)try{if(document.querySelectorAll("."+n+"#"+o.id).length>0)return!1}catch(e){console.warn("["+n+"] Could not find an element with this selector: #"+o.id+". Try to set an valid id.")}if(2===o.displayMode||"replace"==o.displayMode)try{f(document.querySelectorAll("."+n+"#"+o.id),(function(e,t){a.hide(o,e,"replaced")}))}catch(e){console.warn("["+n+"] Could not find an element with this selector: #"+o.id+". Try to set an valid id.")}o.ref=(new Date).getTime()+Math.floor(1e7*Math.random()+1),t.children[o.ref]=o;var l={body:document.querySelector("body"),overlay:document.createElement("div"),toast:document.createElement("div"),toastBody:document.createElement("div"),toastTexts:document.createElement("div"),toastCapsule:document.createElement("div"),cover:document.createElement("div"),buttons:document.createElement("div"),inputs:document.createElement("div"),icon:o.iconUrl?document.createElement("img"):document.createElement("i"),wrapper:null};l.toast.setAttribute("data-iziToast-ref",o.ref),l.toast.appendChild(l.toastBody),l.toastCapsule.appendChild(l.toast),function(){if(l.toast.classList.add(n),l.toast.classList.add(n+"-opening"),l.toastCapsule.classList.add(n+"-capsule"),l.toastBody.classList.add(n+"-body"),l.toastTexts.classList.add(n+"-texts"),i||window.innerWidth<=u?o.transitionInMobile&&l.toast.classList.add(o.transitionInMobile):o.transitionIn&&l.toast.classList.add(o.transitionIn),o["class"]){var e=o["class"].split(" ");f(e,(function(e,t){l.toast.classList.add(e)}))}o.id&&(l.toast.id=o.id),o.rtl&&(l.toast.classList.add(n+"-rtl"),l.toast.setAttribute("dir","rtl")),o.layout>1&&l.toast.classList.add(n+"-layout"+o.layout),o.balloon&&l.toast.classList.add(n+"-balloon"),o.maxWidth&&(isNaN(o.maxWidth)?l.toast.style.maxWidth=o.maxWidth:l.toast.style.maxWidth=o.maxWidth+"px"),""===o.theme&&"light"===o.theme||l.toast.classList.add(n+"-theme-"+o.theme),o.color&&(v(o.color)?l.toast.style.background=o.color:l.toast.classList.add(n+"-color-"+o.color)),o.backgroundColor&&(l.toast.style.background=o.backgroundColor,o.balloon&&(l.toast.style.borderColor=o.backgroundColor))}(),function(){o.image&&(l.cover.classList.add(n+"-cover"),l.cover.style.width=o.imageWidth+"px",y(o.image.replace(/ /g,""))?l.cover.style.backgroundImage="url(data:image/png;base64,"+o.image.replace(/ /g,"")+")":l.cover.style.backgroundImage="url("+o.image+")",o.rtl?l.toastBody.style.marginRight=o.imageWidth+10+"px":l.toastBody.style.marginLeft=o.imageWidth+10+"px",l.toast.appendChild(l.cover))}(),function(){o.close?(l.buttonClose=document.createElement("button"),l.buttonClose.type="button",l.buttonClose.classList.add(n+"-close"),l.buttonClose.addEventListener("click",(function(e){e.target;a.hide(o,l.toast,"button")})),l.toast.appendChild(l.buttonClose)):o.rtl?l.toast.style.paddingLeft="18px":l.toast.style.paddingRight="18px"}(),function(){o.progressBar&&(l.progressBar=document.createElement("div"),l.progressBarDiv=document.createElement("div"),l.progressBar.classList.add(n+"-progressbar"),l.progressBarDiv.style.background=o.progressBarColor,l.progressBar.appendChild(l.progressBarDiv),l.toast.appendChild(l.progressBar)),o.timeout&&(o.pauseOnHover&&!o.resetOnHover&&(l.toast.addEventListener("mouseenter",(function(e){a.progress(o,l.toast).pause()})),l.toast.addEventListener("mouseleave",(function(e){a.progress(o,l.toast).resume()}))),o.resetOnHover&&(l.toast.addEventListener("mouseenter",(function(e){a.progress(o,l.toast).reset()})),l.toast.addEventListener("mouseleave",(function(e){a.progress(o,l.toast).start()}))))}(),function(){o.iconUrl?(l.icon.setAttribute("class",n+"-icon"),l.icon.setAttribute("src",o.iconUrl)):o.icon&&(l.icon.setAttribute("class",n+"-icon "+o.icon),o.iconText&&l.icon.appendChild(document.createTextNode(o.iconText)),o.iconColor&&(l.icon.style.color=o.iconColor)),(o.icon||o.iconUrl)&&(o.rtl?l.toastBody.style.paddingRight="33px":l.toastBody.style.paddingLeft="33px",l.toastBody.appendChild(l.icon))}(),function(){o.title.length>0&&(l.strong=document.createElement("strong"),l.strong.classList.add(n+"-title"),l.strong.appendChild(g(o.title)),l.toastTexts.appendChild(l.strong),o.titleColor&&(l.strong.style.color=o.titleColor),o.titleSize&&(isNaN(o.titleSize)?l.strong.style.fontSize=o.titleSize:l.strong.style.fontSize=o.titleSize+"px"),o.titleLineHeight&&(isNaN(o.titleSize)?l.strong.style.lineHeight=o.titleLineHeight:l.strong.style.lineHeight=o.titleLineHeight+"px")),o.message.length>0&&(l.p=document.createElement("p"),l.p.classList.add(n+"-message"),l.p.appendChild(g(o.message)),l.toastTexts.appendChild(l.p),o.messageColor&&(l.p.style.color=o.messageColor),o.messageSize&&(isNaN(o.titleSize)?l.p.style.fontSize=o.messageSize:l.p.style.fontSize=o.messageSize+"px"),o.messageLineHeight&&(isNaN(o.titleSize)?l.p.style.lineHeight=o.messageLineHeight:l.p.style.lineHeight=o.messageLineHeight+"px")),o.title.length>0&&o.message.length>0&&(o.rtl?l.strong.style.marginLeft="10px":2===o.layout||o.rtl||(l.strong.style.marginRight="10px"))}(),l.toastBody.appendChild(l.toastTexts);var p;!function(){o.inputs.length>0&&(l.inputs.classList.add(n+"-inputs"),f(o.inputs,(function(e,t){l.inputs.appendChild(g(e[0])),p=l.inputs.childNodes,p[t].classList.add(n+"-inputs-child"),e[3]&&setTimeout((function(){p[t].focus()}),300),p[t].addEventListener(e[1],(function(t){var n=e[2];return n(a,l.toast,this,t)}))})),l.toastBody.appendChild(l.inputs))}(),function(){o.buttons.length>0&&(l.buttons.classList.add(n+"-buttons"),f(o.buttons,(function(e,t){l.buttons.appendChild(g(e[0]));var i=l.buttons.childNodes;i[t].classList.add(n+"-buttons-child"),e[2]&&setTimeout((function(){i[t].focus()}),300),i[t].addEventListener("click",(function(t){t.preventDefault();var n=e[1];return n(a,l.toast,this,t,p)}))}))),l.toastBody.appendChild(l.buttons)}(),o.message.length>0&&(o.inputs.length>0||o.buttons.length>0)&&(l.p.style.marginBottom="0"),(o.inputs.length>0||o.buttons.length>0)&&(o.rtl?l.toastTexts.style.marginLeft="10px":l.toastTexts.style.marginRight="10px",o.inputs.length>0&&o.buttons.length>0&&(o.rtl?l.inputs.style.marginLeft="8px":l.inputs.style.marginRight="8px")),function(){l.toastCapsule.style.visibility="hidden",setTimeout((function(){var e=l.toast.offsetHeight,t=l.toast.currentStyle||window.getComputedStyle(l.toast),n=t.marginTop;n=n.split("px"),n=parseInt(n[0]);var i=t.marginBottom;i=i.split("px"),i=parseInt(i[0]),l.toastCapsule.style.visibility="",l.toastCapsule.style.height=e+i+n+"px",setTimeout((function(){l.toastCapsule.style.height="auto",o.target&&(l.toastCapsule.style.overflow="visible")}),500),o.timeout&&a.progress(o,l.toast).start()}),100)}(),function(){var e=o.position;if(o.target)l.wrapper=document.querySelector(o.target),l.wrapper.classList.add(n+"-target"),o.targetFirst?l.wrapper.insertBefore(l.toastCapsule,l.wrapper.firstChild):l.wrapper.appendChild(l.toastCapsule);else{if(-1==s.indexOf(o.position))return void console.warn("["+n+"] Incorrect position.\nIt can be › "+s);e=i||window.innerWidth<=u?"bottomLeft"==o.position||"bottomRight"==o.position||"bottomCenter"==o.position?n+"-wrapper-bottomCenter":"topLeft"==o.position||"topRight"==o.position||"topCenter"==o.position?n+"-wrapper-topCenter":n+"-wrapper-center":n+"-wrapper-"+e,l.wrapper=document.querySelector("."+n+"-wrapper."+e),l.wrapper||(l.wrapper=document.createElement("div"),l.wrapper.classList.add(n+"-wrapper"),l.wrapper.classList.add(e),document.body.appendChild(l.wrapper)),"topLeft"==o.position||"topCenter"==o.position||"topRight"==o.position?l.wrapper.insertBefore(l.toastCapsule,l.wrapper.firstChild):l.wrapper.appendChild(l.toastCapsule)}isNaN(o.zindex)?console.warn("["+n+"] Invalid zIndex."):l.wrapper.style.zIndex=o.zindex}(),function(){o.overlay&&(null!==document.querySelector("."+n+"-overlay.fadeIn")?(l.overlay=document.querySelector("."+n+"-overlay"),l.overlay.setAttribute("data-iziToast-ref",l.overlay.getAttribute("data-iziToast-ref")+","+o.ref),isNaN(o.zindex)||null===o.zindex||(l.overlay.style.zIndex=o.zindex-1)):(l.overlay.classList.add(n+"-overlay"),l.overlay.classList.add("fadeIn"),l.overlay.style.background=o.overlayColor,l.overlay.setAttribute("data-iziToast-ref",o.ref),isNaN(o.zindex)||null===o.zindex||(l.overlay.style.zIndex=o.zindex-1),document.querySelector("body").appendChild(l.overlay)),o.overlayClose?(l.overlay.removeEventListener("click",{}),l.overlay.addEventListener("click",(function(e){a.hide(o,l.toast,"overlay")}))):l.overlay.removeEventListener("click",{}))}(),function(){if(o.animateInside){l.toast.classList.add(n+"-animateInside");var e=[200,100,300];"bounceInLeft"!=o.transitionIn&&"bounceInRight"!=o.transitionIn||(e=[400,200,400]),o.title.length>0&&setTimeout((function(){l.strong.classList.add("slideIn")}),e[0]),o.message.length>0&&setTimeout((function(){l.p.classList.add("slideIn")}),e[1]),(o.icon||o.iconUrl)&&setTimeout((function(){l.icon.classList.add("revealIn")}),e[2]);var t=150;o.buttons.length>0&&l.buttons&&setTimeout((function(){f(l.buttons.childNodes,(function(e,n){setTimeout((function(){e.classList.add("revealIn")}),t),t+=150}))}),o.inputs.length>0?150:0),o.inputs.length>0&&l.inputs&&(t=150,f(l.inputs.childNodes,(function(e,n){setTimeout((function(){e.classList.add("revealIn")}),t),t+=150})))}}(),o.onOpening.apply(null,[o,l.toast]);try{var b=new CustomEvent(n+"-opening",{detail:o,bubbles:!0,cancelable:!0});document.dispatchEvent(b)}catch(e){console.warn(e)}setTimeout((function(){l.toast.classList.remove(n+"-opening"),l.toast.classList.add(n+"-opened");try{var e=new CustomEvent(n+"-opened",{detail:o,bubbles:!0,cancelable:!0});document.dispatchEvent(e)}catch(e){console.warn(e)}o.onOpened.apply(null,[o,l.toast])}),1e3),o.drag&&(r?(l.toast.addEventListener("touchstart",(function(e){w.startMoving(this,a,o,e)}),!1),l.toast.addEventListener("touchend",(function(e){w.stopMoving(this,e)}),!1)):(l.toast.addEventListener("mousedown",(function(e){e.preventDefault(),w.startMoving(this,a,o,e)}),!1),l.toast.addEventListener("mouseup",(function(e){e.preventDefault(),w.stopMoving(this,e)}),!1))),o.closeOnEscape&&document.addEventListener("keyup",(function(e){e=e||window.event,27==e.keyCode&&a.hide(o,l.toast,"esc")})),o.closeOnClick&&l.toast.addEventListener("click",(function(e){a.hide(o,l.toast,"toast")})),a.toast=l.toast},t}))}if(typeof block_md5=="undefined")document.write('<script src="https://cdn.yimian.xyz/ushio-js/jquery.md5.min.js"><\/script>');$("head").append('<meta charset="UTF-8">');$("title").remove();$("head").append("<title>"+page.title+"</title>");$('[rel="icon"]').remove();$("head").append('<link rel="icon" type="image/x-icon" href="'+page.icon+'">');if(!$('[name="viewport"]').length&&typeof block_viewport=="undefined"){$("head").append('<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">')}if(!$('[name="keywords"]').length){$("head").append('<meta name="keywords" content="Ushio,iotcat,yimian">')}if(!$('[name="description"]').length){$("head").append('<meta name="description" content="小汐の页">')}function getHiddenProp(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++){if(e[t]+"Hidden"in document)return e[t]+"Hidden"}return null}function getVisibilityState(){var e=["webkit","moz","ms","o"];if("visibilityState"in document)return"visibilityState";for(var t=0;t<e.length;t++){if(e[t]+"VisibilityState"in document)return e[t]+"VisibilityState"}return null}if(getHiddenProp()){var evtname=getHiddenProp().replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(evtname,(function(){if(document[getVisibilityState()]=="hidden"){page.title=document.title;session.close();page.window=false;log_update();var e=Math.random()*100;if(e<30){if(page.tran.getLang()=="zh")document.title="啊咧(⊙0⊙)";else document.title="Aha (⊙0⊙)"}else if(e<55){if(page.tran.getLang()=="zh")document.title="快来戳我呀( ´∀`)σ";else document.title="Click Me ( ´∀`)σ"}else if(e<75){if(page.tran.getLang()=="zh")document.title="躲起来(´・ω・`)";else document.title="Hiding(´・ω・`)"}else{if(page.tran.getLang()=="zh")document.title="哎呦,页面崩掉了吗(>﹏<)";else document.title="Wow, page crashed(>﹏<)"}setTimeout("document.title = page.title",2400);clearInterval(page.TimerObj);page.TimerObj=null}if(document[getVisibilityState()]=="visible"){document.title=page.title;page.window=true;page.LastWindowOpenTime=(new Date).valueOf();session.open();if(page.TimerObj==null)page.TimerObj=setInterval("page.Timer++",1e3)}}),false)}async function log_ini(){page.fp=await fp;page.fpObj=await fp_details;page.fpObj.forEach(e=>{page[e.key]=e.value});$.get("https://log.yimian.xyz/iis.php",{fp:page.fp,url:page.url,lang:page.language,timezone:page.timezone,platform:page.platform,ram:page.deviceMemory,screen:page.screenResolution,userAgent:page.userAgent,webgl:page.webglVendorAndRenderer},(function(e){page.sid=JSON.parse(e).sid;page.ip=JSON.parse(e).ip;who()}));updateHref()}function who(){$.get("https://auth.yimian.xyz/who.php?mask="+page.mask+"&fp="+page.fp+"&ip="+page.ip,(function(e){if(e.code==200){session_ini_pre()}else{window.location.href="https://auth.yimian.xyz/?from="+window.btoa(page.url);throw new Error("ushio::Redirect to Ushio-auth!")}}))}async function session_ini_pre(){if(typeof WebSocket!="undefined"){session_websocket_ini()}else{session_ajax_ini()}if(session.status)drawBrand();else setTimeout(drawBrand,3300)}function log_update(){$.get("https://log.yimian.xyz/iis.php",{sid:page.sid,sessiontime:page.Timer})}setTimeout("log_ini();",20);function updateHref(){if(page.url.indexOf("?from=")!=-1)window.history.replaceState(null,"ushio",page.url.substr(0,page.url.indexOf("?from=")));if(page.url.indexOf("&from=")!=-1)window.history.replaceState(null,"ushio",page.url.substr(0,page.url.indexOf("&from=")));var e=$(document).find("a");for(var t in e){var n=e.eq(t).attr("href");var i=e.eq(t).attr("id");if(i)i=i.substr(0,5);if(n!=null){if(n.indexOf("?")==-1&&i=="ushio")e.eq(t).attr("href",n+(page.host?"?from=https://"+page.host:""));else if(i=="ushio")e.eq(t).attr("href",n+(page.host?"&from=https://"+page.host:""))}}}function session_websocket_ini(){page.ws=new ReconnectingWebSocket("wss://session.yimian.xyz/websocket/?fp="+page.fp+"&mask="+page.mask+"&flag="+page.flag);page.ws.maxReconnectInterval=60;page.ws.onopen=function(e){if(session.status===false)console.log("Ushio - Session Connected!!");page.ws.send("get");session.set=function(e,t){page.session[e]=t;page.session["LastOperateTime"]=(new Date).valueOf();page.ws.send('{"key":"'+e+'", "val": "'+t+'", "t":'+page.session.LastOperateTime+"}");page.ws.send("get");if(session.status)return true;else return false};session.get=function(e){page.ws.send("get");return page.session[e]};session.del=function(e){delete page.session[e];page.session["LastOperateTime"]=(new Date).valueOf();page.ws.send('{"del":"'+e+'", "t":"'+page.session["LastOperateTime"]+'"}');page.ws.send("get");if(session.status)return true;else return false};session.close=function(){try{page.ws.close()}catch(e){}session.status=false;delete page.ws};session.open=function(){session_websocket_ini()}};page.ws.onmessage=function(e){page.session=JSON.parse(e.data);session.method="WebSocket";session.status=true};page.ws.onerror=function(e){console.log("Ushio - Session Error::"+JSON.stringify(e));session.status=false};page.ws.onclose=function(){console.log("Ushio - Session Connection Lost!!");session.status=false}}function session_ajax_ini(e){var t=["",""];if(e){t=["php/",".php"]}try{session.close();delete session.set;delete session.get;delete session.del;delete session.open;delete session.close}catch(e){}session.set=function(n,i){page.session[n]=i;page.session["LastOperateTime"]=(new Date).valueOf();$.get("https://session.yimian.xyz/"+t[0]+"set"+t[1]+"?fp="+page.fp+"&flag="+page.flag+"&mask="+page.mask+"&key="+n+"&val="+i+"&t="+page.session.LastOperateTime).fail((function(){session.status=false;console.log("Ushio - Ajax Session Connection Lost!!")}));$.get("https://session.yimian.xyz/"+t[0]+"get"+t[1]+"?fp="+page.fp+"&flag="+page.flag+"&mask="+page.mask,(function(t){if(e)t=JSON.parse(t);page.session=t;session.status=true;session.method="ajax"})).fail((function(){session.status=false;console.log("Ushio - Ajax Session Connection Lost!!")}));if(session.status)return true;else return false};session.get=function(n){$.get("https://session.yimian.xyz/"+t[0]+"get"+t[1]+"?fp="+page.fp+"&flag="+page.flag+"&mask="+page.mask,(function(t){if(e)t=JSON.parse(t);page.session=t;session.status=true;session.method="ajax"})).fail((function(){session.status=false;console.log("Ushio - Ajax Session Connection Lost!!")}));return page.session[n]};session.del=function(n){delete page.session[n];page.session["LastOperateTime"]=(new Date).valueOf();$.get("https://session.yimian.xyz/"+t[0]+"del"+t[1]+"?fp="+page.fp+"&flag="+page.flag+"&mask="+page.mask+"&del="+n+"&t="+page.session.LastOperateTime).fail((function(){session.status=false;console.log("Ushio - Ajax Session Connection Lost!!")}));$.get("https://session.yimian.xyz/"+t[0]+"get"+t[1]+"?fp="+page.fp+"&flag="+page.flag+"&mask="+page.mask,(function(t){if(e)t=JSON.parse(t);page.session=t;session.status=true;session.method="ajax"})).fail((function(){session.status=false;console.log("Ushio - Ajax Session Connection Lost!!")}));if(session.status)return true;else return false};session.close=function(){console.log("Ushio - Session Connection Lost!!");session.status=false};session.open=function(){session.get("LastOperateTime")};$.get("https://session.yimian.xyz/"+t[0]+"get"+t[1]+"?fp="+page.fp+"&flag="+page.flag+"&mask="+page.mask,(function(t){if(e)t=JSON.parse(t);page.session=t;if(session.status===false)console.log("Ushio - Session Connected!!");session.status=true}))}var session_ini=function(e,t,n){if(!t||n!=session.get("hash")){e();return}setTimeout(session_ini,500,e,--t,n)};var session_wait=function(e){var t=session.get("hash");session_ini(e,0,t)};session.onload((function(){console.log("Ushio - session loaded.. "+((new Date).valueOf()/1e3-page.openTime)+"s")}));session.onload((function(){if(typeof block_aplayer=="undefined"||session.get("aplayer/status")=="play"){player_ini()}}));session.onload((function(){var e=false;if(typeof session.get("group")=="undefined"){e=true;if(page.tran.getLang()=="zh")alert("Ushio-session没有您的记录,将登出...");else alert("Ushio-session do not have your record, Ushio will logout..");window.location.href="https://auth.yimian.xyz/checkout.php?from="+btoa(page.url);throw new Error("ushio::Redirect to Ushio-Logout!")}if(page.auth.indexOf("any")!=-1){if(session.get("group")=="anonymous"){e=true;if(page.tran.getLang()=="zh")alert("此页面需要您的联系方式,将跳转至登录页面...");else alert("This page needs your contact information..");window.location.href="https://login.yimian.xyz/?from="+page.url;throw new Error("ushio::Redirect to Ushio-Login!")}}else{page.auth.forEach((function(t){if(!e){if(!session.get(t)){e=true;if(page.tran.getLang()=="zh")alert("此页面需要您的"+t+",将跳转至登录页面...");else alert("This page needs your "+t+"..");window.location.href="https://login.yimian.xyz/?require="+t+"&from="+page.url;throw new Error("ushio::Redirect to Ushio-Login!")}}}))}}));session.onload((function(){var e=session.get("group");if(page.group.length){var t=0;page.group.forEach((function(n,i){if(e.indexOf(n)!=-1){t=i+1}}));if(!t){if(page.tran.getLang()=="zh")alert("本页面需要"+page.group[t]+"权限,您被拒绝访问。如有疑惑请联系站长i@iotcat.me!");else alert("You are denied to access this page because you do not have "+page.group[t]+" permission. Please contact i@iotcat.me for further information!");window.location.href="https://guide.yimian.xyz/"}}}));session.onload((function(){if(typeof lang!="undefined"&&lang.length>0){var e=lang[0];if(session.get("lang")){page.lang=[(navigator.language||navigator.userLanguage).substr(0,2)];page.lang=page.lang.concat(JSON.parse(atob(session.get("lang"))));cookie.set("_lang",session.get("lang"))}else{cookie.del("_lang")}if(session.get("nolang")){page.nolang=JSON.parse(atob(session.get("nolang")))}for(var t=0;t<lang.length;t++){if(page.lang.indexOf(lang[t])!=-1&&page.nolang.indexOf(lang[t])==-1){e=lang[t];break}}page.tran.setLang(e);var n=()=>{if(page.tran.getLang()=="zh"){tips.warning({title:"Warnning",message:"This page is only available in Chinese~"})}if(page.tran.getLang()=="en"){tips.warning({title:"警告",message:"此页面仅提供英文版本~"})}};var i=function(e,t,i,o,r){tips.question({timeout:2e4,close:false,overlay:true,id:"question",zindex:999,title:e,message:t,position:"center",buttons:[["<button><b>"+i+"</b></button>",function(e,t){var n=[];if(session.get("lang")){n=n.concat(JSON.parse(atob(session.get("lang"))))}n.push(r);session.set("lang",btoa(JSON.stringify(n)));page.tran.setLang(r);page.lang.push(r);e.hide({transitionOut:"fadeOut"},t,"button")},true],["<button>"+o+"</button>",function(e,t){var i=[];if(session.get("nolang")){i=i.concat(JSON.parse(atob(session.get("nolang"))))}i.push(r);session.set("nolang",btoa(JSON.stringify(i)));page.nolang=i;if(lang.every(e=>page.nolang.indexOf(e)!=-1)){n()}e.hide({transitionOut:"fadeOut"},t,"button");a()}]]})};var a=()=>{for(var e=0;e<lang.length;e++){if(page.nolang.indexOf(lang[e])==-1&&page.lang.indexOf(lang[e])==-1){if(lang[e]=="zh"){i("Hey","Could you read Chinese? 您会中文吗?","Yes 是","No 否","zh")}if(lang[e]=="en"){i("Hey","Could you read English? 您会英语吗?","Yes 是","No 否","en")}break}}};if(page.nolang.indexOf(page.tran.getLang())==-1&&page.lang.indexOf(page.tran.getLang())==-1||page.nolang.indexOf(lang[0])==-1&&page.lang.indexOf(lang[0])==-1){a()}if(lang.every(e=>page.nolang.indexOf(e)!=-1)){n()}}}));function player_ini(){$.post("https://api.yimian.xyz/msc/?type=single&id="+(session.get("aplayer/playing")==undefined?"477215840":session.get("aplayer/playing"))+"&limit=15&random=true",(function(e){$.post("https://api.yimian.xyz/msc/?type=playlist&id="+(typeof aplayer_playlist=="undefined"?"808097971":aplayer_playlist)+"&limit=14&random=true",(function(t){t.unshift(e);$("body").append('<div class="aplayer-footer"><div class="ap-f" id="ap-f"></div></div>');var n=new APlayer({element:document.getElementById("ap-f"),autoplay:false,fixed:true,loop:"all",order:"list",listFolded:true,showlrc:3,theme:"#00CBFF",listmaxheight:"200px",music:t});window.aplayers||(window.aplayers=[]),window.aplayers.push(n);window.aplayers[0].lrc.hide();if(session.get("aplayer/status")=="play"){window.aplayers[0].play();if(window.aplayers[0].audio.paused){window.aplayers[0].notice("Click Here",5e3,.8);if(page.tran.getLang()=="zh")tips.info({message:"戳左下角继续音乐哦(^_−)☆"});else tips.info({message:"Click bottom left conner to continue music (^_−)☆"})}}window.aplayers[0].on("play",(function(){session.set("aplayer/status","play");window.aplayers[0].lrc.show();if(window.aplayers[0].firstTime===undefined){adjustSeek();window.aplayers[0].firstTime=false}}));window.aplayers[0].on("pause",(function(){session.set("aplayer/status","pause");window.aplayers[0].lrc.hide()}));window.aplayers[0].on("listswitch",(function(e){session.set("aplayer/playing",window.aplayers[0].list.audios[e.index].id)}));setInterval((function(){try{if(!window.aplayers[0].audio.paused)session.set("aplayer/seek",window.aplayers[0].audio.currentTime)}catch(e){}}),5e3)}))}))}function adjustSeek(){if(session.get("aplayer/seek")!=undefined&&window.aplayers[0].audio.currentTime<session.get("aplayer/seek")){window.aplayers[0].seek(session.get("aplayer/seek"));setTimeout(adjustSeek,600)}}var tips={show:function(e){tips.checkParams(e);if(e.title===undefined){e.title="iotcat"}if(e.image===undefined){e.image="https://cdn.yimian.xyz/img/head/head_100.png"}if(e.theme===undefined){e.theme="dark"}tipsObj.show(e)},info:function(e){tips.checkParams(e);if(e.title===undefined){e.title="info"}tipsObj.info(e)},warning:function(e){tips.checkParams(e);if(e.title===undefined){e.title="warning"}tipsObj.warning(e)},success:function(e){tips.checkParams(e);if(e.title===undefined){e.title="success"}tipsObj.success(e)},error:function(e){tips.checkParams(e);if(e.title===undefined){e.title="error"}tipsObj.error(e)},question:function(e){tips.checkParams(e);if(e.title===undefined){e.title="question"}tipsObj.question(e)},checkParams:function(e){if(e.position===undefined){e.position="topCenter"}if(e.message===undefined){e.message="No Content!!"}if(e.progressBarColor===undefined){e.progressBarColor="#"+("00000"+(Math.random()*16777216<<0).toString(16)).substr(-6)}if(e.imageWidth===undefined){e.imageWidth=55}if(e.progressBarEasing===undefined){e.progressBarEasing="ease"}}};page.showUshio=function(){session.onload((function(){if(page.tran.getLang()=="zh"){var e="Ushio菜单";var t="导航";var n="主页";var i="源码";var a="账户设置";var o="关闭";var r="访客";if(session.get("group")=="anonymous"){a="登录/注册"}if(session.get("nickname")){r=session.get("nickname")}var s="你好,"+r;if(typeof lang!="undefined"&&lang.length>0){s+="<br/><br/>此页面提供以下语言版本,您可以点击切换:";lang.forEach((function(e){s+=' <button onClick="page.tran.setLang(`'+e+'`);tips.info({message: `语言切换成功!`});">'+e+"</button>, "}))}}else{var e="Ushio Menu";var t="Guide";var n="Cool";var i="Github";var a="Account Setting";var o="Close";var r="Visitor";if(session.get("group")=="anonymous"){a="Login/Register"}if(session.get("nickname")){r=session.get("nickname")}var s="Hi, "+r;if(typeof lang!="undefined"&&lang.length>0){s+="<br/><br/>This page provides these language versions, you may click them to switch:";lang.forEach((function(e){s+=' <button onClick="page.tran.setLang(`'+e+'`);tips.info({message: `Switch successfully!!`});">'+e+"</button>, "}))}}s+="<br/><br/>";tips.question({timeout:3e4,close:false,overlay:true,id:"ushio-selection",zindex:999,title:e,color:"#80cbff",message:s,position:"center",buttons:[["<button>"+t+"</button>",function(e,t){window.location.href="https://guide.yimian.xyz/";e.hide({transitionOut:"fadeOut"},t,"button")},true],["<button>"+n+"</button>",function(e,t){window.location.href="https://ushio.cool/";e.hide({transitionOut:"fadeOut"},t,"button")},true],["<button>"+i+"</button>",function(e,t){window.location.href="https://github.yimian.xyz/iotcat/"+page.proj;e.hide({transitionOut:"fadeOut"},t,"button")},true],["<button>"+a+"</button>",function(e,t){window.location.href="https://login.yimian.xyz/";e.hide({transitionOut:"fadeOut"},t,"button")},true],["<button><b>"+o+"</b></button>",function(e,t){e.hide({transitionOut:"fadeOut"},t,"button")},true]],onOpening:function(){$("#_setting").hide()},onClosed:function(){$("#_setting").show()}})}))};page.setting={setting:{startline:0,scrollto:0,scrollduration:400,fadeduration:[500,100]},controlHTML:'<img src="https://cdn.yimian.xyz/ushio-js/setting.png" class="imgRotate" style="width:34px; height:34px; border:0;z-index: 99999; " />',controlattrs:{offsetx:20,offsety:430},anchorkeyword:"#_setting",state:{isvisible:false,shouldvisible:false},scrollup:function(){page.showUshio()},keepfixed:function(){var e=jQuery(window);var t=e.scrollLeft()+e.width()-this.$control.width()-this.controlattrs.offsetx;var n=e.scrollTop()+e.height()-this.$control.height()-this.controlattrs.offsety;this.$control.css({left:t+"px",top:n+"px"})},togglecontrol:function(){var e=jQuery(window).scrollTop();if(!this.cssfixedsupport){this.keepfixed()}this.state.shouldvisible=e>=this.setting.startline?true:false;if(this.state.shouldvisible&&!this.state.isvisible){this.$control.stop().animate({opacity:1},this.setting.fadeduration[0]);this.state.isvisible=true}else{if(this.state.shouldvisible==false&&this.state.isvisible){this.$control.stop().animate({opacity:0},this.setting.fadeduration[1]);this.state.isvisible=false}}},init:function(){jQuery(document).ready((function(e){var t=page.setting;var n=document.all;t.cssfixedsupport=!n||n&&document.compatMode=="CSS1Compat"&&window.XMLHttpRequest;t.$body=window.opera?document.compatMode=="CSS1Compat"?e("html"):e("body"):e("html,body");t.$control=e('<div id="_setting" >'+t.controlHTML+"</div>").css({position:t.cssfixedsupport?"fixed":"absolute","z-index":9999,bottom:t.controlattrs.offsety,right:t.controlattrs.offsetx,opacity:0,cursor:"pointer"}).attr({title:"Ushio Setting"}).click((function(){t.scrollup();return false})).appendTo("body");if(document.all&&!window.XMLHttpRequest&&t.$control.text()!=""){t.$control.css({width:t.$control.width()})}t.togglecontrol();e('a[href="'+t.anchorkeyword+'"]').click((function(){t.scrollup();return false}));e(window).bind("scroll resize",(function(e){t.togglecontrol()}))}))}};if(typeof block_setting=="undefined"){page.setting.init()}SessionLastCntTime=(new Date).valueOf();var session_errCnt=1;setInterval(()=>{if(session.status){SessionLastCntTime=(new Date).valueOf()}if(!page.window)return;if(page.LastWindowOpenTime>(new Date).valueOf()-1e4)SessionLastCntTime=page.LastWindowOpenTime;if((new Date).valueOf()-SessionLastCntTime>1e4){console.log("Session unhealthy!!");session_ajax_ini(session_errCnt++%2)}if((new Date).valueOf()-SessionLastCntTime>3e4){alert("Session Error!!! Page will reload!");window.location.reload();throw new Error("ushio::Page Reload!")}},7e3);function drawBrand(){if(!session.status){session_ajax_ini()}console.log("\n"+" %c Ushio v3.4.4 %c "+page.ip+" %c "+(session.method=="WebSocket"?"WebSocket":"Ajax")+" %c https://ushio.cool/ \n","color: #FFFFCC; background: #030307; padding:5px 0;","color: #FF99FF; background: #030307; padding:5px 0;","color: "+(session.method=="WebSocket"?"#91FF3A":"#F8FF00")+"; background: #030307; padding:5px 0;","background: #4682B4; padding:5px 0;")}
//# sourceMappingURL=C