https://privnote.com/static-58c8928/js-min/lib/b64.js

提交的 URL:
https://privnote.com/static-58c8928/js-min/lib/b64.js
报告完成时间:

链接 · 找到 0 个

从页面中识别出的传出链接

JavaScript 变量 · 找到 3 个

在页面窗口对象上加载的全局 JavaScript 变量是在函数外部声明的变量,可以从当前范围内的代码中的任何位置访问

名称类型
onbeforetoggleobject
documentPictureInPictureobject
onscrollendobject

控制台日志消息 · 找到 0 条

记录到 Web 控制台的消息

HTML

页面的原始 HTML 正文

<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">// static/js/lib/b64.js

var lookup='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';(function(exports){'use strict'
var Arr=(typeof Uint8Array!=='undefined')?Uint8Array:Array
var PLUS='+'.charCodeAt(0)
var SLASH='/'.charCodeAt(0)
var NUMBER='0'.charCodeAt(0)
var LOWER='a'.charCodeAt(0)
var UPPER='A'.charCodeAt(0)
var PLUS_URL_SAFE='-'.charCodeAt(0)
var SLASH_URL_SAFE='_'.charCodeAt(0)
function decode(elt){var code=elt.charCodeAt(0)
if(code===PLUS||code===PLUS_URL_SAFE)return 62
if(code===SLASH||code===SLASH_URL_SAFE)return 63
if(code&lt;NUMBER)return-1
if(code&lt;NUMBER+10)return code-NUMBER+26+26
if(code&lt;UPPER+26)return code-UPPER
if(code&lt;LOWER+26)return code-LOWER+26}
function b64ToByteArray(b64){var i,j,l,tmp,placeHolders,arr
if(b64.length%4&gt;0){throw new Error('Invalid string. Length must be a multiple of 4')}
var len=b64.length
placeHolders=b64.charAt(len-2)==='='?2:b64.charAt(len-1)==='='?1:0
arr=new Arr(b64.length*3/4-placeHolders)
l=placeHolders&gt;0?b64.length-4:b64.length
var L=0
function push(v){arr[L++]=v}
for(i=0,j=0;i&lt;l;i+=4,j+=3){tmp=(decode(b64.charAt(i))&lt;&lt;18)|(decode(b64.charAt(i+1))&lt;&lt;12)|(decode(b64.charAt(i+2))&lt;&lt;6)|decode(b64.charAt(i+3))
push((tmp&amp;0xFF0000)&gt;&gt;16)
push((tmp&amp;0xFF00)&gt;&gt;8)
push(tmp&amp;0xFF)}
if(placeHolders===2){tmp=(decode(b64.charAt(i))&lt;&lt;2)|(decode(b64.charAt(i+1))&gt;&gt;4)
push(tmp&amp;0xFF)}else if(placeHolders===1){tmp=(decode(b64.charAt(i))&lt;&lt;10)|(decode(b64.charAt(i+1))&lt;&lt;4)|(decode(b64.charAt(i+2))&gt;&gt;2)
push((tmp&gt;&gt;8)&amp;0xFF)
push(tmp&amp;0xFF)}
return arr}
function uint8ToBase64(uint8){var i
var extraBytes=uint8.length%3
var output=''
var temp,length
function encode(num){return lookup.charAt(num)}
function tripletToBase64(num){return encode(num&gt;&gt;18&amp;0x3F)+encode(num&gt;&gt;12&amp;0x3F)+encode(num&gt;&gt;6&amp;0x3F)+encode(num&amp;0x3F)}
for(i=0,length=uint8.length-extraBytes;i&lt;length;i+=3){temp=(uint8[i]&lt;&lt;16)+(uint8[i+1]&lt;&lt;8)+(uint8[i+2])
output+=tripletToBase64(temp)}
switch(extraBytes){case 1:temp=uint8[uint8.length-1]
output+=encode(temp&gt;&gt;2)
output+=encode((temp&lt;&lt;4)&amp;0x3F)
output+='=='
break
case 2:temp=(uint8[uint8.length-2]&lt;&lt;8)+(uint8[uint8.length-1])
output+=encode(temp&gt;&gt;10)
output+=encode((temp&gt;&gt;4)&amp;0x3F)
output+=encode((temp&lt;&lt;2)&amp;0x3F)
output+='='
break
default:break}
return output}
exports.toByteArray=b64ToByteArray
exports.fromByteArray=uint8ToBase64}(typeof exports==='undefined'?(this.base64js={}):exports))</pre></body></html>