File size: 958 Bytes
01fcadf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
self.__uv$config = {
    prefix: "/~/uv/",
    bare: "/bare/",
    encodeUrl: function encode(str) {
        if (!str) return str;
        return encodeURIComponent(
            str
                .toString()
                .split("")
                .map((char, ind) => (ind % 2 ? String.fromCharCode(char.charCodeAt() ^ 3) : char))
                .join("")
        );
    },
    decodeUrl: function decode(str) {
        if (!str) return str;
        let [input, ...search] = str.split("?");

        return (
            decodeURIComponent(input)
                .split("")
                .map((char, ind) => (ind % 2 ? String.fromCharCode(char.charCodeAt(0) ^ 3) : char))
                .join("") + (search.length ? "?" + search.join("?") : "")
        );
    },
    handler: "/uv/uv.handler.js",
    client: "/uv/uv.client.js",
    bundle: "/uv/uv.bundle.js",
    config: "/uv/uv.config.js",
    sw: "/uv/uv.sw.js"
};