keycloakify 11.8.36-rc.0 → 11.8.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +31 -1
- package/res/public/keycloakify-dev-resources/account/resources-common/node_modules/patternfly/dist/css/patternfly-additions.min.css +5 -0
- package/res/public/keycloakify-dev-resources/account/resources-common/node_modules/patternfly/dist/css/patternfly.min.css +8 -0
- package/res/public/keycloakify-dev-resources/account/resources-common/node_modules/patternfly/dist/fonts/OpenSans-Bold-webfont.woff2 +0 -0
- package/res/public/keycloakify-dev-resources/account/resources-common/node_modules/patternfly/dist/fonts/OpenSans-Light-webfont.woff2 +0 -0
- package/res/public/keycloakify-dev-resources/account/resources-common/node_modules/patternfly/dist/fonts/OpenSans-Regular-webfont.woff2 +0 -0
- package/res/public/keycloakify-dev-resources/account/resources-common/node_modules/patternfly/dist/fonts/OpenSans-Semibold-webfont.woff2 +0 -0
- package/res/public/keycloakify-dev-resources/account/resources-common/node_modules/patternfly/dist/fonts/PatternFlyIcons-webfont.ttf +0 -0
- package/res/public/keycloakify-dev-resources/account/resources-common/node_modules/patternfly/dist/fonts/PatternFlyIcons-webfont.woff +0 -0
- package/res/public/keycloakify-dev-resources/login/resources-common/node_modules/@patternfly/patternfly/assets/fonts/RedHatDisplay/RedHatDisplay-Bold.woff +0 -0
- package/res/public/keycloakify-dev-resources/login/resources-common/node_modules/@patternfly/patternfly/assets/fonts/RedHatDisplay/RedHatDisplay-Bold.woff2 +0 -0
- package/res/public/keycloakify-dev-resources/login/resources-common/node_modules/@patternfly/patternfly/assets/fonts/overpass-webfont/overpass-bold.woff +0 -0
- package/res/public/keycloakify-dev-resources/login/resources-common/node_modules/@patternfly/patternfly/assets/fonts/overpass-webfont/overpass-bold.woff2 +0 -0
- package/res/public/keycloakify-dev-resources/login/resources-common/node_modules/@patternfly/patternfly/patternfly.min.css +2 -0
- package/res/public/keycloakify-dev-resources/login/resources-common/node_modules/jquery/dist/jquery.min.js +2 -0
- package/res/public/keycloakify-dev-resources/login/resources-common/node_modules/patternfly/dist/css/patternfly-additions.min.css +5 -0
- package/res/public/keycloakify-dev-resources/login/resources-common/node_modules/patternfly/dist/css/patternfly.min.css +8 -0
- package/res/public/keycloakify-dev-resources/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-Bold-webfont.ttf +0 -0
- package/res/public/keycloakify-dev-resources/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-Bold-webfont.woff +0 -0
- package/res/public/keycloakify-dev-resources/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-Bold-webfont.woff2 +0 -0
- package/res/public/keycloakify-dev-resources/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-Light-webfont.woff2 +0 -0
- package/res/public/keycloakify-dev-resources/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-Regular-webfont.woff2 +0 -0
- package/res/public/keycloakify-dev-resources/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-Semibold-webfont.woff2 +0 -0
- package/res/public/keycloakify-dev-resources/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
- package/res/public/keycloakify-dev-resources/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
- package/res/public/keycloakify-dev-resources/login/resources-common/node_modules/patternfly/dist/fonts/OpenSans-SemiboldItalic-webfont.woff2 +0 -0
- package/res/public/keycloakify-dev-resources/login/resources-common/node_modules/patternfly/dist/fonts/PatternFlyIcons-webfont.ttf +0 -0
- package/res/public/keycloakify-dev-resources/login/resources-common/node_modules/patternfly/dist/fonts/PatternFlyIcons-webfont.woff +0 -0
- package/res/public/keycloakify-dev-resources/login/resources-common/node_modules/patternfly/dist/fonts/fontawesome-webfont.woff2 +0 -0
- package/res/public/keycloakify-dev-resources/login/resources-common/node_modules/patternfly/dist/img/bg-login.jpg +0 -0
- package/res/public/keycloakify-dev-resources/login/resources-common/node_modules/rfc4648/lib/rfc4648.js +178 -0
@@ -0,0 +1,178 @@
|
|
1
|
+
/* eslint-disable @typescript-eslint/strict-boolean-expressions */
|
2
|
+
function parse(string, encoding, opts) {
|
3
|
+
var _opts$out;
|
4
|
+
|
5
|
+
if (opts === void 0) {
|
6
|
+
opts = {};
|
7
|
+
}
|
8
|
+
|
9
|
+
// Build the character lookup table:
|
10
|
+
if (!encoding.codes) {
|
11
|
+
encoding.codes = {};
|
12
|
+
|
13
|
+
for (var i = 0; i < encoding.chars.length; ++i) {
|
14
|
+
encoding.codes[encoding.chars[i]] = i;
|
15
|
+
}
|
16
|
+
} // The string must have a whole number of bytes:
|
17
|
+
|
18
|
+
|
19
|
+
if (!opts.loose && string.length * encoding.bits & 7) {
|
20
|
+
throw new SyntaxError('Invalid padding');
|
21
|
+
} // Count the padding bytes:
|
22
|
+
|
23
|
+
|
24
|
+
var end = string.length;
|
25
|
+
|
26
|
+
while (string[end - 1] === '=') {
|
27
|
+
--end; // If we get a whole number of bytes, there is too much padding:
|
28
|
+
|
29
|
+
if (!opts.loose && !((string.length - end) * encoding.bits & 7)) {
|
30
|
+
throw new SyntaxError('Invalid padding');
|
31
|
+
}
|
32
|
+
} // Allocate the output:
|
33
|
+
|
34
|
+
|
35
|
+
var out = new ((_opts$out = opts.out) != null ? _opts$out : Uint8Array)(end * encoding.bits / 8 | 0); // Parse the data:
|
36
|
+
|
37
|
+
var bits = 0; // Number of bits currently in the buffer
|
38
|
+
|
39
|
+
var buffer = 0; // Bits waiting to be written out, MSB first
|
40
|
+
|
41
|
+
var written = 0; // Next byte to write
|
42
|
+
|
43
|
+
for (var _i = 0; _i < end; ++_i) {
|
44
|
+
// Read one character from the string:
|
45
|
+
var value = encoding.codes[string[_i]];
|
46
|
+
|
47
|
+
if (value === undefined) {
|
48
|
+
throw new SyntaxError('Invalid character ' + string[_i]);
|
49
|
+
} // Append the bits to the buffer:
|
50
|
+
|
51
|
+
|
52
|
+
buffer = buffer << encoding.bits | value;
|
53
|
+
bits += encoding.bits; // Write out some bits if the buffer has a byte's worth:
|
54
|
+
|
55
|
+
if (bits >= 8) {
|
56
|
+
bits -= 8;
|
57
|
+
out[written++] = 0xff & buffer >> bits;
|
58
|
+
}
|
59
|
+
} // Verify that we have received just enough bits:
|
60
|
+
|
61
|
+
|
62
|
+
if (bits >= encoding.bits || 0xff & buffer << 8 - bits) {
|
63
|
+
throw new SyntaxError('Unexpected end of data');
|
64
|
+
}
|
65
|
+
|
66
|
+
return out;
|
67
|
+
}
|
68
|
+
function stringify(data, encoding, opts) {
|
69
|
+
if (opts === void 0) {
|
70
|
+
opts = {};
|
71
|
+
}
|
72
|
+
|
73
|
+
var _opts = opts,
|
74
|
+
_opts$pad = _opts.pad,
|
75
|
+
pad = _opts$pad === void 0 ? true : _opts$pad;
|
76
|
+
var mask = (1 << encoding.bits) - 1;
|
77
|
+
var out = '';
|
78
|
+
var bits = 0; // Number of bits currently in the buffer
|
79
|
+
|
80
|
+
var buffer = 0; // Bits waiting to be written out, MSB first
|
81
|
+
|
82
|
+
for (var i = 0; i < data.length; ++i) {
|
83
|
+
// Slurp data into the buffer:
|
84
|
+
buffer = buffer << 8 | 0xff & data[i];
|
85
|
+
bits += 8; // Write out as much as we can:
|
86
|
+
|
87
|
+
while (bits > encoding.bits) {
|
88
|
+
bits -= encoding.bits;
|
89
|
+
out += encoding.chars[mask & buffer >> bits];
|
90
|
+
}
|
91
|
+
} // Partial character:
|
92
|
+
|
93
|
+
|
94
|
+
if (bits) {
|
95
|
+
out += encoding.chars[mask & buffer << encoding.bits - bits];
|
96
|
+
} // Add padding characters until we hit a byte boundary:
|
97
|
+
|
98
|
+
|
99
|
+
if (pad) {
|
100
|
+
while (out.length * encoding.bits & 7) {
|
101
|
+
out += '=';
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
return out;
|
106
|
+
}
|
107
|
+
|
108
|
+
/* eslint-disable @typescript-eslint/strict-boolean-expressions */
|
109
|
+
var base16Encoding = {
|
110
|
+
chars: '0123456789ABCDEF',
|
111
|
+
bits: 4
|
112
|
+
};
|
113
|
+
var base32Encoding = {
|
114
|
+
chars: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567',
|
115
|
+
bits: 5
|
116
|
+
};
|
117
|
+
var base32HexEncoding = {
|
118
|
+
chars: '0123456789ABCDEFGHIJKLMNOPQRSTUV',
|
119
|
+
bits: 5
|
120
|
+
};
|
121
|
+
var base64Encoding = {
|
122
|
+
chars: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
|
123
|
+
bits: 6
|
124
|
+
};
|
125
|
+
var base64UrlEncoding = {
|
126
|
+
chars: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_',
|
127
|
+
bits: 6
|
128
|
+
};
|
129
|
+
var base16 = {
|
130
|
+
parse: function parse$1(string, opts) {
|
131
|
+
return parse(string.toUpperCase(), base16Encoding, opts);
|
132
|
+
},
|
133
|
+
stringify: function stringify$1(data, opts) {
|
134
|
+
return stringify(data, base16Encoding, opts);
|
135
|
+
}
|
136
|
+
};
|
137
|
+
var base32 = {
|
138
|
+
parse: function parse$1(string, opts) {
|
139
|
+
if (opts === void 0) {
|
140
|
+
opts = {};
|
141
|
+
}
|
142
|
+
|
143
|
+
return parse(opts.loose ? string.toUpperCase().replace(/0/g, 'O').replace(/1/g, 'L').replace(/8/g, 'B') : string, base32Encoding, opts);
|
144
|
+
},
|
145
|
+
stringify: function stringify$1(data, opts) {
|
146
|
+
return stringify(data, base32Encoding, opts);
|
147
|
+
}
|
148
|
+
};
|
149
|
+
var base32hex = {
|
150
|
+
parse: function parse$1(string, opts) {
|
151
|
+
return parse(string, base32HexEncoding, opts);
|
152
|
+
},
|
153
|
+
stringify: function stringify$1(data, opts) {
|
154
|
+
return stringify(data, base32HexEncoding, opts);
|
155
|
+
}
|
156
|
+
};
|
157
|
+
var base64 = {
|
158
|
+
parse: function parse$1(string, opts) {
|
159
|
+
return parse(string, base64Encoding, opts);
|
160
|
+
},
|
161
|
+
stringify: function stringify$1(data, opts) {
|
162
|
+
return stringify(data, base64Encoding, opts);
|
163
|
+
}
|
164
|
+
};
|
165
|
+
var base64url = {
|
166
|
+
parse: function parse$1(string, opts) {
|
167
|
+
return parse(string, base64UrlEncoding, opts);
|
168
|
+
},
|
169
|
+
stringify: function stringify$1(data, opts) {
|
170
|
+
return stringify(data, base64UrlEncoding, opts);
|
171
|
+
}
|
172
|
+
};
|
173
|
+
var codec = {
|
174
|
+
parse: parse,
|
175
|
+
stringify: stringify
|
176
|
+
};
|
177
|
+
|
178
|
+
export { base16, base32, base32hex, base64, base64url, codec };
|