a zip code crypto-currency system good for red ONLY

tslib.js 11KB

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