-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathay.js
1 lines (1 loc) · 31.9 KB
/
ay.js
1
(function _lnk(){window.Doc=document||void 0,window.pop=function(n){alert(n)},window.print=function(n){console.log(n)},window.out=function(n){console.log(n)},window.str=function(...n){if(n.length>1){var t=[];for(var e of n)t.push(str(e));return"("+t.join(", ")+")"}return n=n[0],vs.fn(n)?n.toString():vs.dic(n)||vs.lis(n)||vs.set(n)?JSON.stringify(n):String(n)},window.type=function(n){return typeof n},window.typeobj=function(n){return n.constructor.name},window.types=function(n){return"object"==type(n)?n.constructor.name:typeof n},window.int=function(n){return parseInt(n)},window.float=function(n){return parseFloat(n)},window.rr=function(ss){return eval(ss)},window.rrt=function(ss){return eval(ss)},window.hasatt=function(n,t){return n.hasOwnProperty(t)},window.reg=function(n,t){return new RegExp(n,t)},window.bool=function(n){return vs.lis(n)||vs.dic(n)||vs.set(n)||vs.str(n)?len(n)>0:!!n},window.reduce=function(n,t){return"string"==typeof n&&"string"==typeof t?n.localeCompare(t):"object"==typeof n&&"object"==typeof t?JSON.stringify(n).localeCompare(JSON.stringify(t)):n-t},window.copy=function(n){return vs.call(n)?n.bind({}):JSON.parse(JSON.stringify(n))},window.len=function(n){return vs.$$(n)?Els(n).length:vs.dic(n)?Object.keys(n).length:void 0!==n.size?n.size:void 0!==n.length?n.length:void 0},window.dir=function(obj){return vs.str(obj)?Object.getOwnPropertyNames(eval(obj)):Object.getOwnPropertyNames(obj)},window.cname=function(n,t){if(n)return void 0!==t&&(n.cname=t),n.cname},window.tohex=function(n,t,e,r){if(vs.str(n)&&void 0===t)return n=st.find(n,/(?<=\()[^\(\)]*/),n=st.rep(n,/ /,"").split(","),n=n.map(function(n){return nm(n)}),tohex.apply(null,n);if(vs.num(n)&&vs.num(t)&&vs.num(e)){const o=n.toString(16).padStart(2,"0"),s=t.toString(16).padStart(2,"0"),i=e.toString(16).padStart(2,"0");let c="";return void 0!==r&&(c=Math.round(255*r).toString(16).padStart(2,"0")),`#${o}${s}${i}${c}`}},window.El=function(n){return vs.El(n)?n:vs.str(n)?$(n)[0]:vs.vx(n)?El(n.sgs[0]):vs.jq(n)?n[0]:void 0},window.Els=function(n){if(vs.lis(n)){var t=[];for(var e of n)co.add(t,...Els(e));return t}return vs.str(n)?$(n).get():vs.El(n)?[n]:vs.vx(n)?Els(n.sgs):vs.jq(n)?n.get():vs.$$(n)?Els(n.sgs):[]},window.times=function(n){const t=new Date,e=t.getFullYear(),r=String(t.getMonth()+1).padStart(2,"0"),o=String(t.getDate()).padStart(2,"0"),s=String(t.getHours()).padStart(2,"0"),i=String(t.getMinutes()).padStart(2,"0"),c=String(t.getSeconds()).padStart(2,"0"),u=String(t.getMilliseconds()).padStart(3,"0"),l=n.replace("%Y",e).replace("%y",e).replace("%m",r).replace("%d",o).replace("%H",s).replace("%M",i).replace("%S",c).replace("%s",u);return l}})(),function(){var n;window.$_=(n=function(){},n.c=45,n.a=function(){},n),window.vse=function(){var n=function(){return n._n=0,n.err_n=[],n.err_s=[],n.err_z=[],n};return n._adderr=function(t,e,r){return n._n+=1,t&&(n.err_n.push(n._n),n.err_s.push(r),n.err_z.push(e)),n},n.out=function(){var t="";if(fos.i(n.err_n,(e,r)=>{var o=n.err_s[r],s=n.err_z[r],i=str(s);i.length>50&&(i="\n"+i),t+="\n █ 第 "+e+' 个参数应为 "'+o+'"',t+=' █ 当前为 "<'+typeof s+'>"',t+=" █ 其值为 ◆ "+i}),t)throw new Error(t)},n.int=function(t){return n._adderr(!vs.int(t),t,"vs.int()")},n.str=function(t){return n._adderr(!vs.str(t),t,"vs.str()")},n.num=function(t){return n._adderr(!vs.num(t),t,"vs.num()")},n.float=function(t){return n._adderr(!vs.float(t),t,"vs.float()")},n.px=function(t){return n._adderr(!vs.px(t),t,"vs.px()")},n.per=function(t){return n._adderr(!vs.per(t),t,"vs.per()")},n.bit=function(t){return n._adderr(!vs.bit(t),t,"vs.bit()")},n.bool=function(t){return n._adderr(!vs.bool(t),t,"vs.bool()")},n.lis=function(t){return n._adderr(!vs.lis(t),t,"vs.lis()")},n.dic=function(t){return n._adderr(!vs.dic(t),t,"vs.dic()")},n.set=function(t){return n._adderr(!vs.set(t),t,"vs.set()")},n.vx=function(t){return n._adderr(!vs.vx(t),t,"vs.vx()")},n.fn=function(t){return n._adderr(!vs.fn(t),t,"vs.fn()")},n.fnd=function(t){return n._adderr(!vs.fnd(t),t,"vs.fnd()")},n.call=function(t){return n._adderr(!vs.call(t),t,"vs.call()")},n.B=function(t){return n._adderr(!vs.B(t),t,"vs.B()")},n.I=function(t){return n._adderr(!vs.I(t),t,"vs.I()")},n.T=function(t){return n._adderr(!vs.T(t),t,"vs.T()")},n.$$=function(t){return n._adderr(!vs.$$(t),t,"vs.$$()")},n.jq=function(t){return n._adderr(!vs.jq(t),t,"vs.jq()")},n.El=function(t){return n._adderr(!vs.El(t),t,"vs.El()")},n}(),window.vs=function(){var n=function(n,...t){};return n.T=function(n){return!0===n},n.F=function(n){return!1===n},n.N=function(n){return void 0===n},n.uN=function(n){return void 0!==n},n.int=function(n){return int(n)===n},n.float=function(n){return Number(n)===n&&n%1!=0},n.num=function(n){return int(n)===n||float(n)===n},n.str=function(n){return String(n)===n},n.bool=function(n){return!0===n||!1===n},n.lis=function(n){return Array.isArray(n)},n.vx=function(n){return vs.cname(n,"vx")},n.fn=function(n){return"function"==typeof n},n.call=function(n){return"function"==typeof n},n.all=function(n,...t){},n.fnd=function(n){},n.bit=function(n){},n.doc=function(n){return n instanceof Document},n.Y=function(n){return!(["",0,null,void 0,!1].indexOf(n)>-1)&&(n instanceof Map||n instanceof Set?0!==n.size:"object"!=typeof n||0!==Object.keys(n).length)},n.V=function(n){return vs.Y(n)||0===n},n.has=function(n,t){return vs.str(n)?-1!==n.indexOf(t):vs.lis(n)?-1!==n.indexOf(t):vs.dic(n)?n.hasOwnProperty(t):!!vs.set(n)&&n.has(t)},n.cname=function(n,t){var e=cname(n)?cname(n):"";return vs.has(e.split(":"),t)},n.dic=function(n){return null!==n&&"object"==typeof n&&n.constructor===Object},n.set=function(n){return null!==n&&"object"==typeof n&&n.constructor===Set},n.per=function(n){var t=new RegExp("^-?(\\d+.)?\\d+%$");return t.test(n)},n.px=function(n){var t=new RegExp("^-?\\d+px$");return t.test(n)},n.reg=function(n){return n instanceof RegExp},n.haszh=function(n){var t=new RegExp("[\\u4E00-\\u9FFF]+","g");return t.test(n)},n.being=function(n){},n.elhas=function(n,t){return vse().El(n).out(),!!(vs.str(t)&&$(n).is(t)||vs.El(t)&&vs.sameEl(n,t))||(vs.lis(t)?bool(fos(t,t=>{if(vs.elhas(n,t))return!0})):!!vs.has(Els(t),n))},n.sameEl=function(n,t){return vs.El(n)&&vs.El(n)&&n.isSameNode(t)},n.$$=function(n){return vs.cname(n,"$$")},n.El=function(n){return n instanceof HTMLElement},n.div=function(n){return n instanceof HTMLDivElement},n.jq=function(n){return n instanceof jQuery},n.B=function(n){return n instanceof HTMLButtonElement},n.I=function(n){return n instanceof HTMLInputElement},n.T=function(n){return n instanceof HTMLTextAreaElement},n}(),window.ty=function(){var n=function(n){var t=arg(arguments,1);try{return n.apply(this,t)}catch(n){ww(n)}};return n.a=function(){},n}(),window.af=function(){var n=function(n,t,e){return n?t:e||null};return n.cd=function(n,t,e){return e=e||null,n?"function"==typeof t?t():t:"function"==typeof e?e():e},n.d=function(n,t){return n&&"function"==typeof t?t():null},n}(),window.fo=function(){var n=function(n,t){if(void 0===t)return{[Symbol.iterator](){let t=0,e=vs.str(n)?n.split(""):lis(n);return{next:()=>{if(t<len(e)){let r={value:{k:e[t++],i:t-1},done:!1};return vs.dic(n)&&(r.value.v=n[e[t-1]]),r}return{done:!0}}}}};if(vs.call(t))if(vs.num(n))for(var e=0;e<n;e++)t(e);else if(vs.lis(n))for(e=0;e<len(n);e++)t(n[e],e);else vs.dic(n)&&Object.entries(n).forEach(([n,e],r)=>t(n,e,r))};return n.new=function(n,t){if(vs.num(n)){for(var e=[],r=0;r<n;r++)e.push(t(r));return e}if(vs.lis(n)){for(e=[],r=0;r<len(n);r++)e.push(t(n[r],r));return e}if(vs.dic(n)){e={};return Object.entries(n).forEach(([n,r],o)=>e[n]=t(n,r,o)),e}},n.time=function(n,t){var e=0;setInterval(function(){e++,t(e)},n)},n}(),window.fos=function(){var n=function(n,t){var e=[];if(vs.lis(n))n.forEach((n,r)=>{e.push(t(n))});else if(vs.dic(n))Object.keys(n).forEach((r,o)=>{e.push(t(r,n[r]))});else if("object"==typeof n&&null!==n)for(let r in n)n.hasOwnProperty(r)&&e.push(t(r,n[r]));for(var r=0;r<e.length;r++)void 0===e[r]&&e.splice(r,1);return e};return n.i=function(n,t){var e=[];if(vs.lis(n))n.forEach((n,r)=>{e.push(t(n,r))});else if(vs.dic(n))Object.keys(n).forEach((r,o)=>{e.push(t(r,n[r],o))});else if("object"==typeof n&&null!==n){var r=0;for(let o in n)n.hasOwnProperty(o)&&e.push(t(o,n[o],r++))}return e},n.find=function(n,t,e=!1){if(vs.lis(n))return e?n.filter(t):n.find(t);if(vs.dic(n))return e?n.filter(t):n.find(t);if("object"==typeof n&&null!==n){let r=[];for(let o in n)if(n.hasOwnProperty(o)){let s=t(o,n[o]);if(s){if(!e)return s;r.push(s)}}return e?r:null}},n.findall=function(n,t){return fos.find(n,t,!0)},n.att=function(n,t){var e=[];for(var r of n)e.push(att(r,t));return e},n}(),window.fn=function(){var n=function(){var n=function(n){if(arguments.callee.args){var t=lis.add(arg(arguments),arg(arguments.callee.args));return arguments.callee.fpt.apply(this,t)}return arguments.callee.fpt=n,arguments.callee.args=arg(arguments,1),arguments.callee};return n.apply(this,arguments)};return n}(),window.fns=function(){var n=function(...n){var t=function(){var t;return arguments.callee.funs?(arguments.callee.funs.forEach(n=>{vs.call(n)?n():t=n}),t):(arguments.callee.funs=n,arguments.callee)};return t.apply(this,arguments)};return n}(),window.fnd=void 0,window.cons=function(){var n=function(n){};return n.docEmClickFuns=null,n.onClickEm=function(t){n.docEmClickFuns?n.docEmClickFuns.push(t):(n.docEmClickFuns=[t],document.addEventListener("click",t=>{t.target===document.documentElement&&fo(n.docEmClickFuns,n=>{n(t)})}))},n}(),window.st=function(){var n=function(n,t,e){return n=String(n),vs.N(t)&&vs.N(e)?n:(t=t||0,e=e||n.length,t=t<0?n.length+t:t,e=e<0?n.length+e:e,n.slice(t,e))};return n.cut=function(){},n.color=function(n){return vs.num(n)&&0==n?"#00000000":n},n.count=function(n,t){var e=new RegExp(t,"g");return n&&n.match(e).length},n.lower=function(n){return n.toLowerCase()},n.upper=function(n){return n.toUpperCase()},n.end=function(n,t){return n&&n.endsWith(t)},n.start=function(n,t){return n&&n.startsWith(t)},n.add=function(n,t,e){return n.slice(0,t)+e+n.slice(t)},n.sub=function(n,t,e){e=e||"";var r=vs.reg(t)?t:new RegExp(t,"mg");return r=r.multiline?r:new RegExp(r.source,"mg"),n.replace(r,e)},n.rep=function(n,t,e){return e=e||"",vs.reg(t)&&(t=reg.multiline?t:new RegExp(t,"mg")),n.replace(t,e)},n.find=function(n,t){var e=vs.reg(t)?t:new RegExp(t,"m");e=e.multiline?e:new RegExp(e.source,"m");var r=e.exec(n);return r?r[0]:null},n.findw=function(n){},n.rfind=function(n,t){},n.findall=function(n,t){var e=vs.reg(t)?t:new RegExp(t,"gm");e=e.global&&e.multiline?e:new RegExp(e.source,"gm");const r=n.match(e);return r||[]},n.tohex=function(n){if(!n)return n;var t=/rgba?\((\d+),\s*(\d+),\s*(\d+)(,\s*(\d+))?\)/g;return n=st.rep(n,t,n=>tohex(n)),n},n}(),window.nm=function(){var n=function(n){var t=vs.num(n)?n:Number(n);return isNaN(t)&&(t=Number(st.find(n,/-?\d+(\.\d+)?/g))),t};return n.per=function(n){return str(100*nm(n))+"%"},n.px=function(n){return n=str(n),n.indexOf("px")>-1?n:n+"px"},n.rand=function(n=1e3,t,e){for(var r=void 0;void 0===r||void 0!==e&&e===r;)r=Math.floor(Math.random()*(t-n+1)+n);return r},n.pxper=function(n){return vs.num(n)?n+"px":st.end(n,"px")||st.end(n,"%")?n:n+"px"},n}(),window.lis=function(){var n=function(n,t,e){return n=vs.lis(n)?1==len(n)&&vs.lis(n[0])?n[0]:n:vs.dic(n)&&0==len(n)?[]:vs.set(n)&&0==len(n)?[]:vs.N(n)||null==n?[]:[n],t=t||0,e=e||n.length,t=t<0?n.length+t:t,e=e<0?n.length+e:e,n.slice(t,e)};return n.add=function(){for(var n=[],t=0;t<arguments.length;t++)n=n.concat(arguments[t]);return n},n.i=function(n,t,e){return t<0&&(t=len(n)+t),void 0===e?n[t]:(n[t]=e,n)},n.geti=function(n,t){for(var e=0;e<n.length;e++)if(n[e]===t)return e;return-1},n.sort=function(n,t){void 0===t&&(t=((n,t)=>n-t)),n.sort((n,e)=>{let r=t(n,e);return(r<0||!r)&&0!==r?-1:1})},n.rsort=function(n){n.sort((n,t)=>-1)},n.Eli=function(n,t){for(var e=0;e<n.length;e++)if(vs.sameEl(n[e],t))return e;return-1},n}(),window.dic=void 0,window.to=void 0,window.time=function(){var n=function(n){return n?time.now(n):Date.now()/1e3};return n.now=function(n){n=n||"YYYY-MM-DD hh:mm:ss.SSS";const t=new Date,e=t.getFullYear(),r=(t.getMonth()+1).toString().padStart(2,"0"),o=t.getDate().toString().padStart(2,"0"),s=t.getHours().toString().padStart(2,"0"),i=t.getMinutes().toString().padStart(2,"0"),c=t.getSeconds().toString().padStart(2,"0"),u=t.getMilliseconds().toString().padStart(3,"0");let l=n;return l=l.replace(/(YYYY)|(yyyy)/,e),l=l.replace(/MM/,r),l=l.replace(/(DD)|(dd)/,o),l=l.replace(/hh/,s),l=l.replace(/mm/,i),l=l.replace(/ss/,c),l=l.replace(/SSS/,u),l},n.sleep=function(n){for(var t=Date.now();Date.now()-t<n;);},n}(),window.Net=function(){window.Netfun={},window.Netfun.choose=function(n,t,e,r){return":/gets/"==n?"Doc"==t?document.documentElement.outerHTML:"Html"==t?document.documentElement.outerHTML:"Body"==t?Doc.body.innerHTML:"Lnk"==t?window.location.href:"El"==t?El(e).outerHTML:"Els"==t?fo.new(Els(e),n=>n.outerHTML):null:":/action/"!=n?"未定义的消息格式: "+t:void("pop/"==t?alert(e):"lnk/"==t?window.open(e):"click/"==t?$(e).click():"print/"==t?console.log(e):"clean/"==t?console.clear():"Test/"==t||ww(":/action/ 中未定义的消息格式: "+t))},window.Netfun.NetJsonFun=function(n,t){if(vs.str(n)){var e=Netfun.choose(null,n,null,t);e&&t.send(e)}else if(vs.dic(n)){var r=":/$$/"in n?n[":/$$/"]:null;e={};for(var o in n)":/action/"==o?fo(n[o],(n,e)=>{Netfun.choose(o,n,e,t)}):":/gets/"==o?fo(n[o],n=>{e[n]=Netfun.choose(o,n,r,t)}):":/getAtt/"==o?fo($$(r).get(n[o]),(n,t)=>{e[n]=t}):":/setAtt/"==o?$$(r).set(n[o]):"://"==o&&(e._=n[o]);0!=len(e)&&t.send(e)}};var n=function(n,t,e,r,o){var s=function(){var n=arguments.callee;n.isrun=!0,n.trynum+=1,n.trynum>10&&(console.clear(),n.trynum=0),s.netB$$.set({show:!0,str:"在连接vpy",bc:"#999999",alpha:.6}),n.socket=new WebSocket("ws://localhost:"+n.Port+"/websocket"),n.socket.addEventListener("open",()=>{s.netB$$.set({show:!0,str:"已连接vpy",bc:"#7eb07e",alpha:.2}),console.log("███ WebSocket 已连接端口:",n.Port),n.isrun=!1,n.trynum>5&&(console.clear(),n.trynum=0),n.Open&&n.Open(n)}),n.socket.addEventListener("message",t=>{var e=t.data;if(vs.str(e))e=JSON.parse(e),window.Netfun.NetJsonFun(e,s);else{try{e=JSON.parse(e)}catch(t){console.log("███ 端口",n.Port,"新数据无法解析为 JSON:",e)}n.islnk()&&n.Doing(s,e)}}),n.socket.addEventListener("close",()=>{s.netB$$.set({show:!0,str:"未连接vpy",bc:"#f29e7c",alpha:.6}),n.isrun=!1,console.log("███ WebSocket 已关闭端口:",n.Port)}),n.socket.addEventListener("error",t=>{n.isrun=!1})};return s.isrun=!1,s.trynum=0,fo.time(1e3,()=>{s.istrynet&&!s.isrun&&s.lnk()}),s.send=function(n){vs.dic(n)&&(n=JSON.stringify(n)),s.islnk()&&s.socket.send(n)},s.trynet=function(){s.istrynet=!0},s.stoptrynet=function(){s.istrynet=!1},s.lnk=function(){s.islnk()||s()},s.islnk=function(){return 1===s.socket.readyState},s.close=function(){s.islnk()&&s.socket.close()},s.istrynet=!1,s.netB$$=window.$$.B({name:"netB",str:"未连接vpy",Top:!0,bold:!0,left:-2,bottom:40,alpha:.6,ringr:5,w:26,h:80,press:{bc:"#a5daff"},repress:{bc:"#f29e7c"},zIndex:999999,parent:El("html"),click:function(){s.trynum=0,s.lnk()},rightClick:function(){window.oncontextmenu=function(){return!1},s.istrynet?(s.istrynet=!1,console.log("███ WebSocket 不重复尝试 断开的连接:",s.Port),s.socket.close()):(s.istrynet=!0,s.trynum=0,console.log("███ WebSocket 重复尝试 断开的连接:",s.Port))}}),s.Port=n,s.Doing=t,s.Open=e,s.Close=r,s.Load=o,s.Load&&s.Load(s),s()};return n}(),window.Vx=function(){var n=function(n){var t=function(n){return n=n?":"+n:"",cname(arguments.callee,"vx"+n),arguments.callee}(n);return t.dir=function(){var n=new Set(Object.keys(this));return n.delete("dir"),n},t.nos=function(n,t){return this.hasOwnProperty(n)||(this[n]=t),this},t};return n}(),window.co=function(){var n=function(){};return n._dic=function(n){return vs.dic(n)?n:{obj:null}},n.nos=function(n,...t){return t=lis(t),vs.lis(n)?t.forEach((t,e)=>{vs.has(n,t)||n.push(t)}):vs.dic(n)?t.forEach((t,e)=>{if(vs.dic(t))for(var r in t)n.hasOwnProperty(r)||(n[r]=t[r]);else n.hasOwnProperty(t)||(n[t]=null)}):vs.str(n)?t.forEach((t,e)=>{vs.has(n,t)||(n+=t)}):vs.set(n)&&t.forEach((t,e)=>{n.has(t)||n.add(t)}),n},n.add=function(n,...t){return t=lis(t),vs.lis(n)?t.forEach((t,e)=>{n.push(t)}):vs.dic(n)?t.forEach((t,e)=>{if(vs.dic(t))for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);else n[t]=null}):vs.str(n)&&t.forEach((t,e)=>{n+=t}),n},n.de=function(n,...t){return t=lis(t),vs.lis(n)?t.forEach((t,e)=>{n.indexOf(t)>-1&&n.splice(n.indexOf(t),1)}):vs.dic(n)?t.forEach((t,e)=>{delete n[t]}):vs.str(n)&&t.forEach((t,e)=>{n=st.rep(n,str(t),"")}),n},n.dei=function(n,...t){fos(t,t=>{n.splice(t,1)})},n.pop=function(n,...t){t=lis(t);var e=vs.dic(n)?{}:[];return vs.lis(n)?t.forEach((t,r)=>{n.indexOf(t)>-1&&e.push(n.splice(n.indexOf(t),1))}):vs.dic(n)?t.forEach((t,r)=>{n.hasOwnProperty(t)&&(e[t]=n[t],delete n[t])}):vs.str(n)&&t.forEach((t,r)=>{e.push(t),n=st.rep(n,t,"")}),e},n.rep=function(n,...t){return t=lis(t),vs.dic(n)&&t.forEach((t,e)=>{if(vs.dic(t))for(var r in t)n.hasOwnProperty(r)&&(n[r]=t[r]);else n.hasOwnProperty(t)&&(n[t]=null)}),n},n.sort=function(n,t){vs.lis(n)&&lis.sort(n,t)},n.rsort=function(n){vs.lis(n)&&lis.rsort(n)},n}(),window.att=function(){var n=function(n,t){for(var e of(vs.has(t,".")&&(t=t.split(".")),t=lis(t),t)){if(!n.hasOwnProperty(e))return;n=n[e]}return n};return n._=function(n,t){if(n.hasOwnProperty(t))return st.end(t,"()")?n[st(t,0,-2)]():n[t]},n.add=function(n,t,e){return n[t]=e,n},n}(),window.arg=function(){var n=function(n,t,e){var r=[];for(var o of n)r.push(o);return lis(r,t,e)};return n}(),window.ww=function(n){var t=function(n){for(var e of(console.log(t.star(n)),arg(arguments)))console.log(" ",e)};return t.n=0,t.star=function(n){t.n++;var e=vs.lis(n)?"Object:Array":type(n);return"███ ww_print: "+str(t.n)+": "+time.now()+" <"+e+"> █ "},t.str=function(n){var e="";for(var r of arg(arguments))e+=str(r)+", ";e=e.slice(0,e.length-2),vs.lis(n)&&(e="["+e+"]"),console.log(t.star(n)+"\n\t"+e)},t.l=function(n){var e="";for(var r of arg(arguments))e+=str(r)+", ";e=e.slice(0,e.length-2),vs.lis(n)&&(e="["+e+"]"),console.log(t.star(n)+e)},t}(),window.Vson=void 0}(),window.$$=function(){var n=function(n,t,e,r){var o=vs.lis(n)?n:void 0,s=vs.str(n)?n:void 0;if(o)return $$(Vx("$$"),t,"lis",o);if(s)return $$(Vx("$$"),t,"str",s);var i=vs.vx(n)?n:void 0,c=vs.El(n)?n:void 0,u=vs.jq(n)?n:void 0;if(u)return $$(Vx("$$"),t,"jq",u);if(c)return $$(Vx("$$"),t,c.tagName.toLowerCase(),c);if(i){t=t||{},vs.$$(i)&&i.sgs&&(r=i.sgs);var l=r||Doc.createElement(e);return i.sgs=[l],e&&cname(i,cname(i)+":"+e),$$.link_funs(i,$$.funs_inc,"inc"),$$.link_funs(i,$$.funs_set,"set"),$$.link_funs(i,$$.funs_get,"get"),i.set(t,Els(i.sgs),i),i}};return n.get=function(n,t){var e={};sg=El(n),vs.str(t)&&(t=[t]);var r=$(sg);for(var o of fo(t))"name"==o.k?e.name=r.attr("id"):"bc"==o.k?e.bc=tohex(r.css("backgroundColor")):"color"==o.k?e.color=tohex(r.css("color")):"alpha"==o.k?e.alpha=r.css("opacity"):"ring"==o.k?e.ring=r.css("borderRadius"):"w"==o.k?e.w=r.css("width"):"h"==o.k?e.h=r.css("height"):"font"==o.k?e.font=r.css("font").split(" ")[1]:"fontsize"==o.k?e.fontsize=r.css("fontSize"):"Top"==o.k?e.Top=r.css("position"):"center"==o.k?e.center=r.css("textAlign"):"parent"==o.k?e.parent=El(r.parent()):e[o.k]=st.tohex(r.attr(o.k))||st.tohex(r.css(o.k));return e},n.B=function(n){return $$(Vx("$$"),n,"button")},n.X=function(n){return $$(Vx("$$"),n,"button").set({str:"X",click:(n,t)=>{$$($(t).parent()).set({hide:!0})}})},n.I=function(n){return $$(Vx("$$"),n,"input")},n.T=function(n){return $$(Vx("$$"),n,"textarea")},n.R=function(n){return $$(Vx("$$"),n,"checkbox")},n.sp=function(n){return $$(Vx("$$"),n,"div")},n.div=function(n){return $$(Vx("$$"),n,"div")},n.divw=function(n){return $$(Vx("$$"),{...n,isw:!0},"div")},n.divh=function(n){return $$(Vx("$$"),{...n,ish:!0},"div")},n.menuw=function(n){$$.menuh(n,!0)},n.menuh=function(n,t){var e=co.pop(n,"itmset").itmset,r=co.pop(n,"itm").itm;Menu=t?$$.divw({parent:"html",Top:!0,...n}):$$.divh({parent:"html",Top:!0,...n}),fo(r,(n,t)=>{1==len(n)&&(n=[t,n[0]]),vs.El(n[1])||vs.jq(n[1])||vs.$$(n[1])?$$(El(n[1])).set({parent:Menu}):vs.int(n[1])||vs.str(n[1])?$$.B({parent:Menu}):$$.B(e).set({str:n[0],class:n[0],parent:Menu,click:n[1]})})},n.child=function(n){return n=Els(n),fos(n,n=>{for(var t=[],e=n.childNodes,r=["script","style"],o=0;o<e.length;o++){var s=e[o];1==s.nodeType&&-1==r.indexOf(s.tagName.toLowerCase())&&t.push(s)}return t})},n.link_funs=function(n,t,e){return n[e]=function(e){return arguments.callee.vx=n,e=vs.V(e)?e:{},e.live&&(e=$$.set_netLive(e)),t(e,Els(n.sgs),n)},n},n.set_netLive=function(n){n.live=n.live||{};var t=["bc","color","ring"];for(var e of fo(n.live))n[e.k]=e.v;for(var e of fo(n))vs.has(t,e.k)&&(n.live[e.k]=e.v);return n},n.funs_inc=function(n,t,e){return vs.jq(e.sgs)&&(e.sgs=[e.sgs[n]]),e},n.funs_get=function(n,t,e){var r={};if(vs.lis(t)&&0==t.length)return r;vs.str(n)&&(n=[n]),el=t[0];var o=$(el);for(var s of fo(n))"name"==s.k?r.name=o.attr("id"):"id"==s.k?r.id=o.attr("id"):"bc"==s.k?r.bc=tohex(o.css("backgroundColor")):"str"==s.k?vs.I(t[0])?r.str=o.val():r.str=o.text():"color"==s.k?r.color=tohex(o.css("color")):"alpha"==s.k?r.alpha=window.getComputedStyle(el).opacity:"ring"==s.k?r.ring=o.css("borderRadius"):"w"==s.k?r.w=nm(o.css("width")):"h"==s.k?r.h=nm(o.css("height")):"size"==s.k?r.size=[nm(o.css("width")),nm(o.css("height"))]:"x"==s.k?r.x=el.getBoundingClientRect().left:"y"==s.k?r.y=el.getBoundingClientRect().top:"xy"==s.k?r.xy=[el.getBoundingClientRect().left,el.getBoundingClientRect().top]:"left"==s.k?r.left=el.getBoundingClientRect().left:"top"==s.k?r.top=el.getBoundingClientRect().top:"right"==s.k?r.right=el.getBoundingClientRect().right:"bottom"==s.k?r.bottom=el.getBoundingClientRect().bottom:"font"==s.k?r.font=o.css("font").split(" ")[1]:"fontsize"==s.k?r.fontsize=o.css("fontSize"):"Top"==s.k?r.Top=o.css("position"):"center"==s.k?r.center=o.css("textAlign"):"parent"==s.k?r.parent=o.parent():"view"==s.k?r.view=o.offset().top<$(window).height():"hide"==s.k?r.hide="none"==window.getComputedStyle(t[0]).display:"show"==s.k?r.show="none"!=window.getComputedStyle(t[0]).display:r[s.k]=st.tohex(o.attr(s.k))||st.tohex(o.css(s.k)),null==r[s.k]&&(r[s.k]=null);return r},n.funs_set=function(n,t,e){var r=arguments.callee;if(0==len(n))return e;if(t.length>1)return fos(t,t=>{r(n,[t],e)}),e;if(0==t.length)return e;var o=t[0];if(n.style&&(o.style.cssText=n.style),n.parent=El(n.parent),n.before=El(n.before),n.after=El(n.after),n.add)for(var s of Els(n.add))o.appendChild(s);if(n.before&&n.before.parentNode.insertBefore(o,n.before),n.after&&n.after.parentNode.insertBefore(o,n.after.nextSibling),n.parent)if(vs.V(n.insert)){var i=$$.child(n.parent);n.insert<0&&(n.insert=i.length+n.insert+1),n.parent.insertBefore(o,i[n.insert])}else n.parent&&n.parent.appendChild(o);if(n.str&&(vs.I(o)?o.value=n.str:vs.B(o)?o.textContent=n.str:o.innerHTML=n.str),vs.V(n.name)&&(o.id=st.start(n.name,"#")?st(n.name,1):n.name),vs.V(n.color)&&(o.style.color=st.color(n.color)),vs.V(n.bc)&&(o.style.backgroundColor=st.color(n.bc)),vs.V(n.alpha)&&(o.style.opacity=n.alpha),vs.V(n.x)&&(o.style.left=nm.pxper(n.x)),vs.V(n.y)&&(o.style.top=nm.pxper(n.y)),vs.V(n.xy)&&(o.style.left=nm.pxper(n.xy[0]))&&(o.style.top=nm.pxper(n.xy[1])),n.Top&&(o.style.position="fixed"),vs.V(n.left)&&(o.style.left=nm.pxper(n.left)),vs.V(n.top)&&(o.style.top=nm.pxper(n.top)),vs.V(n.right)&&(o.style.right=nm.pxper(n.right)),vs.V(n.bottom)&&(o.style.bottom=nm.pxper(n.bottom)),vs.V(n.center)&&(o.style.textAlign="center"),vs.V(n.align)&&(o.style.textAlign=n.align),vs.V(n.src)&&(o.src=n.src),vs.V(n.img)&&(o.src=n.img),vs.V(n.class)&&(o.className=n.class),vs.V(n.changeshow)&&(o.style.display="none"==o.style.display?"flex":"none"),(vs.V(n.ish)||vs.V(n.isw))&&(o.style.display="flex"),vs.V(n.isw)&&(o.style.flexDirection="row"),vs.V(n.ish)&&(o.style.flexDirection="column"),vs.V(n.spacing)&&(o.style.gap=nm.pxper(n.spacing)),vs.uN(n.hide)&&(o.style.display=n.hide?"none":"flex"),vs.uN(n.show)&&(o.style.display=n.show?"flex":"none"),vs.V(n.margin)&&(o.style.margin=nm.pxper(n.margin)),vs.V(n.marginl)&&(o.style.marginLeft=nm.pxper(n.marginl)),vs.V(n.marginr)&&(o.style.marginRight=nm.pxper(n.marginr)),vs.V(n.margint)&&(o.style.marginTop=nm.pxper(n.margint)),vs.V(n.marginb)&&(o.style.marginBottom=nm.pxper(n.marginb)),vs.V(n.marginw)&&(o.style.marginLeft=o.style.marginRight=nm.pxper(n.marginw)),vs.V(n.marginh)&&(o.style.marginTop=o.style.marginBottom=nm.pxper(n.marginh)),vs.V(n.padding)&&(o.style.padding=nm.pxper(n.padding)),vs.V(n.paddingl)&&(o.style.paddingLeft=nm.pxper(n.paddingl)),vs.V(n.paddingr)&&(o.style.paddingRight=nm.pxper(n.paddingr)),vs.V(n.paddingt)&&(o.style.paddingTop=nm.pxper(n.paddingt)),vs.V(n.paddingb)&&(o.style.paddingBottom=nm.pxper(n.paddingb)),vs.V(n.paddingw)&&(o.style.paddingLeft=o.style.paddingRight=nm.pxper(n.paddingw)),vs.V(n.paddingh)&&(o.style.paddingTop=o.style.paddingBottom=nm.pxper(n.paddingh)),vs.V(n.view)&&(1==n.view||1==n.view?o.scrollIntoView({behavior:"smooth"}):"tp"==n.view?o.scrollIntoView({behavior:"smooth",block:"start"}):"bt"==n.view?o.scrollIntoView({behavior:"smooth",block:"end"}):"ct"==n.view&&o.scrollIntoView({behavior:"smooth",block:"center"})),vs.V(n.ring)&&(o.style.borderRadius=nm.pxper(n.ring)),vs.V(n.ringl)&&(o.style.borderTopLeftRadius=nm.pxper(n.ringl),o.style.borderBottomLeftRadius=nm.pxper(n.ringl)),vs.V(n.ringr)&&(o.style.borderTopRightRadius=nm.pxper(n.ringr),o.style.borderBottomRightRadius=nm.pxper(n.ringr)),vs.V(n.ringt)&&(o.style.borderTopLeftRadius=nm.pxper(n.ringt),o.style.borderTopRightRadius=nm.pxper(n.ringt)),vs.V(n.ringb)&&(o.style.borderBottomLeftRadius=nm.pxper(n.ringb),o.style.borderBottomRightRadius=nm.pxper(n.ringb)),o.style.border="0px solid",vs.V(n.border)&&(o.style.border="solid "+n.border),vs.V(n.bordert)&&(o.style.borderTop="solid "+n.bordert),vs.V(n.borderl)&&(o.style.borderLeft="solid "+n.borderl),vs.V(n.borderr)&&(o.style.borderRight="solid "+n.borderr),vs.V(n.borderb)&&(o.style.borderBottom="solid "+n.borderb),vs.V(n.borderh)&&(o.style.borderTop=o.style.borderBottom="solid "+n.borderh),vs.V(n.borderw)&&(o.style.borderLeft=o.style.borderRight="solid "+n.borderw),vs.V(n.w)&&(o.style.width=nm.pxper(n.w)),vs.V(n.h)&&(o.style.height=nm.pxper(n.h)),vs.V(n.zIndex)&&(o.style.zIndex=n.zIndex),vs.V(n.font)&&(o.style.fontFamily=n.font),vs.V(n.fontsize)&&(o.style.fontSize=nm.pxper(n.fontsize)),vs.V(n.click)&&(o.onclick=fn(n.click,o)),vs.V(n.dubclick)&&(o.ondubclick=fn(n.dubclick,o)),vs.V(n.move)&&(o.onmousemove=fn(n.move,o)),vs.V(n.rightClick)&&(o.oncontextmenu=fn(n.rightClick,o)),n.menu){var c=o.onclick?o.onclick:()=>{};o.onclick=fn((t,e)=>{c(t,e),$$(n.menu).set({changeshow:!0});var r=[e.getBoundingClientRect().left,e.getBoundingClientRect().top];r[1]+=e.getBoundingClientRect().height;var o=$$(n.menu).get(["size"]).size;r[0]+o[0]>window.innerWidth&&(r[0]=window.innerWidth-o[0]),r[1]+o[1]>window.innerHeight&&(r[1]=window.innerHeight-o[1]),$$(n.menu).set({xy:r})},o)}return vs.V(n.fpt)&&n.fpt(),vs.V(n.press)&&(o.onmousedown=(()=>{o.sspress=o.style.cssText,r(n.press,[o],e)}),o.onmouseup=(()=>{o.style.cssText=o.sspress})),vs.V(n.hover)&&(o.onmouseover=(()=>{o.sshover=o.style.cssText,r(n.hover,[o],e)}),o.onmouseout=(()=>{o.style.cssText=o.sshover})),e},n._change=function(n,t,e,r,o){vse().int(e).str(r).out(),vs.$$(n)&&(n=n.sgs),n=lis(n),$$$();var s=0;"add"==r?(fos(n,n=>{o&&fos($(n).get(),n=>{(-1==e||e>0&&s<e)&&(s++,t(n,s))})}),-1==e||e>0&&s<e?$$$.add(n,r=>{-1==e||e>0&&s<e?(s++,t(r,s)):$$$.deadd(n)}):$$$.deadd(n)):"de"==r&&$$$.de(n,r=>{-1==e||e>0&&s<e?(s++,t(r,s)):$$$.dede(n)})},n.hasborn=function(n,t,e){$$._change(n,t,e||1,"add",!0)},n.hasborns=function(n,t,e){$$._change(n,t,e||-1,"add",!0)},n.creat=function(n,t,e){$$._change(n,t,vs.num(e)?e:1,"add",!1)},n.creats=function(n,t,e){$$._change(n,t,vs.num(e)?e:-1,"add",!1)},n.remove=function(n,t,e){$$._change(n,t,e||1,"de",!1)},n.removes=function(n,t,e){$$._change(n,t,e||-1,"de",!1)},n.one=function(n,t,e){$$.on(n,t,e,1)},n.two=function(n,t,e){$$.on(n,t,e,2)},n.on=function(n,t,e,r){function o(n){var t=lis.Eli(s,El(n.target));-1==t?(s.push(n.target),i.push(1),t=s.length-1):i[t]=i[t]+1,(-1==r||i[t]<=r)&&e(n.target,i[t])}if("hasborn"==t)return $$.hasborn(n,e,r);if("hasborns"==t)return $$.hasborns(n,e,r);vs.$$(n)&&(n=n.sgs),n=lis(n),r=vs.num(r)?r:-1,t="creat"==t?"DOMNodeInserted":t,t="remove"==t?"DOMNodeRemoved":t;var s=[],i=[];fos(n,n=>{vs.str(n)?$(document).on(t,n,n=>{o(n)}):$(n).on(t,n=>{o(n)})})},n.do=function(n,t){vs.$$(n)&&(n=n.sgs),"dubclick"==t&&$(n).dblclick(),"rightClick"==t&&$(n).contextmenu(),"move"==t&&$(n).mousemove(),"down"==t&&$(n).mousedown(),"up"==t&&$(n).mouseup(),"hover"==t&&$(n).mouseover(),"click"==t&&$(n).click()},n.key=function(n,t,e){n=El(n),e=e||"keydown";var r=function(t){n.value+=t.key};n.addEventListener(e,r,!1);var o={key:t,code:"",location:0,repeat:!1,isComposing:!1},s=new KeyboardEvent(e,o);n.dispatchEvent(s),n.removeEventListener(e,r,!1)},n.ani=function(n,t,e){function r(o){null===v&&(v=o);var s=o-v,p=s/e;p>1&&(p=1),"left"in t&&(n.style.transform="translateX("+int((t.left-u)*p)+"px)"),"right"in t&&(n.style.transform="translateX("+int((l-t.right)*p)+"px)"),"top"in t&&(n.style.transform="translateY("+int((t.top-a)*p)+"px)"),"bottom"in t&&(n.style.transform="translateY("+int((f-t.bottom)*p)+"px)"),"w"in t&&(n.style.width=int(i+(t.w-i)*p)+"px"),"h"in t&&(n.style.height=int(c+(t.h-c)*p)+"px"),"alpha"in t&&(n.style.opacity=d-p),p<1&&window.requestAnimationFrame(r)}if(n=El(n),n){var o=document.documentElement.clientWidth,s=document.documentElement.clientHeight,i=n.offsetWidth,c=n.offsetHeight,u=n.getBoundingClientRect().left,l=o-n.getBoundingClientRect().right,a=n.getBoundingClientRect().top,f=s-n.getBoundingClientRect().bottom,d=window.getComputedStyle(n).opacity,v=null;window.requestAnimationFrame(r)}},n}(),window.$$$=function(){var n=function(t,e){if(vs.uN(t)&&vs.uN(e))return vs.str(t)&&(t=$(t)),vs.$$(t)&&(t=$(t.sgs)),vs.El(t)&&(t=$(t)),void t.each((n,t)=>{var r=0,o=new MutationObserver(function(n){n.forEach(function(n){r++;var t=e(n.target,r,n);t&&o.disconnect()})}),s={attributes:!0,attributeFilter:["style"],childList:!0,subtree:!0};o.observe(t,s)});att(n,"being_observer")||(n.being_observer=!0,n.mation_fpt=[],n.add_fpt=[],n.add_ss=[],n.de_fpt=[],n.de_ss=[],n.other_fpt=[],n.observer=new MutationObserver(t=>{0!=len(n.mation_fpt)||0!=len(n.add_fpt)||0!=len(n.de_fpt)||0!=len(n.other_fpt)?t.forEach(t=>{if(0!=n.mation_fpt.length&&fos(n.mation_fpt,n=>{n(t)}),"childList"===t.type){if(0!=n.add_ss.length)for(let e of t.addedNodes)fos.i(n.add_ss,(t,r)=>{vs.El(e)&&vs.elhas(e,t)&&n.add_fpt[r](e)});if(0!=n.de_ss.length)for(let e of t.removedNodes)fos.i(n.de_ss,(t,r)=>{vs.El(e)&&vs.elhas(e,t)&&n.de_fpt[r](e)})}else 0!=n.other_fpt.length&&fos(n.other_fpt,n=>{n(t)})}):n.stop()}),n.observer.observe(document,{childList:!0,subtree:!0}))};return n.stop=function(){n.being_observer=!1,n.observer.disconnect()},n.test=function(){n.add("button",ww)},n.add=function(t,e){vse().call(e).out(),n.add_ss.push(t),n.add_fpt.push(e)},n.de=function(t,e){vse().call(e).out(),n.de_ss.push(t),n.de_fpt.push(e)},n.mation=function(t){vse().call(t).out(),n.mation_fpt.push(t)},n.other=function(t){vse().call(t).out(),n.other_fpt.push(t)},n.deadd=function(t){var e=lis.geti(n.add_ss,t);-1!=e&&(co.dei(n.add_fpt,e),co.dei(n.add_ss,e))},n.dede=function(t){var e=lis.geti(n.de_ss,t);-1!=e&&(co.dei(n.de_fpt,e),co.dei(n.de_ss,e))},n.demation=function(t){co.dei(n.mation_fpt,lis.geti(n.mation_fpt,t))},n.deother=function(t){co.dei(n.other_fpt,lis.geti(n.other_fpt,t))},n}(),window.load=function(){var n=function(n){var t=document.createElement("script");t.src=n,document.head.appendChild(t)};return n.jq=function(n){if(window.trustedTypes){const t=trustedTypes.createPolicy("default",{createScriptURL:n=>n}),e=t.createScriptURL("https://code.jquery.com/jquery-3.7.1.min.js"),r=document.createElement("script");r.src=e,document.head.appendChild(r),r.onload=function(){console.log("███████████████ ay.js █",time.now(),"█ jQuery 加载完成 ███"),n&&n()}}else console.error("Trusted Types 不受支持, 未加载 jQuery")},n.all=function(n){window.onload=function(){n()}},n}(),console.log("███████████████ ay.js █","2024-08-21 12:03 "," █ 版本时间 ███"),console.log("███████████████ ay.js █",time.now(),"█ 加载完成 ███");