source: trip-planner-front/node_modules/@angular-devkit/build-angular/node_modules/tslib/tslib.es6.js@ fa375fe

Last change on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 11.3 KB
Line 
1/*! *****************************************************************************
2Copyright (c) Microsoft Corporation.
3
4Permission to use, copy, modify, and/or distribute this software for any
5purpose with or without fee is hereby granted.
6
7THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13PERFORMANCE OF THIS SOFTWARE.
14***************************************************************************** */
15/* global Reflect, Promise */
16
17var 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 (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
21 return extendStatics(d, b);
22};
23
24export function __extends(d, b) {
25 if (typeof b !== "function" && b !== null)
26 throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
27 extendStatics(d, b);
28 function __() { this.constructor = d; }
29 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
30}
31
32export var __assign = function() {
33 __assign = Object.assign || function __assign(t) {
34 for (var s, i = 1, n = arguments.length; i < n; i++) {
35 s = arguments[i];
36 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
37 }
38 return t;
39 }
40 return __assign.apply(this, arguments);
41}
42
43export function __rest(s, e) {
44 var t = {};
45 for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
46 t[p] = s[p];
47 if (s != null && typeof Object.getOwnPropertySymbols === "function")
48 for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
49 if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
50 t[p[i]] = s[p[i]];
51 }
52 return t;
53}
54
55export function __decorate(decorators, target, key, desc) {
56 var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
57 if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
58 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;
59 return c > 3 && r && Object.defineProperty(target, key, r), r;
60}
61
62export function __param(paramIndex, decorator) {
63 return function (target, key) { decorator(target, key, paramIndex); }
64}
65
66export function __metadata(metadataKey, metadataValue) {
67 if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
68}
69
70export function __awaiter(thisArg, _arguments, P, generator) {
71 function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
72 return new (P || (P = Promise))(function (resolve, reject) {
73 function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
74 function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
75 function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
76 step((generator = generator.apply(thisArg, _arguments || [])).next());
77 });
78}
79
80export function __generator(thisArg, body) {
81 var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
82 return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
83 function verb(n) { return function (v) { return step([n, v]); }; }
84 function step(op) {
85 if (f) throw new TypeError("Generator is already executing.");
86 while (_) try {
87 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;
88 if (y = 0, t) op = [op[0] & 2, t.value];
89 switch (op[0]) {
90 case 0: case 1: t = op; break;
91 case 4: _.label++; return { value: op[1], done: false };
92 case 5: _.label++; y = op[1]; op = [0]; continue;
93 case 7: op = _.ops.pop(); _.trys.pop(); continue;
94 default:
95 if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
96 if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
97 if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
98 if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
99 if (t[2]) _.ops.pop();
100 _.trys.pop(); continue;
101 }
102 op = body.call(thisArg, _);
103 } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
104 if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
105 }
106}
107
108export var __createBinding = Object.create ? (function(o, m, k, k2) {
109 if (k2 === undefined) k2 = k;
110 Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
111}) : (function(o, m, k, k2) {
112 if (k2 === undefined) k2 = k;
113 o[k2] = m[k];
114});
115
116export function __exportStar(m, o) {
117 for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
118}
119
120export function __values(o) {
121 var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
122 if (m) return m.call(o);
123 if (o && typeof o.length === "number") return {
124 next: function () {
125 if (o && i >= o.length) o = void 0;
126 return { value: o && o[i++], done: !o };
127 }
128 };
129 throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
130}
131
132export function __read(o, n) {
133 var m = typeof Symbol === "function" && o[Symbol.iterator];
134 if (!m) return o;
135 var i = m.call(o), r, ar = [], e;
136 try {
137 while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
138 }
139 catch (error) { e = { error: error }; }
140 finally {
141 try {
142 if (r && !r.done && (m = i["return"])) m.call(i);
143 }
144 finally { if (e) throw e.error; }
145 }
146 return ar;
147}
148
149/** @deprecated */
150export function __spread() {
151 for (var ar = [], i = 0; i < arguments.length; i++)
152 ar = ar.concat(__read(arguments[i]));
153 return ar;
154}
155
156/** @deprecated */
157export function __spreadArrays() {
158 for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
159 for (var r = Array(s), k = 0, i = 0; i < il; i++)
160 for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
161 r[k] = a[j];
162 return r;
163}
164
165export function __spreadArray(to, from, pack) {
166 if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
167 if (ar || !(i in from)) {
168 if (!ar) ar = Array.prototype.slice.call(from, 0, i);
169 ar[i] = from[i];
170 }
171 }
172 return to.concat(ar || from);
173}
174
175export function __await(v) {
176 return this instanceof __await ? (this.v = v, this) : new __await(v);
177}
178
179export function __asyncGenerator(thisArg, _arguments, generator) {
180 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
181 var g = generator.apply(thisArg, _arguments || []), i, q = [];
182 return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
183 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); }); }; }
184 function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
185 function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
186 function fulfill(value) { resume("next", value); }
187 function reject(value) { resume("throw", value); }
188 function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
189}
190
191export function __asyncDelegator(o) {
192 var i, p;
193 return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
194 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; }
195}
196
197export function __asyncValues(o) {
198 if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
199 var m = o[Symbol.asyncIterator], i;
200 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);
201 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); }); }; }
202 function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
203}
204
205export function __makeTemplateObject(cooked, raw) {
206 if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
207 return cooked;
208};
209
210var __setModuleDefault = Object.create ? (function(o, v) {
211 Object.defineProperty(o, "default", { enumerable: true, value: v });
212}) : function(o, v) {
213 o["default"] = v;
214};
215
216export function __importStar(mod) {
217 if (mod && mod.__esModule) return mod;
218 var result = {};
219 if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
220 __setModuleDefault(result, mod);
221 return result;
222}
223
224export function __importDefault(mod) {
225 return (mod && mod.__esModule) ? mod : { default: mod };
226}
227
228export function __classPrivateFieldGet(receiver, state, kind, f) {
229 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
230 if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
231 return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
232}
233
234export function __classPrivateFieldSet(receiver, state, value, kind, f) {
235 if (kind === "m") throw new TypeError("Private method is not writable");
236 if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
237 if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
238 return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
239}
Note: See TracBrowser for help on using the repository browser.