UNPKG

@logseq/nbb-logseq

Version:

Nbb with additional libraries like datascript included

11 lines (10 loc) 2.31 kB
import { $APP, shadow$provide, $jscomp } from "./nbb_core.js"; const shadow_esm_import = function(x) { return import(x) }; /* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ var d9={xk:function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);255<e&&(b[c++]=e&255,e>>=8);b[c++]=e}return b},uj:function(a){if(8192>=a.length)return String.fromCharCode.apply(null,a);for(var b="",c=0;c<a.length;c+=8192)b+=String.fromCharCode.apply(null,Array.prototype.slice.call(a,c,c+8192));return b},tj:function(a,b){return Array.prototype.map.call(a,function(c){c=c.toString(16);return 1<c.length?c:"0"+c}).join(b||"")},Mj:function(a){for(var b=[],c=0;c<a.length;c+=2)b.push(parseInt(a.substring(c, c+2),16));return b},yk:function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);128>e?b[c++]=e:(2048>e?b[c++]=e>>6|192:(55296==(e&64512)&&d+1<a.length&&56320==(a.charCodeAt(d+1)&64512)?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b},Ak:function(a){for(var b=[],c=0,d=0;c<a.length;){var e=a[c++];if(128>e)b[d++]=String.fromCharCode(e);else if(191<e&&224>e){var f=a[c++];b[d++]=String.fromCharCode((e& 31)<<6|f&63)}else if(239<e&&365>e){f=a[c++];var g=a[c++],m=a[c++];e=((e&7)<<18|(f&63)<<12|(g&63)<<6|m&63)-65536;b[d++]=String.fromCharCode(55296+(e>>10));b[d++]=String.fromCharCode(56320+(e&1023))}else f=a[c++],g=a[c++],b[d++]=String.fromCharCode((e&15)<<12|(f&63)<<6|g&63)}return b.join("")},Ck:function(a,b){for(var c=[],d=0;d<a.length;d++)c.push(a[d]^b[d]);return c}};$APP.Wu(new $APP.k(null,2,[$APP.lu,new $APP.k(null,1,[$APP.iz,d9],null),$APP.Rq,new $APP.k(null,1,[$APP.iz,new $APP.k(null,7,[new $APP.t(null,"byteArrayToHex","byteArrayToHex",864272229,null),d9.tj,new $APP.t(null,"byteArrayToString","byteArrayToString",-356221137,null),d9.uj,new $APP.t(null,"hexToByteArray","hexToByteArray",107461068,null),d9.Mj,new $APP.t(null,"stringToByteArray","stringToByteArray",-2102733163,null),d9.xk,new $APP.t(null,"stringToUtf8ByteArray","stringToUtf8ByteArray",1367479552, null),d9.yk,new $APP.t(null,"utf8ByteArrayToString","utf8ByteArrayToString",1858630322,null),d9.Ak,new $APP.t(null,"xorByteArray","xorByteArray",-1522110755,null),d9.Ck],null)],null)],null));