1 |
3a515b92
|
cagy
|
/*! *****************************************************************************
|
2 |
|
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
3 |
|
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
4 |
|
|
this file except in compliance with the License. You may obtain a copy of the
|
5 |
|
|
License at http://www.apache.org/licenses/LICENSE-2.0
|
6 |
|
|
|
7 |
|
|
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
8 |
|
|
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
9 |
|
|
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
10 |
|
|
MERCHANTABLITY OR NON-INFRINGEMENT.
|
11 |
|
|
|
12 |
|
|
See the Apache Version 2.0 License for specific language governing permissions
|
13 |
|
|
and limitations under the License.
|
14 |
|
|
***************************************************************************** */
|
15 |
|
|
/* global Reflect, Promise */
|
16 |
|
|
|
17 |
|
|
var extendStatics = function(d, b) {
|
18 |
|
|
extendStatics = Object.setPrototypeOf ||
|
19 |
|
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
20 |
|
|
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
21 |
|
|
return extendStatics(d, b);
|
22 |
|
|
};
|
23 |
|
|
|
24 |
|
|
export function __extends(d, b) {
|
25 |
|
|
extendStatics(d, b);
|
26 |
|
|
function __() { this.constructor = d; }
|
27 |
|
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
28 |
|
|
}
|
29 |
|
|
|
30 |
|
|
export var __assign = function() {
|
31 |
|
|
__assign = Object.assign || function __assign(t) {
|
32 |
|
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
33 |
|
|
s = arguments[i];
|
34 |
|
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
35 |
|
|
}
|
36 |
|
|
return t;
|
37 |
|
|
}
|
38 |
|
|
return __assign.apply(this, arguments);
|
39 |
|
|
}
|
40 |
|
|
|
41 |
|
|
export function __rest(s, e) {
|
42 |
|
|
var t = {};
|
43 |
|
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
44 |
|
|
t[p] = s[p];
|
45 |
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
46 |
|
|
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
47 |
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
48 |
|
|
t[p[i]] = s[p[i]];
|
49 |
|
|
}
|
50 |
|
|
return t;
|
51 |
|
|
}
|
52 |
|
|
|
53 |
|
|
export function __decorate(decorators, target, key, desc) {
|
54 |
|
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
55 |
|
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
56 |
|
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
57 |
|
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
58 |
|
|
}
|
59 |
|
|
|
60 |
|
|
export function __param(paramIndex, decorator) {
|
61 |
|
|
return function (target, key) { decorator(target, key, paramIndex); }
|
62 |
|
|
}
|
63 |
|
|
|
64 |
|
|
export function __metadata(metadataKey, metadataValue) {
|
65 |
|
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
66 |
|
|
}
|
67 |
|
|
|
68 |
|
|
export function __awaiter(thisArg, _arguments, P, generator) {
|
69 |
|
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
70 |
|
|
return new (P || (P = Promise))(function (resolve, reject) {
|
71 |
|
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
72 |
|
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
73 |
|
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
74 |
|
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
75 |
|
|
});
|
76 |
|
|
}
|
77 |
|
|
|
78 |
|
|
export function __generator(thisArg, body) {
|
79 |
|
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
80 |
|
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
81 |
|
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
82 |
|
|
function step(op) {
|
83 |
|
|
if (f) throw new TypeError("Generator is already executing.");
|
84 |
|
|
while (_) try {
|
85 |
|
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
86 |
|
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
87 |
|
|
switch (op[0]) {
|
88 |
|
|
case 0: case 1: t = op; break;
|
89 |
|
|
case 4: _.label++; return { value: op[1], done: false };
|
90 |
|
|
case 5: _.label++; y = op[1]; op = [0]; continue;
|
91 |
|
|
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
92 |
|
|
default:
|
93 |
|
|
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
94 |
|
|
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
95 |
|
|
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
96 |
|
|
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
97 |
|
|
if (t[2]) _.ops.pop();
|
98 |
|
|
_.trys.pop(); continue;
|
99 |
|
|
}
|
100 |
|
|
op = body.call(thisArg, _);
|
101 |
|
|
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
102 |
|
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
103 |
|
|
}
|
104 |
|
|
}
|
105 |
|
|
|
106 |
|
|
export function __exportStar(m, exports) {
|
107 |
|
|
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
108 |
|
|
}
|
109 |
|
|
|
110 |
|
|
export function __values(o) {
|
111 |
|
|
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
112 |
|
|
if (m) return m.call(o);
|
113 |
|
|
if (o && typeof o.length === "number") return {
|
114 |
|
|
next: function () {
|
115 |
|
|
if (o && i >= o.length) o = void 0;
|
116 |
|
|
return { value: o && o[i++], done: !o };
|
117 |
|
|
}
|
118 |
|
|
};
|
119 |
|
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
120 |
|
|
}
|
121 |
|
|
|
122 |
|
|
export function __read(o, n) {
|
123 |
|
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
124 |
|
|
if (!m) return o;
|
125 |
|
|
var i = m.call(o), r, ar = [], e;
|
126 |
|
|
try {
|
127 |
|
|
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
128 |
|
|
}
|
129 |
|
|
catch (error) { e = { error: error }; }
|
130 |
|
|
finally {
|
131 |
|
|
try {
|
132 |
|
|
if (r && !r.done && (m = i["return"])) m.call(i);
|
133 |
|
|
}
|
134 |
|
|
finally { if (e) throw e.error; }
|
135 |
|
|
}
|
136 |
|
|
return ar;
|
137 |
|
|
}
|
138 |
|
|
|
139 |
|
|
export function __spread() {
|
140 |
|
|
for (var ar = [], i = 0; i < arguments.length; i++)
|
141 |
|
|
ar = ar.concat(__read(arguments[i]));
|
142 |
|
|
return ar;
|
143 |
|
|
}
|
144 |
|
|
|
145 |
|
|
export function __spreadArrays() {
|
146 |
|
|
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
147 |
|
|
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
148 |
|
|
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
149 |
|
|
r[k] = a[j];
|
150 |
|
|
return r;
|
151 |
|
|
};
|
152 |
|
|
|
153 |
|
|
export function __await(v) {
|
154 |
|
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
155 |
|
|
}
|
156 |
|
|
|
157 |
|
|
export function __asyncGenerator(thisArg, _arguments, generator) {
|
158 |
|
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
159 |
|
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
160 |
|
|
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
161 |
|
|
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
162 |
|
|
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
163 |
|
|
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
164 |
|
|
function fulfill(value) { resume("next", value); }
|
165 |
|
|
function reject(value) { resume("throw", value); }
|
166 |
|
|
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
167 |
|
|
}
|
168 |
|
|
|
169 |
|
|
export function __asyncDelegator(o) {
|
170 |
|
|
var i, p;
|
171 |
|
|
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
172 |
|
|
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
173 |
|
|
}
|
174 |
|
|
|
175 |
|
|
export function __asyncValues(o) {
|
176 |
|
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
177 |
|
|
var m = o[Symbol.asyncIterator], i;
|
178 |
|
|
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
179 |
|
|
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
180 |
|
|
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
181 |
|
|
}
|
182 |
|
|
|
183 |
|
|
export function __makeTemplateObject(cooked, raw) {
|
184 |
|
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
185 |
|
|
return cooked;
|
186 |
|
|
};
|
187 |
|
|
|
188 |
|
|
export function __importStar(mod) {
|
189 |
|
|
if (mod && mod.__esModule) return mod;
|
190 |
|
|
var result = {};
|
191 |
|
|
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
192 |
|
|
result.default = mod;
|
193 |
|
|
return result;
|
194 |
|
|
}
|
195 |
|
|
|
196 |
|
|
export function __importDefault(mod) {
|
197 |
|
|
return (mod && mod.__esModule) ? mod : { default: mod };
|
198 |
|
|
}
|
199 |
|
|
|
200 |
|
|
export function __classPrivateFieldGet(receiver, privateMap) {
|
201 |
|
|
if (!privateMap.has(receiver)) {
|
202 |
|
|
throw new TypeError("attempted to get private field on non-instance");
|
203 |
|
|
}
|
204 |
|
|
return privateMap.get(receiver);
|
205 |
|
|
}
|
206 |
|
|
|
207 |
|
|
export function __classPrivateFieldSet(receiver, privateMap, value) {
|
208 |
|
|
if (!privateMap.has(receiver)) {
|
209 |
|
|
throw new TypeError("attempted to set private field on non-instance");
|
210 |
|
|
}
|
211 |
|
|
privateMap.set(receiver, value);
|
212 |
|
|
return value;
|
213 |
|
|
}
|