@ms-atlas/datastudio 0.1.19
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.
Potentially problematic release.
This version of @ms-atlas/datastudio might be problematic. Click here for more details.
- package/ExternalLibraries/Monaco/vs/loader.js +2166 -0
- package/ExternalLibraries/URI.min.js +1901 -0
- package/ExternalLibraries/crossroads.min.js +453 -0
- package/ExternalLibraries/css.js +165 -0
- package/ExternalLibraries/d3.min.js +10857 -0
- package/ExternalLibraries/es6-promise.min.js +363 -0
- package/ExternalLibraries/hammer.js +2224 -0
- package/ExternalLibraries/hull.js +444 -0
- package/ExternalLibraries/i18n.min.js +115 -0
- package/ExternalLibraries/jquery-ui-timepicker-addon.min.css +76 -0
- package/ExternalLibraries/jquery-ui-timepicker-addon.min.js +1918 -0
- package/ExternalLibraries/jquery-ui.js +17201 -0
- package/ExternalLibraries/jquery-ui.min.css +1454 -0
- package/ExternalLibraries/jquery.history.js +2173 -0
- package/ExternalLibraries/jquery.min.js +5168 -0
- package/ExternalLibraries/jquery.mockjax.min.js +445 -0
- package/ExternalLibraries/jquery.modal.js +173 -0
- package/ExternalLibraries/jstree.js +10086 -0
- package/ExternalLibraries/jstree.style.css +1048 -0
- package/ExternalLibraries/jwt-decode.min.js +142 -0
- package/ExternalLibraries/knockout-latest.debug.js +7375 -0
- package/ExternalLibraries/knockout.mapping.min.js +534 -0
- package/ExternalLibraries/moment.js +3389 -0
- package/ExternalLibraries/q.js +1974 -0
- package/ExternalLibraries/require.js +2230 -0
- package/ExternalLibraries/signals.min.js +179 -0
- package/ExternalLibraries/text.js +445 -0
- package/ExternalLibraries/uuid.js +274 -0
- package/datastudio.application.mainpage.js +1502 -0
- package/datastudio.application.shared.js +626 -0
- package/datastudio.bootstrapper.js +517 -0
- package/fonts.css +14 -0
- package/nls/resx.js +1 -0
- package/nls/root/resx.js +22 -0
- package/package.json +22 -0
- package/scripts/application/sourceMapper.js +15 -0
- package/scripts/libs/adal/adal.js +720 -0
- package/stylesheets/main.css +8879 -0
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
// uuid.js
|
|
2
|
+
//
|
|
3
|
+
// Copyright (c) 2010-2012 Robert Kieffer
|
|
4
|
+
// MIT License - http://opensource.org/licenses/mit-license.php
|
|
5
|
+
|
|
6
|
+
(function () {
|
|
7
|
+
var _global = this;
|
|
8
|
+
|
|
9
|
+
// Unique ID creation requires a high quality random # generator. We feature
|
|
10
|
+
// detect to determine the best RNG source, normalizing to a function that
|
|
11
|
+
// returns 128-bits of randomness, since that's what's usually required
|
|
12
|
+
var _rng;
|
|
13
|
+
|
|
14
|
+
// Node.js crypto-based RNG - http://nodejs.org/docs/v0.6.2/api/crypto.html
|
|
15
|
+
//
|
|
16
|
+
// Moderately fast, high quality
|
|
17
|
+
if (typeof _global.require == "function") {
|
|
18
|
+
try {
|
|
19
|
+
var _rb = _global.require("crypto").randomBytes;
|
|
20
|
+
_rng =
|
|
21
|
+
_rb &&
|
|
22
|
+
function () {
|
|
23
|
+
return _rb(16);
|
|
24
|
+
};
|
|
25
|
+
} catch (e) {}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
if (!_rng && _global.crypto && crypto.getRandomValues) {
|
|
29
|
+
// WHATWG crypto-based RNG - http://wiki.whatwg.org/wiki/Crypto
|
|
30
|
+
//
|
|
31
|
+
// Moderately fast, high quality
|
|
32
|
+
var _rnds8 = new Uint8Array(16);
|
|
33
|
+
_rng = function whatwgRNG() {
|
|
34
|
+
crypto.getRandomValues(_rnds8);
|
|
35
|
+
return _rnds8;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (!_rng) {
|
|
40
|
+
// Math.random()-based (RNG)
|
|
41
|
+
//
|
|
42
|
+
// If all else fails, use Math.random(). It's fast, but is of unspecified
|
|
43
|
+
// quality.
|
|
44
|
+
var _rnds = new Array(16);
|
|
45
|
+
_rng = function () {
|
|
46
|
+
for (var i = 0, r; i < 16; i++) {
|
|
47
|
+
if ((i & 0x03) === 0) r = Math.random() * 0x100000000;
|
|
48
|
+
_rnds[i] = (r >>> ((i & 0x03) << 3)) & 0xff;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return _rnds;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Buffer class to use
|
|
56
|
+
var BufferClass =
|
|
57
|
+
typeof _global.Buffer == "function" ? _global.Buffer : Array;
|
|
58
|
+
|
|
59
|
+
// Maps for number <-> hex string conversion
|
|
60
|
+
var _byteToHex = [];
|
|
61
|
+
var _hexToByte = {};
|
|
62
|
+
for (var i = 0; i < 256; i++) {
|
|
63
|
+
_byteToHex[i] = (i + 0x100).toString(16).substr(1);
|
|
64
|
+
_hexToByte[_byteToHex[i]] = i;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// **`parse()` - Parse a UUID into it's component bytes**
|
|
68
|
+
function parse(s, buf, offset) {
|
|
69
|
+
var i = (buf && offset) || 0,
|
|
70
|
+
ii = 0;
|
|
71
|
+
|
|
72
|
+
buf = buf || [];
|
|
73
|
+
s.toLowerCase().replace(/[0-9a-f]{2}/g, function (oct) {
|
|
74
|
+
if (ii < 16) {
|
|
75
|
+
// Don't overflow!
|
|
76
|
+
buf[i + ii++] = _hexToByte[oct];
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
// Zero out remaining bytes if string was short
|
|
81
|
+
while (ii < 16) {
|
|
82
|
+
buf[i + ii++] = 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return buf;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// **`unparse()` - Convert UUID byte array (ala parse()) into a string**
|
|
89
|
+
function unparse(buf, offset) {
|
|
90
|
+
var i = offset || 0,
|
|
91
|
+
bth = _byteToHex;
|
|
92
|
+
return (
|
|
93
|
+
bth[buf[i++]] +
|
|
94
|
+
bth[buf[i++]] +
|
|
95
|
+
bth[buf[i++]] +
|
|
96
|
+
bth[buf[i++]] +
|
|
97
|
+
"-" +
|
|
98
|
+
bth[buf[i++]] +
|
|
99
|
+
bth[buf[i++]] +
|
|
100
|
+
"-" +
|
|
101
|
+
bth[buf[i++]] +
|
|
102
|
+
bth[buf[i++]] +
|
|
103
|
+
"-" +
|
|
104
|
+
bth[buf[i++]] +
|
|
105
|
+
bth[buf[i++]] +
|
|
106
|
+
"-" +
|
|
107
|
+
bth[buf[i++]] +
|
|
108
|
+
bth[buf[i++]] +
|
|
109
|
+
bth[buf[i++]] +
|
|
110
|
+
bth[buf[i++]] +
|
|
111
|
+
bth[buf[i++]] +
|
|
112
|
+
bth[buf[i++]]
|
|
113
|
+
);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// **`v1()` - Generate time-based UUID**
|
|
117
|
+
//
|
|
118
|
+
// Inspired by https://github.com/LiosK/UUID.js
|
|
119
|
+
// and http://docs.python.org/library/uuid.html
|
|
120
|
+
|
|
121
|
+
// random #'s we need to init node and clockseq
|
|
122
|
+
var _seedBytes = _rng();
|
|
123
|
+
|
|
124
|
+
// Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1)
|
|
125
|
+
var _nodeId = [
|
|
126
|
+
_seedBytes[0] | 0x01,
|
|
127
|
+
_seedBytes[1],
|
|
128
|
+
_seedBytes[2],
|
|
129
|
+
_seedBytes[3],
|
|
130
|
+
_seedBytes[4],
|
|
131
|
+
_seedBytes[5],
|
|
132
|
+
];
|
|
133
|
+
|
|
134
|
+
// Per 4.2.2, randomize (14 bit) clockseq
|
|
135
|
+
var _clockseq = ((_seedBytes[6] << 8) | _seedBytes[7]) & 0x3fff;
|
|
136
|
+
|
|
137
|
+
// Previous uuid creation time
|
|
138
|
+
var _lastMSecs = 0,
|
|
139
|
+
_lastNSecs = 0;
|
|
140
|
+
|
|
141
|
+
// See https://github.com/broofa/node-uuid for API details
|
|
142
|
+
function v1(options, buf, offset) {
|
|
143
|
+
var i = (buf && offset) || 0;
|
|
144
|
+
var b = buf || [];
|
|
145
|
+
|
|
146
|
+
options = options || {};
|
|
147
|
+
|
|
148
|
+
var clockseq = options.clockseq != null ? options.clockseq : _clockseq;
|
|
149
|
+
|
|
150
|
+
// UUID timestamps are 100 nano-second units since the Gregorian epoch,
|
|
151
|
+
// (1582-10-15 00:00). JSNumbers aren't precise enough for this, so
|
|
152
|
+
// time is handled internally as 'msecs' (integer milliseconds) and 'nsecs'
|
|
153
|
+
// (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00.
|
|
154
|
+
var msecs = options.msecs != null ? options.msecs : new Date().getTime();
|
|
155
|
+
|
|
156
|
+
// Per 4.2.1.2, use count of uuid's generated during the current clock
|
|
157
|
+
// cycle to simulate higher resolution clock
|
|
158
|
+
var nsecs = options.nsecs != null ? options.nsecs : _lastNSecs + 1;
|
|
159
|
+
|
|
160
|
+
// Time since last uuid creation (in msecs)
|
|
161
|
+
var dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000;
|
|
162
|
+
|
|
163
|
+
// Per 4.2.1.2, Bump clockseq on clock regression
|
|
164
|
+
if (dt < 0 && options.clockseq == null) {
|
|
165
|
+
clockseq = (clockseq + 1) & 0x3fff;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// Reset nsecs if clock regresses (new clockseq) or we've moved onto a new
|
|
169
|
+
// time interval
|
|
170
|
+
if ((dt < 0 || msecs > _lastMSecs) && options.nsecs == null) {
|
|
171
|
+
nsecs = 0;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// Per 4.2.1.2 Throw error if too many uuids are requested
|
|
175
|
+
if (nsecs >= 10000) {
|
|
176
|
+
throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
_lastMSecs = msecs;
|
|
180
|
+
_lastNSecs = nsecs;
|
|
181
|
+
_clockseq = clockseq;
|
|
182
|
+
|
|
183
|
+
// Per 4.1.4 - Convert from unix epoch to Gregorian epoch
|
|
184
|
+
msecs += 12219292800000;
|
|
185
|
+
|
|
186
|
+
// `time_low`
|
|
187
|
+
var tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000;
|
|
188
|
+
b[i++] = (tl >>> 24) & 0xff;
|
|
189
|
+
b[i++] = (tl >>> 16) & 0xff;
|
|
190
|
+
b[i++] = (tl >>> 8) & 0xff;
|
|
191
|
+
b[i++] = tl & 0xff;
|
|
192
|
+
|
|
193
|
+
// `time_mid`
|
|
194
|
+
var tmh = ((msecs / 0x100000000) * 10000) & 0xfffffff;
|
|
195
|
+
b[i++] = (tmh >>> 8) & 0xff;
|
|
196
|
+
b[i++] = tmh & 0xff;
|
|
197
|
+
|
|
198
|
+
// `time_high_and_version`
|
|
199
|
+
b[i++] = ((tmh >>> 24) & 0xf) | 0x10; // include version
|
|
200
|
+
b[i++] = (tmh >>> 16) & 0xff;
|
|
201
|
+
|
|
202
|
+
// `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant)
|
|
203
|
+
b[i++] = (clockseq >>> 8) | 0x80;
|
|
204
|
+
|
|
205
|
+
// `clock_seq_low`
|
|
206
|
+
b[i++] = clockseq & 0xff;
|
|
207
|
+
|
|
208
|
+
// `node`
|
|
209
|
+
var node = options.node || _nodeId;
|
|
210
|
+
for (var n = 0; n < 6; n++) {
|
|
211
|
+
b[i + n] = node[n];
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
return buf ? buf : unparse(b);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
// **`v4()` - Generate random UUID**
|
|
218
|
+
|
|
219
|
+
// See https://github.com/broofa/node-uuid for API details
|
|
220
|
+
function v4(options, buf, offset) {
|
|
221
|
+
// Deprecated - 'format' argument, as supported in v1.2
|
|
222
|
+
var i = (buf && offset) || 0;
|
|
223
|
+
|
|
224
|
+
if (typeof options == "string") {
|
|
225
|
+
buf = options == "binary" ? new BufferClass(16) : null;
|
|
226
|
+
options = null;
|
|
227
|
+
}
|
|
228
|
+
options = options || {};
|
|
229
|
+
|
|
230
|
+
var rnds = options.random || (options.rng || _rng)();
|
|
231
|
+
|
|
232
|
+
// Per 4.4, set bits for version and `clock_seq_hi_and_reserved`
|
|
233
|
+
rnds[6] = (rnds[6] & 0x0f) | 0x40;
|
|
234
|
+
rnds[8] = (rnds[8] & 0x3f) | 0x80;
|
|
235
|
+
|
|
236
|
+
// Copy bytes to buffer, if provided
|
|
237
|
+
if (buf) {
|
|
238
|
+
for (var ii = 0; ii < 16; ii++) {
|
|
239
|
+
buf[i + ii] = rnds[ii];
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
return buf || unparse(rnds);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
// Export public API
|
|
247
|
+
var uuid = v4;
|
|
248
|
+
uuid.v1 = v1;
|
|
249
|
+
uuid.v4 = v4;
|
|
250
|
+
uuid.parse = parse;
|
|
251
|
+
uuid.unparse = unparse;
|
|
252
|
+
uuid.BufferClass = BufferClass;
|
|
253
|
+
|
|
254
|
+
if (typeof module != "undefined" && module.exports) {
|
|
255
|
+
// Publish as node.js module
|
|
256
|
+
module.exports = uuid;
|
|
257
|
+
} else if (typeof define === "function" && define.amd) {
|
|
258
|
+
// Publish as AMD module
|
|
259
|
+
define([], function () {
|
|
260
|
+
return uuid;
|
|
261
|
+
});
|
|
262
|
+
} else {
|
|
263
|
+
// Publish as global (in browsers)
|
|
264
|
+
var _previousRoot = _global.uuid;
|
|
265
|
+
|
|
266
|
+
// **`noConflict()` - (browser only) to reset global 'uuid' var**
|
|
267
|
+
uuid.noConflict = function () {
|
|
268
|
+
_global.uuid = _previousRoot;
|
|
269
|
+
return uuid;
|
|
270
|
+
};
|
|
271
|
+
|
|
272
|
+
_global.uuid = uuid;
|
|
273
|
+
}
|
|
274
|
+
}.call(this));
|